featurebase-node 0.14.0 → 0.14.2
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 +8 -0
- package/client.d.mts +12 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +12 -0
- package/client.d.ts.map +1 -1
- package/client.js +21 -1
- package/client.js.map +1 -1
- package/client.mjs +21 -1
- package/client.mjs.map +1 -1
- package/package.json +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/help-center/articles.d.mts +248 -11
- package/resources/help-center/articles.d.mts.map +1 -1
- package/resources/help-center/articles.d.ts +248 -11
- package/resources/help-center/articles.d.ts.map +1 -1
- package/resources/help-center/articles.js +78 -0
- package/resources/help-center/articles.js.map +1 -1
- package/resources/help-center/articles.mjs +78 -0
- package/resources/help-center/articles.mjs.map +1 -1
- package/resources/help-center/help-center.d.mts +2 -2
- package/resources/help-center/help-center.d.mts.map +1 -1
- package/resources/help-center/help-center.d.ts +2 -2
- 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/index.d.mts +1 -1
- package/resources/help-center/index.d.mts.map +1 -1
- package/resources/help-center/index.d.ts +1 -1
- 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/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization/admins.d.mts +10 -0
- package/resources/organization/admins.d.mts.map +1 -1
- package/resources/organization/admins.d.ts +10 -0
- package/resources/organization/admins.d.ts.map +1 -1
- package/resources/organization/admins.js +2 -0
- package/resources/organization/admins.js.map +1 -1
- package/resources/organization/admins.mjs +2 -0
- package/resources/organization/admins.mjs.map +1 -1
- package/resources/reports.d.mts +720 -0
- package/resources/reports.d.mts.map +1 -0
- package/resources/reports.d.ts +720 -0
- package/resources/reports.d.ts.map +1 -0
- package/resources/reports.js +241 -0
- package/resources/reports.js.map +1 -0
- package/resources/reports.mjs +237 -0
- package/resources/reports.mjs.map +1 -0
- package/resources/users/contacts/contacts.d.mts +2 -2
- package/resources/users/contacts/contacts.d.ts +2 -2
- package/resources/users/contacts/contacts.js +1 -1
- package/resources/users/contacts/contacts.mjs +1 -1
- package/resources/webhooks.d.mts +5 -3
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +5 -3
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +2 -0
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +2 -0
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +73 -1
- package/src/resources/audit-logs.ts +609 -0
- package/src/resources/help-center/articles.ts +380 -10
- package/src/resources/help-center/help-center.ts +8 -0
- package/src/resources/help-center/index.ts +4 -0
- package/src/resources/index.ts +26 -0
- package/src/resources/organization/admins.ts +12 -0
- package/src/resources/reports.ts +1025 -0
- package/src/resources/users/contacts/contacts.ts +2 -2
- package/src/resources/webhooks.ts +5 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../src/resources/reports.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,UAAU,qBAA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AAM,CAAC;QAEpB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,IAAI;QACnB,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;QAE1B;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;KACjB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,241 @@
|
|
|
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.Reports = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const headers_1 = require("../internal/headers.js");
|
|
7
|
+
/**
|
|
8
|
+
* 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.
|
|
9
|
+
*/
|
|
10
|
+
class Reports extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Returns the reporting catalog: every dataset available to your workspace with
|
|
13
|
+
* its metrics and attributes.
|
|
14
|
+
*
|
|
15
|
+
* This is the discovery endpoint for the reporting API — read it before building
|
|
16
|
+
* query payloads:
|
|
17
|
+
*
|
|
18
|
+
* - **Metrics** carry the `metric` IDs accepted by `POST /v2/reports/query`, plus
|
|
19
|
+
* each metric's `allowedAggregations`, unit, and whether it supports
|
|
20
|
+
* office-hours restriction and period comparison.
|
|
21
|
+
* - **Attributes** carry the `fieldId`s accepted in filter rules and the attribute
|
|
22
|
+
* IDs accepted as `groupBy` / `segmentBy`, plus each attribute's
|
|
23
|
+
* `allowedOperators` and value type. Attributes with `staticOptions` list their
|
|
24
|
+
* full value set inline; other filterable attributes resolve values via
|
|
25
|
+
* `POST /v2/reports/filter-values`.
|
|
26
|
+
*
|
|
27
|
+
* The catalog includes your workspace's custom conversation/ticket attributes
|
|
28
|
+
* where applicable, so it can differ between workspaces.
|
|
29
|
+
*
|
|
30
|
+
* ### Version Availability
|
|
31
|
+
*
|
|
32
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer, and
|
|
33
|
+
* only for workspaces with the Reports product enabled (404 otherwise).
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const response = await client.reports.listDatasets();
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
listDatasets(params = {}, options) {
|
|
41
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
42
|
+
return this._client.get('/v2/reports/datasets', {
|
|
43
|
+
...options,
|
|
44
|
+
headers: (0, headers_1.buildHeaders)([
|
|
45
|
+
{
|
|
46
|
+
...(featurebaseVersion?.toString() != null ?
|
|
47
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
48
|
+
: undefined),
|
|
49
|
+
},
|
|
50
|
+
options?.headers,
|
|
51
|
+
]),
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Executes an ad-hoc reporting query: one metric + aggregation over a date range,
|
|
56
|
+
* with optional filters, grouping, segmentation and period-over-period comparison.
|
|
57
|
+
*
|
|
58
|
+
* ### Building a query
|
|
59
|
+
*
|
|
60
|
+
* 1. Pick a `metric` and `aggregation` from the datasets catalog
|
|
61
|
+
* (`GET /v2/reports/datasets`). Counts use `count`; duration metrics support
|
|
62
|
+
* `sum`, `avg`, `median`, `min`, `max`, `range` and `percentile` (pass
|
|
63
|
+
* `percentile: 95` for p95); rate metrics use `value`.
|
|
64
|
+
* 2. Set the reporting window with `startDate` / `endDate` (ISO 8601) and a
|
|
65
|
+
* `granularity` (`hour`, `day`, `week`, `month`) for the returned time series.
|
|
66
|
+
* Reporting data is available from **July 12, 2026**. Windows ending earlier
|
|
67
|
+
* are rejected; crossing windows are clamped to that boundary in the requested
|
|
68
|
+
* timezone.
|
|
69
|
+
* 3. Optionally narrow with `filters` — a rule
|
|
70
|
+
* (`{ "kind": "rule", "fieldId": "...", "operator": "in", "value": [...] }`) or
|
|
71
|
+
* an `and`/`or` group of rules. Attribute IDs and allowed operators come from
|
|
72
|
+
* the catalog.
|
|
73
|
+
* 4. Optionally break results down with `groupBy` (primary dimension) and
|
|
74
|
+
* `segmentBy` (secondary dimension).
|
|
75
|
+
* 5. Optionally pass `compareStartDate` / `compareEndDate` to get `previousValue`
|
|
76
|
+
* / `deltaPercent` alongside every data point.
|
|
77
|
+
*
|
|
78
|
+
* ### Example
|
|
79
|
+
*
|
|
80
|
+
* ```json
|
|
81
|
+
* {
|
|
82
|
+
* "metric": "new_conversations",
|
|
83
|
+
* "aggregation": "count",
|
|
84
|
+
* "startDate": "2026-07-12",
|
|
85
|
+
* "endDate": "2026-07-15",
|
|
86
|
+
* "granularity": "day",
|
|
87
|
+
* "groupBy": "conversation.channel",
|
|
88
|
+
* "filters": {
|
|
89
|
+
* "kind": "rule",
|
|
90
|
+
* "fieldId": "conversation.state",
|
|
91
|
+
* "operator": "is",
|
|
92
|
+
* "value": "closed"
|
|
93
|
+
* }
|
|
94
|
+
* }
|
|
95
|
+
* ```
|
|
96
|
+
*
|
|
97
|
+
* ### Response shape
|
|
98
|
+
*
|
|
99
|
+
* - `value` — the aggregate across the whole window
|
|
100
|
+
* - `timeSeries` — one datum per granularity bucket
|
|
101
|
+
* - `groupedData` / `segmentData` — present when `groupBy` / `segmentBy` were
|
|
102
|
+
* requested
|
|
103
|
+
* - `flowData` — present for `view: "sankey"` (Overview conversation-flow metrics)
|
|
104
|
+
* - `meta` — echo of the resolved metric, dataset, unit and aggregation
|
|
105
|
+
*
|
|
106
|
+
* ### Special views
|
|
107
|
+
*
|
|
108
|
+
* - `view: "hourly_heatmap"` buckets by day-of-week × hour-of-day (use with volume
|
|
109
|
+
* metrics)
|
|
110
|
+
* - `view: "sankey"` returns conversation flow edges (Overview metrics only)
|
|
111
|
+
*
|
|
112
|
+
* ### Version Availability
|
|
113
|
+
*
|
|
114
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer, and
|
|
115
|
+
* only for workspaces with the Reports product enabled (404 otherwise).
|
|
116
|
+
*
|
|
117
|
+
* @example
|
|
118
|
+
* ```ts
|
|
119
|
+
* const response = await client.reports.query({
|
|
120
|
+
* aggregation: 'count',
|
|
121
|
+
* endDate: '2026-07-15',
|
|
122
|
+
* granularity: 'day',
|
|
123
|
+
* metric: 'new_conversations',
|
|
124
|
+
* startDate: '2026-07-12',
|
|
125
|
+
* });
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
query(params, options) {
|
|
129
|
+
const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
|
|
130
|
+
return this._client.post('/v2/reports/query', {
|
|
131
|
+
body,
|
|
132
|
+
...options,
|
|
133
|
+
headers: (0, headers_1.buildHeaders)([
|
|
134
|
+
{
|
|
135
|
+
...(featurebaseVersion?.toString() != null ?
|
|
136
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
137
|
+
: undefined),
|
|
138
|
+
},
|
|
139
|
+
options?.headers,
|
|
140
|
+
]),
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Returns the available values for a filterable attribute — use it to build valid
|
|
145
|
+
* `filters` rules for `POST /v2/reports/query`.
|
|
146
|
+
*
|
|
147
|
+
* Works for attributes whose values live in your workspace data (tags, teammates,
|
|
148
|
+
* teams, companies, plans, countries, ...). Attributes with `staticOptions` in the
|
|
149
|
+
* catalog don't need this endpoint — their value set is already inline.
|
|
150
|
+
*
|
|
151
|
+
* - `query` narrows results by search string
|
|
152
|
+
* - `selectedValues` resolves labels for values you already hold (returned
|
|
153
|
+
* alongside search results)
|
|
154
|
+
*
|
|
155
|
+
* ### Example
|
|
156
|
+
*
|
|
157
|
+
* ```json
|
|
158
|
+
* { "fieldId": "conversation.tags", "query": "bill", "limit": 20 }
|
|
159
|
+
* ```
|
|
160
|
+
*
|
|
161
|
+
* ### Version Availability
|
|
162
|
+
*
|
|
163
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer, and
|
|
164
|
+
* only for workspaces with the Reports product enabled (404 otherwise).
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* ```ts
|
|
168
|
+
* const response = await client.reports.lookupFilterValues({
|
|
169
|
+
* fieldId: 'conversation.tags',
|
|
170
|
+
* });
|
|
171
|
+
* ```
|
|
172
|
+
*/
|
|
173
|
+
lookupFilterValues(params, options) {
|
|
174
|
+
const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
|
|
175
|
+
return this._client.post('/v2/reports/filter-values', {
|
|
176
|
+
body,
|
|
177
|
+
...options,
|
|
178
|
+
headers: (0, headers_1.buildHeaders)([
|
|
179
|
+
{
|
|
180
|
+
...(featurebaseVersion?.toString() != null ?
|
|
181
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
182
|
+
: undefined),
|
|
183
|
+
},
|
|
184
|
+
options?.headers,
|
|
185
|
+
]),
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Returns the paginated row-level records behind a metric — either the whole
|
|
190
|
+
* reporting window, or one specific data point from a previous
|
|
191
|
+
* `POST /v2/reports/query` response.
|
|
192
|
+
*
|
|
193
|
+
* Send the **same** `metric`, date range, `granularity`, `filters`, `groupBy` /
|
|
194
|
+
* `segmentBy` and `view` as the query you're drilling into, plus
|
|
195
|
+
* `dataPointFilters` selecting the data point:
|
|
196
|
+
*
|
|
197
|
+
* - `timeBucket` — a `date` from the time series
|
|
198
|
+
* - `groupValue` / `segmentValue` — a `group` / `segment` value from grouped data
|
|
199
|
+
* - `dayOfWeek` + `hourOfDay` — a heatmap cell (`hourly_heatmap` view)
|
|
200
|
+
* - `flowPathId` or `sourceNodeId` + `targetNodeId` — a flow edge (`sankey` view)
|
|
201
|
+
*
|
|
202
|
+
* Pass `dataPointFilters: {}` to list all rows behind the metric for the window.
|
|
203
|
+
*
|
|
204
|
+
* Results are paginated with `page` / `pageSize` (max 200 per page);
|
|
205
|
+
* `availableColumns` describes every column the dataset can return and
|
|
206
|
+
* `defaultColumnIds` the recommended subset. Rows are keyed by column ID; identity
|
|
207
|
+
* cells (teammates, contacts) are objects with `id` + `label`.
|
|
208
|
+
*
|
|
209
|
+
* ### Version Availability
|
|
210
|
+
*
|
|
211
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer, and
|
|
212
|
+
* only for workspaces with the Reports product enabled (404 otherwise).
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* ```ts
|
|
216
|
+
* const response = await client.reports.drillIn({
|
|
217
|
+
* endDate: 'xxxxxxxxxx',
|
|
218
|
+
* granularity: 'day',
|
|
219
|
+
* metric: 'new_conversations',
|
|
220
|
+
* startDate: 'xxxxxxxxxx',
|
|
221
|
+
* });
|
|
222
|
+
* ```
|
|
223
|
+
*/
|
|
224
|
+
drillIn(params, options) {
|
|
225
|
+
const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
|
|
226
|
+
return this._client.post('/v2/reports/drill-in', {
|
|
227
|
+
body,
|
|
228
|
+
...options,
|
|
229
|
+
headers: (0, headers_1.buildHeaders)([
|
|
230
|
+
{
|
|
231
|
+
...(featurebaseVersion?.toString() != null ?
|
|
232
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
233
|
+
: undefined),
|
|
234
|
+
},
|
|
235
|
+
options?.headers,
|
|
236
|
+
]),
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
exports.Reports = Reports;
|
|
241
|
+
//# sourceMappingURL=reports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reports.js","sourceRoot":"","sources":["../src/resources/reports.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAAmD;AAGnD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,YAAY,CACV,SAAsD,EAAE,EACxD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE;YAC9C,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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;;OAmCG;IACH,OAAO,CAAC,MAA2B,EAAE,OAAwB;QAC3D,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC/C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBAC1C,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA9OD,0BA8OC"}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* 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.
|
|
6
|
+
*/
|
|
7
|
+
export class Reports extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the reporting catalog: every dataset available to your workspace with
|
|
10
|
+
* its metrics and attributes.
|
|
11
|
+
*
|
|
12
|
+
* This is the discovery endpoint for the reporting API — read it before building
|
|
13
|
+
* query payloads:
|
|
14
|
+
*
|
|
15
|
+
* - **Metrics** carry the `metric` IDs accepted by `POST /v2/reports/query`, plus
|
|
16
|
+
* each metric's `allowedAggregations`, unit, and whether it supports
|
|
17
|
+
* office-hours restriction and period comparison.
|
|
18
|
+
* - **Attributes** carry the `fieldId`s accepted in filter rules and the attribute
|
|
19
|
+
* IDs accepted as `groupBy` / `segmentBy`, plus each attribute's
|
|
20
|
+
* `allowedOperators` and value type. Attributes with `staticOptions` list their
|
|
21
|
+
* full value set inline; other filterable attributes resolve values via
|
|
22
|
+
* `POST /v2/reports/filter-values`.
|
|
23
|
+
*
|
|
24
|
+
* The catalog includes your workspace's custom conversation/ticket attributes
|
|
25
|
+
* where applicable, so it can differ between workspaces.
|
|
26
|
+
*
|
|
27
|
+
* ### Version Availability
|
|
28
|
+
*
|
|
29
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer, and
|
|
30
|
+
* only for workspaces with the Reports product enabled (404 otherwise).
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const response = await client.reports.listDatasets();
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
listDatasets(params = {}, options) {
|
|
38
|
+
const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
|
|
39
|
+
return this._client.get('/v2/reports/datasets', {
|
|
40
|
+
...options,
|
|
41
|
+
headers: buildHeaders([
|
|
42
|
+
{
|
|
43
|
+
...(featurebaseVersion?.toString() != null ?
|
|
44
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
45
|
+
: undefined),
|
|
46
|
+
},
|
|
47
|
+
options?.headers,
|
|
48
|
+
]),
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Executes an ad-hoc reporting query: one metric + aggregation over a date range,
|
|
53
|
+
* with optional filters, grouping, segmentation and period-over-period comparison.
|
|
54
|
+
*
|
|
55
|
+
* ### Building a query
|
|
56
|
+
*
|
|
57
|
+
* 1. Pick a `metric` and `aggregation` from the datasets catalog
|
|
58
|
+
* (`GET /v2/reports/datasets`). Counts use `count`; duration metrics support
|
|
59
|
+
* `sum`, `avg`, `median`, `min`, `max`, `range` and `percentile` (pass
|
|
60
|
+
* `percentile: 95` for p95); rate metrics use `value`.
|
|
61
|
+
* 2. Set the reporting window with `startDate` / `endDate` (ISO 8601) and a
|
|
62
|
+
* `granularity` (`hour`, `day`, `week`, `month`) for the returned time series.
|
|
63
|
+
* Reporting data is available from **July 12, 2026**. Windows ending earlier
|
|
64
|
+
* are rejected; crossing windows are clamped to that boundary in the requested
|
|
65
|
+
* timezone.
|
|
66
|
+
* 3. Optionally narrow with `filters` — a rule
|
|
67
|
+
* (`{ "kind": "rule", "fieldId": "...", "operator": "in", "value": [...] }`) or
|
|
68
|
+
* an `and`/`or` group of rules. Attribute IDs and allowed operators come from
|
|
69
|
+
* the catalog.
|
|
70
|
+
* 4. Optionally break results down with `groupBy` (primary dimension) and
|
|
71
|
+
* `segmentBy` (secondary dimension).
|
|
72
|
+
* 5. Optionally pass `compareStartDate` / `compareEndDate` to get `previousValue`
|
|
73
|
+
* / `deltaPercent` alongside every data point.
|
|
74
|
+
*
|
|
75
|
+
* ### Example
|
|
76
|
+
*
|
|
77
|
+
* ```json
|
|
78
|
+
* {
|
|
79
|
+
* "metric": "new_conversations",
|
|
80
|
+
* "aggregation": "count",
|
|
81
|
+
* "startDate": "2026-07-12",
|
|
82
|
+
* "endDate": "2026-07-15",
|
|
83
|
+
* "granularity": "day",
|
|
84
|
+
* "groupBy": "conversation.channel",
|
|
85
|
+
* "filters": {
|
|
86
|
+
* "kind": "rule",
|
|
87
|
+
* "fieldId": "conversation.state",
|
|
88
|
+
* "operator": "is",
|
|
89
|
+
* "value": "closed"
|
|
90
|
+
* }
|
|
91
|
+
* }
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* ### Response shape
|
|
95
|
+
*
|
|
96
|
+
* - `value` — the aggregate across the whole window
|
|
97
|
+
* - `timeSeries` — one datum per granularity bucket
|
|
98
|
+
* - `groupedData` / `segmentData` — present when `groupBy` / `segmentBy` were
|
|
99
|
+
* requested
|
|
100
|
+
* - `flowData` — present for `view: "sankey"` (Overview conversation-flow metrics)
|
|
101
|
+
* - `meta` — echo of the resolved metric, dataset, unit and aggregation
|
|
102
|
+
*
|
|
103
|
+
* ### Special views
|
|
104
|
+
*
|
|
105
|
+
* - `view: "hourly_heatmap"` buckets by day-of-week × hour-of-day (use with volume
|
|
106
|
+
* metrics)
|
|
107
|
+
* - `view: "sankey"` returns conversation flow edges (Overview metrics only)
|
|
108
|
+
*
|
|
109
|
+
* ### Version Availability
|
|
110
|
+
*
|
|
111
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer, and
|
|
112
|
+
* only for workspaces with the Reports product enabled (404 otherwise).
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```ts
|
|
116
|
+
* const response = await client.reports.query({
|
|
117
|
+
* aggregation: 'count',
|
|
118
|
+
* endDate: '2026-07-15',
|
|
119
|
+
* granularity: 'day',
|
|
120
|
+
* metric: 'new_conversations',
|
|
121
|
+
* startDate: '2026-07-12',
|
|
122
|
+
* });
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
125
|
+
query(params, options) {
|
|
126
|
+
const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
|
|
127
|
+
return this._client.post('/v2/reports/query', {
|
|
128
|
+
body,
|
|
129
|
+
...options,
|
|
130
|
+
headers: buildHeaders([
|
|
131
|
+
{
|
|
132
|
+
...(featurebaseVersion?.toString() != null ?
|
|
133
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
134
|
+
: undefined),
|
|
135
|
+
},
|
|
136
|
+
options?.headers,
|
|
137
|
+
]),
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Returns the available values for a filterable attribute — use it to build valid
|
|
142
|
+
* `filters` rules for `POST /v2/reports/query`.
|
|
143
|
+
*
|
|
144
|
+
* Works for attributes whose values live in your workspace data (tags, teammates,
|
|
145
|
+
* teams, companies, plans, countries, ...). Attributes with `staticOptions` in the
|
|
146
|
+
* catalog don't need this endpoint — their value set is already inline.
|
|
147
|
+
*
|
|
148
|
+
* - `query` narrows results by search string
|
|
149
|
+
* - `selectedValues` resolves labels for values you already hold (returned
|
|
150
|
+
* alongside search results)
|
|
151
|
+
*
|
|
152
|
+
* ### Example
|
|
153
|
+
*
|
|
154
|
+
* ```json
|
|
155
|
+
* { "fieldId": "conversation.tags", "query": "bill", "limit": 20 }
|
|
156
|
+
* ```
|
|
157
|
+
*
|
|
158
|
+
* ### Version Availability
|
|
159
|
+
*
|
|
160
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer, and
|
|
161
|
+
* only for workspaces with the Reports product enabled (404 otherwise).
|
|
162
|
+
*
|
|
163
|
+
* @example
|
|
164
|
+
* ```ts
|
|
165
|
+
* const response = await client.reports.lookupFilterValues({
|
|
166
|
+
* fieldId: 'conversation.tags',
|
|
167
|
+
* });
|
|
168
|
+
* ```
|
|
169
|
+
*/
|
|
170
|
+
lookupFilterValues(params, options) {
|
|
171
|
+
const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
|
|
172
|
+
return this._client.post('/v2/reports/filter-values', {
|
|
173
|
+
body,
|
|
174
|
+
...options,
|
|
175
|
+
headers: buildHeaders([
|
|
176
|
+
{
|
|
177
|
+
...(featurebaseVersion?.toString() != null ?
|
|
178
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
179
|
+
: undefined),
|
|
180
|
+
},
|
|
181
|
+
options?.headers,
|
|
182
|
+
]),
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Returns the paginated row-level records behind a metric — either the whole
|
|
187
|
+
* reporting window, or one specific data point from a previous
|
|
188
|
+
* `POST /v2/reports/query` response.
|
|
189
|
+
*
|
|
190
|
+
* Send the **same** `metric`, date range, `granularity`, `filters`, `groupBy` /
|
|
191
|
+
* `segmentBy` and `view` as the query you're drilling into, plus
|
|
192
|
+
* `dataPointFilters` selecting the data point:
|
|
193
|
+
*
|
|
194
|
+
* - `timeBucket` — a `date` from the time series
|
|
195
|
+
* - `groupValue` / `segmentValue` — a `group` / `segment` value from grouped data
|
|
196
|
+
* - `dayOfWeek` + `hourOfDay` — a heatmap cell (`hourly_heatmap` view)
|
|
197
|
+
* - `flowPathId` or `sourceNodeId` + `targetNodeId` — a flow edge (`sankey` view)
|
|
198
|
+
*
|
|
199
|
+
* Pass `dataPointFilters: {}` to list all rows behind the metric for the window.
|
|
200
|
+
*
|
|
201
|
+
* Results are paginated with `page` / `pageSize` (max 200 per page);
|
|
202
|
+
* `availableColumns` describes every column the dataset can return and
|
|
203
|
+
* `defaultColumnIds` the recommended subset. Rows are keyed by column ID; identity
|
|
204
|
+
* cells (teammates, contacts) are objects with `id` + `label`.
|
|
205
|
+
*
|
|
206
|
+
* ### Version Availability
|
|
207
|
+
*
|
|
208
|
+
* This endpoint is only available in API version 2026-01-01.nova and newer, and
|
|
209
|
+
* only for workspaces with the Reports product enabled (404 otherwise).
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* ```ts
|
|
213
|
+
* const response = await client.reports.drillIn({
|
|
214
|
+
* endDate: 'xxxxxxxxxx',
|
|
215
|
+
* granularity: 'day',
|
|
216
|
+
* metric: 'new_conversations',
|
|
217
|
+
* startDate: 'xxxxxxxxxx',
|
|
218
|
+
* });
|
|
219
|
+
* ```
|
|
220
|
+
*/
|
|
221
|
+
drillIn(params, options) {
|
|
222
|
+
const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
|
|
223
|
+
return this._client.post('/v2/reports/drill-in', {
|
|
224
|
+
body,
|
|
225
|
+
...options,
|
|
226
|
+
headers: buildHeaders([
|
|
227
|
+
{
|
|
228
|
+
...(featurebaseVersion?.toString() != null ?
|
|
229
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
230
|
+
: undefined),
|
|
231
|
+
},
|
|
232
|
+
options?.headers,
|
|
233
|
+
]),
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
//# sourceMappingURL=reports.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reports.mjs","sourceRoot":"","sources":["../src/resources/reports.ts"],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SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,kBAAkB,CAChB,MAAsC,EACtC,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2BAA2B,EAAE;YACpD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBAC1C,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,OAAO,CAAC,MAA2B,EAAE,OAAwB;QAC3D,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC/C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBAC1C,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -102,7 +102,7 @@ export declare class Contacts extends APIResource {
|
|
|
102
102
|
* | `subscribedToChangelog` | boolean | No | Whether subscribed to changelog |
|
|
103
103
|
* | `locale` | string | No | Contact locale/language |
|
|
104
104
|
* | `phone` | string | No | Contact phone number |
|
|
105
|
-
* | `roles` | array | No | Role
|
|
105
|
+
* | `roles` | array | No | Role (User Tag) names to assign |
|
|
106
106
|
* | `userHash` | string | No | HMAC hash for identity verification |
|
|
107
107
|
* | `createdAt` | string | No | When the contact was created (ISO 8601) |
|
|
108
108
|
*
|
|
@@ -786,7 +786,7 @@ export interface ContactCreateOrUpdateParams {
|
|
|
786
786
|
*/
|
|
787
787
|
profilePicture?: string | null;
|
|
788
788
|
/**
|
|
789
|
-
* Body param: Array of role
|
|
789
|
+
* Body param: Array of role (User Tag) names to assign to the contact
|
|
790
790
|
*/
|
|
791
791
|
roles?: Array<string>;
|
|
792
792
|
/**
|
|
@@ -102,7 +102,7 @@ export declare class Contacts extends APIResource {
|
|
|
102
102
|
* | `subscribedToChangelog` | boolean | No | Whether subscribed to changelog |
|
|
103
103
|
* | `locale` | string | No | Contact locale/language |
|
|
104
104
|
* | `phone` | string | No | Contact phone number |
|
|
105
|
-
* | `roles` | array | No | Role
|
|
105
|
+
* | `roles` | array | No | Role (User Tag) names to assign |
|
|
106
106
|
* | `userHash` | string | No | HMAC hash for identity verification |
|
|
107
107
|
* | `createdAt` | string | No | When the contact was created (ISO 8601) |
|
|
108
108
|
*
|
|
@@ -786,7 +786,7 @@ export interface ContactCreateOrUpdateParams {
|
|
|
786
786
|
*/
|
|
787
787
|
profilePicture?: string | null;
|
|
788
788
|
/**
|
|
789
|
-
* Body param: Array of role
|
|
789
|
+
* Body param: Array of role (User Tag) names to assign to the contact
|
|
790
790
|
*/
|
|
791
791
|
roles?: Array<string>;
|
|
792
792
|
/**
|
|
@@ -121,7 +121,7 @@ class Contacts extends resource_1.APIResource {
|
|
|
121
121
|
* | `subscribedToChangelog` | boolean | No | Whether subscribed to changelog |
|
|
122
122
|
* | `locale` | string | No | Contact locale/language |
|
|
123
123
|
* | `phone` | string | No | Contact phone number |
|
|
124
|
-
* | `roles` | array | No | Role
|
|
124
|
+
* | `roles` | array | No | Role (User Tag) names to assign |
|
|
125
125
|
* | `userHash` | string | No | HMAC hash for identity verification |
|
|
126
126
|
* | `createdAt` | string | No | When the contact was created (ISO 8601) |
|
|
127
127
|
*
|
|
@@ -117,7 +117,7 @@ export class Contacts extends APIResource {
|
|
|
117
117
|
* | `subscribedToChangelog` | boolean | No | Whether subscribed to changelog |
|
|
118
118
|
* | `locale` | string | No | Contact locale/language |
|
|
119
119
|
* | `phone` | string | No | Contact phone number |
|
|
120
|
-
* | `roles` | array | No | Role
|
|
120
|
+
* | `roles` | array | No | Role (User Tag) names to assign |
|
|
121
121
|
* | `userHash` | string | No | HMAC hash for identity verification |
|
|
122
122
|
* | `createdAt` | string | No | When the contact was created (ISO 8601) |
|
|
123
123
|
*
|
package/resources/webhooks.d.mts
CHANGED
|
@@ -96,6 +96,8 @@ export declare class Webhooks extends APIResource {
|
|
|
96
96
|
* - `comment.created` - When a comment is created
|
|
97
97
|
* - `comment.updated` - When a comment is updated
|
|
98
98
|
* - `comment.deleted` - When a comment is deleted
|
|
99
|
+
* - `audit_log.created` - When an audit log event is recorded (requires Enterprise
|
|
100
|
+
* plan)
|
|
99
101
|
*
|
|
100
102
|
* ### Response
|
|
101
103
|
*
|
|
@@ -420,7 +422,7 @@ export interface Webhook {
|
|
|
420
422
|
/**
|
|
421
423
|
* Array of event topics the webhook subscribes to
|
|
422
424
|
*/
|
|
423
|
-
topics: Array<'post.created' | 'post.updated' | 'post.deleted' | 'post.voted' | 'ticket.created' | 'ticket.updated' | 'ticket.deleted' | 'changelog.published' | 'comment.created' | 'comment.updated' | 'comment.deleted' | 'conversation.user.created' | 'conversation.user.replied' | 'conversation.admin.replied' | 'conversation.admin.closed' | 'conversation.handover_requested' | 'conversation.admin.assigned' | 'conversation.admin.noted' | 'conversation.admin.snoozed' | 'conversation.admin.unsnoozed' | 'conversation.admin.opened' | 'conversation.priority.updated' | 'conversation.deleted' | 'conversation.contact.attached' | 'conversation.contact.detached' | 'conversation.read' | 'conversation_part.redacted'>;
|
|
425
|
+
topics: Array<'post.created' | 'post.updated' | 'post.deleted' | 'post.voted' | 'ticket.created' | 'ticket.updated' | 'ticket.deleted' | 'changelog.published' | 'comment.created' | 'comment.updated' | 'comment.deleted' | 'conversation.user.created' | 'conversation.user.replied' | 'conversation.admin.replied' | 'conversation.admin.closed' | 'conversation.handover_requested' | 'conversation.admin.assigned' | 'conversation.admin.noted' | 'conversation.admin.snoozed' | 'conversation.admin.unsnoozed' | 'conversation.admin.opened' | 'conversation.priority.updated' | 'conversation.deleted' | 'conversation.contact.attached' | 'conversation.contact.detached' | 'conversation.read' | 'conversation_part.redacted' | 'audit_log.created'>;
|
|
424
426
|
/**
|
|
425
427
|
* ISO timestamp when the webhook was last updated
|
|
426
428
|
*/
|
|
@@ -531,7 +533,7 @@ export interface WebhookCreateParams {
|
|
|
531
533
|
/**
|
|
532
534
|
* Body param: Array of event topics to subscribe to
|
|
533
535
|
*/
|
|
534
|
-
topics: Array<'post.created' | 'post.updated' | 'post.deleted' | 'post.voted' | 'ticket.created' | 'ticket.updated' | 'ticket.deleted' | 'changelog.published' | 'comment.created' | 'comment.updated' | 'comment.deleted' | 'conversation.user.created' | 'conversation.user.replied' | 'conversation.admin.replied' | 'conversation.admin.closed' | 'conversation.handover_requested' | 'conversation.admin.assigned' | 'conversation.admin.noted' | 'conversation.admin.snoozed' | 'conversation.admin.unsnoozed' | 'conversation.admin.opened' | 'conversation.priority.updated' | 'conversation.deleted' | 'conversation.contact.attached' | 'conversation.contact.detached' | 'conversation.read' | 'conversation_part.redacted'>;
|
|
536
|
+
topics: Array<'post.created' | 'post.updated' | 'post.deleted' | 'post.voted' | 'ticket.created' | 'ticket.updated' | 'ticket.deleted' | 'changelog.published' | 'comment.created' | 'comment.updated' | 'comment.deleted' | 'conversation.user.created' | 'conversation.user.replied' | 'conversation.admin.replied' | 'conversation.admin.closed' | 'conversation.handover_requested' | 'conversation.admin.assigned' | 'conversation.admin.noted' | 'conversation.admin.snoozed' | 'conversation.admin.unsnoozed' | 'conversation.admin.opened' | 'conversation.priority.updated' | 'conversation.deleted' | 'conversation.contact.attached' | 'conversation.contact.detached' | 'conversation.read' | 'conversation_part.redacted' | 'audit_log.created'>;
|
|
535
537
|
/**
|
|
536
538
|
* Body param: Webhook endpoint URL (must be HTTPS)
|
|
537
539
|
*/
|
|
@@ -577,7 +579,7 @@ export interface WebhookUpdateParams {
|
|
|
577
579
|
/**
|
|
578
580
|
* Body param: Array of event topics to subscribe to
|
|
579
581
|
*/
|
|
580
|
-
topics?: Array<'post.created' | 'post.updated' | 'post.deleted' | 'post.voted' | 'ticket.created' | 'ticket.updated' | 'ticket.deleted' | 'changelog.published' | 'comment.created' | 'comment.updated' | 'comment.deleted' | 'conversation.user.created' | 'conversation.user.replied' | 'conversation.admin.replied' | 'conversation.admin.closed' | 'conversation.handover_requested' | 'conversation.admin.assigned' | 'conversation.admin.noted' | 'conversation.admin.snoozed' | 'conversation.admin.unsnoozed' | 'conversation.admin.opened' | 'conversation.priority.updated' | 'conversation.deleted' | 'conversation.contact.attached' | 'conversation.contact.detached' | 'conversation.read' | 'conversation_part.redacted'>;
|
|
582
|
+
topics?: Array<'post.created' | 'post.updated' | 'post.deleted' | 'post.voted' | 'ticket.created' | 'ticket.updated' | 'ticket.deleted' | 'changelog.published' | 'comment.created' | 'comment.updated' | 'comment.deleted' | 'conversation.user.created' | 'conversation.user.replied' | 'conversation.admin.replied' | 'conversation.admin.closed' | 'conversation.handover_requested' | 'conversation.admin.assigned' | 'conversation.admin.noted' | 'conversation.admin.snoozed' | 'conversation.admin.unsnoozed' | 'conversation.admin.opened' | 'conversation.priority.updated' | 'conversation.deleted' | 'conversation.contact.attached' | 'conversation.contact.detached' | 'conversation.read' | 'conversation_part.redacted' | 'audit_log.created'>;
|
|
581
583
|
/**
|
|
582
584
|
* Body param: Webhook endpoint URL (must be HTTPS)
|
|
583
585
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,+BAA2B;AAEpF,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6DG;IACH,IAAI,CACF,MAAM,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kBAAkB,EAAE,OAAO,CAAC;IAgB3C
|
|
1
|
+
{"version":3,"file":"webhooks.d.mts","sourceRoot":"","sources":["../src/resources/webhooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,+BAA2B;AAEpF,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6DG;IACH,IAAI,CACF,MAAM,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kBAAkB,EAAE,OAAO,CAAC;IAgB3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmFG;IACH,MAAM,CAAC,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cA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