@oursprivacy/platform-sdk 1.54.0 → 1.56.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.
@@ -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. Requires API-key scope or current
30
- * OAuth user permission: replaySettings:create
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 and
38
- * custom domain. Requires API-key scope or current OAuth user permission:
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,9 @@ export class ReplaySettings extends APIResource {
57
61
  }
58
62
 
59
63
  /**
60
- * Delete the replay configuration. Capture stops immediately for all whitelisted
61
- * domains. Requires API-key scope or current OAuth user permission:
62
- * replaySettings:delete
64
+ * Delete the replay configuration from the draft. Publish with `POST /versions`
65
+ * for capture to stop on all whitelisted domains. Requires API-key scope or
66
+ * current OAuth user permission: replaySettings:delete
63
67
  */
64
68
  delete(id: string, options?: RequestOptions): APIPromise<ReplaySettingDeleteResponse> {
65
69
  return this._client.delete(path`/rest/v1/replay-settings/${id}`, options);
@@ -81,14 +85,20 @@ export interface ReplaySettingListResponse {
81
85
 
82
86
  /**
83
87
  * Human-readable label for this replay configuration. Shown in the dashboard. May
84
- * be empty.
88
+ * be empty. On PATCH, `null` leaves it unchanged.
85
89
  */
86
90
  name: string;
87
91
 
92
+ /**
93
+ * Server-assigned public replay token used by the browser SDK to start session
94
+ * replay capture.
95
+ */
96
+ pixel: string;
97
+
88
98
  /**
89
99
  * Whether session replay capture is currently active. Set to "Enabled" to start
90
100
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
91
- * without losing the configuration.
101
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
92
102
  */
93
103
  status: 'Disabled' | 'Enabled';
94
104
 
@@ -104,9 +114,9 @@ export interface ReplaySettingListResponse {
104
114
  updatedAt?: string | null;
105
115
 
106
116
  /**
107
- * Hostnames where session replay capture is permitted. Replays initiated from any
108
- * host not in this list are dropped. PATCH replaces the list — partial updates are
109
- * not merged.
117
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
118
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
119
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
110
120
  */
111
121
  whitelistDomains?: Array<string> | null;
112
122
  }
@@ -133,14 +143,20 @@ export namespace ReplaySettingCreateResponse {
133
143
 
134
144
  /**
135
145
  * Human-readable label for this replay configuration. Shown in the dashboard. May
136
- * be empty.
146
+ * be empty. On PATCH, `null` leaves it unchanged.
137
147
  */
138
148
  name: string;
139
149
 
150
+ /**
151
+ * Server-assigned public replay token used by the browser SDK to start session
152
+ * replay capture.
153
+ */
154
+ pixel: string;
155
+
140
156
  /**
141
157
  * Whether session replay capture is currently active. Set to "Enabled" to start
142
158
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
143
- * without losing the configuration.
159
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
144
160
  */
145
161
  status: 'Disabled' | 'Enabled';
146
162
 
@@ -156,9 +172,9 @@ export namespace ReplaySettingCreateResponse {
156
172
  updatedAt?: string | null;
157
173
 
158
174
  /**
159
- * Hostnames where session replay capture is permitted. Replays initiated from any
160
- * host not in this list are dropped. PATCH replaces the list — partial updates are
161
- * not merged.
175
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
176
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
177
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
162
178
  */
163
179
  whitelistDomains?: Array<string> | null;
164
180
  }
@@ -177,14 +193,20 @@ export interface ReplaySettingRetrieveResponse {
177
193
 
178
194
  /**
179
195
  * Human-readable label for this replay configuration. Shown in the dashboard. May
180
- * be empty.
196
+ * be empty. On PATCH, `null` leaves it unchanged.
181
197
  */
182
198
  name: string;
183
199
 
200
+ /**
201
+ * Server-assigned public replay token used by the browser SDK to start session
202
+ * replay capture.
203
+ */
204
+ pixel: string;
205
+
184
206
  /**
185
207
  * Whether session replay capture is currently active. Set to "Enabled" to start
186
208
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
187
- * without losing the configuration.
209
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
188
210
  */
189
211
  status: 'Disabled' | 'Enabled';
190
212
 
@@ -200,9 +222,9 @@ export interface ReplaySettingRetrieveResponse {
200
222
  updatedAt?: string | null;
201
223
 
202
224
  /**
203
- * Hostnames where session replay capture is permitted. Replays initiated from any
204
- * host not in this list are dropped. PATCH replaces the list — partial updates are
205
- * not merged.
225
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
226
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
227
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
206
228
  */
207
229
  whitelistDomains?: Array<string> | null;
208
230
  }
@@ -229,14 +251,20 @@ export namespace ReplaySettingUpdateResponse {
229
251
 
230
252
  /**
231
253
  * Human-readable label for this replay configuration. Shown in the dashboard. May
232
- * be empty.
254
+ * be empty. On PATCH, `null` leaves it unchanged.
233
255
  */
234
256
  name: string;
235
257
 
258
+ /**
259
+ * Server-assigned public replay token used by the browser SDK to start session
260
+ * replay capture.
261
+ */
262
+ pixel: string;
263
+
236
264
  /**
237
265
  * Whether session replay capture is currently active. Set to "Enabled" to start
238
266
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
239
- * without losing the configuration.
267
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
240
268
  */
241
269
  status: 'Disabled' | 'Enabled';
242
270
 
@@ -252,9 +280,9 @@ export namespace ReplaySettingUpdateResponse {
252
280
  updatedAt?: string | null;
253
281
 
254
282
  /**
255
- * Hostnames where session replay capture is permitted. Replays initiated from any
256
- * host not in this list are dropped. PATCH replaces the list — partial updates are
257
- * not merged.
283
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
284
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
285
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
258
286
  */
259
287
  whitelistDomains?: Array<string> | null;
260
288
  }
@@ -282,14 +310,20 @@ export namespace ReplaySettingDeleteResponse {
282
310
 
283
311
  /**
284
312
  * Human-readable label for this replay configuration. Shown in the dashboard. May
285
- * be empty.
313
+ * be empty. On PATCH, `null` leaves it unchanged.
286
314
  */
287
315
  name: string;
288
316
 
317
+ /**
318
+ * Server-assigned public replay token used by the browser SDK to start session
319
+ * replay capture.
320
+ */
321
+ pixel: string;
322
+
289
323
  /**
290
324
  * Whether session replay capture is currently active. Set to "Enabled" to start
291
325
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
292
- * without losing the configuration.
326
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
293
327
  */
294
328
  status: 'Disabled' | 'Enabled';
295
329
 
@@ -305,9 +339,9 @@ export namespace ReplaySettingDeleteResponse {
305
339
  updatedAt?: string | null;
306
340
 
307
341
  /**
308
- * Hostnames where session replay capture is permitted. Replays initiated from any
309
- * host not in this list are dropped. PATCH replaces the list — partial updates are
310
- * not merged.
342
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
343
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
344
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
311
345
  */
312
346
  whitelistDomains?: Array<string> | null;
313
347
  }
@@ -324,21 +358,21 @@ export interface ReplaySettingCreateParams {
324
358
 
325
359
  /**
326
360
  * Human-readable label for this replay configuration. Shown in the dashboard. May
327
- * be empty.
361
+ * be empty. On PATCH, `null` leaves it unchanged.
328
362
  */
329
363
  name?: string | null;
330
364
 
331
365
  /**
332
366
  * Whether session replay capture is currently active. Set to "Enabled" to start
333
367
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
334
- * without losing the configuration.
368
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
335
369
  */
336
370
  status?: 'Disabled' | 'Enabled' | null;
337
371
 
338
372
  /**
339
- * Hostnames where session replay capture is permitted. Replays initiated from any
340
- * host not in this list are dropped. PATCH replaces the list — partial updates are
341
- * not merged.
373
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
374
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
375
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
342
376
  */
343
377
  whitelistDomains?: Array<string> | null;
344
378
  }
@@ -352,21 +386,21 @@ export interface ReplaySettingUpdateParams {
352
386
 
353
387
  /**
354
388
  * Human-readable label for this replay configuration. Shown in the dashboard. May
355
- * be empty.
389
+ * be empty. On PATCH, `null` leaves it unchanged.
356
390
  */
357
391
  name?: string | null;
358
392
 
359
393
  /**
360
394
  * Whether session replay capture is currently active. Set to "Enabled" to start
361
395
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
362
- * without losing the configuration.
396
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
363
397
  */
364
398
  status?: 'Disabled' | 'Enabled' | null;
365
399
 
366
400
  /**
367
- * Hostnames where session replay capture is permitted. Replays initiated from any
368
- * host not in this list are dropped. PATCH replaces the list — partial updates are
369
- * not merged.
401
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
402
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
403
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
370
404
  */
371
405
  whitelistDomains?: Array<string> | null;
372
406
  }
@@ -649,6 +649,13 @@ export namespace TestEventCreateParams {
649
649
  */
650
650
  ttclid?: string | null;
651
651
 
652
+ /**
653
+ * The Trade Desk impression ID, captured from a configured ttd_impression_id URL
654
+ * parameter using the %%TTD_IMPRESSIONID%% creative macro. Sent as imp on
655
+ * conversions.
656
+ */
657
+ ttd_impression_id?: string | null;
658
+
652
659
  /**
653
660
  * The Twitter Click ID. Ex: twclid123
654
661
  */
@@ -723,6 +730,11 @@ export namespace TestEventCreateParams {
723
730
  * Whether the user is in a webview. Ex: true
724
731
  */
725
732
  webview?: boolean | null;
733
+
734
+ /**
735
+ * The Yelp Click ID from the landing URL, sent unchanged and unhashed.
736
+ */
737
+ ylpcid?: string | null;
726
738
  }
727
739
  }
728
740