telnyx 7.29.0 → 7.30.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/README.md +27 -0
- package/client.d.mts +9 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -10
- package/client.d.ts.map +1 -1
- package/client.js +0 -3
- package/client.js.map +1 -1
- package/client.mjs +0 -3
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +20 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +20 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +25 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +23 -0
- package/core/pagination.mjs.map +1 -1
- package/lib/login-token.d.mts +91 -0
- package/lib/login-token.d.mts.map +1 -0
- package/lib/login-token.d.ts +91 -0
- package/lib/login-token.d.ts.map +1 -0
- package/lib/login-token.js +190 -0
- package/lib/login-token.js.map +1 -0
- package/lib/login-token.mjs +151 -0
- package/lib/login-token.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +9 -4
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +9 -4
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +191 -109
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +191 -109
- 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/chat.d.mts +3 -5
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +3 -5
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.d.mts +27 -2
- package/resources/ai/conversations/conversations.d.mts.map +1 -1
- package/resources/ai/conversations/conversations.d.ts +27 -2
- package/resources/ai/conversations/conversations.d.ts.map +1 -1
- package/resources/ai/conversations/conversations.js +23 -1
- package/resources/ai/conversations/conversations.js.map +1 -1
- package/resources/ai/conversations/conversations.mjs +23 -1
- package/resources/ai/conversations/conversations.mjs.map +1 -1
- package/resources/ai/conversations/index.d.mts +1 -1
- package/resources/ai/conversations/index.d.mts.map +1 -1
- package/resources/ai/conversations/index.d.ts +1 -1
- package/resources/ai/conversations/index.d.ts.map +1 -1
- package/resources/ai/conversations/index.js.map +1 -1
- package/resources/ai/conversations/index.mjs.map +1 -1
- package/resources/ai/index.d.mts +2 -2
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +2 -2
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js.map +1 -1
- 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 +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 +1 -1
- package/resources/ai/memory/namespaces/namespaces.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts +3 -3
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts +3 -3
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.mjs.map +1 -1
- package/resources/ai/memory/namespaces/settings.d.mts +23 -27
- package/resources/ai/memory/namespaces/settings.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/settings.d.ts +23 -27
- package/resources/ai/memory/namespaces/settings.d.ts.map +1 -1
- package/resources/ai/openai/chat.d.mts +3 -5
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +3 -5
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/tests/test-framework/v1/v1.d.mts +15 -5
- package/resources/ai/tests/test-framework/v1/v1.d.mts.map +1 -1
- package/resources/ai/tests/test-framework/v1/v1.d.ts +15 -5
- package/resources/ai/tests/test-framework/v1/v1.d.ts.map +1 -1
- package/resources/ai/tools.d.mts +222 -0
- package/resources/ai/tools.d.mts.map +1 -1
- package/resources/ai/tools.d.ts +222 -0
- package/resources/ai/tools.d.ts.map +1 -1
- package/resources/browser-sessions/actions.d.mts +13 -7
- package/resources/browser-sessions/actions.d.mts.map +1 -1
- package/resources/browser-sessions/actions.d.ts +13 -7
- package/resources/browser-sessions/actions.d.ts.map +1 -1
- package/resources/browser-sessions/browser-sessions.d.mts +6 -2
- package/resources/browser-sessions/browser-sessions.d.mts.map +1 -1
- package/resources/browser-sessions/browser-sessions.d.ts +6 -2
- package/resources/browser-sessions/browser-sessions.d.ts.map +1 -1
- package/resources/compute/funcs/export.d.mts +33 -35
- package/resources/compute/funcs/export.d.mts.map +1 -1
- package/resources/compute/funcs/export.d.ts +33 -35
- package/resources/compute/funcs/export.d.ts.map +1 -1
- package/resources/compute/funcs/funcs.d.mts +2 -2
- package/resources/compute/funcs/funcs.d.mts.map +1 -1
- package/resources/compute/funcs/funcs.d.ts +2 -2
- package/resources/compute/funcs/funcs.d.ts.map +1 -1
- package/resources/compute/funcs/funcs.js.map +1 -1
- package/resources/compute/funcs/funcs.mjs.map +1 -1
- package/resources/compute/funcs/index.d.mts +1 -1
- package/resources/compute/funcs/index.d.mts.map +1 -1
- package/resources/compute/funcs/index.d.ts +1 -1
- package/resources/compute/funcs/index.d.ts.map +1 -1
- package/resources/compute/funcs/index.js.map +1 -1
- package/resources/compute/funcs/index.mjs +1 -1
- package/resources/compute/funcs/index.mjs.map +1 -1
- package/resources/email/dedicated-ips/dedicated-ips.d.mts.map +1 -1
- package/resources/email/dedicated-ips/dedicated-ips.d.ts.map +1 -1
- package/resources/email/dedicated-ips/dedicated-ips.js +2 -2
- package/resources/email/dedicated-ips/dedicated-ips.js.map +1 -1
- package/resources/email/dedicated-ips/dedicated-ips.mjs +2 -2
- package/resources/email/dedicated-ips/dedicated-ips.mjs.map +1 -1
- package/resources/email-events.d.mts +84 -106
- package/resources/email-events.d.mts.map +1 -1
- package/resources/email-events.d.ts +84 -106
- package/resources/email-events.d.ts.map +1 -1
- package/resources/email-events.js +5 -1
- package/resources/email-events.js.map +1 -1
- package/resources/email-events.mjs +5 -1
- package/resources/email-events.mjs.map +1 -1
- package/resources/email-messages/email-messages.d.mts +1 -7
- package/resources/email-messages/email-messages.d.mts.map +1 -1
- package/resources/email-messages/email-messages.d.ts +1 -7
- package/resources/email-messages/email-messages.d.ts.map +1 -1
- package/resources/email-messages/email-messages.js.map +1 -1
- package/resources/email-messages/email-messages.mjs.map +1 -1
- package/resources/email-templates.d.mts +16 -70
- package/resources/email-templates.d.mts.map +1 -1
- package/resources/email-templates.d.ts +16 -70
- package/resources/email-templates.d.ts.map +1 -1
- package/resources/enterprises/enterprises.d.mts +2 -2
- package/resources/enterprises/enterprises.d.mts.map +1 -1
- package/resources/enterprises/enterprises.d.ts +2 -2
- package/resources/enterprises/enterprises.d.ts.map +1 -1
- package/resources/enterprises/enterprises.js.map +1 -1
- 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 +26 -29
- package/resources/enterprises/reputation/external-verification.d.mts.map +1 -1
- package/resources/enterprises/reputation/external-verification.d.ts +26 -29
- package/resources/enterprises/reputation/external-verification.d.ts.map +1 -1
- package/resources/enterprises/reputation/external-verification.js +3 -3
- package/resources/enterprises/reputation/external-verification.js.map +1 -1
- package/resources/enterprises/reputation/external-verification.mjs +1 -1
- package/resources/enterprises/reputation/external-verification.mjs.map +1 -1
- package/resources/enterprises/reputation/index.d.mts +1 -1
- package/resources/enterprises/reputation/index.d.mts.map +1 -1
- package/resources/enterprises/reputation/index.d.ts +1 -1
- package/resources/enterprises/reputation/index.d.ts.map +1 -1
- package/resources/enterprises/reputation/index.js +2 -2
- package/resources/enterprises/reputation/index.js.map +1 -1
- package/resources/enterprises/reputation/index.mjs +1 -1
- package/resources/enterprises/reputation/index.mjs.map +1 -1
- package/resources/enterprises/reputation/reputation.d.mts +3 -3
- package/resources/enterprises/reputation/reputation.d.mts.map +1 -1
- package/resources/enterprises/reputation/reputation.d.ts +3 -3
- package/resources/enterprises/reputation/reputation.d.ts.map +1 -1
- package/resources/enterprises/reputation/reputation.js +2 -2
- package/resources/enterprises/reputation/reputation.js.map +1 -1
- package/resources/enterprises/reputation/reputation.mjs +3 -3
- package/resources/enterprises/reputation/reputation.mjs.map +1 -1
- package/resources/enterprises/verify-email.d.mts +27 -29
- package/resources/enterprises/verify-email.d.mts.map +1 -1
- package/resources/enterprises/verify-email.d.ts +27 -29
- package/resources/enterprises/verify-email.d.ts.map +1 -1
- package/resources/index.d.mts +3 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages/messages.d.mts +32 -2
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +32 -2
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.d.mts +11 -0
- package/resources/messaging-profiles/messaging-profiles.d.mts.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.d.ts +11 -0
- package/resources/messaging-profiles/messaging-profiles.d.ts.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.js.map +1 -1
- package/resources/messaging-profiles/messaging-profiles.mjs.map +1 -1
- package/resources/number-lookup.d.mts +5 -0
- package/resources/number-lookup.d.mts.map +1 -1
- package/resources/number-lookup.d.ts +5 -0
- package/resources/number-lookup.d.ts.map +1 -1
- package/resources/pay-connectors.d.mts +7 -7
- package/resources/pay-connectors.d.mts.map +1 -1
- package/resources/pay-connectors.d.ts +7 -7
- package/resources/pay-connectors.d.ts.map +1 -1
- package/resources/phone-numbers/index.d.mts +1 -1
- package/resources/phone-numbers/index.d.mts.map +1 -1
- package/resources/phone-numbers/index.d.ts +1 -1
- package/resources/phone-numbers/index.d.ts.map +1 -1
- package/resources/phone-numbers/index.js.map +1 -1
- package/resources/phone-numbers/index.mjs.map +1 -1
- package/resources/phone-numbers/jobs.d.mts +21 -57
- package/resources/phone-numbers/jobs.d.mts.map +1 -1
- package/resources/phone-numbers/jobs.d.ts +21 -57
- package/resources/phone-numbers/jobs.d.ts.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.mts +2 -2
- package/resources/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers/phone-numbers.d.ts +2 -2
- package/resources/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/phone-numbers/phone-numbers.mjs.map +1 -1
- package/resources/portouts/portouts.d.mts +2 -1
- package/resources/portouts/portouts.d.mts.map +1 -1
- package/resources/portouts/portouts.d.ts +2 -1
- package/resources/portouts/portouts.d.ts.map +1 -1
- package/resources/portouts/portouts.js +2 -1
- package/resources/portouts/portouts.js.map +1 -1
- package/resources/portouts/portouts.mjs +2 -1
- package/resources/portouts/portouts.mjs.map +1 -1
- package/resources/telephony-credentials.d.mts +78 -2
- package/resources/telephony-credentials.d.mts.map +1 -1
- package/resources/telephony-credentials.d.ts +78 -2
- package/resources/telephony-credentials.d.ts.map +1 -1
- package/resources/telephony-credentials.js +50 -2
- package/resources/telephony-credentials.js.map +1 -1
- package/resources/telephony-credentials.mjs +50 -2
- package/resources/telephony-credentials.mjs.map +1 -1
- package/resources/voice-clones.d.mts +4 -4
- package/resources/voice-clones.d.mts.map +1 -1
- package/resources/voice-clones.d.ts +4 -4
- package/resources/voice-clones.d.ts.map +1 -1
- package/resources/webhooks.d.mts +10 -20
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +10 -20
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/whatsapp/business-accounts/business-accounts.d.mts +2 -2
- package/resources/whatsapp/business-accounts/business-accounts.d.mts.map +1 -1
- package/resources/whatsapp/business-accounts/business-accounts.d.ts +2 -2
- package/resources/whatsapp/business-accounts/business-accounts.d.ts.map +1 -1
- package/resources/whatsapp/business-accounts/business-accounts.js.map +1 -1
- package/resources/whatsapp/business-accounts/business-accounts.mjs.map +1 -1
- package/resources/whatsapp/business-accounts/index.d.mts +1 -1
- package/resources/whatsapp/business-accounts/index.d.mts.map +1 -1
- package/resources/whatsapp/business-accounts/index.d.ts +1 -1
- package/resources/whatsapp/business-accounts/index.d.ts.map +1 -1
- package/resources/whatsapp/business-accounts/index.js.map +1 -1
- package/resources/whatsapp/business-accounts/index.mjs.map +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.d.mts +7 -66
- package/resources/whatsapp/business-accounts/phone-numbers.d.mts.map +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.d.ts +7 -66
- package/resources/whatsapp/business-accounts/phone-numbers.d.ts.map +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.js +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.js.map +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.mjs +1 -1
- package/resources/whatsapp/business-accounts/phone-numbers.mjs.map +1 -1
- package/resources/whatsapp/hosted-signups.d.mts +11 -73
- package/resources/whatsapp/hosted-signups.d.mts.map +1 -1
- package/resources/whatsapp/hosted-signups.d.ts +11 -73
- package/resources/whatsapp/hosted-signups.d.ts.map +1 -1
- package/resources/whatsapp/hosted-signups.js +5 -2
- package/resources/whatsapp/hosted-signups.js.map +1 -1
- package/resources/whatsapp/hosted-signups.mjs +5 -2
- package/resources/whatsapp/hosted-signups.mjs.map +1 -1
- package/resources/whatsapp/index.d.mts +2 -2
- package/resources/whatsapp/index.d.mts.map +1 -1
- package/resources/whatsapp/index.d.ts +2 -2
- package/resources/whatsapp/index.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.d.mts +1 -1
- package/resources/whatsapp/phone-numbers/index.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/index.d.ts +1 -1
- package/resources/whatsapp/phone-numbers/index.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts +9 -135
- package/resources/whatsapp/phone-numbers/phone-numbers.d.mts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts +9 -135
- package/resources/whatsapp/phone-numbers/phone-numbers.d.ts.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.js +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.js.map +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs +1 -1
- package/resources/whatsapp/phone-numbers/phone-numbers.mjs.map +1 -1
- package/resources/whatsapp/whatsapp.d.mts +4 -4
- package/resources/whatsapp/whatsapp.d.mts.map +1 -1
- package/resources/whatsapp/whatsapp.d.ts +4 -4
- package/resources/whatsapp/whatsapp.d.ts.map +1 -1
- package/resources/whatsapp/whatsapp.mjs.map +1 -1
- package/src/client.ts +16 -5
- package/src/core/pagination.ts +58 -0
- package/src/lib/login-token.ts +223 -0
- package/src/resources/ai/ai.ts +12 -0
- package/src/resources/ai/assistants/assistants.ts +227 -144
- package/src/resources/ai/assistants/index.ts +2 -0
- package/src/resources/ai/chat.ts +3 -5
- package/src/resources/ai/conversations/conversations.ts +39 -1
- package/src/resources/ai/conversations/index.ts +1 -0
- package/src/resources/ai/index.ts +3 -0
- package/src/resources/ai/memory/namespaces/index.ts +7 -1
- package/src/resources/ai/memory/namespaces/namespaces.ts +9 -1
- package/src/resources/ai/memory/namespaces/profiles/profiles.ts +5 -3
- package/src/resources/ai/memory/namespaces/settings.ts +25 -27
- package/src/resources/ai/openai/chat.ts +3 -5
- package/src/resources/ai/tests/test-framework/v1/v1.ts +5 -5
- package/src/resources/ai/tools.ts +366 -0
- package/src/resources/browser-sessions/actions.ts +7 -7
- package/src/resources/browser-sessions/browser-sessions.ts +2 -2
- package/src/resources/compute/funcs/export.ts +41 -42
- package/src/resources/compute/funcs/funcs.ts +2 -1
- package/src/resources/compute/funcs/index.ts +6 -1
- package/src/resources/email/dedicated-ips/dedicated-ips.ts +3 -2
- package/src/resources/email-events.ts +128 -147
- package/src/resources/email-messages/email-messages.ts +1 -7
- package/src/resources/email-templates.ts +17 -78
- package/src/resources/enterprises/enterprises.ts +2 -0
- package/src/resources/enterprises/index.ts +1 -0
- package/src/resources/enterprises/reputation/external-verification.ts +32 -34
- package/src/resources/enterprises/reputation/index.ts +2 -1
- package/src/resources/enterprises/reputation/reputation.ts +6 -4
- package/src/resources/enterprises/verify-email.ts +29 -30
- package/src/resources/index.ts +4 -1
- package/src/resources/messages/messages.ts +32 -2
- package/src/resources/messaging-profiles/messaging-profiles.ts +12 -0
- package/src/resources/number-lookup.ts +6 -0
- package/src/resources/pay-connectors.ts +7 -7
- package/src/resources/phone-numbers/index.ts +2 -0
- package/src/resources/phone-numbers/jobs.ts +22 -60
- package/src/resources/phone-numbers/phone-numbers.ts +4 -0
- package/src/resources/portouts/portouts.ts +2 -1
- package/src/resources/telephony-credentials.ts +108 -2
- package/src/resources/voice-clones.ts +4 -4
- package/src/resources/webhooks.ts +10 -20
- package/src/resources/whatsapp/business-accounts/business-accounts.ts +0 -4
- package/src/resources/whatsapp/business-accounts/index.ts +0 -2
- package/src/resources/whatsapp/business-accounts/phone-numbers.ts +7 -98
- package/src/resources/whatsapp/hosted-signups.ts +18 -97
- package/src/resources/whatsapp/index.ts +4 -4
- package/src/resources/whatsapp/phone-numbers/index.ts +2 -2
- package/src/resources/whatsapp/phone-numbers/phone-numbers.ts +11 -197
- package/src/resources/whatsapp/whatsapp.ts +8 -8
- 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
- package/resources/tts-integrations/actions.d.mts +0 -4
- package/resources/tts-integrations/actions.d.mts.map +0 -1
- package/resources/tts-integrations/actions.d.ts +0 -4
- package/resources/tts-integrations/actions.d.ts.map +0 -1
- package/resources/tts-integrations/actions.js +0 -9
- package/resources/tts-integrations/actions.js.map +0 -1
- package/resources/tts-integrations/actions.mjs +0 -5
- package/resources/tts-integrations/actions.mjs.map +0 -1
- package/resources/tts-integrations/index.d.mts +0 -3
- package/resources/tts-integrations/index.d.mts.map +0 -1
- package/resources/tts-integrations/index.d.ts +0 -3
- package/resources/tts-integrations/index.d.ts.map +0 -1
- package/resources/tts-integrations/index.js +0 -9
- package/resources/tts-integrations/index.js.map +0 -1
- package/resources/tts-integrations/index.mjs +0 -4
- package/resources/tts-integrations/index.mjs.map +0 -1
- package/resources/tts-integrations/tts-integrations.d.mts +0 -10
- package/resources/tts-integrations/tts-integrations.d.mts.map +0 -1
- package/resources/tts-integrations/tts-integrations.d.ts +0 -10
- package/resources/tts-integrations/tts-integrations.d.ts.map +0 -1
- package/resources/tts-integrations/tts-integrations.js +0 -17
- package/resources/tts-integrations/tts-integrations.js.map +0 -1
- package/resources/tts-integrations/tts-integrations.mjs +0 -12
- package/resources/tts-integrations/tts-integrations.mjs.map +0 -1
- package/resources/tts-integrations.d.mts +0 -2
- package/resources/tts-integrations.d.mts.map +0 -1
- package/resources/tts-integrations.d.ts +0 -2
- package/resources/tts-integrations.d.ts.map +0 -1
- package/resources/tts-integrations.js +0 -6
- package/resources/tts-integrations.js.map +0 -1
- package/resources/tts-integrations.mjs +0 -3
- package/resources/tts-integrations.mjs.map +0 -1
- package/src/resources/tts-integrations/actions.ts +0 -5
- package/src/resources/tts-integrations/index.ts +0 -4
- package/src/resources/tts-integrations/tts-integrations.ts +0 -15
- package/src/resources/tts-integrations.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business-accounts.d.ts","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/business-accounts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,eAAe,2BAAwB;AACnD,OAAO,EACL,uCAAuC,EACvC,qBAAqB,EACrB,
|
|
1
|
+
{"version":3,"file":"business-accounts.d.ts","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/business-accounts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,eAAe,2BAAwB;AACnD,OAAO,EACL,uCAAuC,EACvC,qBAAqB,EACrB,YAAY,EACb,2BAAwB;AACzB,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACR,YAAY,EACb,sBAAmB;AACpB,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,WAAW,EACZ,oCAAiC;AAElC,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAC5F,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IAExE;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iDAAiD,EAAE,2BAA2B,CAAC;IAQ9F;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO9D;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,+BAA+B,CAAC;CAG5F;AAED,MAAM,MAAM,iDAAiD,GAC3D,qBAAqB,CAAC,2BAA2B,CAAC,CAAC;AAErD,MAAM,WAAW,+BAA+B;IAC9C,IAAI,CAAC,EAAE,+BAA+B,CAAC,IAAI,CAAC;CAC7C;AAED,yBAAiB,+BAA+B,CAAC;IAC/C,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;WAEG;QACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;QAE/B;;WAEG;QACH,4BAA4B,CAAC,EAAE,MAAM,CAAC;QAEtC;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAE7B,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,4BAA4B,CAAC,EAAE,MAAM,CAAC;IAEtC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,yBAA0B,SAAQ,2BAA2B;CAAG;AAKjF,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,iDAAiD,IAAI,iDAAiD,EAC3G,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;IAEF,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uCAAuC,IAAI,uCAAuC,GACxF,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business-accounts.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/business-accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,4EAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"business-accounts.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/business-accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,4EAAmD;AACnD,sDAIyB;AACzB,mEAA0C;AAC1C,4CAMoB;AAEpB,4DAIkC;AAClC,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,gBAAiB,SAAQ,sBAAW;IAAjD;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoD1E,CAAC;IAlDC;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,gCAAgC,EAChC,CAAA,kCAAkD,CAAA,EAClD,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,kCAAkC,EAAE,EAAE,EAAE;YACrE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kCAAkC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF;AAtDD,4CAsDC;AAyGD,gBAAgB,CAAC,YAAY,GAAG,4BAAY,CAAC;AAC7C,gBAAgB,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"business-accounts.mjs","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/business-accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,eAAe,4BAAwB;AACnD,OAAO,
|
|
1
|
+
{"version":3,"file":"business-accounts.mjs","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/business-accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,eAAe,4BAAwB;AACnD,OAAO,EAGL,YAAY,GACb,4BAAwB;AACzB,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAIL,QAAQ,GAET,uBAAmB;AAEpB,OAAO,EACL,qBAAqB,GAGtB,qCAAiC;AAClC,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAAjD;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoD1E,CAAC;IAlDC;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,gCAAgC,EAChC,CAAA,qBAAkD,CAAA,EAClD,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,kCAAkC,EAAE,EAAE,EAAE;YACrE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kCAAkC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF;AAyGD,gBAAgB,CAAC,YAAY,GAAG,YAAY,CAAC;AAC7C,gBAAgB,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { BusinessAccounts, type BusinessAccountRetrieveResponse, type BusinessAccountListResponse, type BusinessAccountListParams, type BusinessAccountListResponsesDefaultFlatPagination, } from "./business-accounts.mjs";
|
|
2
|
-
export { PhoneNumbers, type
|
|
2
|
+
export { PhoneNumbers, type PhoneNumberListParams, type PhoneNumberInitializeVerificationParams, } from "./phone-numbers.mjs";
|
|
3
3
|
export { Settings, type WabaSettings, type SettingRetrieveResponse, type SettingUpdateResponse, type SettingUpdateParams, } from "./settings.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iDAAiD,GACvD,gCAA4B;AAC7B,OAAO,EACL,YAAY,EACZ,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iDAAiD,GACvD,gCAA4B;AAC7B,OAAO,EACL,YAAY,EACZ,KAAK,qBAAqB,EAC1B,KAAK,uCAAuC,GAC7C,4BAAwB;AACzB,OAAO,EACL,QAAQ,EACR,KAAK,YAAY,EACjB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB,uBAAmB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { BusinessAccounts, type BusinessAccountRetrieveResponse, type BusinessAccountListResponse, type BusinessAccountListParams, type BusinessAccountListResponsesDefaultFlatPagination, } from "./business-accounts.js";
|
|
2
|
-
export { PhoneNumbers, type
|
|
2
|
+
export { PhoneNumbers, type PhoneNumberListParams, type PhoneNumberInitializeVerificationParams, } from "./phone-numbers.js";
|
|
3
3
|
export { Settings, type WabaSettings, type SettingRetrieveResponse, type SettingUpdateResponse, type SettingUpdateParams, } from "./settings.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iDAAiD,GACvD,+BAA4B;AAC7B,OAAO,EACL,YAAY,EACZ,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iDAAiD,GACvD,+BAA4B;AAC7B,OAAO,EACL,YAAY,EACZ,KAAK,qBAAqB,EAC1B,KAAK,uCAAuC,GAC7C,2BAAwB;AACzB,OAAO,EACL,QAAQ,EACR,KAAK,YAAY,EACjB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB,sBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAM6B;AAL3B,qHAAA,gBAAgB,OAAA;AAMlB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAM6B;AAL3B,qHAAA,gBAAgB,OAAA;AAMlB,oDAIyB;AAHvB,6GAAA,YAAY,OAAA;AAId,0CAMoB;AALlB,oGAAA,QAAQ,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,gBAAgB,GAKjB,gCAA4B;AAC7B,OAAO,EACL,YAAY,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,gBAAgB,GAKjB,gCAA4B;AAC7B,OAAO,EACL,YAAY,GAGb,4BAAwB;AACzB,OAAO,EACL,QAAQ,GAKT,uBAAmB"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as WhatsappPhoneNumbersAPI from "../phone-numbers/phone-numbers.mjs";
|
|
3
|
+
import { WhatsappPhoneResponsesDefaultFlatPagination } from "../phone-numbers/phone-numbers.mjs";
|
|
2
4
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
3
|
-
import {
|
|
5
|
+
import { type DefaultFlatPaginationParams, PagePromise } from "../../../core/pagination.mjs";
|
|
4
6
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
7
|
export declare class PhoneNumbers extends APIResource {
|
|
6
8
|
/**
|
|
@@ -9,14 +11,14 @@ export declare class PhoneNumbers extends APIResource {
|
|
|
9
11
|
* @example
|
|
10
12
|
* ```ts
|
|
11
13
|
* // Automatically fetches more pages as needed.
|
|
12
|
-
* for await (const
|
|
14
|
+
* for await (const whatsappPhoneResponse of client.whatsapp.businessAccounts.phoneNumbers.list(
|
|
13
15
|
* 'id',
|
|
14
16
|
* )) {
|
|
15
17
|
* // ...
|
|
16
18
|
* }
|
|
17
19
|
* ```
|
|
18
20
|
*/
|
|
19
|
-
list(id: string, query?: PhoneNumberListParams | null | undefined, options?: RequestOptions): PagePromise<
|
|
21
|
+
list(id: string, query?: PhoneNumberListParams | null | undefined, options?: RequestOptions): PagePromise<WhatsappPhoneResponsesDefaultFlatPagination, WhatsappPhoneNumbersAPI.WhatsappPhoneResponse>;
|
|
20
22
|
/**
|
|
21
23
|
* Starts verification of a phone number for the specified WhatsApp Business
|
|
22
24
|
* Account using the requested verification method.
|
|
@@ -36,68 +38,6 @@ export declare class PhoneNumbers extends APIResource {
|
|
|
36
38
|
*/
|
|
37
39
|
initializeVerification(id: string, body: PhoneNumberInitializeVerificationParams, options?: RequestOptions): APIPromise<void>;
|
|
38
40
|
}
|
|
39
|
-
export type PhoneNumberListResponsesDefaultFlatPagination = DefaultFlatPagination<PhoneNumberListResponse>;
|
|
40
|
-
export interface PhoneNumberListResponse {
|
|
41
|
-
calling_enabled?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Current lifecycle state for a coexistence number. This is null for a standard
|
|
44
|
-
* Cloud API number.
|
|
45
|
-
*/
|
|
46
|
-
coexistence_state?: 'pending_onboarding' | 'sync_pending' | 'syncing' | 'sync_complete' | 'active' | 'history_declined' | 'sync_deadline_expired' | 'offboarded' | 'disconnected' | null;
|
|
47
|
-
created_at?: string;
|
|
48
|
-
display_name?: string;
|
|
49
|
-
enabled?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Indicates whether the number is connected to both the WhatsApp Business app and
|
|
52
|
-
* Cloud API through WhatsApp Coexistence.
|
|
53
|
-
*/
|
|
54
|
-
is_on_biz_app?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Phone number in E164 format
|
|
57
|
-
*/
|
|
58
|
-
phone_number?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Whatsapp phone number ID
|
|
61
|
-
*/
|
|
62
|
-
phone_number_id?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Whatsapp quality rating
|
|
65
|
-
*/
|
|
66
|
-
quality_rating?: string;
|
|
67
|
-
record_type?: string;
|
|
68
|
-
status?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Deadline for initiating the current coexistence synchronization cycle. This is
|
|
71
|
-
* null when no deadline applies.
|
|
72
|
-
*/
|
|
73
|
-
sync_deadline?: string | null;
|
|
74
|
-
/**
|
|
75
|
-
* Synchronization progress. This object is returned only while a coexistence
|
|
76
|
-
* number is synchronizing.
|
|
77
|
-
*/
|
|
78
|
-
sync_progress?: PhoneNumberListResponse.SyncProgress | null;
|
|
79
|
-
/**
|
|
80
|
-
* User ID
|
|
81
|
-
*/
|
|
82
|
-
user_id?: string;
|
|
83
|
-
/**
|
|
84
|
-
* WABA ID of Whatsapp business account
|
|
85
|
-
*/
|
|
86
|
-
waba_id?: string;
|
|
87
|
-
}
|
|
88
|
-
export declare namespace PhoneNumberListResponse {
|
|
89
|
-
/**
|
|
90
|
-
* Synchronization progress. This object is returned only while a coexistence
|
|
91
|
-
* number is synchronizing.
|
|
92
|
-
*/
|
|
93
|
-
interface SyncProgress {
|
|
94
|
-
contacts_status?: string;
|
|
95
|
-
history_chunk_order?: number | null;
|
|
96
|
-
history_phase?: number | null;
|
|
97
|
-
history_progress?: number | null;
|
|
98
|
-
history_status?: string;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
41
|
export interface PhoneNumberListParams extends DefaultFlatPaginationParams {
|
|
102
42
|
}
|
|
103
43
|
export interface PhoneNumberInitializeVerificationParams {
|
|
@@ -107,6 +47,7 @@ export interface PhoneNumberInitializeVerificationParams {
|
|
|
107
47
|
verification_method?: 'sms' | 'voice';
|
|
108
48
|
}
|
|
109
49
|
export declare namespace PhoneNumbers {
|
|
110
|
-
export { type
|
|
50
|
+
export { type PhoneNumberListParams as PhoneNumberListParams, type PhoneNumberInitializeVerificationParams as PhoneNumberInitializeVerificationParams, };
|
|
111
51
|
}
|
|
52
|
+
export { type WhatsappPhoneResponsesDefaultFlatPagination };
|
|
112
53
|
//# sourceMappingURL=phone-numbers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-numbers.d.mts","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/phone-numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,
|
|
1
|
+
{"version":3,"file":"phone-numbers.d.mts","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/phone-numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,uBAAuB,2CAAuC;AAC1E,OAAO,EAAE,2CAA2C,EAAE,2CAAuC;AAC7F,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAEL,KAAK,2BAA2B,EAChC,WAAW,EACZ,qCAAiC;AAElC,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,2CAA2C,EAAE,uBAAuB,CAAC,qBAAqB,CAAC;IAQ1G;;;;;;;;;;;;;;;;OAgBG;IACH,sBAAsB,CACpB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,uCAAuC,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAOpB;AAED,MAAM,WAAW,qBAAsB,SAAQ,2BAA2B;CAAG;AAE7E,MAAM,WAAW,uCAAuC;IACtD,YAAY,EAAE,MAAM,CAAC;IAErB,YAAY,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,mBAAmB,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uCAAuC,IAAI,uCAAuC,GACxF,CAAC;CACH;AAED,OAAO,EAAE,KAAK,2CAA2C,EAAE,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as WhatsappPhoneNumbersAPI from "../phone-numbers/phone-numbers.js";
|
|
3
|
+
import { WhatsappPhoneResponsesDefaultFlatPagination } from "../phone-numbers/phone-numbers.js";
|
|
2
4
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
3
|
-
import {
|
|
5
|
+
import { type DefaultFlatPaginationParams, PagePromise } from "../../../core/pagination.js";
|
|
4
6
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
7
|
export declare class PhoneNumbers extends APIResource {
|
|
6
8
|
/**
|
|
@@ -9,14 +11,14 @@ export declare class PhoneNumbers extends APIResource {
|
|
|
9
11
|
* @example
|
|
10
12
|
* ```ts
|
|
11
13
|
* // Automatically fetches more pages as needed.
|
|
12
|
-
* for await (const
|
|
14
|
+
* for await (const whatsappPhoneResponse of client.whatsapp.businessAccounts.phoneNumbers.list(
|
|
13
15
|
* 'id',
|
|
14
16
|
* )) {
|
|
15
17
|
* // ...
|
|
16
18
|
* }
|
|
17
19
|
* ```
|
|
18
20
|
*/
|
|
19
|
-
list(id: string, query?: PhoneNumberListParams | null | undefined, options?: RequestOptions): PagePromise<
|
|
21
|
+
list(id: string, query?: PhoneNumberListParams | null | undefined, options?: RequestOptions): PagePromise<WhatsappPhoneResponsesDefaultFlatPagination, WhatsappPhoneNumbersAPI.WhatsappPhoneResponse>;
|
|
20
22
|
/**
|
|
21
23
|
* Starts verification of a phone number for the specified WhatsApp Business
|
|
22
24
|
* Account using the requested verification method.
|
|
@@ -36,68 +38,6 @@ export declare class PhoneNumbers extends APIResource {
|
|
|
36
38
|
*/
|
|
37
39
|
initializeVerification(id: string, body: PhoneNumberInitializeVerificationParams, options?: RequestOptions): APIPromise<void>;
|
|
38
40
|
}
|
|
39
|
-
export type PhoneNumberListResponsesDefaultFlatPagination = DefaultFlatPagination<PhoneNumberListResponse>;
|
|
40
|
-
export interface PhoneNumberListResponse {
|
|
41
|
-
calling_enabled?: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* Current lifecycle state for a coexistence number. This is null for a standard
|
|
44
|
-
* Cloud API number.
|
|
45
|
-
*/
|
|
46
|
-
coexistence_state?: 'pending_onboarding' | 'sync_pending' | 'syncing' | 'sync_complete' | 'active' | 'history_declined' | 'sync_deadline_expired' | 'offboarded' | 'disconnected' | null;
|
|
47
|
-
created_at?: string;
|
|
48
|
-
display_name?: string;
|
|
49
|
-
enabled?: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Indicates whether the number is connected to both the WhatsApp Business app and
|
|
52
|
-
* Cloud API through WhatsApp Coexistence.
|
|
53
|
-
*/
|
|
54
|
-
is_on_biz_app?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* Phone number in E164 format
|
|
57
|
-
*/
|
|
58
|
-
phone_number?: string;
|
|
59
|
-
/**
|
|
60
|
-
* Whatsapp phone number ID
|
|
61
|
-
*/
|
|
62
|
-
phone_number_id?: string;
|
|
63
|
-
/**
|
|
64
|
-
* Whatsapp quality rating
|
|
65
|
-
*/
|
|
66
|
-
quality_rating?: string;
|
|
67
|
-
record_type?: string;
|
|
68
|
-
status?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Deadline for initiating the current coexistence synchronization cycle. This is
|
|
71
|
-
* null when no deadline applies.
|
|
72
|
-
*/
|
|
73
|
-
sync_deadline?: string | null;
|
|
74
|
-
/**
|
|
75
|
-
* Synchronization progress. This object is returned only while a coexistence
|
|
76
|
-
* number is synchronizing.
|
|
77
|
-
*/
|
|
78
|
-
sync_progress?: PhoneNumberListResponse.SyncProgress | null;
|
|
79
|
-
/**
|
|
80
|
-
* User ID
|
|
81
|
-
*/
|
|
82
|
-
user_id?: string;
|
|
83
|
-
/**
|
|
84
|
-
* WABA ID of Whatsapp business account
|
|
85
|
-
*/
|
|
86
|
-
waba_id?: string;
|
|
87
|
-
}
|
|
88
|
-
export declare namespace PhoneNumberListResponse {
|
|
89
|
-
/**
|
|
90
|
-
* Synchronization progress. This object is returned only while a coexistence
|
|
91
|
-
* number is synchronizing.
|
|
92
|
-
*/
|
|
93
|
-
interface SyncProgress {
|
|
94
|
-
contacts_status?: string;
|
|
95
|
-
history_chunk_order?: number | null;
|
|
96
|
-
history_phase?: number | null;
|
|
97
|
-
history_progress?: number | null;
|
|
98
|
-
history_status?: string;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
41
|
export interface PhoneNumberListParams extends DefaultFlatPaginationParams {
|
|
102
42
|
}
|
|
103
43
|
export interface PhoneNumberInitializeVerificationParams {
|
|
@@ -107,6 +47,7 @@ export interface PhoneNumberInitializeVerificationParams {
|
|
|
107
47
|
verification_method?: 'sms' | 'voice';
|
|
108
48
|
}
|
|
109
49
|
export declare namespace PhoneNumbers {
|
|
110
|
-
export { type
|
|
50
|
+
export { type PhoneNumberListParams as PhoneNumberListParams, type PhoneNumberInitializeVerificationParams as PhoneNumberInitializeVerificationParams, };
|
|
111
51
|
}
|
|
52
|
+
export { type WhatsappPhoneResponsesDefaultFlatPagination };
|
|
112
53
|
//# sourceMappingURL=phone-numbers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-numbers.d.ts","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/phone-numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,
|
|
1
|
+
{"version":3,"file":"phone-numbers.d.ts","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/phone-numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,uBAAuB,0CAAuC;AAC1E,OAAO,EAAE,2CAA2C,EAAE,0CAAuC;AAC7F,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAEL,KAAK,2BAA2B,EAChC,WAAW,EACZ,oCAAiC;AAElC,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,2CAA2C,EAAE,uBAAuB,CAAC,qBAAqB,CAAC;IAQ1G;;;;;;;;;;;;;;;;OAgBG;IACH,sBAAsB,CACpB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,uCAAuC,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,IAAI,CAAC;CAOpB;AAED,MAAM,WAAW,qBAAsB,SAAQ,2BAA2B;CAAG;AAE7E,MAAM,WAAW,uCAAuC;IACtD,YAAY,EAAE,MAAM,CAAC;IAErB,YAAY,EAAE,MAAM,CAAC;IAErB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,mBAAmB,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uCAAuC,IAAI,uCAAuC,GACxF,CAAC;CACH;AAED,OAAO,EAAE,KAAK,2CAA2C,EAAE,CAAC"}
|
|
@@ -13,7 +13,7 @@ class PhoneNumbers extends resource_1.APIResource {
|
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
|
15
15
|
* // Automatically fetches more pages as needed.
|
|
16
|
-
* for await (const
|
|
16
|
+
* for await (const whatsappPhoneResponse of client.whatsapp.businessAccounts.phoneNumbers.list(
|
|
17
17
|
* 'id',
|
|
18
18
|
* )) {
|
|
19
19
|
* // ...
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-numbers.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/phone-numbers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;
|
|
1
|
+
{"version":3,"file":"phone-numbers.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/phone-numbers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,4DAIkC;AAClC,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,EAAU,EACV,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,kCAAkC,EAAE,gBAAgB,EACxD,CAAA,kCAAoE,CAAA,EACpE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,sBAAsB,CACpB,EAAU,EACV,IAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kCAAkC,EAAE,gBAAgB,EAAE;YACjF,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAtDD,oCAsDC"}
|
|
@@ -10,7 +10,7 @@ export class PhoneNumbers extends APIResource {
|
|
|
10
10
|
* @example
|
|
11
11
|
* ```ts
|
|
12
12
|
* // Automatically fetches more pages as needed.
|
|
13
|
-
* for await (const
|
|
13
|
+
* for await (const whatsappPhoneResponse of client.whatsapp.businessAccounts.phoneNumbers.list(
|
|
14
14
|
* 'id',
|
|
15
15
|
* )) {
|
|
16
16
|
* // ...
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-numbers.mjs","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/phone-numbers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;
|
|
1
|
+
{"version":3,"file":"phone-numbers.mjs","sourceRoot":"","sources":["../../../src/resources/whatsapp/business-accounts/phone-numbers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAIrD,OAAO,EACL,qBAAqB,GAGtB,qCAAiC;AAClC,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,EAAU,EACV,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,kCAAkC,EAAE,gBAAgB,EACxD,CAAA,qBAAoE,CAAA,EACpE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,sBAAsB,CACpB,EAAU,EACV,IAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,kCAAkC,EAAE,gBAAgB,EAAE;YACjF,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -10,12 +10,12 @@ export declare class HostedSignups extends APIResource {
|
|
|
10
10
|
* @example
|
|
11
11
|
* ```ts
|
|
12
12
|
* // Automatically fetches more pages as needed.
|
|
13
|
-
* for await (const
|
|
13
|
+
* for await (const whatsappHostedSignup of client.whatsapp.hostedSignups.list()) {
|
|
14
14
|
* // ...
|
|
15
15
|
* }
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
list(query?: HostedSignupListParams | null | undefined, options?: RequestOptions): PagePromise<
|
|
18
|
+
list(query?: HostedSignupListParams | null | undefined, options?: RequestOptions): PagePromise<WhatsappHostedSignupsDefaultFlatPagination, WhatsappHostedSignup>;
|
|
19
19
|
/**
|
|
20
20
|
* Create a time-limited onboarding URL on the Telnyx-hosted Embedded Signup page
|
|
21
21
|
* for a Tech Provider's end customer. Set `signup_type` to `coexistence` to launch
|
|
@@ -43,76 +43,8 @@ export declare class HostedSignups extends APIResource {
|
|
|
43
43
|
*/
|
|
44
44
|
retrieve(id: string, options?: RequestOptions): APIPromise<HostedSignupRetrieveResponse>;
|
|
45
45
|
}
|
|
46
|
-
export type
|
|
47
|
-
export interface
|
|
48
|
-
data?: HostedSignupCreateResponse.Data;
|
|
49
|
-
}
|
|
50
|
-
export declare namespace HostedSignupCreateResponse {
|
|
51
|
-
interface Data {
|
|
52
|
-
/**
|
|
53
|
-
* Hosted signup ID
|
|
54
|
-
*/
|
|
55
|
-
id?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Meta App ID the hosted signup onboards customers into
|
|
58
|
-
*/
|
|
59
|
-
app_id?: string;
|
|
60
|
-
created_at?: string;
|
|
61
|
-
/**
|
|
62
|
-
* When the onboarding URL stops working
|
|
63
|
-
*/
|
|
64
|
-
expires_at?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Signed token embedded in `url`
|
|
67
|
-
*/
|
|
68
|
-
jwt?: string;
|
|
69
|
-
record_type?: 'whatsapp_jwt';
|
|
70
|
-
/**
|
|
71
|
-
* Meta Partner Solution ID linked to the app. Returned only when creating a hosted
|
|
72
|
-
* signup.
|
|
73
|
-
*/
|
|
74
|
-
solution_id?: string;
|
|
75
|
-
/**
|
|
76
|
-
* Hosted onboarding URL to share with the end customer
|
|
77
|
-
*/
|
|
78
|
-
url?: string;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
export interface HostedSignupRetrieveResponse {
|
|
82
|
-
data?: HostedSignupRetrieveResponse.Data;
|
|
83
|
-
}
|
|
84
|
-
export declare namespace HostedSignupRetrieveResponse {
|
|
85
|
-
interface Data {
|
|
86
|
-
/**
|
|
87
|
-
* Hosted signup ID
|
|
88
|
-
*/
|
|
89
|
-
id?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Meta App ID the hosted signup onboards customers into
|
|
92
|
-
*/
|
|
93
|
-
app_id?: string;
|
|
94
|
-
created_at?: string;
|
|
95
|
-
/**
|
|
96
|
-
* When the onboarding URL stops working
|
|
97
|
-
*/
|
|
98
|
-
expires_at?: string;
|
|
99
|
-
/**
|
|
100
|
-
* Signed token embedded in `url`
|
|
101
|
-
*/
|
|
102
|
-
jwt?: string;
|
|
103
|
-
record_type?: 'whatsapp_jwt';
|
|
104
|
-
/**
|
|
105
|
-
* Meta Partner Solution ID linked to the app. Returned only when creating a hosted
|
|
106
|
-
* signup.
|
|
107
|
-
*/
|
|
108
|
-
solution_id?: string;
|
|
109
|
-
/**
|
|
110
|
-
* Hosted onboarding URL to share with the end customer
|
|
111
|
-
*/
|
|
112
|
-
url?: string;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
export interface HostedSignupListResponse {
|
|
46
|
+
export type WhatsappHostedSignupsDefaultFlatPagination = DefaultFlatPagination<WhatsappHostedSignup>;
|
|
47
|
+
export interface WhatsappHostedSignup {
|
|
116
48
|
/**
|
|
117
49
|
* Hosted signup ID
|
|
118
50
|
*/
|
|
@@ -141,6 +73,12 @@ export interface HostedSignupListResponse {
|
|
|
141
73
|
*/
|
|
142
74
|
url?: string;
|
|
143
75
|
}
|
|
76
|
+
export interface HostedSignupCreateResponse {
|
|
77
|
+
data?: WhatsappHostedSignup;
|
|
78
|
+
}
|
|
79
|
+
export interface HostedSignupRetrieveResponse {
|
|
80
|
+
data?: WhatsappHostedSignup;
|
|
81
|
+
}
|
|
144
82
|
export interface HostedSignupListParams extends DefaultFlatPaginationParams {
|
|
145
83
|
}
|
|
146
84
|
export interface HostedSignupCreateParams {
|
|
@@ -161,6 +99,6 @@ export interface HostedSignupCreateParams {
|
|
|
161
99
|
signup_type?: 'standard' | 'coexistence';
|
|
162
100
|
}
|
|
163
101
|
export declare namespace HostedSignups {
|
|
164
|
-
export { type
|
|
102
|
+
export { type WhatsappHostedSignup as WhatsappHostedSignup, type HostedSignupCreateResponse as HostedSignupCreateResponse, type HostedSignupRetrieveResponse as HostedSignupRetrieveResponse, type WhatsappHostedSignupsDefaultFlatPagination as WhatsappHostedSignupsDefaultFlatPagination, type HostedSignupListParams as HostedSignupListParams, type HostedSignupCreateParams as HostedSignupCreateParams, };
|
|
165
103
|
}
|
|
166
104
|
//# sourceMappingURL=hosted-signups.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-signups.d.mts","sourceRoot":"","sources":["../../src/resources/whatsapp/hosted-signups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,kCAA8B;AAC7G,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"hosted-signups.d.mts","sourceRoot":"","sources":["../../src/resources/whatsapp/hosted-signups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE,kCAA8B;AAC7G,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0CAA0C,EAAE,oBAAoB,CAAC;IAOhF;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIxG;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;CAGzF;AAED,MAAM,MAAM,0CAA0C,GAAG,qBAAqB,CAAC,oBAAoB,CAAC,CAAC;AAErG,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,WAAW,CAAC,EAAE,cAAc,CAAC;IAE7B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,CAAC,EAAE,oBAAoB,CAAC;CAC7B;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,CAAC,EAAE,oBAAoB,CAAC;CAC7B;AAED,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;CAAG;AAE9E,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,GAAG,aAAa,CAAC;CAC1C;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -10,12 +10,12 @@ export declare class HostedSignups extends APIResource {
|
|
|
10
10
|
* @example
|
|
11
11
|
* ```ts
|
|
12
12
|
* // Automatically fetches more pages as needed.
|
|
13
|
-
* for await (const
|
|
13
|
+
* for await (const whatsappHostedSignup of client.whatsapp.hostedSignups.list()) {
|
|
14
14
|
* // ...
|
|
15
15
|
* }
|
|
16
16
|
* ```
|
|
17
17
|
*/
|
|
18
|
-
list(query?: HostedSignupListParams | null | undefined, options?: RequestOptions): PagePromise<
|
|
18
|
+
list(query?: HostedSignupListParams | null | undefined, options?: RequestOptions): PagePromise<WhatsappHostedSignupsDefaultFlatPagination, WhatsappHostedSignup>;
|
|
19
19
|
/**
|
|
20
20
|
* Create a time-limited onboarding URL on the Telnyx-hosted Embedded Signup page
|
|
21
21
|
* for a Tech Provider's end customer. Set `signup_type` to `coexistence` to launch
|
|
@@ -43,76 +43,8 @@ export declare class HostedSignups extends APIResource {
|
|
|
43
43
|
*/
|
|
44
44
|
retrieve(id: string, options?: RequestOptions): APIPromise<HostedSignupRetrieveResponse>;
|
|
45
45
|
}
|
|
46
|
-
export type
|
|
47
|
-
export interface
|
|
48
|
-
data?: HostedSignupCreateResponse.Data;
|
|
49
|
-
}
|
|
50
|
-
export declare namespace HostedSignupCreateResponse {
|
|
51
|
-
interface Data {
|
|
52
|
-
/**
|
|
53
|
-
* Hosted signup ID
|
|
54
|
-
*/
|
|
55
|
-
id?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Meta App ID the hosted signup onboards customers into
|
|
58
|
-
*/
|
|
59
|
-
app_id?: string;
|
|
60
|
-
created_at?: string;
|
|
61
|
-
/**
|
|
62
|
-
* When the onboarding URL stops working
|
|
63
|
-
*/
|
|
64
|
-
expires_at?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Signed token embedded in `url`
|
|
67
|
-
*/
|
|
68
|
-
jwt?: string;
|
|
69
|
-
record_type?: 'whatsapp_jwt';
|
|
70
|
-
/**
|
|
71
|
-
* Meta Partner Solution ID linked to the app. Returned only when creating a hosted
|
|
72
|
-
* signup.
|
|
73
|
-
*/
|
|
74
|
-
solution_id?: string;
|
|
75
|
-
/**
|
|
76
|
-
* Hosted onboarding URL to share with the end customer
|
|
77
|
-
*/
|
|
78
|
-
url?: string;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
export interface HostedSignupRetrieveResponse {
|
|
82
|
-
data?: HostedSignupRetrieveResponse.Data;
|
|
83
|
-
}
|
|
84
|
-
export declare namespace HostedSignupRetrieveResponse {
|
|
85
|
-
interface Data {
|
|
86
|
-
/**
|
|
87
|
-
* Hosted signup ID
|
|
88
|
-
*/
|
|
89
|
-
id?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Meta App ID the hosted signup onboards customers into
|
|
92
|
-
*/
|
|
93
|
-
app_id?: string;
|
|
94
|
-
created_at?: string;
|
|
95
|
-
/**
|
|
96
|
-
* When the onboarding URL stops working
|
|
97
|
-
*/
|
|
98
|
-
expires_at?: string;
|
|
99
|
-
/**
|
|
100
|
-
* Signed token embedded in `url`
|
|
101
|
-
*/
|
|
102
|
-
jwt?: string;
|
|
103
|
-
record_type?: 'whatsapp_jwt';
|
|
104
|
-
/**
|
|
105
|
-
* Meta Partner Solution ID linked to the app. Returned only when creating a hosted
|
|
106
|
-
* signup.
|
|
107
|
-
*/
|
|
108
|
-
solution_id?: string;
|
|
109
|
-
/**
|
|
110
|
-
* Hosted onboarding URL to share with the end customer
|
|
111
|
-
*/
|
|
112
|
-
url?: string;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
export interface HostedSignupListResponse {
|
|
46
|
+
export type WhatsappHostedSignupsDefaultFlatPagination = DefaultFlatPagination<WhatsappHostedSignup>;
|
|
47
|
+
export interface WhatsappHostedSignup {
|
|
116
48
|
/**
|
|
117
49
|
* Hosted signup ID
|
|
118
50
|
*/
|
|
@@ -141,6 +73,12 @@ export interface HostedSignupListResponse {
|
|
|
141
73
|
*/
|
|
142
74
|
url?: string;
|
|
143
75
|
}
|
|
76
|
+
export interface HostedSignupCreateResponse {
|
|
77
|
+
data?: WhatsappHostedSignup;
|
|
78
|
+
}
|
|
79
|
+
export interface HostedSignupRetrieveResponse {
|
|
80
|
+
data?: WhatsappHostedSignup;
|
|
81
|
+
}
|
|
144
82
|
export interface HostedSignupListParams extends DefaultFlatPaginationParams {
|
|
145
83
|
}
|
|
146
84
|
export interface HostedSignupCreateParams {
|
|
@@ -161,6 +99,6 @@ export interface HostedSignupCreateParams {
|
|
|
161
99
|
signup_type?: 'standard' | 'coexistence';
|
|
162
100
|
}
|
|
163
101
|
export declare namespace HostedSignups {
|
|
164
|
-
export { type
|
|
102
|
+
export { type WhatsappHostedSignup as WhatsappHostedSignup, type HostedSignupCreateResponse as HostedSignupCreateResponse, type HostedSignupRetrieveResponse as HostedSignupRetrieveResponse, type WhatsappHostedSignupsDefaultFlatPagination as WhatsappHostedSignupsDefaultFlatPagination, type HostedSignupListParams as HostedSignupListParams, type HostedSignupCreateParams as HostedSignupCreateParams, };
|
|
165
103
|
}
|
|
166
104
|
//# sourceMappingURL=hosted-signups.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-signups.d.ts","sourceRoot":"","sources":["../../src/resources/whatsapp/hosted-signups.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,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"hosted-signups.d.ts","sourceRoot":"","sources":["../../src/resources/whatsapp/hosted-signups.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,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0CAA0C,EAAE,oBAAoB,CAAC;IAOhF;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIxG;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;CAGzF;AAED,MAAM,MAAM,0CAA0C,GAAG,qBAAqB,CAAC,oBAAoB,CAAC,CAAC;AAErG,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,WAAW,CAAC,EAAE,cAAc,CAAC;IAE7B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,CAAC,EAAE,oBAAoB,CAAC;CAC7B;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,CAAC,EAAE,oBAAoB,CAAC;CAC7B;AAED,MAAM,WAAW,sBAAuB,SAAQ,2BAA2B;CAAG;AAE9E,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,WAAW,CAAC,EAAE,UAAU,GAAG,aAAa,CAAC;CAC1C;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -13,13 +13,16 @@ class HostedSignups extends resource_1.APIResource {
|
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
|
15
15
|
* // Automatically fetches more pages as needed.
|
|
16
|
-
* for await (const
|
|
16
|
+
* for await (const whatsappHostedSignup of client.whatsapp.hostedSignups.list()) {
|
|
17
17
|
* // ...
|
|
18
18
|
* }
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
21
|
list(query = {}, options) {
|
|
22
|
-
return this._client.getAPIList('/whatsapp/hosted_signups', (pagination_1.DefaultFlatPagination), {
|
|
22
|
+
return this._client.getAPIList('/whatsapp/hosted_signups', (pagination_1.DefaultFlatPagination), {
|
|
23
|
+
query,
|
|
24
|
+
...options,
|
|
25
|
+
});
|
|
23
26
|
}
|
|
24
27
|
/**
|
|
25
28
|
* Create a time-limited onboarding URL on the Telnyx-hosted Embedded Signup page
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-signups.js","sourceRoot":"","sources":["../../src/resources/whatsapp/hosted-signups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA6G;AAE7G,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"hosted-signups.js","sourceRoot":"","sources":["../../src/resources/whatsapp/hosted-signups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA6G;AAE7G,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,0BAA0B,EAAE,CAAA,kCAA2C,CAAA,EAAE;YACtG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AAtDD,sCAsDC"}
|