featurebase-node 0.13.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +21 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +21 -3
- package/client.d.ts.map +1 -1
- package/client.js +27 -1
- package/client.js.map +1 -1
- package/client.mjs +27 -1
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +16 -10
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/audit-logs.d.mts +233 -0
- package/resources/audit-logs.d.mts.map +1 -0
- package/resources/audit-logs.d.ts +233 -0
- package/resources/audit-logs.d.ts.map +1 -0
- package/resources/audit-logs.js +122 -0
- package/resources/audit-logs.js.map +1 -0
- package/resources/audit-logs.mjs +118 -0
- package/resources/audit-logs.mjs.map +1 -0
- package/resources/changelogs/changelogs.d.mts +106 -106
- package/resources/changelogs/changelogs.d.mts.map +1 -1
- package/resources/changelogs/changelogs.d.ts +106 -106
- package/resources/changelogs/changelogs.d.ts.map +1 -1
- package/resources/changelogs/changelogs.js +74 -74
- package/resources/changelogs/changelogs.js.map +1 -1
- package/resources/changelogs/changelogs.mjs +74 -74
- package/resources/changelogs/changelogs.mjs.map +1 -1
- package/resources/changelogs/index.d.mts +1 -1
- package/resources/changelogs/index.d.mts.map +1 -1
- package/resources/changelogs/index.d.ts +1 -1
- package/resources/changelogs/index.d.ts.map +1 -1
- package/resources/changelogs/index.mjs.map +1 -1
- package/resources/changelogs/subscribers.d.mts.map +1 -1
- package/resources/changelogs/subscribers.d.ts.map +1 -1
- package/resources/changelogs/subscribers.mjs.map +1 -1
- package/resources/changelogs.d.mts.map +1 -1
- package/resources/changelogs.d.ts.map +1 -1
- package/resources/changelogs.mjs.map +1 -1
- package/resources/conversation-attributes.d.mts +117 -0
- package/resources/conversation-attributes.d.mts.map +1 -0
- package/resources/conversation-attributes.d.ts +117 -0
- package/resources/conversation-attributes.d.ts.map +1 -0
- package/resources/conversation-attributes.js +61 -0
- package/resources/conversation-attributes.js.map +1 -0
- package/resources/conversation-attributes.mjs +57 -0
- package/resources/conversation-attributes.mjs.map +1 -0
- package/resources/feedback/boards.d.mts +17 -17
- package/resources/feedback/boards.d.mts.map +1 -1
- package/resources/feedback/boards.d.ts +17 -17
- package/resources/feedback/boards.d.ts.map +1 -1
- package/resources/feedback/boards.js +20 -20
- package/resources/feedback/boards.js.map +1 -1
- package/resources/feedback/boards.mjs +20 -20
- package/resources/feedback/boards.mjs.map +1 -1
- package/resources/feedback/comments.d.mts +129 -191
- package/resources/feedback/comments.d.mts.map +1 -1
- package/resources/feedback/comments.d.ts +129 -191
- package/resources/feedback/comments.d.ts.map +1 -1
- package/resources/feedback/comments.js +93 -93
- package/resources/feedback/comments.js.map +1 -1
- package/resources/feedback/comments.mjs +93 -93
- package/resources/feedback/comments.mjs.map +1 -1
- package/resources/feedback/custom-fields.d.mts +34 -34
- package/resources/feedback/custom-fields.d.mts.map +1 -1
- package/resources/feedback/custom-fields.d.ts +34 -34
- package/resources/feedback/custom-fields.d.ts.map +1 -1
- package/resources/feedback/custom-fields.js +36 -36
- package/resources/feedback/custom-fields.js.map +1 -1
- package/resources/feedback/custom-fields.mjs +36 -36
- package/resources/feedback/custom-fields.mjs.map +1 -1
- package/resources/feedback/feedback.d.mts +7 -7
- package/resources/feedback/feedback.d.mts.map +1 -1
- package/resources/feedback/feedback.d.ts +7 -7
- package/resources/feedback/feedback.d.ts.map +1 -1
- package/resources/feedback/feedback.js.map +1 -1
- package/resources/feedback/feedback.mjs.map +1 -1
- package/resources/feedback/index.d.mts +5 -5
- package/resources/feedback/index.d.mts.map +1 -1
- package/resources/feedback/index.d.ts +5 -5
- package/resources/feedback/index.d.ts.map +1 -1
- package/resources/feedback/index.js.map +1 -1
- package/resources/feedback/index.mjs.map +1 -1
- package/resources/feedback/post-statuses.d.mts +18 -18
- package/resources/feedback/post-statuses.d.mts.map +1 -1
- package/resources/feedback/post-statuses.d.ts +18 -18
- package/resources/feedback/post-statuses.d.ts.map +1 -1
- package/resources/feedback/post-statuses.js +23 -23
- package/resources/feedback/post-statuses.js.map +1 -1
- package/resources/feedback/post-statuses.mjs +23 -23
- package/resources/feedback/post-statuses.mjs.map +1 -1
- package/resources/feedback/posts/index.d.mts +1 -1
- package/resources/feedback/posts/index.d.mts.map +1 -1
- package/resources/feedback/posts/index.d.ts +1 -1
- package/resources/feedback/posts/index.d.ts.map +1 -1
- package/resources/feedback/posts/index.js.map +1 -1
- package/resources/feedback/posts/index.mjs.map +1 -1
- package/resources/feedback/posts/posts.d.mts +187 -260
- package/resources/feedback/posts/posts.d.mts.map +1 -1
- package/resources/feedback/posts/posts.d.ts +187 -260
- package/resources/feedback/posts/posts.d.ts.map +1 -1
- package/resources/feedback/posts/posts.js +75 -75
- package/resources/feedback/posts/posts.js.map +1 -1
- package/resources/feedback/posts/posts.mjs +75 -75
- package/resources/feedback/posts/posts.mjs.map +1 -1
- package/resources/feedback/posts/voters.d.mts.map +1 -1
- package/resources/feedback/posts/voters.d.ts.map +1 -1
- package/resources/feedback/posts/voters.mjs.map +1 -1
- package/resources/feedback/posts.d.mts.map +1 -1
- package/resources/feedback/posts.d.ts.map +1 -1
- package/resources/feedback/posts.mjs.map +1 -1
- package/resources/feedback.d.mts.map +1 -1
- package/resources/feedback.d.ts.map +1 -1
- package/resources/feedback.mjs.map +1 -1
- package/resources/help-center/articles.d.mts +98 -152
- package/resources/help-center/articles.d.mts.map +1 -1
- package/resources/help-center/articles.d.ts +98 -152
- package/resources/help-center/articles.d.ts.map +1 -1
- package/resources/help-center/articles.js +73 -73
- package/resources/help-center/articles.js.map +1 -1
- package/resources/help-center/articles.mjs +73 -73
- package/resources/help-center/articles.mjs.map +1 -1
- package/resources/help-center/collections.d.mts +64 -64
- package/resources/help-center/collections.d.mts.map +1 -1
- package/resources/help-center/collections.d.ts +64 -64
- package/resources/help-center/collections.d.ts.map +1 -1
- package/resources/help-center/collections.js +65 -65
- package/resources/help-center/collections.js.map +1 -1
- package/resources/help-center/collections.mjs +65 -65
- package/resources/help-center/collections.mjs.map +1 -1
- package/resources/help-center/help-center.d.mts +5 -5
- package/resources/help-center/help-center.d.mts.map +1 -1
- package/resources/help-center/help-center.d.ts +5 -5
- package/resources/help-center/help-center.d.ts.map +1 -1
- package/resources/help-center/help-center.js.map +1 -1
- package/resources/help-center/help-center.mjs.map +1 -1
- package/resources/help-center/help-centers.d.mts +43 -43
- package/resources/help-center/help-centers.d.mts.map +1 -1
- package/resources/help-center/help-centers.d.ts +43 -43
- package/resources/help-center/help-centers.d.ts.map +1 -1
- package/resources/help-center/help-centers.js +43 -43
- package/resources/help-center/help-centers.js.map +1 -1
- package/resources/help-center/help-centers.mjs +43 -43
- package/resources/help-center/help-centers.mjs.map +1 -1
- package/resources/help-center/index.d.mts +4 -4
- package/resources/help-center/index.d.mts.map +1 -1
- package/resources/help-center/index.d.ts +4 -4
- package/resources/help-center/index.d.ts.map +1 -1
- package/resources/help-center/index.js.map +1 -1
- package/resources/help-center/index.mjs.map +1 -1
- package/resources/help-center/redirect-rules.d.mts +117 -117
- package/resources/help-center/redirect-rules.d.mts.map +1 -1
- package/resources/help-center/redirect-rules.d.ts +117 -117
- package/resources/help-center/redirect-rules.d.ts.map +1 -1
- package/resources/help-center/redirect-rules.js +112 -112
- package/resources/help-center/redirect-rules.js.map +1 -1
- package/resources/help-center/redirect-rules.mjs +112 -112
- package/resources/help-center/redirect-rules.mjs.map +1 -1
- package/resources/help-center.d.mts.map +1 -1
- package/resources/help-center.d.ts.map +1 -1
- package/resources/help-center.mjs.map +1 -1
- package/resources/index.d.mts +6 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization/admins.d.mts +33 -23
- package/resources/organization/admins.d.mts.map +1 -1
- package/resources/organization/admins.d.ts +33 -23
- package/resources/organization/admins.d.ts.map +1 -1
- package/resources/organization/admins.js +27 -25
- package/resources/organization/admins.js.map +1 -1
- package/resources/organization/admins.mjs +27 -25
- package/resources/organization/admins.mjs.map +1 -1
- package/resources/organization/brands.d.mts +50 -50
- package/resources/organization/brands.d.mts.map +1 -1
- package/resources/organization/brands.d.ts +50 -50
- package/resources/organization/brands.d.ts.map +1 -1
- package/resources/organization/brands.js +54 -54
- package/resources/organization/brands.js.map +1 -1
- package/resources/organization/brands.mjs +54 -54
- package/resources/organization/brands.mjs.map +1 -1
- package/resources/organization/index.d.mts +3 -3
- package/resources/organization/index.d.mts.map +1 -1
- package/resources/organization/index.d.ts +3 -3
- package/resources/organization/index.d.ts.map +1 -1
- package/resources/organization/index.mjs.map +1 -1
- package/resources/organization/organization.d.mts +3 -3
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +3 -3
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/organization/teams.d.mts +45 -45
- package/resources/organization/teams.d.mts.map +1 -1
- package/resources/organization/teams.d.ts +45 -45
- package/resources/organization/teams.d.ts.map +1 -1
- package/resources/organization/teams.js +44 -44
- package/resources/organization/teams.js.map +1 -1
- package/resources/organization/teams.mjs +44 -44
- package/resources/organization/teams.mjs.map +1 -1
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts.map +1 -1
- package/resources/organization.mjs.map +1 -1
- package/resources/reports.d.mts +641 -0
- package/resources/reports.d.mts.map +1 -0
- package/resources/reports.d.ts +641 -0
- package/resources/reports.d.ts.map +1 -0
- package/resources/reports.js +238 -0
- package/resources/reports.js.map +1 -0
- package/resources/reports.mjs +234 -0
- package/resources/reports.mjs.map +1 -0
- package/resources/support/conversation-tags.d.mts +40 -40
- package/resources/support/conversation-tags.d.mts.map +1 -1
- package/resources/support/conversation-tags.d.ts +40 -40
- package/resources/support/conversation-tags.d.ts.map +1 -1
- package/resources/support/conversation-tags.js +32 -32
- package/resources/support/conversation-tags.js.map +1 -1
- package/resources/support/conversation-tags.mjs +32 -32
- package/resources/support/conversation-tags.mjs.map +1 -1
- package/resources/support/conversations/conversations.d.mts +599 -705
- package/resources/support/conversations/conversations.d.mts.map +1 -1
- package/resources/support/conversations/conversations.d.ts +599 -705
- package/resources/support/conversations/conversations.d.ts.map +1 -1
- package/resources/support/conversations/conversations.js +289 -288
- package/resources/support/conversations/conversations.js.map +1 -1
- package/resources/support/conversations/conversations.mjs +289 -288
- package/resources/support/conversations/conversations.mjs.map +1 -1
- package/resources/support/conversations/index.d.mts +1 -1
- package/resources/support/conversations/index.d.mts.map +1 -1
- package/resources/support/conversations/index.d.ts +1 -1
- package/resources/support/conversations/index.d.ts.map +1 -1
- package/resources/support/conversations/index.js.map +1 -1
- package/resources/support/conversations/index.mjs.map +1 -1
- package/resources/support/conversations/participants.d.mts.map +1 -1
- package/resources/support/conversations/participants.d.ts.map +1 -1
- package/resources/support/conversations/participants.mjs.map +1 -1
- package/resources/support/conversations.d.mts.map +1 -1
- package/resources/support/conversations.d.ts.map +1 -1
- package/resources/support/conversations.mjs.map +1 -1
- package/resources/support/index.d.mts +3 -3
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +3 -3
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.js.map +1 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts +4 -4
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +4 -4
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.js.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets/categories.d.mts +18 -18
- package/resources/support/tickets/categories.d.mts.map +1 -1
- package/resources/support/tickets/categories.d.ts +18 -18
- package/resources/support/tickets/categories.d.ts.map +1 -1
- package/resources/support/tickets/categories.js +25 -25
- package/resources/support/tickets/categories.js.map +1 -1
- package/resources/support/tickets/categories.mjs +25 -25
- package/resources/support/tickets/categories.mjs.map +1 -1
- package/resources/support/tickets/custom-fields.d.mts +20 -20
- package/resources/support/tickets/custom-fields.d.mts.map +1 -1
- package/resources/support/tickets/custom-fields.d.ts +20 -20
- package/resources/support/tickets/custom-fields.d.ts.map +1 -1
- package/resources/support/tickets/custom-fields.js +19 -19
- package/resources/support/tickets/custom-fields.js.map +1 -1
- package/resources/support/tickets/custom-fields.mjs +19 -19
- package/resources/support/tickets/custom-fields.mjs.map +1 -1
- package/resources/support/tickets/index.d.mts +4 -4
- package/resources/support/tickets/index.d.mts.map +1 -1
- package/resources/support/tickets/index.d.ts +4 -4
- package/resources/support/tickets/index.d.ts.map +1 -1
- package/resources/support/tickets/index.mjs.map +1 -1
- package/resources/support/tickets/statuses.d.mts +17 -17
- package/resources/support/tickets/statuses.d.mts.map +1 -1
- package/resources/support/tickets/statuses.d.ts +17 -17
- package/resources/support/tickets/statuses.d.ts.map +1 -1
- package/resources/support/tickets/statuses.js +21 -21
- package/resources/support/tickets/statuses.js.map +1 -1
- package/resources/support/tickets/statuses.mjs +21 -21
- package/resources/support/tickets/statuses.mjs.map +1 -1
- package/resources/support/tickets/tickets.d.mts +69 -69
- package/resources/support/tickets/tickets.d.mts.map +1 -1
- package/resources/support/tickets/tickets.d.ts +69 -69
- package/resources/support/tickets/tickets.d.ts.map +1 -1
- package/resources/support/tickets/tickets.js +44 -44
- package/resources/support/tickets/tickets.js.map +1 -1
- package/resources/support/tickets/tickets.mjs +44 -44
- package/resources/support/tickets/tickets.mjs.map +1 -1
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/support.d.mts.map +1 -1
- package/resources/support.d.ts.map +1 -1
- package/resources/support.mjs.map +1 -1
- package/resources/surveys.d.mts +41 -41
- package/resources/surveys.d.mts.map +1 -1
- package/resources/surveys.d.ts +41 -41
- package/resources/surveys.d.ts.map +1 -1
- package/resources/surveys.js +44 -44
- package/resources/surveys.js.map +1 -1
- package/resources/surveys.mjs +44 -44
- package/resources/surveys.mjs.map +1 -1
- package/resources/users/companies/companies.d.mts +116 -157
- package/resources/users/companies/companies.d.mts.map +1 -1
- package/resources/users/companies/companies.d.ts +116 -157
- package/resources/users/companies/companies.d.ts.map +1 -1
- package/resources/users/companies/companies.js +125 -125
- package/resources/users/companies/companies.js.map +1 -1
- package/resources/users/companies/companies.mjs +125 -125
- package/resources/users/companies/companies.mjs.map +1 -1
- package/resources/users/companies/contacts.d.mts.map +1 -1
- package/resources/users/companies/contacts.d.ts.map +1 -1
- package/resources/users/companies/contacts.mjs.map +1 -1
- package/resources/users/companies/index.d.mts +1 -1
- package/resources/users/companies/index.d.mts.map +1 -1
- package/resources/users/companies/index.d.ts +1 -1
- package/resources/users/companies/index.d.ts.map +1 -1
- package/resources/users/companies/index.mjs.map +1 -1
- package/resources/users/companies.d.mts.map +1 -1
- package/resources/users/companies.d.ts.map +1 -1
- package/resources/users/companies.mjs.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.mjs.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.mjs.map +1 -1
- package/resources/users/contacts/by-user-id/index.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/index.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/index.mjs.map +1 -1
- package/resources/users/contacts/by-user-id.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id.mjs.map +1 -1
- package/resources/users/contacts/contacts.d.mts +196 -235
- package/resources/users/contacts/contacts.d.mts.map +1 -1
- package/resources/users/contacts/contacts.d.ts +196 -235
- package/resources/users/contacts/contacts.d.ts.map +1 -1
- package/resources/users/contacts/contacts.js +186 -184
- package/resources/users/contacts/contacts.js.map +1 -1
- package/resources/users/contacts/contacts.mjs +186 -184
- package/resources/users/contacts/contacts.mjs.map +1 -1
- package/resources/users/contacts/email-preferences.d.mts.map +1 -1
- package/resources/users/contacts/email-preferences.d.ts.map +1 -1
- package/resources/users/contacts/email-preferences.mjs.map +1 -1
- package/resources/users/contacts/index.d.mts +1 -1
- package/resources/users/contacts/index.d.mts.map +1 -1
- package/resources/users/contacts/index.d.ts +1 -1
- package/resources/users/contacts/index.d.ts.map +1 -1
- package/resources/users/contacts/index.mjs.map +1 -1
- package/resources/users/contacts.d.mts.map +1 -1
- package/resources/users/contacts.d.ts.map +1 -1
- package/resources/users/contacts.mjs.map +1 -1
- package/resources/users/index.d.mts +2 -2
- package/resources/users/index.d.mts.map +1 -1
- package/resources/users/index.d.ts +2 -2
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/users.d.mts +2 -2
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +2 -2
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.mjs.map +1 -1
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts.map +1 -1
- package/resources/users.mjs.map +1 -1
- package/resources/webhooks.d.mts +80 -78
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +80 -78
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +79 -77
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +79 -77
- package/resources/webhooks.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +98 -4
- package/src/resources/audit-logs.ts +607 -0
- package/src/resources/changelogs/changelogs.ts +170 -170
- package/src/resources/changelogs/index.ts +1 -1
- package/src/resources/conversation-attributes.ts +181 -0
- package/src/resources/feedback/boards.ts +28 -28
- package/src/resources/feedback/comments.ts +153 -226
- package/src/resources/feedback/custom-fields.ts +44 -44
- package/src/resources/feedback/feedback.ts +19 -5
- package/src/resources/feedback/index.ts +12 -5
- package/src/resources/feedback/post-statuses.ts +31 -31
- package/src/resources/feedback/posts/index.ts +7 -1
- package/src/resources/feedback/posts/posts.ts +230 -311
- package/src/resources/help-center/articles.ts +123 -186
- package/src/resources/help-center/collections.ts +84 -84
- package/src/resources/help-center/help-center.ts +7 -5
- package/src/resources/help-center/help-centers.ts +55 -55
- package/src/resources/help-center/index.ts +6 -5
- package/src/resources/help-center/redirect-rules.ts +174 -174
- package/src/resources/index.ts +37 -3
- package/src/resources/organization/admins.ts +45 -33
- package/src/resources/organization/brands.ts +66 -66
- package/src/resources/organization/index.ts +3 -3
- package/src/resources/organization/organization.ts +3 -3
- package/src/resources/organization/teams.ts +52 -52
- package/src/resources/reports.ts +908 -0
- package/src/resources/support/conversation-tags.ts +59 -59
- package/src/resources/support/conversations/conversations.ts +723 -850
- package/src/resources/support/conversations/index.ts +11 -6
- package/src/resources/support/index.ts +14 -9
- package/src/resources/support/support.ts +21 -11
- package/src/resources/support/tickets/categories.ts +33 -33
- package/src/resources/support/tickets/custom-fields.ts +27 -27
- package/src/resources/support/tickets/index.ts +4 -4
- package/src/resources/support/tickets/statuses.ts +29 -29
- package/src/resources/support/tickets/tickets.ts +95 -95
- package/src/resources/surveys.ts +58 -58
- package/src/resources/users/companies/companies.ts +155 -204
- package/src/resources/users/companies/index.ts +2 -2
- package/src/resources/users/contacts/contacts.ts +235 -282
- package/src/resources/users/contacts/index.ts +3 -3
- package/src/resources/users/index.ts +5 -5
- package/src/resources/users/users.ts +5 -5
- package/src/resources/webhooks.ts +100 -95
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,SAAS,GAIV,yBAAqB;AACtB,OAAO,EACL,UAAU,GAYX,oCAAgC;AACjC,OAAO,EACL,sBAAsB,GAMvB,sCAAkC;AACnC,OAAO,EAAE,QAAQ,EAAE,gCAA4B;AAC/C,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,YAAY,EAAE,wCAAoC;AAC3D,OAAO,EACL,OAAO,GAkBR,sBAAkB;AACnB,OAAO,EAAE,OAAO,EAAE,8BAA0B;AAC5C,OAAO,EACL,OAAO,GASR,sBAAkB;AACnB,OAAO,EAAE,KAAK,EAAE,0BAAsB;AACtC,OAAO,EACL,QAAQ,GAWT,uBAAmB"}
|
|
@@ -5,26 +5,6 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
5
5
|
* Team members who manage your Featurebase organization. Admins have roles that define their permissions.
|
|
6
6
|
*/
|
|
7
7
|
export declare class Admins extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Retrieves a single admin by their unique identifier.
|
|
10
|
-
*
|
|
11
|
-
* Returns the admin object if found and they belong to your organization.
|
|
12
|
-
*
|
|
13
|
-
* ### Response
|
|
14
|
-
*
|
|
15
|
-
* Returns an admin object with:
|
|
16
|
-
*
|
|
17
|
-
* - `id` - Unique admin identifier
|
|
18
|
-
* - `name` - Admin's display name
|
|
19
|
-
* - `email` - Admin's email address
|
|
20
|
-
* - `picture` - Profile picture URL
|
|
21
|
-
* - `roleId` - ID of the role assigned to this admin
|
|
22
|
-
*
|
|
23
|
-
* ### Errors
|
|
24
|
-
*
|
|
25
|
-
* - `404` - Admin not found or doesn't belong to your organization
|
|
26
|
-
*/
|
|
27
|
-
retrieve(id: string, params?: AdminRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Admin>;
|
|
28
8
|
/**
|
|
29
9
|
* Returns all admins for your organization.
|
|
30
10
|
*
|
|
@@ -50,6 +30,26 @@ export declare class Admins extends APIResource {
|
|
|
50
30
|
* - `roleId` - ID of the role assigned to this admin
|
|
51
31
|
*/
|
|
52
32
|
list(params?: AdminListParams | null | undefined, options?: RequestOptions): APIPromise<AdminListResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Retrieves a single admin by their unique identifier.
|
|
35
|
+
*
|
|
36
|
+
* Returns the admin object if found and they belong to your organization.
|
|
37
|
+
*
|
|
38
|
+
* ### Response
|
|
39
|
+
*
|
|
40
|
+
* Returns an admin object with:
|
|
41
|
+
*
|
|
42
|
+
* - `id` - Unique admin identifier
|
|
43
|
+
* - `name` - Admin's display name
|
|
44
|
+
* - `email` - Admin's email address
|
|
45
|
+
* - `picture` - Profile picture URL
|
|
46
|
+
* - `roleId` - ID of the role assigned to this admin
|
|
47
|
+
*
|
|
48
|
+
* ### Errors
|
|
49
|
+
*
|
|
50
|
+
* - `404` - Admin not found or doesn't belong to your organization
|
|
51
|
+
*/
|
|
52
|
+
retrieve(id: string, params?: AdminRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Admin>;
|
|
53
53
|
/**
|
|
54
54
|
* Returns all available admin roles and their permissions.
|
|
55
55
|
*
|
|
@@ -118,6 +118,8 @@ export declare class Admins extends APIResource {
|
|
|
118
118
|
* - `manage_integrations` - Can manage integrations
|
|
119
119
|
* - `use_integrations` - Can use integrations
|
|
120
120
|
* - `manage_help_center` - Can manage help center
|
|
121
|
+
* - `manage_outbound` - Can manage outbound messages
|
|
122
|
+
* - `manage_outbound_state` - Can manage outbound message state
|
|
121
123
|
* - `auto_approve_posts` - Posts auto-approved
|
|
122
124
|
*/
|
|
123
125
|
listRoles(params?: AdminListRolesParams | null | undefined, options?: RequestOptions): APIPromise<AdminListRolesResponse>;
|
|
@@ -287,6 +289,14 @@ export declare namespace AdminListRolesResponse {
|
|
|
287
289
|
* Manage notifications
|
|
288
290
|
*/
|
|
289
291
|
manage_notifications?: boolean;
|
|
292
|
+
/**
|
|
293
|
+
* Manage outbound messages
|
|
294
|
+
*/
|
|
295
|
+
manage_outbound?: boolean;
|
|
296
|
+
/**
|
|
297
|
+
* Manage outbound message state
|
|
298
|
+
*/
|
|
299
|
+
manage_outbound_state?: boolean;
|
|
290
300
|
/**
|
|
291
301
|
* Manage post tags
|
|
292
302
|
*/
|
|
@@ -410,14 +420,14 @@ export declare namespace AdminListRolesResponse {
|
|
|
410
420
|
}
|
|
411
421
|
}
|
|
412
422
|
}
|
|
413
|
-
export interface
|
|
423
|
+
export interface AdminListParams {
|
|
414
424
|
/**
|
|
415
425
|
* API version for this request. Defaults to your organization's configured API
|
|
416
426
|
* version if not specified.
|
|
417
427
|
*/
|
|
418
428
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
419
429
|
}
|
|
420
|
-
export interface
|
|
430
|
+
export interface AdminRetrieveParams {
|
|
421
431
|
/**
|
|
422
432
|
* API version for this request. Defaults to your organization's configured API
|
|
423
433
|
* version if not specified.
|
|
@@ -432,6 +442,6 @@ export interface AdminListRolesParams {
|
|
|
432
442
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
433
443
|
}
|
|
434
444
|
export declare namespace Admins {
|
|
435
|
-
export { type Admin as Admin, type AdminListResponse as AdminListResponse, type AdminListRolesResponse as AdminListRolesResponse, type
|
|
445
|
+
export { type Admin as Admin, type AdminListResponse as AdminListResponse, type AdminListRolesResponse as AdminListRolesResponse, type AdminListParams as AdminListParams, type AdminRetrieveParams as AdminRetrieveParams, type AdminListRolesParams as AdminListRolesParams, };
|
|
436
446
|
}
|
|
437
447
|
//# sourceMappingURL=admins.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admins.d.mts","sourceRoot":"","sources":["../../src/resources/organization/admins.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"admins.d.mts","sourceRoot":"","sources":["../../src/resources/organization/admins.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,IAAI,CACF,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAehC;;;;;;;;;;;;;;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AAO,CAAC;YAE1B;;eAEG;YACH,eAAe,CAAC,EAAE,OAAO,CAAC;YAE1B;;eAEG;YACH,aAAa,CAAC,EAAE,OAAO,CAAC;YAExB;;eAEG;YACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;YAE3B;;eAEG;YACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;YAEhC;;eAEG;YACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;YAE7B;;eAEG;YACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;YAEjC;;eAEG;YACH,UAAU,CAAC,EAAE,OAAO,CAAC;SACtB;KACF;CACF;AAED,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;CACjE;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;CACjE;AAED,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;CACjE;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -5,26 +5,6 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
5
5
|
* Team members who manage your Featurebase organization. Admins have roles that define their permissions.
|
|
6
6
|
*/
|
|
7
7
|
export declare class Admins extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Retrieves a single admin by their unique identifier.
|
|
10
|
-
*
|
|
11
|
-
* Returns the admin object if found and they belong to your organization.
|
|
12
|
-
*
|
|
13
|
-
* ### Response
|
|
14
|
-
*
|
|
15
|
-
* Returns an admin object with:
|
|
16
|
-
*
|
|
17
|
-
* - `id` - Unique admin identifier
|
|
18
|
-
* - `name` - Admin's display name
|
|
19
|
-
* - `email` - Admin's email address
|
|
20
|
-
* - `picture` - Profile picture URL
|
|
21
|
-
* - `roleId` - ID of the role assigned to this admin
|
|
22
|
-
*
|
|
23
|
-
* ### Errors
|
|
24
|
-
*
|
|
25
|
-
* - `404` - Admin not found or doesn't belong to your organization
|
|
26
|
-
*/
|
|
27
|
-
retrieve(id: string, params?: AdminRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Admin>;
|
|
28
8
|
/**
|
|
29
9
|
* Returns all admins for your organization.
|
|
30
10
|
*
|
|
@@ -50,6 +30,26 @@ export declare class Admins extends APIResource {
|
|
|
50
30
|
* - `roleId` - ID of the role assigned to this admin
|
|
51
31
|
*/
|
|
52
32
|
list(params?: AdminListParams | null | undefined, options?: RequestOptions): APIPromise<AdminListResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Retrieves a single admin by their unique identifier.
|
|
35
|
+
*
|
|
36
|
+
* Returns the admin object if found and they belong to your organization.
|
|
37
|
+
*
|
|
38
|
+
* ### Response
|
|
39
|
+
*
|
|
40
|
+
* Returns an admin object with:
|
|
41
|
+
*
|
|
42
|
+
* - `id` - Unique admin identifier
|
|
43
|
+
* - `name` - Admin's display name
|
|
44
|
+
* - `email` - Admin's email address
|
|
45
|
+
* - `picture` - Profile picture URL
|
|
46
|
+
* - `roleId` - ID of the role assigned to this admin
|
|
47
|
+
*
|
|
48
|
+
* ### Errors
|
|
49
|
+
*
|
|
50
|
+
* - `404` - Admin not found or doesn't belong to your organization
|
|
51
|
+
*/
|
|
52
|
+
retrieve(id: string, params?: AdminRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Admin>;
|
|
53
53
|
/**
|
|
54
54
|
* Returns all available admin roles and their permissions.
|
|
55
55
|
*
|
|
@@ -118,6 +118,8 @@ export declare class Admins extends APIResource {
|
|
|
118
118
|
* - `manage_integrations` - Can manage integrations
|
|
119
119
|
* - `use_integrations` - Can use integrations
|
|
120
120
|
* - `manage_help_center` - Can manage help center
|
|
121
|
+
* - `manage_outbound` - Can manage outbound messages
|
|
122
|
+
* - `manage_outbound_state` - Can manage outbound message state
|
|
121
123
|
* - `auto_approve_posts` - Posts auto-approved
|
|
122
124
|
*/
|
|
123
125
|
listRoles(params?: AdminListRolesParams | null | undefined, options?: RequestOptions): APIPromise<AdminListRolesResponse>;
|
|
@@ -287,6 +289,14 @@ export declare namespace AdminListRolesResponse {
|
|
|
287
289
|
* Manage notifications
|
|
288
290
|
*/
|
|
289
291
|
manage_notifications?: boolean;
|
|
292
|
+
/**
|
|
293
|
+
* Manage outbound messages
|
|
294
|
+
*/
|
|
295
|
+
manage_outbound?: boolean;
|
|
296
|
+
/**
|
|
297
|
+
* Manage outbound message state
|
|
298
|
+
*/
|
|
299
|
+
manage_outbound_state?: boolean;
|
|
290
300
|
/**
|
|
291
301
|
* Manage post tags
|
|
292
302
|
*/
|
|
@@ -410,14 +420,14 @@ export declare namespace AdminListRolesResponse {
|
|
|
410
420
|
}
|
|
411
421
|
}
|
|
412
422
|
}
|
|
413
|
-
export interface
|
|
423
|
+
export interface AdminListParams {
|
|
414
424
|
/**
|
|
415
425
|
* API version for this request. Defaults to your organization's configured API
|
|
416
426
|
* version if not specified.
|
|
417
427
|
*/
|
|
418
428
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
419
429
|
}
|
|
420
|
-
export interface
|
|
430
|
+
export interface AdminRetrieveParams {
|
|
421
431
|
/**
|
|
422
432
|
* API version for this request. Defaults to your organization's configured API
|
|
423
433
|
* version if not specified.
|
|
@@ -432,6 +442,6 @@ export interface AdminListRolesParams {
|
|
|
432
442
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
433
443
|
}
|
|
434
444
|
export declare namespace Admins {
|
|
435
|
-
export { type Admin as Admin, type AdminListResponse as AdminListResponse, type AdminListRolesResponse as AdminListRolesResponse, type
|
|
445
|
+
export { type Admin as Admin, type AdminListResponse as AdminListResponse, type AdminListRolesResponse as AdminListRolesResponse, type AdminListParams as AdminListParams, type AdminRetrieveParams as AdminRetrieveParams, type AdminListRolesParams as AdminListRolesParams, };
|
|
436
446
|
}
|
|
437
447
|
//# sourceMappingURL=admins.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admins.d.ts","sourceRoot":"","sources":["../../src/resources/organization/admins.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"admins.d.ts","sourceRoot":"","sources":["../../src/resources/organization/admins.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,IAAI,CACF,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAehC;;;;;;;;;;;;;;;;;;OAkBG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,KAAK,CAAC;IAepB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuEG;IACH,SAAS,CACP,MAAM,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;CActC;AAED,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG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mBAAmB,CAAC;CACjE;AAED,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;CACjE;AAED,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;CACjE;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -10,27 +10,32 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
10
10
|
*/
|
|
11
11
|
class Admins extends resource_1.APIResource {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Returns all admins for your organization.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
15
|
+
* This endpoint returns all admins at once (typically a small list). No pagination
|
|
16
|
+
* is supported.
|
|
16
17
|
*
|
|
17
|
-
* ### Response
|
|
18
|
+
* ### Response Format
|
|
18
19
|
*
|
|
19
|
-
* Returns
|
|
20
|
+
* Returns a list object with:
|
|
21
|
+
*
|
|
22
|
+
* - `object` - Always "list"
|
|
23
|
+
* - `data` - Array of admin objects
|
|
24
|
+
* - `nextCursor` - Always null
|
|
25
|
+
*
|
|
26
|
+
* ### Admin Object
|
|
27
|
+
*
|
|
28
|
+
* Each admin includes:
|
|
20
29
|
*
|
|
21
30
|
* - `id` - Unique admin identifier
|
|
22
31
|
* - `name` - Admin's display name
|
|
23
32
|
* - `email` - Admin's email address
|
|
24
33
|
* - `picture` - Profile picture URL
|
|
25
34
|
* - `roleId` - ID of the role assigned to this admin
|
|
26
|
-
*
|
|
27
|
-
* ### Errors
|
|
28
|
-
*
|
|
29
|
-
* - `404` - Admin not found or doesn't belong to your organization
|
|
30
35
|
*/
|
|
31
|
-
|
|
36
|
+
list(params = {}, options) {
|
|
32
37
|
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
33
|
-
return this._client.get(
|
|
38
|
+
return this._client.get('/v2/admins', {
|
|
34
39
|
...options,
|
|
35
40
|
headers: (0, headers_1.buildHeaders)([
|
|
36
41
|
{
|
|
@@ -43,32 +48,27 @@ class Admins extends resource_1.APIResource {
|
|
|
43
48
|
});
|
|
44
49
|
}
|
|
45
50
|
/**
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* This endpoint returns all admins at once (typically a small list). No pagination
|
|
49
|
-
* is supported.
|
|
50
|
-
*
|
|
51
|
-
* ### Response Format
|
|
52
|
-
*
|
|
53
|
-
* Returns a list object with:
|
|
51
|
+
* Retrieves a single admin by their unique identifier.
|
|
54
52
|
*
|
|
55
|
-
*
|
|
56
|
-
* - `data` - Array of admin objects
|
|
57
|
-
* - `nextCursor` - Always null
|
|
53
|
+
* Returns the admin object if found and they belong to your organization.
|
|
58
54
|
*
|
|
59
|
-
* ###
|
|
55
|
+
* ### Response
|
|
60
56
|
*
|
|
61
|
-
*
|
|
57
|
+
* Returns an admin object with:
|
|
62
58
|
*
|
|
63
59
|
* - `id` - Unique admin identifier
|
|
64
60
|
* - `name` - Admin's display name
|
|
65
61
|
* - `email` - Admin's email address
|
|
66
62
|
* - `picture` - Profile picture URL
|
|
67
63
|
* - `roleId` - ID of the role assigned to this admin
|
|
64
|
+
*
|
|
65
|
+
* ### Errors
|
|
66
|
+
*
|
|
67
|
+
* - `404` - Admin not found or doesn't belong to your organization
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
retrieve(id, params = {}, options) {
|
|
70
70
|
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
71
|
-
return this._client.get(
|
|
71
|
+
return this._client.get((0, path_1.path) `/v2/admins/${id}`, {
|
|
72
72
|
...options,
|
|
73
73
|
headers: (0, headers_1.buildHeaders)([
|
|
74
74
|
{
|
|
@@ -148,6 +148,8 @@ class Admins extends resource_1.APIResource {
|
|
|
148
148
|
* - `manage_integrations` - Can manage integrations
|
|
149
149
|
* - `use_integrations` - Can use integrations
|
|
150
150
|
* - `manage_help_center` - Can manage help center
|
|
151
|
+
* - `manage_outbound` - Can manage outbound messages
|
|
152
|
+
* - `manage_outbound_state` - Can manage outbound message state
|
|
151
153
|
* - `auto_approve_posts` - Posts auto-approved
|
|
152
154
|
*/
|
|
153
155
|
listRoles(params = {}, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admins.js","sourceRoot":"","sources":["../../src/resources/organization/admins.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC
|
|
1
|
+
{"version":3,"file":"admins.js","sourceRoot":"","sources":["../../src/resources/organization/admins.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,IAAI,CACF,SAA6C,EAAE,EAC/C,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE;YACpC,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBAC1C,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OA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} from "../../internal/utils/path.mjs";
|
|
|
7
7
|
*/
|
|
8
8
|
export class Admins extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Returns all admins for your organization.
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
* This endpoint returns all admins at once (typically a small list). No pagination
|
|
13
|
+
* is supported.
|
|
13
14
|
*
|
|
14
|
-
* ### Response
|
|
15
|
+
* ### Response Format
|
|
15
16
|
*
|
|
16
|
-
* Returns
|
|
17
|
+
* Returns a list object with:
|
|
18
|
+
*
|
|
19
|
+
* - `object` - Always "list"
|
|
20
|
+
* - `data` - Array of admin objects
|
|
21
|
+
* - `nextCursor` - Always null
|
|
22
|
+
*
|
|
23
|
+
* ### Admin Object
|
|
24
|
+
*
|
|
25
|
+
* Each admin includes:
|
|
17
26
|
*
|
|
18
27
|
* - `id` - Unique admin identifier
|
|
19
28
|
* - `name` - Admin's display name
|
|
20
29
|
* - `email` - Admin's email address
|
|
21
30
|
* - `picture` - Profile picture URL
|
|
22
31
|
* - `roleId` - ID of the role assigned to this admin
|
|
23
|
-
*
|
|
24
|
-
* ### Errors
|
|
25
|
-
*
|
|
26
|
-
* - `404` - Admin not found or doesn't belong to your organization
|
|
27
32
|
*/
|
|
28
|
-
|
|
33
|
+
list(params = {}, options) {
|
|
29
34
|
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
30
|
-
return this._client.get(
|
|
35
|
+
return this._client.get('/v2/admins', {
|
|
31
36
|
...options,
|
|
32
37
|
headers: buildHeaders([
|
|
33
38
|
{
|
|
@@ -40,32 +45,27 @@ export class Admins extends APIResource {
|
|
|
40
45
|
});
|
|
41
46
|
}
|
|
42
47
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* This endpoint returns all admins at once (typically a small list). No pagination
|
|
46
|
-
* is supported.
|
|
47
|
-
*
|
|
48
|
-
* ### Response Format
|
|
49
|
-
*
|
|
50
|
-
* Returns a list object with:
|
|
48
|
+
* Retrieves a single admin by their unique identifier.
|
|
51
49
|
*
|
|
52
|
-
*
|
|
53
|
-
* - `data` - Array of admin objects
|
|
54
|
-
* - `nextCursor` - Always null
|
|
50
|
+
* Returns the admin object if found and they belong to your organization.
|
|
55
51
|
*
|
|
56
|
-
* ###
|
|
52
|
+
* ### Response
|
|
57
53
|
*
|
|
58
|
-
*
|
|
54
|
+
* Returns an admin object with:
|
|
59
55
|
*
|
|
60
56
|
* - `id` - Unique admin identifier
|
|
61
57
|
* - `name` - Admin's display name
|
|
62
58
|
* - `email` - Admin's email address
|
|
63
59
|
* - `picture` - Profile picture URL
|
|
64
60
|
* - `roleId` - ID of the role assigned to this admin
|
|
61
|
+
*
|
|
62
|
+
* ### Errors
|
|
63
|
+
*
|
|
64
|
+
* - `404` - Admin not found or doesn't belong to your organization
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
retrieve(id, params = {}, options) {
|
|
67
67
|
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
68
|
-
return this._client.get(
|
|
68
|
+
return this._client.get(path `/v2/admins/${id}`, {
|
|
69
69
|
...options,
|
|
70
70
|
headers: buildHeaders([
|
|
71
71
|
{
|
|
@@ -145,6 +145,8 @@ export class Admins extends APIResource {
|
|
|
145
145
|
* - `manage_integrations` - Can manage integrations
|
|
146
146
|
* - `use_integrations` - Can use integrations
|
|
147
147
|
* - `manage_help_center` - Can manage help center
|
|
148
|
+
* - `manage_outbound` - Can manage outbound messages
|
|
149
|
+
* - `manage_outbound_state` - Can manage outbound message state
|
|
148
150
|
* - `auto_approve_posts` - Posts auto-approved
|
|
149
151
|
*/
|
|
150
152
|
listRoles(params = {}, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admins.mjs","sourceRoot":"","sources":["../../src/resources/organization/admins.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"admins.mjs","sourceRoot":"","sources":["../../src/resources/organization/admins.ts"],"names":[],"mappings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IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuEG;IACH,SAAS,CACP,SAAkD,EAAE,EACpD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE;YAC1C,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBAC1C,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -6,49 +6,6 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
6
6
|
* Brands represent distinct brand identities within your organization. Each brand can have its own help center and email sending address. Use this endpoint to list and retrieve brand information.
|
|
7
7
|
*/
|
|
8
8
|
export declare class Brands extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Retrieves a single brand by its Featurebase ID.
|
|
11
|
-
*
|
|
12
|
-
* ### Path Parameters
|
|
13
|
-
*
|
|
14
|
-
* - `id` - The Featurebase internal ID of the brand (MongoDB ObjectId)
|
|
15
|
-
*
|
|
16
|
-
* ### Response
|
|
17
|
-
*
|
|
18
|
-
* Returns a brand object with:
|
|
19
|
-
*
|
|
20
|
-
* - `id` - Featurebase internal ID
|
|
21
|
-
* - `name` - Brand display name
|
|
22
|
-
* - `isDefault` - Whether this is the default brand
|
|
23
|
-
* - `createdAt` - Creation timestamp
|
|
24
|
-
* - `updatedAt` - Last update timestamp
|
|
25
|
-
* - `helpCenterId` - Associated help center ID
|
|
26
|
-
* - `senderEmailAddressId` - Default sender email address ID
|
|
27
|
-
*
|
|
28
|
-
* ### Example Response
|
|
29
|
-
*
|
|
30
|
-
* ```json
|
|
31
|
-
* {
|
|
32
|
-
* "object": "brand",
|
|
33
|
-
* "id": "507f1f77bcf86cd799439011",
|
|
34
|
-
* "name": "Default Brand",
|
|
35
|
-
* "isDefault": true,
|
|
36
|
-
* "createdAt": "2025-01-01T12:00:00.000Z",
|
|
37
|
-
* "updatedAt": "2025-01-10T15:30:00.000Z",
|
|
38
|
-
* "helpCenterId": "11",
|
|
39
|
-
* "senderEmailAddressId": "507f1f77bcf86cd799439012"
|
|
40
|
-
* }
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* ### Error Responses
|
|
44
|
-
*
|
|
45
|
-
* - **404 Not Found** - Brand with the specified ID does not exist
|
|
46
|
-
*
|
|
47
|
-
* ### Version Availability
|
|
48
|
-
*
|
|
49
|
-
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
50
|
-
*/
|
|
51
|
-
retrieve(id: string, params?: BrandRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Brand>;
|
|
52
9
|
/**
|
|
53
10
|
* Returns all brands in your organization with cursor-based pagination.
|
|
54
11
|
*
|
|
@@ -103,6 +60,49 @@ export declare class Brands extends APIResource {
|
|
|
103
60
|
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
104
61
|
*/
|
|
105
62
|
list(params?: BrandListParams | null | undefined, options?: RequestOptions): PagePromise<BrandsCursorPage, Brand>;
|
|
63
|
+
/**
|
|
64
|
+
* Retrieves a single brand by its Featurebase ID.
|
|
65
|
+
*
|
|
66
|
+
* ### Path Parameters
|
|
67
|
+
*
|
|
68
|
+
* - `id` - The Featurebase internal ID of the brand (MongoDB ObjectId)
|
|
69
|
+
*
|
|
70
|
+
* ### Response
|
|
71
|
+
*
|
|
72
|
+
* Returns a brand object with:
|
|
73
|
+
*
|
|
74
|
+
* - `id` - Featurebase internal ID
|
|
75
|
+
* - `name` - Brand display name
|
|
76
|
+
* - `isDefault` - Whether this is the default brand
|
|
77
|
+
* - `createdAt` - Creation timestamp
|
|
78
|
+
* - `updatedAt` - Last update timestamp
|
|
79
|
+
* - `helpCenterId` - Associated help center ID
|
|
80
|
+
* - `senderEmailAddressId` - Default sender email address ID
|
|
81
|
+
*
|
|
82
|
+
* ### Example Response
|
|
83
|
+
*
|
|
84
|
+
* ```json
|
|
85
|
+
* {
|
|
86
|
+
* "object": "brand",
|
|
87
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
88
|
+
* "name": "Default Brand",
|
|
89
|
+
* "isDefault": true,
|
|
90
|
+
* "createdAt": "2025-01-01T12:00:00.000Z",
|
|
91
|
+
* "updatedAt": "2025-01-10T15:30:00.000Z",
|
|
92
|
+
* "helpCenterId": "11",
|
|
93
|
+
* "senderEmailAddressId": "507f1f77bcf86cd799439012"
|
|
94
|
+
* }
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* ### Error Responses
|
|
98
|
+
*
|
|
99
|
+
* - **404 Not Found** - Brand with the specified ID does not exist
|
|
100
|
+
*
|
|
101
|
+
* ### Version Availability
|
|
102
|
+
*
|
|
103
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
104
|
+
*/
|
|
105
|
+
retrieve(id: string, params?: BrandRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Brand>;
|
|
106
106
|
}
|
|
107
107
|
export type BrandsCursorPage = CursorPage<Brand>;
|
|
108
108
|
export interface Brand {
|
|
@@ -139,21 +139,21 @@ export interface Brand {
|
|
|
139
139
|
*/
|
|
140
140
|
updatedAt: string | null;
|
|
141
141
|
}
|
|
142
|
-
export interface
|
|
142
|
+
export interface BrandListParams extends CursorPageParams {
|
|
143
143
|
/**
|
|
144
|
-
* API version for this request. Defaults to your organization's
|
|
145
|
-
* version if not specified.
|
|
144
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
145
|
+
* configured API version if not specified.
|
|
146
146
|
*/
|
|
147
147
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
148
148
|
}
|
|
149
|
-
export interface
|
|
149
|
+
export interface BrandRetrieveParams {
|
|
150
150
|
/**
|
|
151
|
-
*
|
|
152
|
-
*
|
|
151
|
+
* API version for this request. Defaults to your organization's configured API
|
|
152
|
+
* version if not specified.
|
|
153
153
|
*/
|
|
154
154
|
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
155
155
|
}
|
|
156
156
|
export declare namespace Brands {
|
|
157
|
-
export { type Brand as Brand, type BrandsCursorPage as BrandsCursorPage, type
|
|
157
|
+
export { type Brand as Brand, type BrandsCursorPage as BrandsCursorPage, type BrandListParams as BrandListParams, type BrandRetrieveParams as BrandRetrieveParams, };
|
|
158
158
|
}
|
|
159
159
|
//# sourceMappingURL=brands.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.d.mts","sourceRoot":"","sources":["../../src/resources/organization/brands.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"brands.d.mts","sourceRoot":"","sources":["../../src/resources/organization/brands.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,kCAA8B;AAEvF,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAoDG;IACH,IAAI,CACF,MAAM,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gBAAgB,EAAE,KAAK,CAAC;IAgBvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EAC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