featurebase-node 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +9 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -3
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +16 -10
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/changelogs/changelogs.d.mts +106 -106
- package/resources/changelogs/changelogs.d.mts.map +1 -1
- package/resources/changelogs/changelogs.d.ts +106 -106
- package/resources/changelogs/changelogs.d.ts.map +1 -1
- package/resources/changelogs/changelogs.js +74 -74
- package/resources/changelogs/changelogs.js.map +1 -1
- package/resources/changelogs/changelogs.mjs +74 -74
- package/resources/changelogs/changelogs.mjs.map +1 -1
- package/resources/changelogs/index.d.mts +1 -1
- package/resources/changelogs/index.d.mts.map +1 -1
- package/resources/changelogs/index.d.ts +1 -1
- package/resources/changelogs/index.d.ts.map +1 -1
- package/resources/changelogs/index.mjs.map +1 -1
- package/resources/changelogs/subscribers.d.mts.map +1 -1
- package/resources/changelogs/subscribers.d.ts.map +1 -1
- package/resources/changelogs/subscribers.mjs.map +1 -1
- package/resources/changelogs.d.mts.map +1 -1
- package/resources/changelogs.d.ts.map +1 -1
- package/resources/changelogs.mjs.map +1 -1
- package/resources/conversation-attributes.d.mts +117 -0
- package/resources/conversation-attributes.d.mts.map +1 -0
- package/resources/conversation-attributes.d.ts +117 -0
- package/resources/conversation-attributes.d.ts.map +1 -0
- package/resources/conversation-attributes.js +61 -0
- package/resources/conversation-attributes.js.map +1 -0
- package/resources/conversation-attributes.mjs +57 -0
- package/resources/conversation-attributes.mjs.map +1 -0
- package/resources/feedback/boards.d.mts +17 -17
- package/resources/feedback/boards.d.mts.map +1 -1
- package/resources/feedback/boards.d.ts +17 -17
- package/resources/feedback/boards.d.ts.map +1 -1
- package/resources/feedback/boards.js +20 -20
- package/resources/feedback/boards.js.map +1 -1
- package/resources/feedback/boards.mjs +20 -20
- package/resources/feedback/boards.mjs.map +1 -1
- package/resources/feedback/comments.d.mts +400 -123
- package/resources/feedback/comments.d.mts.map +1 -1
- package/resources/feedback/comments.d.ts +400 -123
- package/resources/feedback/comments.d.ts.map +1 -1
- package/resources/feedback/comments.js +253 -93
- package/resources/feedback/comments.js.map +1 -1
- package/resources/feedback/comments.mjs +253 -93
- package/resources/feedback/comments.mjs.map +1 -1
- package/resources/feedback/custom-fields.d.mts +34 -34
- package/resources/feedback/custom-fields.d.mts.map +1 -1
- package/resources/feedback/custom-fields.d.ts +34 -34
- package/resources/feedback/custom-fields.d.ts.map +1 -1
- package/resources/feedback/custom-fields.js +36 -36
- package/resources/feedback/custom-fields.js.map +1 -1
- package/resources/feedback/custom-fields.mjs +36 -36
- package/resources/feedback/custom-fields.mjs.map +1 -1
- package/resources/feedback/feedback.d.mts +7 -7
- package/resources/feedback/feedback.d.mts.map +1 -1
- package/resources/feedback/feedback.d.ts +7 -7
- package/resources/feedback/feedback.d.ts.map +1 -1
- package/resources/feedback/feedback.js.map +1 -1
- package/resources/feedback/feedback.mjs.map +1 -1
- package/resources/feedback/index.d.mts +5 -5
- package/resources/feedback/index.d.mts.map +1 -1
- package/resources/feedback/index.d.ts +5 -5
- package/resources/feedback/index.d.ts.map +1 -1
- package/resources/feedback/index.js.map +1 -1
- package/resources/feedback/index.mjs.map +1 -1
- package/resources/feedback/post-statuses.d.mts +18 -18
- package/resources/feedback/post-statuses.d.mts.map +1 -1
- package/resources/feedback/post-statuses.d.ts +18 -18
- package/resources/feedback/post-statuses.d.ts.map +1 -1
- package/resources/feedback/post-statuses.js +23 -23
- package/resources/feedback/post-statuses.js.map +1 -1
- package/resources/feedback/post-statuses.mjs +23 -23
- package/resources/feedback/post-statuses.mjs.map +1 -1
- package/resources/feedback/posts/index.d.mts +1 -1
- package/resources/feedback/posts/index.d.mts.map +1 -1
- package/resources/feedback/posts/index.d.ts +1 -1
- package/resources/feedback/posts/index.d.ts.map +1 -1
- package/resources/feedback/posts/index.js.map +1 -1
- package/resources/feedback/posts/index.mjs.map +1 -1
- package/resources/feedback/posts/posts.d.mts +238 -284
- package/resources/feedback/posts/posts.d.mts.map +1 -1
- package/resources/feedback/posts/posts.d.ts +238 -284
- package/resources/feedback/posts/posts.d.ts.map +1 -1
- package/resources/feedback/posts/posts.js +122 -96
- package/resources/feedback/posts/posts.js.map +1 -1
- package/resources/feedback/posts/posts.mjs +122 -96
- package/resources/feedback/posts/posts.mjs.map +1 -1
- package/resources/feedback/posts/voters.d.mts.map +1 -1
- package/resources/feedback/posts/voters.d.ts.map +1 -1
- package/resources/feedback/posts/voters.mjs.map +1 -1
- package/resources/feedback/posts.d.mts.map +1 -1
- package/resources/feedback/posts.d.ts.map +1 -1
- package/resources/feedback/posts.mjs.map +1 -1
- package/resources/feedback.d.mts.map +1 -1
- package/resources/feedback.d.ts.map +1 -1
- package/resources/feedback.mjs.map +1 -1
- package/resources/help-center/articles.d.mts +98 -152
- package/resources/help-center/articles.d.mts.map +1 -1
- package/resources/help-center/articles.d.ts +98 -152
- package/resources/help-center/articles.d.ts.map +1 -1
- package/resources/help-center/articles.js +73 -73
- package/resources/help-center/articles.js.map +1 -1
- package/resources/help-center/articles.mjs +73 -73
- package/resources/help-center/articles.mjs.map +1 -1
- package/resources/help-center/collections.d.mts +64 -64
- package/resources/help-center/collections.d.mts.map +1 -1
- package/resources/help-center/collections.d.ts +64 -64
- package/resources/help-center/collections.d.ts.map +1 -1
- package/resources/help-center/collections.js +65 -65
- package/resources/help-center/collections.js.map +1 -1
- package/resources/help-center/collections.mjs +65 -65
- package/resources/help-center/collections.mjs.map +1 -1
- package/resources/help-center/help-center.d.mts +5 -5
- package/resources/help-center/help-center.d.mts.map +1 -1
- package/resources/help-center/help-center.d.ts +5 -5
- package/resources/help-center/help-center.d.ts.map +1 -1
- package/resources/help-center/help-center.js.map +1 -1
- package/resources/help-center/help-center.mjs.map +1 -1
- package/resources/help-center/help-centers.d.mts +43 -43
- package/resources/help-center/help-centers.d.mts.map +1 -1
- package/resources/help-center/help-centers.d.ts +43 -43
- package/resources/help-center/help-centers.d.ts.map +1 -1
- package/resources/help-center/help-centers.js +43 -43
- package/resources/help-center/help-centers.js.map +1 -1
- package/resources/help-center/help-centers.mjs +43 -43
- package/resources/help-center/help-centers.mjs.map +1 -1
- package/resources/help-center/index.d.mts +4 -4
- package/resources/help-center/index.d.mts.map +1 -1
- package/resources/help-center/index.d.ts +4 -4
- package/resources/help-center/index.d.ts.map +1 -1
- package/resources/help-center/index.js.map +1 -1
- package/resources/help-center/index.mjs.map +1 -1
- package/resources/help-center/redirect-rules.d.mts +117 -117
- package/resources/help-center/redirect-rules.d.mts.map +1 -1
- package/resources/help-center/redirect-rules.d.ts +117 -117
- package/resources/help-center/redirect-rules.d.ts.map +1 -1
- package/resources/help-center/redirect-rules.js +112 -112
- package/resources/help-center/redirect-rules.js.map +1 -1
- package/resources/help-center/redirect-rules.mjs +112 -112
- package/resources/help-center/redirect-rules.mjs.map +1 -1
- package/resources/help-center.d.mts.map +1 -1
- package/resources/help-center.d.ts.map +1 -1
- package/resources/help-center.mjs.map +1 -1
- package/resources/index.d.mts +4 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization/admins.d.mts +23 -23
- package/resources/organization/admins.d.mts.map +1 -1
- package/resources/organization/admins.d.ts +23 -23
- package/resources/organization/admins.d.ts.map +1 -1
- package/resources/organization/admins.js +25 -25
- package/resources/organization/admins.js.map +1 -1
- package/resources/organization/admins.mjs +25 -25
- package/resources/organization/admins.mjs.map +1 -1
- package/resources/organization/brands.d.mts +50 -50
- package/resources/organization/brands.d.mts.map +1 -1
- package/resources/organization/brands.d.ts +50 -50
- package/resources/organization/brands.d.ts.map +1 -1
- package/resources/organization/brands.js +54 -54
- package/resources/organization/brands.js.map +1 -1
- package/resources/organization/brands.mjs +54 -54
- package/resources/organization/brands.mjs.map +1 -1
- package/resources/organization/index.d.mts +3 -3
- package/resources/organization/index.d.mts.map +1 -1
- package/resources/organization/index.d.ts +3 -3
- package/resources/organization/index.d.ts.map +1 -1
- package/resources/organization/index.mjs.map +1 -1
- package/resources/organization/organization.d.mts +3 -3
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +3 -3
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/organization/teams.d.mts +45 -45
- package/resources/organization/teams.d.mts.map +1 -1
- package/resources/organization/teams.d.ts +45 -45
- package/resources/organization/teams.d.ts.map +1 -1
- package/resources/organization/teams.js +44 -44
- package/resources/organization/teams.js.map +1 -1
- package/resources/organization/teams.mjs +44 -44
- package/resources/organization/teams.mjs.map +1 -1
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts.map +1 -1
- package/resources/organization.mjs.map +1 -1
- package/resources/support/conversation-tags.d.mts +40 -40
- package/resources/support/conversation-tags.d.mts.map +1 -1
- package/resources/support/conversation-tags.d.ts +40 -40
- package/resources/support/conversation-tags.d.ts.map +1 -1
- package/resources/support/conversation-tags.js +32 -32
- package/resources/support/conversation-tags.js.map +1 -1
- package/resources/support/conversation-tags.mjs +32 -32
- package/resources/support/conversation-tags.mjs.map +1 -1
- package/resources/support/conversations/conversations.d.mts +624 -722
- package/resources/support/conversations/conversations.d.mts.map +1 -1
- package/resources/support/conversations/conversations.d.ts +624 -722
- package/resources/support/conversations/conversations.d.ts.map +1 -1
- package/resources/support/conversations/conversations.js +309 -302
- package/resources/support/conversations/conversations.js.map +1 -1
- package/resources/support/conversations/conversations.mjs +309 -302
- package/resources/support/conversations/conversations.mjs.map +1 -1
- package/resources/support/conversations/index.d.mts +1 -1
- package/resources/support/conversations/index.d.mts.map +1 -1
- package/resources/support/conversations/index.d.ts +1 -1
- package/resources/support/conversations/index.d.ts.map +1 -1
- package/resources/support/conversations/index.js.map +1 -1
- package/resources/support/conversations/index.mjs.map +1 -1
- package/resources/support/conversations/participants.d.mts.map +1 -1
- package/resources/support/conversations/participants.d.ts.map +1 -1
- package/resources/support/conversations/participants.mjs.map +1 -1
- package/resources/support/conversations.d.mts.map +1 -1
- package/resources/support/conversations.d.ts.map +1 -1
- package/resources/support/conversations.mjs.map +1 -1
- package/resources/support/index.d.mts +3 -3
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +3 -3
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.js.map +1 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts +4 -4
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +4 -4
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.js.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets/categories.d.mts +18 -18
- package/resources/support/tickets/categories.d.mts.map +1 -1
- package/resources/support/tickets/categories.d.ts +18 -18
- package/resources/support/tickets/categories.d.ts.map +1 -1
- package/resources/support/tickets/categories.js +25 -25
- package/resources/support/tickets/categories.js.map +1 -1
- package/resources/support/tickets/categories.mjs +25 -25
- package/resources/support/tickets/categories.mjs.map +1 -1
- package/resources/support/tickets/custom-fields.d.mts +20 -20
- package/resources/support/tickets/custom-fields.d.mts.map +1 -1
- package/resources/support/tickets/custom-fields.d.ts +20 -20
- package/resources/support/tickets/custom-fields.d.ts.map +1 -1
- package/resources/support/tickets/custom-fields.js +19 -19
- package/resources/support/tickets/custom-fields.js.map +1 -1
- package/resources/support/tickets/custom-fields.mjs +19 -19
- package/resources/support/tickets/custom-fields.mjs.map +1 -1
- package/resources/support/tickets/index.d.mts +4 -4
- package/resources/support/tickets/index.d.mts.map +1 -1
- package/resources/support/tickets/index.d.ts +4 -4
- package/resources/support/tickets/index.d.ts.map +1 -1
- package/resources/support/tickets/index.mjs.map +1 -1
- package/resources/support/tickets/statuses.d.mts +17 -17
- package/resources/support/tickets/statuses.d.mts.map +1 -1
- package/resources/support/tickets/statuses.d.ts +17 -17
- package/resources/support/tickets/statuses.d.ts.map +1 -1
- package/resources/support/tickets/statuses.js +21 -21
- package/resources/support/tickets/statuses.js.map +1 -1
- package/resources/support/tickets/statuses.mjs +21 -21
- package/resources/support/tickets/statuses.mjs.map +1 -1
- package/resources/support/tickets/tickets.d.mts +69 -69
- package/resources/support/tickets/tickets.d.mts.map +1 -1
- package/resources/support/tickets/tickets.d.ts +69 -69
- package/resources/support/tickets/tickets.d.ts.map +1 -1
- package/resources/support/tickets/tickets.js +44 -44
- package/resources/support/tickets/tickets.js.map +1 -1
- package/resources/support/tickets/tickets.mjs +44 -44
- package/resources/support/tickets/tickets.mjs.map +1 -1
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/support.d.mts.map +1 -1
- package/resources/support.d.ts.map +1 -1
- package/resources/support.mjs.map +1 -1
- package/resources/surveys.d.mts +41 -41
- package/resources/surveys.d.mts.map +1 -1
- package/resources/surveys.d.ts +41 -41
- package/resources/surveys.d.ts.map +1 -1
- package/resources/surveys.js +44 -44
- package/resources/surveys.js.map +1 -1
- package/resources/surveys.mjs +44 -44
- package/resources/surveys.mjs.map +1 -1
- package/resources/users/companies/companies.d.mts +149 -177
- package/resources/users/companies/companies.d.mts.map +1 -1
- package/resources/users/companies/companies.d.ts +149 -177
- package/resources/users/companies/companies.d.ts.map +1 -1
- package/resources/users/companies/companies.js +153 -142
- package/resources/users/companies/companies.js.map +1 -1
- package/resources/users/companies/companies.mjs +153 -142
- package/resources/users/companies/companies.mjs.map +1 -1
- package/resources/users/companies/contacts.d.mts.map +1 -1
- package/resources/users/companies/contacts.d.ts.map +1 -1
- package/resources/users/companies/contacts.mjs.map +1 -1
- package/resources/users/companies/index.d.mts +1 -1
- package/resources/users/companies/index.d.mts.map +1 -1
- package/resources/users/companies/index.d.ts +1 -1
- package/resources/users/companies/index.d.ts.map +1 -1
- package/resources/users/companies/index.mjs.map +1 -1
- package/resources/users/companies.d.mts.map +1 -1
- package/resources/users/companies.d.ts.map +1 -1
- package/resources/users/companies.mjs.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.mjs.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.mjs.map +1 -1
- package/resources/users/contacts/by-user-id/index.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/index.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/index.mjs.map +1 -1
- package/resources/users/contacts/by-user-id.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id.mjs.map +1 -1
- package/resources/users/contacts/contacts.d.mts +229 -256
- package/resources/users/contacts/contacts.d.mts.map +1 -1
- package/resources/users/contacts/contacts.d.ts +229 -256
- package/resources/users/contacts/contacts.d.ts.map +1 -1
- package/resources/users/contacts/contacts.js +213 -201
- package/resources/users/contacts/contacts.js.map +1 -1
- package/resources/users/contacts/contacts.mjs +213 -201
- package/resources/users/contacts/contacts.mjs.map +1 -1
- package/resources/users/contacts/email-preferences.d.mts.map +1 -1
- package/resources/users/contacts/email-preferences.d.ts.map +1 -1
- package/resources/users/contacts/email-preferences.mjs.map +1 -1
- package/resources/users/contacts/index.d.mts +1 -1
- package/resources/users/contacts/index.d.mts.map +1 -1
- package/resources/users/contacts/index.d.ts +1 -1
- package/resources/users/contacts/index.d.ts.map +1 -1
- package/resources/users/contacts/index.mjs.map +1 -1
- package/resources/users/contacts.d.mts.map +1 -1
- package/resources/users/contacts.d.ts.map +1 -1
- package/resources/users/contacts.mjs.map +1 -1
- package/resources/users/index.d.mts +2 -2
- package/resources/users/index.d.mts.map +1 -1
- package/resources/users/index.d.ts +2 -2
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/users.d.mts +2 -2
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +2 -2
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.mjs.map +1 -1
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts.map +1 -1
- package/resources/users.mjs.map +1 -1
- package/resources/webhooks.d.mts +75 -75
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +75 -75
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +77 -77
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +77 -77
- package/resources/webhooks.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +25 -3
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/changelogs/changelogs.ts +170 -170
- package/src/resources/changelogs/index.ts +1 -1
- package/src/resources/conversation-attributes.ts +181 -0
- package/src/resources/feedback/boards.ts +28 -28
- package/src/resources/feedback/comments.ts +464 -141
- package/src/resources/feedback/custom-fields.ts +44 -44
- package/src/resources/feedback/feedback.ts +23 -5
- package/src/resources/feedback/index.ts +14 -5
- package/src/resources/feedback/post-statuses.ts +31 -31
- package/src/resources/feedback/posts/index.ts +7 -1
- package/src/resources/feedback/posts/posts.ts +294 -340
- package/src/resources/help-center/articles.ts +123 -186
- package/src/resources/help-center/collections.ts +84 -84
- package/src/resources/help-center/help-center.ts +7 -5
- package/src/resources/help-center/help-centers.ts +55 -55
- package/src/resources/help-center/index.ts +6 -5
- package/src/resources/help-center/redirect-rules.ts +174 -174
- package/src/resources/index.ts +11 -3
- package/src/resources/organization/admins.ts +33 -33
- package/src/resources/organization/brands.ts +66 -66
- package/src/resources/organization/index.ts +3 -3
- package/src/resources/organization/organization.ts +3 -3
- package/src/resources/organization/teams.ts +52 -52
- package/src/resources/support/conversation-tags.ts +59 -59
- package/src/resources/support/conversations/conversations.ts +748 -867
- package/src/resources/support/conversations/index.ts +11 -6
- package/src/resources/support/index.ts +14 -9
- package/src/resources/support/support.ts +21 -11
- package/src/resources/support/tickets/categories.ts +33 -33
- package/src/resources/support/tickets/custom-fields.ts +27 -27
- package/src/resources/support/tickets/index.ts +4 -4
- package/src/resources/support/tickets/statuses.ts +29 -29
- package/src/resources/support/tickets/tickets.ts +95 -95
- package/src/resources/surveys.ts +58 -58
- package/src/resources/users/companies/companies.ts +193 -223
- package/src/resources/users/companies/index.ts +2 -2
- package/src/resources/users/contacts/contacts.ts +275 -302
- package/src/resources/users/contacts/index.ts +3 -3
- package/src/resources/users/index.ts +5 -5
- package/src/resources/users/users.ts +5 -5
- package/src/resources/webhooks.ts +95 -95
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as ArticlesAPI from './articles';
|
|
5
|
+
import * as PostsAPI from '../feedback/posts/posts';
|
|
5
6
|
import { APIPromise } from '../../core/api-promise';
|
|
6
7
|
import { CursorPage, type CursorPageParams, PagePromise } from '../../core/pagination';
|
|
7
8
|
import { buildHeaders } from '../../internal/headers';
|
|
@@ -12,6 +13,83 @@ import { path } from '../../internal/utils/path';
|
|
|
12
13
|
* Help centers allow organizations to create and manage knowledge bases with articles and collections. Currently, Featurebase supports one help center per organization.
|
|
13
14
|
*/
|
|
14
15
|
export class Articles extends APIResource {
|
|
16
|
+
/**
|
|
17
|
+
* Returns a paginated list of articles within your organization's help center.
|
|
18
|
+
*
|
|
19
|
+
* Articles are the main content pieces that contain documentation, guides, and
|
|
20
|
+
* FAQs.
|
|
21
|
+
*
|
|
22
|
+
* ### Query Parameters
|
|
23
|
+
*
|
|
24
|
+
* - `limit` - Number of items to return (1-100, default 10)
|
|
25
|
+
* - `cursor` - Cursor for pagination
|
|
26
|
+
* - `state` - Filter by article state: "live", "draft", or "all" (default "live")
|
|
27
|
+
* - `parentId` - Filter by parent collection ID
|
|
28
|
+
*
|
|
29
|
+
* ### Response Format
|
|
30
|
+
*
|
|
31
|
+
* Returns a list object with:
|
|
32
|
+
*
|
|
33
|
+
* - `object` - Always "list"
|
|
34
|
+
* - `data` - Array of article objects
|
|
35
|
+
* - `nextCursor` - Cursor for next page (null if no more results)
|
|
36
|
+
*
|
|
37
|
+
* ### Article Object
|
|
38
|
+
*
|
|
39
|
+
* Each article includes:
|
|
40
|
+
*
|
|
41
|
+
* - `id` - Unique identifier
|
|
42
|
+
* - `title` - Article title
|
|
43
|
+
* - `description` - Article description
|
|
44
|
+
* - `body` - Article content (HTML)
|
|
45
|
+
* - `slug` - URL slug
|
|
46
|
+
* - `icon` - Article icon (emoji or custom)
|
|
47
|
+
* - `parentId` - Parent collection ID
|
|
48
|
+
* - `helpCenterId` - ID of the help center this article belongs to
|
|
49
|
+
* - `organization` - Organization ID
|
|
50
|
+
* - `state` - Article state (live or draft)
|
|
51
|
+
* - `defaultLocale` - Default locale for content
|
|
52
|
+
* - `locale` - Current locale
|
|
53
|
+
* - `availableLocales` - Array of available locales
|
|
54
|
+
* - `publishedLocales` - Array of locales where article is published
|
|
55
|
+
* - `featurebaseUrl` - Featurebase URL for the article
|
|
56
|
+
* - `externalUrl` - External URL if custom domain is configured
|
|
57
|
+
* - `author` - Author information (name, authorId, avatarUrl)
|
|
58
|
+
* - `order` - Display order
|
|
59
|
+
* - `isPublished` - Whether the article is published
|
|
60
|
+
* - `isDraftDiffersFromLive` - Whether draft differs from live version
|
|
61
|
+
* - `translations` - Translations for different locales
|
|
62
|
+
* - `createdAt` - ISO 8601 timestamp when created
|
|
63
|
+
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
64
|
+
* - `liveUpdatedAt` - ISO 8601 timestamp when live version was last updated
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* // Automatically fetches more pages as needed.
|
|
69
|
+
* for await (const article of client.helpCenter.articles.list()) {
|
|
70
|
+
* // ...
|
|
71
|
+
* }
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
list(
|
|
75
|
+
params: ArticleListParams | null | undefined = {},
|
|
76
|
+
options?: RequestOptions,
|
|
77
|
+
): PagePromise<ArticlesCursorPage, Article> {
|
|
78
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
79
|
+
return this._client.getAPIList('/v2/help_center/articles', CursorPage<Article>, {
|
|
80
|
+
query,
|
|
81
|
+
...options,
|
|
82
|
+
headers: buildHeaders([
|
|
83
|
+
{
|
|
84
|
+
...(featurebaseVersion?.toString() != null ?
|
|
85
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
86
|
+
: undefined),
|
|
87
|
+
},
|
|
88
|
+
options?.headers,
|
|
89
|
+
]),
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
|
|
15
93
|
/**
|
|
16
94
|
* Creates a new article in your organization's help center.
|
|
17
95
|
*
|
|
@@ -221,83 +299,6 @@ export class Articles extends APIResource {
|
|
|
221
299
|
});
|
|
222
300
|
}
|
|
223
301
|
|
|
224
|
-
/**
|
|
225
|
-
* Returns a paginated list of articles within your organization's help center.
|
|
226
|
-
*
|
|
227
|
-
* Articles are the main content pieces that contain documentation, guides, and
|
|
228
|
-
* FAQs.
|
|
229
|
-
*
|
|
230
|
-
* ### Query Parameters
|
|
231
|
-
*
|
|
232
|
-
* - `limit` - Number of items to return (1-100, default 10)
|
|
233
|
-
* - `cursor` - Cursor for pagination
|
|
234
|
-
* - `state` - Filter by article state: "live", "draft", or "all" (default "live")
|
|
235
|
-
* - `parentId` - Filter by parent collection ID
|
|
236
|
-
*
|
|
237
|
-
* ### Response Format
|
|
238
|
-
*
|
|
239
|
-
* Returns a list object with:
|
|
240
|
-
*
|
|
241
|
-
* - `object` - Always "list"
|
|
242
|
-
* - `data` - Array of article objects
|
|
243
|
-
* - `nextCursor` - Cursor for next page (null if no more results)
|
|
244
|
-
*
|
|
245
|
-
* ### Article Object
|
|
246
|
-
*
|
|
247
|
-
* Each article includes:
|
|
248
|
-
*
|
|
249
|
-
* - `id` - Unique identifier
|
|
250
|
-
* - `title` - Article title
|
|
251
|
-
* - `description` - Article description
|
|
252
|
-
* - `body` - Article content (HTML)
|
|
253
|
-
* - `slug` - URL slug
|
|
254
|
-
* - `icon` - Article icon (emoji or custom)
|
|
255
|
-
* - `parentId` - Parent collection ID
|
|
256
|
-
* - `helpCenterId` - ID of the help center this article belongs to
|
|
257
|
-
* - `organization` - Organization ID
|
|
258
|
-
* - `state` - Article state (live or draft)
|
|
259
|
-
* - `defaultLocale` - Default locale for content
|
|
260
|
-
* - `locale` - Current locale
|
|
261
|
-
* - `availableLocales` - Array of available locales
|
|
262
|
-
* - `publishedLocales` - Array of locales where article is published
|
|
263
|
-
* - `featurebaseUrl` - Featurebase URL for the article
|
|
264
|
-
* - `externalUrl` - External URL if custom domain is configured
|
|
265
|
-
* - `author` - Author information (name, authorId, avatarUrl)
|
|
266
|
-
* - `order` - Display order
|
|
267
|
-
* - `isPublished` - Whether the article is published
|
|
268
|
-
* - `isDraftDiffersFromLive` - Whether draft differs from live version
|
|
269
|
-
* - `translations` - Translations for different locales
|
|
270
|
-
* - `createdAt` - ISO 8601 timestamp when created
|
|
271
|
-
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
272
|
-
* - `liveUpdatedAt` - ISO 8601 timestamp when live version was last updated
|
|
273
|
-
*
|
|
274
|
-
* @example
|
|
275
|
-
* ```ts
|
|
276
|
-
* // Automatically fetches more pages as needed.
|
|
277
|
-
* for await (const article of client.helpCenter.articles.list()) {
|
|
278
|
-
* // ...
|
|
279
|
-
* }
|
|
280
|
-
* ```
|
|
281
|
-
*/
|
|
282
|
-
list(
|
|
283
|
-
params: ArticleListParams | null | undefined = {},
|
|
284
|
-
options?: RequestOptions,
|
|
285
|
-
): PagePromise<ArticlesCursorPage, Article> {
|
|
286
|
-
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
287
|
-
return this._client.getAPIList('/v2/help_center/articles', CursorPage<Article>, {
|
|
288
|
-
query,
|
|
289
|
-
...options,
|
|
290
|
-
headers: buildHeaders([
|
|
291
|
-
{
|
|
292
|
-
...(featurebaseVersion?.toString() != null ?
|
|
293
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
294
|
-
: undefined),
|
|
295
|
-
},
|
|
296
|
-
options?.headers,
|
|
297
|
-
]),
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
|
|
301
302
|
/**
|
|
302
303
|
* Deletes an existing article.
|
|
303
304
|
*
|
|
@@ -683,7 +684,7 @@ export interface Article {
|
|
|
683
684
|
/**
|
|
684
685
|
* Article icon
|
|
685
686
|
*/
|
|
686
|
-
icon?:
|
|
687
|
+
icon?: ArticleIcon | null;
|
|
687
688
|
|
|
688
689
|
/**
|
|
689
690
|
* Whether draft differs from live
|
|
@@ -800,21 +801,6 @@ export interface Article {
|
|
|
800
801
|
}
|
|
801
802
|
|
|
802
803
|
export namespace Article {
|
|
803
|
-
/**
|
|
804
|
-
* Article icon
|
|
805
|
-
*/
|
|
806
|
-
export interface Icon {
|
|
807
|
-
/**
|
|
808
|
-
* Icon type
|
|
809
|
-
*/
|
|
810
|
-
type: 'emoji' | 'custom';
|
|
811
|
-
|
|
812
|
-
/**
|
|
813
|
-
* Icon value (emoji or URL)
|
|
814
|
-
*/
|
|
815
|
-
value: string;
|
|
816
|
-
}
|
|
817
|
-
|
|
818
804
|
/**
|
|
819
805
|
* Translations by locale code
|
|
820
806
|
*/
|
|
@@ -925,6 +911,21 @@ export interface ArticleAuthor {
|
|
|
925
911
|
avatarUrl?: string | null;
|
|
926
912
|
}
|
|
927
913
|
|
|
914
|
+
/**
|
|
915
|
+
* Article icon
|
|
916
|
+
*/
|
|
917
|
+
export interface ArticleIcon {
|
|
918
|
+
/**
|
|
919
|
+
* Icon type
|
|
920
|
+
*/
|
|
921
|
+
type: 'emoji' | 'custom';
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* Icon value (emoji or URL)
|
|
925
|
+
*/
|
|
926
|
+
value: string;
|
|
927
|
+
}
|
|
928
|
+
|
|
928
929
|
/**
|
|
929
930
|
* Icon object for the article
|
|
930
931
|
*/
|
|
@@ -1260,7 +1261,7 @@ export namespace ArticleSearchResponse {
|
|
|
1260
1261
|
/**
|
|
1261
1262
|
* Article icon
|
|
1262
1263
|
*/
|
|
1263
|
-
icon?:
|
|
1264
|
+
icon?: ArticlesAPI.ArticleIcon | null;
|
|
1264
1265
|
|
|
1265
1266
|
/**
|
|
1266
1267
|
* Whether draft differs from live
|
|
@@ -1377,21 +1378,6 @@ export namespace ArticleSearchResponse {
|
|
|
1377
1378
|
}
|
|
1378
1379
|
|
|
1379
1380
|
export namespace Data {
|
|
1380
|
-
/**
|
|
1381
|
-
* Article icon
|
|
1382
|
-
*/
|
|
1383
|
-
export interface Icon {
|
|
1384
|
-
/**
|
|
1385
|
-
* Icon type
|
|
1386
|
-
*/
|
|
1387
|
-
type: 'emoji' | 'custom';
|
|
1388
|
-
|
|
1389
|
-
/**
|
|
1390
|
-
* Icon value (emoji or URL)
|
|
1391
|
-
*/
|
|
1392
|
-
value: string;
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
1381
|
/**
|
|
1396
1382
|
* Translations by locale code
|
|
1397
1383
|
*/
|
|
@@ -1483,6 +1469,31 @@ export namespace ArticleSearchResponse {
|
|
|
1483
1469
|
}
|
|
1484
1470
|
}
|
|
1485
1471
|
|
|
1472
|
+
export interface ArticleListParams extends CursorPageParams {
|
|
1473
|
+
/**
|
|
1474
|
+
* Query param: Filter articles by help center ID. If omitted, returns articles
|
|
1475
|
+
* across all help centers.
|
|
1476
|
+
*/
|
|
1477
|
+
helpCenterId?: string;
|
|
1478
|
+
|
|
1479
|
+
/**
|
|
1480
|
+
* Query param: Filter articles by parent collection ID
|
|
1481
|
+
*/
|
|
1482
|
+
parentId?: string;
|
|
1483
|
+
|
|
1484
|
+
/**
|
|
1485
|
+
* Query param: Filter articles by state. Use "all" to get both draft and live
|
|
1486
|
+
* articles.
|
|
1487
|
+
*/
|
|
1488
|
+
state?: 'live' | 'draft' | 'all';
|
|
1489
|
+
|
|
1490
|
+
/**
|
|
1491
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
1492
|
+
* configured API version if not specified.
|
|
1493
|
+
*/
|
|
1494
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1486
1497
|
export interface ArticleCreateParams {
|
|
1487
1498
|
/**
|
|
1488
1499
|
* Body param: The title of the article
|
|
@@ -1796,31 +1807,6 @@ export namespace ArticleUpdateParams {
|
|
|
1796
1807
|
}
|
|
1797
1808
|
}
|
|
1798
1809
|
|
|
1799
|
-
export interface ArticleListParams extends CursorPageParams {
|
|
1800
|
-
/**
|
|
1801
|
-
* Query param: Filter articles by help center ID. If omitted, returns articles
|
|
1802
|
-
* across all help centers.
|
|
1803
|
-
*/
|
|
1804
|
-
helpCenterId?: string;
|
|
1805
|
-
|
|
1806
|
-
/**
|
|
1807
|
-
* Query param: Filter articles by parent collection ID
|
|
1808
|
-
*/
|
|
1809
|
-
parentId?: string;
|
|
1810
|
-
|
|
1811
|
-
/**
|
|
1812
|
-
* Query param: Filter articles by state. Use "all" to get both draft and live
|
|
1813
|
-
* articles.
|
|
1814
|
-
*/
|
|
1815
|
-
state?: 'live' | 'draft' | 'all';
|
|
1816
|
-
|
|
1817
|
-
/**
|
|
1818
|
-
* Header param: API version for this request. Defaults to your organization's
|
|
1819
|
-
* configured API version if not specified.
|
|
1820
|
-
*/
|
|
1821
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
1810
|
export interface ArticleDeleteParams {
|
|
1825
1811
|
/**
|
|
1826
1812
|
* API version for this request. Defaults to your organization's configured API
|
|
@@ -1847,7 +1833,7 @@ export interface ArticleSearchParams {
|
|
|
1847
1833
|
* Body param: Structured filter AST. Either a single filter clause or one
|
|
1848
1834
|
* top-level AND group (max 15 clauses). Top-level OR groups are not yet supported.
|
|
1849
1835
|
*/
|
|
1850
|
-
query?:
|
|
1836
|
+
query?: PostsAPI.SearchFilter | PostsAPI.SearchFilterGroup;
|
|
1851
1837
|
|
|
1852
1838
|
/**
|
|
1853
1839
|
* Body param: Plain-text full-text search across article title, description, and
|
|
@@ -1872,70 +1858,21 @@ export interface ArticleSearchParams {
|
|
|
1872
1858
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
1873
1859
|
}
|
|
1874
1860
|
|
|
1875
|
-
export namespace ArticleSearchParams {
|
|
1876
|
-
export interface SearchFilter {
|
|
1877
|
-
/**
|
|
1878
|
-
* Field name to filter on (e.g. `state`, `tag_ids`, `created_at`)
|
|
1879
|
-
*/
|
|
1880
|
-
field: string;
|
|
1881
|
-
|
|
1882
|
-
/**
|
|
1883
|
-
* Comparison operator
|
|
1884
|
-
*/
|
|
1885
|
-
operator: '=' | '!=' | 'IN' | 'NIN' | '>' | '<' | '>=' | '<=' | '~' | '!~' | '^' | '$';
|
|
1886
|
-
|
|
1887
|
-
/**
|
|
1888
|
-
* Value to compare against (primitive or array of primitives)
|
|
1889
|
-
*/
|
|
1890
|
-
value: string | number | boolean | Array<string | number> | null;
|
|
1891
|
-
}
|
|
1892
|
-
|
|
1893
|
-
export interface SearchFilterGroup {
|
|
1894
|
-
/**
|
|
1895
|
-
* Group operator: AND (all match) or OR (any match)
|
|
1896
|
-
*/
|
|
1897
|
-
operator: 'AND' | 'OR';
|
|
1898
|
-
|
|
1899
|
-
/**
|
|
1900
|
-
* Array of filter clauses (1-15 entries)
|
|
1901
|
-
*/
|
|
1902
|
-
value: Array<SearchFilterGroup.Value>;
|
|
1903
|
-
}
|
|
1904
|
-
|
|
1905
|
-
export namespace SearchFilterGroup {
|
|
1906
|
-
export interface Value {
|
|
1907
|
-
/**
|
|
1908
|
-
* Field name to filter on (e.g. `state`, `tag_ids`, `created_at`)
|
|
1909
|
-
*/
|
|
1910
|
-
field: string;
|
|
1911
|
-
|
|
1912
|
-
/**
|
|
1913
|
-
* Comparison operator
|
|
1914
|
-
*/
|
|
1915
|
-
operator: '=' | '!=' | 'IN' | 'NIN' | '>' | '<' | '>=' | '<=' | '~' | '!~' | '^' | '$';
|
|
1916
|
-
|
|
1917
|
-
/**
|
|
1918
|
-
* Value to compare against (primitive or array of primitives)
|
|
1919
|
-
*/
|
|
1920
|
-
value: string | number | boolean | Array<string | number> | null;
|
|
1921
|
-
}
|
|
1922
|
-
}
|
|
1923
|
-
}
|
|
1924
|
-
|
|
1925
1861
|
export declare namespace Articles {
|
|
1926
1862
|
export {
|
|
1927
1863
|
type Article as Article,
|
|
1928
1864
|
type ArticleAuthor as ArticleAuthor,
|
|
1865
|
+
type ArticleIcon as ArticleIcon,
|
|
1929
1866
|
type ArticleIconInputNova as ArticleIconInputNova,
|
|
1930
1867
|
type ArticleTranslation as ArticleTranslation,
|
|
1931
1868
|
type ArticleTranslationInputNova as ArticleTranslationInputNova,
|
|
1932
1869
|
type ArticleDeleteResponse as ArticleDeleteResponse,
|
|
1933
1870
|
type ArticleSearchResponse as ArticleSearchResponse,
|
|
1934
1871
|
type ArticlesCursorPage as ArticlesCursorPage,
|
|
1872
|
+
type ArticleListParams as ArticleListParams,
|
|
1935
1873
|
type ArticleCreateParams as ArticleCreateParams,
|
|
1936
1874
|
type ArticleRetrieveParams as ArticleRetrieveParams,
|
|
1937
1875
|
type ArticleUpdateParams as ArticleUpdateParams,
|
|
1938
|
-
type ArticleListParams as ArticleListParams,
|
|
1939
1876
|
type ArticleDeleteParams as ArticleDeleteParams,
|
|
1940
1877
|
type ArticleSearchParams as ArticleSearchParams,
|
|
1941
1878
|
};
|
|
@@ -12,6 +12,75 @@ import { path } from '../../internal/utils/path';
|
|
|
12
12
|
* Help centers allow organizations to create and manage knowledge bases with articles and collections. Currently, Featurebase supports one help center per organization.
|
|
13
13
|
*/
|
|
14
14
|
export class Collections extends APIResource {
|
|
15
|
+
/**
|
|
16
|
+
* Returns a paginated list of collections within your organization's help center.
|
|
17
|
+
*
|
|
18
|
+
* Collections are used to organize articles into logical groups.
|
|
19
|
+
*
|
|
20
|
+
* ### Query Parameters
|
|
21
|
+
*
|
|
22
|
+
* - `limit` - Number of items to return (1-100, default 10)
|
|
23
|
+
* - `cursor` - Cursor for pagination
|
|
24
|
+
*
|
|
25
|
+
* ### Response Format
|
|
26
|
+
*
|
|
27
|
+
* Returns a list object with:
|
|
28
|
+
*
|
|
29
|
+
* - `object` - Always "list"
|
|
30
|
+
* - `data` - Array of collection objects
|
|
31
|
+
* - `nextCursor` - Cursor for next page (null if no more results)
|
|
32
|
+
*
|
|
33
|
+
* ### Collection Object
|
|
34
|
+
*
|
|
35
|
+
* Each collection includes:
|
|
36
|
+
*
|
|
37
|
+
* - `id` - Unique identifier
|
|
38
|
+
* - `name` - Collection name
|
|
39
|
+
* - `description` - Collection description
|
|
40
|
+
* - `slug` - URL slug
|
|
41
|
+
* - `icon` - Collection icon (emoji or custom)
|
|
42
|
+
* - `parentId` - Parent collection ID (null for root collections)
|
|
43
|
+
* - `helpCenterId` - ID of the help center this collection belongs to
|
|
44
|
+
* - `organization` - Organization ID
|
|
45
|
+
* - `defaultLocale` - Default locale for content
|
|
46
|
+
* - `locale` - Current locale
|
|
47
|
+
* - `availableLocales` - Array of available locales
|
|
48
|
+
* - `featurebaseUrl` - Featurebase URL for the collection
|
|
49
|
+
* - `externalUrl` - External URL if custom domain is configured
|
|
50
|
+
* - `articleCount` - Number of articles in this collection
|
|
51
|
+
* - `authorCount` - Number of authors who contributed
|
|
52
|
+
* - `order` - Display order
|
|
53
|
+
* - `translations` - Translations for different locales
|
|
54
|
+
* - `createdAt` - ISO 8601 timestamp when created
|
|
55
|
+
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* // Automatically fetches more pages as needed.
|
|
60
|
+
* for await (const collection of client.helpCenter.collections.list()) {
|
|
61
|
+
* // ...
|
|
62
|
+
* }
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
list(
|
|
66
|
+
params: CollectionListParams | null | undefined = {},
|
|
67
|
+
options?: RequestOptions,
|
|
68
|
+
): PagePromise<CollectionsCursorPage, Collection> {
|
|
69
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
70
|
+
return this._client.getAPIList('/v2/help_center/collections', CursorPage<Collection>, {
|
|
71
|
+
query,
|
|
72
|
+
...options,
|
|
73
|
+
headers: buildHeaders([
|
|
74
|
+
{
|
|
75
|
+
...(featurebaseVersion?.toString() != null ?
|
|
76
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
77
|
+
: undefined),
|
|
78
|
+
},
|
|
79
|
+
options?.headers,
|
|
80
|
+
]),
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
|
|
15
84
|
/**
|
|
16
85
|
* Creates a new collection in your organization's help center.
|
|
17
86
|
*
|
|
@@ -201,75 +270,6 @@ export class Collections extends APIResource {
|
|
|
201
270
|
});
|
|
202
271
|
}
|
|
203
272
|
|
|
204
|
-
/**
|
|
205
|
-
* Returns a paginated list of collections within your organization's help center.
|
|
206
|
-
*
|
|
207
|
-
* Collections are used to organize articles into logical groups.
|
|
208
|
-
*
|
|
209
|
-
* ### Query Parameters
|
|
210
|
-
*
|
|
211
|
-
* - `limit` - Number of items to return (1-100, default 10)
|
|
212
|
-
* - `cursor` - Cursor for pagination
|
|
213
|
-
*
|
|
214
|
-
* ### Response Format
|
|
215
|
-
*
|
|
216
|
-
* Returns a list object with:
|
|
217
|
-
*
|
|
218
|
-
* - `object` - Always "list"
|
|
219
|
-
* - `data` - Array of collection objects
|
|
220
|
-
* - `nextCursor` - Cursor for next page (null if no more results)
|
|
221
|
-
*
|
|
222
|
-
* ### Collection Object
|
|
223
|
-
*
|
|
224
|
-
* Each collection includes:
|
|
225
|
-
*
|
|
226
|
-
* - `id` - Unique identifier
|
|
227
|
-
* - `name` - Collection name
|
|
228
|
-
* - `description` - Collection description
|
|
229
|
-
* - `slug` - URL slug
|
|
230
|
-
* - `icon` - Collection icon (emoji or custom)
|
|
231
|
-
* - `parentId` - Parent collection ID (null for root collections)
|
|
232
|
-
* - `helpCenterId` - ID of the help center this collection belongs to
|
|
233
|
-
* - `organization` - Organization ID
|
|
234
|
-
* - `defaultLocale` - Default locale for content
|
|
235
|
-
* - `locale` - Current locale
|
|
236
|
-
* - `availableLocales` - Array of available locales
|
|
237
|
-
* - `featurebaseUrl` - Featurebase URL for the collection
|
|
238
|
-
* - `externalUrl` - External URL if custom domain is configured
|
|
239
|
-
* - `articleCount` - Number of articles in this collection
|
|
240
|
-
* - `authorCount` - Number of authors who contributed
|
|
241
|
-
* - `order` - Display order
|
|
242
|
-
* - `translations` - Translations for different locales
|
|
243
|
-
* - `createdAt` - ISO 8601 timestamp when created
|
|
244
|
-
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
245
|
-
*
|
|
246
|
-
* @example
|
|
247
|
-
* ```ts
|
|
248
|
-
* // Automatically fetches more pages as needed.
|
|
249
|
-
* for await (const collection of client.helpCenter.collections.list()) {
|
|
250
|
-
* // ...
|
|
251
|
-
* }
|
|
252
|
-
* ```
|
|
253
|
-
*/
|
|
254
|
-
list(
|
|
255
|
-
params: CollectionListParams | null | undefined = {},
|
|
256
|
-
options?: RequestOptions,
|
|
257
|
-
): PagePromise<CollectionsCursorPage, Collection> {
|
|
258
|
-
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
259
|
-
return this._client.getAPIList('/v2/help_center/collections', CursorPage<Collection>, {
|
|
260
|
-
query,
|
|
261
|
-
...options,
|
|
262
|
-
headers: buildHeaders([
|
|
263
|
-
{
|
|
264
|
-
...(featurebaseVersion?.toString() != null ?
|
|
265
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
266
|
-
: undefined),
|
|
267
|
-
},
|
|
268
|
-
options?.headers,
|
|
269
|
-
]),
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
|
|
273
273
|
/**
|
|
274
274
|
* Deletes an existing collection.
|
|
275
275
|
*
|
|
@@ -767,6 +767,20 @@ export interface CollectionDeleteResponse {
|
|
|
767
767
|
object: 'collection';
|
|
768
768
|
}
|
|
769
769
|
|
|
770
|
+
export interface CollectionListParams extends CursorPageParams {
|
|
771
|
+
/**
|
|
772
|
+
* Query param: Filter collections by help center ID. If omitted, returns
|
|
773
|
+
* collections across all help centers.
|
|
774
|
+
*/
|
|
775
|
+
helpCenterId?: string;
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
779
|
+
* configured API version if not specified.
|
|
780
|
+
*/
|
|
781
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
782
|
+
}
|
|
783
|
+
|
|
770
784
|
export interface CollectionCreateParams {
|
|
771
785
|
/**
|
|
772
786
|
* Body param: The name of the collection
|
|
@@ -1023,20 +1037,6 @@ export namespace CollectionUpdateParams {
|
|
|
1023
1037
|
}
|
|
1024
1038
|
}
|
|
1025
1039
|
|
|
1026
|
-
export interface CollectionListParams extends CursorPageParams {
|
|
1027
|
-
/**
|
|
1028
|
-
* Query param: Filter collections by help center ID. If omitted, returns
|
|
1029
|
-
* collections across all help centers.
|
|
1030
|
-
*/
|
|
1031
|
-
helpCenterId?: string;
|
|
1032
|
-
|
|
1033
|
-
/**
|
|
1034
|
-
* Header param: API version for this request. Defaults to your organization's
|
|
1035
|
-
* configured API version if not specified.
|
|
1036
|
-
*/
|
|
1037
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
1040
|
export interface CollectionDeleteParams {
|
|
1041
1041
|
/**
|
|
1042
1042
|
* API version for this request. Defaults to your organization's configured API
|
|
@@ -1053,10 +1053,10 @@ export declare namespace Collections {
|
|
|
1053
1053
|
type CollectionTranslationInputNova as CollectionTranslationInputNova,
|
|
1054
1054
|
type CollectionDeleteResponse as CollectionDeleteResponse,
|
|
1055
1055
|
type CollectionsCursorPage as CollectionsCursorPage,
|
|
1056
|
+
type CollectionListParams as CollectionListParams,
|
|
1056
1057
|
type CollectionCreateParams as CollectionCreateParams,
|
|
1057
1058
|
type CollectionRetrieveParams as CollectionRetrieveParams,
|
|
1058
1059
|
type CollectionUpdateParams as CollectionUpdateParams,
|
|
1059
|
-
type CollectionListParams as CollectionListParams,
|
|
1060
1060
|
type CollectionDeleteParams as CollectionDeleteParams,
|
|
1061
1061
|
};
|
|
1062
1062
|
}
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
ArticleCreateParams,
|
|
9
9
|
ArticleDeleteParams,
|
|
10
10
|
ArticleDeleteResponse,
|
|
11
|
+
ArticleIcon,
|
|
11
12
|
ArticleIconInputNova,
|
|
12
13
|
ArticleListParams,
|
|
13
14
|
ArticleRetrieveParams,
|
|
@@ -77,8 +78,8 @@ export declare namespace HelpCenter {
|
|
|
77
78
|
type HelpCenterNavItem as HelpCenterNavItem,
|
|
78
79
|
type HelpCenterTranslation as HelpCenterTranslation,
|
|
79
80
|
type HelpCentersCursorPage as HelpCentersCursorPage,
|
|
80
|
-
type HelpCenterRetrieveParams as HelpCenterRetrieveParams,
|
|
81
81
|
type HelpCenterListParams as HelpCenterListParams,
|
|
82
|
+
type HelpCenterRetrieveParams as HelpCenterRetrieveParams,
|
|
82
83
|
};
|
|
83
84
|
|
|
84
85
|
export {
|
|
@@ -89,10 +90,10 @@ export declare namespace HelpCenter {
|
|
|
89
90
|
type CollectionTranslationInputNova as CollectionTranslationInputNova,
|
|
90
91
|
type CollectionDeleteResponse as CollectionDeleteResponse,
|
|
91
92
|
type CollectionsCursorPage as CollectionsCursorPage,
|
|
93
|
+
type CollectionListParams as CollectionListParams,
|
|
92
94
|
type CollectionCreateParams as CollectionCreateParams,
|
|
93
95
|
type CollectionRetrieveParams as CollectionRetrieveParams,
|
|
94
96
|
type CollectionUpdateParams as CollectionUpdateParams,
|
|
95
|
-
type CollectionListParams as CollectionListParams,
|
|
96
97
|
type CollectionDeleteParams as CollectionDeleteParams,
|
|
97
98
|
};
|
|
98
99
|
|
|
@@ -100,16 +101,17 @@ export declare namespace HelpCenter {
|
|
|
100
101
|
Articles as Articles,
|
|
101
102
|
type Article as Article,
|
|
102
103
|
type ArticleAuthor as ArticleAuthor,
|
|
104
|
+
type ArticleIcon as ArticleIcon,
|
|
103
105
|
type ArticleIconInputNova as ArticleIconInputNova,
|
|
104
106
|
type ArticleTranslation as ArticleTranslation,
|
|
105
107
|
type ArticleTranslationInputNova as ArticleTranslationInputNova,
|
|
106
108
|
type ArticleDeleteResponse as ArticleDeleteResponse,
|
|
107
109
|
type ArticleSearchResponse as ArticleSearchResponse,
|
|
108
110
|
type ArticlesCursorPage as ArticlesCursorPage,
|
|
111
|
+
type ArticleListParams as ArticleListParams,
|
|
109
112
|
type ArticleCreateParams as ArticleCreateParams,
|
|
110
113
|
type ArticleRetrieveParams as ArticleRetrieveParams,
|
|
111
114
|
type ArticleUpdateParams as ArticleUpdateParams,
|
|
112
|
-
type ArticleListParams as ArticleListParams,
|
|
113
115
|
type ArticleDeleteParams as ArticleDeleteParams,
|
|
114
116
|
type ArticleSearchParams as ArticleSearchParams,
|
|
115
117
|
};
|
|
@@ -119,11 +121,11 @@ export declare namespace HelpCenter {
|
|
|
119
121
|
type RedirectRule as RedirectRule,
|
|
120
122
|
type RedirectRuleDeleteResponse as RedirectRuleDeleteResponse,
|
|
121
123
|
type RedirectRulesCursorPage as RedirectRulesCursorPage,
|
|
124
|
+
type RedirectRuleListParams as RedirectRuleListParams,
|
|
122
125
|
type RedirectRuleCreateParams as RedirectRuleCreateParams,
|
|
126
|
+
type RedirectRuleRetrieveByURLParams as RedirectRuleRetrieveByURLParams,
|
|
123
127
|
type RedirectRuleRetrieveParams as RedirectRuleRetrieveParams,
|
|
124
128
|
type RedirectRuleUpdateParams as RedirectRuleUpdateParams,
|
|
125
|
-
type RedirectRuleListParams as RedirectRuleListParams,
|
|
126
129
|
type RedirectRuleDeleteParams as RedirectRuleDeleteParams,
|
|
127
|
-
type RedirectRuleRetrieveByURLParams as RedirectRuleRetrieveByURLParams,
|
|
128
130
|
};
|
|
129
131
|
}
|