featurebase-node 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +9 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -3
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +16 -10
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/changelogs/changelogs.d.mts +106 -106
- package/resources/changelogs/changelogs.d.mts.map +1 -1
- package/resources/changelogs/changelogs.d.ts +106 -106
- package/resources/changelogs/changelogs.d.ts.map +1 -1
- package/resources/changelogs/changelogs.js +74 -74
- package/resources/changelogs/changelogs.js.map +1 -1
- package/resources/changelogs/changelogs.mjs +74 -74
- package/resources/changelogs/changelogs.mjs.map +1 -1
- package/resources/changelogs/index.d.mts +1 -1
- package/resources/changelogs/index.d.mts.map +1 -1
- package/resources/changelogs/index.d.ts +1 -1
- package/resources/changelogs/index.d.ts.map +1 -1
- package/resources/changelogs/index.mjs.map +1 -1
- package/resources/changelogs/subscribers.d.mts.map +1 -1
- package/resources/changelogs/subscribers.d.ts.map +1 -1
- package/resources/changelogs/subscribers.mjs.map +1 -1
- package/resources/changelogs.d.mts.map +1 -1
- package/resources/changelogs.d.ts.map +1 -1
- package/resources/changelogs.mjs.map +1 -1
- package/resources/conversation-attributes.d.mts +117 -0
- package/resources/conversation-attributes.d.mts.map +1 -0
- package/resources/conversation-attributes.d.ts +117 -0
- package/resources/conversation-attributes.d.ts.map +1 -0
- package/resources/conversation-attributes.js +61 -0
- package/resources/conversation-attributes.js.map +1 -0
- package/resources/conversation-attributes.mjs +57 -0
- package/resources/conversation-attributes.mjs.map +1 -0
- package/resources/feedback/boards.d.mts +17 -17
- package/resources/feedback/boards.d.mts.map +1 -1
- package/resources/feedback/boards.d.ts +17 -17
- package/resources/feedback/boards.d.ts.map +1 -1
- package/resources/feedback/boards.js +20 -20
- package/resources/feedback/boards.js.map +1 -1
- package/resources/feedback/boards.mjs +20 -20
- package/resources/feedback/boards.mjs.map +1 -1
- package/resources/feedback/comments.d.mts +400 -123
- package/resources/feedback/comments.d.mts.map +1 -1
- package/resources/feedback/comments.d.ts +400 -123
- package/resources/feedback/comments.d.ts.map +1 -1
- package/resources/feedback/comments.js +253 -93
- package/resources/feedback/comments.js.map +1 -1
- package/resources/feedback/comments.mjs +253 -93
- package/resources/feedback/comments.mjs.map +1 -1
- package/resources/feedback/custom-fields.d.mts +34 -34
- package/resources/feedback/custom-fields.d.mts.map +1 -1
- package/resources/feedback/custom-fields.d.ts +34 -34
- package/resources/feedback/custom-fields.d.ts.map +1 -1
- package/resources/feedback/custom-fields.js +36 -36
- package/resources/feedback/custom-fields.js.map +1 -1
- package/resources/feedback/custom-fields.mjs +36 -36
- package/resources/feedback/custom-fields.mjs.map +1 -1
- package/resources/feedback/feedback.d.mts +7 -7
- package/resources/feedback/feedback.d.mts.map +1 -1
- package/resources/feedback/feedback.d.ts +7 -7
- package/resources/feedback/feedback.d.ts.map +1 -1
- package/resources/feedback/feedback.js.map +1 -1
- package/resources/feedback/feedback.mjs.map +1 -1
- package/resources/feedback/index.d.mts +5 -5
- package/resources/feedback/index.d.mts.map +1 -1
- package/resources/feedback/index.d.ts +5 -5
- package/resources/feedback/index.d.ts.map +1 -1
- package/resources/feedback/index.js.map +1 -1
- package/resources/feedback/index.mjs.map +1 -1
- package/resources/feedback/post-statuses.d.mts +18 -18
- package/resources/feedback/post-statuses.d.mts.map +1 -1
- package/resources/feedback/post-statuses.d.ts +18 -18
- package/resources/feedback/post-statuses.d.ts.map +1 -1
- package/resources/feedback/post-statuses.js +23 -23
- package/resources/feedback/post-statuses.js.map +1 -1
- package/resources/feedback/post-statuses.mjs +23 -23
- package/resources/feedback/post-statuses.mjs.map +1 -1
- package/resources/feedback/posts/index.d.mts +1 -1
- package/resources/feedback/posts/index.d.mts.map +1 -1
- package/resources/feedback/posts/index.d.ts +1 -1
- package/resources/feedback/posts/index.d.ts.map +1 -1
- package/resources/feedback/posts/index.js.map +1 -1
- package/resources/feedback/posts/index.mjs.map +1 -1
- package/resources/feedback/posts/posts.d.mts +238 -284
- package/resources/feedback/posts/posts.d.mts.map +1 -1
- package/resources/feedback/posts/posts.d.ts +238 -284
- package/resources/feedback/posts/posts.d.ts.map +1 -1
- package/resources/feedback/posts/posts.js +122 -96
- package/resources/feedback/posts/posts.js.map +1 -1
- package/resources/feedback/posts/posts.mjs +122 -96
- package/resources/feedback/posts/posts.mjs.map +1 -1
- package/resources/feedback/posts/voters.d.mts.map +1 -1
- package/resources/feedback/posts/voters.d.ts.map +1 -1
- package/resources/feedback/posts/voters.mjs.map +1 -1
- package/resources/feedback/posts.d.mts.map +1 -1
- package/resources/feedback/posts.d.ts.map +1 -1
- package/resources/feedback/posts.mjs.map +1 -1
- package/resources/feedback.d.mts.map +1 -1
- package/resources/feedback.d.ts.map +1 -1
- package/resources/feedback.mjs.map +1 -1
- package/resources/help-center/articles.d.mts +98 -152
- package/resources/help-center/articles.d.mts.map +1 -1
- package/resources/help-center/articles.d.ts +98 -152
- package/resources/help-center/articles.d.ts.map +1 -1
- package/resources/help-center/articles.js +73 -73
- package/resources/help-center/articles.js.map +1 -1
- package/resources/help-center/articles.mjs +73 -73
- package/resources/help-center/articles.mjs.map +1 -1
- package/resources/help-center/collections.d.mts +64 -64
- package/resources/help-center/collections.d.mts.map +1 -1
- package/resources/help-center/collections.d.ts +64 -64
- package/resources/help-center/collections.d.ts.map +1 -1
- package/resources/help-center/collections.js +65 -65
- package/resources/help-center/collections.js.map +1 -1
- package/resources/help-center/collections.mjs +65 -65
- package/resources/help-center/collections.mjs.map +1 -1
- package/resources/help-center/help-center.d.mts +5 -5
- package/resources/help-center/help-center.d.mts.map +1 -1
- package/resources/help-center/help-center.d.ts +5 -5
- package/resources/help-center/help-center.d.ts.map +1 -1
- package/resources/help-center/help-center.js.map +1 -1
- package/resources/help-center/help-center.mjs.map +1 -1
- package/resources/help-center/help-centers.d.mts +43 -43
- package/resources/help-center/help-centers.d.mts.map +1 -1
- package/resources/help-center/help-centers.d.ts +43 -43
- package/resources/help-center/help-centers.d.ts.map +1 -1
- package/resources/help-center/help-centers.js +43 -43
- package/resources/help-center/help-centers.js.map +1 -1
- package/resources/help-center/help-centers.mjs +43 -43
- package/resources/help-center/help-centers.mjs.map +1 -1
- package/resources/help-center/index.d.mts +4 -4
- package/resources/help-center/index.d.mts.map +1 -1
- package/resources/help-center/index.d.ts +4 -4
- package/resources/help-center/index.d.ts.map +1 -1
- package/resources/help-center/index.js.map +1 -1
- package/resources/help-center/index.mjs.map +1 -1
- package/resources/help-center/redirect-rules.d.mts +117 -117
- package/resources/help-center/redirect-rules.d.mts.map +1 -1
- package/resources/help-center/redirect-rules.d.ts +117 -117
- package/resources/help-center/redirect-rules.d.ts.map +1 -1
- package/resources/help-center/redirect-rules.js +112 -112
- package/resources/help-center/redirect-rules.js.map +1 -1
- package/resources/help-center/redirect-rules.mjs +112 -112
- package/resources/help-center/redirect-rules.mjs.map +1 -1
- package/resources/help-center.d.mts.map +1 -1
- package/resources/help-center.d.ts.map +1 -1
- package/resources/help-center.mjs.map +1 -1
- package/resources/index.d.mts +4 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization/admins.d.mts +23 -23
- package/resources/organization/admins.d.mts.map +1 -1
- package/resources/organization/admins.d.ts +23 -23
- package/resources/organization/admins.d.ts.map +1 -1
- package/resources/organization/admins.js +25 -25
- package/resources/organization/admins.js.map +1 -1
- package/resources/organization/admins.mjs +25 -25
- package/resources/organization/admins.mjs.map +1 -1
- package/resources/organization/brands.d.mts +50 -50
- package/resources/organization/brands.d.mts.map +1 -1
- package/resources/organization/brands.d.ts +50 -50
- package/resources/organization/brands.d.ts.map +1 -1
- package/resources/organization/brands.js +54 -54
- package/resources/organization/brands.js.map +1 -1
- package/resources/organization/brands.mjs +54 -54
- package/resources/organization/brands.mjs.map +1 -1
- package/resources/organization/index.d.mts +3 -3
- package/resources/organization/index.d.mts.map +1 -1
- package/resources/organization/index.d.ts +3 -3
- package/resources/organization/index.d.ts.map +1 -1
- package/resources/organization/index.mjs.map +1 -1
- package/resources/organization/organization.d.mts +3 -3
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +3 -3
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/organization/teams.d.mts +45 -45
- package/resources/organization/teams.d.mts.map +1 -1
- package/resources/organization/teams.d.ts +45 -45
- package/resources/organization/teams.d.ts.map +1 -1
- package/resources/organization/teams.js +44 -44
- package/resources/organization/teams.js.map +1 -1
- package/resources/organization/teams.mjs +44 -44
- package/resources/organization/teams.mjs.map +1 -1
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts.map +1 -1
- package/resources/organization.mjs.map +1 -1
- package/resources/support/conversation-tags.d.mts +40 -40
- package/resources/support/conversation-tags.d.mts.map +1 -1
- package/resources/support/conversation-tags.d.ts +40 -40
- package/resources/support/conversation-tags.d.ts.map +1 -1
- package/resources/support/conversation-tags.js +32 -32
- package/resources/support/conversation-tags.js.map +1 -1
- package/resources/support/conversation-tags.mjs +32 -32
- package/resources/support/conversation-tags.mjs.map +1 -1
- package/resources/support/conversations/conversations.d.mts +624 -722
- package/resources/support/conversations/conversations.d.mts.map +1 -1
- package/resources/support/conversations/conversations.d.ts +624 -722
- package/resources/support/conversations/conversations.d.ts.map +1 -1
- package/resources/support/conversations/conversations.js +309 -302
- package/resources/support/conversations/conversations.js.map +1 -1
- package/resources/support/conversations/conversations.mjs +309 -302
- package/resources/support/conversations/conversations.mjs.map +1 -1
- package/resources/support/conversations/index.d.mts +1 -1
- package/resources/support/conversations/index.d.mts.map +1 -1
- package/resources/support/conversations/index.d.ts +1 -1
- package/resources/support/conversations/index.d.ts.map +1 -1
- package/resources/support/conversations/index.js.map +1 -1
- package/resources/support/conversations/index.mjs.map +1 -1
- package/resources/support/conversations/participants.d.mts.map +1 -1
- package/resources/support/conversations/participants.d.ts.map +1 -1
- package/resources/support/conversations/participants.mjs.map +1 -1
- package/resources/support/conversations.d.mts.map +1 -1
- package/resources/support/conversations.d.ts.map +1 -1
- package/resources/support/conversations.mjs.map +1 -1
- package/resources/support/index.d.mts +3 -3
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +3 -3
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.js.map +1 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts +4 -4
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +4 -4
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.js.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets/categories.d.mts +18 -18
- package/resources/support/tickets/categories.d.mts.map +1 -1
- package/resources/support/tickets/categories.d.ts +18 -18
- package/resources/support/tickets/categories.d.ts.map +1 -1
- package/resources/support/tickets/categories.js +25 -25
- package/resources/support/tickets/categories.js.map +1 -1
- package/resources/support/tickets/categories.mjs +25 -25
- package/resources/support/tickets/categories.mjs.map +1 -1
- package/resources/support/tickets/custom-fields.d.mts +20 -20
- package/resources/support/tickets/custom-fields.d.mts.map +1 -1
- package/resources/support/tickets/custom-fields.d.ts +20 -20
- package/resources/support/tickets/custom-fields.d.ts.map +1 -1
- package/resources/support/tickets/custom-fields.js +19 -19
- package/resources/support/tickets/custom-fields.js.map +1 -1
- package/resources/support/tickets/custom-fields.mjs +19 -19
- package/resources/support/tickets/custom-fields.mjs.map +1 -1
- package/resources/support/tickets/index.d.mts +4 -4
- package/resources/support/tickets/index.d.mts.map +1 -1
- package/resources/support/tickets/index.d.ts +4 -4
- package/resources/support/tickets/index.d.ts.map +1 -1
- package/resources/support/tickets/index.mjs.map +1 -1
- package/resources/support/tickets/statuses.d.mts +17 -17
- package/resources/support/tickets/statuses.d.mts.map +1 -1
- package/resources/support/tickets/statuses.d.ts +17 -17
- package/resources/support/tickets/statuses.d.ts.map +1 -1
- package/resources/support/tickets/statuses.js +21 -21
- package/resources/support/tickets/statuses.js.map +1 -1
- package/resources/support/tickets/statuses.mjs +21 -21
- package/resources/support/tickets/statuses.mjs.map +1 -1
- package/resources/support/tickets/tickets.d.mts +69 -69
- package/resources/support/tickets/tickets.d.mts.map +1 -1
- package/resources/support/tickets/tickets.d.ts +69 -69
- package/resources/support/tickets/tickets.d.ts.map +1 -1
- package/resources/support/tickets/tickets.js +44 -44
- package/resources/support/tickets/tickets.js.map +1 -1
- package/resources/support/tickets/tickets.mjs +44 -44
- package/resources/support/tickets/tickets.mjs.map +1 -1
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/support.d.mts.map +1 -1
- package/resources/support.d.ts.map +1 -1
- package/resources/support.mjs.map +1 -1
- package/resources/surveys.d.mts +41 -41
- package/resources/surveys.d.mts.map +1 -1
- package/resources/surveys.d.ts +41 -41
- package/resources/surveys.d.ts.map +1 -1
- package/resources/surveys.js +44 -44
- package/resources/surveys.js.map +1 -1
- package/resources/surveys.mjs +44 -44
- package/resources/surveys.mjs.map +1 -1
- package/resources/users/companies/companies.d.mts +149 -177
- package/resources/users/companies/companies.d.mts.map +1 -1
- package/resources/users/companies/companies.d.ts +149 -177
- package/resources/users/companies/companies.d.ts.map +1 -1
- package/resources/users/companies/companies.js +153 -142
- package/resources/users/companies/companies.js.map +1 -1
- package/resources/users/companies/companies.mjs +153 -142
- package/resources/users/companies/companies.mjs.map +1 -1
- package/resources/users/companies/contacts.d.mts.map +1 -1
- package/resources/users/companies/contacts.d.ts.map +1 -1
- package/resources/users/companies/contacts.mjs.map +1 -1
- package/resources/users/companies/index.d.mts +1 -1
- package/resources/users/companies/index.d.mts.map +1 -1
- package/resources/users/companies/index.d.ts +1 -1
- package/resources/users/companies/index.d.ts.map +1 -1
- package/resources/users/companies/index.mjs.map +1 -1
- package/resources/users/companies.d.mts.map +1 -1
- package/resources/users/companies.d.ts.map +1 -1
- package/resources/users/companies.mjs.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.mjs.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.mjs.map +1 -1
- package/resources/users/contacts/by-user-id/index.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/index.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/index.mjs.map +1 -1
- package/resources/users/contacts/by-user-id.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id.mjs.map +1 -1
- package/resources/users/contacts/contacts.d.mts +229 -256
- package/resources/users/contacts/contacts.d.mts.map +1 -1
- package/resources/users/contacts/contacts.d.ts +229 -256
- package/resources/users/contacts/contacts.d.ts.map +1 -1
- package/resources/users/contacts/contacts.js +213 -201
- package/resources/users/contacts/contacts.js.map +1 -1
- package/resources/users/contacts/contacts.mjs +213 -201
- package/resources/users/contacts/contacts.mjs.map +1 -1
- package/resources/users/contacts/email-preferences.d.mts.map +1 -1
- package/resources/users/contacts/email-preferences.d.ts.map +1 -1
- package/resources/users/contacts/email-preferences.mjs.map +1 -1
- package/resources/users/contacts/index.d.mts +1 -1
- package/resources/users/contacts/index.d.mts.map +1 -1
- package/resources/users/contacts/index.d.ts +1 -1
- package/resources/users/contacts/index.d.ts.map +1 -1
- package/resources/users/contacts/index.mjs.map +1 -1
- package/resources/users/contacts.d.mts.map +1 -1
- package/resources/users/contacts.d.ts.map +1 -1
- package/resources/users/contacts.mjs.map +1 -1
- package/resources/users/index.d.mts +2 -2
- package/resources/users/index.d.mts.map +1 -1
- package/resources/users/index.d.ts +2 -2
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/users.d.mts +2 -2
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +2 -2
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.mjs.map +1 -1
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts.map +1 -1
- package/resources/users.mjs.map +1 -1
- package/resources/webhooks.d.mts +75 -75
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +75 -75
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +77 -77
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +77 -77
- package/resources/webhooks.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +25 -3
- package/src/internal/utils/log.ts +2 -0
- package/src/resources/changelogs/changelogs.ts +170 -170
- package/src/resources/changelogs/index.ts +1 -1
- package/src/resources/conversation-attributes.ts +181 -0
- package/src/resources/feedback/boards.ts +28 -28
- package/src/resources/feedback/comments.ts +464 -141
- package/src/resources/feedback/custom-fields.ts +44 -44
- package/src/resources/feedback/feedback.ts +23 -5
- package/src/resources/feedback/index.ts +14 -5
- package/src/resources/feedback/post-statuses.ts +31 -31
- package/src/resources/feedback/posts/index.ts +7 -1
- package/src/resources/feedback/posts/posts.ts +294 -340
- package/src/resources/help-center/articles.ts +123 -186
- package/src/resources/help-center/collections.ts +84 -84
- package/src/resources/help-center/help-center.ts +7 -5
- package/src/resources/help-center/help-centers.ts +55 -55
- package/src/resources/help-center/index.ts +6 -5
- package/src/resources/help-center/redirect-rules.ts +174 -174
- package/src/resources/index.ts +11 -3
- package/src/resources/organization/admins.ts +33 -33
- package/src/resources/organization/brands.ts +66 -66
- package/src/resources/organization/index.ts +3 -3
- package/src/resources/organization/organization.ts +3 -3
- package/src/resources/organization/teams.ts +52 -52
- package/src/resources/support/conversation-tags.ts +59 -59
- package/src/resources/support/conversations/conversations.ts +748 -867
- package/src/resources/support/conversations/index.ts +11 -6
- package/src/resources/support/index.ts +14 -9
- package/src/resources/support/support.ts +21 -11
- package/src/resources/support/tickets/categories.ts +33 -33
- package/src/resources/support/tickets/custom-fields.ts +27 -27
- package/src/resources/support/tickets/index.ts +4 -4
- package/src/resources/support/tickets/statuses.ts +29 -29
- package/src/resources/support/tickets/tickets.ts +95 -95
- package/src/resources/surveys.ts +58 -58
- package/src/resources/users/companies/companies.ts +193 -223
- package/src/resources/users/companies/index.ts +2 -2
- package/src/resources/users/contacts/contacts.ts +275 -302
- package/src/resources/users/contacts/index.ts +3 -3
- package/src/resources/users/index.ts +5 -5
- package/src/resources/users/users.ts +5 -5
- package/src/resources/webhooks.ts +95 -95
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/webhooks.js
CHANGED
|
@@ -10,6 +10,83 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
10
10
|
* Webhooks allow you to receive real-time HTTP callbacks when events occur in your Featurebase organization. Configure webhook endpoints to subscribe to specific event types.
|
|
11
11
|
*/
|
|
12
12
|
class Webhooks extends resource_1.APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Returns a list of webhooks in your organization using cursor-based pagination.
|
|
15
|
+
*
|
|
16
|
+
* ### Query Parameters
|
|
17
|
+
*
|
|
18
|
+
* - `limit` - Number of webhooks to return (1-100, default 10)
|
|
19
|
+
* - `cursor` - Cursor from previous response for pagination
|
|
20
|
+
* - `status` - Filter by status: "active", "paused", or "suspended"
|
|
21
|
+
*
|
|
22
|
+
* ### Response Format
|
|
23
|
+
*
|
|
24
|
+
* Returns a list object with:
|
|
25
|
+
*
|
|
26
|
+
* - `object` - Always "list"
|
|
27
|
+
* - `data` - Array of webhook objects
|
|
28
|
+
* - `nextCursor` - Cursor for the next page, or null if no more results
|
|
29
|
+
*
|
|
30
|
+
* ### Webhook Object
|
|
31
|
+
*
|
|
32
|
+
* Each webhook includes:
|
|
33
|
+
*
|
|
34
|
+
* - `id` - Unique webhook identifier
|
|
35
|
+
* - `name` - Human-readable webhook name
|
|
36
|
+
* - `url` - Webhook endpoint URL
|
|
37
|
+
* - `topics` - Array of subscribed event topics
|
|
38
|
+
* - `status` - Current status ("active", "paused", "suspended")
|
|
39
|
+
* - `health` - Health metrics (response times, error counts)
|
|
40
|
+
* - `createdAt` - Creation timestamp
|
|
41
|
+
* - `updatedAt` - Last update timestamp
|
|
42
|
+
*
|
|
43
|
+
* ### Example
|
|
44
|
+
*
|
|
45
|
+
* ```json
|
|
46
|
+
* {
|
|
47
|
+
* "object": "list",
|
|
48
|
+
* "data": [
|
|
49
|
+
* {
|
|
50
|
+
* "object": "webhook",
|
|
51
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
52
|
+
* "name": "Production Webhook",
|
|
53
|
+
* "url": "https://example.com/webhooks",
|
|
54
|
+
* "topics": ["post.created", "post.updated"],
|
|
55
|
+
* "status": "active",
|
|
56
|
+
* ...
|
|
57
|
+
* }
|
|
58
|
+
* ],
|
|
59
|
+
* "nextCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMSJ9"
|
|
60
|
+
* }
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* ### Version Availability
|
|
64
|
+
*
|
|
65
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* // Automatically fetches more pages as needed.
|
|
70
|
+
* for await (const webhook of client.webhooks.list()) {
|
|
71
|
+
* // ...
|
|
72
|
+
* }
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
list(params = {}, options) {
|
|
76
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
77
|
+
return this._client.getAPIList('/v2/webhooks', (pagination_1.CursorPage), {
|
|
78
|
+
query,
|
|
79
|
+
...options,
|
|
80
|
+
headers: (0, headers_1.buildHeaders)([
|
|
81
|
+
{
|
|
82
|
+
...(featurebaseVersion?.toString() != null ?
|
|
83
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
84
|
+
: undefined),
|
|
85
|
+
},
|
|
86
|
+
options?.headers,
|
|
87
|
+
]),
|
|
88
|
+
});
|
|
89
|
+
}
|
|
13
90
|
/**
|
|
14
91
|
* Creates a new webhook to receive event notifications.
|
|
15
92
|
*
|
|
@@ -280,83 +357,6 @@ class Webhooks extends resource_1.APIResource {
|
|
|
280
357
|
]),
|
|
281
358
|
});
|
|
282
359
|
}
|
|
283
|
-
/**
|
|
284
|
-
* Returns a list of webhooks in your organization using cursor-based pagination.
|
|
285
|
-
*
|
|
286
|
-
* ### Query Parameters
|
|
287
|
-
*
|
|
288
|
-
* - `limit` - Number of webhooks to return (1-100, default 10)
|
|
289
|
-
* - `cursor` - Cursor from previous response for pagination
|
|
290
|
-
* - `status` - Filter by status: "active", "paused", or "suspended"
|
|
291
|
-
*
|
|
292
|
-
* ### Response Format
|
|
293
|
-
*
|
|
294
|
-
* Returns a list object with:
|
|
295
|
-
*
|
|
296
|
-
* - `object` - Always "list"
|
|
297
|
-
* - `data` - Array of webhook objects
|
|
298
|
-
* - `nextCursor` - Cursor for the next page, or null if no more results
|
|
299
|
-
*
|
|
300
|
-
* ### Webhook Object
|
|
301
|
-
*
|
|
302
|
-
* Each webhook includes:
|
|
303
|
-
*
|
|
304
|
-
* - `id` - Unique webhook identifier
|
|
305
|
-
* - `name` - Human-readable webhook name
|
|
306
|
-
* - `url` - Webhook endpoint URL
|
|
307
|
-
* - `topics` - Array of subscribed event topics
|
|
308
|
-
* - `status` - Current status ("active", "paused", "suspended")
|
|
309
|
-
* - `health` - Health metrics (response times, error counts)
|
|
310
|
-
* - `createdAt` - Creation timestamp
|
|
311
|
-
* - `updatedAt` - Last update timestamp
|
|
312
|
-
*
|
|
313
|
-
* ### Example
|
|
314
|
-
*
|
|
315
|
-
* ```json
|
|
316
|
-
* {
|
|
317
|
-
* "object": "list",
|
|
318
|
-
* "data": [
|
|
319
|
-
* {
|
|
320
|
-
* "object": "webhook",
|
|
321
|
-
* "id": "507f1f77bcf86cd799439011",
|
|
322
|
-
* "name": "Production Webhook",
|
|
323
|
-
* "url": "https://example.com/webhooks",
|
|
324
|
-
* "topics": ["post.created", "post.updated"],
|
|
325
|
-
* "status": "active",
|
|
326
|
-
* ...
|
|
327
|
-
* }
|
|
328
|
-
* ],
|
|
329
|
-
* "nextCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMSJ9"
|
|
330
|
-
* }
|
|
331
|
-
* ```
|
|
332
|
-
*
|
|
333
|
-
* ### Version Availability
|
|
334
|
-
*
|
|
335
|
-
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
336
|
-
*
|
|
337
|
-
* @example
|
|
338
|
-
* ```ts
|
|
339
|
-
* // Automatically fetches more pages as needed.
|
|
340
|
-
* for await (const webhook of client.webhooks.list()) {
|
|
341
|
-
* // ...
|
|
342
|
-
* }
|
|
343
|
-
* ```
|
|
344
|
-
*/
|
|
345
|
-
list(params = {}, options) {
|
|
346
|
-
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
347
|
-
return this._client.getAPIList('/v2/webhooks', (pagination_1.CursorPage), {
|
|
348
|
-
query,
|
|
349
|
-
...options,
|
|
350
|
-
headers: (0, headers_1.buildHeaders)([
|
|
351
|
-
{
|
|
352
|
-
...(featurebaseVersion?.toString() != null ?
|
|
353
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
354
|
-
: undefined),
|
|
355
|
-
},
|
|
356
|
-
options?.headers,
|
|
357
|
-
]),
|
|
358
|
-
});
|
|
359
|
-
}
|
|
360
360
|
/**
|
|
361
361
|
* Permanently deletes a webhook.
|
|
362
362
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AACpF,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,QAAS,SAAQ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E,kBAAkB,EAAE,QAAQ,EAAE,EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA5dD,4BA4dC"}
|
package/resources/webhooks.mjs
CHANGED
|
@@ -7,6 +7,83 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
7
7
|
* Webhooks allow you to receive real-time HTTP callbacks when events occur in your Featurebase organization. Configure webhook endpoints to subscribe to specific event types.
|
|
8
8
|
*/
|
|
9
9
|
export class Webhooks extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Returns a list of webhooks in your organization using cursor-based pagination.
|
|
12
|
+
*
|
|
13
|
+
* ### Query Parameters
|
|
14
|
+
*
|
|
15
|
+
* - `limit` - Number of webhooks to return (1-100, default 10)
|
|
16
|
+
* - `cursor` - Cursor from previous response for pagination
|
|
17
|
+
* - `status` - Filter by status: "active", "paused", or "suspended"
|
|
18
|
+
*
|
|
19
|
+
* ### Response Format
|
|
20
|
+
*
|
|
21
|
+
* Returns a list object with:
|
|
22
|
+
*
|
|
23
|
+
* - `object` - Always "list"
|
|
24
|
+
* - `data` - Array of webhook objects
|
|
25
|
+
* - `nextCursor` - Cursor for the next page, or null if no more results
|
|
26
|
+
*
|
|
27
|
+
* ### Webhook Object
|
|
28
|
+
*
|
|
29
|
+
* Each webhook includes:
|
|
30
|
+
*
|
|
31
|
+
* - `id` - Unique webhook identifier
|
|
32
|
+
* - `name` - Human-readable webhook name
|
|
33
|
+
* - `url` - Webhook endpoint URL
|
|
34
|
+
* - `topics` - Array of subscribed event topics
|
|
35
|
+
* - `status` - Current status ("active", "paused", "suspended")
|
|
36
|
+
* - `health` - Health metrics (response times, error counts)
|
|
37
|
+
* - `createdAt` - Creation timestamp
|
|
38
|
+
* - `updatedAt` - Last update timestamp
|
|
39
|
+
*
|
|
40
|
+
* ### Example
|
|
41
|
+
*
|
|
42
|
+
* ```json
|
|
43
|
+
* {
|
|
44
|
+
* "object": "list",
|
|
45
|
+
* "data": [
|
|
46
|
+
* {
|
|
47
|
+
* "object": "webhook",
|
|
48
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
49
|
+
* "name": "Production Webhook",
|
|
50
|
+
* "url": "https://example.com/webhooks",
|
|
51
|
+
* "topics": ["post.created", "post.updated"],
|
|
52
|
+
* "status": "active",
|
|
53
|
+
* ...
|
|
54
|
+
* }
|
|
55
|
+
* ],
|
|
56
|
+
* "nextCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMSJ9"
|
|
57
|
+
* }
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* ### Version Availability
|
|
61
|
+
*
|
|
62
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* // Automatically fetches more pages as needed.
|
|
67
|
+
* for await (const webhook of client.webhooks.list()) {
|
|
68
|
+
* // ...
|
|
69
|
+
* }
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
list(params = {}, options) {
|
|
73
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
74
|
+
return this._client.getAPIList('/v2/webhooks', (CursorPage), {
|
|
75
|
+
query,
|
|
76
|
+
...options,
|
|
77
|
+
headers: buildHeaders([
|
|
78
|
+
{
|
|
79
|
+
...(featurebaseVersion?.toString() != null ?
|
|
80
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
81
|
+
: undefined),
|
|
82
|
+
},
|
|
83
|
+
options?.headers,
|
|
84
|
+
]),
|
|
85
|
+
});
|
|
86
|
+
}
|
|
10
87
|
/**
|
|
11
88
|
* Creates a new webhook to receive event notifications.
|
|
12
89
|
*
|
|
@@ -277,83 +354,6 @@ export class Webhooks extends APIResource {
|
|
|
277
354
|
]),
|
|
278
355
|
});
|
|
279
356
|
}
|
|
280
|
-
/**
|
|
281
|
-
* Returns a list of webhooks in your organization using cursor-based pagination.
|
|
282
|
-
*
|
|
283
|
-
* ### Query Parameters
|
|
284
|
-
*
|
|
285
|
-
* - `limit` - Number of webhooks to return (1-100, default 10)
|
|
286
|
-
* - `cursor` - Cursor from previous response for pagination
|
|
287
|
-
* - `status` - Filter by status: "active", "paused", or "suspended"
|
|
288
|
-
*
|
|
289
|
-
* ### Response Format
|
|
290
|
-
*
|
|
291
|
-
* Returns a list object with:
|
|
292
|
-
*
|
|
293
|
-
* - `object` - Always "list"
|
|
294
|
-
* - `data` - Array of webhook objects
|
|
295
|
-
* - `nextCursor` - Cursor for the next page, or null if no more results
|
|
296
|
-
*
|
|
297
|
-
* ### Webhook Object
|
|
298
|
-
*
|
|
299
|
-
* Each webhook includes:
|
|
300
|
-
*
|
|
301
|
-
* - `id` - Unique webhook identifier
|
|
302
|
-
* - `name` - Human-readable webhook name
|
|
303
|
-
* - `url` - Webhook endpoint URL
|
|
304
|
-
* - `topics` - Array of subscribed event topics
|
|
305
|
-
* - `status` - Current status ("active", "paused", "suspended")
|
|
306
|
-
* - `health` - Health metrics (response times, error counts)
|
|
307
|
-
* - `createdAt` - Creation timestamp
|
|
308
|
-
* - `updatedAt` - Last update timestamp
|
|
309
|
-
*
|
|
310
|
-
* ### Example
|
|
311
|
-
*
|
|
312
|
-
* ```json
|
|
313
|
-
* {
|
|
314
|
-
* "object": "list",
|
|
315
|
-
* "data": [
|
|
316
|
-
* {
|
|
317
|
-
* "object": "webhook",
|
|
318
|
-
* "id": "507f1f77bcf86cd799439011",
|
|
319
|
-
* "name": "Production Webhook",
|
|
320
|
-
* "url": "https://example.com/webhooks",
|
|
321
|
-
* "topics": ["post.created", "post.updated"],
|
|
322
|
-
* "status": "active",
|
|
323
|
-
* ...
|
|
324
|
-
* }
|
|
325
|
-
* ],
|
|
326
|
-
* "nextCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMSJ9"
|
|
327
|
-
* }
|
|
328
|
-
* ```
|
|
329
|
-
*
|
|
330
|
-
* ### Version Availability
|
|
331
|
-
*
|
|
332
|
-
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
333
|
-
*
|
|
334
|
-
* @example
|
|
335
|
-
* ```ts
|
|
336
|
-
* // Automatically fetches more pages as needed.
|
|
337
|
-
* for await (const webhook of client.webhooks.list()) {
|
|
338
|
-
* // ...
|
|
339
|
-
* }
|
|
340
|
-
* ```
|
|
341
|
-
*/
|
|
342
|
-
list(params = {}, options) {
|
|
343
|
-
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
344
|
-
return this._client.getAPIList('/v2/webhooks', (CursorPage), {
|
|
345
|
-
query,
|
|
346
|
-
...options,
|
|
347
|
-
headers: buildHeaders([
|
|
348
|
-
{
|
|
349
|
-
...(featurebaseVersion?.toString() != null ?
|
|
350
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
351
|
-
: undefined),
|
|
352
|
-
},
|
|
353
|
-
options?.headers,
|
|
354
|
-
]),
|
|
355
|
-
});
|
|
356
|
-
}
|
|
357
357
|
/**
|
|
358
358
|
* Permanently deletes a webhook.
|
|
359
359
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,UAAU,EAAsC,+BAA2B;AACpF,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;O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qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,gBAAgB,EAAE,EAAE,EAAE;YACnD,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;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,aAAa,CACX,EAAU,EACV,SAAwD,EAAE,EAC1D,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,gBAAgB,EAAE,SAAS,EAAE;YACxD,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"}
|
package/resources.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.mts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"resources.d.mts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":"AAAA,sCAAkC"}
|
package/resources.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":"AAAA,qCAAkC"}
|
package/resources.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.mjs","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"resources.mjs","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":"AAAA,sCAAkC"}
|
package/src/client.ts
CHANGED
|
@@ -25,6 +25,14 @@ import {
|
|
|
25
25
|
import * as Uploads from './core/uploads';
|
|
26
26
|
import * as API from './resources/index';
|
|
27
27
|
import { APIPromise } from './core/api-promise';
|
|
28
|
+
import {
|
|
29
|
+
ConversationAttribute,
|
|
30
|
+
ConversationAttributeListParams,
|
|
31
|
+
ConversationAttributeListResponse,
|
|
32
|
+
ConversationAttributeOption,
|
|
33
|
+
ConversationAttributeRetrieveParams,
|
|
34
|
+
ConversationAttributes,
|
|
35
|
+
} from './resources/conversation-attributes';
|
|
28
36
|
import {
|
|
29
37
|
Survey,
|
|
30
38
|
SurveyListParams,
|
|
@@ -818,6 +826,10 @@ export class Featurebase {
|
|
|
818
826
|
* Webhooks allow you to receive real-time HTTP callbacks when events occur in your Featurebase organization. Configure webhook endpoints to subscribe to specific event types.
|
|
819
827
|
*/
|
|
820
828
|
webhooks: API.Webhooks = new API.Webhooks(this);
|
|
829
|
+
/**
|
|
830
|
+
* Conversation custom attribute definitions configured in your Featurebase organization. Use these definitions to map ID-keyed conversation custom attributes to human-readable names and value types.
|
|
831
|
+
*/
|
|
832
|
+
conversationAttributes: API.ConversationAttributes = new API.ConversationAttributes(this);
|
|
821
833
|
}
|
|
822
834
|
|
|
823
835
|
Featurebase.Support = Support;
|
|
@@ -828,6 +840,7 @@ Featurebase.Organization = Organization;
|
|
|
828
840
|
Featurebase.Users = Users;
|
|
829
841
|
Featurebase.Surveys = Surveys;
|
|
830
842
|
Featurebase.Webhooks = Webhooks;
|
|
843
|
+
Featurebase.ConversationAttributes = ConversationAttributes;
|
|
831
844
|
|
|
832
845
|
export declare namespace Featurebase {
|
|
833
846
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -851,10 +864,10 @@ export declare namespace Featurebase {
|
|
|
851
864
|
type PublishUnpublishSuccess as PublishUnpublishSuccess,
|
|
852
865
|
type ChangelogDeleteResponse as ChangelogDeleteResponse,
|
|
853
866
|
type ChangelogsCursorPage as ChangelogsCursorPage,
|
|
867
|
+
type ChangelogListParams as ChangelogListParams,
|
|
854
868
|
type ChangelogCreateParams as ChangelogCreateParams,
|
|
855
869
|
type ChangelogRetrieveParams as ChangelogRetrieveParams,
|
|
856
870
|
type ChangelogUpdateParams as ChangelogUpdateParams,
|
|
857
|
-
type ChangelogListParams as ChangelogListParams,
|
|
858
871
|
type ChangelogDeleteParams as ChangelogDeleteParams,
|
|
859
872
|
type ChangelogPublishParams as ChangelogPublishParams,
|
|
860
873
|
type ChangelogUnpublishParams as ChangelogUnpublishParams,
|
|
@@ -873,8 +886,8 @@ export declare namespace Featurebase {
|
|
|
873
886
|
type SurveyListResponsesResponse as SurveyListResponsesResponse,
|
|
874
887
|
type SurveysCursorPage as SurveysCursorPage,
|
|
875
888
|
type SurveyListResponsesResponsesCursorPage as SurveyListResponsesResponsesCursorPage,
|
|
876
|
-
type SurveyRetrieveParams as SurveyRetrieveParams,
|
|
877
889
|
type SurveyListParams as SurveyListParams,
|
|
890
|
+
type SurveyRetrieveParams as SurveyRetrieveParams,
|
|
878
891
|
type SurveyListResponsesParams as SurveyListResponsesParams,
|
|
879
892
|
};
|
|
880
893
|
|
|
@@ -884,11 +897,20 @@ export declare namespace Featurebase {
|
|
|
884
897
|
type WebhookRequestConfigInput as WebhookRequestConfigInput,
|
|
885
898
|
type WebhookDeleteResponse as WebhookDeleteResponse,
|
|
886
899
|
type WebhooksCursorPage as WebhooksCursorPage,
|
|
900
|
+
type WebhookListParams as WebhookListParams,
|
|
887
901
|
type WebhookCreateParams as WebhookCreateParams,
|
|
888
902
|
type WebhookRetrieveParams as WebhookRetrieveParams,
|
|
889
903
|
type WebhookUpdateParams as WebhookUpdateParams,
|
|
890
|
-
type WebhookListParams as WebhookListParams,
|
|
891
904
|
type WebhookDeleteParams as WebhookDeleteParams,
|
|
892
905
|
type WebhookRefreshSecretParams as WebhookRefreshSecretParams,
|
|
893
906
|
};
|
|
907
|
+
|
|
908
|
+
export {
|
|
909
|
+
ConversationAttributes as ConversationAttributes,
|
|
910
|
+
type ConversationAttribute as ConversationAttribute,
|
|
911
|
+
type ConversationAttributeOption as ConversationAttributeOption,
|
|
912
|
+
type ConversationAttributeListResponse as ConversationAttributeListResponse,
|
|
913
|
+
type ConversationAttributeListParams as ConversationAttributeListParams,
|
|
914
|
+
type ConversationAttributeRetrieveParams as ConversationAttributeRetrieveParams,
|
|
915
|
+
};
|
|
894
916
|
}
|
|
@@ -107,6 +107,8 @@ export const formatRequestDetails = (details: {
|
|
|
107
107
|
name,
|
|
108
108
|
(
|
|
109
109
|
name.toLowerCase() === 'authorization' ||
|
|
110
|
+
name.toLowerCase() === 'api-key' ||
|
|
111
|
+
name.toLowerCase() === 'x-api-key' ||
|
|
110
112
|
name.toLowerCase() === 'cookie' ||
|
|
111
113
|
name.toLowerCase() === 'set-cookie'
|
|
112
114
|
) ?
|