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
|
@@ -10,13 +10,16 @@ export 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
18
|
list(query = {}, options) {
|
|
19
|
-
return this._client.getAPIList('/whatsapp/hosted_signups', (DefaultFlatPagination), {
|
|
19
|
+
return this._client.getAPIList('/whatsapp/hosted_signups', (DefaultFlatPagination), {
|
|
20
|
+
query,
|
|
21
|
+
...options,
|
|
22
|
+
});
|
|
20
23
|
}
|
|
21
24
|
/**
|
|
22
25
|
* Create a time-limited onboarding URL on the Telnyx-hosted Embedded Signup page
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosted-signups.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/hosted-signups.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,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"hosted-signups.mjs","sourceRoot":"","sources":["../../src/resources/whatsapp/hosted-signups.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,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,0BAA0B,EAAE,CAAA,qBAA2C,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,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { BusinessAccounts, type BusinessAccountRetrieveResponse, type BusinessAccountListResponse, type BusinessAccountListParams, type BusinessAccountListResponsesDefaultFlatPagination, } from "./business-accounts/index.mjs";
|
|
2
|
-
export { HostedSignups, type
|
|
3
|
-
export { PhoneNumbers, type
|
|
2
|
+
export { HostedSignups, type WhatsappHostedSignup, type HostedSignupCreateResponse, type HostedSignupRetrieveResponse, type HostedSignupListParams, type HostedSignupCreateParams, type WhatsappHostedSignupsDefaultFlatPagination, } from "./hosted-signups.mjs";
|
|
3
|
+
export { PhoneNumbers, type WhatsappPhoneResponse, type PhoneNumberGetResponse, type PhoneNumberRetrieveConversationWindowResponse, type PhoneNumberRetrievePhoneNumberResponse, type PhoneNumberListParams, type PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams, type PhoneNumberRetrieveConversationWindowParams, type PhoneNumberGetParams, type WhatsappPhoneResponsesDefaultFlatPagination, } from "./phone-numbers/index.mjs";
|
|
4
4
|
export { Signup, type SignupListResponse, type SignupRetrieveStatusResponse, type SignupListParams, type SignupListResponsesDefaultFlatPagination, } from "./signup.mjs";
|
|
5
5
|
export { Templates, type WhatsappTemplateBodyComponent, type WhatsappTemplateButtonsComponent, type WhatsappTemplateCarouselComponent, type WhatsappTemplateFooterComponent, type WhatsappTemplateHeaderComponent, type TemplateCreateResponse, type TemplateListParams, type TemplateCreateParams, } from "./templates.mjs";
|
|
6
6
|
export { UserData, type WhatsappUserData, type UserDataRetrieveResponse, type UserDataUpdateResponse, type UserDataUpdateParams, } from "./user-data.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iDAAiD,GACvD,sCAAkC;AACnC,OAAO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iDAAiD,GACvD,sCAAkC;AACnC,OAAO,EACL,aAAa,EACb,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,0CAA0C,GAChD,6BAAyB;AAC1B,OAAO,EACL,YAAY,EACZ,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,6CAA6C,EAClD,KAAK,sCAAsC,EAC3C,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,EAC5B,KAAK,2CAA2C,EAChD,KAAK,oBAAoB,EACzB,KAAK,2CAA2C,GACjD,kCAA8B;AAC/B,OAAO,EACL,MAAM,EACN,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,EACrB,KAAK,wCAAwC,GAC9C,qBAAiB;AAClB,OAAO,EACL,SAAS,EACT,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,wBAAoB;AACrB,OAAO,EACL,QAAQ,EACR,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,wBAAoB;AACrB,OAAO,EAAE,QAAQ,EAAE,uBAAmB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { BusinessAccounts, type BusinessAccountRetrieveResponse, type BusinessAccountListResponse, type BusinessAccountListParams, type BusinessAccountListResponsesDefaultFlatPagination, } from "./business-accounts/index.js";
|
|
2
|
-
export { HostedSignups, type
|
|
3
|
-
export { PhoneNumbers, type
|
|
2
|
+
export { HostedSignups, type WhatsappHostedSignup, type HostedSignupCreateResponse, type HostedSignupRetrieveResponse, type HostedSignupListParams, type HostedSignupCreateParams, type WhatsappHostedSignupsDefaultFlatPagination, } from "./hosted-signups.js";
|
|
3
|
+
export { PhoneNumbers, type WhatsappPhoneResponse, type PhoneNumberGetResponse, type PhoneNumberRetrieveConversationWindowResponse, type PhoneNumberRetrievePhoneNumberResponse, type PhoneNumberListParams, type PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams, type PhoneNumberRetrieveConversationWindowParams, type PhoneNumberGetParams, type WhatsappPhoneResponsesDefaultFlatPagination, } from "./phone-numbers/index.js";
|
|
4
4
|
export { Signup, type SignupListResponse, type SignupRetrieveStatusResponse, type SignupListParams, type SignupListResponsesDefaultFlatPagination, } from "./signup.js";
|
|
5
5
|
export { Templates, type WhatsappTemplateBodyComponent, type WhatsappTemplateButtonsComponent, type WhatsappTemplateCarouselComponent, type WhatsappTemplateFooterComponent, type WhatsappTemplateHeaderComponent, type TemplateCreateResponse, type TemplateListParams, type TemplateCreateParams, } from "./templates.js";
|
|
6
6
|
export { UserData, type WhatsappUserData, type UserDataRetrieveResponse, type UserDataUpdateResponse, type UserDataUpdateParams, } from "./user-data.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iDAAiD,GACvD,qCAAkC;AACnC,OAAO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/whatsapp/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,gBAAgB,EAChB,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,iDAAiD,GACvD,qCAAkC;AACnC,OAAO,EACL,aAAa,EACb,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,0CAA0C,GAChD,4BAAyB;AAC1B,OAAO,EACL,YAAY,EACZ,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,6CAA6C,EAClD,KAAK,sCAAsC,EAC3C,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,EAC5B,KAAK,2CAA2C,EAChD,KAAK,oBAAoB,EACzB,KAAK,2CAA2C,GACjD,iCAA8B;AAC/B,OAAO,EACL,MAAM,EACN,KAAK,kBAAkB,EACvB,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,EACrB,KAAK,wCAAwC,GAC9C,oBAAiB;AAClB,OAAO,EACL,SAAS,EACT,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,uBAAoB;AACrB,OAAO,EACL,QAAQ,EACR,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,uBAAoB;AACrB,OAAO,EAAE,QAAQ,EAAE,sBAAmB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { CallingRouting, type WhatsappCallingRoutingData, type CallingRoutingListResponse, type CallingRoutingPatchAllResponse, type CallingRoutingPatchAllParams, } from "./calling-routing.mjs";
|
|
2
2
|
export { CallingSettings, type WhatsappCallingSettingsData, type CallingSettingRetrieveResponse, type CallingSettingUpdateResponse, type CallingSettingUpdateParams, } from "./calling-settings.mjs";
|
|
3
3
|
export { ConversationalComponents, type WhatsappConversationalComponent, type ConversationalComponentListResponse, type ConversationalComponentPatchAllResponse, type ConversationalComponentPatchAllParams, } from "./conversational-components.mjs";
|
|
4
|
-
export { PhoneNumbers, type
|
|
4
|
+
export { PhoneNumbers, type WhatsappPhoneResponse, type PhoneNumberGetResponse, type PhoneNumberRetrieveConversationWindowResponse, type PhoneNumberRetrievePhoneNumberResponse, type PhoneNumberListParams, type PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams, type PhoneNumberRetrieveConversationWindowParams, type PhoneNumberGetParams, type WhatsappPhoneResponsesDefaultFlatPagination, } from "./phone-numbers.mjs";
|
|
5
5
|
export { Profile, type WhatsappProfileData, type ProfileRetrieveResponse, type ProfileUpdateResponse, type ProfileUpdateParams, } from "./profile/index.mjs";
|
|
6
6
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EACd,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,GAClC,8BAA0B;AAC3B,OAAO,EACL,eAAe,EACf,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC,+BAA2B;AAC5B,OAAO,EACL,wBAAwB,EACxB,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,KAAK,uCAAuC,EAC5C,KAAK,qCAAqC,GAC3C,wCAAoC;AACrC,OAAO,EACL,YAAY,EACZ,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EACd,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,GAClC,8BAA0B;AAC3B,OAAO,EACL,eAAe,EACf,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC,+BAA2B;AAC5B,OAAO,EACL,wBAAwB,EACxB,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,KAAK,uCAAuC,EAC5C,KAAK,qCAAqC,GAC3C,wCAAoC;AACrC,OAAO,EACL,YAAY,EACZ,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,6CAA6C,EAClD,KAAK,sCAAsC,EAC3C,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,EAC5B,KAAK,2CAA2C,EAChD,KAAK,oBAAoB,EACzB,KAAK,2CAA2C,GACjD,4BAAwB;AACzB,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB,4BAAwB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { CallingRouting, type WhatsappCallingRoutingData, type CallingRoutingListResponse, type CallingRoutingPatchAllResponse, type CallingRoutingPatchAllParams, } from "./calling-routing.js";
|
|
2
2
|
export { CallingSettings, type WhatsappCallingSettingsData, type CallingSettingRetrieveResponse, type CallingSettingUpdateResponse, type CallingSettingUpdateParams, } from "./calling-settings.js";
|
|
3
3
|
export { ConversationalComponents, type WhatsappConversationalComponent, type ConversationalComponentListResponse, type ConversationalComponentPatchAllResponse, type ConversationalComponentPatchAllParams, } from "./conversational-components.js";
|
|
4
|
-
export { PhoneNumbers, type
|
|
4
|
+
export { PhoneNumbers, type WhatsappPhoneResponse, type PhoneNumberGetResponse, type PhoneNumberRetrieveConversationWindowResponse, type PhoneNumberRetrievePhoneNumberResponse, type PhoneNumberListParams, type PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams, type PhoneNumberRetrieveConversationWindowParams, type PhoneNumberGetParams, type WhatsappPhoneResponsesDefaultFlatPagination, } from "./phone-numbers.js";
|
|
5
5
|
export { Profile, type WhatsappProfileData, type ProfileRetrieveResponse, type ProfileUpdateResponse, type ProfileUpdateParams, } from "./profile/index.js";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EACd,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,GAClC,6BAA0B;AAC3B,OAAO,EACL,eAAe,EACf,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC,8BAA2B;AAC5B,OAAO,EACL,wBAAwB,EACxB,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,KAAK,uCAAuC,EAC5C,KAAK,qCAAqC,GAC3C,uCAAoC;AACrC,OAAO,EACL,YAAY,EACZ,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,cAAc,EACd,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,GAClC,6BAA0B;AAC3B,OAAO,EACL,eAAe,EACf,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC,8BAA2B;AAC5B,OAAO,EACL,wBAAwB,EACxB,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,KAAK,uCAAuC,EAC5C,KAAK,qCAAqC,GAC3C,uCAAoC;AACrC,OAAO,EACL,YAAY,EACZ,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,6CAA6C,EAClD,KAAK,sCAAsC,EAC3C,KAAK,qBAAqB,EAC1B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,EAC5B,KAAK,2CAA2C,EAChD,KAAK,oBAAoB,EACzB,KAAK,2CAA2C,GACjD,2BAAwB;AACzB,OAAO,EACL,OAAO,EACP,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,GACzB,2BAAwB"}
|
|
@@ -25,12 +25,12 @@ export declare class PhoneNumbers extends APIResource {
|
|
|
25
25
|
* @example
|
|
26
26
|
* ```ts
|
|
27
27
|
* // Automatically fetches more pages as needed.
|
|
28
|
-
* for await (const
|
|
28
|
+
* for await (const whatsappPhoneResponse of client.whatsapp.phoneNumbers.list()) {
|
|
29
29
|
* // ...
|
|
30
30
|
* }
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
|
-
list(query?: PhoneNumberListParams | null | undefined, options?: RequestOptions): PagePromise<
|
|
33
|
+
list(query?: PhoneNumberListParams | null | undefined, options?: RequestOptions): PagePromise<WhatsappPhoneResponsesDefaultFlatPagination, WhatsappPhoneResponse>;
|
|
34
34
|
/**
|
|
35
35
|
* Removes the specified phone number from Telnyx WhatsApp management.
|
|
36
36
|
*
|
|
@@ -103,8 +103,8 @@ export declare class PhoneNumbers extends APIResource {
|
|
|
103
103
|
*/
|
|
104
104
|
retrievePhoneNumber(phoneNumber: string, options?: RequestOptions): APIPromise<PhoneNumberRetrievePhoneNumberResponse>;
|
|
105
105
|
}
|
|
106
|
-
export type
|
|
107
|
-
export interface
|
|
106
|
+
export type WhatsappPhoneResponsesDefaultFlatPagination = DefaultFlatPagination<WhatsappPhoneResponse>;
|
|
107
|
+
export interface WhatsappPhoneResponse {
|
|
108
108
|
calling_enabled?: boolean;
|
|
109
109
|
/**
|
|
110
110
|
* Current lifecycle state for a coexistence number. This is null for a standard
|
|
@@ -142,7 +142,7 @@ export interface PhoneNumberListResponse {
|
|
|
142
142
|
* Synchronization progress. This object is returned only while a coexistence
|
|
143
143
|
* number is synchronizing.
|
|
144
144
|
*/
|
|
145
|
-
sync_progress?:
|
|
145
|
+
sync_progress?: WhatsappPhoneResponse.SyncProgress | null;
|
|
146
146
|
/**
|
|
147
147
|
* User ID
|
|
148
148
|
*/
|
|
@@ -152,7 +152,7 @@ export interface PhoneNumberListResponse {
|
|
|
152
152
|
*/
|
|
153
153
|
waba_id?: string;
|
|
154
154
|
}
|
|
155
|
-
export declare namespace
|
|
155
|
+
export declare namespace WhatsappPhoneResponse {
|
|
156
156
|
/**
|
|
157
157
|
* Synchronization progress. This object is returned only while a coexistence
|
|
158
158
|
* number is synchronizing.
|
|
@@ -166,72 +166,9 @@ export declare namespace PhoneNumberListResponse {
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
export interface PhoneNumberGetResponse {
|
|
169
|
-
data?: Array<
|
|
169
|
+
data?: Array<WhatsappPhoneResponse>;
|
|
170
170
|
meta?: Shared.MessagingPaginationMeta;
|
|
171
171
|
}
|
|
172
|
-
export declare namespace PhoneNumberGetResponse {
|
|
173
|
-
interface Data {
|
|
174
|
-
calling_enabled?: boolean;
|
|
175
|
-
/**
|
|
176
|
-
* Current lifecycle state for a coexistence number. This is null for a standard
|
|
177
|
-
* Cloud API number.
|
|
178
|
-
*/
|
|
179
|
-
coexistence_state?: 'pending_onboarding' | 'sync_pending' | 'syncing' | 'sync_complete' | 'active' | 'history_declined' | 'sync_deadline_expired' | 'offboarded' | 'disconnected' | null;
|
|
180
|
-
created_at?: string;
|
|
181
|
-
display_name?: string;
|
|
182
|
-
enabled?: boolean;
|
|
183
|
-
/**
|
|
184
|
-
* Indicates whether the number is connected to both the WhatsApp Business app and
|
|
185
|
-
* Cloud API through WhatsApp Coexistence.
|
|
186
|
-
*/
|
|
187
|
-
is_on_biz_app?: boolean;
|
|
188
|
-
/**
|
|
189
|
-
* Phone number in E164 format
|
|
190
|
-
*/
|
|
191
|
-
phone_number?: string;
|
|
192
|
-
/**
|
|
193
|
-
* Whatsapp phone number ID
|
|
194
|
-
*/
|
|
195
|
-
phone_number_id?: string;
|
|
196
|
-
/**
|
|
197
|
-
* Whatsapp quality rating
|
|
198
|
-
*/
|
|
199
|
-
quality_rating?: string;
|
|
200
|
-
record_type?: string;
|
|
201
|
-
status?: string;
|
|
202
|
-
/**
|
|
203
|
-
* Deadline for initiating the current coexistence synchronization cycle. This is
|
|
204
|
-
* null when no deadline applies.
|
|
205
|
-
*/
|
|
206
|
-
sync_deadline?: string | null;
|
|
207
|
-
/**
|
|
208
|
-
* Synchronization progress. This object is returned only while a coexistence
|
|
209
|
-
* number is synchronizing.
|
|
210
|
-
*/
|
|
211
|
-
sync_progress?: Data.SyncProgress | null;
|
|
212
|
-
/**
|
|
213
|
-
* User ID
|
|
214
|
-
*/
|
|
215
|
-
user_id?: string;
|
|
216
|
-
/**
|
|
217
|
-
* WABA ID of Whatsapp business account
|
|
218
|
-
*/
|
|
219
|
-
waba_id?: string;
|
|
220
|
-
}
|
|
221
|
-
namespace Data {
|
|
222
|
-
/**
|
|
223
|
-
* Synchronization progress. This object is returned only while a coexistence
|
|
224
|
-
* number is synchronizing.
|
|
225
|
-
*/
|
|
226
|
-
interface SyncProgress {
|
|
227
|
-
contacts_status?: string;
|
|
228
|
-
history_chunk_order?: number | null;
|
|
229
|
-
history_phase?: number | null;
|
|
230
|
-
history_progress?: number | null;
|
|
231
|
-
history_status?: string;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
172
|
export interface PhoneNumberRetrieveConversationWindowResponse {
|
|
236
173
|
data?: PhoneNumberRetrieveConversationWindowResponse.Data;
|
|
237
174
|
}
|
|
@@ -256,70 +193,7 @@ export declare namespace PhoneNumberRetrieveConversationWindowResponse {
|
|
|
256
193
|
}
|
|
257
194
|
}
|
|
258
195
|
export interface PhoneNumberRetrievePhoneNumberResponse {
|
|
259
|
-
data:
|
|
260
|
-
}
|
|
261
|
-
export declare namespace PhoneNumberRetrievePhoneNumberResponse {
|
|
262
|
-
interface Data {
|
|
263
|
-
calling_enabled?: boolean;
|
|
264
|
-
/**
|
|
265
|
-
* Current lifecycle state for a coexistence number. This is null for a standard
|
|
266
|
-
* Cloud API number.
|
|
267
|
-
*/
|
|
268
|
-
coexistence_state?: 'pending_onboarding' | 'sync_pending' | 'syncing' | 'sync_complete' | 'active' | 'history_declined' | 'sync_deadline_expired' | 'offboarded' | 'disconnected' | null;
|
|
269
|
-
created_at?: string;
|
|
270
|
-
display_name?: string;
|
|
271
|
-
enabled?: boolean;
|
|
272
|
-
/**
|
|
273
|
-
* Indicates whether the number is connected to both the WhatsApp Business app and
|
|
274
|
-
* Cloud API through WhatsApp Coexistence.
|
|
275
|
-
*/
|
|
276
|
-
is_on_biz_app?: boolean;
|
|
277
|
-
/**
|
|
278
|
-
* Phone number in E164 format
|
|
279
|
-
*/
|
|
280
|
-
phone_number?: string;
|
|
281
|
-
/**
|
|
282
|
-
* Whatsapp phone number ID
|
|
283
|
-
*/
|
|
284
|
-
phone_number_id?: string;
|
|
285
|
-
/**
|
|
286
|
-
* Whatsapp quality rating
|
|
287
|
-
*/
|
|
288
|
-
quality_rating?: string;
|
|
289
|
-
record_type?: string;
|
|
290
|
-
status?: string;
|
|
291
|
-
/**
|
|
292
|
-
* Deadline for initiating the current coexistence synchronization cycle. This is
|
|
293
|
-
* null when no deadline applies.
|
|
294
|
-
*/
|
|
295
|
-
sync_deadline?: string | null;
|
|
296
|
-
/**
|
|
297
|
-
* Synchronization progress. This object is returned only while a coexistence
|
|
298
|
-
* number is synchronizing.
|
|
299
|
-
*/
|
|
300
|
-
sync_progress?: Data.SyncProgress | null;
|
|
301
|
-
/**
|
|
302
|
-
* User ID
|
|
303
|
-
*/
|
|
304
|
-
user_id?: string;
|
|
305
|
-
/**
|
|
306
|
-
* WABA ID of Whatsapp business account
|
|
307
|
-
*/
|
|
308
|
-
waba_id?: string;
|
|
309
|
-
}
|
|
310
|
-
namespace Data {
|
|
311
|
-
/**
|
|
312
|
-
* Synchronization progress. This object is returned only while a coexistence
|
|
313
|
-
* number is synchronizing.
|
|
314
|
-
*/
|
|
315
|
-
interface SyncProgress {
|
|
316
|
-
contacts_status?: string;
|
|
317
|
-
history_chunk_order?: number | null;
|
|
318
|
-
history_phase?: number | null;
|
|
319
|
-
history_progress?: number | null;
|
|
320
|
-
history_status?: string;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
196
|
+
data: WhatsappPhoneResponse;
|
|
323
197
|
}
|
|
324
198
|
export interface PhoneNumberListParams extends DefaultFlatPaginationParams {
|
|
325
199
|
}
|
|
@@ -340,7 +214,7 @@ export interface PhoneNumberGetParams {
|
|
|
340
214
|
'page[size]'?: number;
|
|
341
215
|
}
|
|
342
216
|
export declare namespace PhoneNumbers {
|
|
343
|
-
export { type
|
|
217
|
+
export { type WhatsappPhoneResponse as WhatsappPhoneResponse, type PhoneNumberGetResponse as PhoneNumberGetResponse, type PhoneNumberRetrieveConversationWindowResponse as PhoneNumberRetrieveConversationWindowResponse, type PhoneNumberRetrievePhoneNumberResponse as PhoneNumberRetrievePhoneNumberResponse, type WhatsappPhoneResponsesDefaultFlatPagination as WhatsappPhoneResponsesDefaultFlatPagination, type PhoneNumberListParams as PhoneNumberListParams, type PhoneNumberResendVerificationParams as PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams as PhoneNumberVerifyParams, type PhoneNumberRetrieveConversationWindowParams as PhoneNumberRetrieveConversationWindowParams, type PhoneNumberGetParams as PhoneNumberGetParams, };
|
|
344
218
|
export { CallingSettings as CallingSettings, type WhatsappCallingSettingsData as WhatsappCallingSettingsData, type CallingSettingRetrieveResponse as CallingSettingRetrieveResponse, type CallingSettingUpdateResponse as CallingSettingUpdateResponse, type CallingSettingUpdateParams as CallingSettingUpdateParams, };
|
|
345
219
|
export { Profile as Profile, type WhatsappProfileData as WhatsappProfileData, type ProfileRetrieveResponse as ProfileRetrieveResponse, type ProfileUpdateResponse as ProfileUpdateResponse, type ProfileUpdateParams as ProfileUpdateParams, };
|
|
346
220
|
export { ConversationalComponents as ConversationalComponents, type WhatsappConversationalComponent as WhatsappConversationalComponent, type ConversationalComponentListResponse as ConversationalComponentListResponse, type ConversationalComponentPatchAllResponse as ConversationalComponentPatchAllResponse, type ConversationalComponentPatchAllParams as ConversationalComponentPatchAllParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-numbers.d.mts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/phone-numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,MAAM,yBAAqB;AACvC,OAAO,KAAK,iBAAiB,8BAA0B;AACvD,OAAO,EACL,cAAc,EACd,0BAA0B,EAC1B,4BAA4B,EAC5B,8BAA8B,EAC9B,0BAA0B,EAC3B,8BAA0B;AAC3B,OAAO,KAAK,kBAAkB,+BAA2B;AACzD,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,4BAA4B,EAC5B,eAAe,EACf,2BAA2B,EAC5B,+BAA2B;AAC5B,OAAO,KAAK,2BAA2B,wCAAoC;AAC3E,OAAO,EACL,mCAAmC,EACnC,qCAAqC,EACrC,uCAAuC,EACvC,wBAAwB,EACxB,+BAA+B,EAChC,wCAAoC;AACrC,OAAO,KAAK,UAAU,8BAA0B;AAChD,OAAO,EACL,OAAO,EACP,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACpB,8BAA0B;AAC3B,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,WAAW,EACZ,qCAAiC;AAElC,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C,eAAe,EAAE,kBAAkB,CAAC,eAAe,CAAwD;IAC3G,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,wBAAwB,EAAE,2BAA2B,CAAC,wBAAwB,CACL;IACzE,cAAc,EAAE,iBAAiB,CAAC,cAAc,CAAsD;IAEtG;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"phone-numbers.d.mts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/phone-numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,MAAM,yBAAqB;AACvC,OAAO,KAAK,iBAAiB,8BAA0B;AACvD,OAAO,EACL,cAAc,EACd,0BAA0B,EAC1B,4BAA4B,EAC5B,8BAA8B,EAC9B,0BAA0B,EAC3B,8BAA0B;AAC3B,OAAO,KAAK,kBAAkB,+BAA2B;AACzD,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,4BAA4B,EAC5B,eAAe,EACf,2BAA2B,EAC5B,+BAA2B;AAC5B,OAAO,KAAK,2BAA2B,wCAAoC;AAC3E,OAAO,EACL,mCAAmC,EACnC,qCAAqC,EACrC,uCAAuC,EACvC,wBAAwB,EACxB,+BAA+B,EAChC,wCAAoC;AACrC,OAAO,KAAK,UAAU,8BAA0B;AAChD,OAAO,EACL,OAAO,EACP,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACpB,8BAA0B;AAC3B,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,WAAW,EACZ,qCAAiC;AAElC,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C,eAAe,EAAE,kBAAkB,CAAC,eAAe,CAAwD;IAC3G,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;I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AAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,wBAAwB,IAAI,wBAAwB,EACpD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,qCAAqC,IAAI,qCAAqC,GACpF,CAAC;IAEF,OAAO,EACL,cAAc,IAAI,cAAc,EAChC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -25,12 +25,12 @@ export declare class PhoneNumbers extends APIResource {
|
|
|
25
25
|
* @example
|
|
26
26
|
* ```ts
|
|
27
27
|
* // Automatically fetches more pages as needed.
|
|
28
|
-
* for await (const
|
|
28
|
+
* for await (const whatsappPhoneResponse of client.whatsapp.phoneNumbers.list()) {
|
|
29
29
|
* // ...
|
|
30
30
|
* }
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
|
-
list(query?: PhoneNumberListParams | null | undefined, options?: RequestOptions): PagePromise<
|
|
33
|
+
list(query?: PhoneNumberListParams | null | undefined, options?: RequestOptions): PagePromise<WhatsappPhoneResponsesDefaultFlatPagination, WhatsappPhoneResponse>;
|
|
34
34
|
/**
|
|
35
35
|
* Removes the specified phone number from Telnyx WhatsApp management.
|
|
36
36
|
*
|
|
@@ -103,8 +103,8 @@ export declare class PhoneNumbers extends APIResource {
|
|
|
103
103
|
*/
|
|
104
104
|
retrievePhoneNumber(phoneNumber: string, options?: RequestOptions): APIPromise<PhoneNumberRetrievePhoneNumberResponse>;
|
|
105
105
|
}
|
|
106
|
-
export type
|
|
107
|
-
export interface
|
|
106
|
+
export type WhatsappPhoneResponsesDefaultFlatPagination = DefaultFlatPagination<WhatsappPhoneResponse>;
|
|
107
|
+
export interface WhatsappPhoneResponse {
|
|
108
108
|
calling_enabled?: boolean;
|
|
109
109
|
/**
|
|
110
110
|
* Current lifecycle state for a coexistence number. This is null for a standard
|
|
@@ -142,7 +142,7 @@ export interface PhoneNumberListResponse {
|
|
|
142
142
|
* Synchronization progress. This object is returned only while a coexistence
|
|
143
143
|
* number is synchronizing.
|
|
144
144
|
*/
|
|
145
|
-
sync_progress?:
|
|
145
|
+
sync_progress?: WhatsappPhoneResponse.SyncProgress | null;
|
|
146
146
|
/**
|
|
147
147
|
* User ID
|
|
148
148
|
*/
|
|
@@ -152,7 +152,7 @@ export interface PhoneNumberListResponse {
|
|
|
152
152
|
*/
|
|
153
153
|
waba_id?: string;
|
|
154
154
|
}
|
|
155
|
-
export declare namespace
|
|
155
|
+
export declare namespace WhatsappPhoneResponse {
|
|
156
156
|
/**
|
|
157
157
|
* Synchronization progress. This object is returned only while a coexistence
|
|
158
158
|
* number is synchronizing.
|
|
@@ -166,72 +166,9 @@ export declare namespace PhoneNumberListResponse {
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
export interface PhoneNumberGetResponse {
|
|
169
|
-
data?: Array<
|
|
169
|
+
data?: Array<WhatsappPhoneResponse>;
|
|
170
170
|
meta?: Shared.MessagingPaginationMeta;
|
|
171
171
|
}
|
|
172
|
-
export declare namespace PhoneNumberGetResponse {
|
|
173
|
-
interface Data {
|
|
174
|
-
calling_enabled?: boolean;
|
|
175
|
-
/**
|
|
176
|
-
* Current lifecycle state for a coexistence number. This is null for a standard
|
|
177
|
-
* Cloud API number.
|
|
178
|
-
*/
|
|
179
|
-
coexistence_state?: 'pending_onboarding' | 'sync_pending' | 'syncing' | 'sync_complete' | 'active' | 'history_declined' | 'sync_deadline_expired' | 'offboarded' | 'disconnected' | null;
|
|
180
|
-
created_at?: string;
|
|
181
|
-
display_name?: string;
|
|
182
|
-
enabled?: boolean;
|
|
183
|
-
/**
|
|
184
|
-
* Indicates whether the number is connected to both the WhatsApp Business app and
|
|
185
|
-
* Cloud API through WhatsApp Coexistence.
|
|
186
|
-
*/
|
|
187
|
-
is_on_biz_app?: boolean;
|
|
188
|
-
/**
|
|
189
|
-
* Phone number in E164 format
|
|
190
|
-
*/
|
|
191
|
-
phone_number?: string;
|
|
192
|
-
/**
|
|
193
|
-
* Whatsapp phone number ID
|
|
194
|
-
*/
|
|
195
|
-
phone_number_id?: string;
|
|
196
|
-
/**
|
|
197
|
-
* Whatsapp quality rating
|
|
198
|
-
*/
|
|
199
|
-
quality_rating?: string;
|
|
200
|
-
record_type?: string;
|
|
201
|
-
status?: string;
|
|
202
|
-
/**
|
|
203
|
-
* Deadline for initiating the current coexistence synchronization cycle. This is
|
|
204
|
-
* null when no deadline applies.
|
|
205
|
-
*/
|
|
206
|
-
sync_deadline?: string | null;
|
|
207
|
-
/**
|
|
208
|
-
* Synchronization progress. This object is returned only while a coexistence
|
|
209
|
-
* number is synchronizing.
|
|
210
|
-
*/
|
|
211
|
-
sync_progress?: Data.SyncProgress | null;
|
|
212
|
-
/**
|
|
213
|
-
* User ID
|
|
214
|
-
*/
|
|
215
|
-
user_id?: string;
|
|
216
|
-
/**
|
|
217
|
-
* WABA ID of Whatsapp business account
|
|
218
|
-
*/
|
|
219
|
-
waba_id?: string;
|
|
220
|
-
}
|
|
221
|
-
namespace Data {
|
|
222
|
-
/**
|
|
223
|
-
* Synchronization progress. This object is returned only while a coexistence
|
|
224
|
-
* number is synchronizing.
|
|
225
|
-
*/
|
|
226
|
-
interface SyncProgress {
|
|
227
|
-
contacts_status?: string;
|
|
228
|
-
history_chunk_order?: number | null;
|
|
229
|
-
history_phase?: number | null;
|
|
230
|
-
history_progress?: number | null;
|
|
231
|
-
history_status?: string;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
172
|
export interface PhoneNumberRetrieveConversationWindowResponse {
|
|
236
173
|
data?: PhoneNumberRetrieveConversationWindowResponse.Data;
|
|
237
174
|
}
|
|
@@ -256,70 +193,7 @@ export declare namespace PhoneNumberRetrieveConversationWindowResponse {
|
|
|
256
193
|
}
|
|
257
194
|
}
|
|
258
195
|
export interface PhoneNumberRetrievePhoneNumberResponse {
|
|
259
|
-
data:
|
|
260
|
-
}
|
|
261
|
-
export declare namespace PhoneNumberRetrievePhoneNumberResponse {
|
|
262
|
-
interface Data {
|
|
263
|
-
calling_enabled?: boolean;
|
|
264
|
-
/**
|
|
265
|
-
* Current lifecycle state for a coexistence number. This is null for a standard
|
|
266
|
-
* Cloud API number.
|
|
267
|
-
*/
|
|
268
|
-
coexistence_state?: 'pending_onboarding' | 'sync_pending' | 'syncing' | 'sync_complete' | 'active' | 'history_declined' | 'sync_deadline_expired' | 'offboarded' | 'disconnected' | null;
|
|
269
|
-
created_at?: string;
|
|
270
|
-
display_name?: string;
|
|
271
|
-
enabled?: boolean;
|
|
272
|
-
/**
|
|
273
|
-
* Indicates whether the number is connected to both the WhatsApp Business app and
|
|
274
|
-
* Cloud API through WhatsApp Coexistence.
|
|
275
|
-
*/
|
|
276
|
-
is_on_biz_app?: boolean;
|
|
277
|
-
/**
|
|
278
|
-
* Phone number in E164 format
|
|
279
|
-
*/
|
|
280
|
-
phone_number?: string;
|
|
281
|
-
/**
|
|
282
|
-
* Whatsapp phone number ID
|
|
283
|
-
*/
|
|
284
|
-
phone_number_id?: string;
|
|
285
|
-
/**
|
|
286
|
-
* Whatsapp quality rating
|
|
287
|
-
*/
|
|
288
|
-
quality_rating?: string;
|
|
289
|
-
record_type?: string;
|
|
290
|
-
status?: string;
|
|
291
|
-
/**
|
|
292
|
-
* Deadline for initiating the current coexistence synchronization cycle. This is
|
|
293
|
-
* null when no deadline applies.
|
|
294
|
-
*/
|
|
295
|
-
sync_deadline?: string | null;
|
|
296
|
-
/**
|
|
297
|
-
* Synchronization progress. This object is returned only while a coexistence
|
|
298
|
-
* number is synchronizing.
|
|
299
|
-
*/
|
|
300
|
-
sync_progress?: Data.SyncProgress | null;
|
|
301
|
-
/**
|
|
302
|
-
* User ID
|
|
303
|
-
*/
|
|
304
|
-
user_id?: string;
|
|
305
|
-
/**
|
|
306
|
-
* WABA ID of Whatsapp business account
|
|
307
|
-
*/
|
|
308
|
-
waba_id?: string;
|
|
309
|
-
}
|
|
310
|
-
namespace Data {
|
|
311
|
-
/**
|
|
312
|
-
* Synchronization progress. This object is returned only while a coexistence
|
|
313
|
-
* number is synchronizing.
|
|
314
|
-
*/
|
|
315
|
-
interface SyncProgress {
|
|
316
|
-
contacts_status?: string;
|
|
317
|
-
history_chunk_order?: number | null;
|
|
318
|
-
history_phase?: number | null;
|
|
319
|
-
history_progress?: number | null;
|
|
320
|
-
history_status?: string;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
196
|
+
data: WhatsappPhoneResponse;
|
|
323
197
|
}
|
|
324
198
|
export interface PhoneNumberListParams extends DefaultFlatPaginationParams {
|
|
325
199
|
}
|
|
@@ -340,7 +214,7 @@ export interface PhoneNumberGetParams {
|
|
|
340
214
|
'page[size]'?: number;
|
|
341
215
|
}
|
|
342
216
|
export declare namespace PhoneNumbers {
|
|
343
|
-
export { type
|
|
217
|
+
export { type WhatsappPhoneResponse as WhatsappPhoneResponse, type PhoneNumberGetResponse as PhoneNumberGetResponse, type PhoneNumberRetrieveConversationWindowResponse as PhoneNumberRetrieveConversationWindowResponse, type PhoneNumberRetrievePhoneNumberResponse as PhoneNumberRetrievePhoneNumberResponse, type WhatsappPhoneResponsesDefaultFlatPagination as WhatsappPhoneResponsesDefaultFlatPagination, type PhoneNumberListParams as PhoneNumberListParams, type PhoneNumberResendVerificationParams as PhoneNumberResendVerificationParams, type PhoneNumberVerifyParams as PhoneNumberVerifyParams, type PhoneNumberRetrieveConversationWindowParams as PhoneNumberRetrieveConversationWindowParams, type PhoneNumberGetParams as PhoneNumberGetParams, };
|
|
344
218
|
export { CallingSettings as CallingSettings, type WhatsappCallingSettingsData as WhatsappCallingSettingsData, type CallingSettingRetrieveResponse as CallingSettingRetrieveResponse, type CallingSettingUpdateResponse as CallingSettingUpdateResponse, type CallingSettingUpdateParams as CallingSettingUpdateParams, };
|
|
345
219
|
export { Profile as Profile, type WhatsappProfileData as WhatsappProfileData, type ProfileRetrieveResponse as ProfileRetrieveResponse, type ProfileUpdateResponse as ProfileUpdateResponse, type ProfileUpdateParams as ProfileUpdateParams, };
|
|
346
220
|
export { ConversationalComponents as ConversationalComponents, type WhatsappConversationalComponent as WhatsappConversationalComponent, type ConversationalComponentListResponse as ConversationalComponentListResponse, type ConversationalComponentPatchAllResponse as ConversationalComponentPatchAllResponse, type ConversationalComponentPatchAllParams as ConversationalComponentPatchAllParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-numbers.d.ts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/phone-numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,MAAM,wBAAqB;AACvC,OAAO,KAAK,iBAAiB,6BAA0B;AACvD,OAAO,EACL,cAAc,EACd,0BAA0B,EAC1B,4BAA4B,EAC5B,8BAA8B,EAC9B,0BAA0B,EAC3B,6BAA0B;AAC3B,OAAO,KAAK,kBAAkB,8BAA2B;AACzD,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,4BAA4B,EAC5B,eAAe,EACf,2BAA2B,EAC5B,8BAA2B;AAC5B,OAAO,KAAK,2BAA2B,uCAAoC;AAC3E,OAAO,EACL,mCAAmC,EACnC,qCAAqC,EACrC,uCAAuC,EACvC,wBAAwB,EACxB,+BAA+B,EAChC,uCAAoC;AACrC,OAAO,KAAK,UAAU,6BAA0B;AAChD,OAAO,EACL,OAAO,EACP,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACpB,6BAA0B;AAC3B,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,YAAa,SAAQ,WAAW;IAC3C,eAAe,EAAE,kBAAkB,CAAC,eAAe,CAAwD;IAC3G,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IACnE,wBAAwB,EAAE,2BAA2B,CAAC,wBAAwB,CACL;IACzE,cAAc,EAAE,iBAAiB,CAAC,cAAc,CAAsD;IAEtG;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"phone-numbers.d.ts","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/phone-numbers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,MAAM,wBAAqB;AACvC,OAAO,KAAK,iBAAiB,6BAA0B;AACvD,OAAO,EACL,cAAc,EACd,0BAA0B,EAC1B,4BAA4B,EAC5B,8BAA8B,EAC9B,0BAA0B,EAC3B,6BAA0B;AAC3B,OAAO,KAAK,kBAAkB,8BAA2B;AACzD,OAAO,EACL,8BAA8B,EAC9B,0BAA0B,EAC1B,4BAA4B,EAC5B,eAAe,EACf,2BAA2B,EAC5B,8BAA2B;AAC5B,OAAO,KAAK,2BAA2B,uCAAoC;AAC3E,OAAO,EACL,mCAAmC,EACnC,qCAAqC,EACrC,uCAAuC,EACvC,wBAAwB,EACxB,+BAA+B,EAChC,uCAAo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|
34
34
|
* // Automatically fetches more pages as needed.
|
|
35
|
-
* for await (const
|
|
35
|
+
* for await (const whatsappPhoneResponse of client.whatsapp.phoneNumbers.list()) {
|
|
36
36
|
* // ...
|
|
37
37
|
* }
|
|
38
38
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-numbers.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/phone-numbers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,gFAAuD;AACvD,0DAM2B;AAC3B,kFAAyD;AACzD,4DAM4B;AAC5B,oGAA2E;AAC3E,8EAMqC;AACrC,yEAAgD;AAChD,kDAM2B;AAE3B,4DAIkC;AAClC,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,oBAAe,GAAuC,IAAI,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3G,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,6BAAwB,GACtB,IAAI,2BAA2B,CAAC,wBAAwB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzE,mBAAc,GAAqC,IAAI,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA4IxG,CAAC;IA1IC;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,4BAA4B,EAC5B,CAAA,
|
|
1
|
+
{"version":3,"file":"phone-numbers.js","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/phone-numbers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,gFAAuD;AACvD,0DAM2B;AAC3B,kFAAyD;AACzD,4DAM4B;AAC5B,oGAA2E;AAC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c,GAAG,gCAAc,CAAC"}
|
|
@@ -28,7 +28,7 @@ export class PhoneNumbers extends APIResource {
|
|
|
28
28
|
* @example
|
|
29
29
|
* ```ts
|
|
30
30
|
* // Automatically fetches more pages as needed.
|
|
31
|
-
* for await (const
|
|
31
|
+
* for await (const whatsappPhoneResponse of client.whatsapp.phoneNumbers.list()) {
|
|
32
32
|
* // ...
|
|
33
33
|
* }
|
|
34
34
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-numbers.mjs","sourceRoot":"","sources":["../../../src/resources/whatsapp/phone-numbers/phone-numbers.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,KAAK,iBAAiB,8BAA0B;AACvD,OAAO,EACL,cAAc,GAKf,8BAA0B;AAC3B,OAAO,KAAK,kBAAkB,+BAA2B;AACzD,OAAO,EAIL,eAAe,GAEhB,+BAA2B;AAC5B,OAAO,KAAK,2BAA2B,wCAAoC;AAC3E,OAAO,EAIL,wBAAwB,GAEzB,wCAAoC;AACrC,OAAO,KAAK,UAAU,8BAA0B;AAChD,OAAO,EACL,OAAO,GAKR,8BAA0B;AAE3B,OAAO,EACL,qBAAqB,GAGtB,qCAAiC;AAClC,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAA7C;;QACE,oBAAe,GAAuC,IAAI,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3G,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,6BAAwB,GACtB,IAAI,2BAA2B,CAAC,wBAAwB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzE,mBAAc,GAAqC,IAAI,iBAAiB,CAAC,cAAc,CAAC,IAAI,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