featurebase-node 0.14.3 → 0.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/client.d.mts +11 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +11 -5
- 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/package.json +1 -1
- package/resources/audit-logs.d.mts +3 -3
- package/resources/audit-logs.d.mts.map +1 -1
- package/resources/audit-logs.d.ts +3 -3
- package/resources/audit-logs.d.ts.map +1 -1
- package/resources/changelogs/changelogs.d.mts +116 -116
- package/resources/changelogs/changelogs.d.mts.map +1 -1
- package/resources/changelogs/changelogs.d.ts +116 -116
- 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/subscribers.d.mts +3 -3
- package/resources/changelogs/subscribers.d.mts.map +1 -1
- package/resources/changelogs/subscribers.d.ts +3 -3
- package/resources/changelogs/subscribers.d.ts.map +1 -1
- package/resources/conversation-attributes.d.mts +22 -17
- package/resources/conversation-attributes.d.mts.map +1 -1
- package/resources/conversation-attributes.d.ts +22 -17
- package/resources/conversation-attributes.d.ts.map +1 -1
- package/resources/conversation-attributes.js +19 -19
- package/resources/conversation-attributes.js.map +1 -1
- package/resources/conversation-attributes.mjs +19 -19
- package/resources/conversation-attributes.mjs.map +1 -1
- package/resources/feedback/boards.d.mts +19 -19
- package/resources/feedback/boards.d.mts.map +1 -1
- package/resources/feedback/boards.d.ts +19 -19
- 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 +113 -113
- package/resources/feedback/comments.d.mts.map +1 -1
- package/resources/feedback/comments.d.ts +113 -113
- package/resources/feedback/comments.d.ts.map +1 -1
- package/resources/feedback/comments.js +93 -93
- package/resources/feedback/comments.js.map +1 -1
- package/resources/feedback/comments.mjs +93 -93
- package/resources/feedback/comments.mjs.map +1 -1
- package/resources/feedback/custom-fields.d.mts +36 -36
- package/resources/feedback/custom-fields.d.mts.map +1 -1
- package/resources/feedback/custom-fields.d.ts +36 -36
- 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 +5 -5
- package/resources/feedback/feedback.d.mts.map +1 -1
- package/resources/feedback/feedback.d.ts +5 -5
- package/resources/feedback/feedback.d.ts.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/post-statuses.d.mts +20 -20
- package/resources/feedback/post-statuses.d.mts.map +1 -1
- package/resources/feedback/post-statuses.d.ts +20 -20
- 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/posts.d.mts +132 -132
- package/resources/feedback/posts/posts.d.mts.map +1 -1
- package/resources/feedback/posts/posts.d.ts +132 -132
- package/resources/feedback/posts/posts.d.ts.map +1 -1
- package/resources/feedback/posts/posts.js +107 -107
- package/resources/feedback/posts/posts.js.map +1 -1
- package/resources/feedback/posts/posts.mjs +107 -107
- package/resources/feedback/posts/posts.mjs.map +1 -1
- package/resources/feedback/posts/voters.d.mts +3 -3
- package/resources/feedback/posts/voters.d.mts.map +1 -1
- package/resources/feedback/posts/voters.d.ts +3 -3
- package/resources/feedback/posts/voters.d.ts.map +1 -1
- package/resources/help-center/articles.d.mts +213 -97
- package/resources/help-center/articles.d.mts.map +1 -1
- package/resources/help-center/articles.d.ts +213 -97
- 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 +158 -71
- package/resources/help-center/collections.d.mts.map +1 -1
- package/resources/help-center/collections.d.ts +158 -71
- 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 +4 -4
- package/resources/help-center/help-center.d.mts.map +1 -1
- package/resources/help-center/help-center.d.ts +4 -4
- package/resources/help-center/help-center.d.ts.map +1 -1
- package/resources/help-center/help-centers.d.mts +77 -48
- package/resources/help-center/help-centers.d.mts.map +1 -1
- package/resources/help-center/help-centers.d.ts +77 -48
- 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/redirect-rules.d.mts +124 -124
- package/resources/help-center/redirect-rules.d.mts.map +1 -1
- package/resources/help-center/redirect-rules.d.ts +124 -124
- 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/index.d.mts +6 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -5
- 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 +26 -26
- package/resources/organization/admins.d.mts.map +1 -1
- package/resources/organization/admins.d.ts +26 -26
- 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 +52 -52
- package/resources/organization/brands.d.mts.map +1 -1
- package/resources/organization/brands.d.ts +52 -52
- 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/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/teams.d.mts +47 -47
- package/resources/organization/teams.d.mts.map +1 -1
- package/resources/organization/teams.d.ts +47 -47
- 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/reports.d.mts +339 -223
- package/resources/reports.d.mts.map +1 -1
- package/resources/reports.d.ts +339 -223
- package/resources/reports.d.ts.map +1 -1
- package/resources/reports.js +114 -107
- package/resources/reports.js.map +1 -1
- package/resources/reports.mjs +114 -107
- package/resources/reports.mjs.map +1 -1
- package/resources/support/conversation-tags.d.mts +43 -43
- package/resources/support/conversation-tags.d.mts.map +1 -1
- package/resources/support/conversation-tags.d.ts +43 -43
- 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 +363 -332
- package/resources/support/conversations/conversations.d.mts.map +1 -1
- package/resources/support/conversations/conversations.d.ts +363 -332
- package/resources/support/conversations/conversations.d.ts.map +1 -1
- package/resources/support/conversations/conversations.js +293 -283
- package/resources/support/conversations/conversations.js.map +1 -1
- package/resources/support/conversations/conversations.mjs +293 -283
- 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/participants.d.mts +2 -2
- package/resources/support/conversations/participants.d.mts.map +1 -1
- package/resources/support/conversations/participants.d.ts +2 -2
- package/resources/support/conversations/participants.d.ts.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/support.d.mts +3 -3
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +3 -3
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/tickets/categories.d.mts +20 -20
- package/resources/support/tickets/categories.d.mts.map +1 -1
- package/resources/support/tickets/categories.d.ts +20 -20
- 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 +22 -22
- package/resources/support/tickets/custom-fields.d.mts.map +1 -1
- package/resources/support/tickets/custom-fields.d.ts +22 -22
- 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/statuses.d.mts +19 -19
- package/resources/support/tickets/statuses.d.mts.map +1 -1
- package/resources/support/tickets/statuses.d.ts +19 -19
- 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 +75 -75
- package/resources/support/tickets/tickets.d.mts.map +1 -1
- package/resources/support/tickets/tickets.d.ts +75 -75
- 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/surveys.d.mts +43 -43
- package/resources/surveys.d.mts.map +1 -1
- package/resources/surveys.d.ts +43 -43
- 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/training-data/files.d.mts +292 -0
- package/resources/training-data/files.d.mts.map +1 -0
- package/resources/training-data/files.d.ts +292 -0
- package/resources/training-data/files.d.ts.map +1 -0
- package/resources/training-data/files.js +171 -0
- package/resources/training-data/files.js.map +1 -0
- package/resources/training-data/files.mjs +167 -0
- package/resources/training-data/files.mjs.map +1 -0
- package/resources/training-data/index.d.mts +4 -0
- package/resources/training-data/index.d.mts.map +1 -0
- package/resources/training-data/index.d.ts +4 -0
- package/resources/training-data/index.d.ts.map +1 -0
- package/resources/training-data/index.js +11 -0
- package/resources/training-data/index.js.map +1 -0
- package/resources/training-data/index.mjs +5 -0
- package/resources/training-data/index.mjs.map +1 -0
- package/resources/training-data/qna.d.mts +370 -0
- package/resources/training-data/qna.d.mts.map +1 -0
- package/resources/training-data/qna.d.ts +370 -0
- package/resources/training-data/qna.d.ts.map +1 -0
- package/resources/training-data/qna.js +177 -0
- package/resources/training-data/qna.js.map +1 -0
- package/resources/training-data/qna.mjs +173 -0
- package/resources/training-data/qna.mjs.map +1 -0
- package/resources/training-data/training-data.d.mts +442 -0
- package/resources/training-data/training-data.d.mts.map +1 -0
- package/resources/training-data/training-data.d.ts +442 -0
- package/resources/training-data/training-data.d.ts.map +1 -0
- package/resources/training-data/training-data.js +105 -0
- package/resources/training-data/training-data.js.map +1 -0
- package/resources/training-data/training-data.mjs +100 -0
- package/resources/training-data/training-data.mjs.map +1 -0
- package/resources/training-data.d.mts +2 -0
- package/resources/training-data.d.mts.map +1 -0
- package/resources/training-data.d.ts +2 -0
- package/resources/training-data.d.ts.map +1 -0
- package/resources/training-data.js +6 -0
- package/resources/training-data.js.map +1 -0
- package/resources/training-data.mjs +3 -0
- package/resources/training-data.mjs.map +1 -0
- package/resources/users/companies/companies.d.mts +121 -130
- package/resources/users/companies/companies.d.mts.map +1 -1
- package/resources/users/companies/companies.d.ts +121 -130
- package/resources/users/companies/companies.d.ts.map +1 -1
- package/resources/users/companies/companies.js +125 -125
- package/resources/users/companies/companies.js.map +1 -1
- package/resources/users/companies/companies.mjs +125 -125
- package/resources/users/companies/companies.mjs.map +1 -1
- package/resources/users/companies/contacts.d.mts +3 -3
- package/resources/users/companies/contacts.d.mts.map +1 -1
- package/resources/users/companies/contacts.d.ts +3 -3
- package/resources/users/companies/contacts.d.ts.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/contacts/by-user-id/by-user-id.d.mts +2 -2
- 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 +2 -2
- package/resources/users/contacts/by-user-id/by-user-id.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.d.mts +2 -2
- 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 +2 -2
- package/resources/users/contacts/by-user-id/email-preferences.d.ts.map +1 -1
- package/resources/users/contacts/contacts.d.mts +249 -235
- package/resources/users/contacts/contacts.d.mts.map +1 -1
- package/resources/users/contacts/contacts.d.ts +249 -235
- package/resources/users/contacts/contacts.d.ts.map +1 -1
- package/resources/users/contacts/contacts.js +211 -184
- package/resources/users/contacts/contacts.js.map +1 -1
- package/resources/users/contacts/contacts.mjs +211 -184
- package/resources/users/contacts/contacts.mjs.map +1 -1
- package/resources/users/contacts/email-preferences.d.mts +2 -2
- package/resources/users/contacts/email-preferences.d.mts.map +1 -1
- package/resources/users/contacts/email-preferences.d.ts +2 -2
- package/resources/users/contacts/email-preferences.d.ts.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/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/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/webhooks.d.mts +83 -83
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +83 -83
- 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/src/client.ts +26 -6
- package/src/resources/audit-logs.ts +19 -1
- package/src/resources/changelogs/changelogs.ts +320 -175
- package/src/resources/changelogs/index.ts +1 -1
- package/src/resources/changelogs/subscribers.ts +31 -2
- package/src/resources/conversation-attributes.ts +40 -34
- package/src/resources/feedback/boards.ts +30 -30
- package/src/resources/feedback/comments.ts +137 -137
- package/src/resources/feedback/custom-fields.ts +46 -46
- package/src/resources/feedback/feedback.ts +6 -6
- package/src/resources/feedback/index.ts +6 -6
- package/src/resources/feedback/post-statuses.ts +33 -33
- package/src/resources/feedback/posts/index.ts +2 -2
- package/src/resources/feedback/posts/posts.ts +176 -176
- package/src/resources/feedback/posts/voters.ts +3 -3
- package/src/resources/help-center/articles.ts +631 -109
- package/src/resources/help-center/collections.ts +349 -88
- package/src/resources/help-center/help-center.ts +5 -5
- package/src/resources/help-center/help-centers.ts +202 -57
- package/src/resources/help-center/index.ts +5 -5
- package/src/resources/help-center/redirect-rules.ts +294 -178
- package/src/resources/index.ts +13 -6
- package/src/resources/organization/admins.ts +36 -36
- package/src/resources/organization/brands.ts +68 -68
- package/src/resources/organization/index.ts +3 -3
- package/src/resources/organization/organization.ts +3 -3
- package/src/resources/organization/teams.ts +54 -54
- package/src/resources/reports.ts +462 -272
- package/src/resources/support/conversation-tags.ts +62 -62
- package/src/resources/support/conversations/conversations.ts +453 -417
- package/src/resources/support/conversations/index.ts +4 -4
- package/src/resources/support/conversations/participants.ts +2 -2
- package/src/resources/support/index.ts +7 -7
- package/src/resources/support/support.ts +7 -7
- package/src/resources/support/tickets/categories.ts +35 -35
- package/src/resources/support/tickets/custom-fields.ts +29 -29
- package/src/resources/support/tickets/index.ts +4 -4
- package/src/resources/support/tickets/statuses.ts +31 -31
- package/src/resources/support/tickets/tickets.ts +101 -101
- package/src/resources/surveys.ts +60 -60
- package/src/resources/training-data/files.ts +431 -0
- package/src/resources/training-data/index.ts +31 -0
- package/src/resources/training-data/qna.ts +514 -0
- package/src/resources/training-data/training-data.ts +603 -0
- package/src/resources/training-data.ts +3 -0
- package/src/resources/users/companies/companies.ts +158 -172
- package/src/resources/users/companies/contacts.ts +3 -3
- package/src/resources/users/companies/index.ts +2 -2
- package/src/resources/users/contacts/by-user-id/by-user-id.ts +2 -2
- package/src/resources/users/contacts/by-user-id/email-preferences.ts +2 -2
- package/src/resources/users/contacts/contacts.ts +284 -280
- package/src/resources/users/contacts/email-preferences.ts +2 -2
- 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 +106 -100
- 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/webhooks.js
CHANGED
|
@@ -10,83 +10,6 @@ const path_1 = require("../internal/utils/path.js");
|
|
|
10
10
|
* Webhooks allow you to receive real-time HTTP callbacks when events occur in your Featurebase organization. Configure webhook endpoints to subscribe to specific event types.
|
|
11
11
|
*/
|
|
12
12
|
class Webhooks extends resource_1.APIResource {
|
|
13
|
-
/**
|
|
14
|
-
* Returns a list of webhooks in your organization using cursor-based pagination.
|
|
15
|
-
*
|
|
16
|
-
* ### Query Parameters
|
|
17
|
-
*
|
|
18
|
-
* - `limit` - Number of webhooks to return (1-100, default 10)
|
|
19
|
-
* - `cursor` - Cursor from previous response for pagination
|
|
20
|
-
* - `status` - Filter by status: "active", "paused", or "suspended"
|
|
21
|
-
*
|
|
22
|
-
* ### Response Format
|
|
23
|
-
*
|
|
24
|
-
* Returns a list object with:
|
|
25
|
-
*
|
|
26
|
-
* - `object` - Always "list"
|
|
27
|
-
* - `data` - Array of webhook objects
|
|
28
|
-
* - `nextCursor` - Cursor for the next page, or null if no more results
|
|
29
|
-
*
|
|
30
|
-
* ### Webhook Object
|
|
31
|
-
*
|
|
32
|
-
* Each webhook includes:
|
|
33
|
-
*
|
|
34
|
-
* - `id` - Unique webhook identifier
|
|
35
|
-
* - `name` - Human-readable webhook name
|
|
36
|
-
* - `url` - Webhook endpoint URL
|
|
37
|
-
* - `topics` - Array of subscribed event topics
|
|
38
|
-
* - `status` - Current status ("active", "paused", "suspended")
|
|
39
|
-
* - `health` - Health metrics (response times, error counts)
|
|
40
|
-
* - `createdAt` - Creation timestamp
|
|
41
|
-
* - `updatedAt` - Last update timestamp
|
|
42
|
-
*
|
|
43
|
-
* ### Example
|
|
44
|
-
*
|
|
45
|
-
* ```json
|
|
46
|
-
* {
|
|
47
|
-
* "object": "list",
|
|
48
|
-
* "data": [
|
|
49
|
-
* {
|
|
50
|
-
* "object": "webhook",
|
|
51
|
-
* "id": "507f1f77bcf86cd799439011",
|
|
52
|
-
* "name": "Production Webhook",
|
|
53
|
-
* "url": "https://example.com/webhooks",
|
|
54
|
-
* "topics": ["post.created", "post.updated"],
|
|
55
|
-
* "status": "active",
|
|
56
|
-
* ...
|
|
57
|
-
* }
|
|
58
|
-
* ],
|
|
59
|
-
* "nextCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMSJ9"
|
|
60
|
-
* }
|
|
61
|
-
* ```
|
|
62
|
-
*
|
|
63
|
-
* ### Version Availability
|
|
64
|
-
*
|
|
65
|
-
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
66
|
-
*
|
|
67
|
-
* @example
|
|
68
|
-
* ```ts
|
|
69
|
-
* // Automatically fetches more pages as needed.
|
|
70
|
-
* for await (const webhook of client.webhooks.list()) {
|
|
71
|
-
* // ...
|
|
72
|
-
* }
|
|
73
|
-
* ```
|
|
74
|
-
*/
|
|
75
|
-
list(params = {}, options) {
|
|
76
|
-
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
77
|
-
return this._client.getAPIList('/v2/webhooks', (pagination_1.CursorPage), {
|
|
78
|
-
query,
|
|
79
|
-
...options,
|
|
80
|
-
headers: (0, headers_1.buildHeaders)([
|
|
81
|
-
{
|
|
82
|
-
...(featurebaseVersion?.toString() != null ?
|
|
83
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
84
|
-
: undefined),
|
|
85
|
-
},
|
|
86
|
-
options?.headers,
|
|
87
|
-
]),
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
13
|
/**
|
|
91
14
|
* Creates a new webhook to receive event notifications.
|
|
92
15
|
*
|
|
@@ -359,6 +282,83 @@ class Webhooks extends resource_1.APIResource {
|
|
|
359
282
|
]),
|
|
360
283
|
});
|
|
361
284
|
}
|
|
285
|
+
/**
|
|
286
|
+
* Returns a list of webhooks in your organization using cursor-based pagination.
|
|
287
|
+
*
|
|
288
|
+
* ### Query Parameters
|
|
289
|
+
*
|
|
290
|
+
* - `limit` - Number of webhooks to return (1-100, default 10)
|
|
291
|
+
* - `cursor` - Cursor from previous response for pagination
|
|
292
|
+
* - `status` - Filter by status: "active", "paused", or "suspended"
|
|
293
|
+
*
|
|
294
|
+
* ### Response Format
|
|
295
|
+
*
|
|
296
|
+
* Returns a list object with:
|
|
297
|
+
*
|
|
298
|
+
* - `object` - Always "list"
|
|
299
|
+
* - `data` - Array of webhook objects
|
|
300
|
+
* - `nextCursor` - Cursor for the next page, or null if no more results
|
|
301
|
+
*
|
|
302
|
+
* ### Webhook Object
|
|
303
|
+
*
|
|
304
|
+
* Each webhook includes:
|
|
305
|
+
*
|
|
306
|
+
* - `id` - Unique webhook identifier
|
|
307
|
+
* - `name` - Human-readable webhook name
|
|
308
|
+
* - `url` - Webhook endpoint URL
|
|
309
|
+
* - `topics` - Array of subscribed event topics
|
|
310
|
+
* - `status` - Current status ("active", "paused", "suspended")
|
|
311
|
+
* - `health` - Health metrics (response times, error counts)
|
|
312
|
+
* - `createdAt` - Creation timestamp
|
|
313
|
+
* - `updatedAt` - Last update timestamp
|
|
314
|
+
*
|
|
315
|
+
* ### Example
|
|
316
|
+
*
|
|
317
|
+
* ```json
|
|
318
|
+
* {
|
|
319
|
+
* "object": "list",
|
|
320
|
+
* "data": [
|
|
321
|
+
* {
|
|
322
|
+
* "object": "webhook",
|
|
323
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
324
|
+
* "name": "Production Webhook",
|
|
325
|
+
* "url": "https://example.com/webhooks",
|
|
326
|
+
* "topics": ["post.created", "post.updated"],
|
|
327
|
+
* "status": "active",
|
|
328
|
+
* ...
|
|
329
|
+
* }
|
|
330
|
+
* ],
|
|
331
|
+
* "nextCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMSJ9"
|
|
332
|
+
* }
|
|
333
|
+
* ```
|
|
334
|
+
*
|
|
335
|
+
* ### Version Availability
|
|
336
|
+
*
|
|
337
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
338
|
+
*
|
|
339
|
+
* @example
|
|
340
|
+
* ```ts
|
|
341
|
+
* // Automatically fetches more pages as needed.
|
|
342
|
+
* for await (const webhook of client.webhooks.list()) {
|
|
343
|
+
* // ...
|
|
344
|
+
* }
|
|
345
|
+
* ```
|
|
346
|
+
*/
|
|
347
|
+
list(params = {}, options) {
|
|
348
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
349
|
+
return this._client.getAPIList('/v2/webhooks', (pagination_1.CursorPage), {
|
|
350
|
+
query,
|
|
351
|
+
...options,
|
|
352
|
+
headers: (0, headers_1.buildHeaders)([
|
|
353
|
+
{
|
|
354
|
+
...(featurebaseVersion?.toString() != null ?
|
|
355
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
356
|
+
: undefined),
|
|
357
|
+
},
|
|
358
|
+
options?.headers,
|
|
359
|
+
]),
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
362
|
/**
|
|
363
363
|
* Permanently deletes a webhook.
|
|
364
364
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AACpF,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAAoF;AACpF,oDAAmD;AAEnD,oDAA8C;AAE9C;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmFG;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,cAAc,EAAE;YACvC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBAC1C,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,aAAa,CACX,EAAU,EACV,SAAwD,EAAE,EAC1D,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,SAAS,EAAE;YACxD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBAC1C,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA9dD,4BA8dC"}
|
package/resources/webhooks.mjs
CHANGED
|
@@ -7,83 +7,6 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
7
7
|
* Webhooks allow you to receive real-time HTTP callbacks when events occur in your Featurebase organization. Configure webhook endpoints to subscribe to specific event types.
|
|
8
8
|
*/
|
|
9
9
|
export class Webhooks extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Returns a list of webhooks in your organization using cursor-based pagination.
|
|
12
|
-
*
|
|
13
|
-
* ### Query Parameters
|
|
14
|
-
*
|
|
15
|
-
* - `limit` - Number of webhooks to return (1-100, default 10)
|
|
16
|
-
* - `cursor` - Cursor from previous response for pagination
|
|
17
|
-
* - `status` - Filter by status: "active", "paused", or "suspended"
|
|
18
|
-
*
|
|
19
|
-
* ### Response Format
|
|
20
|
-
*
|
|
21
|
-
* Returns a list object with:
|
|
22
|
-
*
|
|
23
|
-
* - `object` - Always "list"
|
|
24
|
-
* - `data` - Array of webhook objects
|
|
25
|
-
* - `nextCursor` - Cursor for the next page, or null if no more results
|
|
26
|
-
*
|
|
27
|
-
* ### Webhook Object
|
|
28
|
-
*
|
|
29
|
-
* Each webhook includes:
|
|
30
|
-
*
|
|
31
|
-
* - `id` - Unique webhook identifier
|
|
32
|
-
* - `name` - Human-readable webhook name
|
|
33
|
-
* - `url` - Webhook endpoint URL
|
|
34
|
-
* - `topics` - Array of subscribed event topics
|
|
35
|
-
* - `status` - Current status ("active", "paused", "suspended")
|
|
36
|
-
* - `health` - Health metrics (response times, error counts)
|
|
37
|
-
* - `createdAt` - Creation timestamp
|
|
38
|
-
* - `updatedAt` - Last update timestamp
|
|
39
|
-
*
|
|
40
|
-
* ### Example
|
|
41
|
-
*
|
|
42
|
-
* ```json
|
|
43
|
-
* {
|
|
44
|
-
* "object": "list",
|
|
45
|
-
* "data": [
|
|
46
|
-
* {
|
|
47
|
-
* "object": "webhook",
|
|
48
|
-
* "id": "507f1f77bcf86cd799439011",
|
|
49
|
-
* "name": "Production Webhook",
|
|
50
|
-
* "url": "https://example.com/webhooks",
|
|
51
|
-
* "topics": ["post.created", "post.updated"],
|
|
52
|
-
* "status": "active",
|
|
53
|
-
* ...
|
|
54
|
-
* }
|
|
55
|
-
* ],
|
|
56
|
-
* "nextCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMSJ9"
|
|
57
|
-
* }
|
|
58
|
-
* ```
|
|
59
|
-
*
|
|
60
|
-
* ### Version Availability
|
|
61
|
-
*
|
|
62
|
-
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* ```ts
|
|
66
|
-
* // Automatically fetches more pages as needed.
|
|
67
|
-
* for await (const webhook of client.webhooks.list()) {
|
|
68
|
-
* // ...
|
|
69
|
-
* }
|
|
70
|
-
* ```
|
|
71
|
-
*/
|
|
72
|
-
list(params = {}, options) {
|
|
73
|
-
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
74
|
-
return this._client.getAPIList('/v2/webhooks', (CursorPage), {
|
|
75
|
-
query,
|
|
76
|
-
...options,
|
|
77
|
-
headers: buildHeaders([
|
|
78
|
-
{
|
|
79
|
-
...(featurebaseVersion?.toString() != null ?
|
|
80
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
81
|
-
: undefined),
|
|
82
|
-
},
|
|
83
|
-
options?.headers,
|
|
84
|
-
]),
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
10
|
/**
|
|
88
11
|
* Creates a new webhook to receive event notifications.
|
|
89
12
|
*
|
|
@@ -356,6 +279,83 @@ export class Webhooks extends APIResource {
|
|
|
356
279
|
]),
|
|
357
280
|
});
|
|
358
281
|
}
|
|
282
|
+
/**
|
|
283
|
+
* Returns a list of webhooks in your organization using cursor-based pagination.
|
|
284
|
+
*
|
|
285
|
+
* ### Query Parameters
|
|
286
|
+
*
|
|
287
|
+
* - `limit` - Number of webhooks to return (1-100, default 10)
|
|
288
|
+
* - `cursor` - Cursor from previous response for pagination
|
|
289
|
+
* - `status` - Filter by status: "active", "paused", or "suspended"
|
|
290
|
+
*
|
|
291
|
+
* ### Response Format
|
|
292
|
+
*
|
|
293
|
+
* Returns a list object with:
|
|
294
|
+
*
|
|
295
|
+
* - `object` - Always "list"
|
|
296
|
+
* - `data` - Array of webhook objects
|
|
297
|
+
* - `nextCursor` - Cursor for the next page, or null if no more results
|
|
298
|
+
*
|
|
299
|
+
* ### Webhook Object
|
|
300
|
+
*
|
|
301
|
+
* Each webhook includes:
|
|
302
|
+
*
|
|
303
|
+
* - `id` - Unique webhook identifier
|
|
304
|
+
* - `name` - Human-readable webhook name
|
|
305
|
+
* - `url` - Webhook endpoint URL
|
|
306
|
+
* - `topics` - Array of subscribed event topics
|
|
307
|
+
* - `status` - Current status ("active", "paused", "suspended")
|
|
308
|
+
* - `health` - Health metrics (response times, error counts)
|
|
309
|
+
* - `createdAt` - Creation timestamp
|
|
310
|
+
* - `updatedAt` - Last update timestamp
|
|
311
|
+
*
|
|
312
|
+
* ### Example
|
|
313
|
+
*
|
|
314
|
+
* ```json
|
|
315
|
+
* {
|
|
316
|
+
* "object": "list",
|
|
317
|
+
* "data": [
|
|
318
|
+
* {
|
|
319
|
+
* "object": "webhook",
|
|
320
|
+
* "id": "507f1f77bcf86cd799439011",
|
|
321
|
+
* "name": "Production Webhook",
|
|
322
|
+
* "url": "https://example.com/webhooks",
|
|
323
|
+
* "topics": ["post.created", "post.updated"],
|
|
324
|
+
* "status": "active",
|
|
325
|
+
* ...
|
|
326
|
+
* }
|
|
327
|
+
* ],
|
|
328
|
+
* "nextCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMSJ9"
|
|
329
|
+
* }
|
|
330
|
+
* ```
|
|
331
|
+
*
|
|
332
|
+
* ### Version Availability
|
|
333
|
+
*
|
|
334
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
335
|
+
*
|
|
336
|
+
* @example
|
|
337
|
+
* ```ts
|
|
338
|
+
* // Automatically fetches more pages as needed.
|
|
339
|
+
* for await (const webhook of client.webhooks.list()) {
|
|
340
|
+
* // ...
|
|
341
|
+
* }
|
|
342
|
+
* ```
|
|
343
|
+
*/
|
|
344
|
+
list(params = {}, options) {
|
|
345
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
346
|
+
return this._client.getAPIList('/v2/webhooks', (CursorPage), {
|
|
347
|
+
query,
|
|
348
|
+
...options,
|
|
349
|
+
headers: buildHeaders([
|
|
350
|
+
{
|
|
351
|
+
...(featurebaseVersion?.toString() != null ?
|
|
352
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
353
|
+
: undefined),
|
|
354
|
+
},
|
|
355
|
+
options?.headers,
|
|
356
|
+
]),
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
359
|
/**
|
|
360
360
|
* Permanently deletes a webhook.
|
|
361
361
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.mjs","sourceRoot":"","sources":["../src/res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kB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,gBAAgB,EAAE,SAAS,EAAE;YACxD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBAC1C,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -101,6 +101,13 @@ import { Feedback } from './resources/feedback/feedback';
|
|
|
101
101
|
import { HelpCenter } from './resources/help-center/help-center';
|
|
102
102
|
import { Organization } from './resources/organization/organization';
|
|
103
103
|
import { Support } from './resources/support/support';
|
|
104
|
+
import {
|
|
105
|
+
KnowledgeSearch,
|
|
106
|
+
Oracle,
|
|
107
|
+
TrainingData,
|
|
108
|
+
TrainingDataOracleParams,
|
|
109
|
+
TrainingDataSearchParams,
|
|
110
|
+
} from './resources/training-data/training-data';
|
|
104
111
|
import { Users } from './resources/users/users';
|
|
105
112
|
import { type Fetch } from './internal/builtin-types';
|
|
106
113
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
@@ -872,6 +879,10 @@ export class Featurebase {
|
|
|
872
879
|
* Query your workspace analytics: conversation volume, response times, CSAT, SLA compliance, teammate performance, AI agent resolutions and more. Start with the datasets catalog to discover metrics and attributes, then run queries with filters, grouping and period comparison.
|
|
873
880
|
*/
|
|
874
881
|
reports: API.Reports = new API.Reports(this);
|
|
882
|
+
/**
|
|
883
|
+
* Training data teaches the AI agent about your product beyond your public Help Center: training files (documents, policies, internal notes) and Q&A entries (question variants with the exact answer to give). Use these endpoints to keep that knowledge in sync from your own systems — for example, pushing resolved support conversations, internal runbooks, or SOP documents automatically.
|
|
884
|
+
*/
|
|
885
|
+
trainingData: API.TrainingData = new API.TrainingData(this);
|
|
875
886
|
}
|
|
876
887
|
|
|
877
888
|
Featurebase.Support = Support;
|
|
@@ -885,6 +896,7 @@ Featurebase.Webhooks = Webhooks;
|
|
|
885
896
|
Featurebase.ConversationAttributes = ConversationAttributes;
|
|
886
897
|
Featurebase.AuditLogs = AuditLogs;
|
|
887
898
|
Featurebase.Reports = Reports;
|
|
899
|
+
Featurebase.TrainingData = TrainingData;
|
|
888
900
|
|
|
889
901
|
export declare namespace Featurebase {
|
|
890
902
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -908,10 +920,10 @@ export declare namespace Featurebase {
|
|
|
908
920
|
type PublishUnpublishSuccess as PublishUnpublishSuccess,
|
|
909
921
|
type ChangelogDeleteResponse as ChangelogDeleteResponse,
|
|
910
922
|
type ChangelogsCursorPage as ChangelogsCursorPage,
|
|
911
|
-
type ChangelogListParams as ChangelogListParams,
|
|
912
923
|
type ChangelogCreateParams as ChangelogCreateParams,
|
|
913
924
|
type ChangelogRetrieveParams as ChangelogRetrieveParams,
|
|
914
925
|
type ChangelogUpdateParams as ChangelogUpdateParams,
|
|
926
|
+
type ChangelogListParams as ChangelogListParams,
|
|
915
927
|
type ChangelogDeleteParams as ChangelogDeleteParams,
|
|
916
928
|
type ChangelogPublishParams as ChangelogPublishParams,
|
|
917
929
|
type ChangelogUnpublishParams as ChangelogUnpublishParams,
|
|
@@ -930,8 +942,8 @@ export declare namespace Featurebase {
|
|
|
930
942
|
type SurveyListResponsesResponse as SurveyListResponsesResponse,
|
|
931
943
|
type SurveysCursorPage as SurveysCursorPage,
|
|
932
944
|
type SurveyListResponsesResponsesCursorPage as SurveyListResponsesResponsesCursorPage,
|
|
933
|
-
type SurveyListParams as SurveyListParams,
|
|
934
945
|
type SurveyRetrieveParams as SurveyRetrieveParams,
|
|
946
|
+
type SurveyListParams as SurveyListParams,
|
|
935
947
|
type SurveyListResponsesParams as SurveyListResponsesParams,
|
|
936
948
|
};
|
|
937
949
|
|
|
@@ -941,10 +953,10 @@ export declare namespace Featurebase {
|
|
|
941
953
|
type WebhookRequestConfigInput as WebhookRequestConfigInput,
|
|
942
954
|
type WebhookDeleteResponse as WebhookDeleteResponse,
|
|
943
955
|
type WebhooksCursorPage as WebhooksCursorPage,
|
|
944
|
-
type WebhookListParams as WebhookListParams,
|
|
945
956
|
type WebhookCreateParams as WebhookCreateParams,
|
|
946
957
|
type WebhookRetrieveParams as WebhookRetrieveParams,
|
|
947
958
|
type WebhookUpdateParams as WebhookUpdateParams,
|
|
959
|
+
type WebhookListParams as WebhookListParams,
|
|
948
960
|
type WebhookDeleteParams as WebhookDeleteParams,
|
|
949
961
|
type WebhookRefreshSecretParams as WebhookRefreshSecretParams,
|
|
950
962
|
};
|
|
@@ -954,8 +966,8 @@ export declare namespace Featurebase {
|
|
|
954
966
|
type ConversationAttribute as ConversationAttribute,
|
|
955
967
|
type ConversationAttributeOption as ConversationAttributeOption,
|
|
956
968
|
type ConversationAttributeListResponse as ConversationAttributeListResponse,
|
|
957
|
-
type ConversationAttributeListParams as ConversationAttributeListParams,
|
|
958
969
|
type ConversationAttributeRetrieveParams as ConversationAttributeRetrieveParams,
|
|
970
|
+
type ConversationAttributeListParams as ConversationAttributeListParams,
|
|
959
971
|
};
|
|
960
972
|
|
|
961
973
|
export {
|
|
@@ -980,9 +992,17 @@ export declare namespace Featurebase {
|
|
|
980
992
|
type ReportListDatasetsResponse as ReportListDatasetsResponse,
|
|
981
993
|
type ReportLookupFilterValuesResponse as ReportLookupFilterValuesResponse,
|
|
982
994
|
type ReportQueryResponse as ReportQueryResponse,
|
|
995
|
+
type ReportDrillInParams as ReportDrillInParams,
|
|
983
996
|
type ReportListDatasetsParams as ReportListDatasetsParams,
|
|
984
|
-
type ReportQueryParams as ReportQueryParams,
|
|
985
997
|
type ReportLookupFilterValuesParams as ReportLookupFilterValuesParams,
|
|
986
|
-
type
|
|
998
|
+
type ReportQueryParams as ReportQueryParams,
|
|
999
|
+
};
|
|
1000
|
+
|
|
1001
|
+
export {
|
|
1002
|
+
TrainingData as TrainingData,
|
|
1003
|
+
type KnowledgeSearch as KnowledgeSearch,
|
|
1004
|
+
type Oracle as Oracle,
|
|
1005
|
+
type TrainingDataOracleParams as TrainingDataOracleParams,
|
|
1006
|
+
type TrainingDataSearchParams as TrainingDataSearchParams,
|
|
987
1007
|
};
|
|
988
1008
|
}
|
|
@@ -172,6 +172,8 @@ export interface AuditLogListResponse {
|
|
|
172
172
|
| 'teammate.scim_auto_claimed'
|
|
173
173
|
| 'teammate.scim_claim_role_preserved'
|
|
174
174
|
| 'teammate.permanently_removed'
|
|
175
|
+
| 'teammate.availability_changed'
|
|
176
|
+
| 'teammate.assignment_limit_changed'
|
|
175
177
|
| 'member.role_changed'
|
|
176
178
|
| 'organization.owner_transferred'
|
|
177
179
|
| 'article.created'
|
|
@@ -241,6 +243,7 @@ export interface AuditLogListResponse {
|
|
|
241
243
|
| 'billing.plan_cancelled'
|
|
242
244
|
| 'billing.seat_limit_changed'
|
|
243
245
|
| 'billing.seat_activated'
|
|
246
|
+
| 'billing.ai_resolution_price_changed'
|
|
244
247
|
| 'workflow.created'
|
|
245
248
|
| 'workflow.activated'
|
|
246
249
|
| 'workflow.deactivated'
|
|
@@ -273,6 +276,12 @@ export interface AuditLogListResponse {
|
|
|
273
276
|
| 'ai_agent.guidance_changed'
|
|
274
277
|
| 'ai_agent.multilingual_changed'
|
|
275
278
|
| 'ai_agent.data_context_changed'
|
|
279
|
+
| 'ai_agent.training_file_created'
|
|
280
|
+
| 'ai_agent.training_file_updated'
|
|
281
|
+
| 'ai_agent.training_file_deleted'
|
|
282
|
+
| 'ai_agent.qna_created'
|
|
283
|
+
| 'ai_agent.qna_updated'
|
|
284
|
+
| 'ai_agent.qna_deleted'
|
|
276
285
|
| 'email.sending_address_created'
|
|
277
286
|
| 'email.sending_address_updated'
|
|
278
287
|
| 'email.sending_address_deleted'
|
|
@@ -453,6 +462,8 @@ export interface AuditLogListParams extends CursorPageParams {
|
|
|
453
462
|
| 'teammate.scim_auto_claimed'
|
|
454
463
|
| 'teammate.scim_claim_role_preserved'
|
|
455
464
|
| 'teammate.permanently_removed'
|
|
465
|
+
| 'teammate.availability_changed'
|
|
466
|
+
| 'teammate.assignment_limit_changed'
|
|
456
467
|
| 'member.role_changed'
|
|
457
468
|
| 'organization.owner_transferred'
|
|
458
469
|
| 'article.created'
|
|
@@ -522,6 +533,7 @@ export interface AuditLogListParams extends CursorPageParams {
|
|
|
522
533
|
| 'billing.plan_cancelled'
|
|
523
534
|
| 'billing.seat_limit_changed'
|
|
524
535
|
| 'billing.seat_activated'
|
|
536
|
+
| 'billing.ai_resolution_price_changed'
|
|
525
537
|
| 'workflow.created'
|
|
526
538
|
| 'workflow.activated'
|
|
527
539
|
| 'workflow.deactivated'
|
|
@@ -554,6 +566,12 @@ export interface AuditLogListParams extends CursorPageParams {
|
|
|
554
566
|
| 'ai_agent.guidance_changed'
|
|
555
567
|
| 'ai_agent.multilingual_changed'
|
|
556
568
|
| 'ai_agent.data_context_changed'
|
|
569
|
+
| 'ai_agent.training_file_created'
|
|
570
|
+
| 'ai_agent.training_file_updated'
|
|
571
|
+
| 'ai_agent.training_file_deleted'
|
|
572
|
+
| 'ai_agent.qna_created'
|
|
573
|
+
| 'ai_agent.qna_updated'
|
|
574
|
+
| 'ai_agent.qna_deleted'
|
|
557
575
|
| 'email.sending_address_created'
|
|
558
576
|
| 'email.sending_address_updated'
|
|
559
577
|
| 'email.sending_address_deleted'
|
|
@@ -597,7 +615,7 @@ export interface AuditLogListParams extends CursorPageParams {
|
|
|
597
615
|
* Header param: API version for this request. Defaults to your organization's
|
|
598
616
|
* configured API version if not specified.
|
|
599
617
|
*/
|
|
600
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
618
|
+
'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
|
|
601
619
|
}
|
|
602
620
|
|
|
603
621
|
export declare namespace AuditLogs {
|