@oursprivacy/platform-sdk 1.12.0 → 1.13.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 (152) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +31 -0
  3. package/client.d.mts +32 -14
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +32 -14
  6. package/client.d.ts.map +1 -1
  7. package/client.js +26 -4
  8. package/client.js.map +1 -1
  9. package/client.mjs +26 -4
  10. package/client.mjs.map +1 -1
  11. package/core/pagination.d.mts +60 -0
  12. package/core/pagination.d.mts.map +1 -0
  13. package/core/pagination.d.ts +60 -0
  14. package/core/pagination.d.ts.map +1 -0
  15. package/core/pagination.js +101 -0
  16. package/core/pagination.js.map +1 -0
  17. package/core/pagination.mjs +95 -0
  18. package/core/pagination.mjs.map +1 -0
  19. package/index.d.mts +1 -0
  20. package/index.d.mts.map +1 -1
  21. package/index.d.ts +1 -0
  22. package/index.d.ts.map +1 -1
  23. package/index.js +3 -1
  24. package/index.js.map +1 -1
  25. package/index.mjs +1 -0
  26. package/index.mjs.map +1 -1
  27. package/package.json +11 -1
  28. package/pagination.d.mts +2 -0
  29. package/pagination.d.mts.map +1 -0
  30. package/pagination.d.ts +2 -0
  31. package/pagination.d.ts.map +1 -0
  32. package/pagination.js +6 -0
  33. package/pagination.js.map +1 -0
  34. package/pagination.mjs +2 -0
  35. package/pagination.mjs.map +1 -0
  36. package/resources/allowed-events.d.mts +18 -18
  37. package/resources/allowed-events.d.mts.map +1 -1
  38. package/resources/allowed-events.d.ts +18 -18
  39. package/resources/allowed-events.d.ts.map +1 -1
  40. package/resources/allowed-events.js +7 -7
  41. package/resources/allowed-events.js.map +1 -1
  42. package/resources/allowed-events.mjs +7 -7
  43. package/resources/allowed-events.mjs.map +1 -1
  44. package/resources/consent-settings.d.mts +2568 -124
  45. package/resources/consent-settings.d.mts.map +1 -1
  46. package/resources/consent-settings.d.ts +2568 -124
  47. package/resources/consent-settings.d.ts.map +1 -1
  48. package/resources/consent-settings.js +24 -7
  49. package/resources/consent-settings.js.map +1 -1
  50. package/resources/consent-settings.mjs +24 -7
  51. package/resources/consent-settings.mjs.map +1 -1
  52. package/resources/destinations.d.mts +33 -32
  53. package/resources/destinations.d.mts.map +1 -1
  54. package/resources/destinations.d.ts +33 -32
  55. package/resources/destinations.d.ts.map +1 -1
  56. package/resources/destinations.js +8 -7
  57. package/resources/destinations.js.map +1 -1
  58. package/resources/destinations.mjs +8 -7
  59. package/resources/destinations.mjs.map +1 -1
  60. package/resources/experiment-settings.d.mts +277 -0
  61. package/resources/experiment-settings.d.mts.map +1 -0
  62. package/resources/experiment-settings.d.ts +277 -0
  63. package/resources/experiment-settings.d.ts.map +1 -0
  64. package/resources/experiment-settings.js +77 -0
  65. package/resources/experiment-settings.js.map +1 -0
  66. package/resources/experiment-settings.mjs +73 -0
  67. package/resources/experiment-settings.mjs.map +1 -0
  68. package/resources/experiment-variants.d.mts +659 -0
  69. package/resources/experiment-variants.d.mts.map +1 -0
  70. package/resources/experiment-variants.d.ts +659 -0
  71. package/resources/experiment-variants.d.ts.map +1 -0
  72. package/resources/experiment-variants.js +79 -0
  73. package/resources/experiment-variants.js.map +1 -0
  74. package/resources/experiment-variants.mjs +75 -0
  75. package/resources/experiment-variants.mjs.map +1 -0
  76. package/resources/experiments.d.mts +2002 -0
  77. package/resources/experiments.d.mts.map +1 -0
  78. package/resources/experiments.d.ts +2002 -0
  79. package/resources/experiments.d.ts.map +1 -0
  80. package/resources/experiments.js +166 -0
  81. package/resources/experiments.js.map +1 -0
  82. package/resources/experiments.mjs +162 -0
  83. package/resources/experiments.mjs.map +1 -0
  84. package/resources/global-dispatch-centers.d.mts +125 -58
  85. package/resources/global-dispatch-centers.d.mts.map +1 -1
  86. package/resources/global-dispatch-centers.d.ts +125 -58
  87. package/resources/global-dispatch-centers.d.ts.map +1 -1
  88. package/resources/global-dispatch-centers.js +10 -7
  89. package/resources/global-dispatch-centers.js.map +1 -1
  90. package/resources/global-dispatch-centers.mjs +10 -7
  91. package/resources/global-dispatch-centers.mjs.map +1 -1
  92. package/resources/index.d.mts +11 -7
  93. package/resources/index.d.mts.map +1 -1
  94. package/resources/index.d.ts +11 -7
  95. package/resources/index.d.ts.map +1 -1
  96. package/resources/index.js +9 -1
  97. package/resources/index.js.map +1 -1
  98. package/resources/index.mjs +4 -0
  99. package/resources/index.mjs.map +1 -1
  100. package/resources/mappings.d.mts +136 -0
  101. package/resources/mappings.d.mts.map +1 -0
  102. package/resources/mappings.d.ts +136 -0
  103. package/resources/mappings.d.ts.map +1 -0
  104. package/resources/mappings.js +41 -0
  105. package/resources/mappings.js.map +1 -0
  106. package/resources/mappings.mjs +37 -0
  107. package/resources/mappings.mjs.map +1 -0
  108. package/resources/replay-settings.d.mts +48 -48
  109. package/resources/replay-settings.d.mts.map +1 -1
  110. package/resources/replay-settings.d.ts +48 -48
  111. package/resources/replay-settings.d.ts.map +1 -1
  112. package/resources/replay-settings.js +13 -8
  113. package/resources/replay-settings.js.map +1 -1
  114. package/resources/replay-settings.mjs +13 -8
  115. package/resources/replay-settings.mjs.map +1 -1
  116. package/resources/sources.d.mts +64 -27
  117. package/resources/sources.d.mts.map +1 -1
  118. package/resources/sources.d.ts +64 -27
  119. package/resources/sources.d.ts.map +1 -1
  120. package/resources/sources.js +14 -7
  121. package/resources/sources.js.map +1 -1
  122. package/resources/sources.mjs +14 -7
  123. package/resources/sources.mjs.map +1 -1
  124. package/resources/versions.d.mts +742 -16
  125. package/resources/versions.d.mts.map +1 -1
  126. package/resources/versions.d.ts +742 -16
  127. package/resources/versions.d.ts.map +1 -1
  128. package/resources/versions.js +45 -5
  129. package/resources/versions.js.map +1 -1
  130. package/resources/versions.mjs +45 -5
  131. package/resources/versions.mjs.map +1 -1
  132. package/src/client.ts +206 -29
  133. package/src/core/pagination.ts +165 -0
  134. package/src/index.ts +1 -0
  135. package/src/pagination.ts +2 -0
  136. package/src/resources/allowed-events.ts +27 -27
  137. package/src/resources/consent-settings.ts +3036 -244
  138. package/src/resources/destinations.ts +128 -127
  139. package/src/resources/experiment-settings.ts +367 -0
  140. package/src/resources/experiment-variants.ts +870 -0
  141. package/src/resources/experiments.ts +2446 -0
  142. package/src/resources/global-dispatch-centers.ts +155 -65
  143. package/src/resources/index.ts +75 -7
  144. package/src/resources/mappings.ts +230 -0
  145. package/src/resources/replay-settings.ts +67 -59
  146. package/src/resources/sources.ts +116 -71
  147. package/src/resources/versions.ts +1130 -17
  148. package/src/version.ts +1 -1
  149. package/version.d.mts +1 -1
  150. package/version.d.ts +1 -1
  151. package/version.js +1 -1
  152. package/version.mjs +1 -1
@@ -2,12 +2,30 @@
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
4
  import { APIPromise } from '../core/api-promise';
5
+ import { Cursor, type CursorParams, PagePromise } from '../core/pagination';
5
6
  import { RequestOptions } from '../internal/request-options';
6
7
  import { path } from '../internal/utils/path';
7
8
 
8
9
  export class Versions extends APIResource {
9
10
  /**
10
- * Create a new version. Requires scope: version:publish
11
+ * List versions for this account, newest first. Supports cursor pagination and
12
+ * filtering by `isPublished`, `nameContains`, and `notesContains`. Combine filters
13
+ * with AND semantics. Requires scope: version:list
14
+ */
15
+ list(
16
+ query: VersionListParams | null | undefined = {},
17
+ options?: RequestOptions,
18
+ ): PagePromise<VersionListResponsesCursor, VersionListResponse> {
19
+ return this._client.getAPIList('/rest/v1/versions', Cursor<VersionListResponse>, { query, ...options });
20
+ }
21
+
22
+ /**
23
+ * Publish the current draft (i.e. all unpublished entity changes) as a new
24
+ * version. Returns the full Version on success. Returns HTTP 409 with the reason
25
+ * in the response `error` field when there are no draft changes to publish, when
26
+ * another publish is already in flight, or when the action otherwise conflicts
27
+ * with current state. To re-publish an existing version, use POST
28
+ * /rest/v1/versions/{id}/publish instead. Requires scope: version:publish
11
29
  */
12
30
  create(body: VersionCreateParams, options?: RequestOptions): APIPromise<VersionCreateResponse> {
13
31
  return this._client.post('/rest/v1/versions', { body, ...options });
@@ -21,24 +39,90 @@ export class Versions extends APIResource {
21
39
  }
22
40
 
23
41
  /**
24
- * Update a version. Requires scope: version:update
42
+ * Partially update a version. Only the fields you send are changed. Requires
43
+ * scope: version:update
25
44
  */
26
45
  update(id: string, body: VersionUpdateParams, options?: RequestOptions): APIPromise<VersionUpdateResponse> {
27
46
  return this._client.patch(path`/rest/v1/versions/${id}`, { body, ...options });
28
47
  }
29
48
 
30
49
  /**
31
- * List all versions. Requires scope: version:list
50
+ * Re-publish an existing (previously created) version by ID. Use this to roll back
51
+ * to an older snapshot. Returns 409 if the version is already published, was
52
+ * created more than 45 days ago, or another publish is already in flight. To
53
+ * create-and-publish from current draft state, use POST /rest/v1/versions instead.
54
+ * Requires scope: version:publish
55
+ */
56
+ publish(id: string, options?: RequestOptions): APIPromise<VersionPublishResponse> {
57
+ return this._client.post(path`/rest/v1/versions/${id}/publish`, options);
58
+ }
59
+
60
+ /**
61
+ * Retrieve the full JSON snapshot captured by a version — every entity
62
+ * (destinations, sources, mappings, consent settings, etc.) as it existed when
63
+ * this version was published. Sensitive fields (API keys, tokens, secrets) are
64
+ * redacted. Useful for IaC export, audit, and backup workflows. Requires scope:
65
+ * version:find
32
66
  */
33
- list(options?: RequestOptions): APIPromise<VersionListResponse> {
34
- return this._client.get('/rest/v1/versions', options);
67
+ snapshot(id: string, options?: RequestOptions): APIPromise<VersionSnapshotResponse> {
68
+ return this._client.get(path`/rest/v1/versions/${id}/snapshot`, options);
35
69
  }
70
+
71
+ /**
72
+ * Compare the current draft (all unpublished entity changes) against the latest
73
+ * published version. Returns added/removed/modified entities grouped by
74
+ * collection, plus a total `count`. Use this to preview what would be included in
75
+ * a `POST /rest/v1/versions` call. The path segment `draft` is a literal — there
76
+ * is no version with that ID; it identifies the comparison target. Requires scope:
77
+ * version:find
78
+ */
79
+ diff(id: 'draft', options?: RequestOptions): APIPromise<VersionDiffResponse> {
80
+ return this._client.get(path`/rest/v1/versions/${id}/diff`, options);
81
+ }
82
+ }
83
+
84
+ export type VersionListResponsesCursor = Cursor<VersionListResponse>;
85
+
86
+ export interface VersionListResponse {
87
+ id: string;
88
+
89
+ createdAt: string;
90
+
91
+ isPublished: boolean;
92
+
93
+ versionNumber: number;
94
+
95
+ name?: string | null;
96
+
97
+ /**
98
+ * When this version was most recently published. NOT cleared when a newer version
99
+ * is published — `publishedAt` reflects the most recent successful publish of this
100
+ * row, regardless of whether `isPublished` is currently true. Use `isPublished` to
101
+ * determine the current live version.
102
+ */
103
+ publishedAt?: string | null;
36
104
  }
37
105
 
38
106
  export interface VersionCreateResponse {
39
- success: boolean;
107
+ id: string;
108
+
109
+ createdAt: string;
110
+
111
+ isPublished: boolean;
112
+
113
+ versionNumber: number;
40
114
 
41
- error?: string | null;
115
+ name?: string | null;
116
+
117
+ notes?: string | null;
118
+
119
+ /**
120
+ * When this version was most recently published. NOT cleared when a newer version
121
+ * is published — `publishedAt` reflects the most recent successful publish of this
122
+ * row, regardless of whether `isPublished` is currently true. Use `isPublished` to
123
+ * determine the current live version.
124
+ */
125
+ publishedAt?: string | null;
42
126
  }
43
127
 
44
128
  export interface VersionRetrieveResponse {
@@ -54,6 +138,12 @@ export interface VersionRetrieveResponse {
54
138
 
55
139
  notes?: string | null;
56
140
 
141
+ /**
142
+ * When this version was most recently published. NOT cleared when a newer version
143
+ * is published — `publishedAt` reflects the most recent successful publish of this
144
+ * row, regardless of whether `isPublished` is currently true. Use `isPublished` to
145
+ * determine the current live version.
146
+ */
57
147
  publishedAt?: string | null;
58
148
  }
59
149
 
@@ -70,27 +160,1045 @@ export interface VersionUpdateResponse {
70
160
 
71
161
  notes?: string | null;
72
162
 
163
+ /**
164
+ * When this version was most recently published. NOT cleared when a newer version
165
+ * is published — `publishedAt` reflects the most recent successful publish of this
166
+ * row, regardless of whether `isPublished` is currently true. Use `isPublished` to
167
+ * determine the current live version.
168
+ */
73
169
  publishedAt?: string | null;
74
170
  }
75
171
 
76
- export type VersionListResponse = Array<VersionListResponse.VersionListResponseItem>;
172
+ export interface VersionPublishResponse {
173
+ id: string;
174
+
175
+ createdAt: string;
176
+
177
+ isPublished: boolean;
178
+
179
+ versionNumber: number;
180
+
181
+ name?: string | null;
182
+
183
+ notes?: string | null;
184
+
185
+ /**
186
+ * When this version was most recently published. NOT cleared when a newer version
187
+ * is published — `publishedAt` reflects the most recent successful publish of this
188
+ * row, regardless of whether `isPublished` is currently true. Use `isPublished` to
189
+ * determine the current live version.
190
+ */
191
+ publishedAt?: string | null;
192
+ }
193
+
194
+ export interface VersionSnapshotResponse {
195
+ id: string;
196
+
197
+ /**
198
+ * The full entity snapshot captured by this version. Keys are entity collection
199
+ * names (destinations, sources, allowedEvents, mappings, consentSettings,
200
+ * replaySettings, globalDispatchCenters, etc.) and values are arrays of the
201
+ * entities as they existed at publish time. Sensitive fields (API keys, tokens,
202
+ * secrets) are redacted. Returns null when the version snapshot has been pruned.
203
+ */
204
+ jsonContent: { [key: string]: unknown };
205
+
206
+ versionNumber: number;
207
+ }
208
+
209
+ export interface VersionDiffResponse {
210
+ /**
211
+ * Total number of differences across all entity collections. Equals the sum of
212
+ * `added + removed + modified` across every collection in `differences`.
213
+ */
214
+ count: number;
215
+
216
+ differences: VersionDiffResponse.Differences;
217
+ }
218
+
219
+ export namespace VersionDiffResponse {
220
+ export interface Differences {
221
+ allowedEvents: Differences.AllowedEvents;
222
+
223
+ consentSettings: Differences.ConsentSettings;
224
+
225
+ dataGovernanceEvents: Differences.DataGovernanceEvents;
226
+
227
+ dataGovernanceRules: Differences.DataGovernanceRules;
228
+
229
+ destinations: Differences.Destinations;
230
+
231
+ experiments: Differences.Experiments;
232
+
233
+ experimentSettings: Differences.ExperimentSettings;
234
+
235
+ experimentVariants: Differences.ExperimentVariants;
236
+
237
+ externalAllowedEventData: Differences.ExternalAllowedEventData;
238
+
239
+ globalDispatchCenters: Differences.GlobalDispatchCenters;
240
+
241
+ mappings: Differences.Mappings;
242
+
243
+ replaySettings: Differences.ReplaySettings;
244
+
245
+ sources: Differences.Sources;
246
+
247
+ tagManagerTags: Differences.TagManagerTags;
248
+
249
+ tagManagerTriggers: Differences.TagManagerTriggers;
250
+
251
+ tagManagerVariables: Differences.TagManagerVariables;
252
+ }
253
+
254
+ export namespace Differences {
255
+ export interface AllowedEvents {
256
+ added: Array<AllowedEvents.Added>;
257
+
258
+ modified: Array<AllowedEvents.Modified>;
259
+
260
+ removed: Array<AllowedEvents.Removed>;
261
+ }
262
+
263
+ export namespace AllowedEvents {
264
+ export interface Added {
265
+ id: string;
266
+
267
+ name?: string | null;
268
+
269
+ summary?: string | null;
270
+
271
+ tagManagerId?: string | null;
272
+ }
273
+
274
+ export interface Modified {
275
+ new: Modified.New;
276
+
277
+ old: Modified.Old;
278
+ }
279
+
280
+ export namespace Modified {
281
+ export interface New {
282
+ id: string;
283
+
284
+ name?: string | null;
285
+
286
+ summary?: string | null;
287
+
288
+ tagManagerId?: string | null;
289
+ }
290
+
291
+ export interface Old {
292
+ id: string;
293
+
294
+ name?: string | null;
295
+
296
+ summary?: string | null;
297
+
298
+ tagManagerId?: string | null;
299
+ }
300
+ }
301
+
302
+ export interface Removed {
303
+ id: string;
304
+
305
+ name?: string | null;
306
+
307
+ summary?: string | null;
308
+
309
+ tagManagerId?: string | null;
310
+ }
311
+ }
312
+
313
+ export interface ConsentSettings {
314
+ added: Array<ConsentSettings.Added>;
315
+
316
+ modified: Array<ConsentSettings.Modified>;
317
+
318
+ removed: Array<ConsentSettings.Removed>;
319
+ }
320
+
321
+ export namespace ConsentSettings {
322
+ export interface Added {
323
+ id: string;
324
+
325
+ name?: string | null;
326
+
327
+ summary?: string | null;
328
+
329
+ tagManagerId?: string | null;
330
+ }
331
+
332
+ export interface Modified {
333
+ new: Modified.New;
334
+
335
+ old: Modified.Old;
336
+ }
337
+
338
+ export namespace Modified {
339
+ export interface New {
340
+ id: string;
341
+
342
+ name?: string | null;
343
+
344
+ summary?: string | null;
345
+
346
+ tagManagerId?: string | null;
347
+ }
348
+
349
+ export interface Old {
350
+ id: string;
351
+
352
+ name?: string | null;
353
+
354
+ summary?: string | null;
355
+
356
+ tagManagerId?: string | null;
357
+ }
358
+ }
359
+
360
+ export interface Removed {
361
+ id: string;
362
+
363
+ name?: string | null;
364
+
365
+ summary?: string | null;
366
+
367
+ tagManagerId?: string | null;
368
+ }
369
+ }
370
+
371
+ export interface DataGovernanceEvents {
372
+ added: Array<DataGovernanceEvents.Added>;
373
+
374
+ modified: Array<DataGovernanceEvents.Modified>;
375
+
376
+ removed: Array<DataGovernanceEvents.Removed>;
377
+ }
378
+
379
+ export namespace DataGovernanceEvents {
380
+ export interface Added {
381
+ id: string;
382
+
383
+ name?: string | null;
384
+
385
+ summary?: string | null;
386
+
387
+ tagManagerId?: string | null;
388
+ }
389
+
390
+ export interface Modified {
391
+ new: Modified.New;
392
+
393
+ old: Modified.Old;
394
+ }
395
+
396
+ export namespace Modified {
397
+ export interface New {
398
+ id: string;
399
+
400
+ name?: string | null;
401
+
402
+ summary?: string | null;
403
+
404
+ tagManagerId?: string | null;
405
+ }
406
+
407
+ export interface Old {
408
+ id: string;
409
+
410
+ name?: string | null;
411
+
412
+ summary?: string | null;
413
+
414
+ tagManagerId?: string | null;
415
+ }
416
+ }
417
+
418
+ export interface Removed {
419
+ id: string;
420
+
421
+ name?: string | null;
422
+
423
+ summary?: string | null;
424
+
425
+ tagManagerId?: string | null;
426
+ }
427
+ }
428
+
429
+ export interface DataGovernanceRules {
430
+ added: Array<DataGovernanceRules.Added>;
431
+
432
+ modified: Array<DataGovernanceRules.Modified>;
433
+
434
+ removed: Array<DataGovernanceRules.Removed>;
435
+ }
436
+
437
+ export namespace DataGovernanceRules {
438
+ export interface Added {
439
+ id: string;
440
+
441
+ name?: string | null;
442
+
443
+ summary?: string | null;
444
+
445
+ tagManagerId?: string | null;
446
+ }
447
+
448
+ export interface Modified {
449
+ new: Modified.New;
450
+
451
+ old: Modified.Old;
452
+ }
453
+
454
+ export namespace Modified {
455
+ export interface New {
456
+ id: string;
457
+
458
+ name?: string | null;
459
+
460
+ summary?: string | null;
461
+
462
+ tagManagerId?: string | null;
463
+ }
464
+
465
+ export interface Old {
466
+ id: string;
467
+
468
+ name?: string | null;
469
+
470
+ summary?: string | null;
471
+
472
+ tagManagerId?: string | null;
473
+ }
474
+ }
475
+
476
+ export interface Removed {
477
+ id: string;
478
+
479
+ name?: string | null;
480
+
481
+ summary?: string | null;
482
+
483
+ tagManagerId?: string | null;
484
+ }
485
+ }
486
+
487
+ export interface Destinations {
488
+ added: Array<Destinations.Added>;
489
+
490
+ modified: Array<Destinations.Modified>;
491
+
492
+ removed: Array<Destinations.Removed>;
493
+ }
494
+
495
+ export namespace Destinations {
496
+ export interface Added {
497
+ id: string;
498
+
499
+ name?: string | null;
500
+
501
+ summary?: string | null;
502
+
503
+ tagManagerId?: string | null;
504
+ }
505
+
506
+ export interface Modified {
507
+ new: Modified.New;
508
+
509
+ old: Modified.Old;
510
+ }
511
+
512
+ export namespace Modified {
513
+ export interface New {
514
+ id: string;
515
+
516
+ name?: string | null;
517
+
518
+ summary?: string | null;
519
+
520
+ tagManagerId?: string | null;
521
+ }
522
+
523
+ export interface Old {
524
+ id: string;
525
+
526
+ name?: string | null;
527
+
528
+ summary?: string | null;
529
+
530
+ tagManagerId?: string | null;
531
+ }
532
+ }
533
+
534
+ export interface Removed {
535
+ id: string;
536
+
537
+ name?: string | null;
538
+
539
+ summary?: string | null;
540
+
541
+ tagManagerId?: string | null;
542
+ }
543
+ }
544
+
545
+ export interface Experiments {
546
+ added: Array<Experiments.Added>;
547
+
548
+ modified: Array<Experiments.Modified>;
549
+
550
+ removed: Array<Experiments.Removed>;
551
+ }
552
+
553
+ export namespace Experiments {
554
+ export interface Added {
555
+ id: string;
556
+
557
+ name?: string | null;
558
+
559
+ summary?: string | null;
560
+
561
+ tagManagerId?: string | null;
562
+ }
563
+
564
+ export interface Modified {
565
+ new: Modified.New;
566
+
567
+ old: Modified.Old;
568
+ }
569
+
570
+ export namespace Modified {
571
+ export interface New {
572
+ id: string;
573
+
574
+ name?: string | null;
575
+
576
+ summary?: string | null;
577
+
578
+ tagManagerId?: string | null;
579
+ }
580
+
581
+ export interface Old {
582
+ id: string;
583
+
584
+ name?: string | null;
585
+
586
+ summary?: string | null;
587
+
588
+ tagManagerId?: string | null;
589
+ }
590
+ }
591
+
592
+ export interface Removed {
593
+ id: string;
594
+
595
+ name?: string | null;
596
+
597
+ summary?: string | null;
77
598
 
78
- export namespace VersionListResponse {
79
- export interface VersionListResponseItem {
80
- id: string;
599
+ tagManagerId?: string | null;
600
+ }
601
+ }
81
602
 
82
- createdAt: string;
603
+ export interface ExperimentSettings {
604
+ added: Array<ExperimentSettings.Added>;
83
605
 
84
- isPublished: boolean;
606
+ modified: Array<ExperimentSettings.Modified>;
85
607
 
86
- versionNumber: number;
608
+ removed: Array<ExperimentSettings.Removed>;
609
+ }
87
610
 
88
- name?: string | null;
611
+ export namespace ExperimentSettings {
612
+ export interface Added {
613
+ id: string;
89
614
 
90
- publishedAt?: string | null;
615
+ name?: string | null;
616
+
617
+ summary?: string | null;
618
+
619
+ tagManagerId?: string | null;
620
+ }
621
+
622
+ export interface Modified {
623
+ new: Modified.New;
624
+
625
+ old: Modified.Old;
626
+ }
627
+
628
+ export namespace Modified {
629
+ export interface New {
630
+ id: string;
631
+
632
+ name?: string | null;
633
+
634
+ summary?: string | null;
635
+
636
+ tagManagerId?: string | null;
637
+ }
638
+
639
+ export interface Old {
640
+ id: string;
641
+
642
+ name?: string | null;
643
+
644
+ summary?: string | null;
645
+
646
+ tagManagerId?: string | null;
647
+ }
648
+ }
649
+
650
+ export interface Removed {
651
+ id: string;
652
+
653
+ name?: string | null;
654
+
655
+ summary?: string | null;
656
+
657
+ tagManagerId?: string | null;
658
+ }
659
+ }
660
+
661
+ export interface ExperimentVariants {
662
+ added: Array<ExperimentVariants.Added>;
663
+
664
+ modified: Array<ExperimentVariants.Modified>;
665
+
666
+ removed: Array<ExperimentVariants.Removed>;
667
+ }
668
+
669
+ export namespace ExperimentVariants {
670
+ export interface Added {
671
+ id: string;
672
+
673
+ name?: string | null;
674
+
675
+ summary?: string | null;
676
+
677
+ tagManagerId?: string | null;
678
+ }
679
+
680
+ export interface Modified {
681
+ new: Modified.New;
682
+
683
+ old: Modified.Old;
684
+ }
685
+
686
+ export namespace Modified {
687
+ export interface New {
688
+ id: string;
689
+
690
+ name?: string | null;
691
+
692
+ summary?: string | null;
693
+
694
+ tagManagerId?: string | null;
695
+ }
696
+
697
+ export interface Old {
698
+ id: string;
699
+
700
+ name?: string | null;
701
+
702
+ summary?: string | null;
703
+
704
+ tagManagerId?: string | null;
705
+ }
706
+ }
707
+
708
+ export interface Removed {
709
+ id: string;
710
+
711
+ name?: string | null;
712
+
713
+ summary?: string | null;
714
+
715
+ tagManagerId?: string | null;
716
+ }
717
+ }
718
+
719
+ export interface ExternalAllowedEventData {
720
+ added: Array<ExternalAllowedEventData.Added>;
721
+
722
+ modified: Array<ExternalAllowedEventData.Modified>;
723
+
724
+ removed: Array<ExternalAllowedEventData.Removed>;
725
+ }
726
+
727
+ export namespace ExternalAllowedEventData {
728
+ export interface Added {
729
+ id: string;
730
+
731
+ name?: string | null;
732
+
733
+ summary?: string | null;
734
+
735
+ tagManagerId?: string | null;
736
+ }
737
+
738
+ export interface Modified {
739
+ new: Modified.New;
740
+
741
+ old: Modified.Old;
742
+ }
743
+
744
+ export namespace Modified {
745
+ export interface New {
746
+ id: string;
747
+
748
+ name?: string | null;
749
+
750
+ summary?: string | null;
751
+
752
+ tagManagerId?: string | null;
753
+ }
754
+
755
+ export interface Old {
756
+ id: string;
757
+
758
+ name?: string | null;
759
+
760
+ summary?: string | null;
761
+
762
+ tagManagerId?: string | null;
763
+ }
764
+ }
765
+
766
+ export interface Removed {
767
+ id: string;
768
+
769
+ name?: string | null;
770
+
771
+ summary?: string | null;
772
+
773
+ tagManagerId?: string | null;
774
+ }
775
+ }
776
+
777
+ export interface GlobalDispatchCenters {
778
+ added: Array<GlobalDispatchCenters.Added>;
779
+
780
+ modified: Array<GlobalDispatchCenters.Modified>;
781
+
782
+ removed: Array<GlobalDispatchCenters.Removed>;
783
+ }
784
+
785
+ export namespace GlobalDispatchCenters {
786
+ export interface Added {
787
+ id: string;
788
+
789
+ name?: string | null;
790
+
791
+ summary?: string | null;
792
+
793
+ tagManagerId?: string | null;
794
+ }
795
+
796
+ export interface Modified {
797
+ new: Modified.New;
798
+
799
+ old: Modified.Old;
800
+ }
801
+
802
+ export namespace Modified {
803
+ export interface New {
804
+ id: string;
805
+
806
+ name?: string | null;
807
+
808
+ summary?: string | null;
809
+
810
+ tagManagerId?: string | null;
811
+ }
812
+
813
+ export interface Old {
814
+ id: string;
815
+
816
+ name?: string | null;
817
+
818
+ summary?: string | null;
819
+
820
+ tagManagerId?: string | null;
821
+ }
822
+ }
823
+
824
+ export interface Removed {
825
+ id: string;
826
+
827
+ name?: string | null;
828
+
829
+ summary?: string | null;
830
+
831
+ tagManagerId?: string | null;
832
+ }
833
+ }
834
+
835
+ export interface Mappings {
836
+ added: Array<Mappings.Added>;
837
+
838
+ modified: Array<Mappings.Modified>;
839
+
840
+ removed: Array<Mappings.Removed>;
841
+ }
842
+
843
+ export namespace Mappings {
844
+ export interface Added {
845
+ id: string;
846
+
847
+ name?: string | null;
848
+
849
+ summary?: string | null;
850
+
851
+ tagManagerId?: string | null;
852
+ }
853
+
854
+ export interface Modified {
855
+ new: Modified.New;
856
+
857
+ old: Modified.Old;
858
+ }
859
+
860
+ export namespace Modified {
861
+ export interface New {
862
+ id: string;
863
+
864
+ name?: string | null;
865
+
866
+ summary?: string | null;
867
+
868
+ tagManagerId?: string | null;
869
+ }
870
+
871
+ export interface Old {
872
+ id: string;
873
+
874
+ name?: string | null;
875
+
876
+ summary?: string | null;
877
+
878
+ tagManagerId?: string | null;
879
+ }
880
+ }
881
+
882
+ export interface Removed {
883
+ id: string;
884
+
885
+ name?: string | null;
886
+
887
+ summary?: string | null;
888
+
889
+ tagManagerId?: string | null;
890
+ }
891
+ }
892
+
893
+ export interface ReplaySettings {
894
+ added: Array<ReplaySettings.Added>;
895
+
896
+ modified: Array<ReplaySettings.Modified>;
897
+
898
+ removed: Array<ReplaySettings.Removed>;
899
+ }
900
+
901
+ export namespace ReplaySettings {
902
+ export interface Added {
903
+ id: string;
904
+
905
+ name?: string | null;
906
+
907
+ summary?: string | null;
908
+
909
+ tagManagerId?: string | null;
910
+ }
911
+
912
+ export interface Modified {
913
+ new: Modified.New;
914
+
915
+ old: Modified.Old;
916
+ }
917
+
918
+ export namespace Modified {
919
+ export interface New {
920
+ id: string;
921
+
922
+ name?: string | null;
923
+
924
+ summary?: string | null;
925
+
926
+ tagManagerId?: string | null;
927
+ }
928
+
929
+ export interface Old {
930
+ id: string;
931
+
932
+ name?: string | null;
933
+
934
+ summary?: string | null;
935
+
936
+ tagManagerId?: string | null;
937
+ }
938
+ }
939
+
940
+ export interface Removed {
941
+ id: string;
942
+
943
+ name?: string | null;
944
+
945
+ summary?: string | null;
946
+
947
+ tagManagerId?: string | null;
948
+ }
949
+ }
950
+
951
+ export interface Sources {
952
+ added: Array<Sources.Added>;
953
+
954
+ modified: Array<Sources.Modified>;
955
+
956
+ removed: Array<Sources.Removed>;
957
+ }
958
+
959
+ export namespace Sources {
960
+ export interface Added {
961
+ id: string;
962
+
963
+ name?: string | null;
964
+
965
+ summary?: string | null;
966
+
967
+ tagManagerId?: string | null;
968
+ }
969
+
970
+ export interface Modified {
971
+ new: Modified.New;
972
+
973
+ old: Modified.Old;
974
+ }
975
+
976
+ export namespace Modified {
977
+ export interface New {
978
+ id: string;
979
+
980
+ name?: string | null;
981
+
982
+ summary?: string | null;
983
+
984
+ tagManagerId?: string | null;
985
+ }
986
+
987
+ export interface Old {
988
+ id: string;
989
+
990
+ name?: string | null;
991
+
992
+ summary?: string | null;
993
+
994
+ tagManagerId?: string | null;
995
+ }
996
+ }
997
+
998
+ export interface Removed {
999
+ id: string;
1000
+
1001
+ name?: string | null;
1002
+
1003
+ summary?: string | null;
1004
+
1005
+ tagManagerId?: string | null;
1006
+ }
1007
+ }
1008
+
1009
+ export interface TagManagerTags {
1010
+ added: Array<TagManagerTags.Added>;
1011
+
1012
+ modified: Array<TagManagerTags.Modified>;
1013
+
1014
+ removed: Array<TagManagerTags.Removed>;
1015
+ }
1016
+
1017
+ export namespace TagManagerTags {
1018
+ export interface Added {
1019
+ id: string;
1020
+
1021
+ name?: string | null;
1022
+
1023
+ summary?: string | null;
1024
+
1025
+ tagManagerId?: string | null;
1026
+ }
1027
+
1028
+ export interface Modified {
1029
+ new: Modified.New;
1030
+
1031
+ old: Modified.Old;
1032
+ }
1033
+
1034
+ export namespace Modified {
1035
+ export interface New {
1036
+ id: string;
1037
+
1038
+ name?: string | null;
1039
+
1040
+ summary?: string | null;
1041
+
1042
+ tagManagerId?: string | null;
1043
+ }
1044
+
1045
+ export interface Old {
1046
+ id: string;
1047
+
1048
+ name?: string | null;
1049
+
1050
+ summary?: string | null;
1051
+
1052
+ tagManagerId?: string | null;
1053
+ }
1054
+ }
1055
+
1056
+ export interface Removed {
1057
+ id: string;
1058
+
1059
+ name?: string | null;
1060
+
1061
+ summary?: string | null;
1062
+
1063
+ tagManagerId?: string | null;
1064
+ }
1065
+ }
1066
+
1067
+ export interface TagManagerTriggers {
1068
+ added: Array<TagManagerTriggers.Added>;
1069
+
1070
+ modified: Array<TagManagerTriggers.Modified>;
1071
+
1072
+ removed: Array<TagManagerTriggers.Removed>;
1073
+ }
1074
+
1075
+ export namespace TagManagerTriggers {
1076
+ export interface Added {
1077
+ id: string;
1078
+
1079
+ name?: string | null;
1080
+
1081
+ summary?: string | null;
1082
+
1083
+ tagManagerId?: string | null;
1084
+ }
1085
+
1086
+ export interface Modified {
1087
+ new: Modified.New;
1088
+
1089
+ old: Modified.Old;
1090
+ }
1091
+
1092
+ export namespace Modified {
1093
+ export interface New {
1094
+ id: string;
1095
+
1096
+ name?: string | null;
1097
+
1098
+ summary?: string | null;
1099
+
1100
+ tagManagerId?: string | null;
1101
+ }
1102
+
1103
+ export interface Old {
1104
+ id: string;
1105
+
1106
+ name?: string | null;
1107
+
1108
+ summary?: string | null;
1109
+
1110
+ tagManagerId?: string | null;
1111
+ }
1112
+ }
1113
+
1114
+ export interface Removed {
1115
+ id: string;
1116
+
1117
+ name?: string | null;
1118
+
1119
+ summary?: string | null;
1120
+
1121
+ tagManagerId?: string | null;
1122
+ }
1123
+ }
1124
+
1125
+ export interface TagManagerVariables {
1126
+ added: Array<TagManagerVariables.Added>;
1127
+
1128
+ modified: Array<TagManagerVariables.Modified>;
1129
+
1130
+ removed: Array<TagManagerVariables.Removed>;
1131
+ }
1132
+
1133
+ export namespace TagManagerVariables {
1134
+ export interface Added {
1135
+ id: string;
1136
+
1137
+ name?: string | null;
1138
+
1139
+ summary?: string | null;
1140
+
1141
+ tagManagerId?: string | null;
1142
+ }
1143
+
1144
+ export interface Modified {
1145
+ new: Modified.New;
1146
+
1147
+ old: Modified.Old;
1148
+ }
1149
+
1150
+ export namespace Modified {
1151
+ export interface New {
1152
+ id: string;
1153
+
1154
+ name?: string | null;
1155
+
1156
+ summary?: string | null;
1157
+
1158
+ tagManagerId?: string | null;
1159
+ }
1160
+
1161
+ export interface Old {
1162
+ id: string;
1163
+
1164
+ name?: string | null;
1165
+
1166
+ summary?: string | null;
1167
+
1168
+ tagManagerId?: string | null;
1169
+ }
1170
+ }
1171
+
1172
+ export interface Removed {
1173
+ id: string;
1174
+
1175
+ name?: string | null;
1176
+
1177
+ summary?: string | null;
1178
+
1179
+ tagManagerId?: string | null;
1180
+ }
1181
+ }
91
1182
  }
92
1183
  }
93
1184
 
1185
+ export interface VersionListParams extends CursorParams {
1186
+ /**
1187
+ * Filter to only published or unpublished versions.
1188
+ */
1189
+ isPublished?: 'true' | 'false';
1190
+
1191
+ /**
1192
+ * Case-insensitive substring match on the version name.
1193
+ */
1194
+ nameContains?: string;
1195
+
1196
+ /**
1197
+ * Case-insensitive substring match on the version notes.
1198
+ */
1199
+ notesContains?: string;
1200
+ }
1201
+
94
1202
  export interface VersionCreateParams {
95
1203
  includeAllowedEvents?: Array<string> | null;
96
1204
 
@@ -127,10 +1235,15 @@ export interface VersionUpdateParams {
127
1235
 
128
1236
  export declare namespace Versions {
129
1237
  export {
1238
+ type VersionListResponse as VersionListResponse,
130
1239
  type VersionCreateResponse as VersionCreateResponse,
131
1240
  type VersionRetrieveResponse as VersionRetrieveResponse,
132
1241
  type VersionUpdateResponse as VersionUpdateResponse,
133
- type VersionListResponse as VersionListResponse,
1242
+ type VersionPublishResponse as VersionPublishResponse,
1243
+ type VersionSnapshotResponse as VersionSnapshotResponse,
1244
+ type VersionDiffResponse as VersionDiffResponse,
1245
+ type VersionListResponsesCursor as VersionListResponsesCursor,
1246
+ type VersionListParams as VersionListParams,
134
1247
  type VersionCreateParams as VersionCreateParams,
135
1248
  type VersionUpdateParams as VersionUpdateParams,
136
1249
  };