featurebase-node 0.13.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 +19 -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.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 +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 +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 +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 +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/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 +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 +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 +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
|
@@ -21,6 +21,84 @@ import { path } from '../../internal/utils/path';
|
|
|
21
21
|
export class Changelogs extends APIResource {
|
|
22
22
|
subscribers: SubscribersAPI.Subscribers = new SubscribersAPI.Subscribers(this._client);
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* Returns all changelogs for the authenticated organization.
|
|
26
|
+
*
|
|
27
|
+
* Changelogs are release notes and updates that keep users informed about new
|
|
28
|
+
* features, improvements, and bug fixes. Each changelog can have:
|
|
29
|
+
*
|
|
30
|
+
* - Multiple translations (locales)
|
|
31
|
+
* - Categories for organization
|
|
32
|
+
* - Featured images
|
|
33
|
+
* - Scheduled publishing
|
|
34
|
+
*
|
|
35
|
+
* ### Pagination
|
|
36
|
+
*
|
|
37
|
+
* This endpoint uses **cursor-based pagination**:
|
|
38
|
+
*
|
|
39
|
+
* - `limit` - Number of changelogs to return (1-100, default 10)
|
|
40
|
+
* - `cursor` - Opaque cursor from a previous response's `nextCursor` field
|
|
41
|
+
*
|
|
42
|
+
* **Example:** To paginate through results:
|
|
43
|
+
*
|
|
44
|
+
* 1. First request: `GET /v2/changelogs?limit=10`
|
|
45
|
+
* 2. If `nextCursor` is not null, use it for the next page
|
|
46
|
+
* 3. Next request: `GET /v2/changelogs?limit=10&cursor={nextCursor}`
|
|
47
|
+
*
|
|
48
|
+
* ### Response Format
|
|
49
|
+
*
|
|
50
|
+
* Returns a list object with:
|
|
51
|
+
*
|
|
52
|
+
* - `object` - Always "list"
|
|
53
|
+
* - `data` - Array of changelog objects
|
|
54
|
+
* - `nextCursor` - Cursor for the next page (null if no more results)
|
|
55
|
+
*
|
|
56
|
+
* ### Filtering
|
|
57
|
+
*
|
|
58
|
+
* Filter changelogs using query parameters:
|
|
59
|
+
*
|
|
60
|
+
* - `id` - Find a specific changelog by ID or slug
|
|
61
|
+
* - `q` - Search query for title/content
|
|
62
|
+
* - `categories` - Filter by category names
|
|
63
|
+
* - `locale` - Get changelogs in a specific locale (defaults to org default)
|
|
64
|
+
* - `state` - Filter by state: `live`, `draft`, or `all`
|
|
65
|
+
* - `startDate` - Include changelogs dated on or after this date
|
|
66
|
+
* - `endDate` - Include changelogs dated on or before this date
|
|
67
|
+
*
|
|
68
|
+
* ### Sorting
|
|
69
|
+
*
|
|
70
|
+
* Results are sorted by date (descending by default):
|
|
71
|
+
*
|
|
72
|
+
* - `sortBy` - Field to sort by (currently only `date`)
|
|
73
|
+
* - `sortOrder` - Sort direction: `asc` or `desc` (default: `desc`)
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* // Automatically fetches more pages as needed.
|
|
78
|
+
* for await (const changelog of client.changelogs.list()) {
|
|
79
|
+
* // ...
|
|
80
|
+
* }
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
list(
|
|
84
|
+
params: ChangelogListParams | null | undefined = {},
|
|
85
|
+
options?: RequestOptions,
|
|
86
|
+
): PagePromise<ChangelogsCursorPage, Changelog> {
|
|
87
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
88
|
+
return this._client.getAPIList('/v2/changelogs', CursorPage<Changelog>, {
|
|
89
|
+
query,
|
|
90
|
+
...options,
|
|
91
|
+
headers: buildHeaders([
|
|
92
|
+
{
|
|
93
|
+
...(featurebaseVersion?.toString() != null ?
|
|
94
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
95
|
+
: undefined),
|
|
96
|
+
},
|
|
97
|
+
options?.headers,
|
|
98
|
+
]),
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
|
|
24
102
|
/**
|
|
25
103
|
* Creates a new changelog for the authenticated organization.
|
|
26
104
|
*
|
|
@@ -191,84 +269,6 @@ export class Changelogs extends APIResource {
|
|
|
191
269
|
});
|
|
192
270
|
}
|
|
193
271
|
|
|
194
|
-
/**
|
|
195
|
-
* Returns all changelogs for the authenticated organization.
|
|
196
|
-
*
|
|
197
|
-
* Changelogs are release notes and updates that keep users informed about new
|
|
198
|
-
* features, improvements, and bug fixes. Each changelog can have:
|
|
199
|
-
*
|
|
200
|
-
* - Multiple translations (locales)
|
|
201
|
-
* - Categories for organization
|
|
202
|
-
* - Featured images
|
|
203
|
-
* - Scheduled publishing
|
|
204
|
-
*
|
|
205
|
-
* ### Pagination
|
|
206
|
-
*
|
|
207
|
-
* This endpoint uses **cursor-based pagination**:
|
|
208
|
-
*
|
|
209
|
-
* - `limit` - Number of changelogs to return (1-100, default 10)
|
|
210
|
-
* - `cursor` - Opaque cursor from a previous response's `nextCursor` field
|
|
211
|
-
*
|
|
212
|
-
* **Example:** To paginate through results:
|
|
213
|
-
*
|
|
214
|
-
* 1. First request: `GET /v2/changelogs?limit=10`
|
|
215
|
-
* 2. If `nextCursor` is not null, use it for the next page
|
|
216
|
-
* 3. Next request: `GET /v2/changelogs?limit=10&cursor={nextCursor}`
|
|
217
|
-
*
|
|
218
|
-
* ### Response Format
|
|
219
|
-
*
|
|
220
|
-
* Returns a list object with:
|
|
221
|
-
*
|
|
222
|
-
* - `object` - Always "list"
|
|
223
|
-
* - `data` - Array of changelog objects
|
|
224
|
-
* - `nextCursor` - Cursor for the next page (null if no more results)
|
|
225
|
-
*
|
|
226
|
-
* ### Filtering
|
|
227
|
-
*
|
|
228
|
-
* Filter changelogs using query parameters:
|
|
229
|
-
*
|
|
230
|
-
* - `id` - Find a specific changelog by ID or slug
|
|
231
|
-
* - `q` - Search query for title/content
|
|
232
|
-
* - `categories` - Filter by category names
|
|
233
|
-
* - `locale` - Get changelogs in a specific locale (defaults to org default)
|
|
234
|
-
* - `state` - Filter by state: `live`, `draft`, or `all`
|
|
235
|
-
* - `startDate` - Include changelogs dated on or after this date
|
|
236
|
-
* - `endDate` - Include changelogs dated on or before this date
|
|
237
|
-
*
|
|
238
|
-
* ### Sorting
|
|
239
|
-
*
|
|
240
|
-
* Results are sorted by date (descending by default):
|
|
241
|
-
*
|
|
242
|
-
* - `sortBy` - Field to sort by (currently only `date`)
|
|
243
|
-
* - `sortOrder` - Sort direction: `asc` or `desc` (default: `desc`)
|
|
244
|
-
*
|
|
245
|
-
* @example
|
|
246
|
-
* ```ts
|
|
247
|
-
* // Automatically fetches more pages as needed.
|
|
248
|
-
* for await (const changelog of client.changelogs.list()) {
|
|
249
|
-
* // ...
|
|
250
|
-
* }
|
|
251
|
-
* ```
|
|
252
|
-
*/
|
|
253
|
-
list(
|
|
254
|
-
params: ChangelogListParams | null | undefined = {},
|
|
255
|
-
options?: RequestOptions,
|
|
256
|
-
): PagePromise<ChangelogsCursorPage, Changelog> {
|
|
257
|
-
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
258
|
-
return this._client.getAPIList('/v2/changelogs', CursorPage<Changelog>, {
|
|
259
|
-
query,
|
|
260
|
-
...options,
|
|
261
|
-
headers: buildHeaders([
|
|
262
|
-
{
|
|
263
|
-
...(featurebaseVersion?.toString() != null ?
|
|
264
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
265
|
-
: undefined),
|
|
266
|
-
},
|
|
267
|
-
options?.headers,
|
|
268
|
-
]),
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
|
|
272
272
|
/**
|
|
273
273
|
* Deletes a changelog by its unique identifier.
|
|
274
274
|
*
|
|
@@ -699,45 +699,25 @@ export interface ChangelogDeleteResponse {
|
|
|
699
699
|
object: 'changelog';
|
|
700
700
|
}
|
|
701
701
|
|
|
702
|
-
export interface
|
|
703
|
-
/**
|
|
704
|
-
* Body param: The title of the changelog
|
|
705
|
-
*/
|
|
706
|
-
title: string;
|
|
707
|
-
|
|
708
|
-
/**
|
|
709
|
-
* Body param: An array of segment IDs that are allowed to view the changelog
|
|
710
|
-
*/
|
|
711
|
-
allowedSegmentIds?: Array<string>;
|
|
712
|
-
|
|
713
|
-
/**
|
|
714
|
-
* Body param: An array of category names to which the changelog belongs
|
|
715
|
-
*/
|
|
716
|
-
categories?: Array<string>;
|
|
717
|
-
|
|
702
|
+
export interface ChangelogListParams extends CursorPageParams {
|
|
718
703
|
/**
|
|
719
|
-
*
|
|
704
|
+
* Query param: Find changelog by its id (also accepts slug)
|
|
720
705
|
*/
|
|
721
|
-
|
|
706
|
+
id?: string;
|
|
722
707
|
|
|
723
708
|
/**
|
|
724
|
-
*
|
|
725
|
-
* be uploaded to our storage.
|
|
709
|
+
* Query param: Filter changelogs by category names (single value or array)
|
|
726
710
|
*/
|
|
727
|
-
|
|
711
|
+
categories?: string | Array<string>;
|
|
728
712
|
|
|
729
713
|
/**
|
|
730
|
-
*
|
|
731
|
-
* markdownContent. Supports Featurebase custom blocks (callouts, multi-code,
|
|
732
|
-
* accordions, columns, file/image/video, iframes) — see the **Content Components**
|
|
733
|
-
* guide. External image URLs and base64 data URIs are uploaded to our storage
|
|
734
|
-
* automatically.
|
|
714
|
+
* Query param: Include Changelogs dated on or before the specified end date
|
|
735
715
|
*/
|
|
736
|
-
|
|
716
|
+
endDate?: string | null;
|
|
737
717
|
|
|
738
718
|
/**
|
|
739
|
-
*
|
|
740
|
-
* locale
|
|
719
|
+
* Query param: The locale of the changelogs. Defaults to the organization default
|
|
720
|
+
* locale.
|
|
741
721
|
*/
|
|
742
722
|
locale?:
|
|
743
723
|
| 'bn'
|
|
@@ -784,17 +764,30 @@ export interface ChangelogCreateParams {
|
|
|
784
764
|
| 'vi';
|
|
785
765
|
|
|
786
766
|
/**
|
|
787
|
-
*
|
|
788
|
-
* htmlContent or markdownContent. Markdown is converted to plain HTML — to use
|
|
789
|
-
* Featurebase custom blocks (callouts, multi-code, accordions, columns) send
|
|
790
|
-
* htmlContent instead. See the **Content Components** guide.
|
|
767
|
+
* Query param: Search for changelogs by title or content
|
|
791
768
|
*/
|
|
792
|
-
|
|
769
|
+
q?: string;
|
|
793
770
|
|
|
794
771
|
/**
|
|
795
|
-
*
|
|
772
|
+
* Query param: Field to sort by
|
|
796
773
|
*/
|
|
797
|
-
|
|
774
|
+
sortBy?: 'date';
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* Query param: Sort direction
|
|
778
|
+
*/
|
|
779
|
+
sortOrder?: 'asc' | 'desc';
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* Query param: Include Changelogs dated on or after the specified start date
|
|
783
|
+
*/
|
|
784
|
+
startDate?: string | null;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* Query param: The state of the changelog. Use "all" to get both draft and live
|
|
788
|
+
* changelogs.
|
|
789
|
+
*/
|
|
790
|
+
state?: 'draft' | 'live' | 'all';
|
|
798
791
|
|
|
799
792
|
/**
|
|
800
793
|
* Header param: API version for this request. Defaults to your organization's
|
|
@@ -803,15 +796,12 @@ export interface ChangelogCreateParams {
|
|
|
803
796
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
804
797
|
}
|
|
805
798
|
|
|
806
|
-
export interface
|
|
799
|
+
export interface ChangelogCreateParams {
|
|
807
800
|
/**
|
|
808
|
-
*
|
|
809
|
-
* version if not specified.
|
|
801
|
+
* Body param: The title of the changelog
|
|
810
802
|
*/
|
|
811
|
-
|
|
812
|
-
}
|
|
803
|
+
title: string;
|
|
813
804
|
|
|
814
|
-
export interface ChangelogUpdateParams {
|
|
815
805
|
/**
|
|
816
806
|
* Body param: An array of segment IDs that are allowed to view the changelog
|
|
817
807
|
*/
|
|
@@ -843,44 +833,8 @@ export interface ChangelogUpdateParams {
|
|
|
843
833
|
htmlContent?: string;
|
|
844
834
|
|
|
845
835
|
/**
|
|
846
|
-
* Body param:
|
|
847
|
-
*
|
|
848
|
-
* Featurebase custom blocks (callouts, multi-code, accordions, columns) send
|
|
849
|
-
* htmlContent instead. See the **Content Components** guide.
|
|
850
|
-
*/
|
|
851
|
-
markdownContent?: string;
|
|
852
|
-
|
|
853
|
-
/**
|
|
854
|
-
* Body param: The title of the changelog
|
|
855
|
-
*/
|
|
856
|
-
title?: string;
|
|
857
|
-
|
|
858
|
-
/**
|
|
859
|
-
* Header param: API version for this request. Defaults to your organization's
|
|
860
|
-
* configured API version if not specified.
|
|
861
|
-
*/
|
|
862
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
export interface ChangelogListParams extends CursorPageParams {
|
|
866
|
-
/**
|
|
867
|
-
* Query param: Find changelog by its id (also accepts slug)
|
|
868
|
-
*/
|
|
869
|
-
id?: string;
|
|
870
|
-
|
|
871
|
-
/**
|
|
872
|
-
* Query param: Filter changelogs by category names (single value or array)
|
|
873
|
-
*/
|
|
874
|
-
categories?: string | Array<string>;
|
|
875
|
-
|
|
876
|
-
/**
|
|
877
|
-
* Query param: Include Changelogs dated on or before the specified end date
|
|
878
|
-
*/
|
|
879
|
-
endDate?: string | null;
|
|
880
|
-
|
|
881
|
-
/**
|
|
882
|
-
* Query param: The locale of the changelogs. Defaults to the organization default
|
|
883
|
-
* locale.
|
|
836
|
+
* Body param: The locale of the changelog, defaulting to the organization default
|
|
837
|
+
* locale
|
|
884
838
|
*/
|
|
885
839
|
locale?:
|
|
886
840
|
| 'bn'
|
|
@@ -927,30 +881,76 @@ export interface ChangelogListParams extends CursorPageParams {
|
|
|
927
881
|
| 'vi';
|
|
928
882
|
|
|
929
883
|
/**
|
|
930
|
-
*
|
|
884
|
+
* Body param: Markdown content of the changelog (CommonMark + GFM). Provide either
|
|
885
|
+
* htmlContent or markdownContent. Markdown is converted to plain HTML — to use
|
|
886
|
+
* Featurebase custom blocks (callouts, multi-code, accordions, columns) send
|
|
887
|
+
* htmlContent instead. See the **Content Components** guide.
|
|
931
888
|
*/
|
|
932
|
-
|
|
889
|
+
markdownContent?: string;
|
|
933
890
|
|
|
934
891
|
/**
|
|
935
|
-
*
|
|
892
|
+
* Body param: The state of the changelog (draft or live)
|
|
936
893
|
*/
|
|
937
|
-
|
|
894
|
+
state?: 'draft' | 'live';
|
|
938
895
|
|
|
939
896
|
/**
|
|
940
|
-
*
|
|
897
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
898
|
+
* configured API version if not specified.
|
|
941
899
|
*/
|
|
942
|
-
|
|
900
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
901
|
+
}
|
|
943
902
|
|
|
903
|
+
export interface ChangelogRetrieveParams {
|
|
944
904
|
/**
|
|
945
|
-
*
|
|
905
|
+
* API version for this request. Defaults to your organization's configured API
|
|
906
|
+
* version if not specified.
|
|
946
907
|
*/
|
|
947
|
-
|
|
908
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
909
|
+
}
|
|
948
910
|
|
|
911
|
+
export interface ChangelogUpdateParams {
|
|
949
912
|
/**
|
|
950
|
-
*
|
|
951
|
-
* changelogs.
|
|
913
|
+
* Body param: An array of segment IDs that are allowed to view the changelog
|
|
952
914
|
*/
|
|
953
|
-
|
|
915
|
+
allowedSegmentIds?: Array<string>;
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* Body param: An array of category names to which the changelog belongs
|
|
919
|
+
*/
|
|
920
|
+
categories?: Array<string>;
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* Body param: The date of the changelog
|
|
924
|
+
*/
|
|
925
|
+
date?: string | null;
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* Body param: The URL of the featured image for the changelog. External URLs will
|
|
929
|
+
* be uploaded to our storage.
|
|
930
|
+
*/
|
|
931
|
+
featuredImage?: string;
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* Body param: HTML content of the changelog. Provide either htmlContent or
|
|
935
|
+
* markdownContent. Supports Featurebase custom blocks (callouts, multi-code,
|
|
936
|
+
* accordions, columns, file/image/video, iframes) — see the **Content Components**
|
|
937
|
+
* guide. External image URLs and base64 data URIs are uploaded to our storage
|
|
938
|
+
* automatically.
|
|
939
|
+
*/
|
|
940
|
+
htmlContent?: string;
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* Body param: Markdown content of the changelog (CommonMark + GFM). Provide either
|
|
944
|
+
* htmlContent or markdownContent. Markdown is converted to plain HTML — to use
|
|
945
|
+
* Featurebase custom blocks (callouts, multi-code, accordions, columns) send
|
|
946
|
+
* htmlContent instead. See the **Content Components** guide.
|
|
947
|
+
*/
|
|
948
|
+
markdownContent?: string;
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* Body param: The title of the changelog
|
|
952
|
+
*/
|
|
953
|
+
title?: string;
|
|
954
954
|
|
|
955
955
|
/**
|
|
956
956
|
* Header param: API version for this request. Defaults to your organization's
|
|
@@ -1101,10 +1101,10 @@ export declare namespace Changelogs {
|
|
|
1101
1101
|
type PublishUnpublishSuccess as PublishUnpublishSuccess,
|
|
1102
1102
|
type ChangelogDeleteResponse as ChangelogDeleteResponse,
|
|
1103
1103
|
type ChangelogsCursorPage as ChangelogsCursorPage,
|
|
1104
|
+
type ChangelogListParams as ChangelogListParams,
|
|
1104
1105
|
type ChangelogCreateParams as ChangelogCreateParams,
|
|
1105
1106
|
type ChangelogRetrieveParams as ChangelogRetrieveParams,
|
|
1106
1107
|
type ChangelogUpdateParams as ChangelogUpdateParams,
|
|
1107
|
-
type ChangelogListParams as ChangelogListParams,
|
|
1108
1108
|
type ChangelogDeleteParams as ChangelogDeleteParams,
|
|
1109
1109
|
type ChangelogPublishParams as ChangelogPublishParams,
|
|
1110
1110
|
type ChangelogUnpublishParams as ChangelogUnpublishParams,
|
|
@@ -5,10 +5,10 @@ export {
|
|
|
5
5
|
type Changelog,
|
|
6
6
|
type PublishUnpublishSuccess,
|
|
7
7
|
type ChangelogDeleteResponse,
|
|
8
|
+
type ChangelogListParams,
|
|
8
9
|
type ChangelogCreateParams,
|
|
9
10
|
type ChangelogRetrieveParams,
|
|
10
11
|
type ChangelogUpdateParams,
|
|
11
|
-
type ChangelogListParams,
|
|
12
12
|
type ChangelogDeleteParams,
|
|
13
13
|
type ChangelogPublishParams,
|
|
14
14
|
type ChangelogUnpublishParams,
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Conversation custom attribute definitions configured in your Featurebase organization. Use these definitions to map ID-keyed conversation custom attributes to human-readable names and value types.
|
|
11
|
+
*/
|
|
12
|
+
export class ConversationAttributes extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Returns conversation custom attribute definitions configured in your
|
|
15
|
+
* organization.
|
|
16
|
+
*
|
|
17
|
+
* Conversation payloads expose `customAttributes` keyed by stable attribute IDs.
|
|
18
|
+
* Use this endpoint to map those IDs to display names, identifiers, data types,
|
|
19
|
+
* field subtypes, and select options.
|
|
20
|
+
*
|
|
21
|
+
* By default, archived definitions are excluded. Set `includeArchived=true` to
|
|
22
|
+
* include archived definitions.
|
|
23
|
+
*/
|
|
24
|
+
list(
|
|
25
|
+
params: ConversationAttributeListParams | null | undefined = {},
|
|
26
|
+
options?: RequestOptions,
|
|
27
|
+
): APIPromise<ConversationAttributeListResponse> {
|
|
28
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
29
|
+
return this._client.get('/v2/conversation_attributes', {
|
|
30
|
+
query,
|
|
31
|
+
...options,
|
|
32
|
+
headers: buildHeaders([
|
|
33
|
+
{
|
|
34
|
+
...(featurebaseVersion?.toString() != null ?
|
|
35
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
36
|
+
: undefined),
|
|
37
|
+
},
|
|
38
|
+
options?.headers,
|
|
39
|
+
]),
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Retrieves a single conversation custom attribute definition by its stable ID.
|
|
45
|
+
*
|
|
46
|
+
* Use this when a conversation response contains a `customAttributes` key and you
|
|
47
|
+
* need the corresponding display name, identifier, data type, field subtype, or
|
|
48
|
+
* options.
|
|
49
|
+
*/
|
|
50
|
+
retrieve(
|
|
51
|
+
id: string,
|
|
52
|
+
params: ConversationAttributeRetrieveParams | null | undefined = {},
|
|
53
|
+
options?: RequestOptions,
|
|
54
|
+
): APIPromise<ConversationAttribute> {
|
|
55
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
56
|
+
return this._client.get(path`/v2/conversation_attributes/${id}`, {
|
|
57
|
+
...options,
|
|
58
|
+
headers: buildHeaders([
|
|
59
|
+
{
|
|
60
|
+
...(featurebaseVersion?.toString() != null ?
|
|
61
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
62
|
+
: undefined),
|
|
63
|
+
},
|
|
64
|
+
options?.headers,
|
|
65
|
+
]),
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface ConversationAttribute {
|
|
71
|
+
/**
|
|
72
|
+
* Stable machine identifier used as the key in conversation.customAttributes.
|
|
73
|
+
*/
|
|
74
|
+
id: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Whether this definition has been archived.
|
|
78
|
+
*/
|
|
79
|
+
archived: boolean;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Storage-level data type used for validation and search.
|
|
83
|
+
*/
|
|
84
|
+
dataType: 'string' | 'number' | 'boolean' | 'date' | 'array' | 'object';
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Conversation field subtype that controls the expected value shape.
|
|
88
|
+
*/
|
|
89
|
+
fieldSubType: 'text' | 'number' | 'select' | 'multi-select' | 'checkbox' | 'date';
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Stable internal identifier for the attribute definition.
|
|
93
|
+
*/
|
|
94
|
+
identifier: string;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Human-readable attribute name shown in Featurebase.
|
|
98
|
+
*/
|
|
99
|
+
name: string;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Object type identifier
|
|
103
|
+
*/
|
|
104
|
+
object: 'conversation_attribute';
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* ISO timestamp when the attribute was created.
|
|
108
|
+
*/
|
|
109
|
+
createdAt?: string;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Allowed values for select and multi-select attributes.
|
|
113
|
+
*/
|
|
114
|
+
options?: Array<ConversationAttributeOption>;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* ISO timestamp when the attribute was last updated.
|
|
118
|
+
*/
|
|
119
|
+
updatedAt?: string;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface ConversationAttributeOption {
|
|
123
|
+
/**
|
|
124
|
+
* Option display label
|
|
125
|
+
*/
|
|
126
|
+
label: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Option unique identifier when stored for this option.
|
|
130
|
+
*/
|
|
131
|
+
id?: string;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface ConversationAttributeListResponse {
|
|
135
|
+
/**
|
|
136
|
+
* Array of conversation custom attribute definitions.
|
|
137
|
+
*/
|
|
138
|
+
data: Array<ConversationAttribute>;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Cursor for fetching the next page. Always null; all definitions are returned at
|
|
142
|
+
* once.
|
|
143
|
+
*/
|
|
144
|
+
nextCursor: string | null;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Object type identifier
|
|
148
|
+
*/
|
|
149
|
+
object: 'list';
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export interface ConversationAttributeListParams {
|
|
153
|
+
/**
|
|
154
|
+
* Query param: Include archived conversation custom attributes in the response.
|
|
155
|
+
*/
|
|
156
|
+
includeArchived?: boolean | 'true' | 'false';
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
160
|
+
* configured API version if not specified.
|
|
161
|
+
*/
|
|
162
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export interface ConversationAttributeRetrieveParams {
|
|
166
|
+
/**
|
|
167
|
+
* API version for this request. Defaults to your organization's configured API
|
|
168
|
+
* version if not specified.
|
|
169
|
+
*/
|
|
170
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export declare namespace ConversationAttributes {
|
|
174
|
+
export {
|
|
175
|
+
type ConversationAttribute as ConversationAttribute,
|
|
176
|
+
type ConversationAttributeOption as ConversationAttributeOption,
|
|
177
|
+
type ConversationAttributeListResponse as ConversationAttributeListResponse,
|
|
178
|
+
type ConversationAttributeListParams as ConversationAttributeListParams,
|
|
179
|
+
type ConversationAttributeRetrieveParams as ConversationAttributeRetrieveParams,
|
|
180
|
+
};
|
|
181
|
+
}
|