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
package/src/resources/index.ts
CHANGED
|
@@ -5,15 +5,23 @@ 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,
|
|
15
15
|
type ChangelogsCursorPage,
|
|
16
16
|
} from './changelogs/changelogs';
|
|
17
|
+
export {
|
|
18
|
+
ConversationAttributes,
|
|
19
|
+
type ConversationAttribute,
|
|
20
|
+
type ConversationAttributeOption,
|
|
21
|
+
type ConversationAttributeListResponse,
|
|
22
|
+
type ConversationAttributeListParams,
|
|
23
|
+
type ConversationAttributeRetrieveParams,
|
|
24
|
+
} from './conversation-attributes';
|
|
17
25
|
export { Feedback } from './feedback/feedback';
|
|
18
26
|
export { HelpCenter } from './help-center/help-center';
|
|
19
27
|
export { Organization } from './organization/organization';
|
|
@@ -23,8 +31,8 @@ export {
|
|
|
23
31
|
type Survey,
|
|
24
32
|
type SurveyNextAction,
|
|
25
33
|
type SurveyListResponsesResponse,
|
|
26
|
-
type SurveyRetrieveParams,
|
|
27
34
|
type SurveyListParams,
|
|
35
|
+
type SurveyRetrieveParams,
|
|
28
36
|
type SurveyListResponsesParams,
|
|
29
37
|
type SurveysCursorPage,
|
|
30
38
|
type SurveyListResponsesResponsesCursorPage,
|
|
@@ -35,10 +43,10 @@ export {
|
|
|
35
43
|
type Webhook,
|
|
36
44
|
type WebhookRequestConfigInput,
|
|
37
45
|
type WebhookDeleteResponse,
|
|
46
|
+
type WebhookListParams,
|
|
38
47
|
type WebhookCreateParams,
|
|
39
48
|
type WebhookRetrieveParams,
|
|
40
49
|
type WebhookUpdateParams,
|
|
41
|
-
type WebhookListParams,
|
|
42
50
|
type WebhookDeleteParams,
|
|
43
51
|
type WebhookRefreshSecretParams,
|
|
44
52
|
type WebhooksCursorPage,
|
|
@@ -11,31 +11,35 @@ import { path } from '../../internal/utils/path';
|
|
|
11
11
|
*/
|
|
12
12
|
export class Admins extends APIResource {
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Returns all admins for your organization.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
16
|
+
* This endpoint returns all admins at once (typically a small list). No pagination
|
|
17
|
+
* is supported.
|
|
17
18
|
*
|
|
18
|
-
* ### Response
|
|
19
|
+
* ### Response Format
|
|
19
20
|
*
|
|
20
|
-
* Returns
|
|
21
|
+
* Returns a list object with:
|
|
22
|
+
*
|
|
23
|
+
* - `object` - Always "list"
|
|
24
|
+
* - `data` - Array of admin objects
|
|
25
|
+
* - `nextCursor` - Always null
|
|
26
|
+
*
|
|
27
|
+
* ### Admin Object
|
|
28
|
+
*
|
|
29
|
+
* Each admin includes:
|
|
21
30
|
*
|
|
22
31
|
* - `id` - Unique admin identifier
|
|
23
32
|
* - `name` - Admin's display name
|
|
24
33
|
* - `email` - Admin's email address
|
|
25
34
|
* - `picture` - Profile picture URL
|
|
26
35
|
* - `roleId` - ID of the role assigned to this admin
|
|
27
|
-
*
|
|
28
|
-
* ### Errors
|
|
29
|
-
*
|
|
30
|
-
* - `404` - Admin not found or doesn't belong to your organization
|
|
31
36
|
*/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
params: AdminRetrieveParams | null | undefined = {},
|
|
37
|
+
list(
|
|
38
|
+
params: AdminListParams | null | undefined = {},
|
|
35
39
|
options?: RequestOptions,
|
|
36
|
-
): APIPromise<
|
|
40
|
+
): APIPromise<AdminListResponse> {
|
|
37
41
|
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
38
|
-
return this._client.get(
|
|
42
|
+
return this._client.get('/v2/admins', {
|
|
39
43
|
...options,
|
|
40
44
|
headers: buildHeaders([
|
|
41
45
|
{
|
|
@@ -49,35 +53,31 @@ export class Admins extends APIResource {
|
|
|
49
53
|
}
|
|
50
54
|
|
|
51
55
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
* This endpoint returns all admins at once (typically a small list). No pagination
|
|
55
|
-
* is supported.
|
|
56
|
-
*
|
|
57
|
-
* ### Response Format
|
|
58
|
-
*
|
|
59
|
-
* Returns a list object with:
|
|
56
|
+
* Retrieves a single admin by their unique identifier.
|
|
60
57
|
*
|
|
61
|
-
*
|
|
62
|
-
* - `data` - Array of admin objects
|
|
63
|
-
* - `nextCursor` - Always null
|
|
58
|
+
* Returns the admin object if found and they belong to your organization.
|
|
64
59
|
*
|
|
65
|
-
* ###
|
|
60
|
+
* ### Response
|
|
66
61
|
*
|
|
67
|
-
*
|
|
62
|
+
* Returns an admin object with:
|
|
68
63
|
*
|
|
69
64
|
* - `id` - Unique admin identifier
|
|
70
65
|
* - `name` - Admin's display name
|
|
71
66
|
* - `email` - Admin's email address
|
|
72
67
|
* - `picture` - Profile picture URL
|
|
73
68
|
* - `roleId` - ID of the role assigned to this admin
|
|
69
|
+
*
|
|
70
|
+
* ### Errors
|
|
71
|
+
*
|
|
72
|
+
* - `404` - Admin not found or doesn't belong to your organization
|
|
74
73
|
*/
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
retrieve(
|
|
75
|
+
id: string,
|
|
76
|
+
params: AdminRetrieveParams | null | undefined = {},
|
|
77
77
|
options?: RequestOptions,
|
|
78
|
-
): APIPromise<
|
|
78
|
+
): APIPromise<Admin> {
|
|
79
79
|
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
80
|
-
return this._client.get(
|
|
80
|
+
return this._client.get(path`/v2/admins/${id}`, {
|
|
81
81
|
...options,
|
|
82
82
|
headers: buildHeaders([
|
|
83
83
|
{
|
|
@@ -533,7 +533,7 @@ export namespace AdminListRolesResponse {
|
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
|
|
536
|
-
export interface
|
|
536
|
+
export interface AdminListParams {
|
|
537
537
|
/**
|
|
538
538
|
* API version for this request. Defaults to your organization's configured API
|
|
539
539
|
* version if not specified.
|
|
@@ -541,7 +541,7 @@ export interface AdminRetrieveParams {
|
|
|
541
541
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
542
542
|
}
|
|
543
543
|
|
|
544
|
-
export interface
|
|
544
|
+
export interface AdminRetrieveParams {
|
|
545
545
|
/**
|
|
546
546
|
* API version for this request. Defaults to your organization's configured API
|
|
547
547
|
* version if not specified.
|
|
@@ -562,8 +562,8 @@ export declare namespace Admins {
|
|
|
562
562
|
type Admin as Admin,
|
|
563
563
|
type AdminListResponse as AdminListResponse,
|
|
564
564
|
type AdminListRolesResponse as AdminListRolesResponse,
|
|
565
|
-
type AdminRetrieveParams as AdminRetrieveParams,
|
|
566
565
|
type AdminListParams as AdminListParams,
|
|
566
|
+
type AdminRetrieveParams as AdminRetrieveParams,
|
|
567
567
|
type AdminListRolesParams as AdminListRolesParams,
|
|
568
568
|
};
|
|
569
569
|
}
|
|
@@ -12,17 +12,26 @@ import { path } from '../../internal/utils/path';
|
|
|
12
12
|
*/
|
|
13
13
|
export class Brands extends APIResource {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Returns all brands in your organization with cursor-based pagination.
|
|
16
16
|
*
|
|
17
|
-
* ###
|
|
17
|
+
* ### Query Parameters
|
|
18
18
|
*
|
|
19
|
-
* - `
|
|
19
|
+
* - `limit` - Number of brands to return (1-100, default: 10)
|
|
20
|
+
* - `cursor` - Opaque cursor from a previous response for pagination
|
|
20
21
|
*
|
|
21
|
-
* ### Response
|
|
22
|
+
* ### Response Structure
|
|
22
23
|
*
|
|
23
|
-
*
|
|
24
|
+
* The response includes:
|
|
24
25
|
*
|
|
25
|
-
* - `
|
|
26
|
+
* - `object` - Always "list"
|
|
27
|
+
* - `data` - Array of brand objects
|
|
28
|
+
* - `nextCursor` - Cursor for the next page (null if no more results)
|
|
29
|
+
*
|
|
30
|
+
* ### Brand Object
|
|
31
|
+
*
|
|
32
|
+
* Each brand includes:
|
|
33
|
+
*
|
|
34
|
+
* - `id` - Featurebase internal ID (MongoDB ObjectId)
|
|
26
35
|
* - `name` - Brand display name
|
|
27
36
|
* - `isDefault` - Whether this is the default brand
|
|
28
37
|
* - `createdAt` - Creation timestamp
|
|
@@ -34,32 +43,34 @@ export class Brands extends APIResource {
|
|
|
34
43
|
*
|
|
35
44
|
* ```json
|
|
36
45
|
* {
|
|
37
|
-
* "object": "
|
|
38
|
-
* "
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
46
|
+
* "object": "list",
|
|
47
|
+
* "data": [
|
|
48
|
+
* {
|
|
49
|
+
* "object": "brand",
|
|
50
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
51
|
+
* "name": "Default Brand",
|
|
52
|
+
* "isDefault": true,
|
|
53
|
+
* "createdAt": "2025-01-01T12:00:00.000Z",
|
|
54
|
+
* "updatedAt": "2025-01-10T15:30:00.000Z",
|
|
55
|
+
* "helpCenterId": "11",
|
|
56
|
+
* "senderEmailAddressId": "507f1f77bcf86cd799439012"
|
|
57
|
+
* }
|
|
58
|
+
* ],
|
|
59
|
+
* "nextCursor": null
|
|
45
60
|
* }
|
|
46
61
|
* ```
|
|
47
62
|
*
|
|
48
|
-
* ### Error Responses
|
|
49
|
-
*
|
|
50
|
-
* - **404 Not Found** - Brand with the specified ID does not exist
|
|
51
|
-
*
|
|
52
63
|
* ### Version Availability
|
|
53
64
|
*
|
|
54
65
|
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
55
66
|
*/
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
params: BrandRetrieveParams | null | undefined = {},
|
|
67
|
+
list(
|
|
68
|
+
params: BrandListParams | null | undefined = {},
|
|
59
69
|
options?: RequestOptions,
|
|
60
|
-
):
|
|
61
|
-
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
62
|
-
return this._client.
|
|
70
|
+
): PagePromise<BrandsCursorPage, Brand> {
|
|
71
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
72
|
+
return this._client.getAPIList('/v2/brands', CursorPage<Brand>, {
|
|
73
|
+
query,
|
|
63
74
|
...options,
|
|
64
75
|
headers: buildHeaders([
|
|
65
76
|
{
|
|
@@ -73,26 +84,17 @@ export class Brands extends APIResource {
|
|
|
73
84
|
}
|
|
74
85
|
|
|
75
86
|
/**
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* ### Query Parameters
|
|
79
|
-
*
|
|
80
|
-
* - `limit` - Number of brands to return (1-100, default: 10)
|
|
81
|
-
* - `cursor` - Opaque cursor from a previous response for pagination
|
|
82
|
-
*
|
|
83
|
-
* ### Response Structure
|
|
87
|
+
* Retrieves a single brand by its Featurebase ID.
|
|
84
88
|
*
|
|
85
|
-
*
|
|
89
|
+
* ### Path Parameters
|
|
86
90
|
*
|
|
87
|
-
* - `
|
|
88
|
-
* - `data` - Array of brand objects
|
|
89
|
-
* - `nextCursor` - Cursor for the next page (null if no more results)
|
|
91
|
+
* - `id` - The Featurebase internal ID of the brand (MongoDB ObjectId)
|
|
90
92
|
*
|
|
91
|
-
* ###
|
|
93
|
+
* ### Response
|
|
92
94
|
*
|
|
93
|
-
*
|
|
95
|
+
* Returns a brand object with:
|
|
94
96
|
*
|
|
95
|
-
* - `id` - Featurebase internal ID
|
|
97
|
+
* - `id` - Featurebase internal ID
|
|
96
98
|
* - `name` - Brand display name
|
|
97
99
|
* - `isDefault` - Whether this is the default brand
|
|
98
100
|
* - `createdAt` - Creation timestamp
|
|
@@ -104,34 +106,32 @@ export class Brands extends APIResource {
|
|
|
104
106
|
*
|
|
105
107
|
* ```json
|
|
106
108
|
* {
|
|
107
|
-
* "object": "
|
|
108
|
-
* "
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
* "updatedAt": "2025-01-10T15:30:00.000Z",
|
|
116
|
-
* "helpCenterId": "11",
|
|
117
|
-
* "senderEmailAddressId": "507f1f77bcf86cd799439012"
|
|
118
|
-
* }
|
|
119
|
-
* ],
|
|
120
|
-
* "nextCursor": null
|
|
109
|
+
* "object": "brand",
|
|
110
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
111
|
+
* "name": "Default Brand",
|
|
112
|
+
* "isDefault": true,
|
|
113
|
+
* "createdAt": "2025-01-01T12:00:00.000Z",
|
|
114
|
+
* "updatedAt": "2025-01-10T15:30:00.000Z",
|
|
115
|
+
* "helpCenterId": "11",
|
|
116
|
+
* "senderEmailAddressId": "507f1f77bcf86cd799439012"
|
|
121
117
|
* }
|
|
122
118
|
* ```
|
|
123
119
|
*
|
|
120
|
+
* ### Error Responses
|
|
121
|
+
*
|
|
122
|
+
* - **404 Not Found** - Brand with the specified ID does not exist
|
|
123
|
+
*
|
|
124
124
|
* ### Version Availability
|
|
125
125
|
*
|
|
126
126
|
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
127
127
|
*/
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
retrieve(
|
|
129
|
+
id: string,
|
|
130
|
+
params: BrandRetrieveParams | null | undefined = {},
|
|
130
131
|
options?: RequestOptions,
|
|
131
|
-
):
|
|
132
|
-
const { 'Featurebase-Version': featurebaseVersion
|
|
133
|
-
return this._client.
|
|
134
|
-
query,
|
|
132
|
+
): APIPromise<Brand> {
|
|
133
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
134
|
+
return this._client.get(path`/v2/brands/${id}`, {
|
|
135
135
|
...options,
|
|
136
136
|
headers: buildHeaders([
|
|
137
137
|
{
|
|
@@ -189,18 +189,18 @@ export interface Brand {
|
|
|
189
189
|
updatedAt: string | null;
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
export interface
|
|
192
|
+
export interface BrandListParams extends CursorPageParams {
|
|
193
193
|
/**
|
|
194
|
-
* API version for this request. Defaults to your organization's
|
|
195
|
-
* version if not specified.
|
|
194
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
195
|
+
* configured API version if not specified.
|
|
196
196
|
*/
|
|
197
197
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
export interface
|
|
200
|
+
export interface BrandRetrieveParams {
|
|
201
201
|
/**
|
|
202
|
-
*
|
|
203
|
-
*
|
|
202
|
+
* API version for this request. Defaults to your organization's configured API
|
|
203
|
+
* version if not specified.
|
|
204
204
|
*/
|
|
205
205
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
206
206
|
}
|
|
@@ -209,7 +209,7 @@ export declare namespace Brands {
|
|
|
209
209
|
export {
|
|
210
210
|
type Brand as Brand,
|
|
211
211
|
type BrandsCursorPage as BrandsCursorPage,
|
|
212
|
-
type BrandRetrieveParams as BrandRetrieveParams,
|
|
213
212
|
type BrandListParams as BrandListParams,
|
|
213
|
+
type BrandRetrieveParams as BrandRetrieveParams,
|
|
214
214
|
};
|
|
215
215
|
}
|
|
@@ -5,15 +5,15 @@ export {
|
|
|
5
5
|
type Admin,
|
|
6
6
|
type AdminListResponse,
|
|
7
7
|
type AdminListRolesResponse,
|
|
8
|
-
type AdminRetrieveParams,
|
|
9
8
|
type AdminListParams,
|
|
9
|
+
type AdminRetrieveParams,
|
|
10
10
|
type AdminListRolesParams,
|
|
11
11
|
} from './admins';
|
|
12
12
|
export {
|
|
13
13
|
Brands,
|
|
14
14
|
type Brand,
|
|
15
|
-
type BrandRetrieveParams,
|
|
16
15
|
type BrandListParams,
|
|
16
|
+
type BrandRetrieveParams,
|
|
17
17
|
type BrandsCursorPage,
|
|
18
18
|
} from './brands';
|
|
19
19
|
export { Organization } from './organization';
|
|
@@ -21,6 +21,6 @@ export {
|
|
|
21
21
|
Teams,
|
|
22
22
|
type Team,
|
|
23
23
|
type TeamListResponse,
|
|
24
|
-
type TeamRetrieveParams,
|
|
25
24
|
type TeamListParams,
|
|
25
|
+
type TeamRetrieveParams,
|
|
26
26
|
} from './teams';
|
|
@@ -32,8 +32,8 @@ export declare namespace Organization {
|
|
|
32
32
|
type Admin as Admin,
|
|
33
33
|
type AdminListResponse as AdminListResponse,
|
|
34
34
|
type AdminListRolesResponse as AdminListRolesResponse,
|
|
35
|
-
type AdminRetrieveParams as AdminRetrieveParams,
|
|
36
35
|
type AdminListParams as AdminListParams,
|
|
36
|
+
type AdminRetrieveParams as AdminRetrieveParams,
|
|
37
37
|
type AdminListRolesParams as AdminListRolesParams,
|
|
38
38
|
};
|
|
39
39
|
|
|
@@ -41,15 +41,15 @@ export declare namespace Organization {
|
|
|
41
41
|
Teams as Teams,
|
|
42
42
|
type Team as Team,
|
|
43
43
|
type TeamListResponse as TeamListResponse,
|
|
44
|
-
type TeamRetrieveParams as TeamRetrieveParams,
|
|
45
44
|
type TeamListParams as TeamListParams,
|
|
45
|
+
type TeamRetrieveParams as TeamRetrieveParams,
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
export {
|
|
49
49
|
Brands as Brands,
|
|
50
50
|
type Brand as Brand,
|
|
51
51
|
type BrandsCursorPage as BrandsCursorPage,
|
|
52
|
-
type BrandRetrieveParams as BrandRetrieveParams,
|
|
53
52
|
type BrandListParams as BrandListParams,
|
|
53
|
+
type BrandRetrieveParams as BrandRetrieveParams,
|
|
54
54
|
};
|
|
55
55
|
}
|
|
@@ -11,15 +11,18 @@ import { path } from '../../internal/utils/path';
|
|
|
11
11
|
*/
|
|
12
12
|
export class Teams extends APIResource {
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Returns all teams in your organization.
|
|
15
15
|
*
|
|
16
|
-
* ###
|
|
16
|
+
* ### Response Structure
|
|
17
17
|
*
|
|
18
|
-
*
|
|
18
|
+
* The response includes:
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* - `object` - Always "list"
|
|
21
|
+
* - `data` - Array of team objects
|
|
21
22
|
*
|
|
22
|
-
*
|
|
23
|
+
* ### Team Object
|
|
24
|
+
*
|
|
25
|
+
* Each team includes:
|
|
23
26
|
*
|
|
24
27
|
* - `id` - Unique team identifier
|
|
25
28
|
* - `name` - Team display name
|
|
@@ -31,33 +34,33 @@ export class Teams extends APIResource {
|
|
|
31
34
|
*
|
|
32
35
|
* ```json
|
|
33
36
|
* {
|
|
34
|
-
* "object": "
|
|
35
|
-
* "
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
37
|
+
* "object": "list",
|
|
38
|
+
* "data": [
|
|
39
|
+
* {
|
|
40
|
+
* "object": "team",
|
|
41
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
42
|
+
* "name": "Support Team",
|
|
43
|
+
* "color": "#3B82F6",
|
|
44
|
+
* "icon": {
|
|
45
|
+
* "value": "👥",
|
|
46
|
+
* "type": "emoji"
|
|
47
|
+
* },
|
|
48
|
+
* "members": ["5fef50c5e9458a0012f82456", "5fef50c5e9458a0012f82457"]
|
|
49
|
+
* }
|
|
50
|
+
* ]
|
|
43
51
|
* }
|
|
44
52
|
* ```
|
|
45
53
|
*
|
|
46
|
-
* ### Error Responses
|
|
47
|
-
*
|
|
48
|
-
* - **404 Not Found** - Team with the specified ID does not exist
|
|
49
|
-
*
|
|
50
54
|
* ### Version Availability
|
|
51
55
|
*
|
|
52
56
|
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
53
57
|
*/
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
params: TeamRetrieveParams | null | undefined = {},
|
|
58
|
+
list(
|
|
59
|
+
params: TeamListParams | null | undefined = {},
|
|
57
60
|
options?: RequestOptions,
|
|
58
|
-
): APIPromise<
|
|
61
|
+
): APIPromise<TeamListResponse> {
|
|
59
62
|
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
60
|
-
return this._client.get(
|
|
63
|
+
return this._client.get('/v2/teams', {
|
|
61
64
|
...options,
|
|
62
65
|
headers: buildHeaders([
|
|
63
66
|
{
|
|
@@ -71,18 +74,15 @@ export class Teams extends APIResource {
|
|
|
71
74
|
}
|
|
72
75
|
|
|
73
76
|
/**
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* ### Response Structure
|
|
77
|
+
* Retrieves a single team by its Featurebase ID.
|
|
77
78
|
*
|
|
78
|
-
*
|
|
79
|
+
* ### Path Parameters
|
|
79
80
|
*
|
|
80
|
-
* - `
|
|
81
|
-
* - `data` - Array of team objects
|
|
81
|
+
* - `id` - The Featurebase internal ID of the team (MongoDB ObjectId)
|
|
82
82
|
*
|
|
83
|
-
* ###
|
|
83
|
+
* ### Response
|
|
84
84
|
*
|
|
85
|
-
*
|
|
85
|
+
* Returns a team object with:
|
|
86
86
|
*
|
|
87
87
|
* - `id` - Unique team identifier
|
|
88
88
|
* - `name` - Team display name
|
|
@@ -94,33 +94,33 @@ export class Teams extends APIResource {
|
|
|
94
94
|
*
|
|
95
95
|
* ```json
|
|
96
96
|
* {
|
|
97
|
-
* "object": "
|
|
98
|
-
* "
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
* "type": "emoji"
|
|
107
|
-
* },
|
|
108
|
-
* "members": ["5fef50c5e9458a0012f82456", "5fef50c5e9458a0012f82457"]
|
|
109
|
-
* }
|
|
110
|
-
* ]
|
|
97
|
+
* "object": "team",
|
|
98
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
99
|
+
* "name": "Support Team",
|
|
100
|
+
* "color": "#3B82F6",
|
|
101
|
+
* "icon": {
|
|
102
|
+
* "value": "👥",
|
|
103
|
+
* "type": "emoji"
|
|
104
|
+
* },
|
|
105
|
+
* "members": ["5fef50c5e9458a0012f82456", "5fef50c5e9458a0012f82457"]
|
|
111
106
|
* }
|
|
112
107
|
* ```
|
|
113
108
|
*
|
|
109
|
+
* ### Error Responses
|
|
110
|
+
*
|
|
111
|
+
* - **404 Not Found** - Team with the specified ID does not exist
|
|
112
|
+
*
|
|
114
113
|
* ### Version Availability
|
|
115
114
|
*
|
|
116
115
|
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
117
116
|
*/
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
retrieve(
|
|
118
|
+
id: string,
|
|
119
|
+
params: TeamRetrieveParams | null | undefined = {},
|
|
120
120
|
options?: RequestOptions,
|
|
121
|
-
): APIPromise<
|
|
121
|
+
): APIPromise<Team> {
|
|
122
122
|
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
123
|
-
return this._client.get(
|
|
123
|
+
return this._client.get(path`/v2/teams/${id}`, {
|
|
124
124
|
...options,
|
|
125
125
|
headers: buildHeaders([
|
|
126
126
|
{
|
|
@@ -195,7 +195,7 @@ export interface TeamListResponse {
|
|
|
195
195
|
object: 'list';
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
export interface
|
|
198
|
+
export interface TeamListParams {
|
|
199
199
|
/**
|
|
200
200
|
* API version for this request. Defaults to your organization's configured API
|
|
201
201
|
* version if not specified.
|
|
@@ -203,7 +203,7 @@ export interface TeamRetrieveParams {
|
|
|
203
203
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
export interface
|
|
206
|
+
export interface TeamRetrieveParams {
|
|
207
207
|
/**
|
|
208
208
|
* API version for this request. Defaults to your organization's configured API
|
|
209
209
|
* version if not specified.
|
|
@@ -215,7 +215,7 @@ export declare namespace Teams {
|
|
|
215
215
|
export {
|
|
216
216
|
type Team as Team,
|
|
217
217
|
type TeamListResponse as TeamListResponse,
|
|
218
|
-
type TeamRetrieveParams as TeamRetrieveParams,
|
|
219
218
|
type TeamListParams as TeamListParams,
|
|
219
|
+
type TeamRetrieveParams as TeamRetrieveParams,
|
|
220
220
|
};
|
|
221
221
|
}
|