diff --git a/src/libs/SmallestAI/Generated/SmallestAI.AuthClient.CreateAccessToken.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.AuthClient.CreateAccessToken.g.cs index 4768549..733d6f6 100644 --- a/src/libs/SmallestAI/Generated/SmallestAI.AuthClient.CreateAccessToken.g.cs +++ b/src/libs/SmallestAI/Generated/SmallestAI.AuthClient.CreateAccessToken.g.cs @@ -45,7 +45,8 @@ partial void ProcessCreateAccessTokenResponseContent( /// Create access token
/// Mint a short-lived access token from your API key. Call this from your server,
/// then hand the returned `access_token` to a browser or mobile client. The client
- /// sends it as `Authorization: Bearer <access_token>` on TTS and STT requests. On
+ /// sends it as `Authorization: Bearer <access_token>` on TTS, STT and speech-to-speech
+ /// requests. On
/// WebSocket connections it can also go in the `api_key` query parameter. HTTP
/// requests must use the header.
/// A token works any number of times until it expires. It is accepted only on
@@ -53,13 +54,15 @@ partial void ProcessCreateAccessTokenResponseContent( /// `POST /waves/v1/tts`, `POST /waves/v1/tts/live`, `WSS /waves/v1/tts/live`, the
/// dedicated Lightning v3.1 routes (`POST /waves/v1/lightning-v3.1/get_speech`,
/// `POST /waves/v1/lightning-v3.1/stream`, `WSS /waves/v1/lightning-v3.1/get_speech/stream`),
- /// `WSS /waves/v1/s2s`, and the voice-listing routes. Every other
- /// route, including this one and `POST /waves/v1/pulse/get_text`, returns `403`
- /// to a token.
+ /// `WSS /waves/v1/s2s`, and the voice-listing routes (public catalog, no cloned
+ /// voices). Treat any route not listed as unavailable to tokens. This endpoint,
+ /// `POST /waves/v1/pulse/get_text`, voice cloning, pronunciation dictionaries,
+ /// analytics and chat completions return `403` to a token.
/// Requests made with a token are billed to the API key that minted it. Deleting
/// that key invalidates its tokens. A token is valid only in the region that
/// minted it. If your server and your users can be in different regions, mint and
- /// call through the same region-pinned hostname (for example `api.us.smallest.ai`).
+ /// call through the same region-pinned hostname: `api.india.smallest.ai` (Mumbai) or
+ /// `api.us.smallest.ai` (Oregon).
/// ```bash
/// curl -X POST "https://api.smallest.ai/waves/v1/auth/token" \
/// -H "Authorization: Bearer $SMALLEST_API_KEY" \
@@ -92,7 +95,8 @@ partial void ProcessCreateAccessTokenResponseContent( /// Create access token
/// Mint a short-lived access token from your API key. Call this from your server,
/// then hand the returned `access_token` to a browser or mobile client. The client
- /// sends it as `Authorization: Bearer <access_token>` on TTS and STT requests. On
+ /// sends it as `Authorization: Bearer <access_token>` on TTS, STT and speech-to-speech
+ /// requests. On
/// WebSocket connections it can also go in the `api_key` query parameter. HTTP
/// requests must use the header.
/// A token works any number of times until it expires. It is accepted only on
@@ -100,13 +104,15 @@ partial void ProcessCreateAccessTokenResponseContent( /// `POST /waves/v1/tts`, `POST /waves/v1/tts/live`, `WSS /waves/v1/tts/live`, the
/// dedicated Lightning v3.1 routes (`POST /waves/v1/lightning-v3.1/get_speech`,
/// `POST /waves/v1/lightning-v3.1/stream`, `WSS /waves/v1/lightning-v3.1/get_speech/stream`),
- /// `WSS /waves/v1/s2s`, and the voice-listing routes. Every other
- /// route, including this one and `POST /waves/v1/pulse/get_text`, returns `403`
- /// to a token.
+ /// `WSS /waves/v1/s2s`, and the voice-listing routes (public catalog, no cloned
+ /// voices). Treat any route not listed as unavailable to tokens. This endpoint,
+ /// `POST /waves/v1/pulse/get_text`, voice cloning, pronunciation dictionaries,
+ /// analytics and chat completions return `403` to a token.
/// Requests made with a token are billed to the API key that minted it. Deleting
/// that key invalidates its tokens. A token is valid only in the region that
/// minted it. If your server and your users can be in different regions, mint and
- /// call through the same region-pinned hostname (for example `api.us.smallest.ai`).
+ /// call through the same region-pinned hostname: `api.india.smallest.ai` (Mumbai) or
+ /// `api.us.smallest.ai` (Oregon).
/// ```bash
/// curl -X POST "https://api.smallest.ai/waves/v1/auth/token" \
/// -H "Authorization: Bearer $SMALLEST_API_KEY" \
@@ -670,7 +676,8 @@ partial void ProcessCreateAccessTokenResponseContent( /// Create access token
/// Mint a short-lived access token from your API key. Call this from your server,
/// then hand the returned `access_token` to a browser or mobile client. The client
- /// sends it as `Authorization: Bearer <access_token>` on TTS and STT requests. On
+ /// sends it as `Authorization: Bearer <access_token>` on TTS, STT and speech-to-speech
+ /// requests. On
/// WebSocket connections it can also go in the `api_key` query parameter. HTTP
/// requests must use the header.
/// A token works any number of times until it expires. It is accepted only on
@@ -678,13 +685,15 @@ partial void ProcessCreateAccessTokenResponseContent( /// `POST /waves/v1/tts`, `POST /waves/v1/tts/live`, `WSS /waves/v1/tts/live`, the
/// dedicated Lightning v3.1 routes (`POST /waves/v1/lightning-v3.1/get_speech`,
/// `POST /waves/v1/lightning-v3.1/stream`, `WSS /waves/v1/lightning-v3.1/get_speech/stream`),
- /// `WSS /waves/v1/s2s`, and the voice-listing routes. Every other
- /// route, including this one and `POST /waves/v1/pulse/get_text`, returns `403`
- /// to a token.
+ /// `WSS /waves/v1/s2s`, and the voice-listing routes (public catalog, no cloned
+ /// voices). Treat any route not listed as unavailable to tokens. This endpoint,
+ /// `POST /waves/v1/pulse/get_text`, voice cloning, pronunciation dictionaries,
+ /// analytics and chat completions return `403` to a token.
/// Requests made with a token are billed to the API key that minted it. Deleting
/// that key invalidates its tokens. A token is valid only in the region that
/// minted it. If your server and your users can be in different regions, mint and
- /// call through the same region-pinned hostname (for example `api.us.smallest.ai`).
+ /// call through the same region-pinned hostname: `api.india.smallest.ai` (Mumbai) or
+ /// `api.us.smallest.ai` (Oregon).
/// ```bash
/// curl -X POST "https://api.smallest.ai/waves/v1/auth/token" \
/// -H "Authorization: Bearer $SMALLEST_API_KEY" \
diff --git a/src/libs/SmallestAI/Generated/SmallestAI.IAuthClient.CreateAccessToken.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.IAuthClient.CreateAccessToken.g.cs index eb22009..260ba90 100644 --- a/src/libs/SmallestAI/Generated/SmallestAI.IAuthClient.CreateAccessToken.g.cs +++ b/src/libs/SmallestAI/Generated/SmallestAI.IAuthClient.CreateAccessToken.g.cs @@ -8,7 +8,8 @@ public partial interface IAuthClient /// Create access token
/// Mint a short-lived access token from your API key. Call this from your server,
/// then hand the returned `access_token` to a browser or mobile client. The client
- /// sends it as `Authorization: Bearer <access_token>` on TTS and STT requests. On
+ /// sends it as `Authorization: Bearer <access_token>` on TTS, STT and speech-to-speech
+ /// requests. On
/// WebSocket connections it can also go in the `api_key` query parameter. HTTP
/// requests must use the header.
/// A token works any number of times until it expires. It is accepted only on
@@ -16,13 +17,15 @@ public partial interface IAuthClient /// `POST /waves/v1/tts`, `POST /waves/v1/tts/live`, `WSS /waves/v1/tts/live`, the
/// dedicated Lightning v3.1 routes (`POST /waves/v1/lightning-v3.1/get_speech`,
/// `POST /waves/v1/lightning-v3.1/stream`, `WSS /waves/v1/lightning-v3.1/get_speech/stream`),
- /// `WSS /waves/v1/s2s`, and the voice-listing routes. Every other
- /// route, including this one and `POST /waves/v1/pulse/get_text`, returns `403`
- /// to a token.
+ /// `WSS /waves/v1/s2s`, and the voice-listing routes (public catalog, no cloned
+ /// voices). Treat any route not listed as unavailable to tokens. This endpoint,
+ /// `POST /waves/v1/pulse/get_text`, voice cloning, pronunciation dictionaries,
+ /// analytics and chat completions return `403` to a token.
/// Requests made with a token are billed to the API key that minted it. Deleting
/// that key invalidates its tokens. A token is valid only in the region that
/// minted it. If your server and your users can be in different regions, mint and
- /// call through the same region-pinned hostname (for example `api.us.smallest.ai`).
+ /// call through the same region-pinned hostname: `api.india.smallest.ai` (Mumbai) or
+ /// `api.us.smallest.ai` (Oregon).
/// ```bash
/// curl -X POST "https://api.smallest.ai/waves/v1/auth/token" \
/// -H "Authorization: Bearer $SMALLEST_API_KEY" \
@@ -45,7 +48,8 @@ public partial interface IAuthClient /// Create access token
/// Mint a short-lived access token from your API key. Call this from your server,
/// then hand the returned `access_token` to a browser or mobile client. The client
- /// sends it as `Authorization: Bearer <access_token>` on TTS and STT requests. On
+ /// sends it as `Authorization: Bearer <access_token>` on TTS, STT and speech-to-speech
+ /// requests. On
/// WebSocket connections it can also go in the `api_key` query parameter. HTTP
/// requests must use the header.
/// A token works any number of times until it expires. It is accepted only on
@@ -53,13 +57,15 @@ public partial interface IAuthClient /// `POST /waves/v1/tts`, `POST /waves/v1/tts/live`, `WSS /waves/v1/tts/live`, the
/// dedicated Lightning v3.1 routes (`POST /waves/v1/lightning-v3.1/get_speech`,
/// `POST /waves/v1/lightning-v3.1/stream`, `WSS /waves/v1/lightning-v3.1/get_speech/stream`),
- /// `WSS /waves/v1/s2s`, and the voice-listing routes. Every other
- /// route, including this one and `POST /waves/v1/pulse/get_text`, returns `403`
- /// to a token.
+ /// `WSS /waves/v1/s2s`, and the voice-listing routes (public catalog, no cloned
+ /// voices). Treat any route not listed as unavailable to tokens. This endpoint,
+ /// `POST /waves/v1/pulse/get_text`, voice cloning, pronunciation dictionaries,
+ /// analytics and chat completions return `403` to a token.
/// Requests made with a token are billed to the API key that minted it. Deleting
/// that key invalidates its tokens. A token is valid only in the region that
/// minted it. If your server and your users can be in different regions, mint and
- /// call through the same region-pinned hostname (for example `api.us.smallest.ai`).
+ /// call through the same region-pinned hostname: `api.india.smallest.ai` (Mumbai) or
+ /// `api.us.smallest.ai` (Oregon).
/// ```bash
/// curl -X POST "https://api.smallest.ai/waves/v1/auth/token" \
/// -H "Authorization: Bearer $SMALLEST_API_KEY" \
@@ -82,7 +88,8 @@ public partial interface IAuthClient /// Create access token
/// Mint a short-lived access token from your API key. Call this from your server,
/// then hand the returned `access_token` to a browser or mobile client. The client
- /// sends it as `Authorization: Bearer <access_token>` on TTS and STT requests. On
+ /// sends it as `Authorization: Bearer <access_token>` on TTS, STT and speech-to-speech
+ /// requests. On
/// WebSocket connections it can also go in the `api_key` query parameter. HTTP
/// requests must use the header.
/// A token works any number of times until it expires. It is accepted only on
@@ -90,13 +97,15 @@ public partial interface IAuthClient /// `POST /waves/v1/tts`, `POST /waves/v1/tts/live`, `WSS /waves/v1/tts/live`, the
/// dedicated Lightning v3.1 routes (`POST /waves/v1/lightning-v3.1/get_speech`,
/// `POST /waves/v1/lightning-v3.1/stream`, `WSS /waves/v1/lightning-v3.1/get_speech/stream`),
- /// `WSS /waves/v1/s2s`, and the voice-listing routes. Every other
- /// route, including this one and `POST /waves/v1/pulse/get_text`, returns `403`
- /// to a token.
+ /// `WSS /waves/v1/s2s`, and the voice-listing routes (public catalog, no cloned
+ /// voices). Treat any route not listed as unavailable to tokens. This endpoint,
+ /// `POST /waves/v1/pulse/get_text`, voice cloning, pronunciation dictionaries,
+ /// analytics and chat completions return `403` to a token.
/// Requests made with a token are billed to the API key that minted it. Deleting
/// that key invalidates its tokens. A token is valid only in the region that
/// minted it. If your server and your users can be in different regions, mint and
- /// call through the same region-pinned hostname (for example `api.us.smallest.ai`).
+ /// call through the same region-pinned hostname: `api.india.smallest.ai` (Mumbai) or
+ /// `api.us.smallest.ai` (Oregon).
/// ```bash
/// curl -X POST "https://api.smallest.ai/waves/v1/auth/token" \
/// -H "Authorization: Bearer $SMALLEST_API_KEY" \
diff --git a/src/libs/SmallestAI/openapi.yaml b/src/libs/SmallestAI/openapi.yaml index 4e117f3..a81fc14 100644 --- a/src/libs/SmallestAI/openapi.yaml +++ b/src/libs/SmallestAI/openapi.yaml @@ -9,7 +9,7 @@ "post": { "operationId": "auth_create_access_token", "summary": "Create access token", - "description": "Mint a short-lived access token from your API key. Call this from your server,\nthen hand the returned `access_token` to a browser or mobile client. The client\nsends it as `Authorization: Bearer ` on TTS and STT requests. On\nWebSocket connections it can also go in the `api_key` query parameter. HTTP\nrequests must use the header.\n\nA token works any number of times until it expires. It is accepted only on\nTTS, STT and speech-to-speech inference routes: `POST /waves/v1/stt/`, `WSS /waves/v1/stt/live`,\n`POST /waves/v1/tts`, `POST /waves/v1/tts/live`, `WSS /waves/v1/tts/live`, the\ndedicated Lightning v3.1 routes (`POST /waves/v1/lightning-v3.1/get_speech`,\n`POST /waves/v1/lightning-v3.1/stream`, `WSS /waves/v1/lightning-v3.1/get_speech/stream`),\n`WSS /waves/v1/s2s`, and the voice-listing routes. Every other\nroute, including this one and `POST /waves/v1/pulse/get_text`, returns `403`\nto a token.\n\nRequests made with a token are billed to the API key that minted it. Deleting\nthat key invalidates its tokens. A token is valid only in the region that\nminted it. If your server and your users can be in different regions, mint and\ncall through the same region-pinned hostname (for example `api.us.smallest.ai`).\n\n```bash\ncurl -X POST \"https://api.smallest.ai/waves/v1/auth/token\" \\\n -H \"Authorization: Bearer $SMALLEST_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"ttl_seconds\": 300}'\n```\n\nSee the [Authentication guide](/models/api-reference/token-based-authentication)\nfor the end-to-end server and client flow.\n", + "description": "Mint a short-lived access token from your API key. Call this from your server,\nthen hand the returned `access_token` to a browser or mobile client. The client\nsends it as `Authorization: Bearer ` on TTS, STT and speech-to-speech\nrequests. On\nWebSocket connections it can also go in the `api_key` query parameter. HTTP\nrequests must use the header.\n\nA token works any number of times until it expires. It is accepted only on\nTTS, STT and speech-to-speech inference routes: `POST /waves/v1/stt/`, `WSS /waves/v1/stt/live`,\n`POST /waves/v1/tts`, `POST /waves/v1/tts/live`, `WSS /waves/v1/tts/live`, the\ndedicated Lightning v3.1 routes (`POST /waves/v1/lightning-v3.1/get_speech`,\n`POST /waves/v1/lightning-v3.1/stream`, `WSS /waves/v1/lightning-v3.1/get_speech/stream`),\n`WSS /waves/v1/s2s`, and the voice-listing routes (public catalog, no cloned\nvoices). Treat any route not listed as unavailable to tokens. This endpoint,\n`POST /waves/v1/pulse/get_text`, voice cloning, pronunciation dictionaries,\nanalytics and chat completions return `403` to a token.\n\nRequests made with a token are billed to the API key that minted it. Deleting\nthat key invalidates its tokens. A token is valid only in the region that\nminted it. If your server and your users can be in different regions, mint and\ncall through the same region-pinned hostname: `api.india.smallest.ai` (Mumbai) or\n`api.us.smallest.ai` (Oregon).\n\n```bash\ncurl -X POST \"https://api.smallest.ai/waves/v1/auth/token\" \\\n -H \"Authorization: Bearer $SMALLEST_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"ttl_seconds\": 300}'\n```\n\nSee the [Authentication guide](/models/api-reference/token-based-authentication)\nfor the end-to-end server and client flow.\n", "tags": [ "auth" ],