featurebase-node 0.13.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -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 +21 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +21 -3
- package/client.d.ts.map +1 -1
- package/client.js +27 -1
- package/client.js.map +1 -1
- package/client.mjs +27 -1
- 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.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/audit-logs.d.mts +233 -0
- package/resources/audit-logs.d.mts.map +1 -0
- package/resources/audit-logs.d.ts +233 -0
- package/resources/audit-logs.d.ts.map +1 -0
- package/resources/audit-logs.js +122 -0
- package/resources/audit-logs.js.map +1 -0
- package/resources/audit-logs.mjs +118 -0
- package/resources/audit-logs.mjs.map +1 -0
- 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 +129 -191
- package/resources/feedback/comments.d.mts.map +1 -1
- package/resources/feedback/comments.d.ts +129 -191
- package/resources/feedback/comments.d.ts.map +1 -1
- package/resources/feedback/comments.js +93 -93
- package/resources/feedback/comments.js.map +1 -1
- package/resources/feedback/comments.mjs +93 -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 +187 -260
- package/resources/feedback/posts/posts.d.mts.map +1 -1
- package/resources/feedback/posts/posts.d.ts +187 -260
- package/resources/feedback/posts/posts.d.ts.map +1 -1
- package/resources/feedback/posts/posts.js +75 -75
- package/resources/feedback/posts/posts.js.map +1 -1
- package/resources/feedback/posts/posts.mjs +75 -75
- 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 +6 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization/admins.d.mts +33 -23
- package/resources/organization/admins.d.mts.map +1 -1
- package/resources/organization/admins.d.ts +33 -23
- package/resources/organization/admins.d.ts.map +1 -1
- package/resources/organization/admins.js +27 -25
- package/resources/organization/admins.js.map +1 -1
- package/resources/organization/admins.mjs +27 -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/reports.d.mts +641 -0
- package/resources/reports.d.mts.map +1 -0
- package/resources/reports.d.ts +641 -0
- package/resources/reports.d.ts.map +1 -0
- package/resources/reports.js +238 -0
- package/resources/reports.js.map +1 -0
- package/resources/reports.mjs +234 -0
- package/resources/reports.mjs.map +1 -0
- 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 +599 -705
- package/resources/support/conversations/conversations.d.mts.map +1 -1
- package/resources/support/conversations/conversations.d.ts +599 -705
- package/resources/support/conversations/conversations.d.ts.map +1 -1
- package/resources/support/conversations/conversations.js +289 -288
- package/resources/support/conversations/conversations.js.map +1 -1
- package/resources/support/conversations/conversations.mjs +289 -288
- 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 +116 -157
- package/resources/users/companies/companies.d.mts.map +1 -1
- package/resources/users/companies/companies.d.ts +116 -157
- package/resources/users/companies/companies.d.ts.map +1 -1
- package/resources/users/companies/companies.js +125 -125
- package/resources/users/companies/companies.js.map +1 -1
- package/resources/users/companies/companies.mjs +125 -125
- 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 +196 -235
- package/resources/users/contacts/contacts.d.mts.map +1 -1
- package/resources/users/contacts/contacts.d.ts +196 -235
- package/resources/users/contacts/contacts.d.ts.map +1 -1
- package/resources/users/contacts/contacts.js +186 -184
- package/resources/users/contacts/contacts.js.map +1 -1
- package/resources/users/contacts/contacts.mjs +186 -184
- 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 +80 -78
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +80 -78
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +79 -77
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +79 -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 +98 -4
- package/src/resources/audit-logs.ts +607 -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 +153 -226
- package/src/resources/feedback/custom-fields.ts +44 -44
- package/src/resources/feedback/feedback.ts +19 -5
- package/src/resources/feedback/index.ts +12 -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 +230 -311
- 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 +37 -3
- package/src/resources/organization/admins.ts +45 -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/reports.ts +908 -0
- package/src/resources/support/conversation-tags.ts +59 -59
- package/src/resources/support/conversations/conversations.ts +723 -850
- 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 +155 -204
- package/src/resources/users/companies/index.ts +2 -2
- package/src/resources/users/contacts/contacts.ts +235 -282
- 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 +100 -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
|
@@ -13,47 +13,55 @@ import { path } from '../../internal/utils/path';
|
|
|
13
13
|
*/
|
|
14
14
|
export class HelpCenters extends APIResource {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Returns all help centers configured in your Featurebase organization.
|
|
17
17
|
*
|
|
18
|
-
*
|
|
18
|
+
* Currently, Featurebase only supports one help center per organization, but we
|
|
19
|
+
* plan on supporting multiple help centers in the future.
|
|
19
20
|
*
|
|
20
|
-
* ###
|
|
21
|
+
* ### Query Parameters
|
|
21
22
|
*
|
|
22
|
-
*
|
|
23
|
+
* - `limit` - Number of items to return (1-100, default 10)
|
|
24
|
+
* - `cursor` - Cursor for pagination
|
|
25
|
+
*
|
|
26
|
+
* ### Response Format
|
|
27
|
+
*
|
|
28
|
+
* Returns a list object with:
|
|
29
|
+
*
|
|
30
|
+
* - `object` - Always "list"
|
|
31
|
+
* - `data` - Array of help center objects
|
|
32
|
+
* - `nextCursor` - Cursor for next page (null if no more results)
|
|
33
|
+
*
|
|
34
|
+
* ### Help Center Object
|
|
35
|
+
*
|
|
36
|
+
* Each help center includes:
|
|
23
37
|
*
|
|
24
38
|
* - `id` - Unique identifier
|
|
25
39
|
* - `displayName` - Help center display name
|
|
26
40
|
* - `title` - Help center title
|
|
27
41
|
* - `description` - Help center description
|
|
28
|
-
* - `searchPlaceholder` - Search input placeholder text
|
|
29
42
|
* - `isPublic` - Whether the help center is publicly accessible
|
|
30
43
|
* - `defaultLocale` - Default locale for content
|
|
31
|
-
* - `locale` - Current locale
|
|
32
44
|
* - `availableLocales` - Array of available locales
|
|
33
45
|
* - `navItems` - Navigation items configuration
|
|
34
46
|
* - `urls` - URL configuration (subpath, custom domain)
|
|
35
47
|
* - `createdAt` - ISO 8601 timestamp when created
|
|
36
48
|
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
37
49
|
*
|
|
38
|
-
* ### Errors
|
|
39
|
-
*
|
|
40
|
-
* - `404` - Help center not found in your organization
|
|
41
|
-
*
|
|
42
50
|
* @example
|
|
43
51
|
* ```ts
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
52
|
+
* // Automatically fetches more pages as needed.
|
|
53
|
+
* for await (const helpCenter of client.helpCenter.helpCenters.list()) {
|
|
54
|
+
* // ...
|
|
55
|
+
* }
|
|
48
56
|
* ```
|
|
49
57
|
*/
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
params: HelpCenterRetrieveParams | null | undefined = {},
|
|
58
|
+
list(
|
|
59
|
+
params: HelpCenterListParams | null | undefined = {},
|
|
53
60
|
options?: RequestOptions,
|
|
54
|
-
):
|
|
55
|
-
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
56
|
-
return this._client.
|
|
61
|
+
): PagePromise<HelpCentersCursorPage, HelpCenter> {
|
|
62
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
63
|
+
return this._client.getAPIList('/v2/help_center/help_centers', CursorPage<HelpCenter>, {
|
|
64
|
+
query,
|
|
57
65
|
...options,
|
|
58
66
|
headers: buildHeaders([
|
|
59
67
|
{
|
|
@@ -67,55 +75,47 @@ export class HelpCenters extends APIResource {
|
|
|
67
75
|
}
|
|
68
76
|
|
|
69
77
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* Currently, Featurebase only supports one help center per organization, but we
|
|
73
|
-
* plan on supporting multiple help centers in the future.
|
|
74
|
-
*
|
|
75
|
-
* ### Query Parameters
|
|
76
|
-
*
|
|
77
|
-
* - `limit` - Number of items to return (1-100, default 10)
|
|
78
|
-
* - `cursor` - Cursor for pagination
|
|
79
|
-
*
|
|
80
|
-
* ### Response Format
|
|
81
|
-
*
|
|
82
|
-
* Returns a list object with:
|
|
78
|
+
* Retrieves a single help center by its unique identifier.
|
|
83
79
|
*
|
|
84
|
-
*
|
|
85
|
-
* - `data` - Array of help center objects
|
|
86
|
-
* - `nextCursor` - Cursor for next page (null if no more results)
|
|
80
|
+
* Returns the help center object if found in your organization.
|
|
87
81
|
*
|
|
88
|
-
* ###
|
|
82
|
+
* ### Response
|
|
89
83
|
*
|
|
90
|
-
*
|
|
84
|
+
* Returns a help center object with:
|
|
91
85
|
*
|
|
92
86
|
* - `id` - Unique identifier
|
|
93
87
|
* - `displayName` - Help center display name
|
|
94
88
|
* - `title` - Help center title
|
|
95
89
|
* - `description` - Help center description
|
|
90
|
+
* - `searchPlaceholder` - Search input placeholder text
|
|
96
91
|
* - `isPublic` - Whether the help center is publicly accessible
|
|
97
92
|
* - `defaultLocale` - Default locale for content
|
|
93
|
+
* - `locale` - Current locale
|
|
98
94
|
* - `availableLocales` - Array of available locales
|
|
99
95
|
* - `navItems` - Navigation items configuration
|
|
100
96
|
* - `urls` - URL configuration (subpath, custom domain)
|
|
101
97
|
* - `createdAt` - ISO 8601 timestamp when created
|
|
102
98
|
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
103
99
|
*
|
|
100
|
+
* ### Errors
|
|
101
|
+
*
|
|
102
|
+
* - `404` - Help center not found in your organization
|
|
103
|
+
*
|
|
104
104
|
* @example
|
|
105
105
|
* ```ts
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
106
|
+
* const helpCenter =
|
|
107
|
+
* await client.helpCenter.helpCenters.retrieve(
|
|
108
|
+
* '2tgy0ig982j54qfl',
|
|
109
|
+
* );
|
|
110
110
|
* ```
|
|
111
111
|
*/
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
retrieve(
|
|
113
|
+
id: string,
|
|
114
|
+
params: HelpCenterRetrieveParams | null | undefined = {},
|
|
114
115
|
options?: RequestOptions,
|
|
115
|
-
):
|
|
116
|
-
const { 'Featurebase-Version': featurebaseVersion
|
|
117
|
-
return this._client.
|
|
118
|
-
query,
|
|
116
|
+
): APIPromise<HelpCenter> {
|
|
117
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
118
|
+
return this._client.get(path`/v2/help_center/help_centers/${id}`, {
|
|
119
119
|
...options,
|
|
120
120
|
headers: buildHeaders([
|
|
121
121
|
{
|
|
@@ -515,18 +515,18 @@ export interface HelpCenterTranslation {
|
|
|
515
515
|
title?: string;
|
|
516
516
|
}
|
|
517
517
|
|
|
518
|
-
export interface
|
|
518
|
+
export interface HelpCenterListParams extends CursorPageParams {
|
|
519
519
|
/**
|
|
520
|
-
* API version for this request. Defaults to your organization's
|
|
521
|
-
* version if not specified.
|
|
520
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
521
|
+
* configured API version if not specified.
|
|
522
522
|
*/
|
|
523
523
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
524
524
|
}
|
|
525
525
|
|
|
526
|
-
export interface
|
|
526
|
+
export interface HelpCenterRetrieveParams {
|
|
527
527
|
/**
|
|
528
|
-
*
|
|
529
|
-
*
|
|
528
|
+
* API version for this request. Defaults to your organization's configured API
|
|
529
|
+
* version if not specified.
|
|
530
530
|
*/
|
|
531
531
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
532
532
|
}
|
|
@@ -537,7 +537,7 @@ export declare namespace HelpCenters {
|
|
|
537
537
|
type HelpCenterNavItem as HelpCenterNavItem,
|
|
538
538
|
type HelpCenterTranslation as HelpCenterTranslation,
|
|
539
539
|
type HelpCentersCursorPage as HelpCentersCursorPage,
|
|
540
|
-
type HelpCenterRetrieveParams as HelpCenterRetrieveParams,
|
|
541
540
|
type HelpCenterListParams as HelpCenterListParams,
|
|
541
|
+
type HelpCenterRetrieveParams as HelpCenterRetrieveParams,
|
|
542
542
|
};
|
|
543
543
|
}
|
|
@@ -4,15 +4,16 @@ export {
|
|
|
4
4
|
Articles,
|
|
5
5
|
type Article,
|
|
6
6
|
type ArticleAuthor,
|
|
7
|
+
type ArticleIcon,
|
|
7
8
|
type ArticleIconInputNova,
|
|
8
9
|
type ArticleTranslation,
|
|
9
10
|
type ArticleTranslationInputNova,
|
|
10
11
|
type ArticleDeleteResponse,
|
|
11
12
|
type ArticleSearchResponse,
|
|
13
|
+
type ArticleListParams,
|
|
12
14
|
type ArticleCreateParams,
|
|
13
15
|
type ArticleRetrieveParams,
|
|
14
16
|
type ArticleUpdateParams,
|
|
15
|
-
type ArticleListParams,
|
|
16
17
|
type ArticleDeleteParams,
|
|
17
18
|
type ArticleSearchParams,
|
|
18
19
|
type ArticlesCursorPage,
|
|
@@ -24,10 +25,10 @@ export {
|
|
|
24
25
|
type CollectionTranslation,
|
|
25
26
|
type CollectionTranslationInputNova,
|
|
26
27
|
type CollectionDeleteResponse,
|
|
28
|
+
type CollectionListParams,
|
|
27
29
|
type CollectionCreateParams,
|
|
28
30
|
type CollectionRetrieveParams,
|
|
29
31
|
type CollectionUpdateParams,
|
|
30
|
-
type CollectionListParams,
|
|
31
32
|
type CollectionDeleteParams,
|
|
32
33
|
type CollectionsCursorPage,
|
|
33
34
|
} from './collections';
|
|
@@ -36,19 +37,19 @@ export {
|
|
|
36
37
|
HelpCenters,
|
|
37
38
|
type HelpCenterNavItem,
|
|
38
39
|
type HelpCenterTranslation,
|
|
39
|
-
type HelpCenterRetrieveParams,
|
|
40
40
|
type HelpCenterListParams,
|
|
41
|
+
type HelpCenterRetrieveParams,
|
|
41
42
|
type HelpCentersCursorPage,
|
|
42
43
|
} from './help-centers';
|
|
43
44
|
export {
|
|
44
45
|
RedirectRules,
|
|
45
46
|
type RedirectRule,
|
|
46
47
|
type RedirectRuleDeleteResponse,
|
|
48
|
+
type RedirectRuleListParams,
|
|
47
49
|
type RedirectRuleCreateParams,
|
|
50
|
+
type RedirectRuleRetrieveByURLParams,
|
|
48
51
|
type RedirectRuleRetrieveParams,
|
|
49
52
|
type RedirectRuleUpdateParams,
|
|
50
|
-
type RedirectRuleListParams,
|
|
51
53
|
type RedirectRuleDeleteParams,
|
|
52
|
-
type RedirectRuleRetrieveByURLParams,
|
|
53
54
|
type RedirectRulesCursorPage,
|
|
54
55
|
} from './redirect-rules';
|
|
@@ -11,6 +11,69 @@ import { path } from '../../internal/utils/path';
|
|
|
11
11
|
* Help centers allow organizations to create and manage knowledge bases with articles and collections. Currently, Featurebase supports one help center per organization.
|
|
12
12
|
*/
|
|
13
13
|
export class RedirectRules extends APIResource {
|
|
14
|
+
/**
|
|
15
|
+
* Returns a paginated list of redirect rules within your organization.
|
|
16
|
+
*
|
|
17
|
+
* Redirect rules map old Help Center URLs to new article or collection
|
|
18
|
+
* destinations, enabling seamless migration from legacy help center systems. Only
|
|
19
|
+
* Help Centers with a custom domain configured support redirect rules.
|
|
20
|
+
*
|
|
21
|
+
* ### Query Parameters
|
|
22
|
+
*
|
|
23
|
+
* - `limit` - Number of items to return (1-100, default 10)
|
|
24
|
+
* - `cursor` - Cursor for pagination
|
|
25
|
+
* - `helpCenterId` - Filter by help center ID
|
|
26
|
+
* - `locale` - Filter by locale code
|
|
27
|
+
* - `targetType` - Filter by target type ("article" or "collection")
|
|
28
|
+
*
|
|
29
|
+
* ### Response Format
|
|
30
|
+
*
|
|
31
|
+
* Returns a list object with:
|
|
32
|
+
*
|
|
33
|
+
* - `object` - Always "list"
|
|
34
|
+
* - `data` - Array of redirect rule objects
|
|
35
|
+
* - `nextCursor` - Cursor for next page (null if no more results)
|
|
36
|
+
*
|
|
37
|
+
* ### Redirect Rule Object
|
|
38
|
+
*
|
|
39
|
+
* Each redirect rule includes:
|
|
40
|
+
*
|
|
41
|
+
* - `id` - Unique identifier (MongoDB ObjectId)
|
|
42
|
+
* - `helpCenterId` - Help center this rule belongs to
|
|
43
|
+
* - `locale` - Locale code used to resolve the target translation
|
|
44
|
+
* - `fromUrl` - Canonical source URL (query/hash stripped, hostname lowercased)
|
|
45
|
+
* - `targetType` - "article" or "collection"
|
|
46
|
+
* - `targetId` - ID of the target article or collection
|
|
47
|
+
* - `createdAt` - ISO 8601 timestamp when created
|
|
48
|
+
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* // Automatically fetches more pages as needed.
|
|
53
|
+
* for await (const redirectRule of client.helpCenter.redirectRules.list()) {
|
|
54
|
+
* // ...
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
list(
|
|
59
|
+
params: RedirectRuleListParams | null | undefined = {},
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): PagePromise<RedirectRulesCursorPage, RedirectRule> {
|
|
62
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
63
|
+
return this._client.getAPIList('/v2/help_center/redirect_rules', CursorPage<RedirectRule>, {
|
|
64
|
+
query,
|
|
65
|
+
...options,
|
|
66
|
+
headers: buildHeaders([
|
|
67
|
+
{
|
|
68
|
+
...(featurebaseVersion?.toString() != null ?
|
|
69
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
70
|
+
: undefined),
|
|
71
|
+
},
|
|
72
|
+
options?.headers,
|
|
73
|
+
]),
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
|
|
14
77
|
/**
|
|
15
78
|
* Creates a new redirect rule in your organization.
|
|
16
79
|
*
|
|
@@ -70,6 +133,60 @@ export class RedirectRules extends APIResource {
|
|
|
70
133
|
});
|
|
71
134
|
}
|
|
72
135
|
|
|
136
|
+
/**
|
|
137
|
+
* Retrieves a specific redirect rule by its source URL.
|
|
138
|
+
*
|
|
139
|
+
* The `url` query parameter is normalized before matching: query parameters and
|
|
140
|
+
* hash fragments are stripped, the hostname is lowercased, and trailing slashes
|
|
141
|
+
* are removed. This is the same normalization applied when creating a redirect
|
|
142
|
+
* rule.
|
|
143
|
+
*
|
|
144
|
+
* ### Query Parameters
|
|
145
|
+
*
|
|
146
|
+
* - `url` (required) - Full absolute URL to look up (http or https)
|
|
147
|
+
*
|
|
148
|
+
* ### Response
|
|
149
|
+
*
|
|
150
|
+
* Returns a redirect rule object with:
|
|
151
|
+
*
|
|
152
|
+
* - `id` - Unique identifier (MongoDB ObjectId)
|
|
153
|
+
* - `helpCenterId` - Help center this rule belongs to
|
|
154
|
+
* - `locale` - Locale code
|
|
155
|
+
* - `fromUrl` - Canonical source URL being redirected from
|
|
156
|
+
* - `targetType` - "article" or "collection"
|
|
157
|
+
* - `targetId` - ID of the target article or collection
|
|
158
|
+
* - `createdAt` - ISO 8601 timestamp when created
|
|
159
|
+
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
160
|
+
*
|
|
161
|
+
* ### Errors
|
|
162
|
+
*
|
|
163
|
+
* - `400` - Invalid URL format
|
|
164
|
+
* - `404` - No redirect rule exists for the given URL
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* ```ts
|
|
168
|
+
* const redirectRule =
|
|
169
|
+
* await client.helpCenter.redirectRules.retrieveByURL({
|
|
170
|
+
* url: 'https://help.example.com/en/old/getting-started',
|
|
171
|
+
* });
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
174
|
+
retrieveByURL(params: RedirectRuleRetrieveByURLParams, options?: RequestOptions): APIPromise<RedirectRule> {
|
|
175
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params;
|
|
176
|
+
return this._client.get('/v2/help_center/redirect_rules/by-url', {
|
|
177
|
+
query,
|
|
178
|
+
...options,
|
|
179
|
+
headers: buildHeaders([
|
|
180
|
+
{
|
|
181
|
+
...(featurebaseVersion?.toString() != null ?
|
|
182
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
183
|
+
: undefined),
|
|
184
|
+
},
|
|
185
|
+
options?.headers,
|
|
186
|
+
]),
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
|
|
73
190
|
/**
|
|
74
191
|
* Retrieves a specific redirect rule by its unique identifier.
|
|
75
192
|
*
|
|
@@ -173,69 +290,6 @@ export class RedirectRules extends APIResource {
|
|
|
173
290
|
});
|
|
174
291
|
}
|
|
175
292
|
|
|
176
|
-
/**
|
|
177
|
-
* Returns a paginated list of redirect rules within your organization.
|
|
178
|
-
*
|
|
179
|
-
* Redirect rules map old Help Center URLs to new article or collection
|
|
180
|
-
* destinations, enabling seamless migration from legacy help center systems. Only
|
|
181
|
-
* Help Centers with a custom domain configured support redirect rules.
|
|
182
|
-
*
|
|
183
|
-
* ### Query Parameters
|
|
184
|
-
*
|
|
185
|
-
* - `limit` - Number of items to return (1-100, default 10)
|
|
186
|
-
* - `cursor` - Cursor for pagination
|
|
187
|
-
* - `helpCenterId` - Filter by help center ID
|
|
188
|
-
* - `locale` - Filter by locale code
|
|
189
|
-
* - `targetType` - Filter by target type ("article" or "collection")
|
|
190
|
-
*
|
|
191
|
-
* ### Response Format
|
|
192
|
-
*
|
|
193
|
-
* Returns a list object with:
|
|
194
|
-
*
|
|
195
|
-
* - `object` - Always "list"
|
|
196
|
-
* - `data` - Array of redirect rule objects
|
|
197
|
-
* - `nextCursor` - Cursor for next page (null if no more results)
|
|
198
|
-
*
|
|
199
|
-
* ### Redirect Rule Object
|
|
200
|
-
*
|
|
201
|
-
* Each redirect rule includes:
|
|
202
|
-
*
|
|
203
|
-
* - `id` - Unique identifier (MongoDB ObjectId)
|
|
204
|
-
* - `helpCenterId` - Help center this rule belongs to
|
|
205
|
-
* - `locale` - Locale code used to resolve the target translation
|
|
206
|
-
* - `fromUrl` - Canonical source URL (query/hash stripped, hostname lowercased)
|
|
207
|
-
* - `targetType` - "article" or "collection"
|
|
208
|
-
* - `targetId` - ID of the target article or collection
|
|
209
|
-
* - `createdAt` - ISO 8601 timestamp when created
|
|
210
|
-
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
211
|
-
*
|
|
212
|
-
* @example
|
|
213
|
-
* ```ts
|
|
214
|
-
* // Automatically fetches more pages as needed.
|
|
215
|
-
* for await (const redirectRule of client.helpCenter.redirectRules.list()) {
|
|
216
|
-
* // ...
|
|
217
|
-
* }
|
|
218
|
-
* ```
|
|
219
|
-
*/
|
|
220
|
-
list(
|
|
221
|
-
params: RedirectRuleListParams | null | undefined = {},
|
|
222
|
-
options?: RequestOptions,
|
|
223
|
-
): PagePromise<RedirectRulesCursorPage, RedirectRule> {
|
|
224
|
-
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
225
|
-
return this._client.getAPIList('/v2/help_center/redirect_rules', CursorPage<RedirectRule>, {
|
|
226
|
-
query,
|
|
227
|
-
...options,
|
|
228
|
-
headers: buildHeaders([
|
|
229
|
-
{
|
|
230
|
-
...(featurebaseVersion?.toString() != null ?
|
|
231
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
232
|
-
: undefined),
|
|
233
|
-
},
|
|
234
|
-
options?.headers,
|
|
235
|
-
]),
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
|
|
239
293
|
/**
|
|
240
294
|
* Deletes an existing redirect rule. The associated Redis cache entry is also
|
|
241
295
|
* invalidated.
|
|
@@ -282,60 +336,6 @@ export class RedirectRules extends APIResource {
|
|
|
282
336
|
]),
|
|
283
337
|
});
|
|
284
338
|
}
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* Retrieves a specific redirect rule by its source URL.
|
|
288
|
-
*
|
|
289
|
-
* The `url` query parameter is normalized before matching: query parameters and
|
|
290
|
-
* hash fragments are stripped, the hostname is lowercased, and trailing slashes
|
|
291
|
-
* are removed. This is the same normalization applied when creating a redirect
|
|
292
|
-
* rule.
|
|
293
|
-
*
|
|
294
|
-
* ### Query Parameters
|
|
295
|
-
*
|
|
296
|
-
* - `url` (required) - Full absolute URL to look up (http or https)
|
|
297
|
-
*
|
|
298
|
-
* ### Response
|
|
299
|
-
*
|
|
300
|
-
* Returns a redirect rule object with:
|
|
301
|
-
*
|
|
302
|
-
* - `id` - Unique identifier (MongoDB ObjectId)
|
|
303
|
-
* - `helpCenterId` - Help center this rule belongs to
|
|
304
|
-
* - `locale` - Locale code
|
|
305
|
-
* - `fromUrl` - Canonical source URL being redirected from
|
|
306
|
-
* - `targetType` - "article" or "collection"
|
|
307
|
-
* - `targetId` - ID of the target article or collection
|
|
308
|
-
* - `createdAt` - ISO 8601 timestamp when created
|
|
309
|
-
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
310
|
-
*
|
|
311
|
-
* ### Errors
|
|
312
|
-
*
|
|
313
|
-
* - `400` - Invalid URL format
|
|
314
|
-
* - `404` - No redirect rule exists for the given URL
|
|
315
|
-
*
|
|
316
|
-
* @example
|
|
317
|
-
* ```ts
|
|
318
|
-
* const redirectRule =
|
|
319
|
-
* await client.helpCenter.redirectRules.retrieveByURL({
|
|
320
|
-
* url: 'https://help.example.com/en/old/getting-started',
|
|
321
|
-
* });
|
|
322
|
-
* ```
|
|
323
|
-
*/
|
|
324
|
-
retrieveByURL(params: RedirectRuleRetrieveByURLParams, options?: RequestOptions): APIPromise<RedirectRule> {
|
|
325
|
-
const { 'Featurebase-Version': featurebaseVersion, ...query } = params;
|
|
326
|
-
return this._client.get('/v2/help_center/redirect_rules/by-url', {
|
|
327
|
-
query,
|
|
328
|
-
...options,
|
|
329
|
-
headers: buildHeaders([
|
|
330
|
-
{
|
|
331
|
-
...(featurebaseVersion?.toString() != null ?
|
|
332
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
333
|
-
: undefined),
|
|
334
|
-
},
|
|
335
|
-
options?.headers,
|
|
336
|
-
]),
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
export type RedirectRulesCursorPage = CursorPage<RedirectRule>;
|
|
@@ -446,24 +446,16 @@ export interface RedirectRuleDeleteResponse {
|
|
|
446
446
|
object: 'redirect_rule';
|
|
447
447
|
}
|
|
448
448
|
|
|
449
|
-
export interface
|
|
450
|
-
/**
|
|
451
|
-
* Body param: Full absolute URL to redirect from. Must use http or https protocol.
|
|
452
|
-
* Query parameters and hash fragments are stripped during normalization. The
|
|
453
|
-
* hostname must match the Help Center custom domain.
|
|
454
|
-
*/
|
|
455
|
-
fromUrl: string;
|
|
456
|
-
|
|
449
|
+
export interface RedirectRuleListParams extends CursorPageParams {
|
|
457
450
|
/**
|
|
458
|
-
*
|
|
451
|
+
* Query param: Filter redirect rules by help center ID
|
|
459
452
|
*/
|
|
460
|
-
helpCenterId
|
|
453
|
+
helpCenterId?: string;
|
|
461
454
|
|
|
462
455
|
/**
|
|
463
|
-
*
|
|
464
|
-
* article/collection translation.
|
|
456
|
+
* Query param: Filter redirect rules by locale
|
|
465
457
|
*/
|
|
466
|
-
locale
|
|
458
|
+
locale?:
|
|
467
459
|
| 'bn'
|
|
468
460
|
| 'bs'
|
|
469
461
|
| 'pt-BR'
|
|
@@ -508,14 +500,9 @@ export interface RedirectRuleCreateParams {
|
|
|
508
500
|
| 'vi';
|
|
509
501
|
|
|
510
502
|
/**
|
|
511
|
-
*
|
|
512
|
-
*/
|
|
513
|
-
targetId: string;
|
|
514
|
-
|
|
515
|
-
/**
|
|
516
|
-
* Body param: Type of content the redirect points to
|
|
503
|
+
* Query param: Filter redirect rules by target type
|
|
517
504
|
*/
|
|
518
|
-
targetType
|
|
505
|
+
targetType?: 'article' | 'collection';
|
|
519
506
|
|
|
520
507
|
/**
|
|
521
508
|
* Header param: API version for this request. Defaults to your organization's
|
|
@@ -524,31 +511,24 @@ export interface RedirectRuleCreateParams {
|
|
|
524
511
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
525
512
|
}
|
|
526
513
|
|
|
527
|
-
export interface
|
|
528
|
-
/**
|
|
529
|
-
* API version for this request. Defaults to your organization's configured API
|
|
530
|
-
* version if not specified.
|
|
531
|
-
*/
|
|
532
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
export interface RedirectRuleUpdateParams {
|
|
514
|
+
export interface RedirectRuleCreateParams {
|
|
536
515
|
/**
|
|
537
516
|
* Body param: Full absolute URL to redirect from. Must use http or https protocol.
|
|
538
517
|
* Query parameters and hash fragments are stripped during normalization. The
|
|
539
518
|
* hostname must match the Help Center custom domain.
|
|
540
519
|
*/
|
|
541
|
-
fromUrl
|
|
520
|
+
fromUrl: string;
|
|
542
521
|
|
|
543
522
|
/**
|
|
544
|
-
* Body param: Help center identifier
|
|
523
|
+
* Body param: Help center identifier this redirect rule belongs to
|
|
545
524
|
*/
|
|
546
|
-
helpCenterId
|
|
525
|
+
helpCenterId: string;
|
|
547
526
|
|
|
548
527
|
/**
|
|
549
|
-
* Body param: Locale code for the redirect rule
|
|
528
|
+
* Body param: Locale code for the redirect rule. Used to resolve the target
|
|
529
|
+
* article/collection translation.
|
|
550
530
|
*/
|
|
551
|
-
locale
|
|
531
|
+
locale:
|
|
552
532
|
| 'bn'
|
|
553
533
|
| 'bs'
|
|
554
534
|
| 'pt-BR'
|
|
@@ -595,12 +575,12 @@ export interface RedirectRuleUpdateParams {
|
|
|
595
575
|
/**
|
|
596
576
|
* Body param: ID of the target article or collection
|
|
597
577
|
*/
|
|
598
|
-
targetId
|
|
578
|
+
targetId: string;
|
|
599
579
|
|
|
600
580
|
/**
|
|
601
581
|
* Body param: Type of content the redirect points to
|
|
602
582
|
*/
|
|
603
|
-
targetType
|
|
583
|
+
targetType: 'article' | 'collection';
|
|
604
584
|
|
|
605
585
|
/**
|
|
606
586
|
* Header param: API version for this request. Defaults to your organization's
|
|
@@ -609,14 +589,44 @@ export interface RedirectRuleUpdateParams {
|
|
|
609
589
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
610
590
|
}
|
|
611
591
|
|
|
612
|
-
export interface
|
|
592
|
+
export interface RedirectRuleRetrieveByURLParams {
|
|
613
593
|
/**
|
|
614
|
-
* Query param:
|
|
594
|
+
* Query param: Full absolute URL to look up. The URL is normalized before
|
|
595
|
+
* matching: query parameters and hash fragments are stripped, the hostname is
|
|
596
|
+
* lowercased, and trailing slashes are removed.
|
|
597
|
+
*/
|
|
598
|
+
url: string;
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
602
|
+
* configured API version if not specified.
|
|
603
|
+
*/
|
|
604
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
export interface RedirectRuleRetrieveParams {
|
|
608
|
+
/**
|
|
609
|
+
* API version for this request. Defaults to your organization's configured API
|
|
610
|
+
* version if not specified.
|
|
611
|
+
*/
|
|
612
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
export interface RedirectRuleUpdateParams {
|
|
616
|
+
/**
|
|
617
|
+
* Body param: Full absolute URL to redirect from. Must use http or https protocol.
|
|
618
|
+
* Query parameters and hash fragments are stripped during normalization. The
|
|
619
|
+
* hostname must match the Help Center custom domain.
|
|
620
|
+
*/
|
|
621
|
+
fromUrl?: string;
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Body param: Help center identifier
|
|
615
625
|
*/
|
|
616
626
|
helpCenterId?: string;
|
|
617
627
|
|
|
618
628
|
/**
|
|
619
|
-
*
|
|
629
|
+
* Body param: Locale code for the redirect rule
|
|
620
630
|
*/
|
|
621
631
|
locale?:
|
|
622
632
|
| 'bn'
|
|
@@ -663,7 +673,12 @@ export interface RedirectRuleListParams extends CursorPageParams {
|
|
|
663
673
|
| 'vi';
|
|
664
674
|
|
|
665
675
|
/**
|
|
666
|
-
*
|
|
676
|
+
* Body param: ID of the target article or collection
|
|
677
|
+
*/
|
|
678
|
+
targetId?: string;
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Body param: Type of content the redirect points to
|
|
667
682
|
*/
|
|
668
683
|
targetType?: 'article' | 'collection';
|
|
669
684
|
|
|
@@ -682,31 +697,16 @@ export interface RedirectRuleDeleteParams {
|
|
|
682
697
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
683
698
|
}
|
|
684
699
|
|
|
685
|
-
export interface RedirectRuleRetrieveByURLParams {
|
|
686
|
-
/**
|
|
687
|
-
* Query param: Full absolute URL to look up. The URL is normalized before
|
|
688
|
-
* matching: query parameters and hash fragments are stripped, the hostname is
|
|
689
|
-
* lowercased, and trailing slashes are removed.
|
|
690
|
-
*/
|
|
691
|
-
url: string;
|
|
692
|
-
|
|
693
|
-
/**
|
|
694
|
-
* Header param: API version for this request. Defaults to your organization's
|
|
695
|
-
* configured API version if not specified.
|
|
696
|
-
*/
|
|
697
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
698
|
-
}
|
|
699
|
-
|
|
700
700
|
export declare namespace RedirectRules {
|
|
701
701
|
export {
|
|
702
702
|
type RedirectRule as RedirectRule,
|
|
703
703
|
type RedirectRuleDeleteResponse as RedirectRuleDeleteResponse,
|
|
704
704
|
type RedirectRulesCursorPage as RedirectRulesCursorPage,
|
|
705
|
+
type RedirectRuleListParams as RedirectRuleListParams,
|
|
705
706
|
type RedirectRuleCreateParams as RedirectRuleCreateParams,
|
|
707
|
+
type RedirectRuleRetrieveByURLParams as RedirectRuleRetrieveByURLParams,
|
|
706
708
|
type RedirectRuleRetrieveParams as RedirectRuleRetrieveParams,
|
|
707
709
|
type RedirectRuleUpdateParams as RedirectRuleUpdateParams,
|
|
708
|
-
type RedirectRuleListParams as RedirectRuleListParams,
|
|
709
710
|
type RedirectRuleDeleteParams as RedirectRuleDeleteParams,
|
|
710
|
-
type RedirectRuleRetrieveByURLParams as RedirectRuleRetrieveByURLParams,
|
|
711
711
|
};
|
|
712
712
|
}
|