@oursprivacy/platform-sdk 1.10.0 → 1.12.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.
Files changed (64) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/allowed-events.d.mts +1 -1
  10. package/resources/allowed-events.d.mts.map +1 -1
  11. package/resources/allowed-events.d.ts +1 -1
  12. package/resources/allowed-events.d.ts.map +1 -1
  13. package/resources/consent-settings.d.mts +126 -12
  14. package/resources/consent-settings.d.mts.map +1 -1
  15. package/resources/consent-settings.d.ts +126 -12
  16. package/resources/consent-settings.d.ts.map +1 -1
  17. package/resources/destinations.d.mts +3 -3
  18. package/resources/destinations.d.mts.map +1 -1
  19. package/resources/destinations.d.ts +3 -3
  20. package/resources/destinations.d.ts.map +1 -1
  21. package/resources/global-dispatch-centers.d.mts +221 -7
  22. package/resources/global-dispatch-centers.d.mts.map +1 -1
  23. package/resources/global-dispatch-centers.d.ts +221 -7
  24. package/resources/global-dispatch-centers.d.ts.map +1 -1
  25. package/resources/global-dispatch-centers.js +2 -2
  26. package/resources/global-dispatch-centers.js.map +1 -1
  27. package/resources/global-dispatch-centers.mjs +2 -2
  28. package/resources/global-dispatch-centers.mjs.map +1 -1
  29. package/resources/index.d.mts +1 -1
  30. package/resources/index.d.mts.map +1 -1
  31. package/resources/index.d.ts +1 -1
  32. package/resources/index.d.ts.map +1 -1
  33. package/resources/index.js.map +1 -1
  34. package/resources/index.mjs.map +1 -1
  35. package/resources/replay-settings.d.mts +119 -12
  36. package/resources/replay-settings.d.mts.map +1 -1
  37. package/resources/replay-settings.d.ts +119 -12
  38. package/resources/replay-settings.d.ts.map +1 -1
  39. package/resources/replay-settings.js +14 -5
  40. package/resources/replay-settings.js.map +1 -1
  41. package/resources/replay-settings.mjs +14 -5
  42. package/resources/replay-settings.mjs.map +1 -1
  43. package/resources/sources.d.mts +6 -6
  44. package/resources/sources.d.mts.map +1 -1
  45. package/resources/sources.d.ts +6 -6
  46. package/resources/sources.d.ts.map +1 -1
  47. package/resources/versions.d.mts +11 -11
  48. package/resources/versions.d.mts.map +1 -1
  49. package/resources/versions.d.ts +11 -11
  50. package/resources/versions.d.ts.map +1 -1
  51. package/src/client.ts +2 -0
  52. package/src/resources/allowed-events.ts +1 -1
  53. package/src/resources/consent-settings.ts +196 -12
  54. package/src/resources/destinations.ts +3 -3
  55. package/src/resources/global-dispatch-centers.ts +251 -7
  56. package/src/resources/index.ts +1 -0
  57. package/src/resources/replay-settings.ts +125 -12
  58. package/src/resources/sources.ts +6 -6
  59. package/src/resources/versions.ts +11 -11
  60. package/src/version.ts +1 -1
  61. package/version.d.mts +1 -1
  62. package/version.d.ts +1 -1
  63. package/version.js +1 -1
  64. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"global-dispatch-centers.d.mts","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;IAIhF;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAInE;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kCAAkC,CAAC;IAIjD;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC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C,IAAI,gCAAgC,EACzE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
@@ -5,11 +5,11 @@ export declare class GlobalDispatchCenters extends APIResource {
5
5
  /**
6
6
  * Create a new global dispatch center. Requires scope: globalDispatch:create
7
7
  */
8
- create(options?: RequestOptions): APIPromise<GlobalDispatchCenterCreateResponse>;
8
+ create(body: GlobalDispatchCenterCreateParams, options?: RequestOptions): APIPromise<GlobalDispatchCenterCreateResponse>;
9
9
  /**
10
10
  * Find a single global dispatch center by ID. Requires scope: globalDispatch:find
11
11
  */
12
- retrieve(id: string, options?: RequestOptions): APIPromise<unknown>;
12
+ retrieve(id: string, options?: RequestOptions): APIPromise<GlobalDispatchCenterRetrieveResponse | null>;
13
13
  /**
14
14
  * Update a global dispatch center. Requires scope: globalDispatch:update
15
15
  */
@@ -24,20 +24,117 @@ export declare class GlobalDispatchCenters extends APIResource {
24
24
  delete(id: string, options?: RequestOptions): APIPromise<GlobalDispatchCenterDeleteResponse>;
25
25
  }
26
26
  export interface GlobalDispatchCenterCreateResponse {
27
+ /**
28
+ * Server-assigned UUID for this dispatch center.
29
+ */
27
30
  id: string;
31
+ /**
32
+ * ISO 8601 timestamp when the center was created.
33
+ */
28
34
  createdAt: string;
35
+ /**
36
+ * When false, the dispatch center is configured but does not route events.
37
+ */
29
38
  isEnabled: boolean;
39
+ /**
40
+ * Discriminator for the entity type. Always "globalDispatchCenter".
41
+ */
30
42
  kind: string;
43
+ /**
44
+ * Human-readable name shown in the dashboard.
45
+ */
31
46
  name?: string | null;
47
+ /**
48
+ * ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
49
+ * center; advances on every PATCH.
50
+ */
32
51
  updatedAt?: string | null;
33
52
  }
34
- export type GlobalDispatchCenterRetrieveResponse = unknown;
53
+ export interface GlobalDispatchCenterRetrieveResponse {
54
+ /**
55
+ * Server-assigned UUID for this dispatch center.
56
+ */
57
+ id: string;
58
+ /**
59
+ * ISO 8601 timestamp when the center was created.
60
+ */
61
+ createdAt: string;
62
+ /**
63
+ * When false, the dispatch center is configured but does not route events.
64
+ */
65
+ isEnabled: boolean;
66
+ /**
67
+ * Discriminator for the entity type. Always "globalDispatchCenter".
68
+ */
69
+ kind: string;
70
+ /**
71
+ * Routing categories in priority order (1..N).
72
+ */
73
+ categories?: Array<GlobalDispatchCenterRetrieveResponse.Category> | null;
74
+ /**
75
+ * Human-readable name shown in the dashboard.
76
+ */
77
+ name?: string | null;
78
+ /**
79
+ * Free-form notes for this center.
80
+ */
81
+ notes?: string | null;
82
+ /**
83
+ * ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
84
+ * center; advances on every PATCH.
85
+ */
86
+ updatedAt?: string | null;
87
+ }
88
+ export declare namespace GlobalDispatchCenterRetrieveResponse {
89
+ interface Category {
90
+ /**
91
+ * Display name for the category.
92
+ */
93
+ name: string;
94
+ /**
95
+ * 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
96
+ * details.
97
+ */
98
+ priority: number;
99
+ /**
100
+ * Optional human-readable description.
101
+ */
102
+ description?: string | null;
103
+ /**
104
+ * Destinations that receive events matching this category.
105
+ */
106
+ destinationIds?: Array<string> | null;
107
+ /**
108
+ * Optional condition tree gating which events match this category.
109
+ */
110
+ logic?: unknown | null;
111
+ }
112
+ }
35
113
  export interface GlobalDispatchCenterUpdateResponse {
114
+ /**
115
+ * Server-assigned UUID for this dispatch center.
116
+ */
36
117
  id: string;
118
+ /**
119
+ * ISO 8601 timestamp when the center was created.
120
+ */
37
121
  createdAt: string;
122
+ /**
123
+ * When false, the dispatch center is configured but does not route events.
124
+ */
38
125
  isEnabled: boolean;
126
+ /**
127
+ * Discriminator for the entity type. Always "globalDispatchCenter".
128
+ */
39
129
  kind: string;
130
+ /**
131
+ * Human-readable name shown in the dashboard.
132
+ */
40
133
  name?: string | null;
134
+ /**
135
+ * ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
136
+ * center; advances on every PATCH.
137
+ */
41
138
  updatedAt?: string | null;
42
139
  }
43
140
  export interface GlobalDispatchCenterListResponse {
@@ -45,24 +142,141 @@ export interface GlobalDispatchCenterListResponse {
45
142
  }
46
143
  export declare namespace GlobalDispatchCenterListResponse {
47
144
  interface Entity {
145
+ /**
146
+ * Server-assigned UUID for this dispatch center.
147
+ */
48
148
  id: string;
149
+ /**
150
+ * ISO 8601 timestamp when the center was created.
151
+ */
49
152
  createdAt: string;
153
+ /**
154
+ * When false, the dispatch center is configured but does not route events.
155
+ */
50
156
  isEnabled: boolean;
157
+ /**
158
+ * Discriminator for the entity type. Always "globalDispatchCenter".
159
+ */
51
160
  kind: string;
52
- categories?: Array<unknown> | null;
161
+ /**
162
+ * Routing categories in priority order (1..N).
163
+ */
164
+ categories?: Array<Entity.Category> | null;
165
+ /**
166
+ * Human-readable name shown in the dashboard.
167
+ */
53
168
  name?: string | null;
169
+ /**
170
+ * Free-form notes for this center.
171
+ */
54
172
  notes?: string | null;
173
+ /**
174
+ * ISO 8601 timestamp of the last write. Equal to createdAt on a freshly created
175
+ * center; advances on every PATCH.
176
+ */
55
177
  updatedAt?: string | null;
56
178
  }
179
+ namespace Entity {
180
+ interface Category {
181
+ /**
182
+ * Display name for the category.
183
+ */
184
+ name: string;
185
+ /**
186
+ * 1-indexed sort position. Always equals (sorted index + 1) — see PATCH for
187
+ * details.
188
+ */
189
+ priority: number;
190
+ /**
191
+ * Optional human-readable description.
192
+ */
193
+ description?: string | null;
194
+ /**
195
+ * Destinations that receive events matching this category.
196
+ */
197
+ destinationIds?: Array<string> | null;
198
+ /**
199
+ * Optional condition tree gating which events match this category.
200
+ */
201
+ logic?: unknown | null;
202
+ }
203
+ }
204
+ }
205
+ export interface GlobalDispatchCenterDeleteResponse {
206
+ /**
207
+ * The id of the dispatch center that was deleted.
208
+ */
209
+ id: string;
210
+ /**
211
+ * True when the underlying mutation succeeded; the entity is gone.
212
+ */
213
+ deleted: boolean;
214
+ }
215
+ export interface GlobalDispatchCenterCreateParams {
216
+ /**
217
+ * Whether the center starts enabled. Defaults to false — opt in by setting true
218
+ * here or via PATCH later.
219
+ */
220
+ isEnabled?: boolean | null;
221
+ /**
222
+ * Display name for the new center. Defaults to "Consent Dispatch Center".
223
+ */
224
+ name?: string | null;
225
+ /**
226
+ * Free-form notes shown in the dashboard. Not used for routing.
227
+ */
228
+ notes?: string | null;
57
229
  }
58
- export type GlobalDispatchCenterDeleteResponse = boolean;
59
230
  export interface GlobalDispatchCenterUpdateParams {
60
- categories?: Array<unknown> | null;
231
+ /**
232
+ * Full replacement of the categories list. Categories are sorted by priority on
233
+ * write and re-stamped 1..N — see the priority field. Omit to leave existing
234
+ * categories untouched.
235
+ */
236
+ categories?: Array<GlobalDispatchCenterUpdateParams.Category> | null;
237
+ /**
238
+ * Toggle the dispatch center on/off without changing any other config.
239
+ */
61
240
  isEnabled?: boolean | null;
241
+ /**
242
+ * New display name for the center.
243
+ */
62
244
  name?: string | null;
245
+ /**
246
+ * Replace the free-form notes.
247
+ */
63
248
  notes?: string | null;
64
249
  }
250
+ export declare namespace GlobalDispatchCenterUpdateParams {
251
+ interface Category {
252
+ /**
253
+ * Optional human-readable description shown in the dashboard.
254
+ */
255
+ description?: string | null;
256
+ /**
257
+ * Destinations that receive events matching this category. Stale IDs (deleted
258
+ * destinations or ones from another account) are silently filtered out at write
259
+ * time.
260
+ */
261
+ destinationIds?: Array<string> | null;
262
+ /**
263
+ * Optional condition tree. When set, only matching events route to this category.
264
+ */
265
+ logic?: unknown | null;
266
+ /**
267
+ * Display name for the category. Auto-generated if omitted.
268
+ */
269
+ name?: string | null;
270
+ /**
271
+ * Used as a sort key on write. The server sorts categories by this value
272
+ * (ascending), then re-stamps priority as (sorted index + 1) on persist. Send any
273
+ * positive number — gaps are ironed out, duplicate values keep input order via
274
+ * stable sort. Omit to fall to the end.
275
+ */
276
+ priority?: number | null;
277
+ }
278
+ }
65
279
  export declare namespace GlobalDispatchCenters {
66
- export { type GlobalDispatchCenterCreateResponse as GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse as GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse as GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterListResponse as GlobalDispatchCenterListResponse, type GlobalDispatchCenterDeleteResponse as GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterUpdateParams as GlobalDispatchCenterUpdateParams, };
280
+ export { type GlobalDispatchCenterCreateResponse as GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse as GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse as GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterListResponse as GlobalDispatchCenterListResponse, type GlobalDispatchCenterDeleteResponse as GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterCreateParams as GlobalDispatchCenterCreateParams, type GlobalDispatchCenterUpdateParams as GlobalDispatchCenterUpdateParams, };
67
281
  }
68
282
  //# sourceMappingURL=global-dispatch-centers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"global-dispatch-centers.d.ts","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,qBAAsB,SAAQ,WAAW;IACpD;;OAEG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;IAIhF;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAInE;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,gCAAgC,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kCAAkC,CAAC;IAIjD;;OAEG;IACH,I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jF,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
@@ -8,8 +8,8 @@ class GlobalDispatchCenters extends resource_1.APIResource {
8
8
  /**
9
9
  * Create a new global dispatch center. Requires scope: globalDispatch:create
10
10
  */
11
- create(options) {
12
- return this._client.post('/rest/v1/global-dispatch-centers', options);
11
+ create(body, options) {
12
+ return this._client.post('/rest/v1/global-dispatch-centers', { body, ...options });
13
13
  }
14
14
  /**
15
15
  * Find a single global dispatch center by ID. Requires scope: globalDispatch:find
@@ -1 +1 @@
1
- {"version":3,"file":"global-dispatch-centers.js","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,qBAAsB,SAAQ,sBAAW;IACpD;;OAEG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF;AAvCD,sDAuCC"}
1
+ {"version":3,"file":"global-dispatch-centers.js","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,qBAAsB,SAAQ,sBAAW;IACpD;;OAEG;IACH,MAAM,CACJ,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF;AA1CD,sDA0CC"}
@@ -5,8 +5,8 @@ export class GlobalDispatchCenters extends APIResource {
5
5
  /**
6
6
  * Create a new global dispatch center. Requires scope: globalDispatch:create
7
7
  */
8
- create(options) {
9
- return this._client.post('/rest/v1/global-dispatch-centers', options);
8
+ create(body, options) {
9
+ return this._client.post('/rest/v1/global-dispatch-centers', { body, ...options });
10
10
  }
11
11
  /**
12
12
  * Find a single global dispatch center by ID. Requires scope: globalDispatch:find
@@ -1 +1 @@
1
- {"version":3,"file":"global-dispatch-centers.mjs","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD;;OAEG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF"}
1
+ {"version":3,"file":"global-dispatch-centers.mjs","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD;;OAEG;IACH,MAAM,CACJ,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF"}
@@ -1,7 +1,7 @@
1
1
  export { AllowedEvents, type AllowedEventCreateResponse, type AllowedEventRetrieveResponse, type AllowedEventListResponse, type AllowedEventDeleteResponse, type AllowedEventCreateParams, } from "./allowed-events.mjs";
2
2
  export { ConsentSettings, type ConsentSettingCreateResponse, type ConsentSettingRetrieveResponse, type ConsentSettingUpdateResponse, type ConsentSettingListResponse, type ConsentSettingDeleteResponse, type ConsentSettingUpdateParams, } from "./consent-settings.mjs";
3
3
  export { Destinations, type DestinationCreateResponse, type DestinationRetrieveResponse, type DestinationUpdateResponse, type DestinationListResponse, type DestinationDeleteResponse, type DestinationCreateParams, type DestinationUpdateParams, } from "./destinations.mjs";
4
- export { GlobalDispatchCenters, type GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterListResponse, type GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterUpdateParams, } from "./global-dispatch-centers.mjs";
4
+ export { GlobalDispatchCenters, type GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterListResponse, type GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterCreateParams, type GlobalDispatchCenterUpdateParams, } from "./global-dispatch-centers.mjs";
5
5
  export { ReplaySettings, type ReplaySettingCreateResponse, type ReplaySettingRetrieveResponse, type ReplaySettingUpdateResponse, type ReplaySettingListResponse, type ReplaySettingDeleteResponse, type ReplaySettingCreateParams, type ReplaySettingUpdateParams, } from "./replay-settings.mjs";
6
6
  export { Sources, type SourceCreateResponse, type SourceRetrieveResponse, type SourceUpdateResponse, type SourceListResponse, type SourceDeleteResponse, type SourceCreateParams, type SourceUpdateParams, } from "./sources.mjs";
7
7
  export { Versions, type VersionCreateResponse, type VersionRetrieveResponse, type VersionUpdateResponse, type VersionListResponse, type VersionCreateParams, type VersionUpdateParams, } from "./versions.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,eAAe,EACf,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EACL,YAAY,EACZ,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B;OACM,EACL,qBAAqB,EACrB,KAAK,kCAAkC,EACvC,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC;OACM,EACL,cAAc,EACd,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,eAAe,EACf,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EACL,YAAY,EACZ,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B;OACM,EACL,qBAAqB,EACrB,KAAK,kCAAkC,EACvC,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,GACtC;OACM,EACL,cAAc,EACd,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB"}
@@ -1,7 +1,7 @@
1
1
  export { AllowedEvents, type AllowedEventCreateResponse, type AllowedEventRetrieveResponse, type AllowedEventListResponse, type AllowedEventDeleteResponse, type AllowedEventCreateParams, } from "./allowed-events.js";
2
2
  export { ConsentSettings, type ConsentSettingCreateResponse, type ConsentSettingRetrieveResponse, type ConsentSettingUpdateResponse, type ConsentSettingListResponse, type ConsentSettingDeleteResponse, type ConsentSettingUpdateParams, } from "./consent-settings.js";
3
3
  export { Destinations, type DestinationCreateResponse, type DestinationRetrieveResponse, type DestinationUpdateResponse, type DestinationListResponse, type DestinationDeleteResponse, type DestinationCreateParams, type DestinationUpdateParams, } from "./destinations.js";
4
- export { GlobalDispatchCenters, type GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterListResponse, type GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterUpdateParams, } from "./global-dispatch-centers.js";
4
+ export { GlobalDispatchCenters, type GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterListResponse, type GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterCreateParams, type GlobalDispatchCenterUpdateParams, } from "./global-dispatch-centers.js";
5
5
  export { ReplaySettings, type ReplaySettingCreateResponse, type ReplaySettingRetrieveResponse, type ReplaySettingUpdateResponse, type ReplaySettingListResponse, type ReplaySettingDeleteResponse, type ReplaySettingCreateParams, type ReplaySettingUpdateParams, } from "./replay-settings.js";
6
6
  export { Sources, type SourceCreateResponse, type SourceRetrieveResponse, type SourceUpdateResponse, type SourceListResponse, type SourceDeleteResponse, type SourceCreateParams, type SourceUpdateParams, } from "./sources.js";
7
7
  export { Versions, type VersionCreateResponse, type VersionRetrieveResponse, type VersionUpdateResponse, type VersionListResponse, type VersionCreateParams, type VersionUpdateParams, } from "./versions.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,eAAe,EACf,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EACL,YAAY,EACZ,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B;OACM,EACL,qBAAqB,EACrB,KAAK,kCAAkC,EACvC,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,GACtC;OACM,EACL,cAAc,EACd,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,eAAe,EACf,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EACL,YAAY,EACZ,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B;OACM,EACL,qBAAqB,EACrB,KAAK,kCAAkC,EACvC,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,GACtC;OACM,EACL,cAAc,EACd,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAO0B;AANxB,+GAAA,aAAa,OAAA;AAOf,0DAQ4B;AAP1B,mHAAA,eAAe,OAAA;AAQjB,kDASwB;AARtB,4GAAA,YAAY,OAAA;AASd,wEAQmC;AAPjC,gIAAA,qBAAqB,OAAA;AAQvB,wDAS2B;AARzB,iHAAA,cAAc,OAAA;AAShB,wCASmB;AARjB,kGAAA,OAAO,OAAA;AAST,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAO0B;AANxB,+GAAA,aAAa,OAAA;AAOf,0DAQ4B;AAP1B,mHAAA,eAAe,OAAA;AAQjB,kDASwB;AARtB,4GAAA,YAAY,OAAA;AASd,wEASmC;AARjC,gIAAA,qBAAqB,OAAA;AASvB,wDAS2B;AARzB,iHAAA,cAAc,OAAA;AAShB,wCASmB;AARjB,kGAAA,OAAO,OAAA;AAST,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,aAAa,GAMd;OACM,EACL,eAAe,GAOhB;OACM,EACL,YAAY,GAQb;OACM,EACL,qBAAqB,GAOtB;OACM,EACL,cAAc,GAQf;OACM,EACL,OAAO,GAQR;OACM,EACL,QAAQ,GAOT"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,aAAa,GAMd;OACM,EACL,eAAe,GAOhB;OACM,EACL,YAAY,GAQb;OACM,EACL,qBAAqB,GAQtB;OACM,EACL,cAAc,GAQf;OACM,EACL,OAAO,GAQR;OACM,EACL,QAAQ,GAOT"}
@@ -3,23 +3,32 @@ import { APIPromise } from "../core/api-promise.mjs";
3
3
  import { RequestOptions } from "../internal/request-options.mjs";
4
4
  export declare class ReplaySettings extends APIResource {
5
5
  /**
6
- * Create a new replay setting. Requires scope: replaySettings:create
6
+ * Create the replay configuration for this account. Each account is limited to one
7
+ * replay configuration — calls made when one already exists return HTTP 409 with
8
+ * the reason in the response `error` field. Requires scope: replaySettings:create
7
9
  */
8
10
  create(body: ReplaySettingCreateParams, options?: RequestOptions): APIPromise<ReplaySettingCreateResponse>;
9
11
  /**
10
- * Find a single replay setting by ID. Requires scope: replaySettings:find
12
+ * Fetch a single replay configuration by ID, including its whitelisted domains and
13
+ * custom domain. Requires scope: replaySettings:find
11
14
  */
12
- retrieve(id: string, options?: RequestOptions): APIPromise<unknown>;
15
+ retrieve(id: string, options?: RequestOptions): APIPromise<ReplaySettingRetrieveResponse | null>;
13
16
  /**
14
- * Update a replay setting. Requires scope: replaySettings:update
17
+ * Update one or more fields on an existing replay configuration. Only the fields
18
+ * you send are changed; omitted fields keep their current value. Note that
19
+ * `whitelistDomains` is replaced wholesale (not merged with the existing list).
20
+ * Requires scope: replaySettings:update
15
21
  */
16
22
  update(id: string, body: ReplaySettingUpdateParams, options?: RequestOptions): APIPromise<ReplaySettingUpdateResponse>;
17
23
  /**
18
- * List all replay settings. Requires scope: replaySettings:list
24
+ * List the replay configurations on this account. Replay settings control which
25
+ * domains may capture session replays and where the capture script is hosted.
26
+ * Requires scope: replaySettings:list
19
27
  */
20
28
  list(options?: RequestOptions): APIPromise<ReplaySettingListResponse>;
21
29
  /**
22
- * Delete a replay setting. Requires scope: replaySettings:delete
30
+ * Delete the replay configuration. Capture stops immediately for all whitelisted
31
+ * domains. Requires scope: replaySettings:delete
23
32
  */
24
33
  delete(id: string, options?: RequestOptions): APIPromise<ReplaySettingDeleteResponse>;
25
34
  }
@@ -28,7 +37,42 @@ export interface ReplaySettingCreateResponse {
28
37
  cause?: string | null;
29
38
  replaySettings?: unknown | null;
30
39
  }
31
- export type ReplaySettingRetrieveResponse = unknown;
40
+ export interface ReplaySettingRetrieveResponse {
41
+ /**
42
+ * Stable identifier (UUID) for this replay configuration.
43
+ */
44
+ id: string;
45
+ /**
46
+ * ISO-8601 timestamp when this configuration was created.
47
+ */
48
+ createdAt: string;
49
+ /**
50
+ * Human-readable label for this replay configuration. Shown in the dashboard. May
51
+ * be empty.
52
+ */
53
+ name: string;
54
+ /**
55
+ * Whether session replay capture is currently active. Set to "Enabled" to start
56
+ * capturing replays from whitelisted domains, or "Disabled" to pause capture
57
+ * without losing the configuration.
58
+ */
59
+ status: 'Disabled' | 'Enabled';
60
+ /**
61
+ * Optional custom domain (CNAME) for hosting the replay capture script. Leave null
62
+ * to use the default Ours Privacy domain.
63
+ */
64
+ customDomain?: string | null;
65
+ /**
66
+ * ISO-8601 timestamp of the most recent update, or null if never updated.
67
+ */
68
+ updatedAt?: string | null;
69
+ /**
70
+ * Hostnames where session replay capture is permitted. Replays initiated from any
71
+ * host not in this list are dropped. PATCH replaces the list — partial updates are
72
+ * not merged.
73
+ */
74
+ whitelistDomains?: Array<string> | null;
75
+ }
32
76
  export interface ReplaySettingUpdateResponse {
33
77
  isSuccess: boolean;
34
78
  cause?: string | null;
@@ -39,13 +83,40 @@ export interface ReplaySettingListResponse {
39
83
  }
40
84
  export declare namespace ReplaySettingListResponse {
41
85
  interface Entity {
86
+ /**
87
+ * Stable identifier (UUID) for this replay configuration.
88
+ */
42
89
  id: string;
90
+ /**
91
+ * ISO-8601 timestamp when this configuration was created.
92
+ */
43
93
  createdAt: string;
94
+ /**
95
+ * Human-readable label for this replay configuration. Shown in the dashboard. May
96
+ * be empty.
97
+ */
44
98
  name: string;
99
+ /**
100
+ * Whether session replay capture is currently active. Set to "Enabled" to start
101
+ * capturing replays from whitelisted domains, or "Disabled" to pause capture
102
+ * without losing the configuration.
103
+ */
45
104
  status: 'Disabled' | 'Enabled';
105
+ /**
106
+ * Optional custom domain (CNAME) for hosting the replay capture script. Leave null
107
+ * to use the default Ours Privacy domain.
108
+ */
46
109
  customDomain?: string | null;
110
+ /**
111
+ * ISO-8601 timestamp of the most recent update, or null if never updated.
112
+ */
47
113
  updatedAt?: string | null;
48
- whitelistDomains?: Array<unknown> | null;
114
+ /**
115
+ * Hostnames where session replay capture is permitted. Replays initiated from any
116
+ * host not in this list are dropped. PATCH replaces the list — partial updates are
117
+ * not merged.
118
+ */
119
+ whitelistDomains?: Array<string> | null;
49
120
  }
50
121
  }
51
122
  export interface ReplaySettingDeleteResponse {
@@ -54,16 +125,52 @@ export interface ReplaySettingDeleteResponse {
54
125
  replaySettings?: unknown | null;
55
126
  }
56
127
  export interface ReplaySettingCreateParams {
128
+ /**
129
+ * Optional custom domain (CNAME) for hosting the replay capture script. Leave null
130
+ * to use the default Ours Privacy domain.
131
+ */
57
132
  customDomain?: string | null;
133
+ /**
134
+ * Human-readable label for this replay configuration. Shown in the dashboard. May
135
+ * be empty.
136
+ */
58
137
  name?: string | null;
59
- status?: string | null;
60
- whitelistDomains?: Array<unknown> | null;
138
+ /**
139
+ * Whether session replay capture is currently active. Set to "Enabled" to start
140
+ * capturing replays from whitelisted domains, or "Disabled" to pause capture
141
+ * without losing the configuration.
142
+ */
143
+ status?: 'Disabled' | 'Enabled' | null;
144
+ /**
145
+ * Hostnames where session replay capture is permitted. Replays initiated from any
146
+ * host not in this list are dropped. PATCH replaces the list — partial updates are
147
+ * not merged.
148
+ */
149
+ whitelistDomains?: Array<string> | null;
61
150
  }
62
151
  export interface ReplaySettingUpdateParams {
152
+ /**
153
+ * Optional custom domain (CNAME) for hosting the replay capture script. Leave null
154
+ * to use the default Ours Privacy domain.
155
+ */
63
156
  customDomain?: string | null;
157
+ /**
158
+ * Human-readable label for this replay configuration. Shown in the dashboard. May
159
+ * be empty.
160
+ */
64
161
  name?: string | null;
65
- status?: string | null;
66
- whitelistDomains?: Array<unknown> | null;
162
+ /**
163
+ * Whether session replay capture is currently active. Set to "Enabled" to start
164
+ * capturing replays from whitelisted domains, or "Disabled" to pause capture
165
+ * without losing the configuration.
166
+ */
167
+ status?: 'Disabled' | 'Enabled' | null;
168
+ /**
169
+ * Hostnames where session replay capture is permitted. Replays initiated from any
170
+ * host not in this list are dropped. PATCH replaces the list — partial updates are
171
+ * not merged.
172
+ */
173
+ whitelistDomains?: Array<string> | null;
67
174
  }
68
175
  export declare namespace ReplaySettings {
69
176
  export { type ReplaySettingCreateResponse as ReplaySettingCreateResponse, type ReplaySettingRetrieveResponse as ReplaySettingRetrieveResponse, type ReplaySettingUpdateResponse as ReplaySettingUpdateResponse, type ReplaySettingListResponse as ReplaySettingListResponse, type ReplaySettingDeleteResponse as ReplaySettingDeleteResponse, type ReplaySettingCreateParams as ReplaySettingCreateParams, type ReplaySettingUpdateParams as ReplaySettingUpdateParams, };
@@ -1 +1 @@
1
- {"version":3,"file":"replay-settings.d.mts","sourceRoot":"","sources":["../src/resources/replay-settings.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAI1G;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAInE;;OAEG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C;;OAEG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAIrE;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;CAGtF;AAED,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,OAAO,CAAC;IAEnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACjC;AAED,MAAM,MAAM,6BAA6B,GAAG,OAAO,CAAC;AAEpD,MAAM,WAAW,2BAA2B;IAC1C,SAAS,EAAE,OAAO,CAAC;IAEnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,cAAc,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CACjC;AAED,MAAM,WAAW,yBAAyB;IACxC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