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,1065 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as CollectionsAPI from './collections';
|
|
5
|
+
import { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { buildHeaders } from '../../internal/headers';
|
|
7
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
+
import { path } from '../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Help centers allow organizations to create and manage knowledge bases with articles and collections. Currently, Featurebase supports one help center per organization.
|
|
12
|
+
*/
|
|
13
|
+
export class Collections extends APIResource {
|
|
14
|
+
/**
|
|
15
|
+
* Creates a new collection in your organization's help center.
|
|
16
|
+
*
|
|
17
|
+
* ### Request Body
|
|
18
|
+
*
|
|
19
|
+
* Required attributes:
|
|
20
|
+
*
|
|
21
|
+
* - `name` - The name of the collection
|
|
22
|
+
*
|
|
23
|
+
* Optional attributes:
|
|
24
|
+
*
|
|
25
|
+
* - `description` - A description of the collection
|
|
26
|
+
* - `icon` - An icon object representing the collection icon (with type and value)
|
|
27
|
+
* - `parentId` - The ID of the parent collection, if any
|
|
28
|
+
* - `translations` - A dictionary of translations keyed by locale
|
|
29
|
+
*
|
|
30
|
+
* ### Response
|
|
31
|
+
*
|
|
32
|
+
* Returns the created collection object with:
|
|
33
|
+
*
|
|
34
|
+
* - `id` - Unique identifier
|
|
35
|
+
* - `name` - Collection name
|
|
36
|
+
* - `description` - Collection description
|
|
37
|
+
* - `slug` - URL slug
|
|
38
|
+
* - `icon` - Collection icon (emoji or custom)
|
|
39
|
+
* - `parentId` - Parent collection ID (null for root collections)
|
|
40
|
+
* - `helpCenterId` - ID of the help center this collection belongs to
|
|
41
|
+
* - `organization` - Organization ID
|
|
42
|
+
* - `defaultLocale` - Default locale for content
|
|
43
|
+
* - `locale` - Current locale
|
|
44
|
+
* - `availableLocales` - Array of available locales
|
|
45
|
+
* - `featurebaseUrl` - Featurebase URL for the collection
|
|
46
|
+
* - `externalUrl` - External URL if custom domain is configured
|
|
47
|
+
* - `articleCount` - Number of articles in this collection
|
|
48
|
+
* - `authorCount` - Number of authors who contributed
|
|
49
|
+
* - `order` - Display order
|
|
50
|
+
* - `translations` - Translations for different locales
|
|
51
|
+
* - `createdAt` - ISO 8601 timestamp when created
|
|
52
|
+
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const collection =
|
|
57
|
+
* await client.helpCenter.collections.create({
|
|
58
|
+
* name: 'English Collection',
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
create(params: CollectionCreateParams, options?: RequestOptions): APIPromise<Collection> {
|
|
63
|
+
const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
|
|
64
|
+
return this._client.post('/v2/help_center/collections', {
|
|
65
|
+
body,
|
|
66
|
+
...options,
|
|
67
|
+
headers: buildHeaders([
|
|
68
|
+
{ ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
|
|
69
|
+
options?.headers,
|
|
70
|
+
]),
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Retrieves a specific collection by its unique identifier.
|
|
76
|
+
*
|
|
77
|
+
* Returns the collection object if found in your organization's help center.
|
|
78
|
+
*
|
|
79
|
+
* ### Response
|
|
80
|
+
*
|
|
81
|
+
* Returns a collection object with:
|
|
82
|
+
*
|
|
83
|
+
* - `id` - Unique identifier
|
|
84
|
+
* - `name` - Collection name
|
|
85
|
+
* - `description` - Collection description
|
|
86
|
+
* - `slug` - URL slug
|
|
87
|
+
* - `icon` - Collection icon (emoji or custom)
|
|
88
|
+
* - `parentId` - Parent collection ID (null for root collections)
|
|
89
|
+
* - `helpCenterId` - ID of the help center this collection belongs to
|
|
90
|
+
* - `organization` - Organization ID
|
|
91
|
+
* - `defaultLocale` - Default locale for content
|
|
92
|
+
* - `locale` - Current locale
|
|
93
|
+
* - `availableLocales` - Array of available locales
|
|
94
|
+
* - `featurebaseUrl` - Featurebase URL for the collection
|
|
95
|
+
* - `externalUrl` - External URL if custom domain is configured
|
|
96
|
+
* - `articleCount` - Number of articles in this collection
|
|
97
|
+
* - `authorCount` - Number of authors who contributed
|
|
98
|
+
* - `order` - Display order
|
|
99
|
+
* - `translations` - Translations for different locales
|
|
100
|
+
* - `createdAt` - ISO 8601 timestamp when created
|
|
101
|
+
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
102
|
+
*
|
|
103
|
+
* ### Errors
|
|
104
|
+
*
|
|
105
|
+
* - `404` - Collection not found in your organization's help center
|
|
106
|
+
*
|
|
107
|
+
* @example
|
|
108
|
+
* ```ts
|
|
109
|
+
* const collection =
|
|
110
|
+
* await client.helpCenter.collections.retrieve('6474684');
|
|
111
|
+
* ```
|
|
112
|
+
*/
|
|
113
|
+
retrieve(
|
|
114
|
+
id: string,
|
|
115
|
+
params: CollectionRetrieveParams | null | undefined = {},
|
|
116
|
+
options?: RequestOptions,
|
|
117
|
+
): APIPromise<Collection> {
|
|
118
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
119
|
+
return this._client.get(path`/v2/help_center/collections/${id}`, {
|
|
120
|
+
...options,
|
|
121
|
+
headers: buildHeaders([
|
|
122
|
+
{ ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
|
|
123
|
+
options?.headers,
|
|
124
|
+
]),
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Updates an existing collection. Only include the fields you wish to update.
|
|
130
|
+
*
|
|
131
|
+
* ### Path Parameters
|
|
132
|
+
*
|
|
133
|
+
* - `id` - The unique identifier of the collection to update
|
|
134
|
+
*
|
|
135
|
+
* ### Request Body
|
|
136
|
+
*
|
|
137
|
+
* All fields are optional. Only provided fields will be updated:
|
|
138
|
+
*
|
|
139
|
+
* - `name` - The new name of the collection
|
|
140
|
+
* - `description` - The new description of the collection
|
|
141
|
+
* - `icon` - An updated icon object for the collection (with type and value)
|
|
142
|
+
* - `parentId` - The new parent collection ID, if applicable (null for root level)
|
|
143
|
+
* - `translations` - A dictionary of updated translations keyed by locale code
|
|
144
|
+
*
|
|
145
|
+
* ### Response
|
|
146
|
+
*
|
|
147
|
+
* Returns the updated collection object with:
|
|
148
|
+
*
|
|
149
|
+
* - `id` - Unique identifier
|
|
150
|
+
* - `name` - Collection name
|
|
151
|
+
* - `description` - Collection description
|
|
152
|
+
* - `slug` - URL slug
|
|
153
|
+
* - `icon` - Collection icon (emoji or custom)
|
|
154
|
+
* - `parentId` - Parent collection ID (null for root collections)
|
|
155
|
+
* - `helpCenterId` - ID of the help center this collection belongs to
|
|
156
|
+
* - `organization` - Organization ID
|
|
157
|
+
* - `defaultLocale` - Default locale for content
|
|
158
|
+
* - `locale` - Current locale
|
|
159
|
+
* - `availableLocales` - Array of available locales
|
|
160
|
+
* - `featurebaseUrl` - Featurebase URL for the collection
|
|
161
|
+
* - `externalUrl` - External URL if custom domain is configured
|
|
162
|
+
* - `articleCount` - Number of articles in this collection
|
|
163
|
+
* - `authorCount` - Number of authors who contributed
|
|
164
|
+
* - `order` - Display order
|
|
165
|
+
* - `translations` - Translations for different locales
|
|
166
|
+
* - `createdAt` - ISO 8601 timestamp when created
|
|
167
|
+
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
168
|
+
*
|
|
169
|
+
* ### Errors
|
|
170
|
+
*
|
|
171
|
+
* - `404` - Collection not found in your organization's help center
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* ```ts
|
|
175
|
+
* const collection =
|
|
176
|
+
* await client.helpCenter.collections.update('3416135');
|
|
177
|
+
* ```
|
|
178
|
+
*/
|
|
179
|
+
update(id: string, params: CollectionUpdateParams, options?: RequestOptions): APIPromise<Collection> {
|
|
180
|
+
const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
|
|
181
|
+
return this._client.patch(path`/v2/help_center/collections/${id}`, {
|
|
182
|
+
body,
|
|
183
|
+
...options,
|
|
184
|
+
headers: buildHeaders([
|
|
185
|
+
{ ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
|
|
186
|
+
options?.headers,
|
|
187
|
+
]),
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Returns a paginated list of collections within your organization's help center.
|
|
193
|
+
*
|
|
194
|
+
* Collections are used to organize articles into logical groups.
|
|
195
|
+
*
|
|
196
|
+
* ### Query Parameters
|
|
197
|
+
*
|
|
198
|
+
* - `limit` - Number of items to return (1-100, default 10)
|
|
199
|
+
* - `cursor` - Cursor for pagination
|
|
200
|
+
*
|
|
201
|
+
* ### Response Format
|
|
202
|
+
*
|
|
203
|
+
* Returns a list object with:
|
|
204
|
+
*
|
|
205
|
+
* - `object` - Always "list"
|
|
206
|
+
* - `data` - Array of collection objects
|
|
207
|
+
* - `nextCursor` - Cursor for next page (null if no more results)
|
|
208
|
+
*
|
|
209
|
+
* ### Collection Object
|
|
210
|
+
*
|
|
211
|
+
* Each collection includes:
|
|
212
|
+
*
|
|
213
|
+
* - `id` - Unique identifier
|
|
214
|
+
* - `name` - Collection name
|
|
215
|
+
* - `description` - Collection description
|
|
216
|
+
* - `slug` - URL slug
|
|
217
|
+
* - `icon` - Collection icon (emoji or custom)
|
|
218
|
+
* - `parentId` - Parent collection ID (null for root collections)
|
|
219
|
+
* - `helpCenterId` - ID of the help center this collection belongs to
|
|
220
|
+
* - `organization` - Organization ID
|
|
221
|
+
* - `defaultLocale` - Default locale for content
|
|
222
|
+
* - `locale` - Current locale
|
|
223
|
+
* - `availableLocales` - Array of available locales
|
|
224
|
+
* - `featurebaseUrl` - Featurebase URL for the collection
|
|
225
|
+
* - `externalUrl` - External URL if custom domain is configured
|
|
226
|
+
* - `articleCount` - Number of articles in this collection
|
|
227
|
+
* - `authorCount` - Number of authors who contributed
|
|
228
|
+
* - `order` - Display order
|
|
229
|
+
* - `translations` - Translations for different locales
|
|
230
|
+
* - `createdAt` - ISO 8601 timestamp when created
|
|
231
|
+
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
232
|
+
*
|
|
233
|
+
* @example
|
|
234
|
+
* ```ts
|
|
235
|
+
* const collections =
|
|
236
|
+
* await client.helpCenter.collections.list();
|
|
237
|
+
* ```
|
|
238
|
+
*/
|
|
239
|
+
list(
|
|
240
|
+
params: CollectionListParams | null | undefined = {},
|
|
241
|
+
options?: RequestOptions,
|
|
242
|
+
): APIPromise<CollectionListResponse> {
|
|
243
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
244
|
+
return this._client.get('/v2/help_center/collections', {
|
|
245
|
+
query,
|
|
246
|
+
...options,
|
|
247
|
+
headers: buildHeaders([
|
|
248
|
+
{ ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
|
|
249
|
+
options?.headers,
|
|
250
|
+
]),
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Deletes an existing collection.
|
|
256
|
+
*
|
|
257
|
+
* ### Path Parameters
|
|
258
|
+
*
|
|
259
|
+
* - `id` - The unique identifier of the collection to delete
|
|
260
|
+
*
|
|
261
|
+
* ### Response
|
|
262
|
+
*
|
|
263
|
+
* Returns a deletion confirmation object:
|
|
264
|
+
*
|
|
265
|
+
* - `id` - The ID of the deleted collection
|
|
266
|
+
* - `object` - Always "collection"
|
|
267
|
+
* - `deleted` - Always true
|
|
268
|
+
*
|
|
269
|
+
* ### Errors
|
|
270
|
+
*
|
|
271
|
+
* - `404` - Collection not found in your organization's help center
|
|
272
|
+
*
|
|
273
|
+
* @example
|
|
274
|
+
* ```ts
|
|
275
|
+
* const collection =
|
|
276
|
+
* await client.helpCenter.collections.delete('3416135');
|
|
277
|
+
* ```
|
|
278
|
+
*/
|
|
279
|
+
delete(
|
|
280
|
+
id: string,
|
|
281
|
+
params: CollectionDeleteParams | null | undefined = {},
|
|
282
|
+
options?: RequestOptions,
|
|
283
|
+
): APIPromise<CollectionDeleteResponse> {
|
|
284
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
285
|
+
return this._client.delete(path`/v2/help_center/collections/${id}`, {
|
|
286
|
+
...options,
|
|
287
|
+
headers: buildHeaders([
|
|
288
|
+
{ ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
|
|
289
|
+
options?.headers,
|
|
290
|
+
]),
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export interface Collection {
|
|
296
|
+
/**
|
|
297
|
+
* Collection unique identifier
|
|
298
|
+
*/
|
|
299
|
+
id: string;
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Available locales
|
|
303
|
+
*/
|
|
304
|
+
availableLocales: Array<
|
|
305
|
+
| 'bn'
|
|
306
|
+
| 'bs'
|
|
307
|
+
| 'pt-BR'
|
|
308
|
+
| 'bg'
|
|
309
|
+
| 'ca'
|
|
310
|
+
| 'hr'
|
|
311
|
+
| 'cs'
|
|
312
|
+
| 'da'
|
|
313
|
+
| 'nl'
|
|
314
|
+
| 'en'
|
|
315
|
+
| 'et'
|
|
316
|
+
| 'fi'
|
|
317
|
+
| 'fr'
|
|
318
|
+
| 'de'
|
|
319
|
+
| 'el'
|
|
320
|
+
| 'hi'
|
|
321
|
+
| 'hu'
|
|
322
|
+
| 'id'
|
|
323
|
+
| 'it'
|
|
324
|
+
| 'ja'
|
|
325
|
+
| 'ko'
|
|
326
|
+
| 'lv'
|
|
327
|
+
| 'lt'
|
|
328
|
+
| 'ms'
|
|
329
|
+
| 'mn'
|
|
330
|
+
| 'nb'
|
|
331
|
+
| 'pl'
|
|
332
|
+
| 'pt'
|
|
333
|
+
| 'ro'
|
|
334
|
+
| 'ru'
|
|
335
|
+
| 'sr'
|
|
336
|
+
| 'zh-CN'
|
|
337
|
+
| 'sk'
|
|
338
|
+
| 'sl'
|
|
339
|
+
| 'es'
|
|
340
|
+
| 'sw'
|
|
341
|
+
| 'sv'
|
|
342
|
+
| 'th'
|
|
343
|
+
| 'zh-TW'
|
|
344
|
+
| 'tr'
|
|
345
|
+
| 'uk'
|
|
346
|
+
| 'vi'
|
|
347
|
+
>;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* ISO 8601 timestamp when created
|
|
351
|
+
*/
|
|
352
|
+
createdAt: string;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Help center ID
|
|
356
|
+
*/
|
|
357
|
+
helpCenterId: string;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Current locale
|
|
361
|
+
*/
|
|
362
|
+
locale:
|
|
363
|
+
| 'bn'
|
|
364
|
+
| 'bs'
|
|
365
|
+
| 'pt-BR'
|
|
366
|
+
| 'bg'
|
|
367
|
+
| 'ca'
|
|
368
|
+
| 'hr'
|
|
369
|
+
| 'cs'
|
|
370
|
+
| 'da'
|
|
371
|
+
| 'nl'
|
|
372
|
+
| 'en'
|
|
373
|
+
| 'et'
|
|
374
|
+
| 'fi'
|
|
375
|
+
| 'fr'
|
|
376
|
+
| 'de'
|
|
377
|
+
| 'el'
|
|
378
|
+
| 'hi'
|
|
379
|
+
| 'hu'
|
|
380
|
+
| 'id'
|
|
381
|
+
| 'it'
|
|
382
|
+
| 'ja'
|
|
383
|
+
| 'ko'
|
|
384
|
+
| 'lv'
|
|
385
|
+
| 'lt'
|
|
386
|
+
| 'ms'
|
|
387
|
+
| 'mn'
|
|
388
|
+
| 'nb'
|
|
389
|
+
| 'pl'
|
|
390
|
+
| 'pt'
|
|
391
|
+
| 'ro'
|
|
392
|
+
| 'ru'
|
|
393
|
+
| 'sr'
|
|
394
|
+
| 'zh-CN'
|
|
395
|
+
| 'sk'
|
|
396
|
+
| 'sl'
|
|
397
|
+
| 'es'
|
|
398
|
+
| 'sw'
|
|
399
|
+
| 'sv'
|
|
400
|
+
| 'th'
|
|
401
|
+
| 'zh-TW'
|
|
402
|
+
| 'tr'
|
|
403
|
+
| 'uk'
|
|
404
|
+
| 'vi';
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Object type identifier
|
|
408
|
+
*/
|
|
409
|
+
object: 'collection';
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Organization ID
|
|
413
|
+
*/
|
|
414
|
+
organization: string;
|
|
415
|
+
|
|
416
|
+
/**
|
|
417
|
+
* Parent collection ID
|
|
418
|
+
*/
|
|
419
|
+
parentId: string | null;
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* ISO 8601 timestamp when last updated
|
|
423
|
+
*/
|
|
424
|
+
updatedAt: string;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Number of articles
|
|
428
|
+
*/
|
|
429
|
+
articleCount?: number;
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Number of authors
|
|
433
|
+
*/
|
|
434
|
+
authorCount?: number;
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Whether to collapse sidebar
|
|
438
|
+
*/
|
|
439
|
+
collapseSidebar?: boolean;
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* Default locale
|
|
443
|
+
*/
|
|
444
|
+
defaultLocale?:
|
|
445
|
+
| 'bn'
|
|
446
|
+
| 'bs'
|
|
447
|
+
| 'pt-BR'
|
|
448
|
+
| 'bg'
|
|
449
|
+
| 'ca'
|
|
450
|
+
| 'hr'
|
|
451
|
+
| 'cs'
|
|
452
|
+
| 'da'
|
|
453
|
+
| 'nl'
|
|
454
|
+
| 'en'
|
|
455
|
+
| 'et'
|
|
456
|
+
| 'fi'
|
|
457
|
+
| 'fr'
|
|
458
|
+
| 'de'
|
|
459
|
+
| 'el'
|
|
460
|
+
| 'hi'
|
|
461
|
+
| 'hu'
|
|
462
|
+
| 'id'
|
|
463
|
+
| 'it'
|
|
464
|
+
| 'ja'
|
|
465
|
+
| 'ko'
|
|
466
|
+
| 'lv'
|
|
467
|
+
| 'lt'
|
|
468
|
+
| 'ms'
|
|
469
|
+
| 'mn'
|
|
470
|
+
| 'nb'
|
|
471
|
+
| 'pl'
|
|
472
|
+
| 'pt'
|
|
473
|
+
| 'ro'
|
|
474
|
+
| 'ru'
|
|
475
|
+
| 'sr'
|
|
476
|
+
| 'zh-CN'
|
|
477
|
+
| 'sk'
|
|
478
|
+
| 'sl'
|
|
479
|
+
| 'es'
|
|
480
|
+
| 'sw'
|
|
481
|
+
| 'sv'
|
|
482
|
+
| 'th'
|
|
483
|
+
| 'zh-TW'
|
|
484
|
+
| 'tr'
|
|
485
|
+
| 'uk'
|
|
486
|
+
| 'vi';
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* Collection description
|
|
490
|
+
*/
|
|
491
|
+
description?: string;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* External URL
|
|
495
|
+
*/
|
|
496
|
+
externalUrl?: string;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Featurebase URL
|
|
500
|
+
*/
|
|
501
|
+
featurebaseUrl?: string;
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Collection icon
|
|
505
|
+
*/
|
|
506
|
+
icon?: Collection.Icon | null;
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Collection name
|
|
510
|
+
*/
|
|
511
|
+
name?: string;
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* Display order
|
|
515
|
+
*/
|
|
516
|
+
order?: number | null;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Collection path
|
|
520
|
+
*/
|
|
521
|
+
path?: string;
|
|
522
|
+
|
|
523
|
+
/**
|
|
524
|
+
* URL slug
|
|
525
|
+
*/
|
|
526
|
+
slug?: string;
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Translations by locale code
|
|
530
|
+
*/
|
|
531
|
+
translations?: Collection.Translations;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
export namespace Collection {
|
|
535
|
+
/**
|
|
536
|
+
* Collection icon
|
|
537
|
+
*/
|
|
538
|
+
export interface Icon {
|
|
539
|
+
/**
|
|
540
|
+
* Icon type
|
|
541
|
+
*/
|
|
542
|
+
type: string;
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Icon value
|
|
546
|
+
*/
|
|
547
|
+
value: string;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* Translations by locale code
|
|
552
|
+
*/
|
|
553
|
+
export interface Translations {
|
|
554
|
+
id?: CollectionsAPI.CollectionTranslation;
|
|
555
|
+
|
|
556
|
+
bg?: CollectionsAPI.CollectionTranslation;
|
|
557
|
+
|
|
558
|
+
bn?: CollectionsAPI.CollectionTranslation;
|
|
559
|
+
|
|
560
|
+
bs?: CollectionsAPI.CollectionTranslation;
|
|
561
|
+
|
|
562
|
+
ca?: CollectionsAPI.CollectionTranslation;
|
|
563
|
+
|
|
564
|
+
cs?: CollectionsAPI.CollectionTranslation;
|
|
565
|
+
|
|
566
|
+
da?: CollectionsAPI.CollectionTranslation;
|
|
567
|
+
|
|
568
|
+
de?: CollectionsAPI.CollectionTranslation;
|
|
569
|
+
|
|
570
|
+
el?: CollectionsAPI.CollectionTranslation;
|
|
571
|
+
|
|
572
|
+
en?: CollectionsAPI.CollectionTranslation;
|
|
573
|
+
|
|
574
|
+
es?: CollectionsAPI.CollectionTranslation;
|
|
575
|
+
|
|
576
|
+
et?: CollectionsAPI.CollectionTranslation;
|
|
577
|
+
|
|
578
|
+
fi?: CollectionsAPI.CollectionTranslation;
|
|
579
|
+
|
|
580
|
+
fr?: CollectionsAPI.CollectionTranslation;
|
|
581
|
+
|
|
582
|
+
hi?: CollectionsAPI.CollectionTranslation;
|
|
583
|
+
|
|
584
|
+
hr?: CollectionsAPI.CollectionTranslation;
|
|
585
|
+
|
|
586
|
+
hu?: CollectionsAPI.CollectionTranslation;
|
|
587
|
+
|
|
588
|
+
it?: CollectionsAPI.CollectionTranslation;
|
|
589
|
+
|
|
590
|
+
ja?: CollectionsAPI.CollectionTranslation;
|
|
591
|
+
|
|
592
|
+
ko?: CollectionsAPI.CollectionTranslation;
|
|
593
|
+
|
|
594
|
+
lt?: CollectionsAPI.CollectionTranslation;
|
|
595
|
+
|
|
596
|
+
lv?: CollectionsAPI.CollectionTranslation;
|
|
597
|
+
|
|
598
|
+
mn?: CollectionsAPI.CollectionTranslation;
|
|
599
|
+
|
|
600
|
+
ms?: CollectionsAPI.CollectionTranslation;
|
|
601
|
+
|
|
602
|
+
nb?: CollectionsAPI.CollectionTranslation;
|
|
603
|
+
|
|
604
|
+
nl?: CollectionsAPI.CollectionTranslation;
|
|
605
|
+
|
|
606
|
+
pl?: CollectionsAPI.CollectionTranslation;
|
|
607
|
+
|
|
608
|
+
pt?: CollectionsAPI.CollectionTranslation;
|
|
609
|
+
|
|
610
|
+
'pt-BR'?: CollectionsAPI.CollectionTranslation;
|
|
611
|
+
|
|
612
|
+
ro?: CollectionsAPI.CollectionTranslation;
|
|
613
|
+
|
|
614
|
+
ru?: CollectionsAPI.CollectionTranslation;
|
|
615
|
+
|
|
616
|
+
sk?: CollectionsAPI.CollectionTranslation;
|
|
617
|
+
|
|
618
|
+
sl?: CollectionsAPI.CollectionTranslation;
|
|
619
|
+
|
|
620
|
+
sr?: CollectionsAPI.CollectionTranslation;
|
|
621
|
+
|
|
622
|
+
sv?: CollectionsAPI.CollectionTranslation;
|
|
623
|
+
|
|
624
|
+
sw?: CollectionsAPI.CollectionTranslation;
|
|
625
|
+
|
|
626
|
+
th?: CollectionsAPI.CollectionTranslation;
|
|
627
|
+
|
|
628
|
+
tr?: CollectionsAPI.CollectionTranslation;
|
|
629
|
+
|
|
630
|
+
uk?: CollectionsAPI.CollectionTranslation;
|
|
631
|
+
|
|
632
|
+
vi?: CollectionsAPI.CollectionTranslation;
|
|
633
|
+
|
|
634
|
+
'zh-CN'?: CollectionsAPI.CollectionTranslation;
|
|
635
|
+
|
|
636
|
+
'zh-TW'?: CollectionsAPI.CollectionTranslation;
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
/**
|
|
641
|
+
* An updated icon object for the collection
|
|
642
|
+
*/
|
|
643
|
+
export interface CollectionIconNova {
|
|
644
|
+
/**
|
|
645
|
+
* Icon type (e.g., "emoji")
|
|
646
|
+
*/
|
|
647
|
+
type: 'emoji' | 'predefined';
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* Icon value
|
|
651
|
+
*/
|
|
652
|
+
value: string;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
export interface CollectionTranslation {
|
|
656
|
+
/**
|
|
657
|
+
* Number of articles
|
|
658
|
+
*/
|
|
659
|
+
articleCount?: number;
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Number of authors
|
|
663
|
+
*/
|
|
664
|
+
authorCount?: number;
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* List of authors
|
|
668
|
+
*/
|
|
669
|
+
authors?: Array<CollectionTranslation.Author>;
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Collection description
|
|
673
|
+
*/
|
|
674
|
+
description?: string;
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* External URL
|
|
678
|
+
*/
|
|
679
|
+
externalUrl?: string;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Featurebase URL
|
|
683
|
+
*/
|
|
684
|
+
featurebaseUrl?: string;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Collection name
|
|
688
|
+
*/
|
|
689
|
+
name?: string;
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* URL slug
|
|
693
|
+
*/
|
|
694
|
+
slug?: string;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
export namespace CollectionTranslation {
|
|
698
|
+
export interface Author {
|
|
699
|
+
/**
|
|
700
|
+
* Author ID
|
|
701
|
+
*/
|
|
702
|
+
authorId?: string;
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* Author avatar URL
|
|
706
|
+
*/
|
|
707
|
+
avatarUrl?: string | null;
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Author name
|
|
711
|
+
*/
|
|
712
|
+
name?: string;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
export interface CollectionTranslationInputNova {
|
|
717
|
+
/**
|
|
718
|
+
* Collection description in this locale
|
|
719
|
+
*/
|
|
720
|
+
description?: string;
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* Collection name in this locale
|
|
724
|
+
*/
|
|
725
|
+
name?: string;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
export interface CollectionListResponse {
|
|
729
|
+
/**
|
|
730
|
+
* Array of collections
|
|
731
|
+
*/
|
|
732
|
+
data: Array<Collection>;
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* Cursor for fetching the next page (cursor-based pagination)
|
|
736
|
+
*/
|
|
737
|
+
nextCursor: string | null;
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* Object type identifier
|
|
741
|
+
*/
|
|
742
|
+
object: 'list';
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
export interface CollectionDeleteResponse {
|
|
746
|
+
/**
|
|
747
|
+
* Unique identifier of the deleted collection
|
|
748
|
+
*/
|
|
749
|
+
id: string;
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* Indicates the resource was deleted
|
|
753
|
+
*/
|
|
754
|
+
deleted: true;
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* Object type identifier
|
|
758
|
+
*/
|
|
759
|
+
object: 'collection';
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
export interface CollectionCreateParams {
|
|
763
|
+
/**
|
|
764
|
+
* Body param: The name of the collection
|
|
765
|
+
*/
|
|
766
|
+
name: string;
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* Body param: A description of the collection
|
|
770
|
+
*/
|
|
771
|
+
description?: string;
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* Body param: An updated icon object for the collection
|
|
775
|
+
*/
|
|
776
|
+
icon?: CollectionIconNova | null;
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Body param: The ID of the parent collection, if any
|
|
780
|
+
*/
|
|
781
|
+
parentId?: string | null;
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* Body param: A dictionary of translations keyed by locale
|
|
785
|
+
*/
|
|
786
|
+
translations?: CollectionCreateParams.Translations;
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
790
|
+
* configured API version if not specified.
|
|
791
|
+
*/
|
|
792
|
+
'Featurebase-Version'?: string;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
export namespace CollectionCreateParams {
|
|
796
|
+
/**
|
|
797
|
+
* A dictionary of translations keyed by locale
|
|
798
|
+
*/
|
|
799
|
+
export interface Translations {
|
|
800
|
+
id?: CollectionsAPI.CollectionTranslationInputNova;
|
|
801
|
+
|
|
802
|
+
bg?: CollectionsAPI.CollectionTranslationInputNova;
|
|
803
|
+
|
|
804
|
+
bn?: CollectionsAPI.CollectionTranslationInputNova;
|
|
805
|
+
|
|
806
|
+
bs?: CollectionsAPI.CollectionTranslationInputNova;
|
|
807
|
+
|
|
808
|
+
ca?: CollectionsAPI.CollectionTranslationInputNova;
|
|
809
|
+
|
|
810
|
+
cs?: CollectionsAPI.CollectionTranslationInputNova;
|
|
811
|
+
|
|
812
|
+
da?: CollectionsAPI.CollectionTranslationInputNova;
|
|
813
|
+
|
|
814
|
+
de?: CollectionsAPI.CollectionTranslationInputNova;
|
|
815
|
+
|
|
816
|
+
el?: CollectionsAPI.CollectionTranslationInputNova;
|
|
817
|
+
|
|
818
|
+
en?: CollectionsAPI.CollectionTranslationInputNova;
|
|
819
|
+
|
|
820
|
+
es?: CollectionsAPI.CollectionTranslationInputNova;
|
|
821
|
+
|
|
822
|
+
et?: CollectionsAPI.CollectionTranslationInputNova;
|
|
823
|
+
|
|
824
|
+
fi?: CollectionsAPI.CollectionTranslationInputNova;
|
|
825
|
+
|
|
826
|
+
fr?: CollectionsAPI.CollectionTranslationInputNova;
|
|
827
|
+
|
|
828
|
+
hi?: CollectionsAPI.CollectionTranslationInputNova;
|
|
829
|
+
|
|
830
|
+
hr?: CollectionsAPI.CollectionTranslationInputNova;
|
|
831
|
+
|
|
832
|
+
hu?: CollectionsAPI.CollectionTranslationInputNova;
|
|
833
|
+
|
|
834
|
+
it?: CollectionsAPI.CollectionTranslationInputNova;
|
|
835
|
+
|
|
836
|
+
ja?: CollectionsAPI.CollectionTranslationInputNova;
|
|
837
|
+
|
|
838
|
+
ko?: CollectionsAPI.CollectionTranslationInputNova;
|
|
839
|
+
|
|
840
|
+
lt?: CollectionsAPI.CollectionTranslationInputNova;
|
|
841
|
+
|
|
842
|
+
lv?: CollectionsAPI.CollectionTranslationInputNova;
|
|
843
|
+
|
|
844
|
+
mn?: CollectionsAPI.CollectionTranslationInputNova;
|
|
845
|
+
|
|
846
|
+
ms?: CollectionsAPI.CollectionTranslationInputNova;
|
|
847
|
+
|
|
848
|
+
nb?: CollectionsAPI.CollectionTranslationInputNova;
|
|
849
|
+
|
|
850
|
+
nl?: CollectionsAPI.CollectionTranslationInputNova;
|
|
851
|
+
|
|
852
|
+
pl?: CollectionsAPI.CollectionTranslationInputNova;
|
|
853
|
+
|
|
854
|
+
pt?: CollectionsAPI.CollectionTranslationInputNova;
|
|
855
|
+
|
|
856
|
+
'pt-BR'?: CollectionsAPI.CollectionTranslationInputNova;
|
|
857
|
+
|
|
858
|
+
ro?: CollectionsAPI.CollectionTranslationInputNova;
|
|
859
|
+
|
|
860
|
+
ru?: CollectionsAPI.CollectionTranslationInputNova;
|
|
861
|
+
|
|
862
|
+
sk?: CollectionsAPI.CollectionTranslationInputNova;
|
|
863
|
+
|
|
864
|
+
sl?: CollectionsAPI.CollectionTranslationInputNova;
|
|
865
|
+
|
|
866
|
+
sr?: CollectionsAPI.CollectionTranslationInputNova;
|
|
867
|
+
|
|
868
|
+
sv?: CollectionsAPI.CollectionTranslationInputNova;
|
|
869
|
+
|
|
870
|
+
sw?: CollectionsAPI.CollectionTranslationInputNova;
|
|
871
|
+
|
|
872
|
+
th?: CollectionsAPI.CollectionTranslationInputNova;
|
|
873
|
+
|
|
874
|
+
tr?: CollectionsAPI.CollectionTranslationInputNova;
|
|
875
|
+
|
|
876
|
+
uk?: CollectionsAPI.CollectionTranslationInputNova;
|
|
877
|
+
|
|
878
|
+
vi?: CollectionsAPI.CollectionTranslationInputNova;
|
|
879
|
+
|
|
880
|
+
'zh-CN'?: CollectionsAPI.CollectionTranslationInputNova;
|
|
881
|
+
|
|
882
|
+
'zh-TW'?: CollectionsAPI.CollectionTranslationInputNova;
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
export interface CollectionRetrieveParams {
|
|
887
|
+
/**
|
|
888
|
+
* API version for this request. Defaults to your organization's configured API
|
|
889
|
+
* version if not specified.
|
|
890
|
+
*/
|
|
891
|
+
'Featurebase-Version'?: string;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
export interface CollectionUpdateParams {
|
|
895
|
+
/**
|
|
896
|
+
* Body param: The new description of the collection
|
|
897
|
+
*/
|
|
898
|
+
description?: string;
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* Body param: An updated icon object for the collection
|
|
902
|
+
*/
|
|
903
|
+
icon?: CollectionIconNova | null;
|
|
904
|
+
|
|
905
|
+
/**
|
|
906
|
+
* Body param: The new name of the collection
|
|
907
|
+
*/
|
|
908
|
+
name?: string;
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* Body param: The new parent collection ID, if applicable
|
|
912
|
+
*/
|
|
913
|
+
parentId?: string | null;
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* Body param: A dictionary of updated translations keyed by locale
|
|
917
|
+
*/
|
|
918
|
+
translations?: CollectionUpdateParams.Translations;
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
922
|
+
* configured API version if not specified.
|
|
923
|
+
*/
|
|
924
|
+
'Featurebase-Version'?: string;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
export namespace CollectionUpdateParams {
|
|
928
|
+
/**
|
|
929
|
+
* A dictionary of updated translations keyed by locale
|
|
930
|
+
*/
|
|
931
|
+
export interface Translations {
|
|
932
|
+
id?: CollectionsAPI.CollectionTranslationInputNova;
|
|
933
|
+
|
|
934
|
+
bg?: CollectionsAPI.CollectionTranslationInputNova;
|
|
935
|
+
|
|
936
|
+
bn?: CollectionsAPI.CollectionTranslationInputNova;
|
|
937
|
+
|
|
938
|
+
bs?: CollectionsAPI.CollectionTranslationInputNova;
|
|
939
|
+
|
|
940
|
+
ca?: CollectionsAPI.CollectionTranslationInputNova;
|
|
941
|
+
|
|
942
|
+
cs?: CollectionsAPI.CollectionTranslationInputNova;
|
|
943
|
+
|
|
944
|
+
da?: CollectionsAPI.CollectionTranslationInputNova;
|
|
945
|
+
|
|
946
|
+
de?: CollectionsAPI.CollectionTranslationInputNova;
|
|
947
|
+
|
|
948
|
+
el?: CollectionsAPI.CollectionTranslationInputNova;
|
|
949
|
+
|
|
950
|
+
en?: CollectionsAPI.CollectionTranslationInputNova;
|
|
951
|
+
|
|
952
|
+
es?: CollectionsAPI.CollectionTranslationInputNova;
|
|
953
|
+
|
|
954
|
+
et?: CollectionsAPI.CollectionTranslationInputNova;
|
|
955
|
+
|
|
956
|
+
fi?: CollectionsAPI.CollectionTranslationInputNova;
|
|
957
|
+
|
|
958
|
+
fr?: CollectionsAPI.CollectionTranslationInputNova;
|
|
959
|
+
|
|
960
|
+
hi?: CollectionsAPI.CollectionTranslationInputNova;
|
|
961
|
+
|
|
962
|
+
hr?: CollectionsAPI.CollectionTranslationInputNova;
|
|
963
|
+
|
|
964
|
+
hu?: CollectionsAPI.CollectionTranslationInputNova;
|
|
965
|
+
|
|
966
|
+
it?: CollectionsAPI.CollectionTranslationInputNova;
|
|
967
|
+
|
|
968
|
+
ja?: CollectionsAPI.CollectionTranslationInputNova;
|
|
969
|
+
|
|
970
|
+
ko?: CollectionsAPI.CollectionTranslationInputNova;
|
|
971
|
+
|
|
972
|
+
lt?: CollectionsAPI.CollectionTranslationInputNova;
|
|
973
|
+
|
|
974
|
+
lv?: CollectionsAPI.CollectionTranslationInputNova;
|
|
975
|
+
|
|
976
|
+
mn?: CollectionsAPI.CollectionTranslationInputNova;
|
|
977
|
+
|
|
978
|
+
ms?: CollectionsAPI.CollectionTranslationInputNova;
|
|
979
|
+
|
|
980
|
+
nb?: CollectionsAPI.CollectionTranslationInputNova;
|
|
981
|
+
|
|
982
|
+
nl?: CollectionsAPI.CollectionTranslationInputNova;
|
|
983
|
+
|
|
984
|
+
pl?: CollectionsAPI.CollectionTranslationInputNova;
|
|
985
|
+
|
|
986
|
+
pt?: CollectionsAPI.CollectionTranslationInputNova;
|
|
987
|
+
|
|
988
|
+
'pt-BR'?: CollectionsAPI.CollectionTranslationInputNova;
|
|
989
|
+
|
|
990
|
+
ro?: CollectionsAPI.CollectionTranslationInputNova;
|
|
991
|
+
|
|
992
|
+
ru?: CollectionsAPI.CollectionTranslationInputNova;
|
|
993
|
+
|
|
994
|
+
sk?: CollectionsAPI.CollectionTranslationInputNova;
|
|
995
|
+
|
|
996
|
+
sl?: CollectionsAPI.CollectionTranslationInputNova;
|
|
997
|
+
|
|
998
|
+
sr?: CollectionsAPI.CollectionTranslationInputNova;
|
|
999
|
+
|
|
1000
|
+
sv?: CollectionsAPI.CollectionTranslationInputNova;
|
|
1001
|
+
|
|
1002
|
+
sw?: CollectionsAPI.CollectionTranslationInputNova;
|
|
1003
|
+
|
|
1004
|
+
th?: CollectionsAPI.CollectionTranslationInputNova;
|
|
1005
|
+
|
|
1006
|
+
tr?: CollectionsAPI.CollectionTranslationInputNova;
|
|
1007
|
+
|
|
1008
|
+
uk?: CollectionsAPI.CollectionTranslationInputNova;
|
|
1009
|
+
|
|
1010
|
+
vi?: CollectionsAPI.CollectionTranslationInputNova;
|
|
1011
|
+
|
|
1012
|
+
'zh-CN'?: CollectionsAPI.CollectionTranslationInputNova;
|
|
1013
|
+
|
|
1014
|
+
'zh-TW'?: CollectionsAPI.CollectionTranslationInputNova;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
export interface CollectionListParams {
|
|
1019
|
+
/**
|
|
1020
|
+
* Query param: An opaque cursor for pagination. Use the nextCursor value from a
|
|
1021
|
+
* previous response to fetch the next page.
|
|
1022
|
+
*/
|
|
1023
|
+
cursor?: string;
|
|
1024
|
+
|
|
1025
|
+
/**
|
|
1026
|
+
* Query param: Filter collections by help center ID. If omitted, returns
|
|
1027
|
+
* collections across all help centers.
|
|
1028
|
+
*/
|
|
1029
|
+
helpCenterId?: string;
|
|
1030
|
+
|
|
1031
|
+
/**
|
|
1032
|
+
* Query param: A limit on the number of objects to be returned, between 1 and 100.
|
|
1033
|
+
*/
|
|
1034
|
+
limit?: number;
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
1038
|
+
* configured API version if not specified.
|
|
1039
|
+
*/
|
|
1040
|
+
'Featurebase-Version'?: string;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
export interface CollectionDeleteParams {
|
|
1044
|
+
/**
|
|
1045
|
+
* API version for this request. Defaults to your organization's configured API
|
|
1046
|
+
* version if not specified.
|
|
1047
|
+
*/
|
|
1048
|
+
'Featurebase-Version'?: string;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
export declare namespace Collections {
|
|
1052
|
+
export {
|
|
1053
|
+
type Collection as Collection,
|
|
1054
|
+
type CollectionIconNova as CollectionIconNova,
|
|
1055
|
+
type CollectionTranslation as CollectionTranslation,
|
|
1056
|
+
type CollectionTranslationInputNova as CollectionTranslationInputNova,
|
|
1057
|
+
type CollectionListResponse as CollectionListResponse,
|
|
1058
|
+
type CollectionDeleteResponse as CollectionDeleteResponse,
|
|
1059
|
+
type CollectionCreateParams as CollectionCreateParams,
|
|
1060
|
+
type CollectionRetrieveParams as CollectionRetrieveParams,
|
|
1061
|
+
type CollectionUpdateParams as CollectionUpdateParams,
|
|
1062
|
+
type CollectionListParams as CollectionListParams,
|
|
1063
|
+
type CollectionDeleteParams as CollectionDeleteParams,
|
|
1064
|
+
};
|
|
1065
|
+
}
|