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
|
@@ -17,19 +17,27 @@ export class Contacts extends APIResource {
|
|
|
17
17
|
this.emailPreferences = new EmailPreferencesAPI.EmailPreferences(this._client);
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* Returns both customers and leads.
|
|
20
|
+
* Returns a list of contacts (customers and leads) in your organization using
|
|
21
|
+
* cursor-based pagination.
|
|
23
22
|
*
|
|
24
|
-
* ###
|
|
23
|
+
* ### Query Parameters
|
|
25
24
|
*
|
|
26
|
-
* - `
|
|
25
|
+
* - `limit` - Number of contacts to return (1-100, default 10)
|
|
26
|
+
* - `cursor` - Cursor from previous response for pagination
|
|
27
|
+
* - `contactType` - Filter by contact type: "customer" (default), "lead", or "all"
|
|
27
28
|
*
|
|
28
29
|
* ### Response Format
|
|
29
30
|
*
|
|
30
|
-
* Returns a
|
|
31
|
+
* Returns a list object with:
|
|
32
|
+
*
|
|
33
|
+
* - `object` - Always "list"
|
|
34
|
+
* - `data` - Array of contact objects
|
|
35
|
+
* - `nextCursor` - Cursor for the next page, or null if no more results
|
|
36
|
+
*
|
|
37
|
+
* ### Contact Object
|
|
38
|
+
*
|
|
39
|
+
* Each contact includes:
|
|
31
40
|
*
|
|
32
|
-
* - `object` - Always "contact"
|
|
33
41
|
* - `id` - Unique contact identifier
|
|
34
42
|
* - `userId` - External user ID from SSO (if set)
|
|
35
43
|
* - `email` - Contact email address
|
|
@@ -46,11 +54,129 @@ export class Contacts extends APIResource {
|
|
|
46
54
|
*
|
|
47
55
|
* ```json
|
|
48
56
|
* {
|
|
57
|
+
* "object": "list",
|
|
58
|
+
* "data": [
|
|
59
|
+
* {
|
|
60
|
+
* "object": "contact",
|
|
61
|
+
* "id": "676f0f6765bdaa7d7d760f88",
|
|
62
|
+
* "email": "john@example.com",
|
|
63
|
+
* "name": "John Doe",
|
|
64
|
+
* "type": "customer",
|
|
65
|
+
* ...
|
|
66
|
+
* }
|
|
67
|
+
* ],
|
|
68
|
+
* "nextCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMSJ9"
|
|
69
|
+
* }
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* ### Version Availability
|
|
73
|
+
*
|
|
74
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* // Automatically fetches more pages as needed.
|
|
79
|
+
* for await (const contact of client.users.contacts.list()) {
|
|
80
|
+
* // ...
|
|
81
|
+
* }
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
list(params = {}, options) {
|
|
85
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
86
|
+
return this._client.getAPIList('/v2/contacts', (CursorPage), {
|
|
87
|
+
query,
|
|
88
|
+
...options,
|
|
89
|
+
headers: buildHeaders([
|
|
90
|
+
{
|
|
91
|
+
...(featurebaseVersion?.toString() != null ?
|
|
92
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
93
|
+
: undefined),
|
|
94
|
+
},
|
|
95
|
+
options?.headers,
|
|
96
|
+
]),
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Creates a new contact or updates an existing one.
|
|
101
|
+
*
|
|
102
|
+
* If a contact with the given `email` or `userId` already exists, it will be
|
|
103
|
+
* updated. Otherwise, a new contact will be created.
|
|
104
|
+
*
|
|
105
|
+
* **At least one of `email` or `userId` must be provided for identification.**
|
|
106
|
+
*
|
|
107
|
+
* ### Request Body
|
|
108
|
+
*
|
|
109
|
+
* | Field | Type | Required | Description |
|
|
110
|
+
* | ----------------------- | ------- | ------------------- | --------------------------------------- |
|
|
111
|
+
* | `email` | string | One of email/userId | Contact email address |
|
|
112
|
+
* | `userId` | string | One of email/userId | External user ID from your system |
|
|
113
|
+
* | `name` | string | No | Contact display name |
|
|
114
|
+
* | `profilePicture` | string | No | Profile picture URL |
|
|
115
|
+
* | `companies` | array | No | Companies the contact belongs to |
|
|
116
|
+
* | `customFields` | object | No | Custom field values |
|
|
117
|
+
* | `subscribedToChangelog` | boolean | No | Whether subscribed to changelog |
|
|
118
|
+
* | `locale` | string | No | Contact locale/language |
|
|
119
|
+
* | `phone` | string | No | Contact phone number |
|
|
120
|
+
* | `roles` | array | No | Role IDs to assign |
|
|
121
|
+
* | `userHash` | string | No | HMAC hash for identity verification |
|
|
122
|
+
* | `createdAt` | string | No | When the contact was created (ISO 8601) |
|
|
123
|
+
*
|
|
124
|
+
* ### Company Object
|
|
125
|
+
*
|
|
126
|
+
* Each company in the `companies` array can have:
|
|
127
|
+
*
|
|
128
|
+
* - `id` (required) - External company ID from your system
|
|
129
|
+
* - `name` (required) - Company name
|
|
130
|
+
* - `monthlySpend` - Monthly spend/revenue
|
|
131
|
+
* - `customFields` - Custom field values
|
|
132
|
+
* - `industry` - Industry
|
|
133
|
+
* - `website` - Company website URL
|
|
134
|
+
* - `plan` - Current plan/subscription
|
|
135
|
+
* - `companySize` - Number of employees
|
|
136
|
+
* - `createdAt` - When the company was created
|
|
137
|
+
*
|
|
138
|
+
* ### Response
|
|
139
|
+
*
|
|
140
|
+
* Returns the created or updated contact object.
|
|
141
|
+
*
|
|
142
|
+
* - **201 Created** - A new contact was created
|
|
143
|
+
* - **200 OK** - An existing contact was updated
|
|
144
|
+
*
|
|
145
|
+
* ### Example Request
|
|
146
|
+
*
|
|
147
|
+
* ```json
|
|
148
|
+
* {
|
|
149
|
+
* "email": "john@example.com",
|
|
150
|
+
* "name": "John Doe",
|
|
151
|
+
* "userId": "usr_12345",
|
|
152
|
+
* "companies": [
|
|
153
|
+
* {
|
|
154
|
+
* "id": "company_123",
|
|
155
|
+
* "name": "Acme Inc",
|
|
156
|
+
* "monthlySpend": 500,
|
|
157
|
+
* "plan": "enterprise"
|
|
158
|
+
* }
|
|
159
|
+
* ],
|
|
160
|
+
* "customFields": {
|
|
161
|
+
* "plan": "pro",
|
|
162
|
+
* "signupSource": "website"
|
|
163
|
+
* },
|
|
164
|
+
* "subscribedToChangelog": true
|
|
165
|
+
* }
|
|
166
|
+
* ```
|
|
167
|
+
*
|
|
168
|
+
* ### Example Response
|
|
169
|
+
*
|
|
170
|
+
* ```json
|
|
171
|
+
* {
|
|
49
172
|
* "object": "contact",
|
|
50
173
|
* "id": "676f0f6765bdaa7d7d760f88",
|
|
51
174
|
* "email": "john@example.com",
|
|
52
175
|
* "name": "John Doe",
|
|
176
|
+
* "userId": "usr_12345",
|
|
53
177
|
* "type": "customer",
|
|
178
|
+
* "companies": [...],
|
|
179
|
+
* "customFields": {...},
|
|
54
180
|
* ...
|
|
55
181
|
* }
|
|
56
182
|
* ```
|
|
@@ -61,14 +187,14 @@ export class Contacts extends APIResource {
|
|
|
61
187
|
*
|
|
62
188
|
* @example
|
|
63
189
|
* ```ts
|
|
64
|
-
* const
|
|
65
|
-
*
|
|
66
|
-
* );
|
|
190
|
+
* const response =
|
|
191
|
+
* await client.users.contacts.createOrUpdate();
|
|
67
192
|
* ```
|
|
68
193
|
*/
|
|
69
|
-
|
|
70
|
-
const { 'Featurebase-Version': featurebaseVersion } = params
|
|
71
|
-
return this._client.
|
|
194
|
+
createOrUpdate(params, options) {
|
|
195
|
+
const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
|
|
196
|
+
return this._client.post('/v2/contacts', {
|
|
197
|
+
body,
|
|
72
198
|
...options,
|
|
73
199
|
headers: buildHeaders([
|
|
74
200
|
{
|
|
@@ -81,27 +207,19 @@ export class Contacts extends APIResource {
|
|
|
81
207
|
});
|
|
82
208
|
}
|
|
83
209
|
/**
|
|
84
|
-
*
|
|
85
|
-
* cursor-based pagination.
|
|
86
|
-
*
|
|
87
|
-
* ### Query Parameters
|
|
88
|
-
*
|
|
89
|
-
* - `limit` - Number of contacts to return (1-100, default 10)
|
|
90
|
-
* - `cursor` - Cursor from previous response for pagination
|
|
91
|
-
* - `contactType` - Filter by contact type: "customer" (default), "lead", or "all"
|
|
210
|
+
* Retrieves a single contact by their Featurebase ID.
|
|
92
211
|
*
|
|
93
|
-
*
|
|
212
|
+
* Returns both customers and leads.
|
|
94
213
|
*
|
|
95
|
-
*
|
|
214
|
+
* ### Path Parameters
|
|
96
215
|
*
|
|
97
|
-
* - `
|
|
98
|
-
* - `data` - Array of contact objects
|
|
99
|
-
* - `nextCursor` - Cursor for the next page, or null if no more results
|
|
216
|
+
* - `id` - The Featurebase contact ID (24-character ObjectId)
|
|
100
217
|
*
|
|
101
|
-
* ###
|
|
218
|
+
* ### Response Format
|
|
102
219
|
*
|
|
103
|
-
*
|
|
220
|
+
* Returns a single contact object with:
|
|
104
221
|
*
|
|
222
|
+
* - `object` - Always "contact"
|
|
105
223
|
* - `id` - Unique contact identifier
|
|
106
224
|
* - `userId` - External user ID from SSO (if set)
|
|
107
225
|
* - `email` - Contact email address
|
|
@@ -118,18 +236,12 @@ export class Contacts extends APIResource {
|
|
|
118
236
|
*
|
|
119
237
|
* ```json
|
|
120
238
|
* {
|
|
121
|
-
* "object": "
|
|
122
|
-
* "
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
* "name": "John Doe",
|
|
128
|
-
* "type": "customer",
|
|
129
|
-
* ...
|
|
130
|
-
* }
|
|
131
|
-
* ],
|
|
132
|
-
* "nextCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMSJ9"
|
|
239
|
+
* "object": "contact",
|
|
240
|
+
* "id": "676f0f6765bdaa7d7d760f88",
|
|
241
|
+
* "email": "john@example.com",
|
|
242
|
+
* "name": "John Doe",
|
|
243
|
+
* "type": "customer",
|
|
244
|
+
* ...
|
|
133
245
|
* }
|
|
134
246
|
* ```
|
|
135
247
|
*
|
|
@@ -139,16 +251,14 @@ export class Contacts extends APIResource {
|
|
|
139
251
|
*
|
|
140
252
|
* @example
|
|
141
253
|
* ```ts
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
* }
|
|
254
|
+
* const contact = await client.users.contacts.retrieve(
|
|
255
|
+
* '507f1f77bcf86cd799439011',
|
|
256
|
+
* );
|
|
146
257
|
* ```
|
|
147
258
|
*/
|
|
148
|
-
|
|
149
|
-
const { 'Featurebase-Version': featurebaseVersion
|
|
150
|
-
return this._client.
|
|
151
|
-
query,
|
|
259
|
+
retrieve(id, params = {}, options) {
|
|
260
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
261
|
+
return this._client.get(path `/v2/contacts/${id}`, {
|
|
152
262
|
...options,
|
|
153
263
|
headers: buildHeaders([
|
|
154
264
|
{
|
|
@@ -222,7 +332,7 @@ export class Contacts extends APIResource {
|
|
|
222
332
|
});
|
|
223
333
|
}
|
|
224
334
|
/**
|
|
225
|
-
* Blocks a contact by their Featurebase ID
|
|
335
|
+
* Blocks a contact by their Featurebase ID using the global moderation system.
|
|
226
336
|
*
|
|
227
337
|
* ### Path Parameters
|
|
228
338
|
*
|
|
@@ -240,6 +350,8 @@ export class Contacts extends APIResource {
|
|
|
240
350
|
* When a contact is blocked:
|
|
241
351
|
*
|
|
242
352
|
* - The contact cannot send new messages via messenger
|
|
353
|
+
* - The contact cannot interact with feedback/changelog surfaces for this
|
|
354
|
+
* organization
|
|
243
355
|
* - Existing conversations are not deleted but no new messages can be added by the
|
|
244
356
|
* blocked user
|
|
245
357
|
* - The block can be removed by unblocking the contact
|
|
@@ -288,87 +400,42 @@ export class Contacts extends APIResource {
|
|
|
288
400
|
});
|
|
289
401
|
}
|
|
290
402
|
/**
|
|
291
|
-
*
|
|
292
|
-
*
|
|
293
|
-
* If a contact with the given `email` or `userId` already exists, it will be
|
|
294
|
-
* updated. Otherwise, a new contact will be created.
|
|
403
|
+
* Unblocks a contact by their Featurebase ID from the global moderation system.
|
|
295
404
|
*
|
|
296
|
-
*
|
|
405
|
+
* ### Path Parameters
|
|
297
406
|
*
|
|
298
|
-
*
|
|
407
|
+
* - `id` - The Featurebase internal ID of the contact (MongoDB ObjectId)
|
|
299
408
|
*
|
|
300
|
-
*
|
|
301
|
-
* | ----------------------- | ------- | ------------------- | --------------------------------------- |
|
|
302
|
-
* | `email` | string | One of email/userId | Contact email address |
|
|
303
|
-
* | `userId` | string | One of email/userId | External user ID from your system |
|
|
304
|
-
* | `name` | string | No | Contact display name |
|
|
305
|
-
* | `profilePicture` | string | No | Profile picture URL |
|
|
306
|
-
* | `companies` | array | No | Companies the contact belongs to |
|
|
307
|
-
* | `customFields` | object | No | Custom field values |
|
|
308
|
-
* | `subscribedToChangelog` | boolean | No | Whether subscribed to changelog |
|
|
309
|
-
* | `locale` | string | No | Contact locale/language |
|
|
310
|
-
* | `phone` | string | No | Contact phone number |
|
|
311
|
-
* | `roles` | array | No | Role IDs to assign |
|
|
312
|
-
* | `userHash` | string | No | HMAC hash for identity verification |
|
|
313
|
-
* | `createdAt` | string | No | When the contact was created (ISO 8601) |
|
|
409
|
+
* ### Supported Contact Types
|
|
314
410
|
*
|
|
315
|
-
*
|
|
411
|
+
* This endpoint unblocks both:
|
|
316
412
|
*
|
|
317
|
-
*
|
|
413
|
+
* - **Customers** - Users with registered accounts
|
|
414
|
+
* - **Leads** - Anonymous or unregistered visitors
|
|
318
415
|
*
|
|
319
|
-
*
|
|
320
|
-
* - `name` (required) - Company name
|
|
321
|
-
* - `monthlySpend` - Monthly spend/revenue
|
|
322
|
-
* - `customFields` - Custom field values
|
|
323
|
-
* - `industry` - Industry
|
|
324
|
-
* - `website` - Company website URL
|
|
325
|
-
* - `plan` - Current plan/subscription
|
|
326
|
-
* - `companySize` - Number of employees
|
|
327
|
-
* - `createdAt` - When the company was created
|
|
416
|
+
* ### Unblocking Behavior
|
|
328
417
|
*
|
|
329
|
-
*
|
|
418
|
+
* When a contact is unblocked:
|
|
330
419
|
*
|
|
331
|
-
*
|
|
420
|
+
* - The contact can resume sending messages via messenger
|
|
421
|
+
* - Previously blocked conversations remain intact
|
|
422
|
+
* - The contact regains full messenger functionality
|
|
332
423
|
*
|
|
333
|
-
*
|
|
334
|
-
* - **200 OK** - An existing contact was updated
|
|
424
|
+
* ### Response
|
|
335
425
|
*
|
|
336
|
-
*
|
|
426
|
+
* Returns an unblock confirmation object:
|
|
337
427
|
*
|
|
338
|
-
*
|
|
339
|
-
*
|
|
340
|
-
*
|
|
341
|
-
* "name": "John Doe",
|
|
342
|
-
* "userId": "usr_12345",
|
|
343
|
-
* "companies": [
|
|
344
|
-
* {
|
|
345
|
-
* "id": "company_123",
|
|
346
|
-
* "name": "Acme Inc",
|
|
347
|
-
* "monthlySpend": 500,
|
|
348
|
-
* "plan": "enterprise"
|
|
349
|
-
* }
|
|
350
|
-
* ],
|
|
351
|
-
* "customFields": {
|
|
352
|
-
* "plan": "pro",
|
|
353
|
-
* "signupSource": "website"
|
|
354
|
-
* },
|
|
355
|
-
* "subscribedToChangelog": true
|
|
356
|
-
* }
|
|
357
|
-
* ```
|
|
428
|
+
* - `id` - The ID of the unblocked contact
|
|
429
|
+
* - `object` - Always "contact"
|
|
430
|
+
* - `unblocked` - Always `true`
|
|
358
431
|
*
|
|
359
432
|
* ### Example Response
|
|
360
433
|
*
|
|
361
434
|
* ```json
|
|
362
435
|
* {
|
|
436
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
363
437
|
* "object": "contact",
|
|
364
|
-
* "
|
|
365
|
-
* "email": "john@example.com",
|
|
366
|
-
* "name": "John Doe",
|
|
367
|
-
* "userId": "usr_12345",
|
|
368
|
-
* "type": "customer",
|
|
369
|
-
* "companies": [...],
|
|
370
|
-
* "customFields": {...},
|
|
371
|
-
* ...
|
|
438
|
+
* "unblocked": true
|
|
372
439
|
* }
|
|
373
440
|
* ```
|
|
374
441
|
*
|
|
@@ -378,14 +445,14 @@ export class Contacts extends APIResource {
|
|
|
378
445
|
*
|
|
379
446
|
* @example
|
|
380
447
|
* ```ts
|
|
381
|
-
* const response =
|
|
382
|
-
*
|
|
448
|
+
* const response = await client.users.contacts.unblock(
|
|
449
|
+
* '507f1f77bcf86cd799439011',
|
|
450
|
+
* );
|
|
383
451
|
* ```
|
|
384
452
|
*/
|
|
385
|
-
|
|
386
|
-
const { 'Featurebase-Version': featurebaseVersion
|
|
387
|
-
return this._client.post(
|
|
388
|
-
body,
|
|
453
|
+
unblock(id, params = {}, options) {
|
|
454
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
455
|
+
return this._client.post(path `/v2/contacts/${id}/unblock`, {
|
|
389
456
|
...options,
|
|
390
457
|
headers: buildHeaders([
|
|
391
458
|
{
|
|
@@ -412,10 +479,10 @@ export class Contacts extends APIResource {
|
|
|
412
479
|
* "operator": "AND",
|
|
413
480
|
* "value": [
|
|
414
481
|
* { "field": "type", "operator": "=", "value": "customer" },
|
|
415
|
-
* { "field": "
|
|
482
|
+
* { "field": "lastActivity", "operator": ">", "value": 1735689600 }
|
|
416
483
|
* ]
|
|
417
484
|
* },
|
|
418
|
-
* "sort": "
|
|
485
|
+
* "sort": "lastActivity:desc",
|
|
419
486
|
* "limit": 20
|
|
420
487
|
* }
|
|
421
488
|
* ```
|
|
@@ -424,17 +491,23 @@ export class Contacts extends APIResource {
|
|
|
424
491
|
*
|
|
425
492
|
* ### Supported fields and operators
|
|
426
493
|
*
|
|
427
|
-
*
|
|
428
|
-
*
|
|
429
|
-
*
|
|
430
|
-
*
|
|
431
|
-
*
|
|
432
|
-
*
|
|
433
|
-
* |
|
|
434
|
-
* |
|
|
435
|
-
* | `
|
|
436
|
-
* | `
|
|
437
|
-
* | `
|
|
494
|
+
* Field names are camelCase, matching the rest of the v2 public API. Snake_case
|
|
495
|
+
* names that this endpoint originally shipped with (`external_id`, `company_ids`,
|
|
496
|
+
* `posts_created`, `comments_created`, `last_activity`, `created_at`) are still
|
|
497
|
+
* accepted for back-compat but are deprecated — please migrate to camelCase in new
|
|
498
|
+
* code.
|
|
499
|
+
*
|
|
500
|
+
* | Field | Type | Operators |
|
|
501
|
+
* | ----------------- | -------------------------------- | --------------------------- |
|
|
502
|
+
* | `externalId` | string (caller-provided user id) | `=`, `!=`, `IN`, `NIN` |
|
|
503
|
+
* | `email` | string | `=`, `!=`, `IN`, `NIN` |
|
|
504
|
+
* | `name` | string | `=`, `!=`, `IN`, `NIN`, `~` |
|
|
505
|
+
* | `type` | enum (`customer`, `lead`) | `=`, `!=`, `IN`, `NIN` |
|
|
506
|
+
* | `companyIds` | id (Featurebase company `id`) | `=`, `!=`, `IN`, `NIN` |
|
|
507
|
+
* | `postsCreated` | number | `=`, `!=`, `>`, `<` |
|
|
508
|
+
* | `commentsCreated` | number | `=`, `!=`, `>`, `<` |
|
|
509
|
+
* | `lastActivity` | unix seconds | `=`, `!=`, `>`, `<` |
|
|
510
|
+
* | `createdAt` | unix seconds | `=`, `!=`, `>`, `<` |
|
|
438
511
|
*
|
|
439
512
|
* The `name ~ "..."` operator runs a word-aware substring search via the
|
|
440
513
|
* underlying text index. Other string operators (`!~`, `^`, `$`) are reserved for
|
|
@@ -452,10 +525,14 @@ export class Contacts extends APIResource {
|
|
|
452
525
|
*
|
|
453
526
|
* Allowed values:
|
|
454
527
|
*
|
|
455
|
-
* - `
|
|
456
|
-
* - `
|
|
457
|
-
* - `
|
|
458
|
-
* - `
|
|
528
|
+
* - `lastActivity:desc` (default), `lastActivity:asc`
|
|
529
|
+
* - `createdAt:desc`, `createdAt:asc`
|
|
530
|
+
* - `postsCreated:desc`, `postsCreated:asc`
|
|
531
|
+
* - `commentsCreated:desc`, `commentsCreated:asc`
|
|
532
|
+
*
|
|
533
|
+
* Snake_case sort axes (`last_activity:desc`, `created_at:asc`, etc.) are accepted
|
|
534
|
+
* for back-compat — the cursor encodes the canonical camelCase identity, so a
|
|
535
|
+
* caller can switch naming conventions mid-pagination without restarting.
|
|
459
536
|
*
|
|
460
537
|
* The chosen sort axis is encoded in the cursor; switching `sort` mid-pagination
|
|
461
538
|
* returns `400 invalid_cursor`. Restart pagination without a cursor when changing
|
|
@@ -496,71 +573,6 @@ export class Contacts extends APIResource {
|
|
|
496
573
|
]),
|
|
497
574
|
});
|
|
498
575
|
}
|
|
499
|
-
/**
|
|
500
|
-
* Unblocks a contact by their Featurebase ID from the messenger/inbox.
|
|
501
|
-
*
|
|
502
|
-
* ### Path Parameters
|
|
503
|
-
*
|
|
504
|
-
* - `id` - The Featurebase internal ID of the contact (MongoDB ObjectId)
|
|
505
|
-
*
|
|
506
|
-
* ### Supported Contact Types
|
|
507
|
-
*
|
|
508
|
-
* This endpoint unblocks both:
|
|
509
|
-
*
|
|
510
|
-
* - **Customers** - Users with registered accounts
|
|
511
|
-
* - **Leads** - Anonymous or unregistered visitors
|
|
512
|
-
*
|
|
513
|
-
* ### Unblocking Behavior
|
|
514
|
-
*
|
|
515
|
-
* When a contact is unblocked:
|
|
516
|
-
*
|
|
517
|
-
* - The contact can resume sending messages via messenger
|
|
518
|
-
* - Previously blocked conversations remain intact
|
|
519
|
-
* - The contact regains full messenger functionality
|
|
520
|
-
*
|
|
521
|
-
* ### Response
|
|
522
|
-
*
|
|
523
|
-
* Returns an unblock confirmation object:
|
|
524
|
-
*
|
|
525
|
-
* - `id` - The ID of the unblocked contact
|
|
526
|
-
* - `object` - Always "contact"
|
|
527
|
-
* - `unblocked` - Always `true`
|
|
528
|
-
*
|
|
529
|
-
* ### Example Response
|
|
530
|
-
*
|
|
531
|
-
* ```json
|
|
532
|
-
* {
|
|
533
|
-
* "id": "507f1f77bcf86cd799439011",
|
|
534
|
-
* "object": "contact",
|
|
535
|
-
* "unblocked": true
|
|
536
|
-
* }
|
|
537
|
-
* ```
|
|
538
|
-
*
|
|
539
|
-
* ### Version Availability
|
|
540
|
-
*
|
|
541
|
-
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
542
|
-
*
|
|
543
|
-
* @example
|
|
544
|
-
* ```ts
|
|
545
|
-
* const response = await client.users.contacts.unblock(
|
|
546
|
-
* '507f1f77bcf86cd799439011',
|
|
547
|
-
* );
|
|
548
|
-
* ```
|
|
549
|
-
*/
|
|
550
|
-
unblock(id, params = {}, options) {
|
|
551
|
-
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
552
|
-
return this._client.post(path `/v2/contacts/${id}/unblock`, {
|
|
553
|
-
...options,
|
|
554
|
-
headers: buildHeaders([
|
|
555
|
-
{
|
|
556
|
-
...(featurebaseVersion?.toString() != null ?
|
|
557
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
558
|
-
: undefined),
|
|
559
|
-
},
|
|
560
|
-
options?.headers,
|
|
561
|
-
]),
|
|
562
|
-
});
|
|
563
|
-
}
|
|
564
576
|
}
|
|
565
577
|
Contacts.ByUserID = ByUserID;
|
|
566
578
|
Contacts.EmailPreferences = EmailPreferences;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contacts.mjs","sourceRoot":"","sources":["../../../src/resources/users/contacts/contacts.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"contacts.mjs","sourceRoot":"","sources":["../../../src/resources/users/contacts/contacts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAIrD,OAAO,KAAK,mBAAmB,gCAA4B;AAC3D,OAAO,EAGL,gBAAgB,GAIjB,gCAA4B;AAC7B,OAAO,KAAK,WAAW,oCAAgC;AACvD,OAA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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6FG;IACH,MAAM,CAAC,MAA2B,EAAE,OAAwB;QAC1D,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE;YAC9C,IAAI;YACJ,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;AAojBD,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC7B,QAAQ,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-preferences.d.mts","sourceRoot":"","sources":["../../../src/resources/users/contacts/email-preferences.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"email-preferences.d.mts","sourceRoot":"","sources":["../../../src/resources/users/contacts/email-preferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,mBAAmB,gCAA4B;AAC3D,OAA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WAAW,CAAC,EAAE,YAAY,GAAG,cAAc,CAAC;KAC7C;CACF;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-preferences.d.ts","sourceRoot":"","sources":["../../../src/resources/users/contacts/email-preferences.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"email-preferences.d.ts","sourceRoot":"","sources":["../../../src/resources/users/contacts/email-preferences.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,mBAAmB,+BAA4B;AAC3D,OAAO,EAAE,UAAU,EAAE,qCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;IAehC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiHG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;CAejC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AAc,CAAC;KAC7C;CACF;AAED,MAAM,WAAW,6BAA6B;IAC5C;;;OAGG;IACH,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;CACjE;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,WAAW,EAAE,2BAA2B,CAAC,WAAW,CAAC;IAErD;;;OAGG;IACH,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;CACjE;AAED,yBAAiB,2BAA2B,CAAC;IAC3C,UAAiB,WAAW;QAC1B;;;WAGG;QACH,GAAG,CAAC,EAAE,YAAY,GAAG,cAAc,CAAC;QAEpC;;WAEG;QACH,SAAS,CAAC,EAAE,YAAY,GAAG,cAAc,CAAC;QAE1C;;WAEG;QACH,cAAc,CAAC,EAAE,YAAY,GAAG,cAAc,CAAC;QAE/C;;WAEG;QACH,YAAY,CAAC,EAAE,YAAY,GAAG,cAAc,CAAC;QAE7C;;WAEG;QACH,WAAW,CAAC,EAAE,YAAY,GAAG,cAAc,CAAC;KAC7C;CACF;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"email-preferences.mjs","sourceRoot":"","sources":["../../../src/resources/users/contacts/email-preferences.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"email-preferences.mjs","sourceRoot":"","sources":["../../../src/resources/users/contacts/email-preferences.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,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,EAAE,EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ByUserID, type ByUserIDRetrieveResponse, type ByUserIDRetrieveParams, type ByUserIDDeleteParams, } from "./by-user-id/index.mjs";
|
|
2
|
-
export { Contacts, type Contact, type ContactList, type DeletedContact, type ContactRetrieveResponse, type ContactBlockResponse, type ContactCreateOrUpdateResponse, type ContactSearchResponse, type ContactUnblockResponse, type
|
|
2
|
+
export { Contacts, type Contact, type ContactList, type DeletedContact, type ContactRetrieveResponse, type ContactBlockResponse, type ContactCreateOrUpdateResponse, type ContactSearchResponse, type ContactUnblockResponse, type ContactListParams, type ContactCreateOrUpdateParams, type ContactRetrieveParams, type ContactDeleteParams, type ContactBlockParams, type ContactUnblockParams, type ContactSearchParams, type ContactListDataCursorPage, } from "./contacts.mjs";
|
|
3
3
|
export { EmailPreferences, type PreferenceState, type PreferencesOutput, type UpdatePreferenceBody, type EmailPreferenceRetrieveParams, type EmailPreferenceUpdateParams, } from "./email-preferences.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/users/contacts/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/users/contacts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,+BAA2B;AAC5B,OAAO,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,GAC/B,uBAAmB;AACpB,OAAO,EACL,gBAAgB,EAChB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,GACjC,gCAA4B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ByUserID, type ByUserIDRetrieveResponse, type ByUserIDRetrieveParams, type ByUserIDDeleteParams, } from "./by-user-id/index.js";
|
|
2
|
-
export { Contacts, type Contact, type ContactList, type DeletedContact, type ContactRetrieveResponse, type ContactBlockResponse, type ContactCreateOrUpdateResponse, type ContactSearchResponse, type ContactUnblockResponse, type
|
|
2
|
+
export { Contacts, type Contact, type ContactList, type DeletedContact, type ContactRetrieveResponse, type ContactBlockResponse, type ContactCreateOrUpdateResponse, type ContactSearchResponse, type ContactUnblockResponse, type ContactListParams, type ContactCreateOrUpdateParams, type ContactRetrieveParams, type ContactDeleteParams, type ContactBlockParams, type ContactUnblockParams, type ContactSearchParams, type ContactListDataCursorPage, } from "./contacts.js";
|
|
3
3
|
export { EmailPreferences, type PreferenceState, type PreferencesOutput, type UpdatePreferenceBody, type EmailPreferenceRetrieveParams, type EmailPreferenceUpdateParams, } from "./email-preferences.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/users/contacts/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/users/contacts/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,QAAQ,EACR,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,8BAA2B;AAC5B,OAAO,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,GAC/B,sBAAmB;AACpB,OAAO,EACL,gBAAgB,EAChB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,GACjC,+BAA4B"}
|