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
|
@@ -9,9 +9,9 @@ const path_1 = require("../../../internal/utils/path.js");
|
|
|
9
9
|
*/
|
|
10
10
|
class CallingRouting extends resource_1.APIResource {
|
|
11
11
|
/**
|
|
12
|
-
* Retrieve the
|
|
13
|
-
* Number) phone number: the connection that inbound WhatsApp calls to the
|
|
14
|
-
* are delivered to.
|
|
12
|
+
* Retrieve the connection ID currently stored for a WhatsApp Calling BYON (Bring
|
|
13
|
+
* Your Own Number) phone number: the connection that inbound WhatsApp calls to the
|
|
14
|
+
* number are delivered to.
|
|
15
15
|
*
|
|
16
16
|
* Use it to check the result of
|
|
17
17
|
* `PATCH /whatsapp/phone_numbers/{id}/calling_routing`. A read made immediately
|
|
@@ -31,8 +31,9 @@ class CallingRouting extends resource_1.APIResource {
|
|
|
31
31
|
return this._client.get((0, path_1.path) `/whatsapp/phone_numbers/${id}/calling_routing`, options);
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* Set or clear the connection
|
|
35
|
-
*
|
|
34
|
+
* Set or clear the connection ID for a WhatsApp Calling BYON (Bring Your Own
|
|
35
|
+
* Number) phone number: the connection that inbound WhatsApp calls to the number
|
|
36
|
+
* are delivered to.
|
|
36
37
|
*
|
|
37
38
|
* The update is processed asynchronously. A `202` response means the request was
|
|
38
39
|
* accepted, not that the routing changed. Check the result with
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calling-routing.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/calling-routing.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"calling-routing.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/calling-routing.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,QAAQ,CACN,EAAU,EACV,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF;AA3DD,wCA2DC"}
|
|
@@ -6,9 +6,9 @@ import { path } from "../../../internal/utils/path.mjs";
|
|
|
6
6
|
*/
|
|
7
7
|
export class CallingRouting extends APIResource {
|
|
8
8
|
/**
|
|
9
|
-
* Retrieve the
|
|
10
|
-
* Number) phone number: the connection that inbound WhatsApp calls to the
|
|
11
|
-
* are delivered to.
|
|
9
|
+
* Retrieve the connection ID currently stored for a WhatsApp Calling BYON (Bring
|
|
10
|
+
* Your Own Number) phone number: the connection that inbound WhatsApp calls to the
|
|
11
|
+
* number are delivered to.
|
|
12
12
|
*
|
|
13
13
|
* Use it to check the result of
|
|
14
14
|
* `PATCH /whatsapp/phone_numbers/{id}/calling_routing`. A read made immediately
|
|
@@ -28,8 +28,9 @@ export class CallingRouting extends APIResource {
|
|
|
28
28
|
return this._client.get(path `/whatsapp/phone_numbers/${id}/calling_routing`, options);
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* Set or clear the connection
|
|
32
|
-
*
|
|
31
|
+
* Set or clear the connection ID for a WhatsApp Calling BYON (Bring Your Own
|
|
32
|
+
* Number) phone number: the connection that inbound WhatsApp calls to the number
|
|
33
|
+
* are delivered to.
|
|
33
34
|
*
|
|
34
35
|
* The update is processed asynchronously. A `202` response means the request was
|
|
35
36
|
* accepted, not that the routing changed. Check the result with
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calling-routing.mjs","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/calling-routing.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"calling-routing.mjs","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/calling-routing.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,CAAC,EAAU,EAAE,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,QAAQ,CACN,EAAU,EACV,IAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,2BAA2B,EAAE,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from "../../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
export declare class Signup extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List finished WhatsApp Embedded Signup sessions, with status `SUCCESS` or
|
|
8
|
+
* `FAILURE`, newest first. Use the `errors` of a failed session to see why
|
|
9
|
+
* provisioning stopped.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* // Automatically fetches more pages as needed.
|
|
14
|
+
* for await (const signupListResponse of client.whatsapp.signup.list()) {
|
|
15
|
+
* // ...
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
list(query?: SignupListParams | null | undefined, options?: RequestOptions): PagePromise<SignupListResponsesDefaultFlatPagination, SignupListResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve the current state and status of a WhatsApp Embedded Signup session.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const response =
|
|
26
|
+
* await client.whatsapp.signup.retrieveStatus('id');
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
retrieveStatus(id: string, options?: RequestOptions): APIPromise<SignupRetrieveStatusResponse>;
|
|
30
|
+
}
|
|
31
|
+
export type SignupListResponsesDefaultFlatPagination = DefaultFlatPagination<SignupListResponse>;
|
|
32
|
+
export interface SignupListResponse {
|
|
33
|
+
created_at?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Tech provider customer reference submitted with the signup
|
|
36
|
+
*/
|
|
37
|
+
customer_id?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Errors recorded during provisioning
|
|
40
|
+
*/
|
|
41
|
+
errors?: Array<string>;
|
|
42
|
+
record_type?: 'whatsapp_session_id';
|
|
43
|
+
/**
|
|
44
|
+
* Signup session ID
|
|
45
|
+
*/
|
|
46
|
+
session_id?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Current provisioning step, or the step that failed. `REGISTER_PHONE_NUMBER` is
|
|
49
|
+
* skipped for coexistence signups.
|
|
50
|
+
*/
|
|
51
|
+
state?: 'SUBSCRIBE_WEBHOOKS' | 'ASSIGNED_USERS' | 'SHARE_CREDIT_LINE' | 'REGISTER_PHONE_NUMBER' | 'ADD_WABA_TO_DB' | 'ADD_PHONE_NUMBERS_TO_DB' | 'COMPLETE';
|
|
52
|
+
/**
|
|
53
|
+
* `INCOMPLETE` waits for the Meta signup code, `PENDING` is in progress, `SUCCESS`
|
|
54
|
+
* finished provisioning, and `FAILURE` stopped at `state`.
|
|
55
|
+
*/
|
|
56
|
+
status?: 'INCOMPLETE' | 'PENDING' | 'SUCCESS' | 'FAILURE';
|
|
57
|
+
updated_at?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Telnyx user ID that owns the signup session
|
|
60
|
+
*/
|
|
61
|
+
user_id?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Meta WhatsApp Business Account ID
|
|
64
|
+
*/
|
|
65
|
+
waba_id?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface SignupRetrieveStatusResponse {
|
|
68
|
+
data?: SignupRetrieveStatusResponse.Data;
|
|
69
|
+
}
|
|
70
|
+
export declare namespace SignupRetrieveStatusResponse {
|
|
71
|
+
interface Data {
|
|
72
|
+
created_at?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Tech provider customer reference submitted with the signup
|
|
75
|
+
*/
|
|
76
|
+
customer_id?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Errors recorded during provisioning
|
|
79
|
+
*/
|
|
80
|
+
errors?: Array<string>;
|
|
81
|
+
record_type?: 'whatsapp_session_id';
|
|
82
|
+
/**
|
|
83
|
+
* Signup session ID
|
|
84
|
+
*/
|
|
85
|
+
session_id?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Current provisioning step, or the step that failed. `REGISTER_PHONE_NUMBER` is
|
|
88
|
+
* skipped for coexistence signups.
|
|
89
|
+
*/
|
|
90
|
+
state?: 'SUBSCRIBE_WEBHOOKS' | 'ASSIGNED_USERS' | 'SHARE_CREDIT_LINE' | 'REGISTER_PHONE_NUMBER' | 'ADD_WABA_TO_DB' | 'ADD_PHONE_NUMBERS_TO_DB' | 'COMPLETE';
|
|
91
|
+
/**
|
|
92
|
+
* `INCOMPLETE` waits for the Meta signup code, `PENDING` is in progress, `SUCCESS`
|
|
93
|
+
* finished provisioning, and `FAILURE` stopped at `state`.
|
|
94
|
+
*/
|
|
95
|
+
status?: 'INCOMPLETE' | 'PENDING' | 'SUCCESS' | 'FAILURE';
|
|
96
|
+
updated_at?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Telnyx user ID that owns the signup session
|
|
99
|
+
*/
|
|
100
|
+
user_id?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Meta WhatsApp Business Account ID
|
|
103
|
+
*/
|
|
104
|
+
waba_id?: string;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
export interface SignupListParams extends DefaultFlatPaginationParams {
|
|
108
|
+
/**
|
|
109
|
+
* Return sessions created at or after this time (RFC 3339)
|
|
110
|
+
*/
|
|
111
|
+
'filter[created_at][gte]'?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Return sessions created at or before this time (RFC 3339)
|
|
114
|
+
*/
|
|
115
|
+
'filter[created_at][lte]'?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Filter by the tech provider customer reference
|
|
118
|
+
*/
|
|
119
|
+
'filter[customer_id]'?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Filter by Meta WABA ID
|
|
122
|
+
*/
|
|
123
|
+
'filter[waba_id]'?: string;
|
|
124
|
+
}
|
|
125
|
+
export declare namespace Signup {
|
|
126
|
+
export { type SignupListResponse as SignupListResponse, type SignupRetrieveStatusResponse as SignupRetrieveStatusResponse, type SignupListResponsesDefaultFlatPagination as SignupListResponsesDefaultFlatPagination, type SignupListParams as SignupListParams, };
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=signup.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signup.d.mts","sourceRoot":"","sources":["../../src/resources/whatsapp/signup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAA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-promise.js";
|
|
3
|
+
import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from "../../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
export declare class Signup extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List finished WhatsApp Embedded Signup sessions, with status `SUCCESS` or
|
|
8
|
+
* `FAILURE`, newest first. Use the `errors` of a failed session to see why
|
|
9
|
+
* provisioning stopped.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* // Automatically fetches more pages as needed.
|
|
14
|
+
* for await (const signupListResponse of client.whatsapp.signup.list()) {
|
|
15
|
+
* // ...
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
list(query?: SignupListParams | null | undefined, options?: RequestOptions): PagePromise<SignupListResponsesDefaultFlatPagination, SignupListResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve the current state and status of a WhatsApp Embedded Signup session.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const response =
|
|
26
|
+
* await client.whatsapp.signup.retrieveStatus('id');
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
retrieveStatus(id: string, options?: RequestOptions): APIPromise<SignupRetrieveStatusResponse>;
|
|
30
|
+
}
|
|
31
|
+
export type SignupListResponsesDefaultFlatPagination = DefaultFlatPagination<SignupListResponse>;
|
|
32
|
+
export interface SignupListResponse {
|
|
33
|
+
created_at?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Tech provider customer reference submitted with the signup
|
|
36
|
+
*/
|
|
37
|
+
customer_id?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Errors recorded during provisioning
|
|
40
|
+
*/
|
|
41
|
+
errors?: Array<string>;
|
|
42
|
+
record_type?: 'whatsapp_session_id';
|
|
43
|
+
/**
|
|
44
|
+
* Signup session ID
|
|
45
|
+
*/
|
|
46
|
+
session_id?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Current provisioning step, or the step that failed. `REGISTER_PHONE_NUMBER` is
|
|
49
|
+
* skipped for coexistence signups.
|
|
50
|
+
*/
|
|
51
|
+
state?: 'SUBSCRIBE_WEBHOOKS' | 'ASSIGNED_USERS' | 'SHARE_CREDIT_LINE' | 'REGISTER_PHONE_NUMBER' | 'ADD_WABA_TO_DB' | 'ADD_PHONE_NUMBERS_TO_DB' | 'COMPLETE';
|
|
52
|
+
/**
|
|
53
|
+
* `INCOMPLETE` waits for the Meta signup code, `PENDING` is in progress, `SUCCESS`
|
|
54
|
+
* finished provisioning, and `FAILURE` stopped at `state`.
|
|
55
|
+
*/
|
|
56
|
+
status?: 'INCOMPLETE' | 'PENDING' | 'SUCCESS' | 'FAILURE';
|
|
57
|
+
updated_at?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Telnyx user ID that owns the signup session
|
|
60
|
+
*/
|
|
61
|
+
user_id?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Meta WhatsApp Business Account ID
|
|
64
|
+
*/
|
|
65
|
+
waba_id?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface SignupRetrieveStatusResponse {
|
|
68
|
+
data?: SignupRetrieveStatusResponse.Data;
|
|
69
|
+
}
|
|
70
|
+
export declare namespace SignupRetrieveStatusResponse {
|
|
71
|
+
interface Data {
|
|
72
|
+
created_at?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Tech provider customer reference submitted with the signup
|
|
75
|
+
*/
|
|
76
|
+
customer_id?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Errors recorded during provisioning
|
|
79
|
+
*/
|
|
80
|
+
errors?: Array<string>;
|
|
81
|
+
record_type?: 'whatsapp_session_id';
|
|
82
|
+
/**
|
|
83
|
+
* Signup session ID
|
|
84
|
+
*/
|
|
85
|
+
session_id?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Current provisioning step, or the step that failed. `REGISTER_PHONE_NUMBER` is
|
|
88
|
+
* skipped for coexistence signups.
|
|
89
|
+
*/
|
|
90
|
+
state?: 'SUBSCRIBE_WEBHOOKS' | 'ASSIGNED_USERS' | 'SHARE_CREDIT_LINE' | 'REGISTER_PHONE_NUMBER' | 'ADD_WABA_TO_DB' | 'ADD_PHONE_NUMBERS_TO_DB' | 'COMPLETE';
|
|
91
|
+
/**
|
|
92
|
+
* `INCOMPLETE` waits for the Meta signup code, `PENDING` is in progress, `SUCCESS`
|
|
93
|
+
* finished provisioning, and `FAILURE` stopped at `state`.
|
|
94
|
+
*/
|
|
95
|
+
status?: 'INCOMPLETE' | 'PENDING' | 'SUCCESS' | 'FAILURE';
|
|
96
|
+
updated_at?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Telnyx user ID that owns the signup session
|
|
99
|
+
*/
|
|
100
|
+
user_id?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Meta WhatsApp Business Account ID
|
|
103
|
+
*/
|
|
104
|
+
waba_id?: string;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
export interface SignupListParams extends DefaultFlatPaginationParams {
|
|
108
|
+
/**
|
|
109
|
+
* Return sessions created at or after this time (RFC 3339)
|
|
110
|
+
*/
|
|
111
|
+
'filter[created_at][gte]'?: string;
|
|
112
|
+
/**
|
|
113
|
+
* Return sessions created at or before this time (RFC 3339)
|
|
114
|
+
*/
|
|
115
|
+
'filter[created_at][lte]'?: string;
|
|
116
|
+
/**
|
|
117
|
+
* Filter by the tech provider customer reference
|
|
118
|
+
*/
|
|
119
|
+
'filter[customer_id]'?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Filter by Meta WABA ID
|
|
122
|
+
*/
|
|
123
|
+
'filter[waba_id]'?: string;
|
|
124
|
+
}
|
|
125
|
+
export declare namespace Signup {
|
|
126
|
+
export { type SignupListResponse as SignupListResponse, type SignupRetrieveStatusResponse as SignupRetrieveStatusResponse, type SignupListResponsesDefaultFlatPagination as SignupListResponsesDefaultFlatPagination, type SignupListParams as SignupListParams, };
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=signup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signup.d.ts","sourceRoot":"","sources":["../../src/resources/whatsapp/signup.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,iCAA8B;AAC7G,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,wCAAwC,EAAE,kBAAkB,CAAC;IAO5E;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;CAG/F;AAED,MAAM,MAAM,wCAAwC,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;AAEjG,MAAM,WAAW,kBAAkB;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEvB,WAAW,CAAC,EAAE,qBAAqB,CAAC;IAEpC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,KAAK,CAAC,EACF,oBAAoB,GACpB,gBAAgB,GAChB,mBAAmB,GACnB,uBAAuB,GACvB,gBAAgB,GAChB,yBAAyB,GACzB,UAAU,CAAC;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IA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AK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.Signup = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
class Signup extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List finished WhatsApp Embedded Signup sessions, with status `SUCCESS` or
|
|
11
|
+
* `FAILURE`, newest first. Use the `errors` of a failed session to see why
|
|
12
|
+
* provisioning stopped.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* // Automatically fetches more pages as needed.
|
|
17
|
+
* for await (const signupListResponse of client.whatsapp.signup.list()) {
|
|
18
|
+
* // ...
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
list(query = {}, options) {
|
|
23
|
+
return this._client.getAPIList('/whatsapp/signup', (pagination_1.DefaultFlatPagination), {
|
|
24
|
+
query,
|
|
25
|
+
...options,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve the current state and status of a WhatsApp Embedded Signup session.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const response =
|
|
34
|
+
* await client.whatsapp.signup.retrieveStatus('id');
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
retrieveStatus(id, options) {
|
|
38
|
+
return this._client.get((0, path_1.path) `/whatsapp/signup/${id}/status`, options);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.Signup = Signup;
|
|
42
|
+
//# sourceMappingURL=signup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signup.js","sourceRoot":"","sources":["../../src/resources/whatsapp/signup.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA6G;AAE7G,uDAAiD;AAEjD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,kCAAyC,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF;AApCD,wBAoCC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { DefaultFlatPagination } from "../../core/pagination.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
export class Signup extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List finished WhatsApp Embedded Signup sessions, with status `SUCCESS` or
|
|
8
|
+
* `FAILURE`, newest first. Use the `errors` of a failed session to see why
|
|
9
|
+
* provisioning stopped.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* // Automatically fetches more pages as needed.
|
|
14
|
+
* for await (const signupListResponse of client.whatsapp.signup.list()) {
|
|
15
|
+
* // ...
|
|
16
|
+
* }
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
list(query = {}, options) {
|
|
20
|
+
return this._client.getAPIList('/whatsapp/signup', (DefaultFlatPagination), {
|
|
21
|
+
query,
|
|
22
|
+
...options,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Retrieve the current state and status of a WhatsApp Embedded Signup session.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const response =
|
|
31
|
+
* await client.whatsapp.signup.retrieveStatus('id');
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
retrieveStatus(id, options) {
|
|
35
|
+
return this._client.get(path `/whatsapp/signup/${id}/status`, options);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=signup.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signup.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/signup.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,qBAAqB,EAAiD,kCAA8B;AAE7G,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,qBAAyC,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAU,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as SignupAPI from "./signup.mjs";
|
|
3
|
+
import { Signup, SignupListParams, SignupListResponse, SignupListResponsesDefaultFlatPagination, SignupRetrieveStatusResponse } from "./signup.mjs";
|
|
2
4
|
import * as TemplatesAPI from "./templates.mjs";
|
|
3
5
|
import { TemplateCreateParams, TemplateCreateResponse, TemplateListParams, Templates, WhatsappTemplateBodyComponent, WhatsappTemplateButtonsComponent, WhatsappTemplateCarouselComponent, WhatsappTemplateFooterComponent, WhatsappTemplateHeaderComponent } from "./templates.mjs";
|
|
4
6
|
import * as UserDataAPI from "./user-data.mjs";
|
|
@@ -12,11 +14,13 @@ export declare class Whatsapp extends APIResource {
|
|
|
12
14
|
templates: TemplatesAPI.Templates;
|
|
13
15
|
phoneNumbers: PhoneNumbersAPI.PhoneNumbers;
|
|
14
16
|
userData: UserDataAPI.UserData;
|
|
17
|
+
signup: SignupAPI.Signup;
|
|
15
18
|
}
|
|
16
19
|
export declare namespace Whatsapp {
|
|
17
20
|
export { BusinessAccounts as BusinessAccounts, type BusinessAccountRetrieveResponse as BusinessAccountRetrieveResponse, type BusinessAccountListResponse as BusinessAccountListResponse, type BusinessAccountListResponsesDefaultFlatPagination as BusinessAccountListResponsesDefaultFlatPagination, type BusinessAccountListParams as BusinessAccountListParams, };
|
|
18
21
|
export { Templates as Templates, type WhatsappTemplateBodyComponent as WhatsappTemplateBodyComponent, type WhatsappTemplateButtonsComponent as WhatsappTemplateButtonsComponent, type WhatsappTemplateCarouselComponent as WhatsappTemplateCarouselComponent, type WhatsappTemplateFooterComponent as WhatsappTemplateFooterComponent, type WhatsappTemplateHeaderComponent as WhatsappTemplateHeaderComponent, type TemplateCreateResponse as TemplateCreateResponse, type TemplateListParams as TemplateListParams, type TemplateCreateParams as TemplateCreateParams, };
|
|
19
22
|
export { PhoneNumbers as PhoneNumbers, type PhoneNumberListResponse as PhoneNumberListResponse, type PhoneNumberGetResponse as PhoneNumberGetResponse, type PhoneNumberRetrieveConversationWindowResponse as PhoneNumberRetrieveConversationWindowResponse, type PhoneNumberRetrievePhoneNumberResponse as PhoneNumberRetrievePhoneNumberResponse, type PhoneNumberListResponsesDefaultFlatPagination as PhoneNumberListResponsesDefaultFlatPagination, type PhoneNumberListParams as PhoneNumberListParams, type PhoneNumberResendVerificationParams as PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams as PhoneNumberVerifyParams, type PhoneNumberRetrieveConversationWindowParams as PhoneNumberRetrieveConversationWindowParams, type PhoneNumberGetParams as PhoneNumberGetParams, };
|
|
20
23
|
export { UserData as UserData, type WhatsappUserData as WhatsappUserData, type UserDataRetrieveResponse as UserDataRetrieveResponse, type UserDataUpdateResponse as UserDataUpdateResponse, type UserDataUpdateParams as UserDataUpdateParams, };
|
|
24
|
+
export { Signup as Signup, type SignupListResponse as SignupListResponse, type SignupRetrieveStatusResponse as SignupRetrieveStatusResponse, type SignupListResponsesDefaultFlatPagination as SignupListResponsesDefaultFlatPagination, type SignupListParams as SignupListParams, };
|
|
21
25
|
}
|
|
22
26
|
//# sourceMappingURL=whatsapp.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whatsapp.d.mts","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,SAAS,EACT,6BAA6B,EAC7B,gCAAgC,EAChC,iCAAiC,EACjC,+BAA+B,EAC/B,+BAA+B,EAChC,wBAAoB;AACrB,OAAO,KAAK,WAAW,wBAAoB;AAC3C,OAAO,EACL,QAAQ,EACR,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EACjB,wBAAoB;AACrB,OAAO,KAAK,mBAAmB,kDAA8C;AAC7E,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,iDAAiD,EACjD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qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,2CAA2C,IAAI,2CAA2C,EAC/F,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as SignupAPI from "./signup.js";
|
|
3
|
+
import { Signup, SignupListParams, SignupListResponse, SignupListResponsesDefaultFlatPagination, SignupRetrieveStatusResponse } from "./signup.js";
|
|
2
4
|
import * as TemplatesAPI from "./templates.js";
|
|
3
5
|
import { TemplateCreateParams, TemplateCreateResponse, TemplateListParams, Templates, WhatsappTemplateBodyComponent, WhatsappTemplateButtonsComponent, WhatsappTemplateCarouselComponent, WhatsappTemplateFooterComponent, WhatsappTemplateHeaderComponent } from "./templates.js";
|
|
4
6
|
import * as UserDataAPI from "./user-data.js";
|
|
@@ -12,11 +14,13 @@ export declare class Whatsapp extends APIResource {
|
|
|
12
14
|
templates: TemplatesAPI.Templates;
|
|
13
15
|
phoneNumbers: PhoneNumbersAPI.PhoneNumbers;
|
|
14
16
|
userData: UserDataAPI.UserData;
|
|
17
|
+
signup: SignupAPI.Signup;
|
|
15
18
|
}
|
|
16
19
|
export declare namespace Whatsapp {
|
|
17
20
|
export { BusinessAccounts as BusinessAccounts, type BusinessAccountRetrieveResponse as BusinessAccountRetrieveResponse, type BusinessAccountListResponse as BusinessAccountListResponse, type BusinessAccountListResponsesDefaultFlatPagination as BusinessAccountListResponsesDefaultFlatPagination, type BusinessAccountListParams as BusinessAccountListParams, };
|
|
18
21
|
export { Templates as Templates, type WhatsappTemplateBodyComponent as WhatsappTemplateBodyComponent, type WhatsappTemplateButtonsComponent as WhatsappTemplateButtonsComponent, type WhatsappTemplateCarouselComponent as WhatsappTemplateCarouselComponent, type WhatsappTemplateFooterComponent as WhatsappTemplateFooterComponent, type WhatsappTemplateHeaderComponent as WhatsappTemplateHeaderComponent, type TemplateCreateResponse as TemplateCreateResponse, type TemplateListParams as TemplateListParams, type TemplateCreateParams as TemplateCreateParams, };
|
|
19
22
|
export { PhoneNumbers as PhoneNumbers, type PhoneNumberListResponse as PhoneNumberListResponse, type PhoneNumberGetResponse as PhoneNumberGetResponse, type PhoneNumberRetrieveConversationWindowResponse as PhoneNumberRetrieveConversationWindowResponse, type PhoneNumberRetrievePhoneNumberResponse as PhoneNumberRetrievePhoneNumberResponse, type PhoneNumberListResponsesDefaultFlatPagination as PhoneNumberListResponsesDefaultFlatPagination, type PhoneNumberListParams as PhoneNumberListParams, type PhoneNumberResendVerificationParams as PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams as PhoneNumberVerifyParams, type PhoneNumberRetrieveConversationWindowParams as PhoneNumberRetrieveConversationWindowParams, type PhoneNumberGetParams as PhoneNumberGetParams, };
|
|
20
23
|
export { UserData as UserData, type WhatsappUserData as WhatsappUserData, type UserDataRetrieveResponse as UserDataRetrieveResponse, type UserDataUpdateResponse as UserDataUpdateResponse, type UserDataUpdateParams as UserDataUpdateParams, };
|
|
24
|
+
export { Signup as Signup, type SignupListResponse as SignupListResponse, type SignupRetrieveStatusResponse as SignupRetrieveStatusResponse, type SignupListResponsesDefaultFlatPagination as SignupListResponsesDefaultFlatPagination, type SignupListParams as SignupListParams, };
|
|
21
25
|
}
|
|
22
26
|
//# sourceMappingURL=whatsapp.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whatsapp.d.ts","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,YAAY,uBAAoB;AAC5C,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,SAAS,EACT,6BAA6B,EAC7B,gCAAgC,EAChC,iCAAiC,EACjC,+BAA+B,EAC/B,+BAA+B,EAChC,uBAAoB;AACrB,OAAO,KAAK,WAAW,uBAAoB;AAC3C,OAAO,EACL,QAAQ,EACR,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EACjB,uBAAoB;AACrB,OAAO,KAAK,mBAAmB,iDAA8C;AAC7E,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,iDAAiD,EACjD,+BAA+B,EAC/B,gBAAgB,EACjB,iDAA8C;AAC/C,OAAO,KAAK,eAAe,yCAAsC;AACjE,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,uBAAuB,EACvB,6CAA6C,EAC7C,mCAAmC,EACnC,2CAA2C,EAC3C,6CAA6C,EAC7C,sCAAsC,EACtC,uBAAuB,EACvB,YAAY,EACb,yCAAsC;AAEvC,qBAAa,QAAS,SAAQ,WAAW;IACvC,gBAAgB,EAAE,mBAAmB,CAAC,gBAAgB,CAEpD;IACF,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAC5F,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;
|
|
1
|
+
{"version":3,"file":"whatsapp.d.ts","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,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
4
4
|
exports.Whatsapp = void 0;
|
|
5
5
|
const tslib_1 = require("../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const SignupAPI = tslib_1.__importStar(require("./signup.js"));
|
|
8
|
+
const signup_1 = require("./signup.js");
|
|
7
9
|
const TemplatesAPI = tslib_1.__importStar(require("./templates.js"));
|
|
8
10
|
const templates_1 = require("./templates.js");
|
|
9
11
|
const UserDataAPI = tslib_1.__importStar(require("./user-data.js"));
|
|
@@ -19,6 +21,7 @@ class Whatsapp extends resource_1.APIResource {
|
|
|
19
21
|
this.templates = new TemplatesAPI.Templates(this._client);
|
|
20
22
|
this.phoneNumbers = new PhoneNumbersAPI.PhoneNumbers(this._client);
|
|
21
23
|
this.userData = new UserDataAPI.UserData(this._client);
|
|
24
|
+
this.signup = new SignupAPI.Signup(this._client);
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
27
|
exports.Whatsapp = Whatsapp;
|
|
@@ -26,4 +29,5 @@ Whatsapp.BusinessAccounts = business_accounts_1.BusinessAccounts;
|
|
|
26
29
|
Whatsapp.Templates = templates_1.Templates;
|
|
27
30
|
Whatsapp.PhoneNumbers = phone_numbers_1.PhoneNumbers;
|
|
28
31
|
Whatsapp.UserData = user_data_1.UserData;
|
|
32
|
+
Whatsapp.Signup = signup_1.Signup;
|
|
29
33
|
//# sourceMappingURL=whatsapp.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whatsapp.js","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,qEAA4C;AAC5C,8CAUqB;AACrB,oEAA2C;AAC3C,8CAMqB;AACrB,sGAA6E;AAC7E,gFAM+C;AAC/C,0FAAiE;AACjE,oEAYuC;AAEvC,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F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,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as SignupAPI from "./signup.mjs";
|
|
4
|
+
import { Signup, } from "./signup.mjs";
|
|
3
5
|
import * as TemplatesAPI from "./templates.mjs";
|
|
4
6
|
import { Templates, } from "./templates.mjs";
|
|
5
7
|
import * as UserDataAPI from "./user-data.mjs";
|
|
@@ -15,10 +17,12 @@ export class Whatsapp extends APIResource {
|
|
|
15
17
|
this.templates = new TemplatesAPI.Templates(this._client);
|
|
16
18
|
this.phoneNumbers = new PhoneNumbersAPI.PhoneNumbers(this._client);
|
|
17
19
|
this.userData = new UserDataAPI.UserData(this._client);
|
|
20
|
+
this.signup = new SignupAPI.Signup(this._client);
|
|
18
21
|
}
|
|
19
22
|
}
|
|
20
23
|
Whatsapp.BusinessAccounts = BusinessAccounts;
|
|
21
24
|
Whatsapp.Templates = Templates;
|
|
22
25
|
Whatsapp.PhoneNumbers = PhoneNumbers;
|
|
23
26
|
Whatsapp.UserData = UserData;
|
|
27
|
+
Whatsapp.Signup = Signup;
|
|
24
28
|
//# sourceMappingURL=whatsapp.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"whatsapp.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/whatsapp.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAIL,SAAS,GAMV,wBAAoB;AACrB,OAAO,KAAK,WAAW,wBAAoB;AAC3C,OAAO,EACL,QAAQ,GAKT,wBAAoB;AACrB,OAAO,KAAK,mBAAmB,kDAA8C;AAC7E,OAAO,EAKL,gBAAgB,GACjB,kDAA8C;AAC/C,OAAO,KAAK,eAAe,0CAAsC;AACjE,OAAO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