featurebase-node 0.0.2
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 +10 -0
- package/LICENSE +201 -0
- package/README.md +356 -0
- 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 +274 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +274 -0
- package/client.d.ts.map +1 -0
- package/client.js +569 -0
- package/client.js.map +1 -0
- package/client.mjs +565 -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/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 +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -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 +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -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 +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -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 +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -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 +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +10 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +6 -0
- package/internal/utils/query.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 +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +8 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +8 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +12 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +9 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +143 -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/admins.d.mts +437 -0
- package/resources/admins.d.mts.map +1 -0
- package/resources/admins.d.ts +437 -0
- package/resources/admins.d.ts.map +1 -0
- package/resources/admins.js +157 -0
- package/resources/admins.js.map +1 -0
- package/resources/admins.mjs +153 -0
- package/resources/admins.mjs.map +1 -0
- package/resources/boards.d.mts +202 -0
- package/resources/boards.d.mts.map +1 -0
- package/resources/boards.d.ts +202 -0
- package/resources/boards.d.ts.map +1 -0
- package/resources/boards.js +52 -0
- package/resources/boards.js.map +1 -0
- package/resources/boards.mjs +48 -0
- package/resources/boards.mjs.map +1 -0
- package/resources/brands.d.mts +180 -0
- package/resources/brands.d.mts.map +1 -0
- package/resources/brands.d.ts +180 -0
- package/resources/brands.d.ts.map +1 -0
- package/resources/brands.js +130 -0
- package/resources/brands.js.map +1 -0
- package/resources/brands.mjs +126 -0
- package/resources/brands.mjs.map +1 -0
- package/resources/changelogs/changelogs.d.mts +723 -0
- package/resources/changelogs/changelogs.d.mts.map +1 -0
- package/resources/changelogs/changelogs.d.ts +723 -0
- package/resources/changelogs/changelogs.d.ts.map +1 -0
- package/resources/changelogs/changelogs.js +406 -0
- package/resources/changelogs/changelogs.js.map +1 -0
- package/resources/changelogs/changelogs.mjs +401 -0
- package/resources/changelogs/changelogs.mjs.map +1 -0
- package/resources/changelogs/index.d.mts +3 -0
- package/resources/changelogs/index.d.mts.map +1 -0
- package/resources/changelogs/index.d.ts +3 -0
- package/resources/changelogs/index.d.ts.map +1 -0
- package/resources/changelogs/index.js +9 -0
- package/resources/changelogs/index.js.map +1 -0
- package/resources/changelogs/index.mjs +4 -0
- package/resources/changelogs/index.mjs.map +1 -0
- package/resources/changelogs/subscribers.d.mts +145 -0
- package/resources/changelogs/subscribers.d.mts.map +1 -0
- package/resources/changelogs/subscribers.d.ts +145 -0
- package/resources/changelogs/subscribers.d.ts.map +1 -0
- package/resources/changelogs/subscribers.js +119 -0
- package/resources/changelogs/subscribers.js.map +1 -0
- package/resources/changelogs/subscribers.mjs +115 -0
- package/resources/changelogs/subscribers.mjs.map +1 -0
- package/resources/changelogs.d.mts +2 -0
- package/resources/changelogs.d.mts.map +1 -0
- package/resources/changelogs.d.ts +2 -0
- package/resources/changelogs.d.ts.map +1 -0
- package/resources/changelogs.js +6 -0
- package/resources/changelogs.js.map +1 -0
- package/resources/changelogs.mjs +3 -0
- package/resources/changelogs.mjs.map +1 -0
- package/resources/comments.d.mts +632 -0
- package/resources/comments.d.mts.map +1 -0
- package/resources/comments.d.ts +632 -0
- package/resources/comments.d.ts.map +1 -0
- package/resources/comments.js +397 -0
- package/resources/comments.js.map +1 -0
- package/resources/comments.mjs +393 -0
- package/resources/comments.mjs.map +1 -0
- package/resources/companies/companies.d.mts +497 -0
- package/resources/companies/companies.d.mts.map +1 -0
- package/resources/companies/companies.d.ts +497 -0
- package/resources/companies/companies.d.ts.map +1 -0
- package/resources/companies/companies.js +368 -0
- package/resources/companies/companies.js.map +1 -0
- package/resources/companies/companies.mjs +363 -0
- package/resources/companies/companies.mjs.map +1 -0
- package/resources/companies/contacts.d.mts +236 -0
- package/resources/companies/contacts.d.mts.map +1 -0
- package/resources/companies/contacts.d.ts +236 -0
- package/resources/companies/contacts.d.ts.map +1 -0
- package/resources/companies/contacts.js +218 -0
- package/resources/companies/contacts.js.map +1 -0
- package/resources/companies/contacts.mjs +214 -0
- package/resources/companies/contacts.mjs.map +1 -0
- package/resources/companies/index.d.mts +3 -0
- package/resources/companies/index.d.mts.map +1 -0
- package/resources/companies/index.d.ts +3 -0
- package/resources/companies/index.d.ts.map +1 -0
- package/resources/companies/index.js +9 -0
- package/resources/companies/index.js.map +1 -0
- package/resources/companies/index.mjs +4 -0
- package/resources/companies/index.mjs.map +1 -0
- package/resources/companies.d.mts +2 -0
- package/resources/companies.d.mts.map +1 -0
- package/resources/companies.d.ts +2 -0
- package/resources/companies.d.ts.map +1 -0
- package/resources/companies.js +6 -0
- package/resources/companies.js.map +1 -0
- package/resources/companies.mjs +3 -0
- package/resources/companies.mjs.map +1 -0
- package/resources/contacts/by-user-id/by-user-id.d.mts +147 -0
- package/resources/contacts/by-user-id/by-user-id.d.mts.map +1 -0
- package/resources/contacts/by-user-id/by-user-id.d.ts +147 -0
- package/resources/contacts/by-user-id/by-user-id.d.ts.map +1 -0
- package/resources/contacts/by-user-id/by-user-id.js +152 -0
- package/resources/contacts/by-user-id/by-user-id.js.map +1 -0
- package/resources/contacts/by-user-id/by-user-id.mjs +147 -0
- package/resources/contacts/by-user-id/by-user-id.mjs.map +1 -0
- package/resources/contacts/by-user-id/email-preferences.d.mts +199 -0
- package/resources/contacts/by-user-id/email-preferences.d.mts.map +1 -0
- package/resources/contacts/by-user-id/email-preferences.d.ts +199 -0
- package/resources/contacts/by-user-id/email-preferences.d.ts.map +1 -0
- package/resources/contacts/by-user-id/email-preferences.js +176 -0
- package/resources/contacts/by-user-id/email-preferences.js.map +1 -0
- package/resources/contacts/by-user-id/email-preferences.mjs +172 -0
- package/resources/contacts/by-user-id/email-preferences.mjs.map +1 -0
- package/resources/contacts/by-user-id/index.d.mts +3 -0
- package/resources/contacts/by-user-id/index.d.mts.map +1 -0
- package/resources/contacts/by-user-id/index.d.ts +3 -0
- package/resources/contacts/by-user-id/index.d.ts.map +1 -0
- package/resources/contacts/by-user-id/index.js +9 -0
- package/resources/contacts/by-user-id/index.js.map +1 -0
- package/resources/contacts/by-user-id/index.mjs +4 -0
- package/resources/contacts/by-user-id/index.mjs.map +1 -0
- package/resources/contacts/by-user-id.d.mts +2 -0
- package/resources/contacts/by-user-id.d.mts.map +1 -0
- package/resources/contacts/by-user-id.d.ts +2 -0
- package/resources/contacts/by-user-id.d.ts.map +1 -0
- package/resources/contacts/by-user-id.js +6 -0
- package/resources/contacts/by-user-id.js.map +1 -0
- package/resources/contacts/by-user-id.mjs +3 -0
- package/resources/contacts/by-user-id.mjs.map +1 -0
- package/resources/contacts/contacts.d.mts +708 -0
- package/resources/contacts/contacts.d.mts.map +1 -0
- package/resources/contacts/contacts.d.ts +708 -0
- package/resources/contacts/contacts.d.ts.map +1 -0
- package/resources/contacts/contacts.js +444 -0
- package/resources/contacts/contacts.js.map +1 -0
- package/resources/contacts/contacts.mjs +439 -0
- package/resources/contacts/contacts.mjs.map +1 -0
- package/resources/contacts/email-preferences.d.mts +334 -0
- package/resources/contacts/email-preferences.d.mts.map +1 -0
- package/resources/contacts/email-preferences.d.ts +334 -0
- package/resources/contacts/email-preferences.d.ts.map +1 -0
- package/resources/contacts/email-preferences.js +219 -0
- package/resources/contacts/email-preferences.js.map +1 -0
- package/resources/contacts/email-preferences.mjs +215 -0
- package/resources/contacts/email-preferences.mjs.map +1 -0
- package/resources/contacts/index.d.mts +4 -0
- package/resources/contacts/index.d.mts.map +1 -0
- package/resources/contacts/index.d.ts +4 -0
- package/resources/contacts/index.d.ts.map +1 -0
- package/resources/contacts/index.js +11 -0
- package/resources/contacts/index.js.map +1 -0
- package/resources/contacts/index.mjs +5 -0
- package/resources/contacts/index.mjs.map +1 -0
- package/resources/contacts.d.mts +2 -0
- package/resources/contacts.d.mts.map +1 -0
- package/resources/contacts.d.ts +2 -0
- package/resources/contacts.d.ts.map +1 -0
- package/resources/contacts.js +6 -0
- package/resources/contacts.js.map +1 -0
- package/resources/contacts.mjs +3 -0
- package/resources/contacts.mjs.map +1 -0
- package/resources/conversations/conversations.d.mts +2235 -0
- package/resources/conversations/conversations.d.mts.map +1 -0
- package/resources/conversations/conversations.d.ts +2235 -0
- package/resources/conversations/conversations.d.ts.map +1 -0
- package/resources/conversations/conversations.js +753 -0
- package/resources/conversations/conversations.js.map +1 -0
- package/resources/conversations/conversations.mjs +748 -0
- package/resources/conversations/conversations.mjs.map +1 -0
- package/resources/conversations/index.d.mts +4 -0
- package/resources/conversations/index.d.mts.map +1 -0
- package/resources/conversations/index.d.ts +4 -0
- package/resources/conversations/index.d.ts.map +1 -0
- package/resources/conversations/index.js +11 -0
- package/resources/conversations/index.js.map +1 -0
- package/resources/conversations/index.mjs +5 -0
- package/resources/conversations/index.mjs.map +1 -0
- package/resources/conversations/participants.d.mts +217 -0
- package/resources/conversations/participants.d.mts.map +1 -0
- package/resources/conversations/participants.d.ts +217 -0
- package/resources/conversations/participants.d.ts.map +1 -0
- package/resources/conversations/participants.js +185 -0
- package/resources/conversations/participants.js.map +1 -0
- package/resources/conversations/participants.mjs +181 -0
- package/resources/conversations/participants.mjs.map +1 -0
- package/resources/conversations/tags.d.mts +200 -0
- package/resources/conversations/tags.d.mts.map +1 -0
- package/resources/conversations/tags.d.ts +200 -0
- package/resources/conversations/tags.d.ts.map +1 -0
- package/resources/conversations/tags.js +138 -0
- package/resources/conversations/tags.js.map +1 -0
- package/resources/conversations/tags.mjs +134 -0
- package/resources/conversations/tags.mjs.map +1 -0
- package/resources/conversations.d.mts +2 -0
- package/resources/conversations.d.mts.map +1 -0
- package/resources/conversations.d.ts +2 -0
- package/resources/conversations.d.ts.map +1 -0
- package/resources/conversations.js +6 -0
- package/resources/conversations.js.map +1 -0
- package/resources/conversations.mjs +3 -0
- package/resources/conversations.mjs.map +1 -0
- package/resources/custom-fields.d.mts +189 -0
- package/resources/custom-fields.d.mts.map +1 -0
- package/resources/custom-fields.d.ts +189 -0
- package/resources/custom-fields.d.ts.map +1 -0
- package/resources/custom-fields.js +92 -0
- package/resources/custom-fields.js.map +1 -0
- package/resources/custom-fields.mjs +88 -0
- package/resources/custom-fields.mjs.map +1 -0
- package/resources/help-center/articles.d.mts +770 -0
- package/resources/help-center/articles.d.mts.map +1 -0
- package/resources/help-center/articles.d.ts +770 -0
- package/resources/help-center/articles.d.ts.map +1 -0
- package/resources/help-center/articles.js +296 -0
- package/resources/help-center/articles.js.map +1 -0
- package/resources/help-center/articles.mjs +292 -0
- package/resources/help-center/articles.mjs.map +1 -0
- package/resources/help-center/collections.d.mts +669 -0
- package/resources/help-center/collections.d.mts.map +1 -0
- package/resources/help-center/collections.d.ts +669 -0
- package/resources/help-center/collections.d.ts.map +1 -0
- package/resources/help-center/collections.js +278 -0
- package/resources/help-center/collections.js.map +1 -0
- package/resources/help-center/collections.mjs +274 -0
- package/resources/help-center/collections.mjs.map +1 -0
- package/resources/help-center/help-center.d.mts +22 -0
- package/resources/help-center/help-center.d.mts.map +1 -0
- package/resources/help-center/help-center.d.ts +22 -0
- package/resources/help-center/help-center.d.ts.map +1 -0
- package/resources/help-center/help-center.js +29 -0
- package/resources/help-center/help-center.js.map +1 -0
- package/resources/help-center/help-center.mjs +24 -0
- package/resources/help-center/help-center.mjs.map +1 -0
- package/resources/help-center/help-centers.d.mts +312 -0
- package/resources/help-center/help-centers.d.mts.map +1 -0
- package/resources/help-center/help-centers.d.ts +312 -0
- package/resources/help-center/help-centers.d.ts.map +1 -0
- package/resources/help-center/help-centers.js +111 -0
- package/resources/help-center/help-centers.js.map +1 -0
- package/resources/help-center/help-centers.mjs +107 -0
- package/resources/help-center/help-centers.mjs.map +1 -0
- package/resources/help-center/index.d.mts +6 -0
- package/resources/help-center/index.d.mts.map +1 -0
- package/resources/help-center/index.d.ts +6 -0
- package/resources/help-center/index.d.ts.map +1 -0
- package/resources/help-center/index.js +15 -0
- package/resources/help-center/index.js.map +1 -0
- package/resources/help-center/index.mjs +7 -0
- package/resources/help-center/index.mjs.map +1 -0
- package/resources/help-center/redirect-rules.d.mts +417 -0
- package/resources/help-center/redirect-rules.d.mts.map +1 -0
- package/resources/help-center/redirect-rules.d.ts +417 -0
- package/resources/help-center/redirect-rules.d.ts.map +1 -0
- package/resources/help-center/redirect-rules.js +297 -0
- package/resources/help-center/redirect-rules.js.map +1 -0
- package/resources/help-center/redirect-rules.mjs +293 -0
- package/resources/help-center/redirect-rules.mjs.map +1 -0
- package/resources/help-center.d.mts +2 -0
- package/resources/help-center.d.mts.map +1 -0
- package/resources/help-center.d.ts +2 -0
- package/resources/help-center.d.ts.map +1 -0
- package/resources/help-center.js +6 -0
- package/resources/help-center.js.map +1 -0
- package/resources/help-center.mjs +3 -0
- package/resources/help-center.mjs.map +1 -0
- package/resources/index.d.mts +18 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +18 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +39 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +19 -0
- package/resources/index.mjs.map +1 -0
- package/resources/post-statuses.d.mts +74 -0
- package/resources/post-statuses.d.mts.map +1 -0
- package/resources/post-statuses.d.ts +74 -0
- package/resources/post-statuses.d.ts.map +1 -0
- package/resources/post-statuses.js +53 -0
- package/resources/post-statuses.js.map +1 -0
- package/resources/post-statuses.mjs +49 -0
- package/resources/post-statuses.mjs.map +1 -0
- package/resources/posts/index.d.mts +3 -0
- package/resources/posts/index.d.mts.map +1 -0
- package/resources/posts/index.d.ts +3 -0
- package/resources/posts/index.d.ts.map +1 -0
- package/resources/posts/index.js +9 -0
- package/resources/posts/index.js.map +1 -0
- package/resources/posts/index.mjs +4 -0
- package/resources/posts/index.mjs.map +1 -0
- package/resources/posts/posts.d.mts +799 -0
- package/resources/posts/posts.d.mts.map +1 -0
- package/resources/posts/posts.d.ts +799 -0
- package/resources/posts/posts.d.ts.map +1 -0
- package/resources/posts/posts.js +271 -0
- package/resources/posts/posts.js.map +1 -0
- package/resources/posts/posts.mjs +266 -0
- package/resources/posts/posts.mjs.map +1 -0
- package/resources/posts/voters.d.mts +359 -0
- package/resources/posts/voters.d.mts.map +1 -0
- package/resources/posts/voters.d.ts +359 -0
- package/resources/posts/voters.d.ts.map +1 -0
- package/resources/posts/voters.js +171 -0
- package/resources/posts/voters.js.map +1 -0
- package/resources/posts/voters.mjs +167 -0
- package/resources/posts/voters.mjs.map +1 -0
- package/resources/posts.d.mts +2 -0
- package/resources/posts.d.mts.map +1 -0
- package/resources/posts.d.ts +2 -0
- package/resources/posts.d.ts.map +1 -0
- package/resources/posts.js +6 -0
- package/resources/posts.js.map +1 -0
- package/resources/posts.mjs +3 -0
- package/resources/posts.mjs.map +1 -0
- package/resources/surveys.d.mts +451 -0
- package/resources/surveys.d.mts.map +1 -0
- package/resources/surveys.d.ts +451 -0
- package/resources/surveys.d.ts.map +1 -0
- package/resources/surveys.js +149 -0
- package/resources/surveys.js.map +1 -0
- package/resources/surveys.mjs +145 -0
- package/resources/surveys.mjs.map +1 -0
- package/resources/tags.d.mts +147 -0
- package/resources/tags.d.mts.map +1 -0
- package/resources/tags.d.ts +147 -0
- package/resources/tags.d.ts.map +1 -0
- package/resources/tags.js +100 -0
- package/resources/tags.js.map +1 -0
- package/resources/tags.mjs +96 -0
- package/resources/tags.mjs.map +1 -0
- package/resources/teams.d.mts +165 -0
- package/resources/teams.d.mts.map +1 -0
- package/resources/teams.d.ts +165 -0
- package/resources/teams.d.ts.map +1 -0
- package/resources/teams.js +120 -0
- package/resources/teams.js.map +1 -0
- package/resources/teams.mjs +116 -0
- package/resources/teams.mjs.map +1 -0
- package/resources/tickets/categories.d.mts +63 -0
- package/resources/tickets/categories.d.mts.map +1 -0
- package/resources/tickets/categories.d.ts +63 -0
- package/resources/tickets/categories.d.ts.map +1 -0
- package/resources/tickets/categories.js +67 -0
- package/resources/tickets/categories.js.map +1 -0
- package/resources/tickets/categories.mjs +63 -0
- package/resources/tickets/categories.mjs.map +1 -0
- package/resources/tickets/custom-fields.d.mts +80 -0
- package/resources/tickets/custom-fields.d.mts.map +1 -0
- package/resources/tickets/custom-fields.d.ts +80 -0
- package/resources/tickets/custom-fields.d.ts.map +1 -0
- package/resources/tickets/custom-fields.js +85 -0
- package/resources/tickets/custom-fields.js.map +1 -0
- package/resources/tickets/custom-fields.mjs +81 -0
- package/resources/tickets/custom-fields.mjs.map +1 -0
- package/resources/tickets/index.d.mts +5 -0
- package/resources/tickets/index.d.mts.map +1 -0
- package/resources/tickets/index.d.ts +5 -0
- package/resources/tickets/index.d.ts.map +1 -0
- package/resources/tickets/index.js +13 -0
- package/resources/tickets/index.js.map +1 -0
- package/resources/tickets/index.mjs +6 -0
- package/resources/tickets/index.mjs.map +1 -0
- package/resources/tickets/statuses.d.mts +59 -0
- package/resources/tickets/statuses.d.mts.map +1 -0
- package/resources/tickets/statuses.d.ts +59 -0
- package/resources/tickets/statuses.d.ts.map +1 -0
- package/resources/tickets/statuses.js +63 -0
- package/resources/tickets/statuses.js.map +1 -0
- package/resources/tickets/statuses.mjs +59 -0
- package/resources/tickets/statuses.mjs.map +1 -0
- package/resources/tickets/tickets.d.mts +794 -0
- package/resources/tickets/tickets.d.mts.map +1 -0
- package/resources/tickets/tickets.d.ts +794 -0
- package/resources/tickets/tickets.d.ts.map +1 -0
- package/resources/tickets/tickets.js +327 -0
- package/resources/tickets/tickets.js.map +1 -0
- package/resources/tickets/tickets.mjs +322 -0
- package/resources/tickets/tickets.mjs.map +1 -0
- package/resources/tickets.d.mts +2 -0
- package/resources/tickets.d.mts.map +1 -0
- package/resources/tickets.d.ts +2 -0
- package/resources/tickets.d.ts.map +1 -0
- package/resources/tickets.js +6 -0
- package/resources/tickets.js.map +1 -0
- package/resources/tickets.mjs +3 -0
- package/resources/tickets.mjs.map +1 -0
- package/resources/webhooks.d.mts +626 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +626 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +442 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +438 -0
- package/resources/webhooks.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 +1169 -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/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -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 +56 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -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 +88 -0
- package/src/internal/utils/query.ts +7 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +9 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/admins.ts +557 -0
- package/src/resources/boards.ts +259 -0
- package/src/resources/brands.ts +232 -0
- package/src/resources/changelogs/changelogs.ts +1139 -0
- package/src/resources/changelogs/index.ts +23 -0
- package/src/resources/changelogs/subscribers.ts +226 -0
- package/src/resources/changelogs.ts +3 -0
- package/src/resources/comments.ts +786 -0
- package/src/resources/companies/companies.ts +632 -0
- package/src/resources/companies/contacts.ts +299 -0
- package/src/resources/companies/index.ts +21 -0
- package/src/resources/companies.ts +3 -0
- package/src/resources/contacts/by-user-id/by-user-id.ts +200 -0
- package/src/resources/contacts/by-user-id/email-preferences.ts +243 -0
- package/src/resources/contacts/by-user-id/index.ts +13 -0
- package/src/resources/contacts/by-user-id.ts +3 -0
- package/src/resources/contacts/contacts.ts +908 -0
- package/src/resources/contacts/email-preferences.ts +399 -0
- package/src/resources/contacts/index.ts +32 -0
- package/src/resources/contacts.ts +3 -0
- package/src/resources/conversations/conversations.ts +2721 -0
- package/src/resources/conversations/index.ts +31 -0
- package/src/resources/conversations/participants.ts +263 -0
- package/src/resources/conversations/tags.ts +252 -0
- package/src/resources/conversations.ts +3 -0
- package/src/resources/custom-fields.ts +249 -0
- package/src/resources/help-center/articles.ts +1231 -0
- package/src/resources/help-center/collections.ts +1065 -0
- package/src/resources/help-center/help-center.ts +125 -0
- package/src/resources/help-center/help-centers.ts +558 -0
- package/src/resources/help-center/index.ts +52 -0
- package/src/resources/help-center/redirect-rules.ts +711 -0
- package/src/resources/help-center.ts +3 -0
- package/src/resources/index.ts +179 -0
- package/src/resources/post-statuses.ts +119 -0
- package/src/resources/posts/index.ts +22 -0
- package/src/resources/posts/posts.ts +1019 -0
- package/src/resources/posts/voters.ts +453 -0
- package/src/resources/posts.ts +3 -0
- package/src/resources/surveys.ts +576 -0
- package/src/resources/tags.ts +226 -0
- package/src/resources/teams.ts +213 -0
- package/src/resources/tickets/categories.ts +101 -0
- package/src/resources/tickets/custom-fields.ts +116 -0
- package/src/resources/tickets/index.ts +28 -0
- package/src/resources/tickets/statuses.ts +97 -0
- package/src/resources/tickets/tickets.ts +1019 -0
- package/src/resources/tickets.ts +3 -0
- package/src/resources/webhooks.ts +850 -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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tickets.mjs","sourceRoot":"","sources":["../../src/resources/tickets/tickets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,KAAK,aAAa;OAClB,EAAE,UAAU,EAAoE;OAChF,KAAK,eAAe;OACpB,EAAoD,YAAY,EAAE;OAClE,KAAK,WAAW;OAChB,EAA8D,QAAQ,EAAE;OAExE,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;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,CAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACH,KAAK,CAAC,EAAU,EAAE,MAAyB,EAAE,OAAwB;QACnE,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,eAAe,EAAE,QAAQ,EAAE;YACtD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAooBD,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC;AACpC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAC;AAChC,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tickets.d.mts","sourceRoot":"","sources":["../src/resources/tickets.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tickets.d.ts","sourceRoot":"","sources":["../src/resources/tickets.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./tickets/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=tickets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tickets.js","sourceRoot":"","sources":["../src/resources/tickets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tickets.mjs","sourceRoot":"","sources":["../src/resources/tickets.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,626 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Webhooks allow you to receive real-time HTTP callbacks when events occur in your Featurebase organization. Configure webhook endpoints to subscribe to specific event types.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Webhooks extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new webhook to receive event notifications.
|
|
10
|
+
*
|
|
11
|
+
* ### Request Body
|
|
12
|
+
*
|
|
13
|
+
* | Field | Type | Required | Description |
|
|
14
|
+
* | ----------------------- | -------- | -------- | ------------------------------------ |
|
|
15
|
+
* | `name` | string | Yes | Human-readable name (max 100 chars) |
|
|
16
|
+
* | `url` | string | Yes | Webhook endpoint URL (must be HTTPS) |
|
|
17
|
+
* | `description` | string | No | Optional description (max 500 chars) |
|
|
18
|
+
* | `topics` | string[] | Yes | Event topics to subscribe to |
|
|
19
|
+
* | `requestConfig` | object | No | Request configuration |
|
|
20
|
+
* | `requestConfig.headers` | object | No | Custom headers to send (max 10) |
|
|
21
|
+
*
|
|
22
|
+
* ### Available Topics
|
|
23
|
+
*
|
|
24
|
+
* - `post.created` - When a new feedback post is created
|
|
25
|
+
* - `post.updated` - When a feedback post is updated
|
|
26
|
+
* - `post.deleted` - When a feedback post is deleted
|
|
27
|
+
* - `post.voted` - When a feedback post receives a vote
|
|
28
|
+
* - `ticket.created` - When a new ticket is created
|
|
29
|
+
* - `ticket.updated` - When a ticket is updated
|
|
30
|
+
* - `ticket.deleted` - When a ticket is deleted
|
|
31
|
+
* - `changelog.published` - When a changelog is published
|
|
32
|
+
* - `comment.created` - When a comment is created
|
|
33
|
+
* - `comment.updated` - When a comment is updated
|
|
34
|
+
* - `comment.deleted` - When a comment is deleted
|
|
35
|
+
*
|
|
36
|
+
* ### Response
|
|
37
|
+
*
|
|
38
|
+
* Returns the created webhook object including the signing secret.
|
|
39
|
+
*
|
|
40
|
+
* ### Example Request
|
|
41
|
+
*
|
|
42
|
+
* ```json
|
|
43
|
+
* {
|
|
44
|
+
* "name": "Production Webhook",
|
|
45
|
+
* "url": "https://example.com/webhooks",
|
|
46
|
+
* "description": "Handles all production events",
|
|
47
|
+
* "topics": ["post.created", "post.updated", "comment.created"],
|
|
48
|
+
* "requestConfig": {
|
|
49
|
+
* "timeoutMs": 10000,
|
|
50
|
+
* "headers": {
|
|
51
|
+
* "X-Custom-Header": "value"
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
54
|
+
* }
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* ### Example Response
|
|
58
|
+
*
|
|
59
|
+
* ```json
|
|
60
|
+
* {
|
|
61
|
+
* "object": "webhook",
|
|
62
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
63
|
+
* "name": "Production Webhook",
|
|
64
|
+
* "url": "https://example.com/webhooks",
|
|
65
|
+
* "secret": "whsec_abc123def456ghi789",
|
|
66
|
+
* "topics": ["post.created", "post.updated", "comment.created"],
|
|
67
|
+
* "status": "active",
|
|
68
|
+
* ...
|
|
69
|
+
* }
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* ### Limits
|
|
73
|
+
*
|
|
74
|
+
* Each organization has a maximum number of webhooks (default: 10). Creating a
|
|
75
|
+
* webhook when the limit is reached will return a 400 error.
|
|
76
|
+
*
|
|
77
|
+
* ### Version Availability
|
|
78
|
+
*
|
|
79
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const webhook = await client.webhooks.create({
|
|
84
|
+
* name: 'Production Webhook',
|
|
85
|
+
* topics: ['post.created', 'post.updated'],
|
|
86
|
+
* url: 'https://example.com/webhooks',
|
|
87
|
+
* });
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
create(params: WebhookCreateParams, options?: RequestOptions): APIPromise<Webhook>;
|
|
91
|
+
/**
|
|
92
|
+
* Retrieves a single webhook by its unique identifier.
|
|
93
|
+
*
|
|
94
|
+
* ### Path Parameters
|
|
95
|
+
*
|
|
96
|
+
* - `id` - The webhook ID (24-character ObjectId)
|
|
97
|
+
*
|
|
98
|
+
* ### Response Format
|
|
99
|
+
*
|
|
100
|
+
* Returns a webhook object with:
|
|
101
|
+
*
|
|
102
|
+
* - `object` - Always "webhook"
|
|
103
|
+
* - `id` - Unique webhook identifier
|
|
104
|
+
* - `name` - Human-readable webhook name
|
|
105
|
+
* - `url` - Webhook endpoint URL
|
|
106
|
+
* - `description` - Optional description
|
|
107
|
+
* - `topics` - Array of subscribed event topics
|
|
108
|
+
* - `status` - Current status ("active", "paused", "suspended")
|
|
109
|
+
* - `requestConfig` - Request configuration (timeout, headers)
|
|
110
|
+
* - `lastStatus` - Last delivery attempt status
|
|
111
|
+
* - `health` - Health metrics
|
|
112
|
+
* - `createdAt` - Creation timestamp
|
|
113
|
+
* - `updatedAt` - Last update timestamp
|
|
114
|
+
*
|
|
115
|
+
* The response includes the webhook signing secret for payload verification.
|
|
116
|
+
*
|
|
117
|
+
* ### Example
|
|
118
|
+
*
|
|
119
|
+
* ```json
|
|
120
|
+
* {
|
|
121
|
+
* "object": "webhook",
|
|
122
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
123
|
+
* "name": "Production Webhook",
|
|
124
|
+
* "url": "https://example.com/webhooks",
|
|
125
|
+
* "description": "Handles all production events",
|
|
126
|
+
* "topics": ["post.created", "post.updated"],
|
|
127
|
+
* "status": "active",
|
|
128
|
+
* "requestConfig": {
|
|
129
|
+
* "timeoutMs": 5000,
|
|
130
|
+
* "headers": {}
|
|
131
|
+
* },
|
|
132
|
+
* "lastStatus": {
|
|
133
|
+
* "code": 200,
|
|
134
|
+
* "message": "Success",
|
|
135
|
+
* "timestamp": "2025-01-15T10:30:00.000Z"
|
|
136
|
+
* },
|
|
137
|
+
* "health": {
|
|
138
|
+
* "lastResponseTime": 150,
|
|
139
|
+
* "avgResponseTime": 200,
|
|
140
|
+
* "lastSuccessAt": "2025-01-15T10:30:00.000Z",
|
|
141
|
+
* "errorsSinceLastSuccess": 0,
|
|
142
|
+
* "consecutiveFailures": 0
|
|
143
|
+
* },
|
|
144
|
+
* "createdAt": "2025-01-01T00:00:00.000Z",
|
|
145
|
+
* "updatedAt": "2025-01-15T10:30:00.000Z"
|
|
146
|
+
* }
|
|
147
|
+
* ```
|
|
148
|
+
*
|
|
149
|
+
* ### Version Availability
|
|
150
|
+
*
|
|
151
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* ```ts
|
|
155
|
+
* const webhook = await client.webhooks.retrieve(
|
|
156
|
+
* '507f1f77bcf86cd799439011',
|
|
157
|
+
* );
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
retrieve(id: string, params?: WebhookRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Webhook>;
|
|
161
|
+
/**
|
|
162
|
+
* Updates a webhook's properties. Supports partial updates - only provided fields
|
|
163
|
+
* will be updated.
|
|
164
|
+
*
|
|
165
|
+
* ### Path Parameters
|
|
166
|
+
*
|
|
167
|
+
* - `id` - The webhook ID (24-character ObjectId)
|
|
168
|
+
*
|
|
169
|
+
* ### Request Body
|
|
170
|
+
*
|
|
171
|
+
* All fields are optional. Only provided fields will be updated.
|
|
172
|
+
*
|
|
173
|
+
* | Field | Type | Description |
|
|
174
|
+
* | ----------------------- | ----------- | -------------------------------------------------- |
|
|
175
|
+
* | `name` | string | Human-readable name (max 100 chars) |
|
|
176
|
+
* | `url` | string | Webhook endpoint URL (must be HTTPS) |
|
|
177
|
+
* | `description` | string/null | Description (null to clear) |
|
|
178
|
+
* | `topics` | string[] | Event topics to subscribe to |
|
|
179
|
+
* | `status` | string | "active" to reactivate, "paused" to pause delivery |
|
|
180
|
+
* | `requestConfig` | object | Request configuration |
|
|
181
|
+
* | `requestConfig.headers` | object | Custom headers to send (max 10) |
|
|
182
|
+
*
|
|
183
|
+
* ### Pausing and Reactivating Webhooks
|
|
184
|
+
*
|
|
185
|
+
* You can pause a webhook to temporarily stop receiving events:
|
|
186
|
+
*
|
|
187
|
+
* ```json
|
|
188
|
+
* {
|
|
189
|
+
* "status": "paused"
|
|
190
|
+
* }
|
|
191
|
+
* ```
|
|
192
|
+
*
|
|
193
|
+
* Webhooks may also be automatically paused or suspended due to delivery failures.
|
|
194
|
+
* To reactivate:
|
|
195
|
+
*
|
|
196
|
+
* ```json
|
|
197
|
+
* {
|
|
198
|
+
* "status": "active"
|
|
199
|
+
* }
|
|
200
|
+
* ```
|
|
201
|
+
*
|
|
202
|
+
* Reactivating a webhook resets the health metrics and allows it to receive events
|
|
203
|
+
* again.
|
|
204
|
+
*
|
|
205
|
+
* ### Example: Update Topics
|
|
206
|
+
*
|
|
207
|
+
* ```json
|
|
208
|
+
* {
|
|
209
|
+
* "topics": ["post.created", "post.updated", "post.deleted"]
|
|
210
|
+
* }
|
|
211
|
+
* ```
|
|
212
|
+
*
|
|
213
|
+
* ### Example: Update Request Config
|
|
214
|
+
*
|
|
215
|
+
* ```json
|
|
216
|
+
* {
|
|
217
|
+
* "requestConfig": {
|
|
218
|
+
* "headers": {
|
|
219
|
+
* "X-Custom-Header": "new-value"
|
|
220
|
+
* }
|
|
221
|
+
* }
|
|
222
|
+
* }
|
|
223
|
+
* ```
|
|
224
|
+
*
|
|
225
|
+
* ### Version Availability
|
|
226
|
+
*
|
|
227
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
228
|
+
*
|
|
229
|
+
* @example
|
|
230
|
+
* ```ts
|
|
231
|
+
* const webhook = await client.webhooks.update(
|
|
232
|
+
* '507f1f77bcf86cd799439011',
|
|
233
|
+
* );
|
|
234
|
+
* ```
|
|
235
|
+
*/
|
|
236
|
+
update(id: string, params: WebhookUpdateParams, options?: RequestOptions): APIPromise<Webhook>;
|
|
237
|
+
/**
|
|
238
|
+
* Returns a list of webhooks in your organization using cursor-based pagination.
|
|
239
|
+
*
|
|
240
|
+
* ### Query Parameters
|
|
241
|
+
*
|
|
242
|
+
* - `limit` - Number of webhooks to return (1-100, default 10)
|
|
243
|
+
* - `cursor` - Cursor from previous response for pagination
|
|
244
|
+
* - `status` - Filter by status: "active", "paused", or "suspended"
|
|
245
|
+
*
|
|
246
|
+
* ### Response Format
|
|
247
|
+
*
|
|
248
|
+
* Returns a list object with:
|
|
249
|
+
*
|
|
250
|
+
* - `object` - Always "list"
|
|
251
|
+
* - `data` - Array of webhook objects
|
|
252
|
+
* - `nextCursor` - Cursor for the next page, or null if no more results
|
|
253
|
+
*
|
|
254
|
+
* ### Webhook Object
|
|
255
|
+
*
|
|
256
|
+
* Each webhook includes:
|
|
257
|
+
*
|
|
258
|
+
* - `id` - Unique webhook identifier
|
|
259
|
+
* - `name` - Human-readable webhook name
|
|
260
|
+
* - `url` - Webhook endpoint URL
|
|
261
|
+
* - `topics` - Array of subscribed event topics
|
|
262
|
+
* - `status` - Current status ("active", "paused", "suspended")
|
|
263
|
+
* - `health` - Health metrics (response times, error counts)
|
|
264
|
+
* - `createdAt` - Creation timestamp
|
|
265
|
+
* - `updatedAt` - Last update timestamp
|
|
266
|
+
*
|
|
267
|
+
* ### Example
|
|
268
|
+
*
|
|
269
|
+
* ```json
|
|
270
|
+
* {
|
|
271
|
+
* "object": "list",
|
|
272
|
+
* "data": [
|
|
273
|
+
* {
|
|
274
|
+
* "object": "webhook",
|
|
275
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
276
|
+
* "name": "Production Webhook",
|
|
277
|
+
* "url": "https://example.com/webhooks",
|
|
278
|
+
* "topics": ["post.created", "post.updated"],
|
|
279
|
+
* "status": "active",
|
|
280
|
+
* ...
|
|
281
|
+
* }
|
|
282
|
+
* ],
|
|
283
|
+
* "nextCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMSJ9"
|
|
284
|
+
* }
|
|
285
|
+
* ```
|
|
286
|
+
*
|
|
287
|
+
* ### Version Availability
|
|
288
|
+
*
|
|
289
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
290
|
+
*
|
|
291
|
+
* @example
|
|
292
|
+
* ```ts
|
|
293
|
+
* const webhooks = await client.webhooks.list();
|
|
294
|
+
* ```
|
|
295
|
+
*/
|
|
296
|
+
list(params?: WebhookListParams | null | undefined, options?: RequestOptions): APIPromise<WebhookListResponse>;
|
|
297
|
+
/**
|
|
298
|
+
* Permanently deletes a webhook.
|
|
299
|
+
*
|
|
300
|
+
* ### Path Parameters
|
|
301
|
+
*
|
|
302
|
+
* - `id` - The webhook ID (24-character ObjectId)
|
|
303
|
+
*
|
|
304
|
+
* ### Response
|
|
305
|
+
*
|
|
306
|
+
* Returns a deletion confirmation object:
|
|
307
|
+
*
|
|
308
|
+
* ```json
|
|
309
|
+
* {
|
|
310
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
311
|
+
* "object": "webhook",
|
|
312
|
+
* "deleted": true
|
|
313
|
+
* }
|
|
314
|
+
* ```
|
|
315
|
+
*
|
|
316
|
+
* ### Caution
|
|
317
|
+
*
|
|
318
|
+
* This operation is **irreversible**. The webhook and its configuration will be
|
|
319
|
+
* permanently deleted. After deletion, no events will be sent to the webhook
|
|
320
|
+
* endpoint.
|
|
321
|
+
*
|
|
322
|
+
* ### Version Availability
|
|
323
|
+
*
|
|
324
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
325
|
+
*
|
|
326
|
+
* @example
|
|
327
|
+
* ```ts
|
|
328
|
+
* const webhook = await client.webhooks.delete(
|
|
329
|
+
* '507f1f77bcf86cd799439011',
|
|
330
|
+
* );
|
|
331
|
+
* ```
|
|
332
|
+
*/
|
|
333
|
+
delete(id: string, params?: WebhookDeleteParams | null | undefined, options?: RequestOptions): APIPromise<WebhookDeleteResponse>;
|
|
334
|
+
/**
|
|
335
|
+
* Generates a new signing secret for a webhook. The previous secret is immediately
|
|
336
|
+
* invalidated.
|
|
337
|
+
*
|
|
338
|
+
* ### Path Parameters
|
|
339
|
+
*
|
|
340
|
+
* - `id` - The webhook ID (24-character ObjectId)
|
|
341
|
+
*
|
|
342
|
+
* ### Response
|
|
343
|
+
*
|
|
344
|
+
* Returns the updated webhook object, including the new signing secret.
|
|
345
|
+
*
|
|
346
|
+
* ### Important
|
|
347
|
+
*
|
|
348
|
+
* After refreshing the secret, any integrations that verify webhook signatures
|
|
349
|
+
* using the old secret will stop working until they are updated with the new
|
|
350
|
+
* secret.
|
|
351
|
+
*
|
|
352
|
+
* ### Example Response
|
|
353
|
+
*
|
|
354
|
+
* ```json
|
|
355
|
+
* {
|
|
356
|
+
* "object": "webhook",
|
|
357
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
358
|
+
* "name": "Production Webhook",
|
|
359
|
+
* "url": "https://example.com/webhooks",
|
|
360
|
+
* "secret": "whsec_newSecret123abc456def",
|
|
361
|
+
* "topics": ["post.created", "post.updated"],
|
|
362
|
+
* "status": "active",
|
|
363
|
+
* ...
|
|
364
|
+
* }
|
|
365
|
+
* ```
|
|
366
|
+
*
|
|
367
|
+
* ### Version Availability
|
|
368
|
+
*
|
|
369
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
370
|
+
*
|
|
371
|
+
* @example
|
|
372
|
+
* ```ts
|
|
373
|
+
* const webhook = await client.webhooks.refreshSecret(
|
|
374
|
+
* '507f1f77bcf86cd799439011',
|
|
375
|
+
* );
|
|
376
|
+
* ```
|
|
377
|
+
*/
|
|
378
|
+
refreshSecret(id: string, params?: WebhookRefreshSecretParams | null | undefined, options?: RequestOptions): APIPromise<Webhook>;
|
|
379
|
+
}
|
|
380
|
+
export interface Webhook {
|
|
381
|
+
/**
|
|
382
|
+
* Unique identifier
|
|
383
|
+
*/
|
|
384
|
+
id: string;
|
|
385
|
+
/**
|
|
386
|
+
* ISO timestamp when the webhook was created
|
|
387
|
+
*/
|
|
388
|
+
createdAt: string;
|
|
389
|
+
/**
|
|
390
|
+
* Optional description of the webhook purpose
|
|
391
|
+
*/
|
|
392
|
+
description: string | null;
|
|
393
|
+
health: Webhook.Health;
|
|
394
|
+
/**
|
|
395
|
+
* Last delivery attempt status
|
|
396
|
+
*/
|
|
397
|
+
lastStatus: Webhook.LastStatus | null;
|
|
398
|
+
/**
|
|
399
|
+
* Human-readable webhook name
|
|
400
|
+
*/
|
|
401
|
+
name: string;
|
|
402
|
+
/**
|
|
403
|
+
* Object type identifier
|
|
404
|
+
*/
|
|
405
|
+
object: 'webhook';
|
|
406
|
+
requestConfig: Webhook.RequestConfig;
|
|
407
|
+
/**
|
|
408
|
+
* Webhook signing secret for verifying payloads
|
|
409
|
+
*/
|
|
410
|
+
secret: string;
|
|
411
|
+
/**
|
|
412
|
+
* Current status of the webhook
|
|
413
|
+
*/
|
|
414
|
+
status: 'active' | 'paused' | 'suspended';
|
|
415
|
+
/**
|
|
416
|
+
* Array of event topics the webhook subscribes to
|
|
417
|
+
*/
|
|
418
|
+
topics: Array<'post.created' | 'post.updated' | 'post.deleted' | 'post.voted' | 'ticket.created' | 'ticket.updated' | 'ticket.deleted' | 'changelog.published' | 'comment.created' | 'comment.updated' | 'comment.deleted' | 'conversation.user.created' | 'conversation.user.replied' | 'conversation.admin.replied' | 'conversation.admin.closed' | 'conversation.handover_requested' | 'conversation.admin.assigned' | 'conversation.admin.noted' | 'conversation.admin.snoozed' | 'conversation.admin.unsnoozed' | 'conversation.admin.opened' | 'conversation.priority.updated' | 'conversation.deleted' | 'conversation.contact.attached' | 'conversation.contact.detached' | 'conversation.read' | 'conversation_part.redacted'>;
|
|
419
|
+
/**
|
|
420
|
+
* ISO timestamp when the webhook was last updated
|
|
421
|
+
*/
|
|
422
|
+
updatedAt: string;
|
|
423
|
+
/**
|
|
424
|
+
* Webhook endpoint URL
|
|
425
|
+
*/
|
|
426
|
+
url: string;
|
|
427
|
+
/**
|
|
428
|
+
* API version for webhook payloads
|
|
429
|
+
*/
|
|
430
|
+
version: string;
|
|
431
|
+
}
|
|
432
|
+
export declare namespace Webhook {
|
|
433
|
+
interface Health {
|
|
434
|
+
/**
|
|
435
|
+
* Average response time in milliseconds
|
|
436
|
+
*/
|
|
437
|
+
avgResponseTime: number;
|
|
438
|
+
/**
|
|
439
|
+
* Number of consecutive delivery failures
|
|
440
|
+
*/
|
|
441
|
+
consecutiveFailures: number;
|
|
442
|
+
/**
|
|
443
|
+
* Number of errors since last successful delivery
|
|
444
|
+
*/
|
|
445
|
+
errorsSinceLastSuccess: number;
|
|
446
|
+
/**
|
|
447
|
+
* Last response time in milliseconds
|
|
448
|
+
*/
|
|
449
|
+
lastResponseTime: number;
|
|
450
|
+
/**
|
|
451
|
+
* ISO timestamp of last successful delivery
|
|
452
|
+
*/
|
|
453
|
+
lastSuccessAt: string | null;
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Last delivery attempt status
|
|
457
|
+
*/
|
|
458
|
+
interface LastStatus {
|
|
459
|
+
/**
|
|
460
|
+
* HTTP status code from last delivery attempt
|
|
461
|
+
*/
|
|
462
|
+
code: number;
|
|
463
|
+
/**
|
|
464
|
+
* Status message from last delivery attempt
|
|
465
|
+
*/
|
|
466
|
+
message: string;
|
|
467
|
+
/**
|
|
468
|
+
* ISO timestamp of last status update
|
|
469
|
+
*/
|
|
470
|
+
timestamp: string;
|
|
471
|
+
}
|
|
472
|
+
interface RequestConfig {
|
|
473
|
+
/**
|
|
474
|
+
* Request timeout in milliseconds (1000-30000)
|
|
475
|
+
*/
|
|
476
|
+
timeoutMs: number;
|
|
477
|
+
/**
|
|
478
|
+
* Custom headers to send with webhook requests
|
|
479
|
+
*/
|
|
480
|
+
headers?: {
|
|
481
|
+
[key: string]: string;
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* Request configuration for webhook delivery
|
|
487
|
+
*/
|
|
488
|
+
export interface WebhookRequestConfigInput {
|
|
489
|
+
/**
|
|
490
|
+
* Custom headers to send with webhook requests (max 10)
|
|
491
|
+
*/
|
|
492
|
+
headers?: {
|
|
493
|
+
[key: string]: string;
|
|
494
|
+
};
|
|
495
|
+
}
|
|
496
|
+
export interface WebhookListResponse {
|
|
497
|
+
/**
|
|
498
|
+
* Array of webhooks
|
|
499
|
+
*/
|
|
500
|
+
data: Array<Webhook>;
|
|
501
|
+
/**
|
|
502
|
+
* Cursor for fetching the next page (cursor-based pagination)
|
|
503
|
+
*/
|
|
504
|
+
nextCursor: string | null;
|
|
505
|
+
/**
|
|
506
|
+
* Object type identifier
|
|
507
|
+
*/
|
|
508
|
+
object: 'list';
|
|
509
|
+
}
|
|
510
|
+
export interface WebhookDeleteResponse {
|
|
511
|
+
/**
|
|
512
|
+
* Unique identifier of the deleted webhook
|
|
513
|
+
*/
|
|
514
|
+
id: string;
|
|
515
|
+
/**
|
|
516
|
+
* Indicates the resource was deleted
|
|
517
|
+
*/
|
|
518
|
+
deleted: true;
|
|
519
|
+
/**
|
|
520
|
+
* Object type identifier
|
|
521
|
+
*/
|
|
522
|
+
object: 'webhook';
|
|
523
|
+
}
|
|
524
|
+
export interface WebhookCreateParams {
|
|
525
|
+
/**
|
|
526
|
+
* Body param: Human-readable name for the webhook
|
|
527
|
+
*/
|
|
528
|
+
name: string;
|
|
529
|
+
/**
|
|
530
|
+
* Body param: Array of event topics to subscribe to
|
|
531
|
+
*/
|
|
532
|
+
topics: Array<'post.created' | 'post.updated' | 'post.deleted' | 'post.voted' | 'ticket.created' | 'ticket.updated' | 'ticket.deleted' | 'changelog.published' | 'comment.created' | 'comment.updated' | 'comment.deleted' | 'conversation.user.created' | 'conversation.user.replied' | 'conversation.admin.replied' | 'conversation.admin.closed' | 'conversation.handover_requested' | 'conversation.admin.assigned' | 'conversation.admin.noted' | 'conversation.admin.snoozed' | 'conversation.admin.unsnoozed' | 'conversation.admin.opened' | 'conversation.priority.updated' | 'conversation.deleted' | 'conversation.contact.attached' | 'conversation.contact.detached' | 'conversation.read' | 'conversation_part.redacted'>;
|
|
533
|
+
/**
|
|
534
|
+
* Body param: Webhook endpoint URL (must be HTTPS)
|
|
535
|
+
*/
|
|
536
|
+
url: string;
|
|
537
|
+
/**
|
|
538
|
+
* Body param: Optional description of the webhook purpose
|
|
539
|
+
*/
|
|
540
|
+
description?: string;
|
|
541
|
+
/**
|
|
542
|
+
* Body param: Request configuration for webhook delivery
|
|
543
|
+
*/
|
|
544
|
+
requestConfig?: WebhookRequestConfigInput;
|
|
545
|
+
/**
|
|
546
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
547
|
+
* configured API version if not specified.
|
|
548
|
+
*/
|
|
549
|
+
'Featurebase-Version'?: string;
|
|
550
|
+
}
|
|
551
|
+
export interface WebhookRetrieveParams {
|
|
552
|
+
/**
|
|
553
|
+
* API version for this request. Defaults to your organization's configured API
|
|
554
|
+
* version if not specified.
|
|
555
|
+
*/
|
|
556
|
+
'Featurebase-Version'?: string;
|
|
557
|
+
}
|
|
558
|
+
export interface WebhookUpdateParams {
|
|
559
|
+
/**
|
|
560
|
+
* Body param: Optional description of the webhook purpose (null to clear)
|
|
561
|
+
*/
|
|
562
|
+
description?: string | null;
|
|
563
|
+
/**
|
|
564
|
+
* Body param: Human-readable name for the webhook
|
|
565
|
+
*/
|
|
566
|
+
name?: string;
|
|
567
|
+
/**
|
|
568
|
+
* Body param: Request configuration for webhook delivery
|
|
569
|
+
*/
|
|
570
|
+
requestConfig?: WebhookRequestConfigInput;
|
|
571
|
+
/**
|
|
572
|
+
* Body param: Set to "active" to reactivate or "paused" to pause webhook delivery
|
|
573
|
+
*/
|
|
574
|
+
status?: 'active' | 'paused';
|
|
575
|
+
/**
|
|
576
|
+
* Body param: Array of event topics to subscribe to
|
|
577
|
+
*/
|
|
578
|
+
topics?: Array<'post.created' | 'post.updated' | 'post.deleted' | 'post.voted' | 'ticket.created' | 'ticket.updated' | 'ticket.deleted' | 'changelog.published' | 'comment.created' | 'comment.updated' | 'comment.deleted' | 'conversation.user.created' | 'conversation.user.replied' | 'conversation.admin.replied' | 'conversation.admin.closed' | 'conversation.handover_requested' | 'conversation.admin.assigned' | 'conversation.admin.noted' | 'conversation.admin.snoozed' | 'conversation.admin.unsnoozed' | 'conversation.admin.opened' | 'conversation.priority.updated' | 'conversation.deleted' | 'conversation.contact.attached' | 'conversation.contact.detached' | 'conversation.read' | 'conversation_part.redacted'>;
|
|
579
|
+
/**
|
|
580
|
+
* Body param: Webhook endpoint URL (must be HTTPS)
|
|
581
|
+
*/
|
|
582
|
+
url?: string;
|
|
583
|
+
/**
|
|
584
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
585
|
+
* configured API version if not specified.
|
|
586
|
+
*/
|
|
587
|
+
'Featurebase-Version'?: string;
|
|
588
|
+
}
|
|
589
|
+
export interface WebhookListParams {
|
|
590
|
+
/**
|
|
591
|
+
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
592
|
+
* previous response to fetch the next page of results.
|
|
593
|
+
*/
|
|
594
|
+
cursor?: string;
|
|
595
|
+
/**
|
|
596
|
+
* Query param: A limit on the number of objects to be returned, between 1 and 100.
|
|
597
|
+
*/
|
|
598
|
+
limit?: number;
|
|
599
|
+
/**
|
|
600
|
+
* Query param: Filter webhooks by status
|
|
601
|
+
*/
|
|
602
|
+
status?: 'active' | 'paused' | 'suspended';
|
|
603
|
+
/**
|
|
604
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
605
|
+
* configured API version if not specified.
|
|
606
|
+
*/
|
|
607
|
+
'Featurebase-Version'?: string;
|
|
608
|
+
}
|
|
609
|
+
export interface WebhookDeleteParams {
|
|
610
|
+
/**
|
|
611
|
+
* API version for this request. Defaults to your organization's configured API
|
|
612
|
+
* version if not specified.
|
|
613
|
+
*/
|
|
614
|
+
'Featurebase-Version'?: string;
|
|
615
|
+
}
|
|
616
|
+
export interface WebhookRefreshSecretParams {
|
|
617
|
+
/**
|
|
618
|
+
* API version for this request. Defaults to your organization's configured API
|
|
619
|
+
* version if not specified.
|
|
620
|
+
*/
|
|
621
|
+
'Featurebase-Version'?: string;
|
|
622
|
+
}
|
|
623
|
+
export declare namespace Webhooks {
|
|
624
|
+
export { type Webhook as Webhook, type WebhookRequestConfigInput as WebhookRequestConfigInput, type WebhookListResponse as WebhookListResponse, type WebhookDeleteResponse as WebhookDeleteResponse, type WebhookCreateParams as WebhookCreateParams, type WebhookRetrieveParams as WebhookRetrieveParams, type WebhookUpdateParams as WebhookUpdateParams, type WebhookListParams as WebhookListParams, type WebhookDeleteParams as WebhookDeleteParams, type WebhookRefreshSecretParams as WebhookRefreshSecretParams, };
|
|
625
|
+
}
|
|
626
|
+
//# sourceMappingURL=webhooks.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiFG;IACH,MAAM,CAAC,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc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