@knocklabs/node 0.6.19 → 1.1.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 +48 -7
- package/LICENSE +201 -21
- package/README.md +338 -129
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +223 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +223 -0
- package/client.d.ts.map +1 -0
- package/client.js +485 -0
- package/client.js.map +1 -0
- package/client.mjs +481 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +111 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +111 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +173 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +164 -0
- package/core/pagination.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +7 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +7 -0
- package/index.d.ts.map +1 -0
- package/index.js +32 -0
- package/index.js.map +1 -0
- package/index.mjs +8 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +6 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +6 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +11 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +8 -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 +279 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +276 -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/{dist/src/common/interfaces.js → internal/qs/types.js} +1 -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 +14 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +14 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +229 -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 +32 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +32 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +28 -0
- package/internal/shim-types.d.ts +28 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +67 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +67 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +58 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +53 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +16 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +16 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +109 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +92 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/lib/index.d.mts +6 -0
- package/lib/index.d.mts.map +1 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -0
- package/lib/index.mjs +6 -0
- package/lib/index.mjs.map +1 -0
- package/lib/tokenSigner.d.mts +46 -0
- package/lib/tokenSigner.d.mts.map +1 -0
- package/lib/tokenSigner.d.ts +46 -0
- package/lib/tokenSigner.d.ts.map +1 -0
- package/lib/tokenSigner.js +131 -0
- package/lib/tokenSigner.js.map +1 -0
- package/lib/tokenSigner.mjs +125 -0
- package/lib/tokenSigner.mjs.map +1 -0
- package/lib/userTokens.d.mts +32 -0
- package/lib/userTokens.d.mts.map +1 -0
- package/{dist/src/common → lib}/userTokens.d.ts +7 -3
- package/lib/userTokens.d.ts.map +1 -0
- package/{dist/src/common → lib}/userTokens.js +4 -0
- package/lib/userTokens.js.map +1 -0
- package/lib/userTokens.mjs +12 -0
- package/lib/userTokens.mjs.map +1 -0
- package/package.json +155 -38
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/audiences.d.mts +160 -0
- package/resources/audiences.d.mts.map +1 -0
- package/resources/audiences.d.ts +160 -0
- package/resources/audiences.d.ts.map +1 -0
- package/resources/audiences.js +53 -0
- package/resources/audiences.js.map +1 -0
- package/resources/audiences.mjs +49 -0
- package/resources/audiences.mjs.map +1 -0
- package/resources/bulk-operations.d.mts +97 -0
- package/resources/bulk-operations.d.mts.map +1 -0
- package/resources/bulk-operations.d.ts +97 -0
- package/resources/bulk-operations.d.ts.map +1 -0
- package/resources/bulk-operations.js +23 -0
- package/resources/bulk-operations.js.map +1 -0
- package/resources/bulk-operations.mjs +19 -0
- package/resources/bulk-operations.mjs.map +1 -0
- package/resources/channels/bulk.d.mts +82 -0
- package/resources/channels/bulk.d.mts.map +1 -0
- package/resources/channels/bulk.d.ts +82 -0
- package/resources/channels/bulk.d.ts.map +1 -0
- package/resources/channels/bulk.js +40 -0
- package/resources/channels/bulk.js.map +1 -0
- package/resources/channels/bulk.mjs +36 -0
- package/resources/channels/bulk.mjs.map +1 -0
- package/resources/channels/channels.d.mts +10 -0
- package/resources/channels/channels.d.mts.map +1 -0
- package/resources/channels/channels.d.ts +10 -0
- package/resources/channels/channels.d.ts.map +1 -0
- package/resources/channels/channels.js +17 -0
- package/resources/channels/channels.js.map +1 -0
- package/resources/channels/channels.mjs +12 -0
- package/resources/channels/channels.mjs.map +1 -0
- package/resources/channels/index.d.mts +3 -0
- package/resources/channels/index.d.mts.map +1 -0
- package/resources/channels/index.d.ts +3 -0
- package/resources/channels/index.d.ts.map +1 -0
- package/resources/channels/index.js +9 -0
- package/resources/channels/index.js.map +1 -0
- package/resources/channels/index.mjs +4 -0
- package/resources/channels/index.mjs.map +1 -0
- package/resources/channels.d.mts +2 -0
- package/resources/channels.d.mts.map +1 -0
- package/resources/channels.d.ts +2 -0
- package/resources/channels.d.ts.map +1 -0
- package/resources/channels.js +6 -0
- package/resources/channels.js.map +1 -0
- package/resources/channels.mjs +3 -0
- package/resources/channels.mjs.map +1 -0
- package/resources/index.d.mts +14 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +14 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +31 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +15 -0
- package/resources/index.mjs.map +1 -0
- package/resources/integrations/census.d.mts +41 -0
- package/resources/integrations/census.d.mts.map +1 -0
- package/resources/integrations/census.d.ts +41 -0
- package/resources/integrations/census.d.ts.map +1 -0
- package/resources/integrations/census.js +15 -0
- package/resources/integrations/census.js.map +1 -0
- package/resources/integrations/census.mjs +11 -0
- package/resources/integrations/census.mjs.map +1 -0
- package/resources/integrations/hightouch.d.mts +41 -0
- package/resources/integrations/hightouch.d.mts.map +1 -0
- package/resources/integrations/hightouch.d.ts +41 -0
- package/resources/integrations/hightouch.d.ts.map +1 -0
- package/resources/integrations/hightouch.js +15 -0
- package/resources/integrations/hightouch.js.map +1 -0
- package/resources/integrations/hightouch.mjs +11 -0
- package/resources/integrations/hightouch.mjs.map +1 -0
- package/resources/integrations/index.d.mts +4 -0
- package/resources/integrations/index.d.mts.map +1 -0
- package/resources/integrations/index.d.ts +4 -0
- package/resources/integrations/index.d.ts.map +1 -0
- package/resources/integrations/index.js +11 -0
- package/resources/integrations/index.js.map +1 -0
- package/resources/integrations/index.mjs +5 -0
- package/resources/integrations/index.mjs.map +1 -0
- package/resources/integrations/integrations.d.mts +14 -0
- package/resources/integrations/integrations.d.mts.map +1 -0
- package/resources/integrations/integrations.d.ts +14 -0
- package/resources/integrations/integrations.d.ts.map +1 -0
- package/resources/integrations/integrations.js +21 -0
- package/resources/integrations/integrations.js.map +1 -0
- package/resources/integrations/integrations.mjs +16 -0
- package/resources/integrations/integrations.mjs.map +1 -0
- package/resources/integrations.d.mts +2 -0
- package/resources/integrations.d.mts.map +1 -0
- package/resources/integrations.d.ts +2 -0
- package/resources/integrations.d.ts.map +1 -0
- package/resources/integrations.js +6 -0
- package/resources/integrations.js.map +1 -0
- package/resources/integrations.mjs +3 -0
- package/resources/integrations.mjs.map +1 -0
- package/resources/messages/activities.d.mts +32 -0
- package/resources/messages/activities.d.mts.map +1 -0
- package/resources/messages/activities.d.ts +32 -0
- package/resources/messages/activities.d.ts.map +1 -0
- package/resources/messages/activities.js +27 -0
- package/resources/messages/activities.js.map +1 -0
- package/resources/messages/activities.mjs +23 -0
- package/resources/messages/activities.mjs.map +1 -0
- package/resources/messages/batch.d.mts +455 -0
- package/resources/messages/batch.d.mts.map +1 -0
- package/resources/messages/batch.d.ts +455 -0
- package/resources/messages/batch.d.ts.map +1 -0
- package/resources/messages/batch.js +147 -0
- package/resources/messages/batch.js.map +1 -0
- package/resources/messages/batch.mjs +143 -0
- package/resources/messages/batch.mjs.map +1 -0
- package/resources/messages/index.d.mts +4 -0
- package/resources/messages/index.d.mts.map +1 -0
- package/resources/messages/index.d.ts +4 -0
- package/resources/messages/index.d.ts.map +1 -0
- package/resources/messages/index.js +11 -0
- package/resources/messages/index.js.map +1 -0
- package/resources/messages/index.mjs +5 -0
- package/resources/messages/index.mjs.map +1 -0
- package/resources/messages/messages.d.mts +778 -0
- package/resources/messages/messages.d.mts.map +1 -0
- package/resources/messages/messages.d.ts +778 -0
- package/resources/messages/messages.d.ts.map +1 -0
- package/resources/messages/messages.js +223 -0
- package/resources/messages/messages.js.map +1 -0
- package/resources/messages/messages.mjs +218 -0
- package/resources/messages/messages.mjs.map +1 -0
- package/resources/messages.d.mts +2 -0
- package/resources/messages.d.mts.map +1 -0
- package/resources/messages.d.ts +2 -0
- package/resources/messages.d.ts.map +1 -0
- package/resources/messages.js +6 -0
- package/resources/messages.js.map +1 -0
- package/resources/messages.mjs +3 -0
- package/resources/messages.mjs.map +1 -0
- package/resources/objects/bulk.d.mts +108 -0
- package/resources/objects/bulk.d.mts.map +1 -0
- package/resources/objects/bulk.d.ts +108 -0
- package/resources/objects/bulk.d.ts.map +1 -0
- package/resources/objects/bulk.js +81 -0
- package/resources/objects/bulk.js.map +1 -0
- package/resources/objects/bulk.mjs +77 -0
- package/resources/objects/bulk.mjs.map +1 -0
- package/resources/objects/index.d.mts +3 -0
- package/resources/objects/index.d.mts.map +1 -0
- package/resources/objects/index.d.ts +3 -0
- package/resources/objects/index.d.ts.map +1 -0
- package/resources/objects/index.js +9 -0
- package/resources/objects/index.js.map +1 -0
- package/resources/objects/index.mjs +4 -0
- package/resources/objects/index.mjs.map +1 -0
- package/resources/objects/objects.d.mts +560 -0
- package/resources/objects/objects.d.mts.map +1 -0
- package/resources/objects/objects.d.ts +560 -0
- package/resources/objects/objects.d.ts.map +1 -0
- package/resources/objects/objects.js +312 -0
- package/resources/objects/objects.js.map +1 -0
- package/resources/objects/objects.mjs +307 -0
- package/resources/objects/objects.mjs.map +1 -0
- package/resources/objects.d.mts +2 -0
- package/resources/objects.d.mts.map +1 -0
- package/resources/objects.d.ts +2 -0
- package/resources/objects.d.ts.map +1 -0
- package/resources/objects.js +6 -0
- package/resources/objects.js.map +1 -0
- package/resources/objects.mjs +3 -0
- package/resources/objects.mjs.map +1 -0
- package/resources/providers/index.d.mts +4 -0
- package/resources/providers/index.d.mts.map +1 -0
- package/resources/providers/index.d.ts +4 -0
- package/resources/providers/index.d.ts.map +1 -0
- package/resources/providers/index.js +11 -0
- package/resources/providers/index.js.map +1 -0
- package/resources/providers/index.mjs +5 -0
- package/resources/providers/index.mjs.map +1 -0
- package/resources/providers/ms-teams.d.mts +223 -0
- package/resources/providers/ms-teams.d.mts.map +1 -0
- package/resources/providers/ms-teams.d.ts +223 -0
- package/resources/providers/ms-teams.d.ts.map +1 -0
- package/resources/providers/ms-teams.js +82 -0
- package/resources/providers/ms-teams.js.map +1 -0
- package/resources/providers/ms-teams.mjs +78 -0
- package/resources/providers/ms-teams.mjs.map +1 -0
- package/resources/providers/providers.d.mts +14 -0
- package/resources/providers/providers.d.mts.map +1 -0
- package/resources/providers/providers.d.ts +14 -0
- package/resources/providers/providers.d.ts.map +1 -0
- package/resources/providers/providers.js +21 -0
- package/resources/providers/providers.js.map +1 -0
- package/resources/providers/providers.mjs +16 -0
- package/resources/providers/providers.mjs.map +1 -0
- package/resources/providers/slack.d.mts +154 -0
- package/resources/providers/slack.d.mts.map +1 -0
- package/resources/providers/slack.d.ts +154 -0
- package/resources/providers/slack.d.ts.map +1 -0
- package/resources/providers/slack.js +60 -0
- package/resources/providers/slack.js.map +1 -0
- package/resources/providers/slack.mjs +56 -0
- package/resources/providers/slack.mjs.map +1 -0
- package/resources/providers.d.mts +2 -0
- package/resources/providers.d.mts.map +1 -0
- package/resources/providers.d.ts +2 -0
- package/resources/providers.d.ts.map +1 -0
- package/resources/providers.js +6 -0
- package/resources/providers.js.map +1 -0
- package/resources/providers.mjs +3 -0
- package/resources/providers.mjs.map +1 -0
- package/resources/recipients/channel-data.d.mts +205 -0
- package/resources/recipients/channel-data.d.mts.map +1 -0
- package/resources/recipients/channel-data.d.ts +205 -0
- package/resources/recipients/channel-data.d.ts.map +1 -0
- package/resources/recipients/channel-data.js +9 -0
- package/resources/recipients/channel-data.js.map +1 -0
- package/resources/recipients/channel-data.mjs +5 -0
- package/resources/recipients/channel-data.mjs.map +1 -0
- package/resources/recipients/index.d.mts +5 -0
- package/resources/recipients/index.d.mts.map +1 -0
- package/resources/recipients/index.d.ts +5 -0
- package/resources/recipients/index.d.ts.map +1 -0
- package/resources/recipients/index.js +13 -0
- package/resources/recipients/index.js.map +1 -0
- package/resources/recipients/index.mjs +6 -0
- package/resources/recipients/index.mjs.map +1 -0
- package/resources/recipients/preferences.d.mts +155 -0
- package/resources/recipients/preferences.d.mts.map +1 -0
- package/resources/recipients/preferences.d.ts +155 -0
- package/resources/recipients/preferences.d.ts.map +1 -0
- package/resources/recipients/preferences.js +9 -0
- package/resources/recipients/preferences.js.map +1 -0
- package/resources/recipients/preferences.mjs +5 -0
- package/resources/recipients/preferences.mjs.map +1 -0
- package/resources/recipients/recipients.d.mts +51 -0
- package/resources/recipients/recipients.d.mts.map +1 -0
- package/resources/recipients/recipients.d.ts +51 -0
- package/resources/recipients/recipients.d.ts.map +1 -0
- package/resources/recipients/recipients.js +23 -0
- package/resources/recipients/recipients.js.map +1 -0
- package/resources/recipients/recipients.mjs +18 -0
- package/resources/recipients/recipients.mjs.map +1 -0
- package/resources/recipients/subscriptions.d.mts +40 -0
- package/resources/recipients/subscriptions.d.mts.map +1 -0
- package/resources/recipients/subscriptions.d.ts +40 -0
- package/resources/recipients/subscriptions.d.ts.map +1 -0
- package/resources/recipients/subscriptions.js +9 -0
- package/resources/recipients/subscriptions.js.map +1 -0
- package/resources/recipients/subscriptions.mjs +5 -0
- package/resources/recipients/subscriptions.mjs.map +1 -0
- package/resources/recipients.d.mts +2 -0
- package/resources/recipients.d.mts.map +1 -0
- package/resources/recipients.d.ts +2 -0
- package/resources/recipients.d.ts.map +1 -0
- package/resources/recipients.js +6 -0
- package/resources/recipients.js.map +1 -0
- package/resources/recipients.mjs +3 -0
- package/resources/recipients.mjs.map +1 -0
- package/resources/schedules/bulk.d.mts +98 -0
- package/resources/schedules/bulk.d.mts.map +1 -0
- package/resources/schedules/bulk.d.ts +98 -0
- package/resources/schedules/bulk.d.ts.map +1 -0
- package/resources/schedules/bulk.js +47 -0
- package/resources/schedules/bulk.js.map +1 -0
- package/resources/schedules/bulk.mjs +43 -0
- package/resources/schedules/bulk.mjs.map +1 -0
- package/resources/schedules/index.d.mts +3 -0
- package/resources/schedules/index.d.mts.map +1 -0
- package/resources/schedules/index.d.ts +3 -0
- package/resources/schedules/index.d.ts.map +1 -0
- package/resources/schedules/index.js +9 -0
- package/resources/schedules/index.js.map +1 -0
- package/resources/schedules/index.mjs +4 -0
- package/resources/schedules/index.mjs.map +1 -0
- package/resources/schedules/schedules.d.mts +299 -0
- package/resources/schedules/schedules.d.mts.map +1 -0
- package/resources/schedules/schedules.d.ts +299 -0
- package/resources/schedules/schedules.d.ts.map +1 -0
- package/resources/schedules/schedules.js +126 -0
- package/resources/schedules/schedules.js.map +1 -0
- package/resources/schedules/schedules.mjs +121 -0
- package/resources/schedules/schedules.mjs.map +1 -0
- package/resources/schedules.d.mts +2 -0
- package/resources/schedules.d.mts.map +1 -0
- package/resources/schedules.d.ts +2 -0
- package/resources/schedules.d.ts.map +1 -0
- package/resources/schedules.js +6 -0
- package/resources/schedules.js.map +1 -0
- package/resources/schedules.mjs +3 -0
- package/resources/schedules.mjs.map +1 -0
- package/resources/shared.d.mts +45 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +45 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +9 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +5 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/tenants/bulk.d.mts +45 -0
- package/resources/tenants/bulk.d.mts.map +1 -0
- package/resources/tenants/bulk.d.ts +45 -0
- package/resources/tenants/bulk.d.ts.map +1 -0
- package/resources/tenants/bulk.js +36 -0
- package/resources/tenants/bulk.js.map +1 -0
- package/resources/tenants/bulk.mjs +32 -0
- package/resources/tenants/bulk.mjs.map +1 -0
- package/resources/tenants/index.d.mts +3 -0
- package/resources/tenants/index.d.mts.map +1 -0
- package/resources/tenants/index.d.ts +3 -0
- package/resources/tenants/index.d.ts.map +1 -0
- package/resources/tenants/index.js +9 -0
- package/resources/tenants/index.js.map +1 -0
- package/resources/tenants/index.mjs +4 -0
- package/resources/tenants/index.mjs.map +1 -0
- package/resources/tenants/tenants.d.mts +266 -0
- package/resources/tenants/tenants.d.mts.map +1 -0
- package/resources/tenants/tenants.d.ts +266 -0
- package/resources/tenants/tenants.d.ts.map +1 -0
- package/resources/tenants/tenants.js +77 -0
- package/resources/tenants/tenants.js.map +1 -0
- package/resources/tenants/tenants.mjs +72 -0
- package/resources/tenants/tenants.mjs.map +1 -0
- package/resources/tenants.d.mts +2 -0
- package/resources/tenants.d.mts.map +1 -0
- package/resources/tenants.d.ts +2 -0
- package/resources/tenants.d.ts.map +1 -0
- package/resources/tenants.js +6 -0
- package/resources/tenants.js.map +1 -0
- package/resources/tenants.mjs +3 -0
- package/resources/tenants.mjs.map +1 -0
- package/resources/users/bulk.d.mts +92 -0
- package/resources/users/bulk.d.mts.map +1 -0
- package/resources/users/bulk.d.ts +92 -0
- package/resources/users/bulk.d.ts.map +1 -0
- package/resources/users/bulk.js +73 -0
- package/resources/users/bulk.js.map +1 -0
- package/resources/users/bulk.mjs +69 -0
- package/resources/users/bulk.mjs.map +1 -0
- package/resources/users/feeds.d.mts +248 -0
- package/resources/users/feeds.d.mts.map +1 -0
- package/resources/users/feeds.d.ts +248 -0
- package/resources/users/feeds.d.ts.map +1 -0
- package/resources/users/feeds.js +43 -0
- package/resources/users/feeds.js.map +1 -0
- package/resources/users/feeds.mjs +39 -0
- package/resources/users/feeds.mjs.map +1 -0
- package/resources/users/guides.d.mts +293 -0
- package/resources/users/guides.d.mts.map +1 -0
- package/resources/users/guides.d.ts +293 -0
- package/resources/users/guides.d.ts.map +1 -0
- package/resources/users/guides.js +114 -0
- package/resources/users/guides.js.map +1 -0
- package/resources/users/guides.mjs +110 -0
- package/resources/users/guides.mjs.map +1 -0
- package/resources/users/index.d.mts +5 -0
- package/resources/users/index.d.mts.map +1 -0
- package/resources/users/index.d.ts +5 -0
- package/resources/users/index.d.ts.map +1 -0
- package/resources/users/index.js +13 -0
- package/resources/users/index.js.map +1 -0
- package/resources/users/index.mjs +6 -0
- package/resources/users/index.mjs.map +1 -0
- package/resources/users/users.d.mts +585 -0
- package/resources/users/users.d.mts.map +1 -0
- package/resources/users/users.d.ts +585 -0
- package/resources/users/users.d.ts.map +1 -0
- package/resources/users/users.js +262 -0
- package/resources/users/users.js.map +1 -0
- package/resources/users/users.mjs +257 -0
- package/resources/users/users.mjs.map +1 -0
- package/resources/users.d.mts +2 -0
- package/resources/users.d.mts.map +1 -0
- package/resources/users.d.ts +2 -0
- package/resources/users.d.ts.map +1 -0
- package/resources/users.js +6 -0
- package/resources/users.js.map +1 -0
- package/resources/users.mjs +3 -0
- package/resources/users.mjs.map +1 -0
- package/resources/workflows.d.mts +113 -0
- package/resources/workflows.d.mts.map +1 -0
- package/resources/workflows.d.ts +113 -0
- package/resources/workflows.d.ts.map +1 -0
- package/resources/workflows.js +58 -0
- package/resources/workflows.js.map +1 -0
- package/resources/workflows.mjs +54 -0
- package/resources/workflows.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +984 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/pagination.ts +323 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +23 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +9 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +388 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +37 -0
- package/src/internal/shim-types.d.ts +28 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +92 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +63 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +102 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/lib/index.ts +6 -0
- package/src/lib/tokenSigner.ts +170 -0
- package/src/lib/userTokens.ts +38 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/audiences.ts +200 -0
- package/src/resources/bulk-operations.ts +120 -0
- package/src/resources/channels/bulk.ts +128 -0
- package/src/resources/channels/channels.ts +15 -0
- package/src/resources/channels/index.ts +4 -0
- package/src/resources/channels.ts +3 -0
- package/src/resources/index.ts +108 -0
- package/src/resources/integrations/census.ts +58 -0
- package/src/resources/integrations/hightouch.ts +58 -0
- package/src/resources/integrations/index.ts +9 -0
- package/src/resources/integrations/integrations.ts +33 -0
- package/src/resources/integrations.ts +3 -0
- package/src/resources/messages/activities.ts +48 -0
- package/src/resources/messages/batch.ts +575 -0
- package/src/resources/messages/index.ts +39 -0
- package/src/resources/messages/messages.ts +1055 -0
- package/src/resources/messages.ts +3 -0
- package/src/resources/objects/bulk.ts +141 -0
- package/src/resources/objects/index.ts +23 -0
- package/src/resources/objects/objects.ts +794 -0
- package/src/resources/objects.ts +3 -0
- package/src/resources/providers/index.ts +25 -0
- package/src/resources/providers/ms-teams.ts +300 -0
- package/src/resources/providers/providers.ts +61 -0
- package/src/resources/providers/slack.ts +213 -0
- package/src/resources/providers.ts +3 -0
- package/src/resources/recipients/channel-data.ts +255 -0
- package/src/resources/recipients/index.ts +22 -0
- package/src/resources/recipients/preferences.ts +192 -0
- package/src/resources/recipients/recipients.ts +101 -0
- package/src/resources/recipients/subscriptions.ts +49 -0
- package/src/resources/recipients.ts +3 -0
- package/src/resources/schedules/bulk.ts +112 -0
- package/src/resources/schedules/index.ts +16 -0
- package/src/resources/schedules/schedules.ts +369 -0
- package/src/resources/schedules.ts +3 -0
- package/src/resources/shared.ts +72 -0
- package/src/resources/tenants/bulk.ts +56 -0
- package/src/resources/tenants/index.ts +13 -0
- package/src/resources/tenants/tenants.ts +333 -0
- package/src/resources/tenants.ts +3 -0
- package/src/resources/users/bulk.ts +114 -0
- package/src/resources/users/feeds.ts +315 -0
- package/src/resources/users/guides.ts +386 -0
- package/src/resources/users/index.ts +40 -0
- package/src/resources/users/users.ts +823 -0
- package/src/resources/users.ts +3 -0
- package/src/resources/workflows.ts +140 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
- package/dist/package.json +0 -48
- package/dist/src/common/exceptions.d.ts +0 -48
- package/dist/src/common/exceptions.js +0 -78
- package/dist/src/common/fetchClient.d.ts +0 -28
- package/dist/src/common/fetchClient.js +0 -148
- package/dist/src/common/interfaces.d.ts +0 -70
- package/dist/src/index.d.ts +0 -8
- package/dist/src/index.js +0 -26
- package/dist/src/knock.d.ts +0 -57
- package/dist/src/knock.js +0 -241
- package/dist/src/resources/activities/interfaces.d.ts +0 -11
- package/dist/src/resources/activities/interfaces.js +0 -2
- package/dist/src/resources/bulk_operations/index.d.ts +0 -7
- package/dist/src/resources/bulk_operations/index.js +0 -24
- package/dist/src/resources/bulk_operations/interfaces.d.ts +0 -12
- package/dist/src/resources/bulk_operations/interfaces.js +0 -2
- package/dist/src/resources/messages/index.d.ts +0 -16
- package/dist/src/resources/messages/index.js +0 -93
- package/dist/src/resources/messages/interfaces.d.ts +0 -58
- package/dist/src/resources/messages/interfaces.js +0 -2
- package/dist/src/resources/objects/index.d.ts +0 -36
- package/dist/src/resources/objects/index.js +0 -203
- package/dist/src/resources/objects/interfaces.d.ts +0 -51
- package/dist/src/resources/objects/interfaces.js +0 -2
- package/dist/src/resources/preferences/helpers.d.ts +0 -7
- package/dist/src/resources/preferences/helpers.js +0 -11
- package/dist/src/resources/preferences/interfaces.d.ts +0 -30
- package/dist/src/resources/preferences/interfaces.js +0 -2
- package/dist/src/resources/slack/index.d.ts +0 -9
- package/dist/src/resources/slack/index.js +0 -75
- package/dist/src/resources/slack/interfaces.d.ts +0 -30
- package/dist/src/resources/slack/interfaces.js +0 -2
- package/dist/src/resources/tenants/index.d.ts +0 -11
- package/dist/src/resources/tenants/index.js +0 -42
- package/dist/src/resources/tenants/interfaces.d.ts +0 -32
- package/dist/src/resources/tenants/interfaces.js +0 -2
- package/dist/src/resources/users/index.d.ts +0 -36
- package/dist/src/resources/users/index.js +0 -232
- package/dist/src/resources/users/interfaces.d.ts +0 -34
- package/dist/src/resources/users/interfaces.js +0 -2
- package/dist/src/resources/workflows/index.d.ts +0 -13
- package/dist/src/resources/workflows/index.js +0 -72
- package/dist/src/resources/workflows/interfaces.d.ts +0 -90
- package/dist/src/resources/workflows/interfaces.js +0 -20
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
export declare class ChannelData extends APIResource {
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Channel data for a given channel type.
|
|
6
|
+
*/
|
|
7
|
+
export interface ChannelData {
|
|
8
|
+
/**
|
|
9
|
+
* The typename of the schema.
|
|
10
|
+
*/
|
|
11
|
+
__typename: string;
|
|
12
|
+
/**
|
|
13
|
+
* The unique identifier for the channel.
|
|
14
|
+
*/
|
|
15
|
+
channel_id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Channel data for a given channel type.
|
|
18
|
+
*/
|
|
19
|
+
data: PushChannelData | SlackChannelData | MsTeamsChannelData | DiscordChannelData | OneSignalChannelData;
|
|
20
|
+
/**
|
|
21
|
+
* The type of provider.
|
|
22
|
+
*/
|
|
23
|
+
provider?: 'push_fcm' | 'push_apns' | 'push_expo' | 'push_one_signal' | 'chat_slack' | 'chat_ms_teams' | 'chat_discord' | 'http_knock_webhook';
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A request to set channel data for a type of channel.
|
|
27
|
+
*/
|
|
28
|
+
export interface ChannelDataRequest {
|
|
29
|
+
/**
|
|
30
|
+
* Channel data for a given channel type.
|
|
31
|
+
*/
|
|
32
|
+
data: PushChannelData | OneSignalChannelData | SlackChannelData | MsTeamsChannelData | DiscordChannelData;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Discord channel data.
|
|
36
|
+
*/
|
|
37
|
+
export interface DiscordChannelData {
|
|
38
|
+
/**
|
|
39
|
+
* List of Discord channel connections.
|
|
40
|
+
*/
|
|
41
|
+
connections: Array<DiscordChannelData.DiscordChannelConnection | DiscordChannelData.DiscordIncomingWebhookConnection>;
|
|
42
|
+
}
|
|
43
|
+
export declare namespace DiscordChannelData {
|
|
44
|
+
/**
|
|
45
|
+
* Discord channel connection.
|
|
46
|
+
*/
|
|
47
|
+
interface DiscordChannelConnection {
|
|
48
|
+
/**
|
|
49
|
+
* Discord channel ID.
|
|
50
|
+
*/
|
|
51
|
+
channel_id: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Discord incoming webhook connection.
|
|
55
|
+
*/
|
|
56
|
+
interface DiscordIncomingWebhookConnection {
|
|
57
|
+
/**
|
|
58
|
+
* Discord incoming webhook object.
|
|
59
|
+
*/
|
|
60
|
+
incoming_webhook: DiscordIncomingWebhookConnection.IncomingWebhook;
|
|
61
|
+
}
|
|
62
|
+
namespace DiscordIncomingWebhookConnection {
|
|
63
|
+
/**
|
|
64
|
+
* Discord incoming webhook object.
|
|
65
|
+
*/
|
|
66
|
+
interface IncomingWebhook {
|
|
67
|
+
/**
|
|
68
|
+
* Incoming webhook URL.
|
|
69
|
+
*/
|
|
70
|
+
url: string;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* A request to set channel data for a type of channel inline.
|
|
76
|
+
*/
|
|
77
|
+
export type InlineChannelDataRequest = Record<string, ChannelDataRequest>;
|
|
78
|
+
/**
|
|
79
|
+
* Microsoft Teams channel connection.
|
|
80
|
+
*/
|
|
81
|
+
export interface MsTeamsChannelData {
|
|
82
|
+
/**
|
|
83
|
+
* List of Microsoft Teams connections.
|
|
84
|
+
*/
|
|
85
|
+
connections: Array<MsTeamsChannelData.MsTeamsTokenConnection | MsTeamsChannelData.MsTeamsIncomingWebhookConnection>;
|
|
86
|
+
/**
|
|
87
|
+
* Microsoft Teams tenant ID.
|
|
88
|
+
*/
|
|
89
|
+
ms_teams_tenant_id?: string | null;
|
|
90
|
+
}
|
|
91
|
+
export declare namespace MsTeamsChannelData {
|
|
92
|
+
/**
|
|
93
|
+
* Microsoft Teams token connection.
|
|
94
|
+
*/
|
|
95
|
+
interface MsTeamsTokenConnection {
|
|
96
|
+
/**
|
|
97
|
+
* Microsoft Teams channel ID.
|
|
98
|
+
*/
|
|
99
|
+
ms_teams_channel_id?: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* Microsoft Teams team ID.
|
|
102
|
+
*/
|
|
103
|
+
ms_teams_team_id?: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* Microsoft Teams tenant ID.
|
|
106
|
+
*/
|
|
107
|
+
ms_teams_tenant_id?: string | null;
|
|
108
|
+
/**
|
|
109
|
+
* Microsoft Teams user ID.
|
|
110
|
+
*/
|
|
111
|
+
ms_teams_user_id?: string | null;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Microsoft Teams incoming webhook connection.
|
|
115
|
+
*/
|
|
116
|
+
interface MsTeamsIncomingWebhookConnection {
|
|
117
|
+
/**
|
|
118
|
+
* Microsoft Teams incoming webhook.
|
|
119
|
+
*/
|
|
120
|
+
incoming_webhook: MsTeamsIncomingWebhookConnection.IncomingWebhook;
|
|
121
|
+
}
|
|
122
|
+
namespace MsTeamsIncomingWebhookConnection {
|
|
123
|
+
/**
|
|
124
|
+
* Microsoft Teams incoming webhook.
|
|
125
|
+
*/
|
|
126
|
+
interface IncomingWebhook {
|
|
127
|
+
/**
|
|
128
|
+
* Microsoft Teams incoming webhook URL.
|
|
129
|
+
*/
|
|
130
|
+
url: string;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* OneSignal channel data.
|
|
136
|
+
*/
|
|
137
|
+
export interface OneSignalChannelData {
|
|
138
|
+
/**
|
|
139
|
+
* A list of OneSignal player IDs.
|
|
140
|
+
*/
|
|
141
|
+
player_ids: Array<string>;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* The content of a push notification.
|
|
145
|
+
*/
|
|
146
|
+
export interface PushChannelData {
|
|
147
|
+
/**
|
|
148
|
+
* A list of push channel tokens.
|
|
149
|
+
*/
|
|
150
|
+
tokens: Array<string>;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Slack channel data
|
|
154
|
+
*/
|
|
155
|
+
export interface SlackChannelData {
|
|
156
|
+
/**
|
|
157
|
+
* List of Slack channel connections.
|
|
158
|
+
*/
|
|
159
|
+
connections: Array<SlackChannelData.SlackTokenConnection | SlackChannelData.SlackIncomingWebhookConnection>;
|
|
160
|
+
/**
|
|
161
|
+
* A Slack connection token.
|
|
162
|
+
*/
|
|
163
|
+
token?: SlackChannelData.Token | null;
|
|
164
|
+
}
|
|
165
|
+
export declare namespace SlackChannelData {
|
|
166
|
+
/**
|
|
167
|
+
* A Slack connection token.
|
|
168
|
+
*/
|
|
169
|
+
interface SlackTokenConnection {
|
|
170
|
+
/**
|
|
171
|
+
* A Slack access token.
|
|
172
|
+
*/
|
|
173
|
+
access_token?: string | null;
|
|
174
|
+
/**
|
|
175
|
+
* A Slack channel ID from the Slack provider.
|
|
176
|
+
*/
|
|
177
|
+
channel_id?: string | null;
|
|
178
|
+
/**
|
|
179
|
+
* A Slack user ID from the Slack provider.
|
|
180
|
+
*/
|
|
181
|
+
user_id?: string | null;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* A Slack connection incoming webhook.
|
|
185
|
+
*/
|
|
186
|
+
interface SlackIncomingWebhookConnection {
|
|
187
|
+
/**
|
|
188
|
+
* The URL of the incoming webhook for a Slack connection.
|
|
189
|
+
*/
|
|
190
|
+
url: string;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* A Slack connection token.
|
|
194
|
+
*/
|
|
195
|
+
interface Token {
|
|
196
|
+
/**
|
|
197
|
+
* A Slack access token.
|
|
198
|
+
*/
|
|
199
|
+
access_token: string | null;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
export declare namespace ChannelData {
|
|
203
|
+
export { type ChannelData as ChannelData, type ChannelDataRequest as ChannelDataRequest, type DiscordChannelData as DiscordChannelData, type InlineChannelDataRequest as InlineChannelDataRequest, type MsTeamsChannelData as MsTeamsChannelData, type OneSignalChannelData as OneSignalChannelData, type PushChannelData as PushChannelData, type SlackChannelData as SlackChannelData, };
|
|
204
|
+
}
|
|
205
|
+
//# sourceMappingURL=channel-data.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channel-data.d.mts","sourceRoot":"","sources":["../../src/resources/recipients/channel-data.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,WAAY,SAAQ,WAAW;CAAG;AAE/C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,eAAe,GAAG,gBAAg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AAE,MAAM,GAAG,IAAI,CAAC;KAC7B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
export declare class ChannelData extends APIResource {
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Channel data for a given channel type.
|
|
6
|
+
*/
|
|
7
|
+
export interface ChannelData {
|
|
8
|
+
/**
|
|
9
|
+
* The typename of the schema.
|
|
10
|
+
*/
|
|
11
|
+
__typename: string;
|
|
12
|
+
/**
|
|
13
|
+
* The unique identifier for the channel.
|
|
14
|
+
*/
|
|
15
|
+
channel_id: string;
|
|
16
|
+
/**
|
|
17
|
+
* Channel data for a given channel type.
|
|
18
|
+
*/
|
|
19
|
+
data: PushChannelData | SlackChannelData | MsTeamsChannelData | DiscordChannelData | OneSignalChannelData;
|
|
20
|
+
/**
|
|
21
|
+
* The type of provider.
|
|
22
|
+
*/
|
|
23
|
+
provider?: 'push_fcm' | 'push_apns' | 'push_expo' | 'push_one_signal' | 'chat_slack' | 'chat_ms_teams' | 'chat_discord' | 'http_knock_webhook';
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A request to set channel data for a type of channel.
|
|
27
|
+
*/
|
|
28
|
+
export interface ChannelDataRequest {
|
|
29
|
+
/**
|
|
30
|
+
* Channel data for a given channel type.
|
|
31
|
+
*/
|
|
32
|
+
data: PushChannelData | OneSignalChannelData | SlackChannelData | MsTeamsChannelData | DiscordChannelData;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Discord channel data.
|
|
36
|
+
*/
|
|
37
|
+
export interface DiscordChannelData {
|
|
38
|
+
/**
|
|
39
|
+
* List of Discord channel connections.
|
|
40
|
+
*/
|
|
41
|
+
connections: Array<DiscordChannelData.DiscordChannelConnection | DiscordChannelData.DiscordIncomingWebhookConnection>;
|
|
42
|
+
}
|
|
43
|
+
export declare namespace DiscordChannelData {
|
|
44
|
+
/**
|
|
45
|
+
* Discord channel connection.
|
|
46
|
+
*/
|
|
47
|
+
interface DiscordChannelConnection {
|
|
48
|
+
/**
|
|
49
|
+
* Discord channel ID.
|
|
50
|
+
*/
|
|
51
|
+
channel_id: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Discord incoming webhook connection.
|
|
55
|
+
*/
|
|
56
|
+
interface DiscordIncomingWebhookConnection {
|
|
57
|
+
/**
|
|
58
|
+
* Discord incoming webhook object.
|
|
59
|
+
*/
|
|
60
|
+
incoming_webhook: DiscordIncomingWebhookConnection.IncomingWebhook;
|
|
61
|
+
}
|
|
62
|
+
namespace DiscordIncomingWebhookConnection {
|
|
63
|
+
/**
|
|
64
|
+
* Discord incoming webhook object.
|
|
65
|
+
*/
|
|
66
|
+
interface IncomingWebhook {
|
|
67
|
+
/**
|
|
68
|
+
* Incoming webhook URL.
|
|
69
|
+
*/
|
|
70
|
+
url: string;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* A request to set channel data for a type of channel inline.
|
|
76
|
+
*/
|
|
77
|
+
export type InlineChannelDataRequest = Record<string, ChannelDataRequest>;
|
|
78
|
+
/**
|
|
79
|
+
* Microsoft Teams channel connection.
|
|
80
|
+
*/
|
|
81
|
+
export interface MsTeamsChannelData {
|
|
82
|
+
/**
|
|
83
|
+
* List of Microsoft Teams connections.
|
|
84
|
+
*/
|
|
85
|
+
connections: Array<MsTeamsChannelData.MsTeamsTokenConnection | MsTeamsChannelData.MsTeamsIncomingWebhookConnection>;
|
|
86
|
+
/**
|
|
87
|
+
* Microsoft Teams tenant ID.
|
|
88
|
+
*/
|
|
89
|
+
ms_teams_tenant_id?: string | null;
|
|
90
|
+
}
|
|
91
|
+
export declare namespace MsTeamsChannelData {
|
|
92
|
+
/**
|
|
93
|
+
* Microsoft Teams token connection.
|
|
94
|
+
*/
|
|
95
|
+
interface MsTeamsTokenConnection {
|
|
96
|
+
/**
|
|
97
|
+
* Microsoft Teams channel ID.
|
|
98
|
+
*/
|
|
99
|
+
ms_teams_channel_id?: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* Microsoft Teams team ID.
|
|
102
|
+
*/
|
|
103
|
+
ms_teams_team_id?: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* Microsoft Teams tenant ID.
|
|
106
|
+
*/
|
|
107
|
+
ms_teams_tenant_id?: string | null;
|
|
108
|
+
/**
|
|
109
|
+
* Microsoft Teams user ID.
|
|
110
|
+
*/
|
|
111
|
+
ms_teams_user_id?: string | null;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Microsoft Teams incoming webhook connection.
|
|
115
|
+
*/
|
|
116
|
+
interface MsTeamsIncomingWebhookConnection {
|
|
117
|
+
/**
|
|
118
|
+
* Microsoft Teams incoming webhook.
|
|
119
|
+
*/
|
|
120
|
+
incoming_webhook: MsTeamsIncomingWebhookConnection.IncomingWebhook;
|
|
121
|
+
}
|
|
122
|
+
namespace MsTeamsIncomingWebhookConnection {
|
|
123
|
+
/**
|
|
124
|
+
* Microsoft Teams incoming webhook.
|
|
125
|
+
*/
|
|
126
|
+
interface IncomingWebhook {
|
|
127
|
+
/**
|
|
128
|
+
* Microsoft Teams incoming webhook URL.
|
|
129
|
+
*/
|
|
130
|
+
url: string;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* OneSignal channel data.
|
|
136
|
+
*/
|
|
137
|
+
export interface OneSignalChannelData {
|
|
138
|
+
/**
|
|
139
|
+
* A list of OneSignal player IDs.
|
|
140
|
+
*/
|
|
141
|
+
player_ids: Array<string>;
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* The content of a push notification.
|
|
145
|
+
*/
|
|
146
|
+
export interface PushChannelData {
|
|
147
|
+
/**
|
|
148
|
+
* A list of push channel tokens.
|
|
149
|
+
*/
|
|
150
|
+
tokens: Array<string>;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Slack channel data
|
|
154
|
+
*/
|
|
155
|
+
export interface SlackChannelData {
|
|
156
|
+
/**
|
|
157
|
+
* List of Slack channel connections.
|
|
158
|
+
*/
|
|
159
|
+
connections: Array<SlackChannelData.SlackTokenConnection | SlackChannelData.SlackIncomingWebhookConnection>;
|
|
160
|
+
/**
|
|
161
|
+
* A Slack connection token.
|
|
162
|
+
*/
|
|
163
|
+
token?: SlackChannelData.Token | null;
|
|
164
|
+
}
|
|
165
|
+
export declare namespace SlackChannelData {
|
|
166
|
+
/**
|
|
167
|
+
* A Slack connection token.
|
|
168
|
+
*/
|
|
169
|
+
interface SlackTokenConnection {
|
|
170
|
+
/**
|
|
171
|
+
* A Slack access token.
|
|
172
|
+
*/
|
|
173
|
+
access_token?: string | null;
|
|
174
|
+
/**
|
|
175
|
+
* A Slack channel ID from the Slack provider.
|
|
176
|
+
*/
|
|
177
|
+
channel_id?: string | null;
|
|
178
|
+
/**
|
|
179
|
+
* A Slack user ID from the Slack provider.
|
|
180
|
+
*/
|
|
181
|
+
user_id?: string | null;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* A Slack connection incoming webhook.
|
|
185
|
+
*/
|
|
186
|
+
interface SlackIncomingWebhookConnection {
|
|
187
|
+
/**
|
|
188
|
+
* The URL of the incoming webhook for a Slack connection.
|
|
189
|
+
*/
|
|
190
|
+
url: string;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* A Slack connection token.
|
|
194
|
+
*/
|
|
195
|
+
interface Token {
|
|
196
|
+
/**
|
|
197
|
+
* A Slack access token.
|
|
198
|
+
*/
|
|
199
|
+
access_token: string | null;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
export declare namespace ChannelData {
|
|
203
|
+
export { type ChannelData as ChannelData, type ChannelDataRequest as ChannelDataRequest, type DiscordChannelData as DiscordChannelData, type InlineChannelDataRequest as InlineChannelDataRequest, type MsTeamsChannelData as MsTeamsChannelData, type OneSignalChannelData as OneSignalChannelData, type PushChannelData as PushChannelData, type SlackChannelData as SlackChannelData, };
|
|
204
|
+
}
|
|
205
|
+
//# sourceMappingURL=channel-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channel-data.d.ts","sourceRoot":"","sources":["../../src/resources/recipients/channel-data.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,WAAY,SAAQ,WAAW;CAAG;AAE/C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,eAAe,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,kBAAkB,GAAG,oBAAoB,CAAC;IAE1G;;OAEG;IACH,QAAQ,CAAC,EACL,UAAU,GACV,WAAW,GACX,WAAW,GACX,iBAAiB,GACjB,YAAY,GACZ,eAAe,GACf,cAAc,GACd,oBAAoB,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,IAAI,EAAE,eAAe,GAAG,oBAAoB,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,kBAAkB,CAAC;CAC3G;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,WAAW,EAAE,KAAK,CAChB,kBAAkB,CAAC,wBAAwB,GAAG,kB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File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ChannelData = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
class ChannelData extends resource_1.APIResource {
|
|
7
|
+
}
|
|
8
|
+
exports.ChannelData = ChannelData;
|
|
9
|
+
//# sourceMappingURL=channel-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channel-data.js","sourceRoot":"","sources":["../../src/resources/recipients/channel-data.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,MAAa,WAAY,SAAQ,sBAAW;CAAG;AAA/C,kCAA+C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channel-data.mjs","sourceRoot":"","sources":["../../src/resources/recipients/channel-data.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAEtB,MAAM,OAAO,WAAY,SAAQ,WAAW;CAAG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ChannelData, type ChannelDataRequest, type DiscordChannelData, type InlineChannelDataRequest, type MsTeamsChannelData, type OneSignalChannelData, type PushChannelData, type SlackChannelData, } from "./channel-data.mjs";
|
|
2
|
+
export { Preferences, type InlinePreferenceSetRequest, type PreferenceSet, type PreferenceSetChannelTypeSetting, type PreferenceSetChannelTypes, type PreferenceSetRequest, } from "./preferences.mjs";
|
|
3
|
+
export { Recipients, type Recipient, type RecipientReference, type RecipientRequest } from "./recipients.mjs";
|
|
4
|
+
export { Subscriptions, type Subscription, type SubscriptionsEntriesCursor } from "./subscriptions.mjs";
|
|
5
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/recipients/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB;OACM,EACL,WAAW,EACX,KAAK,0BAA0B,EAC/B,KAAK,aAAa,EAClB,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,GAC1B;OACM,EAAE,UAAU,EAAE,KAAK,SAAS,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE;OAC9E,EAAE,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,0BAA0B,EAAE"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ChannelData, type ChannelDataRequest, type DiscordChannelData, type InlineChannelDataRequest, type MsTeamsChannelData, type OneSignalChannelData, type PushChannelData, type SlackChannelData, } from "./channel-data.js";
|
|
2
|
+
export { Preferences, type InlinePreferenceSetRequest, type PreferenceSet, type PreferenceSetChannelTypeSetting, type PreferenceSetChannelTypes, type PreferenceSetRequest, } from "./preferences.js";
|
|
3
|
+
export { Recipients, type Recipient, type RecipientReference, type RecipientRequest } from "./recipients.js";
|
|
4
|
+
export { Subscriptions, type Subscription, type SubscriptionsEntriesCursor } from "./subscriptions.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/recipients/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB;OACM,EACL,WAAW,EACX,KAAK,0BAA0B,EAC/B,KAAK,aAAa,EAClB,KAAK,+BAA+B,EACpC,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,GAC1B;OACM,EAAE,UAAU,EAAE,KAAK,SAAS,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE;OAC9E,EAAE,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,0BAA0B,EAAE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Subscriptions = exports.Recipients = exports.Preferences = exports.ChannelData = void 0;
|
|
5
|
+
var channel_data_1 = require("./channel-data.js");
|
|
6
|
+
Object.defineProperty(exports, "ChannelData", { enumerable: true, get: function () { return channel_data_1.ChannelData; } });
|
|
7
|
+
var preferences_1 = require("./preferences.js");
|
|
8
|
+
Object.defineProperty(exports, "Preferences", { enumerable: true, get: function () { return preferences_1.Preferences; } });
|
|
9
|
+
var recipients_1 = require("./recipients.js");
|
|
10
|
+
Object.defineProperty(exports, "Recipients", { enumerable: true, get: function () { return recipients_1.Recipients; } });
|
|
11
|
+
var subscriptions_1 = require("./subscriptions.js");
|
|
12
|
+
Object.defineProperty(exports, "Subscriptions", { enumerable: true, get: function () { return subscriptions_1.Subscriptions; } });
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/recipients/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDASwB;AARtB,2GAAA,WAAW,OAAA;AASb,gDAOuB;AANrB,0GAAA,WAAW,OAAA;AAOb,8CAA0G;AAAjG,wGAAA,UAAU,OAAA;AACnB,oDAAoG;AAA3F,8GAAA,aAAa,OAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { ChannelData, } from "./channel-data.mjs";
|
|
3
|
+
export { Preferences, } from "./preferences.mjs";
|
|
4
|
+
export { Recipients } from "./recipients.mjs";
|
|
5
|
+
export { Subscriptions } from "./subscriptions.mjs";
|
|
6
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/recipients/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,WAAW,GAQZ;OACM,EACL,WAAW,GAMZ;OACM,EAAE,UAAU,EAAkE;OAC9E,EAAE,aAAa,EAAsD"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as PreferencesAPI from "./preferences.mjs";
|
|
3
|
+
import * as SharedAPI from "../shared.mjs";
|
|
4
|
+
export declare class Preferences extends APIResource {
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Inline set preferences for a recipient, where the key is the preference set id.
|
|
8
|
+
*/
|
|
9
|
+
export type InlinePreferenceSetRequest = Record<string, PreferenceSetRequest>;
|
|
10
|
+
/**
|
|
11
|
+
* A preference set represents a specific set of notification preferences for a
|
|
12
|
+
* recipient. A recipient can have multiple preference sets.
|
|
13
|
+
*/
|
|
14
|
+
export interface PreferenceSet {
|
|
15
|
+
/**
|
|
16
|
+
* Unique identifier for the preference set.
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* An object where the key is the category and the values are the preference
|
|
21
|
+
* settings for that category.
|
|
22
|
+
*/
|
|
23
|
+
categories?: Record<string, boolean | PreferenceSet.PreferenceSetWorkflowCategorySettingObject> | null;
|
|
24
|
+
/**
|
|
25
|
+
* Channel type preferences.
|
|
26
|
+
*/
|
|
27
|
+
channel_types?: PreferenceSetChannelTypes | null;
|
|
28
|
+
/**
|
|
29
|
+
* An object where the key is the workflow key and the values are the preference
|
|
30
|
+
* settings for that workflow.
|
|
31
|
+
*/
|
|
32
|
+
workflows?: Record<string, boolean | PreferenceSet.PreferenceSetWorkflowCategorySettingObject> | null;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace PreferenceSet {
|
|
35
|
+
/**
|
|
36
|
+
* The settings object for a workflow or category, where you can specify channel
|
|
37
|
+
* types or conditions.
|
|
38
|
+
*/
|
|
39
|
+
interface PreferenceSetWorkflowCategorySettingObject {
|
|
40
|
+
/**
|
|
41
|
+
* Channel type preferences.
|
|
42
|
+
*/
|
|
43
|
+
channel_types?: PreferencesAPI.PreferenceSetChannelTypes | null;
|
|
44
|
+
/**
|
|
45
|
+
* A list of conditions to apply to a channel type.
|
|
46
|
+
*/
|
|
47
|
+
conditions?: Array<SharedAPI.Condition> | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The settings object for a workflow or category, where you can specify channel
|
|
51
|
+
* types or conditions.
|
|
52
|
+
*/
|
|
53
|
+
interface PreferenceSetWorkflowCategorySettingObject {
|
|
54
|
+
/**
|
|
55
|
+
* Channel type preferences.
|
|
56
|
+
*/
|
|
57
|
+
channel_types?: PreferencesAPI.PreferenceSetChannelTypes | null;
|
|
58
|
+
/**
|
|
59
|
+
* A list of conditions to apply to a channel type.
|
|
60
|
+
*/
|
|
61
|
+
conditions?: Array<SharedAPI.Condition> | null;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* A set of settings for a channel type. Currently, this can only be a list of
|
|
66
|
+
* conditions to apply.
|
|
67
|
+
*/
|
|
68
|
+
export interface PreferenceSetChannelTypeSetting {
|
|
69
|
+
/**
|
|
70
|
+
* A list of conditions to apply to a channel type.
|
|
71
|
+
*/
|
|
72
|
+
conditions: Array<SharedAPI.Condition>;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Channel type preferences.
|
|
76
|
+
*/
|
|
77
|
+
export interface PreferenceSetChannelTypes {
|
|
78
|
+
/**
|
|
79
|
+
* Whether the channel type is enabled for the preference set.
|
|
80
|
+
*/
|
|
81
|
+
chat?: boolean | PreferenceSetChannelTypeSetting;
|
|
82
|
+
/**
|
|
83
|
+
* Whether the channel type is enabled for the preference set.
|
|
84
|
+
*/
|
|
85
|
+
email?: boolean | PreferenceSetChannelTypeSetting;
|
|
86
|
+
/**
|
|
87
|
+
* Whether the channel type is enabled for the preference set.
|
|
88
|
+
*/
|
|
89
|
+
http?: boolean | PreferenceSetChannelTypeSetting;
|
|
90
|
+
/**
|
|
91
|
+
* Whether the channel type is enabled for the preference set.
|
|
92
|
+
*/
|
|
93
|
+
in_app_feed?: boolean | PreferenceSetChannelTypeSetting;
|
|
94
|
+
/**
|
|
95
|
+
* Whether the channel type is enabled for the preference set.
|
|
96
|
+
*/
|
|
97
|
+
push?: boolean | PreferenceSetChannelTypeSetting;
|
|
98
|
+
/**
|
|
99
|
+
* Whether the channel type is enabled for the preference set.
|
|
100
|
+
*/
|
|
101
|
+
sms?: boolean | PreferenceSetChannelTypeSetting;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* A request to set a preference set for a recipient.
|
|
105
|
+
*/
|
|
106
|
+
export interface PreferenceSetRequest {
|
|
107
|
+
/**
|
|
108
|
+
* An object where the key is the category and the values are the preference
|
|
109
|
+
* settings for that category.
|
|
110
|
+
*/
|
|
111
|
+
categories?: Record<string, boolean | PreferenceSetRequest.PreferenceSetWorkflowCategorySettingObject> | null;
|
|
112
|
+
/**
|
|
113
|
+
* Channel type preferences.
|
|
114
|
+
*/
|
|
115
|
+
channel_types?: PreferenceSetChannelTypes | null;
|
|
116
|
+
/**
|
|
117
|
+
* An object where the key is the workflow key and the values are the preference
|
|
118
|
+
* settings for that workflow.
|
|
119
|
+
*/
|
|
120
|
+
workflows?: Record<string, boolean | PreferenceSetRequest.PreferenceSetWorkflowCategorySettingObject> | null;
|
|
121
|
+
}
|
|
122
|
+
export declare namespace PreferenceSetRequest {
|
|
123
|
+
/**
|
|
124
|
+
* The settings object for a workflow or category, where you can specify channel
|
|
125
|
+
* types or conditions.
|
|
126
|
+
*/
|
|
127
|
+
interface PreferenceSetWorkflowCategorySettingObject {
|
|
128
|
+
/**
|
|
129
|
+
* Channel type preferences.
|
|
130
|
+
*/
|
|
131
|
+
channel_types?: PreferencesAPI.PreferenceSetChannelTypes | null;
|
|
132
|
+
/**
|
|
133
|
+
* A list of conditions to apply to a channel type.
|
|
134
|
+
*/
|
|
135
|
+
conditions?: Array<SharedAPI.Condition> | null;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* The settings object for a workflow or category, where you can specify channel
|
|
139
|
+
* types or conditions.
|
|
140
|
+
*/
|
|
141
|
+
interface PreferenceSetWorkflowCategorySettingObject {
|
|
142
|
+
/**
|
|
143
|
+
* Channel type preferences.
|
|
144
|
+
*/
|
|
145
|
+
channel_types?: PreferencesAPI.PreferenceSetChannelTypes | null;
|
|
146
|
+
/**
|
|
147
|
+
* A list of conditions to apply to a channel type.
|
|
148
|
+
*/
|
|
149
|
+
conditions?: Array<SharedAPI.Condition> | null;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
export declare namespace Preferences {
|
|
153
|
+
export { type InlinePreferenceSetRequest as InlinePreferenceSetRequest, type PreferenceSet as PreferenceSet, type PreferenceSetChannelTypeSetting as PreferenceSetChannelTypeSetting, type PreferenceSetChannelTypes as PreferenceSetChannelTypes, type PreferenceSetRequest as PreferenceSetRequest, };
|
|
154
|
+
}
|
|
155
|
+
//# sourceMappingURL=preferences.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preferences.d.mts","sourceRoot":"","sources":["../../src/resources/recipients/preferences.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,KAAK,SAAS;AAErB,qBAAa,WAAY,SAAQ,WAAW;CAAG;AAE/C;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;AAE9E;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAE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