@oursprivacy/platform-sdk 1.55.0 → 1.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/client.d.mts +15 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +15 -6
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +4 -2
- package/resources/consent-settings.d.mts +90 -1
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +90 -1
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/consent-settings.js +13 -0
- package/resources/consent-settings.js.map +1 -1
- package/resources/consent-settings.mjs +13 -0
- package/resources/consent-settings.mjs.map +1 -1
- package/resources/custom-domains.d.mts +10 -4
- package/resources/custom-domains.d.mts.map +1 -1
- package/resources/custom-domains.d.ts +10 -4
- package/resources/custom-domains.d.ts.map +1 -1
- package/resources/custom-domains.js +3 -2
- package/resources/custom-domains.js.map +1 -1
- package/resources/custom-domains.mjs +3 -2
- package/resources/custom-domains.mjs.map +1 -1
- package/resources/dashboards.d.mts +4737 -0
- package/resources/dashboards.d.mts.map +1 -0
- package/resources/dashboards.d.ts +4737 -0
- package/resources/dashboards.d.ts.map +1 -0
- package/resources/dashboards.js +124 -0
- package/resources/dashboards.js.map +1 -0
- package/resources/dashboards.mjs +120 -0
- package/resources/dashboards.mjs.map +1 -0
- package/resources/data-governance.d.mts +19 -26
- package/resources/data-governance.d.mts.map +1 -1
- package/resources/data-governance.d.ts +19 -26
- package/resources/data-governance.d.ts.map +1 -1
- package/resources/data-governance.js +14 -13
- package/resources/data-governance.js.map +1 -1
- package/resources/data-governance.mjs +14 -13
- package/resources/data-governance.mjs.map +1 -1
- package/resources/destinations.d.mts +46 -11
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +46 -11
- package/resources/destinations.d.ts.map +1 -1
- package/resources/experiment-settings.d.mts +84 -24
- package/resources/experiment-settings.d.mts.map +1 -1
- package/resources/experiment-settings.d.ts +84 -24
- package/resources/experiment-settings.d.ts.map +1 -1
- package/resources/experiment-settings.js +9 -4
- package/resources/experiment-settings.js.map +1 -1
- package/resources/experiment-settings.mjs +9 -4
- package/resources/experiment-settings.mjs.map +1 -1
- package/resources/funnels.d.mts +64 -7
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +64 -7
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +2 -1
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +2 -1
- package/resources/funnels.mjs.map +1 -1
- package/resources/index.d.mts +6 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/insights.d.mts +1152 -0
- package/resources/insights.d.mts.map +1 -0
- package/resources/insights.d.ts +1152 -0
- package/resources/insights.d.ts.map +1 -0
- package/resources/insights.js +81 -0
- package/resources/insights.js.map +1 -0
- package/resources/insights.mjs +77 -0
- package/resources/insights.mjs.map +1 -0
- package/resources/journey-flows.d.mts +214 -17
- package/resources/journey-flows.d.mts.map +1 -1
- package/resources/journey-flows.d.ts +214 -17
- package/resources/journey-flows.d.ts.map +1 -1
- package/resources/journey-flows.js +17 -13
- package/resources/journey-flows.js.map +1 -1
- package/resources/journey-flows.mjs +17 -13
- package/resources/journey-flows.mjs.map +1 -1
- package/resources/replay-settings.d.mts +72 -42
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +72 -42
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/replay-settings.js +12 -7
- package/resources/replay-settings.js.map +1 -1
- package/resources/replay-settings.mjs +12 -7
- package/resources/replay-settings.mjs.map +1 -1
- package/resources/report-branding.d.mts +157 -0
- package/resources/report-branding.d.mts.map +1 -0
- package/resources/report-branding.d.ts +157 -0
- package/resources/report-branding.d.ts.map +1 -0
- package/resources/report-branding.js +39 -0
- package/resources/report-branding.js.map +1 -0
- package/resources/report-branding.mjs +35 -0
- package/resources/report-branding.mjs.map +1 -0
- package/resources/tag-manager-triggers.d.mts +46 -4
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +46 -4
- package/resources/tag-manager-triggers.d.ts.map +1 -1
- package/resources/tag-manager-triggers.js +6 -4
- package/resources/tag-manager-triggers.js.map +1 -1
- package/resources/tag-manager-triggers.mjs +6 -4
- package/resources/tag-manager-triggers.mjs.map +1 -1
- package/resources/tag-manager-variables.d.mts +25 -13
- package/resources/tag-manager-variables.d.mts.map +1 -1
- package/resources/tag-manager-variables.d.ts +25 -13
- package/resources/tag-manager-variables.d.ts.map +1 -1
- package/resources/tag-manager-variables.js +9 -4
- package/resources/tag-manager-variables.js.map +1 -1
- package/resources/tag-manager-variables.mjs +9 -4
- package/resources/tag-manager-variables.mjs.map +1 -1
- package/resources/tag-managers.d.mts +17 -1
- package/resources/tag-managers.d.mts.map +1 -1
- package/resources/tag-managers.d.ts +17 -1
- package/resources/tag-managers.d.ts.map +1 -1
- package/resources/tag-managers.js +10 -0
- package/resources/tag-managers.js.map +1 -1
- package/resources/tag-managers.mjs +10 -0
- package/resources/tag-managers.mjs.map +1 -1
- package/resources/test-events.d.mts +28 -13
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +28 -13
- package/resources/test-events.d.ts.map +1 -1
- package/resources/versions.d.mts +607 -139
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +607 -139
- package/resources/versions.d.ts.map +1 -1
- package/resources/versions.js +2 -0
- package/resources/versions.js.map +1 -1
- package/resources/versions.mjs +2 -0
- package/resources/versions.mjs.map +1 -1
- package/resources/web-analytics.d.mts +91 -39
- package/resources/web-analytics.d.mts.map +1 -1
- package/resources/web-analytics.d.ts +91 -39
- package/resources/web-analytics.d.ts.map +1 -1
- package/resources/web-analytics.js +11 -0
- package/resources/web-analytics.js.map +1 -1
- package/resources/web-analytics.mjs +11 -0
- package/resources/web-analytics.mjs.map +1 -1
- package/resources/web-scanners.d.mts +3 -2
- package/resources/web-scanners.d.mts.map +1 -1
- package/resources/web-scanners.d.ts +3 -2
- package/resources/web-scanners.d.ts.map +1 -1
- package/resources/web-scanners.js +3 -2
- package/resources/web-scanners.js.map +1 -1
- package/resources/web-scanners.mjs +3 -2
- package/resources/web-scanners.mjs.map +1 -1
- package/src/client.ts +118 -3
- package/src/internal/utils/log.ts +1 -3
- package/src/resources/consent-settings.ts +117 -0
- package/src/resources/custom-domains.ts +14 -4
- package/src/resources/dashboards.ts +8757 -0
- package/src/resources/data-governance.ts +19 -26
- package/src/resources/destinations.ts +50 -6
- package/src/resources/experiment-settings.ts +84 -24
- package/src/resources/funnels.ts +64 -7
- package/src/resources/index.ts +54 -0
- package/src/resources/insights.ts +1976 -0
- package/src/resources/journey-flows.ts +214 -17
- package/src/resources/replay-settings.ts +77 -42
- package/src/resources/report-branding.ts +207 -0
- package/src/resources/tag-manager-triggers.ts +55 -4
- package/src/resources/tag-manager-variables.ts +25 -13
- package/src/resources/tag-managers.ts +21 -0
- package/src/resources/test-events.ts +30 -13
- package/src/resources/versions.ts +777 -139
- package/src/resources/web-analytics.ts +137 -38
- package/src/resources/web-scanners.ts +3 -2
- 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
|
@@ -26,16 +26,18 @@ export class ReplaySettings extends APIResource {
|
|
|
26
26
|
/**
|
|
27
27
|
* Create the replay configuration for this account. Each account is limited to one
|
|
28
28
|
* replay configuration — calls made when one already exists return HTTP 409 with
|
|
29
|
-
* the reason in the response `error` field.
|
|
30
|
-
* OAuth user
|
|
29
|
+
* the reason in the response `error` field. Publish with `POST /versions` for the
|
|
30
|
+
* configuration to take effect. Requires API-key scope or current OAuth user
|
|
31
|
+
* permission: replaySettings:create
|
|
31
32
|
*/
|
|
32
33
|
create(body: ReplaySettingCreateParams, options?: RequestOptions): APIPromise<ReplaySettingCreateResponse> {
|
|
33
34
|
return this._client.post('/rest/v1/replay-settings', { body, ...options });
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
/**
|
|
37
|
-
* Fetch a single replay configuration by ID, including its whitelisted domains
|
|
38
|
-
* custom domain.
|
|
38
|
+
* Fetch a single replay configuration by ID, including its whitelisted domains,
|
|
39
|
+
* custom domain, and public replay pixel token. Returns HTTP 404 when it does not
|
|
40
|
+
* exist. Requires API-key scope or current OAuth user permission:
|
|
39
41
|
* replaySettings:find
|
|
40
42
|
*/
|
|
41
43
|
retrieve(id: string, options?: RequestOptions): APIPromise<ReplaySettingRetrieveResponse | null> {
|
|
@@ -46,6 +48,8 @@ export class ReplaySettings extends APIResource {
|
|
|
46
48
|
* Update one or more fields on an existing replay configuration. Only the fields
|
|
47
49
|
* you send are changed; omitted fields keep their current value. Note that
|
|
48
50
|
* `whitelistDomains` is replaced wholesale (not merged with the existing list).
|
|
51
|
+
* Null leaves `name`, `status`, and `whitelistDomains` unchanged; null clears
|
|
52
|
+
* `customDomain`. Publish with `POST /versions` for changes to take effect.
|
|
49
53
|
* Requires API-key scope or current OAuth user permission: replaySettings:update
|
|
50
54
|
*/
|
|
51
55
|
update(
|
|
@@ -57,9 +61,10 @@ export class ReplaySettings extends APIResource {
|
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
/**
|
|
60
|
-
* Delete the replay configuration
|
|
61
|
-
* domains.
|
|
62
|
-
*
|
|
64
|
+
* Delete the replay configuration from the draft. Publish with `POST /versions`
|
|
65
|
+
* for capture to stop on all whitelisted domains. Returns the same HTTP 404 when
|
|
66
|
+
* the configuration is missing or inaccessible. Requires API-key scope or current
|
|
67
|
+
* OAuth user permission: replaySettings:delete
|
|
63
68
|
*/
|
|
64
69
|
delete(id: string, options?: RequestOptions): APIPromise<ReplaySettingDeleteResponse> {
|
|
65
70
|
return this._client.delete(path`/rest/v1/replay-settings/${id}`, options);
|
|
@@ -81,14 +86,20 @@ export interface ReplaySettingListResponse {
|
|
|
81
86
|
|
|
82
87
|
/**
|
|
83
88
|
* Human-readable label for this replay configuration. Shown in the dashboard. May
|
|
84
|
-
* be empty.
|
|
89
|
+
* be empty. On PATCH, `null` leaves it unchanged.
|
|
85
90
|
*/
|
|
86
91
|
name: string;
|
|
87
92
|
|
|
93
|
+
/**
|
|
94
|
+
* Server-assigned public replay token used by the browser SDK to start session
|
|
95
|
+
* replay capture.
|
|
96
|
+
*/
|
|
97
|
+
pixel: string;
|
|
98
|
+
|
|
88
99
|
/**
|
|
89
100
|
* Whether session replay capture is currently active. Set to "Enabled" to start
|
|
90
101
|
* capturing replays from whitelisted domains, or "Disabled" to pause capture
|
|
91
|
-
* without losing the configuration.
|
|
102
|
+
* without losing the configuration. On PATCH, `null` leaves it unchanged.
|
|
92
103
|
*/
|
|
93
104
|
status: 'Disabled' | 'Enabled';
|
|
94
105
|
|
|
@@ -104,9 +115,9 @@ export interface ReplaySettingListResponse {
|
|
|
104
115
|
updatedAt?: string | null;
|
|
105
116
|
|
|
106
117
|
/**
|
|
107
|
-
*
|
|
108
|
-
* host not in this list are dropped. PATCH replaces the
|
|
109
|
-
* not merged.
|
|
118
|
+
* Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
|
|
119
|
+
* Replays initiated from any host not in this list are dropped. PATCH replaces the
|
|
120
|
+
* list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
|
|
110
121
|
*/
|
|
111
122
|
whitelistDomains?: Array<string> | null;
|
|
112
123
|
}
|
|
@@ -133,14 +144,20 @@ export namespace ReplaySettingCreateResponse {
|
|
|
133
144
|
|
|
134
145
|
/**
|
|
135
146
|
* Human-readable label for this replay configuration. Shown in the dashboard. May
|
|
136
|
-
* be empty.
|
|
147
|
+
* be empty. On PATCH, `null` leaves it unchanged.
|
|
137
148
|
*/
|
|
138
149
|
name: string;
|
|
139
150
|
|
|
151
|
+
/**
|
|
152
|
+
* Server-assigned public replay token used by the browser SDK to start session
|
|
153
|
+
* replay capture.
|
|
154
|
+
*/
|
|
155
|
+
pixel: string;
|
|
156
|
+
|
|
140
157
|
/**
|
|
141
158
|
* Whether session replay capture is currently active. Set to "Enabled" to start
|
|
142
159
|
* capturing replays from whitelisted domains, or "Disabled" to pause capture
|
|
143
|
-
* without losing the configuration.
|
|
160
|
+
* without losing the configuration. On PATCH, `null` leaves it unchanged.
|
|
144
161
|
*/
|
|
145
162
|
status: 'Disabled' | 'Enabled';
|
|
146
163
|
|
|
@@ -156,9 +173,9 @@ export namespace ReplaySettingCreateResponse {
|
|
|
156
173
|
updatedAt?: string | null;
|
|
157
174
|
|
|
158
175
|
/**
|
|
159
|
-
*
|
|
160
|
-
* host not in this list are dropped. PATCH replaces the
|
|
161
|
-
* not merged.
|
|
176
|
+
* Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
|
|
177
|
+
* Replays initiated from any host not in this list are dropped. PATCH replaces the
|
|
178
|
+
* list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
|
|
162
179
|
*/
|
|
163
180
|
whitelistDomains?: Array<string> | null;
|
|
164
181
|
}
|
|
@@ -177,14 +194,20 @@ export interface ReplaySettingRetrieveResponse {
|
|
|
177
194
|
|
|
178
195
|
/**
|
|
179
196
|
* Human-readable label for this replay configuration. Shown in the dashboard. May
|
|
180
|
-
* be empty.
|
|
197
|
+
* be empty. On PATCH, `null` leaves it unchanged.
|
|
181
198
|
*/
|
|
182
199
|
name: string;
|
|
183
200
|
|
|
201
|
+
/**
|
|
202
|
+
* Server-assigned public replay token used by the browser SDK to start session
|
|
203
|
+
* replay capture.
|
|
204
|
+
*/
|
|
205
|
+
pixel: string;
|
|
206
|
+
|
|
184
207
|
/**
|
|
185
208
|
* Whether session replay capture is currently active. Set to "Enabled" to start
|
|
186
209
|
* capturing replays from whitelisted domains, or "Disabled" to pause capture
|
|
187
|
-
* without losing the configuration.
|
|
210
|
+
* without losing the configuration. On PATCH, `null` leaves it unchanged.
|
|
188
211
|
*/
|
|
189
212
|
status: 'Disabled' | 'Enabled';
|
|
190
213
|
|
|
@@ -200,9 +223,9 @@ export interface ReplaySettingRetrieveResponse {
|
|
|
200
223
|
updatedAt?: string | null;
|
|
201
224
|
|
|
202
225
|
/**
|
|
203
|
-
*
|
|
204
|
-
* host not in this list are dropped. PATCH replaces the
|
|
205
|
-
* not merged.
|
|
226
|
+
* Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
|
|
227
|
+
* Replays initiated from any host not in this list are dropped. PATCH replaces the
|
|
228
|
+
* list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
|
|
206
229
|
*/
|
|
207
230
|
whitelistDomains?: Array<string> | null;
|
|
208
231
|
}
|
|
@@ -229,14 +252,20 @@ export namespace ReplaySettingUpdateResponse {
|
|
|
229
252
|
|
|
230
253
|
/**
|
|
231
254
|
* Human-readable label for this replay configuration. Shown in the dashboard. May
|
|
232
|
-
* be empty.
|
|
255
|
+
* be empty. On PATCH, `null` leaves it unchanged.
|
|
233
256
|
*/
|
|
234
257
|
name: string;
|
|
235
258
|
|
|
259
|
+
/**
|
|
260
|
+
* Server-assigned public replay token used by the browser SDK to start session
|
|
261
|
+
* replay capture.
|
|
262
|
+
*/
|
|
263
|
+
pixel: string;
|
|
264
|
+
|
|
236
265
|
/**
|
|
237
266
|
* Whether session replay capture is currently active. Set to "Enabled" to start
|
|
238
267
|
* capturing replays from whitelisted domains, or "Disabled" to pause capture
|
|
239
|
-
* without losing the configuration.
|
|
268
|
+
* without losing the configuration. On PATCH, `null` leaves it unchanged.
|
|
240
269
|
*/
|
|
241
270
|
status: 'Disabled' | 'Enabled';
|
|
242
271
|
|
|
@@ -252,9 +281,9 @@ export namespace ReplaySettingUpdateResponse {
|
|
|
252
281
|
updatedAt?: string | null;
|
|
253
282
|
|
|
254
283
|
/**
|
|
255
|
-
*
|
|
256
|
-
* host not in this list are dropped. PATCH replaces the
|
|
257
|
-
* not merged.
|
|
284
|
+
* Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
|
|
285
|
+
* Replays initiated from any host not in this list are dropped. PATCH replaces the
|
|
286
|
+
* list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
|
|
258
287
|
*/
|
|
259
288
|
whitelistDomains?: Array<string> | null;
|
|
260
289
|
}
|
|
@@ -282,14 +311,20 @@ export namespace ReplaySettingDeleteResponse {
|
|
|
282
311
|
|
|
283
312
|
/**
|
|
284
313
|
* Human-readable label for this replay configuration. Shown in the dashboard. May
|
|
285
|
-
* be empty.
|
|
314
|
+
* be empty. On PATCH, `null` leaves it unchanged.
|
|
286
315
|
*/
|
|
287
316
|
name: string;
|
|
288
317
|
|
|
318
|
+
/**
|
|
319
|
+
* Server-assigned public replay token used by the browser SDK to start session
|
|
320
|
+
* replay capture.
|
|
321
|
+
*/
|
|
322
|
+
pixel: string;
|
|
323
|
+
|
|
289
324
|
/**
|
|
290
325
|
* Whether session replay capture is currently active. Set to "Enabled" to start
|
|
291
326
|
* capturing replays from whitelisted domains, or "Disabled" to pause capture
|
|
292
|
-
* without losing the configuration.
|
|
327
|
+
* without losing the configuration. On PATCH, `null` leaves it unchanged.
|
|
293
328
|
*/
|
|
294
329
|
status: 'Disabled' | 'Enabled';
|
|
295
330
|
|
|
@@ -305,9 +340,9 @@ export namespace ReplaySettingDeleteResponse {
|
|
|
305
340
|
updatedAt?: string | null;
|
|
306
341
|
|
|
307
342
|
/**
|
|
308
|
-
*
|
|
309
|
-
* host not in this list are dropped. PATCH replaces the
|
|
310
|
-
* not merged.
|
|
343
|
+
* Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
|
|
344
|
+
* Replays initiated from any host not in this list are dropped. PATCH replaces the
|
|
345
|
+
* list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
|
|
311
346
|
*/
|
|
312
347
|
whitelistDomains?: Array<string> | null;
|
|
313
348
|
}
|
|
@@ -324,21 +359,21 @@ export interface ReplaySettingCreateParams {
|
|
|
324
359
|
|
|
325
360
|
/**
|
|
326
361
|
* Human-readable label for this replay configuration. Shown in the dashboard. May
|
|
327
|
-
* be empty.
|
|
362
|
+
* be empty. On PATCH, `null` leaves it unchanged.
|
|
328
363
|
*/
|
|
329
364
|
name?: string | null;
|
|
330
365
|
|
|
331
366
|
/**
|
|
332
367
|
* Whether session replay capture is currently active. Set to "Enabled" to start
|
|
333
368
|
* capturing replays from whitelisted domains, or "Disabled" to pause capture
|
|
334
|
-
* without losing the configuration.
|
|
369
|
+
* without losing the configuration. On PATCH, `null` leaves it unchanged.
|
|
335
370
|
*/
|
|
336
371
|
status?: 'Disabled' | 'Enabled' | null;
|
|
337
372
|
|
|
338
373
|
/**
|
|
339
|
-
*
|
|
340
|
-
* host not in this list are dropped. PATCH replaces the
|
|
341
|
-
* not merged.
|
|
374
|
+
* Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
|
|
375
|
+
* Replays initiated from any host not in this list are dropped. PATCH replaces the
|
|
376
|
+
* list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
|
|
342
377
|
*/
|
|
343
378
|
whitelistDomains?: Array<string> | null;
|
|
344
379
|
}
|
|
@@ -352,21 +387,21 @@ export interface ReplaySettingUpdateParams {
|
|
|
352
387
|
|
|
353
388
|
/**
|
|
354
389
|
* Human-readable label for this replay configuration. Shown in the dashboard. May
|
|
355
|
-
* be empty.
|
|
390
|
+
* be empty. On PATCH, `null` leaves it unchanged.
|
|
356
391
|
*/
|
|
357
392
|
name?: string | null;
|
|
358
393
|
|
|
359
394
|
/**
|
|
360
395
|
* Whether session replay capture is currently active. Set to "Enabled" to start
|
|
361
396
|
* capturing replays from whitelisted domains, or "Disabled" to pause capture
|
|
362
|
-
* without losing the configuration.
|
|
397
|
+
* without losing the configuration. On PATCH, `null` leaves it unchanged.
|
|
363
398
|
*/
|
|
364
399
|
status?: 'Disabled' | 'Enabled' | null;
|
|
365
400
|
|
|
366
401
|
/**
|
|
367
|
-
*
|
|
368
|
-
* host not in this list are dropped. PATCH replaces the
|
|
369
|
-
* not merged.
|
|
402
|
+
* Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
|
|
403
|
+
* Replays initiated from any host not in this list are dropped. PATCH replaces the
|
|
404
|
+
* list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
|
|
370
405
|
*/
|
|
371
406
|
whitelistDomains?: Array<string> | null;
|
|
372
407
|
}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class ReportBranding extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get the organization logo shown on Dashboards and Dashboard PDFs. Returns {
|
|
10
|
+
* logo: null } when no logo is set. Pass includeDataUrl=false to omit the image
|
|
11
|
+
* data and read only its format, dimensions, size, and update time. Requires
|
|
12
|
+
* Analytics Suite access. Requires API-key scope or current OAuth user permission:
|
|
13
|
+
* web-analytics:view
|
|
14
|
+
*/
|
|
15
|
+
retrieve(
|
|
16
|
+
query: ReportBrandingRetrieveParams | null | undefined = {},
|
|
17
|
+
options?: RequestOptions,
|
|
18
|
+
): APIPromise<ReportBrandingRetrieveResponse> {
|
|
19
|
+
return this._client.get('/rest/v1/report-branding/logo', { query, ...options });
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Replace the organization logo used on Dashboards and Dashboard PDFs. Send
|
|
24
|
+
* contentType and base64 data for a PNG, JPEG, or WebP image of at most 524288
|
|
25
|
+
* bytes and 4096 pixels in each dimension. The bytes must match contentType; SVG
|
|
26
|
+
* is not accepted, so rasterize vector logos first. Requires Analytics Suite
|
|
27
|
+
* access and organization:manage-report-branding. Requires API-key scope or
|
|
28
|
+
* current OAuth user permission: organization:manage-report-branding
|
|
29
|
+
*/
|
|
30
|
+
replace(
|
|
31
|
+
body: ReportBrandingReplaceParams,
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<ReportBrandingReplaceResponse> {
|
|
34
|
+
return this._client.put('/rest/v1/report-branding/logo', { body, ...options });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Remove the organization logo from Dashboards and Dashboard PDFs. Succeeds when
|
|
39
|
+
* no logo is set. Requires Analytics Suite access and
|
|
40
|
+
* organization:manage-report-branding. Requires API-key scope or current OAuth
|
|
41
|
+
* user permission: organization:manage-report-branding
|
|
42
|
+
*/
|
|
43
|
+
delete(options?: RequestOptions): APIPromise<ReportBrandingDeleteResponse> {
|
|
44
|
+
return this._client.delete('/rest/v1/report-branding/logo', options);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface ReportBrandingRetrieveResponse {
|
|
49
|
+
/**
|
|
50
|
+
* Organization logo shown on Dashboards and Dashboard PDFs, or null when none is
|
|
51
|
+
* set.
|
|
52
|
+
*/
|
|
53
|
+
logo: ReportBrandingRetrieveResponse.Logo | null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export namespace ReportBrandingRetrieveResponse {
|
|
57
|
+
/**
|
|
58
|
+
* Organization logo shown on Dashboards and Dashboard PDFs, or null when none is
|
|
59
|
+
* set.
|
|
60
|
+
*/
|
|
61
|
+
export interface Logo {
|
|
62
|
+
/**
|
|
63
|
+
* Decoded image size in bytes.
|
|
64
|
+
*/
|
|
65
|
+
byteSize: number;
|
|
66
|
+
|
|
67
|
+
contentType: 'image/png' | 'image/jpeg' | 'image/webp';
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Image height in pixels.
|
|
71
|
+
*/
|
|
72
|
+
height: number;
|
|
73
|
+
|
|
74
|
+
updatedAt: string;
|
|
75
|
+
|
|
76
|
+
updatedByUserId: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Image width in pixels.
|
|
80
|
+
*/
|
|
81
|
+
width: number;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* data: URL containing the base64 image. Returned by GET unless includeDataUrl is
|
|
85
|
+
* false; omitted from write responses.
|
|
86
|
+
*/
|
|
87
|
+
dataUrl?: string;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export interface ReportBrandingReplaceResponse {
|
|
92
|
+
/**
|
|
93
|
+
* Organization logo shown on Dashboards and Dashboard PDFs, or null when none is
|
|
94
|
+
* set.
|
|
95
|
+
*/
|
|
96
|
+
logo: ReportBrandingReplaceResponse.Logo | null;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export namespace ReportBrandingReplaceResponse {
|
|
100
|
+
/**
|
|
101
|
+
* Organization logo shown on Dashboards and Dashboard PDFs, or null when none is
|
|
102
|
+
* set.
|
|
103
|
+
*/
|
|
104
|
+
export interface Logo {
|
|
105
|
+
/**
|
|
106
|
+
* Decoded image size in bytes.
|
|
107
|
+
*/
|
|
108
|
+
byteSize: number;
|
|
109
|
+
|
|
110
|
+
contentType: 'image/png' | 'image/jpeg' | 'image/webp';
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Image height in pixels.
|
|
114
|
+
*/
|
|
115
|
+
height: number;
|
|
116
|
+
|
|
117
|
+
updatedAt: string;
|
|
118
|
+
|
|
119
|
+
updatedByUserId: string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Image width in pixels.
|
|
123
|
+
*/
|
|
124
|
+
width: number;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* data: URL containing the base64 image. Returned by GET unless includeDataUrl is
|
|
128
|
+
* false; omitted from write responses.
|
|
129
|
+
*/
|
|
130
|
+
dataUrl?: string;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface ReportBrandingDeleteResponse {
|
|
135
|
+
/**
|
|
136
|
+
* Organization logo shown on Dashboards and Dashboard PDFs, or null when none is
|
|
137
|
+
* set.
|
|
138
|
+
*/
|
|
139
|
+
logo: ReportBrandingDeleteResponse.Logo | null;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export namespace ReportBrandingDeleteResponse {
|
|
143
|
+
/**
|
|
144
|
+
* Organization logo shown on Dashboards and Dashboard PDFs, or null when none is
|
|
145
|
+
* set.
|
|
146
|
+
*/
|
|
147
|
+
export interface Logo {
|
|
148
|
+
/**
|
|
149
|
+
* Decoded image size in bytes.
|
|
150
|
+
*/
|
|
151
|
+
byteSize: number;
|
|
152
|
+
|
|
153
|
+
contentType: 'image/png' | 'image/jpeg' | 'image/webp';
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Image height in pixels.
|
|
157
|
+
*/
|
|
158
|
+
height: number;
|
|
159
|
+
|
|
160
|
+
updatedAt: string;
|
|
161
|
+
|
|
162
|
+
updatedByUserId: string;
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Image width in pixels.
|
|
166
|
+
*/
|
|
167
|
+
width: number;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* data: URL containing the base64 image. Returned by GET unless includeDataUrl is
|
|
171
|
+
* false; omitted from write responses.
|
|
172
|
+
*/
|
|
173
|
+
dataUrl?: string;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface ReportBrandingRetrieveParams {
|
|
178
|
+
/**
|
|
179
|
+
* Whether to return the image as logo.dataUrl. Defaults to true; pass false to
|
|
180
|
+
* read only the logo metadata.
|
|
181
|
+
*/
|
|
182
|
+
includeDataUrl?: boolean;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface ReportBrandingReplaceParams {
|
|
186
|
+
/**
|
|
187
|
+
* Image format: image/png, image/jpeg, or image/webp. SVG is not accepted;
|
|
188
|
+
* rasterize vector logos first. Must match the uploaded bytes.
|
|
189
|
+
*/
|
|
190
|
+
contentType: 'image/png' | 'image/jpeg' | 'image/webp';
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Standard base64 image bytes without a data: prefix. At most 524288 decoded bytes
|
|
194
|
+
* and 4096 pixels in each dimension.
|
|
195
|
+
*/
|
|
196
|
+
data: string;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export declare namespace ReportBranding {
|
|
200
|
+
export {
|
|
201
|
+
type ReportBrandingRetrieveResponse as ReportBrandingRetrieveResponse,
|
|
202
|
+
type ReportBrandingReplaceResponse as ReportBrandingReplaceResponse,
|
|
203
|
+
type ReportBrandingDeleteResponse as ReportBrandingDeleteResponse,
|
|
204
|
+
type ReportBrandingRetrieveParams as ReportBrandingRetrieveParams,
|
|
205
|
+
type ReportBrandingReplaceParams as ReportBrandingReplaceParams,
|
|
206
|
+
};
|
|
207
|
+
}
|
|
@@ -70,10 +70,12 @@ export class TagManagerTriggers extends APIResource {
|
|
|
70
70
|
/**
|
|
71
71
|
* Lists every trigger template the platform supports — what `type` discriminator
|
|
72
72
|
* to send on create/patch, and the shape of the type-specific `parameters`
|
|
73
|
-
* payload.
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
73
|
+
* payload. Also returns `conditionOperators` (`id`, `name`, `takesExpected`) and
|
|
74
|
+
* `builtInVariables` (`name`, `reference`, `description`, `category`). Use an
|
|
75
|
+
* operator `id` for `comparison` and an exact built-in `reference` such as
|
|
76
|
+
* `{{Page Path}}` for `actual`; built-ins need no variable creation.
|
|
77
|
+
* Account-agnostic: the response is the same for every API key. Requires API-key
|
|
78
|
+
* scope or current OAuth user permission: tagManagers:find
|
|
77
79
|
*/
|
|
78
80
|
types(options?: RequestOptions): APIPromise<TagManagerTriggerTypesResponse> {
|
|
79
81
|
return this._client.get('/rest/v1/tag-manager-triggers/types', options);
|
|
@@ -269,10 +271,59 @@ export interface TagManagerTriggerDeleteResponse {
|
|
|
269
271
|
}
|
|
270
272
|
|
|
271
273
|
export interface TagManagerTriggerTypesResponse {
|
|
274
|
+
/**
|
|
275
|
+
* Built-in variables available to tags, triggers, and variables.
|
|
276
|
+
*/
|
|
277
|
+
builtInVariables: Array<TagManagerTriggerTypesResponse.BuiltInVariable>;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Supported comparisons for trigger conditions.
|
|
281
|
+
*/
|
|
282
|
+
conditionOperators: Array<TagManagerTriggerTypesResponse.ConditionOperator>;
|
|
283
|
+
|
|
272
284
|
entities: Array<TagManagerTriggerTypesResponse.Entity>;
|
|
273
285
|
}
|
|
274
286
|
|
|
275
287
|
export namespace TagManagerTriggerTypesResponse {
|
|
288
|
+
export interface BuiltInVariable {
|
|
289
|
+
/**
|
|
290
|
+
* Variable group, or null when uncategorized.
|
|
291
|
+
*/
|
|
292
|
+
category: string | null;
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* Value supplied by this built-in variable.
|
|
296
|
+
*/
|
|
297
|
+
description: string;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Case-sensitive built-in variable name. No variable creation is needed.
|
|
301
|
+
*/
|
|
302
|
+
name: string;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Reference to use in conditions and template parameters, such as {{Page Path}}.
|
|
306
|
+
*/
|
|
307
|
+
reference: string;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export interface ConditionOperator {
|
|
311
|
+
/**
|
|
312
|
+
* Exact comparison value for trigger conditions.
|
|
313
|
+
*/
|
|
314
|
+
id: string;
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Display name of the comparison.
|
|
318
|
+
*/
|
|
319
|
+
name: string;
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Whether this operator compares actual against an expected value.
|
|
323
|
+
*/
|
|
324
|
+
takesExpected: boolean;
|
|
325
|
+
}
|
|
326
|
+
|
|
276
327
|
export interface Entity {
|
|
277
328
|
/**
|
|
278
329
|
* Type discriminator — pass this as `type` on create/patch.
|
|
@@ -38,8 +38,10 @@ export class TagManagerVariables extends APIResource {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
41
|
+
* Fetch one variable by id, including its type-specific `parameters`,
|
|
42
|
+
* `defaultValue`, `lookUpTable`, and read-only `folderId`. A missing id and an id
|
|
43
|
+
* this credential cannot access return the same 404. Requires API-key scope or
|
|
44
|
+
* current OAuth user permission: tagManagers:find
|
|
43
45
|
*/
|
|
44
46
|
retrieve(id: string, options?: RequestOptions): APIPromise<TagManagerVariableRetrieveResponse> {
|
|
45
47
|
return this._client.get(path`/rest/v1/tag-manager-variables/${id}`, options);
|
|
@@ -61,8 +63,11 @@ export class TagManagerVariables extends APIResource {
|
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
+
* Permanently delete a variable and return `{ id, deleted }`. Tags and triggers
|
|
67
|
+
* that reference it by name stop resolving it; use PATCH with `enabled: false` to
|
|
68
|
+
* pause it instead. A missing id and an id this credential cannot access return
|
|
69
|
+
* the same 404. Requires API-key scope or current OAuth user permission:
|
|
70
|
+
* tagManagers:update
|
|
66
71
|
*/
|
|
67
72
|
delete(id: string, options?: RequestOptions): APIPromise<TagManagerVariableDeleteResponse> {
|
|
68
73
|
return this._client.delete(path`/rest/v1/tag-manager-variables/${id}`, options);
|
|
@@ -121,8 +126,8 @@ export interface TagManagerVariableListResponse {
|
|
|
121
126
|
enabled?: boolean | null;
|
|
122
127
|
|
|
123
128
|
/**
|
|
124
|
-
* Folder this variable belongs to.
|
|
125
|
-
*
|
|
129
|
+
* Folder this variable belongs to. Read-only here; assign or remove folder
|
|
130
|
+
* membership with `POST /tag-manager-asset-folders`.
|
|
126
131
|
*/
|
|
127
132
|
folderId?: string | null;
|
|
128
133
|
|
|
@@ -178,8 +183,8 @@ export interface TagManagerVariableCreateResponse {
|
|
|
178
183
|
enabled?: boolean | null;
|
|
179
184
|
|
|
180
185
|
/**
|
|
181
|
-
* Folder this variable belongs to.
|
|
182
|
-
*
|
|
186
|
+
* Folder this variable belongs to. Read-only here; assign or remove folder
|
|
187
|
+
* membership with `POST /tag-manager-asset-folders`.
|
|
183
188
|
*/
|
|
184
189
|
folderId?: string | null;
|
|
185
190
|
|
|
@@ -235,8 +240,8 @@ export interface TagManagerVariableRetrieveResponse {
|
|
|
235
240
|
enabled?: boolean | null;
|
|
236
241
|
|
|
237
242
|
/**
|
|
238
|
-
* Folder this variable belongs to.
|
|
239
|
-
*
|
|
243
|
+
* Folder this variable belongs to. Read-only here; assign or remove folder
|
|
244
|
+
* membership with `POST /tag-manager-asset-folders`.
|
|
240
245
|
*/
|
|
241
246
|
folderId?: string | null;
|
|
242
247
|
|
|
@@ -292,8 +297,8 @@ export interface TagManagerVariableUpdateResponse {
|
|
|
292
297
|
enabled?: boolean | null;
|
|
293
298
|
|
|
294
299
|
/**
|
|
295
|
-
* Folder this variable belongs to.
|
|
296
|
-
*
|
|
300
|
+
* Folder this variable belongs to. Read-only here; assign or remove folder
|
|
301
|
+
* membership with `POST /tag-manager-asset-folders`.
|
|
297
302
|
*/
|
|
298
303
|
folderId?: string | null;
|
|
299
304
|
|
|
@@ -312,8 +317,14 @@ export interface TagManagerVariableUpdateResponse {
|
|
|
312
317
|
}
|
|
313
318
|
|
|
314
319
|
export interface TagManagerVariableDeleteResponse {
|
|
320
|
+
/**
|
|
321
|
+
* The id of the variable that was deleted.
|
|
322
|
+
*/
|
|
315
323
|
id: string;
|
|
316
324
|
|
|
325
|
+
/**
|
|
326
|
+
* True when the variable was deleted.
|
|
327
|
+
*/
|
|
317
328
|
deleted: boolean;
|
|
318
329
|
}
|
|
319
330
|
|
|
@@ -422,7 +433,8 @@ export namespace TagManagerVariableTypesResponse {
|
|
|
422
433
|
|
|
423
434
|
export interface TagManagerVariableListParams extends CursorParams {
|
|
424
435
|
/**
|
|
425
|
-
* Parent tag manager whose variables should be returned.
|
|
436
|
+
* Parent tag manager whose variables should be returned. Variables are always
|
|
437
|
+
* scoped to one tag manager; discover ids with `GET /tag-managers`.
|
|
426
438
|
*/
|
|
427
439
|
tagManagerId: string;
|
|
428
440
|
}
|