featurebase-node 0.13.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +21 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +21 -3
- package/client.d.ts.map +1 -1
- package/client.js +27 -1
- package/client.js.map +1 -1
- package/client.mjs +27 -1
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +16 -10
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/audit-logs.d.mts +233 -0
- package/resources/audit-logs.d.mts.map +1 -0
- package/resources/audit-logs.d.ts +233 -0
- package/resources/audit-logs.d.ts.map +1 -0
- package/resources/audit-logs.js +122 -0
- package/resources/audit-logs.js.map +1 -0
- package/resources/audit-logs.mjs +118 -0
- package/resources/audit-logs.mjs.map +1 -0
- package/resources/changelogs/changelogs.d.mts +106 -106
- package/resources/changelogs/changelogs.d.mts.map +1 -1
- package/resources/changelogs/changelogs.d.ts +106 -106
- package/resources/changelogs/changelogs.d.ts.map +1 -1
- package/resources/changelogs/changelogs.js +74 -74
- package/resources/changelogs/changelogs.js.map +1 -1
- package/resources/changelogs/changelogs.mjs +74 -74
- package/resources/changelogs/changelogs.mjs.map +1 -1
- package/resources/changelogs/index.d.mts +1 -1
- package/resources/changelogs/index.d.mts.map +1 -1
- package/resources/changelogs/index.d.ts +1 -1
- package/resources/changelogs/index.d.ts.map +1 -1
- package/resources/changelogs/index.mjs.map +1 -1
- package/resources/changelogs/subscribers.d.mts.map +1 -1
- package/resources/changelogs/subscribers.d.ts.map +1 -1
- package/resources/changelogs/subscribers.mjs.map +1 -1
- package/resources/changelogs.d.mts.map +1 -1
- package/resources/changelogs.d.ts.map +1 -1
- package/resources/changelogs.mjs.map +1 -1
- package/resources/conversation-attributes.d.mts +117 -0
- package/resources/conversation-attributes.d.mts.map +1 -0
- package/resources/conversation-attributes.d.ts +117 -0
- package/resources/conversation-attributes.d.ts.map +1 -0
- package/resources/conversation-attributes.js +61 -0
- package/resources/conversation-attributes.js.map +1 -0
- package/resources/conversation-attributes.mjs +57 -0
- package/resources/conversation-attributes.mjs.map +1 -0
- package/resources/feedback/boards.d.mts +17 -17
- package/resources/feedback/boards.d.mts.map +1 -1
- package/resources/feedback/boards.d.ts +17 -17
- package/resources/feedback/boards.d.ts.map +1 -1
- package/resources/feedback/boards.js +20 -20
- package/resources/feedback/boards.js.map +1 -1
- package/resources/feedback/boards.mjs +20 -20
- package/resources/feedback/boards.mjs.map +1 -1
- package/resources/feedback/comments.d.mts +129 -191
- package/resources/feedback/comments.d.mts.map +1 -1
- package/resources/feedback/comments.d.ts +129 -191
- package/resources/feedback/comments.d.ts.map +1 -1
- package/resources/feedback/comments.js +93 -93
- package/resources/feedback/comments.js.map +1 -1
- package/resources/feedback/comments.mjs +93 -93
- package/resources/feedback/comments.mjs.map +1 -1
- package/resources/feedback/custom-fields.d.mts +34 -34
- package/resources/feedback/custom-fields.d.mts.map +1 -1
- package/resources/feedback/custom-fields.d.ts +34 -34
- package/resources/feedback/custom-fields.d.ts.map +1 -1
- package/resources/feedback/custom-fields.js +36 -36
- package/resources/feedback/custom-fields.js.map +1 -1
- package/resources/feedback/custom-fields.mjs +36 -36
- package/resources/feedback/custom-fields.mjs.map +1 -1
- package/resources/feedback/feedback.d.mts +7 -7
- package/resources/feedback/feedback.d.mts.map +1 -1
- package/resources/feedback/feedback.d.ts +7 -7
- package/resources/feedback/feedback.d.ts.map +1 -1
- package/resources/feedback/feedback.js.map +1 -1
- package/resources/feedback/feedback.mjs.map +1 -1
- package/resources/feedback/index.d.mts +5 -5
- package/resources/feedback/index.d.mts.map +1 -1
- package/resources/feedback/index.d.ts +5 -5
- package/resources/feedback/index.d.ts.map +1 -1
- package/resources/feedback/index.js.map +1 -1
- package/resources/feedback/index.mjs.map +1 -1
- package/resources/feedback/post-statuses.d.mts +18 -18
- package/resources/feedback/post-statuses.d.mts.map +1 -1
- package/resources/feedback/post-statuses.d.ts +18 -18
- package/resources/feedback/post-statuses.d.ts.map +1 -1
- package/resources/feedback/post-statuses.js +23 -23
- package/resources/feedback/post-statuses.js.map +1 -1
- package/resources/feedback/post-statuses.mjs +23 -23
- package/resources/feedback/post-statuses.mjs.map +1 -1
- package/resources/feedback/posts/index.d.mts +1 -1
- package/resources/feedback/posts/index.d.mts.map +1 -1
- package/resources/feedback/posts/index.d.ts +1 -1
- package/resources/feedback/posts/index.d.ts.map +1 -1
- package/resources/feedback/posts/index.js.map +1 -1
- package/resources/feedback/posts/index.mjs.map +1 -1
- package/resources/feedback/posts/posts.d.mts +187 -260
- package/resources/feedback/posts/posts.d.mts.map +1 -1
- package/resources/feedback/posts/posts.d.ts +187 -260
- package/resources/feedback/posts/posts.d.ts.map +1 -1
- package/resources/feedback/posts/posts.js +75 -75
- package/resources/feedback/posts/posts.js.map +1 -1
- package/resources/feedback/posts/posts.mjs +75 -75
- package/resources/feedback/posts/posts.mjs.map +1 -1
- package/resources/feedback/posts/voters.d.mts.map +1 -1
- package/resources/feedback/posts/voters.d.ts.map +1 -1
- package/resources/feedback/posts/voters.mjs.map +1 -1
- package/resources/feedback/posts.d.mts.map +1 -1
- package/resources/feedback/posts.d.ts.map +1 -1
- package/resources/feedback/posts.mjs.map +1 -1
- package/resources/feedback.d.mts.map +1 -1
- package/resources/feedback.d.ts.map +1 -1
- package/resources/feedback.mjs.map +1 -1
- package/resources/help-center/articles.d.mts +98 -152
- package/resources/help-center/articles.d.mts.map +1 -1
- package/resources/help-center/articles.d.ts +98 -152
- package/resources/help-center/articles.d.ts.map +1 -1
- package/resources/help-center/articles.js +73 -73
- package/resources/help-center/articles.js.map +1 -1
- package/resources/help-center/articles.mjs +73 -73
- package/resources/help-center/articles.mjs.map +1 -1
- package/resources/help-center/collections.d.mts +64 -64
- package/resources/help-center/collections.d.mts.map +1 -1
- package/resources/help-center/collections.d.ts +64 -64
- package/resources/help-center/collections.d.ts.map +1 -1
- package/resources/help-center/collections.js +65 -65
- package/resources/help-center/collections.js.map +1 -1
- package/resources/help-center/collections.mjs +65 -65
- package/resources/help-center/collections.mjs.map +1 -1
- package/resources/help-center/help-center.d.mts +5 -5
- package/resources/help-center/help-center.d.mts.map +1 -1
- package/resources/help-center/help-center.d.ts +5 -5
- package/resources/help-center/help-center.d.ts.map +1 -1
- package/resources/help-center/help-center.js.map +1 -1
- package/resources/help-center/help-center.mjs.map +1 -1
- package/resources/help-center/help-centers.d.mts +43 -43
- package/resources/help-center/help-centers.d.mts.map +1 -1
- package/resources/help-center/help-centers.d.ts +43 -43
- package/resources/help-center/help-centers.d.ts.map +1 -1
- package/resources/help-center/help-centers.js +43 -43
- package/resources/help-center/help-centers.js.map +1 -1
- package/resources/help-center/help-centers.mjs +43 -43
- package/resources/help-center/help-centers.mjs.map +1 -1
- package/resources/help-center/index.d.mts +4 -4
- package/resources/help-center/index.d.mts.map +1 -1
- package/resources/help-center/index.d.ts +4 -4
- package/resources/help-center/index.d.ts.map +1 -1
- package/resources/help-center/index.js.map +1 -1
- package/resources/help-center/index.mjs.map +1 -1
- package/resources/help-center/redirect-rules.d.mts +117 -117
- package/resources/help-center/redirect-rules.d.mts.map +1 -1
- package/resources/help-center/redirect-rules.d.ts +117 -117
- package/resources/help-center/redirect-rules.d.ts.map +1 -1
- package/resources/help-center/redirect-rules.js +112 -112
- package/resources/help-center/redirect-rules.js.map +1 -1
- package/resources/help-center/redirect-rules.mjs +112 -112
- package/resources/help-center/redirect-rules.mjs.map +1 -1
- package/resources/help-center.d.mts.map +1 -1
- package/resources/help-center.d.ts.map +1 -1
- package/resources/help-center.mjs.map +1 -1
- package/resources/index.d.mts +6 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization/admins.d.mts +33 -23
- package/resources/organization/admins.d.mts.map +1 -1
- package/resources/organization/admins.d.ts +33 -23
- package/resources/organization/admins.d.ts.map +1 -1
- package/resources/organization/admins.js +27 -25
- package/resources/organization/admins.js.map +1 -1
- package/resources/organization/admins.mjs +27 -25
- package/resources/organization/admins.mjs.map +1 -1
- package/resources/organization/brands.d.mts +50 -50
- package/resources/organization/brands.d.mts.map +1 -1
- package/resources/organization/brands.d.ts +50 -50
- package/resources/organization/brands.d.ts.map +1 -1
- package/resources/organization/brands.js +54 -54
- package/resources/organization/brands.js.map +1 -1
- package/resources/organization/brands.mjs +54 -54
- package/resources/organization/brands.mjs.map +1 -1
- package/resources/organization/index.d.mts +3 -3
- package/resources/organization/index.d.mts.map +1 -1
- package/resources/organization/index.d.ts +3 -3
- package/resources/organization/index.d.ts.map +1 -1
- package/resources/organization/index.mjs.map +1 -1
- package/resources/organization/organization.d.mts +3 -3
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +3 -3
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/organization/teams.d.mts +45 -45
- package/resources/organization/teams.d.mts.map +1 -1
- package/resources/organization/teams.d.ts +45 -45
- package/resources/organization/teams.d.ts.map +1 -1
- package/resources/organization/teams.js +44 -44
- package/resources/organization/teams.js.map +1 -1
- package/resources/organization/teams.mjs +44 -44
- package/resources/organization/teams.mjs.map +1 -1
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts.map +1 -1
- package/resources/organization.mjs.map +1 -1
- package/resources/reports.d.mts +641 -0
- package/resources/reports.d.mts.map +1 -0
- package/resources/reports.d.ts +641 -0
- package/resources/reports.d.ts.map +1 -0
- package/resources/reports.js +238 -0
- package/resources/reports.js.map +1 -0
- package/resources/reports.mjs +234 -0
- package/resources/reports.mjs.map +1 -0
- package/resources/support/conversation-tags.d.mts +40 -40
- package/resources/support/conversation-tags.d.mts.map +1 -1
- package/resources/support/conversation-tags.d.ts +40 -40
- package/resources/support/conversation-tags.d.ts.map +1 -1
- package/resources/support/conversation-tags.js +32 -32
- package/resources/support/conversation-tags.js.map +1 -1
- package/resources/support/conversation-tags.mjs +32 -32
- package/resources/support/conversation-tags.mjs.map +1 -1
- package/resources/support/conversations/conversations.d.mts +599 -705
- package/resources/support/conversations/conversations.d.mts.map +1 -1
- package/resources/support/conversations/conversations.d.ts +599 -705
- package/resources/support/conversations/conversations.d.ts.map +1 -1
- package/resources/support/conversations/conversations.js +289 -288
- package/resources/support/conversations/conversations.js.map +1 -1
- package/resources/support/conversations/conversations.mjs +289 -288
- package/resources/support/conversations/conversations.mjs.map +1 -1
- package/resources/support/conversations/index.d.mts +1 -1
- package/resources/support/conversations/index.d.mts.map +1 -1
- package/resources/support/conversations/index.d.ts +1 -1
- package/resources/support/conversations/index.d.ts.map +1 -1
- package/resources/support/conversations/index.js.map +1 -1
- package/resources/support/conversations/index.mjs.map +1 -1
- package/resources/support/conversations/participants.d.mts.map +1 -1
- package/resources/support/conversations/participants.d.ts.map +1 -1
- package/resources/support/conversations/participants.mjs.map +1 -1
- package/resources/support/conversations.d.mts.map +1 -1
- package/resources/support/conversations.d.ts.map +1 -1
- package/resources/support/conversations.mjs.map +1 -1
- package/resources/support/index.d.mts +3 -3
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +3 -3
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/index.js.map +1 -1
- package/resources/support/index.mjs.map +1 -1
- package/resources/support/support.d.mts +4 -4
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +4 -4
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/support.js.map +1 -1
- package/resources/support/support.mjs.map +1 -1
- package/resources/support/tickets/categories.d.mts +18 -18
- package/resources/support/tickets/categories.d.mts.map +1 -1
- package/resources/support/tickets/categories.d.ts +18 -18
- package/resources/support/tickets/categories.d.ts.map +1 -1
- package/resources/support/tickets/categories.js +25 -25
- package/resources/support/tickets/categories.js.map +1 -1
- package/resources/support/tickets/categories.mjs +25 -25
- package/resources/support/tickets/categories.mjs.map +1 -1
- package/resources/support/tickets/custom-fields.d.mts +20 -20
- package/resources/support/tickets/custom-fields.d.mts.map +1 -1
- package/resources/support/tickets/custom-fields.d.ts +20 -20
- package/resources/support/tickets/custom-fields.d.ts.map +1 -1
- package/resources/support/tickets/custom-fields.js +19 -19
- package/resources/support/tickets/custom-fields.js.map +1 -1
- package/resources/support/tickets/custom-fields.mjs +19 -19
- package/resources/support/tickets/custom-fields.mjs.map +1 -1
- package/resources/support/tickets/index.d.mts +4 -4
- package/resources/support/tickets/index.d.mts.map +1 -1
- package/resources/support/tickets/index.d.ts +4 -4
- package/resources/support/tickets/index.d.ts.map +1 -1
- package/resources/support/tickets/index.mjs.map +1 -1
- package/resources/support/tickets/statuses.d.mts +17 -17
- package/resources/support/tickets/statuses.d.mts.map +1 -1
- package/resources/support/tickets/statuses.d.ts +17 -17
- package/resources/support/tickets/statuses.d.ts.map +1 -1
- package/resources/support/tickets/statuses.js +21 -21
- package/resources/support/tickets/statuses.js.map +1 -1
- package/resources/support/tickets/statuses.mjs +21 -21
- package/resources/support/tickets/statuses.mjs.map +1 -1
- package/resources/support/tickets/tickets.d.mts +69 -69
- package/resources/support/tickets/tickets.d.mts.map +1 -1
- package/resources/support/tickets/tickets.d.ts +69 -69
- package/resources/support/tickets/tickets.d.ts.map +1 -1
- package/resources/support/tickets/tickets.js +44 -44
- package/resources/support/tickets/tickets.js.map +1 -1
- package/resources/support/tickets/tickets.mjs +44 -44
- package/resources/support/tickets/tickets.mjs.map +1 -1
- package/resources/support/tickets.d.mts.map +1 -1
- package/resources/support/tickets.d.ts.map +1 -1
- package/resources/support/tickets.mjs.map +1 -1
- package/resources/support.d.mts.map +1 -1
- package/resources/support.d.ts.map +1 -1
- package/resources/support.mjs.map +1 -1
- package/resources/surveys.d.mts +41 -41
- package/resources/surveys.d.mts.map +1 -1
- package/resources/surveys.d.ts +41 -41
- package/resources/surveys.d.ts.map +1 -1
- package/resources/surveys.js +44 -44
- package/resources/surveys.js.map +1 -1
- package/resources/surveys.mjs +44 -44
- package/resources/surveys.mjs.map +1 -1
- package/resources/users/companies/companies.d.mts +116 -157
- package/resources/users/companies/companies.d.mts.map +1 -1
- package/resources/users/companies/companies.d.ts +116 -157
- package/resources/users/companies/companies.d.ts.map +1 -1
- package/resources/users/companies/companies.js +125 -125
- package/resources/users/companies/companies.js.map +1 -1
- package/resources/users/companies/companies.mjs +125 -125
- package/resources/users/companies/companies.mjs.map +1 -1
- package/resources/users/companies/contacts.d.mts.map +1 -1
- package/resources/users/companies/contacts.d.ts.map +1 -1
- package/resources/users/companies/contacts.mjs.map +1 -1
- package/resources/users/companies/index.d.mts +1 -1
- package/resources/users/companies/index.d.mts.map +1 -1
- package/resources/users/companies/index.d.ts +1 -1
- package/resources/users/companies/index.d.ts.map +1 -1
- package/resources/users/companies/index.mjs.map +1 -1
- package/resources/users/companies.d.mts.map +1 -1
- package/resources/users/companies.d.ts.map +1 -1
- package/resources/users/companies.mjs.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.mjs.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.mjs.map +1 -1
- package/resources/users/contacts/by-user-id/index.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/index.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/index.mjs.map +1 -1
- package/resources/users/contacts/by-user-id.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id.mjs.map +1 -1
- package/resources/users/contacts/contacts.d.mts +196 -235
- package/resources/users/contacts/contacts.d.mts.map +1 -1
- package/resources/users/contacts/contacts.d.ts +196 -235
- package/resources/users/contacts/contacts.d.ts.map +1 -1
- package/resources/users/contacts/contacts.js +186 -184
- package/resources/users/contacts/contacts.js.map +1 -1
- package/resources/users/contacts/contacts.mjs +186 -184
- package/resources/users/contacts/contacts.mjs.map +1 -1
- package/resources/users/contacts/email-preferences.d.mts.map +1 -1
- package/resources/users/contacts/email-preferences.d.ts.map +1 -1
- package/resources/users/contacts/email-preferences.mjs.map +1 -1
- package/resources/users/contacts/index.d.mts +1 -1
- package/resources/users/contacts/index.d.mts.map +1 -1
- package/resources/users/contacts/index.d.ts +1 -1
- package/resources/users/contacts/index.d.ts.map +1 -1
- package/resources/users/contacts/index.mjs.map +1 -1
- package/resources/users/contacts.d.mts.map +1 -1
- package/resources/users/contacts.d.ts.map +1 -1
- package/resources/users/contacts.mjs.map +1 -1
- package/resources/users/index.d.mts +2 -2
- package/resources/users/index.d.mts.map +1 -1
- package/resources/users/index.d.ts +2 -2
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/users.d.mts +2 -2
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +2 -2
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.mjs.map +1 -1
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts.map +1 -1
- package/resources/users.mjs.map +1 -1
- package/resources/webhooks.d.mts +80 -78
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +80 -78
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +79 -77
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +79 -77
- package/resources/webhooks.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +98 -4
- package/src/resources/audit-logs.ts +607 -0
- package/src/resources/changelogs/changelogs.ts +170 -170
- package/src/resources/changelogs/index.ts +1 -1
- package/src/resources/conversation-attributes.ts +181 -0
- package/src/resources/feedback/boards.ts +28 -28
- package/src/resources/feedback/comments.ts +153 -226
- package/src/resources/feedback/custom-fields.ts +44 -44
- package/src/resources/feedback/feedback.ts +19 -5
- package/src/resources/feedback/index.ts +12 -5
- package/src/resources/feedback/post-statuses.ts +31 -31
- package/src/resources/feedback/posts/index.ts +7 -1
- package/src/resources/feedback/posts/posts.ts +230 -311
- package/src/resources/help-center/articles.ts +123 -186
- package/src/resources/help-center/collections.ts +84 -84
- package/src/resources/help-center/help-center.ts +7 -5
- package/src/resources/help-center/help-centers.ts +55 -55
- package/src/resources/help-center/index.ts +6 -5
- package/src/resources/help-center/redirect-rules.ts +174 -174
- package/src/resources/index.ts +37 -3
- package/src/resources/organization/admins.ts +45 -33
- package/src/resources/organization/brands.ts +66 -66
- package/src/resources/organization/index.ts +3 -3
- package/src/resources/organization/organization.ts +3 -3
- package/src/resources/organization/teams.ts +52 -52
- package/src/resources/reports.ts +908 -0
- package/src/resources/support/conversation-tags.ts +59 -59
- package/src/resources/support/conversations/conversations.ts +723 -850
- package/src/resources/support/conversations/index.ts +11 -6
- package/src/resources/support/index.ts +14 -9
- package/src/resources/support/support.ts +21 -11
- package/src/resources/support/tickets/categories.ts +33 -33
- package/src/resources/support/tickets/custom-fields.ts +27 -27
- package/src/resources/support/tickets/index.ts +4 -4
- package/src/resources/support/tickets/statuses.ts +29 -29
- package/src/resources/support/tickets/tickets.ts +95 -95
- package/src/resources/surveys.ts +58 -58
- package/src/resources/users/companies/companies.ts +155 -204
- package/src/resources/users/companies/index.ts +2 -2
- package/src/resources/users/contacts/contacts.ts +235 -282
- package/src/resources/users/contacts/index.ts +3 -3
- package/src/resources/users/index.ts +5 -5
- package/src/resources/users/users.ts +5 -5
- package/src/resources/webhooks.ts +100 -95
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../core/pagination.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Audit logs provide a chronological record of significant admin actions in your organization. Use them for security auditing, compliance reporting, and tracking workspace changes.
|
|
6
|
+
*/
|
|
7
|
+
export declare class AuditLogs extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns a list of audit log events in your organization using cursor-based
|
|
10
|
+
* pagination (newest first).
|
|
11
|
+
*
|
|
12
|
+
* ### Query Parameters
|
|
13
|
+
*
|
|
14
|
+
* - `limit` - Number of events to return (1-100, default 10)
|
|
15
|
+
* - `cursor` - Cursor from a previous response for pagination
|
|
16
|
+
* - `action` - Filter by action type (e.g. `webhook.deleted`,
|
|
17
|
+
* `security.sso_enabled`)
|
|
18
|
+
* - `domain` - Filter by domain/category (e.g. `security`, `messenger`)
|
|
19
|
+
* - `startDate` - Filter events created on or after this ISO 8601 datetime
|
|
20
|
+
* - `endDate` - Filter events created on or before this ISO 8601 datetime
|
|
21
|
+
*
|
|
22
|
+
* ### Filtering by Action
|
|
23
|
+
*
|
|
24
|
+
* The `action` parameter filters by event type. Each action follows the
|
|
25
|
+
* `{domain}.{verb}` convention. See the `action` enum in this schema for the full
|
|
26
|
+
* list of supported values.
|
|
27
|
+
*
|
|
28
|
+
* **Examples:**
|
|
29
|
+
*
|
|
30
|
+
* - `?action=security.sso_enabled` — only SSO enablement events
|
|
31
|
+
* - `?action=webhook.deleted` — only webhook deletion events
|
|
32
|
+
*
|
|
33
|
+
* ### Filtering by Domain
|
|
34
|
+
*
|
|
35
|
+
* Use the `domain` parameter to narrow results to one category of audit event.
|
|
36
|
+
*
|
|
37
|
+
* **Examples:**
|
|
38
|
+
*
|
|
39
|
+
* - `?domain=security` — only security-related audit events
|
|
40
|
+
* - `?domain=messenger` — only messenger-related audit events
|
|
41
|
+
*
|
|
42
|
+
* ### Filtering by Date Range
|
|
43
|
+
*
|
|
44
|
+
* Use `startDate` and `endDate` together or individually to narrow results to a
|
|
45
|
+
* time window.
|
|
46
|
+
*
|
|
47
|
+
* **Examples:**
|
|
48
|
+
*
|
|
49
|
+
* - `?startDate=2025-01-01T00:00:00Z&endDate=2025-01-31T23:59:59Z` — January 2025
|
|
50
|
+
* only
|
|
51
|
+
* - `?startDate=2025-06-01T00:00:00Z` — from June 1st onward
|
|
52
|
+
*
|
|
53
|
+
* ### Pagination
|
|
54
|
+
*
|
|
55
|
+
* Results are ordered by `createdAt` descending (newest first). Use the
|
|
56
|
+
* `nextCursor` value from each response as the `cursor` parameter in the next
|
|
57
|
+
* request to paginate forward.
|
|
58
|
+
*
|
|
59
|
+
* ```
|
|
60
|
+
* GET /v2/audit-logs?limit=20
|
|
61
|
+
* → { "nextCursor": "eyJ..." }
|
|
62
|
+
*
|
|
63
|
+
* GET /v2/audit-logs?limit=20&cursor=eyJ...
|
|
64
|
+
* → { "nextCursor": null } ← no more results
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* ### Metadata
|
|
68
|
+
*
|
|
69
|
+
* The `metadata` field contains event-specific details (e.g. before/after state
|
|
70
|
+
* for updates). Its shape depends on the `action` type and is not strictly modeled
|
|
71
|
+
* in the schema — treat it as a free-form object.
|
|
72
|
+
*
|
|
73
|
+
* ### Response Format
|
|
74
|
+
*
|
|
75
|
+
* Returns a list object with:
|
|
76
|
+
*
|
|
77
|
+
* - `object` - Always `"list"`
|
|
78
|
+
* - `data` - Array of audit log objects
|
|
79
|
+
* - `nextCursor` - Cursor for the next page, or `null` if no more results
|
|
80
|
+
*
|
|
81
|
+
* ### Audit Log Object
|
|
82
|
+
*
|
|
83
|
+
* Each audit log includes:
|
|
84
|
+
*
|
|
85
|
+
* - `id` - Unique event identifier (UUID)
|
|
86
|
+
* - `correlationId` - Groups related events from a single operation (e.g. bulk
|
|
87
|
+
* import)
|
|
88
|
+
* - `action` - What happened (e.g. `webhook.deleted`)
|
|
89
|
+
* - `domain` - Category the action belongs to (e.g. `integrations`)
|
|
90
|
+
* - `description` - Human-readable description
|
|
91
|
+
* - `actor` - Who performed the action (id, type, email, name, apiKey)
|
|
92
|
+
* - `resource` - What was affected (type, id, name)
|
|
93
|
+
* - `request` - Request context (ipAddress, userAgent)
|
|
94
|
+
* - `metadata` - Event-specific payload
|
|
95
|
+
* - `createdAt` - When the event occurred
|
|
96
|
+
*
|
|
97
|
+
* ### Version Availability
|
|
98
|
+
*
|
|
99
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
100
|
+
*/
|
|
101
|
+
list(params?: AuditLogListParams | null | undefined, options?: RequestOptions): PagePromise<AuditLogListResponsesCursorPage, AuditLogListResponse>;
|
|
102
|
+
}
|
|
103
|
+
export type AuditLogListResponsesCursorPage = CursorPage<AuditLogListResponse>;
|
|
104
|
+
export interface AuditLogListResponse {
|
|
105
|
+
/**
|
|
106
|
+
* Unique event identifier
|
|
107
|
+
*/
|
|
108
|
+
id: string;
|
|
109
|
+
/**
|
|
110
|
+
* The type of action that was performed
|
|
111
|
+
*/
|
|
112
|
+
action: 'auth.login' | 'auth.logout' | 'auth.login_failed' | 'auth.password_reset_requested' | 'auth.password_changed' | 'auth.mfa_enabled' | 'auth.mfa_disabled' | 'auth.sso_login' | 'auth.password_reset_completed' | 'auth.unauthorized_method' | 'auth.recovery_code_regenerated' | 'auth.sso_enforcement_blocked' | 'auth.sso_enforcement_session_invalidated' | 'auth.managed_account_link_blocked' | 'auth.cross_org_invite_accepted' | 'auth.sso_enforcement_shadow' | 'teammate.invited' | 'teammate.joined' | 'teammate.removed' | 'teammate.email_changed' | 'teammate.name_changed' | 'teammate.seat_changed' | 'teammate.deactivated' | 'teammate.invite_changed' | 'teammate.invite_deleted' | 'teammate.scim_provisioned' | 'teammate.scim_deprovisioned' | 'teammate.scim_unlinked' | 'teammate.scim_relinked' | 'teammate.scim_operation_blocked' | 'teammate.scim_seat_capacity_blocked' | 'teammate.scim_email_updated' | 'teammate.scim_exclusion_list_updated' | 'teammate.restored' | 'teammate.scim_restored' | 'teammate.scim_auto_claimed' | 'teammate.scim_claim_role_preserved' | 'teammate.permanently_removed' | 'member.role_changed' | 'organization.owner_transferred' | 'article.created' | 'article.updated' | 'article.published' | 'article.unpublished' | 'article.deleted' | 'changelog.created' | 'changelog.published' | 'changelog.deleted' | 'changelog.unpublished' | 'settings.name_changed' | 'settings.branding_updated' | 'settings.custom_domain_changed' | 'settings.language_changed' | 'settings.timezone_changed' | 'settings.email_settings_changed' | 'settings.help_center_updated' | 'settings.moderation_changed' | 'settings.voting_changed' | 'settings.statuses_updated' | 'settings.boards_updated' | 'settings.privacy_changed' | 'settings.subdomain_changed' | 'settings.subdomain_change_requested' | 'settings.grace_period_changed' | 'security.scim_override_blocked' | 'security.sso_enabled' | 'security.sso_disabled' | 'security.sso_configured' | 'security.sso_jit_provisioning_blocked' | 'security.directory_sync_enabled' | 'security.directory_sync_disabled' | 'security.directory_sync_reconciled' | 'security.two_factor_enforced' | 'security.auth_method_changed' | 'security.ip_allowlist_changed' | 'security.ip_allowlist_blocked' | 'security.identity_verification_changed' | 'security.sso_url_changed' | 'security.sso_jit_provisioning_changed' | 'security.sso_enforcement_enabled' | 'security.sso_enforcement_disabled' | 'security.dsync_group_mappings_changed' | 'security.dsync_mapping_priority_changed' | 'security.user_banned' | 'security.user_unbanned' | 'integration.installed' | 'integration.uninstalled' | 'integration.configured' | 'webhook.created' | 'webhook.updated' | 'webhook.deleted' | 'webhook.secret_rotated' | 'api_key.created' | 'api_key.regenerated' | 'api_key.deleted' | 'organization.deletion_scheduled' | 'organization.deletion_cancelled' | 'data.export_initiated' | 'data.import_initiated' | 'data.bulk_delete' | 'data.user_data_deleted' | 'data.csv_exported' | 'billing.plan_changed' | 'billing.plan_cancelled' | 'billing.seat_limit_changed' | 'billing.seat_activated' | 'workflow.created' | 'workflow.activated' | 'workflow.deactivated' | 'workflow.deleted' | 'workflow.updated' | 'messenger.look_and_feel_changed' | 'messenger.spaces_changed' | 'messenger.language_changed' | 'messenger.platform_availability_changed' | 'messenger.search_browse_changed' | 'messenger.email_collection_changed' | 'messenger.welcome_message_changed' | 'messenger.launcher_changed' | 'messenger.inbound_conversations_changed' | 'messenger.office_hours_changed' | 'messenger.identity_verification_changed' | 'messenger.privacy_policy_changed' | 'brand.created' | 'brand.updated' | 'brand.deleted' | 'brand.messenger_look_and_feel_changed' | 'brand.messenger_launcher_changed' | 'brand.messenger_welcome_message_changed' | 'brand.messenger_privacy_policy_changed' | 'brand.default_changed' | 'ai_agent.enabled' | 'ai_agent.disabled' | 'ai_agent.identity_changed' | 'ai_agent.customization_changed' | 'ai_agent.guidance_changed' | 'ai_agent.multilingual_changed' | 'ai_agent.data_context_changed' | 'email.sending_address_created' | 'email.sending_address_updated' | 'email.sending_address_deleted' | 'email.domain_registered' | 'email.domain_deleted' | 'email.reply_to_changed' | 'email.ignored_address_added' | 'email.ignored_address_removed';
|
|
113
|
+
actor: AuditLogListResponse.Actor;
|
|
114
|
+
/**
|
|
115
|
+
* Groups related events from a single operation (e.g. bulk import)
|
|
116
|
+
*/
|
|
117
|
+
correlationId: string | null;
|
|
118
|
+
/**
|
|
119
|
+
* ISO 8601 timestamp of when the event occurred
|
|
120
|
+
*/
|
|
121
|
+
createdAt: string;
|
|
122
|
+
/**
|
|
123
|
+
* Pre-rendered human-readable description of the event
|
|
124
|
+
*/
|
|
125
|
+
description: string;
|
|
126
|
+
/**
|
|
127
|
+
* The domain/category the action belongs to
|
|
128
|
+
*/
|
|
129
|
+
domain: 'authentication' | 'team_management' | 'permissions' | 'articles' | 'changelog' | 'workspace_settings' | 'security' | 'integrations' | 'data_management' | 'billing' | 'workflows' | 'messenger' | 'brands' | 'ai_agent' | 'email_config';
|
|
130
|
+
/**
|
|
131
|
+
* Event-specific payload with before/after state when applicable. The shape of
|
|
132
|
+
* this object depends on the action type.
|
|
133
|
+
*/
|
|
134
|
+
metadata: {
|
|
135
|
+
[key: string]: unknown;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Object type identifier
|
|
139
|
+
*/
|
|
140
|
+
object: 'audit_log';
|
|
141
|
+
request: AuditLogListResponse.Request;
|
|
142
|
+
resource: AuditLogListResponse.Resource;
|
|
143
|
+
}
|
|
144
|
+
export declare namespace AuditLogListResponse {
|
|
145
|
+
interface Actor {
|
|
146
|
+
/**
|
|
147
|
+
* Featurebase user ID of the actor, or null for system actors
|
|
148
|
+
*/
|
|
149
|
+
id: string | null;
|
|
150
|
+
/**
|
|
151
|
+
* API key that authenticated the request, or null for dashboard sessions
|
|
152
|
+
*/
|
|
153
|
+
apiKey: Actor.APIKey | null;
|
|
154
|
+
/**
|
|
155
|
+
* Email address of the actor
|
|
156
|
+
*/
|
|
157
|
+
email: string;
|
|
158
|
+
/**
|
|
159
|
+
* Display name of the actor
|
|
160
|
+
*/
|
|
161
|
+
name: string | null;
|
|
162
|
+
/**
|
|
163
|
+
* The type of actor that performed the action
|
|
164
|
+
*/
|
|
165
|
+
type: 'admin' | 'system' | 'api_key' | 'integration';
|
|
166
|
+
}
|
|
167
|
+
namespace Actor {
|
|
168
|
+
/**
|
|
169
|
+
* API key that authenticated the request, or null for dashboard sessions
|
|
170
|
+
*/
|
|
171
|
+
interface APIKey {
|
|
172
|
+
/**
|
|
173
|
+
* API key ID
|
|
174
|
+
*/
|
|
175
|
+
id: string;
|
|
176
|
+
/**
|
|
177
|
+
* API key name
|
|
178
|
+
*/
|
|
179
|
+
name: string;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
interface Request {
|
|
183
|
+
/**
|
|
184
|
+
* IP address the request originated from
|
|
185
|
+
*/
|
|
186
|
+
ipAddress: string | null;
|
|
187
|
+
/**
|
|
188
|
+
* User-Agent header from the request
|
|
189
|
+
*/
|
|
190
|
+
userAgent: string | null;
|
|
191
|
+
}
|
|
192
|
+
interface Resource {
|
|
193
|
+
/**
|
|
194
|
+
* ID of the affected resource, or null for organization-level events
|
|
195
|
+
*/
|
|
196
|
+
id: string | null;
|
|
197
|
+
/**
|
|
198
|
+
* Display name of the affected resource
|
|
199
|
+
*/
|
|
200
|
+
name: string | null;
|
|
201
|
+
/**
|
|
202
|
+
* Type of the affected resource
|
|
203
|
+
*/
|
|
204
|
+
type: string;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
export interface AuditLogListParams extends CursorPageParams {
|
|
208
|
+
/**
|
|
209
|
+
* Query param: Filter audit logs by action type
|
|
210
|
+
*/
|
|
211
|
+
action?: 'auth.login' | 'auth.logout' | 'auth.login_failed' | 'auth.password_reset_requested' | 'auth.password_changed' | 'auth.mfa_enabled' | 'auth.mfa_disabled' | 'auth.sso_login' | 'auth.password_reset_completed' | 'auth.unauthorized_method' | 'auth.recovery_code_regenerated' | 'auth.sso_enforcement_blocked' | 'auth.sso_enforcement_session_invalidated' | 'auth.managed_account_link_blocked' | 'auth.cross_org_invite_accepted' | 'auth.sso_enforcement_shadow' | 'teammate.invited' | 'teammate.joined' | 'teammate.removed' | 'teammate.email_changed' | 'teammate.name_changed' | 'teammate.seat_changed' | 'teammate.deactivated' | 'teammate.invite_changed' | 'teammate.invite_deleted' | 'teammate.scim_provisioned' | 'teammate.scim_deprovisioned' | 'teammate.scim_unlinked' | 'teammate.scim_relinked' | 'teammate.scim_operation_blocked' | 'teammate.scim_seat_capacity_blocked' | 'teammate.scim_email_updated' | 'teammate.scim_exclusion_list_updated' | 'teammate.restored' | 'teammate.scim_restored' | 'teammate.scim_auto_claimed' | 'teammate.scim_claim_role_preserved' | 'teammate.permanently_removed' | 'member.role_changed' | 'organization.owner_transferred' | 'article.created' | 'article.updated' | 'article.published' | 'article.unpublished' | 'article.deleted' | 'changelog.created' | 'changelog.published' | 'changelog.deleted' | 'changelog.unpublished' | 'settings.name_changed' | 'settings.branding_updated' | 'settings.custom_domain_changed' | 'settings.language_changed' | 'settings.timezone_changed' | 'settings.email_settings_changed' | 'settings.help_center_updated' | 'settings.moderation_changed' | 'settings.voting_changed' | 'settings.statuses_updated' | 'settings.boards_updated' | 'settings.privacy_changed' | 'settings.subdomain_changed' | 'settings.subdomain_change_requested' | 'settings.grace_period_changed' | 'security.scim_override_blocked' | 'security.sso_enabled' | 'security.sso_disabled' | 'security.sso_configured' | 'security.sso_jit_provisioning_blocked' | 'security.directory_sync_enabled' | 'security.directory_sync_disabled' | 'security.directory_sync_reconciled' | 'security.two_factor_enforced' | 'security.auth_method_changed' | 'security.ip_allowlist_changed' | 'security.ip_allowlist_blocked' | 'security.identity_verification_changed' | 'security.sso_url_changed' | 'security.sso_jit_provisioning_changed' | 'security.sso_enforcement_enabled' | 'security.sso_enforcement_disabled' | 'security.dsync_group_mappings_changed' | 'security.dsync_mapping_priority_changed' | 'security.user_banned' | 'security.user_unbanned' | 'integration.installed' | 'integration.uninstalled' | 'integration.configured' | 'webhook.created' | 'webhook.updated' | 'webhook.deleted' | 'webhook.secret_rotated' | 'api_key.created' | 'api_key.regenerated' | 'api_key.deleted' | 'organization.deletion_scheduled' | 'organization.deletion_cancelled' | 'data.export_initiated' | 'data.import_initiated' | 'data.bulk_delete' | 'data.user_data_deleted' | 'data.csv_exported' | 'billing.plan_changed' | 'billing.plan_cancelled' | 'billing.seat_limit_changed' | 'billing.seat_activated' | 'workflow.created' | 'workflow.activated' | 'workflow.deactivated' | 'workflow.deleted' | 'workflow.updated' | 'messenger.look_and_feel_changed' | 'messenger.spaces_changed' | 'messenger.language_changed' | 'messenger.platform_availability_changed' | 'messenger.search_browse_changed' | 'messenger.email_collection_changed' | 'messenger.welcome_message_changed' | 'messenger.launcher_changed' | 'messenger.inbound_conversations_changed' | 'messenger.office_hours_changed' | 'messenger.identity_verification_changed' | 'messenger.privacy_policy_changed' | 'brand.created' | 'brand.updated' | 'brand.deleted' | 'brand.messenger_look_and_feel_changed' | 'brand.messenger_launcher_changed' | 'brand.messenger_welcome_message_changed' | 'brand.messenger_privacy_policy_changed' | 'brand.default_changed' | 'ai_agent.enabled' | 'ai_agent.disabled' | 'ai_agent.identity_changed' | 'ai_agent.customization_changed' | 'ai_agent.guidance_changed' | 'ai_agent.multilingual_changed' | 'ai_agent.data_context_changed' | 'email.sending_address_created' | 'email.sending_address_updated' | 'email.sending_address_deleted' | 'email.domain_registered' | 'email.domain_deleted' | 'email.reply_to_changed' | 'email.ignored_address_added' | 'email.ignored_address_removed';
|
|
212
|
+
/**
|
|
213
|
+
* Query param: Filter audit logs by domain/category
|
|
214
|
+
*/
|
|
215
|
+
domain?: 'authentication' | 'team_management' | 'permissions' | 'articles' | 'changelog' | 'workspace_settings' | 'security' | 'integrations' | 'data_management' | 'billing' | 'workflows' | 'messenger' | 'brands' | 'ai_agent' | 'email_config';
|
|
216
|
+
/**
|
|
217
|
+
* Query param: Filter events created on or before this ISO 8601 datetime
|
|
218
|
+
*/
|
|
219
|
+
endDate?: string | null;
|
|
220
|
+
/**
|
|
221
|
+
* Query param: Filter events created on or after this ISO 8601 datetime
|
|
222
|
+
*/
|
|
223
|
+
startDate?: string | null;
|
|
224
|
+
/**
|
|
225
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
226
|
+
* configured API version if not specified.
|
|
227
|
+
*/
|
|
228
|
+
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
229
|
+
}
|
|
230
|
+
export declare namespace AuditLogs {
|
|
231
|
+
export { type AuditLogListResponse as AuditLogListResponse, type AuditLogListResponsesCursorPage as AuditLogListResponsesCursorPage, type AuditLogListParams as AuditLogListParams, };
|
|
232
|
+
}
|
|
233
|
+
//# sourceMappingURL=audit-logs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-logs.d.ts","sourceRoot":"","sources":["../src/resources/audit-logs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,8BAA2B;AAEpF,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4FG;IACH,IAAI,CACF,MAAM,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,+BAA+B,EAAE,oBAAoB,CAAC;CAetE;AAED,MAAM,MAAM,+BAA+B,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAC;AAE/E,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM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,CAAC;IAE1B;;;OAGG;IACH,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;CACjE;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.AuditLogs = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../internal/headers.js");
|
|
8
|
+
/**
|
|
9
|
+
* Audit logs provide a chronological record of significant admin actions in your organization. Use them for security auditing, compliance reporting, and tracking workspace changes.
|
|
10
|
+
*/
|
|
11
|
+
class AuditLogs extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Returns a list of audit log events in your organization using cursor-based
|
|
14
|
+
* pagination (newest first).
|
|
15
|
+
*
|
|
16
|
+
* ### Query Parameters
|
|
17
|
+
*
|
|
18
|
+
* - `limit` - Number of events to return (1-100, default 10)
|
|
19
|
+
* - `cursor` - Cursor from a previous response for pagination
|
|
20
|
+
* - `action` - Filter by action type (e.g. `webhook.deleted`,
|
|
21
|
+
* `security.sso_enabled`)
|
|
22
|
+
* - `domain` - Filter by domain/category (e.g. `security`, `messenger`)
|
|
23
|
+
* - `startDate` - Filter events created on or after this ISO 8601 datetime
|
|
24
|
+
* - `endDate` - Filter events created on or before this ISO 8601 datetime
|
|
25
|
+
*
|
|
26
|
+
* ### Filtering by Action
|
|
27
|
+
*
|
|
28
|
+
* The `action` parameter filters by event type. Each action follows the
|
|
29
|
+
* `{domain}.{verb}` convention. See the `action` enum in this schema for the full
|
|
30
|
+
* list of supported values.
|
|
31
|
+
*
|
|
32
|
+
* **Examples:**
|
|
33
|
+
*
|
|
34
|
+
* - `?action=security.sso_enabled` — only SSO enablement events
|
|
35
|
+
* - `?action=webhook.deleted` — only webhook deletion events
|
|
36
|
+
*
|
|
37
|
+
* ### Filtering by Domain
|
|
38
|
+
*
|
|
39
|
+
* Use the `domain` parameter to narrow results to one category of audit event.
|
|
40
|
+
*
|
|
41
|
+
* **Examples:**
|
|
42
|
+
*
|
|
43
|
+
* - `?domain=security` — only security-related audit events
|
|
44
|
+
* - `?domain=messenger` — only messenger-related audit events
|
|
45
|
+
*
|
|
46
|
+
* ### Filtering by Date Range
|
|
47
|
+
*
|
|
48
|
+
* Use `startDate` and `endDate` together or individually to narrow results to a
|
|
49
|
+
* time window.
|
|
50
|
+
*
|
|
51
|
+
* **Examples:**
|
|
52
|
+
*
|
|
53
|
+
* - `?startDate=2025-01-01T00:00:00Z&endDate=2025-01-31T23:59:59Z` — January 2025
|
|
54
|
+
* only
|
|
55
|
+
* - `?startDate=2025-06-01T00:00:00Z` — from June 1st onward
|
|
56
|
+
*
|
|
57
|
+
* ### Pagination
|
|
58
|
+
*
|
|
59
|
+
* Results are ordered by `createdAt` descending (newest first). Use the
|
|
60
|
+
* `nextCursor` value from each response as the `cursor` parameter in the next
|
|
61
|
+
* request to paginate forward.
|
|
62
|
+
*
|
|
63
|
+
* ```
|
|
64
|
+
* GET /v2/audit-logs?limit=20
|
|
65
|
+
* → { "nextCursor": "eyJ..." }
|
|
66
|
+
*
|
|
67
|
+
* GET /v2/audit-logs?limit=20&cursor=eyJ...
|
|
68
|
+
* → { "nextCursor": null } ← no more results
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* ### Metadata
|
|
72
|
+
*
|
|
73
|
+
* The `metadata` field contains event-specific details (e.g. before/after state
|
|
74
|
+
* for updates). Its shape depends on the `action` type and is not strictly modeled
|
|
75
|
+
* in the schema — treat it as a free-form object.
|
|
76
|
+
*
|
|
77
|
+
* ### Response Format
|
|
78
|
+
*
|
|
79
|
+
* Returns a list object with:
|
|
80
|
+
*
|
|
81
|
+
* - `object` - Always `"list"`
|
|
82
|
+
* - `data` - Array of audit log objects
|
|
83
|
+
* - `nextCursor` - Cursor for the next page, or `null` if no more results
|
|
84
|
+
*
|
|
85
|
+
* ### Audit Log Object
|
|
86
|
+
*
|
|
87
|
+
* Each audit log includes:
|
|
88
|
+
*
|
|
89
|
+
* - `id` - Unique event identifier (UUID)
|
|
90
|
+
* - `correlationId` - Groups related events from a single operation (e.g. bulk
|
|
91
|
+
* import)
|
|
92
|
+
* - `action` - What happened (e.g. `webhook.deleted`)
|
|
93
|
+
* - `domain` - Category the action belongs to (e.g. `integrations`)
|
|
94
|
+
* - `description` - Human-readable description
|
|
95
|
+
* - `actor` - Who performed the action (id, type, email, name, apiKey)
|
|
96
|
+
* - `resource` - What was affected (type, id, name)
|
|
97
|
+
* - `request` - Request context (ipAddress, userAgent)
|
|
98
|
+
* - `metadata` - Event-specific payload
|
|
99
|
+
* - `createdAt` - When the event occurred
|
|
100
|
+
*
|
|
101
|
+
* ### Version Availability
|
|
102
|
+
*
|
|
103
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
104
|
+
*/
|
|
105
|
+
list(params = {}, options) {
|
|
106
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
107
|
+
return this._client.getAPIList('/v2/audit-logs', (pagination_1.CursorPage), {
|
|
108
|
+
query,
|
|
109
|
+
...options,
|
|
110
|
+
headers: (0, headers_1.buildHeaders)([
|
|
111
|
+
{
|
|
112
|
+
...(featurebaseVersion?.toString() != null ?
|
|
113
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
114
|
+
: undefined),
|
|
115
|
+
},
|
|
116
|
+
options?.headers,
|
|
117
|
+
]),
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.AuditLogs = AuditLogs;
|
|
122
|
+
//# sourceMappingURL=audit-logs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-logs.js","sourceRoot":"","sources":["../src/resources/audit-logs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAC/C,sDAAoF;AACpF,oDAAmD;AAGnD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4FG;IACH,IAAI,CACF,SAAgD,EAAE,EAClD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,uBAAgC,CAAA,EAAE;YACjF,KAAK;YACL,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;AAhHD,8BAgHC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { CursorPage } from "../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Audit logs provide a chronological record of significant admin actions in your organization. Use them for security auditing, compliance reporting, and tracking workspace changes.
|
|
7
|
+
*/
|
|
8
|
+
export class AuditLogs extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Returns a list of audit log events in your organization using cursor-based
|
|
11
|
+
* pagination (newest first).
|
|
12
|
+
*
|
|
13
|
+
* ### Query Parameters
|
|
14
|
+
*
|
|
15
|
+
* - `limit` - Number of events to return (1-100, default 10)
|
|
16
|
+
* - `cursor` - Cursor from a previous response for pagination
|
|
17
|
+
* - `action` - Filter by action type (e.g. `webhook.deleted`,
|
|
18
|
+
* `security.sso_enabled`)
|
|
19
|
+
* - `domain` - Filter by domain/category (e.g. `security`, `messenger`)
|
|
20
|
+
* - `startDate` - Filter events created on or after this ISO 8601 datetime
|
|
21
|
+
* - `endDate` - Filter events created on or before this ISO 8601 datetime
|
|
22
|
+
*
|
|
23
|
+
* ### Filtering by Action
|
|
24
|
+
*
|
|
25
|
+
* The `action` parameter filters by event type. Each action follows the
|
|
26
|
+
* `{domain}.{verb}` convention. See the `action` enum in this schema for the full
|
|
27
|
+
* list of supported values.
|
|
28
|
+
*
|
|
29
|
+
* **Examples:**
|
|
30
|
+
*
|
|
31
|
+
* - `?action=security.sso_enabled` — only SSO enablement events
|
|
32
|
+
* - `?action=webhook.deleted` — only webhook deletion events
|
|
33
|
+
*
|
|
34
|
+
* ### Filtering by Domain
|
|
35
|
+
*
|
|
36
|
+
* Use the `domain` parameter to narrow results to one category of audit event.
|
|
37
|
+
*
|
|
38
|
+
* **Examples:**
|
|
39
|
+
*
|
|
40
|
+
* - `?domain=security` — only security-related audit events
|
|
41
|
+
* - `?domain=messenger` — only messenger-related audit events
|
|
42
|
+
*
|
|
43
|
+
* ### Filtering by Date Range
|
|
44
|
+
*
|
|
45
|
+
* Use `startDate` and `endDate` together or individually to narrow results to a
|
|
46
|
+
* time window.
|
|
47
|
+
*
|
|
48
|
+
* **Examples:**
|
|
49
|
+
*
|
|
50
|
+
* - `?startDate=2025-01-01T00:00:00Z&endDate=2025-01-31T23:59:59Z` — January 2025
|
|
51
|
+
* only
|
|
52
|
+
* - `?startDate=2025-06-01T00:00:00Z` — from June 1st onward
|
|
53
|
+
*
|
|
54
|
+
* ### Pagination
|
|
55
|
+
*
|
|
56
|
+
* Results are ordered by `createdAt` descending (newest first). Use the
|
|
57
|
+
* `nextCursor` value from each response as the `cursor` parameter in the next
|
|
58
|
+
* request to paginate forward.
|
|
59
|
+
*
|
|
60
|
+
* ```
|
|
61
|
+
* GET /v2/audit-logs?limit=20
|
|
62
|
+
* → { "nextCursor": "eyJ..." }
|
|
63
|
+
*
|
|
64
|
+
* GET /v2/audit-logs?limit=20&cursor=eyJ...
|
|
65
|
+
* → { "nextCursor": null } ← no more results
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* ### Metadata
|
|
69
|
+
*
|
|
70
|
+
* The `metadata` field contains event-specific details (e.g. before/after state
|
|
71
|
+
* for updates). Its shape depends on the `action` type and is not strictly modeled
|
|
72
|
+
* in the schema — treat it as a free-form object.
|
|
73
|
+
*
|
|
74
|
+
* ### Response Format
|
|
75
|
+
*
|
|
76
|
+
* Returns a list object with:
|
|
77
|
+
*
|
|
78
|
+
* - `object` - Always `"list"`
|
|
79
|
+
* - `data` - Array of audit log objects
|
|
80
|
+
* - `nextCursor` - Cursor for the next page, or `null` if no more results
|
|
81
|
+
*
|
|
82
|
+
* ### Audit Log Object
|
|
83
|
+
*
|
|
84
|
+
* Each audit log includes:
|
|
85
|
+
*
|
|
86
|
+
* - `id` - Unique event identifier (UUID)
|
|
87
|
+
* - `correlationId` - Groups related events from a single operation (e.g. bulk
|
|
88
|
+
* import)
|
|
89
|
+
* - `action` - What happened (e.g. `webhook.deleted`)
|
|
90
|
+
* - `domain` - Category the action belongs to (e.g. `integrations`)
|
|
91
|
+
* - `description` - Human-readable description
|
|
92
|
+
* - `actor` - Who performed the action (id, type, email, name, apiKey)
|
|
93
|
+
* - `resource` - What was affected (type, id, name)
|
|
94
|
+
* - `request` - Request context (ipAddress, userAgent)
|
|
95
|
+
* - `metadata` - Event-specific payload
|
|
96
|
+
* - `createdAt` - When the event occurred
|
|
97
|
+
*
|
|
98
|
+
* ### Version Availability
|
|
99
|
+
*
|
|
100
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer.
|
|
101
|
+
*/
|
|
102
|
+
list(params = {}, options) {
|
|
103
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
104
|
+
return this._client.getAPIList('/v2/audit-logs', (CursorPage), {
|
|
105
|
+
query,
|
|
106
|
+
...options,
|
|
107
|
+
headers: buildHeaders([
|
|
108
|
+
{
|
|
109
|
+
...(featurebaseVersion?.toString() != null ?
|
|
110
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
111
|
+
: undefined),
|
|
112
|
+
},
|
|
113
|
+
options?.headers,
|
|
114
|
+
]),
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=audit-logs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-logs.mjs","sourceRoot":"","sources":["../src/resources/audit-logs.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAsC,+BAA2B;AACpF,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAGnD;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4FG;IACH,IAAI,CACF,SAAgD,EAAE,EAClD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,UAAgC,CAAA,EAAE;YACjF,KAAK;YACL,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"}
|