@zavudev/sdk 0.57.0 → 0.58.1
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 +49 -0
- package/README.md +3 -3
- package/client.d.mts +39 -36
- package/client.d.mts.map +1 -1
- package/client.d.ts +39 -36
- package/client.d.ts.map +1 -1
- package/client.js +43 -40
- package/client.js.map +1 -1
- package/client.mjs +43 -40
- 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/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/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.map +1 -1
- package/internal/utils/query.d.ts.map +1 -1
- package/internal/utils/query.js +1 -2
- package/internal/utils/query.js.map +1 -1
- package/internal/utils/query.mjs +1 -2
- 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 +87 -413
- package/resources/broadcasts/broadcasts.d.mts.map +1 -1
- package/resources/broadcasts/broadcasts.d.ts +87 -413
- package/resources/broadcasts/broadcasts.d.ts.map +1 -1
- package/resources/broadcasts/broadcasts.js +59 -87
- package/resources/broadcasts/broadcasts.js.map +1 -1
- package/resources/broadcasts/broadcasts.mjs +59 -87
- 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 -484
- package/resources/calls.d.mts.map +1 -1
- package/resources/calls.d.ts +40 -484
- package/resources/calls.d.ts.map +1 -1
- package/resources/calls.js +25 -35
- package/resources/calls.js.map +1 -1
- package/resources/calls.mjs +25 -35
- 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 +33 -244
- package/resources/contacts/contacts.d.mts.map +1 -1
- package/resources/contacts/contacts.d.ts +33 -244
- package/resources/contacts/contacts.d.ts.map +1 -1
- package/resources/contacts/contacts.js +21 -52
- package/resources/contacts/contacts.js.map +1 -1
- package/resources/contacts/contacts.mjs +21 -52
- 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 +106 -583
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +106 -583
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +85 -75
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +85 -75
- package/resources/messages.mjs.map +1 -1
- package/resources/number-10dlc/brands.d.mts +34 -204
- package/resources/number-10dlc/brands.d.mts.map +1 -1
- package/resources/number-10dlc/brands.d.ts +34 -204
- package/resources/number-10dlc/brands.d.ts.map +1 -1
- package/resources/number-10dlc/brands.js +21 -59
- package/resources/number-10dlc/brands.js.map +1 -1
- package/resources/number-10dlc/brands.mjs +21 -59
- package/resources/number-10dlc/brands.mjs.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.d.mts +32 -176
- package/resources/number-10dlc/campaigns/campaigns.d.mts.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.d.ts +32 -176
- package/resources/number-10dlc/campaigns/campaigns.d.ts.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.js +19 -62
- package/resources/number-10dlc/campaigns/campaigns.js.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.mjs +19 -62
- 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 -239
- package/resources/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers.d.ts +95 -239
- 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 -230
- 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/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 +1 -3
- 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 +92 -492
- 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 -560
- package/src/resources/contacts/channels.ts +21 -104
- package/src/resources/contacts/contacts.ts +42 -289
- 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 +106 -701
- package/src/resources/number-10dlc/brands.ts +35 -263
- package/src/resources/number-10dlc/campaigns/campaigns.ts +39 -239
- 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 -280
- 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 +5468 -0
- package/src/version.ts +3 -1
- package/types.d.mts +4905 -0
- package/types.d.mts.map +1 -0
- package/types.d.ts +4905 -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,62 +1,54 @@
|
|
|
1
|
-
//
|
|
1
|
+
// Generated by zavu-codegen from apps/docs/openapi.json. Do not edit: run `bun run codegen`.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
import { path } from '../../internal/utils/path';
|
|
7
|
+
import type * as T from '../../types';
|
|
4
8
|
import * as GitLinkAPI from './git-link';
|
|
5
|
-
import {
|
|
6
|
-
GitLink,
|
|
7
|
-
GitLinkDeployNowResponse,
|
|
8
|
-
GitLinkLinkParams,
|
|
9
|
-
GitLinkLinkResponse,
|
|
10
|
-
GitLinkRetrieveResponse,
|
|
11
|
-
GitLinkUpdateParams,
|
|
12
|
-
GitLinkUpdateResponse,
|
|
13
|
-
} from './git-link';
|
|
14
9
|
import * as SecretsAPI from './secrets';
|
|
10
|
+
import * as TriggersAPI from './triggers';
|
|
15
11
|
import {
|
|
16
|
-
SecretListResponse,
|
|
17
|
-
SecretSetParams,
|
|
18
|
-
SecretSetResponse,
|
|
19
|
-
SecretUnsetParams,
|
|
20
12
|
Secrets,
|
|
13
|
+
type SecretListResponse,
|
|
14
|
+
type SecretSetResponse,
|
|
15
|
+
type SecretSetParams,
|
|
16
|
+
type SecretUnsetParams,
|
|
21
17
|
} from './secrets';
|
|
22
|
-
import * as TriggersAPI from './triggers';
|
|
23
18
|
import {
|
|
24
|
-
TriggerCreateParams,
|
|
25
|
-
TriggerCreateResponse,
|
|
26
|
-
TriggerListResponse,
|
|
27
|
-
TriggerUpdateParams,
|
|
28
|
-
TriggerUpdateResponse,
|
|
29
19
|
Triggers,
|
|
20
|
+
type TriggerCreateResponse,
|
|
21
|
+
type TriggerUpdateResponse,
|
|
22
|
+
type TriggerListResponse,
|
|
23
|
+
type TriggerCreateParams,
|
|
24
|
+
type TriggerUpdateParams,
|
|
30
25
|
} from './triggers';
|
|
31
|
-
import {
|
|
32
|
-
|
|
33
|
-
|
|
26
|
+
import {
|
|
27
|
+
GitLink,
|
|
28
|
+
type GitLinkRetrieveResponse,
|
|
29
|
+
type GitLinkUpdateResponse,
|
|
30
|
+
type GitLinkDeployNowResponse,
|
|
31
|
+
type GitLinkLinkResponse,
|
|
32
|
+
type GitLinkUpdateParams,
|
|
33
|
+
type GitLinkLinkParams,
|
|
34
|
+
} from './git-link';
|
|
34
35
|
|
|
35
36
|
export class Functions extends APIResource {
|
|
37
|
+
gitLink: GitLinkAPI.GitLink = new GitLinkAPI.GitLink(this._client);
|
|
36
38
|
secrets: SecretsAPI.Secrets = new SecretsAPI.Secrets(this._client);
|
|
37
39
|
triggers: TriggersAPI.Triggers = new TriggersAPI.Triggers(this._client);
|
|
38
|
-
gitLink: GitLinkAPI.GitLink = new GitLinkAPI.GitLink(this._client);
|
|
39
40
|
|
|
40
41
|
/**
|
|
42
|
+
* Create function
|
|
43
|
+
*
|
|
41
44
|
* Create a new Zavu Function. The function starts in `draft` status. A dedicated
|
|
42
45
|
* API key is auto-provisioned and injected as the `ZAVU_API_KEY` secret so the
|
|
43
46
|
* function can call back into the Zavu API without manual setup.
|
|
44
47
|
*
|
|
45
|
-
* Provide `sourceCode` to seed the draft. Call
|
|
46
|
-
*
|
|
48
|
+
* Provide `sourceCode` to seed the draft. Call `POST
|
|
49
|
+
* /v1/functions/{functionId}/deploy` afterwards to publish.
|
|
47
50
|
*
|
|
48
|
-
*
|
|
49
|
-
* ```ts
|
|
50
|
-
* const _function = await client.functions.create({
|
|
51
|
-
* name: 'Order Bot',
|
|
52
|
-
* slug: 'order-bot',
|
|
53
|
-
* dependencies: { openai: '^4.20.0' },
|
|
54
|
-
* description:
|
|
55
|
-
* 'Replies to order status questions on WhatsApp.',
|
|
56
|
-
* sourceCode:
|
|
57
|
-
* "import { defineFunction } from '@zavudev/functions';\n\nexport default defineFunction(async (event, ctx) => {\n ctx.log('received', event.type);\n});\n",
|
|
58
|
-
* });
|
|
59
|
-
* ```
|
|
51
|
+
* `POST /v1/functions`
|
|
60
52
|
*/
|
|
61
53
|
create(body: FunctionCreateParams, options?: RequestOptions): APIPromise<FunctionCreateResponse> {
|
|
62
54
|
return this._client.post('/v1/functions', { body, ...options });
|
|
@@ -65,30 +57,22 @@ export class Functions extends APIResource {
|
|
|
65
57
|
/**
|
|
66
58
|
* Get function
|
|
67
59
|
*
|
|
68
|
-
*
|
|
69
|
-
* ```ts
|
|
70
|
-
* const _function = await client.functions.retrieve(
|
|
71
|
-
* 'functionId',
|
|
72
|
-
* );
|
|
73
|
-
* ```
|
|
60
|
+
* `GET /v1/functions/{functionId}`
|
|
74
61
|
*/
|
|
75
62
|
retrieve(functionID: string, options?: RequestOptions): APIPromise<FunctionRetrieveResponse> {
|
|
76
63
|
return this._client.get(path`/v1/functions/${functionID}`, options);
|
|
77
64
|
}
|
|
78
65
|
|
|
79
66
|
/**
|
|
67
|
+
* Update function draft
|
|
68
|
+
*
|
|
80
69
|
* Update an existing function. `sourceCode` / `dependencies` edit the draft
|
|
81
|
-
* without triggering a build — they go live on the next
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
70
|
+
* without triggering a build — they go live on the next `POST
|
|
71
|
+
* /v1/functions/{functionId}/deploy`. `httpEnabled` is applied to the deployed
|
|
72
|
+
* function immediately, so turning the public endpoint on or off does not require
|
|
73
|
+
* a redeploy.
|
|
85
74
|
*
|
|
86
|
-
*
|
|
87
|
-
* ```ts
|
|
88
|
-
* const _function = await client.functions.update(
|
|
89
|
-
* 'functionId',
|
|
90
|
-
* );
|
|
91
|
-
* ```
|
|
75
|
+
* `PATCH /v1/functions/{functionId}`
|
|
92
76
|
*/
|
|
93
77
|
update(
|
|
94
78
|
functionID: string,
|
|
@@ -99,33 +83,27 @@ export class Functions extends APIResource {
|
|
|
99
83
|
}
|
|
100
84
|
|
|
101
85
|
/**
|
|
86
|
+
* Delete function
|
|
87
|
+
*
|
|
102
88
|
* Permanently delete a function and cascade: triggers, secrets, deployment
|
|
103
89
|
* history, managed agents+tools, and revoke the auto-provisioned API key. The AWS
|
|
104
90
|
* Lambda + log group are torn down asynchronously.
|
|
105
91
|
*
|
|
106
|
-
*
|
|
107
|
-
* ```ts
|
|
108
|
-
* const _function = await client.functions.delete(
|
|
109
|
-
* 'functionId',
|
|
110
|
-
* );
|
|
111
|
-
* ```
|
|
92
|
+
* `DELETE /v1/functions/{functionId}`
|
|
112
93
|
*/
|
|
113
94
|
delete(functionID: string, options?: RequestOptions): APIPromise<FunctionDeleteResponse> {
|
|
114
95
|
return this._client.delete(path`/v1/functions/${functionID}`, options);
|
|
115
96
|
}
|
|
116
97
|
|
|
117
98
|
/**
|
|
99
|
+
* Deploy function
|
|
100
|
+
*
|
|
118
101
|
* Publish the function. If `sourceCode` or `dependencies` are provided in the
|
|
119
102
|
* body, they replace the current draft before deployment. Returns immediately with
|
|
120
103
|
* a deployment ID — poll `GET /v1/functions/deployments/{deploymentId}` until
|
|
121
104
|
* status is `active` or `failed`.
|
|
122
105
|
*
|
|
123
|
-
*
|
|
124
|
-
* ```ts
|
|
125
|
-
* const response = await client.functions.deploy(
|
|
126
|
-
* 'functionId',
|
|
127
|
-
* );
|
|
128
|
-
* ```
|
|
106
|
+
* `POST /v1/functions/{functionId}/deploy`
|
|
129
107
|
*/
|
|
130
108
|
deploy(
|
|
131
109
|
functionID: string,
|
|
@@ -136,30 +114,24 @@ export class Functions extends APIResource {
|
|
|
136
114
|
}
|
|
137
115
|
|
|
138
116
|
/**
|
|
117
|
+
* Get deployment
|
|
118
|
+
*
|
|
139
119
|
* Fetch a deployment to poll its status during a deploy.
|
|
140
120
|
*
|
|
141
|
-
*
|
|
142
|
-
* ```ts
|
|
143
|
-
* const response = await client.functions.getDeployment(
|
|
144
|
-
* 'deploymentId',
|
|
145
|
-
* );
|
|
146
|
-
* ```
|
|
121
|
+
* `GET /v1/functions/deployments/{deploymentId}`
|
|
147
122
|
*/
|
|
148
123
|
getDeployment(deploymentID: string, options?: RequestOptions): APIPromise<FunctionGetDeploymentResponse> {
|
|
149
124
|
return this._client.get(path`/v1/functions/deployments/${deploymentID}`, options);
|
|
150
125
|
}
|
|
151
126
|
|
|
152
127
|
/**
|
|
128
|
+
* List function deployments
|
|
129
|
+
*
|
|
153
130
|
* List a function's deployment history, newest first. Source code is omitted;
|
|
154
131
|
* fetch a single deployment via GET /v1/functions/deployments/{deploymentId} for
|
|
155
132
|
* full details.
|
|
156
133
|
*
|
|
157
|
-
*
|
|
158
|
-
* ```ts
|
|
159
|
-
* const response = await client.functions.listDeployments(
|
|
160
|
-
* 'functionId',
|
|
161
|
-
* );
|
|
162
|
-
* ```
|
|
134
|
+
* `GET /v1/functions/{functionId}/deployments`
|
|
163
135
|
*/
|
|
164
136
|
listDeployments(
|
|
165
137
|
functionID: string,
|
|
@@ -170,32 +142,27 @@ export class Functions extends APIResource {
|
|
|
170
142
|
}
|
|
171
143
|
|
|
172
144
|
/**
|
|
145
|
+
* List function event types
|
|
146
|
+
*
|
|
173
147
|
* List the event types a function trigger can subscribe to. Includes the special
|
|
174
148
|
* type `cron`, which fires on a schedule (see POST
|
|
175
149
|
* /v1/functions/{functionId}/triggers) rather than on a messaging event.
|
|
176
150
|
*
|
|
177
|
-
*
|
|
178
|
-
* ```ts
|
|
179
|
-
* const response = await client.functions.listEventTypes();
|
|
180
|
-
* ```
|
|
151
|
+
* `GET /v1/functions/event-types`
|
|
181
152
|
*/
|
|
182
153
|
listEventTypes(options?: RequestOptions): APIPromise<FunctionListEventTypesResponse> {
|
|
183
154
|
return this._client.get('/v1/functions/event-types', options);
|
|
184
155
|
}
|
|
185
156
|
|
|
186
157
|
/**
|
|
158
|
+
* Roll back to a previous deployment
|
|
159
|
+
*
|
|
187
160
|
* Re-deploy a previous version by copying its source, dependencies, and runtime
|
|
188
161
|
* pin onto the function's draft, then deploying. Returns immediately with a
|
|
189
162
|
* deployment ID — poll GET /v1/functions/deployments/{deploymentId} until status
|
|
190
163
|
* is active or failed. Secrets are not rolled back.
|
|
191
164
|
*
|
|
192
|
-
*
|
|
193
|
-
* ```ts
|
|
194
|
-
* const response = await client.functions.rollbackDeployment(
|
|
195
|
-
* 'functionId',
|
|
196
|
-
* { deploymentId: 'fnd_abc123' },
|
|
197
|
-
* );
|
|
198
|
-
* ```
|
|
165
|
+
* `POST /v1/functions/{functionId}/rollback`
|
|
199
166
|
*/
|
|
200
167
|
rollbackDeployment(
|
|
201
168
|
functionID: string,
|
|
@@ -206,16 +173,13 @@ export class Functions extends APIResource {
|
|
|
206
173
|
}
|
|
207
174
|
|
|
208
175
|
/**
|
|
176
|
+
* Tail function logs
|
|
177
|
+
*
|
|
209
178
|
* Fetch invocation logs for a function. Logs are paginated via `nextToken`. Pass
|
|
210
179
|
* `startTime` / `endTime` (Unix epoch milliseconds) to bound the window, or
|
|
211
180
|
* `filterPattern` to filter messages.
|
|
212
181
|
*
|
|
213
|
-
*
|
|
214
|
-
* ```ts
|
|
215
|
-
* const response = await client.functions.tailLogs(
|
|
216
|
-
* 'functionId',
|
|
217
|
-
* );
|
|
218
|
-
* ```
|
|
182
|
+
* `GET /v1/functions/{functionId}/logs`
|
|
219
183
|
*/
|
|
220
184
|
tailLogs(
|
|
221
185
|
functionID: string,
|
|
@@ -226,602 +190,61 @@ export class Functions extends APIResource {
|
|
|
226
190
|
}
|
|
227
191
|
}
|
|
228
192
|
|
|
229
|
-
export
|
|
230
|
-
/**
|
|
231
|
-
* A Zavu Function — user-supplied TypeScript that runs in Zavu Cloud and reacts to
|
|
232
|
-
* messaging events or HTTP requests.
|
|
233
|
-
*/
|
|
234
|
-
function: FunctionCreateResponse.Function;
|
|
235
|
-
}
|
|
236
|
-
|
|
193
|
+
export type FunctionCreateResponse = T.ZavuFunctionResponse;
|
|
237
194
|
export namespace FunctionCreateResponse {
|
|
238
|
-
|
|
239
|
-
* A Zavu Function — user-supplied TypeScript that runs in Zavu Cloud and reacts to
|
|
240
|
-
* messaging events or HTTP requests.
|
|
241
|
-
*/
|
|
242
|
-
export interface Function {
|
|
243
|
-
id: string;
|
|
244
|
-
|
|
245
|
-
createdAt: string;
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* npm dependencies installed in the function bundle. Keys are package names,
|
|
249
|
-
* values are semver ranges.
|
|
250
|
-
*/
|
|
251
|
-
dependencies: { [key: string]: string };
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* Whether the function can be invoked over HTTPS via its public URL.
|
|
255
|
-
*/
|
|
256
|
-
httpEnabled: boolean;
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* Memory allocation in MB.
|
|
260
|
-
*/
|
|
261
|
-
memoryMb: number;
|
|
262
|
-
|
|
263
|
-
name: string;
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* Runtime the function is deployed on.
|
|
267
|
-
*/
|
|
268
|
-
runtime: 'nodejs24';
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* URL-safe identifier, unique per project.
|
|
272
|
-
*/
|
|
273
|
-
slug: string;
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* Lifecycle status of a Zavu Function.
|
|
277
|
-
*/
|
|
278
|
-
status: 'draft' | 'bundling' | 'deploying' | 'active' | 'failed' | 'disabled';
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Per-invocation timeout in seconds.
|
|
282
|
-
*/
|
|
283
|
-
timeoutSec: number;
|
|
284
|
-
|
|
285
|
-
updatedAt: string;
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* ID of the deployment currently serving traffic.
|
|
289
|
-
*/
|
|
290
|
-
activeDeploymentId?: string | null;
|
|
291
|
-
|
|
292
|
-
description?: string | null;
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* HTTPS endpoint, present only while httpEnabled is true. Null otherwise,
|
|
296
|
-
* including for a function that was previously exposed — the stored URL stops
|
|
297
|
-
* serving the moment HTTP is turned off, so it is never returned.
|
|
298
|
-
*/
|
|
299
|
-
publicUrl?: string | null;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
export interface FunctionRetrieveResponse {
|
|
304
|
-
/**
|
|
305
|
-
* A Zavu Function — user-supplied TypeScript that runs in Zavu Cloud and reacts to
|
|
306
|
-
* messaging events or HTTP requests.
|
|
307
|
-
*/
|
|
308
|
-
function: FunctionRetrieveResponse.Function;
|
|
195
|
+
export type Function = T.ZavuFunction;
|
|
309
196
|
}
|
|
310
197
|
|
|
198
|
+
export type FunctionRetrieveResponse = T.ZavuFunctionResponse;
|
|
311
199
|
export namespace FunctionRetrieveResponse {
|
|
312
|
-
|
|
313
|
-
* A Zavu Function — user-supplied TypeScript that runs in Zavu Cloud and reacts to
|
|
314
|
-
* messaging events or HTTP requests.
|
|
315
|
-
*/
|
|
316
|
-
export interface Function {
|
|
317
|
-
id: string;
|
|
318
|
-
|
|
319
|
-
createdAt: string;
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* npm dependencies installed in the function bundle. Keys are package names,
|
|
323
|
-
* values are semver ranges.
|
|
324
|
-
*/
|
|
325
|
-
dependencies: { [key: string]: string };
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* Whether the function can be invoked over HTTPS via its public URL.
|
|
329
|
-
*/
|
|
330
|
-
httpEnabled: boolean;
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* Memory allocation in MB.
|
|
334
|
-
*/
|
|
335
|
-
memoryMb: number;
|
|
336
|
-
|
|
337
|
-
name: string;
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* Runtime the function is deployed on.
|
|
341
|
-
*/
|
|
342
|
-
runtime: 'nodejs24';
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* URL-safe identifier, unique per project.
|
|
346
|
-
*/
|
|
347
|
-
slug: string;
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* Lifecycle status of a Zavu Function.
|
|
351
|
-
*/
|
|
352
|
-
status: 'draft' | 'bundling' | 'deploying' | 'active' | 'failed' | 'disabled';
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* Per-invocation timeout in seconds.
|
|
356
|
-
*/
|
|
357
|
-
timeoutSec: number;
|
|
358
|
-
|
|
359
|
-
updatedAt: string;
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* ID of the deployment currently serving traffic.
|
|
363
|
-
*/
|
|
364
|
-
activeDeploymentId?: string | null;
|
|
365
|
-
|
|
366
|
-
description?: string | null;
|
|
367
|
-
|
|
368
|
-
/**
|
|
369
|
-
* HTTPS endpoint, present only while httpEnabled is true. Null otherwise,
|
|
370
|
-
* including for a function that was previously exposed — the stored URL stops
|
|
371
|
-
* serving the moment HTTP is turned off, so it is never returned.
|
|
372
|
-
*/
|
|
373
|
-
publicUrl?: string | null;
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
export interface FunctionUpdateResponse {
|
|
378
|
-
/**
|
|
379
|
-
* A Zavu Function — user-supplied TypeScript that runs in Zavu Cloud and reacts to
|
|
380
|
-
* messaging events or HTTP requests.
|
|
381
|
-
*/
|
|
382
|
-
function: FunctionUpdateResponse.Function;
|
|
200
|
+
export type Function = T.ZavuFunction;
|
|
383
201
|
}
|
|
384
202
|
|
|
203
|
+
export type FunctionUpdateResponse = T.ZavuFunctionResponse;
|
|
385
204
|
export namespace FunctionUpdateResponse {
|
|
386
|
-
|
|
387
|
-
* A Zavu Function — user-supplied TypeScript that runs in Zavu Cloud and reacts to
|
|
388
|
-
* messaging events or HTTP requests.
|
|
389
|
-
*/
|
|
390
|
-
export interface Function {
|
|
391
|
-
id: string;
|
|
392
|
-
|
|
393
|
-
createdAt: string;
|
|
394
|
-
|
|
395
|
-
/**
|
|
396
|
-
* npm dependencies installed in the function bundle. Keys are package names,
|
|
397
|
-
* values are semver ranges.
|
|
398
|
-
*/
|
|
399
|
-
dependencies: { [key: string]: string };
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* Whether the function can be invoked over HTTPS via its public URL.
|
|
403
|
-
*/
|
|
404
|
-
httpEnabled: boolean;
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
* Memory allocation in MB.
|
|
408
|
-
*/
|
|
409
|
-
memoryMb: number;
|
|
410
|
-
|
|
411
|
-
name: string;
|
|
412
|
-
|
|
413
|
-
/**
|
|
414
|
-
* Runtime the function is deployed on.
|
|
415
|
-
*/
|
|
416
|
-
runtime: 'nodejs24';
|
|
417
|
-
|
|
418
|
-
/**
|
|
419
|
-
* URL-safe identifier, unique per project.
|
|
420
|
-
*/
|
|
421
|
-
slug: string;
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* Lifecycle status of a Zavu Function.
|
|
425
|
-
*/
|
|
426
|
-
status: 'draft' | 'bundling' | 'deploying' | 'active' | 'failed' | 'disabled';
|
|
427
|
-
|
|
428
|
-
/**
|
|
429
|
-
* Per-invocation timeout in seconds.
|
|
430
|
-
*/
|
|
431
|
-
timeoutSec: number;
|
|
432
|
-
|
|
433
|
-
updatedAt: string;
|
|
434
|
-
|
|
435
|
-
/**
|
|
436
|
-
* ID of the deployment currently serving traffic.
|
|
437
|
-
*/
|
|
438
|
-
activeDeploymentId?: string | null;
|
|
439
|
-
|
|
440
|
-
description?: string | null;
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* HTTPS endpoint, present only while httpEnabled is true. Null otherwise,
|
|
444
|
-
* including for a function that was previously exposed — the stored URL stops
|
|
445
|
-
* serving the moment HTTP is turned off, so it is never returned.
|
|
446
|
-
*/
|
|
447
|
-
publicUrl?: string | null;
|
|
448
|
-
}
|
|
205
|
+
export type Function = T.ZavuFunction;
|
|
449
206
|
}
|
|
450
207
|
|
|
451
|
-
export
|
|
452
|
-
deleted: boolean;
|
|
453
|
-
|
|
454
|
-
name?: string;
|
|
455
|
-
|
|
456
|
-
slug?: string;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
export interface FunctionDeployResponse {
|
|
460
|
-
deployment: FunctionDeployResponse.Deployment;
|
|
461
|
-
}
|
|
208
|
+
export type FunctionDeleteResponse = T.DeleteFunctionResponse;
|
|
462
209
|
|
|
210
|
+
export type FunctionDeployResponse = T.FunctionDeploymentResponse;
|
|
463
211
|
export namespace FunctionDeployResponse {
|
|
464
|
-
export
|
|
465
|
-
id: string;
|
|
466
|
-
|
|
467
|
-
createdAt: string;
|
|
468
|
-
|
|
469
|
-
functionId: string;
|
|
470
|
-
|
|
471
|
-
/**
|
|
472
|
-
* Stage of a function deployment.
|
|
473
|
-
*/
|
|
474
|
-
status: 'pending' | 'bundling' | 'uploading' | 'publishing' | 'active' | 'failed' | 'superseded';
|
|
475
|
-
|
|
476
|
-
/**
|
|
477
|
-
* Monotonically increasing deployment version, starting at 1.
|
|
478
|
-
*/
|
|
479
|
-
version: number;
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* What the build printed: dependency installation, the bundler's output, and the
|
|
483
|
-
* compiler's message when it failed. Returned when fetching a single deployment,
|
|
484
|
-
* omitted from the list. Read this first when a deploy fails — `errorMessage` is
|
|
485
|
-
* often the outer wrapper's summary, and the line that names the broken import or
|
|
486
|
-
* the syntax error is here.
|
|
487
|
-
*/
|
|
488
|
-
buildLogs?: string | null;
|
|
489
|
-
|
|
490
|
-
/**
|
|
491
|
-
* Size of the built bundle in bytes. Null until the build finishes.
|
|
492
|
-
*/
|
|
493
|
-
bundleBytes?: number | null;
|
|
494
|
-
|
|
495
|
-
deployedAt?: string | null;
|
|
496
|
-
|
|
497
|
-
/**
|
|
498
|
-
* Failure reason when status is 'failed'.
|
|
499
|
-
*/
|
|
500
|
-
errorMessage?: string | null;
|
|
501
|
-
|
|
502
|
-
/**
|
|
503
|
-
* Total size of the deployed source tree in bytes.
|
|
504
|
-
*/
|
|
505
|
-
sourceCodeBytes?: number | null;
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
export interface FunctionGetDeploymentResponse {
|
|
510
|
-
deployment: FunctionGetDeploymentResponse.Deployment;
|
|
212
|
+
export type Deployment = T.FunctionDeployment;
|
|
511
213
|
}
|
|
512
214
|
|
|
215
|
+
export type FunctionGetDeploymentResponse = T.FunctionDeploymentResponse;
|
|
513
216
|
export namespace FunctionGetDeploymentResponse {
|
|
514
|
-
export
|
|
515
|
-
id: string;
|
|
516
|
-
|
|
517
|
-
createdAt: string;
|
|
518
|
-
|
|
519
|
-
functionId: string;
|
|
520
|
-
|
|
521
|
-
/**
|
|
522
|
-
* Stage of a function deployment.
|
|
523
|
-
*/
|
|
524
|
-
status: 'pending' | 'bundling' | 'uploading' | 'publishing' | 'active' | 'failed' | 'superseded';
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* Monotonically increasing deployment version, starting at 1.
|
|
528
|
-
*/
|
|
529
|
-
version: number;
|
|
530
|
-
|
|
531
|
-
/**
|
|
532
|
-
* What the build printed: dependency installation, the bundler's output, and the
|
|
533
|
-
* compiler's message when it failed. Returned when fetching a single deployment,
|
|
534
|
-
* omitted from the list. Read this first when a deploy fails — `errorMessage` is
|
|
535
|
-
* often the outer wrapper's summary, and the line that names the broken import or
|
|
536
|
-
* the syntax error is here.
|
|
537
|
-
*/
|
|
538
|
-
buildLogs?: string | null;
|
|
539
|
-
|
|
540
|
-
/**
|
|
541
|
-
* Size of the built bundle in bytes. Null until the build finishes.
|
|
542
|
-
*/
|
|
543
|
-
bundleBytes?: number | null;
|
|
544
|
-
|
|
545
|
-
deployedAt?: string | null;
|
|
546
|
-
|
|
547
|
-
/**
|
|
548
|
-
* Failure reason when status is 'failed'.
|
|
549
|
-
*/
|
|
550
|
-
errorMessage?: string | null;
|
|
551
|
-
|
|
552
|
-
/**
|
|
553
|
-
* Total size of the deployed source tree in bytes.
|
|
554
|
-
*/
|
|
555
|
-
sourceCodeBytes?: number | null;
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
export interface FunctionListDeploymentsResponse {
|
|
560
|
-
deployments: Array<FunctionListDeploymentsResponse.Deployment>;
|
|
217
|
+
export type Deployment = T.FunctionDeployment;
|
|
561
218
|
}
|
|
562
219
|
|
|
220
|
+
export type FunctionListDeploymentsResponse = T.ListFunctionDeploymentsResponse;
|
|
563
221
|
export namespace FunctionListDeploymentsResponse {
|
|
564
|
-
export
|
|
565
|
-
id?: string;
|
|
566
|
-
|
|
567
|
-
bundleSizeBytes?: number | null;
|
|
568
|
-
|
|
569
|
-
createdAt?: string;
|
|
570
|
-
|
|
571
|
-
deployedAt?: string | null;
|
|
572
|
-
|
|
573
|
-
errorMessage?: string | null;
|
|
574
|
-
|
|
575
|
-
isActive?: boolean;
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* Stage of a function deployment.
|
|
579
|
-
*/
|
|
580
|
-
status?: 'pending' | 'bundling' | 'uploading' | 'publishing' | 'active' | 'failed' | 'superseded';
|
|
581
|
-
|
|
582
|
-
version?: number;
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
export interface FunctionListEventTypesResponse {
|
|
587
|
-
events: Array<string>;
|
|
222
|
+
export type Deployment = T.ListFunctionDeploymentsResponseDeploymentsItem;
|
|
588
223
|
}
|
|
589
224
|
|
|
590
|
-
export
|
|
591
|
-
deployment: FunctionRollbackDeploymentResponse.Deployment;
|
|
592
|
-
|
|
593
|
-
/**
|
|
594
|
-
* The draft that was replaced, so a UI can offer to restore it.
|
|
595
|
-
*/
|
|
596
|
-
previousDraft?: unknown | null;
|
|
597
|
-
|
|
598
|
-
rolledBackToVersion?: number;
|
|
599
|
-
}
|
|
225
|
+
export type FunctionListEventTypesResponse = T.ListFunctionEventTypesResponse;
|
|
600
226
|
|
|
227
|
+
export type FunctionRollbackDeploymentResponse = T.RollbackFunctionResponse;
|
|
601
228
|
export namespace FunctionRollbackDeploymentResponse {
|
|
602
|
-
export
|
|
603
|
-
id: string;
|
|
604
|
-
|
|
605
|
-
createdAt: string;
|
|
606
|
-
|
|
607
|
-
functionId: string;
|
|
608
|
-
|
|
609
|
-
/**
|
|
610
|
-
* Stage of a function deployment.
|
|
611
|
-
*/
|
|
612
|
-
status: 'pending' | 'bundling' | 'uploading' | 'publishing' | 'active' | 'failed' | 'superseded';
|
|
613
|
-
|
|
614
|
-
/**
|
|
615
|
-
* Monotonically increasing deployment version, starting at 1.
|
|
616
|
-
*/
|
|
617
|
-
version: number;
|
|
618
|
-
|
|
619
|
-
/**
|
|
620
|
-
* What the build printed: dependency installation, the bundler's output, and the
|
|
621
|
-
* compiler's message when it failed. Returned when fetching a single deployment,
|
|
622
|
-
* omitted from the list. Read this first when a deploy fails — `errorMessage` is
|
|
623
|
-
* often the outer wrapper's summary, and the line that names the broken import or
|
|
624
|
-
* the syntax error is here.
|
|
625
|
-
*/
|
|
626
|
-
buildLogs?: string | null;
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* Size of the built bundle in bytes. Null until the build finishes.
|
|
630
|
-
*/
|
|
631
|
-
bundleBytes?: number | null;
|
|
632
|
-
|
|
633
|
-
deployedAt?: string | null;
|
|
634
|
-
|
|
635
|
-
/**
|
|
636
|
-
* Failure reason when status is 'failed'.
|
|
637
|
-
*/
|
|
638
|
-
errorMessage?: string | null;
|
|
639
|
-
|
|
640
|
-
/**
|
|
641
|
-
* Total size of the deployed source tree in bytes.
|
|
642
|
-
*/
|
|
643
|
-
sourceCodeBytes?: number | null;
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
export interface FunctionTailLogsResponse {
|
|
648
|
-
events: Array<FunctionTailLogsResponse.Event>;
|
|
649
|
-
|
|
650
|
-
/**
|
|
651
|
-
* Pass to the next request to fetch the following page of logs.
|
|
652
|
-
*/
|
|
653
|
-
nextToken?: string | null;
|
|
229
|
+
export type Deployment = T.FunctionDeployment;
|
|
654
230
|
}
|
|
655
231
|
|
|
232
|
+
export type FunctionTailLogsResponse = T.FunctionLogsResponse;
|
|
656
233
|
export namespace FunctionTailLogsResponse {
|
|
657
|
-
export
|
|
658
|
-
message: string;
|
|
659
|
-
|
|
660
|
-
timestamp: string;
|
|
661
|
-
}
|
|
234
|
+
export type Event = T.FunctionLogEvent;
|
|
662
235
|
}
|
|
663
236
|
|
|
664
|
-
export
|
|
665
|
-
name: string;
|
|
666
|
-
|
|
667
|
-
/**
|
|
668
|
-
* URL-safe identifier (lowercase, digits, hyphens). Must be unique per project.
|
|
669
|
-
*/
|
|
670
|
-
slug: string;
|
|
671
|
-
|
|
672
|
-
/**
|
|
673
|
-
* npm dependencies. Keys are package names, values are semver ranges.
|
|
674
|
-
*/
|
|
675
|
-
dependencies?: { [key: string]: string };
|
|
676
|
-
|
|
677
|
-
description?: string;
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
* Which file in `files` is the entry point. Defaults to `index.ts`.
|
|
681
|
-
*/
|
|
682
|
-
entrypoint?: string;
|
|
683
|
-
|
|
684
|
-
/**
|
|
685
|
-
* The project's source files, keyed by path relative to the project root (e.g.
|
|
686
|
-
* `index.ts`, `lib/orders.ts`). Imports between them are resolved when the
|
|
687
|
-
* function is built, so a function can be split across as many files as it needs.
|
|
688
|
-
*
|
|
689
|
-
* Paths must be relative and use forward slashes; `..`, `node_modules/` and
|
|
690
|
-
* `package.json` are rejected. npm packages are not uploaded here — declare them
|
|
691
|
-
* under `dependencies` and Zavu installs them. Limits: 200 files and 900,000 bytes
|
|
692
|
-
* for the whole tree.
|
|
693
|
-
*/
|
|
694
|
-
files?: { [key: string]: string };
|
|
237
|
+
export type FunctionCreateParams = T.FunctionsCreateParams;
|
|
695
238
|
|
|
696
|
-
|
|
697
|
-
* Whether to expose a public HTTPS URL for this function.
|
|
698
|
-
*/
|
|
699
|
-
httpEnabled?: boolean;
|
|
239
|
+
export type FunctionUpdateParams = T.FunctionsUpdateParams;
|
|
700
240
|
|
|
701
|
-
|
|
241
|
+
export type FunctionDeployParams = T.FunctionsDeployParams;
|
|
702
242
|
|
|
703
|
-
|
|
704
|
-
* Runtime the function is deployed on.
|
|
705
|
-
*/
|
|
706
|
-
runtime?: 'nodejs24';
|
|
243
|
+
export type FunctionListDeploymentsParams = T.FunctionsListDeploymentsParams;
|
|
707
244
|
|
|
708
|
-
|
|
709
|
-
* Shortcut for a single-file function: exactly equivalent to sending `files` with
|
|
710
|
-
* one entry named after `entrypoint` (`index.ts` by default). Fully supported —
|
|
711
|
-
* use whichever fits. If both are sent, `files` wins.
|
|
712
|
-
*/
|
|
713
|
-
sourceCode?: string;
|
|
245
|
+
export type FunctionRollbackDeploymentParams = T.FunctionsRollbackDeploymentParams;
|
|
714
246
|
|
|
715
|
-
|
|
716
|
-
* Per-invocation timeout in seconds. Event and cron invocations are asynchronous,
|
|
717
|
-
* so a long timeout only bounds cost; a tool called during a live conversation
|
|
718
|
-
* holds up the reply, and a function exposed over HTTP is additionally bounded by
|
|
719
|
-
* the platform's HTTP response limit.
|
|
720
|
-
*/
|
|
721
|
-
timeoutSec?: number;
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
export interface FunctionUpdateParams {
|
|
725
|
-
/**
|
|
726
|
-
* New dependency map (replaces existing dependencies).
|
|
727
|
-
*/
|
|
728
|
-
dependencies?: { [key: string]: string };
|
|
729
|
-
|
|
730
|
-
/**
|
|
731
|
-
* Which file in `files` is the entry point. Defaults to `index.ts`.
|
|
732
|
-
*/
|
|
733
|
-
entrypoint?: string;
|
|
734
|
-
|
|
735
|
-
/**
|
|
736
|
-
* The project's source files, keyed by path relative to the project root (e.g.
|
|
737
|
-
* `index.ts`, `lib/orders.ts`). Imports between them are resolved when the
|
|
738
|
-
* function is built, so a function can be split across as many files as it needs.
|
|
739
|
-
*
|
|
740
|
-
* Paths must be relative and use forward slashes; `..`, `node_modules/` and
|
|
741
|
-
* `package.json` are rejected. npm packages are not uploaded here — declare them
|
|
742
|
-
* under `dependencies` and Zavu installs them. Limits: 200 files and 900,000 bytes
|
|
743
|
-
* for the whole tree.
|
|
744
|
-
*/
|
|
745
|
-
files?: { [key: string]: string };
|
|
746
|
-
|
|
747
|
-
/**
|
|
748
|
-
* Expose the function on its public HTTPS URL, or take it down. Applies to the
|
|
749
|
-
* already-deployed function without redeploying; the URL is returned as
|
|
750
|
-
* `publicUrl`.
|
|
751
|
-
*/
|
|
752
|
-
httpEnabled?: boolean;
|
|
753
|
-
|
|
754
|
-
/**
|
|
755
|
-
* Shortcut for a single-file function: exactly equivalent to sending `files` with
|
|
756
|
-
* one entry named after `entrypoint` (`index.ts` by default). Fully supported —
|
|
757
|
-
* use whichever fits. If both are sent, `files` wins.
|
|
758
|
-
*/
|
|
759
|
-
sourceCode?: string;
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
export interface FunctionDeployParams {
|
|
763
|
-
/**
|
|
764
|
-
* New dependency map (replaces existing dependencies).
|
|
765
|
-
*/
|
|
766
|
-
dependencies?: { [key: string]: string };
|
|
767
|
-
|
|
768
|
-
/**
|
|
769
|
-
* Which file in `files` is the entry point. Defaults to `index.ts`.
|
|
770
|
-
*/
|
|
771
|
-
entrypoint?: string;
|
|
772
|
-
|
|
773
|
-
/**
|
|
774
|
-
* The project's source files, keyed by path relative to the project root (e.g.
|
|
775
|
-
* `index.ts`, `lib/orders.ts`). Imports between them are resolved when the
|
|
776
|
-
* function is built, so a function can be split across as many files as it needs.
|
|
777
|
-
*
|
|
778
|
-
* Paths must be relative and use forward slashes; `..`, `node_modules/` and
|
|
779
|
-
* `package.json` are rejected. npm packages are not uploaded here — declare them
|
|
780
|
-
* under `dependencies` and Zavu installs them. Limits: 200 files and 900,000 bytes
|
|
781
|
-
* for the whole tree.
|
|
782
|
-
*/
|
|
783
|
-
files?: { [key: string]: string };
|
|
784
|
-
|
|
785
|
-
/**
|
|
786
|
-
* Shortcut for a single-file function: exactly equivalent to sending `files` with
|
|
787
|
-
* one entry named after `entrypoint` (`index.ts` by default). Fully supported —
|
|
788
|
-
* use whichever fits. If both are sent, `files` wins.
|
|
789
|
-
*/
|
|
790
|
-
sourceCode?: string;
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
export interface FunctionListDeploymentsParams {
|
|
794
|
-
limit?: number;
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
export interface FunctionRollbackDeploymentParams {
|
|
798
|
-
/**
|
|
799
|
-
* ID of the deployment to roll back to.
|
|
800
|
-
*/
|
|
801
|
-
deploymentId: string;
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
export interface FunctionTailLogsParams {
|
|
805
|
-
/**
|
|
806
|
-
* End of the log window in Unix epoch milliseconds.
|
|
807
|
-
*/
|
|
808
|
-
endTime?: number;
|
|
809
|
-
|
|
810
|
-
filterPattern?: string;
|
|
811
|
-
|
|
812
|
-
limit?: number;
|
|
813
|
-
|
|
814
|
-
nextToken?: string;
|
|
815
|
-
|
|
816
|
-
/**
|
|
817
|
-
* Start of the log window in Unix epoch milliseconds.
|
|
818
|
-
*/
|
|
819
|
-
startTime?: number;
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
Functions.Secrets = Secrets;
|
|
823
|
-
Functions.Triggers = Triggers;
|
|
824
|
-
Functions.GitLink = GitLink;
|
|
247
|
+
export type FunctionTailLogsParams = T.FunctionsTailLogsParams;
|
|
825
248
|
|
|
826
249
|
export declare namespace Functions {
|
|
827
250
|
export {
|
|
@@ -841,26 +264,17 @@ export declare namespace Functions {
|
|
|
841
264
|
type FunctionListDeploymentsParams as FunctionListDeploymentsParams,
|
|
842
265
|
type FunctionRollbackDeploymentParams as FunctionRollbackDeploymentParams,
|
|
843
266
|
type FunctionTailLogsParams as FunctionTailLogsParams,
|
|
844
|
-
};
|
|
845
|
-
|
|
846
|
-
export {
|
|
847
267
|
Secrets as Secrets,
|
|
848
268
|
type SecretListResponse as SecretListResponse,
|
|
849
269
|
type SecretSetResponse as SecretSetResponse,
|
|
850
270
|
type SecretSetParams as SecretSetParams,
|
|
851
271
|
type SecretUnsetParams as SecretUnsetParams,
|
|
852
|
-
};
|
|
853
|
-
|
|
854
|
-
export {
|
|
855
272
|
Triggers as Triggers,
|
|
856
273
|
type TriggerCreateResponse as TriggerCreateResponse,
|
|
857
274
|
type TriggerUpdateResponse as TriggerUpdateResponse,
|
|
858
275
|
type TriggerListResponse as TriggerListResponse,
|
|
859
276
|
type TriggerCreateParams as TriggerCreateParams,
|
|
860
277
|
type TriggerUpdateParams as TriggerUpdateParams,
|
|
861
|
-
};
|
|
862
|
-
|
|
863
|
-
export {
|
|
864
278
|
GitLink as GitLink,
|
|
865
279
|
type GitLinkRetrieveResponse as GitLinkRetrieveResponse,
|
|
866
280
|
type GitLinkUpdateResponse as GitLinkUpdateResponse,
|