telnyx 7.11.0 → 7.13.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 +24 -0
- package/client.d.mts +56 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +56 -2
- package/client.d.ts.map +1 -1
- package/client.js +54 -0
- package/client.js.map +1 -1
- package/client.mjs +54 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +6 -0
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +6 -0
- 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/anthropic/v1.d.mts +3 -1
- package/resources/ai/anthropic/v1.d.mts.map +1 -1
- package/resources/ai/anthropic/v1.d.ts +3 -1
- package/resources/ai/anthropic/v1.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +6 -2
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +6 -2
- 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/chat.d.mts +6 -0
- package/resources/ai/chat.d.mts.map +1 -1
- package/resources/ai/chat.d.ts +6 -0
- package/resources/ai/chat.d.ts.map +1 -1
- package/resources/ai/openai/chat.d.mts +6 -0
- package/resources/ai/openai/chat.d.mts.map +1 -1
- package/resources/ai/openai/chat.d.ts +6 -0
- package/resources/ai/openai/chat.d.ts.map +1 -1
- package/resources/ai/openai/openai.d.mts +6 -0
- package/resources/ai/openai/openai.d.mts.map +1 -1
- package/resources/ai/openai/openai.d.ts +6 -0
- package/resources/ai/openai/openai.d.ts.map +1 -1
- package/resources/ai/openai/openai.js.map +1 -1
- package/resources/ai/openai/openai.mjs.map +1 -1
- package/resources/calls/actions.d.mts +223 -48
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +223 -48
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/actions.js +31 -0
- package/resources/calls/actions.js.map +1 -1
- package/resources/calls/actions.mjs +31 -0
- package/resources/calls/actions.mjs.map +1 -1
- package/resources/calls/calls.d.mts +3 -2
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +3 -2
- 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/custom-storage-credentials.d.mts +110 -14
- package/resources/custom-storage-credentials.d.mts.map +1 -1
- package/resources/custom-storage-credentials.d.ts +110 -14
- package/resources/custom-storage-credentials.d.ts.map +1 -1
- package/resources/dir/dir.d.mts +3 -2
- package/resources/dir/dir.d.mts.map +1 -1
- package/resources/dir/dir.d.ts +3 -2
- package/resources/dir/dir.d.ts.map +1 -1
- package/resources/dir/dir.js +3 -2
- package/resources/dir/dir.js.map +1 -1
- package/resources/dir/dir.mjs +3 -2
- package/resources/dir/dir.mjs.map +1 -1
- package/resources/dir/references.d.mts +41 -11
- package/resources/dir/references.d.mts.map +1 -1
- package/resources/dir/references.d.ts +41 -11
- package/resources/dir/references.d.ts.map +1 -1
- package/resources/dir/references.js +30 -8
- package/resources/dir/references.js.map +1 -1
- package/resources/dir/references.mjs +30 -8
- package/resources/dir/references.mjs.map +1 -1
- package/resources/dir/verify-email.d.mts +10 -0
- package/resources/dir/verify-email.d.mts.map +1 -1
- package/resources/dir/verify-email.d.ts +10 -0
- package/resources/dir/verify-email.d.ts.map +1 -1
- package/resources/email-blocks/email-blocks.d.mts +255 -0
- package/resources/email-blocks/email-blocks.d.mts.map +1 -0
- package/resources/email-blocks/email-blocks.d.ts +255 -0
- package/resources/email-blocks/email-blocks.d.ts.map +1 -0
- package/resources/email-blocks/email-blocks.js +99 -0
- package/resources/email-blocks/email-blocks.js.map +1 -0
- package/resources/email-blocks/email-blocks.mjs +94 -0
- package/resources/email-blocks/email-blocks.mjs.map +1 -0
- package/resources/email-blocks/import.d.mts +111 -0
- package/resources/email-blocks/import.d.mts.map +1 -0
- package/resources/email-blocks/import.d.ts +111 -0
- package/resources/email-blocks/import.d.ts.map +1 -0
- package/resources/email-blocks/import.js +40 -0
- package/resources/email-blocks/import.js.map +1 -0
- package/resources/email-blocks/import.mjs +36 -0
- package/resources/email-blocks/import.mjs.map +1 -0
- package/resources/email-blocks/index.d.mts +3 -0
- package/resources/email-blocks/index.d.mts.map +1 -0
- package/resources/email-blocks/index.d.ts +3 -0
- package/resources/email-blocks/index.d.ts.map +1 -0
- package/resources/email-blocks/index.js +9 -0
- package/resources/email-blocks/index.js.map +1 -0
- package/resources/email-blocks/index.mjs +4 -0
- package/resources/email-blocks/index.mjs.map +1 -0
- package/resources/email-blocks.d.mts +2 -0
- package/resources/email-blocks.d.mts.map +1 -0
- package/resources/email-blocks.d.ts +2 -0
- package/resources/email-blocks.d.ts.map +1 -0
- package/resources/email-blocks.js +6 -0
- package/resources/email-blocks.js.map +1 -0
- package/resources/email-blocks.mjs +3 -0
- package/resources/email-blocks.mjs.map +1 -0
- package/resources/email-domains/email-domains.d.mts +344 -0
- package/resources/email-domains/email-domains.d.mts.map +1 -0
- package/resources/email-domains/email-domains.d.ts +344 -0
- package/resources/email-domains/email-domains.d.ts.map +1 -0
- package/resources/email-domains/email-domains.js +146 -0
- package/resources/email-domains/email-domains.js.map +1 -0
- package/resources/email-domains/email-domains.mjs +141 -0
- package/resources/email-domains/email-domains.mjs.map +1 -0
- package/resources/email-domains/index.d.mts +3 -0
- package/resources/email-domains/index.d.mts.map +1 -0
- package/resources/email-domains/index.d.ts +3 -0
- package/resources/email-domains/index.d.ts.map +1 -0
- package/resources/email-domains/index.js +9 -0
- package/resources/email-domains/index.js.map +1 -0
- package/resources/email-domains/index.mjs +4 -0
- package/resources/email-domains/index.mjs.map +1 -0
- package/resources/email-domains/webhooks.d.mts +170 -0
- package/resources/email-domains/webhooks.d.mts.map +1 -0
- package/resources/email-domains/webhooks.d.ts +170 -0
- package/resources/email-domains/webhooks.d.ts.map +1 -0
- package/resources/email-domains/webhooks.js +110 -0
- package/resources/email-domains/webhooks.js.map +1 -0
- package/resources/email-domains/webhooks.mjs +106 -0
- package/resources/email-domains/webhooks.mjs.map +1 -0
- package/resources/email-domains.d.mts +2 -0
- package/resources/email-domains.d.mts.map +1 -0
- package/resources/email-domains.d.ts +2 -0
- package/resources/email-domains.d.ts.map +1 -0
- package/resources/email-domains.js +6 -0
- package/resources/email-domains.js.map +1 -0
- package/resources/email-domains.mjs +3 -0
- package/resources/email-domains.mjs.map +1 -0
- package/resources/email-events.d.mts +186 -0
- package/resources/email-events.d.mts.map +1 -0
- package/resources/email-events.d.ts +186 -0
- package/resources/email-events.d.ts.map +1 -0
- package/resources/email-events.js +26 -0
- package/resources/email-events.js.map +1 -0
- package/resources/email-events.mjs +22 -0
- package/resources/email-events.mjs.map +1 -0
- package/resources/email-inboxes/drafts.d.mts +549 -0
- package/resources/email-inboxes/drafts.d.mts.map +1 -0
- package/resources/email-inboxes/drafts.d.ts +549 -0
- package/resources/email-inboxes/drafts.d.ts.map +1 -0
- package/resources/email-inboxes/drafts.js +161 -0
- package/resources/email-inboxes/drafts.js.map +1 -0
- package/resources/email-inboxes/drafts.mjs +157 -0
- package/resources/email-inboxes/drafts.mjs.map +1 -0
- package/resources/email-inboxes/email-inboxes.d.mts +131 -0
- package/resources/email-inboxes/email-inboxes.d.mts.map +1 -0
- package/resources/email-inboxes/email-inboxes.d.ts +131 -0
- package/resources/email-inboxes/email-inboxes.d.ts.map +1 -0
- package/resources/email-inboxes/email-inboxes.js +93 -0
- package/resources/email-inboxes/email-inboxes.js.map +1 -0
- package/resources/email-inboxes/email-inboxes.mjs +88 -0
- package/resources/email-inboxes/email-inboxes.mjs.map +1 -0
- package/resources/email-inboxes/filters.d.mts +137 -0
- package/resources/email-inboxes/filters.d.mts.map +1 -0
- package/resources/email-inboxes/filters.d.ts +137 -0
- package/resources/email-inboxes/filters.d.ts.map +1 -0
- package/resources/email-inboxes/filters.js +81 -0
- package/resources/email-inboxes/filters.js.map +1 -0
- package/resources/email-inboxes/filters.mjs +77 -0
- package/resources/email-inboxes/filters.mjs.map +1 -0
- package/resources/email-inboxes/index.d.mts +6 -0
- package/resources/email-inboxes/index.d.mts.map +1 -0
- package/resources/email-inboxes/index.d.ts +6 -0
- package/resources/email-inboxes/index.d.ts.map +1 -0
- package/resources/email-inboxes/index.js +15 -0
- package/resources/email-inboxes/index.js.map +1 -0
- package/resources/email-inboxes/index.mjs +7 -0
- package/resources/email-inboxes/index.mjs.map +1 -0
- package/resources/email-inboxes/messages/actions.d.mts +190 -0
- package/resources/email-inboxes/messages/actions.d.mts.map +1 -0
- package/resources/email-inboxes/messages/actions.d.ts +190 -0
- package/resources/email-inboxes/messages/actions.d.ts.map +1 -0
- package/resources/email-inboxes/messages/actions.js +106 -0
- package/resources/email-inboxes/messages/actions.js.map +1 -0
- package/resources/email-inboxes/messages/actions.mjs +102 -0
- package/resources/email-inboxes/messages/actions.mjs.map +1 -0
- package/resources/email-inboxes/messages/index.d.mts +4 -0
- package/resources/email-inboxes/messages/index.d.mts.map +1 -0
- package/resources/email-inboxes/messages/index.d.ts +4 -0
- package/resources/email-inboxes/messages/index.d.ts.map +1 -0
- package/resources/email-inboxes/messages/index.js +11 -0
- package/resources/email-inboxes/messages/index.js.map +1 -0
- package/resources/email-inboxes/messages/index.mjs +5 -0
- package/resources/email-inboxes/messages/index.mjs.map +1 -0
- package/resources/email-inboxes/messages/labels.d.mts +101 -0
- package/resources/email-inboxes/messages/labels.d.mts.map +1 -0
- package/resources/email-inboxes/messages/labels.d.ts +101 -0
- package/resources/email-inboxes/messages/labels.d.ts.map +1 -0
- package/resources/email-inboxes/messages/labels.js +69 -0
- package/resources/email-inboxes/messages/labels.js.map +1 -0
- package/resources/email-inboxes/messages/labels.mjs +65 -0
- package/resources/email-inboxes/messages/labels.mjs.map +1 -0
- package/resources/email-inboxes/messages/messages.d.mts +212 -0
- package/resources/email-inboxes/messages/messages.d.mts.map +1 -0
- package/resources/email-inboxes/messages/messages.d.ts +212 -0
- package/resources/email-inboxes/messages/messages.d.ts.map +1 -0
- package/resources/email-inboxes/messages/messages.js +89 -0
- package/resources/email-inboxes/messages/messages.js.map +1 -0
- package/resources/email-inboxes/messages/messages.mjs +84 -0
- package/resources/email-inboxes/messages/messages.mjs.map +1 -0
- package/resources/email-inboxes/messages.d.mts +2 -0
- package/resources/email-inboxes/messages.d.mts.map +1 -0
- package/resources/email-inboxes/messages.d.ts +2 -0
- package/resources/email-inboxes/messages.d.ts.map +1 -0
- package/resources/email-inboxes/messages.js +6 -0
- package/resources/email-inboxes/messages.js.map +1 -0
- package/resources/email-inboxes/messages.mjs +3 -0
- package/resources/email-inboxes/messages.mjs.map +1 -0
- package/resources/email-inboxes/threads/index.d.mts +3 -0
- package/resources/email-inboxes/threads/index.d.mts.map +1 -0
- package/resources/email-inboxes/threads/index.d.ts +3 -0
- package/resources/email-inboxes/threads/index.d.ts.map +1 -0
- package/resources/email-inboxes/threads/index.js +9 -0
- package/resources/email-inboxes/threads/index.js.map +1 -0
- package/resources/email-inboxes/threads/index.mjs +4 -0
- package/resources/email-inboxes/threads/index.mjs.map +1 -0
- package/resources/email-inboxes/threads/labels.d.mts +99 -0
- package/resources/email-inboxes/threads/labels.d.mts.map +1 -0
- package/resources/email-inboxes/threads/labels.d.ts +99 -0
- package/resources/email-inboxes/threads/labels.d.ts.map +1 -0
- package/resources/email-inboxes/threads/labels.js +64 -0
- package/resources/email-inboxes/threads/labels.js.map +1 -0
- package/resources/email-inboxes/threads/labels.mjs +60 -0
- package/resources/email-inboxes/threads/labels.mjs.map +1 -0
- package/resources/email-inboxes/threads/threads.d.mts +199 -0
- package/resources/email-inboxes/threads/threads.d.mts.map +1 -0
- package/resources/email-inboxes/threads/threads.d.ts +199 -0
- package/resources/email-inboxes/threads/threads.d.ts.map +1 -0
- package/resources/email-inboxes/threads/threads.js +51 -0
- package/resources/email-inboxes/threads/threads.js.map +1 -0
- package/resources/email-inboxes/threads/threads.mjs +46 -0
- package/resources/email-inboxes/threads/threads.mjs.map +1 -0
- package/resources/email-inboxes/threads.d.mts +2 -0
- package/resources/email-inboxes/threads.d.mts.map +1 -0
- package/resources/email-inboxes/threads.d.ts +2 -0
- package/resources/email-inboxes/threads.d.ts.map +1 -0
- package/resources/email-inboxes/threads.js +6 -0
- package/resources/email-inboxes/threads.js.map +1 -0
- package/resources/email-inboxes/threads.mjs +3 -0
- package/resources/email-inboxes/threads.mjs.map +1 -0
- package/resources/email-inboxes.d.mts +2 -0
- package/resources/email-inboxes.d.mts.map +1 -0
- package/resources/email-inboxes.d.ts +2 -0
- package/resources/email-inboxes.d.ts.map +1 -0
- package/resources/email-inboxes.js +6 -0
- package/resources/email-inboxes.js.map +1 -0
- package/resources/email-inboxes.mjs +3 -0
- package/resources/email-inboxes.mjs.map +1 -0
- package/resources/email-messages/email-messages.d.mts +543 -0
- package/resources/email-messages/email-messages.d.mts.map +1 -0
- package/resources/email-messages/email-messages.d.ts +543 -0
- package/resources/email-messages/email-messages.d.ts.map +1 -0
- package/resources/email-messages/email-messages.js +186 -0
- package/resources/email-messages/email-messages.js.map +1 -0
- package/resources/email-messages/email-messages.mjs +181 -0
- package/resources/email-messages/email-messages.mjs.map +1 -0
- package/resources/email-messages/index.d.mts +3 -0
- package/resources/email-messages/index.d.mts.map +1 -0
- package/resources/email-messages/index.d.ts +3 -0
- package/resources/email-messages/index.d.ts.map +1 -0
- package/resources/email-messages/index.js +9 -0
- package/resources/email-messages/index.js.map +1 -0
- package/resources/email-messages/index.mjs +4 -0
- package/resources/email-messages/index.mjs.map +1 -0
- package/resources/email-messages/recipients.d.mts +118 -0
- package/resources/email-messages/recipients.d.mts.map +1 -0
- package/resources/email-messages/recipients.d.ts +118 -0
- package/resources/email-messages/recipients.d.ts.map +1 -0
- package/resources/email-messages/recipients.js +48 -0
- package/resources/email-messages/recipients.js.map +1 -0
- package/resources/email-messages/recipients.mjs +44 -0
- package/resources/email-messages/recipients.mjs.map +1 -0
- package/resources/email-messages.d.mts +2 -0
- package/resources/email-messages.d.mts.map +1 -0
- package/resources/email-messages.d.ts +2 -0
- package/resources/email-messages.d.ts.map +1 -0
- package/resources/email-messages.js +6 -0
- package/resources/email-messages.js.map +1 -0
- package/resources/email-messages.mjs +3 -0
- package/resources/email-messages.mjs.map +1 -0
- package/resources/email-templates.d.mts +236 -0
- package/resources/email-templates.d.mts.map +1 -0
- package/resources/email-templates.d.ts +236 -0
- package/resources/email-templates.d.ts.map +1 -0
- package/resources/email-templates.js +124 -0
- package/resources/email-templates.js.map +1 -0
- package/resources/email-templates.mjs +120 -0
- package/resources/email-templates.mjs.map +1 -0
- package/resources/email-threads.d.mts +71 -0
- package/resources/email-threads.d.mts.map +1 -0
- package/resources/email-threads.d.ts +71 -0
- package/resources/email-threads.d.ts.map +1 -0
- package/resources/email-threads.js +34 -0
- package/resources/email-threads.js.map +1 -0
- package/resources/email-threads.mjs +30 -0
- package/resources/email-threads.mjs.map +1 -0
- package/resources/email-unsubscribe-groups/email-unsubscribe-groups.d.mts +90 -0
- package/resources/email-unsubscribe-groups/email-unsubscribe-groups.d.mts.map +1 -0
- package/resources/email-unsubscribe-groups/email-unsubscribe-groups.d.ts +90 -0
- package/resources/email-unsubscribe-groups/email-unsubscribe-groups.d.ts.map +1 -0
- package/resources/email-unsubscribe-groups/email-unsubscribe-groups.js +70 -0
- package/resources/email-unsubscribe-groups/email-unsubscribe-groups.js.map +1 -0
- package/resources/email-unsubscribe-groups/email-unsubscribe-groups.mjs +65 -0
- package/resources/email-unsubscribe-groups/email-unsubscribe-groups.mjs.map +1 -0
- package/resources/email-unsubscribe-groups/index.d.mts +3 -0
- package/resources/email-unsubscribe-groups/index.d.mts.map +1 -0
- package/resources/email-unsubscribe-groups/index.d.ts +3 -0
- package/resources/email-unsubscribe-groups/index.d.ts.map +1 -0
- package/resources/email-unsubscribe-groups/index.js +9 -0
- package/resources/email-unsubscribe-groups/index.js.map +1 -0
- package/resources/email-unsubscribe-groups/index.mjs +4 -0
- package/resources/email-unsubscribe-groups/index.mjs.map +1 -0
- package/resources/email-unsubscribe-groups/suppressions.d.mts +54 -0
- package/resources/email-unsubscribe-groups/suppressions.d.mts.map +1 -0
- package/resources/email-unsubscribe-groups/suppressions.d.ts +54 -0
- package/resources/email-unsubscribe-groups/suppressions.d.ts.map +1 -0
- package/resources/email-unsubscribe-groups/suppressions.js +52 -0
- package/resources/email-unsubscribe-groups/suppressions.js.map +1 -0
- package/resources/email-unsubscribe-groups/suppressions.mjs +48 -0
- package/resources/email-unsubscribe-groups/suppressions.mjs.map +1 -0
- package/resources/email-unsubscribe-groups.d.mts +2 -0
- package/resources/email-unsubscribe-groups.d.mts.map +1 -0
- package/resources/email-unsubscribe-groups.d.ts +2 -0
- package/resources/email-unsubscribe-groups.d.ts.map +1 -0
- package/resources/email-unsubscribe-groups.js +6 -0
- package/resources/email-unsubscribe-groups.js.map +1 -0
- package/resources/email-unsubscribe-groups.mjs +3 -0
- package/resources/email-unsubscribe-groups.mjs.map +1 -0
- package/resources/email-validations/batch.d.mts +136 -0
- package/resources/email-validations/batch.d.mts.map +1 -0
- package/resources/email-validations/batch.d.ts +136 -0
- package/resources/email-validations/batch.d.ts.map +1 -0
- package/resources/email-validations/batch.js +51 -0
- package/resources/email-validations/batch.js.map +1 -0
- package/resources/email-validations/batch.mjs +47 -0
- package/resources/email-validations/batch.mjs.map +1 -0
- package/resources/email-validations/email-validations.d.mts +87 -0
- package/resources/email-validations/email-validations.d.mts.map +1 -0
- package/resources/email-validations/email-validations.d.ts +87 -0
- package/resources/email-validations/email-validations.d.ts.map +1 -0
- package/resources/email-validations/email-validations.js +43 -0
- package/resources/email-validations/email-validations.js.map +1 -0
- package/resources/email-validations/email-validations.mjs +38 -0
- package/resources/email-validations/email-validations.mjs.map +1 -0
- package/resources/email-validations/index.d.mts +3 -0
- package/resources/email-validations/index.d.mts.map +1 -0
- package/resources/email-validations/index.d.ts +3 -0
- package/resources/email-validations/index.d.ts.map +1 -0
- package/resources/email-validations/index.js +9 -0
- package/resources/email-validations/index.js.map +1 -0
- package/resources/email-validations/index.mjs +4 -0
- package/resources/email-validations/index.mjs.map +1 -0
- package/resources/email-validations.d.mts +2 -0
- package/resources/email-validations.d.mts.map +1 -0
- package/resources/email-validations.d.ts +2 -0
- package/resources/email-validations.d.ts.map +1 -0
- package/resources/email-validations.js +6 -0
- package/resources/email-validations.js.map +1 -0
- package/resources/email-validations.mjs +3 -0
- package/resources/email-validations.mjs.map +1 -0
- package/resources/index.d.mts +11 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +24 -4
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +10 -0
- package/resources/index.mjs.map +1 -1
- package/resources/pricing/index.d.mts +3 -0
- package/resources/pricing/index.d.mts.map +1 -0
- package/resources/pricing/index.d.ts +3 -0
- package/resources/pricing/index.d.ts.map +1 -0
- package/resources/pricing/index.js +9 -0
- package/resources/pricing/index.js.map +1 -0
- package/resources/pricing/index.mjs +4 -0
- package/resources/pricing/index.mjs.map +1 -0
- package/resources/pricing/pricing.d.mts +10 -0
- package/resources/pricing/pricing.d.mts.map +1 -0
- package/resources/pricing/pricing.d.ts +10 -0
- package/resources/pricing/pricing.d.ts.map +1 -0
- package/resources/pricing/pricing.js +17 -0
- package/resources/pricing/pricing.js.map +1 -0
- package/resources/pricing/pricing.mjs +12 -0
- package/resources/pricing/pricing.mjs.map +1 -0
- package/resources/pricing/products.d.mts +161 -0
- package/resources/pricing/products.d.mts.map +1 -0
- package/resources/pricing/products.d.ts +161 -0
- package/resources/pricing/products.d.ts.map +1 -0
- package/resources/pricing/products.js +32 -0
- package/resources/pricing/products.js.map +1 -0
- package/resources/pricing/products.mjs +28 -0
- package/resources/pricing/products.mjs.map +1 -0
- package/resources/pricing.d.mts +2 -0
- package/resources/pricing.d.mts.map +1 -0
- package/resources/pricing.d.ts +2 -0
- package/resources/pricing.d.ts.map +1 -0
- package/resources/pricing.js +6 -0
- package/resources/pricing.js.map +1 -0
- package/resources/pricing.mjs +3 -0
- package/resources/pricing.mjs.map +1 -0
- package/resources/speech-to-text/speech-to-text.d.mts +4 -4
- package/resources/speech-to-text/speech-to-text.d.mts.map +1 -1
- package/resources/speech-to-text/speech-to-text.d.ts +4 -4
- package/resources/speech-to-text/speech-to-text.d.ts.map +1 -1
- package/resources/speech-to-text/speech-to-text.js +1 -1
- package/resources/speech-to-text/speech-to-text.mjs +1 -1
- package/resources/uac-connections/uac-connections.d.mts +5 -0
- package/resources/uac-connections/uac-connections.d.mts.map +1 -1
- package/resources/uac-connections/uac-connections.d.ts +5 -0
- package/resources/uac-connections/uac-connections.d.ts.map +1 -1
- package/resources/uac-connections/uac-connections.js.map +1 -1
- package/resources/uac-connections/uac-connections.mjs.map +1 -1
- package/resources/webhooks.d.mts +483 -85
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +483 -85
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +260 -0
- package/src/resources/ai/ai.ts +7 -0
- package/src/resources/ai/anthropic/v1.ts +3 -1
- package/src/resources/ai/assistants/assistants.ts +6 -1
- package/src/resources/ai/chat.ts +7 -0
- package/src/resources/ai/openai/chat.ts +7 -0
- package/src/resources/ai/openai/openai.ts +7 -0
- package/src/resources/calls/actions.ts +269 -51
- package/src/resources/calls/calls.ts +8 -0
- package/src/resources/calls/index.ts +3 -0
- package/src/resources/custom-storage-credentials.ts +140 -14
- package/src/resources/dir/dir.ts +3 -2
- package/src/resources/dir/references.ts +41 -11
- package/src/resources/dir/verify-email.ts +12 -0
- package/src/resources/email-blocks/email-blocks.ts +358 -0
- package/src/resources/email-blocks/import.ts +143 -0
- package/src/resources/email-blocks/index.ts +16 -0
- package/src/resources/email-blocks.ts +3 -0
- package/src/resources/email-domains/email-domains.ts +510 -0
- package/src/resources/email-domains/index.ts +33 -0
- package/src/resources/email-domains/webhooks.ts +267 -0
- package/src/resources/email-domains.ts +3 -0
- package/src/resources/email-events.ts +269 -0
- package/src/resources/email-inboxes/drafts.ts +746 -0
- package/src/resources/email-inboxes/email-inboxes.ts +276 -0
- package/src/resources/email-inboxes/filters.ts +193 -0
- package/src/resources/email-inboxes/index.ts +58 -0
- package/src/resources/email-inboxes/messages/actions.ts +258 -0
- package/src/resources/email-inboxes/messages/index.ts +27 -0
- package/src/resources/email-inboxes/messages/labels.ts +139 -0
- package/src/resources/email-inboxes/messages/messages.ts +313 -0
- package/src/resources/email-inboxes/messages.ts +3 -0
- package/src/resources/email-inboxes/threads/index.ts +21 -0
- package/src/resources/email-inboxes/threads/labels.ts +143 -0
- package/src/resources/email-inboxes/threads/threads.ts +292 -0
- package/src/resources/email-inboxes/threads.ts +3 -0
- package/src/resources/email-inboxes.ts +3 -0
- package/src/resources/email-messages/email-messages.ts +713 -0
- package/src/resources/email-messages/index.ts +26 -0
- package/src/resources/email-messages/recipients.ts +182 -0
- package/src/resources/email-messages.ts +3 -0
- package/src/resources/email-templates.ts +333 -0
- package/src/resources/email-threads.ts +100 -0
- package/src/resources/email-unsubscribe-groups/email-unsubscribe-groups.ts +171 -0
- package/src/resources/email-unsubscribe-groups/index.ts +19 -0
- package/src/resources/email-unsubscribe-groups/suppressions.ts +90 -0
- package/src/resources/email-unsubscribe-groups.ts +3 -0
- package/src/resources/email-validations/batch.ts +187 -0
- package/src/resources/email-validations/email-validations.ts +141 -0
- package/src/resources/email-validations/index.ts +15 -0
- package/src/resources/email-validations.ts +3 -0
- package/src/resources/index.ts +103 -0
- package/src/resources/pricing/index.ts +13 -0
- package/src/resources/pricing/pricing.ts +33 -0
- package/src/resources/pricing/products.ts +226 -0
- package/src/resources/pricing.ts +3 -0
- package/src/resources/speech-to-text/speech-to-text.ts +6 -3
- package/src/resources/uac-connections/uac-connections.ts +6 -0
- package/src/resources/webhooks.ts +636 -110
- 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/index.mjs
CHANGED
|
@@ -36,6 +36,15 @@ export { DocumentLinks, } from "./document-links.mjs";
|
|
|
36
36
|
export { Documents, } from "./documents.mjs";
|
|
37
37
|
export { DynamicEmergencyAddresses, } from "./dynamic-emergency-addresses.mjs";
|
|
38
38
|
export { DynamicEmergencyEndpoints, } from "./dynamic-emergency-endpoints.mjs";
|
|
39
|
+
export { EmailBlocks, } from "./email-blocks/email-blocks.mjs";
|
|
40
|
+
export { EmailDomains, } from "./email-domains/email-domains.mjs";
|
|
41
|
+
export { EmailEvents, } from "./email-events.mjs";
|
|
42
|
+
export { EmailInboxes, } from "./email-inboxes/email-inboxes.mjs";
|
|
43
|
+
export { EmailMessages, } from "./email-messages/email-messages.mjs";
|
|
44
|
+
export { EmailTemplates, } from "./email-templates.mjs";
|
|
45
|
+
export { EmailThreads, } from "./email-threads.mjs";
|
|
46
|
+
export { EmailUnsubscribeGroups, } from "./email-unsubscribe-groups/email-unsubscribe-groups.mjs";
|
|
47
|
+
export { EmailValidations, } from "./email-validations/email-validations.mjs";
|
|
39
48
|
export { Enterprises, } from "./enterprises/enterprises.mjs";
|
|
40
49
|
export { ExternalConnections, } from "./external-connections/external-connections.mjs";
|
|
41
50
|
export { FaxApplications, } from "./fax-applications.mjs";
|
|
@@ -109,6 +118,7 @@ export { Porting } from "./porting/porting.mjs";
|
|
|
109
118
|
export { PortingOrders, } from "./porting-orders/porting-orders.mjs";
|
|
110
119
|
export { PortingPhoneNumbers, } from "./porting-phone-numbers.mjs";
|
|
111
120
|
export { Portouts, } from "./portouts/portouts.mjs";
|
|
121
|
+
export { Pricing } from "./pricing/pricing.mjs";
|
|
112
122
|
export { PrivateWirelessGateways, } from "./private-wireless-gateways.mjs";
|
|
113
123
|
export { PronunciationDicts, } from "./pronunciation-dicts.mjs";
|
|
114
124
|
export { PublicInternetGateways, } from "./public-internet-gateways.mjs";
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,6BAAyB;AACzB,OAAO,EACL,EAAE,GAOH,oBAAgB;AACjB,OAAO,EACL,eAAe,GAOhB,gCAA4B;AAC7B,OAAO,EACL,cAAc,GAKf,+BAA2B;AAC5B,OAAO,EAAE,OAAO,EAAsB,8BAA0B;AAChE,OAAO,EACL,SAAS,GAQV,kCAA8B;AAC/B,OAAO,EACL,cAAc,GAMf,8BAA0B;AAC3B,OAAO,EACL,qBAAqB,GAQtB,sCAAkC;AACnC,OAAO,EACL,WAAW,GAIZ,2BAAuB;AACxB,OAAO,EACL,uBAAuB,GAYxB,uCAAmC;AACpC,OAAO,EACL,0BAA0B,GAG3B,4CAAwC;AACzC,OAAO,EACL,qBAAqB,GAGtB,sCAAkC;AACnC,OAAO,EAAE,OAAO,EAAgC,sBAAkB;AAClE,OAAO,EACL,aAAa,GAUd,6BAAyB;AAC1B,OAAO,EACL,kBAAkB,GAMnB,oCAAgC;AACjC,OAAO,EAAE,aAAa,EAAE,4CAAwC;AAChE,OAAO,EACL,uBAAuB,GAYxB,wCAAoC;AACrC,OAAO,EACL,UAAU,GAIX,0BAAsB;AACvB,OAAO,EACL,WAAW,GAOZ,2BAAuB;AACxB,OAAO,EACL,KAAK,GAiBN,0BAAsB;AACvB,OAAO,EACL,YAAY,GAKb,4BAAwB;AACzB,OAAO,EACL,gBAAgB,GAGjB,gCAA4B;AAC7B,OAAO,EACL,c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O,EACL,YAAY,GAQb,6BAAyB;AAC1B,OAAO,EACL,qBAAqB,GAatB,sCAAkC;AACnC,OAAO,EACL,cAAc,GAef,8CAA0C;AAC3C,OAAO,EACL,YAAY,GAMb,4BAAwB;AACzB,OAAO,EACL,aAAa,GAOd,6BAAyB;AAC1B,OAAO,EAAE,QAAQ,EAAoD,wBAAoB;AACzF,OAAO,EACL,aAAa,GASd,0CAAsC;AACvC,OAAO,EACL,eAAe,GAOhB,gDAA4C;AAC7C,OAAO,EACL,cAAc,GAYf,8BAA0B;AAC3B,OAAO,EACL,oBAAoB,GAarB,qCAAiC;AAClC,OAAO,EACL,4BAA4B,GAI7B,8CAA0C;AAC3C,OAAO,EACL,WAAW,GASZ,2BAAuB;AACxB,OAAO,EACL,YAAY,GAYb,4BAAwB;AACzB,OAAO,EACL,mBAAmB,GAMpB,qCAAiC;AAClC,OAAO,EACL,iBAAiB,GAOlB,iCAA6B;AAC9B,OAAO,EACL,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,6BAAyB;AACzB,OAAO,EACL,EAAE,GAOH,oBAAgB;AACjB,OAAO,EACL,eAAe,GAOhB,gCAA4B;AAC7B,OAAO,EACL,cAAc,GAKf,+BAA2B;AAC5B,OAAO,EAAE,OAAO,EAAsB,8BAA0B;AAChE,OAAO,EACL,SAAS,GAQV,kCAA8B;AAC/B,OAAO,EACL,cAAc,GAMf,8BAA0B;AAC3B,OAAO,EACL,qBAAqB,GAQtB,sCAAkC;AACnC,OAAO,EACL,WAAW,GAIZ,2BAAuB;AACxB,OAAO,EACL,uBAAuB,GAYxB,uCAAmC;AACpC,OAAO,EACL,0BAA0B,GAG3B,4CAAwC;AACzC,OAAO,EACL,qBAAqB,GAGtB,sCAAkC;AACnC,OAAO,EAAE,OAAO,EAAgC,sBAAkB;AAClE,OAAO,EACL,aAAa,GAUd,6BAAyB;AAC1B,OAAO,E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,qCAAiC;AAClC,OAAO,EACL,iBAAiB,GAOlB,iCAA6B;AAC9B,OAAO,EACL,QAAQ,GA2HT,uBAAmB;AACpB,OAAO,EACL,SAAS,GAGV,yBAAqB;AACtB,OAAO,EAAE,QAAQ,EAAE,gCAA4B;AAC/C,OAAO,EACL,wBAAwB,GAIzB,yCAAqC;AACtC,OAAO,EACL,mBAAmB,GASpB,mCAA+B;AAChC,OAAO,EACL,cAAc,GAYf,8BAA0B;AAC3B,OAAO,EACL,QAAQ,GAGT,gCAA4B;AAC7B,OAAO,EACL,uBAAuB,GAGxB,wCAAoC;AACrC,OAAO,EACL,kBAAkB,GAUnB,kCAA8B;AAC/B,OAAO,EAAE,IAAI,EAAE,wBAAoB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Pricing } from "./pricing.mjs";
|
|
2
|
+
export { Products, type PricingPaginationMeta, type PricingTier, type ProductRetrieveResponse, type ProductListResponse, type ProductListParams, type ProductRetrieveParams, type ProductListResponsesDefaultFlatPaginationForInexplicitNumberOrders, } from "./products.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/pricing/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,sBAAkB;AACpC,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,kEAAkE,GACxE,uBAAmB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Pricing } from "./pricing.js";
|
|
2
|
+
export { Products, type PricingPaginationMeta, type PricingTier, type ProductRetrieveResponse, type ProductListResponse, type ProductListParams, type ProductRetrieveParams, type ProductListResponsesDefaultFlatPaginationForInexplicitNumberOrders, } from "./products.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/pricing/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,qBAAkB;AACpC,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,kEAAkE,GACxE,sBAAmB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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.Products = exports.Pricing = void 0;
|
|
5
|
+
var pricing_1 = require("./pricing.js");
|
|
6
|
+
Object.defineProperty(exports, "Pricing", { enumerable: true, get: function () { return pricing_1.Pricing; } });
|
|
7
|
+
var products_1 = require("./products.js");
|
|
8
|
+
Object.defineProperty(exports, "Products", { enumerable: true, get: function () { return products_1.Products; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/pricing/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,0CASoB;AARlB,oGAAA,QAAQ,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/pricing/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,OAAO,EAAE,sBAAkB;AACpC,OAAO,EACL,QAAQ,GAQT,uBAAmB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as ProductsAPI from "./products.mjs";
|
|
3
|
+
import { PricingPaginationMeta, PricingTier, ProductListParams, ProductListResponse, ProductListResponsesDefaultFlatPaginationForInexplicitNumberOrders, ProductRetrieveParams, ProductRetrieveResponse, Products } from "./products.mjs";
|
|
4
|
+
export declare class Pricing extends APIResource {
|
|
5
|
+
products: ProductsAPI.Products;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Pricing {
|
|
8
|
+
export { Products as Products, type PricingPaginationMeta as PricingPaginationMeta, type PricingTier as PricingTier, type ProductRetrieveResponse as ProductRetrieveResponse, type ProductListResponse as ProductListResponse, type ProductListResponsesDefaultFlatPaginationForInexplicitNumberOrders as ProductListResponsesDefaultFlatPaginationForInexplicitNumberOrders, type ProductListParams as ProductListParams, type ProductRetrieveParams as ProductRetrieveParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=pricing.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing.d.mts","sourceRoot":"","sources":["../../src/resources/pricing/pricing.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EACL,qBAAqB,EACrB,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,kEAAkE,EAClE,qBAAqB,EACrB,uBAAuB,EACvB,QAAQ,EACT,uBAAmB;AAEpB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;CACzE;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kEAAkE,IAAI,kEAAkE,EAC7I,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as ProductsAPI from "./products.js";
|
|
3
|
+
import { PricingPaginationMeta, PricingTier, ProductListParams, ProductListResponse, ProductListResponsesDefaultFlatPaginationForInexplicitNumberOrders, ProductRetrieveParams, ProductRetrieveResponse, Products } from "./products.js";
|
|
4
|
+
export declare class Pricing extends APIResource {
|
|
5
|
+
products: ProductsAPI.Products;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Pricing {
|
|
8
|
+
export { Products as Products, type PricingPaginationMeta as PricingPaginationMeta, type PricingTier as PricingTier, type ProductRetrieveResponse as ProductRetrieveResponse, type ProductListResponse as ProductListResponse, type ProductListResponsesDefaultFlatPaginationForInexplicitNumberOrders as ProductListResponsesDefaultFlatPaginationForInexplicitNumberOrders, type ProductListParams as ProductListParams, type ProductRetrieveParams as ProductRetrieveParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=pricing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing.d.ts","sourceRoot":"","sources":["../../src/resources/pricing/pricing.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,qBAAqB,EACrB,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,kEAAkE,EAClE,qBAAqB,EACrB,uBAAuB,EACvB,QAAQ,EACT,sBAAmB;AAEpB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;CACzE;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kEAAkE,IAAI,kEAAkE,EAC7I,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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.Pricing = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const ProductsAPI = tslib_1.__importStar(require("./products.js"));
|
|
8
|
+
const products_1 = require("./products.js");
|
|
9
|
+
class Pricing extends resource_1.APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.products = new ProductsAPI.Products(this._client);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Pricing = Pricing;
|
|
16
|
+
Pricing.Products = products_1.Products;
|
|
17
|
+
//# sourceMappingURL=pricing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing.js","sourceRoot":"","sources":["../../src/resources/pricing/pricing.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,mEAA0C;AAC1C,4CASoB;AAEpB,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAFD,0BAEC;AAED,OAAO,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as ProductsAPI from "./products.mjs";
|
|
4
|
+
import { Products, } from "./products.mjs";
|
|
5
|
+
export class Pricing extends APIResource {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.products = new ProductsAPI.Products(this._client);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
Pricing.Products = Products;
|
|
12
|
+
//# sourceMappingURL=pricing.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing.mjs","sourceRoot":"","sources":["../../src/resources/pricing/pricing.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAQL,QAAQ,GACT,uBAAmB;AAEpB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAED,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as ProductsAPI from "./products.mjs";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
|
+
import { DefaultFlatPaginationForInexplicitNumberOrders, type DefaultFlatPaginationForInexplicitNumberOrdersParams, PagePromise } from "../../core/pagination.mjs";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* Public pricing operations
|
|
8
|
+
*/
|
|
9
|
+
export declare class Products extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns the full product catalog with pagination. Each entry contains a slug,
|
|
12
|
+
* display name, and description. Use the slug to fetch per-product pricing via GET
|
|
13
|
+
* /pricing/products/{slug}.
|
|
14
|
+
*/
|
|
15
|
+
list(query?: ProductListParams | null | undefined, options?: RequestOptions): PagePromise<ProductListResponsesDefaultFlatPaginationForInexplicitNumberOrders, ProductListResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Returns pricing entries for a single product. Most products return standard rate
|
|
18
|
+
* entries with fields like rate, unit, country_iso, direction, and tiers.
|
|
19
|
+
* Inference products return model-specific fields (model, input_rate, output_rate,
|
|
20
|
+
* cached_input_rate) with tiered pricing. Some products use rate decks
|
|
21
|
+
* (pricing_type: rate_deck) where rates are determined dynamically.
|
|
22
|
+
*/
|
|
23
|
+
retrieve(slug: string, query?: ProductRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ProductRetrieveResponse>;
|
|
24
|
+
}
|
|
25
|
+
export type ProductListResponsesDefaultFlatPaginationForInexplicitNumberOrders = DefaultFlatPaginationForInexplicitNumberOrders<ProductListResponse>;
|
|
26
|
+
export interface PricingPaginationMeta {
|
|
27
|
+
page_number: number;
|
|
28
|
+
page_size: number;
|
|
29
|
+
total_pages: number;
|
|
30
|
+
total_results: number;
|
|
31
|
+
}
|
|
32
|
+
export interface PricingTier {
|
|
33
|
+
/**
|
|
34
|
+
* Upper bound of the tier (exclusive). Null means no upper limit.
|
|
35
|
+
*/
|
|
36
|
+
max: number | null;
|
|
37
|
+
/**
|
|
38
|
+
* Lower bound of the tier (inclusive).
|
|
39
|
+
*/
|
|
40
|
+
min: number;
|
|
41
|
+
/**
|
|
42
|
+
* Rate for this tier. Numeric for standard products, string for inference
|
|
43
|
+
* products.
|
|
44
|
+
*/
|
|
45
|
+
rate: number | string;
|
|
46
|
+
}
|
|
47
|
+
export interface ProductRetrieveResponse {
|
|
48
|
+
data: Array<ProductRetrieveResponse.Data>;
|
|
49
|
+
meta: PricingPaginationMeta;
|
|
50
|
+
}
|
|
51
|
+
export declare namespace ProductRetrieveResponse {
|
|
52
|
+
/**
|
|
53
|
+
* A single pricing entry. Standard products include rate, unit, currency, type,
|
|
54
|
+
* country_iso, direction, and tiers. Inference products include model, input_rate,
|
|
55
|
+
* output_rate, cached_input_rate, and their respective tier arrays. Rate-deck
|
|
56
|
+
* products include pricing_type and note fields with null rate and empty tiers.
|
|
57
|
+
*/
|
|
58
|
+
interface Data {
|
|
59
|
+
/**
|
|
60
|
+
* Cached input token rate. Present only on inference product entries.
|
|
61
|
+
*/
|
|
62
|
+
cached_input_rate?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Cached input token tiered pricing. Present only on inference product entries.
|
|
65
|
+
*/
|
|
66
|
+
cached_input_tiers?: Array<ProductsAPI.PricingTier>;
|
|
67
|
+
/**
|
|
68
|
+
* ISO country code. Null for non-geographic products.
|
|
69
|
+
*/
|
|
70
|
+
country_iso?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* ISO currency code (e.g., USD).
|
|
73
|
+
*/
|
|
74
|
+
currency?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Direction (e.g., termination). Null for non-directional products.
|
|
77
|
+
*/
|
|
78
|
+
direction?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Input token rate. Present only on inference product entries.
|
|
81
|
+
*/
|
|
82
|
+
input_rate?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Input token tiered pricing. Present only on inference product entries.
|
|
85
|
+
*/
|
|
86
|
+
input_tiers?: Array<ProductsAPI.PricingTier>;
|
|
87
|
+
/**
|
|
88
|
+
* Model identifier. Present only on inference product entries.
|
|
89
|
+
*/
|
|
90
|
+
model?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Human-readable name describing the pricing entry.
|
|
93
|
+
*/
|
|
94
|
+
name?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Additional note for rate-deck products (e.g., "Pricing is determined by the
|
|
97
|
+
* WhatsApp rate deck.").
|
|
98
|
+
*/
|
|
99
|
+
note?: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* Output token rate. Present only on inference product entries.
|
|
102
|
+
*/
|
|
103
|
+
output_rate?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Output token tiered pricing. Present only on inference product entries.
|
|
106
|
+
*/
|
|
107
|
+
output_tiers?: Array<ProductsAPI.PricingTier>;
|
|
108
|
+
/**
|
|
109
|
+
* Pricing type for non-standard products (e.g., rate_deck). Absent on standard
|
|
110
|
+
* products.
|
|
111
|
+
*/
|
|
112
|
+
pricing_type?: string | null;
|
|
113
|
+
/**
|
|
114
|
+
* Per-unit rate. Numeric for standard products, string for inference products.
|
|
115
|
+
* Null for rate-deck products.
|
|
116
|
+
*/
|
|
117
|
+
rate?: number | string | null;
|
|
118
|
+
/**
|
|
119
|
+
* Volume-based tiered pricing. Empty for rate-deck products.
|
|
120
|
+
*/
|
|
121
|
+
tiers?: Array<ProductsAPI.PricingTier>;
|
|
122
|
+
/**
|
|
123
|
+
* Pricing type (e.g., usage).
|
|
124
|
+
*/
|
|
125
|
+
type?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Unit of measurement (e.g., part, message, GB, per_1k_tokens).
|
|
128
|
+
*/
|
|
129
|
+
unit?: string;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
export interface ProductListResponse {
|
|
133
|
+
/**
|
|
134
|
+
* Human-readable description of the product.
|
|
135
|
+
*/
|
|
136
|
+
description: string;
|
|
137
|
+
/**
|
|
138
|
+
* Display name of the product.
|
|
139
|
+
*/
|
|
140
|
+
name: string;
|
|
141
|
+
/**
|
|
142
|
+
* Product identifier used in the per-product pricing endpoint.
|
|
143
|
+
*/
|
|
144
|
+
slug: string;
|
|
145
|
+
}
|
|
146
|
+
export interface ProductListParams extends DefaultFlatPaginationForInexplicitNumberOrdersParams {
|
|
147
|
+
}
|
|
148
|
+
export interface ProductRetrieveParams {
|
|
149
|
+
/**
|
|
150
|
+
* Page number (1-based).
|
|
151
|
+
*/
|
|
152
|
+
page_number?: number;
|
|
153
|
+
/**
|
|
154
|
+
* Number of items per page (max 100).
|
|
155
|
+
*/
|
|
156
|
+
page_size?: number;
|
|
157
|
+
}
|
|
158
|
+
export declare namespace Products {
|
|
159
|
+
export { type PricingPaginationMeta as PricingPaginationMeta, type PricingTier as PricingTier, type ProductRetrieveResponse as ProductRetrieveResponse, type ProductListResponse as ProductListResponse, type ProductListResponsesDefaultFlatPaginationForInexplicitNumberOrders as ProductListResponsesDefaultFlatPaginationForInexplicitNumberOrders, type ProductListParams as ProductListParams, type ProductRetrieveParams as ProductRetrieveParams, };
|
|
160
|
+
}
|
|
161
|
+
//# sourceMappingURL=products.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.d.mts","sourceRoot":"","sources":["../../src/resources/pricing/products.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EACL,8CAA8C,EAC9C,KAAK,oDAAoD,EACzD,WAAW,EACZ,kCAA8B;AAC/B,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;OAIG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kEAAkE,EAAE,mBAAmB,CAAC;IAQvG;;;;;;OAMG;IACH,QAAQ,CACN,IAAI,EAAE,MAAM,EACZ,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;CAGvC;AAED,MAAM,MAAM,kEAAkE,GAC5E,8CAA8C,CAAC,mBAAmB,CAAC,CAAC;AAEtE,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,CAAC;IAEpB,SAAS,EAAE,MAAM,CAAC;IAElB,WAAW,EAAE,MAAM,CAAC;IAEpB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,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,KAAK,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;QAEvC;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,iBAAkB,SAAQ,oDAAoD;CAAG;AAElG,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kEAAkE,IAAI,kEAAkE,EAC7I,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as ProductsAPI from "./products.js";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
4
|
+
import { DefaultFlatPaginationForInexplicitNumberOrders, type DefaultFlatPaginationForInexplicitNumberOrdersParams, PagePromise } from "../../core/pagination.js";
|
|
5
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
6
|
+
/**
|
|
7
|
+
* Public pricing operations
|
|
8
|
+
*/
|
|
9
|
+
export declare class Products extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns the full product catalog with pagination. Each entry contains a slug,
|
|
12
|
+
* display name, and description. Use the slug to fetch per-product pricing via GET
|
|
13
|
+
* /pricing/products/{slug}.
|
|
14
|
+
*/
|
|
15
|
+
list(query?: ProductListParams | null | undefined, options?: RequestOptions): PagePromise<ProductListResponsesDefaultFlatPaginationForInexplicitNumberOrders, ProductListResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Returns pricing entries for a single product. Most products return standard rate
|
|
18
|
+
* entries with fields like rate, unit, country_iso, direction, and tiers.
|
|
19
|
+
* Inference products return model-specific fields (model, input_rate, output_rate,
|
|
20
|
+
* cached_input_rate) with tiered pricing. Some products use rate decks
|
|
21
|
+
* (pricing_type: rate_deck) where rates are determined dynamically.
|
|
22
|
+
*/
|
|
23
|
+
retrieve(slug: string, query?: ProductRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ProductRetrieveResponse>;
|
|
24
|
+
}
|
|
25
|
+
export type ProductListResponsesDefaultFlatPaginationForInexplicitNumberOrders = DefaultFlatPaginationForInexplicitNumberOrders<ProductListResponse>;
|
|
26
|
+
export interface PricingPaginationMeta {
|
|
27
|
+
page_number: number;
|
|
28
|
+
page_size: number;
|
|
29
|
+
total_pages: number;
|
|
30
|
+
total_results: number;
|
|
31
|
+
}
|
|
32
|
+
export interface PricingTier {
|
|
33
|
+
/**
|
|
34
|
+
* Upper bound of the tier (exclusive). Null means no upper limit.
|
|
35
|
+
*/
|
|
36
|
+
max: number | null;
|
|
37
|
+
/**
|
|
38
|
+
* Lower bound of the tier (inclusive).
|
|
39
|
+
*/
|
|
40
|
+
min: number;
|
|
41
|
+
/**
|
|
42
|
+
* Rate for this tier. Numeric for standard products, string for inference
|
|
43
|
+
* products.
|
|
44
|
+
*/
|
|
45
|
+
rate: number | string;
|
|
46
|
+
}
|
|
47
|
+
export interface ProductRetrieveResponse {
|
|
48
|
+
data: Array<ProductRetrieveResponse.Data>;
|
|
49
|
+
meta: PricingPaginationMeta;
|
|
50
|
+
}
|
|
51
|
+
export declare namespace ProductRetrieveResponse {
|
|
52
|
+
/**
|
|
53
|
+
* A single pricing entry. Standard products include rate, unit, currency, type,
|
|
54
|
+
* country_iso, direction, and tiers. Inference products include model, input_rate,
|
|
55
|
+
* output_rate, cached_input_rate, and their respective tier arrays. Rate-deck
|
|
56
|
+
* products include pricing_type and note fields with null rate and empty tiers.
|
|
57
|
+
*/
|
|
58
|
+
interface Data {
|
|
59
|
+
/**
|
|
60
|
+
* Cached input token rate. Present only on inference product entries.
|
|
61
|
+
*/
|
|
62
|
+
cached_input_rate?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Cached input token tiered pricing. Present only on inference product entries.
|
|
65
|
+
*/
|
|
66
|
+
cached_input_tiers?: Array<ProductsAPI.PricingTier>;
|
|
67
|
+
/**
|
|
68
|
+
* ISO country code. Null for non-geographic products.
|
|
69
|
+
*/
|
|
70
|
+
country_iso?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* ISO currency code (e.g., USD).
|
|
73
|
+
*/
|
|
74
|
+
currency?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Direction (e.g., termination). Null for non-directional products.
|
|
77
|
+
*/
|
|
78
|
+
direction?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Input token rate. Present only on inference product entries.
|
|
81
|
+
*/
|
|
82
|
+
input_rate?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Input token tiered pricing. Present only on inference product entries.
|
|
85
|
+
*/
|
|
86
|
+
input_tiers?: Array<ProductsAPI.PricingTier>;
|
|
87
|
+
/**
|
|
88
|
+
* Model identifier. Present only on inference product entries.
|
|
89
|
+
*/
|
|
90
|
+
model?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Human-readable name describing the pricing entry.
|
|
93
|
+
*/
|
|
94
|
+
name?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Additional note for rate-deck products (e.g., "Pricing is determined by the
|
|
97
|
+
* WhatsApp rate deck.").
|
|
98
|
+
*/
|
|
99
|
+
note?: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* Output token rate. Present only on inference product entries.
|
|
102
|
+
*/
|
|
103
|
+
output_rate?: string;
|
|
104
|
+
/**
|
|
105
|
+
* Output token tiered pricing. Present only on inference product entries.
|
|
106
|
+
*/
|
|
107
|
+
output_tiers?: Array<ProductsAPI.PricingTier>;
|
|
108
|
+
/**
|
|
109
|
+
* Pricing type for non-standard products (e.g., rate_deck). Absent on standard
|
|
110
|
+
* products.
|
|
111
|
+
*/
|
|
112
|
+
pricing_type?: string | null;
|
|
113
|
+
/**
|
|
114
|
+
* Per-unit rate. Numeric for standard products, string for inference products.
|
|
115
|
+
* Null for rate-deck products.
|
|
116
|
+
*/
|
|
117
|
+
rate?: number | string | null;
|
|
118
|
+
/**
|
|
119
|
+
* Volume-based tiered pricing. Empty for rate-deck products.
|
|
120
|
+
*/
|
|
121
|
+
tiers?: Array<ProductsAPI.PricingTier>;
|
|
122
|
+
/**
|
|
123
|
+
* Pricing type (e.g., usage).
|
|
124
|
+
*/
|
|
125
|
+
type?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Unit of measurement (e.g., part, message, GB, per_1k_tokens).
|
|
128
|
+
*/
|
|
129
|
+
unit?: string;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
export interface ProductListResponse {
|
|
133
|
+
/**
|
|
134
|
+
* Human-readable description of the product.
|
|
135
|
+
*/
|
|
136
|
+
description: string;
|
|
137
|
+
/**
|
|
138
|
+
* Display name of the product.
|
|
139
|
+
*/
|
|
140
|
+
name: string;
|
|
141
|
+
/**
|
|
142
|
+
* Product identifier used in the per-product pricing endpoint.
|
|
143
|
+
*/
|
|
144
|
+
slug: string;
|
|
145
|
+
}
|
|
146
|
+
export interface ProductListParams extends DefaultFlatPaginationForInexplicitNumberOrdersParams {
|
|
147
|
+
}
|
|
148
|
+
export interface ProductRetrieveParams {
|
|
149
|
+
/**
|
|
150
|
+
* Page number (1-based).
|
|
151
|
+
*/
|
|
152
|
+
page_number?: number;
|
|
153
|
+
/**
|
|
154
|
+
* Number of items per page (max 100).
|
|
155
|
+
*/
|
|
156
|
+
page_size?: number;
|
|
157
|
+
}
|
|
158
|
+
export declare namespace Products {
|
|
159
|
+
export { type PricingPaginationMeta as PricingPaginationMeta, type PricingTier as PricingTier, type ProductRetrieveResponse as ProductRetrieveResponse, type ProductListResponse as ProductListResponse, type ProductListResponsesDefaultFlatPaginationForInexplicitNumberOrders as ProductListResponsesDefaultFlatPaginationForInexplicitNumberOrders, type ProductListParams as ProductListParams, type ProductRetrieveParams as ProductRetrieveParams, };
|
|
160
|
+
}
|
|
161
|
+
//# sourceMappingURL=products.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/resources/pricing/products.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EACL,8CAA8C,EAC9C,KAAK,oDAAoD,EACzD,WAAW,EACZ,iCAA8B;AAC/B,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;OAIG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kEAAkE,EAAE,mBAAmB,CAAC;IAQvG;;;;;;OAMG;IACH,QAAQ,CACN,IAAI,EAAE,MAAM,EACZ,KAAK,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,uBAAuB,CAAC;CAGvC;AAED,MAAM,MAAM,kEAAkE,GAC5E,8CAA8C,CAAC,mBAAmB,CAAC,CAAC;AAEtE,MAAM,WAAW,qBAAqB;IACpC,WAAW,EAAE,MAAM,CAAC;IAEpB,SAAS,EAAE,MAAM,CAAC;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;WAGG;QACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;QAE9B;;WAEG;QACH,KAAK,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;QAEvC;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,iBAAkB,SAAQ,oDAAoD;CAAG;AAElG,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,kEAAkE,IAAI,kEAAkE,EAC7I,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Products = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Public pricing operations
|
|
10
|
+
*/
|
|
11
|
+
class Products extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Returns the full product catalog with pagination. Each entry contains a slug,
|
|
14
|
+
* display name, and description. Use the slug to fetch per-product pricing via GET
|
|
15
|
+
* /pricing/products/{slug}.
|
|
16
|
+
*/
|
|
17
|
+
list(query = {}, options) {
|
|
18
|
+
return this._client.getAPIList('/pricing/products', (pagination_1.DefaultFlatPaginationForInexplicitNumberOrders), { query, ...options });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Returns pricing entries for a single product. Most products return standard rate
|
|
22
|
+
* entries with fields like rate, unit, country_iso, direction, and tiers.
|
|
23
|
+
* Inference products return model-specific fields (model, input_rate, output_rate,
|
|
24
|
+
* cached_input_rate) with tiered pricing. Some products use rate decks
|
|
25
|
+
* (pricing_type: rate_deck) where rates are determined dynamically.
|
|
26
|
+
*/
|
|
27
|
+
retrieve(slug, query = {}, options) {
|
|
28
|
+
return this._client.get((0, path_1.path) `/pricing/products/${slug}`, { query, ...options });
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.Products = Products;
|
|
32
|
+
//# sourceMappingURL=products.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/resources/pricing/products.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAI+B;AAE/B,uDAAiD;AAEjD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;OAIG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,mBAAmB,EACnB,CAAA,2DAAmE,CAAA,EACnE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CACN,IAAY,EACZ,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF;AA/BD,4BA+BC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { DefaultFlatPaginationForInexplicitNumberOrders, } from "../../core/pagination.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Public pricing operations
|
|
7
|
+
*/
|
|
8
|
+
export class Products extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns the full product catalog with pagination. Each entry contains a slug,
|
|
11
|
+
* display name, and description. Use the slug to fetch per-product pricing via GET
|
|
12
|
+
* /pricing/products/{slug}.
|
|
13
|
+
*/
|
|
14
|
+
list(query = {}, options) {
|
|
15
|
+
return this._client.getAPIList('/pricing/products', (DefaultFlatPaginationForInexplicitNumberOrders), { query, ...options });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Returns pricing entries for a single product. Most products return standard rate
|
|
19
|
+
* entries with fields like rate, unit, country_iso, direction, and tiers.
|
|
20
|
+
* Inference products return model-specific fields (model, input_rate, output_rate,
|
|
21
|
+
* cached_input_rate) with tiered pricing. Some products use rate decks
|
|
22
|
+
* (pricing_type: rate_deck) where rates are determined dynamically.
|
|
23
|
+
*/
|
|
24
|
+
retrieve(slug, query = {}, options) {
|
|
25
|
+
return this._client.get(path `/pricing/products/${slug}`, { query, ...options });
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=products.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.mjs","sourceRoot":"","sources":["../../src/resources/pricing/products.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EACL,8CAA8C,GAG/C,kCAA8B;AAE/B,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;OAIG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,mBAAmB,EACnB,CAAA,8CAAmE,CAAA,EACnE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CACN,IAAY,EACZ,QAAkD,EAAE,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing.d.mts","sourceRoot":"","sources":["../src/resources/pricing.ts"],"names":[],"mappings":"AAEA,oCAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing.d.ts","sourceRoot":"","sources":["../src/resources/pricing.ts"],"names":[],"mappings":"AAEA,mCAAgC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./pricing/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=pricing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing.js","sourceRoot":"","sources":["../src/resources/pricing.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing.mjs","sourceRoot":"","sources":["../src/resources/pricing.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,oCAAgC"}
|