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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../src/resources/llm-token-gateway/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;
|
|
1
|
+
{"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../src/resources/llm-token-gateway/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAKlD;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,eAAe,CACb,KAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,cAAc,CACZ,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF"}
|
|
@@ -11,9 +11,10 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
11
11
|
export declare class Jobs extends APIResource {
|
|
12
12
|
/**
|
|
13
13
|
* Returns background jobs that operate on phone numbers. Filter by job type,
|
|
14
|
-
* target phone numbers,
|
|
15
|
-
* phone-number or status values use OR semantics within
|
|
16
|
-
* filter categories use AND semantics. Results include
|
|
14
|
+
* target phone numbers, job status, or creation-time customer reference, and sort
|
|
15
|
+
* by creation time. Multiple phone-number or status values use OR semantics within
|
|
16
|
+
* that filter; different filter categories use AND semantics. Results include
|
|
17
|
+
* pagination metadata.
|
|
17
18
|
*
|
|
18
19
|
* @example
|
|
19
20
|
* ```ts
|
|
@@ -186,7 +187,8 @@ export interface JobUpdateEmergencySettingsBatchResponse {
|
|
|
186
187
|
export interface JobListParams extends DefaultFlatPaginationParams {
|
|
187
188
|
/**
|
|
188
189
|
* Consolidated filter parameter (deepObject style). Originally: filter[type],
|
|
189
|
-
* filter[phone_number], filter[phone_number][], filter[status][]
|
|
190
|
+
* filter[phone_number], filter[phone_number][], filter[status][],
|
|
191
|
+
* filter[customer_reference]
|
|
190
192
|
*/
|
|
191
193
|
filter?: JobListParams.Filter;
|
|
192
194
|
/**
|
|
@@ -198,9 +200,19 @@ export interface JobListParams extends DefaultFlatPaginationParams {
|
|
|
198
200
|
export declare namespace JobListParams {
|
|
199
201
|
/**
|
|
200
202
|
* Consolidated filter parameter (deepObject style). Originally: filter[type],
|
|
201
|
-
* filter[phone_number], filter[phone_number][], filter[status][]
|
|
203
|
+
* filter[phone_number], filter[phone_number][], filter[status][],
|
|
204
|
+
* filter[customer_reference]
|
|
202
205
|
*/
|
|
203
206
|
interface Filter {
|
|
207
|
+
/**
|
|
208
|
+
* Returns jobs whose creation-time customer reference exactly matches the supplied
|
|
209
|
+
* value, not the current reference on a phone number. Only jobs within the lookup
|
|
210
|
+
* window (90 days by default) are returned. Supply a single non-blank string of up
|
|
211
|
+
* to 250 characters, without null characters, using
|
|
212
|
+
* `filter[customer_reference]=yourcustomerrefhere`. An invalid filter value
|
|
213
|
+
* returns HTTP 422.
|
|
214
|
+
*/
|
|
215
|
+
customer_reference?: string;
|
|
204
216
|
/**
|
|
205
217
|
* Returns jobs that targeted any of the supplied account-owned phone numbers.
|
|
206
218
|
* Values beginning with `+` must contain 1 to 20 digits after the plus sign. The
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.d.mts","sourceRoot":"","sources":["../../src/resources/phone-numbers/jobs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,OAAO,wCAAoC;AACvD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,kCAA8B;AAC7G,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC
|
|
1
|
+
{"version":3,"file":"jobs.d.mts","sourceRoot":"","sources":["../../src/resources/phone-numbers/jobs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,OAAO,wCAAoC;AACvD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAE,UAA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AK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -11,9 +11,10 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
11
11
|
export declare class Jobs extends APIResource {
|
|
12
12
|
/**
|
|
13
13
|
* Returns background jobs that operate on phone numbers. Filter by job type,
|
|
14
|
-
* target phone numbers,
|
|
15
|
-
* phone-number or status values use OR semantics within
|
|
16
|
-
* filter categories use AND semantics. Results include
|
|
14
|
+
* target phone numbers, job status, or creation-time customer reference, and sort
|
|
15
|
+
* by creation time. Multiple phone-number or status values use OR semantics within
|
|
16
|
+
* that filter; different filter categories use AND semantics. Results include
|
|
17
|
+
* pagination metadata.
|
|
17
18
|
*
|
|
18
19
|
* @example
|
|
19
20
|
* ```ts
|
|
@@ -186,7 +187,8 @@ export interface JobUpdateEmergencySettingsBatchResponse {
|
|
|
186
187
|
export interface JobListParams extends DefaultFlatPaginationParams {
|
|
187
188
|
/**
|
|
188
189
|
* Consolidated filter parameter (deepObject style). Originally: filter[type],
|
|
189
|
-
* filter[phone_number], filter[phone_number][], filter[status][]
|
|
190
|
+
* filter[phone_number], filter[phone_number][], filter[status][],
|
|
191
|
+
* filter[customer_reference]
|
|
190
192
|
*/
|
|
191
193
|
filter?: JobListParams.Filter;
|
|
192
194
|
/**
|
|
@@ -198,9 +200,19 @@ export interface JobListParams extends DefaultFlatPaginationParams {
|
|
|
198
200
|
export declare namespace JobListParams {
|
|
199
201
|
/**
|
|
200
202
|
* Consolidated filter parameter (deepObject style). Originally: filter[type],
|
|
201
|
-
* filter[phone_number], filter[phone_number][], filter[status][]
|
|
203
|
+
* filter[phone_number], filter[phone_number][], filter[status][],
|
|
204
|
+
* filter[customer_reference]
|
|
202
205
|
*/
|
|
203
206
|
interface Filter {
|
|
207
|
+
/**
|
|
208
|
+
* Returns jobs whose creation-time customer reference exactly matches the supplied
|
|
209
|
+
* value, not the current reference on a phone number. Only jobs within the lookup
|
|
210
|
+
* window (90 days by default) are returned. Supply a single non-blank string of up
|
|
211
|
+
* to 250 characters, without null characters, using
|
|
212
|
+
* `filter[customer_reference]=yourcustomerrefhere`. An invalid filter value
|
|
213
|
+
* returns HTTP 422.
|
|
214
|
+
*/
|
|
215
|
+
customer_reference?: string;
|
|
204
216
|
/**
|
|
205
217
|
* Returns jobs that targeted any of the supplied account-owned phone numbers.
|
|
206
218
|
* Values beginning with `+` must contain 1 to 20 digits after the plus sign. The
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../src/resources/phone-numbers/jobs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,OAAO,uCAAoC;AACvD,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,iCAA8B;AAC7G,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,IAAK,SAAQ,WAAW;IACnC
|
|
1
|
+
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../src/resources/phone-numbers/jobs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,OAAO,uCAAoC;AACvD,OAAO,KAAK,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AAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -11,9 +11,10 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
11
11
|
class Jobs extends resource_1.APIResource {
|
|
12
12
|
/**
|
|
13
13
|
* Returns background jobs that operate on phone numbers. Filter by job type,
|
|
14
|
-
* target phone numbers,
|
|
15
|
-
* phone-number or status values use OR semantics within
|
|
16
|
-
* filter categories use AND semantics. Results include
|
|
14
|
+
* target phone numbers, job status, or creation-time customer reference, and sort
|
|
15
|
+
* by creation time. Multiple phone-number or status values use OR semantics within
|
|
16
|
+
* that filter; different filter categories use AND semantics. Results include
|
|
17
|
+
* pagination metadata.
|
|
17
18
|
*
|
|
18
19
|
* @example
|
|
19
20
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../src/resources/phone-numbers/jobs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAKlD,yDAA6G;AAE7G,uDAAiD;AAEjD;;GAEG;AACH,MAAa,IAAK,SAAQ,sBAAW;IACnC
|
|
1
|
+
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../src/resources/phone-numbers/jobs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAKlD,yDAA6G;AAE7G,uDAAiD;AAEjD;;GAEG;AACH,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,QAA0C,EAAE,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAA,kCAAsC,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,WAAW,CAAC,IAA0B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,4BAA4B,CAC1B,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+CAA+C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,WAAW,CAAC,MAA4B,EAAE,OAAwB;QAChE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE;YACnE,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,uBAAuB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AAlHD,oBAkHC"}
|
|
@@ -8,9 +8,10 @@ import { path } from "../../internal/utils/path.mjs";
|
|
|
8
8
|
export class Jobs extends APIResource {
|
|
9
9
|
/**
|
|
10
10
|
* Returns background jobs that operate on phone numbers. Filter by job type,
|
|
11
|
-
* target phone numbers,
|
|
12
|
-
* phone-number or status values use OR semantics within
|
|
13
|
-
* filter categories use AND semantics. Results include
|
|
11
|
+
* target phone numbers, job status, or creation-time customer reference, and sort
|
|
12
|
+
* by creation time. Multiple phone-number or status values use OR semantics within
|
|
13
|
+
* that filter; different filter categories use AND semantics. Results include
|
|
14
|
+
* pagination metadata.
|
|
14
15
|
*
|
|
15
16
|
* @example
|
|
16
17
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.mjs","sourceRoot":"","sources":["../../src/resources/phone-numbers/jobs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAKlD,OAAO,EAAE,qBAAqB,EAAiD,kCAA8B;AAE7G,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC
|
|
1
|
+
{"version":3,"file":"jobs.mjs","sourceRoot":"","sources":["../../src/resources/phone-numbers/jobs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAKlD,OAAO,EAAE,qBAAqB,EAAiD,kCAA8B;AAE7G,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,QAA0C,EAAE,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAA,qBAAsC,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,WAAW,CAAC,IAA0B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,4BAA4B,CAC1B,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,+CAA+C,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClG,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,WAAW,CAAC,MAA4B,EAAE,OAAwB;QAChE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0CAA0C,EAAE;YACnE,KAAK,EAAE,EAAE,MAAM,EAAE;YACjB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,uBAAuB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF"}
|
|
@@ -30,6 +30,12 @@ export interface NumberListParams extends DefaultFlatPaginationParams {
|
|
|
30
30
|
* Filter by enterprise ID.
|
|
31
31
|
*/
|
|
32
32
|
'filter[enterprise_id]'?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Only numbers with this ownership status. `removed` lists the numbers that were
|
|
35
|
+
* removed, each with its `removal_reason` and `removed_at`; removed numbers are
|
|
36
|
+
* not returned otherwise.
|
|
37
|
+
*/
|
|
38
|
+
'filter[ownership_status]'?: ReputationNumbersAPI.ReputationOwnershipStatus;
|
|
33
39
|
/**
|
|
34
40
|
* Partial match on phone number. Must contain at least 5 digits.
|
|
35
41
|
*/
|
|
@@ -38,6 +44,10 @@ export interface NumberListParams extends DefaultFlatPaginationParams {
|
|
|
38
44
|
* Exact phone-number match (E.164).
|
|
39
45
|
*/
|
|
40
46
|
'filter[phone_number][eq]'?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Only numbers with this source.
|
|
49
|
+
*/
|
|
50
|
+
'filter[source]'?: ReputationNumbersAPI.ReputationNumberSource;
|
|
41
51
|
}
|
|
42
52
|
export interface NumberRetrieveParams {
|
|
43
53
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numbers.d.mts","sourceRoot":"","sources":["../../src/resources/reputation/numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,oBAAoB,8CAA0C;AAC1E,OAAO,EAAE,2CAA2C,EAAE,8CAA0C;AAChG,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAyB,KAAK,2BAA2B,EAAE,WAAW,EAAE,kCAA8B;AAE7G,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;OAIG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,2CAA2C,EAAE,oBAAoB,CAAC,qBAAqB,CAAC;IAQvG;;;OAGG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOvE;;;OAGG;IACH,QAAQ,CACN,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC,mCAAmC,CAAC;CAGxE;AAED,MAAM,WAAW,gBAAiB,SAAQ,2BAA2B;IACnE;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;OAEG;IACH,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAE1C;;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AChE;AAED,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CACzG;AAED,OAAO,EAAE,KAAK,2CAA2C,EAAE,CAAC"}
|
|
@@ -30,6 +30,12 @@ export interface NumberListParams extends DefaultFlatPaginationParams {
|
|
|
30
30
|
* Filter by enterprise ID.
|
|
31
31
|
*/
|
|
32
32
|
'filter[enterprise_id]'?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Only numbers with this ownership status. `removed` lists the numbers that were
|
|
35
|
+
* removed, each with its `removal_reason` and `removed_at`; removed numbers are
|
|
36
|
+
* not returned otherwise.
|
|
37
|
+
*/
|
|
38
|
+
'filter[ownership_status]'?: ReputationNumbersAPI.ReputationOwnershipStatus;
|
|
33
39
|
/**
|
|
34
40
|
* Partial match on phone number. Must contain at least 5 digits.
|
|
35
41
|
*/
|
|
@@ -38,6 +44,10 @@ export interface NumberListParams extends DefaultFlatPaginationParams {
|
|
|
38
44
|
* Exact phone-number match (E.164).
|
|
39
45
|
*/
|
|
40
46
|
'filter[phone_number][eq]'?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Only numbers with this source.
|
|
49
|
+
*/
|
|
50
|
+
'filter[source]'?: ReputationNumbersAPI.ReputationNumberSource;
|
|
41
51
|
}
|
|
42
52
|
export interface NumberRetrieveParams {
|
|
43
53
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numbers.d.ts","sourceRoot":"","sources":["../../src/resources/reputation/numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,oBAAoB,6CAA0C;AAC1E,OAAO,EAAE,2CAA2C,EAAE,6CAA0C;AAChG,OAAO,EAAE,UAA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IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,2CAA2C,EAAE,oBAAoB,CAAC,qBAAqB,CAAC;IAQvG;;;OAGG;IACH,MAAM,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOvE;;;OAGG;IACH,QAAQ,CACN,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC,mCAAmC,CAAC;CAGxE;AAED,MAAM,WAAW,gBAAiB,SAAQ,2BAA2B;IACnE;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,oBAAoB,CAAC,yBAAyB,CAAC;IAE5E;;OAEG;IACH,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAE1C;;OAEG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;IAEpC;;OAEG;IACH,gBAAgB,CAAC,EAAE,oBAAoB,CAAC,sBAAsB,CAAC;CAChE;AAED,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CACzG;AAED,OAAO,EAAE,KAAK,2CAA2C,EAAE,CAAC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* UAC connection operations
|
|
6
|
+
*/
|
|
7
|
+
export declare class SipRegistrationStatus extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the live SIP registration status for a Telnyx endpoint: whether it is
|
|
10
|
+
* currently registered, when the current registration expires, and the last
|
|
11
|
+
* response Telnyx received from the registrar.
|
|
12
|
+
*
|
|
13
|
+
* The endpoint supports three credential types, selected with the
|
|
14
|
+
* `credential_type` query parameter. Each type is keyed by a different identifier:
|
|
15
|
+
*
|
|
16
|
+
* | `credential_type` | Keyed by | Use case |
|
|
17
|
+
* | --------------------------- | --------------- | -------------------------------------------------------------------------- |
|
|
18
|
+
* | `uac_external_credential` | `connection_id` | A UAC (SIP attach) connection that registers to an external PBX. |
|
|
19
|
+
* | `telephony_credential` | `username` | An ephemeral, one-time-use telephony credential. |
|
|
20
|
+
* | `sip_credential_connection` | `username` | A traditional SIP credential connection that registers directly to Telnyx. |
|
|
21
|
+
*
|
|
22
|
+
* The authenticated account is taken from your API key; you can only read the
|
|
23
|
+
* registration status of connections and credentials your account owns.
|
|
24
|
+
*/
|
|
25
|
+
list(query: SipRegistrationStatusListParams, options?: RequestOptions): APIPromise<SipRegistrationStatusListResponse>;
|
|
26
|
+
}
|
|
27
|
+
export interface SipRegistrationStatusListResponse {
|
|
28
|
+
/**
|
|
29
|
+
* Identifier of the connection associated with the credential.
|
|
30
|
+
*/
|
|
31
|
+
connection_id?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Human-readable connection name.
|
|
34
|
+
*/
|
|
35
|
+
connection_name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The credential type that was looked up.
|
|
38
|
+
*/
|
|
39
|
+
credential_type?: 'uac_external_credential' | 'telephony_credential' | 'sip_credential_connection';
|
|
40
|
+
/**
|
|
41
|
+
* SIP username used for the registration.
|
|
42
|
+
*/
|
|
43
|
+
credential_username?: string;
|
|
44
|
+
/**
|
|
45
|
+
* SIP response from the last registration attempt.
|
|
46
|
+
*/
|
|
47
|
+
last_registration_response?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* True if the endpoint is currently registered.
|
|
50
|
+
*/
|
|
51
|
+
registered?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Detailed registration information reported by the registrar. The populated
|
|
54
|
+
* fields depend on `credential_type`: UAC external credentials report
|
|
55
|
+
* `auth_retries`, `uptime`, `next_action_at`, `failures`, and `sip_uri_user_host`;
|
|
56
|
+
* telephony credentials and SIP credential connections report `ua_ip`, `ua_port`,
|
|
57
|
+
* `transport`, and `last_modified`. All types report `expires`, but its unit
|
|
58
|
+
* differs by `credential_type` — see that field.
|
|
59
|
+
*/
|
|
60
|
+
sip_registration_details?: SipRegistrationStatusListResponse.SipRegistrationDetails;
|
|
61
|
+
/**
|
|
62
|
+
* Human-readable registration status derived from the registrar state.
|
|
63
|
+
*/
|
|
64
|
+
sip_registration_status?: 'unregistering' | 'connection_disabled' | 'standby' | 'failed' | 'trying' | 'registered' | 'unknown';
|
|
65
|
+
}
|
|
66
|
+
export declare namespace SipRegistrationStatusListResponse {
|
|
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
|
+
interface SipRegistrationDetails {
|
|
76
|
+
/**
|
|
77
|
+
* Number of authentication retries on the last attempt (uac_external_credential).
|
|
78
|
+
*/
|
|
79
|
+
auth_retries?: number;
|
|
80
|
+
/**
|
|
81
|
+
* When the current registration expires. The unit depends on `credential_type`:
|
|
82
|
+
* for `uac_external_credential` this is a Unix timestamp (seconds since epoch) of
|
|
83
|
+
* the next scheduled re-registration; for `telephony_credential` and
|
|
84
|
+
* `sip_credential_connection` this is the registration lifetime in seconds as
|
|
85
|
+
* negotiated with the registrar (the `Expires` value, defaulting to 3600 when the
|
|
86
|
+
* endpoint sends none).
|
|
87
|
+
*/
|
|
88
|
+
expires?: number;
|
|
89
|
+
/**
|
|
90
|
+
* Count of consecutive registration failures (uac_external_credential).
|
|
91
|
+
*/
|
|
92
|
+
failures?: number;
|
|
93
|
+
/**
|
|
94
|
+
* Timestamp when the registration was last modified (telephony_credential and
|
|
95
|
+
* sip_credential_connection).
|
|
96
|
+
*/
|
|
97
|
+
last_modified?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Unix timestamp of the next scheduled registration action
|
|
100
|
+
* (uac_external_credential).
|
|
101
|
+
*/
|
|
102
|
+
next_action_at?: number;
|
|
103
|
+
/**
|
|
104
|
+
* SIP URI user@host of the registered contact (uac_external_credential).
|
|
105
|
+
*/
|
|
106
|
+
sip_uri_user_host?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Transport used for the registration, e.g. UDP/TCP/TLS (telephony_credential and
|
|
109
|
+
* sip_credential_connection).
|
|
110
|
+
*/
|
|
111
|
+
transport?: string;
|
|
112
|
+
/**
|
|
113
|
+
* IP address of the registered user agent (telephony_credential and
|
|
114
|
+
* sip_credential_connection).
|
|
115
|
+
*/
|
|
116
|
+
ua_ip?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Port of the registered user agent (telephony_credential and
|
|
119
|
+
* sip_credential_connection).
|
|
120
|
+
*/
|
|
121
|
+
ua_port?: number;
|
|
122
|
+
/**
|
|
123
|
+
* Registration uptime reported by the registrar (uac_external_credential).
|
|
124
|
+
*/
|
|
125
|
+
uptime?: number;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
export interface SipRegistrationStatusListParams {
|
|
129
|
+
/**
|
|
130
|
+
* The kind of credential to look up. `uac_external_credential` is keyed by
|
|
131
|
+
* `connection_id`; `telephony_credential` and `sip_credential_connection` are
|
|
132
|
+
* keyed by `username`.
|
|
133
|
+
*/
|
|
134
|
+
credential_type: 'uac_external_credential' | 'telephony_credential' | 'sip_credential_connection';
|
|
135
|
+
/**
|
|
136
|
+
* Identifier of the UAC connection to look up. Required when `credential_type` is
|
|
137
|
+
* `uac_external_credential`.
|
|
138
|
+
*/
|
|
139
|
+
connection_id?: string;
|
|
140
|
+
/**
|
|
141
|
+
* SIP username to look up. Required when `credential_type` is
|
|
142
|
+
* `telephony_credential` or `sip_credential_connection`.
|
|
143
|
+
*/
|
|
144
|
+
username?: string;
|
|
145
|
+
}
|
|
146
|
+
export declare namespace SipRegistrationStatus {
|
|
147
|
+
export { type SipRegistrationStatusListResponse as SipRegistrationStatusListResponse, type SipRegistrationStatusListParams as SipRegistrationStatusListParams, };
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=sip-registration-status.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sip-registration-status.d.mts","sourceRoot":"","sources":["../src/resources/sip-registration-status.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,KAAK,EAAE,+BAA+B,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,eAAe,CAAC,EAAE,yBAAyB,GAAG,sBAAsB,GAAG,2BAA2B,CAAC;IAEnG;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,0BAA0B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3C;;OAEG;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";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* UAC connection operations
|
|
6
|
+
*/
|
|
7
|
+
export declare class SipRegistrationStatus extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the live SIP registration status for a Telnyx endpoint: whether it is
|
|
10
|
+
* currently registered, when the current registration expires, and the last
|
|
11
|
+
* response Telnyx received from the registrar.
|
|
12
|
+
*
|
|
13
|
+
* The endpoint supports three credential types, selected with the
|
|
14
|
+
* `credential_type` query parameter. Each type is keyed by a different identifier:
|
|
15
|
+
*
|
|
16
|
+
* | `credential_type` | Keyed by | Use case |
|
|
17
|
+
* | --------------------------- | --------------- | -------------------------------------------------------------------------- |
|
|
18
|
+
* | `uac_external_credential` | `connection_id` | A UAC (SIP attach) connection that registers to an external PBX. |
|
|
19
|
+
* | `telephony_credential` | `username` | An ephemeral, one-time-use telephony credential. |
|
|
20
|
+
* | `sip_credential_connection` | `username` | A traditional SIP credential connection that registers directly to Telnyx. |
|
|
21
|
+
*
|
|
22
|
+
* The authenticated account is taken from your API key; you can only read the
|
|
23
|
+
* registration status of connections and credentials your account owns.
|
|
24
|
+
*/
|
|
25
|
+
list(query: SipRegistrationStatusListParams, options?: RequestOptions): APIPromise<SipRegistrationStatusListResponse>;
|
|
26
|
+
}
|
|
27
|
+
export interface SipRegistrationStatusListResponse {
|
|
28
|
+
/**
|
|
29
|
+
* Identifier of the connection associated with the credential.
|
|
30
|
+
*/
|
|
31
|
+
connection_id?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Human-readable connection name.
|
|
34
|
+
*/
|
|
35
|
+
connection_name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The credential type that was looked up.
|
|
38
|
+
*/
|
|
39
|
+
credential_type?: 'uac_external_credential' | 'telephony_credential' | 'sip_credential_connection';
|
|
40
|
+
/**
|
|
41
|
+
* SIP username used for the registration.
|
|
42
|
+
*/
|
|
43
|
+
credential_username?: string;
|
|
44
|
+
/**
|
|
45
|
+
* SIP response from the last registration attempt.
|
|
46
|
+
*/
|
|
47
|
+
last_registration_response?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* True if the endpoint is currently registered.
|
|
50
|
+
*/
|
|
51
|
+
registered?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Detailed registration information reported by the registrar. The populated
|
|
54
|
+
* fields depend on `credential_type`: UAC external credentials report
|
|
55
|
+
* `auth_retries`, `uptime`, `next_action_at`, `failures`, and `sip_uri_user_host`;
|
|
56
|
+
* telephony credentials and SIP credential connections report `ua_ip`, `ua_port`,
|
|
57
|
+
* `transport`, and `last_modified`. All types report `expires`, but its unit
|
|
58
|
+
* differs by `credential_type` — see that field.
|
|
59
|
+
*/
|
|
60
|
+
sip_registration_details?: SipRegistrationStatusListResponse.SipRegistrationDetails;
|
|
61
|
+
/**
|
|
62
|
+
* Human-readable registration status derived from the registrar state.
|
|
63
|
+
*/
|
|
64
|
+
sip_registration_status?: 'unregistering' | 'connection_disabled' | 'standby' | 'failed' | 'trying' | 'registered' | 'unknown';
|
|
65
|
+
}
|
|
66
|
+
export declare namespace SipRegistrationStatusListResponse {
|
|
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
|
+
interface SipRegistrationDetails {
|
|
76
|
+
/**
|
|
77
|
+
* Number of authentication retries on the last attempt (uac_external_credential).
|
|
78
|
+
*/
|
|
79
|
+
auth_retries?: number;
|
|
80
|
+
/**
|
|
81
|
+
* When the current registration expires. The unit depends on `credential_type`:
|
|
82
|
+
* for `uac_external_credential` this is a Unix timestamp (seconds since epoch) of
|
|
83
|
+
* the next scheduled re-registration; for `telephony_credential` and
|
|
84
|
+
* `sip_credential_connection` this is the registration lifetime in seconds as
|
|
85
|
+
* negotiated with the registrar (the `Expires` value, defaulting to 3600 when the
|
|
86
|
+
* endpoint sends none).
|
|
87
|
+
*/
|
|
88
|
+
expires?: number;
|
|
89
|
+
/**
|
|
90
|
+
* Count of consecutive registration failures (uac_external_credential).
|
|
91
|
+
*/
|
|
92
|
+
failures?: number;
|
|
93
|
+
/**
|
|
94
|
+
* Timestamp when the registration was last modified (telephony_credential and
|
|
95
|
+
* sip_credential_connection).
|
|
96
|
+
*/
|
|
97
|
+
last_modified?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Unix timestamp of the next scheduled registration action
|
|
100
|
+
* (uac_external_credential).
|
|
101
|
+
*/
|
|
102
|
+
next_action_at?: number;
|
|
103
|
+
/**
|
|
104
|
+
* SIP URI user@host of the registered contact (uac_external_credential).
|
|
105
|
+
*/
|
|
106
|
+
sip_uri_user_host?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Transport used for the registration, e.g. UDP/TCP/TLS (telephony_credential and
|
|
109
|
+
* sip_credential_connection).
|
|
110
|
+
*/
|
|
111
|
+
transport?: string;
|
|
112
|
+
/**
|
|
113
|
+
* IP address of the registered user agent (telephony_credential and
|
|
114
|
+
* sip_credential_connection).
|
|
115
|
+
*/
|
|
116
|
+
ua_ip?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Port of the registered user agent (telephony_credential and
|
|
119
|
+
* sip_credential_connection).
|
|
120
|
+
*/
|
|
121
|
+
ua_port?: number;
|
|
122
|
+
/**
|
|
123
|
+
* Registration uptime reported by the registrar (uac_external_credential).
|
|
124
|
+
*/
|
|
125
|
+
uptime?: number;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
export interface SipRegistrationStatusListParams {
|
|
129
|
+
/**
|
|
130
|
+
* The kind of credential to look up. `uac_external_credential` is keyed by
|
|
131
|
+
* `connection_id`; `telephony_credential` and `sip_credential_connection` are
|
|
132
|
+
* keyed by `username`.
|
|
133
|
+
*/
|
|
134
|
+
credential_type: 'uac_external_credential' | 'telephony_credential' | 'sip_credential_connection';
|
|
135
|
+
/**
|
|
136
|
+
* Identifier of the UAC connection to look up. Required when `credential_type` is
|
|
137
|
+
* `uac_external_credential`.
|
|
138
|
+
*/
|
|
139
|
+
connection_id?: string;
|
|
140
|
+
/**
|
|
141
|
+
* SIP username to look up. Required when `credential_type` is
|
|
142
|
+
* `telephony_credential` or `sip_credential_connection`.
|
|
143
|
+
*/
|
|
144
|
+
username?: string;
|
|
145
|
+
}
|
|
146
|
+
export declare namespace SipRegistrationStatus {
|
|
147
|
+
export { type SipRegistrationStatusListResponse as SipRegistrationStatusListResponse, type SipRegistrationStatusListParams as SipRegistrationStatusListParams, };
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=sip-registration-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sip-registration-status.d.ts","sourceRoot":"","sources":["../src/resources/sip-registration-status.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,KAAK,EAAE,+BAA+B,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,eAAe,CAAC,EAAE,yBAAyB,GAAG,sBAAsB,GAAG,2BAA2B,CAAC;IAEnG;;OAEG;I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,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SipRegistrationStatus = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
/**
|
|
7
|
+
* UAC connection operations
|
|
8
|
+
*/
|
|
9
|
+
class SipRegistrationStatus extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns the live SIP registration status for a Telnyx endpoint: whether it is
|
|
12
|
+
* currently registered, when the current registration expires, and the last
|
|
13
|
+
* response Telnyx received from the registrar.
|
|
14
|
+
*
|
|
15
|
+
* The endpoint supports three credential types, selected with the
|
|
16
|
+
* `credential_type` query parameter. Each type is keyed by a different identifier:
|
|
17
|
+
*
|
|
18
|
+
* | `credential_type` | Keyed by | Use case |
|
|
19
|
+
* | --------------------------- | --------------- | -------------------------------------------------------------------------- |
|
|
20
|
+
* | `uac_external_credential` | `connection_id` | A UAC (SIP attach) connection that registers to an external PBX. |
|
|
21
|
+
* | `telephony_credential` | `username` | An ephemeral, one-time-use telephony credential. |
|
|
22
|
+
* | `sip_credential_connection` | `username` | A traditional SIP credential connection that registers directly to Telnyx. |
|
|
23
|
+
*
|
|
24
|
+
* The authenticated account is taken from your API key; you can only read the
|
|
25
|
+
* registration status of connections and credentials your account owns.
|
|
26
|
+
*/
|
|
27
|
+
list(query, options) {
|
|
28
|
+
return this._client.get('/sip_registration_status', { query, ...options });
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.SipRegistrationStatus = SipRegistrationStatus;
|
|
32
|
+
//# sourceMappingURL=sip-registration-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sip-registration-status.js","sourceRoot":"","sources":["../src/resources/sip-registration-status.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;GAEG;AACH,MAAa,qBAAsB,SAAQ,sBAAW;IACpD;;;;;;;;;;;;;;;;OAgBG;IACH,IAAI,CACF,KAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AAxBD,sDAwBC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* UAC connection operations
|
|
5
|
+
*/
|
|
6
|
+
export class SipRegistrationStatus extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Returns the live SIP registration status for a Telnyx endpoint: whether it is
|
|
9
|
+
* currently registered, when the current registration expires, and the last
|
|
10
|
+
* response Telnyx received from the registrar.
|
|
11
|
+
*
|
|
12
|
+
* The endpoint supports three credential types, selected with the
|
|
13
|
+
* `credential_type` query parameter. Each type is keyed by a different identifier:
|
|
14
|
+
*
|
|
15
|
+
* | `credential_type` | Keyed by | Use case |
|
|
16
|
+
* | --------------------------- | --------------- | -------------------------------------------------------------------------- |
|
|
17
|
+
* | `uac_external_credential` | `connection_id` | A UAC (SIP attach) connection that registers to an external PBX. |
|
|
18
|
+
* | `telephony_credential` | `username` | An ephemeral, one-time-use telephony credential. |
|
|
19
|
+
* | `sip_credential_connection` | `username` | A traditional SIP credential connection that registers directly to Telnyx. |
|
|
20
|
+
*
|
|
21
|
+
* The authenticated account is taken from your API key; you can only read the
|
|
22
|
+
* registration status of connections and credentials your account owns.
|
|
23
|
+
*/
|
|
24
|
+
list(query, options) {
|
|
25
|
+
return this._client.get('/sip_registration_status', { query, ...options });
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=sip-registration-status.mjs.map
|