telnyx 7.30.0 → 7.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/client.d.mts +22 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +22 -4
- package/client.d.ts.map +1 -1
- package/client.js +18 -0
- package/client.js.map +1 -1
- package/client.mjs +18 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-gateways/agent-gateways.d.mts +360 -0
- package/resources/agent-gateways/agent-gateways.d.mts.map +1 -0
- package/resources/agent-gateways/agent-gateways.d.ts +360 -0
- package/resources/agent-gateways/agent-gateways.d.ts.map +1 -0
- package/resources/agent-gateways/agent-gateways.js +140 -0
- package/resources/agent-gateways/agent-gateways.js.map +1 -0
- package/resources/agent-gateways/agent-gateways.mjs +135 -0
- package/resources/agent-gateways/agent-gateways.mjs.map +1 -0
- package/resources/agent-gateways/apis.d.mts +300 -0
- package/resources/agent-gateways/apis.d.mts.map +1 -0
- package/resources/agent-gateways/apis.d.ts +300 -0
- package/resources/agent-gateways/apis.d.ts.map +1 -0
- package/resources/agent-gateways/apis.js +89 -0
- package/resources/agent-gateways/apis.js.map +1 -0
- package/resources/agent-gateways/apis.mjs +85 -0
- package/resources/agent-gateways/apis.mjs.map +1 -0
- package/resources/agent-gateways/guardrails.d.mts +210 -0
- package/resources/agent-gateways/guardrails.d.mts.map +1 -0
- package/resources/agent-gateways/guardrails.d.ts +210 -0
- package/resources/agent-gateways/guardrails.d.ts.map +1 -0
- package/resources/agent-gateways/guardrails.js +96 -0
- package/resources/agent-gateways/guardrails.js.map +1 -0
- package/resources/agent-gateways/guardrails.mjs +92 -0
- package/resources/agent-gateways/guardrails.mjs.map +1 -0
- package/resources/agent-gateways/index.d.mts +9 -0
- package/resources/agent-gateways/index.d.mts.map +1 -0
- package/resources/agent-gateways/index.d.ts +9 -0
- package/resources/agent-gateways/index.d.ts.map +1 -0
- package/resources/agent-gateways/index.js +21 -0
- package/resources/agent-gateways/index.js.map +1 -0
- package/resources/agent-gateways/index.mjs +10 -0
- package/resources/agent-gateways/index.mjs.map +1 -0
- package/resources/agent-gateways/keys/index.d.mts +3 -0
- package/resources/agent-gateways/keys/index.d.mts.map +1 -0
- package/resources/agent-gateways/keys/index.d.ts +3 -0
- package/resources/agent-gateways/keys/index.d.ts.map +1 -0
- package/resources/agent-gateways/keys/index.js +9 -0
- package/resources/agent-gateways/keys/index.js.map +1 -0
- package/resources/agent-gateways/keys/index.mjs +4 -0
- package/resources/agent-gateways/keys/index.mjs.map +1 -0
- package/resources/agent-gateways/keys/keys.d.mts +329 -0
- package/resources/agent-gateways/keys/keys.d.mts.map +1 -0
- package/resources/agent-gateways/keys/keys.d.ts +329 -0
- package/resources/agent-gateways/keys/keys.d.ts.map +1 -0
- package/resources/agent-gateways/keys/keys.js +99 -0
- package/resources/agent-gateways/keys/keys.js.map +1 -0
- package/resources/agent-gateways/keys/keys.mjs +94 -0
- package/resources/agent-gateways/keys/keys.mjs.map +1 -0
- package/resources/agent-gateways/keys/tool-permissions.d.mts +103 -0
- package/resources/agent-gateways/keys/tool-permissions.d.mts.map +1 -0
- package/resources/agent-gateways/keys/tool-permissions.d.ts +103 -0
- package/resources/agent-gateways/keys/tool-permissions.d.ts.map +1 -0
- package/resources/agent-gateways/keys/tool-permissions.js +62 -0
- package/resources/agent-gateways/keys/tool-permissions.js.map +1 -0
- package/resources/agent-gateways/keys/tool-permissions.mjs +58 -0
- package/resources/agent-gateways/keys/tool-permissions.mjs.map +1 -0
- package/resources/agent-gateways/keys.d.mts +2 -0
- package/resources/agent-gateways/keys.d.mts.map +1 -0
- package/resources/agent-gateways/keys.d.ts +2 -0
- package/resources/agent-gateways/keys.d.ts.map +1 -0
- package/resources/agent-gateways/keys.js +6 -0
- package/resources/agent-gateways/keys.js.map +1 -0
- package/resources/agent-gateways/keys.mjs +3 -0
- package/resources/agent-gateways/keys.mjs.map +1 -0
- package/resources/agent-gateways/mcp-servers.d.mts +246 -0
- package/resources/agent-gateways/mcp-servers.d.mts.map +1 -0
- package/resources/agent-gateways/mcp-servers.d.ts +246 -0
- package/resources/agent-gateways/mcp-servers.d.ts.map +1 -0
- package/resources/agent-gateways/mcp-servers.js +97 -0
- package/resources/agent-gateways/mcp-servers.js.map +1 -0
- package/resources/agent-gateways/mcp-servers.mjs +93 -0
- package/resources/agent-gateways/mcp-servers.mjs.map +1 -0
- package/resources/agent-gateways/policies.d.mts +266 -0
- package/resources/agent-gateways/policies.d.mts.map +1 -0
- package/resources/agent-gateways/policies.d.ts +266 -0
- package/resources/agent-gateways/policies.d.ts.map +1 -0
- package/resources/agent-gateways/policies.js +97 -0
- package/resources/agent-gateways/policies.js.map +1 -0
- package/resources/agent-gateways/policies.mjs +93 -0
- package/resources/agent-gateways/policies.mjs.map +1 -0
- package/resources/agent-gateways/policy-attachments.d.mts +123 -0
- package/resources/agent-gateways/policy-attachments.d.mts.map +1 -0
- package/resources/agent-gateways/policy-attachments.d.ts +123 -0
- package/resources/agent-gateways/policy-attachments.d.ts.map +1 -0
- package/resources/agent-gateways/policy-attachments.js +63 -0
- package/resources/agent-gateways/policy-attachments.js.map +1 -0
- package/resources/agent-gateways/policy-attachments.mjs +59 -0
- package/resources/agent-gateways/policy-attachments.mjs.map +1 -0
- package/resources/agent-gateways/teams/index.d.mts +3 -0
- package/resources/agent-gateways/teams/index.d.mts.map +1 -0
- package/resources/agent-gateways/teams/index.d.ts +3 -0
- package/resources/agent-gateways/teams/index.d.ts.map +1 -0
- package/resources/agent-gateways/teams/index.js +9 -0
- package/resources/agent-gateways/teams/index.js.map +1 -0
- package/resources/agent-gateways/teams/index.mjs +4 -0
- package/resources/agent-gateways/teams/index.mjs.map +1 -0
- package/resources/agent-gateways/teams/teams.d.mts +210 -0
- package/resources/agent-gateways/teams/teams.d.mts.map +1 -0
- package/resources/agent-gateways/teams/teams.d.ts +210 -0
- package/resources/agent-gateways/teams/teams.d.ts.map +1 -0
- package/resources/agent-gateways/teams/teams.js +98 -0
- package/resources/agent-gateways/teams/teams.js.map +1 -0
- package/resources/agent-gateways/teams/teams.mjs +93 -0
- package/resources/agent-gateways/teams/teams.mjs.map +1 -0
- package/resources/agent-gateways/teams/tool-permissions.d.mts +82 -0
- package/resources/agent-gateways/teams/tool-permissions.d.mts.map +1 -0
- package/resources/agent-gateways/teams/tool-permissions.d.ts +82 -0
- package/resources/agent-gateways/teams/tool-permissions.d.ts.map +1 -0
- package/resources/agent-gateways/teams/tool-permissions.js +62 -0
- package/resources/agent-gateways/teams/tool-permissions.js.map +1 -0
- package/resources/agent-gateways/teams/tool-permissions.mjs +58 -0
- package/resources/agent-gateways/teams/tool-permissions.mjs.map +1 -0
- package/resources/agent-gateways/teams.d.mts +2 -0
- package/resources/agent-gateways/teams.d.mts.map +1 -0
- package/resources/agent-gateways/teams.d.ts +2 -0
- package/resources/agent-gateways/teams.d.ts.map +1 -0
- package/resources/agent-gateways/teams.js +6 -0
- package/resources/agent-gateways/teams.js.map +1 -0
- package/resources/agent-gateways/teams.mjs +3 -0
- package/resources/agent-gateways/teams.mjs.map +1 -0
- package/resources/agent-gateways.d.mts +2 -0
- package/resources/agent-gateways.d.mts.map +1 -0
- package/resources/agent-gateways.d.ts +2 -0
- package/resources/agent-gateways.d.ts.map +1 -0
- package/resources/agent-gateways.js +6 -0
- package/resources/agent-gateways.js.map +1 -0
- package/resources/agent-gateways.mjs +3 -0
- package/resources/agent-gateways.mjs.map +1 -0
- package/resources/ai/assistants/assistants.d.mts +23 -9
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +23 -9
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/memory/namespaces/index.d.mts +1 -1
- package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/index.d.ts +1 -1
- package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/index.js.map +1 -1
- package/resources/ai/memory/namespaces/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.mts +2 -2
- package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.ts +2 -2
- package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.mts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts +20 -2
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts +20 -2
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
- package/resources/calendar-connections/calendar-connections.d.mts +380 -0
- package/resources/calendar-connections/calendar-connections.d.mts.map +1 -0
- package/resources/calendar-connections/calendar-connections.d.ts +380 -0
- package/resources/calendar-connections/calendar-connections.d.ts.map +1 -0
- package/resources/calendar-connections/calendar-connections.js +102 -0
- package/resources/calendar-connections/calendar-connections.js.map +1 -0
- package/resources/calendar-connections/calendar-connections.mjs +97 -0
- package/resources/calendar-connections/calendar-connections.mjs.map +1 -0
- package/resources/calendar-connections/index.d.mts +3 -0
- package/resources/calendar-connections/index.d.mts.map +1 -0
- package/resources/calendar-connections/index.d.ts +3 -0
- package/resources/calendar-connections/index.d.ts.map +1 -0
- package/resources/calendar-connections/index.js +9 -0
- package/resources/calendar-connections/index.js.map +1 -0
- package/resources/calendar-connections/index.mjs +4 -0
- package/resources/calendar-connections/index.mjs.map +1 -0
- package/resources/calendar-connections/meetings.d.mts +149 -0
- package/resources/calendar-connections/meetings.d.mts.map +1 -0
- package/resources/calendar-connections/meetings.d.ts +149 -0
- package/resources/calendar-connections/meetings.d.ts.map +1 -0
- package/resources/calendar-connections/meetings.js +47 -0
- package/resources/calendar-connections/meetings.js.map +1 -0
- package/resources/calendar-connections/meetings.mjs +43 -0
- package/resources/calendar-connections/meetings.mjs.map +1 -0
- package/resources/calendar-connections.d.mts +2 -0
- package/resources/calendar-connections.d.mts.map +1 -0
- package/resources/calendar-connections.d.ts +2 -0
- package/resources/calendar-connections.d.ts.map +1 -0
- package/resources/calendar-connections.js +6 -0
- package/resources/calendar-connections.js.map +1 -0
- package/resources/calendar-connections.mjs +3 -0
- package/resources/calendar-connections.mjs.map +1 -0
- package/resources/calls/actions.d.mts +11 -5
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +11 -5
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +4 -4
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +4 -4
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/calls/index.d.mts +1 -1
- package/resources/calls/index.d.mts.map +1 -1
- package/resources/calls/index.d.ts +1 -1
- package/resources/calls/index.d.ts.map +1 -1
- package/resources/calls/index.js.map +1 -1
- package/resources/calls/index.mjs.map +1 -1
- package/resources/conferences/actions.d.mts +1 -1
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +1 -1
- package/resources/conferences/actions.d.ts.map +1 -1
- package/resources/index.d.mts +6 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -0
- package/resources/index.mjs.map +1 -1
- package/resources/meeting-bot/calendar.d.mts +34 -0
- package/resources/meeting-bot/calendar.d.mts.map +1 -0
- package/resources/meeting-bot/calendar.d.ts +34 -0
- package/resources/meeting-bot/calendar.d.ts.map +1 -0
- package/resources/meeting-bot/calendar.js +26 -0
- package/resources/meeting-bot/calendar.js.map +1 -0
- package/resources/meeting-bot/calendar.mjs +22 -0
- package/resources/meeting-bot/calendar.mjs.map +1 -0
- package/resources/meeting-bot/index.d.mts +3 -0
- package/resources/meeting-bot/index.d.mts.map +1 -0
- package/resources/meeting-bot/index.d.ts +3 -0
- package/resources/meeting-bot/index.d.ts.map +1 -0
- package/resources/meeting-bot/index.js +9 -0
- package/resources/meeting-bot/index.js.map +1 -0
- package/resources/meeting-bot/index.mjs +4 -0
- package/resources/meeting-bot/index.mjs.map +1 -0
- package/resources/meeting-bot/meeting-bot.d.mts +10 -0
- package/resources/meeting-bot/meeting-bot.d.mts.map +1 -0
- package/resources/meeting-bot/meeting-bot.d.ts +10 -0
- package/resources/meeting-bot/meeting-bot.d.ts.map +1 -0
- package/resources/meeting-bot/meeting-bot.js +17 -0
- package/resources/meeting-bot/meeting-bot.js.map +1 -0
- package/resources/meeting-bot/meeting-bot.mjs +12 -0
- package/resources/meeting-bot/meeting-bot.mjs.map +1 -0
- package/resources/meeting-bot.d.mts +2 -0
- package/resources/meeting-bot.d.mts.map +1 -0
- package/resources/meeting-bot.d.ts +2 -0
- package/resources/meeting-bot.d.ts.map +1 -0
- package/resources/meeting-bot.js +6 -0
- package/resources/meeting-bot.js.map +1 -0
- package/resources/meeting-bot.mjs +3 -0
- package/resources/meeting-bot.mjs.map +1 -0
- package/resources/meeting-sessions/actions.d.mts +17 -11
- package/resources/meeting-sessions/actions.d.mts.map +1 -1
- package/resources/meeting-sessions/actions.d.ts +17 -11
- package/resources/meeting-sessions/actions.d.ts.map +1 -1
- package/resources/meeting-sessions/actions.js +14 -10
- package/resources/meeting-sessions/actions.js.map +1 -1
- package/resources/meeting-sessions/actions.mjs +14 -10
- package/resources/meeting-sessions/actions.mjs.map +1 -1
- package/resources/meeting-sessions/artifacts.d.mts +8 -7
- package/resources/meeting-sessions/artifacts.d.mts.map +1 -1
- package/resources/meeting-sessions/artifacts.d.ts +8 -7
- package/resources/meeting-sessions/artifacts.d.ts.map +1 -1
- package/resources/meeting-sessions/artifacts.js +8 -7
- package/resources/meeting-sessions/artifacts.js.map +1 -1
- package/resources/meeting-sessions/artifacts.mjs +8 -7
- package/resources/meeting-sessions/artifacts.mjs.map +1 -1
- package/resources/meeting-sessions/index.d.mts +1 -1
- package/resources/meeting-sessions/index.d.mts.map +1 -1
- package/resources/meeting-sessions/index.d.ts +1 -1
- package/resources/meeting-sessions/index.d.ts.map +1 -1
- package/resources/meeting-sessions/index.js.map +1 -1
- package/resources/meeting-sessions/index.mjs.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.mts +281 -103
- package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.ts +281 -103
- package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.js +53 -21
- package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.mjs +53 -21
- package/resources/meeting-sessions/meeting-sessions.mjs.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.mts +45 -5
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +45 -5
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-speech/text-to-speech.js +8 -2
- package/resources/text-to-speech/text-to-speech.js.map +1 -1
- package/resources/text-to-speech/text-to-speech.mjs +8 -2
- package/resources/text-to-speech/text-to-speech.mjs.map +1 -1
- package/resources/user-profile.d.mts +284 -0
- package/resources/user-profile.d.mts.map +1 -0
- package/resources/user-profile.d.ts +284 -0
- package/resources/user-profile.d.ts.map +1 -0
- package/resources/user-profile.js +42 -0
- package/resources/user-profile.js.map +1 -0
- package/resources/user-profile.mjs +38 -0
- package/resources/user-profile.mjs.map +1 -0
- package/resources/webhooks.d.mts +129 -3
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +129 -3
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +90 -0
- package/src/resources/agent-gateways/agent-gateways.ts +605 -0
- package/src/resources/agent-gateways/apis.ts +388 -0
- package/src/resources/agent-gateways/guardrails.ts +304 -0
- package/src/resources/agent-gateways/index.ts +87 -0
- package/src/resources/agent-gateways/keys/index.ts +20 -0
- package/src/resources/agent-gateways/keys/keys.ts +437 -0
- package/src/resources/agent-gateways/keys/tool-permissions.ts +139 -0
- package/src/resources/agent-gateways/keys.ts +3 -0
- package/src/resources/agent-gateways/mcp-servers.ts +328 -0
- package/src/resources/agent-gateways/policies.ts +348 -0
- package/src/resources/agent-gateways/policy-attachments.ts +167 -0
- package/src/resources/agent-gateways/teams/index.ts +16 -0
- package/src/resources/agent-gateways/teams/teams.ts +282 -0
- package/src/resources/agent-gateways/teams/tool-permissions.ts +112 -0
- package/src/resources/agent-gateways/teams.ts +3 -0
- package/src/resources/agent-gateways.ts +3 -0
- package/src/resources/ai/assistants/assistants.ts +24 -9
- package/src/resources/ai/memory/namespaces/index.ts +1 -0
- package/src/resources/ai/memory/namespaces/namespaces.ts +2 -0
- package/src/resources/ai/memory/namespaces/profiles/index.ts +1 -0
- package/src/resources/ai/memory/namespaces/profiles/profiles.ts +24 -1
- package/src/resources/calendar-connections/calendar-connections.ts +486 -0
- package/src/resources/calendar-connections/index.ts +21 -0
- package/src/resources/calendar-connections/meetings.ts +205 -0
- package/src/resources/calendar-connections.ts +3 -0
- package/src/resources/calls/actions.ts +16 -4
- package/src/resources/calls/calls.ts +6 -2
- package/src/resources/calls/index.ts +1 -0
- package/src/resources/conferences/actions.ts +2 -1
- package/src/resources/index.ts +36 -0
- package/src/resources/meeting-bot/calendar.ts +54 -0
- package/src/resources/meeting-bot/index.ts +8 -0
- package/src/resources/meeting-bot/meeting-bot.ts +23 -0
- package/src/resources/meeting-bot.ts +3 -0
- package/src/resources/meeting-sessions/actions.ts +17 -11
- package/src/resources/meeting-sessions/artifacts.ts +8 -7
- package/src/resources/meeting-sessions/index.ts +4 -0
- package/src/resources/meeting-sessions/meeting-sessions.ts +321 -102
- package/src/resources/text-to-speech/text-to-speech.ts +81 -5
- package/src/resources/user-profile.ts +357 -0
- package/src/resources/webhooks.ts +216 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -42,7 +42,7 @@ export class TextToSpeech extends APIResource {
|
|
|
42
42
|
* parameters.
|
|
43
43
|
*
|
|
44
44
|
* Supported providers: `aws`, `telnyx`, `azure`, `elevenlabs`, `minimax`,
|
|
45
|
-
* `resemble`, `xai`, `humain`, `soniox`.
|
|
45
|
+
* `resemble`, `xai`, `humain`, `soniox`, `assemblyai`.
|
|
46
46
|
*
|
|
47
47
|
* The Telnyx `Ultra` model supports 44 languages with emotion control, speed
|
|
48
48
|
* adjustment, and volume control. Use the `telnyx` provider-specific parameters to
|
|
@@ -51,6 +51,12 @@ export class TextToSpeech extends APIResource {
|
|
|
51
51
|
* @example
|
|
52
52
|
* ```ts
|
|
53
53
|
* const response = await client.textToSpeech.generateSpeech({
|
|
54
|
+
* assemblyai: {
|
|
55
|
+
* voice_id: 'aai-jane',
|
|
56
|
+
* model_id: 'assemblyai-tts-1',
|
|
57
|
+
* language: 'en',
|
|
58
|
+
* audio_format: 'mp3',
|
|
59
|
+
* },
|
|
54
60
|
* aws: {
|
|
55
61
|
* language_code: 'string',
|
|
56
62
|
* text_type: 'text',
|
|
@@ -125,7 +131,7 @@ export class TextToSpeech extends APIResource {
|
|
|
125
131
|
* synthesize; receive JSON frames containing base64-encoded audio chunks.
|
|
126
132
|
*
|
|
127
133
|
* Supported providers: `aws`, `telnyx`, `azure`, `minimax`, `resemble`,
|
|
128
|
-
* `elevenlabs`, `xai`, `humain`, `soniox`.
|
|
134
|
+
* `elevenlabs`, `xai`, `humain`, `soniox`, `assemblyai`.
|
|
129
135
|
*
|
|
130
136
|
* **Connection flow:**
|
|
131
137
|
*
|
|
@@ -343,10 +349,26 @@ export interface TextToSpeechListVoicesParams {
|
|
|
343
349
|
/**
|
|
344
350
|
* Filter voices by provider. If omitted, voices from all providers are returned.
|
|
345
351
|
*/
|
|
346
|
-
provider?:
|
|
352
|
+
provider?:
|
|
353
|
+
| 'aws'
|
|
354
|
+
| 'telnyx'
|
|
355
|
+
| 'azure'
|
|
356
|
+
| 'elevenlabs'
|
|
357
|
+
| 'minimax'
|
|
358
|
+
| 'resemble'
|
|
359
|
+
| 'xai'
|
|
360
|
+
| 'humain'
|
|
361
|
+
| 'soniox'
|
|
362
|
+
| 'assemblyai';
|
|
347
363
|
}
|
|
348
364
|
|
|
349
365
|
export interface TextToSpeechGenerateSpeechParams {
|
|
366
|
+
/**
|
|
367
|
+
* AssemblyAI provider-specific parameters. Every voice speaks all six supported
|
|
368
|
+
* languages; set `language` to the language of the text.
|
|
369
|
+
*/
|
|
370
|
+
assemblyai?: TextToSpeechGenerateSpeechParams.Assemblyai;
|
|
371
|
+
|
|
350
372
|
/**
|
|
351
373
|
* AWS Polly provider-specific parameters.
|
|
352
374
|
*/
|
|
@@ -393,7 +415,17 @@ export interface TextToSpeechGenerateSpeechParams {
|
|
|
393
415
|
/**
|
|
394
416
|
* TTS provider. Required unless `voice` is provided.
|
|
395
417
|
*/
|
|
396
|
-
provider?:
|
|
418
|
+
provider?:
|
|
419
|
+
| 'aws'
|
|
420
|
+
| 'telnyx'
|
|
421
|
+
| 'azure'
|
|
422
|
+
| 'elevenlabs'
|
|
423
|
+
| 'minimax'
|
|
424
|
+
| 'resemble'
|
|
425
|
+
| 'xai'
|
|
426
|
+
| 'humain'
|
|
427
|
+
| 'soniox'
|
|
428
|
+
| 'assemblyai';
|
|
397
429
|
|
|
398
430
|
/**
|
|
399
431
|
* Resemble AI provider-specific parameters.
|
|
@@ -450,6 +482,40 @@ export interface TextToSpeechGenerateSpeechParams {
|
|
|
450
482
|
}
|
|
451
483
|
|
|
452
484
|
export namespace TextToSpeechGenerateSpeechParams {
|
|
485
|
+
/**
|
|
486
|
+
* AssemblyAI provider-specific parameters. Every voice speaks all six supported
|
|
487
|
+
* languages; set `language` to the language of the text.
|
|
488
|
+
*/
|
|
489
|
+
export interface Assemblyai {
|
|
490
|
+
/**
|
|
491
|
+
* AssemblyAI voice from the
|
|
492
|
+
* [voices listing](https://developers.telnyx.com/api-reference/text-to-speech-commands/list-available-voices),
|
|
493
|
+
* for example `aai-jane`.
|
|
494
|
+
*/
|
|
495
|
+
voice_id: string;
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Audio output format.
|
|
499
|
+
*/
|
|
500
|
+
audio_format?: 'mp3' | 'wav' | 'pcm_s16le' | 'pcm_mulaw' | 'pcm_alaw';
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* Two-letter ISO 639-1 code of the text. AssemblyAI does not detect the language.
|
|
504
|
+
*/
|
|
505
|
+
language?: 'en' | 'es' | 'de' | 'fr' | 'it' | 'pt';
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* AssemblyAI model.
|
|
509
|
+
*/
|
|
510
|
+
model_id?: 'assemblyai-tts-1';
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Audio sample rate in Hz. Defaults to 24000, or 8000 for `pcm_mulaw` and
|
|
514
|
+
* `pcm_alaw`.
|
|
515
|
+
*/
|
|
516
|
+
sample_rate?: 8000 | 16000 | 22050 | 24000 | 44100 | 48000;
|
|
517
|
+
}
|
|
518
|
+
|
|
453
519
|
/**
|
|
454
520
|
* AWS Polly provider-specific parameters.
|
|
455
521
|
*/
|
|
@@ -750,7 +816,17 @@ export interface TextToSpeechRetrieveSpeechParams {
|
|
|
750
816
|
* TTS provider. Defaults to `telnyx` if not specified. Ignored when `voice` is
|
|
751
817
|
* provided.
|
|
752
818
|
*/
|
|
753
|
-
provider?:
|
|
819
|
+
provider?:
|
|
820
|
+
| 'aws'
|
|
821
|
+
| 'telnyx'
|
|
822
|
+
| 'azure'
|
|
823
|
+
| 'elevenlabs'
|
|
824
|
+
| 'minimax'
|
|
825
|
+
| 'resemble'
|
|
826
|
+
| 'xai'
|
|
827
|
+
| 'humain'
|
|
828
|
+
| 'soniox'
|
|
829
|
+
| 'assemblyai';
|
|
754
830
|
|
|
755
831
|
/**
|
|
756
832
|
* Client-provided socket identifier for tracking. If not provided, one is
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Read and update the authenticated user's profile and data locality.
|
|
9
|
+
*/
|
|
10
|
+
export class UserProfileResource extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve the authenticated user's profile, including data locality and migration
|
|
13
|
+
* status.
|
|
14
|
+
*
|
|
15
|
+
* **Beta:** this API should be considered a beta integration target because it may
|
|
16
|
+
* change if user account settings require changes
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const userProfiles = await client.userProfile.list();
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
list(options?: RequestOptions): APIPromise<UserProfileListResponse> {
|
|
24
|
+
return this._client.get('/user_profile', options);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Update the authenticated user's profile using top-level JSON fields. Returns the
|
|
29
|
+
* updated profile.
|
|
30
|
+
*
|
|
31
|
+
* **Beta:** this API should be considered a beta integration target because it may
|
|
32
|
+
* change if user account settings require changes
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const response = await client.userProfile.patchAll();
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
patchAll(
|
|
40
|
+
body: UserProfilePatchAllParams,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): APIPromise<UserProfilePatchAllResponse> {
|
|
43
|
+
return this._client.patch('/user_profile', { body, ...options });
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The authenticated user's profile.
|
|
49
|
+
*/
|
|
50
|
+
export interface UserProfile {
|
|
51
|
+
/**
|
|
52
|
+
* Identifier of the user profile, distinct from the user ID.
|
|
53
|
+
*/
|
|
54
|
+
id?: number;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* First line of the profile address.
|
|
58
|
+
*/
|
|
59
|
+
address_1?: string | null;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Second line of the profile address.
|
|
63
|
+
*/
|
|
64
|
+
address_2?: string | null;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Business name associated with the profile.
|
|
68
|
+
*/
|
|
69
|
+
business_name?: string | null;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* City in the profile address.
|
|
73
|
+
*/
|
|
74
|
+
city?: string | null;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Country code in the profile address.
|
|
78
|
+
*/
|
|
79
|
+
country?: string | null;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* The user's data locality: USA (United States), DEU (Germany), AUS (Australia),
|
|
83
|
+
* UAE (United Arab Emirates), or CAN (Canada).
|
|
84
|
+
*/
|
|
85
|
+
data_locality?: 'USA' | 'DEU' | 'AUS' | 'UAE' | 'CAN' | null;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Status of the user's data locality migration, or null when no migration status
|
|
89
|
+
* is recorded.
|
|
90
|
+
*/
|
|
91
|
+
data_locality_migration_status?: 'not_started' | 'in_progress' | 'finished' | null;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Timestamp when the user's data locality was last changed, or null if it has not
|
|
95
|
+
* been changed.
|
|
96
|
+
*/
|
|
97
|
+
data_locality_updated_at?: string | null;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* The user's first name.
|
|
101
|
+
*/
|
|
102
|
+
first_name?: string | null;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* The user's last name.
|
|
106
|
+
*/
|
|
107
|
+
last_name?: string | null;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Contact phone number associated with the profile.
|
|
111
|
+
*/
|
|
112
|
+
phone_number?: string | null;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Identifies the type of resource.
|
|
116
|
+
*/
|
|
117
|
+
record_type?: 'user_profile';
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* State or region in the profile address.
|
|
121
|
+
*/
|
|
122
|
+
state?: string | null;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Timestamp of the most recent profile update.
|
|
126
|
+
*/
|
|
127
|
+
updated_at?: string;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Identifier of the user who owns this profile.
|
|
131
|
+
*/
|
|
132
|
+
user_id?: string;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Postal code in the profile address.
|
|
136
|
+
*/
|
|
137
|
+
zip?: string | null;
|
|
138
|
+
|
|
139
|
+
[k: string]: unknown;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface UserProfileListResponse {
|
|
143
|
+
/**
|
|
144
|
+
* The authenticated user's profile.
|
|
145
|
+
*/
|
|
146
|
+
data: UserProfile;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export interface UserProfilePatchAllResponse {
|
|
150
|
+
/**
|
|
151
|
+
* The authenticated user's profile.
|
|
152
|
+
*/
|
|
153
|
+
data: UserProfile;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export interface UserProfilePatchAllParams {
|
|
157
|
+
/**
|
|
158
|
+
* First line of the profile address.
|
|
159
|
+
*/
|
|
160
|
+
address_1?: string | null;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Second line of the profile address.
|
|
164
|
+
*/
|
|
165
|
+
address_2?: string | null;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Business name associated with the profile.
|
|
169
|
+
*/
|
|
170
|
+
business_name?: string | null;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* City in the profile address.
|
|
174
|
+
*/
|
|
175
|
+
city?: string | null;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Company size reported by the user.
|
|
179
|
+
*/
|
|
180
|
+
company_size?: string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Country code in the profile address.
|
|
184
|
+
*/
|
|
185
|
+
country?: string | null;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Data locality: USA (United States), DEU (Germany), AUS (Australia), UAE (United
|
|
189
|
+
* Arab Emirates), or CAN (Canada). A change is permitted only if data locality has
|
|
190
|
+
* not previously been changed. A successful change sets data_locality_updated_at
|
|
191
|
+
* and initializes data_locality_migration_status to not_started.
|
|
192
|
+
*/
|
|
193
|
+
data_locality?: 'USA' | 'DEU' | 'AUS' | 'UAE' | 'CAN';
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Default custom-pricing setting for managed accounts.
|
|
197
|
+
*/
|
|
198
|
+
default_managed_account_allow_custom_pricing?: boolean;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Default emergency terms-of-service inheritance setting for managed accounts,
|
|
202
|
+
* where supported.
|
|
203
|
+
*/
|
|
204
|
+
default_managed_account_inherit_emergency_terms_of_service?: boolean;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Default rollup-billing setting for managed accounts.
|
|
208
|
+
*/
|
|
209
|
+
default_managed_account_rollup_billing?: boolean;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Default setting for notifying the manager account.
|
|
213
|
+
*/
|
|
214
|
+
default_notify_manager_account?: boolean;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Default alphanumeric external PIN for phone numbers.
|
|
218
|
+
*/
|
|
219
|
+
default_numbers_external_pin?: string;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* The user's first name.
|
|
223
|
+
*/
|
|
224
|
+
first_name?: string | null;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Whether the user received a free number at signup.
|
|
228
|
+
*/
|
|
229
|
+
got_free_number_at_signup?: boolean;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* The user's last name.
|
|
233
|
+
*/
|
|
234
|
+
last_name?: string | null;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Low-balance notification frequency. Organization sub-users cannot set a non-null
|
|
238
|
+
* frequency. The resulting profile must have both a threshold and frequency, or
|
|
239
|
+
* neither.
|
|
240
|
+
*/
|
|
241
|
+
low_balance_notification_frequency?: 2 | 4 | 12 | 24 | null;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Low-balance notification threshold in the billing currency. The resulting
|
|
245
|
+
* profile must have both a threshold and notification frequency, or neither.
|
|
246
|
+
*/
|
|
247
|
+
low_balance_threshold_amount?: number | null;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Whether to notify the user when an invoice is available.
|
|
251
|
+
*/
|
|
252
|
+
notify_on_invoice_available?: boolean;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Whether to notify the user when an invoice is paid.
|
|
256
|
+
*/
|
|
257
|
+
notify_on_invoice_payment?: boolean;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Whether the user is an NPAC user.
|
|
261
|
+
*/
|
|
262
|
+
npac_user?: boolean;
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Build methods reported during onboarding.
|
|
266
|
+
*/
|
|
267
|
+
onboarding_build_method?: Array<string>;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Industries reported during onboarding.
|
|
271
|
+
*/
|
|
272
|
+
onboarding_industries?: Array<string>;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Monthly budget ranges reported during onboarding.
|
|
276
|
+
*/
|
|
277
|
+
onboarding_monthly_budget?: Array<string>;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Products of interest reported during onboarding.
|
|
281
|
+
*/
|
|
282
|
+
onboarding_product_interest?: Array<string>;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Onboarding project types.
|
|
286
|
+
*/
|
|
287
|
+
onboarding_project_types?: Array<string>;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Reasons for considering Telnyx.
|
|
291
|
+
*/
|
|
292
|
+
onboarding_reasons_for_consideration?: Array<string>;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Referral sources reported during onboarding.
|
|
296
|
+
*/
|
|
297
|
+
onboarding_referrer?: Array<string>;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Other onboarding use cases.
|
|
301
|
+
*/
|
|
302
|
+
onboarding_use_cases_other?: Array<string>;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Contact phone number associated with the profile.
|
|
306
|
+
*/
|
|
307
|
+
phone_number?: string | null;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Whether port-out PIN validation is enabled.
|
|
311
|
+
*/
|
|
312
|
+
port_out_pin_validation?: boolean;
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Primary use case for the account.
|
|
316
|
+
*/
|
|
317
|
+
primary_use_case?: string;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* The user's role.
|
|
321
|
+
*/
|
|
322
|
+
role?: string;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* State or region in the profile address.
|
|
326
|
+
*/
|
|
327
|
+
state?: string | null;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* User interface theme: 0 for dark or 1 for light.
|
|
331
|
+
*/
|
|
332
|
+
ui_theme?: 0 | 1;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Use cases reported by the user.
|
|
336
|
+
*/
|
|
337
|
+
use_cases?: Array<string>;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Whether the user opts in to subscriptions.
|
|
341
|
+
*/
|
|
342
|
+
user_subscription_opt_in?: boolean;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Postal code in the profile address.
|
|
346
|
+
*/
|
|
347
|
+
zip?: string | null;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export declare namespace UserProfileResource {
|
|
351
|
+
export {
|
|
352
|
+
type UserProfile as UserProfile,
|
|
353
|
+
type UserProfileListResponse as UserProfileListResponse,
|
|
354
|
+
type UserProfilePatchAllResponse as UserProfilePatchAllResponse,
|
|
355
|
+
type UserProfilePatchAllParams as UserProfilePatchAllParams,
|
|
356
|
+
};
|
|
357
|
+
}
|