telnyx 6.83.0 → 7.2.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 +345 -3
- package/README.md +1 -49
- package/client.d.mts +96 -85
- package/client.d.mts.map +1 -1
- package/client.d.ts +96 -85
- package/client.d.ts.map +1 -1
- package/client.js +19 -7
- package/client.js.map +1 -1
- package/client.mjs +20 -8
- package/client.mjs.map +1 -1
- package/index.d.mts +0 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts +0 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -4
- package/index.js.map +1 -1
- package/index.mjs +0 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -2
- package/resources/advanced-orders.d.mts +9 -59
- package/resources/advanced-orders.d.mts.map +1 -1
- package/resources/advanced-orders.d.ts +9 -59
- package/resources/advanced-orders.d.ts.map +1 -1
- package/resources/advanced-orders.js +1 -1
- package/resources/advanced-orders.mjs +1 -1
- package/resources/ai/ai.d.mts +266 -26
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +266 -26
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js +68 -6
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs +71 -9
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +675 -11
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +675 -11
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js +4 -0
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs +5 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/index.d.mts +4 -3
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +4 -3
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js +3 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs +2 -1
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/instructions.d.mts +53 -0
- package/resources/ai/assistants/instructions.d.mts.map +1 -0
- package/resources/ai/assistants/instructions.d.ts +53 -0
- package/resources/ai/assistants/instructions.d.ts.map +1 -0
- package/resources/ai/assistants/instructions.js +47 -0
- package/resources/ai/assistants/instructions.js.map +1 -0
- package/resources/ai/assistants/instructions.mjs +43 -0
- package/resources/ai/assistants/instructions.mjs.map +1 -0
- package/resources/ai/assistants/scheduled-events.d.mts +41 -1
- package/resources/ai/assistants/scheduled-events.d.mts.map +1 -1
- package/resources/ai/assistants/scheduled-events.d.ts +41 -1
- package/resources/ai/assistants/scheduled-events.d.ts.map +1 -1
- package/resources/ai/assistants/tags.d.mts +14 -16
- package/resources/ai/assistants/tags.d.mts.map +1 -1
- package/resources/ai/assistants/tags.d.ts +14 -16
- package/resources/ai/assistants/tags.d.ts.map +1 -1
- package/resources/ai/assistants/tags.js +6 -5
- package/resources/ai/assistants/tags.js.map +1 -1
- package/resources/ai/assistants/tags.mjs +6 -5
- package/resources/ai/assistants/tags.mjs.map +1 -1
- package/resources/ai/assistants/tests/runs.d.mts +3 -0
- package/resources/ai/assistants/tests/runs.d.mts.map +1 -1
- package/resources/ai/assistants/tests/runs.d.ts +3 -0
- package/resources/ai/assistants/tests/runs.d.ts.map +1 -1
- package/resources/ai/assistants/tools.d.mts +7 -1
- package/resources/ai/assistants/tools.d.mts.map +1 -1
- package/resources/ai/assistants/tools.d.ts +7 -1
- package/resources/ai/assistants/tools.d.ts.map +1 -1
- package/resources/ai/assistants/versions.d.mts +25 -3
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +25 -3
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/chat.d.mts +171 -1
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +171 -1
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/clusters.d.mts +3 -0
- package/resources/ai/clusters.d.mts.map +1 -1
- package/resources/ai/clusters.d.ts +3 -0
- package/resources/ai/clusters.d.ts.map +1 -1
- package/resources/ai/index.d.mts +8 -8
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +8 -8
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs +2 -2
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/integrations/index.d.mts +1 -1
- package/resources/ai/integrations/index.d.mts.map +1 -1
- package/resources/ai/integrations/index.d.ts +1 -1
- package/resources/ai/integrations/index.d.ts.map +1 -1
- package/resources/ai/integrations/index.js.map +1 -1
- package/resources/ai/integrations/index.mjs.map +1 -1
- package/resources/ai/integrations/integrations.d.mts +4 -15
- package/resources/ai/integrations/integrations.d.mts.map +1 -1
- package/resources/ai/integrations/integrations.d.ts +4 -15
- package/resources/ai/integrations/integrations.d.ts.map +1 -1
- package/resources/ai/integrations/integrations.js.map +1 -1
- package/resources/ai/integrations/integrations.mjs.map +1 -1
- package/resources/ai/mcp-servers.d.mts +14 -35
- package/resources/ai/mcp-servers.d.mts.map +1 -1
- package/resources/ai/mcp-servers.d.ts +14 -35
- package/resources/ai/mcp-servers.d.ts.map +1 -1
- package/resources/ai/mcp-servers.js +5 -2
- package/resources/ai/mcp-servers.js.map +1 -1
- package/resources/ai/mcp-servers.mjs +5 -2
- package/resources/ai/mcp-servers.mjs.map +1 -1
- package/resources/ai/missions/index.d.mts +2 -2
- package/resources/ai/missions/index.d.mts.map +1 -1
- package/resources/ai/missions/index.d.ts +2 -2
- package/resources/ai/missions/index.d.ts.map +1 -1
- package/resources/ai/missions/index.js.map +1 -1
- package/resources/ai/missions/index.mjs.map +1 -1
- package/resources/ai/missions/knowledge-bases.d.mts +9 -0
- package/resources/ai/missions/knowledge-bases.d.mts.map +1 -1
- package/resources/ai/missions/knowledge-bases.d.ts +9 -0
- package/resources/ai/missions/knowledge-bases.d.ts.map +1 -1
- package/resources/ai/missions/mcp-servers.d.mts +9 -0
- package/resources/ai/missions/mcp-servers.d.mts.map +1 -1
- package/resources/ai/missions/mcp-servers.d.ts +9 -0
- package/resources/ai/missions/mcp-servers.d.ts.map +1 -1
- package/resources/ai/missions/missions.d.mts +25 -21
- package/resources/ai/missions/missions.d.mts.map +1 -1
- package/resources/ai/missions/missions.d.ts +25 -21
- package/resources/ai/missions/missions.d.ts.map +1 -1
- package/resources/ai/missions/missions.js +6 -5
- package/resources/ai/missions/missions.js.map +1 -1
- package/resources/ai/missions/missions.mjs +6 -5
- package/resources/ai/missions/missions.mjs.map +1 -1
- package/resources/ai/missions/runs/events.d.mts +28 -23
- package/resources/ai/missions/runs/events.d.mts.map +1 -1
- package/resources/ai/missions/runs/events.d.ts +28 -23
- package/resources/ai/missions/runs/events.d.ts.map +1 -1
- package/resources/ai/missions/runs/events.js +10 -9
- package/resources/ai/missions/runs/events.js.map +1 -1
- package/resources/ai/missions/runs/events.mjs +10 -9
- package/resources/ai/missions/runs/events.mjs.map +1 -1
- package/resources/ai/missions/runs/index.d.mts +3 -3
- package/resources/ai/missions/runs/index.d.mts.map +1 -1
- package/resources/ai/missions/runs/index.d.ts +3 -3
- package/resources/ai/missions/runs/index.d.ts.map +1 -1
- package/resources/ai/missions/runs/index.js.map +1 -1
- package/resources/ai/missions/runs/index.mjs.map +1 -1
- package/resources/ai/missions/runs/plan.d.mts +53 -61
- package/resources/ai/missions/runs/plan.d.mts.map +1 -1
- package/resources/ai/missions/runs/plan.d.ts +53 -61
- package/resources/ai/missions/runs/plan.d.ts.map +1 -1
- package/resources/ai/missions/runs/plan.js +17 -16
- package/resources/ai/missions/runs/plan.js.map +1 -1
- package/resources/ai/missions/runs/plan.mjs +17 -16
- package/resources/ai/missions/runs/plan.mjs.map +1 -1
- package/resources/ai/missions/runs/runs.d.mts +67 -52
- package/resources/ai/missions/runs/runs.d.mts.map +1 -1
- package/resources/ai/missions/runs/runs.d.ts +67 -52
- package/resources/ai/missions/runs/runs.d.ts.map +1 -1
- package/resources/ai/missions/runs/runs.js +29 -23
- package/resources/ai/missions/runs/runs.js.map +1 -1
- package/resources/ai/missions/runs/runs.mjs +29 -23
- package/resources/ai/missions/runs/runs.mjs.map +1 -1
- package/resources/ai/missions/runs/telnyx-agents.d.mts +10 -1
- package/resources/ai/missions/runs/telnyx-agents.d.mts.map +1 -1
- package/resources/ai/missions/runs/telnyx-agents.d.ts +10 -1
- package/resources/ai/missions/runs/telnyx-agents.d.ts.map +1 -1
- package/resources/ai/missions/tools.d.mts +9 -0
- package/resources/ai/missions/tools.d.mts.map +1 -1
- package/resources/ai/missions/tools.d.ts +9 -0
- package/resources/ai/missions/tools.d.ts.map +1 -1
- package/resources/ai/openai/index.d.mts +1 -1
- package/resources/ai/openai/index.d.mts.map +1 -1
- package/resources/ai/openai/index.d.ts +1 -1
- package/resources/ai/openai/index.d.ts.map +1 -1
- package/resources/ai/openai/index.js.map +1 -1
- package/resources/ai/openai/index.mjs +1 -1
- package/resources/ai/openai/index.mjs.map +1 -1
- package/resources/ai/openai/openai.d.mts +9 -11
- package/resources/ai/openai/openai.d.mts.map +1 -1
- package/resources/ai/openai/openai.d.ts +9 -11
- package/resources/ai/openai/openai.d.ts.map +1 -1
- package/resources/ai/openai/openai.js +4 -4
- package/resources/ai/openai/openai.js.map +1 -1
- package/resources/ai/openai/openai.mjs +4 -4
- package/resources/ai/openai/openai.mjs.map +1 -1
- package/resources/ai/tools.d.mts +21 -41
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +21 -41
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/ai/tools.js +8 -4
- package/resources/ai/tools.js.map +1 -1
- package/resources/ai/tools.mjs +8 -4
- package/resources/ai/tools.mjs.map +1 -1
- package/resources/bulk-sim-card-actions.d.mts +11 -46
- package/resources/bulk-sim-card-actions.d.mts.map +1 -1
- package/resources/bulk-sim-card-actions.d.ts +11 -46
- package/resources/bulk-sim-card-actions.d.ts.map +1 -1
- package/resources/bulk-sim-card-actions.js.map +1 -1
- package/resources/bulk-sim-card-actions.mjs.map +1 -1
- package/resources/call-reasons.d.mts +111 -0
- package/resources/call-reasons.d.mts.map +1 -0
- package/resources/call-reasons.d.ts +111 -0
- package/resources/call-reasons.d.ts.map +1 -0
- package/resources/call-reasons.js +51 -0
- package/resources/call-reasons.js.map +1 -0
- package/resources/call-reasons.mjs +47 -0
- package/resources/call-reasons.mjs.map +1 -0
- package/resources/calls/actions.d.mts +198 -446
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +198 -446
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +128 -128
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +128 -128
- 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 +2 -2
- package/resources/calls/index.d.mts.map +1 -1
- package/resources/calls/index.d.ts +2 -2
- 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/channel-zones.d.mts +5 -24
- package/resources/channel-zones.d.mts.map +1 -1
- package/resources/channel-zones.d.ts +5 -24
- package/resources/channel-zones.d.ts.map +1 -1
- package/resources/channel-zones.js.map +1 -1
- package/resources/channel-zones.mjs.map +1 -1
- package/resources/conferences/actions.d.mts +24 -17
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +24 -17
- package/resources/conferences/actions.d.ts.map +1 -1
- package/resources/conferences/conferences.d.mts +14 -16
- package/resources/conferences/conferences.d.mts.map +1 -1
- package/resources/conferences/conferences.d.ts +14 -16
- package/resources/conferences/conferences.d.ts.map +1 -1
- package/resources/conferences/conferences.js +6 -5
- package/resources/conferences/conferences.js.map +1 -1
- package/resources/conferences/conferences.mjs +6 -5
- package/resources/conferences/conferences.mjs.map +1 -1
- package/resources/conferences/index.d.mts +2 -2
- package/resources/conferences/index.d.mts.map +1 -1
- package/resources/conferences/index.d.ts +2 -2
- package/resources/conferences/index.d.ts.map +1 -1
- package/resources/conferences/index.js.map +1 -1
- package/resources/conferences/index.mjs.map +1 -1
- package/resources/connections.d.mts +7 -59
- package/resources/connections.d.mts.map +1 -1
- package/resources/connections.d.ts +7 -59
- package/resources/connections.d.ts.map +1 -1
- package/resources/connections.js +1 -4
- package/resources/connections.js.map +1 -1
- package/resources/connections.mjs +1 -4
- package/resources/connections.mjs.map +1 -1
- package/resources/credential-connections/credential-connections.d.mts +11 -4
- package/resources/credential-connections/credential-connections.d.mts.map +1 -1
- package/resources/credential-connections/credential-connections.d.ts +11 -4
- package/resources/credential-connections/credential-connections.d.ts.map +1 -1
- package/resources/credential-connections/credential-connections.js.map +1 -1
- package/resources/credential-connections/credential-connections.mjs.map +1 -1
- package/resources/credential-connections/index.d.mts +1 -1
- package/resources/credential-connections/index.d.mts.map +1 -1
- package/resources/credential-connections/index.d.ts +1 -1
- package/resources/credential-connections/index.d.ts.map +1 -1
- package/resources/credential-connections/index.js.map +1 -1
- package/resources/credential-connections/index.mjs.map +1 -1
- package/resources/custom-storage-credentials.d.mts +19 -43
- package/resources/custom-storage-credentials.d.mts.map +1 -1
- package/resources/custom-storage-credentials.d.ts +19 -43
- package/resources/custom-storage-credentials.d.ts.map +1 -1
- package/resources/custom-storage-credentials.js +3 -3
- package/resources/custom-storage-credentials.js.map +1 -1
- package/resources/custom-storage-credentials.mjs +3 -3
- package/resources/custom-storage-credentials.mjs.map +1 -1
- package/resources/dialogflow-connections.d.mts +10 -60
- package/resources/dialogflow-connections.d.mts.map +1 -1
- package/resources/dialogflow-connections.d.ts +10 -60
- package/resources/dialogflow-connections.d.ts.map +1 -1
- package/resources/dialogflow-connections.js +3 -3
- package/resources/dialogflow-connections.mjs +3 -3
- package/resources/dir/comments.d.mts +100 -0
- package/resources/dir/comments.d.mts.map +1 -0
- package/resources/dir/comments.d.ts +100 -0
- package/resources/dir/comments.d.ts.map +1 -0
- package/resources/dir/comments.js +54 -0
- package/resources/dir/comments.js.map +1 -0
- package/resources/dir/comments.mjs +50 -0
- package/resources/dir/comments.mjs.map +1 -0
- package/resources/dir/dir.d.mts +466 -0
- package/resources/dir/dir.d.mts.map +1 -0
- package/resources/dir/dir.d.ts +466 -0
- package/resources/dir/dir.d.ts.map +1 -0
- package/resources/dir/dir.js +224 -0
- package/resources/dir/dir.js.map +1 -0
- package/resources/dir/dir.mjs +219 -0
- package/resources/dir/dir.mjs.map +1 -0
- package/resources/dir/index.d.mts +5 -0
- package/resources/dir/index.d.mts.map +1 -0
- package/resources/dir/index.d.ts +5 -0
- package/resources/dir/index.d.ts.map +1 -0
- package/resources/dir/index.js +13 -0
- package/resources/dir/index.js.map +1 -0
- package/resources/dir/index.mjs +6 -0
- package/resources/dir/index.mjs.map +1 -0
- package/resources/dir/phone-number-batches.d.mts +120 -0
- package/resources/dir/phone-number-batches.d.mts.map +1 -0
- package/resources/dir/phone-number-batches.d.ts +120 -0
- package/resources/dir/phone-number-batches.d.ts.map +1 -0
- package/resources/dir/phone-number-batches.js +48 -0
- package/resources/dir/phone-number-batches.js.map +1 -0
- package/resources/dir/phone-number-batches.mjs +44 -0
- package/resources/dir/phone-number-batches.mjs.map +1 -0
- package/resources/dir/phone-numbers.d.mts +202 -0
- package/resources/dir/phone-numbers.d.mts.map +1 -0
- package/resources/dir/phone-numbers.d.ts +202 -0
- package/resources/dir/phone-numbers.d.ts.map +1 -0
- package/resources/dir/phone-numbers.js +78 -0
- package/resources/dir/phone-numbers.js.map +1 -0
- package/resources/dir/phone-numbers.mjs +74 -0
- package/resources/dir/phone-numbers.mjs.map +1 -0
- package/resources/dir.d.mts +2 -0
- package/resources/dir.d.mts.map +1 -0
- package/resources/dir.d.ts +2 -0
- package/resources/dir.d.ts.map +1 -0
- package/resources/dir.js +6 -0
- package/resources/dir.js.map +1 -0
- package/resources/dir.mjs +3 -0
- package/resources/dir.mjs.map +1 -0
- package/resources/document-links.d.mts +2 -13
- package/resources/document-links.d.mts.map +1 -1
- package/resources/document-links.d.ts +2 -13
- package/resources/document-links.d.ts.map +1 -1
- package/resources/document-links.js.map +1 -1
- package/resources/document-links.mjs.map +1 -1
- package/resources/documents.d.mts +20 -14
- package/resources/documents.d.mts.map +1 -1
- package/resources/documents.d.ts +20 -14
- package/resources/documents.d.ts.map +1 -1
- package/resources/documents.js +1 -1
- package/resources/documents.js.map +1 -1
- package/resources/documents.mjs +1 -1
- package/resources/documents.mjs.map +1 -1
- package/resources/enterprises/dir.d.mts +167 -0
- package/resources/enterprises/dir.d.mts.map +1 -0
- package/resources/enterprises/dir.d.ts +167 -0
- package/resources/enterprises/dir.d.ts.map +1 -0
- package/resources/enterprises/dir.js +87 -0
- package/resources/enterprises/dir.js.map +1 -0
- package/resources/enterprises/dir.mjs +83 -0
- package/resources/enterprises/dir.mjs.map +1 -0
- package/resources/enterprises/enterprises.d.mts +239 -239
- package/resources/enterprises/enterprises.d.mts.map +1 -1
- package/resources/enterprises/enterprises.d.ts +239 -239
- package/resources/enterprises/enterprises.d.ts.map +1 -1
- package/resources/enterprises/enterprises.js +135 -40
- package/resources/enterprises/enterprises.js.map +1 -1
- package/resources/enterprises/enterprises.mjs +135 -40
- package/resources/enterprises/enterprises.mjs.map +1 -1
- package/resources/enterprises/index.d.mts +3 -2
- package/resources/enterprises/index.d.mts.map +1 -1
- package/resources/enterprises/index.d.ts +3 -2
- package/resources/enterprises/index.d.ts.map +1 -1
- package/resources/enterprises/index.js +3 -1
- package/resources/enterprises/index.js.map +1 -1
- package/resources/enterprises/index.mjs +1 -0
- package/resources/enterprises/index.mjs.map +1 -1
- package/resources/enterprises/reputation/index.d.mts +4 -2
- package/resources/enterprises/reputation/index.d.mts.map +1 -1
- package/resources/enterprises/reputation/index.d.ts +4 -2
- package/resources/enterprises/reputation/index.d.ts.map +1 -1
- package/resources/enterprises/reputation/index.js +5 -1
- package/resources/enterprises/reputation/index.js.map +1 -1
- package/resources/enterprises/reputation/index.mjs +2 -0
- package/resources/enterprises/reputation/index.mjs.map +1 -1
- package/resources/enterprises/reputation/loa.d.mts +103 -0
- package/resources/enterprises/reputation/loa.d.mts.map +1 -0
- package/resources/enterprises/reputation/loa.d.ts +103 -0
- package/resources/enterprises/reputation/loa.d.ts.map +1 -0
- package/resources/enterprises/reputation/loa.js +62 -0
- package/resources/enterprises/reputation/loa.js.map +1 -0
- package/resources/enterprises/reputation/loa.mjs +58 -0
- package/resources/enterprises/reputation/loa.mjs.map +1 -0
- package/resources/enterprises/reputation/numbers.d.mts +127 -88
- package/resources/enterprises/reputation/numbers.d.mts.map +1 -1
- package/resources/enterprises/reputation/numbers.d.ts +127 -88
- package/resources/enterprises/reputation/numbers.d.ts.map +1 -1
- package/resources/enterprises/reputation/numbers.js +50 -51
- package/resources/enterprises/reputation/numbers.js.map +1 -1
- package/resources/enterprises/reputation/numbers.mjs +50 -51
- package/resources/enterprises/reputation/numbers.mjs.map +1 -1
- package/resources/enterprises/reputation/remediation.d.mts +192 -0
- package/resources/enterprises/reputation/remediation.d.mts.map +1 -0
- package/resources/enterprises/reputation/remediation.d.ts +192 -0
- package/resources/enterprises/reputation/remediation.d.ts.map +1 -0
- package/resources/enterprises/reputation/remediation.js +81 -0
- package/resources/enterprises/reputation/remediation.js.map +1 -0
- package/resources/enterprises/reputation/remediation.mjs +77 -0
- package/resources/enterprises/reputation/remediation.mjs.map +1 -0
- package/resources/enterprises/reputation/reputation.d.mts +83 -92
- package/resources/enterprises/reputation/reputation.d.mts.map +1 -1
- package/resources/enterprises/reputation/reputation.d.ts +83 -92
- package/resources/enterprises/reputation/reputation.d.ts.map +1 -1
- package/resources/enterprises/reputation/reputation.js +50 -58
- package/resources/enterprises/reputation/reputation.js.map +1 -1
- package/resources/enterprises/reputation/reputation.mjs +50 -58
- package/resources/enterprises/reputation/reputation.mjs.map +1 -1
- package/resources/external-connections/external-connections.d.mts +4 -4
- package/resources/external-connections/external-connections.d.mts.map +1 -1
- package/resources/external-connections/external-connections.d.ts +4 -4
- package/resources/external-connections/external-connections.d.ts.map +1 -1
- package/resources/external-connections/external-connections.mjs.map +1 -1
- package/resources/external-connections/index.d.mts +2 -2
- package/resources/external-connections/index.d.mts.map +1 -1
- package/resources/external-connections/index.d.ts +2 -2
- package/resources/external-connections/index.d.ts.map +1 -1
- package/resources/external-connections/log-messages.d.mts +11 -42
- package/resources/external-connections/log-messages.d.mts.map +1 -1
- package/resources/external-connections/log-messages.d.ts +11 -42
- package/resources/external-connections/log-messages.d.ts.map +1 -1
- package/resources/external-connections/log-messages.js +1 -1
- package/resources/external-connections/log-messages.js.map +1 -1
- package/resources/external-connections/log-messages.mjs +1 -1
- package/resources/external-connections/log-messages.mjs.map +1 -1
- package/resources/external-connections/releases.d.mts +18 -41
- package/resources/external-connections/releases.d.mts.map +1 -1
- package/resources/external-connections/releases.d.ts +18 -41
- package/resources/external-connections/releases.d.ts.map +1 -1
- package/resources/external-connections/releases.js +1 -1
- package/resources/external-connections/releases.js.map +1 -1
- package/resources/external-connections/releases.mjs +1 -1
- package/resources/external-connections/releases.mjs.map +1 -1
- package/resources/faxes/faxes.d.mts +9 -3
- package/resources/faxes/faxes.d.mts.map +1 -1
- package/resources/faxes/faxes.d.ts +9 -3
- package/resources/faxes/faxes.d.ts.map +1 -1
- package/resources/faxes/faxes.js.map +1 -1
- package/resources/faxes/faxes.mjs.map +1 -1
- package/resources/faxes/index.d.mts +1 -1
- package/resources/faxes/index.d.mts.map +1 -1
- package/resources/faxes/index.d.ts +1 -1
- package/resources/faxes/index.d.ts.map +1 -1
- package/resources/faxes/index.js.map +1 -1
- package/resources/faxes/index.mjs.map +1 -1
- package/resources/fqdn-connections.d.mts +3 -3
- package/resources/fqdn-connections.d.mts.map +1 -1
- package/resources/fqdn-connections.d.ts +3 -3
- package/resources/fqdn-connections.d.ts.map +1 -1
- package/resources/global-ip-health-checks.d.mts +12 -66
- package/resources/global-ip-health-checks.d.mts.map +1 -1
- package/resources/global-ip-health-checks.d.ts +12 -66
- package/resources/global-ip-health-checks.d.ts.map +1 -1
- package/resources/global-ip-health-checks.js +5 -2
- package/resources/global-ip-health-checks.js.map +1 -1
- package/resources/global-ip-health-checks.mjs +5 -2
- package/resources/global-ip-health-checks.mjs.map +1 -1
- package/resources/global-ips.d.mts +12 -78
- package/resources/global-ips.d.mts.map +1 -1
- package/resources/global-ips.d.ts +12 -78
- package/resources/global-ips.d.ts.map +1 -1
- package/resources/global-ips.js +2 -5
- package/resources/global-ips.js.map +1 -1
- package/resources/global-ips.mjs +2 -5
- package/resources/global-ips.mjs.map +1 -1
- package/resources/index.d.mts +41 -38
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +41 -38
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +10 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -1
- package/resources/index.mjs.map +1 -1
- package/resources/infringement-claims.d.mts +162 -0
- package/resources/infringement-claims.d.mts.map +1 -0
- package/resources/infringement-claims.d.ts +162 -0
- package/resources/infringement-claims.d.ts.map +1 -0
- package/resources/infringement-claims.js +68 -0
- package/resources/infringement-claims.js.map +1 -0
- package/resources/infringement-claims.mjs +64 -0
- package/resources/infringement-claims.mjs.map +1 -0
- package/resources/ip-connections.d.mts +3 -3
- package/resources/ip-connections.d.mts.map +1 -1
- package/resources/ip-connections.d.ts +3 -3
- package/resources/ip-connections.d.ts.map +1 -1
- package/resources/legacy/reporting/usage-reports/usage-reports.d.mts +6 -0
- package/resources/legacy/reporting/usage-reports/usage-reports.d.mts.map +1 -1
- package/resources/legacy/reporting/usage-reports/usage-reports.d.ts +6 -0
- package/resources/legacy/reporting/usage-reports/usage-reports.d.ts.map +1 -1
- package/resources/legacy/reporting/usage-reports/usage-reports.js.map +1 -1
- package/resources/legacy/reporting/usage-reports/usage-reports.mjs.map +1 -1
- package/resources/messages/index.d.mts +1 -1
- package/resources/messages/index.d.mts.map +1 -1
- package/resources/messages/index.d.ts +1 -1
- package/resources/messages/index.d.ts.map +1 -1
- package/resources/messages/index.js.map +1 -1
- package/resources/messages/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +3 -24
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +3 -24
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/messaging-10dlc/brand/brand.d.mts +58 -84
- package/resources/messaging-10dlc/brand/brand.d.mts.map +1 -1
- package/resources/messaging-10dlc/brand/brand.d.ts +58 -84
- package/resources/messaging-10dlc/brand/brand.d.ts.map +1 -1
- package/resources/messaging-10dlc/brand/brand.js +4 -4
- package/resources/messaging-10dlc/brand/brand.js.map +1 -1
- package/resources/messaging-10dlc/brand/brand.mjs +5 -5
- package/resources/messaging-10dlc/brand/brand.mjs.map +1 -1
- package/resources/messaging-10dlc/brand/external-vetting.d.mts +9 -79
- package/resources/messaging-10dlc/brand/external-vetting.d.mts.map +1 -1
- package/resources/messaging-10dlc/brand/external-vetting.d.ts +9 -79
- package/resources/messaging-10dlc/brand/external-vetting.d.ts.map +1 -1
- package/resources/messaging-10dlc/brand/external-vetting.js +5 -5
- package/resources/messaging-10dlc/brand/external-vetting.js.map +1 -1
- package/resources/messaging-10dlc/brand/external-vetting.mjs +3 -3
- package/resources/messaging-10dlc/brand/external-vetting.mjs.map +1 -1
- package/resources/messaging-10dlc/brand/index.d.mts +2 -2
- package/resources/messaging-10dlc/brand/index.d.mts.map +1 -1
- package/resources/messaging-10dlc/brand/index.d.ts +2 -2
- package/resources/messaging-10dlc/brand/index.d.ts.map +1 -1
- package/resources/messaging-10dlc/brand/index.js +2 -2
- package/resources/messaging-10dlc/brand/index.js.map +1 -1
- package/resources/messaging-10dlc/brand/index.mjs +1 -1
- package/resources/messaging-10dlc/brand/index.mjs.map +1 -1
- package/resources/messaging-10dlc/campaign/campaign.d.mts +3 -0
- package/resources/messaging-10dlc/campaign/campaign.d.mts.map +1 -1
- package/resources/messaging-10dlc/campaign/campaign.d.ts +3 -0
- package/resources/messaging-10dlc/campaign/campaign.d.ts.map +1 -1
- package/resources/messaging-10dlc/campaign/campaign.js.map +1 -1
- package/resources/messaging-10dlc/campaign/campaign.mjs.map +1 -1
- package/resources/messaging-10dlc/campaign/usecase.d.mts +3 -0
- package/resources/messaging-10dlc/campaign/usecase.d.mts.map +1 -1
- package/resources/messaging-10dlc/campaign/usecase.d.ts +3 -0
- package/resources/messaging-10dlc/campaign/usecase.d.ts.map +1 -1
- package/resources/messaging-10dlc/campaign-builder/brand.d.mts +3 -0
- package/resources/messaging-10dlc/campaign-builder/brand.d.mts.map +1 -1
- package/resources/messaging-10dlc/campaign-builder/brand.d.ts +3 -0
- package/resources/messaging-10dlc/campaign-builder/brand.d.ts.map +1 -1
- package/resources/messaging-10dlc/index.d.mts +1 -1
- package/resources/messaging-10dlc/index.d.mts.map +1 -1
- package/resources/messaging-10dlc/index.d.ts +1 -1
- package/resources/messaging-10dlc/index.d.ts.map +1 -1
- package/resources/messaging-10dlc/index.js.map +1 -1
- package/resources/messaging-10dlc/index.mjs.map +1 -1
- package/resources/messaging-10dlc/messaging-10dlc.d.mts +2 -2
- package/resources/messaging-10dlc/messaging-10dlc.d.mts.map +1 -1
- package/resources/messaging-10dlc/messaging-10dlc.d.ts +2 -2
- package/resources/messaging-10dlc/messaging-10dlc.d.ts.map +1 -1
- package/resources/messaging-10dlc/messaging-10dlc.js.map +1 -1
- package/resources/messaging-10dlc/messaging-10dlc.mjs.map +1 -1
- package/resources/messaging-10dlc/phone-number-assignment-by-profile.d.mts +12 -0
- package/resources/messaging-10dlc/phone-number-assignment-by-profile.d.mts.map +1 -1
- package/resources/messaging-10dlc/phone-number-assignment-by-profile.d.ts +12 -0
- package/resources/messaging-10dlc/phone-number-assignment-by-profile.d.ts.map +1 -1
- package/resources/messaging-hosted-numbers.d.mts +23 -1
- package/resources/messaging-hosted-numbers.d.mts.map +1 -1
- package/resources/messaging-hosted-numbers.d.ts +23 -1
- package/resources/messaging-hosted-numbers.d.ts.map +1 -1
- package/resources/messaging-profile-metrics.d.mts +6 -2
- package/resources/messaging-profile-metrics.d.mts.map +1 -1
- package/resources/messaging-profile-metrics.d.ts +6 -2
- package/resources/messaging-profile-metrics.d.ts.map +1 -1
- package/resources/messaging-profiles/autoresp-configs.d.mts +10 -1
- package/resources/messaging-profiles/autoresp-configs.d.mts.map +1 -1
- package/resources/messaging-profiles/autoresp-configs.d.ts +10 -1
- package/resources/messaging-profiles/autoresp-configs.d.ts.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.d.mts +6 -1
- package/resources/messaging-profiles/messaging-profiles.d.mts.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.d.ts +6 -1
- package/resources/messaging-profiles/messaging-profiles.d.ts.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.js.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.mjs.map +1 -1
- package/resources/messaging-tollfree/verification/requests.d.mts +14 -3
- package/resources/messaging-tollfree/verification/requests.d.mts.map +1 -1
- package/resources/messaging-tollfree/verification/requests.d.ts +14 -3
- package/resources/messaging-tollfree/verification/requests.d.ts.map +1 -1
- package/resources/mobile-phone-numbers/index.d.mts +1 -1
- package/resources/mobile-phone-numbers/index.d.mts.map +1 -1
- package/resources/mobile-phone-numbers/index.d.ts +1 -1
- package/resources/mobile-phone-numbers/index.d.ts.map +1 -1
- package/resources/mobile-phone-numbers/messaging.d.mts +9 -72
- package/resources/mobile-phone-numbers/messaging.d.mts.map +1 -1
- package/resources/mobile-phone-numbers/messaging.d.ts +9 -72
- package/resources/mobile-phone-numbers/messaging.d.ts.map +1 -1
- package/resources/mobile-phone-numbers/messaging.js.map +1 -1
- package/resources/mobile-phone-numbers/messaging.mjs.map +1 -1
- package/resources/mobile-phone-numbers/mobile-phone-numbers.d.mts +2 -2
- package/resources/mobile-phone-numbers/mobile-phone-numbers.d.mts.map +1 -1
- package/resources/mobile-phone-numbers/mobile-phone-numbers.d.ts +2 -2
- package/resources/mobile-phone-numbers/mobile-phone-numbers.d.ts.map +1 -1
- package/resources/networks/default-gateway.d.mts +20 -54
- package/resources/networks/default-gateway.d.mts.map +1 -1
- package/resources/networks/default-gateway.d.ts +20 -54
- package/resources/networks/default-gateway.d.ts.map +1 -1
- package/resources/networks/default-gateway.js +3 -3
- package/resources/networks/default-gateway.js.map +1 -1
- package/resources/networks/default-gateway.mjs +1 -1
- package/resources/networks/default-gateway.mjs.map +1 -1
- package/resources/networks/index.d.mts +2 -2
- package/resources/networks/index.d.mts.map +1 -1
- package/resources/networks/index.d.ts +2 -2
- package/resources/networks/index.d.ts.map +1 -1
- package/resources/networks/index.js +2 -2
- package/resources/networks/index.js.map +1 -1
- package/resources/networks/index.mjs +1 -1
- package/resources/networks/index.mjs.map +1 -1
- package/resources/networks/networks.d.mts +21 -63
- package/resources/networks/networks.d.mts.map +1 -1
- package/resources/networks/networks.d.ts +21 -63
- package/resources/networks/networks.d.ts.map +1 -1
- package/resources/networks/networks.js +12 -13
- package/resources/networks/networks.js.map +1 -1
- package/resources/networks/networks.mjs +13 -14
- package/resources/networks/networks.mjs.map +1 -1
- package/resources/porting/events.d.mts +6 -6
- package/resources/porting/events.d.mts.map +1 -1
- package/resources/porting/events.d.ts +6 -6
- package/resources/porting/events.d.ts.map +1 -1
- package/resources/porting/events.js +1 -1
- package/resources/porting/events.js.map +1 -1
- package/resources/porting/events.mjs +1 -1
- package/resources/porting/events.mjs.map +1 -1
- package/resources/porting/index.d.mts +1 -1
- package/resources/porting/index.d.mts.map +1 -1
- package/resources/porting/index.d.ts +1 -1
- package/resources/porting/index.d.ts.map +1 -1
- package/resources/porting/porting.d.mts +2 -2
- package/resources/porting/porting.d.mts.map +1 -1
- package/resources/porting/porting.d.ts +2 -2
- package/resources/porting/porting.d.ts.map +1 -1
- package/resources/porting/porting.mjs.map +1 -1
- package/resources/porting-orders/action-requirements.d.mts +6 -50
- package/resources/porting-orders/action-requirements.d.mts.map +1 -1
- package/resources/porting-orders/action-requirements.d.ts +6 -50
- package/resources/porting-orders/action-requirements.d.ts.map +1 -1
- package/resources/porting-orders/action-requirements.js +1 -1
- package/resources/porting-orders/action-requirements.js.map +1 -1
- package/resources/porting-orders/action-requirements.mjs +1 -1
- package/resources/porting-orders/action-requirements.mjs.map +1 -1
- package/resources/porting-orders/additional-documents.d.mts +8 -48
- package/resources/porting-orders/additional-documents.d.mts.map +1 -1
- package/resources/porting-orders/additional-documents.d.ts +8 -48
- package/resources/porting-orders/additional-documents.d.ts.map +1 -1
- package/resources/porting-orders/additional-documents.js +1 -1
- package/resources/porting-orders/additional-documents.js.map +1 -1
- package/resources/porting-orders/additional-documents.mjs +1 -1
- package/resources/porting-orders/additional-documents.mjs.map +1 -1
- package/resources/porting-orders/comments.d.mts +8 -30
- package/resources/porting-orders/comments.d.mts.map +1 -1
- package/resources/porting-orders/comments.d.ts +8 -30
- package/resources/porting-orders/comments.d.ts.map +1 -1
- package/resources/porting-orders/comments.js +1 -1
- package/resources/porting-orders/comments.js.map +1 -1
- package/resources/porting-orders/comments.mjs +1 -1
- package/resources/porting-orders/comments.mjs.map +1 -1
- package/resources/porting-orders/index.d.mts +5 -5
- package/resources/porting-orders/index.d.mts.map +1 -1
- package/resources/porting-orders/index.d.ts +5 -5
- package/resources/porting-orders/index.d.ts.map +1 -1
- package/resources/porting-orders/phone-number-blocks.d.mts +2 -1
- package/resources/porting-orders/phone-number-blocks.d.mts.map +1 -1
- package/resources/porting-orders/phone-number-blocks.d.ts +2 -1
- package/resources/porting-orders/phone-number-blocks.d.ts.map +1 -1
- package/resources/porting-orders/phone-number-blocks.js.map +1 -1
- package/resources/porting-orders/phone-number-blocks.mjs.map +1 -1
- package/resources/porting-orders/phone-number-configurations.d.mts +8 -36
- package/resources/porting-orders/phone-number-configurations.d.mts.map +1 -1
- package/resources/porting-orders/phone-number-configurations.d.ts +8 -36
- package/resources/porting-orders/phone-number-configurations.d.ts.map +1 -1
- package/resources/porting-orders/phone-number-configurations.js +1 -1
- package/resources/porting-orders/phone-number-configurations.js.map +1 -1
- package/resources/porting-orders/phone-number-configurations.mjs +1 -1
- package/resources/porting-orders/phone-number-configurations.mjs.map +1 -1
- package/resources/porting-orders/porting-orders.d.mts +13 -53
- package/resources/porting-orders/porting-orders.d.mts.map +1 -1
- package/resources/porting-orders/porting-orders.d.ts +13 -53
- package/resources/porting-orders/porting-orders.d.ts.map +1 -1
- package/resources/porting-orders/porting-orders.js.map +1 -1
- package/resources/porting-orders/porting-orders.mjs.map +1 -1
- package/resources/porting-orders/verification-codes.d.mts +6 -38
- package/resources/porting-orders/verification-codes.d.mts.map +1 -1
- package/resources/porting-orders/verification-codes.d.ts +6 -38
- package/resources/porting-orders/verification-codes.d.ts.map +1 -1
- package/resources/porting-orders/verification-codes.js +1 -1
- package/resources/porting-orders/verification-codes.js.map +1 -1
- package/resources/porting-orders/verification-codes.mjs +1 -1
- package/resources/porting-orders/verification-codes.mjs.map +1 -1
- package/resources/porting-phone-numbers.d.mts +9 -5
- package/resources/porting-phone-numbers.d.mts.map +1 -1
- package/resources/porting-phone-numbers.d.ts +9 -5
- package/resources/porting-phone-numbers.d.ts.map +1 -1
- package/resources/porting-phone-numbers.js +4 -1
- package/resources/porting-phone-numbers.js.map +1 -1
- package/resources/porting-phone-numbers.mjs +4 -1
- package/resources/porting-phone-numbers.mjs.map +1 -1
- package/resources/portouts/events.d.mts +6 -6
- package/resources/portouts/events.d.mts.map +1 -1
- package/resources/portouts/events.d.ts +6 -6
- package/resources/portouts/events.d.ts.map +1 -1
- package/resources/portouts/events.js +1 -1
- package/resources/portouts/events.js.map +1 -1
- package/resources/portouts/events.mjs +1 -1
- package/resources/portouts/events.mjs.map +1 -1
- package/resources/portouts/index.d.mts +1 -1
- package/resources/portouts/index.d.mts.map +1 -1
- package/resources/portouts/index.d.ts +1 -1
- package/resources/portouts/index.d.ts.map +1 -1
- package/resources/portouts/portouts.d.mts +2 -2
- package/resources/portouts/portouts.d.mts.map +1 -1
- package/resources/portouts/portouts.d.ts +2 -2
- package/resources/portouts/portouts.d.ts.map +1 -1
- package/resources/portouts/portouts.mjs.map +1 -1
- package/resources/pronunciation-dicts.d.mts +17 -29
- package/resources/pronunciation-dicts.d.mts.map +1 -1
- package/resources/pronunciation-dicts.d.ts +17 -29
- package/resources/pronunciation-dicts.d.ts.map +1 -1
- package/resources/pronunciation-dicts.js +3 -3
- package/resources/pronunciation-dicts.mjs +3 -3
- package/resources/public-internet-gateways.d.mts +19 -44
- package/resources/public-internet-gateways.d.mts.map +1 -1
- package/resources/public-internet-gateways.d.ts +19 -44
- package/resources/public-internet-gateways.d.ts.map +1 -1
- package/resources/public-internet-gateways.js +3 -32
- package/resources/public-internet-gateways.js.map +1 -1
- package/resources/public-internet-gateways.mjs +3 -32
- package/resources/public-internet-gateways.mjs.map +1 -1
- package/resources/queues/calls.d.mts +8 -59
- package/resources/queues/calls.d.mts.map +1 -1
- package/resources/queues/calls.d.ts +8 -59
- package/resources/queues/calls.d.ts.map +1 -1
- package/resources/queues/calls.js +5 -2
- package/resources/queues/calls.js.map +1 -1
- package/resources/queues/calls.mjs +5 -2
- package/resources/queues/calls.mjs.map +1 -1
- package/resources/queues/index.d.mts +1 -1
- package/resources/queues/index.d.mts.map +1 -1
- package/resources/queues/index.d.ts +1 -1
- package/resources/queues/index.d.ts.map +1 -1
- package/resources/queues/queues.d.mts +2 -2
- package/resources/queues/queues.d.mts.map +1 -1
- package/resources/queues/queues.d.ts +2 -2
- package/resources/queues/queues.d.ts.map +1 -1
- package/resources/queues/queues.mjs.map +1 -1
- package/resources/recordings/index.d.mts +1 -1
- package/resources/recordings/index.d.mts.map +1 -1
- package/resources/recordings/index.d.ts +1 -1
- package/resources/recordings/index.d.ts.map +1 -1
- package/resources/recordings/index.js.map +1 -1
- package/resources/recordings/index.mjs.map +1 -1
- package/resources/recordings/recordings.d.mts +8 -11
- package/resources/recordings/recordings.d.mts.map +1 -1
- package/resources/recordings/recordings.d.ts +8 -11
- package/resources/recordings/recordings.d.ts.map +1 -1
- package/resources/recordings/recordings.js +2 -2
- package/resources/recordings/recordings.js.map +1 -1
- package/resources/recordings/recordings.mjs +2 -2
- package/resources/recordings/recordings.mjs.map +1 -1
- package/resources/reports/cdr-usage-reports.d.mts +15 -0
- package/resources/reports/cdr-usage-reports.d.mts.map +1 -1
- package/resources/reports/cdr-usage-reports.d.ts +15 -0
- package/resources/reports/cdr-usage-reports.d.ts.map +1 -1
- package/resources/reports/mdr-usage-reports.d.mts +12 -0
- package/resources/reports/mdr-usage-reports.d.mts.map +1 -1
- package/resources/reports/mdr-usage-reports.d.ts +12 -0
- package/resources/reports/mdr-usage-reports.d.ts.map +1 -1
- package/resources/reports/reports.d.mts +16 -17
- package/resources/reports/reports.d.mts.map +1 -1
- package/resources/reports/reports.d.ts +16 -17
- package/resources/reports/reports.d.ts.map +1 -1
- package/resources/reports/reports.js.map +1 -1
- package/resources/reports/reports.mjs.map +1 -1
- package/resources/reputation/index.d.mts +1 -1
- package/resources/reputation/index.d.mts.map +1 -1
- package/resources/reputation/index.d.ts +1 -1
- package/resources/reputation/index.d.ts.map +1 -1
- package/resources/reputation/index.js.map +1 -1
- package/resources/reputation/index.mjs +1 -1
- package/resources/reputation/index.mjs.map +1 -1
- package/resources/reputation/numbers.d.mts +26 -25
- package/resources/reputation/numbers.d.mts.map +1 -1
- package/resources/reputation/numbers.d.ts +26 -25
- package/resources/reputation/numbers.d.ts.map +1 -1
- package/resources/reputation/numbers.js +8 -12
- package/resources/reputation/numbers.js.map +1 -1
- package/resources/reputation/numbers.mjs +8 -12
- package/resources/reputation/numbers.mjs.map +1 -1
- package/resources/reputation/reputation.d.mts +2 -2
- package/resources/reputation/reputation.d.mts.map +1 -1
- package/resources/reputation/reputation.d.ts +2 -2
- package/resources/reputation/reputation.d.ts.map +1 -1
- package/resources/reputation/reputation.js.map +1 -1
- package/resources/reputation/reputation.mjs.map +1 -1
- package/resources/requirements.d.mts +8 -50
- package/resources/requirements.d.mts.map +1 -1
- package/resources/requirements.d.ts +8 -50
- package/resources/requirements.d.ts.map +1 -1
- package/resources/requirements.js +1 -1
- package/resources/requirements.js.map +1 -1
- package/resources/requirements.mjs +1 -1
- package/resources/requirements.mjs.map +1 -1
- package/resources/room-recordings.d.mts +7 -72
- package/resources/room-recordings.d.mts.map +1 -1
- package/resources/room-recordings.d.ts +7 -72
- package/resources/room-recordings.d.ts.map +1 -1
- package/resources/room-recordings.js.map +1 -1
- package/resources/room-recordings.mjs.map +1 -1
- package/resources/shared.d.mts +33 -65
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +33 -65
- package/resources/shared.d.ts.map +1 -1
- package/resources/sip-registration-status.d.mts +37 -9
- package/resources/sip-registration-status.d.mts.map +1 -1
- package/resources/sip-registration-status.d.ts +37 -9
- package/resources/sip-registration-status.d.ts.map +1 -1
- package/resources/siprec-connectors.d.mts +10 -74
- package/resources/siprec-connectors.d.mts.map +1 -1
- package/resources/siprec-connectors.d.ts +10 -74
- package/resources/siprec-connectors.d.ts.map +1 -1
- package/resources/siprec-connectors.js +3 -3
- package/resources/siprec-connectors.js.map +1 -1
- package/resources/siprec-connectors.mjs +3 -3
- package/resources/siprec-connectors.mjs.map +1 -1
- package/resources/speech-to-text/index.d.mts +1 -1
- package/resources/speech-to-text/index.d.mts.map +1 -1
- package/resources/speech-to-text/index.d.ts +1 -1
- package/resources/speech-to-text/index.d.ts.map +1 -1
- package/resources/speech-to-text/index.js.map +1 -1
- package/resources/speech-to-text/index.mjs.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.mts +112 -18
- package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.ts +112 -18
- package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
- package/resources/speech-to-text/speech-to-text.js +34 -7
- package/resources/speech-to-text/speech-to-text.js.map +1 -1
- package/resources/speech-to-text/speech-to-text.mjs +34 -7
- package/resources/speech-to-text/speech-to-text.mjs.map +1 -1
- package/resources/terms-of-service/agreements.d.mts +71 -0
- package/resources/terms-of-service/agreements.d.mts.map +1 -0
- package/resources/terms-of-service/agreements.d.ts +71 -0
- package/resources/terms-of-service/agreements.d.ts.map +1 -0
- package/resources/terms-of-service/agreements.js +39 -0
- package/resources/terms-of-service/agreements.js.map +1 -0
- package/resources/terms-of-service/agreements.mjs +35 -0
- package/resources/terms-of-service/agreements.mjs.map +1 -0
- package/resources/terms-of-service/branded-calling.d.mts +20 -0
- package/resources/terms-of-service/branded-calling.d.mts.map +1 -0
- package/resources/terms-of-service/branded-calling.d.ts +20 -0
- package/resources/terms-of-service/branded-calling.d.ts.map +1 -0
- package/resources/terms-of-service/branded-calling.js +24 -0
- package/resources/terms-of-service/branded-calling.js.map +1 -0
- package/resources/terms-of-service/branded-calling.mjs +20 -0
- package/resources/terms-of-service/branded-calling.mjs.map +1 -0
- package/resources/terms-of-service/index.d.mts +3 -1
- package/resources/terms-of-service/index.d.mts.map +1 -1
- package/resources/terms-of-service/index.d.ts +3 -1
- package/resources/terms-of-service/index.d.ts.map +1 -1
- package/resources/terms-of-service/index.js +5 -1
- package/resources/terms-of-service/index.js.map +1 -1
- package/resources/terms-of-service/index.mjs +3 -1
- package/resources/terms-of-service/index.mjs.map +1 -1
- package/resources/terms-of-service/number-reputation.d.mts +6 -6
- package/resources/terms-of-service/number-reputation.d.mts.map +1 -1
- package/resources/terms-of-service/number-reputation.d.ts +6 -6
- package/resources/terms-of-service/number-reputation.d.ts.map +1 -1
- package/resources/terms-of-service/number-reputation.js +5 -10
- package/resources/terms-of-service/number-reputation.js.map +1 -1
- package/resources/terms-of-service/number-reputation.mjs +5 -10
- package/resources/terms-of-service/number-reputation.mjs.map +1 -1
- package/resources/terms-of-service/terms-of-service.d.mts +94 -0
- package/resources/terms-of-service/terms-of-service.d.mts.map +1 -1
- package/resources/terms-of-service/terms-of-service.d.ts +94 -0
- package/resources/terms-of-service/terms-of-service.d.ts.map +1 -1
- package/resources/terms-of-service/terms-of-service.js +30 -0
- package/resources/terms-of-service/terms-of-service.js.map +1 -1
- package/resources/terms-of-service/terms-of-service.mjs +30 -0
- package/resources/terms-of-service/terms-of-service.mjs.map +1 -1
- package/resources/texml/accounts/accounts.d.mts +14 -84
- package/resources/texml/accounts/accounts.d.mts.map +1 -1
- package/resources/texml/accounts/accounts.d.ts +14 -84
- package/resources/texml/accounts/accounts.d.ts.map +1 -1
- package/resources/texml/accounts/accounts.js +1 -1
- package/resources/texml/accounts/accounts.js.map +1 -1
- package/resources/texml/accounts/accounts.mjs +1 -1
- package/resources/texml/accounts/accounts.mjs.map +1 -1
- package/resources/texml/accounts/calls/calls.d.mts +511 -233
- package/resources/texml/accounts/calls/calls.d.mts.map +1 -1
- package/resources/texml/accounts/calls/calls.d.ts +511 -233
- package/resources/texml/accounts/calls/calls.d.ts.map +1 -1
- package/resources/texml/accounts/calls/calls.js +15 -18
- package/resources/texml/accounts/calls/calls.js.map +1 -1
- package/resources/texml/accounts/calls/calls.mjs +15 -18
- package/resources/texml/accounts/calls/calls.mjs.map +1 -1
- package/resources/texml/accounts/calls/index.d.mts +3 -3
- package/resources/texml/accounts/calls/index.d.mts.map +1 -1
- package/resources/texml/accounts/calls/index.d.ts +3 -3
- package/resources/texml/accounts/calls/index.d.ts.map +1 -1
- package/resources/texml/accounts/calls/index.js.map +1 -1
- package/resources/texml/accounts/calls/index.mjs +1 -1
- package/resources/texml/accounts/calls/index.mjs.map +1 -1
- package/resources/texml/accounts/calls/recordings-json.d.mts +14 -9
- package/resources/texml/accounts/calls/recordings-json.d.mts.map +1 -1
- package/resources/texml/accounts/calls/recordings-json.d.ts +14 -9
- package/resources/texml/accounts/calls/recordings-json.d.ts.map +1 -1
- package/resources/texml/accounts/calls/recordings-json.js +2 -2
- package/resources/texml/accounts/calls/recordings-json.mjs +2 -2
- package/resources/texml/accounts/calls/recordings.d.mts +4 -41
- package/resources/texml/accounts/calls/recordings.d.mts.map +1 -1
- package/resources/texml/accounts/calls/recordings.d.ts +4 -41
- package/resources/texml/accounts/calls/recordings.d.ts.map +1 -1
- package/resources/texml/accounts/calls/recordings.js +1 -1
- package/resources/texml/accounts/calls/recordings.js.map +1 -1
- package/resources/texml/accounts/calls/recordings.mjs +1 -1
- package/resources/texml/accounts/calls/recordings.mjs.map +1 -1
- package/resources/texml/accounts/conferences/conferences.d.mts +12 -155
- package/resources/texml/accounts/conferences/conferences.d.mts.map +1 -1
- package/resources/texml/accounts/conferences/conferences.d.ts +12 -155
- package/resources/texml/accounts/conferences/conferences.d.ts.map +1 -1
- package/resources/texml/accounts/conferences/conferences.js +3 -3
- package/resources/texml/accounts/conferences/conferences.js.map +1 -1
- package/resources/texml/accounts/conferences/conferences.mjs +3 -3
- package/resources/texml/accounts/conferences/conferences.mjs.map +1 -1
- package/resources/texml/accounts/conferences/index.d.mts +2 -2
- package/resources/texml/accounts/conferences/index.d.mts.map +1 -1
- package/resources/texml/accounts/conferences/index.d.ts +2 -2
- package/resources/texml/accounts/conferences/index.d.ts.map +1 -1
- package/resources/texml/accounts/conferences/index.js.map +1 -1
- package/resources/texml/accounts/conferences/index.mjs.map +1 -1
- package/resources/texml/accounts/conferences/participants.d.mts +7 -133
- package/resources/texml/accounts/conferences/participants.d.mts.map +1 -1
- package/resources/texml/accounts/conferences/participants.d.ts +7 -133
- package/resources/texml/accounts/conferences/participants.d.ts.map +1 -1
- package/resources/texml/accounts/conferences/participants.js +2 -2
- package/resources/texml/accounts/conferences/participants.mjs +2 -2
- package/resources/texml/accounts/index.d.mts +4 -4
- package/resources/texml/accounts/index.d.mts.map +1 -1
- package/resources/texml/accounts/index.d.ts +4 -4
- package/resources/texml/accounts/index.d.ts.map +1 -1
- package/resources/texml/accounts/index.js.map +1 -1
- package/resources/texml/accounts/index.mjs.map +1 -1
- package/resources/texml/accounts/queues.d.mts +18 -139
- package/resources/texml/accounts/queues.d.mts.map +1 -1
- package/resources/texml/accounts/queues.d.ts +18 -139
- package/resources/texml/accounts/queues.d.ts.map +1 -1
- package/resources/texml/accounts/queues.js +11 -12
- package/resources/texml/accounts/queues.js.map +1 -1
- package/resources/texml/accounts/queues.mjs +11 -12
- package/resources/texml/accounts/queues.mjs.map +1 -1
- package/resources/texml/accounts/transcriptions/index.d.mts +1 -1
- package/resources/texml/accounts/transcriptions/index.d.mts.map +1 -1
- package/resources/texml/accounts/transcriptions/index.d.ts +1 -1
- package/resources/texml/accounts/transcriptions/index.d.ts.map +1 -1
- package/resources/texml/accounts/transcriptions/json.d.mts +4 -4
- package/resources/texml/accounts/transcriptions/json.d.mts.map +1 -1
- package/resources/texml/accounts/transcriptions/json.d.ts +4 -4
- package/resources/texml/accounts/transcriptions/json.d.ts.map +1 -1
- package/resources/texml/accounts/transcriptions/json.js +1 -1
- package/resources/texml/accounts/transcriptions/json.mjs +1 -1
- package/resources/texml/accounts/transcriptions/transcriptions.d.mts +2 -2
- package/resources/texml/accounts/transcriptions/transcriptions.d.mts.map +1 -1
- package/resources/texml/accounts/transcriptions/transcriptions.d.ts +2 -2
- package/resources/texml/accounts/transcriptions/transcriptions.d.ts.map +1 -1
- package/resources/texml/index.d.mts +1 -1
- package/resources/texml/index.d.mts.map +1 -1
- package/resources/texml/index.d.ts +1 -1
- package/resources/texml/index.d.ts.map +1 -1
- package/resources/texml/index.js.map +1 -1
- package/resources/texml/index.mjs.map +1 -1
- package/resources/texml/texml.d.mts +2 -2
- package/resources/texml/texml.d.mts.map +1 -1
- package/resources/texml/texml.d.ts +2 -2
- package/resources/texml/texml.d.ts.map +1 -1
- package/resources/texml/texml.js.map +1 -1
- package/resources/texml/texml.mjs.map +1 -1
- package/resources/text-to-speech/index.d.mts +2 -2
- package/resources/text-to-speech/index.d.mts.map +1 -1
- package/resources/text-to-speech/index.d.ts +2 -2
- package/resources/text-to-speech/index.d.ts.map +1 -1
- package/resources/text-to-speech/index.js +1 -3
- package/resources/text-to-speech/index.js.map +1 -1
- package/resources/text-to-speech/index.mjs +0 -1
- package/resources/text-to-speech/index.mjs.map +1 -1
- package/resources/text-to-speech/internal-base.d.mts +70 -1
- package/resources/text-to-speech/internal-base.d.mts.map +1 -1
- package/resources/text-to-speech/internal-base.d.ts +70 -1
- package/resources/text-to-speech/internal-base.d.ts.map +1 -1
- package/resources/text-to-speech/internal-base.js +44 -5
- package/resources/text-to-speech/internal-base.js.map +1 -1
- package/resources/text-to-speech/internal-base.mjs +40 -1
- package/resources/text-to-speech/internal-base.mjs.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.mts +34 -80
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +34 -80
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-speech/text-to-speech.js +12 -25
- package/resources/text-to-speech/text-to-speech.js.map +1 -1
- package/resources/text-to-speech/text-to-speech.mjs +12 -25
- package/resources/text-to-speech/text-to-speech.mjs.map +1 -1
- package/resources/text-to-speech/ws-base.d.mts +105 -1
- package/resources/text-to-speech/ws-base.d.mts.map +1 -1
- package/resources/text-to-speech/ws-base.d.ts +105 -1
- package/resources/text-to-speech/ws-base.d.ts.map +1 -1
- package/resources/text-to-speech/ws-base.js +471 -2
- package/resources/text-to-speech/ws-base.js.map +1 -1
- package/resources/text-to-speech/ws-base.mjs +470 -1
- package/resources/text-to-speech/ws-base.mjs.map +1 -1
- package/resources/text-to-speech/ws.d.mts +12 -2
- package/resources/text-to-speech/ws.d.mts.map +1 -1
- package/resources/text-to-speech/ws.d.ts +12 -2
- package/resources/text-to-speech/ws.d.ts.map +1 -1
- package/resources/text-to-speech/ws.js +26 -2
- package/resources/text-to-speech/ws.js.map +1 -1
- package/resources/text-to-speech/ws.mjs +24 -1
- package/resources/text-to-speech/ws.mjs.map +1 -1
- package/resources/uac-connections/index.d.mts +1 -1
- package/resources/uac-connections/index.d.mts.map +1 -1
- package/resources/uac-connections/index.d.ts +1 -1
- package/resources/uac-connections/index.d.ts.map +1 -1
- package/resources/uac-connections/index.js.map +1 -1
- package/resources/uac-connections/index.mjs.map +1 -1
- package/resources/uac-connections/uac-connections.d.mts +72 -142
- package/resources/uac-connections/uac-connections.d.mts.map +1 -1
- package/resources/uac-connections/uac-connections.d.ts +72 -142
- package/resources/uac-connections/uac-connections.d.ts.map +1 -1
- package/resources/uac-connections/uac-connections.js.map +1 -1
- package/resources/uac-connections/uac-connections.mjs.map +1 -1
- package/resources/verifications/index.d.mts +1 -1
- package/resources/verifications/index.d.mts.map +1 -1
- package/resources/verifications/index.d.ts +1 -1
- package/resources/verifications/index.d.ts.map +1 -1
- package/resources/verifications/index.js.map +1 -1
- package/resources/verifications/index.mjs.map +1 -1
- package/resources/verifications/verifications.d.mts +22 -1
- package/resources/verifications/verifications.d.mts.map +1 -1
- package/resources/verifications/verifications.d.ts +22 -1
- package/resources/verifications/verifications.d.ts.map +1 -1
- package/resources/verifications/verifications.js.map +1 -1
- package/resources/verifications/verifications.mjs.map +1 -1
- package/resources/virtual-cross-connects.d.mts +143 -1
- package/resources/virtual-cross-connects.d.mts.map +1 -1
- package/resources/virtual-cross-connects.d.ts +143 -1
- package/resources/virtual-cross-connects.d.ts.map +1 -1
- package/resources/virtual-cross-connects.js.map +1 -1
- package/resources/virtual-cross-connects.mjs.map +1 -1
- package/resources/voice-clones.d.mts +34 -30
- package/resources/voice-clones.d.mts.map +1 -1
- package/resources/voice-clones.d.ts +34 -30
- package/resources/voice-clones.d.ts.map +1 -1
- package/resources/voice-clones.js +19 -18
- package/resources/voice-clones.js.map +1 -1
- package/resources/voice-clones.mjs +19 -18
- package/resources/voice-clones.mjs.map +1 -1
- package/resources/voice-designs.d.mts +16 -60
- package/resources/voice-designs.d.mts.map +1 -1
- package/resources/voice-designs.d.ts +16 -60
- package/resources/voice-designs.d.ts.map +1 -1
- package/resources/voice-designs.js +8 -8
- package/resources/voice-designs.js.map +1 -1
- package/resources/voice-designs.mjs +8 -8
- package/resources/voice-designs.mjs.map +1 -1
- package/resources/voice-sdk-call-reports.d.mts +35 -186
- package/resources/voice-sdk-call-reports.d.mts.map +1 -1
- package/resources/voice-sdk-call-reports.d.ts +35 -186
- package/resources/voice-sdk-call-reports.d.ts.map +1 -1
- package/resources/voice-sdk-call-reports.js +4 -1
- package/resources/voice-sdk-call-reports.js.map +1 -1
- package/resources/voice-sdk-call-reports.mjs +4 -1
- package/resources/voice-sdk-call-reports.mjs.map +1 -1
- package/resources/webhook-deliveries.d.mts +12 -79
- package/resources/webhook-deliveries.d.mts.map +1 -1
- package/resources/webhook-deliveries.d.ts +12 -79
- package/resources/webhook-deliveries.d.ts.map +1 -1
- package/resources/webhook-deliveries.js +4 -1
- package/resources/webhook-deliveries.js.map +1 -1
- package/resources/webhook-deliveries.mjs +4 -1
- package/resources/webhook-deliveries.mjs.map +1 -1
- package/resources/webhooks.d.mts +5 -3
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +5 -3
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +11 -4
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +11 -4
- package/resources/webhooks.mjs.map +1 -1
- package/resources/whatsapp/index.d.mts +1 -1
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +1 -1
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/index.js.map +1 -1
- package/resources/whatsapp/index.mjs.map +1 -1
- package/resources/whatsapp/templates.d.mts +149 -151
- package/resources/whatsapp/templates.d.mts.map +1 -1
- package/resources/whatsapp/templates.d.ts +149 -151
- package/resources/whatsapp/templates.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.d.mts +2 -2
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +2 -2
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.js.map +1 -1
- package/resources/whatsapp/whatsapp.mjs +1 -1
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/resources/whatsapp-message-templates.d.mts +2 -162
- package/resources/whatsapp-message-templates.d.mts.map +1 -1
- package/resources/whatsapp-message-templates.d.ts +2 -162
- package/resources/whatsapp-message-templates.d.ts.map +1 -1
- package/resources/whatsapp-message-templates.js.map +1 -1
- package/resources/whatsapp-message-templates.mjs.map +1 -1
- package/resources/wireguard-interfaces.d.mts +24 -50
- package/resources/wireguard-interfaces.d.mts.map +1 -1
- package/resources/wireguard-interfaces.d.ts +24 -50
- package/resources/wireguard-interfaces.d.ts.map +1 -1
- package/resources/wireguard-interfaces.js +3 -34
- package/resources/wireguard-interfaces.js.map +1 -1
- package/resources/wireguard-interfaces.mjs +3 -34
- package/resources/wireguard-interfaces.mjs.map +1 -1
- package/resources/wireguard-peers.d.mts +30 -109
- package/resources/wireguard-peers.d.mts.map +1 -1
- package/resources/wireguard-peers.d.ts +30 -109
- package/resources/wireguard-peers.d.ts.map +1 -1
- package/resources/wireguard-peers.js +5 -5
- package/resources/wireguard-peers.js.map +1 -1
- package/resources/wireguard-peers.mjs +5 -5
- package/resources/wireguard-peers.mjs.map +1 -1
- package/src/client.ts +219 -131
- package/src/index.ts +0 -1
- package/src/resources/advanced-orders.ts +9 -94
- package/src/resources/ai/ai.ts +342 -57
- package/src/resources/ai/assistants/assistants.ts +797 -17
- package/src/resources/ai/assistants/index.ts +13 -8
- package/src/resources/ai/assistants/instructions.ts +74 -0
- package/src/resources/ai/assistants/scheduled-events.ts +44 -0
- package/src/resources/ai/assistants/tags.ts +14 -20
- package/src/resources/ai/assistants/tests/runs.ts +3 -0
- package/src/resources/ai/assistants/tools.ts +7 -1
- package/src/resources/ai/assistants/versions.ts +27 -3
- package/src/resources/ai/chat.ts +206 -0
- package/src/resources/ai/clusters.ts +3 -0
- package/src/resources/ai/index.ts +25 -27
- package/src/resources/ai/integrations/index.ts +1 -1
- package/src/resources/ai/integrations/integrations.ts +4 -25
- package/src/resources/ai/mcp-servers.ts +19 -70
- package/src/resources/ai/missions/index.ts +6 -9
- package/src/resources/ai/missions/knowledge-bases.ts +9 -0
- package/src/resources/ai/missions/mcp-servers.ts +9 -0
- package/src/resources/ai/missions/missions.ts +34 -35
- package/src/resources/ai/missions/runs/events.ts +38 -42
- package/src/resources/ai/missions/runs/index.ts +9 -12
- package/src/resources/ai/missions/runs/plan.ts +64 -72
- package/src/resources/ai/missions/runs/runs.ts +77 -67
- package/src/resources/ai/missions/runs/telnyx-agents.ts +10 -1
- package/src/resources/ai/missions/tools.ts +9 -0
- package/src/resources/ai/openai/index.ts +1 -6
- package/src/resources/ai/openai/openai.ts +6 -13
- package/src/resources/ai/tools.ts +23 -58
- package/src/resources/bulk-sim-card-actions.ts +17 -57
- package/src/resources/call-reasons.ts +149 -0
- package/src/resources/calls/actions.ts +234 -512
- package/src/resources/calls/calls.ts +171 -154
- package/src/resources/calls/index.ts +9 -0
- package/src/resources/channel-zones.ts +7 -34
- package/src/resources/conferences/actions.ts +25 -16
- package/src/resources/conferences/conferences.ts +15 -17
- package/src/resources/conferences/index.ts +2 -2
- package/src/resources/connections.ts +10 -77
- package/src/resources/credential-connections/credential-connections.ts +12 -3
- package/src/resources/credential-connections/index.ts +1 -0
- package/src/resources/custom-storage-credentials.ts +22 -57
- package/src/resources/dialogflow-connections.ts +10 -74
- package/src/resources/dir/comments.ts +148 -0
- package/src/resources/dir/dir.ts +692 -0
- package/src/resources/dir/index.ts +46 -0
- package/src/resources/dir/phone-number-batches.ts +170 -0
- package/src/resources/dir/phone-numbers.ts +266 -0
- package/src/resources/dir.ts +3 -0
- package/src/resources/document-links.ts +2 -16
- package/src/resources/documents.ts +25 -17
- package/src/resources/enterprises/dir.ts +220 -0
- package/src/resources/enterprises/enterprises.ts +351 -255
- package/src/resources/enterprises/index.ts +5 -6
- package/src/resources/enterprises/reputation/index.ts +20 -5
- package/src/resources/enterprises/reputation/loa.ts +147 -0
- package/src/resources/enterprises/reputation/numbers.ts +157 -93
- package/src/resources/enterprises/reputation/remediation.ts +273 -0
- package/src/resources/enterprises/reputation/reputation.ts +130 -97
- package/src/resources/external-connections/external-connections.ts +8 -8
- package/src/resources/external-connections/index.ts +4 -4
- package/src/resources/external-connections/log-messages.ts +14 -55
- package/src/resources/external-connections/releases.ts +23 -52
- package/src/resources/faxes/faxes.ts +10 -2
- package/src/resources/faxes/index.ts +1 -0
- package/src/resources/fqdn-connections.ts +3 -3
- package/src/resources/global-ip-health-checks.ts +18 -77
- package/src/resources/global-ips.ts +15 -90
- package/src/resources/index.ts +100 -62
- package/src/resources/infringement-claims.ts +207 -0
- package/src/resources/ip-connections.ts +3 -3
- package/src/resources/legacy/reporting/usage-reports/usage-reports.ts +6 -0
- package/src/resources/messages/index.ts +0 -1
- package/src/resources/messages/messages.ts +2 -29
- package/src/resources/messaging-10dlc/brand/brand.ts +69 -108
- package/src/resources/messaging-10dlc/brand/external-vetting.ts +9 -94
- package/src/resources/messaging-10dlc/brand/index.ts +3 -5
- package/src/resources/messaging-10dlc/campaign/campaign.ts +3 -0
- package/src/resources/messaging-10dlc/campaign/usecase.ts +3 -0
- package/src/resources/messaging-10dlc/campaign-builder/brand.ts +3 -0
- package/src/resources/messaging-10dlc/index.ts +1 -2
- package/src/resources/messaging-10dlc/messaging-10dlc.ts +2 -4
- package/src/resources/messaging-10dlc/phone-number-assignment-by-profile.ts +12 -0
- package/src/resources/messaging-hosted-numbers.ts +26 -0
- package/src/resources/messaging-profile-metrics.ts +7 -1
- package/src/resources/messaging-profiles/autoresp-configs.ts +10 -1
- package/src/resources/messaging-profiles/messaging-profiles.ts +7 -1
- package/src/resources/messaging-tollfree/verification/requests.ts +14 -3
- package/src/resources/mobile-phone-numbers/index.ts +2 -2
- package/src/resources/mobile-phone-numbers/messaging.ts +16 -89
- package/src/resources/mobile-phone-numbers/mobile-phone-numbers.ts +4 -4
- package/src/resources/networks/default-gateway.ts +22 -61
- package/src/resources/networks/index.ts +4 -3
- package/src/resources/networks/networks.ts +31 -75
- package/src/resources/porting/events.ts +15 -21
- package/src/resources/porting/index.ts +2 -2
- package/src/resources/porting/porting.ts +4 -4
- package/src/resources/porting-orders/action-requirements.ts +8 -63
- package/src/resources/porting-orders/additional-documents.ts +12 -61
- package/src/resources/porting-orders/comments.ts +11 -39
- package/src/resources/porting-orders/index.ts +10 -10
- package/src/resources/porting-orders/phone-number-blocks.ts +2 -14
- package/src/resources/porting-orders/phone-number-configurations.ts +12 -49
- package/src/resources/porting-orders/porting-orders.ts +23 -111
- package/src/resources/porting-orders/verification-codes.ts +8 -48
- package/src/resources/porting-phone-numbers.ts +29 -25
- package/src/resources/portouts/events.ts +12 -12
- package/src/resources/portouts/index.ts +2 -2
- package/src/resources/portouts/portouts.ts +4 -4
- package/src/resources/pronunciation-dicts.ts +19 -33
- package/src/resources/public-internet-gateways.ts +22 -45
- package/src/resources/queues/calls.ts +14 -78
- package/src/resources/queues/index.ts +2 -2
- package/src/resources/queues/queues.ts +4 -4
- package/src/resources/recordings/index.ts +1 -2
- package/src/resources/recordings/recordings.ts +9 -14
- package/src/resources/reports/cdr-usage-reports.ts +15 -0
- package/src/resources/reports/mdr-usage-reports.ts +12 -0
- package/src/resources/reports/reports.ts +16 -17
- package/src/resources/reputation/index.ts +1 -6
- package/src/resources/reputation/numbers.ts +29 -34
- package/src/resources/reputation/reputation.ts +1 -2
- package/src/resources/requirements.ts +11 -62
- package/src/resources/room-recordings.ts +10 -92
- package/src/resources/shared.ts +39 -77
- package/src/resources/sip-registration-status.ts +43 -9
- package/src/resources/siprec-connectors.ts +10 -95
- package/src/resources/speech-to-text/index.ts +2 -0
- package/src/resources/speech-to-text/speech-to-text.ts +156 -18
- package/src/resources/terms-of-service/agreements.ts +102 -0
- package/src/resources/terms-of-service/branded-calling.ts +24 -0
- package/src/resources/terms-of-service/index.ts +16 -1
- package/src/resources/terms-of-service/number-reputation.ts +7 -11
- package/src/resources/terms-of-service/terms-of-service.ts +145 -0
- package/src/resources/texml/accounts/accounts.ts +15 -125
- package/src/resources/texml/accounts/calls/calls.ts +624 -284
- package/src/resources/texml/accounts/calls/index.ts +6 -9
- package/src/resources/texml/accounts/calls/recordings-json.ts +26 -17
- package/src/resources/texml/accounts/calls/recordings.ts +4 -66
- package/src/resources/texml/accounts/conferences/conferences.ts +12 -196
- package/src/resources/texml/accounts/conferences/index.ts +2 -5
- package/src/resources/texml/accounts/conferences/participants.ts +7 -164
- package/src/resources/texml/accounts/index.ts +4 -11
- package/src/resources/texml/accounts/queues.ts +20 -173
- package/src/resources/texml/accounts/transcriptions/index.ts +1 -1
- package/src/resources/texml/accounts/transcriptions/json.ts +4 -4
- package/src/resources/texml/accounts/transcriptions/transcriptions.ts +2 -2
- package/src/resources/texml/index.ts +0 -1
- package/src/resources/texml/texml.ts +0 -2
- package/src/resources/text-to-speech/index.ts +3 -4
- package/src/resources/text-to-speech/internal-base.ts +111 -6
- package/src/resources/text-to-speech/text-to-speech.ts +46 -117
- package/src/resources/text-to-speech/ws-base.ts +613 -5
- package/src/resources/text-to-speech/ws.ts +40 -2
- package/src/resources/uac-connections/index.ts +1 -0
- package/src/resources/uac-connections/uac-connections.ts +85 -167
- package/src/resources/verifications/index.ts +1 -0
- package/src/resources/verifications/verifications.ts +26 -0
- package/src/resources/virtual-cross-connects.ts +173 -0
- package/src/resources/voice-clones.ts +42 -41
- package/src/resources/voice-designs.ts +19 -72
- package/src/resources/voice-sdk-call-reports.ts +44 -210
- package/src/resources/webhook-deliveries.ts +18 -98
- package/src/resources/webhooks.ts +14 -5
- package/src/resources/whatsapp/index.ts +5 -0
- package/src/resources/whatsapp/templates.ts +171 -168
- package/src/resources/whatsapp/whatsapp.ts +16 -1
- package/src/resources/whatsapp-message-templates.ts +6 -195
- package/src/resources/wireguard-interfaces.ts +32 -52
- package/src/resources/wireguard-peers.ts +38 -126
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -2,6 +2,475 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.TextToSpeechWSBase = void 0;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const internal_base_1 = require("./internal-base.js");
|
|
6
|
+
const EventEmitter_1 = require("../../core/EventEmitter.js");
|
|
7
|
+
const sleep_1 = require("../../internal/utils/sleep.js");
|
|
8
|
+
const ws_adapter_1 = require("../../internal/ws-adapter.js");
|
|
9
|
+
const ws_1 = require("../../internal/ws.js");
|
|
10
|
+
const error_1 = require("../../core/error.js");
|
|
11
|
+
class TextToSpeechWSBase extends internal_base_1.TextToSpeechEmitter {
|
|
12
|
+
constructor(client, parameters, options) {
|
|
13
|
+
super();
|
|
14
|
+
this._isReconnecting = false;
|
|
15
|
+
this._intentionallyClosed = false;
|
|
16
|
+
this._closeCode = 1000;
|
|
17
|
+
this._closeReason = 'OK';
|
|
18
|
+
this._lastCloseCode = 1006;
|
|
19
|
+
this._lastCloseReason = '';
|
|
20
|
+
// Necessary to keep the public event interface clean while we manage reconnecting
|
|
21
|
+
this._internalEvents = new EventEmitter_1.InternalEventEmitter();
|
|
22
|
+
this._client = client;
|
|
23
|
+
this._parameters = undefined;
|
|
24
|
+
this._reconnectOptions = options?.reconnect ?? null;
|
|
25
|
+
this._sendQueue = new ws_1.SendQueue(options?.maxQueueSize);
|
|
26
|
+
}
|
|
27
|
+
/** Establishes the initial WebSocket connection. */
|
|
28
|
+
_connectInitial() {
|
|
29
|
+
this.url = (0, internal_base_1.buildURL)(this._client, this._parameters ?? {});
|
|
30
|
+
this.socket = this._connect();
|
|
31
|
+
}
|
|
32
|
+
send(event) {
|
|
33
|
+
if (!this.socket) {
|
|
34
|
+
throw new error_1.TelnyxError('Internal error: failed to initialize socket. Please report this issue.');
|
|
35
|
+
}
|
|
36
|
+
if (this._isReconnecting || this.socket.readyState === ws_adapter_1.ReadyState.CONNECTING) {
|
|
37
|
+
if (!this._sendQueue.enqueue(event)) {
|
|
38
|
+
this._onError(null, 'send queue is full, message discarded', undefined);
|
|
39
|
+
}
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (this.socket.readyState !== ws_adapter_1.ReadyState.OPEN) {
|
|
43
|
+
this._onError(null, 'cannot send on a closed WebSocket', undefined);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
try {
|
|
47
|
+
this.socket.send(JSON.stringify(event));
|
|
48
|
+
}
|
|
49
|
+
catch (err) {
|
|
50
|
+
this._onError(null, 'could not send data', err);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
sendRaw(data) {
|
|
54
|
+
if (!this.socket) {
|
|
55
|
+
throw new error_1.TelnyxError('Internal error: failed to initialize socket. Please report this issue.');
|
|
56
|
+
}
|
|
57
|
+
if (this._isReconnecting || this.socket.readyState === ws_adapter_1.ReadyState.CONNECTING) {
|
|
58
|
+
if (!this._sendQueue.enqueueRaw(data)) {
|
|
59
|
+
this._onError(null, 'send queue is full, message discarded', undefined);
|
|
60
|
+
}
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
if (this.socket.readyState !== ws_adapter_1.ReadyState.OPEN) {
|
|
64
|
+
this._onError(null, 'cannot send on a closed WebSocket', undefined);
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
try {
|
|
68
|
+
this.socket.send((0, ws_1.flattenRawData)(data));
|
|
69
|
+
}
|
|
70
|
+
catch (err) {
|
|
71
|
+
this._onError(null, 'could not send data', err);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
close(props) {
|
|
75
|
+
if (!this.socket) {
|
|
76
|
+
throw new error_1.TelnyxError('Internal error: failed to initialize socket. Please report this issue.');
|
|
77
|
+
}
|
|
78
|
+
this._intentionallyClosed = true;
|
|
79
|
+
this._closeCode = props?.code ?? 1000;
|
|
80
|
+
this._closeReason = props?.reason ?? 'OK';
|
|
81
|
+
try {
|
|
82
|
+
this.socket.close(this._closeCode, this._closeReason);
|
|
83
|
+
}
|
|
84
|
+
catch (err) {
|
|
85
|
+
this._onError(null, 'could not close the connection', err);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Returns an async iterator over WebSocket lifecycle and message events,
|
|
90
|
+
* providing an alternative to the event-based `.on()` API.
|
|
91
|
+
* The iterator will exit if the socket closes but exiting the iterator
|
|
92
|
+
* does not close the socket.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```ts
|
|
96
|
+
* for await (const event of client.stream()) {
|
|
97
|
+
* switch (event.type) {
|
|
98
|
+
* case 'message':
|
|
99
|
+
* console.log('received:', event.message);
|
|
100
|
+
* break;
|
|
101
|
+
* case 'error':
|
|
102
|
+
* console.error(event.error);
|
|
103
|
+
* break;
|
|
104
|
+
* case 'close':
|
|
105
|
+
* console.log('connection closed');
|
|
106
|
+
* break;
|
|
107
|
+
* }
|
|
108
|
+
* }
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
stream() {
|
|
112
|
+
return this[Symbol.asyncIterator]();
|
|
113
|
+
}
|
|
114
|
+
[Symbol.asyncIterator]() {
|
|
115
|
+
if (!this.socket) {
|
|
116
|
+
throw new error_1.TelnyxError('Internal error: failed to initialize socket. Please report this issue.');
|
|
117
|
+
}
|
|
118
|
+
// Two-queue async iterator: `queue` buffers incoming messages,
|
|
119
|
+
// `resolvers` buffers waiting next() calls. A push wakes the
|
|
120
|
+
// oldest next(); a next() drains the oldest message.
|
|
121
|
+
const queue = [];
|
|
122
|
+
const resolvers = [];
|
|
123
|
+
let done = false;
|
|
124
|
+
let currentSocket = this.socket;
|
|
125
|
+
const push = (msg) => {
|
|
126
|
+
queue.push(msg);
|
|
127
|
+
resolvers.shift()?.();
|
|
128
|
+
};
|
|
129
|
+
const onEvent = (event) => {
|
|
130
|
+
if (event.type === 'error')
|
|
131
|
+
return; // handled by onEmitterError
|
|
132
|
+
push({ type: 'message', message: event });
|
|
133
|
+
};
|
|
134
|
+
const onRaw = (data) => {
|
|
135
|
+
push({ type: 'raw', data });
|
|
136
|
+
};
|
|
137
|
+
// All errors (API + socket) funnel through _onError → 'error' event
|
|
138
|
+
const onEmitterError = (err) => {
|
|
139
|
+
push({ type: 'error', error: err });
|
|
140
|
+
};
|
|
141
|
+
const onOpen = () => {
|
|
142
|
+
push({ type: 'open' });
|
|
143
|
+
};
|
|
144
|
+
const onReconnecting = (evt) => {
|
|
145
|
+
push({ type: 'reconnecting', reconnect: evt });
|
|
146
|
+
};
|
|
147
|
+
const onReconnected = () => {
|
|
148
|
+
push({ type: 'reconnected' });
|
|
149
|
+
};
|
|
150
|
+
const flushResolvers = () => {
|
|
151
|
+
for (let resolver = resolvers.shift(); resolver; resolver = resolvers.shift()) {
|
|
152
|
+
resolver();
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
const onClose = (code, reason, unsent) => {
|
|
156
|
+
push({ type: 'close', code, reason, unsent });
|
|
157
|
+
done = true;
|
|
158
|
+
flushResolvers();
|
|
159
|
+
cleanup();
|
|
160
|
+
};
|
|
161
|
+
const onSocketSwap = (oldSocket, newSocket) => {
|
|
162
|
+
oldSocket.off('open', onOpen);
|
|
163
|
+
newSocket.on('open', onOpen);
|
|
164
|
+
currentSocket = newSocket;
|
|
165
|
+
};
|
|
166
|
+
const cleanup = () => {
|
|
167
|
+
this.off('event', onEvent);
|
|
168
|
+
this.off('raw', onRaw);
|
|
169
|
+
this.off('error', onEmitterError);
|
|
170
|
+
currentSocket.off('open', onOpen);
|
|
171
|
+
this._internalEvents.off('close', onClose);
|
|
172
|
+
this._internalEvents.off('socketSwap', onSocketSwap);
|
|
173
|
+
this._internalEvents.off('reconnecting', onReconnecting);
|
|
174
|
+
this._internalEvents.off('reconnected', onReconnected);
|
|
175
|
+
};
|
|
176
|
+
this.on('event', onEvent);
|
|
177
|
+
this.on('raw', onRaw);
|
|
178
|
+
this.on('error', onEmitterError);
|
|
179
|
+
this.socket.on('open', onOpen);
|
|
180
|
+
this._internalEvents.on('close', onClose);
|
|
181
|
+
this._internalEvents.on('socketSwap', onSocketSwap);
|
|
182
|
+
this._internalEvents.on('reconnecting', onReconnecting);
|
|
183
|
+
this._internalEvents.on('reconnected', onReconnected);
|
|
184
|
+
if (this._isReconnecting) {
|
|
185
|
+
// A reconnect is already in flight. The socket may be CLOSED but the
|
|
186
|
+
// instance is still alive. Emit 'reconnecting' so the iterator stays
|
|
187
|
+
// open and receives the upcoming reconnected/message events.
|
|
188
|
+
push({
|
|
189
|
+
type: 'reconnecting',
|
|
190
|
+
reconnect: { attempt: 0, maxAttempts: 0, delay: 0, closeCode: 0, parameters: undefined },
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
switch (this.socket.readyState) {
|
|
195
|
+
case ws_adapter_1.ReadyState.CONNECTING:
|
|
196
|
+
push({ type: 'connecting' });
|
|
197
|
+
break;
|
|
198
|
+
case ws_adapter_1.ReadyState.OPEN:
|
|
199
|
+
push({ type: 'open' });
|
|
200
|
+
break;
|
|
201
|
+
case ws_adapter_1.ReadyState.CLOSING:
|
|
202
|
+
push({ type: 'closing' });
|
|
203
|
+
break;
|
|
204
|
+
case ws_adapter_1.ReadyState.CLOSED:
|
|
205
|
+
push({
|
|
206
|
+
type: 'close',
|
|
207
|
+
code: this._lastCloseCode,
|
|
208
|
+
reason: this._lastCloseReason,
|
|
209
|
+
unsent: this._sendQueue.drain(),
|
|
210
|
+
});
|
|
211
|
+
done = true;
|
|
212
|
+
cleanup();
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
const resolve = (res) => {
|
|
217
|
+
if (queue.length > 0) {
|
|
218
|
+
res({ value: queue.shift(), done: false });
|
|
219
|
+
}
|
|
220
|
+
else if (done) {
|
|
221
|
+
res({ value: undefined, done: true });
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
return false;
|
|
225
|
+
}
|
|
226
|
+
return true;
|
|
227
|
+
};
|
|
228
|
+
const next = () => new Promise((res) => {
|
|
229
|
+
if (resolve(res))
|
|
230
|
+
return;
|
|
231
|
+
resolvers.push(() => {
|
|
232
|
+
resolve(res);
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
return {
|
|
236
|
+
next,
|
|
237
|
+
return: () => {
|
|
238
|
+
done = true;
|
|
239
|
+
cleanup();
|
|
240
|
+
flushResolvers();
|
|
241
|
+
return Promise.resolve({ value: undefined, done: true });
|
|
242
|
+
},
|
|
243
|
+
[Symbol.asyncIterator]() {
|
|
244
|
+
return this;
|
|
245
|
+
},
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
_connect() {
|
|
249
|
+
this.url = (0, internal_base_1.buildURL)(this._client, this._parameters ?? {});
|
|
250
|
+
const socket = this._createSocket(this.url, this._authHeaders());
|
|
251
|
+
socket.on('message', (data, isBinary) => {
|
|
252
|
+
if (isBinary) {
|
|
253
|
+
this._emit('raw', data);
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
256
|
+
// Coerce to string in case the adapter delivers a typed-array for text frames.
|
|
257
|
+
const text = typeof data === 'string' ? data : String(data);
|
|
258
|
+
let event;
|
|
259
|
+
try {
|
|
260
|
+
event = JSON.parse(text);
|
|
261
|
+
}
|
|
262
|
+
catch {
|
|
263
|
+
this._emit('raw', data);
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
this._emit('event', event);
|
|
267
|
+
if (event.type === 'error') {
|
|
268
|
+
this._onError(event);
|
|
269
|
+
}
|
|
270
|
+
else {
|
|
271
|
+
// @ts-ignore TS isn't smart enough to get the relationship right here
|
|
272
|
+
this._emit(event.type, event);
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
socket.on('error', (err) => {
|
|
276
|
+
// Suppress transient errors during reconnection — the retry loop
|
|
277
|
+
// already handles them and will surface a close if retries exhaust.
|
|
278
|
+
if (this._isReconnecting)
|
|
279
|
+
return;
|
|
280
|
+
this._onError(null, err.message, err);
|
|
281
|
+
});
|
|
282
|
+
socket.on('open', () => {
|
|
283
|
+
this._flushSendQueue();
|
|
284
|
+
});
|
|
285
|
+
socket.on('close', (code, reason) => {
|
|
286
|
+
// Ignore close events from superseded sockets — a stale socket's
|
|
287
|
+
// late close must not kick off a second reconnect loop.
|
|
288
|
+
if (socket !== this.socket)
|
|
289
|
+
return;
|
|
290
|
+
if (!this._intentionallyClosed && this._canReconnect(code)) {
|
|
291
|
+
this._reconnect(code);
|
|
292
|
+
}
|
|
293
|
+
else if (!this._isReconnecting) {
|
|
294
|
+
this._emitPermanentClose(code, reason);
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
return socket;
|
|
298
|
+
}
|
|
299
|
+
// Reconnect is opt-in via onReconnecting so callers can pass
|
|
300
|
+
// state (e.g. session IDs) into the new connection.
|
|
301
|
+
_canReconnect(code) {
|
|
302
|
+
if (this._intentionallyClosed)
|
|
303
|
+
return false;
|
|
304
|
+
if (!this._reconnectOptions)
|
|
305
|
+
return false;
|
|
306
|
+
if (this._reconnectOptions.maxRetries === 0)
|
|
307
|
+
return false;
|
|
308
|
+
if (!this._reconnectOptions.onReconnecting)
|
|
309
|
+
return false;
|
|
310
|
+
return (0, ws_1.isRecoverableClose)(code);
|
|
311
|
+
}
|
|
312
|
+
async _reconnect(closeCode) {
|
|
313
|
+
if (!this.socket) {
|
|
314
|
+
throw new error_1.TelnyxError('Internal error: failed to initialize socket. Please report this issue.');
|
|
315
|
+
}
|
|
316
|
+
if (this._isReconnecting || !this._reconnectOptions)
|
|
317
|
+
return;
|
|
318
|
+
this._isReconnecting = true;
|
|
319
|
+
const maxRetries = this._reconnectOptions.maxRetries ?? 5;
|
|
320
|
+
const initialDelay = this._reconnectOptions.initialDelay ?? 500;
|
|
321
|
+
const maxDelay = this._reconnectOptions.maxDelay ?? 8000;
|
|
322
|
+
for (let attempt = 1; attempt <= maxRetries; attempt++) {
|
|
323
|
+
if (!this._canReconnect(closeCode)) {
|
|
324
|
+
this._isReconnecting = false;
|
|
325
|
+
if (!this._intentionallyClosed) {
|
|
326
|
+
this._onError(null, `WebSocket reconnect aborted: non-recoverable close code ${closeCode}`, undefined);
|
|
327
|
+
}
|
|
328
|
+
this._emitPermanentClose(this._intentionallyClosed ? this._closeCode : closeCode, this._intentionallyClosed ? this._closeReason : 'reconnect aborted');
|
|
329
|
+
return;
|
|
330
|
+
}
|
|
331
|
+
const baseDelay = Math.min(initialDelay * Math.pow(2, attempt - 1), maxDelay);
|
|
332
|
+
// Jitter: rand [0.75, 1.0] to spread out connection attempts without over-delaying
|
|
333
|
+
const jitter = 0.75 + Math.random() * 0.25;
|
|
334
|
+
const actualDelay = Math.round(baseDelay * jitter);
|
|
335
|
+
let reconnectingEvent = {
|
|
336
|
+
attempt,
|
|
337
|
+
maxAttempts: maxRetries,
|
|
338
|
+
delay: actualDelay,
|
|
339
|
+
closeCode,
|
|
340
|
+
parameters: this._parameters ? { ...this._parameters } : undefined,
|
|
341
|
+
};
|
|
342
|
+
let overrides;
|
|
343
|
+
try {
|
|
344
|
+
overrides = this._reconnectOptions.onReconnecting(reconnectingEvent);
|
|
345
|
+
}
|
|
346
|
+
catch (err) {
|
|
347
|
+
this._isReconnecting = false;
|
|
348
|
+
this._onError(null, 'onReconnecting callback threw', err);
|
|
349
|
+
this._emitPermanentClose(closeCode, 'onReconnecting callback threw');
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
if (overrides && 'abort' in overrides && overrides.abort) {
|
|
353
|
+
this._isReconnecting = false;
|
|
354
|
+
this._emitPermanentClose(closeCode, 'reconnect aborted by handler');
|
|
355
|
+
return;
|
|
356
|
+
}
|
|
357
|
+
if (overrides && 'parameters' in overrides) {
|
|
358
|
+
this._parameters = overrides.parameters;
|
|
359
|
+
reconnectingEvent = { ...reconnectingEvent, parameters: this._parameters };
|
|
360
|
+
}
|
|
361
|
+
try {
|
|
362
|
+
this._emit('reconnecting', reconnectingEvent);
|
|
363
|
+
}
|
|
364
|
+
catch (err) {
|
|
365
|
+
this._onError(null, 'onReconnecting callback threw', err);
|
|
366
|
+
}
|
|
367
|
+
this._internalEvents._emit('reconnecting', reconnectingEvent);
|
|
368
|
+
if (!this._canReconnect(closeCode)) {
|
|
369
|
+
this._isReconnecting = false;
|
|
370
|
+
if (!this._intentionallyClosed) {
|
|
371
|
+
this._onError(null, `WebSocket reconnect aborted: non-recoverable close code ${closeCode}`, undefined);
|
|
372
|
+
}
|
|
373
|
+
this._emitPermanentClose(this._intentionallyClosed ? this._closeCode : closeCode, this._intentionallyClosed ? this._closeReason : 'reconnect aborted');
|
|
374
|
+
return;
|
|
375
|
+
}
|
|
376
|
+
await (0, sleep_1.sleep)(actualDelay);
|
|
377
|
+
if (!this._canReconnect(closeCode)) {
|
|
378
|
+
this._isReconnecting = false;
|
|
379
|
+
if (!this._intentionallyClosed) {
|
|
380
|
+
this._onError(null, `WebSocket reconnect aborted: non-recoverable close code ${closeCode}`, undefined);
|
|
381
|
+
}
|
|
382
|
+
this._emitPermanentClose(this._intentionallyClosed ? this._closeCode : closeCode, this._intentionallyClosed ? this._closeReason : 'reconnect aborted');
|
|
383
|
+
return;
|
|
384
|
+
}
|
|
385
|
+
let closeCodePromise;
|
|
386
|
+
try {
|
|
387
|
+
const oldSocket = this.socket;
|
|
388
|
+
this.socket = this._connect();
|
|
389
|
+
// Registered synchronously after _connect() and before any
|
|
390
|
+
// await so the code is captured even when ws emits 'close'
|
|
391
|
+
// in the same tick as 'error' (e.g. abortHandshake).
|
|
392
|
+
closeCodePromise = new Promise((resolve) => {
|
|
393
|
+
this.socket.once('close', resolve);
|
|
394
|
+
});
|
|
395
|
+
await this._awaitOpen(this.socket);
|
|
396
|
+
this._internalEvents._emit('socketSwap', oldSocket, this.socket);
|
|
397
|
+
this._isReconnecting = false;
|
|
398
|
+
this._flushSendQueue();
|
|
399
|
+
this._emit('reconnected');
|
|
400
|
+
this._internalEvents._emit('reconnected');
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
catch {
|
|
404
|
+
if (closeCodePromise) {
|
|
405
|
+
// ws may emit 'error' before 'close', so await the code
|
|
406
|
+
// rather than reading it synchronously.
|
|
407
|
+
closeCode = await closeCodePromise;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
// All retries exhausted — surface an error so consumers can
|
|
412
|
+
// distinguish retry failure from a clean close.
|
|
413
|
+
this._isReconnecting = false;
|
|
414
|
+
this._onError(null, `WebSocket reconnect failed after ${maxRetries} attempts (close code: ${closeCode})`, undefined);
|
|
415
|
+
this._emitPermanentClose(closeCode, `reconnect failed after ${maxRetries} attempts`);
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Resolves once the socket is open, rejects if it errors or closes first
|
|
419
|
+
*/
|
|
420
|
+
_awaitOpen(socket) {
|
|
421
|
+
return new Promise((resolve, reject) => {
|
|
422
|
+
const cleanup = () => {
|
|
423
|
+
socket.off('open', onOpen);
|
|
424
|
+
socket.off('error', onError);
|
|
425
|
+
socket.off('close', onFail);
|
|
426
|
+
};
|
|
427
|
+
const onOpen = () => {
|
|
428
|
+
cleanup();
|
|
429
|
+
resolve();
|
|
430
|
+
};
|
|
431
|
+
const onError = (err) => {
|
|
432
|
+
cleanup();
|
|
433
|
+
reject(err);
|
|
434
|
+
};
|
|
435
|
+
const onFail = () => {
|
|
436
|
+
cleanup();
|
|
437
|
+
reject(new Error('socket closed before open'));
|
|
438
|
+
};
|
|
439
|
+
socket.once('open', onOpen);
|
|
440
|
+
socket.once('error', onError);
|
|
441
|
+
socket.once('close', onFail);
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
_flushSendQueue() {
|
|
445
|
+
if (!this.socket) {
|
|
446
|
+
throw new error_1.TelnyxError('Internal error: failed to initialize socket. Please report this issue.');
|
|
447
|
+
}
|
|
448
|
+
try {
|
|
449
|
+
this._sendQueue.flush((data) => this.socket.send((0, ws_1.flattenRawData)(data)));
|
|
450
|
+
}
|
|
451
|
+
catch (err) {
|
|
452
|
+
this._onError(null, 'could not send queued data', err);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Emits the public `close` event with unsent messages and the internal
|
|
457
|
+
* `close` event used by the async iterator.
|
|
458
|
+
*/
|
|
459
|
+
_emitPermanentClose(code, reason) {
|
|
460
|
+
this._lastCloseCode = code;
|
|
461
|
+
this._lastCloseReason = reason;
|
|
462
|
+
const unsent = this._sendQueue.drain();
|
|
463
|
+
// Internal close fires first so the async iterator is guaranteed to
|
|
464
|
+
// terminate even if a public 'close' listener throws.
|
|
465
|
+
this._internalEvents._emit('close', code, reason, unsent);
|
|
466
|
+
this._emit('close', code, reason, unsent);
|
|
467
|
+
}
|
|
468
|
+
_authHeaders() {
|
|
469
|
+
if (this._client.apiKey) {
|
|
470
|
+
return { Authorization: `Bearer ${this._client.apiKey}` };
|
|
471
|
+
}
|
|
472
|
+
return {};
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
exports.TextToSpeechWSBase = TextToSpeechWSBase;
|
|
7
476
|
//# sourceMappingURL=ws-base.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ws-base.js","sourceRoot":"","sources":["../../src/resources/text-to-speech/ws-base.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8EAI0C;AAHxC,4HAAA,kBAAkB,OAAA"}
|
|
1
|
+
{"version":3,"file":"ws-base.js","sourceRoot":"","sources":["../../src/resources/text-to-speech/ws-base.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAA2G;AAC3G,6DAA+D;AAC/D,yDAAmD;AACnD,6DAA2E;AAC3E,6CAQ2B;AAG3B,+CAA+C;AA6C/C,MAAsB,kBAAkD,SAAQ,mCAAmB;IAuBjG,YACE,MAAc,EACd,UAAgD,EAChD,OAA+C;QAE/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