@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
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as AgentAPI from "./agent.mjs";
|
|
3
3
|
import { AgentExecutionsCursor } from "./agent.mjs";
|
|
4
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
5
|
import { type CursorParams, PagePromise } from "../../../core/pagination.mjs";
|
|
5
6
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
6
7
|
export declare class Executions extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Fetch full details for one execution — including `errorMessage`, `errorCode`,
|
|
10
|
+
* and `responseText`. Use this to debug failures surfaced by the list endpoint.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const execution =
|
|
15
|
+
* await client.senders.agent.executions.retrieve(
|
|
16
|
+
* 'executionId',
|
|
17
|
+
* { senderId: 'senderId' },
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
retrieve(executionID: string, params: ExecutionRetrieveParams, options?: RequestOptions): APIPromise<ExecutionRetrieveResponse>;
|
|
7
22
|
/**
|
|
8
23
|
* List recent agent executions with pagination.
|
|
9
24
|
*
|
|
@@ -19,6 +34,12 @@ export declare class Executions extends APIResource {
|
|
|
19
34
|
*/
|
|
20
35
|
list(senderID: string, query?: ExecutionListParams | null | undefined, options?: RequestOptions): PagePromise<AgentExecutionsCursor, AgentAPI.AgentExecution>;
|
|
21
36
|
}
|
|
37
|
+
export interface ExecutionRetrieveResponse {
|
|
38
|
+
execution: AgentAPI.AgentExecution;
|
|
39
|
+
}
|
|
40
|
+
export interface ExecutionRetrieveParams {
|
|
41
|
+
senderId: string;
|
|
42
|
+
}
|
|
22
43
|
export interface ExecutionListParams extends CursorParams {
|
|
23
44
|
/**
|
|
24
45
|
* Status of an agent execution.
|
|
@@ -26,7 +47,7 @@ export interface ExecutionListParams extends CursorParams {
|
|
|
26
47
|
status?: AgentAPI.AgentExecutionStatus;
|
|
27
48
|
}
|
|
28
49
|
export declare namespace Executions {
|
|
29
|
-
export { type ExecutionListParams as ExecutionListParams };
|
|
50
|
+
export { type ExecutionRetrieveResponse as ExecutionRetrieveResponse, type ExecutionRetrieveParams as ExecutionRetrieveParams, type ExecutionListParams as ExecutionListParams, };
|
|
30
51
|
}
|
|
31
52
|
export { type AgentExecutionsCursor };
|
|
32
53
|
//# sourceMappingURL=executions.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.d.mts","sourceRoot":"","sources":["../../../src/resources/senders/agent/executions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"executions.d.mts","sourceRoot":"","sources":["../../../src/resources/senders/agent/executions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAE,qBAAqB,EAAE,oBAAgB;AAChD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAU,KAAK,YAAY,EAAE,WAAW,EAAE,qCAAiC;AAClF,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAKxC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qBAAqB,EAAE,QAAQ,CAAC,cAAc,CAAC;CAO/D;AAED,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,QAAQ,CAAC,cAAc,CAAC;CACpC;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,oBAAoB,CAAC;CACxC;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH;AAED,OAAO,EAAE,KAAK,qBAAqB,EAAE,CAAC"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as AgentAPI from "./agent.js";
|
|
3
3
|
import { AgentExecutionsCursor } from "./agent.js";
|
|
4
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
5
|
import { type CursorParams, PagePromise } from "../../../core/pagination.js";
|
|
5
6
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
6
7
|
export declare class Executions extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Fetch full details for one execution — including `errorMessage`, `errorCode`,
|
|
10
|
+
* and `responseText`. Use this to debug failures surfaced by the list endpoint.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const execution =
|
|
15
|
+
* await client.senders.agent.executions.retrieve(
|
|
16
|
+
* 'executionId',
|
|
17
|
+
* { senderId: 'senderId' },
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
retrieve(executionID: string, params: ExecutionRetrieveParams, options?: RequestOptions): APIPromise<ExecutionRetrieveResponse>;
|
|
7
22
|
/**
|
|
8
23
|
* List recent agent executions with pagination.
|
|
9
24
|
*
|
|
@@ -19,6 +34,12 @@ export declare class Executions extends APIResource {
|
|
|
19
34
|
*/
|
|
20
35
|
list(senderID: string, query?: ExecutionListParams | null | undefined, options?: RequestOptions): PagePromise<AgentExecutionsCursor, AgentAPI.AgentExecution>;
|
|
21
36
|
}
|
|
37
|
+
export interface ExecutionRetrieveResponse {
|
|
38
|
+
execution: AgentAPI.AgentExecution;
|
|
39
|
+
}
|
|
40
|
+
export interface ExecutionRetrieveParams {
|
|
41
|
+
senderId: string;
|
|
42
|
+
}
|
|
22
43
|
export interface ExecutionListParams extends CursorParams {
|
|
23
44
|
/**
|
|
24
45
|
* Status of an agent execution.
|
|
@@ -26,7 +47,7 @@ export interface ExecutionListParams extends CursorParams {
|
|
|
26
47
|
status?: AgentAPI.AgentExecutionStatus;
|
|
27
48
|
}
|
|
28
49
|
export declare namespace Executions {
|
|
29
|
-
export { type ExecutionListParams as ExecutionListParams };
|
|
50
|
+
export { type ExecutionRetrieveResponse as ExecutionRetrieveResponse, type ExecutionRetrieveParams as ExecutionRetrieveParams, type ExecutionListParams as ExecutionListParams, };
|
|
30
51
|
}
|
|
31
52
|
export { type AgentExecutionsCursor };
|
|
32
53
|
//# sourceMappingURL=executions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../../src/resources/senders/agent/executions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"executions.d.ts","sourceRoot":"","sources":["../../../src/resources/senders/agent/executions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EAAE,qBAAqB,EAAE,mBAAgB;AAChD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAU,KAAK,YAAY,EAAE,WAAW,EAAE,oCAAiC;AAClF,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;IAKxC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,qBAAqB,EAAE,QAAQ,CAAC,cAAc,CAAC;CAO/D;AAED,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,QAAQ,CAAC,cAAc,CAAC;CACpC;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,oBAAoB,CAAC;CACxC;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH;AAED,OAAO,EAAE,KAAK,qBAAqB,EAAE,CAAC"}
|
|
@@ -6,6 +6,23 @@ const resource_1 = require("../../../core/resource.js");
|
|
|
6
6
|
const pagination_1 = require("../../../core/pagination.js");
|
|
7
7
|
const path_1 = require("../../../internal/utils/path.js");
|
|
8
8
|
class Executions extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Fetch full details for one execution — including `errorMessage`, `errorCode`,
|
|
11
|
+
* and `responseText`. Use this to debug failures surfaced by the list endpoint.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const execution =
|
|
16
|
+
* await client.senders.agent.executions.retrieve(
|
|
17
|
+
* 'executionId',
|
|
18
|
+
* { senderId: 'senderId' },
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
retrieve(executionID, params, options) {
|
|
23
|
+
const { senderId } = params;
|
|
24
|
+
return this._client.get((0, path_1.path) `/v1/senders/${senderId}/agent/executions/${executionID}`, options);
|
|
25
|
+
}
|
|
9
26
|
/**
|
|
10
27
|
* List recent agent executions with pagination.
|
|
11
28
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.js","sourceRoot":"","sources":["../../../src/resources/senders/agent/executions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;
|
|
1
|
+
{"version":3,"file":"executions.js","sourceRoot":"","sources":["../../../src/resources/senders/agent/executions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,4DAAkF;AAElF,0DAAoD;AAEpD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,WAAmB,EACnB,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,eAAe,QAAQ,qBAAqB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAClG,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAAgB,EAChB,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,eAAe,QAAQ,mBAAmB,EAC9C,CAAA,mBAA+B,CAAA,EAC/B,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AA/CD,gCA+CC"}
|
|
@@ -3,6 +3,23 @@ import { APIResource } from "../../../core/resource.mjs";
|
|
|
3
3
|
import { Cursor } from "../../../core/pagination.mjs";
|
|
4
4
|
import { path } from "../../../internal/utils/path.mjs";
|
|
5
5
|
export class Executions extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Fetch full details for one execution — including `errorMessage`, `errorCode`,
|
|
8
|
+
* and `responseText`. Use this to debug failures surfaced by the list endpoint.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const execution =
|
|
13
|
+
* await client.senders.agent.executions.retrieve(
|
|
14
|
+
* 'executionId',
|
|
15
|
+
* { senderId: 'senderId' },
|
|
16
|
+
* );
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
retrieve(executionID, params, options) {
|
|
20
|
+
const { senderId } = params;
|
|
21
|
+
return this._client.get(path `/v1/senders/${senderId}/agent/executions/${executionID}`, options);
|
|
22
|
+
}
|
|
6
23
|
/**
|
|
7
24
|
* List recent agent executions with pagination.
|
|
8
25
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executions.mjs","sourceRoot":"","sources":["../../../src/resources/senders/agent/executions.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"executions.mjs","sourceRoot":"","sources":["../../../src/resources/senders/agent/executions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAIrD,OAAO,EAAE,MAAM,EAAkC,qCAAiC;AAElF,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,WAAmB,EACnB,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,QAAQ,qBAAqB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAClG,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAAgB,EAChB,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,eAAe,QAAQ,mBAAmB,EAC9C,CAAA,MAA+B,CAAA,EAC/B,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -113,46 +113,44 @@ export interface AgentFlow {
|
|
|
113
113
|
* Priority when multiple flows match (higher = more priority).
|
|
114
114
|
*/
|
|
115
115
|
priority: number;
|
|
116
|
-
steps: Array<
|
|
117
|
-
trigger:
|
|
116
|
+
steps: Array<FlowStep>;
|
|
117
|
+
trigger: FlowTrigger;
|
|
118
118
|
updatedAt: string;
|
|
119
119
|
description?: string | null;
|
|
120
120
|
}
|
|
121
|
-
export
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
keywords?: Array<string>;
|
|
155
|
-
}
|
|
121
|
+
export interface FlowStep {
|
|
122
|
+
/**
|
|
123
|
+
* Unique step identifier.
|
|
124
|
+
*/
|
|
125
|
+
id: string;
|
|
126
|
+
/**
|
|
127
|
+
* Step configuration (varies by type).
|
|
128
|
+
*/
|
|
129
|
+
config: {
|
|
130
|
+
[key: string]: unknown;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Type of flow step.
|
|
134
|
+
*/
|
|
135
|
+
type: 'message' | 'collect' | 'condition' | 'tool' | 'llm' | 'transfer';
|
|
136
|
+
/**
|
|
137
|
+
* ID of the next step to execute.
|
|
138
|
+
*/
|
|
139
|
+
nextStepId?: string | null;
|
|
140
|
+
}
|
|
141
|
+
export interface FlowTrigger {
|
|
142
|
+
/**
|
|
143
|
+
* Type of trigger for a flow.
|
|
144
|
+
*/
|
|
145
|
+
type: 'keyword' | 'intent' | 'always' | 'manual';
|
|
146
|
+
/**
|
|
147
|
+
* Intent that triggers the flow (for intent type).
|
|
148
|
+
*/
|
|
149
|
+
intent?: string;
|
|
150
|
+
/**
|
|
151
|
+
* Keywords that trigger the flow (for keyword type).
|
|
152
|
+
*/
|
|
153
|
+
keywords?: Array<string>;
|
|
156
154
|
}
|
|
157
155
|
export interface FlowCreateResponse {
|
|
158
156
|
flow: AgentFlow;
|
|
@@ -168,48 +166,12 @@ export interface FlowDuplicateResponse {
|
|
|
168
166
|
}
|
|
169
167
|
export interface FlowCreateParams {
|
|
170
168
|
name: string;
|
|
171
|
-
steps: Array<
|
|
172
|
-
trigger:
|
|
169
|
+
steps: Array<FlowStep>;
|
|
170
|
+
trigger: FlowTrigger;
|
|
173
171
|
description?: string;
|
|
174
172
|
enabled?: boolean;
|
|
175
173
|
priority?: number;
|
|
176
174
|
}
|
|
177
|
-
export declare namespace FlowCreateParams {
|
|
178
|
-
interface Step {
|
|
179
|
-
/**
|
|
180
|
-
* Unique step identifier.
|
|
181
|
-
*/
|
|
182
|
-
id: string;
|
|
183
|
-
/**
|
|
184
|
-
* Step configuration (varies by type).
|
|
185
|
-
*/
|
|
186
|
-
config: {
|
|
187
|
-
[key: string]: unknown;
|
|
188
|
-
};
|
|
189
|
-
/**
|
|
190
|
-
* Type of flow step.
|
|
191
|
-
*/
|
|
192
|
-
type: 'message' | 'collect' | 'condition' | 'tool' | 'llm' | 'transfer';
|
|
193
|
-
/**
|
|
194
|
-
* ID of the next step to execute.
|
|
195
|
-
*/
|
|
196
|
-
nextStepId?: string | null;
|
|
197
|
-
}
|
|
198
|
-
interface Trigger {
|
|
199
|
-
/**
|
|
200
|
-
* Type of trigger for a flow.
|
|
201
|
-
*/
|
|
202
|
-
type: 'keyword' | 'intent' | 'always' | 'manual';
|
|
203
|
-
/**
|
|
204
|
-
* Intent that triggers the flow (for intent type).
|
|
205
|
-
*/
|
|
206
|
-
intent?: string;
|
|
207
|
-
/**
|
|
208
|
-
* Keywords that trigger the flow (for keyword type).
|
|
209
|
-
*/
|
|
210
|
-
keywords?: Array<string>;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
175
|
export interface FlowRetrieveParams {
|
|
214
176
|
senderId: string;
|
|
215
177
|
}
|
|
@@ -237,47 +199,11 @@ export interface FlowUpdateParams {
|
|
|
237
199
|
/**
|
|
238
200
|
* Body param
|
|
239
201
|
*/
|
|
240
|
-
steps?: Array<
|
|
202
|
+
steps?: Array<FlowStep>;
|
|
241
203
|
/**
|
|
242
204
|
* Body param
|
|
243
205
|
*/
|
|
244
|
-
trigger?:
|
|
245
|
-
}
|
|
246
|
-
export declare namespace FlowUpdateParams {
|
|
247
|
-
interface Step {
|
|
248
|
-
/**
|
|
249
|
-
* Unique step identifier.
|
|
250
|
-
*/
|
|
251
|
-
id: string;
|
|
252
|
-
/**
|
|
253
|
-
* Step configuration (varies by type).
|
|
254
|
-
*/
|
|
255
|
-
config: {
|
|
256
|
-
[key: string]: unknown;
|
|
257
|
-
};
|
|
258
|
-
/**
|
|
259
|
-
* Type of flow step.
|
|
260
|
-
*/
|
|
261
|
-
type: 'message' | 'collect' | 'condition' | 'tool' | 'llm' | 'transfer';
|
|
262
|
-
/**
|
|
263
|
-
* ID of the next step to execute.
|
|
264
|
-
*/
|
|
265
|
-
nextStepId?: string | null;
|
|
266
|
-
}
|
|
267
|
-
interface Trigger {
|
|
268
|
-
/**
|
|
269
|
-
* Type of trigger for a flow.
|
|
270
|
-
*/
|
|
271
|
-
type: 'keyword' | 'intent' | 'always' | 'manual';
|
|
272
|
-
/**
|
|
273
|
-
* Intent that triggers the flow (for intent type).
|
|
274
|
-
*/
|
|
275
|
-
intent?: string;
|
|
276
|
-
/**
|
|
277
|
-
* Keywords that trigger the flow (for keyword type).
|
|
278
|
-
*/
|
|
279
|
-
keywords?: Array<string>;
|
|
280
|
-
}
|
|
206
|
+
trigger?: FlowTrigger;
|
|
281
207
|
}
|
|
282
208
|
export interface FlowListParams extends CursorParams {
|
|
283
209
|
enabled?: boolean;
|
|
@@ -296,6 +222,6 @@ export interface FlowDuplicateParams {
|
|
|
296
222
|
newName: string;
|
|
297
223
|
}
|
|
298
224
|
export declare namespace Flows {
|
|
299
|
-
export { type AgentFlow as AgentFlow, type FlowCreateResponse as FlowCreateResponse, type FlowRetrieveResponse as FlowRetrieveResponse, type FlowUpdateResponse as FlowUpdateResponse, type FlowDuplicateResponse as FlowDuplicateResponse, type AgentFlowsCursor as AgentFlowsCursor, type FlowCreateParams as FlowCreateParams, type FlowRetrieveParams as FlowRetrieveParams, type FlowUpdateParams as FlowUpdateParams, type FlowListParams as FlowListParams, type FlowDeleteParams as FlowDeleteParams, type FlowDuplicateParams as FlowDuplicateParams, };
|
|
225
|
+
export { type AgentFlow as AgentFlow, type FlowStep as FlowStep, type FlowTrigger as FlowTrigger, type FlowCreateResponse as FlowCreateResponse, type FlowRetrieveResponse as FlowRetrieveResponse, type FlowUpdateResponse as FlowUpdateResponse, type FlowDuplicateResponse as FlowDuplicateResponse, type AgentFlowsCursor as AgentFlowsCursor, type FlowCreateParams as FlowCreateParams, type FlowRetrieveParams as FlowRetrieveParams, type FlowUpdateParams as FlowUpdateParams, type FlowListParams as FlowListParams, type FlowDeleteParams as FlowDeleteParams, type FlowDuplicateParams as FlowDuplicateParams, };
|
|
300
226
|
}
|
|
301
227
|
//# sourceMappingURL=flows.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flows.d.mts","sourceRoot":"","sources":["../../../src/resources/senders/agent/flows.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"flows.d.mts","sourceRoot":"","sources":["../../../src/resources/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IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -113,46 +113,44 @@ export interface AgentFlow {
|
|
|
113
113
|
* Priority when multiple flows match (higher = more priority).
|
|
114
114
|
*/
|
|
115
115
|
priority: number;
|
|
116
|
-
steps: Array<
|
|
117
|
-
trigger:
|
|
116
|
+
steps: Array<FlowStep>;
|
|
117
|
+
trigger: FlowTrigger;
|
|
118
118
|
updatedAt: string;
|
|
119
119
|
description?: string | null;
|
|
120
120
|
}
|
|
121
|
-
export
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
keywords?: Array<string>;
|
|
155
|
-
}
|
|
121
|
+
export interface FlowStep {
|
|
122
|
+
/**
|
|
123
|
+
* Unique step identifier.
|
|
124
|
+
*/
|
|
125
|
+
id: string;
|
|
126
|
+
/**
|
|
127
|
+
* Step configuration (varies by type).
|
|
128
|
+
*/
|
|
129
|
+
config: {
|
|
130
|
+
[key: string]: unknown;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Type of flow step.
|
|
134
|
+
*/
|
|
135
|
+
type: 'message' | 'collect' | 'condition' | 'tool' | 'llm' | 'transfer';
|
|
136
|
+
/**
|
|
137
|
+
* ID of the next step to execute.
|
|
138
|
+
*/
|
|
139
|
+
nextStepId?: string | null;
|
|
140
|
+
}
|
|
141
|
+
export interface FlowTrigger {
|
|
142
|
+
/**
|
|
143
|
+
* Type of trigger for a flow.
|
|
144
|
+
*/
|
|
145
|
+
type: 'keyword' | 'intent' | 'always' | 'manual';
|
|
146
|
+
/**
|
|
147
|
+
* Intent that triggers the flow (for intent type).
|
|
148
|
+
*/
|
|
149
|
+
intent?: string;
|
|
150
|
+
/**
|
|
151
|
+
* Keywords that trigger the flow (for keyword type).
|
|
152
|
+
*/
|
|
153
|
+
keywords?: Array<string>;
|
|
156
154
|
}
|
|
157
155
|
export interface FlowCreateResponse {
|
|
158
156
|
flow: AgentFlow;
|
|
@@ -168,48 +166,12 @@ export interface FlowDuplicateResponse {
|
|
|
168
166
|
}
|
|
169
167
|
export interface FlowCreateParams {
|
|
170
168
|
name: string;
|
|
171
|
-
steps: Array<
|
|
172
|
-
trigger:
|
|
169
|
+
steps: Array<FlowStep>;
|
|
170
|
+
trigger: FlowTrigger;
|
|
173
171
|
description?: string;
|
|
174
172
|
enabled?: boolean;
|
|
175
173
|
priority?: number;
|
|
176
174
|
}
|
|
177
|
-
export declare namespace FlowCreateParams {
|
|
178
|
-
interface Step {
|
|
179
|
-
/**
|
|
180
|
-
* Unique step identifier.
|
|
181
|
-
*/
|
|
182
|
-
id: string;
|
|
183
|
-
/**
|
|
184
|
-
* Step configuration (varies by type).
|
|
185
|
-
*/
|
|
186
|
-
config: {
|
|
187
|
-
[key: string]: unknown;
|
|
188
|
-
};
|
|
189
|
-
/**
|
|
190
|
-
* Type of flow step.
|
|
191
|
-
*/
|
|
192
|
-
type: 'message' | 'collect' | 'condition' | 'tool' | 'llm' | 'transfer';
|
|
193
|
-
/**
|
|
194
|
-
* ID of the next step to execute.
|
|
195
|
-
*/
|
|
196
|
-
nextStepId?: string | null;
|
|
197
|
-
}
|
|
198
|
-
interface Trigger {
|
|
199
|
-
/**
|
|
200
|
-
* Type of trigger for a flow.
|
|
201
|
-
*/
|
|
202
|
-
type: 'keyword' | 'intent' | 'always' | 'manual';
|
|
203
|
-
/**
|
|
204
|
-
* Intent that triggers the flow (for intent type).
|
|
205
|
-
*/
|
|
206
|
-
intent?: string;
|
|
207
|
-
/**
|
|
208
|
-
* Keywords that trigger the flow (for keyword type).
|
|
209
|
-
*/
|
|
210
|
-
keywords?: Array<string>;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
175
|
export interface FlowRetrieveParams {
|
|
214
176
|
senderId: string;
|
|
215
177
|
}
|
|
@@ -237,47 +199,11 @@ export interface FlowUpdateParams {
|
|
|
237
199
|
/**
|
|
238
200
|
* Body param
|
|
239
201
|
*/
|
|
240
|
-
steps?: Array<
|
|
202
|
+
steps?: Array<FlowStep>;
|
|
241
203
|
/**
|
|
242
204
|
* Body param
|
|
243
205
|
*/
|
|
244
|
-
trigger?:
|
|
245
|
-
}
|
|
246
|
-
export declare namespace FlowUpdateParams {
|
|
247
|
-
interface Step {
|
|
248
|
-
/**
|
|
249
|
-
* Unique step identifier.
|
|
250
|
-
*/
|
|
251
|
-
id: string;
|
|
252
|
-
/**
|
|
253
|
-
* Step configuration (varies by type).
|
|
254
|
-
*/
|
|
255
|
-
config: {
|
|
256
|
-
[key: string]: unknown;
|
|
257
|
-
};
|
|
258
|
-
/**
|
|
259
|
-
* Type of flow step.
|
|
260
|
-
*/
|
|
261
|
-
type: 'message' | 'collect' | 'condition' | 'tool' | 'llm' | 'transfer';
|
|
262
|
-
/**
|
|
263
|
-
* ID of the next step to execute.
|
|
264
|
-
*/
|
|
265
|
-
nextStepId?: string | null;
|
|
266
|
-
}
|
|
267
|
-
interface Trigger {
|
|
268
|
-
/**
|
|
269
|
-
* Type of trigger for a flow.
|
|
270
|
-
*/
|
|
271
|
-
type: 'keyword' | 'intent' | 'always' | 'manual';
|
|
272
|
-
/**
|
|
273
|
-
* Intent that triggers the flow (for intent type).
|
|
274
|
-
*/
|
|
275
|
-
intent?: string;
|
|
276
|
-
/**
|
|
277
|
-
* Keywords that trigger the flow (for keyword type).
|
|
278
|
-
*/
|
|
279
|
-
keywords?: Array<string>;
|
|
280
|
-
}
|
|
206
|
+
trigger?: FlowTrigger;
|
|
281
207
|
}
|
|
282
208
|
export interface FlowListParams extends CursorParams {
|
|
283
209
|
enabled?: boolean;
|
|
@@ -296,6 +222,6 @@ export interface FlowDuplicateParams {
|
|
|
296
222
|
newName: string;
|
|
297
223
|
}
|
|
298
224
|
export declare namespace Flows {
|
|
299
|
-
export { type AgentFlow as AgentFlow, type FlowCreateResponse as FlowCreateResponse, type FlowRetrieveResponse as FlowRetrieveResponse, type FlowUpdateResponse as FlowUpdateResponse, type FlowDuplicateResponse as FlowDuplicateResponse, type AgentFlowsCursor as AgentFlowsCursor, type FlowCreateParams as FlowCreateParams, type FlowRetrieveParams as FlowRetrieveParams, type FlowUpdateParams as FlowUpdateParams, type FlowListParams as FlowListParams, type FlowDeleteParams as FlowDeleteParams, type FlowDuplicateParams as FlowDuplicateParams, };
|
|
225
|
+
export { type AgentFlow as AgentFlow, type FlowStep as FlowStep, type FlowTrigger as FlowTrigger, type FlowCreateResponse as FlowCreateResponse, type FlowRetrieveResponse as FlowRetrieveResponse, type FlowUpdateResponse as FlowUpdateResponse, type FlowDuplicateResponse as FlowDuplicateResponse, type AgentFlowsCursor as AgentFlowsCursor, type FlowCreateParams as FlowCreateParams, type FlowRetrieveParams as FlowRetrieveParams, type FlowUpdateParams as FlowUpdateParams, type FlowListParams as FlowListParams, type FlowDeleteParams as FlowDeleteParams, type FlowDuplicateParams as FlowDuplicateParams, };
|
|
300
226
|
}
|
|
301
227
|
//# sourceMappingURL=flows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flows.d.ts","sourceRoot":"","sources":["../../../src/resources/senders/agent/fl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,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flows.mjs","sourceRoot":"","sources":["../../../src/resources/senders/agent/flows.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"flows.mjs","sourceRoot":"","sources":["../../../src/resources/senders/agent/flows.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,EAAE,MAAM,EAAkC,qCAAiC;AAClF,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,MAAM,CAAC,QAAgB,EAAE,IAAsB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,eAAe,QAAQ,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,MAAc,EACd,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,eAAe,QAAQ,gBAAgB,M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ACX,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { AgentResource, type Agent, type AgentExecution, type AgentExecutionStatus, type AgentProvider, type AgentResponse, type AgentStats, type AgentCreateParams, type AgentUpdateParams, type AgentExecutionsCursor, } from "./agent.mjs";
|
|
2
|
-
export { Executions, type ExecutionListParams } from "./executions.mjs";
|
|
3
|
-
export { Flows, type AgentFlow, type FlowCreateResponse, type FlowRetrieveResponse, type FlowUpdateResponse, type FlowDuplicateResponse, type FlowCreateParams, type FlowRetrieveParams, type FlowUpdateParams, type FlowListParams, type FlowDeleteParams, type FlowDuplicateParams, type AgentFlowsCursor, } from "./flows.mjs";
|
|
2
|
+
export { Executions, type ExecutionRetrieveResponse, type ExecutionRetrieveParams, type ExecutionListParams, } from "./executions.mjs";
|
|
3
|
+
export { Flows, type AgentFlow, type FlowStep, type FlowTrigger, type FlowCreateResponse, type FlowRetrieveResponse, type FlowUpdateResponse, type FlowDuplicateResponse, type FlowCreateParams, type FlowRetrieveParams, type FlowUpdateParams, type FlowListParams, type FlowDeleteParams, type FlowDuplicateParams, type AgentFlowsCursor, } from "./flows.mjs";
|
|
4
4
|
export { KnowledgeBases, type AgentDocument, type AgentKnowledgeBase, type KnowledgeBaseCreateResponse, type KnowledgeBaseRetrieveResponse, type KnowledgeBaseUpdateResponse, type KnowledgeBaseCreateParams, type KnowledgeBaseRetrieveParams, type KnowledgeBaseUpdateParams, type KnowledgeBaseListParams, type KnowledgeBaseDeleteParams, type AgentDocumentsCursor, type AgentKnowledgeBasesCursor, } from "./knowledge-bases/index.mjs";
|
|
5
|
-
export { Tools, type AgentTool, type ToolCreateResponse, type ToolRetrieveResponse, type ToolUpdateResponse, type ToolTestResponse, type ToolCreateParams, type ToolRetrieveParams, type ToolUpdateParams, type ToolListParams, type ToolDeleteParams, type ToolTestParams, type AgentToolsCursor, } from "./tools.mjs";
|
|
5
|
+
export { Tools, type AgentTool, type ToolParameters, type ToolCreateResponse, type ToolRetrieveResponse, type ToolUpdateResponse, type ToolTestResponse, type ToolCreateParams, type ToolRetrieveParams, type ToolUpdateParams, type ToolListParams, type ToolDeleteParams, type ToolTestParams, type AgentToolsCursor, } from "./tools.mjs";
|
|
6
6
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/senders/agent/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/senders/agent/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,aAAa,EACb,KAAK,KAAK,EACV,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,GAC3B,oBAAgB;AACjB,OAAO,EACL,UAAU,EACV,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,GACzB,yBAAqB;AACtB,OAAO,EACL,KAAK,EACL,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,GACtB,oBAAgB;AACjB,OAAO,EACL,cAAc,EACd,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KA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