@zavudev/sdk 0.56.0 → 0.58.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 +59 -0
- package/README.md +3 -3
- package/client.d.mts +39 -39
- package/client.d.mts.map +1 -1
- package/client.d.ts +39 -39
- package/client.d.ts.map +1 -1
- package/client.js +43 -43
- package/client.js.map +1 -1
- package/client.mjs +43 -43
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js +0 -1
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs +0 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts.map +1 -1
- package/core/error.js +0 -1
- package/core/error.js.map +1 -1
- package/core/error.mjs +0 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +0 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +0 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js +0 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs +0 -1
- package/core/resource.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/index.mjs +0 -1
- package/index.mjs.map +1 -1
- package/internal/builtin-types.d.mts.map +1 -1
- package/internal/builtin-types.d.ts.map +1 -1
- package/internal/builtin-types.js +0 -1
- package/internal/builtin-types.js.map +1 -1
- package/internal/builtin-types.mjs +0 -1
- package/internal/builtin-types.mjs.map +1 -1
- package/internal/detect-platform.d.mts.map +1 -1
- package/internal/detect-platform.d.ts.map +1 -1
- package/internal/detect-platform.js +0 -1
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +0 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/errors.d.mts.map +1 -1
- package/internal/errors.d.ts.map +1 -1
- package/internal/errors.js +0 -1
- package/internal/errors.js.map +1 -1
- package/internal/errors.mjs +0 -1
- package/internal/errors.mjs.map +1 -1
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +0 -1
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +0 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +0 -1
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +0 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js +0 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs +0 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/shim-types.d.mts.map +1 -1
- package/internal/shim-types.d.ts.map +1 -1
- package/internal/shim-types.js +6 -1
- package/internal/shim-types.js.map +1 -1
- package/internal/shim-types.mjs +6 -1
- package/internal/shim-types.mjs.map +1 -1
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts.map +1 -1
- package/internal/shims.js +6 -1
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +6 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts.map +1 -1
- package/internal/types.js +0 -1
- package/internal/types.js.map +1 -1
- package/internal/types.mjs +0 -1
- package/internal/types.mjs.map +1 -1
- package/internal/utils/base64.d.mts.map +1 -1
- package/internal/utils/base64.d.ts.map +1 -1
- package/internal/utils/base64.js +0 -1
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +0 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/env.d.mts.map +1 -1
- package/internal/utils/env.d.ts.map +1 -1
- package/internal/utils/env.js +0 -1
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +0 -1
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +0 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +0 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/query.d.mts +0 -3
- package/internal/utils/query.d.mts.map +1 -1
- package/internal/utils/query.d.ts +0 -3
- package/internal/utils/query.d.ts.map +1 -1
- package/internal/utils/query.js +3 -17
- package/internal/utils/query.js.map +1 -1
- package/internal/utils/query.mjs +2 -17
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/sleep.d.mts.map +1 -1
- package/internal/utils/sleep.d.ts.map +1 -1
- package/internal/utils/sleep.js +0 -1
- package/internal/utils/sleep.js.map +1 -1
- package/internal/utils/sleep.mjs +0 -1
- package/internal/utils/sleep.mjs.map +1 -1
- package/internal/utils/uuid.d.mts.map +1 -1
- package/internal/utils/uuid.d.ts.map +1 -1
- package/internal/utils/uuid.js +0 -1
- package/internal/utils/uuid.js.map +1 -1
- package/internal/utils/uuid.mjs +0 -1
- package/internal/utils/uuid.mjs.map +1 -1
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +0 -1
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +0 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.js +0 -1
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +0 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +29 -10
- package/resources/addresses.d.mts +27 -77
- package/resources/addresses.d.mts.map +1 -1
- package/resources/addresses.d.ts +27 -77
- package/resources/addresses.d.ts.map +1 -1
- package/resources/addresses.js +19 -32
- package/resources/addresses.js.map +1 -1
- package/resources/addresses.mjs +19 -32
- package/resources/addresses.mjs.map +1 -1
- package/resources/agent-templates.d.mts +17 -71
- package/resources/agent-templates.d.mts.map +1 -1
- package/resources/agent-templates.d.ts +17 -71
- package/resources/agent-templates.d.ts.map +1 -1
- package/resources/agent-templates.js +11 -15
- package/resources/agent-templates.js.map +1 -1
- package/resources/agent-templates.mjs +11 -15
- package/resources/agent-templates.mjs.map +1 -1
- package/resources/agents/agents.d.mts +53 -395
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +53 -395
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +33 -48
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +33 -48
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/index.js +1 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs +1 -1
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/senders.d.mts +10 -32
- package/resources/agents/senders.d.mts.map +1 -1
- package/resources/agents/senders.d.ts +10 -32
- package/resources/agents/senders.d.ts.map +1 -1
- package/resources/agents/senders.js +7 -14
- package/resources/agents/senders.js.map +1 -1
- package/resources/agents/senders.mjs +7 -14
- package/resources/agents/senders.mjs.map +1 -1
- package/resources/agents.js +1 -1
- package/resources/agents.js.map +1 -1
- package/resources/agents.mjs +1 -1
- package/resources/agents.mjs.map +1 -1
- package/resources/balance.d.mts +6 -19
- package/resources/balance.d.mts.map +1 -1
- package/resources/balance.d.ts +6 -19
- package/resources/balance.d.ts.map +1 -1
- package/resources/balance.js +5 -1
- package/resources/balance.js.map +1 -1
- package/resources/balance.mjs +5 -1
- package/resources/balance.mjs.map +1 -1
- package/resources/broadcasts/broadcasts.d.mts +92 -411
- package/resources/broadcasts/broadcasts.d.mts.map +1 -1
- package/resources/broadcasts/broadcasts.d.ts +92 -411
- package/resources/broadcasts/broadcasts.d.ts.map +1 -1
- package/resources/broadcasts/broadcasts.js +64 -85
- package/resources/broadcasts/broadcasts.js.map +1 -1
- package/resources/broadcasts/broadcasts.mjs +64 -85
- package/resources/broadcasts/broadcasts.mjs.map +1 -1
- package/resources/broadcasts/contacts.d.mts +19 -109
- package/resources/broadcasts/contacts.d.mts.map +1 -1
- package/resources/broadcasts/contacts.d.ts +19 -109
- package/resources/broadcasts/contacts.d.ts.map +1 -1
- package/resources/broadcasts/contacts.js +10 -40
- package/resources/broadcasts/contacts.js.map +1 -1
- package/resources/broadcasts/contacts.mjs +10 -40
- package/resources/broadcasts/contacts.mjs.map +1 -1
- package/resources/broadcasts/index.js +1 -1
- package/resources/broadcasts/index.js.map +1 -1
- package/resources/broadcasts/index.mjs +1 -1
- package/resources/broadcasts/index.mjs.map +1 -1
- package/resources/broadcasts.js +1 -1
- package/resources/broadcasts.js.map +1 -1
- package/resources/broadcasts.mjs +1 -1
- package/resources/broadcasts.mjs.map +1 -1
- package/resources/calls.d.mts +40 -475
- package/resources/calls.d.mts.map +1 -1
- package/resources/calls.d.ts +40 -475
- package/resources/calls.d.ts.map +1 -1
- package/resources/calls.js +25 -26
- package/resources/calls.js.map +1 -1
- package/resources/calls.mjs +25 -26
- package/resources/calls.mjs.map +1 -1
- package/resources/contacts/channels.d.mts +20 -98
- package/resources/contacts/channels.d.mts.map +1 -1
- package/resources/contacts/channels.d.ts +20 -98
- package/resources/contacts/channels.d.ts.map +1 -1
- package/resources/contacts/channels.js +13 -32
- package/resources/contacts/channels.js.map +1 -1
- package/resources/contacts/channels.mjs +13 -32
- package/resources/contacts/channels.mjs.map +1 -1
- package/resources/contacts/contacts.d.mts +32 -224
- package/resources/contacts/contacts.d.mts.map +1 -1
- package/resources/contacts/contacts.d.ts +32 -224
- package/resources/contacts/contacts.d.ts.map +1 -1
- package/resources/contacts/contacts.js +20 -65
- package/resources/contacts/contacts.js.map +1 -1
- package/resources/contacts/contacts.mjs +20 -65
- package/resources/contacts/contacts.mjs.map +1 -1
- package/resources/contacts/index.js +1 -1
- package/resources/contacts/index.js.map +1 -1
- package/resources/contacts/index.mjs +1 -1
- package/resources/contacts/index.mjs.map +1 -1
- package/resources/contacts.js +1 -1
- package/resources/contacts.js.map +1 -1
- package/resources/contacts.mjs +1 -1
- package/resources/contacts.mjs.map +1 -1
- package/resources/conversations.d.mts +32 -316
- package/resources/conversations.d.mts.map +1 -1
- package/resources/conversations.d.ts +32 -316
- package/resources/conversations.d.ts.map +1 -1
- package/resources/conversations.js +15 -1
- package/resources/conversations.js.map +1 -1
- package/resources/conversations.mjs +15 -1
- package/resources/conversations.mjs.map +1 -1
- package/resources/email-domains.d.mts +25 -208
- package/resources/email-domains.d.mts.map +1 -1
- package/resources/email-domains.d.ts +25 -208
- package/resources/email-domains.d.ts.map +1 -1
- package/resources/email-domains.js +12 -27
- package/resources/email-domains.js.map +1 -1
- package/resources/email-domains.mjs +12 -27
- package/resources/email-domains.mjs.map +1 -1
- package/resources/functions/functions.d.mts +67 -553
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +67 -553
- package/resources/functions/functions.d.ts.map +1 -1
- package/resources/functions/functions.js +39 -82
- package/resources/functions/functions.js.map +1 -1
- package/resources/functions/functions.mjs +39 -82
- package/resources/functions/functions.mjs.map +1 -1
- package/resources/functions/git-link.d.mts +25 -240
- package/resources/functions/git-link.d.mts.map +1 -1
- package/resources/functions/git-link.d.ts +25 -240
- package/resources/functions/git-link.d.ts.map +1 -1
- package/resources/functions/git-link.js +16 -34
- package/resources/functions/git-link.js.map +1 -1
- package/resources/functions/git-link.mjs +16 -34
- package/resources/functions/git-link.mjs.map +1 -1
- package/resources/functions/index.js +1 -1
- package/resources/functions/index.js.map +1 -1
- package/resources/functions/index.mjs +1 -1
- package/resources/functions/index.mjs.map +1 -1
- package/resources/functions/secrets.d.mts +15 -47
- package/resources/functions/secrets.d.mts.map +1 -1
- package/resources/functions/secrets.d.ts +15 -47
- package/resources/functions/secrets.d.ts.map +1 -1
- package/resources/functions/secrets.js +11 -21
- package/resources/functions/secrets.js.map +1 -1
- package/resources/functions/secrets.mjs +11 -21
- package/resources/functions/secrets.mjs.map +1 -1
- package/resources/functions/triggers.d.mts +14 -123
- package/resources/functions/triggers.d.mts.map +1 -1
- package/resources/functions/triggers.d.ts +14 -123
- package/resources/functions/triggers.d.ts.map +1 -1
- package/resources/functions/triggers.js +7 -25
- package/resources/functions/triggers.js.map +1 -1
- package/resources/functions/triggers.mjs +7 -25
- package/resources/functions/triggers.mjs.map +1 -1
- package/resources/functions.js +1 -1
- package/resources/functions.js.map +1 -1
- package/resources/functions.mjs +1 -1
- package/resources/functions.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/introspect.d.mts +15 -105
- package/resources/introspect.d.mts.map +1 -1
- package/resources/introspect.d.ts +15 -105
- package/resources/introspect.d.ts.map +1 -1
- package/resources/introspect.js +7 -13
- package/resources/introspect.js.map +1 -1
- package/resources/introspect.mjs +7 -13
- package/resources/introspect.mjs.map +1 -1
- package/resources/invitations/webhook.d.mts +57 -0
- package/resources/invitations/webhook.d.mts.map +1 -0
- package/resources/invitations/webhook.d.ts +57 -0
- package/resources/invitations/webhook.d.ts.map +1 -0
- package/resources/invitations/webhook.js +61 -0
- package/resources/invitations/webhook.js.map +1 -0
- package/resources/invitations/webhook.mjs +57 -0
- package/resources/invitations/webhook.mjs.map +1 -0
- package/resources/invitations.d.mts +27 -174
- package/resources/invitations.d.mts.map +1 -1
- package/resources/invitations.d.ts +27 -174
- package/resources/invitations.d.ts.map +1 -1
- package/resources/invitations.js +20 -30
- package/resources/invitations.js.map +1 -1
- package/resources/invitations.mjs +19 -30
- package/resources/invitations.mjs.map +1 -1
- package/resources/me.d.mts +9 -18
- package/resources/me.d.mts.map +1 -1
- package/resources/me.d.ts +9 -18
- package/resources/me.d.ts.map +1 -1
- package/resources/me.js +5 -1
- package/resources/me.js.map +1 -1
- package/resources/me.mjs +5 -1
- package/resources/me.mjs.map +1 -1
- package/resources/memory/collections/collections.d.mts +75 -0
- package/resources/memory/collections/collections.d.mts.map +1 -0
- package/resources/memory/collections/collections.d.ts +75 -0
- package/resources/memory/collections/collections.d.ts.map +1 -0
- package/resources/memory/collections/collections.js +79 -0
- package/resources/memory/collections/collections.js.map +1 -0
- package/resources/memory/collections/collections.mjs +74 -0
- package/resources/memory/collections/collections.mjs.map +1 -0
- package/resources/memory/collections/index.d.mts +3 -0
- package/resources/memory/collections/index.d.mts.map +1 -0
- package/resources/memory/collections/index.d.ts +3 -0
- package/resources/memory/collections/index.d.ts.map +1 -0
- package/resources/memory/collections/index.js +9 -0
- package/resources/memory/collections/index.js.map +1 -0
- package/resources/memory/collections/index.mjs +4 -0
- package/resources/memory/collections/index.mjs.map +1 -0
- package/resources/memory/collections/items.d.mts +88 -0
- package/resources/memory/collections/items.d.mts.map +1 -0
- package/resources/memory/collections/items.d.ts +88 -0
- package/resources/memory/collections/items.d.ts.map +1 -0
- package/resources/memory/collections/items.js +120 -0
- package/resources/memory/collections/items.js.map +1 -0
- package/resources/memory/collections/items.mjs +116 -0
- package/resources/memory/collections/items.mjs.map +1 -0
- package/resources/memory/collections.d.mts +2 -0
- package/resources/memory/collections.d.mts.map +1 -0
- package/resources/memory/collections.d.ts +2 -0
- package/resources/memory/collections.d.ts.map +1 -0
- package/resources/memory/collections.js +6 -0
- package/resources/memory/collections.js.map +1 -0
- package/resources/memory/collections.mjs +3 -0
- package/resources/memory/collections.mjs.map +1 -0
- package/resources/memory/index.d.mts +3 -0
- package/resources/memory/index.d.mts.map +1 -0
- package/resources/memory/index.d.ts +3 -0
- package/resources/memory/index.d.ts.map +1 -0
- package/resources/memory/index.js +9 -0
- package/resources/memory/index.js.map +1 -0
- package/resources/memory/index.mjs +4 -0
- package/resources/memory/index.mjs.map +1 -0
- package/resources/memory/memory.d.mts +111 -0
- package/resources/memory/memory.d.mts.map +1 -0
- package/resources/memory/memory.d.ts +111 -0
- package/resources/memory/memory.d.ts.map +1 -0
- package/resources/memory/memory.js +116 -0
- package/resources/memory/memory.js.map +1 -0
- package/resources/memory/memory.mjs +111 -0
- package/resources/memory/memory.mjs.map +1 -0
- package/resources/memory.d.mts +2 -0
- package/resources/memory.d.mts.map +1 -0
- package/resources/memory.d.ts +2 -0
- package/resources/memory.d.ts.map +1 -0
- package/resources/memory.js +6 -0
- package/resources/memory.js.map +1 -0
- package/resources/memory.mjs +3 -0
- package/resources/memory.mjs.map +1 -0
- package/resources/messages.d.mts +119 -561
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +119 -561
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +98 -58
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +98 -58
- package/resources/messages.mjs.map +1 -1
- package/resources/number-10dlc/brands.d.mts +44 -209
- package/resources/number-10dlc/brands.d.mts.map +1 -1
- package/resources/number-10dlc/brands.d.ts +44 -209
- package/resources/number-10dlc/brands.d.ts.map +1 -1
- package/resources/number-10dlc/brands.js +31 -64
- package/resources/number-10dlc/brands.js.map +1 -1
- package/resources/number-10dlc/brands.mjs +31 -64
- package/resources/number-10dlc/brands.mjs.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.d.mts +40 -183
- package/resources/number-10dlc/campaigns/campaigns.d.mts.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.d.ts +40 -183
- package/resources/number-10dlc/campaigns/campaigns.d.ts.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.js +27 -69
- package/resources/number-10dlc/campaigns/campaigns.js.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.mjs +27 -69
- package/resources/number-10dlc/campaigns/campaigns.mjs.map +1 -1
- package/resources/number-10dlc/campaigns/index.js +1 -1
- package/resources/number-10dlc/campaigns/index.js.map +1 -1
- package/resources/number-10dlc/campaigns/index.mjs +1 -1
- package/resources/number-10dlc/campaigns/index.mjs.map +1 -1
- package/resources/number-10dlc/campaigns/phone-numbers.d.mts +21 -56
- package/resources/number-10dlc/campaigns/phone-numbers.d.mts.map +1 -1
- package/resources/number-10dlc/campaigns/phone-numbers.d.ts +21 -56
- package/resources/number-10dlc/campaigns/phone-numbers.d.ts.map +1 -1
- package/resources/number-10dlc/campaigns/phone-numbers.js +15 -26
- package/resources/number-10dlc/campaigns/phone-numbers.js.map +1 -1
- package/resources/number-10dlc/campaigns/phone-numbers.mjs +15 -26
- package/resources/number-10dlc/campaigns/phone-numbers.mjs.map +1 -1
- package/resources/number-10dlc/campaigns.js +1 -1
- package/resources/number-10dlc/campaigns.js.map +1 -1
- package/resources/number-10dlc/campaigns.mjs +1 -1
- package/resources/number-10dlc/campaigns.mjs.map +1 -1
- package/resources/number-10dlc/index.js +1 -1
- package/resources/number-10dlc/index.js.map +1 -1
- package/resources/number-10dlc/index.mjs +1 -1
- package/resources/number-10dlc/index.mjs.map +1 -1
- package/resources/number-10dlc/number-10dlc.d.mts +3 -4
- package/resources/number-10dlc/number-10dlc.d.mts.map +1 -1
- package/resources/number-10dlc/number-10dlc.d.ts +3 -4
- package/resources/number-10dlc/number-10dlc.d.ts.map +1 -1
- package/resources/number-10dlc/number-10dlc.js +1 -5
- package/resources/number-10dlc/number-10dlc.js.map +1 -1
- package/resources/number-10dlc/number-10dlc.mjs +1 -5
- package/resources/number-10dlc/number-10dlc.mjs.map +1 -1
- package/resources/number-10dlc.js +1 -1
- package/resources/number-10dlc.js.map +1 -1
- package/resources/number-10dlc.mjs +1 -1
- package/resources/number-10dlc.mjs.map +1 -1
- package/resources/phone-numbers.d.mts +95 -234
- package/resources/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers.d.ts +95 -234
- package/resources/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers.js +74 -54
- package/resources/phone-numbers.js.map +1 -1
- package/resources/phone-numbers.mjs +74 -54
- package/resources/phone-numbers.mjs.map +1 -1
- package/resources/regulatory-documents.d.mts +24 -78
- package/resources/regulatory-documents.d.mts.map +1 -1
- package/resources/regulatory-documents.d.ts +24 -78
- package/resources/regulatory-documents.d.ts.map +1 -1
- package/resources/regulatory-documents.js +16 -33
- package/resources/regulatory-documents.js.map +1 -1
- package/resources/regulatory-documents.mjs +16 -33
- package/resources/regulatory-documents.mjs.map +1 -1
- package/resources/senders/agent/agent.d.mts +44 -496
- package/resources/senders/agent/agent.d.mts.map +1 -1
- package/resources/senders/agent/agent.d.ts +44 -496
- package/resources/senders/agent/agent.d.ts.map +1 -1
- package/resources/senders/agent/agent.js +24 -49
- package/resources/senders/agent/agent.js.map +1 -1
- package/resources/senders/agent/agent.mjs +24 -49
- package/resources/senders/agent/agent.mjs.map +1 -1
- package/resources/senders/agent/executions.d.mts +13 -33
- package/resources/senders/agent/executions.d.mts.map +1 -1
- package/resources/senders/agent/executions.d.ts +13 -33
- package/resources/senders/agent/executions.d.ts.map +1 -1
- package/resources/senders/agent/executions.js +7 -18
- package/resources/senders/agent/executions.js.map +1 -1
- package/resources/senders/agent/executions.mjs +7 -18
- package/resources/senders/agent/executions.mjs.map +1 -1
- package/resources/senders/agent/flows.d.mts +34 -188
- package/resources/senders/agent/flows.d.mts.map +1 -1
- package/resources/senders/agent/flows.d.ts +34 -188
- package/resources/senders/agent/flows.d.ts.map +1 -1
- package/resources/senders/agent/flows.js +19 -69
- package/resources/senders/agent/flows.js.map +1 -1
- package/resources/senders/agent/flows.mjs +19 -69
- package/resources/senders/agent/flows.mjs.map +1 -1
- package/resources/senders/agent/index.js +1 -1
- package/resources/senders/agent/index.js.map +1 -1
- package/resources/senders/agent/index.mjs +1 -1
- package/resources/senders/agent/index.mjs.map +1 -1
- package/resources/senders/agent/knowledge-bases/documents.d.mts +27 -105
- package/resources/senders/agent/knowledge-bases/documents.d.mts.map +1 -1
- package/resources/senders/agent/knowledge-bases/documents.d.ts +27 -105
- package/resources/senders/agent/knowledge-bases/documents.d.ts.map +1 -1
- package/resources/senders/agent/knowledge-bases/documents.js +16 -47
- package/resources/senders/agent/knowledge-bases/documents.js.map +1 -1
- package/resources/senders/agent/knowledge-bases/documents.mjs +16 -47
- package/resources/senders/agent/knowledge-bases/documents.mjs.map +1 -1
- package/resources/senders/agent/knowledge-bases/index.js +1 -1
- package/resources/senders/agent/knowledge-bases/index.js.map +1 -1
- package/resources/senders/agent/knowledge-bases/index.mjs +1 -1
- package/resources/senders/agent/knowledge-bases/index.mjs.map +1 -1
- package/resources/senders/agent/knowledge-bases/knowledge-bases.d.mts +32 -113
- package/resources/senders/agent/knowledge-bases/knowledge-bases.d.mts.map +1 -1
- package/resources/senders/agent/knowledge-bases/knowledge-bases.d.ts +32 -113
- package/resources/senders/agent/knowledge-bases/knowledge-bases.d.ts.map +1 -1
- package/resources/senders/agent/knowledge-bases/knowledge-bases.js +17 -46
- package/resources/senders/agent/knowledge-bases/knowledge-bases.js.map +1 -1
- package/resources/senders/agent/knowledge-bases/knowledge-bases.mjs +17 -46
- package/resources/senders/agent/knowledge-bases/knowledge-bases.mjs.map +1 -1
- package/resources/senders/agent/knowledge-bases.js +1 -1
- package/resources/senders/agent/knowledge-bases.js.map +1 -1
- package/resources/senders/agent/knowledge-bases.mjs +1 -1
- package/resources/senders/agent/knowledge-bases.mjs.map +1 -1
- package/resources/senders/agent/tools/index.js +1 -1
- package/resources/senders/agent/tools/index.js.map +1 -1
- package/resources/senders/agent/tools/index.mjs +1 -1
- package/resources/senders/agent/tools/index.mjs.map +1 -1
- package/resources/senders/agent/tools/tools.d.mts +47 -280
- package/resources/senders/agent/tools/tools.d.mts.map +1 -1
- package/resources/senders/agent/tools/tools.d.ts +47 -280
- package/resources/senders/agent/tools/tools.d.ts.map +1 -1
- package/resources/senders/agent/tools/tools.js +25 -75
- package/resources/senders/agent/tools/tools.js.map +1 -1
- package/resources/senders/agent/tools/tools.mjs +25 -75
- package/resources/senders/agent/tools/tools.mjs.map +1 -1
- package/resources/senders/agent/tools/webhook.d.mts +6 -12
- package/resources/senders/agent/tools/webhook.d.mts.map +1 -1
- package/resources/senders/agent/tools/webhook.d.ts +6 -12
- package/resources/senders/agent/tools/webhook.d.ts.map +1 -1
- package/resources/senders/agent/tools/webhook.js +4 -9
- package/resources/senders/agent/tools/webhook.js.map +1 -1
- package/resources/senders/agent/tools/webhook.mjs +4 -9
- package/resources/senders/agent/tools/webhook.mjs.map +1 -1
- package/resources/senders/agent/tools.js +1 -1
- package/resources/senders/agent/tools.js.map +1 -1
- package/resources/senders/agent/tools.mjs +1 -1
- package/resources/senders/agent/tools.mjs.map +1 -1
- package/resources/senders/agent.js +1 -1
- package/resources/senders/agent.js.map +1 -1
- package/resources/senders/agent.mjs +1 -1
- package/resources/senders/agent.mjs.map +1 -1
- package/resources/senders/channels.d.mts +61 -0
- package/resources/senders/channels.d.mts.map +1 -0
- package/resources/senders/channels.d.ts +61 -0
- package/resources/senders/channels.d.ts.map +1 -0
- package/resources/senders/channels.js +60 -0
- package/resources/senders/channels.js.map +1 -0
- package/resources/senders/channels.mjs +56 -0
- package/resources/senders/channels.mjs.map +1 -0
- package/resources/senders/index.d.mts +1 -0
- package/resources/senders/index.d.mts.map +1 -1
- package/resources/senders/index.d.ts +1 -0
- package/resources/senders/index.d.ts.map +1 -1
- package/resources/senders/index.js +4 -2
- package/resources/senders/index.js.map +1 -1
- package/resources/senders/index.mjs +2 -1
- package/resources/senders/index.mjs.map +1 -1
- package/resources/senders/senders.d.mts +53 -514
- package/resources/senders/senders.d.mts.map +1 -1
- package/resources/senders/senders.d.ts +53 -514
- package/resources/senders/senders.d.ts.map +1 -1
- package/resources/senders/senders.js +30 -70
- package/resources/senders/senders.js.map +1 -1
- package/resources/senders/senders.mjs +30 -70
- package/resources/senders/senders.mjs.map +1 -1
- package/resources/senders/telegram.d.mts +10 -25
- package/resources/senders/telegram.d.mts.map +1 -1
- package/resources/senders/telegram.d.ts +10 -25
- package/resources/senders/telegram.d.ts.map +1 -1
- package/resources/senders/telegram.js +7 -12
- package/resources/senders/telegram.js.map +1 -1
- package/resources/senders/telegram.mjs +7 -12
- package/resources/senders/telegram.mjs.map +1 -1
- package/resources/senders/whatsapp-sync.d.mts +16 -104
- package/resources/senders/whatsapp-sync.d.mts.map +1 -1
- package/resources/senders/whatsapp-sync.d.ts +16 -104
- package/resources/senders/whatsapp-sync.d.ts.map +1 -1
- package/resources/senders/whatsapp-sync.js +10 -20
- package/resources/senders/whatsapp-sync.js.map +1 -1
- package/resources/senders/whatsapp-sync.mjs +10 -20
- package/resources/senders/whatsapp-sync.mjs.map +1 -1
- package/resources/senders.js +1 -1
- package/resources/senders.js.map +1 -1
- package/resources/senders.mjs +1 -1
- package/resources/senders.mjs.map +1 -1
- package/resources/sub-accounts/api-keys.d.mts +16 -57
- package/resources/sub-accounts/api-keys.d.mts.map +1 -1
- package/resources/sub-accounts/api-keys.d.ts +16 -57
- package/resources/sub-accounts/api-keys.d.ts.map +1 -1
- package/resources/sub-accounts/api-keys.js +10 -18
- package/resources/sub-accounts/api-keys.js.map +1 -1
- package/resources/sub-accounts/api-keys.mjs +10 -18
- package/resources/sub-accounts/api-keys.mjs.map +1 -1
- package/resources/sub-accounts/index.js +1 -1
- package/resources/sub-accounts/index.js.map +1 -1
- package/resources/sub-accounts/index.mjs +1 -1
- package/resources/sub-accounts/index.mjs.map +1 -1
- package/resources/sub-accounts/sub-accounts.d.mts +33 -125
- package/resources/sub-accounts/sub-accounts.d.mts.map +1 -1
- package/resources/sub-accounts/sub-accounts.d.ts +33 -125
- package/resources/sub-accounts/sub-accounts.d.ts.map +1 -1
- package/resources/sub-accounts/sub-accounts.js +20 -33
- package/resources/sub-accounts/sub-accounts.js.map +1 -1
- package/resources/sub-accounts/sub-accounts.mjs +20 -33
- package/resources/sub-accounts/sub-accounts.mjs.map +1 -1
- package/resources/sub-accounts.js +1 -1
- package/resources/sub-accounts.js.map +1 -1
- package/resources/sub-accounts.mjs +1 -1
- package/resources/sub-accounts.mjs.map +1 -1
- package/resources/templates.d.mts +46 -302
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +46 -302
- package/resources/templates.d.ts.map +1 -1
- package/resources/templates.js +34 -51
- package/resources/templates.js.map +1 -1
- package/resources/templates.mjs +34 -51
- package/resources/templates.mjs.map +1 -1
- package/resources/urls.d.mts +27 -78
- package/resources/urls.d.mts.map +1 -1
- package/resources/urls.d.ts +27 -78
- package/resources/urls.d.ts.map +1 -1
- package/resources/urls.js +18 -28
- package/resources/urls.js.map +1 -1
- package/resources/urls.mjs +18 -28
- package/resources/urls.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.js +1 -0
- package/resources.js.map +1 -1
- package/resources.mjs +1 -0
- package/resources.mjs.map +1 -1
- package/src/client.ts +273 -233
- package/src/core/api-promise.ts +0 -2
- package/src/core/error.ts +0 -2
- package/src/core/pagination.ts +0 -2
- package/src/core/resource.ts +0 -2
- package/src/index.ts +0 -2
- package/src/internal/builtin-types.ts +0 -2
- package/src/internal/detect-platform.ts +0 -2
- package/src/internal/errors.ts +0 -2
- package/src/internal/headers.ts +0 -2
- package/src/internal/parse.ts +0 -2
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +0 -2
- package/src/internal/shim-types.ts +0 -2
- package/src/internal/shims.ts +0 -2
- package/src/internal/types.ts +0 -2
- package/src/internal/utils/base64.ts +0 -2
- package/src/internal/utils/env.ts +0 -2
- package/src/internal/utils/log.ts +0 -2
- package/src/internal/utils/query.ts +2 -20
- package/src/internal/utils/sleep.ts +0 -2
- package/src/internal/utils/uuid.ts +0 -2
- package/src/internal/utils/values.ts +0 -2
- package/src/internal/utils.ts +0 -2
- package/src/resources/addresses.ts +28 -97
- package/src/resources/agent-templates.ts +18 -89
- package/src/resources/agents/agents.ts +58 -472
- package/src/resources/agents/index.ts +1 -1
- package/src/resources/agents/senders.ts +11 -33
- package/src/resources/agents.ts +1 -1
- package/src/resources/balance.ts +7 -24
- package/src/resources/broadcasts/broadcasts.ts +97 -490
- package/src/resources/broadcasts/contacts.ts +20 -114
- package/src/resources/broadcasts/index.ts +1 -1
- package/src/resources/broadcasts.ts +1 -1
- package/src/resources/calls.ts +41 -551
- package/src/resources/contacts/channels.ts +21 -104
- package/src/resources/contacts/contacts.ts +41 -273
- package/src/resources/contacts/index.ts +1 -1
- package/src/resources/contacts.ts +1 -1
- package/src/resources/conversations.ts +33 -387
- package/src/resources/email-domains.ts +26 -253
- package/src/resources/functions/functions.ts +83 -669
- package/src/resources/functions/git-link.ts +26 -301
- package/src/resources/functions/index.ts +1 -1
- package/src/resources/functions/secrets.ts +16 -55
- package/src/resources/functions/triggers.ts +15 -149
- package/src/resources/functions.ts +1 -1
- package/src/resources/index.ts +21 -1
- package/src/resources/introspect.ts +16 -136
- package/src/resources/invitations/webhook.ts +93 -0
- package/src/resources/invitations.ts +45 -201
- package/src/resources/me.ts +10 -28
- package/src/resources/memory/collections/collections.ts +149 -0
- package/src/resources/memory/collections/index.ts +30 -0
- package/src/resources/memory/collections/items.ts +185 -0
- package/src/resources/memory/collections.ts +3 -0
- package/src/resources/memory/index.ts +34 -0
- package/src/resources/memory/memory.ts +211 -0
- package/src/resources/memory.ts +3 -0
- package/src/resources/messages.ts +119 -678
- package/src/resources/number-10dlc/brands.ts +45 -268
- package/src/resources/number-10dlc/campaigns/campaigns.ts +47 -246
- package/src/resources/number-10dlc/campaigns/index.ts +1 -1
- package/src/resources/number-10dlc/campaigns/phone-numbers.ts +31 -64
- package/src/resources/number-10dlc/campaigns.ts +1 -1
- package/src/resources/number-10dlc/index.ts +1 -1
- package/src/resources/number-10dlc/number-10dlc.ts +23 -29
- package/src/resources/number-10dlc.ts +1 -1
- package/src/resources/phone-numbers.ts +96 -275
- package/src/resources/regulatory-documents.ts +25 -106
- package/src/resources/senders/agent/agent.ts +91 -662
- package/src/resources/senders/agent/executions.ts +14 -35
- package/src/resources/senders/agent/flows.ts +35 -213
- package/src/resources/senders/agent/index.ts +1 -1
- package/src/resources/senders/agent/knowledge-bases/documents.ts +28 -114
- package/src/resources/senders/agent/knowledge-bases/index.ts +1 -1
- package/src/resources/senders/agent/knowledge-bases/knowledge-bases.ts +42 -143
- package/src/resources/senders/agent/knowledge-bases.ts +1 -1
- package/src/resources/senders/agent/tools/index.ts +1 -1
- package/src/resources/senders/agent/tools/tools.ts +48 -318
- package/src/resources/senders/agent/tools/webhook.ts +7 -13
- package/src/resources/senders/agent/tools.ts +1 -1
- package/src/resources/senders/agent.ts +1 -1
- package/src/resources/senders/channels.ts +95 -0
- package/src/resources/senders/index.ts +11 -1
- package/src/resources/senders/senders.ts +86 -634
- package/src/resources/senders/telegram.ts +11 -29
- package/src/resources/senders/whatsapp-sync.ts +17 -115
- package/src/resources/senders.ts +1 -1
- package/src/resources/sub-accounts/api-keys.ts +17 -73
- package/src/resources/sub-accounts/index.ts +1 -1
- package/src/resources/sub-accounts/sub-accounts.ts +38 -147
- package/src/resources/sub-accounts.ts +1 -1
- package/src/resources/templates.ts +47 -358
- package/src/resources/urls.ts +28 -86
- package/src/resources.ts +2 -0
- package/src/types.ts +5464 -0
- package/src/version.ts +3 -1
- package/types.d.mts +4901 -0
- package/types.d.mts.map +1 -0
- package/types.d.ts +4901 -0
- package/types.d.ts.map +1 -0
- package/types.js +4 -0
- package/types.js.map +1 -0
- package/types.mjs +3 -0
- package/types.mjs.map +1 -0
- 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 +2 -1
- package/version.js.map +1 -1
- package/version.mjs +2 -1
- package/version.mjs.map +1 -1
- package/src/lib/.keep +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
//
|
|
2
|
+
// Generated by zavu-codegen from apps/docs/openapi.json. Do not edit: run `bun run codegen`.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Brands = void 0;
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
@@ -8,27 +8,12 @@ const headers_1 = require("../../internal/headers.js");
|
|
|
8
8
|
const path_1 = require("../../internal/utils/path.js");
|
|
9
9
|
class Brands extends resource_1.APIResource {
|
|
10
10
|
/**
|
|
11
|
+
* Create 10DLC brand
|
|
12
|
+
*
|
|
11
13
|
* Create a 10DLC brand registration. The brand starts in draft status. Submit it
|
|
12
14
|
* for review using the submit endpoint.
|
|
13
15
|
*
|
|
14
|
-
*
|
|
15
|
-
* ```ts
|
|
16
|
-
* const brand = await client.number10dlc.brands.create({
|
|
17
|
-
* city: 'San Francisco',
|
|
18
|
-
* country: 'US',
|
|
19
|
-
* displayName: 'Acme Corp',
|
|
20
|
-
* email: 'compliance@acme.com',
|
|
21
|
-
* entityType: 'PRIVATE_PROFIT',
|
|
22
|
-
* phone: '+14155551234',
|
|
23
|
-
* postalCode: '94102',
|
|
24
|
-
* state: 'CA',
|
|
25
|
-
* street: '123 Main St',
|
|
26
|
-
* vertical: 'Technology',
|
|
27
|
-
* companyName: 'Acme Corporation',
|
|
28
|
-
* ein: '12-3456789',
|
|
29
|
-
* website: 'https://acme.com',
|
|
30
|
-
* });
|
|
31
|
-
* ```
|
|
16
|
+
* `POST /v1/10dlc/brands`
|
|
32
17
|
*/
|
|
33
18
|
create(body, options) {
|
|
34
19
|
return this._client.post('/v1/10dlc/brands', { body, ...options });
|
|
@@ -36,39 +21,27 @@ class Brands extends resource_1.APIResource {
|
|
|
36
21
|
/**
|
|
37
22
|
* Get 10DLC brand
|
|
38
23
|
*
|
|
39
|
-
*
|
|
40
|
-
* ```ts
|
|
41
|
-
* const brand = await client.number10dlc.brands.retrieve(
|
|
42
|
-
* 'brandId',
|
|
43
|
-
* );
|
|
44
|
-
* ```
|
|
24
|
+
* `GET /v1/10dlc/brands/{brandId}`
|
|
45
25
|
*/
|
|
46
26
|
retrieve(brandID, options) {
|
|
47
27
|
return this._client.get((0, path_1.path) `/v1/10dlc/brands/${brandID}`, options);
|
|
48
28
|
}
|
|
49
29
|
/**
|
|
30
|
+
* Update 10DLC brand
|
|
31
|
+
*
|
|
50
32
|
* Update a 10DLC brand in draft status. Cannot update after submission.
|
|
51
33
|
*
|
|
52
|
-
*
|
|
53
|
-
* ```ts
|
|
54
|
-
* const brand = await client.number10dlc.brands.update(
|
|
55
|
-
* 'brandId',
|
|
56
|
-
* );
|
|
57
|
-
* ```
|
|
34
|
+
* `PATCH /v1/10dlc/brands/{brandId}`
|
|
58
35
|
*/
|
|
59
36
|
update(brandID, body, options) {
|
|
60
37
|
return this._client.patch((0, path_1.path) `/v1/10dlc/brands/${brandID}`, { body, ...options });
|
|
61
38
|
}
|
|
62
39
|
/**
|
|
40
|
+
* List 10DLC brands
|
|
41
|
+
*
|
|
63
42
|
* List 10DLC brand registrations for this project.
|
|
64
43
|
*
|
|
65
|
-
*
|
|
66
|
-
* ```ts
|
|
67
|
-
* // Automatically fetches more pages as needed.
|
|
68
|
-
* for await (const tenDlcBrand of client.number10dlc.brands.list()) {
|
|
69
|
-
* // ...
|
|
70
|
-
* }
|
|
71
|
-
* ```
|
|
44
|
+
* `GET /v1/10dlc/brands`
|
|
72
45
|
*/
|
|
73
46
|
list(query = {}, options) {
|
|
74
47
|
return this._client.getAPIList('/v1/10dlc/brands', (pagination_1.Cursor), { query, ...options });
|
|
@@ -76,10 +49,7 @@ class Brands extends resource_1.APIResource {
|
|
|
76
49
|
/**
|
|
77
50
|
* Delete 10DLC brand
|
|
78
51
|
*
|
|
79
|
-
*
|
|
80
|
-
* ```ts
|
|
81
|
-
* await client.number10dlc.brands.delete('brandId');
|
|
82
|
-
* ```
|
|
52
|
+
* `DELETE /v1/10dlc/brands/{brandId}`
|
|
83
53
|
*/
|
|
84
54
|
delete(brandID, options) {
|
|
85
55
|
return this._client.delete((0, path_1.path) `/v1/10dlc/brands/${brandID}`, {
|
|
@@ -88,45 +58,42 @@ class Brands extends resource_1.APIResource {
|
|
|
88
58
|
});
|
|
89
59
|
}
|
|
90
60
|
/**
|
|
61
|
+
* List 10DLC use cases
|
|
62
|
+
*
|
|
91
63
|
* List available use cases for 10DLC campaign registration.
|
|
92
64
|
*
|
|
93
|
-
*
|
|
94
|
-
* ```ts
|
|
95
|
-
* const response =
|
|
96
|
-
* await client.number10dlc.brands.listUseCases();
|
|
97
|
-
* ```
|
|
65
|
+
* `GET /v1/10dlc/brands/use-cases`
|
|
98
66
|
*/
|
|
99
67
|
listUseCases(options) {
|
|
100
68
|
return this._client.get('/v1/10dlc/brands/use-cases', options);
|
|
101
69
|
}
|
|
102
70
|
/**
|
|
71
|
+
* Submit 10DLC brand for review
|
|
72
|
+
*
|
|
103
73
|
* Submit a draft brand to The Campaign Registry (TCR) for vetting. The brand must
|
|
104
|
-
* be in draft status
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
74
|
+
* be in draft status, and the team must have an approved Business Verification
|
|
75
|
+
* (KYB) — carriers register a brand against a vetted legal entity, so submitting
|
|
76
|
+
* without one returns `403` with code `kyb_required`.
|
|
77
|
+
*
|
|
78
|
+
* TCR's one-time $4 brand registration fee is charged from your balance at
|
|
79
|
+
* submission (passed through at cost) and refunded if the carrier rejects the
|
|
80
|
+
* registration. The fee is per BRAND: a team registering a second legal entity
|
|
81
|
+
* pays it again. A brand already paid for through the compliance flow is not
|
|
82
|
+
* charged twice. Campaign registration is billed separately when a campaign is
|
|
83
|
+
* submitted.
|
|
109
84
|
*
|
|
110
|
-
*
|
|
111
|
-
* ```ts
|
|
112
|
-
* const response = await client.number10dlc.brands.submit(
|
|
113
|
-
* 'brandId',
|
|
114
|
-
* );
|
|
115
|
-
* ```
|
|
85
|
+
* `POST /v1/10dlc/brands/{brandId}/submit`
|
|
116
86
|
*/
|
|
117
87
|
submit(brandID, options) {
|
|
118
88
|
return this._client.post((0, path_1.path) `/v1/10dlc/brands/${brandID}/submit`, options);
|
|
119
89
|
}
|
|
120
90
|
/**
|
|
91
|
+
* Sync 10DLC brand status
|
|
92
|
+
*
|
|
121
93
|
* Sync the brand status with the registration provider. Use this to check for
|
|
122
94
|
* approval updates after submission.
|
|
123
95
|
*
|
|
124
|
-
*
|
|
125
|
-
* ```ts
|
|
126
|
-
* const response = await client.number10dlc.brands.syncStatus(
|
|
127
|
-
* 'brandId',
|
|
128
|
-
* );
|
|
129
|
-
* ```
|
|
96
|
+
* `POST /v1/10dlc/brands/{brandId}/sync`
|
|
130
97
|
*/
|
|
131
98
|
syncStatus(brandID, options) {
|
|
132
99
|
return this._client.post((0, path_1.path) `/v1/10dlc/brands/${brandID}/sync`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.js","sourceRoot":"","sources":["../../src/resources/number-10dlc/brands.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"brands.js","sourceRoot":"","sources":["../../src/resources/number-10dlc/brands.ts"],"names":[],"mappings":";AAAA,6FAA6F;;;AAE7F,qDAAkD;AAElD,yDAA4D;AAC5D,uDAAsD;AAEtD,uDAAiD;AAGjD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,OAAe,EACf,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,oBAAoB,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,mBAAmB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oBAAoB,OAAO,EAAE,EAAE;YAC5D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,YAAY,CAAC,OAAwB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,OAAO,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;OAOG;IACH,UAAU,CAAC,OAAe,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,oBAAoB,OAAO,OAAO,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACF;AA1GD,wBA0GC"}
|
|
@@ -1,31 +1,16 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Generated by zavu-codegen from apps/docs/openapi.json. Do not edit: run `bun run codegen`.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import { Cursor } from "../../core/pagination.mjs";
|
|
4
4
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
5
5
|
import { path } from "../../internal/utils/path.mjs";
|
|
6
6
|
export class Brands extends APIResource {
|
|
7
7
|
/**
|
|
8
|
+
* Create 10DLC brand
|
|
9
|
+
*
|
|
8
10
|
* Create a 10DLC brand registration. The brand starts in draft status. Submit it
|
|
9
11
|
* for review using the submit endpoint.
|
|
10
12
|
*
|
|
11
|
-
*
|
|
12
|
-
* ```ts
|
|
13
|
-
* const brand = await client.number10dlc.brands.create({
|
|
14
|
-
* city: 'San Francisco',
|
|
15
|
-
* country: 'US',
|
|
16
|
-
* displayName: 'Acme Corp',
|
|
17
|
-
* email: 'compliance@acme.com',
|
|
18
|
-
* entityType: 'PRIVATE_PROFIT',
|
|
19
|
-
* phone: '+14155551234',
|
|
20
|
-
* postalCode: '94102',
|
|
21
|
-
* state: 'CA',
|
|
22
|
-
* street: '123 Main St',
|
|
23
|
-
* vertical: 'Technology',
|
|
24
|
-
* companyName: 'Acme Corporation',
|
|
25
|
-
* ein: '12-3456789',
|
|
26
|
-
* website: 'https://acme.com',
|
|
27
|
-
* });
|
|
28
|
-
* ```
|
|
13
|
+
* `POST /v1/10dlc/brands`
|
|
29
14
|
*/
|
|
30
15
|
create(body, options) {
|
|
31
16
|
return this._client.post('/v1/10dlc/brands', { body, ...options });
|
|
@@ -33,39 +18,27 @@ export class Brands extends APIResource {
|
|
|
33
18
|
/**
|
|
34
19
|
* Get 10DLC brand
|
|
35
20
|
*
|
|
36
|
-
*
|
|
37
|
-
* ```ts
|
|
38
|
-
* const brand = await client.number10dlc.brands.retrieve(
|
|
39
|
-
* 'brandId',
|
|
40
|
-
* );
|
|
41
|
-
* ```
|
|
21
|
+
* `GET /v1/10dlc/brands/{brandId}`
|
|
42
22
|
*/
|
|
43
23
|
retrieve(brandID, options) {
|
|
44
24
|
return this._client.get(path `/v1/10dlc/brands/${brandID}`, options);
|
|
45
25
|
}
|
|
46
26
|
/**
|
|
27
|
+
* Update 10DLC brand
|
|
28
|
+
*
|
|
47
29
|
* Update a 10DLC brand in draft status. Cannot update after submission.
|
|
48
30
|
*
|
|
49
|
-
*
|
|
50
|
-
* ```ts
|
|
51
|
-
* const brand = await client.number10dlc.brands.update(
|
|
52
|
-
* 'brandId',
|
|
53
|
-
* );
|
|
54
|
-
* ```
|
|
31
|
+
* `PATCH /v1/10dlc/brands/{brandId}`
|
|
55
32
|
*/
|
|
56
33
|
update(brandID, body, options) {
|
|
57
34
|
return this._client.patch(path `/v1/10dlc/brands/${brandID}`, { body, ...options });
|
|
58
35
|
}
|
|
59
36
|
/**
|
|
37
|
+
* List 10DLC brands
|
|
38
|
+
*
|
|
60
39
|
* List 10DLC brand registrations for this project.
|
|
61
40
|
*
|
|
62
|
-
*
|
|
63
|
-
* ```ts
|
|
64
|
-
* // Automatically fetches more pages as needed.
|
|
65
|
-
* for await (const tenDlcBrand of client.number10dlc.brands.list()) {
|
|
66
|
-
* // ...
|
|
67
|
-
* }
|
|
68
|
-
* ```
|
|
41
|
+
* `GET /v1/10dlc/brands`
|
|
69
42
|
*/
|
|
70
43
|
list(query = {}, options) {
|
|
71
44
|
return this._client.getAPIList('/v1/10dlc/brands', (Cursor), { query, ...options });
|
|
@@ -73,10 +46,7 @@ export class Brands extends APIResource {
|
|
|
73
46
|
/**
|
|
74
47
|
* Delete 10DLC brand
|
|
75
48
|
*
|
|
76
|
-
*
|
|
77
|
-
* ```ts
|
|
78
|
-
* await client.number10dlc.brands.delete('brandId');
|
|
79
|
-
* ```
|
|
49
|
+
* `DELETE /v1/10dlc/brands/{brandId}`
|
|
80
50
|
*/
|
|
81
51
|
delete(brandID, options) {
|
|
82
52
|
return this._client.delete(path `/v1/10dlc/brands/${brandID}`, {
|
|
@@ -85,45 +55,42 @@ export class Brands extends APIResource {
|
|
|
85
55
|
});
|
|
86
56
|
}
|
|
87
57
|
/**
|
|
58
|
+
* List 10DLC use cases
|
|
59
|
+
*
|
|
88
60
|
* List available use cases for 10DLC campaign registration.
|
|
89
61
|
*
|
|
90
|
-
*
|
|
91
|
-
* ```ts
|
|
92
|
-
* const response =
|
|
93
|
-
* await client.number10dlc.brands.listUseCases();
|
|
94
|
-
* ```
|
|
62
|
+
* `GET /v1/10dlc/brands/use-cases`
|
|
95
63
|
*/
|
|
96
64
|
listUseCases(options) {
|
|
97
65
|
return this._client.get('/v1/10dlc/brands/use-cases', options);
|
|
98
66
|
}
|
|
99
67
|
/**
|
|
68
|
+
* Submit 10DLC brand for review
|
|
69
|
+
*
|
|
100
70
|
* Submit a draft brand to The Campaign Registry (TCR) for vetting. The brand must
|
|
101
|
-
* be in draft status
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
71
|
+
* be in draft status, and the team must have an approved Business Verification
|
|
72
|
+
* (KYB) — carriers register a brand against a vetted legal entity, so submitting
|
|
73
|
+
* without one returns `403` with code `kyb_required`.
|
|
74
|
+
*
|
|
75
|
+
* TCR's one-time $4 brand registration fee is charged from your balance at
|
|
76
|
+
* submission (passed through at cost) and refunded if the carrier rejects the
|
|
77
|
+
* registration. The fee is per BRAND: a team registering a second legal entity
|
|
78
|
+
* pays it again. A brand already paid for through the compliance flow is not
|
|
79
|
+
* charged twice. Campaign registration is billed separately when a campaign is
|
|
80
|
+
* submitted.
|
|
106
81
|
*
|
|
107
|
-
*
|
|
108
|
-
* ```ts
|
|
109
|
-
* const response = await client.number10dlc.brands.submit(
|
|
110
|
-
* 'brandId',
|
|
111
|
-
* );
|
|
112
|
-
* ```
|
|
82
|
+
* `POST /v1/10dlc/brands/{brandId}/submit`
|
|
113
83
|
*/
|
|
114
84
|
submit(brandID, options) {
|
|
115
85
|
return this._client.post(path `/v1/10dlc/brands/${brandID}/submit`, options);
|
|
116
86
|
}
|
|
117
87
|
/**
|
|
88
|
+
* Sync 10DLC brand status
|
|
89
|
+
*
|
|
118
90
|
* Sync the brand status with the registration provider. Use this to check for
|
|
119
91
|
* approval updates after submission.
|
|
120
92
|
*
|
|
121
|
-
*
|
|
122
|
-
* ```ts
|
|
123
|
-
* const response = await client.number10dlc.brands.syncStatus(
|
|
124
|
-
* 'brandId',
|
|
125
|
-
* );
|
|
126
|
-
* ```
|
|
93
|
+
* `POST /v1/10dlc/brands/{brandId}/sync`
|
|
127
94
|
*/
|
|
128
95
|
syncStatus(brandID, options) {
|
|
129
96
|
return this._client.post(path `/v1/10dlc/brands/${brandID}/sync`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.mjs","sourceRoot":"","sources":["../../src/resources/number-10dlc/brands.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"brands.mjs","sourceRoot":"","sources":["../../src/resources/number-10dlc/brands.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAE7F,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,MAAM,EAAe,kCAA8B;AAC5D,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAGjD,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,OAAe,EACf,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,oBAAoB,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;OAMG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAA,MAAmB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjG,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oBAAoB,OAAO,EAAE,EAAE;YAC5D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,YAAY,CAAC,OAAwB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oBAAoB,OAAO,SAAS,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;OAOG;IACH,UAAU,CAAC,OAAe,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,oBAAoB,OAAO,OAAO,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACF"}
|
|
@@ -1,228 +1,85 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import * as PhoneNumbersAPI from "./phone-numbers.mjs";
|
|
3
|
-
import { PhoneNumberAssignParams, PhoneNumberAssignResponse, PhoneNumberListResponse, PhoneNumberUnassignParams, PhoneNumbers, TenDlcPhoneNumberAssignment } from "./phone-numbers.mjs";
|
|
4
2
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
5
|
-
import { Cursor,
|
|
3
|
+
import { Cursor, PagePromise } from "../../../core/pagination.mjs";
|
|
6
4
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
|
+
import type * as T from "../../../types.mjs";
|
|
6
|
+
import * as PhoneNumbersAPI from "./phone-numbers.mjs";
|
|
7
|
+
import { PhoneNumbers, type TenDlcPhoneNumberAssignment, type PhoneNumberListResponse, type PhoneNumberAssignResponse, type PhoneNumberAssignParams, type PhoneNumberUnassignParams } from "./phone-numbers.mjs";
|
|
7
8
|
export declare class Campaigns extends APIResource {
|
|
8
9
|
phoneNumbers: PhoneNumbersAPI.PhoneNumbers;
|
|
9
10
|
/**
|
|
11
|
+
* Create 10DLC campaign
|
|
12
|
+
*
|
|
10
13
|
* Create a 10DLC campaign under an existing brand. The campaign starts in draft
|
|
11
14
|
* status. Submit it for carrier review using the submit endpoint.
|
|
12
15
|
*
|
|
13
|
-
*
|
|
14
|
-
* ```ts
|
|
15
|
-
* const campaign = await client.number10dlc.campaigns.create({
|
|
16
|
-
* affiliateMarketing: false,
|
|
17
|
-
* ageGated: false,
|
|
18
|
-
* brandId: 'brand_abc123',
|
|
19
|
-
* description:
|
|
20
|
-
* 'Send order status updates and shipping notifications to customers who opted in.',
|
|
21
|
-
* directLending: false,
|
|
22
|
-
* embeddedLink: true,
|
|
23
|
-
* embeddedPhone: false,
|
|
24
|
-
* name: 'Order Notifications',
|
|
25
|
-
* numberPooling: false,
|
|
26
|
-
* sampleMessages: [
|
|
27
|
-
* 'Hi {{name}}, your order #{{order_id}} has shipped! Track it at {{url}}',
|
|
28
|
-
* 'Your order #{{order_id}} has been delivered. Thank you for your purchase!',
|
|
29
|
-
* ],
|
|
30
|
-
* subscriberHelp: true,
|
|
31
|
-
* subscriberOptIn: true,
|
|
32
|
-
* subscriberOptOut: true,
|
|
33
|
-
* useCase: 'ACCOUNT_NOTIFICATION',
|
|
34
|
-
* });
|
|
35
|
-
* ```
|
|
16
|
+
* `POST /v1/10dlc/campaigns`
|
|
36
17
|
*/
|
|
37
18
|
create(body: CampaignCreateParams, options?: RequestOptions): APIPromise<CampaignCreateResponse>;
|
|
38
19
|
/**
|
|
39
20
|
* Get 10DLC campaign
|
|
40
21
|
*
|
|
41
|
-
*
|
|
42
|
-
* ```ts
|
|
43
|
-
* const campaign =
|
|
44
|
-
* await client.number10dlc.campaigns.retrieve('campaignId');
|
|
45
|
-
* ```
|
|
22
|
+
* `GET /v1/10dlc/campaigns/{campaignId}`
|
|
46
23
|
*/
|
|
47
24
|
retrieve(campaignID: string, options?: RequestOptions): APIPromise<CampaignRetrieveResponse>;
|
|
48
25
|
/**
|
|
26
|
+
* Update 10DLC campaign
|
|
27
|
+
*
|
|
49
28
|
* Update a 10DLC campaign in draft status. Cannot update after submission.
|
|
50
29
|
*
|
|
51
|
-
*
|
|
52
|
-
* ```ts
|
|
53
|
-
* const campaign = await client.number10dlc.campaigns.update(
|
|
54
|
-
* 'campaignId',
|
|
55
|
-
* );
|
|
56
|
-
* ```
|
|
30
|
+
* `PATCH /v1/10dlc/campaigns/{campaignId}`
|
|
57
31
|
*/
|
|
58
32
|
update(campaignID: string, body: CampaignUpdateParams, options?: RequestOptions): APIPromise<CampaignUpdateResponse>;
|
|
59
33
|
/**
|
|
34
|
+
* List 10DLC campaigns
|
|
35
|
+
*
|
|
60
36
|
* List 10DLC campaign registrations for this project.
|
|
61
37
|
*
|
|
62
|
-
*
|
|
63
|
-
* ```ts
|
|
64
|
-
* // Automatically fetches more pages as needed.
|
|
65
|
-
* for await (const tenDlcCampaign of client.number10dlc.campaigns.list()) {
|
|
66
|
-
* // ...
|
|
67
|
-
* }
|
|
68
|
-
* ```
|
|
38
|
+
* `GET /v1/10dlc/campaigns`
|
|
69
39
|
*/
|
|
70
40
|
list(query?: CampaignListParams | null | undefined, options?: RequestOptions): PagePromise<TenDlcCampaignsCursor, TenDlcCampaign>;
|
|
71
41
|
/**
|
|
72
42
|
* Delete 10DLC campaign
|
|
73
43
|
*
|
|
74
|
-
*
|
|
75
|
-
* ```ts
|
|
76
|
-
* await client.number10dlc.campaigns.delete('campaignId');
|
|
77
|
-
* ```
|
|
44
|
+
* `DELETE /v1/10dlc/campaigns/{campaignId}`
|
|
78
45
|
*/
|
|
79
46
|
delete(campaignID: string, options?: RequestOptions): APIPromise<void>;
|
|
80
47
|
/**
|
|
81
|
-
* Submit
|
|
82
|
-
* and its brand must be verified. TCR's one-time registration fee is charged from
|
|
83
|
-
* your balance at submission ($15 for standard use cases, $2 for LOW_VOLUME),
|
|
84
|
-
* passed through at cost and refunded if the carrier rejects it. Once approved,
|
|
85
|
-
* the campaign's monthly TCR fee ($10 standard, $2 LOW_VOLUME) is charged from
|
|
86
|
-
* your balance while the campaign is active — see registrationCostCents and
|
|
87
|
-
* monthlyFeeCents on the campaign object.
|
|
48
|
+
* Submit 10DLC campaign for review
|
|
88
49
|
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
* )
|
|
94
|
-
*
|
|
50
|
+
* The team must have an approved Business Verification (KYB): submitting without
|
|
51
|
+
* one returns `403` with code `kyb_required`. Submit a draft campaign for carrier
|
|
52
|
+
* review. The campaign must be in draft status and its brand must be verified.
|
|
53
|
+
* TCR's one-time registration fee is charged from your balance at submission ($15
|
|
54
|
+
* for standard use cases, $2 for LOW_VOLUME), passed through at cost and refunded
|
|
55
|
+
* if the carrier rejects it. Once approved, the campaign's monthly TCR fee ($10
|
|
56
|
+
* standard, $2 LOW_VOLUME) is charged from your balance while the campaign is
|
|
57
|
+
* active — see registrationCostCents and monthlyFeeCents on the campaign object.
|
|
58
|
+
*
|
|
59
|
+
* `POST /v1/10dlc/campaigns/{campaignId}/submit`
|
|
95
60
|
*/
|
|
96
61
|
submit(campaignID: string, options?: RequestOptions): APIPromise<CampaignSubmitResponse>;
|
|
97
62
|
/**
|
|
63
|
+
* Sync 10DLC campaign status
|
|
64
|
+
*
|
|
98
65
|
* Sync the campaign status with the registration provider. Use this to check for
|
|
99
66
|
* approval updates after submission.
|
|
100
67
|
*
|
|
101
|
-
*
|
|
102
|
-
* ```ts
|
|
103
|
-
* const response =
|
|
104
|
-
* await client.number10dlc.campaigns.syncStatus(
|
|
105
|
-
* 'campaignId',
|
|
106
|
-
* );
|
|
107
|
-
* ```
|
|
68
|
+
* `POST /v1/10dlc/campaigns/{campaignId}/sync`
|
|
108
69
|
*/
|
|
109
70
|
syncStatus(campaignID: string, options?: RequestOptions): APIPromise<CampaignSyncStatusResponse>;
|
|
110
71
|
}
|
|
111
|
-
export type TenDlcCampaignsCursor = Cursor<TenDlcCampaign>;
|
|
112
|
-
export
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Description of the messaging campaign.
|
|
123
|
-
*/
|
|
124
|
-
description: string;
|
|
125
|
-
directLending: boolean;
|
|
126
|
-
embeddedLink: boolean;
|
|
127
|
-
embeddedPhone: boolean;
|
|
128
|
-
name: string;
|
|
129
|
-
numberPooling: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* Sample messages representative of campaign content.
|
|
132
|
-
*/
|
|
133
|
-
sampleMessages: Array<string>;
|
|
134
|
-
/**
|
|
135
|
-
* Status of a 10DLC campaign registration.
|
|
136
|
-
*/
|
|
137
|
-
status: 'draft' | 'pending' | 'approved' | 'rejected';
|
|
138
|
-
subscriberHelp: boolean;
|
|
139
|
-
subscriberOptIn: boolean;
|
|
140
|
-
subscriberOptOut: boolean;
|
|
141
|
-
updatedAt: string;
|
|
142
|
-
/**
|
|
143
|
-
* Campaign use case type.
|
|
144
|
-
*/
|
|
145
|
-
useCase: string;
|
|
146
|
-
approvedAt?: string | null;
|
|
147
|
-
/**
|
|
148
|
-
* Daily message limit based on brand trust score.
|
|
149
|
-
*/
|
|
150
|
-
dailyLimit?: number | null;
|
|
151
|
-
failureReason?: string | null;
|
|
152
|
-
helpMessage?: string | null;
|
|
153
|
-
messageFlow?: string | null;
|
|
154
|
-
/**
|
|
155
|
-
* Recurring monthly fee in cents.
|
|
156
|
-
*/
|
|
157
|
-
monthlyFeeCents?: number | null;
|
|
158
|
-
optInKeywords?: Array<string> | null;
|
|
159
|
-
optOutKeywords?: Array<string> | null;
|
|
160
|
-
/**
|
|
161
|
-
* One-time registration cost in cents.
|
|
162
|
-
*/
|
|
163
|
-
registrationCostCents?: number | null;
|
|
164
|
-
submittedAt?: string | null;
|
|
165
|
-
subUseCases?: Array<string> | null;
|
|
166
|
-
}
|
|
167
|
-
export interface CampaignCreateResponse {
|
|
168
|
-
campaign: TenDlcCampaign;
|
|
169
|
-
}
|
|
170
|
-
export interface CampaignRetrieveResponse {
|
|
171
|
-
campaign: TenDlcCampaign;
|
|
172
|
-
}
|
|
173
|
-
export interface CampaignUpdateResponse {
|
|
174
|
-
campaign: TenDlcCampaign;
|
|
175
|
-
}
|
|
176
|
-
export interface CampaignSubmitResponse {
|
|
177
|
-
campaign: TenDlcCampaign;
|
|
178
|
-
}
|
|
179
|
-
export interface CampaignSyncStatusResponse {
|
|
180
|
-
campaign: TenDlcCampaign;
|
|
181
|
-
}
|
|
182
|
-
export interface CampaignCreateParams {
|
|
183
|
-
affiliateMarketing: boolean;
|
|
184
|
-
ageGated: boolean;
|
|
185
|
-
/**
|
|
186
|
-
* ID of the brand to create this campaign under.
|
|
187
|
-
*/
|
|
188
|
-
brandId: string;
|
|
189
|
-
description: string;
|
|
190
|
-
directLending: boolean;
|
|
191
|
-
embeddedLink: boolean;
|
|
192
|
-
embeddedPhone: boolean;
|
|
193
|
-
name: string;
|
|
194
|
-
numberPooling: boolean;
|
|
195
|
-
sampleMessages: Array<string>;
|
|
196
|
-
subscriberHelp: boolean;
|
|
197
|
-
subscriberOptIn: boolean;
|
|
198
|
-
subscriberOptOut: boolean;
|
|
199
|
-
/**
|
|
200
|
-
* Campaign use case (e.g., ACCOUNT_NOTIFICATION, MARKETING, 2FA).
|
|
201
|
-
*/
|
|
202
|
-
useCase: string;
|
|
203
|
-
helpMessage?: string;
|
|
204
|
-
messageFlow?: string;
|
|
205
|
-
optInKeywords?: Array<string>;
|
|
206
|
-
optOutKeywords?: Array<string>;
|
|
207
|
-
subUseCases?: Array<string>;
|
|
208
|
-
}
|
|
209
|
-
export interface CampaignUpdateParams {
|
|
210
|
-
description?: string;
|
|
211
|
-
helpMessage?: string;
|
|
212
|
-
messageFlow?: string;
|
|
213
|
-
name?: string;
|
|
214
|
-
optInKeywords?: Array<string>;
|
|
215
|
-
optOutKeywords?: Array<string>;
|
|
216
|
-
sampleMessages?: Array<string>;
|
|
217
|
-
}
|
|
218
|
-
export interface CampaignListParams extends CursorParams {
|
|
219
|
-
/**
|
|
220
|
-
* Filter campaigns by brand ID.
|
|
221
|
-
*/
|
|
222
|
-
brandId?: string;
|
|
223
|
-
}
|
|
72
|
+
export type TenDlcCampaignsCursor = Cursor<T.TenDlcCampaign>;
|
|
73
|
+
export type TenDlcCampaign = T.TenDlcCampaign;
|
|
74
|
+
export type CampaignCreateResponse = T.TenDlcCampaignResponse;
|
|
75
|
+
export type CampaignRetrieveResponse = T.TenDlcCampaignResponse;
|
|
76
|
+
export type CampaignUpdateResponse = T.TenDlcCampaignResponse;
|
|
77
|
+
export type CampaignSubmitResponse = T.TenDlcCampaignResponse;
|
|
78
|
+
export type CampaignSyncStatusResponse = T.TenDlcCampaignResponse;
|
|
79
|
+
export type CampaignCreateParams = T.Number10dlcCampaignsCreateParams;
|
|
80
|
+
export type CampaignUpdateParams = T.Number10dlcCampaignsUpdateParams;
|
|
81
|
+
export type CampaignListParams = T.Number10dlcCampaignsListParams;
|
|
224
82
|
export declare namespace Campaigns {
|
|
225
|
-
export { type TenDlcCampaign as TenDlcCampaign, type CampaignCreateResponse as CampaignCreateResponse, type CampaignRetrieveResponse as CampaignRetrieveResponse, type CampaignUpdateResponse as CampaignUpdateResponse, type CampaignSubmitResponse as CampaignSubmitResponse, type CampaignSyncStatusResponse as CampaignSyncStatusResponse, type TenDlcCampaignsCursor as TenDlcCampaignsCursor, type CampaignCreateParams as CampaignCreateParams, type CampaignUpdateParams as CampaignUpdateParams, type CampaignListParams as CampaignListParams, };
|
|
226
|
-
export { PhoneNumbers as PhoneNumbers, type TenDlcPhoneNumberAssignment as TenDlcPhoneNumberAssignment, type PhoneNumberListResponse as PhoneNumberListResponse, type PhoneNumberAssignResponse as PhoneNumberAssignResponse, type PhoneNumberAssignParams as PhoneNumberAssignParams, type PhoneNumberUnassignParams as PhoneNumberUnassignParams, };
|
|
83
|
+
export { type TenDlcCampaign as TenDlcCampaign, type CampaignCreateResponse as CampaignCreateResponse, type CampaignRetrieveResponse as CampaignRetrieveResponse, type CampaignUpdateResponse as CampaignUpdateResponse, type CampaignSubmitResponse as CampaignSubmitResponse, type CampaignSyncStatusResponse as CampaignSyncStatusResponse, type TenDlcCampaignsCursor as TenDlcCampaignsCursor, type CampaignCreateParams as CampaignCreateParams, type CampaignUpdateParams as CampaignUpdateParams, type CampaignListParams as CampaignListParams, PhoneNumbers as PhoneNumbers, type TenDlcPhoneNumberAssignment as TenDlcPhoneNumberAssignment, type PhoneNumberListResponse as PhoneNumberListResponse, type PhoneNumberAssignResponse as PhoneNumberAssignResponse, type PhoneNumberAssignParams as PhoneNumberAssignParams, type PhoneNumberUnassignParams as PhoneNumberUnassignParams, };
|
|
227
84
|
}
|
|
228
85
|
//# sourceMappingURL=campaigns.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"campaigns.d.mts","sourceRoot":"","sources":["../../../src/resources/number-10dlc/campaigns/campaigns.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,
|
|
1
|
+
{"version":3,"file":"campaigns.d.mts","sourceRoot":"","sources":["../../../src/resources/number-10dlc/campaigns/campaigns.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,qCAAiC;AAE/D,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAEnE,OAAO,KAAK,KAAK,CAAC,2BAAuB;AACzC,OAAO,KAAK,eAAe,4BAAwB;AACnD,OAAO,EACL,YAAY,EACZ,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC/B,4BAAwB;AAEzB,qBAAa,SAAU,SAAQ,WAAW;IACxC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAE5F;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIhG;;;;OAIG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAI5F;;;;;;OAMG;IACH,MAAM,CACJ,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;;;OAMG;IACH,IAAI,CACF,KAAK,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qBAAqB,EAAE,cAAc,CAAC;IAIrD;;;;OAIG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOtE;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIxF;;;;;;;OAOG;IACH,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;CAGjG;AAED,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;AAE7D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,cAAc,CAAC;AAE9C,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,sBAAsB,CAAC;AAE9D,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,sBAAsB,CAAC;AAEhE,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,sBAAsB,CAAC;AAE9D,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,sBAAsB,CAAC;AAE9D,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,sBAAsB,CAAC;AAElE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,gCAAgC,CAAC;AAEtE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,gCAAgC,CAAC;AAEtE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,8BAA8B,CAAC;AAElE,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,YAAY,IAAI,YAAY,EAC5B,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|