telnyx 7.25.0 → 7.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/client.d.mts +10 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -4
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +14 -5
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +14 -5
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js +4 -0
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs +4 -0
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +232 -6
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +232 -6
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/index.d.mts +1 -1
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +1 -1
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +12 -0
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +12 -0
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/avatars.d.mts +187 -0
- package/resources/ai/avatars.d.mts.map +1 -0
- package/resources/ai/avatars.d.ts +187 -0
- package/resources/ai/avatars.d.ts.map +1 -0
- package/resources/ai/avatars.js +93 -0
- package/resources/ai/avatars.js.map +1 -0
- package/resources/ai/avatars.mjs +89 -0
- package/resources/ai/avatars.mjs.map +1 -0
- package/resources/ai/chat.d.mts +20 -6
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +20 -6
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.d.mts +8 -0
- package/resources/ai/conversations/conversations.d.mts.map +1 -1
- package/resources/ai/conversations/conversations.d.ts +8 -0
- package/resources/ai/conversations/conversations.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.js.map +1 -1
- package/resources/ai/conversations/conversations.mjs.map +1 -1
- package/resources/ai/index.d.mts +2 -1
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +2 -1
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js +3 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs +1 -0
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/index.d.mts +1 -1
- package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/index.d.ts +1 -1
- package/resources/ai/memory/namespaces/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/index.js.map +1 -1
- package/resources/ai/memory/namespaces/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.mts +2 -2
- package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.ts +2 -2
- package/resources/ai/memory/namespaces/namespaces.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.js.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.mts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts +54 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts +54 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.js +31 -0
- package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.mjs +31 -0
- package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
- package/resources/ai/openai/chat.d.mts +20 -6
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +20 -6
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/tools.d.mts +17 -1
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +17 -1
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/calls/actions.d.mts +59 -13
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +59 -13
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +24 -14
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +24 -14
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js +8 -0
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs +8 -0
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/calls/index.d.mts +1 -1
- package/resources/calls/index.d.mts.map +1 -1
- package/resources/calls/index.d.ts +1 -1
- package/resources/calls/index.d.ts.map +1 -1
- package/resources/calls/index.js.map +1 -1
- package/resources/calls/index.mjs.map +1 -1
- package/resources/dir/dir.d.mts +10 -7
- package/resources/dir/dir.d.mts.map +1 -1
- package/resources/dir/dir.d.ts +10 -7
- package/resources/dir/dir.d.ts.map +1 -1
- package/resources/dir/dir.js +1 -1
- package/resources/dir/dir.js.map +1 -1
- package/resources/dir/dir.mjs +1 -1
- package/resources/dir/dir.mjs.map +1 -1
- package/resources/dir/phone-numbers.d.mts +0 -4
- package/resources/dir/phone-numbers.d.mts.map +1 -1
- package/resources/dir/phone-numbers.d.ts +0 -4
- package/resources/dir/phone-numbers.d.ts.map +1 -1
- package/resources/email-templates.d.mts +109 -18
- package/resources/email-templates.d.mts.map +1 -1
- package/resources/email-templates.d.ts +109 -18
- package/resources/email-templates.d.ts.map +1 -1
- package/resources/email-templates.js +5 -1
- package/resources/email-templates.js.map +1 -1
- package/resources/email-templates.mjs +5 -1
- package/resources/email-templates.mjs.map +1 -1
- package/resources/enterprises/dir.d.mts +8 -2
- package/resources/enterprises/dir.d.mts.map +1 -1
- package/resources/enterprises/dir.d.ts +8 -2
- package/resources/enterprises/dir.d.ts.map +1 -1
- package/resources/enterprises/dir.js +8 -2
- package/resources/enterprises/dir.js.map +1 -1
- package/resources/enterprises/dir.mjs +8 -2
- package/resources/enterprises/dir.mjs.map +1 -1
- package/resources/enterprises/enterprises.d.mts +7 -5
- package/resources/enterprises/enterprises.d.mts.map +1 -1
- package/resources/enterprises/enterprises.d.ts +7 -5
- package/resources/enterprises/enterprises.d.ts.map +1 -1
- package/resources/enterprises/enterprises.js +5 -3
- package/resources/enterprises/enterprises.js.map +1 -1
- package/resources/enterprises/enterprises.mjs +5 -3
- package/resources/enterprises/enterprises.mjs.map +1 -1
- package/resources/enterprises/index.d.mts +1 -1
- package/resources/enterprises/index.d.mts.map +1 -1
- package/resources/enterprises/index.d.ts +1 -1
- package/resources/enterprises/index.d.ts.map +1 -1
- package/resources/enterprises/index.js.map +1 -1
- package/resources/enterprises/index.mjs.map +1 -1
- package/resources/enterprises/reputation/external-verification.d.mts +94 -0
- package/resources/enterprises/reputation/external-verification.d.mts.map +1 -0
- package/resources/enterprises/reputation/external-verification.d.ts +94 -0
- package/resources/enterprises/reputation/external-verification.d.ts.map +1 -0
- package/resources/enterprises/reputation/external-verification.js +54 -0
- package/resources/enterprises/reputation/external-verification.js.map +1 -0
- package/resources/enterprises/reputation/external-verification.mjs +50 -0
- package/resources/enterprises/reputation/external-verification.mjs.map +1 -0
- package/resources/enterprises/reputation/index.d.mts +3 -2
- package/resources/enterprises/reputation/index.d.mts.map +1 -1
- package/resources/enterprises/reputation/index.d.ts +3 -2
- package/resources/enterprises/reputation/index.d.ts.map +1 -1
- package/resources/enterprises/reputation/index.js +3 -1
- package/resources/enterprises/reputation/index.js.map +1 -1
- package/resources/enterprises/reputation/index.mjs +1 -0
- package/resources/enterprises/reputation/index.mjs.map +1 -1
- package/resources/enterprises/reputation/loa.d.mts +3 -2
- package/resources/enterprises/reputation/loa.d.mts.map +1 -1
- package/resources/enterprises/reputation/loa.d.ts +3 -2
- package/resources/enterprises/reputation/loa.d.ts.map +1 -1
- package/resources/enterprises/reputation/numbers.d.mts +197 -4
- package/resources/enterprises/reputation/numbers.d.mts.map +1 -1
- package/resources/enterprises/reputation/numbers.d.ts +197 -4
- package/resources/enterprises/reputation/numbers.d.ts.map +1 -1
- package/resources/enterprises/reputation/numbers.js +58 -2
- package/resources/enterprises/reputation/numbers.js.map +1 -1
- package/resources/enterprises/reputation/numbers.mjs +58 -2
- package/resources/enterprises/reputation/numbers.mjs.map +1 -1
- package/resources/enterprises/reputation/remediation.d.mts +3 -2
- package/resources/enterprises/reputation/remediation.d.mts.map +1 -1
- package/resources/enterprises/reputation/remediation.d.ts +3 -2
- package/resources/enterprises/reputation/remediation.d.ts.map +1 -1
- package/resources/enterprises/reputation/reputation.d.mts +39 -3
- package/resources/enterprises/reputation/reputation.d.mts.map +1 -1
- package/resources/enterprises/reputation/reputation.d.ts +39 -3
- package/resources/enterprises/reputation/reputation.d.ts.map +1 -1
- package/resources/enterprises/reputation/reputation.js +22 -0
- package/resources/enterprises/reputation/reputation.js.map +1 -1
- package/resources/enterprises/reputation/reputation.mjs +22 -0
- package/resources/enterprises/reputation/reputation.mjs.map +1 -1
- package/resources/global-ip-assignment-health.d.mts +4 -4
- package/resources/global-ip-assignment-health.d.mts.map +1 -1
- package/resources/global-ip-assignment-health.d.ts +4 -4
- package/resources/global-ip-assignment-health.d.ts.map +1 -1
- package/resources/global-ip-assignments-usage.d.mts +4 -4
- package/resources/global-ip-assignments-usage.d.mts.map +1 -1
- package/resources/global-ip-assignments-usage.d.ts +4 -4
- package/resources/global-ip-assignments-usage.d.ts.map +1 -1
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/llm-token-gateway/index.d.mts +4 -1
- package/resources/llm-token-gateway/index.d.mts.map +1 -1
- package/resources/llm-token-gateway/index.d.ts +4 -1
- package/resources/llm-token-gateway/index.d.ts.map +1 -1
- package/resources/llm-token-gateway/index.js +7 -1
- package/resources/llm-token-gateway/index.js.map +1 -1
- package/resources/llm-token-gateway/index.mjs +4 -1
- package/resources/llm-token-gateway/index.mjs.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.d.mts +14 -2
- package/resources/llm-token-gateway/llm-token-gateway.d.mts.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.d.ts +14 -2
- package/resources/llm-token-gateway/llm-token-gateway.d.ts.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.js +12 -0
- package/resources/llm-token-gateway/llm-token-gateway.js.map +1 -1
- package/resources/llm-token-gateway/llm-token-gateway.mjs +13 -1
- package/resources/llm-token-gateway/llm-token-gateway.mjs.map +1 -1
- package/resources/llm-token-gateway/spend.d.mts +223 -0
- package/resources/llm-token-gateway/spend.d.mts.map +1 -0
- package/resources/llm-token-gateway/spend.d.ts +223 -0
- package/resources/llm-token-gateway/spend.d.ts.map +1 -0
- package/resources/llm-token-gateway/spend.js +56 -0
- package/resources/llm-token-gateway/spend.js.map +1 -0
- package/resources/llm-token-gateway/spend.mjs +52 -0
- package/resources/llm-token-gateway/spend.mjs.map +1 -0
- package/resources/llm-token-gateway/token-groups.d.mts +577 -0
- package/resources/llm-token-gateway/token-groups.d.mts.map +1 -0
- package/resources/llm-token-gateway/token-groups.d.ts +577 -0
- package/resources/llm-token-gateway/token-groups.d.ts.map +1 -0
- package/resources/llm-token-gateway/token-groups.js +139 -0
- package/resources/llm-token-gateway/token-groups.js.map +1 -0
- package/resources/llm-token-gateway/token-groups.mjs +135 -0
- package/resources/llm-token-gateway/token-groups.mjs.map +1 -0
- package/resources/llm-token-gateway/token-keys.d.mts +318 -0
- package/resources/llm-token-gateway/token-keys.d.mts.map +1 -0
- package/resources/llm-token-gateway/token-keys.d.ts +318 -0
- package/resources/llm-token-gateway/token-keys.d.ts.map +1 -0
- package/resources/llm-token-gateway/token-keys.js +127 -0
- package/resources/llm-token-gateway/token-keys.js.map +1 -0
- package/resources/llm-token-gateway/token-keys.mjs +123 -0
- package/resources/llm-token-gateway/token-keys.mjs.map +1 -0
- package/resources/llm-token-gateway/usage.d.mts +205 -146
- package/resources/llm-token-gateway/usage.d.mts.map +1 -1
- package/resources/llm-token-gateway/usage.d.ts +205 -146
- package/resources/llm-token-gateway/usage.d.ts.map +1 -1
- package/resources/llm-token-gateway/usage.js +47 -15
- package/resources/llm-token-gateway/usage.js.map +1 -1
- package/resources/llm-token-gateway/usage.mjs +47 -15
- package/resources/llm-token-gateway/usage.mjs.map +1 -1
- package/resources/phone-numbers/jobs.d.mts +17 -5
- package/resources/phone-numbers/jobs.d.mts.map +1 -1
- package/resources/phone-numbers/jobs.d.ts +17 -5
- package/resources/phone-numbers/jobs.d.ts.map +1 -1
- package/resources/phone-numbers/jobs.js +4 -3
- package/resources/phone-numbers/jobs.js.map +1 -1
- package/resources/phone-numbers/jobs.mjs +4 -3
- package/resources/phone-numbers/jobs.mjs.map +1 -1
- package/resources/reputation/numbers.d.mts +10 -0
- package/resources/reputation/numbers.d.mts.map +1 -1
- package/resources/reputation/numbers.d.ts +10 -0
- package/resources/reputation/numbers.d.ts.map +1 -1
- package/resources/sip-registration-status.d.mts +149 -0
- package/resources/sip-registration-status.d.mts.map +1 -0
- package/resources/sip-registration-status.d.ts +149 -0
- package/resources/sip-registration-status.d.ts.map +1 -0
- package/resources/sip-registration-status.js +32 -0
- package/resources/sip-registration-status.js.map +1 -0
- package/resources/sip-registration-status.mjs +28 -0
- package/resources/sip-registration-status.mjs.map +1 -0
- package/resources/texml/texml.d.mts +7 -3
- package/resources/texml/texml.d.mts.map +1 -1
- package/resources/texml/texml.d.ts +7 -3
- package/resources/texml/texml.d.ts.map +1 -1
- package/resources/texml/texml.js +4 -2
- package/resources/texml/texml.js.map +1 -1
- package/resources/texml/texml.mjs +4 -2
- package/resources/texml/texml.mjs.map +1 -1
- package/resources/webhooks.d.mts +566 -3
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +566 -3
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/whatsapp/index.d.mts +1 -0
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +1 -0
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/index.js +3 -1
- package/resources/whatsapp/index.js.map +1 -1
- package/resources/whatsapp/index.mjs +1 -0
- package/resources/whatsapp/index.mjs.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.js +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.js.map +1 -1
- package/resources/whatsapp/phone-numbers/calling-routing.mjs +6 -5
- package/resources/whatsapp/phone-numbers/calling-routing.mjs.map +1 -1
- package/resources/whatsapp/signup.d.mts +128 -0
- package/resources/whatsapp/signup.d.mts.map +1 -0
- package/resources/whatsapp/signup.d.ts +128 -0
- package/resources/whatsapp/signup.d.ts.map +1 -0
- package/resources/whatsapp/signup.js +42 -0
- package/resources/whatsapp/signup.js.map +1 -0
- package/resources/whatsapp/signup.mjs +38 -0
- package/resources/whatsapp/signup.mjs.map +1 -0
- package/resources/whatsapp/whatsapp.d.mts +4 -0
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +4 -0
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.js +4 -0
- package/resources/whatsapp/whatsapp.js.map +1 -1
- package/resources/whatsapp/whatsapp.mjs +4 -0
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/src/client.ts +28 -0
- package/src/resources/ai/ai.ts +38 -3
- package/src/resources/ai/assistants/assistants.ts +292 -5
- package/src/resources/ai/assistants/index.ts +2 -0
- package/src/resources/ai/assistants/versions.ts +14 -0
- package/src/resources/ai/avatars.ts +238 -0
- package/src/resources/ai/chat.ts +20 -6
- package/src/resources/ai/conversations/conversations.ts +9 -0
- package/src/resources/ai/index.ts +13 -0
- package/src/resources/ai/memory/namespaces/index.ts +2 -0
- package/src/resources/ai/memory/namespaces/namespaces.ts +4 -0
- package/src/resources/ai/memory/namespaces/profiles/index.ts +2 -0
- package/src/resources/ai/memory/namespaces/profiles/profiles.ts +71 -0
- package/src/resources/ai/openai/chat.ts +20 -6
- package/src/resources/ai/tools.ts +19 -1
- package/src/resources/calls/actions.ts +65 -10
- package/src/resources/calls/calls.ts +24 -8
- package/src/resources/calls/index.ts +1 -0
- package/src/resources/dir/dir.ts +10 -7
- package/src/resources/dir/phone-numbers.ts +1 -6
- package/src/resources/email-templates.ts +121 -19
- package/src/resources/enterprises/dir.ts +8 -2
- package/src/resources/enterprises/enterprises.ts +7 -3
- package/src/resources/enterprises/index.ts +1 -0
- package/src/resources/enterprises/reputation/external-verification.ts +125 -0
- package/src/resources/enterprises/reputation/index.ts +12 -0
- package/src/resources/enterprises/reputation/loa.ts +3 -2
- package/src/resources/enterprises/reputation/numbers.ts +256 -3
- package/src/resources/enterprises/reputation/remediation.ts +3 -2
- package/src/resources/enterprises/reputation/reputation.ts +70 -0
- package/src/resources/global-ip-assignment-health.ts +4 -4
- package/src/resources/global-ip-assignments-usage.ts +4 -4
- package/src/resources/index.ts +11 -0
- package/src/resources/llm-token-gateway/index.ts +38 -1
- package/src/resources/llm-token-gateway/llm-token-gateway.ts +83 -1
- package/src/resources/llm-token-gateway/spend.ts +309 -0
- package/src/resources/llm-token-gateway/token-groups.ts +724 -0
- package/src/resources/llm-token-gateway/token-keys.ts +422 -0
- package/src/resources/llm-token-gateway/usage.ts +273 -149
- package/src/resources/phone-numbers/jobs.ts +18 -5
- package/src/resources/reputation/numbers.ts +12 -0
- package/src/resources/sip-registration-status.ts +188 -0
- package/src/resources/texml/texml.ts +7 -3
- package/src/resources/webhooks.ts +754 -15
- package/src/resources/whatsapp/index.ts +7 -0
- package/src/resources/whatsapp/phone-numbers/calling-routing.ts +6 -5
- package/src/resources/whatsapp/signup.ts +188 -0
- package/src/resources/whatsapp/whatsapp.ts +18 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* UAC connection operations
|
|
9
|
+
*/
|
|
10
|
+
export class SipRegistrationStatus extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Returns the live SIP registration status for a Telnyx endpoint: whether it is
|
|
13
|
+
* currently registered, when the current registration expires, and the last
|
|
14
|
+
* response Telnyx received from the registrar.
|
|
15
|
+
*
|
|
16
|
+
* The endpoint supports three credential types, selected with the
|
|
17
|
+
* `credential_type` query parameter. Each type is keyed by a different identifier:
|
|
18
|
+
*
|
|
19
|
+
* | `credential_type` | Keyed by | Use case |
|
|
20
|
+
* | --------------------------- | --------------- | -------------------------------------------------------------------------- |
|
|
21
|
+
* | `uac_external_credential` | `connection_id` | A UAC (SIP attach) connection that registers to an external PBX. |
|
|
22
|
+
* | `telephony_credential` | `username` | An ephemeral, one-time-use telephony credential. |
|
|
23
|
+
* | `sip_credential_connection` | `username` | A traditional SIP credential connection that registers directly to Telnyx. |
|
|
24
|
+
*
|
|
25
|
+
* The authenticated account is taken from your API key; you can only read the
|
|
26
|
+
* registration status of connections and credentials your account owns.
|
|
27
|
+
*/
|
|
28
|
+
list(
|
|
29
|
+
query: SipRegistrationStatusListParams,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): APIPromise<SipRegistrationStatusListResponse> {
|
|
32
|
+
return this._client.get('/sip_registration_status', { query, ...options });
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface SipRegistrationStatusListResponse {
|
|
37
|
+
/**
|
|
38
|
+
* Identifier of the connection associated with the credential.
|
|
39
|
+
*/
|
|
40
|
+
connection_id?: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Human-readable connection name.
|
|
44
|
+
*/
|
|
45
|
+
connection_name?: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The credential type that was looked up.
|
|
49
|
+
*/
|
|
50
|
+
credential_type?: 'uac_external_credential' | 'telephony_credential' | 'sip_credential_connection';
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* SIP username used for the registration.
|
|
54
|
+
*/
|
|
55
|
+
credential_username?: string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* SIP response from the last registration attempt.
|
|
59
|
+
*/
|
|
60
|
+
last_registration_response?: string | null;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* True if the endpoint is currently registered.
|
|
64
|
+
*/
|
|
65
|
+
registered?: boolean;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Detailed registration information reported by the registrar. The populated
|
|
69
|
+
* fields depend on `credential_type`: UAC external credentials report
|
|
70
|
+
* `auth_retries`, `uptime`, `next_action_at`, `failures`, and `sip_uri_user_host`;
|
|
71
|
+
* telephony credentials and SIP credential connections report `ua_ip`, `ua_port`,
|
|
72
|
+
* `transport`, and `last_modified`. All types report `expires`, but its unit
|
|
73
|
+
* differs by `credential_type` — see that field.
|
|
74
|
+
*/
|
|
75
|
+
sip_registration_details?: SipRegistrationStatusListResponse.SipRegistrationDetails;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Human-readable registration status derived from the registrar state.
|
|
79
|
+
*/
|
|
80
|
+
sip_registration_status?:
|
|
81
|
+
| 'unregistering'
|
|
82
|
+
| 'connection_disabled'
|
|
83
|
+
| 'standby'
|
|
84
|
+
| 'failed'
|
|
85
|
+
| 'trying'
|
|
86
|
+
| 'registered'
|
|
87
|
+
| 'unknown';
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export namespace SipRegistrationStatusListResponse {
|
|
91
|
+
/**
|
|
92
|
+
* Detailed registration information reported by the registrar. The populated
|
|
93
|
+
* fields depend on `credential_type`: UAC external credentials report
|
|
94
|
+
* `auth_retries`, `uptime`, `next_action_at`, `failures`, and `sip_uri_user_host`;
|
|
95
|
+
* telephony credentials and SIP credential connections report `ua_ip`, `ua_port`,
|
|
96
|
+
* `transport`, and `last_modified`. All types report `expires`, but its unit
|
|
97
|
+
* differs by `credential_type` — see that field.
|
|
98
|
+
*/
|
|
99
|
+
export interface SipRegistrationDetails {
|
|
100
|
+
/**
|
|
101
|
+
* Number of authentication retries on the last attempt (uac_external_credential).
|
|
102
|
+
*/
|
|
103
|
+
auth_retries?: number;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* When the current registration expires. The unit depends on `credential_type`:
|
|
107
|
+
* for `uac_external_credential` this is a Unix timestamp (seconds since epoch) of
|
|
108
|
+
* the next scheduled re-registration; for `telephony_credential` and
|
|
109
|
+
* `sip_credential_connection` this is the registration lifetime in seconds as
|
|
110
|
+
* negotiated with the registrar (the `Expires` value, defaulting to 3600 when the
|
|
111
|
+
* endpoint sends none).
|
|
112
|
+
*/
|
|
113
|
+
expires?: number;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Count of consecutive registration failures (uac_external_credential).
|
|
117
|
+
*/
|
|
118
|
+
failures?: number;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Timestamp when the registration was last modified (telephony_credential and
|
|
122
|
+
* sip_credential_connection).
|
|
123
|
+
*/
|
|
124
|
+
last_modified?: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Unix timestamp of the next scheduled registration action
|
|
128
|
+
* (uac_external_credential).
|
|
129
|
+
*/
|
|
130
|
+
next_action_at?: number;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* SIP URI user@host of the registered contact (uac_external_credential).
|
|
134
|
+
*/
|
|
135
|
+
sip_uri_user_host?: string;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Transport used for the registration, e.g. UDP/TCP/TLS (telephony_credential and
|
|
139
|
+
* sip_credential_connection).
|
|
140
|
+
*/
|
|
141
|
+
transport?: string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* IP address of the registered user agent (telephony_credential and
|
|
145
|
+
* sip_credential_connection).
|
|
146
|
+
*/
|
|
147
|
+
ua_ip?: string;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Port of the registered user agent (telephony_credential and
|
|
151
|
+
* sip_credential_connection).
|
|
152
|
+
*/
|
|
153
|
+
ua_port?: number;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Registration uptime reported by the registrar (uac_external_credential).
|
|
157
|
+
*/
|
|
158
|
+
uptime?: number;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface SipRegistrationStatusListParams {
|
|
163
|
+
/**
|
|
164
|
+
* The kind of credential to look up. `uac_external_credential` is keyed by
|
|
165
|
+
* `connection_id`; `telephony_credential` and `sip_credential_connection` are
|
|
166
|
+
* keyed by `username`.
|
|
167
|
+
*/
|
|
168
|
+
credential_type: 'uac_external_credential' | 'telephony_credential' | 'sip_credential_connection';
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Identifier of the UAC connection to look up. Required when `credential_type` is
|
|
172
|
+
* `uac_external_credential`.
|
|
173
|
+
*/
|
|
174
|
+
connection_id?: string;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* SIP username to look up. Required when `credential_type` is
|
|
178
|
+
* `telephony_credential` or `sip_credential_connection`.
|
|
179
|
+
*/
|
|
180
|
+
username?: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export declare namespace SipRegistrationStatus {
|
|
184
|
+
export {
|
|
185
|
+
type SipRegistrationStatusListResponse as SipRegistrationStatusListResponse,
|
|
186
|
+
type SipRegistrationStatusListParams as SipRegistrationStatusListParams,
|
|
187
|
+
};
|
|
188
|
+
}
|
|
@@ -43,8 +43,10 @@ export class Texml extends APIResource {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* Initiate an outbound AI call with warm-up support
|
|
47
|
-
*
|
|
46
|
+
* Initiate an outbound AI call with warm-up support: Telnyx attempts to warm up
|
|
47
|
+
* the assistant identified by `AIAssistantId` before placing the call and starts
|
|
48
|
+
* it automatically when the called party answers. Validates parameters, builds an
|
|
49
|
+
* internal TeXML with an AI Assistant configuration, encodes instructions into
|
|
48
50
|
* client state, and calls the dial API. The Twiml, Texml, and Url parameters are
|
|
49
51
|
* not allowed and will result in a 422 error.
|
|
50
52
|
*
|
|
@@ -121,7 +123,9 @@ export interface TexmlSecretsParams {
|
|
|
121
123
|
|
|
122
124
|
export interface TexmlInitiateAICallParams {
|
|
123
125
|
/**
|
|
124
|
-
* The ID of the AI assistant to use for the call.
|
|
126
|
+
* The ID of the AI assistant to use for the call. Telnyx attempts to warm up this
|
|
127
|
+
* assistant before the call is placed and starts it automatically when the called
|
|
128
|
+
* party answers.
|
|
125
129
|
*/
|
|
126
130
|
AIAssistantId: string;
|
|
127
131
|
|