featurebase-node 0.1.0 → 0.3.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 +17 -0
- package/README.md +8 -8
- package/client.d.mts +14 -80
- package/client.d.mts.map +1 -1
- package/client.d.ts +14 -80
- package/client.d.ts.map +1 -1
- package/client.js +14 -80
- package/client.js.map +1 -1
- package/client.mjs +14 -80
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/{boards.d.mts → feedback/boards.d.mts} +15 -3
- package/resources/feedback/boards.d.mts.map +1 -0
- package/resources/{boards.d.ts → feedback/boards.d.ts} +15 -3
- package/resources/feedback/boards.d.ts.map +1 -0
- package/resources/{boards.js → feedback/boards.js} +15 -3
- package/resources/feedback/boards.js.map +1 -0
- package/resources/{boards.mjs → feedback/boards.mjs} +15 -3
- package/resources/feedback/boards.mjs.map +1 -0
- package/resources/{comments.d.mts → feedback/comments.d.mts} +10 -10
- package/resources/feedback/comments.d.mts.map +1 -0
- package/resources/{comments.d.ts → feedback/comments.d.ts} +10 -10
- package/resources/feedback/comments.d.ts.map +1 -0
- package/resources/{comments.js → feedback/comments.js} +9 -9
- package/resources/feedback/comments.js.map +1 -0
- package/resources/{comments.mjs → feedback/comments.mjs} +9 -9
- package/resources/feedback/comments.mjs.map +1 -0
- package/resources/{custom-fields.d.mts → feedback/custom-fields.d.mts} +17 -3
- package/resources/feedback/custom-fields.d.mts.map +1 -0
- package/resources/{custom-fields.d.ts → feedback/custom-fields.d.ts} +17 -3
- package/resources/feedback/custom-fields.d.ts.map +1 -0
- package/resources/{custom-fields.js → feedback/custom-fields.js} +17 -3
- package/resources/feedback/custom-fields.js.map +1 -0
- package/resources/{custom-fields.mjs → feedback/custom-fields.mjs} +17 -3
- package/resources/feedback/custom-fields.mjs.map +1 -0
- package/resources/feedback/feedback.d.mts +26 -0
- package/resources/feedback/feedback.d.mts.map +1 -0
- package/resources/feedback/feedback.d.ts +26 -0
- package/resources/feedback/feedback.d.ts.map +1 -0
- package/resources/feedback/feedback.js +33 -0
- package/resources/feedback/feedback.js.map +1 -0
- package/resources/feedback/feedback.mjs +28 -0
- package/resources/feedback/feedback.mjs.map +1 -0
- package/resources/feedback/index.d.mts +7 -0
- package/resources/feedback/index.d.mts.map +1 -0
- package/resources/feedback/index.d.ts +7 -0
- package/resources/feedback/index.d.ts.map +1 -0
- package/resources/feedback/index.js +17 -0
- package/resources/feedback/index.js.map +1 -0
- package/resources/feedback/index.mjs +8 -0
- package/resources/feedback/index.mjs.map +1 -0
- package/resources/{post-statuses.d.mts → feedback/post-statuses.d.mts} +17 -3
- package/resources/feedback/post-statuses.d.mts.map +1 -0
- package/resources/{post-statuses.d.ts → feedback/post-statuses.d.ts} +17 -3
- package/resources/feedback/post-statuses.d.ts.map +1 -0
- package/resources/{post-statuses.js → feedback/post-statuses.js} +17 -3
- package/resources/feedback/post-statuses.js.map +1 -0
- package/resources/{post-statuses.mjs → feedback/post-statuses.mjs} +17 -3
- package/resources/feedback/post-statuses.mjs.map +1 -0
- package/resources/feedback/posts/index.d.mts.map +1 -0
- package/resources/feedback/posts/index.d.ts.map +1 -0
- package/resources/feedback/posts/index.js.map +1 -0
- package/resources/feedback/posts/index.mjs.map +1 -0
- package/resources/{posts → feedback/posts}/posts.d.mts +9 -9
- package/resources/feedback/posts/posts.d.mts.map +1 -0
- package/resources/{posts → feedback/posts}/posts.d.ts +9 -9
- package/resources/feedback/posts/posts.d.ts.map +1 -0
- package/resources/{posts → feedback/posts}/posts.js +9 -9
- package/resources/feedback/posts/posts.js.map +1 -0
- package/resources/{posts → feedback/posts}/posts.mjs +8 -8
- package/resources/feedback/posts/posts.mjs.map +1 -0
- package/resources/{posts → feedback/posts}/voters.d.mts +7 -7
- package/resources/feedback/posts/voters.d.mts.map +1 -0
- package/resources/{posts → feedback/posts}/voters.d.ts +7 -7
- package/resources/feedback/posts/voters.d.ts.map +1 -0
- package/resources/{posts → feedback/posts}/voters.js +6 -6
- package/resources/feedback/posts/voters.js.map +1 -0
- package/resources/{posts → feedback/posts}/voters.mjs +6 -6
- package/resources/feedback/posts/voters.mjs.map +1 -0
- package/resources/{posts.d.mts.map → feedback/posts.d.mts.map} +1 -1
- package/resources/{posts.d.ts.map → feedback/posts.d.ts.map} +1 -1
- package/resources/{posts.js → feedback/posts.js} +1 -1
- package/resources/feedback/posts.js.map +1 -0
- package/resources/feedback/posts.mjs.map +1 -0
- package/resources/feedback.d.mts +2 -0
- package/resources/feedback.d.mts.map +1 -0
- package/resources/feedback.d.ts +2 -0
- package/resources/feedback.d.ts.map +1 -0
- package/resources/feedback.js +6 -0
- package/resources/feedback.js.map +1 -0
- package/resources/feedback.mjs +3 -0
- package/resources/feedback.mjs.map +1 -0
- package/resources/index.d.mts +4 -13
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -13
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -27
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -13
- package/resources/index.mjs.map +1 -1
- package/resources/{admins.d.mts → organization/admins.d.mts} +3 -3
- package/resources/organization/admins.d.mts.map +1 -0
- package/resources/{admins.d.ts → organization/admins.d.ts} +3 -3
- package/resources/organization/admins.d.ts.map +1 -0
- package/resources/{admins.js → organization/admins.js} +3 -3
- package/resources/organization/admins.js.map +1 -0
- package/resources/{admins.mjs → organization/admins.mjs} +3 -3
- package/resources/organization/admins.mjs.map +1 -0
- package/resources/{brands.d.mts → organization/brands.d.mts} +3 -3
- package/resources/organization/brands.d.mts.map +1 -0
- package/resources/{brands.d.ts → organization/brands.d.ts} +3 -3
- package/resources/organization/brands.d.ts.map +1 -0
- package/resources/{brands.js → organization/brands.js} +3 -3
- package/resources/organization/brands.js.map +1 -0
- package/resources/{brands.mjs → organization/brands.mjs} +3 -3
- package/resources/organization/brands.mjs.map +1 -0
- package/resources/organization/index.d.mts +5 -0
- package/resources/organization/index.d.mts.map +1 -0
- package/resources/organization/index.d.ts +5 -0
- package/resources/organization/index.d.ts.map +1 -0
- package/resources/organization/index.js +13 -0
- package/resources/organization/index.js.map +1 -0
- package/resources/organization/index.mjs +6 -0
- package/resources/organization/index.mjs.map +1 -0
- package/resources/organization/organization.d.mts +18 -0
- package/resources/organization/organization.d.mts.map +1 -0
- package/resources/organization/organization.d.ts +18 -0
- package/resources/organization/organization.d.ts.map +1 -0
- package/resources/organization/organization.js +25 -0
- package/resources/organization/organization.js.map +1 -0
- package/resources/organization/organization.mjs +20 -0
- package/resources/organization/organization.mjs.map +1 -0
- package/resources/{teams.d.mts → organization/teams.d.mts} +3 -3
- package/resources/organization/teams.d.mts.map +1 -0
- package/resources/{teams.d.ts → organization/teams.d.ts} +3 -3
- package/resources/organization/teams.d.ts.map +1 -0
- package/resources/{teams.js → organization/teams.js} +3 -3
- package/resources/organization/teams.js.map +1 -0
- package/resources/{teams.mjs → organization/teams.mjs} +3 -3
- package/resources/organization/teams.mjs.map +1 -0
- package/resources/organization.d.mts +2 -0
- package/resources/organization.d.mts.map +1 -0
- package/resources/organization.d.ts +2 -0
- package/resources/organization.d.ts.map +1 -0
- package/resources/organization.js +6 -0
- package/resources/organization.js.map +1 -0
- package/resources/organization.mjs +3 -0
- package/resources/organization.mjs.map +1 -0
- package/resources/{tags.d.ts → support/conversation-tags.d.mts} +31 -27
- package/resources/support/conversation-tags.d.mts.map +1 -0
- package/resources/{tags.d.mts → support/conversation-tags.d.ts} +31 -27
- package/resources/support/conversation-tags.d.ts.map +1 -0
- package/resources/{tags.js → support/conversation-tags.js} +21 -17
- package/resources/support/conversation-tags.js.map +1 -0
- package/resources/{tags.mjs → support/conversation-tags.mjs} +19 -15
- package/resources/support/conversation-tags.mjs.map +1 -0
- package/resources/{conversations → support/conversations}/conversations.d.mts +37 -36
- package/resources/support/conversations/conversations.d.mts.map +1 -0
- package/resources/{conversations → support/conversations}/conversations.d.ts +37 -36
- package/resources/support/conversations/conversations.d.ts.map +1 -0
- package/resources/{conversations → support/conversations}/conversations.js +32 -31
- package/resources/support/conversations/conversations.js.map +1 -0
- package/resources/{conversations → support/conversations}/conversations.mjs +31 -30
- package/resources/support/conversations/conversations.mjs.map +1 -0
- package/resources/support/conversations/index.d.mts.map +1 -0
- package/resources/support/conversations/index.d.ts.map +1 -0
- package/resources/support/conversations/index.js.map +1 -0
- package/resources/support/conversations/index.mjs.map +1 -0
- package/resources/{conversations → support/conversations}/participants.d.mts +11 -9
- package/resources/support/conversations/participants.d.mts.map +1 -0
- package/resources/{conversations → support/conversations}/participants.d.ts +11 -9
- package/resources/support/conversations/participants.d.ts.map +1 -0
- package/resources/{conversations → support/conversations}/participants.js +11 -9
- package/resources/support/conversations/participants.js.map +1 -0
- package/resources/{conversations → support/conversations}/participants.mjs +11 -9
- package/resources/support/conversations/participants.mjs.map +1 -0
- package/resources/{conversations → support/conversations}/tags.d.mts +5 -5
- package/resources/support/conversations/tags.d.mts.map +1 -0
- package/resources/{conversations → support/conversations}/tags.d.ts +5 -5
- package/resources/support/conversations/tags.d.ts.map +1 -0
- package/resources/{conversations → support/conversations}/tags.js +5 -5
- package/resources/support/conversations/tags.js.map +1 -0
- package/resources/{conversations → support/conversations}/tags.mjs +5 -5
- package/resources/support/conversations/tags.mjs.map +1 -0
- package/resources/support/conversations.d.mts.map +1 -0
- package/resources/support/conversations.d.ts.map +1 -0
- package/resources/{conversations.js → support/conversations.js} +1 -1
- package/resources/support/conversations.js.map +1 -0
- package/resources/support/conversations.mjs.map +1 -0
- package/resources/support/index.d.mts +5 -0
- package/resources/support/index.d.mts.map +1 -0
- package/resources/support/index.d.ts +5 -0
- package/resources/support/index.d.ts.map +1 -0
- package/resources/support/index.js +13 -0
- package/resources/support/index.js.map +1 -0
- package/resources/support/index.mjs +6 -0
- package/resources/support/index.mjs.map +1 -0
- package/resources/support/support.d.mts +18 -0
- package/resources/support/support.d.mts.map +1 -0
- package/resources/support/support.d.ts +18 -0
- package/resources/support/support.d.ts.map +1 -0
- package/resources/support/support.js +25 -0
- package/resources/support/support.js.map +1 -0
- package/resources/support/support.mjs +20 -0
- package/resources/support/support.mjs.map +1 -0
- package/resources/{tickets → support/tickets}/categories.d.mts +10 -8
- package/resources/support/tickets/categories.d.mts.map +1 -0
- package/resources/{tickets → support/tickets}/categories.d.ts +10 -8
- package/resources/support/tickets/categories.d.ts.map +1 -0
- package/resources/{tickets → support/tickets}/categories.js +9 -7
- package/resources/support/tickets/categories.js.map +1 -0
- package/resources/{tickets → support/tickets}/categories.mjs +9 -7
- package/resources/support/tickets/categories.mjs.map +1 -0
- package/resources/{tickets → support/tickets}/custom-fields.d.mts +6 -6
- package/resources/support/tickets/custom-fields.d.mts.map +1 -0
- package/resources/{tickets → support/tickets}/custom-fields.d.ts +6 -6
- package/resources/support/tickets/custom-fields.d.ts.map +1 -0
- package/resources/{tickets → support/tickets}/custom-fields.js +5 -5
- package/resources/support/tickets/custom-fields.js.map +1 -0
- package/resources/{tickets → support/tickets}/custom-fields.mjs +5 -5
- package/resources/support/tickets/custom-fields.mjs.map +1 -0
- package/resources/support/tickets/index.d.mts.map +1 -0
- package/resources/support/tickets/index.d.ts.map +1 -0
- package/resources/support/tickets/index.js.map +1 -0
- package/resources/support/tickets/index.mjs.map +1 -0
- package/resources/{tickets → support/tickets}/statuses.d.mts +10 -8
- package/resources/support/tickets/statuses.d.mts.map +1 -0
- package/resources/{tickets → support/tickets}/statuses.d.ts +10 -8
- package/resources/support/tickets/statuses.d.ts.map +1 -0
- package/resources/{tickets → support/tickets}/statuses.js +9 -7
- package/resources/support/tickets/statuses.js.map +1 -0
- package/resources/{tickets → support/tickets}/statuses.mjs +9 -7
- package/resources/support/tickets/statuses.mjs.map +1 -0
- package/resources/{tickets → support/tickets}/tickets.d.mts +12 -11
- package/resources/support/tickets/tickets.d.mts.map +1 -0
- package/resources/{tickets → support/tickets}/tickets.d.ts +12 -11
- package/resources/support/tickets/tickets.d.ts.map +1 -0
- package/resources/{tickets → support/tickets}/tickets.js +10 -10
- package/resources/support/tickets/tickets.js.map +1 -0
- package/resources/{tickets → support/tickets}/tickets.mjs +9 -9
- package/resources/support/tickets/tickets.mjs.map +1 -0
- package/resources/support/tickets.d.mts.map +1 -0
- package/resources/support/tickets.d.ts.map +1 -0
- package/resources/{tickets.js → support/tickets.js} +1 -1
- package/resources/support/tickets.js.map +1 -0
- package/resources/support/tickets.mjs.map +1 -0
- package/resources/support.d.mts +2 -0
- package/resources/support.d.mts.map +1 -0
- package/resources/support.d.ts +2 -0
- package/resources/support.d.ts.map +1 -0
- package/resources/support.js +6 -0
- package/resources/support.js.map +1 -0
- package/resources/support.mjs +3 -0
- package/resources/support.mjs.map +1 -0
- package/resources/surveys.d.mts +1 -1
- package/resources/surveys.d.ts +1 -1
- package/resources/{companies → users/companies}/companies.d.mts +12 -11
- package/resources/users/companies/companies.d.mts.map +1 -0
- package/resources/{companies → users/companies}/companies.d.ts +12 -11
- package/resources/users/companies/companies.d.ts.map +1 -0
- package/resources/{companies → users/companies}/companies.js +13 -12
- package/resources/users/companies/companies.js.map +1 -0
- package/resources/{companies → users/companies}/companies.mjs +12 -11
- package/resources/users/companies/companies.mjs.map +1 -0
- package/resources/{companies → users/companies}/contacts.d.mts +21 -18
- package/resources/users/companies/contacts.d.mts.map +1 -0
- package/resources/{companies → users/companies}/contacts.d.ts +21 -18
- package/resources/users/companies/contacts.d.ts.map +1 -0
- package/resources/{companies → users/companies}/contacts.js +17 -14
- package/resources/users/companies/contacts.js.map +1 -0
- package/resources/{companies → users/companies}/contacts.mjs +17 -14
- package/resources/users/companies/contacts.mjs.map +1 -0
- package/resources/users/companies/index.d.mts.map +1 -0
- package/resources/users/companies/index.d.ts.map +1 -0
- package/resources/users/companies/index.js.map +1 -0
- package/resources/users/companies/index.mjs.map +1 -0
- package/resources/users/companies.d.mts.map +1 -0
- package/resources/users/companies.d.ts.map +1 -0
- package/resources/{companies.js → users/companies.js} +1 -1
- package/resources/users/companies.js.map +1 -0
- package/resources/users/companies.mjs.map +1 -0
- package/resources/{contacts → users/contacts}/by-user-id/by-user-id.d.mts +8 -7
- package/resources/users/contacts/by-user-id/by-user-id.d.mts.map +1 -0
- package/resources/{contacts → users/contacts}/by-user-id/by-user-id.d.ts +8 -7
- package/resources/users/contacts/by-user-id/by-user-id.d.ts.map +1 -0
- package/resources/{contacts → users/contacts}/by-user-id/by-user-id.js +9 -8
- package/resources/users/contacts/by-user-id/by-user-id.js.map +1 -0
- package/resources/{contacts → users/contacts}/by-user-id/by-user-id.mjs +8 -7
- package/resources/users/contacts/by-user-id/by-user-id.mjs.map +1 -0
- package/resources/{contacts → users/contacts}/by-user-id/email-preferences.d.mts +5 -5
- package/resources/users/contacts/by-user-id/email-preferences.d.mts.map +1 -0
- package/resources/{contacts → users/contacts}/by-user-id/email-preferences.d.ts +5 -5
- package/resources/users/contacts/by-user-id/email-preferences.d.ts.map +1 -0
- package/resources/{contacts → users/contacts}/by-user-id/email-preferences.js +5 -5
- package/resources/users/contacts/by-user-id/email-preferences.js.map +1 -0
- package/resources/{contacts → users/contacts}/by-user-id/email-preferences.mjs +5 -5
- package/resources/users/contacts/by-user-id/email-preferences.mjs.map +1 -0
- package/resources/users/contacts/by-user-id/index.d.mts.map +1 -0
- package/resources/users/contacts/by-user-id/index.d.ts.map +1 -0
- package/resources/users/contacts/by-user-id/index.js.map +1 -0
- package/resources/users/contacts/by-user-id/index.mjs.map +1 -0
- package/resources/users/contacts/by-user-id.d.mts.map +1 -0
- package/resources/users/contacts/by-user-id.d.ts.map +1 -0
- package/resources/{contacts → users/contacts}/by-user-id.js +1 -1
- package/resources/users/contacts/by-user-id.js.map +1 -0
- package/resources/users/contacts/by-user-id.mjs.map +1 -0
- package/resources/{contacts → users/contacts}/contacts.d.mts +10 -9
- package/resources/users/contacts/contacts.d.mts.map +1 -0
- package/resources/{contacts → users/contacts}/contacts.d.ts +10 -9
- package/resources/users/contacts/contacts.d.ts.map +1 -0
- package/resources/{contacts → users/contacts}/contacts.js +11 -10
- package/resources/users/contacts/contacts.js.map +1 -0
- package/resources/{contacts → users/contacts}/contacts.mjs +10 -9
- package/resources/users/contacts/contacts.mjs.map +1 -0
- package/resources/{contacts → users/contacts}/email-preferences.d.mts +5 -5
- package/resources/users/contacts/email-preferences.d.mts.map +1 -0
- package/resources/{contacts → users/contacts}/email-preferences.d.ts +5 -5
- package/resources/users/contacts/email-preferences.d.ts.map +1 -0
- package/resources/{contacts → users/contacts}/email-preferences.js +5 -5
- package/resources/users/contacts/email-preferences.js.map +1 -0
- package/resources/{contacts → users/contacts}/email-preferences.mjs +5 -5
- package/resources/users/contacts/email-preferences.mjs.map +1 -0
- package/resources/users/contacts/index.d.mts.map +1 -0
- package/resources/users/contacts/index.d.ts.map +1 -0
- package/resources/users/contacts/index.js.map +1 -0
- package/resources/users/contacts/index.mjs.map +1 -0
- package/resources/users/contacts.d.mts.map +1 -0
- package/resources/users/contacts.d.ts.map +1 -0
- package/resources/{contacts.js → users/contacts.js} +1 -1
- package/resources/users/contacts.js.map +1 -0
- package/resources/users/contacts.mjs.map +1 -0
- package/resources/users/index.d.mts +4 -0
- package/resources/users/index.d.mts.map +1 -0
- package/resources/users/index.d.ts +4 -0
- package/resources/users/index.d.ts.map +1 -0
- package/resources/users/index.js +11 -0
- package/resources/users/index.js.map +1 -0
- package/resources/users/index.mjs +5 -0
- package/resources/users/index.mjs.map +1 -0
- package/resources/users/users.d.mts +14 -0
- package/resources/users/users.d.mts.map +1 -0
- package/resources/users/users.d.ts +14 -0
- package/resources/users/users.d.ts.map +1 -0
- package/resources/users/users.js +21 -0
- package/resources/users/users.js.map +1 -0
- package/resources/users/users.mjs +16 -0
- package/resources/users/users.mjs.map +1 -0
- package/resources/users.d.mts +2 -0
- package/resources/users.d.mts.map +1 -0
- package/resources/users.d.ts +2 -0
- package/resources/users.d.ts.map +1 -0
- package/resources/users.js +6 -0
- package/resources/users.js.map +1 -0
- package/resources/users.mjs +3 -0
- package/resources/users.mjs.map +1 -0
- package/src/client.ts +20 -338
- package/src/resources/{boards.ts → feedback/boards.ts} +17 -5
- package/src/resources/{comments.ts → feedback/comments.ts} +12 -12
- package/src/resources/{custom-fields.ts → feedback/custom-fields.ts} +19 -5
- package/src/resources/feedback/feedback.ts +113 -0
- package/src/resources/feedback/index.ts +48 -0
- package/src/resources/{post-statuses.ts → feedback/post-statuses.ts} +19 -5
- package/src/resources/{posts → feedback/posts}/posts.ts +11 -11
- package/src/resources/{posts → feedback/posts}/voters.ts +9 -9
- package/src/resources/feedback.ts +3 -0
- package/src/resources/index.ts +4 -139
- package/src/resources/{admins.ts → organization/admins.ts} +5 -5
- package/src/resources/{brands.ts → organization/brands.ts} +5 -5
- package/src/resources/organization/index.ts +26 -0
- package/src/resources/organization/organization.ts +55 -0
- package/src/resources/{teams.ts → organization/teams.ts} +5 -5
- package/src/resources/organization.ts +3 -0
- package/src/resources/{tags.ts → support/conversation-tags.ts} +44 -34
- package/src/resources/{conversations → support/conversations}/conversations.ts +39 -38
- package/src/resources/{conversations → support/conversations}/participants.ts +13 -11
- package/src/resources/{conversations → support/conversations}/tags.ts +7 -7
- package/src/resources/support/index.ts +47 -0
- package/src/resources/support/support.ts +111 -0
- package/src/resources/{tickets → support/tickets}/categories.ts +12 -10
- package/src/resources/{tickets → support/tickets}/custom-fields.ts +8 -8
- package/src/resources/{tickets → support/tickets}/statuses.ts +12 -10
- package/src/resources/{tickets → support/tickets}/tickets.ts +14 -13
- package/src/resources/support.ts +3 -0
- package/src/resources/surveys.ts +1 -1
- package/src/resources/{companies → users/companies}/companies.ts +14 -13
- package/src/resources/{companies → users/companies}/contacts.ts +23 -20
- package/src/resources/{contacts → users/contacts}/by-user-id/by-user-id.ts +10 -9
- package/src/resources/{contacts → users/contacts}/by-user-id/email-preferences.ts +7 -7
- package/src/resources/{contacts → users/contacts}/contacts.ts +12 -11
- package/src/resources/{contacts → users/contacts}/email-preferences.ts +7 -7
- package/src/resources/users/index.ts +30 -0
- package/src/resources/users/users.ts +71 -0
- package/src/resources/users.ts +3 -0
- package/src/version.ts +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/admins.d.mts.map +0 -1
- package/resources/admins.d.ts.map +0 -1
- package/resources/admins.js.map +0 -1
- package/resources/admins.mjs.map +0 -1
- package/resources/boards.d.mts.map +0 -1
- package/resources/boards.d.ts.map +0 -1
- package/resources/boards.js.map +0 -1
- package/resources/boards.mjs.map +0 -1
- package/resources/brands.d.mts.map +0 -1
- package/resources/brands.d.ts.map +0 -1
- package/resources/brands.js.map +0 -1
- package/resources/brands.mjs.map +0 -1
- package/resources/comments.d.mts.map +0 -1
- package/resources/comments.d.ts.map +0 -1
- package/resources/comments.js.map +0 -1
- package/resources/comments.mjs.map +0 -1
- package/resources/companies/companies.d.mts.map +0 -1
- package/resources/companies/companies.d.ts.map +0 -1
- package/resources/companies/companies.js.map +0 -1
- package/resources/companies/companies.mjs.map +0 -1
- package/resources/companies/contacts.d.mts.map +0 -1
- package/resources/companies/contacts.d.ts.map +0 -1
- package/resources/companies/contacts.js.map +0 -1
- package/resources/companies/contacts.mjs.map +0 -1
- package/resources/companies/index.d.mts.map +0 -1
- package/resources/companies/index.d.ts.map +0 -1
- package/resources/companies/index.js.map +0 -1
- package/resources/companies/index.mjs.map +0 -1
- package/resources/companies.d.mts.map +0 -1
- package/resources/companies.d.ts.map +0 -1
- package/resources/companies.js.map +0 -1
- package/resources/companies.mjs.map +0 -1
- package/resources/contacts/by-user-id/by-user-id.d.mts.map +0 -1
- package/resources/contacts/by-user-id/by-user-id.d.ts.map +0 -1
- package/resources/contacts/by-user-id/by-user-id.js.map +0 -1
- package/resources/contacts/by-user-id/by-user-id.mjs.map +0 -1
- package/resources/contacts/by-user-id/email-preferences.d.mts.map +0 -1
- package/resources/contacts/by-user-id/email-preferences.d.ts.map +0 -1
- package/resources/contacts/by-user-id/email-preferences.js.map +0 -1
- package/resources/contacts/by-user-id/email-preferences.mjs.map +0 -1
- package/resources/contacts/by-user-id/index.d.mts.map +0 -1
- package/resources/contacts/by-user-id/index.d.ts.map +0 -1
- package/resources/contacts/by-user-id/index.js.map +0 -1
- package/resources/contacts/by-user-id/index.mjs.map +0 -1
- package/resources/contacts/by-user-id.d.mts.map +0 -1
- package/resources/contacts/by-user-id.d.ts.map +0 -1
- package/resources/contacts/by-user-id.js.map +0 -1
- package/resources/contacts/by-user-id.mjs.map +0 -1
- package/resources/contacts/contacts.d.mts.map +0 -1
- package/resources/contacts/contacts.d.ts.map +0 -1
- package/resources/contacts/contacts.js.map +0 -1
- package/resources/contacts/contacts.mjs.map +0 -1
- package/resources/contacts/email-preferences.d.mts.map +0 -1
- package/resources/contacts/email-preferences.d.ts.map +0 -1
- package/resources/contacts/email-preferences.js.map +0 -1
- package/resources/contacts/email-preferences.mjs.map +0 -1
- package/resources/contacts/index.d.mts.map +0 -1
- package/resources/contacts/index.d.ts.map +0 -1
- package/resources/contacts/index.js.map +0 -1
- package/resources/contacts/index.mjs.map +0 -1
- package/resources/contacts.d.mts.map +0 -1
- package/resources/contacts.d.ts.map +0 -1
- package/resources/contacts.js.map +0 -1
- package/resources/contacts.mjs.map +0 -1
- package/resources/conversations/conversations.d.mts.map +0 -1
- package/resources/conversations/conversations.d.ts.map +0 -1
- package/resources/conversations/conversations.js.map +0 -1
- package/resources/conversations/conversations.mjs.map +0 -1
- package/resources/conversations/index.d.mts.map +0 -1
- package/resources/conversations/index.d.ts.map +0 -1
- package/resources/conversations/index.js.map +0 -1
- package/resources/conversations/index.mjs.map +0 -1
- package/resources/conversations/participants.d.mts.map +0 -1
- package/resources/conversations/participants.d.ts.map +0 -1
- package/resources/conversations/participants.js.map +0 -1
- package/resources/conversations/participants.mjs.map +0 -1
- package/resources/conversations/tags.d.mts.map +0 -1
- package/resources/conversations/tags.d.ts.map +0 -1
- package/resources/conversations/tags.js.map +0 -1
- package/resources/conversations/tags.mjs.map +0 -1
- package/resources/conversations.d.mts.map +0 -1
- package/resources/conversations.d.ts.map +0 -1
- package/resources/conversations.js.map +0 -1
- package/resources/conversations.mjs.map +0 -1
- package/resources/custom-fields.d.mts.map +0 -1
- package/resources/custom-fields.d.ts.map +0 -1
- package/resources/custom-fields.js.map +0 -1
- package/resources/custom-fields.mjs.map +0 -1
- package/resources/post-statuses.d.mts.map +0 -1
- package/resources/post-statuses.d.ts.map +0 -1
- package/resources/post-statuses.js.map +0 -1
- package/resources/post-statuses.mjs.map +0 -1
- package/resources/posts/index.d.mts.map +0 -1
- package/resources/posts/index.d.ts.map +0 -1
- package/resources/posts/index.js.map +0 -1
- package/resources/posts/index.mjs.map +0 -1
- package/resources/posts/posts.d.mts.map +0 -1
- package/resources/posts/posts.d.ts.map +0 -1
- package/resources/posts/posts.js.map +0 -1
- package/resources/posts/posts.mjs.map +0 -1
- package/resources/posts/voters.d.mts.map +0 -1
- package/resources/posts/voters.d.ts.map +0 -1
- package/resources/posts/voters.js.map +0 -1
- package/resources/posts/voters.mjs.map +0 -1
- package/resources/posts.js.map +0 -1
- package/resources/posts.mjs.map +0 -1
- package/resources/tags.d.mts.map +0 -1
- package/resources/tags.d.ts.map +0 -1
- package/resources/tags.js.map +0 -1
- package/resources/tags.mjs.map +0 -1
- package/resources/teams.d.mts.map +0 -1
- package/resources/teams.d.ts.map +0 -1
- package/resources/teams.js.map +0 -1
- package/resources/teams.mjs.map +0 -1
- package/resources/tickets/categories.d.mts.map +0 -1
- package/resources/tickets/categories.d.ts.map +0 -1
- package/resources/tickets/categories.js.map +0 -1
- package/resources/tickets/categories.mjs.map +0 -1
- package/resources/tickets/custom-fields.d.mts.map +0 -1
- package/resources/tickets/custom-fields.d.ts.map +0 -1
- package/resources/tickets/custom-fields.js.map +0 -1
- package/resources/tickets/custom-fields.mjs.map +0 -1
- package/resources/tickets/index.d.mts.map +0 -1
- package/resources/tickets/index.d.ts.map +0 -1
- package/resources/tickets/index.js.map +0 -1
- package/resources/tickets/index.mjs.map +0 -1
- package/resources/tickets/statuses.d.mts.map +0 -1
- package/resources/tickets/statuses.d.ts.map +0 -1
- package/resources/tickets/statuses.js.map +0 -1
- package/resources/tickets/statuses.mjs.map +0 -1
- package/resources/tickets/tickets.d.mts.map +0 -1
- package/resources/tickets/tickets.d.ts.map +0 -1
- package/resources/tickets/tickets.js.map +0 -1
- package/resources/tickets/tickets.mjs.map +0 -1
- package/resources/tickets.d.mts.map +0 -1
- package/resources/tickets.d.ts.map +0 -1
- package/resources/tickets.js.map +0 -1
- package/resources/tickets.mjs.map +0 -1
- /package/resources/{posts → feedback/posts}/index.d.mts +0 -0
- /package/resources/{posts → feedback/posts}/index.d.ts +0 -0
- /package/resources/{posts → feedback/posts}/index.js +0 -0
- /package/resources/{posts → feedback/posts}/index.mjs +0 -0
- /package/resources/{posts.d.mts → feedback/posts.d.mts} +0 -0
- /package/resources/{posts.d.ts → feedback/posts.d.ts} +0 -0
- /package/resources/{posts.mjs → feedback/posts.mjs} +0 -0
- /package/resources/{conversations → support/conversations}/index.d.mts +0 -0
- /package/resources/{conversations → support/conversations}/index.d.ts +0 -0
- /package/resources/{conversations → support/conversations}/index.js +0 -0
- /package/resources/{conversations → support/conversations}/index.mjs +0 -0
- /package/resources/{conversations.d.mts → support/conversations.d.mts} +0 -0
- /package/resources/{conversations.d.ts → support/conversations.d.ts} +0 -0
- /package/resources/{conversations.mjs → support/conversations.mjs} +0 -0
- /package/resources/{tickets → support/tickets}/index.d.mts +0 -0
- /package/resources/{tickets → support/tickets}/index.d.ts +0 -0
- /package/resources/{tickets → support/tickets}/index.js +0 -0
- /package/resources/{tickets → support/tickets}/index.mjs +0 -0
- /package/resources/{tickets.d.mts → support/tickets.d.mts} +0 -0
- /package/resources/{tickets.d.ts → support/tickets.d.ts} +0 -0
- /package/resources/{tickets.mjs → support/tickets.mjs} +0 -0
- /package/resources/{companies → users/companies}/index.d.mts +0 -0
- /package/resources/{companies → users/companies}/index.d.ts +0 -0
- /package/resources/{companies → users/companies}/index.js +0 -0
- /package/resources/{companies → users/companies}/index.mjs +0 -0
- /package/resources/{companies.d.mts → users/companies.d.mts} +0 -0
- /package/resources/{companies.d.ts → users/companies.d.ts} +0 -0
- /package/resources/{companies.mjs → users/companies.mjs} +0 -0
- /package/resources/{contacts → users/contacts}/by-user-id/index.d.mts +0 -0
- /package/resources/{contacts → users/contacts}/by-user-id/index.d.ts +0 -0
- /package/resources/{contacts → users/contacts}/by-user-id/index.js +0 -0
- /package/resources/{contacts → users/contacts}/by-user-id/index.mjs +0 -0
- /package/resources/{contacts → users/contacts}/by-user-id.d.mts +0 -0
- /package/resources/{contacts → users/contacts}/by-user-id.d.ts +0 -0
- /package/resources/{contacts → users/contacts}/by-user-id.mjs +0 -0
- /package/resources/{contacts → users/contacts}/index.d.mts +0 -0
- /package/resources/{contacts → users/contacts}/index.d.ts +0 -0
- /package/resources/{contacts → users/contacts}/index.js +0 -0
- /package/resources/{contacts → users/contacts}/index.mjs +0 -0
- /package/resources/{contacts.d.mts → users/contacts.d.mts} +0 -0
- /package/resources/{contacts.d.ts → users/contacts.d.ts} +0 -0
- /package/resources/{contacts.mjs → users/contacts.mjs} +0 -0
- /package/src/resources/{posts → feedback/posts}/index.ts +0 -0
- /package/src/resources/{posts.ts → feedback/posts.ts} +0 -0
- /package/src/resources/{conversations → support/conversations}/index.ts +0 -0
- /package/src/resources/{conversations.ts → support/conversations.ts} +0 -0
- /package/src/resources/{tickets → support/tickets}/index.ts +0 -0
- /package/src/resources/{tickets.ts → support/tickets.ts} +0 -0
- /package/src/resources/{companies → users/companies}/index.ts +0 -0
- /package/src/resources/{companies.ts → users/companies.ts} +0 -0
- /package/src/resources/{contacts → users/contacts}/by-user-id/index.ts +0 -0
- /package/src/resources/{contacts → users/contacts}/by-user-id.ts +0 -0
- /package/src/resources/{contacts → users/contacts}/index.ts +0 -0
- /package/src/resources/{contacts.ts → users/contacts.ts} +0 -0
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
4
|
-
import { APIPromise } from '
|
|
5
|
-
import { buildHeaders } from '
|
|
6
|
-
import { RequestOptions } from '
|
|
7
|
-
import { path } from '
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
import { path } from '../../internal/utils/path';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Conversation tags let you organize, filter, and automate around inbox conversations. Use these endpoints to list, look up, create, rename, and delete workspace conversation tags.
|
|
11
11
|
*/
|
|
12
|
-
export class
|
|
12
|
+
export class ConversationTags extends APIResource {
|
|
13
13
|
/**
|
|
14
14
|
* Returns a single conversation tag by its Featurebase tag ID. Archived tags can
|
|
15
15
|
* still be retrieved directly by ID, while permanently deleted tags return `404`.
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```ts
|
|
19
|
-
* const conversationTag =
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* const conversationTag =
|
|
20
|
+
* await client.support.conversationTags.retrieve(
|
|
21
|
+
* '67ec1234abcd5678ef901234',
|
|
22
|
+
* );
|
|
22
23
|
* ```
|
|
23
24
|
*/
|
|
24
25
|
retrieve(
|
|
25
26
|
id: string,
|
|
26
|
-
params:
|
|
27
|
+
params: ConversationTagRetrieveParams | null | undefined = {},
|
|
27
28
|
options?: RequestOptions,
|
|
28
29
|
): APIPromise<ConversationTag> {
|
|
29
30
|
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
@@ -43,10 +44,14 @@ export class Tags extends APIResource {
|
|
|
43
44
|
*
|
|
44
45
|
* @example
|
|
45
46
|
* ```ts
|
|
46
|
-
* const
|
|
47
|
+
* const conversationTags =
|
|
48
|
+
* await client.support.conversationTags.list();
|
|
47
49
|
* ```
|
|
48
50
|
*/
|
|
49
|
-
list(
|
|
51
|
+
list(
|
|
52
|
+
params: ConversationTagListParams | null | undefined = {},
|
|
53
|
+
options?: RequestOptions,
|
|
54
|
+
): APIPromise<ConversationTagListResponse> {
|
|
50
55
|
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
51
56
|
return this._client.get('/v2/tags', {
|
|
52
57
|
...options,
|
|
@@ -64,16 +69,17 @@ export class Tags extends APIResource {
|
|
|
64
69
|
*
|
|
65
70
|
* @example
|
|
66
71
|
* ```ts
|
|
67
|
-
* const
|
|
68
|
-
*
|
|
69
|
-
*
|
|
72
|
+
* const conversationTag =
|
|
73
|
+
* await client.support.conversationTags.delete(
|
|
74
|
+
* '67ec1234abcd5678ef901234',
|
|
75
|
+
* );
|
|
70
76
|
* ```
|
|
71
77
|
*/
|
|
72
78
|
delete(
|
|
73
79
|
id: string,
|
|
74
|
-
params:
|
|
80
|
+
params: ConversationTagDeleteParams | null | undefined = {},
|
|
75
81
|
options?: RequestOptions,
|
|
76
|
-
): APIPromise<
|
|
82
|
+
): APIPromise<ConversationTagDeleteResponse> {
|
|
77
83
|
const { 'Featurebase-Version': featurebaseVersion, ...body } = params ?? {};
|
|
78
84
|
return this._client.delete(path`/v2/tags/${id}`, {
|
|
79
85
|
body,
|
|
@@ -91,12 +97,16 @@ export class Tags extends APIResource {
|
|
|
91
97
|
*
|
|
92
98
|
* @example
|
|
93
99
|
* ```ts
|
|
94
|
-
* const conversationTag =
|
|
95
|
-
*
|
|
96
|
-
*
|
|
100
|
+
* const conversationTag =
|
|
101
|
+
* await client.support.conversationTags.createOrRename({
|
|
102
|
+
* name: 'Churn',
|
|
103
|
+
* });
|
|
97
104
|
* ```
|
|
98
105
|
*/
|
|
99
|
-
createOrRename(
|
|
106
|
+
createOrRename(
|
|
107
|
+
params: ConversationTagCreateOrRenameParams,
|
|
108
|
+
options?: RequestOptions,
|
|
109
|
+
): APIPromise<ConversationTag> {
|
|
100
110
|
const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
|
|
101
111
|
return this._client.post('/v2/tags', {
|
|
102
112
|
body,
|
|
@@ -126,7 +136,7 @@ export interface ConversationTag {
|
|
|
126
136
|
type: 'tag';
|
|
127
137
|
}
|
|
128
138
|
|
|
129
|
-
export interface
|
|
139
|
+
export interface ConversationTagListResponse {
|
|
130
140
|
/**
|
|
131
141
|
* Array containing the actual response elements
|
|
132
142
|
*/
|
|
@@ -143,7 +153,7 @@ export interface TagListResponse {
|
|
|
143
153
|
object: 'list';
|
|
144
154
|
}
|
|
145
155
|
|
|
146
|
-
export interface
|
|
156
|
+
export interface ConversationTagDeleteResponse {
|
|
147
157
|
/**
|
|
148
158
|
* Unique tag identifier
|
|
149
159
|
*/
|
|
@@ -160,7 +170,7 @@ export interface TagDeleteResponse {
|
|
|
160
170
|
object: 'tag';
|
|
161
171
|
}
|
|
162
172
|
|
|
163
|
-
export interface
|
|
173
|
+
export interface ConversationTagRetrieveParams {
|
|
164
174
|
/**
|
|
165
175
|
* API version for this request. Defaults to your organization's configured API
|
|
166
176
|
* version if not specified.
|
|
@@ -168,7 +178,7 @@ export interface TagRetrieveParams {
|
|
|
168
178
|
'Featurebase-Version'?: string;
|
|
169
179
|
}
|
|
170
180
|
|
|
171
|
-
export interface
|
|
181
|
+
export interface ConversationTagListParams {
|
|
172
182
|
/**
|
|
173
183
|
* API version for this request. Defaults to your organization's configured API
|
|
174
184
|
* version if not specified.
|
|
@@ -176,7 +186,7 @@ export interface TagListParams {
|
|
|
176
186
|
'Featurebase-Version'?: string;
|
|
177
187
|
}
|
|
178
188
|
|
|
179
|
-
export interface
|
|
189
|
+
export interface ConversationTagDeleteParams {
|
|
180
190
|
/**
|
|
181
191
|
* Body param: Optional admin ID for actor attribution and permission checks.
|
|
182
192
|
*/
|
|
@@ -189,7 +199,7 @@ export interface TagDeleteParams {
|
|
|
189
199
|
'Featurebase-Version'?: string;
|
|
190
200
|
}
|
|
191
201
|
|
|
192
|
-
export interface
|
|
202
|
+
export interface ConversationTagCreateOrRenameParams {
|
|
193
203
|
/**
|
|
194
204
|
* Body param: Tag name
|
|
195
205
|
*/
|
|
@@ -213,14 +223,14 @@ export interface TagCreateOrRenameParams {
|
|
|
213
223
|
'Featurebase-Version'?: string;
|
|
214
224
|
}
|
|
215
225
|
|
|
216
|
-
export declare namespace
|
|
226
|
+
export declare namespace ConversationTags {
|
|
217
227
|
export {
|
|
218
228
|
type ConversationTag as ConversationTag,
|
|
219
|
-
type
|
|
220
|
-
type
|
|
221
|
-
type
|
|
222
|
-
type
|
|
223
|
-
type
|
|
224
|
-
type
|
|
229
|
+
type ConversationTagListResponse as ConversationTagListResponse,
|
|
230
|
+
type ConversationTagDeleteResponse as ConversationTagDeleteResponse,
|
|
231
|
+
type ConversationTagRetrieveParams as ConversationTagRetrieveParams,
|
|
232
|
+
type ConversationTagListParams as ConversationTagListParams,
|
|
233
|
+
type ConversationTagDeleteParams as ConversationTagDeleteParams,
|
|
234
|
+
type ConversationTagCreateOrRenameParams as ConversationTagCreateOrRenameParams,
|
|
225
235
|
};
|
|
226
236
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as ConversationsAPI from './conversations';
|
|
5
|
-
import * as
|
|
5
|
+
import * as ConversationTagsAPI from '../conversation-tags';
|
|
6
6
|
import * as ParticipantsAPI from './participants';
|
|
7
7
|
import { ParticipantAddParams, ParticipantRemoveParams, Participants } from './participants';
|
|
8
|
-
import * as
|
|
8
|
+
import * as TagsAPI from './tags';
|
|
9
9
|
import {
|
|
10
10
|
AttachedConversationTag,
|
|
11
11
|
ConversationTagMutationActor,
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
TagDetachParams,
|
|
14
14
|
Tags,
|
|
15
15
|
} from './tags';
|
|
16
|
-
import { APIPromise } from '
|
|
17
|
-
import { buildHeaders } from '
|
|
18
|
-
import { RequestOptions } from '
|
|
19
|
-
import { path } from '
|
|
16
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
17
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
18
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
19
|
+
import { path } from '../../../internal/utils/path';
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Conversations are messenger/inbox conversations in your Featurebase organization. Use this endpoint to list and retrieve conversation information.
|
|
23
23
|
*/
|
|
24
24
|
export class Conversations extends APIResource {
|
|
25
|
-
tags:
|
|
25
|
+
tags: TagsAPI.Tags = new TagsAPI.Tags(this._client);
|
|
26
26
|
participants: ParticipantsAPI.Participants = new ParticipantsAPI.Participants(this._client);
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -148,11 +148,15 @@ export class Conversations extends APIResource {
|
|
|
148
148
|
*
|
|
149
149
|
* @example
|
|
150
150
|
* ```ts
|
|
151
|
-
* const conversation =
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
151
|
+
* const conversation =
|
|
152
|
+
* await client.support.conversations.create({
|
|
153
|
+
* bodyMarkdown:
|
|
154
|
+
* 'Hello, I have a question about your product.\n\n',
|
|
155
|
+
* from: {
|
|
156
|
+
* id: '676f0f6765bdaa7d7d760f88',
|
|
157
|
+
* type: 'contact',
|
|
158
|
+
* },
|
|
159
|
+
* });
|
|
156
160
|
* ```
|
|
157
161
|
*/
|
|
158
162
|
create(params: ConversationCreateParams, options?: RequestOptions): APIPromise<Conversation> {
|
|
@@ -266,9 +270,8 @@ export class Conversations extends APIResource {
|
|
|
266
270
|
*
|
|
267
271
|
* @example
|
|
268
272
|
* ```ts
|
|
269
|
-
* const conversation =
|
|
270
|
-
* '12345'
|
|
271
|
-
* );
|
|
273
|
+
* const conversation =
|
|
274
|
+
* await client.support.conversations.retrieve('12345');
|
|
272
275
|
* ```
|
|
273
276
|
*/
|
|
274
277
|
retrieve(
|
|
@@ -409,9 +412,8 @@ export class Conversations extends APIResource {
|
|
|
409
412
|
*
|
|
410
413
|
* @example
|
|
411
414
|
* ```ts
|
|
412
|
-
* const conversation =
|
|
413
|
-
* '12345'
|
|
414
|
-
* );
|
|
415
|
+
* const conversation =
|
|
416
|
+
* await client.support.conversations.update('12345');
|
|
415
417
|
* ```
|
|
416
418
|
*/
|
|
417
419
|
update(id: string, params: ConversationUpdateParams, options?: RequestOptions): APIPromise<Conversation> {
|
|
@@ -490,7 +492,8 @@ export class Conversations extends APIResource {
|
|
|
490
492
|
*
|
|
491
493
|
* @example
|
|
492
494
|
* ```ts
|
|
493
|
-
* const conversations =
|
|
495
|
+
* const conversations =
|
|
496
|
+
* await client.support.conversations.list();
|
|
494
497
|
* ```
|
|
495
498
|
*/
|
|
496
499
|
list(
|
|
@@ -538,9 +541,8 @@ export class Conversations extends APIResource {
|
|
|
538
541
|
*
|
|
539
542
|
* @example
|
|
540
543
|
* ```ts
|
|
541
|
-
* const conversation =
|
|
542
|
-
* '12345'
|
|
543
|
-
* );
|
|
544
|
+
* const conversation =
|
|
545
|
+
* await client.support.conversations.delete('12345');
|
|
544
546
|
* ```
|
|
545
547
|
*/
|
|
546
548
|
delete(
|
|
@@ -628,11 +630,12 @@ export class Conversations extends APIResource {
|
|
|
628
630
|
*
|
|
629
631
|
* @example
|
|
630
632
|
* ```ts
|
|
631
|
-
* const conversation =
|
|
632
|
-
*
|
|
633
|
-
*
|
|
634
|
-
*
|
|
635
|
-
*
|
|
633
|
+
* const conversation =
|
|
634
|
+
* await client.support.conversations.redact({
|
|
635
|
+
* conversationId: '12345',
|
|
636
|
+
* conversationPartId: '67890',
|
|
637
|
+
* type: 'conversation_part',
|
|
638
|
+
* });
|
|
636
639
|
* ```
|
|
637
640
|
*/
|
|
638
641
|
redact(params: ConversationRedactParams, options?: RequestOptions): APIPromise<Conversation> {
|
|
@@ -748,14 +751,12 @@ export class Conversations extends APIResource {
|
|
|
748
751
|
*
|
|
749
752
|
* @example
|
|
750
753
|
* ```ts
|
|
751
|
-
* const conversationPart =
|
|
752
|
-
* '12345',
|
|
753
|
-
* {
|
|
754
|
+
* const conversationPart =
|
|
755
|
+
* await client.support.conversations.reply('12345', {
|
|
754
756
|
* bodyMarkdown: 'Thank you for your help!',
|
|
755
757
|
* messageType: 'reply',
|
|
756
758
|
* type: 'contact',
|
|
757
|
-
* }
|
|
758
|
-
* );
|
|
759
|
+
* });
|
|
759
760
|
* ```
|
|
760
761
|
*/
|
|
761
762
|
reply(id: string, params: ConversationReplyParams, options?: RequestOptions): APIPromise<ConversationPart> {
|
|
@@ -846,7 +847,7 @@ export interface Conversation {
|
|
|
846
847
|
/**
|
|
847
848
|
* Current tags applied anywhere in this conversation
|
|
848
849
|
*/
|
|
849
|
-
tags: Array<
|
|
850
|
+
tags: Array<ConversationTagsAPI.ConversationTag>;
|
|
850
851
|
|
|
851
852
|
/**
|
|
852
853
|
* ID of the assigned team
|
|
@@ -1988,7 +1989,7 @@ export namespace ConversationPart {
|
|
|
1988
1989
|
/**
|
|
1989
1990
|
* Actor that applied the tag
|
|
1990
1991
|
*/
|
|
1991
|
-
actor?:
|
|
1992
|
+
actor?: TagsAPI.ConversationTagMutationActor;
|
|
1992
1993
|
|
|
1993
1994
|
/**
|
|
1994
1995
|
* Tag name at the time of the event or the best available current display name
|
|
@@ -2215,7 +2216,7 @@ export interface ConversationTagApplication {
|
|
|
2215
2216
|
/**
|
|
2216
2217
|
* Actor that applied the tag
|
|
2217
2218
|
*/
|
|
2218
|
-
appliedBy?:
|
|
2219
|
+
appliedBy?: TagsAPI.ConversationTagMutationActor;
|
|
2219
2220
|
|
|
2220
2221
|
/**
|
|
2221
2222
|
* ISO timestamp when the tag was removed from this reply, if it was removed
|
|
@@ -2225,12 +2226,12 @@ export interface ConversationTagApplication {
|
|
|
2225
2226
|
/**
|
|
2226
2227
|
* Actor that applied the tag
|
|
2227
2228
|
*/
|
|
2228
|
-
removedBy?:
|
|
2229
|
+
removedBy?: TagsAPI.ConversationTagMutationActor;
|
|
2229
2230
|
|
|
2230
2231
|
/**
|
|
2231
2232
|
* Resolved tag object when the tag still exists in the shared workspace catalog
|
|
2232
2233
|
*/
|
|
2233
|
-
tag?:
|
|
2234
|
+
tag?: ConversationTagsAPI.ConversationTag;
|
|
2234
2235
|
}
|
|
2235
2236
|
|
|
2236
2237
|
export interface CsatEmailDelivery {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as ConversationsAPI from './conversations';
|
|
5
|
-
import { APIPromise } from '
|
|
6
|
-
import { buildHeaders } from '
|
|
7
|
-
import { RequestOptions } from '
|
|
8
|
-
import { path } from '
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
7
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
8
|
+
import { path } from '../../../internal/utils/path';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Conversations are messenger/inbox conversations in your Featurebase organization. Use this endpoint to list and retrieve conversation information.
|
|
@@ -96,9 +96,10 @@ export class Participants extends APIResource {
|
|
|
96
96
|
* @example
|
|
97
97
|
* ```ts
|
|
98
98
|
* const conversation =
|
|
99
|
-
* await client.conversations.participants.add(
|
|
100
|
-
*
|
|
101
|
-
*
|
|
99
|
+
* await client.support.conversations.participants.add(
|
|
100
|
+
* '12345',
|
|
101
|
+
* { participant: {} },
|
|
102
|
+
* );
|
|
102
103
|
* ```
|
|
103
104
|
*/
|
|
104
105
|
add(
|
|
@@ -171,9 +172,10 @@ export class Participants extends APIResource {
|
|
|
171
172
|
* @example
|
|
172
173
|
* ```ts
|
|
173
174
|
* const conversation =
|
|
174
|
-
* await client.conversations.participants.remove(
|
|
175
|
-
*
|
|
176
|
-
*
|
|
175
|
+
* await client.support.conversations.participants.remove(
|
|
176
|
+
* '12345',
|
|
177
|
+
* { id: '676f0f6765bdaa7d7d760f88' },
|
|
178
|
+
* );
|
|
177
179
|
* ```
|
|
178
180
|
*/
|
|
179
181
|
remove(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
4
|
-
import { APIPromise } from '
|
|
5
|
-
import { buildHeaders } from '
|
|
6
|
-
import { RequestOptions } from '
|
|
7
|
-
import { path } from '
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { path } from '../../../internal/utils/path';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Conversations are messenger/inbox conversations in your Featurebase organization. Use this endpoint to list and retrieve conversation information.
|
|
@@ -54,7 +54,7 @@ export class Tags extends APIResource {
|
|
|
54
54
|
* @example
|
|
55
55
|
* ```ts
|
|
56
56
|
* const attachedConversationTag =
|
|
57
|
-
* await client.conversations.tags.attach('12345', {
|
|
57
|
+
* await client.support.conversations.tags.attach('12345', {
|
|
58
58
|
* actingAdminId: '507f1f77bcf86cd799439011',
|
|
59
59
|
* tagId: '67ec1234abcd5678ef901234',
|
|
60
60
|
* });
|
|
@@ -115,7 +115,7 @@ export class Tags extends APIResource {
|
|
|
115
115
|
* @example
|
|
116
116
|
* ```ts
|
|
117
117
|
* const attachedConversationTag =
|
|
118
|
-
* await client.conversations.tags.detach(
|
|
118
|
+
* await client.support.conversations.tags.detach(
|
|
119
119
|
* '67ec1234abcd5678ef901234',
|
|
120
120
|
* {
|
|
121
121
|
* id: '12345',
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
ConversationTags,
|
|
5
|
+
type ConversationTag,
|
|
6
|
+
type ConversationTagListResponse,
|
|
7
|
+
type ConversationTagDeleteResponse,
|
|
8
|
+
type ConversationTagRetrieveParams,
|
|
9
|
+
type ConversationTagListParams,
|
|
10
|
+
type ConversationTagDeleteParams,
|
|
11
|
+
type ConversationTagCreateOrRenameParams,
|
|
12
|
+
} from './conversation-tags';
|
|
13
|
+
export {
|
|
14
|
+
Conversations,
|
|
15
|
+
type Conversation,
|
|
16
|
+
type ConversationPart,
|
|
17
|
+
type ConversationPartAuthor,
|
|
18
|
+
type ConversationParticipant,
|
|
19
|
+
type ConversationTagApplication,
|
|
20
|
+
type CsatEmailDelivery,
|
|
21
|
+
type CsatRatedAgent,
|
|
22
|
+
type CsatWorkflowLink,
|
|
23
|
+
type EmailRecipients,
|
|
24
|
+
type ConversationListResponse,
|
|
25
|
+
type ConversationDeleteResponse,
|
|
26
|
+
type ConversationCreateParams,
|
|
27
|
+
type ConversationRetrieveParams,
|
|
28
|
+
type ConversationUpdateParams,
|
|
29
|
+
type ConversationListParams,
|
|
30
|
+
type ConversationDeleteParams,
|
|
31
|
+
type ConversationRedactParams,
|
|
32
|
+
type ConversationReplyParams,
|
|
33
|
+
} from './conversations/index';
|
|
34
|
+
export { Support } from './support';
|
|
35
|
+
export {
|
|
36
|
+
Tickets,
|
|
37
|
+
type AuthorInput,
|
|
38
|
+
type Ticket,
|
|
39
|
+
type TicketListResponse,
|
|
40
|
+
type TicketDeleteResponse,
|
|
41
|
+
type TicketCreateParams,
|
|
42
|
+
type TicketRetrieveParams,
|
|
43
|
+
type TicketUpdateParams,
|
|
44
|
+
type TicketListParams,
|
|
45
|
+
type TicketDeleteParams,
|
|
46
|
+
type TicketReplyParams,
|
|
47
|
+
} from './tickets/index';
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as ConversationTagsAPI from './conversation-tags';
|
|
5
|
+
import {
|
|
6
|
+
ConversationTag,
|
|
7
|
+
ConversationTagCreateOrRenameParams,
|
|
8
|
+
ConversationTagDeleteParams,
|
|
9
|
+
ConversationTagDeleteResponse,
|
|
10
|
+
ConversationTagListParams,
|
|
11
|
+
ConversationTagListResponse,
|
|
12
|
+
ConversationTagRetrieveParams,
|
|
13
|
+
ConversationTags,
|
|
14
|
+
} from './conversation-tags';
|
|
15
|
+
import * as ConversationsAPI from './conversations/conversations';
|
|
16
|
+
import {
|
|
17
|
+
Conversation,
|
|
18
|
+
ConversationCreateParams,
|
|
19
|
+
ConversationDeleteParams,
|
|
20
|
+
ConversationDeleteResponse,
|
|
21
|
+
ConversationListParams,
|
|
22
|
+
ConversationListResponse,
|
|
23
|
+
ConversationPart,
|
|
24
|
+
ConversationPartAuthor,
|
|
25
|
+
ConversationParticipant,
|
|
26
|
+
ConversationRedactParams,
|
|
27
|
+
ConversationReplyParams,
|
|
28
|
+
ConversationRetrieveParams,
|
|
29
|
+
ConversationTagApplication,
|
|
30
|
+
ConversationUpdateParams,
|
|
31
|
+
Conversations,
|
|
32
|
+
CsatEmailDelivery,
|
|
33
|
+
CsatRatedAgent,
|
|
34
|
+
CsatWorkflowLink,
|
|
35
|
+
EmailRecipients,
|
|
36
|
+
} from './conversations/conversations';
|
|
37
|
+
import * as TicketsAPI from './tickets/tickets';
|
|
38
|
+
import {
|
|
39
|
+
AuthorInput,
|
|
40
|
+
Ticket,
|
|
41
|
+
TicketCreateParams,
|
|
42
|
+
TicketDeleteParams,
|
|
43
|
+
TicketDeleteResponse,
|
|
44
|
+
TicketListParams,
|
|
45
|
+
TicketListResponse,
|
|
46
|
+
TicketReplyParams,
|
|
47
|
+
TicketRetrieveParams,
|
|
48
|
+
TicketUpdateParams,
|
|
49
|
+
Tickets,
|
|
50
|
+
} from './tickets/tickets';
|
|
51
|
+
|
|
52
|
+
export class Support extends APIResource {
|
|
53
|
+
conversations: ConversationsAPI.Conversations = new ConversationsAPI.Conversations(this._client);
|
|
54
|
+
conversationTags: ConversationTagsAPI.ConversationTags = new ConversationTagsAPI.ConversationTags(
|
|
55
|
+
this._client,
|
|
56
|
+
);
|
|
57
|
+
tickets: TicketsAPI.Tickets = new TicketsAPI.Tickets(this._client);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
Support.Conversations = Conversations;
|
|
61
|
+
Support.ConversationTags = ConversationTags;
|
|
62
|
+
Support.Tickets = Tickets;
|
|
63
|
+
|
|
64
|
+
export declare namespace Support {
|
|
65
|
+
export {
|
|
66
|
+
Conversations as Conversations,
|
|
67
|
+
type Conversation as Conversation,
|
|
68
|
+
type ConversationPart as ConversationPart,
|
|
69
|
+
type ConversationPartAuthor as ConversationPartAuthor,
|
|
70
|
+
type ConversationParticipant as ConversationParticipant,
|
|
71
|
+
type ConversationTagApplication as ConversationTagApplication,
|
|
72
|
+
type CsatEmailDelivery as CsatEmailDelivery,
|
|
73
|
+
type CsatRatedAgent as CsatRatedAgent,
|
|
74
|
+
type CsatWorkflowLink as CsatWorkflowLink,
|
|
75
|
+
type EmailRecipients as EmailRecipients,
|
|
76
|
+
type ConversationListResponse as ConversationListResponse,
|
|
77
|
+
type ConversationDeleteResponse as ConversationDeleteResponse,
|
|
78
|
+
type ConversationCreateParams as ConversationCreateParams,
|
|
79
|
+
type ConversationRetrieveParams as ConversationRetrieveParams,
|
|
80
|
+
type ConversationUpdateParams as ConversationUpdateParams,
|
|
81
|
+
type ConversationListParams as ConversationListParams,
|
|
82
|
+
type ConversationDeleteParams as ConversationDeleteParams,
|
|
83
|
+
type ConversationRedactParams as ConversationRedactParams,
|
|
84
|
+
type ConversationReplyParams as ConversationReplyParams,
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export {
|
|
88
|
+
ConversationTags as ConversationTags,
|
|
89
|
+
type ConversationTag as ConversationTag,
|
|
90
|
+
type ConversationTagListResponse as ConversationTagListResponse,
|
|
91
|
+
type ConversationTagDeleteResponse as ConversationTagDeleteResponse,
|
|
92
|
+
type ConversationTagRetrieveParams as ConversationTagRetrieveParams,
|
|
93
|
+
type ConversationTagListParams as ConversationTagListParams,
|
|
94
|
+
type ConversationTagDeleteParams as ConversationTagDeleteParams,
|
|
95
|
+
type ConversationTagCreateOrRenameParams as ConversationTagCreateOrRenameParams,
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export {
|
|
99
|
+
Tickets as Tickets,
|
|
100
|
+
type AuthorInput as AuthorInput,
|
|
101
|
+
type Ticket as Ticket,
|
|
102
|
+
type TicketListResponse as TicketListResponse,
|
|
103
|
+
type TicketDeleteResponse as TicketDeleteResponse,
|
|
104
|
+
type TicketCreateParams as TicketCreateParams,
|
|
105
|
+
type TicketRetrieveParams as TicketRetrieveParams,
|
|
106
|
+
type TicketUpdateParams as TicketUpdateParams,
|
|
107
|
+
type TicketListParams as TicketListParams,
|
|
108
|
+
type TicketDeleteParams as TicketDeleteParams,
|
|
109
|
+
type TicketReplyParams as TicketReplyParams,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
4
|
-
import * as BoardsAPI from '
|
|
5
|
-
import { APIPromise } from '
|
|
6
|
-
import { buildHeaders } from '
|
|
7
|
-
import { RequestOptions } from '
|
|
8
|
-
import { path } from '
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as BoardsAPI from '../../feedback/boards';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
7
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
8
|
+
import { path } from '../../../internal/utils/path';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Tickets represent support requests in your Featurebase organization. Create, update, reply to, and manage tickets via these endpoints.
|
|
@@ -19,9 +19,10 @@ export class Categories extends APIResource {
|
|
|
19
19
|
*
|
|
20
20
|
* @example
|
|
21
21
|
* ```ts
|
|
22
|
-
* const board =
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* const board =
|
|
23
|
+
* await client.support.tickets.categories.retrieve(
|
|
24
|
+
* '507f1f77bcf86cd799439011',
|
|
25
|
+
* );
|
|
25
26
|
* ```
|
|
26
27
|
*/
|
|
27
28
|
retrieve(
|
|
@@ -56,7 +57,8 @@ export class Categories extends APIResource {
|
|
|
56
57
|
*
|
|
57
58
|
* @example
|
|
58
59
|
* ```ts
|
|
59
|
-
* const boards =
|
|
60
|
+
* const boards =
|
|
61
|
+
* await client.support.tickets.categories.list();
|
|
60
62
|
* ```
|
|
61
63
|
*/
|
|
62
64
|
list(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
import { APIResource } from '
|
|
4
|
-
import * as CustomFieldsAPI from '
|
|
5
|
-
import { APIPromise } from '
|
|
6
|
-
import { buildHeaders } from '
|
|
7
|
-
import { RequestOptions } from '
|
|
8
|
-
import { path } from '
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as CustomFieldsAPI from '../../feedback/custom-fields';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
7
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
8
|
+
import { path } from '../../../internal/utils/path';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Tickets represent support requests in your Featurebase organization. Create, update, reply to, and manage tickets via these endpoints.
|
|
@@ -31,7 +31,7 @@ export class CustomFields extends APIResource {
|
|
|
31
31
|
* @example
|
|
32
32
|
* ```ts
|
|
33
33
|
* const customField =
|
|
34
|
-
* await client.tickets.customFields.retrieve(
|
|
34
|
+
* await client.support.tickets.customFields.retrieve(
|
|
35
35
|
* '65d26304b2e65b1e1278170c',
|
|
36
36
|
* );
|
|
37
37
|
* ```
|
|
@@ -74,7 +74,7 @@ export class CustomFields extends APIResource {
|
|
|
74
74
|
* @example
|
|
75
75
|
* ```ts
|
|
76
76
|
* const customFieldList =
|
|
77
|
-
* await client.tickets.customFields.list();
|
|
77
|
+
* await client.support.tickets.customFields.list();
|
|
78
78
|
* ```
|
|
79
79
|
*/
|
|
80
80
|
list(
|