diff --git a/src/libs/Soniox/Generated/Soniox.Models.CreateTemporaryApiKeyResponse.g.cs b/src/libs/Soniox/Generated/Soniox.Models.CreateTemporaryApiKeyResponse.g.cs index 4c34c14..e9f316e 100644 --- a/src/libs/Soniox/Generated/Soniox.Models.CreateTemporaryApiKeyResponse.g.cs +++ b/src/libs/Soniox/Generated/Soniox.Models.CreateTemporaryApiKeyResponse.g.cs @@ -4,7 +4,7 @@ namespace Soniox { /// - /// Example: {"api_key":"temp:WYJ67RBEFUWQXXPKYPD2UGXKWB","expires_at":"2025-02-22T22:47:37.150Z"} + /// Example: {"api_key":"snx_temp_AcsDGHvigal7tHRzzzqJI7EdJ5CFwk9C0PtXN_s_cUKJ.Oo1TyosFa7b3rgAcXA2bayqBFO7667gXROEu0mH0U4vgvlNzCqVGgTzitabbXlK7FKH-sSy0F1NKI1OOJzQaAw.YPj4oA","expires_at":"2025-02-22T22:47:37.150Z"} /// public sealed partial class CreateTemporaryApiKeyResponse { diff --git a/src/libs/Soniox/Generated/autosdk.generated-examples.json b/src/libs/Soniox/Generated/autosdk.generated-examples.json index 050813f..a2efaf3 100644 --- a/src/libs/Soniox/Generated/autosdk.generated-examples.json +++ b/src/libs/Soniox/Generated/autosdk.generated-examples.json @@ -6,7 +6,7 @@ "Slug": "create-temporary-api-key", "Description": "Creates a short-lived API key for specific temporary use cases. The key will automatically expire after the specified duration.\n\nUse \u0060single_use\u0060 and \u0060max_session_duration_seconds\u0060 to limit how the key can be used by a client. See the [Temporary API keys guide](https://soniox.com/docs/guides/temporary-api-keys) for details.", "Language": "csharp", - "Code": "using var client = new SonioxClient(apiKey);\n\nvar request = global::System.Text.Json.JsonSerializer.Deserialize\u003Cglobal::Soniox.CreateTemporaryApiKeyPayload\u003E(\n @\u0022{\n \u0022\u0022client_reference_id\u0022\u0022: \u0022\u0022reference_id\u0022\u0022,\n \u0022\u0022expires_in_seconds\u0022\u0022: 1800,\n \u0022\u0022max_session_duration_seconds\u0022\u0022: 120,\n \u0022\u0022single_use\u0022\u0022: true,\n \u0022\u0022usage_type\u0022\u0022: \u0022\u0022transcribe_websocket\u0022\u0022\n}\u0022)!;\n\nvar response = await client.Auth.CreateTemporaryApiKeyAsync(\n request: request\n);\n\n// Example response:\n// {\n// \u0022api_key\u0022: \u0022temp:WYJ67RBEFUWQXXPKYPD2UGXKWB\u0022,\n// \u0022expires_at\u0022: \u00222025-02-22T22:47:37.150Z\u0022\n// }", + "Code": "using var client = new SonioxClient(apiKey);\n\nvar request = global::System.Text.Json.JsonSerializer.Deserialize\u003Cglobal::Soniox.CreateTemporaryApiKeyPayload\u003E(\n @\u0022{\n \u0022\u0022client_reference_id\u0022\u0022: \u0022\u0022reference_id\u0022\u0022,\n \u0022\u0022expires_in_seconds\u0022\u0022: 1800,\n \u0022\u0022max_session_duration_seconds\u0022\u0022: 120,\n \u0022\u0022single_use\u0022\u0022: true,\n \u0022\u0022usage_type\u0022\u0022: \u0022\u0022transcribe_websocket\u0022\u0022\n}\u0022)!;\n\nvar response = await client.Auth.CreateTemporaryApiKeyAsync(\n request: request\n);\n\n// Example response:\n// {\n// \u0022api_key\u0022: \u0022snx_temp_AcsDGHvigal7tHRzzzqJI7EdJ5CFwk9C0PtXN_s_cUKJ.Oo1TyosFa7b3rgAcXA2bayqBFO7667gXROEu0mH0U4vgvlNzCqVGgTzitabbXlK7FKH-sSy0F1NKI1OOJzQaAw.YPj4oA\u0022,\n// \u0022expires_at\u0022: \u00222025-02-22T22:47:37.150Z\u0022\n// }", "Format": "sdk", "OperationId": "create_temporary_api_key", "Setup": "This example assumes \u0060using Soniox;\u0060 is in scope and \u0060apiKey\u0060 contains the required credential." diff --git a/src/libs/Soniox/openapi.yaml b/src/libs/Soniox/openapi.yaml index 6455cae..9621e8b 100644 --- a/src/libs/Soniox/openapi.yaml +++ b/src/libs/Soniox/openapi.yaml @@ -1724,7 +1724,7 @@ paths: schema: $ref: '#/components/schemas/CreateTemporaryApiKeyResponse' example: - api_key: temp:WYJ67RBEFUWQXXPKYPD2UGXKWB + api_key: snx_temp_AcsDGHvigal7tHRzzzqJI7EdJ5CFwk9C0PtXN_s_cUKJ.Oo1TyosFa7b3rgAcXA2bayqBFO7667gXROEu0mH0U4vgvlNzCqVGgTzitabbXlK7FKH-sSy0F1NKI1OOJzQaAw.YPj4oA expires_at: '2025-02-22T22:47:37.150Z' '400': description: | @@ -4306,7 +4306,7 @@ components: type: object CreateTemporaryApiKeyResponse: example: - api_key: temp:WYJ67RBEFUWQXXPKYPD2UGXKWB + api_key: snx_temp_AcsDGHvigal7tHRzzzqJI7EdJ5CFwk9C0PtXN_s_cUKJ.Oo1TyosFa7b3rgAcXA2bayqBFO7667gXROEu0mH0U4vgvlNzCqVGgTzitabbXlK7FKH-sSy0F1NKI1OOJzQaAw.YPj4oA expires_at: '2025-02-22T22:47:37.150Z' properties: api_key: