@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.
@@ -13,13 +13,15 @@ export declare class ReplaySettings extends APIResource {
13
13
  /**
14
14
  * Create the replay configuration for this account. Each account is limited to one
15
15
  * replay configuration — calls made when one already exists return HTTP 409 with
16
- * the reason in the response `error` field. Requires API-key scope or current
17
- * OAuth user permission: replaySettings:create
16
+ * the reason in the response `error` field. Publish with `POST /versions` for the
17
+ * configuration to take effect. Requires API-key scope or current OAuth user
18
+ * permission: replaySettings:create
18
19
  */
19
20
  create(body: ReplaySettingCreateParams, options?: RequestOptions): APIPromise<ReplaySettingCreateResponse>;
20
21
  /**
21
- * Fetch a single replay configuration by ID, including its whitelisted domains and
22
- * custom domain. Requires API-key scope or current OAuth user permission:
22
+ * Fetch a single replay configuration by ID, including its whitelisted domains,
23
+ * custom domain, and public replay pixel token. Returns HTTP 404 when it does not
24
+ * exist. Requires API-key scope or current OAuth user permission:
23
25
  * replaySettings:find
24
26
  */
25
27
  retrieve(id: string, options?: RequestOptions): APIPromise<ReplaySettingRetrieveResponse | null>;
@@ -27,13 +29,15 @@ export declare class ReplaySettings extends APIResource {
27
29
  * Update one or more fields on an existing replay configuration. Only the fields
28
30
  * you send are changed; omitted fields keep their current value. Note that
29
31
  * `whitelistDomains` is replaced wholesale (not merged with the existing list).
32
+ * Null leaves `name`, `status`, and `whitelistDomains` unchanged; null clears
33
+ * `customDomain`. Publish with `POST /versions` for changes to take effect.
30
34
  * Requires API-key scope or current OAuth user permission: replaySettings:update
31
35
  */
32
36
  update(id: string, body: ReplaySettingUpdateParams, options?: RequestOptions): APIPromise<ReplaySettingUpdateResponse>;
33
37
  /**
34
- * Delete the replay configuration. Capture stops immediately for all whitelisted
35
- * domains. Requires API-key scope or current OAuth user permission:
36
- * replaySettings:delete
38
+ * Delete the replay configuration from the draft. Publish with `POST /versions`
39
+ * for capture to stop on all whitelisted domains. Requires API-key scope or
40
+ * current OAuth user permission: replaySettings:delete
37
41
  */
38
42
  delete(id: string, options?: RequestOptions): APIPromise<ReplaySettingDeleteResponse>;
39
43
  }
@@ -49,13 +53,18 @@ export interface ReplaySettingListResponse {
49
53
  createdAt: string;
50
54
  /**
51
55
  * Human-readable label for this replay configuration. Shown in the dashboard. May
52
- * be empty.
56
+ * be empty. On PATCH, `null` leaves it unchanged.
53
57
  */
54
58
  name: string;
59
+ /**
60
+ * Server-assigned public replay token used by the browser SDK to start session
61
+ * replay capture.
62
+ */
63
+ pixel: string;
55
64
  /**
56
65
  * Whether session replay capture is currently active. Set to "Enabled" to start
57
66
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
58
- * without losing the configuration.
67
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
59
68
  */
60
69
  status: 'Disabled' | 'Enabled';
61
70
  /**
@@ -68,9 +77,9 @@ export interface ReplaySettingListResponse {
68
77
  */
69
78
  updatedAt?: string | null;
70
79
  /**
71
- * Hostnames where session replay capture is permitted. Replays initiated from any
72
- * host not in this list are dropped. PATCH replaces the list — partial updates are
73
- * not merged.
80
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
81
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
82
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
74
83
  */
75
84
  whitelistDomains?: Array<string> | null;
76
85
  }
@@ -91,13 +100,18 @@ export declare namespace ReplaySettingCreateResponse {
91
100
  createdAt: string;
92
101
  /**
93
102
  * Human-readable label for this replay configuration. Shown in the dashboard. May
94
- * be empty.
103
+ * be empty. On PATCH, `null` leaves it unchanged.
95
104
  */
96
105
  name: string;
106
+ /**
107
+ * Server-assigned public replay token used by the browser SDK to start session
108
+ * replay capture.
109
+ */
110
+ pixel: string;
97
111
  /**
98
112
  * Whether session replay capture is currently active. Set to "Enabled" to start
99
113
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
100
- * without losing the configuration.
114
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
101
115
  */
102
116
  status: 'Disabled' | 'Enabled';
103
117
  /**
@@ -110,9 +124,9 @@ export declare namespace ReplaySettingCreateResponse {
110
124
  */
111
125
  updatedAt?: string | null;
112
126
  /**
113
- * Hostnames where session replay capture is permitted. Replays initiated from any
114
- * host not in this list are dropped. PATCH replaces the list — partial updates are
115
- * not merged.
127
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
128
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
129
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
116
130
  */
117
131
  whitelistDomains?: Array<string> | null;
118
132
  }
@@ -128,13 +142,18 @@ export interface ReplaySettingRetrieveResponse {
128
142
  createdAt: string;
129
143
  /**
130
144
  * Human-readable label for this replay configuration. Shown in the dashboard. May
131
- * be empty.
145
+ * be empty. On PATCH, `null` leaves it unchanged.
132
146
  */
133
147
  name: string;
148
+ /**
149
+ * Server-assigned public replay token used by the browser SDK to start session
150
+ * replay capture.
151
+ */
152
+ pixel: string;
134
153
  /**
135
154
  * Whether session replay capture is currently active. Set to "Enabled" to start
136
155
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
137
- * without losing the configuration.
156
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
138
157
  */
139
158
  status: 'Disabled' | 'Enabled';
140
159
  /**
@@ -147,9 +166,9 @@ export interface ReplaySettingRetrieveResponse {
147
166
  */
148
167
  updatedAt?: string | null;
149
168
  /**
150
- * Hostnames where session replay capture is permitted. Replays initiated from any
151
- * host not in this list are dropped. PATCH replaces the list — partial updates are
152
- * not merged.
169
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
170
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
171
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
153
172
  */
154
173
  whitelistDomains?: Array<string> | null;
155
174
  }
@@ -170,13 +189,18 @@ export declare namespace ReplaySettingUpdateResponse {
170
189
  createdAt: string;
171
190
  /**
172
191
  * Human-readable label for this replay configuration. Shown in the dashboard. May
173
- * be empty.
192
+ * be empty. On PATCH, `null` leaves it unchanged.
174
193
  */
175
194
  name: string;
195
+ /**
196
+ * Server-assigned public replay token used by the browser SDK to start session
197
+ * replay capture.
198
+ */
199
+ pixel: string;
176
200
  /**
177
201
  * Whether session replay capture is currently active. Set to "Enabled" to start
178
202
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
179
- * without losing the configuration.
203
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
180
204
  */
181
205
  status: 'Disabled' | 'Enabled';
182
206
  /**
@@ -189,9 +213,9 @@ export declare namespace ReplaySettingUpdateResponse {
189
213
  */
190
214
  updatedAt?: string | null;
191
215
  /**
192
- * Hostnames where session replay capture is permitted. Replays initiated from any
193
- * host not in this list are dropped. PATCH replaces the list — partial updates are
194
- * not merged.
216
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
217
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
218
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
195
219
  */
196
220
  whitelistDomains?: Array<string> | null;
197
221
  }
@@ -213,13 +237,18 @@ export declare namespace ReplaySettingDeleteResponse {
213
237
  createdAt: string;
214
238
  /**
215
239
  * Human-readable label for this replay configuration. Shown in the dashboard. May
216
- * be empty.
240
+ * be empty. On PATCH, `null` leaves it unchanged.
217
241
  */
218
242
  name: string;
243
+ /**
244
+ * Server-assigned public replay token used by the browser SDK to start session
245
+ * replay capture.
246
+ */
247
+ pixel: string;
219
248
  /**
220
249
  * Whether session replay capture is currently active. Set to "Enabled" to start
221
250
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
222
- * without losing the configuration.
251
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
223
252
  */
224
253
  status: 'Disabled' | 'Enabled';
225
254
  /**
@@ -232,9 +261,9 @@ export declare namespace ReplaySettingDeleteResponse {
232
261
  */
233
262
  updatedAt?: string | null;
234
263
  /**
235
- * Hostnames where session replay capture is permitted. Replays initiated from any
236
- * host not in this list are dropped. PATCH replaces the list — partial updates are
237
- * not merged.
264
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
265
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
266
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
238
267
  */
239
268
  whitelistDomains?: Array<string> | null;
240
269
  }
@@ -249,19 +278,19 @@ export interface ReplaySettingCreateParams {
249
278
  customDomain?: string | null;
250
279
  /**
251
280
  * Human-readable label for this replay configuration. Shown in the dashboard. May
252
- * be empty.
281
+ * be empty. On PATCH, `null` leaves it unchanged.
253
282
  */
254
283
  name?: string | null;
255
284
  /**
256
285
  * Whether session replay capture is currently active. Set to "Enabled" to start
257
286
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
258
- * without losing the configuration.
287
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
259
288
  */
260
289
  status?: 'Disabled' | 'Enabled' | null;
261
290
  /**
262
- * Hostnames where session replay capture is permitted. Replays initiated from any
263
- * host not in this list are dropped. PATCH replaces the list — partial updates are
264
- * not merged.
291
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
292
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
293
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
265
294
  */
266
295
  whitelistDomains?: Array<string> | null;
267
296
  }
@@ -273,19 +302,19 @@ export interface ReplaySettingUpdateParams {
273
302
  customDomain?: string | null;
274
303
  /**
275
304
  * Human-readable label for this replay configuration. Shown in the dashboard. May
276
- * be empty.
305
+ * be empty. On PATCH, `null` leaves it unchanged.
277
306
  */
278
307
  name?: string | null;
279
308
  /**
280
309
  * Whether session replay capture is currently active. Set to "Enabled" to start
281
310
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
282
- * without losing the configuration.
311
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
283
312
  */
284
313
  status?: 'Disabled' | 'Enabled' | null;
285
314
  /**
286
- * Hostnames where session replay capture is permitted. Replays initiated from any
287
- * host not in this list are dropped. PATCH replaces the list — partial updates are
288
- * not merged.
315
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
316
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
317
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
289
318
  */
290
319
  whitelistDomains?: Array<string> | null;
291
320
  }
@@ -1 +1 @@
1
- {"version":3,"file":"replay-settings.d.mts","sourceRoot":"","sources":["../src/resources/replay-settings.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,+BAA2B;AAC5E,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;OAKG;IACH,IAAI,CACF,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gCAAgC,EAAE,yBAAyB,CAAC;IAO3E;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAI1G;;;;OAIG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,GAAG,IAAI,CAAC;IAIhG;;;;;OAKG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C;;;;OAIG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;CAGtF;AAED,MAAM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AI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -13,13 +13,15 @@ export declare class ReplaySettings extends APIResource {
13
13
  /**
14
14
  * Create the replay configuration for this account. Each account is limited to one
15
15
  * replay configuration — calls made when one already exists return HTTP 409 with
16
- * the reason in the response `error` field. Requires API-key scope or current
17
- * OAuth user permission: replaySettings:create
16
+ * the reason in the response `error` field. Publish with `POST /versions` for the
17
+ * configuration to take effect. Requires API-key scope or current OAuth user
18
+ * permission: replaySettings:create
18
19
  */
19
20
  create(body: ReplaySettingCreateParams, options?: RequestOptions): APIPromise<ReplaySettingCreateResponse>;
20
21
  /**
21
- * Fetch a single replay configuration by ID, including its whitelisted domains and
22
- * custom domain. Requires API-key scope or current OAuth user permission:
22
+ * Fetch a single replay configuration by ID, including its whitelisted domains,
23
+ * custom domain, and public replay pixel token. Returns HTTP 404 when it does not
24
+ * exist. Requires API-key scope or current OAuth user permission:
23
25
  * replaySettings:find
24
26
  */
25
27
  retrieve(id: string, options?: RequestOptions): APIPromise<ReplaySettingRetrieveResponse | null>;
@@ -27,13 +29,15 @@ export declare class ReplaySettings extends APIResource {
27
29
  * Update one or more fields on an existing replay configuration. Only the fields
28
30
  * you send are changed; omitted fields keep their current value. Note that
29
31
  * `whitelistDomains` is replaced wholesale (not merged with the existing list).
32
+ * Null leaves `name`, `status`, and `whitelistDomains` unchanged; null clears
33
+ * `customDomain`. Publish with `POST /versions` for changes to take effect.
30
34
  * Requires API-key scope or current OAuth user permission: replaySettings:update
31
35
  */
32
36
  update(id: string, body: ReplaySettingUpdateParams, options?: RequestOptions): APIPromise<ReplaySettingUpdateResponse>;
33
37
  /**
34
- * Delete the replay configuration. Capture stops immediately for all whitelisted
35
- * domains. Requires API-key scope or current OAuth user permission:
36
- * replaySettings:delete
38
+ * Delete the replay configuration from the draft. Publish with `POST /versions`
39
+ * for capture to stop on all whitelisted domains. Requires API-key scope or
40
+ * current OAuth user permission: replaySettings:delete
37
41
  */
38
42
  delete(id: string, options?: RequestOptions): APIPromise<ReplaySettingDeleteResponse>;
39
43
  }
@@ -49,13 +53,18 @@ export interface ReplaySettingListResponse {
49
53
  createdAt: string;
50
54
  /**
51
55
  * Human-readable label for this replay configuration. Shown in the dashboard. May
52
- * be empty.
56
+ * be empty. On PATCH, `null` leaves it unchanged.
53
57
  */
54
58
  name: string;
59
+ /**
60
+ * Server-assigned public replay token used by the browser SDK to start session
61
+ * replay capture.
62
+ */
63
+ pixel: string;
55
64
  /**
56
65
  * Whether session replay capture is currently active. Set to "Enabled" to start
57
66
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
58
- * without losing the configuration.
67
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
59
68
  */
60
69
  status: 'Disabled' | 'Enabled';
61
70
  /**
@@ -68,9 +77,9 @@ export interface ReplaySettingListResponse {
68
77
  */
69
78
  updatedAt?: string | null;
70
79
  /**
71
- * Hostnames where session replay capture is permitted. Replays initiated from any
72
- * host not in this list are dropped. PATCH replaces the list — partial updates are
73
- * not merged.
80
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
81
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
82
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
74
83
  */
75
84
  whitelistDomains?: Array<string> | null;
76
85
  }
@@ -91,13 +100,18 @@ export declare namespace ReplaySettingCreateResponse {
91
100
  createdAt: string;
92
101
  /**
93
102
  * Human-readable label for this replay configuration. Shown in the dashboard. May
94
- * be empty.
103
+ * be empty. On PATCH, `null` leaves it unchanged.
95
104
  */
96
105
  name: string;
106
+ /**
107
+ * Server-assigned public replay token used by the browser SDK to start session
108
+ * replay capture.
109
+ */
110
+ pixel: string;
97
111
  /**
98
112
  * Whether session replay capture is currently active. Set to "Enabled" to start
99
113
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
100
- * without losing the configuration.
114
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
101
115
  */
102
116
  status: 'Disabled' | 'Enabled';
103
117
  /**
@@ -110,9 +124,9 @@ export declare namespace ReplaySettingCreateResponse {
110
124
  */
111
125
  updatedAt?: string | null;
112
126
  /**
113
- * Hostnames where session replay capture is permitted. Replays initiated from any
114
- * host not in this list are dropped. PATCH replaces the list — partial updates are
115
- * not merged.
127
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
128
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
129
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
116
130
  */
117
131
  whitelistDomains?: Array<string> | null;
118
132
  }
@@ -128,13 +142,18 @@ export interface ReplaySettingRetrieveResponse {
128
142
  createdAt: string;
129
143
  /**
130
144
  * Human-readable label for this replay configuration. Shown in the dashboard. May
131
- * be empty.
145
+ * be empty. On PATCH, `null` leaves it unchanged.
132
146
  */
133
147
  name: string;
148
+ /**
149
+ * Server-assigned public replay token used by the browser SDK to start session
150
+ * replay capture.
151
+ */
152
+ pixel: string;
134
153
  /**
135
154
  * Whether session replay capture is currently active. Set to "Enabled" to start
136
155
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
137
- * without losing the configuration.
156
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
138
157
  */
139
158
  status: 'Disabled' | 'Enabled';
140
159
  /**
@@ -147,9 +166,9 @@ export interface ReplaySettingRetrieveResponse {
147
166
  */
148
167
  updatedAt?: string | null;
149
168
  /**
150
- * Hostnames where session replay capture is permitted. Replays initiated from any
151
- * host not in this list are dropped. PATCH replaces the list — partial updates are
152
- * not merged.
169
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
170
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
171
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
153
172
  */
154
173
  whitelistDomains?: Array<string> | null;
155
174
  }
@@ -170,13 +189,18 @@ export declare namespace ReplaySettingUpdateResponse {
170
189
  createdAt: string;
171
190
  /**
172
191
  * Human-readable label for this replay configuration. Shown in the dashboard. May
173
- * be empty.
192
+ * be empty. On PATCH, `null` leaves it unchanged.
174
193
  */
175
194
  name: string;
195
+ /**
196
+ * Server-assigned public replay token used by the browser SDK to start session
197
+ * replay capture.
198
+ */
199
+ pixel: string;
176
200
  /**
177
201
  * Whether session replay capture is currently active. Set to "Enabled" to start
178
202
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
179
- * without losing the configuration.
203
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
180
204
  */
181
205
  status: 'Disabled' | 'Enabled';
182
206
  /**
@@ -189,9 +213,9 @@ export declare namespace ReplaySettingUpdateResponse {
189
213
  */
190
214
  updatedAt?: string | null;
191
215
  /**
192
- * Hostnames where session replay capture is permitted. Replays initiated from any
193
- * host not in this list are dropped. PATCH replaces the list — partial updates are
194
- * not merged.
216
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
217
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
218
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
195
219
  */
196
220
  whitelistDomains?: Array<string> | null;
197
221
  }
@@ -213,13 +237,18 @@ export declare namespace ReplaySettingDeleteResponse {
213
237
  createdAt: string;
214
238
  /**
215
239
  * Human-readable label for this replay configuration. Shown in the dashboard. May
216
- * be empty.
240
+ * be empty. On PATCH, `null` leaves it unchanged.
217
241
  */
218
242
  name: string;
243
+ /**
244
+ * Server-assigned public replay token used by the browser SDK to start session
245
+ * replay capture.
246
+ */
247
+ pixel: string;
219
248
  /**
220
249
  * Whether session replay capture is currently active. Set to "Enabled" to start
221
250
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
222
- * without losing the configuration.
251
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
223
252
  */
224
253
  status: 'Disabled' | 'Enabled';
225
254
  /**
@@ -232,9 +261,9 @@ export declare namespace ReplaySettingDeleteResponse {
232
261
  */
233
262
  updatedAt?: string | null;
234
263
  /**
235
- * Hostnames where session replay capture is permitted. Replays initiated from any
236
- * host not in this list are dropped. PATCH replaces the list — partial updates are
237
- * not merged.
264
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
265
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
266
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
238
267
  */
239
268
  whitelistDomains?: Array<string> | null;
240
269
  }
@@ -249,19 +278,19 @@ export interface ReplaySettingCreateParams {
249
278
  customDomain?: string | null;
250
279
  /**
251
280
  * Human-readable label for this replay configuration. Shown in the dashboard. May
252
- * be empty.
281
+ * be empty. On PATCH, `null` leaves it unchanged.
253
282
  */
254
283
  name?: string | null;
255
284
  /**
256
285
  * Whether session replay capture is currently active. Set to "Enabled" to start
257
286
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
258
- * without losing the configuration.
287
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
259
288
  */
260
289
  status?: 'Disabled' | 'Enabled' | null;
261
290
  /**
262
- * Hostnames where session replay capture is permitted. Replays initiated from any
263
- * host not in this list are dropped. PATCH replaces the list — partial updates are
264
- * not merged.
291
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
292
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
293
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
265
294
  */
266
295
  whitelistDomains?: Array<string> | null;
267
296
  }
@@ -273,19 +302,19 @@ export interface ReplaySettingUpdateParams {
273
302
  customDomain?: string | null;
274
303
  /**
275
304
  * Human-readable label for this replay configuration. Shown in the dashboard. May
276
- * be empty.
305
+ * be empty. On PATCH, `null` leaves it unchanged.
277
306
  */
278
307
  name?: string | null;
279
308
  /**
280
309
  * Whether session replay capture is currently active. Set to "Enabled" to start
281
310
  * capturing replays from whitelisted domains, or "Disabled" to pause capture
282
- * without losing the configuration.
311
+ * without losing the configuration. On PATCH, `null` leaves it unchanged.
283
312
  */
284
313
  status?: 'Disabled' | 'Enabled' | null;
285
314
  /**
286
- * Hostnames where session replay capture is permitted. Replays initiated from any
287
- * host not in this list are dropped. PATCH replaces the list — partial updates are
288
- * not merged.
315
+ * Bare hostnames (e.g. `example.com`) where session replay capture is permitted.
316
+ * Replays initiated from any host not in this list are dropped. PATCH replaces the
317
+ * list; partial updates are not merged. On PATCH, `null` leaves it unchanged.
289
318
  */
290
319
  whitelistDomains?: Array<string> | null;
291
320
  }
@@ -1 +1 @@
1
- {"version":3,"file":"replay-settings.d.ts","sourceRoot":"","sources":["../src/resources/replay-settings.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,8BAA2B;AAC5E,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;OAKG;IACH,IAAI,CACF,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gCAAgC,EAAE,yBAAyB,CAAC;IAO3E;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAI1G;;;;OAIG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,GAAG,IAAI,CAAC;IAIhG;;;;;OAKG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,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AAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -21,15 +21,17 @@ class ReplaySettings extends resource_1.APIResource {
21
21
  /**
22
22
  * Create the replay configuration for this account. Each account is limited to one
23
23
  * replay configuration — calls made when one already exists return HTTP 409 with
24
- * the reason in the response `error` field. Requires API-key scope or current
25
- * OAuth user permission: replaySettings:create
24
+ * the reason in the response `error` field. Publish with `POST /versions` for the
25
+ * configuration to take effect. Requires API-key scope or current OAuth user
26
+ * permission: replaySettings:create
26
27
  */
27
28
  create(body, options) {
28
29
  return this._client.post('/rest/v1/replay-settings', { body, ...options });
29
30
  }
30
31
  /**
31
- * Fetch a single replay configuration by ID, including its whitelisted domains and
32
- * custom domain. Requires API-key scope or current OAuth user permission:
32
+ * Fetch a single replay configuration by ID, including its whitelisted domains,
33
+ * custom domain, and public replay pixel token. Returns HTTP 404 when it does not
34
+ * exist. Requires API-key scope or current OAuth user permission:
33
35
  * replaySettings:find
34
36
  */
35
37
  retrieve(id, options) {
@@ -39,15 +41,17 @@ class ReplaySettings extends resource_1.APIResource {
39
41
  * Update one or more fields on an existing replay configuration. Only the fields
40
42
  * you send are changed; omitted fields keep their current value. Note that
41
43
  * `whitelistDomains` is replaced wholesale (not merged with the existing list).
44
+ * Null leaves `name`, `status`, and `whitelistDomains` unchanged; null clears
45
+ * `customDomain`. Publish with `POST /versions` for changes to take effect.
42
46
  * Requires API-key scope or current OAuth user permission: replaySettings:update
43
47
  */
44
48
  update(id, body, options) {
45
49
  return this._client.patch((0, path_1.path) `/rest/v1/replay-settings/${id}`, { body, ...options });
46
50
  }
47
51
  /**
48
- * Delete the replay configuration. Capture stops immediately for all whitelisted
49
- * domains. Requires API-key scope or current OAuth user permission:
50
- * replaySettings:delete
52
+ * Delete the replay configuration from the draft. Publish with `POST /versions`
53
+ * for capture to stop on all whitelisted domains. Requires API-key scope or
54
+ * current OAuth user permission: replaySettings:delete
51
55
  */
52
56
  delete(id, options) {
53
57
  return this._client.delete((0, path_1.path) `/rest/v1/replay-settings/${id}`, options);
@@ -1 +1 @@
1
- {"version":3,"file":"replay-settings.js","sourceRoot":"","sources":["../src/resources/replay-settings.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;OAKG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,0BAA0B,EAAE,CAAA,mBAAiC,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,IAA+B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;OAKG;IACH,MAAM,CACJ,EAAU,EACV,IAA+B,EAC/B,O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