@zavudev/sdk 0.31.0 → 0.43.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 +197 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +36 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +36 -6
- package/client.d.ts.map +1 -1
- package/client.js +42 -1
- package/client.js.map +1 -1
- package/client.mjs +42 -1
- 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.mjs.map +1 -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.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -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.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +10 -10
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +10 -10
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- 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 +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -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.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/addresses.d.mts.map +1 -1
- package/resources/addresses.d.ts.map +1 -1
- package/resources/addresses.mjs.map +1 -1
- package/resources/balance.d.mts +33 -0
- package/resources/balance.d.mts.map +1 -0
- package/resources/balance.d.ts +33 -0
- package/resources/balance.d.ts.map +1 -0
- package/resources/balance.js +16 -0
- package/resources/balance.js.map +1 -0
- package/resources/balance.mjs +12 -0
- package/resources/balance.mjs.map +1 -0
- package/resources/broadcasts/broadcasts.d.mts +43 -2
- package/resources/broadcasts/broadcasts.d.mts.map +1 -1
- package/resources/broadcasts/broadcasts.d.ts +43 -2
- package/resources/broadcasts/broadcasts.d.ts.map +1 -1
- package/resources/broadcasts/broadcasts.js +28 -0
- package/resources/broadcasts/broadcasts.js.map +1 -1
- package/resources/broadcasts/broadcasts.mjs +28 -0
- package/resources/broadcasts/broadcasts.mjs.map +1 -1
- package/resources/broadcasts/contacts.d.mts +9 -1
- package/resources/broadcasts/contacts.d.mts.map +1 -1
- package/resources/broadcasts/contacts.d.ts +9 -1
- package/resources/broadcasts/contacts.d.ts.map +1 -1
- package/resources/broadcasts/contacts.mjs.map +1 -1
- package/resources/broadcasts/index.d.mts +1 -1
- package/resources/broadcasts/index.d.mts.map +1 -1
- package/resources/broadcasts/index.d.ts +1 -1
- package/resources/broadcasts/index.d.ts.map +1 -1
- package/resources/broadcasts/index.js.map +1 -1
- package/resources/broadcasts/index.mjs.map +1 -1
- package/resources/broadcasts.d.mts.map +1 -1
- package/resources/broadcasts.d.ts.map +1 -1
- package/resources/broadcasts.mjs.map +1 -1
- package/resources/contacts/channels.d.mts +127 -0
- package/resources/contacts/channels.d.mts.map +1 -0
- package/resources/contacts/channels.d.ts +127 -0
- package/resources/contacts/channels.d.ts.map +1 -0
- package/resources/contacts/channels.js +76 -0
- package/resources/contacts/channels.js.map +1 -0
- package/resources/contacts/channels.mjs +72 -0
- package/resources/contacts/channels.mjs.map +1 -0
- package/resources/contacts/contacts.d.mts +276 -0
- package/resources/contacts/contacts.d.mts.map +1 -0
- package/resources/contacts/contacts.d.ts +276 -0
- package/resources/contacts/contacts.d.ts.map +1 -0
- package/resources/contacts/contacts.js +137 -0
- package/resources/contacts/contacts.js.map +1 -0
- package/resources/contacts/contacts.mjs +132 -0
- package/resources/contacts/contacts.mjs.map +1 -0
- package/resources/contacts/index.d.mts +3 -0
- package/resources/contacts/index.d.mts.map +1 -0
- package/resources/contacts/index.d.ts +3 -0
- package/resources/contacts/index.d.ts.map +1 -0
- package/resources/contacts/index.js +9 -0
- package/resources/contacts/index.js.map +1 -0
- package/resources/contacts/index.mjs +4 -0
- package/resources/contacts/index.mjs.map +1 -0
- package/resources/contacts.d.mts +1 -144
- package/resources/contacts.d.mts.map +1 -1
- package/resources/contacts.d.ts +1 -144
- package/resources/contacts.d.ts.map +1 -1
- package/resources/contacts.js +2 -31
- package/resources/contacts.js.map +1 -1
- package/resources/contacts.mjs +1 -29
- package/resources/contacts.mjs.map +1 -1
- package/resources/exports.d.mts +101 -0
- package/resources/exports.d.mts.map +1 -0
- package/resources/exports.d.ts +101 -0
- package/resources/exports.d.ts.map +1 -0
- package/resources/exports.js +53 -0
- package/resources/exports.js.map +1 -0
- package/resources/exports.mjs +49 -0
- package/resources/exports.mjs.map +1 -0
- package/resources/functions/functions.d.mts +420 -0
- package/resources/functions/functions.d.mts.map +1 -0
- package/resources/functions/functions.d.ts +420 -0
- package/resources/functions/functions.d.ts.map +1 -0
- package/resources/functions/functions.js +129 -0
- package/resources/functions/functions.js.map +1 -0
- package/resources/functions/functions.mjs +124 -0
- package/resources/functions/functions.mjs.map +1 -0
- package/resources/functions/index.d.mts +3 -0
- package/resources/functions/index.d.mts.map +1 -0
- package/resources/functions/index.d.ts +3 -0
- package/resources/functions/index.d.ts.map +1 -0
- package/resources/functions/index.js +9 -0
- package/resources/functions/index.js.map +1 -0
- package/resources/functions/index.mjs +4 -0
- package/resources/functions/index.mjs.map +1 -0
- package/resources/functions/secrets.d.mts +78 -0
- package/resources/functions/secrets.d.mts.map +1 -0
- package/resources/functions/secrets.d.ts +78 -0
- package/resources/functions/secrets.d.ts.map +1 -0
- package/resources/functions/secrets.js +61 -0
- package/resources/functions/secrets.js.map +1 -0
- package/resources/functions/secrets.mjs +57 -0
- package/resources/functions/secrets.mjs.map +1 -0
- package/resources/functions.d.mts +2 -0
- package/resources/functions.d.mts.map +1 -0
- package/resources/functions.d.ts +2 -0
- package/resources/functions.d.ts.map +1 -0
- package/resources/functions.js +6 -0
- package/resources/functions.js.map +1 -0
- package/resources/functions.mjs +3 -0
- package/resources/functions.mjs.map +1 -0
- package/resources/index.d.mts +13 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +13 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +22 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +11 -1
- package/resources/index.mjs.map +1 -1
- package/resources/introspect.d.mts.map +1 -1
- package/resources/introspect.d.ts.map +1 -1
- package/resources/introspect.mjs.map +1 -1
- package/resources/invitations.d.mts +133 -0
- package/resources/invitations.d.mts.map +1 -0
- package/resources/invitations.d.ts +133 -0
- package/resources/invitations.d.ts.map +1 -0
- package/resources/invitations.js +67 -0
- package/resources/invitations.js.map +1 -0
- package/resources/invitations.mjs +63 -0
- package/resources/invitations.mjs.map +1 -0
- package/resources/me.d.mts +34 -0
- package/resources/me.d.mts.map +1 -0
- package/resources/me.d.ts +34 -0
- package/resources/me.d.ts.map +1 -0
- package/resources/me.js +16 -0
- package/resources/me.js.map +1 -0
- package/resources/me.mjs +12 -0
- package/resources/me.mjs.map +1 -0
- package/resources/messages.d.mts +112 -7
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +112 -7
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +24 -0
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +24 -0
- package/resources/messages.mjs.map +1 -1
- package/resources/number-10dlc/brands.d.mts +258 -0
- package/resources/number-10dlc/brands.d.mts.map +1 -0
- package/resources/number-10dlc/brands.d.ts +258 -0
- package/resources/number-10dlc/brands.d.ts.map +1 -0
- package/resources/number-10dlc/brands.js +132 -0
- package/resources/number-10dlc/brands.js.map +1 -0
- package/resources/number-10dlc/brands.mjs +128 -0
- package/resources/number-10dlc/brands.mjs.map +1 -0
- package/resources/number-10dlc/campaigns/campaigns.d.mts +223 -0
- package/resources/number-10dlc/campaigns/campaigns.d.mts.map +1 -0
- package/resources/number-10dlc/campaigns/campaigns.d.ts +223 -0
- package/resources/number-10dlc/campaigns/campaigns.d.ts.map +1 -0
- package/resources/number-10dlc/campaigns/campaigns.js +133 -0
- package/resources/number-10dlc/campaigns/campaigns.js.map +1 -0
- package/resources/number-10dlc/campaigns/campaigns.mjs +128 -0
- package/resources/number-10dlc/campaigns/campaigns.mjs.map +1 -0
- package/resources/number-10dlc/campaigns/index.d.mts +3 -0
- package/resources/number-10dlc/campaigns/index.d.mts.map +1 -0
- package/resources/number-10dlc/campaigns/index.d.ts +3 -0
- package/resources/number-10dlc/campaigns/index.d.ts.map +1 -0
- package/resources/number-10dlc/campaigns/index.js +9 -0
- package/resources/number-10dlc/campaigns/index.js.map +1 -0
- package/resources/number-10dlc/campaigns/index.mjs +4 -0
- package/resources/number-10dlc/campaigns/index.mjs.map +1 -0
- package/resources/number-10dlc/campaigns/phone-numbers.d.mts +79 -0
- package/resources/number-10dlc/campaigns/phone-numbers.d.mts.map +1 -0
- package/resources/number-10dlc/campaigns/phone-numbers.d.ts +79 -0
- package/resources/number-10dlc/campaigns/phone-numbers.d.ts.map +1 -0
- package/resources/number-10dlc/campaigns/phone-numbers.js +59 -0
- package/resources/number-10dlc/campaigns/phone-numbers.js.map +1 -0
- package/resources/number-10dlc/campaigns/phone-numbers.mjs +55 -0
- package/resources/number-10dlc/campaigns/phone-numbers.mjs.map +1 -0
- package/resources/number-10dlc/campaigns.d.mts +2 -0
- package/resources/number-10dlc/campaigns.d.mts.map +1 -0
- package/resources/number-10dlc/campaigns.d.ts +2 -0
- package/resources/number-10dlc/campaigns.d.ts.map +1 -0
- package/resources/number-10dlc/campaigns.js +6 -0
- package/resources/number-10dlc/campaigns.js.map +1 -0
- package/resources/number-10dlc/campaigns.mjs +3 -0
- package/resources/number-10dlc/campaigns.mjs.map +1 -0
- package/resources/number-10dlc/index.d.mts +4 -0
- package/resources/number-10dlc/index.d.mts.map +1 -0
- package/resources/number-10dlc/index.d.ts +4 -0
- package/resources/number-10dlc/index.d.ts.map +1 -0
- package/resources/number-10dlc/index.js +11 -0
- package/resources/number-10dlc/index.js.map +1 -0
- package/resources/number-10dlc/index.mjs +5 -0
- package/resources/number-10dlc/index.mjs.map +1 -0
- package/resources/number-10dlc/number-10dlc.d.mts +14 -0
- package/resources/number-10dlc/number-10dlc.d.mts.map +1 -0
- package/resources/number-10dlc/number-10dlc.d.ts +14 -0
- package/resources/number-10dlc/number-10dlc.d.ts.map +1 -0
- package/resources/number-10dlc/number-10dlc.js +21 -0
- package/resources/number-10dlc/number-10dlc.js.map +1 -0
- package/resources/number-10dlc/number-10dlc.mjs +16 -0
- package/resources/number-10dlc/number-10dlc.mjs.map +1 -0
- package/resources/number-10dlc.d.mts +2 -0
- package/resources/number-10dlc.d.mts.map +1 -0
- package/resources/number-10dlc.d.ts +2 -0
- package/resources/number-10dlc.d.ts.map +1 -0
- package/resources/number-10dlc.js +6 -0
- package/resources/number-10dlc.js.map +1 -0
- package/resources/number-10dlc.mjs +3 -0
- package/resources/number-10dlc.mjs.map +1 -0
- package/resources/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers.mjs.map +1 -1
- package/resources/plan.d.mts +43 -0
- package/resources/plan.d.mts.map +1 -0
- package/resources/plan.d.ts +43 -0
- package/resources/plan.d.ts.map +1 -0
- package/resources/plan.js +16 -0
- package/resources/plan.js.map +1 -0
- package/resources/plan.mjs +12 -0
- package/resources/plan.mjs.map +1 -0
- package/resources/regulatory-documents.d.mts.map +1 -1
- package/resources/regulatory-documents.d.ts.map +1 -1
- package/resources/regulatory-documents.mjs.map +1 -1
- package/resources/senders/agent/agent.d.mts +6 -6
- package/resources/senders/agent/agent.d.mts.map +1 -1
- package/resources/senders/agent/agent.d.ts +6 -6
- package/resources/senders/agent/agent.d.ts.map +1 -1
- package/resources/senders/agent/agent.js.map +1 -1
- package/resources/senders/agent/agent.mjs +1 -1
- package/resources/senders/agent/agent.mjs.map +1 -1
- package/resources/senders/agent/executions.d.mts +22 -1
- package/resources/senders/agent/executions.d.mts.map +1 -1
- package/resources/senders/agent/executions.d.ts +22 -1
- package/resources/senders/agent/executions.d.ts.map +1 -1
- package/resources/senders/agent/executions.js +17 -0
- package/resources/senders/agent/executions.js.map +1 -1
- package/resources/senders/agent/executions.mjs +17 -0
- package/resources/senders/agent/executions.mjs.map +1 -1
- package/resources/senders/agent/flows.d.mts +40 -114
- package/resources/senders/agent/flows.d.mts.map +1 -1
- package/resources/senders/agent/flows.d.ts +40 -114
- package/resources/senders/agent/flows.d.ts.map +1 -1
- package/resources/senders/agent/flows.mjs.map +1 -1
- package/resources/senders/agent/index.d.mts +3 -3
- package/resources/senders/agent/index.d.mts.map +1 -1
- package/resources/senders/agent/index.d.ts +3 -3
- package/resources/senders/agent/index.d.ts.map +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.map +1 -1
- package/resources/senders/agent/knowledge-bases/documents.d.ts.map +1 -1
- package/resources/senders/agent/knowledge-bases/documents.mjs.map +1 -1
- package/resources/senders/agent/knowledge-bases/index.d.mts.map +1 -1
- package/resources/senders/agent/knowledge-bases/index.d.ts.map +1 -1
- package/resources/senders/agent/knowledge-bases/index.mjs.map +1 -1
- package/resources/senders/agent/knowledge-bases/knowledge-bases.d.mts.map +1 -1
- package/resources/senders/agent/knowledge-bases/knowledge-bases.d.ts.map +1 -1
- package/resources/senders/agent/knowledge-bases/knowledge-bases.mjs.map +1 -1
- package/resources/senders/agent/knowledge-bases.d.mts.map +1 -1
- package/resources/senders/agent/knowledge-bases.d.ts.map +1 -1
- package/resources/senders/agent/knowledge-bases.mjs.map +1 -1
- package/resources/senders/agent/tools.d.mts +15 -47
- package/resources/senders/agent/tools.d.mts.map +1 -1
- package/resources/senders/agent/tools.d.ts +15 -47
- package/resources/senders/agent/tools.d.ts.map +1 -1
- package/resources/senders/agent/tools.mjs.map +1 -1
- package/resources/senders/agent.d.mts.map +1 -1
- package/resources/senders/agent.d.ts.map +1 -1
- package/resources/senders/agent.mjs.map +1 -1
- 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 +3 -1
- package/resources/senders/index.js.map +1 -1
- package/resources/senders/index.mjs +1 -0
- package/resources/senders/index.mjs.map +1 -1
- package/resources/senders/senders.d.mts +24 -1
- package/resources/senders/senders.d.mts.map +1 -1
- package/resources/senders/senders.d.ts +24 -1
- package/resources/senders/senders.d.ts.map +1 -1
- package/resources/senders/senders.js +4 -0
- package/resources/senders/senders.js.map +1 -1
- package/resources/senders/senders.mjs +4 -0
- package/resources/senders/senders.mjs.map +1 -1
- package/resources/senders/whatsapp-sync.d.mts +134 -0
- package/resources/senders/whatsapp-sync.d.mts.map +1 -0
- package/resources/senders/whatsapp-sync.d.ts +134 -0
- package/resources/senders/whatsapp-sync.d.ts.map +1 -0
- package/resources/senders/whatsapp-sync.js +56 -0
- package/resources/senders/whatsapp-sync.js.map +1 -0
- package/resources/senders/whatsapp-sync.mjs +52 -0
- package/resources/senders/whatsapp-sync.mjs.map +1 -0
- package/resources/senders.d.mts.map +1 -1
- package/resources/senders.d.ts.map +1 -1
- package/resources/senders.mjs.map +1 -1
- package/resources/sub-accounts/api-keys.d.mts +88 -0
- package/resources/sub-accounts/api-keys.d.mts.map +1 -0
- package/resources/sub-accounts/api-keys.d.ts +88 -0
- package/resources/sub-accounts/api-keys.d.ts.map +1 -0
- package/resources/sub-accounts/api-keys.js +56 -0
- package/resources/sub-accounts/api-keys.js.map +1 -0
- package/resources/sub-accounts/api-keys.mjs +52 -0
- package/resources/sub-accounts/api-keys.mjs.map +1 -0
- package/resources/sub-accounts/index.d.mts +3 -0
- package/resources/sub-accounts/index.d.mts.map +1 -0
- package/resources/sub-accounts/index.d.ts +3 -0
- package/resources/sub-accounts/index.d.ts.map +1 -0
- package/resources/sub-accounts/index.js +9 -0
- package/resources/sub-accounts/index.js.map +1 -0
- package/resources/sub-accounts/index.mjs +4 -0
- package/resources/sub-accounts/index.mjs.map +1 -0
- package/resources/sub-accounts/sub-accounts.d.mts +174 -0
- package/resources/sub-accounts/sub-accounts.d.mts.map +1 -0
- package/resources/sub-accounts/sub-accounts.d.ts +174 -0
- package/resources/sub-accounts/sub-accounts.d.ts.map +1 -0
- package/resources/sub-accounts/sub-accounts.js +100 -0
- package/resources/sub-accounts/sub-accounts.js.map +1 -0
- package/resources/sub-accounts/sub-accounts.mjs +95 -0
- package/resources/sub-accounts/sub-accounts.mjs.map +1 -0
- package/resources/sub-accounts.d.mts +2 -0
- package/resources/sub-accounts.d.mts.map +1 -0
- package/resources/sub-accounts.d.ts +2 -0
- package/resources/sub-accounts.d.ts.map +1 -0
- package/resources/sub-accounts.js +6 -0
- package/resources/sub-accounts.js.map +1 -0
- package/resources/sub-accounts.mjs +3 -0
- package/resources/sub-accounts.mjs.map +1 -0
- package/resources/templates.d.mts +58 -2
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +58 -2
- package/resources/templates.d.ts.map +1 -1
- package/resources/templates.mjs.map +1 -1
- package/resources/urls.d.mts +88 -0
- package/resources/urls.d.mts.map +1 -0
- package/resources/urls.d.ts +88 -0
- package/resources/urls.d.ts.map +1 -0
- package/resources/urls.js +55 -0
- package/resources/urls.js.map +1 -0
- package/resources/urls.mjs +51 -0
- package/resources/urls.mjs.map +1 -0
- package/resources/usage.d.mts +36 -0
- package/resources/usage.d.mts.map +1 -0
- package/resources/usage.d.ts +36 -0
- package/resources/usage.d.ts.map +1 -0
- package/resources/usage.js +16 -0
- package/resources/usage.js.map +1 -0
- package/resources/usage.mjs +12 -0
- package/resources/usage.mjs.map +1 -0
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +182 -6
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/env.ts +2 -2
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/balance.ts +43 -0
- package/src/resources/broadcasts/broadcasts.ts +50 -1
- package/src/resources/broadcasts/contacts.ts +8 -1
- package/src/resources/broadcasts/index.ts +2 -0
- package/src/resources/contacts/channels.ts +177 -0
- package/src/resources/contacts/contacts.ts +380 -0
- package/src/resources/contacts/index.ts +22 -0
- package/src/resources/contacts.ts +1 -196
- package/src/resources/exports.ts +141 -0
- package/src/resources/functions/functions.ts +562 -0
- package/src/resources/functions/index.ts +23 -0
- package/src/resources/functions/secrets.ts +112 -0
- package/src/resources/functions.ts +3 -0
- package/src/resources/index.ts +68 -1
- package/src/resources/invitations.ts +188 -0
- package/src/resources/me.ts +49 -0
- package/src/resources/messages.ts +140 -4
- package/src/resources/number-10dlc/brands.ts +377 -0
- package/src/resources/number-10dlc/campaigns/campaigns.ts +349 -0
- package/src/resources/number-10dlc/campaigns/index.ts +23 -0
- package/src/resources/number-10dlc/campaigns/phone-numbers.ts +123 -0
- package/src/resources/number-10dlc/campaigns.ts +3 -0
- package/src/resources/number-10dlc/index.ts +30 -0
- package/src/resources/number-10dlc/number-10dlc.ts +71 -0
- package/src/resources/number-10dlc.ts +3 -0
- package/src/resources/plan.ts +62 -0
- package/src/resources/senders/agent/agent.ts +18 -2
- package/src/resources/senders/agent/executions.ts +36 -1
- package/src/resources/senders/agent/flows.ts +44 -126
- package/src/resources/senders/agent/index.ts +9 -1
- package/src/resources/senders/agent/tools.ts +13 -50
- package/src/resources/senders/index.ts +9 -0
- package/src/resources/senders/senders.ts +47 -1
- package/src/resources/senders/whatsapp-sync.ts +175 -0
- package/src/resources/sub-accounts/api-keys.ts +129 -0
- package/src/resources/sub-accounts/index.ts +22 -0
- package/src/resources/sub-accounts/sub-accounts.ts +252 -0
- package/src/resources/sub-accounts.ts +3 -0
- package/src/resources/templates.ts +69 -2
- package/src/resources/urls.ts +125 -0
- package/src/resources/usage.ts +48 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Campaigns,
|
|
5
|
+
type TenDlcCampaign,
|
|
6
|
+
type CampaignCreateResponse,
|
|
7
|
+
type CampaignRetrieveResponse,
|
|
8
|
+
type CampaignUpdateResponse,
|
|
9
|
+
type CampaignSubmitResponse,
|
|
10
|
+
type CampaignSyncStatusResponse,
|
|
11
|
+
type CampaignCreateParams,
|
|
12
|
+
type CampaignUpdateParams,
|
|
13
|
+
type CampaignListParams,
|
|
14
|
+
type TenDlcCampaignsCursor,
|
|
15
|
+
} from './campaigns';
|
|
16
|
+
export {
|
|
17
|
+
PhoneNumbers,
|
|
18
|
+
type TenDlcPhoneNumberAssignment,
|
|
19
|
+
type PhoneNumberListResponse,
|
|
20
|
+
type PhoneNumberAssignResponse,
|
|
21
|
+
type PhoneNumberAssignParams,
|
|
22
|
+
type PhoneNumberUnassignParams,
|
|
23
|
+
} from './phone-numbers';
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { path } from '../../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class PhoneNumbers extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* List phone numbers assigned to a 10DLC campaign.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const phoneNumbers =
|
|
16
|
+
* await client.number10dlc.campaigns.phoneNumbers.list(
|
|
17
|
+
* 'campaignId',
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
list(campaignID: string, options?: RequestOptions): APIPromise<PhoneNumberListResponse> {
|
|
22
|
+
return this._client.get(path`/v1/10dlc/campaigns/${campaignID}/phone-numbers`, options);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Assign a US phone number to an approved 10DLC campaign. The campaign must be in
|
|
27
|
+
* approved status.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const response =
|
|
32
|
+
* await client.number10dlc.campaigns.phoneNumbers.assign(
|
|
33
|
+
* 'campaignId',
|
|
34
|
+
* { phoneNumberId: 'pn_abc123' },
|
|
35
|
+
* );
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
assign(
|
|
39
|
+
campaignID: string,
|
|
40
|
+
body: PhoneNumberAssignParams,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): APIPromise<PhoneNumberAssignResponse> {
|
|
43
|
+
return this._client.post(path`/v1/10dlc/campaigns/${campaignID}/phone-numbers`, { body, ...options });
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Remove a phone number assignment from a 10DLC campaign.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* await client.number10dlc.campaigns.phoneNumbers.unassign(
|
|
52
|
+
* 'assignmentId',
|
|
53
|
+
* { campaignId: 'campaignId' },
|
|
54
|
+
* );
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
unassign(
|
|
58
|
+
assignmentID: string,
|
|
59
|
+
params: PhoneNumberUnassignParams,
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): APIPromise<void> {
|
|
62
|
+
const { campaignId } = params;
|
|
63
|
+
return this._client.delete(path`/v1/10dlc/campaigns/${campaignId}/phone-numbers/${assignmentID}`, {
|
|
64
|
+
...options,
|
|
65
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface TenDlcPhoneNumberAssignment {
|
|
71
|
+
id: string;
|
|
72
|
+
|
|
73
|
+
campaignId: string;
|
|
74
|
+
|
|
75
|
+
createdAt: string;
|
|
76
|
+
|
|
77
|
+
phoneNumberId: string;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Assignment status.
|
|
81
|
+
*/
|
|
82
|
+
status: 'pending' | 'active' | 'failed';
|
|
83
|
+
|
|
84
|
+
updatedAt: string;
|
|
85
|
+
|
|
86
|
+
assignedAt?: string | null;
|
|
87
|
+
|
|
88
|
+
failureReason?: string | null;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface PhoneNumberListResponse {
|
|
92
|
+
items: Array<TenDlcPhoneNumberAssignment>;
|
|
93
|
+
|
|
94
|
+
nextCursor?: string | null;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface PhoneNumberAssignResponse {
|
|
98
|
+
assignment: TenDlcPhoneNumberAssignment;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface PhoneNumberAssignParams {
|
|
102
|
+
/**
|
|
103
|
+
* ID of the phone number to assign.
|
|
104
|
+
*/
|
|
105
|
+
phoneNumberId: string;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface PhoneNumberUnassignParams {
|
|
109
|
+
/**
|
|
110
|
+
* 10DLC campaign ID.
|
|
111
|
+
*/
|
|
112
|
+
campaignId: string;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export declare namespace PhoneNumbers {
|
|
116
|
+
export {
|
|
117
|
+
type TenDlcPhoneNumberAssignment as TenDlcPhoneNumberAssignment,
|
|
118
|
+
type PhoneNumberListResponse as PhoneNumberListResponse,
|
|
119
|
+
type PhoneNumberAssignResponse as PhoneNumberAssignResponse,
|
|
120
|
+
type PhoneNumberAssignParams as PhoneNumberAssignParams,
|
|
121
|
+
type PhoneNumberUnassignParams as PhoneNumberUnassignParams,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Brands,
|
|
5
|
+
type TenDlcBrand,
|
|
6
|
+
type BrandCreateResponse,
|
|
7
|
+
type BrandRetrieveResponse,
|
|
8
|
+
type BrandUpdateResponse,
|
|
9
|
+
type BrandListUseCasesResponse,
|
|
10
|
+
type BrandSubmitResponse,
|
|
11
|
+
type BrandSyncStatusResponse,
|
|
12
|
+
type BrandCreateParams,
|
|
13
|
+
type BrandUpdateParams,
|
|
14
|
+
type BrandListParams,
|
|
15
|
+
type TenDlcBrandsCursor,
|
|
16
|
+
} from './brands';
|
|
17
|
+
export {
|
|
18
|
+
Campaigns,
|
|
19
|
+
type TenDlcCampaign,
|
|
20
|
+
type CampaignCreateResponse,
|
|
21
|
+
type CampaignRetrieveResponse,
|
|
22
|
+
type CampaignUpdateResponse,
|
|
23
|
+
type CampaignSubmitResponse,
|
|
24
|
+
type CampaignSyncStatusResponse,
|
|
25
|
+
type CampaignCreateParams,
|
|
26
|
+
type CampaignUpdateParams,
|
|
27
|
+
type CampaignListParams,
|
|
28
|
+
type TenDlcCampaignsCursor,
|
|
29
|
+
} from './campaigns/index';
|
|
30
|
+
export { Number10dlc } from './number-10dlc';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as BrandsAPI from './brands';
|
|
5
|
+
import {
|
|
6
|
+
BrandCreateParams,
|
|
7
|
+
BrandCreateResponse,
|
|
8
|
+
BrandListParams,
|
|
9
|
+
BrandListUseCasesResponse,
|
|
10
|
+
BrandRetrieveResponse,
|
|
11
|
+
BrandSubmitResponse,
|
|
12
|
+
BrandSyncStatusResponse,
|
|
13
|
+
BrandUpdateParams,
|
|
14
|
+
BrandUpdateResponse,
|
|
15
|
+
Brands,
|
|
16
|
+
TenDlcBrand,
|
|
17
|
+
TenDlcBrandsCursor,
|
|
18
|
+
} from './brands';
|
|
19
|
+
import * as CampaignsAPI from './campaigns/campaigns';
|
|
20
|
+
import {
|
|
21
|
+
CampaignCreateParams,
|
|
22
|
+
CampaignCreateResponse,
|
|
23
|
+
CampaignListParams,
|
|
24
|
+
CampaignRetrieveResponse,
|
|
25
|
+
CampaignSubmitResponse,
|
|
26
|
+
CampaignSyncStatusResponse,
|
|
27
|
+
CampaignUpdateParams,
|
|
28
|
+
CampaignUpdateResponse,
|
|
29
|
+
Campaigns,
|
|
30
|
+
TenDlcCampaign,
|
|
31
|
+
TenDlcCampaignsCursor,
|
|
32
|
+
} from './campaigns/campaigns';
|
|
33
|
+
|
|
34
|
+
export class Number10dlc extends APIResource {
|
|
35
|
+
brands: BrandsAPI.Brands = new BrandsAPI.Brands(this._client);
|
|
36
|
+
campaigns: CampaignsAPI.Campaigns = new CampaignsAPI.Campaigns(this._client);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
Number10dlc.Brands = Brands;
|
|
40
|
+
Number10dlc.Campaigns = Campaigns;
|
|
41
|
+
|
|
42
|
+
export declare namespace Number10dlc {
|
|
43
|
+
export {
|
|
44
|
+
Brands as Brands,
|
|
45
|
+
type TenDlcBrand as TenDlcBrand,
|
|
46
|
+
type BrandCreateResponse as BrandCreateResponse,
|
|
47
|
+
type BrandRetrieveResponse as BrandRetrieveResponse,
|
|
48
|
+
type BrandUpdateResponse as BrandUpdateResponse,
|
|
49
|
+
type BrandListUseCasesResponse as BrandListUseCasesResponse,
|
|
50
|
+
type BrandSubmitResponse as BrandSubmitResponse,
|
|
51
|
+
type BrandSyncStatusResponse as BrandSyncStatusResponse,
|
|
52
|
+
type TenDlcBrandsCursor as TenDlcBrandsCursor,
|
|
53
|
+
type BrandCreateParams as BrandCreateParams,
|
|
54
|
+
type BrandUpdateParams as BrandUpdateParams,
|
|
55
|
+
type BrandListParams as BrandListParams,
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
Campaigns as Campaigns,
|
|
60
|
+
type TenDlcCampaign as TenDlcCampaign,
|
|
61
|
+
type CampaignCreateResponse as CampaignCreateResponse,
|
|
62
|
+
type CampaignRetrieveResponse as CampaignRetrieveResponse,
|
|
63
|
+
type CampaignUpdateResponse as CampaignUpdateResponse,
|
|
64
|
+
type CampaignSubmitResponse as CampaignSubmitResponse,
|
|
65
|
+
type CampaignSyncStatusResponse as CampaignSyncStatusResponse,
|
|
66
|
+
type TenDlcCampaignsCursor as TenDlcCampaignsCursor,
|
|
67
|
+
type CampaignCreateParams as CampaignCreateParams,
|
|
68
|
+
type CampaignUpdateParams as CampaignUpdateParams,
|
|
69
|
+
type CampaignListParams as CampaignListParams,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class Plan extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get the current subscription plan for the API key's team, including tier,
|
|
10
|
+
* billing interval, and period dates.
|
|
11
|
+
*/
|
|
12
|
+
retrieve(options?: RequestOptions): APIPromise<PlanRetrieveResponse> {
|
|
13
|
+
return this._client.get('/v1/plan', options);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface PlanRetrieveResponse {
|
|
18
|
+
billingInterval: 'monthly' | 'annual';
|
|
19
|
+
|
|
20
|
+
status: 'active' | 'past_due' | 'canceled' | 'trialing';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Current subscription tier.
|
|
24
|
+
*/
|
|
25
|
+
tier: 'free' | 'pro' | 'scale' | 'enterprise';
|
|
26
|
+
|
|
27
|
+
cancelAtPeriodEnd?: boolean;
|
|
28
|
+
|
|
29
|
+
currentPeriodEnd?: string;
|
|
30
|
+
|
|
31
|
+
currentPeriodStart?: string;
|
|
32
|
+
|
|
33
|
+
limits?: PlanRetrieveResponse.Limits;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export namespace PlanRetrieveResponse {
|
|
37
|
+
export interface Limits {
|
|
38
|
+
broadcasts?: boolean;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Monthly email limit.
|
|
42
|
+
*/
|
|
43
|
+
emails?: number;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Monthly A2P message limit.
|
|
47
|
+
*/
|
|
48
|
+
messagesA2P?: number;
|
|
49
|
+
|
|
50
|
+
phoneNumbers?: number;
|
|
51
|
+
|
|
52
|
+
senders?: number;
|
|
53
|
+
|
|
54
|
+
subAccounts?: boolean;
|
|
55
|
+
|
|
56
|
+
wabaConnections?: number;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export declare namespace Plan {
|
|
61
|
+
export { type PlanRetrieveResponse as PlanRetrieveResponse };
|
|
62
|
+
}
|
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as ExecutionsAPI from './executions';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
ExecutionListParams,
|
|
7
|
+
ExecutionRetrieveParams,
|
|
8
|
+
ExecutionRetrieveResponse,
|
|
9
|
+
Executions,
|
|
10
|
+
} from './executions';
|
|
6
11
|
import * as FlowsAPI from './flows';
|
|
7
12
|
import {
|
|
8
13
|
AgentFlow,
|
|
@@ -15,6 +20,8 @@ import {
|
|
|
15
20
|
FlowListParams,
|
|
16
21
|
FlowRetrieveParams,
|
|
17
22
|
FlowRetrieveResponse,
|
|
23
|
+
FlowStep,
|
|
24
|
+
FlowTrigger,
|
|
18
25
|
FlowUpdateParams,
|
|
19
26
|
FlowUpdateResponse,
|
|
20
27
|
Flows,
|
|
@@ -27,6 +34,7 @@ import {
|
|
|
27
34
|
ToolCreateResponse,
|
|
28
35
|
ToolDeleteParams,
|
|
29
36
|
ToolListParams,
|
|
37
|
+
ToolParameters,
|
|
30
38
|
ToolRetrieveParams,
|
|
31
39
|
ToolRetrieveResponse,
|
|
32
40
|
ToolTestParams,
|
|
@@ -366,11 +374,18 @@ export declare namespace AgentResource {
|
|
|
366
374
|
type AgentUpdateParams as AgentUpdateParams,
|
|
367
375
|
};
|
|
368
376
|
|
|
369
|
-
export {
|
|
377
|
+
export {
|
|
378
|
+
Executions as Executions,
|
|
379
|
+
type ExecutionRetrieveResponse as ExecutionRetrieveResponse,
|
|
380
|
+
type ExecutionRetrieveParams as ExecutionRetrieveParams,
|
|
381
|
+
type ExecutionListParams as ExecutionListParams,
|
|
382
|
+
};
|
|
370
383
|
|
|
371
384
|
export {
|
|
372
385
|
Flows as Flows,
|
|
373
386
|
type AgentFlow as AgentFlow,
|
|
387
|
+
type FlowStep as FlowStep,
|
|
388
|
+
type FlowTrigger as FlowTrigger,
|
|
374
389
|
type FlowCreateResponse as FlowCreateResponse,
|
|
375
390
|
type FlowRetrieveResponse as FlowRetrieveResponse,
|
|
376
391
|
type FlowUpdateResponse as FlowUpdateResponse,
|
|
@@ -387,6 +402,7 @@ export declare namespace AgentResource {
|
|
|
387
402
|
export {
|
|
388
403
|
Tools as Tools,
|
|
389
404
|
type AgentTool as AgentTool,
|
|
405
|
+
type ToolParameters as ToolParameters,
|
|
390
406
|
type ToolCreateResponse as ToolCreateResponse,
|
|
391
407
|
type ToolRetrieveResponse as ToolRetrieveResponse,
|
|
392
408
|
type ToolUpdateResponse as ToolUpdateResponse,
|
|
@@ -3,11 +3,34 @@
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as AgentAPI from './agent';
|
|
5
5
|
import { AgentExecutionsCursor } from './agent';
|
|
6
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
7
|
import { Cursor, type CursorParams, PagePromise } from '../../../core/pagination';
|
|
7
8
|
import { RequestOptions } from '../../../internal/request-options';
|
|
8
9
|
import { path } from '../../../internal/utils/path';
|
|
9
10
|
|
|
10
11
|
export class Executions extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Fetch full details for one execution — including `errorMessage`, `errorCode`,
|
|
14
|
+
* and `responseText`. Use this to debug failures surfaced by the list endpoint.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const execution =
|
|
19
|
+
* await client.senders.agent.executions.retrieve(
|
|
20
|
+
* 'executionId',
|
|
21
|
+
* { senderId: 'senderId' },
|
|
22
|
+
* );
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
retrieve(
|
|
26
|
+
executionID: string,
|
|
27
|
+
params: ExecutionRetrieveParams,
|
|
28
|
+
options?: RequestOptions,
|
|
29
|
+
): APIPromise<ExecutionRetrieveResponse> {
|
|
30
|
+
const { senderId } = params;
|
|
31
|
+
return this._client.get(path`/v1/senders/${senderId}/agent/executions/${executionID}`, options);
|
|
32
|
+
}
|
|
33
|
+
|
|
11
34
|
/**
|
|
12
35
|
* List recent agent executions with pagination.
|
|
13
36
|
*
|
|
@@ -34,6 +57,14 @@ export class Executions extends APIResource {
|
|
|
34
57
|
}
|
|
35
58
|
}
|
|
36
59
|
|
|
60
|
+
export interface ExecutionRetrieveResponse {
|
|
61
|
+
execution: AgentAPI.AgentExecution;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface ExecutionRetrieveParams {
|
|
65
|
+
senderId: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
37
68
|
export interface ExecutionListParams extends CursorParams {
|
|
38
69
|
/**
|
|
39
70
|
* Status of an agent execution.
|
|
@@ -42,7 +73,11 @@ export interface ExecutionListParams extends CursorParams {
|
|
|
42
73
|
}
|
|
43
74
|
|
|
44
75
|
export declare namespace Executions {
|
|
45
|
-
export {
|
|
76
|
+
export {
|
|
77
|
+
type ExecutionRetrieveResponse as ExecutionRetrieveResponse,
|
|
78
|
+
type ExecutionRetrieveParams as ExecutionRetrieveParams,
|
|
79
|
+
type ExecutionListParams as ExecutionListParams,
|
|
80
|
+
};
|
|
46
81
|
}
|
|
47
82
|
|
|
48
83
|
export { type AgentExecutionsCursor };
|
|
@@ -168,54 +168,52 @@ export interface AgentFlow {
|
|
|
168
168
|
*/
|
|
169
169
|
priority: number;
|
|
170
170
|
|
|
171
|
-
steps: Array<
|
|
171
|
+
steps: Array<FlowStep>;
|
|
172
172
|
|
|
173
|
-
trigger:
|
|
173
|
+
trigger: FlowTrigger;
|
|
174
174
|
|
|
175
175
|
updatedAt: string;
|
|
176
176
|
|
|
177
177
|
description?: string | null;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
export
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
id: string;
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Step configuration (varies by type).
|
|
189
|
-
*/
|
|
190
|
-
config: { [key: string]: unknown };
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* Type of flow step.
|
|
194
|
-
*/
|
|
195
|
-
type: 'message' | 'collect' | 'condition' | 'tool' | 'llm' | 'transfer';
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* ID of the next step to execute.
|
|
199
|
-
*/
|
|
200
|
-
nextStepId?: string | null;
|
|
201
|
-
}
|
|
180
|
+
export interface FlowStep {
|
|
181
|
+
/**
|
|
182
|
+
* Unique step identifier.
|
|
183
|
+
*/
|
|
184
|
+
id: string;
|
|
202
185
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
186
|
+
/**
|
|
187
|
+
* Step configuration (varies by type).
|
|
188
|
+
*/
|
|
189
|
+
config: { [key: string]: unknown };
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Type of flow step.
|
|
193
|
+
*/
|
|
194
|
+
type: 'message' | 'collect' | 'condition' | 'tool' | 'llm' | 'transfer';
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* ID of the next step to execute.
|
|
198
|
+
*/
|
|
199
|
+
nextStepId?: string | null;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export interface FlowTrigger {
|
|
203
|
+
/**
|
|
204
|
+
* Type of trigger for a flow.
|
|
205
|
+
*/
|
|
206
|
+
type: 'keyword' | 'intent' | 'always' | 'manual';
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* Intent that triggers the flow (for intent type).
|
|
210
|
+
*/
|
|
211
|
+
intent?: string;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Keywords that trigger the flow (for keyword type).
|
|
215
|
+
*/
|
|
216
|
+
keywords?: Array<string>;
|
|
219
217
|
}
|
|
220
218
|
|
|
221
219
|
export interface FlowCreateResponse {
|
|
@@ -237,9 +235,9 @@ export interface FlowDuplicateResponse {
|
|
|
237
235
|
export interface FlowCreateParams {
|
|
238
236
|
name: string;
|
|
239
237
|
|
|
240
|
-
steps: Array<
|
|
238
|
+
steps: Array<FlowStep>;
|
|
241
239
|
|
|
242
|
-
trigger:
|
|
240
|
+
trigger: FlowTrigger;
|
|
243
241
|
|
|
244
242
|
description?: string;
|
|
245
243
|
|
|
@@ -248,47 +246,6 @@ export interface FlowCreateParams {
|
|
|
248
246
|
priority?: number;
|
|
249
247
|
}
|
|
250
248
|
|
|
251
|
-
export namespace FlowCreateParams {
|
|
252
|
-
export interface Step {
|
|
253
|
-
/**
|
|
254
|
-
* Unique step identifier.
|
|
255
|
-
*/
|
|
256
|
-
id: string;
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* Step configuration (varies by type).
|
|
260
|
-
*/
|
|
261
|
-
config: { [key: string]: unknown };
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* Type of flow step.
|
|
265
|
-
*/
|
|
266
|
-
type: 'message' | 'collect' | 'condition' | 'tool' | 'llm' | 'transfer';
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* ID of the next step to execute.
|
|
270
|
-
*/
|
|
271
|
-
nextStepId?: string | null;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
export interface Trigger {
|
|
275
|
-
/**
|
|
276
|
-
* Type of trigger for a flow.
|
|
277
|
-
*/
|
|
278
|
-
type: 'keyword' | 'intent' | 'always' | 'manual';
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Intent that triggers the flow (for intent type).
|
|
282
|
-
*/
|
|
283
|
-
intent?: string;
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* Keywords that trigger the flow (for keyword type).
|
|
287
|
-
*/
|
|
288
|
-
keywords?: Array<string>;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
|
|
292
249
|
export interface FlowRetrieveParams {
|
|
293
250
|
senderId: string;
|
|
294
251
|
}
|
|
@@ -322,53 +279,12 @@ export interface FlowUpdateParams {
|
|
|
322
279
|
/**
|
|
323
280
|
* Body param
|
|
324
281
|
*/
|
|
325
|
-
steps?: Array<
|
|
282
|
+
steps?: Array<FlowStep>;
|
|
326
283
|
|
|
327
284
|
/**
|
|
328
285
|
* Body param
|
|
329
286
|
*/
|
|
330
|
-
trigger?:
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
export namespace FlowUpdateParams {
|
|
334
|
-
export interface Step {
|
|
335
|
-
/**
|
|
336
|
-
* Unique step identifier.
|
|
337
|
-
*/
|
|
338
|
-
id: string;
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* Step configuration (varies by type).
|
|
342
|
-
*/
|
|
343
|
-
config: { [key: string]: unknown };
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* Type of flow step.
|
|
347
|
-
*/
|
|
348
|
-
type: 'message' | 'collect' | 'condition' | 'tool' | 'llm' | 'transfer';
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* ID of the next step to execute.
|
|
352
|
-
*/
|
|
353
|
-
nextStepId?: string | null;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
export interface Trigger {
|
|
357
|
-
/**
|
|
358
|
-
* Type of trigger for a flow.
|
|
359
|
-
*/
|
|
360
|
-
type: 'keyword' | 'intent' | 'always' | 'manual';
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* Intent that triggers the flow (for intent type).
|
|
364
|
-
*/
|
|
365
|
-
intent?: string;
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* Keywords that trigger the flow (for keyword type).
|
|
369
|
-
*/
|
|
370
|
-
keywords?: Array<string>;
|
|
371
|
-
}
|
|
287
|
+
trigger?: FlowTrigger;
|
|
372
288
|
}
|
|
373
289
|
|
|
374
290
|
export interface FlowListParams extends CursorParams {
|
|
@@ -394,6 +310,8 @@ export interface FlowDuplicateParams {
|
|
|
394
310
|
export declare namespace Flows {
|
|
395
311
|
export {
|
|
396
312
|
type AgentFlow as AgentFlow,
|
|
313
|
+
type FlowStep as FlowStep,
|
|
314
|
+
type FlowTrigger as FlowTrigger,
|
|
397
315
|
type FlowCreateResponse as FlowCreateResponse,
|
|
398
316
|
type FlowRetrieveResponse as FlowRetrieveResponse,
|
|
399
317
|
type FlowUpdateResponse as FlowUpdateResponse,
|
|
@@ -12,10 +12,17 @@ export {
|
|
|
12
12
|
type AgentUpdateParams,
|
|
13
13
|
type AgentExecutionsCursor,
|
|
14
14
|
} from './agent';
|
|
15
|
-
export {
|
|
15
|
+
export {
|
|
16
|
+
Executions,
|
|
17
|
+
type ExecutionRetrieveResponse,
|
|
18
|
+
type ExecutionRetrieveParams,
|
|
19
|
+
type ExecutionListParams,
|
|
20
|
+
} from './executions';
|
|
16
21
|
export {
|
|
17
22
|
Flows,
|
|
18
23
|
type AgentFlow,
|
|
24
|
+
type FlowStep,
|
|
25
|
+
type FlowTrigger,
|
|
19
26
|
type FlowCreateResponse,
|
|
20
27
|
type FlowRetrieveResponse,
|
|
21
28
|
type FlowUpdateResponse,
|
|
@@ -46,6 +53,7 @@ export {
|
|
|
46
53
|
export {
|
|
47
54
|
Tools,
|
|
48
55
|
type AgentTool,
|
|
56
|
+
type ToolParameters,
|
|
49
57
|
type ToolCreateResponse,
|
|
50
58
|
type ToolRetrieveResponse,
|
|
51
59
|
type ToolUpdateResponse,
|