telnyx 7.30.0-beta.0 → 7.31.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 +14 -0
- package/client.d.mts +30 -13
- package/client.d.mts.map +1 -1
- package/client.d.ts +30 -13
- package/client.d.ts.map +1 -1
- package/client.js +18 -3
- package/client.js.map +1 -1
- package/client.mjs +18 -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 +7 -3
- package/lib/login-token.d.mts.map +1 -1
- package/lib/login-token.d.ts +7 -3
- package/lib/login-token.d.ts.map +1 -1
- package/lib/login-token.js.map +1 -1
- package/lib/login-token.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-gateways/agent-gateways.d.mts +360 -0
- package/resources/agent-gateways/agent-gateways.d.mts.map +1 -0
- package/resources/agent-gateways/agent-gateways.d.ts +360 -0
- package/resources/agent-gateways/agent-gateways.d.ts.map +1 -0
- package/resources/agent-gateways/agent-gateways.js +140 -0
- package/resources/agent-gateways/agent-gateways.js.map +1 -0
- package/resources/agent-gateways/agent-gateways.mjs +135 -0
- package/resources/agent-gateways/agent-gateways.mjs.map +1 -0
- package/resources/agent-gateways/apis.d.mts +300 -0
- package/resources/agent-gateways/apis.d.mts.map +1 -0
- package/resources/agent-gateways/apis.d.ts +300 -0
- package/resources/agent-gateways/apis.d.ts.map +1 -0
- package/resources/agent-gateways/apis.js +89 -0
- package/resources/agent-gateways/apis.js.map +1 -0
- package/resources/agent-gateways/apis.mjs +85 -0
- package/resources/agent-gateways/apis.mjs.map +1 -0
- package/resources/agent-gateways/guardrails.d.mts +210 -0
- package/resources/agent-gateways/guardrails.d.mts.map +1 -0
- package/resources/agent-gateways/guardrails.d.ts +210 -0
- package/resources/agent-gateways/guardrails.d.ts.map +1 -0
- package/resources/agent-gateways/guardrails.js +96 -0
- package/resources/agent-gateways/guardrails.js.map +1 -0
- package/resources/agent-gateways/guardrails.mjs +92 -0
- package/resources/agent-gateways/guardrails.mjs.map +1 -0
- package/resources/agent-gateways/index.d.mts +9 -0
- package/resources/agent-gateways/index.d.mts.map +1 -0
- package/resources/agent-gateways/index.d.ts +9 -0
- package/resources/agent-gateways/index.d.ts.map +1 -0
- package/resources/agent-gateways/index.js +21 -0
- package/resources/agent-gateways/index.js.map +1 -0
- package/resources/agent-gateways/index.mjs +10 -0
- package/resources/agent-gateways/index.mjs.map +1 -0
- package/resources/agent-gateways/keys/index.d.mts +3 -0
- package/resources/agent-gateways/keys/index.d.mts.map +1 -0
- package/resources/agent-gateways/keys/index.d.ts +3 -0
- package/resources/agent-gateways/keys/index.d.ts.map +1 -0
- package/resources/agent-gateways/keys/index.js +9 -0
- package/resources/agent-gateways/keys/index.js.map +1 -0
- package/resources/agent-gateways/keys/index.mjs +4 -0
- package/resources/agent-gateways/keys/index.mjs.map +1 -0
- package/resources/agent-gateways/keys/keys.d.mts +329 -0
- package/resources/agent-gateways/keys/keys.d.mts.map +1 -0
- package/resources/agent-gateways/keys/keys.d.ts +329 -0
- package/resources/agent-gateways/keys/keys.d.ts.map +1 -0
- package/resources/agent-gateways/keys/keys.js +99 -0
- package/resources/agent-gateways/keys/keys.js.map +1 -0
- package/resources/agent-gateways/keys/keys.mjs +94 -0
- package/resources/agent-gateways/keys/keys.mjs.map +1 -0
- package/resources/agent-gateways/keys/tool-permissions.d.mts +103 -0
- package/resources/agent-gateways/keys/tool-permissions.d.mts.map +1 -0
- package/resources/agent-gateways/keys/tool-permissions.d.ts +103 -0
- package/resources/agent-gateways/keys/tool-permissions.d.ts.map +1 -0
- package/resources/agent-gateways/keys/tool-permissions.js +62 -0
- package/resources/agent-gateways/keys/tool-permissions.js.map +1 -0
- package/resources/agent-gateways/keys/tool-permissions.mjs +58 -0
- package/resources/agent-gateways/keys/tool-permissions.mjs.map +1 -0
- package/resources/agent-gateways/keys.d.mts +2 -0
- package/resources/agent-gateways/keys.d.mts.map +1 -0
- package/resources/agent-gateways/keys.d.ts +2 -0
- package/resources/agent-gateways/keys.d.ts.map +1 -0
- package/resources/agent-gateways/keys.js +6 -0
- package/resources/agent-gateways/keys.js.map +1 -0
- package/resources/agent-gateways/keys.mjs +3 -0
- package/resources/agent-gateways/keys.mjs.map +1 -0
- package/resources/agent-gateways/mcp-servers.d.mts +246 -0
- package/resources/agent-gateways/mcp-servers.d.mts.map +1 -0
- package/resources/agent-gateways/mcp-servers.d.ts +246 -0
- package/resources/agent-gateways/mcp-servers.d.ts.map +1 -0
- package/resources/agent-gateways/mcp-servers.js +97 -0
- package/resources/agent-gateways/mcp-servers.js.map +1 -0
- package/resources/agent-gateways/mcp-servers.mjs +93 -0
- package/resources/agent-gateways/mcp-servers.mjs.map +1 -0
- package/resources/agent-gateways/policies.d.mts +266 -0
- package/resources/agent-gateways/policies.d.mts.map +1 -0
- package/resources/agent-gateways/policies.d.ts +266 -0
- package/resources/agent-gateways/policies.d.ts.map +1 -0
- package/resources/agent-gateways/policies.js +97 -0
- package/resources/agent-gateways/policies.js.map +1 -0
- package/resources/agent-gateways/policies.mjs +93 -0
- package/resources/agent-gateways/policies.mjs.map +1 -0
- package/resources/agent-gateways/policy-attachments.d.mts +123 -0
- package/resources/agent-gateways/policy-attachments.d.mts.map +1 -0
- package/resources/agent-gateways/policy-attachments.d.ts +123 -0
- package/resources/agent-gateways/policy-attachments.d.ts.map +1 -0
- package/resources/agent-gateways/policy-attachments.js +63 -0
- package/resources/agent-gateways/policy-attachments.js.map +1 -0
- package/resources/agent-gateways/policy-attachments.mjs +59 -0
- package/resources/agent-gateways/policy-attachments.mjs.map +1 -0
- package/resources/agent-gateways/teams/index.d.mts +3 -0
- package/resources/agent-gateways/teams/index.d.mts.map +1 -0
- package/resources/agent-gateways/teams/index.d.ts +3 -0
- package/resources/agent-gateways/teams/index.d.ts.map +1 -0
- package/resources/agent-gateways/teams/index.js +9 -0
- package/resources/agent-gateways/teams/index.js.map +1 -0
- package/resources/agent-gateways/teams/index.mjs +4 -0
- package/resources/agent-gateways/teams/index.mjs.map +1 -0
- package/resources/agent-gateways/teams/teams.d.mts +210 -0
- package/resources/agent-gateways/teams/teams.d.mts.map +1 -0
- package/resources/agent-gateways/teams/teams.d.ts +210 -0
- package/resources/agent-gateways/teams/teams.d.ts.map +1 -0
- package/resources/agent-gateways/teams/teams.js +98 -0
- package/resources/agent-gateways/teams/teams.js.map +1 -0
- package/resources/agent-gateways/teams/teams.mjs +93 -0
- package/resources/agent-gateways/teams/teams.mjs.map +1 -0
- package/resources/agent-gateways/teams/tool-permissions.d.mts +82 -0
- package/resources/agent-gateways/teams/tool-permissions.d.mts.map +1 -0
- package/resources/agent-gateways/teams/tool-permissions.d.ts +82 -0
- package/resources/agent-gateways/teams/tool-permissions.d.ts.map +1 -0
- package/resources/agent-gateways/teams/tool-permissions.js +62 -0
- package/resources/agent-gateways/teams/tool-permissions.js.map +1 -0
- package/resources/agent-gateways/teams/tool-permissions.mjs +58 -0
- package/resources/agent-gateways/teams/tool-permissions.mjs.map +1 -0
- package/resources/agent-gateways/teams.d.mts +2 -0
- package/resources/agent-gateways/teams.d.mts.map +1 -0
- package/resources/agent-gateways/teams.d.ts +2 -0
- package/resources/agent-gateways/teams.d.ts.map +1 -0
- package/resources/agent-gateways/teams.js +6 -0
- package/resources/agent-gateways/teams.js.map +1 -0
- package/resources/agent-gateways/teams.mjs +3 -0
- package/resources/agent-gateways/teams.mjs.map +1 -0
- package/resources/agent-gateways.d.mts +2 -0
- package/resources/agent-gateways.d.mts.map +1 -0
- package/resources/agent-gateways.d.ts +2 -0
- package/resources/agent-gateways.d.ts.map +1 -0
- package/resources/{tts-integrations.js → agent-gateways.js} +2 -2
- package/resources/agent-gateways.js.map +1 -0
- package/resources/agent-gateways.mjs +3 -0
- package/resources/agent-gateways.mjs.map +1 -0
- 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 +204 -108
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +204 -108
- 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 +2 -2
- package/resources/ai/memory/namespaces/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/index.d.ts +2 -2
- 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 +4 -4
- package/resources/ai/memory/namespaces/namespaces.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/namespaces.d.ts +4 -4
- 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/index.d.mts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts +1 -1
- package/resources/ai/memory/namespaces/profiles/index.d.ts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.js.map +1 -1
- package/resources/ai/memory/namespaces/profiles/index.mjs.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts +23 -5
- package/resources/ai/memory/namespaces/profiles/profiles.d.mts.map +1 -1
- package/resources/ai/memory/namespaces/profiles/profiles.d.ts +23 -5
- 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/calendar-connections/calendar-connections.d.mts +380 -0
- package/resources/calendar-connections/calendar-connections.d.mts.map +1 -0
- package/resources/calendar-connections/calendar-connections.d.ts +380 -0
- package/resources/calendar-connections/calendar-connections.d.ts.map +1 -0
- package/resources/calendar-connections/calendar-connections.js +102 -0
- package/resources/calendar-connections/calendar-connections.js.map +1 -0
- package/resources/calendar-connections/calendar-connections.mjs +97 -0
- package/resources/calendar-connections/calendar-connections.mjs.map +1 -0
- package/resources/calendar-connections/index.d.mts +3 -0
- package/resources/calendar-connections/index.d.mts.map +1 -0
- package/resources/calendar-connections/index.d.ts +3 -0
- package/resources/calendar-connections/index.d.ts.map +1 -0
- package/resources/calendar-connections/index.js +9 -0
- package/resources/calendar-connections/index.js.map +1 -0
- package/resources/calendar-connections/index.mjs +4 -0
- package/resources/calendar-connections/index.mjs.map +1 -0
- package/resources/calendar-connections/meetings.d.mts +149 -0
- package/resources/calendar-connections/meetings.d.mts.map +1 -0
- package/resources/calendar-connections/meetings.d.ts +149 -0
- package/resources/calendar-connections/meetings.d.ts.map +1 -0
- package/resources/calendar-connections/meetings.js +47 -0
- package/resources/calendar-connections/meetings.js.map +1 -0
- package/resources/calendar-connections/meetings.mjs +43 -0
- package/resources/calendar-connections/meetings.mjs.map +1 -0
- package/resources/calendar-connections.d.mts +2 -0
- package/resources/calendar-connections.d.mts.map +1 -0
- package/resources/calendar-connections.d.ts +2 -0
- package/resources/calendar-connections.d.ts.map +1 -0
- package/resources/calendar-connections.js +6 -0
- package/resources/calendar-connections.js.map +1 -0
- package/resources/calendar-connections.mjs +3 -0
- package/resources/calendar-connections.mjs.map +1 -0
- package/resources/calls/actions.d.mts +11 -5
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +11 -5
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/calls.d.mts +4 -4
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +4 -4
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/calls/index.d.mts +1 -1
- package/resources/calls/index.d.mts.map +1 -1
- package/resources/calls/index.d.ts +1 -1
- package/resources/calls/index.d.ts.map +1 -1
- package/resources/calls/index.js.map +1 -1
- package/resources/calls/index.mjs.map +1 -1
- package/resources/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/conferences/actions.d.mts +1 -1
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +1 -1
- package/resources/conferences/actions.d.ts.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 +9 -6
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +9 -6
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -6
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -1
- package/resources/index.mjs.map +1 -1
- package/resources/meeting-bot/calendar.d.mts +34 -0
- package/resources/meeting-bot/calendar.d.mts.map +1 -0
- package/resources/meeting-bot/calendar.d.ts +34 -0
- package/resources/meeting-bot/calendar.d.ts.map +1 -0
- package/resources/meeting-bot/calendar.js +26 -0
- package/resources/meeting-bot/calendar.js.map +1 -0
- package/resources/meeting-bot/calendar.mjs +22 -0
- package/resources/meeting-bot/calendar.mjs.map +1 -0
- package/resources/meeting-bot/index.d.mts +3 -0
- package/resources/meeting-bot/index.d.mts.map +1 -0
- package/resources/meeting-bot/index.d.ts +3 -0
- package/resources/meeting-bot/index.d.ts.map +1 -0
- package/resources/meeting-bot/index.js +9 -0
- package/resources/meeting-bot/index.js.map +1 -0
- package/resources/meeting-bot/index.mjs +4 -0
- package/resources/meeting-bot/index.mjs.map +1 -0
- package/resources/meeting-bot/meeting-bot.d.mts +10 -0
- package/resources/meeting-bot/meeting-bot.d.mts.map +1 -0
- package/resources/meeting-bot/meeting-bot.d.ts +10 -0
- package/resources/meeting-bot/meeting-bot.d.ts.map +1 -0
- package/resources/meeting-bot/meeting-bot.js +17 -0
- package/resources/meeting-bot/meeting-bot.js.map +1 -0
- package/resources/meeting-bot/meeting-bot.mjs +12 -0
- package/resources/meeting-bot/meeting-bot.mjs.map +1 -0
- package/resources/meeting-bot.d.mts +2 -0
- package/resources/meeting-bot.d.mts.map +1 -0
- package/resources/meeting-bot.d.ts +2 -0
- package/resources/meeting-bot.d.ts.map +1 -0
- package/resources/meeting-bot.js +6 -0
- package/resources/meeting-bot.js.map +1 -0
- package/resources/meeting-bot.mjs +3 -0
- package/resources/meeting-bot.mjs.map +1 -0
- package/resources/meeting-sessions/actions.d.mts +17 -11
- package/resources/meeting-sessions/actions.d.mts.map +1 -1
- package/resources/meeting-sessions/actions.d.ts +17 -11
- package/resources/meeting-sessions/actions.d.ts.map +1 -1
- package/resources/meeting-sessions/actions.js +14 -10
- package/resources/meeting-sessions/actions.js.map +1 -1
- package/resources/meeting-sessions/actions.mjs +14 -10
- package/resources/meeting-sessions/actions.mjs.map +1 -1
- package/resources/meeting-sessions/artifacts.d.mts +8 -7
- package/resources/meeting-sessions/artifacts.d.mts.map +1 -1
- package/resources/meeting-sessions/artifacts.d.ts +8 -7
- package/resources/meeting-sessions/artifacts.d.ts.map +1 -1
- package/resources/meeting-sessions/artifacts.js +8 -7
- package/resources/meeting-sessions/artifacts.js.map +1 -1
- package/resources/meeting-sessions/artifacts.mjs +8 -7
- package/resources/meeting-sessions/artifacts.mjs.map +1 -1
- package/resources/meeting-sessions/index.d.mts +1 -1
- package/resources/meeting-sessions/index.d.mts.map +1 -1
- package/resources/meeting-sessions/index.d.ts +1 -1
- package/resources/meeting-sessions/index.d.ts.map +1 -1
- package/resources/meeting-sessions/index.js.map +1 -1
- package/resources/meeting-sessions/index.mjs.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.mts +281 -103
- package/resources/meeting-sessions/meeting-sessions.d.mts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.d.ts +281 -103
- package/resources/meeting-sessions/meeting-sessions.d.ts.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.js +53 -21
- package/resources/meeting-sessions/meeting-sessions.js.map +1 -1
- package/resources/meeting-sessions/meeting-sessions.mjs +53 -21
- package/resources/meeting-sessions/meeting-sessions.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 +54 -24
- package/resources/telephony-credentials.d.mts.map +1 -1
- package/resources/telephony-credentials.d.ts +54 -24
- package/resources/telephony-credentials.d.ts.map +1 -1
- package/resources/telephony-credentials.js +31 -27
- package/resources/telephony-credentials.js.map +1 -1
- package/resources/telephony-credentials.mjs +31 -27
- package/resources/telephony-credentials.mjs.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.mts +45 -5
- package/resources/text-to-speech/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech/text-to-speech.d.ts +45 -5
- package/resources/text-to-speech/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-speech/text-to-speech.js +8 -2
- package/resources/text-to-speech/text-to-speech.js.map +1 -1
- package/resources/text-to-speech/text-to-speech.mjs +8 -2
- package/resources/text-to-speech/text-to-speech.mjs.map +1 -1
- package/resources/user-profile.d.mts +284 -0
- package/resources/user-profile.d.mts.map +1 -0
- package/resources/user-profile.d.ts +284 -0
- package/resources/user-profile.d.ts.map +1 -0
- package/resources/user-profile.js +42 -0
- package/resources/user-profile.js.map +1 -0
- package/resources/user-profile.mjs +38 -0
- package/resources/user-profile.mjs.map +1 -0
- 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 +139 -23
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +139 -23
- 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 +103 -6
- package/src/core/pagination.ts +58 -0
- package/src/lib/login-token.ts +8 -4
- package/src/resources/agent-gateways/agent-gateways.ts +605 -0
- package/src/resources/agent-gateways/apis.ts +388 -0
- package/src/resources/agent-gateways/guardrails.ts +304 -0
- package/src/resources/agent-gateways/index.ts +87 -0
- package/src/resources/agent-gateways/keys/index.ts +20 -0
- package/src/resources/agent-gateways/keys/keys.ts +437 -0
- package/src/resources/agent-gateways/keys/tool-permissions.ts +139 -0
- package/src/resources/agent-gateways/keys.ts +3 -0
- package/src/resources/agent-gateways/mcp-servers.ts +328 -0
- package/src/resources/agent-gateways/policies.ts +348 -0
- package/src/resources/agent-gateways/policy-attachments.ts +167 -0
- package/src/resources/agent-gateways/teams/index.ts +16 -0
- package/src/resources/agent-gateways/teams/teams.ts +282 -0
- package/src/resources/agent-gateways/teams/tool-permissions.ts +112 -0
- package/src/resources/agent-gateways/teams.ts +3 -0
- package/src/resources/{tts-integrations.ts → agent-gateways.ts} +1 -1
- package/src/resources/ai/ai.ts +12 -0
- package/src/resources/ai/assistants/assistants.ts +241 -143
- 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 +8 -1
- package/src/resources/ai/memory/namespaces/namespaces.ts +11 -1
- package/src/resources/ai/memory/namespaces/profiles/index.ts +1 -0
- package/src/resources/ai/memory/namespaces/profiles/profiles.ts +29 -4
- 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/calendar-connections/calendar-connections.ts +486 -0
- package/src/resources/calendar-connections/index.ts +21 -0
- package/src/resources/calendar-connections/meetings.ts +205 -0
- package/src/resources/calendar-connections.ts +3 -0
- package/src/resources/calls/actions.ts +16 -4
- package/src/resources/calls/calls.ts +6 -2
- package/src/resources/calls/index.ts +1 -0
- 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/conferences/actions.ts +2 -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 +40 -1
- package/src/resources/meeting-bot/calendar.ts +54 -0
- package/src/resources/meeting-bot/index.ts +8 -0
- package/src/resources/meeting-bot/meeting-bot.ts +23 -0
- package/src/resources/meeting-bot.ts +3 -0
- package/src/resources/meeting-sessions/actions.ts +17 -11
- package/src/resources/meeting-sessions/artifacts.ts +8 -7
- package/src/resources/meeting-sessions/index.ts +4 -0
- package/src/resources/meeting-sessions/meeting-sessions.ts +321 -102
- 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 +74 -41
- package/src/resources/text-to-speech/text-to-speech.ts +81 -5
- package/src/resources/user-profile.ts +357 -0
- package/src/resources/voice-clones.ts +4 -4
- package/src/resources/webhooks.ts +226 -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.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +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.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
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Read and update the authenticated user's profile and data locality.
|
|
6
|
+
*/
|
|
7
|
+
export declare class UserProfileResource extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve the authenticated user's profile, including data locality and migration
|
|
10
|
+
* status.
|
|
11
|
+
*
|
|
12
|
+
* **Beta:** this API should be considered a beta integration target because it may
|
|
13
|
+
* change if user account settings require changes
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const userProfiles = await client.userProfile.list();
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
list(options?: RequestOptions): APIPromise<UserProfileListResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Update the authenticated user's profile using top-level JSON fields. Returns the
|
|
23
|
+
* updated profile.
|
|
24
|
+
*
|
|
25
|
+
* **Beta:** this API should be considered a beta integration target because it may
|
|
26
|
+
* change if user account settings require changes
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const response = await client.userProfile.patchAll();
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
patchAll(body: UserProfilePatchAllParams, options?: RequestOptions): APIPromise<UserProfilePatchAllResponse>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The authenticated user's profile.
|
|
37
|
+
*/
|
|
38
|
+
export interface UserProfile {
|
|
39
|
+
/**
|
|
40
|
+
* Identifier of the user profile, distinct from the user ID.
|
|
41
|
+
*/
|
|
42
|
+
id?: number;
|
|
43
|
+
/**
|
|
44
|
+
* First line of the profile address.
|
|
45
|
+
*/
|
|
46
|
+
address_1?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* Second line of the profile address.
|
|
49
|
+
*/
|
|
50
|
+
address_2?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Business name associated with the profile.
|
|
53
|
+
*/
|
|
54
|
+
business_name?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* City in the profile address.
|
|
57
|
+
*/
|
|
58
|
+
city?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Country code in the profile address.
|
|
61
|
+
*/
|
|
62
|
+
country?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* The user's data locality: USA (United States), DEU (Germany), AUS (Australia),
|
|
65
|
+
* UAE (United Arab Emirates), or CAN (Canada).
|
|
66
|
+
*/
|
|
67
|
+
data_locality?: 'USA' | 'DEU' | 'AUS' | 'UAE' | 'CAN' | null;
|
|
68
|
+
/**
|
|
69
|
+
* Status of the user's data locality migration, or null when no migration status
|
|
70
|
+
* is recorded.
|
|
71
|
+
*/
|
|
72
|
+
data_locality_migration_status?: 'not_started' | 'in_progress' | 'finished' | null;
|
|
73
|
+
/**
|
|
74
|
+
* Timestamp when the user's data locality was last changed, or null if it has not
|
|
75
|
+
* been changed.
|
|
76
|
+
*/
|
|
77
|
+
data_locality_updated_at?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* The user's first name.
|
|
80
|
+
*/
|
|
81
|
+
first_name?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* The user's last name.
|
|
84
|
+
*/
|
|
85
|
+
last_name?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* Contact phone number associated with the profile.
|
|
88
|
+
*/
|
|
89
|
+
phone_number?: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* Identifies the type of resource.
|
|
92
|
+
*/
|
|
93
|
+
record_type?: 'user_profile';
|
|
94
|
+
/**
|
|
95
|
+
* State or region in the profile address.
|
|
96
|
+
*/
|
|
97
|
+
state?: string | null;
|
|
98
|
+
/**
|
|
99
|
+
* Timestamp of the most recent profile update.
|
|
100
|
+
*/
|
|
101
|
+
updated_at?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Identifier of the user who owns this profile.
|
|
104
|
+
*/
|
|
105
|
+
user_id?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Postal code in the profile address.
|
|
108
|
+
*/
|
|
109
|
+
zip?: string | null;
|
|
110
|
+
[k: string]: unknown;
|
|
111
|
+
}
|
|
112
|
+
export interface UserProfileListResponse {
|
|
113
|
+
/**
|
|
114
|
+
* The authenticated user's profile.
|
|
115
|
+
*/
|
|
116
|
+
data: UserProfile;
|
|
117
|
+
}
|
|
118
|
+
export interface UserProfilePatchAllResponse {
|
|
119
|
+
/**
|
|
120
|
+
* The authenticated user's profile.
|
|
121
|
+
*/
|
|
122
|
+
data: UserProfile;
|
|
123
|
+
}
|
|
124
|
+
export interface UserProfilePatchAllParams {
|
|
125
|
+
/**
|
|
126
|
+
* First line of the profile address.
|
|
127
|
+
*/
|
|
128
|
+
address_1?: string | null;
|
|
129
|
+
/**
|
|
130
|
+
* Second line of the profile address.
|
|
131
|
+
*/
|
|
132
|
+
address_2?: string | null;
|
|
133
|
+
/**
|
|
134
|
+
* Business name associated with the profile.
|
|
135
|
+
*/
|
|
136
|
+
business_name?: string | null;
|
|
137
|
+
/**
|
|
138
|
+
* City in the profile address.
|
|
139
|
+
*/
|
|
140
|
+
city?: string | null;
|
|
141
|
+
/**
|
|
142
|
+
* Company size reported by the user.
|
|
143
|
+
*/
|
|
144
|
+
company_size?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Country code in the profile address.
|
|
147
|
+
*/
|
|
148
|
+
country?: string | null;
|
|
149
|
+
/**
|
|
150
|
+
* Data locality: USA (United States), DEU (Germany), AUS (Australia), UAE (United
|
|
151
|
+
* Arab Emirates), or CAN (Canada). A change is permitted only if data locality has
|
|
152
|
+
* not previously been changed. A successful change sets data_locality_updated_at
|
|
153
|
+
* and initializes data_locality_migration_status to not_started.
|
|
154
|
+
*/
|
|
155
|
+
data_locality?: 'USA' | 'DEU' | 'AUS' | 'UAE' | 'CAN';
|
|
156
|
+
/**
|
|
157
|
+
* Default custom-pricing setting for managed accounts.
|
|
158
|
+
*/
|
|
159
|
+
default_managed_account_allow_custom_pricing?: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* Default emergency terms-of-service inheritance setting for managed accounts,
|
|
162
|
+
* where supported.
|
|
163
|
+
*/
|
|
164
|
+
default_managed_account_inherit_emergency_terms_of_service?: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* Default rollup-billing setting for managed accounts.
|
|
167
|
+
*/
|
|
168
|
+
default_managed_account_rollup_billing?: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* Default setting for notifying the manager account.
|
|
171
|
+
*/
|
|
172
|
+
default_notify_manager_account?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Default alphanumeric external PIN for phone numbers.
|
|
175
|
+
*/
|
|
176
|
+
default_numbers_external_pin?: string;
|
|
177
|
+
/**
|
|
178
|
+
* The user's first name.
|
|
179
|
+
*/
|
|
180
|
+
first_name?: string | null;
|
|
181
|
+
/**
|
|
182
|
+
* Whether the user received a free number at signup.
|
|
183
|
+
*/
|
|
184
|
+
got_free_number_at_signup?: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* The user's last name.
|
|
187
|
+
*/
|
|
188
|
+
last_name?: string | null;
|
|
189
|
+
/**
|
|
190
|
+
* Low-balance notification frequency. Organization sub-users cannot set a non-null
|
|
191
|
+
* frequency. The resulting profile must have both a threshold and frequency, or
|
|
192
|
+
* neither.
|
|
193
|
+
*/
|
|
194
|
+
low_balance_notification_frequency?: 2 | 4 | 12 | 24 | null;
|
|
195
|
+
/**
|
|
196
|
+
* Low-balance notification threshold in the billing currency. The resulting
|
|
197
|
+
* profile must have both a threshold and notification frequency, or neither.
|
|
198
|
+
*/
|
|
199
|
+
low_balance_threshold_amount?: number | null;
|
|
200
|
+
/**
|
|
201
|
+
* Whether to notify the user when an invoice is available.
|
|
202
|
+
*/
|
|
203
|
+
notify_on_invoice_available?: boolean;
|
|
204
|
+
/**
|
|
205
|
+
* Whether to notify the user when an invoice is paid.
|
|
206
|
+
*/
|
|
207
|
+
notify_on_invoice_payment?: boolean;
|
|
208
|
+
/**
|
|
209
|
+
* Whether the user is an NPAC user.
|
|
210
|
+
*/
|
|
211
|
+
npac_user?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Build methods reported during onboarding.
|
|
214
|
+
*/
|
|
215
|
+
onboarding_build_method?: Array<string>;
|
|
216
|
+
/**
|
|
217
|
+
* Industries reported during onboarding.
|
|
218
|
+
*/
|
|
219
|
+
onboarding_industries?: Array<string>;
|
|
220
|
+
/**
|
|
221
|
+
* Monthly budget ranges reported during onboarding.
|
|
222
|
+
*/
|
|
223
|
+
onboarding_monthly_budget?: Array<string>;
|
|
224
|
+
/**
|
|
225
|
+
* Products of interest reported during onboarding.
|
|
226
|
+
*/
|
|
227
|
+
onboarding_product_interest?: Array<string>;
|
|
228
|
+
/**
|
|
229
|
+
* Onboarding project types.
|
|
230
|
+
*/
|
|
231
|
+
onboarding_project_types?: Array<string>;
|
|
232
|
+
/**
|
|
233
|
+
* Reasons for considering Telnyx.
|
|
234
|
+
*/
|
|
235
|
+
onboarding_reasons_for_consideration?: Array<string>;
|
|
236
|
+
/**
|
|
237
|
+
* Referral sources reported during onboarding.
|
|
238
|
+
*/
|
|
239
|
+
onboarding_referrer?: Array<string>;
|
|
240
|
+
/**
|
|
241
|
+
* Other onboarding use cases.
|
|
242
|
+
*/
|
|
243
|
+
onboarding_use_cases_other?: Array<string>;
|
|
244
|
+
/**
|
|
245
|
+
* Contact phone number associated with the profile.
|
|
246
|
+
*/
|
|
247
|
+
phone_number?: string | null;
|
|
248
|
+
/**
|
|
249
|
+
* Whether port-out PIN validation is enabled.
|
|
250
|
+
*/
|
|
251
|
+
port_out_pin_validation?: boolean;
|
|
252
|
+
/**
|
|
253
|
+
* Primary use case for the account.
|
|
254
|
+
*/
|
|
255
|
+
primary_use_case?: string;
|
|
256
|
+
/**
|
|
257
|
+
* The user's role.
|
|
258
|
+
*/
|
|
259
|
+
role?: string;
|
|
260
|
+
/**
|
|
261
|
+
* State or region in the profile address.
|
|
262
|
+
*/
|
|
263
|
+
state?: string | null;
|
|
264
|
+
/**
|
|
265
|
+
* User interface theme: 0 for dark or 1 for light.
|
|
266
|
+
*/
|
|
267
|
+
ui_theme?: 0 | 1;
|
|
268
|
+
/**
|
|
269
|
+
* Use cases reported by the user.
|
|
270
|
+
*/
|
|
271
|
+
use_cases?: Array<string>;
|
|
272
|
+
/**
|
|
273
|
+
* Whether the user opts in to subscriptions.
|
|
274
|
+
*/
|
|
275
|
+
user_subscription_opt_in?: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* Postal code in the profile address.
|
|
278
|
+
*/
|
|
279
|
+
zip?: string | null;
|
|
280
|
+
}
|
|
281
|
+
export declare namespace UserProfileResource {
|
|
282
|
+
export { type UserProfile as UserProfile, type UserProfileListResponse as UserProfileListResponse, type UserProfilePatchAllResponse as UserProfilePatchAllResponse, type UserProfilePatchAllParams as UserProfilePatchAllParams, };
|
|
283
|
+
}
|
|
284
|
+
//# sourceMappingURL=user-profile.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version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AgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B;;OAEG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Read and update the authenticated user's profile and data locality.
|
|
6
|
+
*/
|
|
7
|
+
export declare class UserProfileResource extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve the authenticated user's profile, including data locality and migration
|
|
10
|
+
* status.
|
|
11
|
+
*
|
|
12
|
+
* **Beta:** this API should be considered a beta integration target because it may
|
|
13
|
+
* change if user account settings require changes
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const userProfiles = await client.userProfile.list();
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
list(options?: RequestOptions): APIPromise<UserProfileListResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Update the authenticated user's profile using top-level JSON fields. Returns the
|
|
23
|
+
* updated profile.
|
|
24
|
+
*
|
|
25
|
+
* **Beta:** this API should be considered a beta integration target because it may
|
|
26
|
+
* change if user account settings require changes
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const response = await client.userProfile.patchAll();
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
patchAll(body: UserProfilePatchAllParams, options?: RequestOptions): APIPromise<UserProfilePatchAllResponse>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The authenticated user's profile.
|
|
37
|
+
*/
|
|
38
|
+
export interface UserProfile {
|
|
39
|
+
/**
|
|
40
|
+
* Identifier of the user profile, distinct from the user ID.
|
|
41
|
+
*/
|
|
42
|
+
id?: number;
|
|
43
|
+
/**
|
|
44
|
+
* First line of the profile address.
|
|
45
|
+
*/
|
|
46
|
+
address_1?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* Second line of the profile address.
|
|
49
|
+
*/
|
|
50
|
+
address_2?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Business name associated with the profile.
|
|
53
|
+
*/
|
|
54
|
+
business_name?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* City in the profile address.
|
|
57
|
+
*/
|
|
58
|
+
city?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Country code in the profile address.
|
|
61
|
+
*/
|
|
62
|
+
country?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* The user's data locality: USA (United States), DEU (Germany), AUS (Australia),
|
|
65
|
+
* UAE (United Arab Emirates), or CAN (Canada).
|
|
66
|
+
*/
|
|
67
|
+
data_locality?: 'USA' | 'DEU' | 'AUS' | 'UAE' | 'CAN' | null;
|
|
68
|
+
/**
|
|
69
|
+
* Status of the user's data locality migration, or null when no migration status
|
|
70
|
+
* is recorded.
|
|
71
|
+
*/
|
|
72
|
+
data_locality_migration_status?: 'not_started' | 'in_progress' | 'finished' | null;
|
|
73
|
+
/**
|
|
74
|
+
* Timestamp when the user's data locality was last changed, or null if it has not
|
|
75
|
+
* been changed.
|
|
76
|
+
*/
|
|
77
|
+
data_locality_updated_at?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* The user's first name.
|
|
80
|
+
*/
|
|
81
|
+
first_name?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
* The user's last name.
|
|
84
|
+
*/
|
|
85
|
+
last_name?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* Contact phone number associated with the profile.
|
|
88
|
+
*/
|
|
89
|
+
phone_number?: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* Identifies the type of resource.
|
|
92
|
+
*/
|
|
93
|
+
record_type?: 'user_profile';
|
|
94
|
+
/**
|
|
95
|
+
* State or region in the profile address.
|
|
96
|
+
*/
|
|
97
|
+
state?: string | null;
|
|
98
|
+
/**
|
|
99
|
+
* Timestamp of the most recent profile update.
|
|
100
|
+
*/
|
|
101
|
+
updated_at?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Identifier of the user who owns this profile.
|
|
104
|
+
*/
|
|
105
|
+
user_id?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Postal code in the profile address.
|
|
108
|
+
*/
|
|
109
|
+
zip?: string | null;
|
|
110
|
+
[k: string]: unknown;
|
|
111
|
+
}
|
|
112
|
+
export interface UserProfileListResponse {
|
|
113
|
+
/**
|
|
114
|
+
* The authenticated user's profile.
|
|
115
|
+
*/
|
|
116
|
+
data: UserProfile;
|
|
117
|
+
}
|
|
118
|
+
export interface UserProfilePatchAllResponse {
|
|
119
|
+
/**
|
|
120
|
+
* The authenticated user's profile.
|
|
121
|
+
*/
|
|
122
|
+
data: UserProfile;
|
|
123
|
+
}
|
|
124
|
+
export interface UserProfilePatchAllParams {
|
|
125
|
+
/**
|
|
126
|
+
* First line of the profile address.
|
|
127
|
+
*/
|
|
128
|
+
address_1?: string | null;
|
|
129
|
+
/**
|
|
130
|
+
* Second line of the profile address.
|
|
131
|
+
*/
|
|
132
|
+
address_2?: string | null;
|
|
133
|
+
/**
|
|
134
|
+
* Business name associated with the profile.
|
|
135
|
+
*/
|
|
136
|
+
business_name?: string | null;
|
|
137
|
+
/**
|
|
138
|
+
* City in the profile address.
|
|
139
|
+
*/
|
|
140
|
+
city?: string | null;
|
|
141
|
+
/**
|
|
142
|
+
* Company size reported by the user.
|
|
143
|
+
*/
|
|
144
|
+
company_size?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Country code in the profile address.
|
|
147
|
+
*/
|
|
148
|
+
country?: string | null;
|
|
149
|
+
/**
|
|
150
|
+
* Data locality: USA (United States), DEU (Germany), AUS (Australia), UAE (United
|
|
151
|
+
* Arab Emirates), or CAN (Canada). A change is permitted only if data locality has
|
|
152
|
+
* not previously been changed. A successful change sets data_locality_updated_at
|
|
153
|
+
* and initializes data_locality_migration_status to not_started.
|
|
154
|
+
*/
|
|
155
|
+
data_locality?: 'USA' | 'DEU' | 'AUS' | 'UAE' | 'CAN';
|
|
156
|
+
/**
|
|
157
|
+
* Default custom-pricing setting for managed accounts.
|
|
158
|
+
*/
|
|
159
|
+
default_managed_account_allow_custom_pricing?: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* Default emergency terms-of-service inheritance setting for managed accounts,
|
|
162
|
+
* where supported.
|
|
163
|
+
*/
|
|
164
|
+
default_managed_account_inherit_emergency_terms_of_service?: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* Default rollup-billing setting for managed accounts.
|
|
167
|
+
*/
|
|
168
|
+
default_managed_account_rollup_billing?: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* Default setting for notifying the manager account.
|
|
171
|
+
*/
|
|
172
|
+
default_notify_manager_account?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Default alphanumeric external PIN for phone numbers.
|
|
175
|
+
*/
|
|
176
|
+
default_numbers_external_pin?: string;
|
|
177
|
+
/**
|
|
178
|
+
* The user's first name.
|
|
179
|
+
*/
|
|
180
|
+
first_name?: string | null;
|
|
181
|
+
/**
|
|
182
|
+
* Whether the user received a free number at signup.
|
|
183
|
+
*/
|
|
184
|
+
got_free_number_at_signup?: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* The user's last name.
|
|
187
|
+
*/
|
|
188
|
+
last_name?: string | null;
|
|
189
|
+
/**
|
|
190
|
+
* Low-balance notification frequency. Organization sub-users cannot set a non-null
|
|
191
|
+
* frequency. The resulting profile must have both a threshold and frequency, or
|
|
192
|
+
* neither.
|
|
193
|
+
*/
|
|
194
|
+
low_balance_notification_frequency?: 2 | 4 | 12 | 24 | null;
|
|
195
|
+
/**
|
|
196
|
+
* Low-balance notification threshold in the billing currency. The resulting
|
|
197
|
+
* profile must have both a threshold and notification frequency, or neither.
|
|
198
|
+
*/
|
|
199
|
+
low_balance_threshold_amount?: number | null;
|
|
200
|
+
/**
|
|
201
|
+
* Whether to notify the user when an invoice is available.
|
|
202
|
+
*/
|
|
203
|
+
notify_on_invoice_available?: boolean;
|
|
204
|
+
/**
|
|
205
|
+
* Whether to notify the user when an invoice is paid.
|
|
206
|
+
*/
|
|
207
|
+
notify_on_invoice_payment?: boolean;
|
|
208
|
+
/**
|
|
209
|
+
* Whether the user is an NPAC user.
|
|
210
|
+
*/
|
|
211
|
+
npac_user?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Build methods reported during onboarding.
|
|
214
|
+
*/
|
|
215
|
+
onboarding_build_method?: Array<string>;
|
|
216
|
+
/**
|
|
217
|
+
* Industries reported during onboarding.
|
|
218
|
+
*/
|
|
219
|
+
onboarding_industries?: Array<string>;
|
|
220
|
+
/**
|
|
221
|
+
* Monthly budget ranges reported during onboarding.
|
|
222
|
+
*/
|
|
223
|
+
onboarding_monthly_budget?: Array<string>;
|
|
224
|
+
/**
|
|
225
|
+
* Products of interest reported during onboarding.
|
|
226
|
+
*/
|
|
227
|
+
onboarding_product_interest?: Array<string>;
|
|
228
|
+
/**
|
|
229
|
+
* Onboarding project types.
|
|
230
|
+
*/
|
|
231
|
+
onboarding_project_types?: Array<string>;
|
|
232
|
+
/**
|
|
233
|
+
* Reasons for considering Telnyx.
|
|
234
|
+
*/
|
|
235
|
+
onboarding_reasons_for_consideration?: Array<string>;
|
|
236
|
+
/**
|
|
237
|
+
* Referral sources reported during onboarding.
|
|
238
|
+
*/
|
|
239
|
+
onboarding_referrer?: Array<string>;
|
|
240
|
+
/**
|
|
241
|
+
* Other onboarding use cases.
|
|
242
|
+
*/
|
|
243
|
+
onboarding_use_cases_other?: Array<string>;
|
|
244
|
+
/**
|
|
245
|
+
* Contact phone number associated with the profile.
|
|
246
|
+
*/
|
|
247
|
+
phone_number?: string | null;
|
|
248
|
+
/**
|
|
249
|
+
* Whether port-out PIN validation is enabled.
|
|
250
|
+
*/
|
|
251
|
+
port_out_pin_validation?: boolean;
|
|
252
|
+
/**
|
|
253
|
+
* Primary use case for the account.
|
|
254
|
+
*/
|
|
255
|
+
primary_use_case?: string;
|
|
256
|
+
/**
|
|
257
|
+
* The user's role.
|
|
258
|
+
*/
|
|
259
|
+
role?: string;
|
|
260
|
+
/**
|
|
261
|
+
* State or region in the profile address.
|
|
262
|
+
*/
|
|
263
|
+
state?: string | null;
|
|
264
|
+
/**
|
|
265
|
+
* User interface theme: 0 for dark or 1 for light.
|
|
266
|
+
*/
|
|
267
|
+
ui_theme?: 0 | 1;
|
|
268
|
+
/**
|
|
269
|
+
* Use cases reported by the user.
|
|
270
|
+
*/
|
|
271
|
+
use_cases?: Array<string>;
|
|
272
|
+
/**
|
|
273
|
+
* Whether the user opts in to subscriptions.
|
|
274
|
+
*/
|
|
275
|
+
user_subscription_opt_in?: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* Postal code in the profile address.
|
|
278
|
+
*/
|
|
279
|
+
zip?: string | null;
|
|
280
|
+
}
|
|
281
|
+
export declare namespace UserProfileResource {
|
|
282
|
+
export { type UserProfile as UserProfile, type UserProfileListResponse as UserProfileListResponse, type UserProfilePatchAllResponse as UserProfilePatchAllResponse, type UserProfilePatchAllParams as UserProfilePatchAllParams, };
|
|
283
|
+
}
|
|
284
|
+
//# sourceMappingURL=user-profile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-profile.d.ts","sourceRoot":"","sources":["../src/resources/user-profile.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,WAAW;IAClD;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAInE;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;CAG3C;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC;IAE7D;;;OAGG;IACH,8BAA8B,CAAC,EAAE,aAAa,GAAG,aAAa,GAAG,UAAU,GAAG,IAAI,CAAC;IAEnF;;;OAGG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAA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7B;;OAEG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAElC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B;;OAEG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.UserProfileResource = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
/**
|
|
7
|
+
* Read and update the authenticated user's profile and data locality.
|
|
8
|
+
*/
|
|
9
|
+
class UserProfileResource extends resource_1.APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve the authenticated user's profile, including data locality and migration
|
|
12
|
+
* status.
|
|
13
|
+
*
|
|
14
|
+
* **Beta:** this API should be considered a beta integration target because it may
|
|
15
|
+
* change if user account settings require changes
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const userProfiles = await client.userProfile.list();
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
list(options) {
|
|
23
|
+
return this._client.get('/user_profile', options);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Update the authenticated user's profile using top-level JSON fields. Returns the
|
|
27
|
+
* updated profile.
|
|
28
|
+
*
|
|
29
|
+
* **Beta:** this API should be considered a beta integration target because it may
|
|
30
|
+
* change if user account settings require changes
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const response = await client.userProfile.patchAll();
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
patchAll(body, options) {
|
|
38
|
+
return this._client.patch('/user_profile', { body, ...options });
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.UserProfileResource = UserProfileResource;
|
|
42
|
+
//# sourceMappingURL=user-profile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-profile.js","sourceRoot":"","sources":["../src/resources/user-profile.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;GAEG;AACH,MAAa,mBAAoB,SAAQ,sBAAW;IAClD;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AAnCD,kDAmCC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* Read and update the authenticated user's profile and data locality.
|
|
5
|
+
*/
|
|
6
|
+
export class UserProfileResource extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve the authenticated user's profile, including data locality and migration
|
|
9
|
+
* status.
|
|
10
|
+
*
|
|
11
|
+
* **Beta:** this API should be considered a beta integration target because it may
|
|
12
|
+
* change if user account settings require changes
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const userProfiles = await client.userProfile.list();
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
list(options) {
|
|
20
|
+
return this._client.get('/user_profile', options);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Update the authenticated user's profile using top-level JSON fields. Returns the
|
|
24
|
+
* updated profile.
|
|
25
|
+
*
|
|
26
|
+
* **Beta:** this API should be considered a beta integration target because it may
|
|
27
|
+
* change if user account settings require changes
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const response = await client.userProfile.patchAll();
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
patchAll(body, options) {
|
|
35
|
+
return this._client.patch('/user_profile', { body, ...options });
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=user-profile.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-profile.mjs","sourceRoot":"","sources":["../src/resources/user-profile.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAClD;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;CACF"}
|