@zavudev/sdk 0.56.0 → 0.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -0
- package/README.md +3 -3
- package/client.d.mts +39 -39
- package/client.d.mts.map +1 -1
- package/client.d.ts +39 -39
- package/client.d.ts.map +1 -1
- package/client.js +43 -43
- package/client.js.map +1 -1
- package/client.mjs +43 -43
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js +0 -1
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs +0 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts.map +1 -1
- package/core/error.js +0 -1
- package/core/error.js.map +1 -1
- package/core/error.mjs +0 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +0 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +0 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js +0 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs +0 -1
- package/core/resource.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/index.mjs +0 -1
- package/index.mjs.map +1 -1
- package/internal/builtin-types.d.mts.map +1 -1
- package/internal/builtin-types.d.ts.map +1 -1
- package/internal/builtin-types.js +0 -1
- package/internal/builtin-types.js.map +1 -1
- package/internal/builtin-types.mjs +0 -1
- package/internal/builtin-types.mjs.map +1 -1
- package/internal/detect-platform.d.mts.map +1 -1
- package/internal/detect-platform.d.ts.map +1 -1
- package/internal/detect-platform.js +0 -1
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +0 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/errors.d.mts.map +1 -1
- package/internal/errors.d.ts.map +1 -1
- package/internal/errors.js +0 -1
- package/internal/errors.js.map +1 -1
- package/internal/errors.mjs +0 -1
- package/internal/errors.mjs.map +1 -1
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +0 -1
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +0 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +0 -1
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +0 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js +0 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs +0 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/shim-types.d.mts.map +1 -1
- package/internal/shim-types.d.ts.map +1 -1
- package/internal/shim-types.js +6 -1
- package/internal/shim-types.js.map +1 -1
- package/internal/shim-types.mjs +6 -1
- package/internal/shim-types.mjs.map +1 -1
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts.map +1 -1
- package/internal/shims.js +6 -1
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +6 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts.map +1 -1
- package/internal/types.js +0 -1
- package/internal/types.js.map +1 -1
- package/internal/types.mjs +0 -1
- package/internal/types.mjs.map +1 -1
- package/internal/utils/base64.d.mts.map +1 -1
- package/internal/utils/base64.d.ts.map +1 -1
- package/internal/utils/base64.js +0 -1
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +0 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/env.d.mts.map +1 -1
- package/internal/utils/env.d.ts.map +1 -1
- package/internal/utils/env.js +0 -1
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +0 -1
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +0 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +0 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/query.d.mts +0 -3
- package/internal/utils/query.d.mts.map +1 -1
- package/internal/utils/query.d.ts +0 -3
- package/internal/utils/query.d.ts.map +1 -1
- package/internal/utils/query.js +3 -17
- package/internal/utils/query.js.map +1 -1
- package/internal/utils/query.mjs +2 -17
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/sleep.d.mts.map +1 -1
- package/internal/utils/sleep.d.ts.map +1 -1
- package/internal/utils/sleep.js +0 -1
- package/internal/utils/sleep.js.map +1 -1
- package/internal/utils/sleep.mjs +0 -1
- package/internal/utils/sleep.mjs.map +1 -1
- package/internal/utils/uuid.d.mts.map +1 -1
- package/internal/utils/uuid.d.ts.map +1 -1
- package/internal/utils/uuid.js +0 -1
- package/internal/utils/uuid.js.map +1 -1
- package/internal/utils/uuid.mjs +0 -1
- package/internal/utils/uuid.mjs.map +1 -1
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +0 -1
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +0 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.js +0 -1
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +0 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +29 -10
- package/resources/addresses.d.mts +27 -77
- package/resources/addresses.d.mts.map +1 -1
- package/resources/addresses.d.ts +27 -77
- package/resources/addresses.d.ts.map +1 -1
- package/resources/addresses.js +19 -32
- package/resources/addresses.js.map +1 -1
- package/resources/addresses.mjs +19 -32
- package/resources/addresses.mjs.map +1 -1
- package/resources/agent-templates.d.mts +17 -71
- package/resources/agent-templates.d.mts.map +1 -1
- package/resources/agent-templates.d.ts +17 -71
- package/resources/agent-templates.d.ts.map +1 -1
- package/resources/agent-templates.js +11 -15
- package/resources/agent-templates.js.map +1 -1
- package/resources/agent-templates.mjs +11 -15
- package/resources/agent-templates.mjs.map +1 -1
- package/resources/agents/agents.d.mts +53 -395
- package/resources/agents/agents.d.mts.map +1 -1
- package/resources/agents/agents.d.ts +53 -395
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +33 -48
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +33 -48
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/index.js +1 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs +1 -1
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/senders.d.mts +10 -32
- package/resources/agents/senders.d.mts.map +1 -1
- package/resources/agents/senders.d.ts +10 -32
- package/resources/agents/senders.d.ts.map +1 -1
- package/resources/agents/senders.js +7 -14
- package/resources/agents/senders.js.map +1 -1
- package/resources/agents/senders.mjs +7 -14
- package/resources/agents/senders.mjs.map +1 -1
- package/resources/agents.js +1 -1
- package/resources/agents.js.map +1 -1
- package/resources/agents.mjs +1 -1
- package/resources/agents.mjs.map +1 -1
- package/resources/balance.d.mts +6 -19
- package/resources/balance.d.mts.map +1 -1
- package/resources/balance.d.ts +6 -19
- package/resources/balance.d.ts.map +1 -1
- package/resources/balance.js +5 -1
- package/resources/balance.js.map +1 -1
- package/resources/balance.mjs +5 -1
- package/resources/balance.mjs.map +1 -1
- package/resources/broadcasts/broadcasts.d.mts +92 -411
- package/resources/broadcasts/broadcasts.d.mts.map +1 -1
- package/resources/broadcasts/broadcasts.d.ts +92 -411
- package/resources/broadcasts/broadcasts.d.ts.map +1 -1
- package/resources/broadcasts/broadcasts.js +64 -85
- package/resources/broadcasts/broadcasts.js.map +1 -1
- package/resources/broadcasts/broadcasts.mjs +64 -85
- package/resources/broadcasts/broadcasts.mjs.map +1 -1
- package/resources/broadcasts/contacts.d.mts +19 -109
- package/resources/broadcasts/contacts.d.mts.map +1 -1
- package/resources/broadcasts/contacts.d.ts +19 -109
- package/resources/broadcasts/contacts.d.ts.map +1 -1
- package/resources/broadcasts/contacts.js +10 -40
- package/resources/broadcasts/contacts.js.map +1 -1
- package/resources/broadcasts/contacts.mjs +10 -40
- package/resources/broadcasts/contacts.mjs.map +1 -1
- package/resources/broadcasts/index.js +1 -1
- package/resources/broadcasts/index.js.map +1 -1
- package/resources/broadcasts/index.mjs +1 -1
- package/resources/broadcasts/index.mjs.map +1 -1
- package/resources/broadcasts.js +1 -1
- package/resources/broadcasts.js.map +1 -1
- package/resources/broadcasts.mjs +1 -1
- package/resources/broadcasts.mjs.map +1 -1
- package/resources/calls.d.mts +40 -475
- package/resources/calls.d.mts.map +1 -1
- package/resources/calls.d.ts +40 -475
- package/resources/calls.d.ts.map +1 -1
- package/resources/calls.js +25 -26
- package/resources/calls.js.map +1 -1
- package/resources/calls.mjs +25 -26
- package/resources/calls.mjs.map +1 -1
- package/resources/contacts/channels.d.mts +20 -98
- package/resources/contacts/channels.d.mts.map +1 -1
- package/resources/contacts/channels.d.ts +20 -98
- package/resources/contacts/channels.d.ts.map +1 -1
- package/resources/contacts/channels.js +13 -32
- package/resources/contacts/channels.js.map +1 -1
- package/resources/contacts/channels.mjs +13 -32
- package/resources/contacts/channels.mjs.map +1 -1
- package/resources/contacts/contacts.d.mts +32 -224
- package/resources/contacts/contacts.d.mts.map +1 -1
- package/resources/contacts/contacts.d.ts +32 -224
- package/resources/contacts/contacts.d.ts.map +1 -1
- package/resources/contacts/contacts.js +20 -65
- package/resources/contacts/contacts.js.map +1 -1
- package/resources/contacts/contacts.mjs +20 -65
- package/resources/contacts/contacts.mjs.map +1 -1
- package/resources/contacts/index.js +1 -1
- package/resources/contacts/index.js.map +1 -1
- package/resources/contacts/index.mjs +1 -1
- package/resources/contacts/index.mjs.map +1 -1
- package/resources/contacts.js +1 -1
- package/resources/contacts.js.map +1 -1
- package/resources/contacts.mjs +1 -1
- package/resources/contacts.mjs.map +1 -1
- package/resources/conversations.d.mts +32 -316
- package/resources/conversations.d.mts.map +1 -1
- package/resources/conversations.d.ts +32 -316
- package/resources/conversations.d.ts.map +1 -1
- package/resources/conversations.js +15 -1
- package/resources/conversations.js.map +1 -1
- package/resources/conversations.mjs +15 -1
- package/resources/conversations.mjs.map +1 -1
- package/resources/email-domains.d.mts +25 -208
- package/resources/email-domains.d.mts.map +1 -1
- package/resources/email-domains.d.ts +25 -208
- package/resources/email-domains.d.ts.map +1 -1
- package/resources/email-domains.js +12 -27
- package/resources/email-domains.js.map +1 -1
- package/resources/email-domains.mjs +12 -27
- package/resources/email-domains.mjs.map +1 -1
- package/resources/functions/functions.d.mts +67 -553
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +67 -553
- package/resources/functions/functions.d.ts.map +1 -1
- package/resources/functions/functions.js +39 -82
- package/resources/functions/functions.js.map +1 -1
- package/resources/functions/functions.mjs +39 -82
- package/resources/functions/functions.mjs.map +1 -1
- package/resources/functions/git-link.d.mts +25 -240
- package/resources/functions/git-link.d.mts.map +1 -1
- package/resources/functions/git-link.d.ts +25 -240
- package/resources/functions/git-link.d.ts.map +1 -1
- package/resources/functions/git-link.js +16 -34
- package/resources/functions/git-link.js.map +1 -1
- package/resources/functions/git-link.mjs +16 -34
- package/resources/functions/git-link.mjs.map +1 -1
- package/resources/functions/index.js +1 -1
- package/resources/functions/index.js.map +1 -1
- package/resources/functions/index.mjs +1 -1
- package/resources/functions/index.mjs.map +1 -1
- package/resources/functions/secrets.d.mts +15 -47
- package/resources/functions/secrets.d.mts.map +1 -1
- package/resources/functions/secrets.d.ts +15 -47
- package/resources/functions/secrets.d.ts.map +1 -1
- package/resources/functions/secrets.js +11 -21
- package/resources/functions/secrets.js.map +1 -1
- package/resources/functions/secrets.mjs +11 -21
- package/resources/functions/secrets.mjs.map +1 -1
- package/resources/functions/triggers.d.mts +14 -123
- package/resources/functions/triggers.d.mts.map +1 -1
- package/resources/functions/triggers.d.ts +14 -123
- package/resources/functions/triggers.d.ts.map +1 -1
- package/resources/functions/triggers.js +7 -25
- package/resources/functions/triggers.js.map +1 -1
- package/resources/functions/triggers.mjs +7 -25
- package/resources/functions/triggers.mjs.map +1 -1
- package/resources/functions.js +1 -1
- package/resources/functions.js.map +1 -1
- package/resources/functions.mjs +1 -1
- package/resources/functions.mjs.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/introspect.d.mts +15 -105
- package/resources/introspect.d.mts.map +1 -1
- package/resources/introspect.d.ts +15 -105
- package/resources/introspect.d.ts.map +1 -1
- package/resources/introspect.js +7 -13
- package/resources/introspect.js.map +1 -1
- package/resources/introspect.mjs +7 -13
- package/resources/introspect.mjs.map +1 -1
- package/resources/invitations/webhook.d.mts +57 -0
- package/resources/invitations/webhook.d.mts.map +1 -0
- package/resources/invitations/webhook.d.ts +57 -0
- package/resources/invitations/webhook.d.ts.map +1 -0
- package/resources/invitations/webhook.js +61 -0
- package/resources/invitations/webhook.js.map +1 -0
- package/resources/invitations/webhook.mjs +57 -0
- package/resources/invitations/webhook.mjs.map +1 -0
- package/resources/invitations.d.mts +27 -174
- package/resources/invitations.d.mts.map +1 -1
- package/resources/invitations.d.ts +27 -174
- package/resources/invitations.d.ts.map +1 -1
- package/resources/invitations.js +20 -30
- package/resources/invitations.js.map +1 -1
- package/resources/invitations.mjs +19 -30
- package/resources/invitations.mjs.map +1 -1
- package/resources/me.d.mts +9 -18
- package/resources/me.d.mts.map +1 -1
- package/resources/me.d.ts +9 -18
- package/resources/me.d.ts.map +1 -1
- package/resources/me.js +5 -1
- package/resources/me.js.map +1 -1
- package/resources/me.mjs +5 -1
- package/resources/me.mjs.map +1 -1
- package/resources/memory/collections/collections.d.mts +75 -0
- package/resources/memory/collections/collections.d.mts.map +1 -0
- package/resources/memory/collections/collections.d.ts +75 -0
- package/resources/memory/collections/collections.d.ts.map +1 -0
- package/resources/memory/collections/collections.js +79 -0
- package/resources/memory/collections/collections.js.map +1 -0
- package/resources/memory/collections/collections.mjs +74 -0
- package/resources/memory/collections/collections.mjs.map +1 -0
- package/resources/memory/collections/index.d.mts +3 -0
- package/resources/memory/collections/index.d.mts.map +1 -0
- package/resources/memory/collections/index.d.ts +3 -0
- package/resources/memory/collections/index.d.ts.map +1 -0
- package/resources/memory/collections/index.js +9 -0
- package/resources/memory/collections/index.js.map +1 -0
- package/resources/memory/collections/index.mjs +4 -0
- package/resources/memory/collections/index.mjs.map +1 -0
- package/resources/memory/collections/items.d.mts +88 -0
- package/resources/memory/collections/items.d.mts.map +1 -0
- package/resources/memory/collections/items.d.ts +88 -0
- package/resources/memory/collections/items.d.ts.map +1 -0
- package/resources/memory/collections/items.js +120 -0
- package/resources/memory/collections/items.js.map +1 -0
- package/resources/memory/collections/items.mjs +116 -0
- package/resources/memory/collections/items.mjs.map +1 -0
- package/resources/memory/collections.d.mts +2 -0
- package/resources/memory/collections.d.mts.map +1 -0
- package/resources/memory/collections.d.ts +2 -0
- package/resources/memory/collections.d.ts.map +1 -0
- package/resources/memory/collections.js +6 -0
- package/resources/memory/collections.js.map +1 -0
- package/resources/memory/collections.mjs +3 -0
- package/resources/memory/collections.mjs.map +1 -0
- package/resources/memory/index.d.mts +3 -0
- package/resources/memory/index.d.mts.map +1 -0
- package/resources/memory/index.d.ts +3 -0
- package/resources/memory/index.d.ts.map +1 -0
- package/resources/memory/index.js +9 -0
- package/resources/memory/index.js.map +1 -0
- package/resources/memory/index.mjs +4 -0
- package/resources/memory/index.mjs.map +1 -0
- package/resources/memory/memory.d.mts +111 -0
- package/resources/memory/memory.d.mts.map +1 -0
- package/resources/memory/memory.d.ts +111 -0
- package/resources/memory/memory.d.ts.map +1 -0
- package/resources/memory/memory.js +116 -0
- package/resources/memory/memory.js.map +1 -0
- package/resources/memory/memory.mjs +111 -0
- package/resources/memory/memory.mjs.map +1 -0
- package/resources/memory.d.mts +2 -0
- package/resources/memory.d.mts.map +1 -0
- package/resources/memory.d.ts +2 -0
- package/resources/memory.d.ts.map +1 -0
- package/resources/memory.js +6 -0
- package/resources/memory.js.map +1 -0
- package/resources/memory.mjs +3 -0
- package/resources/memory.mjs.map +1 -0
- package/resources/messages.d.mts +119 -561
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +119 -561
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +98 -58
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +98 -58
- package/resources/messages.mjs.map +1 -1
- package/resources/number-10dlc/brands.d.mts +44 -209
- package/resources/number-10dlc/brands.d.mts.map +1 -1
- package/resources/number-10dlc/brands.d.ts +44 -209
- package/resources/number-10dlc/brands.d.ts.map +1 -1
- package/resources/number-10dlc/brands.js +31 -64
- package/resources/number-10dlc/brands.js.map +1 -1
- package/resources/number-10dlc/brands.mjs +31 -64
- package/resources/number-10dlc/brands.mjs.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.d.mts +40 -183
- package/resources/number-10dlc/campaigns/campaigns.d.mts.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.d.ts +40 -183
- package/resources/number-10dlc/campaigns/campaigns.d.ts.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.js +27 -69
- package/resources/number-10dlc/campaigns/campaigns.js.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.mjs +27 -69
- package/resources/number-10dlc/campaigns/campaigns.mjs.map +1 -1
- package/resources/number-10dlc/campaigns/index.js +1 -1
- package/resources/number-10dlc/campaigns/index.js.map +1 -1
- package/resources/number-10dlc/campaigns/index.mjs +1 -1
- package/resources/number-10dlc/campaigns/index.mjs.map +1 -1
- package/resources/number-10dlc/campaigns/phone-numbers.d.mts +21 -56
- package/resources/number-10dlc/campaigns/phone-numbers.d.mts.map +1 -1
- package/resources/number-10dlc/campaigns/phone-numbers.d.ts +21 -56
- package/resources/number-10dlc/campaigns/phone-numbers.d.ts.map +1 -1
- package/resources/number-10dlc/campaigns/phone-numbers.js +15 -26
- package/resources/number-10dlc/campaigns/phone-numbers.js.map +1 -1
- package/resources/number-10dlc/campaigns/phone-numbers.mjs +15 -26
- package/resources/number-10dlc/campaigns/phone-numbers.mjs.map +1 -1
- package/resources/number-10dlc/campaigns.js +1 -1
- package/resources/number-10dlc/campaigns.js.map +1 -1
- package/resources/number-10dlc/campaigns.mjs +1 -1
- package/resources/number-10dlc/campaigns.mjs.map +1 -1
- package/resources/number-10dlc/index.js +1 -1
- package/resources/number-10dlc/index.js.map +1 -1
- package/resources/number-10dlc/index.mjs +1 -1
- package/resources/number-10dlc/index.mjs.map +1 -1
- package/resources/number-10dlc/number-10dlc.d.mts +3 -4
- package/resources/number-10dlc/number-10dlc.d.mts.map +1 -1
- package/resources/number-10dlc/number-10dlc.d.ts +3 -4
- package/resources/number-10dlc/number-10dlc.d.ts.map +1 -1
- package/resources/number-10dlc/number-10dlc.js +1 -5
- package/resources/number-10dlc/number-10dlc.js.map +1 -1
- package/resources/number-10dlc/number-10dlc.mjs +1 -5
- package/resources/number-10dlc/number-10dlc.mjs.map +1 -1
- package/resources/number-10dlc.js +1 -1
- package/resources/number-10dlc.js.map +1 -1
- package/resources/number-10dlc.mjs +1 -1
- package/resources/number-10dlc.mjs.map +1 -1
- package/resources/phone-numbers.d.mts +95 -234
- package/resources/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers.d.ts +95 -234
- package/resources/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers.js +74 -54
- package/resources/phone-numbers.js.map +1 -1
- package/resources/phone-numbers.mjs +74 -54
- package/resources/phone-numbers.mjs.map +1 -1
- package/resources/regulatory-documents.d.mts +24 -78
- package/resources/regulatory-documents.d.mts.map +1 -1
- package/resources/regulatory-documents.d.ts +24 -78
- package/resources/regulatory-documents.d.ts.map +1 -1
- package/resources/regulatory-documents.js +16 -33
- package/resources/regulatory-documents.js.map +1 -1
- package/resources/regulatory-documents.mjs +16 -33
- package/resources/regulatory-documents.mjs.map +1 -1
- package/resources/senders/agent/agent.d.mts +44 -496
- package/resources/senders/agent/agent.d.mts.map +1 -1
- package/resources/senders/agent/agent.d.ts +44 -496
- package/resources/senders/agent/agent.d.ts.map +1 -1
- package/resources/senders/agent/agent.js +24 -49
- package/resources/senders/agent/agent.js.map +1 -1
- package/resources/senders/agent/agent.mjs +24 -49
- package/resources/senders/agent/agent.mjs.map +1 -1
- package/resources/senders/agent/executions.d.mts +13 -33
- package/resources/senders/agent/executions.d.mts.map +1 -1
- package/resources/senders/agent/executions.d.ts +13 -33
- package/resources/senders/agent/executions.d.ts.map +1 -1
- package/resources/senders/agent/executions.js +7 -18
- package/resources/senders/agent/executions.js.map +1 -1
- package/resources/senders/agent/executions.mjs +7 -18
- package/resources/senders/agent/executions.mjs.map +1 -1
- package/resources/senders/agent/flows.d.mts +34 -188
- package/resources/senders/agent/flows.d.mts.map +1 -1
- package/resources/senders/agent/flows.d.ts +34 -188
- package/resources/senders/agent/flows.d.ts.map +1 -1
- package/resources/senders/agent/flows.js +19 -69
- package/resources/senders/agent/flows.js.map +1 -1
- package/resources/senders/agent/flows.mjs +19 -69
- package/resources/senders/agent/flows.mjs.map +1 -1
- package/resources/senders/agent/index.js +1 -1
- package/resources/senders/agent/index.js.map +1 -1
- package/resources/senders/agent/index.mjs +1 -1
- package/resources/senders/agent/index.mjs.map +1 -1
- package/resources/senders/agent/knowledge-bases/documents.d.mts +27 -105
- package/resources/senders/agent/knowledge-bases/documents.d.mts.map +1 -1
- package/resources/senders/agent/knowledge-bases/documents.d.ts +27 -105
- package/resources/senders/agent/knowledge-bases/documents.d.ts.map +1 -1
- package/resources/senders/agent/knowledge-bases/documents.js +16 -47
- package/resources/senders/agent/knowledge-bases/documents.js.map +1 -1
- package/resources/senders/agent/knowledge-bases/documents.mjs +16 -47
- package/resources/senders/agent/knowledge-bases/documents.mjs.map +1 -1
- package/resources/senders/agent/knowledge-bases/index.js +1 -1
- package/resources/senders/agent/knowledge-bases/index.js.map +1 -1
- package/resources/senders/agent/knowledge-bases/index.mjs +1 -1
- package/resources/senders/agent/knowledge-bases/index.mjs.map +1 -1
- package/resources/senders/agent/knowledge-bases/knowledge-bases.d.mts +32 -113
- package/resources/senders/agent/knowledge-bases/knowledge-bases.d.mts.map +1 -1
- package/resources/senders/agent/knowledge-bases/knowledge-bases.d.ts +32 -113
- package/resources/senders/agent/knowledge-bases/knowledge-bases.d.ts.map +1 -1
- package/resources/senders/agent/knowledge-bases/knowledge-bases.js +17 -46
- package/resources/senders/agent/knowledge-bases/knowledge-bases.js.map +1 -1
- package/resources/senders/agent/knowledge-bases/knowledge-bases.mjs +17 -46
- package/resources/senders/agent/knowledge-bases/knowledge-bases.mjs.map +1 -1
- package/resources/senders/agent/knowledge-bases.js +1 -1
- package/resources/senders/agent/knowledge-bases.js.map +1 -1
- package/resources/senders/agent/knowledge-bases.mjs +1 -1
- package/resources/senders/agent/knowledge-bases.mjs.map +1 -1
- package/resources/senders/agent/tools/index.js +1 -1
- package/resources/senders/agent/tools/index.js.map +1 -1
- package/resources/senders/agent/tools/index.mjs +1 -1
- package/resources/senders/agent/tools/index.mjs.map +1 -1
- package/resources/senders/agent/tools/tools.d.mts +47 -280
- package/resources/senders/agent/tools/tools.d.mts.map +1 -1
- package/resources/senders/agent/tools/tools.d.ts +47 -280
- package/resources/senders/agent/tools/tools.d.ts.map +1 -1
- package/resources/senders/agent/tools/tools.js +25 -75
- package/resources/senders/agent/tools/tools.js.map +1 -1
- package/resources/senders/agent/tools/tools.mjs +25 -75
- package/resources/senders/agent/tools/tools.mjs.map +1 -1
- package/resources/senders/agent/tools/webhook.d.mts +6 -12
- package/resources/senders/agent/tools/webhook.d.mts.map +1 -1
- package/resources/senders/agent/tools/webhook.d.ts +6 -12
- package/resources/senders/agent/tools/webhook.d.ts.map +1 -1
- package/resources/senders/agent/tools/webhook.js +4 -9
- package/resources/senders/agent/tools/webhook.js.map +1 -1
- package/resources/senders/agent/tools/webhook.mjs +4 -9
- package/resources/senders/agent/tools/webhook.mjs.map +1 -1
- package/resources/senders/agent/tools.js +1 -1
- package/resources/senders/agent/tools.js.map +1 -1
- package/resources/senders/agent/tools.mjs +1 -1
- package/resources/senders/agent/tools.mjs.map +1 -1
- package/resources/senders/agent.js +1 -1
- package/resources/senders/agent.js.map +1 -1
- package/resources/senders/agent.mjs +1 -1
- package/resources/senders/agent.mjs.map +1 -1
- package/resources/senders/channels.d.mts +61 -0
- package/resources/senders/channels.d.mts.map +1 -0
- package/resources/senders/channels.d.ts +61 -0
- package/resources/senders/channels.d.ts.map +1 -0
- package/resources/senders/channels.js +60 -0
- package/resources/senders/channels.js.map +1 -0
- package/resources/senders/channels.mjs +56 -0
- package/resources/senders/channels.mjs.map +1 -0
- package/resources/senders/index.d.mts +1 -0
- package/resources/senders/index.d.mts.map +1 -1
- package/resources/senders/index.d.ts +1 -0
- package/resources/senders/index.d.ts.map +1 -1
- package/resources/senders/index.js +4 -2
- package/resources/senders/index.js.map +1 -1
- package/resources/senders/index.mjs +2 -1
- package/resources/senders/index.mjs.map +1 -1
- package/resources/senders/senders.d.mts +53 -514
- package/resources/senders/senders.d.mts.map +1 -1
- package/resources/senders/senders.d.ts +53 -514
- package/resources/senders/senders.d.ts.map +1 -1
- package/resources/senders/senders.js +30 -70
- package/resources/senders/senders.js.map +1 -1
- package/resources/senders/senders.mjs +30 -70
- package/resources/senders/senders.mjs.map +1 -1
- package/resources/senders/telegram.d.mts +10 -25
- package/resources/senders/telegram.d.mts.map +1 -1
- package/resources/senders/telegram.d.ts +10 -25
- package/resources/senders/telegram.d.ts.map +1 -1
- package/resources/senders/telegram.js +7 -12
- package/resources/senders/telegram.js.map +1 -1
- package/resources/senders/telegram.mjs +7 -12
- package/resources/senders/telegram.mjs.map +1 -1
- package/resources/senders/whatsapp-sync.d.mts +16 -104
- package/resources/senders/whatsapp-sync.d.mts.map +1 -1
- package/resources/senders/whatsapp-sync.d.ts +16 -104
- package/resources/senders/whatsapp-sync.d.ts.map +1 -1
- package/resources/senders/whatsapp-sync.js +10 -20
- package/resources/senders/whatsapp-sync.js.map +1 -1
- package/resources/senders/whatsapp-sync.mjs +10 -20
- package/resources/senders/whatsapp-sync.mjs.map +1 -1
- package/resources/senders.js +1 -1
- package/resources/senders.js.map +1 -1
- package/resources/senders.mjs +1 -1
- package/resources/senders.mjs.map +1 -1
- package/resources/sub-accounts/api-keys.d.mts +16 -57
- package/resources/sub-accounts/api-keys.d.mts.map +1 -1
- package/resources/sub-accounts/api-keys.d.ts +16 -57
- package/resources/sub-accounts/api-keys.d.ts.map +1 -1
- package/resources/sub-accounts/api-keys.js +10 -18
- package/resources/sub-accounts/api-keys.js.map +1 -1
- package/resources/sub-accounts/api-keys.mjs +10 -18
- package/resources/sub-accounts/api-keys.mjs.map +1 -1
- package/resources/sub-accounts/index.js +1 -1
- package/resources/sub-accounts/index.js.map +1 -1
- package/resources/sub-accounts/index.mjs +1 -1
- package/resources/sub-accounts/index.mjs.map +1 -1
- package/resources/sub-accounts/sub-accounts.d.mts +33 -125
- package/resources/sub-accounts/sub-accounts.d.mts.map +1 -1
- package/resources/sub-accounts/sub-accounts.d.ts +33 -125
- package/resources/sub-accounts/sub-accounts.d.ts.map +1 -1
- package/resources/sub-accounts/sub-accounts.js +20 -33
- package/resources/sub-accounts/sub-accounts.js.map +1 -1
- package/resources/sub-accounts/sub-accounts.mjs +20 -33
- package/resources/sub-accounts/sub-accounts.mjs.map +1 -1
- package/resources/sub-accounts.js +1 -1
- package/resources/sub-accounts.js.map +1 -1
- package/resources/sub-accounts.mjs +1 -1
- package/resources/sub-accounts.mjs.map +1 -1
- package/resources/templates.d.mts +46 -302
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +46 -302
- package/resources/templates.d.ts.map +1 -1
- package/resources/templates.js +34 -51
- package/resources/templates.js.map +1 -1
- package/resources/templates.mjs +34 -51
- package/resources/templates.mjs.map +1 -1
- package/resources/urls.d.mts +27 -78
- package/resources/urls.d.mts.map +1 -1
- package/resources/urls.d.ts +27 -78
- package/resources/urls.d.ts.map +1 -1
- package/resources/urls.js +18 -28
- package/resources/urls.js.map +1 -1
- package/resources/urls.mjs +18 -28
- package/resources/urls.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.js +1 -0
- package/resources.js.map +1 -1
- package/resources.mjs +1 -0
- package/resources.mjs.map +1 -1
- package/src/client.ts +273 -233
- package/src/core/api-promise.ts +0 -2
- package/src/core/error.ts +0 -2
- package/src/core/pagination.ts +0 -2
- package/src/core/resource.ts +0 -2
- package/src/index.ts +0 -2
- package/src/internal/builtin-types.ts +0 -2
- package/src/internal/detect-platform.ts +0 -2
- package/src/internal/errors.ts +0 -2
- package/src/internal/headers.ts +0 -2
- package/src/internal/parse.ts +0 -2
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +0 -2
- package/src/internal/shim-types.ts +0 -2
- package/src/internal/shims.ts +0 -2
- package/src/internal/types.ts +0 -2
- package/src/internal/utils/base64.ts +0 -2
- package/src/internal/utils/env.ts +0 -2
- package/src/internal/utils/log.ts +0 -2
- package/src/internal/utils/query.ts +2 -20
- package/src/internal/utils/sleep.ts +0 -2
- package/src/internal/utils/uuid.ts +0 -2
- package/src/internal/utils/values.ts +0 -2
- package/src/internal/utils.ts +0 -2
- package/src/resources/addresses.ts +28 -97
- package/src/resources/agent-templates.ts +18 -89
- package/src/resources/agents/agents.ts +58 -472
- package/src/resources/agents/index.ts +1 -1
- package/src/resources/agents/senders.ts +11 -33
- package/src/resources/agents.ts +1 -1
- package/src/resources/balance.ts +7 -24
- package/src/resources/broadcasts/broadcasts.ts +97 -490
- package/src/resources/broadcasts/contacts.ts +20 -114
- package/src/resources/broadcasts/index.ts +1 -1
- package/src/resources/broadcasts.ts +1 -1
- package/src/resources/calls.ts +41 -551
- package/src/resources/contacts/channels.ts +21 -104
- package/src/resources/contacts/contacts.ts +41 -273
- package/src/resources/contacts/index.ts +1 -1
- package/src/resources/contacts.ts +1 -1
- package/src/resources/conversations.ts +33 -387
- package/src/resources/email-domains.ts +26 -253
- package/src/resources/functions/functions.ts +83 -669
- package/src/resources/functions/git-link.ts +26 -301
- package/src/resources/functions/index.ts +1 -1
- package/src/resources/functions/secrets.ts +16 -55
- package/src/resources/functions/triggers.ts +15 -149
- package/src/resources/functions.ts +1 -1
- package/src/resources/index.ts +21 -1
- package/src/resources/introspect.ts +16 -136
- package/src/resources/invitations/webhook.ts +93 -0
- package/src/resources/invitations.ts +45 -201
- package/src/resources/me.ts +10 -28
- package/src/resources/memory/collections/collections.ts +149 -0
- package/src/resources/memory/collections/index.ts +30 -0
- package/src/resources/memory/collections/items.ts +185 -0
- package/src/resources/memory/collections.ts +3 -0
- package/src/resources/memory/index.ts +34 -0
- package/src/resources/memory/memory.ts +211 -0
- package/src/resources/memory.ts +3 -0
- package/src/resources/messages.ts +119 -678
- package/src/resources/number-10dlc/brands.ts +45 -268
- package/src/resources/number-10dlc/campaigns/campaigns.ts +47 -246
- package/src/resources/number-10dlc/campaigns/index.ts +1 -1
- package/src/resources/number-10dlc/campaigns/phone-numbers.ts +31 -64
- package/src/resources/number-10dlc/campaigns.ts +1 -1
- package/src/resources/number-10dlc/index.ts +1 -1
- package/src/resources/number-10dlc/number-10dlc.ts +23 -29
- package/src/resources/number-10dlc.ts +1 -1
- package/src/resources/phone-numbers.ts +96 -275
- package/src/resources/regulatory-documents.ts +25 -106
- package/src/resources/senders/agent/agent.ts +91 -662
- package/src/resources/senders/agent/executions.ts +14 -35
- package/src/resources/senders/agent/flows.ts +35 -213
- package/src/resources/senders/agent/index.ts +1 -1
- package/src/resources/senders/agent/knowledge-bases/documents.ts +28 -114
- package/src/resources/senders/agent/knowledge-bases/index.ts +1 -1
- package/src/resources/senders/agent/knowledge-bases/knowledge-bases.ts +42 -143
- package/src/resources/senders/agent/knowledge-bases.ts +1 -1
- package/src/resources/senders/agent/tools/index.ts +1 -1
- package/src/resources/senders/agent/tools/tools.ts +48 -318
- package/src/resources/senders/agent/tools/webhook.ts +7 -13
- package/src/resources/senders/agent/tools.ts +1 -1
- package/src/resources/senders/agent.ts +1 -1
- package/src/resources/senders/channels.ts +95 -0
- package/src/resources/senders/index.ts +11 -1
- package/src/resources/senders/senders.ts +86 -634
- package/src/resources/senders/telegram.ts +11 -29
- package/src/resources/senders/whatsapp-sync.ts +17 -115
- package/src/resources/senders.ts +1 -1
- package/src/resources/sub-accounts/api-keys.ts +17 -73
- package/src/resources/sub-accounts/index.ts +1 -1
- package/src/resources/sub-accounts/sub-accounts.ts +38 -147
- package/src/resources/sub-accounts.ts +1 -1
- package/src/resources/templates.ts +47 -358
- package/src/resources/urls.ts +28 -86
- package/src/resources.ts +2 -0
- package/src/types.ts +5464 -0
- package/src/version.ts +3 -1
- package/types.d.mts +4901 -0
- package/types.d.mts.map +1 -0
- package/types.d.ts +4901 -0
- package/types.d.ts.map +1 -0
- package/types.js +4 -0
- package/types.js.map +1 -0
- package/types.mjs +3 -0
- package/types.mjs.map +1 -0
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +2 -1
- package/version.js.map +1 -1
- package/version.mjs +2 -1
- package/version.mjs.map +1 -1
- package/src/lib/.keep +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../src/resources/functions/functions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,
|
|
1
|
+
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../src/resources/functions/functions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE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BAAwB,IAAI,wBAAwB,EACzD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -1,43 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
//
|
|
2
|
+
// Generated by zavu-codegen from apps/docs/openapi.json. Do not edit: run `bun run codegen`.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Functions = void 0;
|
|
5
5
|
const tslib_1 = require("../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
8
|
const GitLinkAPI = tslib_1.__importStar(require("./git-link.js"));
|
|
8
|
-
const git_link_1 = require("./git-link.js");
|
|
9
9
|
const SecretsAPI = tslib_1.__importStar(require("./secrets.js"));
|
|
10
|
-
const secrets_1 = require("./secrets.js");
|
|
11
10
|
const TriggersAPI = tslib_1.__importStar(require("./triggers.js"));
|
|
12
|
-
const triggers_1 = require("./triggers.js");
|
|
13
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
14
11
|
class Functions extends resource_1.APIResource {
|
|
15
12
|
constructor() {
|
|
16
13
|
super(...arguments);
|
|
14
|
+
this.gitLink = new GitLinkAPI.GitLink(this._client);
|
|
17
15
|
this.secrets = new SecretsAPI.Secrets(this._client);
|
|
18
16
|
this.triggers = new TriggersAPI.Triggers(this._client);
|
|
19
|
-
this.gitLink = new GitLinkAPI.GitLink(this._client);
|
|
20
17
|
}
|
|
21
18
|
/**
|
|
19
|
+
* Create function
|
|
20
|
+
*
|
|
22
21
|
* Create a new Zavu Function. The function starts in `draft` status. A dedicated
|
|
23
22
|
* API key is auto-provisioned and injected as the `ZAVU_API_KEY` secret so the
|
|
24
23
|
* function can call back into the Zavu API without manual setup.
|
|
25
24
|
*
|
|
26
|
-
* Provide `sourceCode` to seed the draft. Call
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* ```ts
|
|
31
|
-
* const _function = await client.functions.create({
|
|
32
|
-
* name: 'Order Bot',
|
|
33
|
-
* slug: 'order-bot',
|
|
34
|
-
* dependencies: { openai: '^4.20.0' },
|
|
35
|
-
* description:
|
|
36
|
-
* 'Replies to order status questions on WhatsApp.',
|
|
37
|
-
* sourceCode:
|
|
38
|
-
* "import { defineFunction } from '@zavudev/functions';\n\nexport default defineFunction(async (event, ctx) => {\n ctx.log('received', event.type);\n});\n",
|
|
39
|
-
* });
|
|
40
|
-
* ```
|
|
25
|
+
* Provide `sourceCode` to seed the draft. Call `POST
|
|
26
|
+
* /v1/functions/{functionId}/deploy` afterwards to publish.
|
|
27
|
+
*
|
|
28
|
+
* `POST /v1/functions`
|
|
41
29
|
*/
|
|
42
30
|
create(body, options) {
|
|
43
31
|
return this._client.post('/v1/functions', { body, ...options });
|
|
@@ -45,140 +33,109 @@ class Functions extends resource_1.APIResource {
|
|
|
45
33
|
/**
|
|
46
34
|
* Get function
|
|
47
35
|
*
|
|
48
|
-
*
|
|
49
|
-
* ```ts
|
|
50
|
-
* const _function = await client.functions.retrieve(
|
|
51
|
-
* 'functionId',
|
|
52
|
-
* );
|
|
53
|
-
* ```
|
|
36
|
+
* `GET /v1/functions/{functionId}`
|
|
54
37
|
*/
|
|
55
38
|
retrieve(functionID, options) {
|
|
56
39
|
return this._client.get((0, path_1.path) `/v1/functions/${functionID}`, options);
|
|
57
40
|
}
|
|
58
41
|
/**
|
|
42
|
+
* Update function draft
|
|
43
|
+
*
|
|
59
44
|
* Update an existing function. `sourceCode` / `dependencies` edit the draft
|
|
60
|
-
* without triggering a build — they go live on the next
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
* ```ts
|
|
67
|
-
* const _function = await client.functions.update(
|
|
68
|
-
* 'functionId',
|
|
69
|
-
* );
|
|
70
|
-
* ```
|
|
45
|
+
* without triggering a build — they go live on the next `POST
|
|
46
|
+
* /v1/functions/{functionId}/deploy`. `httpEnabled` is applied to the deployed
|
|
47
|
+
* function immediately, so turning the public endpoint on or off does not require
|
|
48
|
+
* a redeploy.
|
|
49
|
+
*
|
|
50
|
+
* `PATCH /v1/functions/{functionId}`
|
|
71
51
|
*/
|
|
72
52
|
update(functionID, body, options) {
|
|
73
53
|
return this._client.patch((0, path_1.path) `/v1/functions/${functionID}`, { body, ...options });
|
|
74
54
|
}
|
|
75
55
|
/**
|
|
56
|
+
* Delete function
|
|
57
|
+
*
|
|
76
58
|
* Permanently delete a function and cascade: triggers, secrets, deployment
|
|
77
59
|
* history, managed agents+tools, and revoke the auto-provisioned API key. The AWS
|
|
78
60
|
* Lambda + log group are torn down asynchronously.
|
|
79
61
|
*
|
|
80
|
-
*
|
|
81
|
-
* ```ts
|
|
82
|
-
* const _function = await client.functions.delete(
|
|
83
|
-
* 'functionId',
|
|
84
|
-
* );
|
|
85
|
-
* ```
|
|
62
|
+
* `DELETE /v1/functions/{functionId}`
|
|
86
63
|
*/
|
|
87
64
|
delete(functionID, options) {
|
|
88
65
|
return this._client.delete((0, path_1.path) `/v1/functions/${functionID}`, options);
|
|
89
66
|
}
|
|
90
67
|
/**
|
|
68
|
+
* Deploy function
|
|
69
|
+
*
|
|
91
70
|
* Publish the function. If `sourceCode` or `dependencies` are provided in the
|
|
92
71
|
* body, they replace the current draft before deployment. Returns immediately with
|
|
93
72
|
* a deployment ID — poll `GET /v1/functions/deployments/{deploymentId}` until
|
|
94
73
|
* status is `active` or `failed`.
|
|
95
74
|
*
|
|
96
|
-
*
|
|
97
|
-
* ```ts
|
|
98
|
-
* const response = await client.functions.deploy(
|
|
99
|
-
* 'functionId',
|
|
100
|
-
* );
|
|
101
|
-
* ```
|
|
75
|
+
* `POST /v1/functions/{functionId}/deploy`
|
|
102
76
|
*/
|
|
103
77
|
deploy(functionID, body = {}, options) {
|
|
104
78
|
return this._client.post((0, path_1.path) `/v1/functions/${functionID}/deploy`, { body, ...options });
|
|
105
79
|
}
|
|
106
80
|
/**
|
|
81
|
+
* Get deployment
|
|
82
|
+
*
|
|
107
83
|
* Fetch a deployment to poll its status during a deploy.
|
|
108
84
|
*
|
|
109
|
-
*
|
|
110
|
-
* ```ts
|
|
111
|
-
* const response = await client.functions.getDeployment(
|
|
112
|
-
* 'deploymentId',
|
|
113
|
-
* );
|
|
114
|
-
* ```
|
|
85
|
+
* `GET /v1/functions/deployments/{deploymentId}`
|
|
115
86
|
*/
|
|
116
87
|
getDeployment(deploymentID, options) {
|
|
117
88
|
return this._client.get((0, path_1.path) `/v1/functions/deployments/${deploymentID}`, options);
|
|
118
89
|
}
|
|
119
90
|
/**
|
|
91
|
+
* List function deployments
|
|
92
|
+
*
|
|
120
93
|
* List a function's deployment history, newest first. Source code is omitted;
|
|
121
94
|
* fetch a single deployment via GET /v1/functions/deployments/{deploymentId} for
|
|
122
95
|
* full details.
|
|
123
96
|
*
|
|
124
|
-
*
|
|
125
|
-
* ```ts
|
|
126
|
-
* const response = await client.functions.listDeployments(
|
|
127
|
-
* 'functionId',
|
|
128
|
-
* );
|
|
129
|
-
* ```
|
|
97
|
+
* `GET /v1/functions/{functionId}/deployments`
|
|
130
98
|
*/
|
|
131
99
|
listDeployments(functionID, query = {}, options) {
|
|
132
100
|
return this._client.get((0, path_1.path) `/v1/functions/${functionID}/deployments`, { query, ...options });
|
|
133
101
|
}
|
|
134
102
|
/**
|
|
103
|
+
* List function event types
|
|
104
|
+
*
|
|
135
105
|
* List the event types a function trigger can subscribe to. Includes the special
|
|
136
106
|
* type `cron`, which fires on a schedule (see POST
|
|
137
107
|
* /v1/functions/{functionId}/triggers) rather than on a messaging event.
|
|
138
108
|
*
|
|
139
|
-
*
|
|
140
|
-
* ```ts
|
|
141
|
-
* const response = await client.functions.listEventTypes();
|
|
142
|
-
* ```
|
|
109
|
+
* `GET /v1/functions/event-types`
|
|
143
110
|
*/
|
|
144
111
|
listEventTypes(options) {
|
|
145
112
|
return this._client.get('/v1/functions/event-types', options);
|
|
146
113
|
}
|
|
147
114
|
/**
|
|
115
|
+
* Roll back to a previous deployment
|
|
116
|
+
*
|
|
148
117
|
* Re-deploy a previous version by copying its source, dependencies, and runtime
|
|
149
118
|
* pin onto the function's draft, then deploying. Returns immediately with a
|
|
150
119
|
* deployment ID — poll GET /v1/functions/deployments/{deploymentId} until status
|
|
151
120
|
* is active or failed. Secrets are not rolled back.
|
|
152
121
|
*
|
|
153
|
-
*
|
|
154
|
-
* ```ts
|
|
155
|
-
* const response = await client.functions.rollbackDeployment(
|
|
156
|
-
* 'functionId',
|
|
157
|
-
* { deploymentId: 'fnd_abc123' },
|
|
158
|
-
* );
|
|
159
|
-
* ```
|
|
122
|
+
* `POST /v1/functions/{functionId}/rollback`
|
|
160
123
|
*/
|
|
161
124
|
rollbackDeployment(functionID, body, options) {
|
|
162
125
|
return this._client.post((0, path_1.path) `/v1/functions/${functionID}/rollback`, { body, ...options });
|
|
163
126
|
}
|
|
164
127
|
/**
|
|
128
|
+
* Tail function logs
|
|
129
|
+
*
|
|
165
130
|
* Fetch invocation logs for a function. Logs are paginated via `nextToken`. Pass
|
|
166
131
|
* `startTime` / `endTime` (Unix epoch milliseconds) to bound the window, or
|
|
167
132
|
* `filterPattern` to filter messages.
|
|
168
133
|
*
|
|
169
|
-
*
|
|
170
|
-
* ```ts
|
|
171
|
-
* const response = await client.functions.tailLogs(
|
|
172
|
-
* 'functionId',
|
|
173
|
-
* );
|
|
174
|
-
* ```
|
|
134
|
+
* `GET /v1/functions/{functionId}/logs`
|
|
175
135
|
*/
|
|
176
136
|
tailLogs(functionID, query = {}, options) {
|
|
177
137
|
return this._client.get((0, path_1.path) `/v1/functions/${functionID}/logs`, { query, ...options });
|
|
178
138
|
}
|
|
179
139
|
}
|
|
180
140
|
exports.Functions = Functions;
|
|
181
|
-
Functions.Secrets = secrets_1.Secrets;
|
|
182
|
-
Functions.Triggers = triggers_1.Triggers;
|
|
183
|
-
Functions.GitLink = git_link_1.GitLink;
|
|
184
141
|
//# sourceMappingURL=functions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../src/resources/functions/functions.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../src/resources/functions/functions.ts"],"names":[],"mappings":";AAAA,6FAA6F;;;;AAE7F,qDAAkD;AAGlD,uDAAiD;AAEjD,kEAAyC;AACzC,iEAAwC;AACxC,mEAA0C;AA0B1C,MAAa,SAAU,SAAQ,sBAAW;IAA1C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwJ1E,CAAC;IAtJC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,UAAkB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,UAAkB,EAClB,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,iBAAiB,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACr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ClB,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,UAAU,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF;AA3JD,8BA2JC"}
|
|
@@ -1,39 +1,27 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Generated by zavu-codegen from apps/docs/openapi.json. Do not edit: run `bun run codegen`.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
3
4
|
import * as GitLinkAPI from "./git-link.mjs";
|
|
4
|
-
import { GitLink, } from "./git-link.mjs";
|
|
5
5
|
import * as SecretsAPI from "./secrets.mjs";
|
|
6
|
-
import { Secrets, } from "./secrets.mjs";
|
|
7
6
|
import * as TriggersAPI from "./triggers.mjs";
|
|
8
|
-
import { Triggers, } from "./triggers.mjs";
|
|
9
|
-
import { path } from "../../internal/utils/path.mjs";
|
|
10
7
|
export class Functions extends APIResource {
|
|
11
8
|
constructor() {
|
|
12
9
|
super(...arguments);
|
|
10
|
+
this.gitLink = new GitLinkAPI.GitLink(this._client);
|
|
13
11
|
this.secrets = new SecretsAPI.Secrets(this._client);
|
|
14
12
|
this.triggers = new TriggersAPI.Triggers(this._client);
|
|
15
|
-
this.gitLink = new GitLinkAPI.GitLink(this._client);
|
|
16
13
|
}
|
|
17
14
|
/**
|
|
15
|
+
* Create function
|
|
16
|
+
*
|
|
18
17
|
* Create a new Zavu Function. The function starts in `draft` status. A dedicated
|
|
19
18
|
* API key is auto-provisioned and injected as the `ZAVU_API_KEY` secret so the
|
|
20
19
|
* function can call back into the Zavu API without manual setup.
|
|
21
20
|
*
|
|
22
|
-
* Provide `sourceCode` to seed the draft. Call
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* ```ts
|
|
27
|
-
* const _function = await client.functions.create({
|
|
28
|
-
* name: 'Order Bot',
|
|
29
|
-
* slug: 'order-bot',
|
|
30
|
-
* dependencies: { openai: '^4.20.0' },
|
|
31
|
-
* description:
|
|
32
|
-
* 'Replies to order status questions on WhatsApp.',
|
|
33
|
-
* sourceCode:
|
|
34
|
-
* "import { defineFunction } from '@zavudev/functions';\n\nexport default defineFunction(async (event, ctx) => {\n ctx.log('received', event.type);\n});\n",
|
|
35
|
-
* });
|
|
36
|
-
* ```
|
|
21
|
+
* Provide `sourceCode` to seed the draft. Call `POST
|
|
22
|
+
* /v1/functions/{functionId}/deploy` afterwards to publish.
|
|
23
|
+
*
|
|
24
|
+
* `POST /v1/functions`
|
|
37
25
|
*/
|
|
38
26
|
create(body, options) {
|
|
39
27
|
return this._client.post('/v1/functions', { body, ...options });
|
|
@@ -41,139 +29,108 @@ export class Functions extends APIResource {
|
|
|
41
29
|
/**
|
|
42
30
|
* Get function
|
|
43
31
|
*
|
|
44
|
-
*
|
|
45
|
-
* ```ts
|
|
46
|
-
* const _function = await client.functions.retrieve(
|
|
47
|
-
* 'functionId',
|
|
48
|
-
* );
|
|
49
|
-
* ```
|
|
32
|
+
* `GET /v1/functions/{functionId}`
|
|
50
33
|
*/
|
|
51
34
|
retrieve(functionID, options) {
|
|
52
35
|
return this._client.get(path `/v1/functions/${functionID}`, options);
|
|
53
36
|
}
|
|
54
37
|
/**
|
|
38
|
+
* Update function draft
|
|
39
|
+
*
|
|
55
40
|
* Update an existing function. `sourceCode` / `dependencies` edit the draft
|
|
56
|
-
* without triggering a build — they go live on the next
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* ```ts
|
|
63
|
-
* const _function = await client.functions.update(
|
|
64
|
-
* 'functionId',
|
|
65
|
-
* );
|
|
66
|
-
* ```
|
|
41
|
+
* without triggering a build — they go live on the next `POST
|
|
42
|
+
* /v1/functions/{functionId}/deploy`. `httpEnabled` is applied to the deployed
|
|
43
|
+
* function immediately, so turning the public endpoint on or off does not require
|
|
44
|
+
* a redeploy.
|
|
45
|
+
*
|
|
46
|
+
* `PATCH /v1/functions/{functionId}`
|
|
67
47
|
*/
|
|
68
48
|
update(functionID, body, options) {
|
|
69
49
|
return this._client.patch(path `/v1/functions/${functionID}`, { body, ...options });
|
|
70
50
|
}
|
|
71
51
|
/**
|
|
52
|
+
* Delete function
|
|
53
|
+
*
|
|
72
54
|
* Permanently delete a function and cascade: triggers, secrets, deployment
|
|
73
55
|
* history, managed agents+tools, and revoke the auto-provisioned API key. The AWS
|
|
74
56
|
* Lambda + log group are torn down asynchronously.
|
|
75
57
|
*
|
|
76
|
-
*
|
|
77
|
-
* ```ts
|
|
78
|
-
* const _function = await client.functions.delete(
|
|
79
|
-
* 'functionId',
|
|
80
|
-
* );
|
|
81
|
-
* ```
|
|
58
|
+
* `DELETE /v1/functions/{functionId}`
|
|
82
59
|
*/
|
|
83
60
|
delete(functionID, options) {
|
|
84
61
|
return this._client.delete(path `/v1/functions/${functionID}`, options);
|
|
85
62
|
}
|
|
86
63
|
/**
|
|
64
|
+
* Deploy function
|
|
65
|
+
*
|
|
87
66
|
* Publish the function. If `sourceCode` or `dependencies` are provided in the
|
|
88
67
|
* body, they replace the current draft before deployment. Returns immediately with
|
|
89
68
|
* a deployment ID — poll `GET /v1/functions/deployments/{deploymentId}` until
|
|
90
69
|
* status is `active` or `failed`.
|
|
91
70
|
*
|
|
92
|
-
*
|
|
93
|
-
* ```ts
|
|
94
|
-
* const response = await client.functions.deploy(
|
|
95
|
-
* 'functionId',
|
|
96
|
-
* );
|
|
97
|
-
* ```
|
|
71
|
+
* `POST /v1/functions/{functionId}/deploy`
|
|
98
72
|
*/
|
|
99
73
|
deploy(functionID, body = {}, options) {
|
|
100
74
|
return this._client.post(path `/v1/functions/${functionID}/deploy`, { body, ...options });
|
|
101
75
|
}
|
|
102
76
|
/**
|
|
77
|
+
* Get deployment
|
|
78
|
+
*
|
|
103
79
|
* Fetch a deployment to poll its status during a deploy.
|
|
104
80
|
*
|
|
105
|
-
*
|
|
106
|
-
* ```ts
|
|
107
|
-
* const response = await client.functions.getDeployment(
|
|
108
|
-
* 'deploymentId',
|
|
109
|
-
* );
|
|
110
|
-
* ```
|
|
81
|
+
* `GET /v1/functions/deployments/{deploymentId}`
|
|
111
82
|
*/
|
|
112
83
|
getDeployment(deploymentID, options) {
|
|
113
84
|
return this._client.get(path `/v1/functions/deployments/${deploymentID}`, options);
|
|
114
85
|
}
|
|
115
86
|
/**
|
|
87
|
+
* List function deployments
|
|
88
|
+
*
|
|
116
89
|
* List a function's deployment history, newest first. Source code is omitted;
|
|
117
90
|
* fetch a single deployment via GET /v1/functions/deployments/{deploymentId} for
|
|
118
91
|
* full details.
|
|
119
92
|
*
|
|
120
|
-
*
|
|
121
|
-
* ```ts
|
|
122
|
-
* const response = await client.functions.listDeployments(
|
|
123
|
-
* 'functionId',
|
|
124
|
-
* );
|
|
125
|
-
* ```
|
|
93
|
+
* `GET /v1/functions/{functionId}/deployments`
|
|
126
94
|
*/
|
|
127
95
|
listDeployments(functionID, query = {}, options) {
|
|
128
96
|
return this._client.get(path `/v1/functions/${functionID}/deployments`, { query, ...options });
|
|
129
97
|
}
|
|
130
98
|
/**
|
|
99
|
+
* List function event types
|
|
100
|
+
*
|
|
131
101
|
* List the event types a function trigger can subscribe to. Includes the special
|
|
132
102
|
* type `cron`, which fires on a schedule (see POST
|
|
133
103
|
* /v1/functions/{functionId}/triggers) rather than on a messaging event.
|
|
134
104
|
*
|
|
135
|
-
*
|
|
136
|
-
* ```ts
|
|
137
|
-
* const response = await client.functions.listEventTypes();
|
|
138
|
-
* ```
|
|
105
|
+
* `GET /v1/functions/event-types`
|
|
139
106
|
*/
|
|
140
107
|
listEventTypes(options) {
|
|
141
108
|
return this._client.get('/v1/functions/event-types', options);
|
|
142
109
|
}
|
|
143
110
|
/**
|
|
111
|
+
* Roll back to a previous deployment
|
|
112
|
+
*
|
|
144
113
|
* Re-deploy a previous version by copying its source, dependencies, and runtime
|
|
145
114
|
* pin onto the function's draft, then deploying. Returns immediately with a
|
|
146
115
|
* deployment ID — poll GET /v1/functions/deployments/{deploymentId} until status
|
|
147
116
|
* is active or failed. Secrets are not rolled back.
|
|
148
117
|
*
|
|
149
|
-
*
|
|
150
|
-
* ```ts
|
|
151
|
-
* const response = await client.functions.rollbackDeployment(
|
|
152
|
-
* 'functionId',
|
|
153
|
-
* { deploymentId: 'fnd_abc123' },
|
|
154
|
-
* );
|
|
155
|
-
* ```
|
|
118
|
+
* `POST /v1/functions/{functionId}/rollback`
|
|
156
119
|
*/
|
|
157
120
|
rollbackDeployment(functionID, body, options) {
|
|
158
121
|
return this._client.post(path `/v1/functions/${functionID}/rollback`, { body, ...options });
|
|
159
122
|
}
|
|
160
123
|
/**
|
|
124
|
+
* Tail function logs
|
|
125
|
+
*
|
|
161
126
|
* Fetch invocation logs for a function. Logs are paginated via `nextToken`. Pass
|
|
162
127
|
* `startTime` / `endTime` (Unix epoch milliseconds) to bound the window, or
|
|
163
128
|
* `filterPattern` to filter messages.
|
|
164
129
|
*
|
|
165
|
-
*
|
|
166
|
-
* ```ts
|
|
167
|
-
* const response = await client.functions.tailLogs(
|
|
168
|
-
* 'functionId',
|
|
169
|
-
* );
|
|
170
|
-
* ```
|
|
130
|
+
* `GET /v1/functions/{functionId}/logs`
|
|
171
131
|
*/
|
|
172
132
|
tailLogs(functionID, query = {}, options) {
|
|
173
133
|
return this._client.get(path `/v1/functions/${functionID}/logs`, { query, ...options });
|
|
174
134
|
}
|
|
175
135
|
}
|
|
176
|
-
Functions.Secrets = Secrets;
|
|
177
|
-
Functions.Triggers = Triggers;
|
|
178
|
-
Functions.GitLink = GitLink;
|
|
179
136
|
//# sourceMappingURL=functions.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.mjs","sourceRoot":"","sources":["../../src/resources/functions/functions.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"functions.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