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/src/resources/reports.ts
CHANGED
|
@@ -10,6 +10,60 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
10
10
|
* 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.
|
|
11
11
|
*/
|
|
12
12
|
export class Reports extends APIResource {
|
|
13
|
+
/**
|
|
14
|
+
* Returns the paginated row-level records behind a metric — either the whole
|
|
15
|
+
* reporting window, or one specific data point from a previous
|
|
16
|
+
* `POST /v2/reports/query` response.
|
|
17
|
+
*
|
|
18
|
+
* Send the **same** `metric`, date range, `granularity`, `filters`, `groupBy` /
|
|
19
|
+
* `segmentBy` and `view` as the query you're drilling into, plus
|
|
20
|
+
* `dataPointFilters` selecting the data point:
|
|
21
|
+
*
|
|
22
|
+
* - `timeBucket` — a `date` from the time series
|
|
23
|
+
* - `timeSegmentValue` + `timeSegmentGranularity` — the selected bucket from a
|
|
24
|
+
* Segment-by-Time series
|
|
25
|
+
* - `groupValue` / `segmentValue` — a `group` / `segment` value from grouped data
|
|
26
|
+
* - `dayOfWeek` + `hourOfDay` — a heatmap cell (`hourly_heatmap` view)
|
|
27
|
+
* - `flowPathId` or `sourceNodeId` + `targetNodeId` — a flow edge (`sankey` view)
|
|
28
|
+
*
|
|
29
|
+
* Pass `dataPointFilters: {}` to list all rows behind the metric for the window.
|
|
30
|
+
*
|
|
31
|
+
* Results are paginated with `page` / `pageSize` (max 200 per page);
|
|
32
|
+
* `availableColumns` describes every column the dataset can return and
|
|
33
|
+
* `defaultColumnIds` the recommended subset. Rows are keyed by column ID; identity
|
|
34
|
+
* cells (teammates, contacts) are objects with `id` + `label`.
|
|
35
|
+
*
|
|
36
|
+
* ### Version Availability
|
|
37
|
+
*
|
|
38
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer, and
|
|
39
|
+
* only for workspaces with the Reports product enabled (404 otherwise).
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* const response = await client.reports.drillIn({
|
|
44
|
+
* endDate: '2026-07-15',
|
|
45
|
+
* granularity: 'day',
|
|
46
|
+
* metric: 'new_conversations',
|
|
47
|
+
* startDate: '2026-07-14',
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
drillIn(params: ReportDrillInParams, options?: RequestOptions): APIPromise<ReportDrillInResponse> {
|
|
52
|
+
const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
|
|
53
|
+
return this._client.post('/v2/reports/drill-in', {
|
|
54
|
+
body,
|
|
55
|
+
...options,
|
|
56
|
+
headers: buildHeaders([
|
|
57
|
+
{
|
|
58
|
+
...(featurebaseVersion?.toString() != null ?
|
|
59
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
60
|
+
: undefined),
|
|
61
|
+
},
|
|
62
|
+
options?.headers,
|
|
63
|
+
]),
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
|
|
13
67
|
/**
|
|
14
68
|
* Returns the reporting catalog: every dataset available to your workspace with
|
|
15
69
|
* its metrics and attributes.
|
|
@@ -57,6 +111,55 @@ export class Reports extends APIResource {
|
|
|
57
111
|
});
|
|
58
112
|
}
|
|
59
113
|
|
|
114
|
+
/**
|
|
115
|
+
* Returns the available values for a filterable attribute — use it to build valid
|
|
116
|
+
* `filters` rules for `POST /v2/reports/query`.
|
|
117
|
+
*
|
|
118
|
+
* Works for attributes whose values live in your workspace data (tags, teammates,
|
|
119
|
+
* teams, companies, plans, countries, ...). Attributes with `staticOptions` in the
|
|
120
|
+
* catalog don't need this endpoint — their value set is already inline.
|
|
121
|
+
*
|
|
122
|
+
* - `query` narrows results by search string
|
|
123
|
+
* - `selectedValues` resolves labels for values you already hold (returned
|
|
124
|
+
* alongside search results)
|
|
125
|
+
*
|
|
126
|
+
* ### Example
|
|
127
|
+
*
|
|
128
|
+
* ```json
|
|
129
|
+
* { "fieldId": "conversation.tags", "query": "bill", "limit": 20 }
|
|
130
|
+
* ```
|
|
131
|
+
*
|
|
132
|
+
* ### Version Availability
|
|
133
|
+
*
|
|
134
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer, and
|
|
135
|
+
* only for workspaces with the Reports product enabled (404 otherwise).
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* ```ts
|
|
139
|
+
* const response = await client.reports.lookupFilterValues({
|
|
140
|
+
* fieldId: 'conversation.tags',
|
|
141
|
+
* });
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
lookupFilterValues(
|
|
145
|
+
params: ReportLookupFilterValuesParams,
|
|
146
|
+
options?: RequestOptions,
|
|
147
|
+
): APIPromise<ReportLookupFilterValuesResponse> {
|
|
148
|
+
const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
|
|
149
|
+
return this._client.post('/v2/reports/filter-values', {
|
|
150
|
+
body,
|
|
151
|
+
...options,
|
|
152
|
+
headers: buildHeaders([
|
|
153
|
+
{
|
|
154
|
+
...(featurebaseVersion?.toString() != null ?
|
|
155
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
156
|
+
: undefined),
|
|
157
|
+
},
|
|
158
|
+
options?.headers,
|
|
159
|
+
]),
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
|
|
60
163
|
/**
|
|
61
164
|
* Executes an ad-hoc reporting query: one metric + aggregation over a date range,
|
|
62
165
|
* with optional filters, grouping, segmentation and period-over-period comparison.
|
|
@@ -69,7 +172,7 @@ export class Reports extends APIResource {
|
|
|
69
172
|
* `percentile: 95` for p95); rate metrics use `value`.
|
|
70
173
|
* 2. Set the reporting window with `startDate` / `endDate` (ISO 8601) and a
|
|
71
174
|
* `granularity` (`hour`, `day`, `week`, `month`) for the returned time series.
|
|
72
|
-
* Reporting data is available from **July
|
|
175
|
+
* Reporting data is available from **July 14, 2026**. Windows ending earlier
|
|
73
176
|
* are rejected; crossing windows are clamped to that boundary in the requested
|
|
74
177
|
* timezone.
|
|
75
178
|
* 3. Optionally narrow with `filters` — a rule
|
|
@@ -86,14 +189,19 @@ export class Reports extends APIResource {
|
|
|
86
189
|
* For high-cardinality breakdowns, cap the number of returned series:
|
|
87
190
|
*
|
|
88
191
|
* - `topValuesLimit` keeps only the top **N** `groupBy` values;
|
|
89
|
-
* `segmentTopValuesLimit` does the same for `segmentBy`.
|
|
90
|
-
*
|
|
91
|
-
* requires `
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
192
|
+
* `segmentTopValuesLimit` does the same for `segmentBy`. Both accept integers
|
|
193
|
+
* from **1 to 100**; the editor offers common presets plus a Custom value.
|
|
194
|
+
* `topValuesLimit` requires `groupBy`; `segmentTopValuesLimit` requires
|
|
195
|
+
* `segmentBy`.
|
|
196
|
+
* - For time-series segment breakdowns, members are ranked **inside each time
|
|
197
|
+
* bucket**. The response keeps the union of those bucket winners in its series
|
|
198
|
+
* catalog, while a member outside a bucket's Top N has a zero value in that
|
|
199
|
+
* bucket. This matches the chart's per-period ranking semantics. A comparison
|
|
200
|
+
* period is folded into the primary period's union of visible members so current
|
|
201
|
+
* and previous series keep the same identities.
|
|
202
|
+
* - For non-time-series grouped results, members are ranked over the full filtered
|
|
203
|
+
* primary range. A comparison period reuses the primary period's ranked set
|
|
204
|
+
* rather than independently changing the legend.
|
|
97
205
|
* - `showOther` / `segmentShowOther` append a single synthetic bucket with id
|
|
98
206
|
* `__other__` and label `Other` that sums every value outside the top set.
|
|
99
207
|
* Because the values are summed, Show Other is only supported for **additive
|
|
@@ -112,7 +220,7 @@ export class Reports extends APIResource {
|
|
|
112
220
|
* {
|
|
113
221
|
* "metric": "new_conversations",
|
|
114
222
|
* "aggregation": "count",
|
|
115
|
-
* "startDate": "2026-07-
|
|
223
|
+
* "startDate": "2026-07-14",
|
|
116
224
|
* "endDate": "2026-07-15",
|
|
117
225
|
* "granularity": "day",
|
|
118
226
|
* "groupBy": "conversation.channel",
|
|
@@ -152,7 +260,7 @@ export class Reports extends APIResource {
|
|
|
152
260
|
* endDate: '2026-07-15',
|
|
153
261
|
* granularity: 'day',
|
|
154
262
|
* metric: 'new_conversations',
|
|
155
|
-
* startDate: '2026-07-
|
|
263
|
+
* startDate: '2026-07-14',
|
|
156
264
|
* });
|
|
157
265
|
* ```
|
|
158
266
|
*/
|
|
@@ -171,107 +279,6 @@ export class Reports extends APIResource {
|
|
|
171
279
|
]),
|
|
172
280
|
});
|
|
173
281
|
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Returns the available values for a filterable attribute — use it to build valid
|
|
177
|
-
* `filters` rules for `POST /v2/reports/query`.
|
|
178
|
-
*
|
|
179
|
-
* Works for attributes whose values live in your workspace data (tags, teammates,
|
|
180
|
-
* teams, companies, plans, countries, ...). Attributes with `staticOptions` in the
|
|
181
|
-
* catalog don't need this endpoint — their value set is already inline.
|
|
182
|
-
*
|
|
183
|
-
* - `query` narrows results by search string
|
|
184
|
-
* - `selectedValues` resolves labels for values you already hold (returned
|
|
185
|
-
* alongside search results)
|
|
186
|
-
*
|
|
187
|
-
* ### Example
|
|
188
|
-
*
|
|
189
|
-
* ```json
|
|
190
|
-
* { "fieldId": "conversation.tags", "query": "bill", "limit": 20 }
|
|
191
|
-
* ```
|
|
192
|
-
*
|
|
193
|
-
* ### Version Availability
|
|
194
|
-
*
|
|
195
|
-
* This endpoint is only available in API version 2026-01-01.nova and newer, and
|
|
196
|
-
* only for workspaces with the Reports product enabled (404 otherwise).
|
|
197
|
-
*
|
|
198
|
-
* @example
|
|
199
|
-
* ```ts
|
|
200
|
-
* const response = await client.reports.lookupFilterValues({
|
|
201
|
-
* fieldId: 'conversation.tags',
|
|
202
|
-
* });
|
|
203
|
-
* ```
|
|
204
|
-
*/
|
|
205
|
-
lookupFilterValues(
|
|
206
|
-
params: ReportLookupFilterValuesParams,
|
|
207
|
-
options?: RequestOptions,
|
|
208
|
-
): APIPromise<ReportLookupFilterValuesResponse> {
|
|
209
|
-
const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
|
|
210
|
-
return this._client.post('/v2/reports/filter-values', {
|
|
211
|
-
body,
|
|
212
|
-
...options,
|
|
213
|
-
headers: buildHeaders([
|
|
214
|
-
{
|
|
215
|
-
...(featurebaseVersion?.toString() != null ?
|
|
216
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
217
|
-
: undefined),
|
|
218
|
-
},
|
|
219
|
-
options?.headers,
|
|
220
|
-
]),
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Returns the paginated row-level records behind a metric — either the whole
|
|
226
|
-
* reporting window, or one specific data point from a previous
|
|
227
|
-
* `POST /v2/reports/query` response.
|
|
228
|
-
*
|
|
229
|
-
* Send the **same** `metric`, date range, `granularity`, `filters`, `groupBy` /
|
|
230
|
-
* `segmentBy` and `view` as the query you're drilling into, plus
|
|
231
|
-
* `dataPointFilters` selecting the data point:
|
|
232
|
-
*
|
|
233
|
-
* - `timeBucket` — a `date` from the time series
|
|
234
|
-
* - `groupValue` / `segmentValue` — a `group` / `segment` value from grouped data
|
|
235
|
-
* - `dayOfWeek` + `hourOfDay` — a heatmap cell (`hourly_heatmap` view)
|
|
236
|
-
* - `flowPathId` or `sourceNodeId` + `targetNodeId` — a flow edge (`sankey` view)
|
|
237
|
-
*
|
|
238
|
-
* Pass `dataPointFilters: {}` to list all rows behind the metric for the window.
|
|
239
|
-
*
|
|
240
|
-
* Results are paginated with `page` / `pageSize` (max 200 per page);
|
|
241
|
-
* `availableColumns` describes every column the dataset can return and
|
|
242
|
-
* `defaultColumnIds` the recommended subset. Rows are keyed by column ID; identity
|
|
243
|
-
* cells (teammates, contacts) are objects with `id` + `label`.
|
|
244
|
-
*
|
|
245
|
-
* ### Version Availability
|
|
246
|
-
*
|
|
247
|
-
* This endpoint is only available in API version 2026-01-01.nova and newer, and
|
|
248
|
-
* only for workspaces with the Reports product enabled (404 otherwise).
|
|
249
|
-
*
|
|
250
|
-
* @example
|
|
251
|
-
* ```ts
|
|
252
|
-
* const response = await client.reports.drillIn({
|
|
253
|
-
* endDate: '2026-07-15',
|
|
254
|
-
* granularity: 'day',
|
|
255
|
-
* metric: 'new_conversations',
|
|
256
|
-
* startDate: '2026-07-12',
|
|
257
|
-
* });
|
|
258
|
-
* ```
|
|
259
|
-
*/
|
|
260
|
-
drillIn(params: ReportDrillInParams, options?: RequestOptions): APIPromise<ReportDrillInResponse> {
|
|
261
|
-
const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
|
|
262
|
-
return this._client.post('/v2/reports/drill-in', {
|
|
263
|
-
body,
|
|
264
|
-
...options,
|
|
265
|
-
headers: buildHeaders([
|
|
266
|
-
{
|
|
267
|
-
...(featurebaseVersion?.toString() != null ?
|
|
268
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
269
|
-
: undefined),
|
|
270
|
-
},
|
|
271
|
-
options?.headers,
|
|
272
|
-
]),
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
282
|
}
|
|
276
283
|
|
|
277
284
|
export interface ReportAttribute {
|
|
@@ -339,6 +346,38 @@ export interface ReportAttributeOption {
|
|
|
339
346
|
label: string;
|
|
340
347
|
|
|
341
348
|
value: string;
|
|
349
|
+
|
|
350
|
+
presentation?: ReportAttributeOption.Presentation;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export namespace ReportAttributeOption {
|
|
354
|
+
export interface Presentation {
|
|
355
|
+
kind:
|
|
356
|
+
| 'brand'
|
|
357
|
+
| 'company'
|
|
358
|
+
| 'country'
|
|
359
|
+
| 'knowledge_source'
|
|
360
|
+
| 'plain'
|
|
361
|
+
| 'sla'
|
|
362
|
+
| 'tag'
|
|
363
|
+
| 'team'
|
|
364
|
+
| 'teammate'
|
|
365
|
+
| 'ticket_category'
|
|
366
|
+
| 'ticket_state'
|
|
367
|
+
| 'ticket_type'
|
|
368
|
+
| 'user'
|
|
369
|
+
| 'workflow';
|
|
370
|
+
|
|
371
|
+
color?: string;
|
|
372
|
+
|
|
373
|
+
icon?: unknown;
|
|
374
|
+
|
|
375
|
+
iconSvg?: string;
|
|
376
|
+
|
|
377
|
+
imageUrl?: string;
|
|
378
|
+
|
|
379
|
+
secondaryLabel?: string;
|
|
380
|
+
}
|
|
342
381
|
}
|
|
343
382
|
|
|
344
383
|
export interface ReportDataset {
|
|
@@ -428,25 +467,53 @@ export interface ReportGroupedDatum {
|
|
|
428
467
|
|
|
429
468
|
groupLabel?: string;
|
|
430
469
|
|
|
470
|
+
identity?: ReportGroupedDatum.Identity;
|
|
471
|
+
|
|
431
472
|
previousValue?: number;
|
|
432
473
|
|
|
433
474
|
segments?: Array<ReportSegmentDatum>;
|
|
434
475
|
}
|
|
435
476
|
|
|
477
|
+
export namespace ReportGroupedDatum {
|
|
478
|
+
export interface Identity {
|
|
479
|
+
id: string;
|
|
480
|
+
|
|
481
|
+
kind: 'teammate' | 'team' | 'user' | 'company' | 'fibi';
|
|
482
|
+
|
|
483
|
+
label: string;
|
|
484
|
+
|
|
485
|
+
avatarUrl?: string;
|
|
486
|
+
|
|
487
|
+
color?: string;
|
|
488
|
+
|
|
489
|
+
website?: string;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
|
|
436
493
|
export interface ReportMetric {
|
|
437
494
|
/**
|
|
438
495
|
* Metric ID — use as `metric` in query requests.
|
|
439
496
|
*/
|
|
440
497
|
id: string;
|
|
441
498
|
|
|
499
|
+
algebra: ReportMetric.Algebra;
|
|
500
|
+
|
|
442
501
|
allowedAggregations: Array<
|
|
443
502
|
'count' | 'sum' | 'avg' | 'median' | 'min' | 'max' | 'range' | 'percentile' | 'value'
|
|
444
503
|
>;
|
|
445
504
|
|
|
505
|
+
definitionVersion: number;
|
|
506
|
+
|
|
446
507
|
description: string;
|
|
447
508
|
|
|
509
|
+
executionKind: 'pipe_aggregate' | 'pipe_computed_ratio';
|
|
510
|
+
|
|
448
511
|
name: string;
|
|
449
512
|
|
|
513
|
+
presentationFamily: 'count' | 'duration' | 'percentage' | 'decimal' | 'fibi' | 'ai';
|
|
514
|
+
|
|
515
|
+
releaseState: 'available' | 'unavailable';
|
|
516
|
+
|
|
450
517
|
/**
|
|
451
518
|
* Attribute IDs this specific metric accepts in filter expressions.
|
|
452
519
|
*/
|
|
@@ -472,6 +539,8 @@ export interface ReportMetric {
|
|
|
472
539
|
|
|
473
540
|
unit: 'count' | 'percentage' | 'duration_ms' | 'number';
|
|
474
541
|
|
|
542
|
+
availabilityReason?: string;
|
|
543
|
+
|
|
475
544
|
/**
|
|
476
545
|
* Local calendar date (ISO 8601) from which this specific metric has data, when it
|
|
477
546
|
* differs from the global reporting floor. Windows ending before this date are
|
|
@@ -484,6 +553,10 @@ export interface ReportMetric {
|
|
|
484
553
|
*/
|
|
485
554
|
isDefaultVariant?: boolean;
|
|
486
555
|
|
|
556
|
+
qualifiers?: Array<string>;
|
|
557
|
+
|
|
558
|
+
searchAliases?: Array<string>;
|
|
559
|
+
|
|
487
560
|
/**
|
|
488
561
|
* Metrics sharing a `variantGroupId` are timestamp variants of one logical metric
|
|
489
562
|
* (same display `name`); each measures the same population at a different
|
|
@@ -503,16 +576,40 @@ export interface ReportMetric {
|
|
|
503
576
|
variantLabel?: string;
|
|
504
577
|
}
|
|
505
578
|
|
|
579
|
+
export namespace ReportMetric {
|
|
580
|
+
export interface Algebra {
|
|
581
|
+
kind: 'direct_aggregate' | 'pipe_computed_ratio';
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
|
|
506
585
|
export interface ReportSegmentDatum {
|
|
507
586
|
segment: string;
|
|
508
587
|
|
|
509
588
|
value: number;
|
|
510
589
|
|
|
590
|
+
identity?: ReportSegmentDatum.Identity;
|
|
591
|
+
|
|
511
592
|
previousValue?: number;
|
|
512
593
|
|
|
513
594
|
segmentLabel?: string;
|
|
514
595
|
}
|
|
515
596
|
|
|
597
|
+
export namespace ReportSegmentDatum {
|
|
598
|
+
export interface Identity {
|
|
599
|
+
id: string;
|
|
600
|
+
|
|
601
|
+
kind: 'teammate' | 'team' | 'user' | 'company' | 'fibi';
|
|
602
|
+
|
|
603
|
+
label: string;
|
|
604
|
+
|
|
605
|
+
avatarUrl?: string;
|
|
606
|
+
|
|
607
|
+
color?: string;
|
|
608
|
+
|
|
609
|
+
website?: string;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
|
|
516
613
|
export interface ReportTimeSeriesDatum {
|
|
517
614
|
/**
|
|
518
615
|
* Time bucket start (ISO 8601).
|
|
@@ -666,6 +763,14 @@ export interface ReportLookupFilterValuesResponse {
|
|
|
666
763
|
data: Array<ReportAttributeOption>;
|
|
667
764
|
|
|
668
765
|
object: 'list';
|
|
766
|
+
|
|
767
|
+
lookupContextKey?: string;
|
|
768
|
+
|
|
769
|
+
nextCursor?: string;
|
|
770
|
+
|
|
771
|
+
truncated?: boolean;
|
|
772
|
+
|
|
773
|
+
unavailableSelectedValues?: Array<string>;
|
|
669
774
|
}
|
|
670
775
|
|
|
671
776
|
export interface ReportQueryResponse {
|
|
@@ -796,19 +901,41 @@ export namespace ReportQueryResponse {
|
|
|
796
901
|
export interface Cells {
|
|
797
902
|
display: string;
|
|
798
903
|
|
|
904
|
+
deltaPercent?: number;
|
|
905
|
+
|
|
799
906
|
denominator?: number;
|
|
800
907
|
|
|
908
|
+
identity?: Cells.Identity;
|
|
909
|
+
|
|
801
910
|
numerator?: number;
|
|
802
911
|
|
|
912
|
+
previousValue?: number;
|
|
913
|
+
|
|
803
914
|
raw?: unknown;
|
|
804
915
|
|
|
805
916
|
sortValue?: string | number | null;
|
|
806
917
|
|
|
807
918
|
value?: unknown;
|
|
808
919
|
}
|
|
809
|
-
}
|
|
810
920
|
|
|
811
|
-
|
|
921
|
+
export namespace Cells {
|
|
922
|
+
export interface Identity {
|
|
923
|
+
id: string;
|
|
924
|
+
|
|
925
|
+
kind: 'teammate' | 'team' | 'user' | 'company' | 'fibi';
|
|
926
|
+
|
|
927
|
+
label: string;
|
|
928
|
+
|
|
929
|
+
avatarUrl?: string;
|
|
930
|
+
|
|
931
|
+
color?: string;
|
|
932
|
+
|
|
933
|
+
website?: string;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
export interface Sort {
|
|
812
939
|
columnId: string;
|
|
813
940
|
|
|
814
941
|
direction: 'asc' | 'desc';
|
|
@@ -824,39 +951,46 @@ export namespace ReportQueryResponse {
|
|
|
824
951
|
export interface Cells {
|
|
825
952
|
display: string;
|
|
826
953
|
|
|
954
|
+
deltaPercent?: number;
|
|
955
|
+
|
|
827
956
|
denominator?: number;
|
|
828
957
|
|
|
958
|
+
identity?: Cells.Identity;
|
|
959
|
+
|
|
829
960
|
numerator?: number;
|
|
830
961
|
|
|
962
|
+
previousValue?: number;
|
|
963
|
+
|
|
831
964
|
raw?: unknown;
|
|
832
965
|
|
|
833
966
|
sortValue?: string | number | null;
|
|
834
967
|
|
|
835
968
|
value?: unknown;
|
|
836
969
|
}
|
|
970
|
+
|
|
971
|
+
export namespace Cells {
|
|
972
|
+
export interface Identity {
|
|
973
|
+
id: string;
|
|
974
|
+
|
|
975
|
+
kind: 'teammate' | 'team' | 'user' | 'company' | 'fibi';
|
|
976
|
+
|
|
977
|
+
label: string;
|
|
978
|
+
|
|
979
|
+
avatarUrl?: string;
|
|
980
|
+
|
|
981
|
+
color?: string;
|
|
982
|
+
|
|
983
|
+
website?: string;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
837
986
|
}
|
|
838
987
|
}
|
|
839
988
|
}
|
|
840
989
|
|
|
841
|
-
export interface
|
|
842
|
-
/**
|
|
843
|
-
* API version for this request. Defaults to your organization's configured API
|
|
844
|
-
* version if not specified.
|
|
845
|
-
*/
|
|
846
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
export interface ReportQueryParams {
|
|
850
|
-
/**
|
|
851
|
-
* Body param: Aggregation function applied to the metric. Each metric supports a
|
|
852
|
-
* subset of aggregations — see the `allowedAggregations` field in the
|
|
853
|
-
* `GET /v2/reports/datasets` catalog.
|
|
854
|
-
*/
|
|
855
|
-
aggregation: 'count' | 'sum' | 'avg' | 'median' | 'min' | 'max' | 'range' | 'percentile' | 'value';
|
|
856
|
-
|
|
990
|
+
export interface ReportDrillInParams {
|
|
857
991
|
/**
|
|
858
992
|
* Body param: End of the reporting window (ISO 8601 date or datetime, inclusive).
|
|
859
|
-
* Windows ending before 2026-07-
|
|
993
|
+
* Windows ending before 2026-07-14 are rejected.
|
|
860
994
|
*/
|
|
861
995
|
endDate: string;
|
|
862
996
|
|
|
@@ -866,29 +1000,34 @@ export interface ReportQueryParams {
|
|
|
866
1000
|
granularity: 'hour' | 'day' | 'week' | 'month';
|
|
867
1001
|
|
|
868
1002
|
/**
|
|
869
|
-
* Body param: Metric ID
|
|
870
|
-
* via `GET /v2/reports/datasets`.
|
|
1003
|
+
* Body param: Metric ID the drill-in belongs to.
|
|
871
1004
|
*/
|
|
872
1005
|
metric: string;
|
|
873
1006
|
|
|
874
1007
|
/**
|
|
875
1008
|
* Body param: Start of the reporting window (ISO 8601 date or datetime,
|
|
876
|
-
* inclusive). Reporting data is available from 2026-07-
|
|
1009
|
+
* inclusive). Reporting data is available from 2026-07-14; crossing windows are
|
|
877
1010
|
* clamped to that boundary.
|
|
878
1011
|
*/
|
|
879
1012
|
startDate: string;
|
|
880
1013
|
|
|
881
1014
|
/**
|
|
882
|
-
* Body param:
|
|
883
|
-
* `compareStartDate`.
|
|
1015
|
+
* Body param: Stable editor ID of the saved chart that launched this drill-in.
|
|
884
1016
|
*/
|
|
885
|
-
|
|
1017
|
+
chartEditorId?: string;
|
|
886
1018
|
|
|
887
1019
|
/**
|
|
888
|
-
* Body param:
|
|
889
|
-
*
|
|
1020
|
+
* Body param: Column IDs to include in each returned row. Omit for legacy
|
|
1021
|
+
* full-width static rows; pass an empty array to use `defaultColumnIds`.
|
|
890
1022
|
*/
|
|
891
|
-
|
|
1023
|
+
columns?: Array<string>;
|
|
1024
|
+
|
|
1025
|
+
/**
|
|
1026
|
+
* Body param: Narrows the drill-in to one data point from a previous query (time
|
|
1027
|
+
* bucket, group value, heatmap cell, or flow edge). Pass `{}` to list all
|
|
1028
|
+
* underlying rows.
|
|
1029
|
+
*/
|
|
1030
|
+
dataPointFilters?: ReportDrillInParams.DataPointFilters;
|
|
892
1031
|
|
|
893
1032
|
/**
|
|
894
1033
|
* Body param: Filter expression: a single rule, or an `and`/`or` group combining
|
|
@@ -898,69 +1037,51 @@ export interface ReportQueryParams {
|
|
|
898
1037
|
filters?: ReportFilterRule | ReportFilterExpression;
|
|
899
1038
|
|
|
900
1039
|
/**
|
|
901
|
-
* Body param
|
|
902
|
-
* `supportsGroupBy` in the catalog.
|
|
1040
|
+
* Body param
|
|
903
1041
|
*/
|
|
904
1042
|
groupBy?: string;
|
|
905
1043
|
|
|
906
1044
|
/**
|
|
907
|
-
* Body param
|
|
908
|
-
* supported by some metrics (see `supportsOfficeHours` in the catalog).
|
|
1045
|
+
* Body param
|
|
909
1046
|
*/
|
|
910
1047
|
officeHoursOnly?: boolean;
|
|
911
1048
|
|
|
912
1049
|
/**
|
|
913
|
-
* Body param:
|
|
1050
|
+
* Body param: Page number (1-based).
|
|
914
1051
|
*/
|
|
915
|
-
|
|
1052
|
+
page?: number;
|
|
916
1053
|
|
|
917
1054
|
/**
|
|
918
|
-
* Body param:
|
|
919
|
-
* bucket.
|
|
1055
|
+
* Body param: Rows per page (1-200, default 25).
|
|
920
1056
|
*/
|
|
921
|
-
|
|
1057
|
+
pageSize?: number;
|
|
922
1058
|
|
|
923
1059
|
/**
|
|
924
|
-
* Body param
|
|
925
|
-
* synthetic `__other__` / `Other` segment. Only supported for additive
|
|
926
|
-
* aggregations (`count`, `sum`, `value`) and not for percentage metrics. The
|
|
927
|
-
* `__other__` segment cannot be drilled into. Requires `segmentBy` and
|
|
928
|
-
* `segmentTopValuesLimit`.
|
|
1060
|
+
* Body param
|
|
929
1061
|
*/
|
|
930
|
-
|
|
1062
|
+
segmentBy?: string;
|
|
931
1063
|
|
|
932
1064
|
/**
|
|
933
|
-
* Body param:
|
|
934
|
-
*
|
|
935
|
-
*
|
|
936
|
-
* the ranking is applied within each retained parent group. Allowed values: `5`,
|
|
937
|
-
* `7`, `10`, `15`, `20`. Requires `segmentBy`.
|
|
1065
|
+
* Body param: A metric ID from the datasets catalog. Use when the originating
|
|
1066
|
+
* chart aggregates several metrics to pick which one the drill-in follows.
|
|
1067
|
+
* Defaults to `metric`.
|
|
938
1068
|
*/
|
|
939
|
-
|
|
1069
|
+
selectedMetricId?: string;
|
|
940
1070
|
|
|
941
1071
|
/**
|
|
942
|
-
* Body param:
|
|
943
|
-
* label `Other` that sums the values of every `groupBy` value outside the top set.
|
|
944
|
-
* Only supported for additive aggregations (`count`, `sum`, `value`) and not for
|
|
945
|
-
* percentage metrics. The `__other__` group cannot be drilled into. Requires
|
|
946
|
-
* `groupBy` and `topValuesLimit`.
|
|
1072
|
+
* Body param: Stable metric-row ID selected within the launching chart.
|
|
947
1073
|
*/
|
|
948
|
-
|
|
1074
|
+
selectedMetricRowId?: string;
|
|
949
1075
|
|
|
950
1076
|
/**
|
|
951
|
-
* Body param
|
|
952
|
-
* to UTC.
|
|
1077
|
+
* Body param
|
|
953
1078
|
*/
|
|
954
|
-
|
|
1079
|
+
sort?: Array<ReportDrillInParams.Sort>;
|
|
955
1080
|
|
|
956
1081
|
/**
|
|
957
|
-
* Body param
|
|
958
|
-
* selected metric/aggregation over the full filtered primary range. Allowed
|
|
959
|
-
* values: `5`, `7`, `10`, `15`, `20`. The ranked set is stable across every time
|
|
960
|
-
* bucket, and a comparison period reuses the primary period's ranked set (never
|
|
961
|
-
* re-ranked). Requires `groupBy`.
|
|
1082
|
+
* Body param
|
|
962
1083
|
*/
|
|
963
|
-
|
|
1084
|
+
timezone?: string;
|
|
964
1085
|
|
|
965
1086
|
/**
|
|
966
1087
|
* Body param: Result shape. `standard` returns a time series (plus grouped/segment
|
|
@@ -974,7 +1095,82 @@ export interface ReportQueryParams {
|
|
|
974
1095
|
* Header param: API version for this request. Defaults to your organization's
|
|
975
1096
|
* configured API version if not specified.
|
|
976
1097
|
*/
|
|
977
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
1098
|
+
'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
export namespace ReportDrillInParams {
|
|
1102
|
+
/**
|
|
1103
|
+
* Narrows the drill-in to one data point from a previous query (time bucket, group
|
|
1104
|
+
* value, heatmap cell, or flow edge). Pass `{}` to list all underlying rows.
|
|
1105
|
+
*/
|
|
1106
|
+
export interface DataPointFilters {
|
|
1107
|
+
/**
|
|
1108
|
+
* Day of week (1 = Monday … 7 = Sunday) — for `hourly_heatmap` views.
|
|
1109
|
+
*/
|
|
1110
|
+
dayOfWeek?: number;
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* Flow path ID — for `sankey` views.
|
|
1114
|
+
*/
|
|
1115
|
+
flowPathId?: string;
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* Group value to drill into (a `group` value from `groupedData`).
|
|
1119
|
+
*/
|
|
1120
|
+
groupValue?: string;
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* Hour of day (0-23) — for `hourly_heatmap` views.
|
|
1124
|
+
*/
|
|
1125
|
+
hourOfDay?: number;
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* Segment value to drill into (a `segment` value from segment data).
|
|
1129
|
+
*/
|
|
1130
|
+
segmentValue?: string;
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* Flow source node ID — for `sankey` views.
|
|
1134
|
+
*/
|
|
1135
|
+
sourceNodeId?: string;
|
|
1136
|
+
|
|
1137
|
+
/**
|
|
1138
|
+
* Flow target node ID — for `sankey` views.
|
|
1139
|
+
*/
|
|
1140
|
+
targetNodeId?: string;
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* Time bucket to drill into (a `date` value from the query time series).
|
|
1144
|
+
*/
|
|
1145
|
+
timeBucket?: string;
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
* Granularity of `timeSegmentValue`; both fields must be sent together.
|
|
1149
|
+
*/
|
|
1150
|
+
timeSegmentGranularity?: 'hour' | 'day' | 'week' | 'month';
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* Time-segment bucket selected from a Segment-by-Time series.
|
|
1154
|
+
*/
|
|
1155
|
+
timeSegmentValue?: string;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
export interface Sort {
|
|
1159
|
+
direction: 'asc' | 'desc';
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
* Column ID to sort by (an attribute ID or `metric.value`).
|
|
1163
|
+
*/
|
|
1164
|
+
fieldId: string;
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
export interface ReportListDatasetsParams {
|
|
1169
|
+
/**
|
|
1170
|
+
* API version for this request. Defaults to your organization's configured API
|
|
1171
|
+
* version if not specified.
|
|
1172
|
+
*/
|
|
1173
|
+
'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
|
|
978
1174
|
}
|
|
979
1175
|
|
|
980
1176
|
export interface ReportLookupFilterValuesParams {
|
|
@@ -984,16 +1180,47 @@ export interface ReportLookupFilterValuesParams {
|
|
|
984
1180
|
*/
|
|
985
1181
|
fieldId: string;
|
|
986
1182
|
|
|
1183
|
+
/**
|
|
1184
|
+
* Body param
|
|
1185
|
+
*/
|
|
1186
|
+
cursor?: string;
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* Body param
|
|
1190
|
+
*/
|
|
1191
|
+
datasetId?: string;
|
|
1192
|
+
|
|
1193
|
+
/**
|
|
1194
|
+
* Body param
|
|
1195
|
+
*/
|
|
1196
|
+
groupBy?: string;
|
|
1197
|
+
|
|
987
1198
|
/**
|
|
988
1199
|
* Body param: Maximum number of options to return (1-50, default 20).
|
|
989
1200
|
*/
|
|
990
1201
|
limit?: number;
|
|
991
1202
|
|
|
1203
|
+
/**
|
|
1204
|
+
* Body param: Opaque client context echoed by the response so stale lookup results
|
|
1205
|
+
* can be discarded safely.
|
|
1206
|
+
*/
|
|
1207
|
+
lookupContextKey?: string;
|
|
1208
|
+
|
|
1209
|
+
/**
|
|
1210
|
+
* Body param
|
|
1211
|
+
*/
|
|
1212
|
+
metricId?: string;
|
|
1213
|
+
|
|
992
1214
|
/**
|
|
993
1215
|
* Body param: Optional search string to narrow the returned options.
|
|
994
1216
|
*/
|
|
995
1217
|
query?: string;
|
|
996
1218
|
|
|
1219
|
+
/**
|
|
1220
|
+
* Body param
|
|
1221
|
+
*/
|
|
1222
|
+
segmentBy?: string;
|
|
1223
|
+
|
|
997
1224
|
/**
|
|
998
1225
|
* Body param: Already-selected values to resolve labels for (returned alongside
|
|
999
1226
|
* search results).
|
|
@@ -1004,13 +1231,20 @@ export interface ReportLookupFilterValuesParams {
|
|
|
1004
1231
|
* Header param: API version for this request. Defaults to your organization's
|
|
1005
1232
|
* configured API version if not specified.
|
|
1006
1233
|
*/
|
|
1007
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
1234
|
+
'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
|
|
1008
1235
|
}
|
|
1009
1236
|
|
|
1010
|
-
export interface
|
|
1237
|
+
export interface ReportQueryParams {
|
|
1238
|
+
/**
|
|
1239
|
+
* Body param: Aggregation function applied to the metric. Each metric supports a
|
|
1240
|
+
* subset of aggregations — see the `allowedAggregations` field in the
|
|
1241
|
+
* `GET /v2/reports/datasets` catalog.
|
|
1242
|
+
*/
|
|
1243
|
+
aggregation: 'count' | 'sum' | 'avg' | 'median' | 'min' | 'max' | 'range' | 'percentile' | 'value';
|
|
1244
|
+
|
|
1011
1245
|
/**
|
|
1012
1246
|
* Body param: End of the reporting window (ISO 8601 date or datetime, inclusive).
|
|
1013
|
-
* Windows ending before 2026-07-
|
|
1247
|
+
* Windows ending before 2026-07-14 are rejected.
|
|
1014
1248
|
*/
|
|
1015
1249
|
endDate: string;
|
|
1016
1250
|
|
|
@@ -1020,34 +1254,29 @@ export interface ReportDrillInParams {
|
|
|
1020
1254
|
granularity: 'hour' | 'day' | 'week' | 'month';
|
|
1021
1255
|
|
|
1022
1256
|
/**
|
|
1023
|
-
* Body param: Metric ID
|
|
1257
|
+
* Body param: Metric ID to query (e.g. `new_conversations`). Discover metric IDs
|
|
1258
|
+
* via `GET /v2/reports/datasets`.
|
|
1024
1259
|
*/
|
|
1025
1260
|
metric: string;
|
|
1026
1261
|
|
|
1027
1262
|
/**
|
|
1028
1263
|
* Body param: Start of the reporting window (ISO 8601 date or datetime,
|
|
1029
|
-
* inclusive). Reporting data is available from 2026-07-
|
|
1264
|
+
* inclusive). Reporting data is available from 2026-07-14; crossing windows are
|
|
1030
1265
|
* clamped to that boundary.
|
|
1031
1266
|
*/
|
|
1032
1267
|
startDate: string;
|
|
1033
1268
|
|
|
1034
1269
|
/**
|
|
1035
|
-
* Body param:
|
|
1036
|
-
|
|
1037
|
-
chartEditorId?: string;
|
|
1038
|
-
|
|
1039
|
-
/**
|
|
1040
|
-
* Body param: Column IDs to include in each returned row. Omit for legacy
|
|
1041
|
-
* full-width static rows; pass an empty array to use `defaultColumnIds`.
|
|
1270
|
+
* Body param: End of the comparison window. Must be paired with
|
|
1271
|
+
* `compareStartDate`.
|
|
1042
1272
|
*/
|
|
1043
|
-
|
|
1273
|
+
compareEndDate?: string;
|
|
1044
1274
|
|
|
1045
1275
|
/**
|
|
1046
|
-
* Body param:
|
|
1047
|
-
*
|
|
1048
|
-
* underlying rows.
|
|
1276
|
+
* Body param: Start of the comparison window for period-over-period deltas. Must
|
|
1277
|
+
* be paired with `compareEndDate`.
|
|
1049
1278
|
*/
|
|
1050
|
-
|
|
1279
|
+
compareStartDate?: string;
|
|
1051
1280
|
|
|
1052
1281
|
/**
|
|
1053
1282
|
* Body param: Filter expression: a single rule, or an `and`/`or` group combining
|
|
@@ -1057,51 +1286,69 @@ export interface ReportDrillInParams {
|
|
|
1057
1286
|
filters?: ReportFilterRule | ReportFilterExpression;
|
|
1058
1287
|
|
|
1059
1288
|
/**
|
|
1060
|
-
* Body param
|
|
1289
|
+
* Body param: Attribute ID to group results by (e.g. `conversation.channel`). See
|
|
1290
|
+
* `supportsGroupBy` in the catalog.
|
|
1061
1291
|
*/
|
|
1062
1292
|
groupBy?: string;
|
|
1063
1293
|
|
|
1064
1294
|
/**
|
|
1065
|
-
* Body param
|
|
1295
|
+
* Body param: Restrict time-based metrics to configured office hours. Only
|
|
1296
|
+
* supported by some metrics (see `supportsOfficeHours` in the catalog).
|
|
1066
1297
|
*/
|
|
1067
1298
|
officeHoursOnly?: boolean;
|
|
1068
1299
|
|
|
1069
1300
|
/**
|
|
1070
|
-
* Body param:
|
|
1301
|
+
* Body param: Percentile (1-100) — required when `aggregation` is `percentile`.
|
|
1071
1302
|
*/
|
|
1072
|
-
|
|
1303
|
+
percentile?: number;
|
|
1073
1304
|
|
|
1074
1305
|
/**
|
|
1075
|
-
* Body param:
|
|
1306
|
+
* Body param: Attribute ID for secondary segmentation within each group or time
|
|
1307
|
+
* bucket.
|
|
1076
1308
|
*/
|
|
1077
|
-
|
|
1309
|
+
segmentBy?: string;
|
|
1078
1310
|
|
|
1079
1311
|
/**
|
|
1080
|
-
* Body param
|
|
1312
|
+
* Body param: When `true`, fold `segmentBy` values outside the top set into a
|
|
1313
|
+
* synthetic `__other__` / `Other` segment. Only supported for additive
|
|
1314
|
+
* aggregations (`count`, `sum`, `value`) and not for percentage metrics. The
|
|
1315
|
+
* `__other__` segment cannot be drilled into. Requires `segmentBy` and
|
|
1316
|
+
* `segmentTopValuesLimit`.
|
|
1081
1317
|
*/
|
|
1082
|
-
|
|
1318
|
+
segmentShowOther?: boolean;
|
|
1083
1319
|
|
|
1084
1320
|
/**
|
|
1085
|
-
* Body param:
|
|
1086
|
-
*
|
|
1087
|
-
*
|
|
1321
|
+
* Body param: Keep only the top N `segmentBy` values per series. Under a time
|
|
1322
|
+
* View-by, segments are ranked independently inside each time bucket and the
|
|
1323
|
+
* response series catalog contains the union of bucket winners. Under a dimension
|
|
1324
|
+
* View-by, ranking is applied within each retained parent group. Allowed range:
|
|
1325
|
+
* `1` to `100`; the editor offers common presets plus a Custom value. Requires
|
|
1326
|
+
* `segmentBy`.
|
|
1088
1327
|
*/
|
|
1089
|
-
|
|
1328
|
+
segmentTopValuesLimit?: number;
|
|
1090
1329
|
|
|
1091
1330
|
/**
|
|
1092
|
-
* Body param:
|
|
1331
|
+
* Body param: When `true`, append a single synthetic group with id `__other__` and
|
|
1332
|
+
* label `Other` that sums the values of every `groupBy` value outside the top set.
|
|
1333
|
+
* Only supported for additive aggregations (`count`, `sum`, `value`) and not for
|
|
1334
|
+
* percentage metrics. The `__other__` group cannot be drilled into. Requires
|
|
1335
|
+
* `groupBy` and `topValuesLimit`.
|
|
1093
1336
|
*/
|
|
1094
|
-
|
|
1337
|
+
showOther?: boolean;
|
|
1095
1338
|
|
|
1096
1339
|
/**
|
|
1097
|
-
* Body param
|
|
1340
|
+
* Body param: IANA timezone for date bucketing (e.g. `America/New_York`). Defaults
|
|
1341
|
+
* to UTC.
|
|
1098
1342
|
*/
|
|
1099
|
-
|
|
1343
|
+
timezone?: string;
|
|
1100
1344
|
|
|
1101
1345
|
/**
|
|
1102
|
-
* Body param
|
|
1346
|
+
* Body param: Keep only the top N `groupBy` (View-by) values, ranked by the
|
|
1347
|
+
* selected metric/aggregation over the full filtered primary range. Allowed range:
|
|
1348
|
+
* `1` to `100`; the editor offers common presets plus a Custom value. A comparison
|
|
1349
|
+
* period reuses the primary period's ranked set. Requires `groupBy`.
|
|
1103
1350
|
*/
|
|
1104
|
-
|
|
1351
|
+
topValuesLimit?: number;
|
|
1105
1352
|
|
|
1106
1353
|
/**
|
|
1107
1354
|
* Body param: Result shape. `standard` returns a time series (plus grouped/segment
|
|
@@ -1115,64 +1362,7 @@ export interface ReportDrillInParams {
|
|
|
1115
1362
|
* Header param: API version for this request. Defaults to your organization's
|
|
1116
1363
|
* configured API version if not specified.
|
|
1117
1364
|
*/
|
|
1118
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
1119
|
-
}
|
|
1120
|
-
|
|
1121
|
-
export namespace ReportDrillInParams {
|
|
1122
|
-
/**
|
|
1123
|
-
* Narrows the drill-in to one data point from a previous query (time bucket, group
|
|
1124
|
-
* value, heatmap cell, or flow edge). Pass `{}` to list all underlying rows.
|
|
1125
|
-
*/
|
|
1126
|
-
export interface DataPointFilters {
|
|
1127
|
-
/**
|
|
1128
|
-
* Day of week (1 = Monday … 7 = Sunday) — for `hourly_heatmap` views.
|
|
1129
|
-
*/
|
|
1130
|
-
dayOfWeek?: number;
|
|
1131
|
-
|
|
1132
|
-
/**
|
|
1133
|
-
* Flow path ID — for `sankey` views.
|
|
1134
|
-
*/
|
|
1135
|
-
flowPathId?: string;
|
|
1136
|
-
|
|
1137
|
-
/**
|
|
1138
|
-
* Group value to drill into (a `group` value from `groupedData`).
|
|
1139
|
-
*/
|
|
1140
|
-
groupValue?: string;
|
|
1141
|
-
|
|
1142
|
-
/**
|
|
1143
|
-
* Hour of day (0-23) — for `hourly_heatmap` views.
|
|
1144
|
-
*/
|
|
1145
|
-
hourOfDay?: number;
|
|
1146
|
-
|
|
1147
|
-
/**
|
|
1148
|
-
* Segment value to drill into (a `segment` value from segment data).
|
|
1149
|
-
*/
|
|
1150
|
-
segmentValue?: string;
|
|
1151
|
-
|
|
1152
|
-
/**
|
|
1153
|
-
* Flow source node ID — for `sankey` views.
|
|
1154
|
-
*/
|
|
1155
|
-
sourceNodeId?: string;
|
|
1156
|
-
|
|
1157
|
-
/**
|
|
1158
|
-
* Flow target node ID — for `sankey` views.
|
|
1159
|
-
*/
|
|
1160
|
-
targetNodeId?: string;
|
|
1161
|
-
|
|
1162
|
-
/**
|
|
1163
|
-
* Time bucket to drill into (a `date` value from the query time series).
|
|
1164
|
-
*/
|
|
1165
|
-
timeBucket?: string;
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
export interface Sort {
|
|
1169
|
-
direction: 'asc' | 'desc';
|
|
1170
|
-
|
|
1171
|
-
/**
|
|
1172
|
-
* Column ID to sort by (an attribute ID or `metric.value`).
|
|
1173
|
-
*/
|
|
1174
|
-
fieldId: string;
|
|
1175
|
-
}
|
|
1365
|
+
'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
|
|
1176
1366
|
}
|
|
1177
1367
|
|
|
1178
1368
|
export declare namespace Reports {
|
|
@@ -1190,9 +1380,9 @@ export declare namespace Reports {
|
|
|
1190
1380
|
type ReportListDatasetsResponse as ReportListDatasetsResponse,
|
|
1191
1381
|
type ReportLookupFilterValuesResponse as ReportLookupFilterValuesResponse,
|
|
1192
1382
|
type ReportQueryResponse as ReportQueryResponse,
|
|
1383
|
+
type ReportDrillInParams as ReportDrillInParams,
|
|
1193
1384
|
type ReportListDatasetsParams as ReportListDatasetsParams,
|
|
1194
|
-
type ReportQueryParams as ReportQueryParams,
|
|
1195
1385
|
type ReportLookupFilterValuesParams as ReportLookupFilterValuesParams,
|
|
1196
|
-
type
|
|
1386
|
+
type ReportQueryParams as ReportQueryParams,
|
|
1197
1387
|
};
|
|
1198
1388
|
}
|