@oursprivacy/platform-sdk 1.53.0 → 1.55.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 (158) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +10 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +10 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +2 -2
  11. package/resources/consent-settings.d.mts +5930 -442
  12. package/resources/consent-settings.d.mts.map +1 -1
  13. package/resources/consent-settings.d.ts +5930 -442
  14. package/resources/consent-settings.d.ts.map +1 -1
  15. package/resources/custom-domains.d.mts +301 -0
  16. package/resources/custom-domains.d.mts.map +1 -0
  17. package/resources/custom-domains.d.ts +301 -0
  18. package/resources/custom-domains.d.ts.map +1 -0
  19. package/resources/custom-domains.js +55 -0
  20. package/resources/custom-domains.js.map +1 -0
  21. package/resources/custom-domains.mjs +51 -0
  22. package/resources/custom-domains.mjs.map +1 -0
  23. package/resources/data-governance.d.mts +75 -15
  24. package/resources/data-governance.d.mts.map +1 -1
  25. package/resources/data-governance.d.ts +75 -15
  26. package/resources/data-governance.d.ts.map +1 -1
  27. package/resources/default-mappings.d.mts +207 -3
  28. package/resources/default-mappings.d.mts.map +1 -1
  29. package/resources/default-mappings.d.ts +207 -3
  30. package/resources/default-mappings.d.ts.map +1 -1
  31. package/resources/destinations.d.mts +33 -13
  32. package/resources/destinations.d.mts.map +1 -1
  33. package/resources/destinations.d.ts +33 -13
  34. package/resources/destinations.d.ts.map +1 -1
  35. package/resources/experiment-variants.d.mts +117 -14
  36. package/resources/experiment-variants.d.mts.map +1 -1
  37. package/resources/experiment-variants.d.ts +117 -14
  38. package/resources/experiment-variants.d.ts.map +1 -1
  39. package/resources/experiments.d.mts +3979 -253
  40. package/resources/experiments.d.mts.map +1 -1
  41. package/resources/experiments.d.ts +3979 -253
  42. package/resources/experiments.d.ts.map +1 -1
  43. package/resources/funnels.d.mts +648 -7
  44. package/resources/funnels.d.mts.map +1 -1
  45. package/resources/funnels.d.ts +648 -7
  46. package/resources/funnels.d.ts.map +1 -1
  47. package/resources/index.d.mts +4 -2
  48. package/resources/index.d.mts.map +1 -1
  49. package/resources/index.d.ts +4 -2
  50. package/resources/index.d.ts.map +1 -1
  51. package/resources/index.js +5 -1
  52. package/resources/index.js.map +1 -1
  53. package/resources/index.mjs +2 -0
  54. package/resources/index.mjs.map +1 -1
  55. package/resources/journey-flows.d.mts +580 -16
  56. package/resources/journey-flows.d.mts.map +1 -1
  57. package/resources/journey-flows.d.ts +580 -16
  58. package/resources/journey-flows.d.ts.map +1 -1
  59. package/resources/locations.d.mts +25 -5
  60. package/resources/locations.d.mts.map +1 -1
  61. package/resources/locations.d.ts +25 -5
  62. package/resources/locations.d.ts.map +1 -1
  63. package/resources/mappings.d.mts +540 -12
  64. package/resources/mappings.d.mts.map +1 -1
  65. package/resources/mappings.d.ts +540 -12
  66. package/resources/mappings.d.ts.map +1 -1
  67. package/resources/mappings.js +22 -0
  68. package/resources/mappings.js.map +1 -1
  69. package/resources/mappings.mjs +22 -0
  70. package/resources/mappings.mjs.map +1 -1
  71. package/resources/me.d.mts +29 -0
  72. package/resources/me.d.mts.map +1 -0
  73. package/resources/me.d.ts +29 -0
  74. package/resources/me.d.ts.map +1 -0
  75. package/resources/me.js +17 -0
  76. package/resources/me.js.map +1 -0
  77. package/resources/me.mjs +13 -0
  78. package/resources/me.mjs.map +1 -0
  79. package/resources/replay-settings.d.mts +117 -3
  80. package/resources/replay-settings.d.mts.map +1 -1
  81. package/resources/replay-settings.d.ts +117 -3
  82. package/resources/replay-settings.d.ts.map +1 -1
  83. package/resources/session-replays.d.mts +5 -0
  84. package/resources/session-replays.d.mts.map +1 -1
  85. package/resources/session-replays.d.ts +5 -0
  86. package/resources/session-replays.d.ts.map +1 -1
  87. package/resources/short-links.d.mts +722 -10
  88. package/resources/short-links.d.mts.map +1 -1
  89. package/resources/short-links.d.ts +722 -10
  90. package/resources/short-links.d.ts.map +1 -1
  91. package/resources/sources.d.mts +86 -11
  92. package/resources/sources.d.mts.map +1 -1
  93. package/resources/sources.d.ts +86 -11
  94. package/resources/sources.d.ts.map +1 -1
  95. package/resources/tag-manager-tags.d.mts +3 -1
  96. package/resources/tag-manager-tags.d.mts.map +1 -1
  97. package/resources/tag-manager-tags.d.ts +3 -1
  98. package/resources/tag-manager-tags.d.ts.map +1 -1
  99. package/resources/tag-manager-triggers.d.mts +3 -1
  100. package/resources/tag-manager-triggers.d.mts.map +1 -1
  101. package/resources/tag-manager-triggers.d.ts +3 -1
  102. package/resources/tag-manager-triggers.d.ts.map +1 -1
  103. package/resources/tag-manager-variables.d.mts +39 -13
  104. package/resources/tag-manager-variables.d.mts.map +1 -1
  105. package/resources/tag-manager-variables.d.ts +39 -13
  106. package/resources/tag-manager-variables.d.ts.map +1 -1
  107. package/resources/tag-managers.d.mts +14 -1
  108. package/resources/tag-managers.d.mts.map +1 -1
  109. package/resources/tag-managers.d.ts +14 -1
  110. package/resources/tag-managers.d.ts.map +1 -1
  111. package/resources/tag-managers.js +8 -0
  112. package/resources/tag-managers.js.map +1 -1
  113. package/resources/tag-managers.mjs +8 -0
  114. package/resources/tag-managers.mjs.map +1 -1
  115. package/resources/test-events.d.mts +67 -11
  116. package/resources/test-events.d.mts.map +1 -1
  117. package/resources/test-events.d.ts +67 -11
  118. package/resources/test-events.d.ts.map +1 -1
  119. package/resources/versions.d.mts +85 -40
  120. package/resources/versions.d.mts.map +1 -1
  121. package/resources/versions.d.ts +85 -40
  122. package/resources/versions.d.ts.map +1 -1
  123. package/resources/versions.js +8 -8
  124. package/resources/versions.mjs +8 -8
  125. package/resources/video-channels.d.mts +32 -4
  126. package/resources/video-channels.d.mts.map +1 -1
  127. package/resources/video-channels.d.ts +32 -4
  128. package/resources/video-channels.d.ts.map +1 -1
  129. package/src/client.ts +36 -0
  130. package/src/resources/consent-settings.ts +7287 -374
  131. package/src/resources/custom-domains.ts +450 -0
  132. package/src/resources/data-governance.ts +45 -15
  133. package/src/resources/default-mappings.ts +303 -3
  134. package/src/resources/destinations.ts +35 -8
  135. package/src/resources/experiment-variants.ts +131 -14
  136. package/src/resources/experiments.ts +8021 -443
  137. package/src/resources/funnels.ts +1355 -7
  138. package/src/resources/index.ts +15 -0
  139. package/src/resources/journey-flows.ts +1224 -16
  140. package/src/resources/locations.ts +35 -5
  141. package/src/resources/mappings.ts +794 -19
  142. package/src/resources/me.ts +37 -0
  143. package/src/resources/replay-settings.ts +138 -3
  144. package/src/resources/session-replays.ts +6 -0
  145. package/src/resources/short-links.ts +872 -10
  146. package/src/resources/sources.ts +96 -11
  147. package/src/resources/tag-manager-tags.ts +7 -1
  148. package/src/resources/tag-manager-triggers.ts +7 -1
  149. package/src/resources/tag-manager-variables.ts +91 -13
  150. package/src/resources/tag-managers.ts +25 -0
  151. package/src/resources/test-events.ts +47 -11
  152. package/src/resources/versions.ts +86 -40
  153. package/src/resources/video-channels.ts +44 -4
  154. package/src/version.ts +1 -1
  155. package/version.d.mts +1 -1
  156. package/version.d.ts +1 -1
  157. package/version.js +1 -1
  158. package/version.mjs +1 -1
@@ -126,7 +126,7 @@ export interface SourceListResponse {
126
126
  | 'WhatConverts'
127
127
  | 'iOSNativeApi';
128
128
 
129
- botControlMode?: string | null;
129
+ botControlMode?: 'Allow' | 'Block' | 'Threshold' | null;
130
130
 
131
131
  botScoreThreshold?: number | null;
132
132
 
@@ -152,7 +152,7 @@ export interface SourceListResponse {
152
152
 
153
153
  name?: string | null;
154
154
 
155
- probabilisticIdentity?: unknown | null;
155
+ probabilisticIdentity?: SourceListResponse.ProbabilisticIdentity | null;
156
156
 
157
157
  projectAPIKey?: string | null;
158
158
 
@@ -160,6 +160,13 @@ export interface SourceListResponse {
160
160
 
161
161
  selectedAccountId?: string | null;
162
162
 
163
+ /**
164
+ * Type-specific source settings. settings.dataImport contains a draft file,
165
+ * warehouse or HTTP import definition, with transformation, schedule and
166
+ * credential references. Account publication activates imports.
167
+ */
168
+ settings?: { [key: string]: unknown } | null;
169
+
163
170
  /**
164
171
  * Limits which domains can send events to the CDP. When set, only requests from
165
172
  * these domains are accepted for this source. Separate from experiment settings
@@ -170,6 +177,16 @@ export interface SourceListResponse {
170
177
  whitelistIps?: Array<string> | null;
171
178
  }
172
179
 
180
+ export namespace SourceListResponse {
181
+ export interface ProbabilisticIdentity {
182
+ enabled: boolean;
183
+
184
+ matchWindowMinutes: number;
185
+
186
+ maxMatchesPerIp: number;
187
+ }
188
+ }
189
+
173
190
  export interface SourceCreateResponse {
174
191
  id: string;
175
192
 
@@ -223,7 +240,7 @@ export interface SourceCreateResponse {
223
240
  | 'WhatConverts'
224
241
  | 'iOSNativeApi';
225
242
 
226
- botControlMode?: string | null;
243
+ botControlMode?: 'Allow' | 'Block' | 'Threshold' | null;
227
244
 
228
245
  botScoreThreshold?: number | null;
229
246
 
@@ -249,7 +266,7 @@ export interface SourceCreateResponse {
249
266
 
250
267
  name?: string | null;
251
268
 
252
- probabilisticIdentity?: unknown | null;
269
+ probabilisticIdentity?: SourceCreateResponse.ProbabilisticIdentity | null;
253
270
 
254
271
  projectAPIKey?: string | null;
255
272
 
@@ -257,6 +274,13 @@ export interface SourceCreateResponse {
257
274
 
258
275
  selectedAccountId?: string | null;
259
276
 
277
+ /**
278
+ * Type-specific source settings. settings.dataImport contains a draft file,
279
+ * warehouse or HTTP import definition, with transformation, schedule and
280
+ * credential references. Account publication activates imports.
281
+ */
282
+ settings?: { [key: string]: unknown } | null;
283
+
260
284
  /**
261
285
  * Limits which domains can send events to the CDP. When set, only requests from
262
286
  * these domains are accepted for this source. Separate from experiment settings
@@ -267,6 +291,16 @@ export interface SourceCreateResponse {
267
291
  whitelistIps?: Array<string> | null;
268
292
  }
269
293
 
294
+ export namespace SourceCreateResponse {
295
+ export interface ProbabilisticIdentity {
296
+ enabled: boolean;
297
+
298
+ matchWindowMinutes: number;
299
+
300
+ maxMatchesPerIp: number;
301
+ }
302
+ }
303
+
270
304
  export interface SourceRetrieveResponse {
271
305
  id: string;
272
306
 
@@ -320,7 +354,7 @@ export interface SourceRetrieveResponse {
320
354
  | 'WhatConverts'
321
355
  | 'iOSNativeApi';
322
356
 
323
- botControlMode?: string | null;
357
+ botControlMode?: 'Allow' | 'Block' | 'Threshold' | null;
324
358
 
325
359
  botScoreThreshold?: number | null;
326
360
 
@@ -346,7 +380,7 @@ export interface SourceRetrieveResponse {
346
380
 
347
381
  name?: string | null;
348
382
 
349
- probabilisticIdentity?: unknown | null;
383
+ probabilisticIdentity?: SourceRetrieveResponse.ProbabilisticIdentity | null;
350
384
 
351
385
  projectAPIKey?: string | null;
352
386
 
@@ -354,6 +388,13 @@ export interface SourceRetrieveResponse {
354
388
 
355
389
  selectedAccountId?: string | null;
356
390
 
391
+ /**
392
+ * Type-specific source settings. settings.dataImport contains a draft file,
393
+ * warehouse or HTTP import definition, with transformation, schedule and
394
+ * credential references. Account publication activates imports.
395
+ */
396
+ settings?: { [key: string]: unknown } | null;
397
+
357
398
  /**
358
399
  * Limits which domains can send events to the CDP. When set, only requests from
359
400
  * these domains are accepted for this source. Separate from experiment settings
@@ -364,6 +405,16 @@ export interface SourceRetrieveResponse {
364
405
  whitelistIps?: Array<string> | null;
365
406
  }
366
407
 
408
+ export namespace SourceRetrieveResponse {
409
+ export interface ProbabilisticIdentity {
410
+ enabled: boolean;
411
+
412
+ matchWindowMinutes: number;
413
+
414
+ maxMatchesPerIp: number;
415
+ }
416
+ }
417
+
367
418
  export interface SourceUpdateResponse {
368
419
  id: string;
369
420
 
@@ -417,7 +468,7 @@ export interface SourceUpdateResponse {
417
468
  | 'WhatConverts'
418
469
  | 'iOSNativeApi';
419
470
 
420
- botControlMode?: string | null;
471
+ botControlMode?: 'Allow' | 'Block' | 'Threshold' | null;
421
472
 
422
473
  botScoreThreshold?: number | null;
423
474
 
@@ -443,7 +494,7 @@ export interface SourceUpdateResponse {
443
494
 
444
495
  name?: string | null;
445
496
 
446
- probabilisticIdentity?: unknown | null;
497
+ probabilisticIdentity?: SourceUpdateResponse.ProbabilisticIdentity | null;
447
498
 
448
499
  projectAPIKey?: string | null;
449
500
 
@@ -451,6 +502,13 @@ export interface SourceUpdateResponse {
451
502
 
452
503
  selectedAccountId?: string | null;
453
504
 
505
+ /**
506
+ * Type-specific source settings. settings.dataImport contains a draft file,
507
+ * warehouse or HTTP import definition, with transformation, schedule and
508
+ * credential references. Account publication activates imports.
509
+ */
510
+ settings?: { [key: string]: unknown } | null;
511
+
454
512
  /**
455
513
  * Limits which domains can send events to the CDP. When set, only requests from
456
514
  * these domains are accepted for this source. Separate from experiment settings
@@ -461,6 +519,16 @@ export interface SourceUpdateResponse {
461
519
  whitelistIps?: Array<string> | null;
462
520
  }
463
521
 
522
+ export namespace SourceUpdateResponse {
523
+ export interface ProbabilisticIdentity {
524
+ enabled: boolean;
525
+
526
+ matchWindowMinutes: number;
527
+
528
+ maxMatchesPerIp: number;
529
+ }
530
+ }
531
+
464
532
  export interface SourceDeleteResponse {
465
533
  deleted: true;
466
534
  }
@@ -639,7 +707,7 @@ export interface SourceCreateParams {
639
707
  }
640
708
 
641
709
  export interface SourceUpdateParams {
642
- botControlMode?: string | null;
710
+ botControlMode?: 'Allow' | 'Block' | 'Threshold' | null;
643
711
 
644
712
  botScoreThreshold?: number | null;
645
713
 
@@ -647,7 +715,7 @@ export interface SourceUpdateParams {
647
715
 
648
716
  name?: string | null;
649
717
 
650
- probabilisticIdentity?: unknown | null;
718
+ probabilisticIdentity?: SourceUpdateParams.ProbabilisticIdentity | null;
651
719
 
652
720
  projectAPIKey?: string | null;
653
721
 
@@ -655,13 +723,30 @@ export interface SourceUpdateParams {
655
723
 
656
724
  selectedAccountId?: string | null;
657
725
 
658
- status?: string | null;
726
+ /**
727
+ * Type-specific source settings. Omitted keys remain unchanged; null clears all
728
+ * settings. settings.dataImport configures an import on an HTTP API source; null
729
+ * clears just that definition. Publish the source to activate import changes.
730
+ */
731
+ settings?: { [key: string]: unknown } | null;
732
+
733
+ status?: 'Disabled' | 'Enabled' | null;
659
734
 
660
735
  whitelistDomains?: Array<string> | null;
661
736
 
662
737
  whitelistIps?: Array<string> | null;
663
738
  }
664
739
 
740
+ export namespace SourceUpdateParams {
741
+ export interface ProbabilisticIdentity {
742
+ enabled: boolean;
743
+
744
+ matchWindowMinutes?: number | null;
745
+
746
+ maxMatchesPerIp?: number | null;
747
+ }
748
+ }
749
+
665
750
  export declare namespace Sources {
666
751
  export {
667
752
  type SourceListResponse as SourceListResponse,
@@ -399,7 +399,13 @@ export namespace TagManagerTagTypesResponse {
399
399
  /**
400
400
  * Default value when the caller omits the parameter on create.
401
401
  */
402
- default?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
402
+ default?:
403
+ | string
404
+ | null
405
+ | number
406
+ | boolean
407
+ | Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
408
+ | { [key: string]: unknown };
403
409
 
404
410
  description?: string | null;
405
411
 
@@ -325,7 +325,13 @@ export namespace TagManagerTriggerTypesResponse {
325
325
  /**
326
326
  * Default value when the caller omits the parameter on create.
327
327
  */
328
- default?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
328
+ default?:
329
+ | string
330
+ | null
331
+ | number
332
+ | boolean
333
+ | Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
334
+ | { [key: string]: unknown };
329
335
 
330
336
  description?: string | null;
331
337
 
@@ -110,7 +110,13 @@ export interface TagManagerVariableListResponse {
110
110
  * Default value returned when no rule matches. JSON value — type depends on
111
111
  * `type`.
112
112
  */
113
- defaultValue?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
113
+ defaultValue?:
114
+ | string
115
+ | null
116
+ | number
117
+ | boolean
118
+ | Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
119
+ | { [key: string]: unknown };
114
120
 
115
121
  enabled?: boolean | null;
116
122
 
@@ -123,7 +129,13 @@ export interface TagManagerVariableListResponse {
123
129
  /**
124
130
  * Optional lookup table for `LookUpTable`-style variables. JSON value.
125
131
  */
126
- lookUpTable?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
132
+ lookUpTable?:
133
+ | string
134
+ | null
135
+ | number
136
+ | boolean
137
+ | Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
138
+ | { [key: string]: unknown };
127
139
 
128
140
  updatedAt?: string | null;
129
141
  }
@@ -155,7 +167,13 @@ export interface TagManagerVariableCreateResponse {
155
167
  * Default value returned when no rule matches. JSON value — type depends on
156
168
  * `type`.
157
169
  */
158
- defaultValue?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
170
+ defaultValue?:
171
+ | string
172
+ | null
173
+ | number
174
+ | boolean
175
+ | Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
176
+ | { [key: string]: unknown };
159
177
 
160
178
  enabled?: boolean | null;
161
179
 
@@ -168,7 +186,13 @@ export interface TagManagerVariableCreateResponse {
168
186
  /**
169
187
  * Optional lookup table for `LookUpTable`-style variables. JSON value.
170
188
  */
171
- lookUpTable?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
189
+ lookUpTable?:
190
+ | string
191
+ | null
192
+ | number
193
+ | boolean
194
+ | Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
195
+ | { [key: string]: unknown };
172
196
 
173
197
  updatedAt?: string | null;
174
198
  }
@@ -200,7 +224,13 @@ export interface TagManagerVariableRetrieveResponse {
200
224
  * Default value returned when no rule matches. JSON value — type depends on
201
225
  * `type`.
202
226
  */
203
- defaultValue?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
227
+ defaultValue?:
228
+ | string
229
+ | null
230
+ | number
231
+ | boolean
232
+ | Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
233
+ | { [key: string]: unknown };
204
234
 
205
235
  enabled?: boolean | null;
206
236
 
@@ -213,7 +243,13 @@ export interface TagManagerVariableRetrieveResponse {
213
243
  /**
214
244
  * Optional lookup table for `LookUpTable`-style variables. JSON value.
215
245
  */
216
- lookUpTable?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
246
+ lookUpTable?:
247
+ | string
248
+ | null
249
+ | number
250
+ | boolean
251
+ | Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
252
+ | { [key: string]: unknown };
217
253
 
218
254
  updatedAt?: string | null;
219
255
  }
@@ -245,7 +281,13 @@ export interface TagManagerVariableUpdateResponse {
245
281
  * Default value returned when no rule matches. JSON value — type depends on
246
282
  * `type`.
247
283
  */
248
- defaultValue?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
284
+ defaultValue?:
285
+ | string
286
+ | null
287
+ | number
288
+ | boolean
289
+ | Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
290
+ | { [key: string]: unknown };
249
291
 
250
292
  enabled?: boolean | null;
251
293
 
@@ -258,7 +300,13 @@ export interface TagManagerVariableUpdateResponse {
258
300
  /**
259
301
  * Optional lookup table for `LookUpTable`-style variables. JSON value.
260
302
  */
261
- lookUpTable?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
303
+ lookUpTable?:
304
+ | string
305
+ | null
306
+ | number
307
+ | boolean
308
+ | Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
309
+ | { [key: string]: unknown };
262
310
 
263
311
  updatedAt?: string | null;
264
312
  }
@@ -332,7 +380,13 @@ export namespace TagManagerVariableTypesResponse {
332
380
  /**
333
381
  * Default value when the caller omits the parameter on create.
334
382
  */
335
- default?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
383
+ default?:
384
+ | string
385
+ | null
386
+ | number
387
+ | boolean
388
+ | Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
389
+ | { [key: string]: unknown };
336
390
 
337
391
  description?: string | null;
338
392
 
@@ -395,21 +449,39 @@ export interface TagManagerVariableCreateParams {
395
449
  /**
396
450
  * Optional default value. JSON value of any type.
397
451
  */
398
- defaultValue?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
452
+ defaultValue?:
453
+ | string
454
+ | null
455
+ | number
456
+ | boolean
457
+ | Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
458
+ | { [key: string]: unknown };
399
459
 
400
460
  enabled?: boolean | null;
401
461
 
402
462
  /**
403
463
  * Optional lookup table for `LookUpTable` variables.
404
464
  */
405
- lookUpTable?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
465
+ lookUpTable?:
466
+ | string
467
+ | null
468
+ | number
469
+ | boolean
470
+ | Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
471
+ | { [key: string]: unknown };
406
472
  }
407
473
 
408
474
  export interface TagManagerVariableUpdateParams {
409
475
  /**
410
476
  * Updated default value. JSON value of any type.
411
477
  */
412
- defaultValue?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
478
+ defaultValue?:
479
+ | string
480
+ | null
481
+ | number
482
+ | boolean
483
+ | Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
484
+ | { [key: string]: unknown };
413
485
 
414
486
  /**
415
487
  * Pause/resume the variable without changing other fields.
@@ -419,7 +491,13 @@ export interface TagManagerVariableUpdateParams {
419
491
  /**
420
492
  * Updated lookup table payload.
421
493
  */
422
- lookUpTable?: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
494
+ lookUpTable?:
495
+ | string
496
+ | null
497
+ | number
498
+ | boolean
499
+ | Array<string | null | number | boolean | Array<unknown> | { [key: string]: unknown }>
500
+ | { [key: string]: unknown };
423
501
 
424
502
  /**
425
503
  * Updated variable name.
@@ -6,6 +6,19 @@ import { RequestOptions } from '../internal/request-options';
6
6
  import { path } from '../internal/utils/path';
7
7
 
8
8
  export class TagManagers extends APIResource {
9
+ /**
10
+ * Create a one-hour link to preview this container’s unpublished tags on your
11
+ * website. Requires permission to view the tag manager. Requires API-key scope or
12
+ * current OAuth user permission: tagManagers:find
13
+ */
14
+ preview(
15
+ id: string,
16
+ body: TagManagerPreviewParams,
17
+ options?: RequestOptions,
18
+ ): APIPromise<TagManagerPreviewResponse> {
19
+ return this._client.post(path`/rest/v1/tag-managers/${id}/preview`, { body, ...options });
20
+ }
21
+
9
22
  /**
10
23
  * List every tag manager on this account. Each tag manager is a pixel-scoped
11
24
  * container of tags, triggers, variables, and folders. Not paginated — accounts
@@ -64,6 +77,12 @@ export class TagManagers extends APIResource {
64
77
  }
65
78
  }
66
79
 
80
+ export interface TagManagerPreviewResponse {
81
+ expiresAt: string;
82
+
83
+ url: string;
84
+ }
85
+
67
86
  export interface TagManagerListResponse {
68
87
  entities: Array<TagManagerListResponse.Entity>;
69
88
  }
@@ -242,6 +261,10 @@ export interface TagManagerDeleteResponse {
242
261
  deleted: boolean;
243
262
  }
244
263
 
264
+ export interface TagManagerPreviewParams {
265
+ url: string;
266
+ }
267
+
245
268
  export interface TagManagerCreateParams {
246
269
  /**
247
270
  * Human-readable name for the new tag manager.
@@ -268,11 +291,13 @@ export interface TagManagerUpdateParams {
268
291
 
269
292
  export declare namespace TagManagers {
270
293
  export {
294
+ type TagManagerPreviewResponse as TagManagerPreviewResponse,
271
295
  type TagManagerListResponse as TagManagerListResponse,
272
296
  type TagManagerCreateResponse as TagManagerCreateResponse,
273
297
  type TagManagerRetrieveResponse as TagManagerRetrieveResponse,
274
298
  type TagManagerUpdateResponse as TagManagerUpdateResponse,
275
299
  type TagManagerDeleteResponse as TagManagerDeleteResponse,
300
+ type TagManagerPreviewParams as TagManagerPreviewParams,
276
301
  type TagManagerCreateParams as TagManagerCreateParams,
277
302
  type TagManagerUpdateParams as TagManagerUpdateParams,
278
303
  };
@@ -113,13 +113,19 @@ export interface TestEventListResponse {
113
113
 
114
114
  visitorId: string;
115
115
 
116
- defaultProperties?: unknown | null;
116
+ defaultProperties?: {
117
+ [key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
118
+ } | null;
117
119
 
118
- eventProperties?: unknown | null;
120
+ eventProperties?: {
121
+ [key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
122
+ } | null;
119
123
 
120
124
  rawData?: string | null;
121
125
 
122
- requestContext?: unknown | null;
126
+ requestContext?: {
127
+ [key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
128
+ } | null;
123
129
 
124
130
  sourceId?: string | null;
125
131
 
@@ -127,7 +133,9 @@ export interface TestEventListResponse {
127
133
 
128
134
  sourceType?: string | null;
129
135
 
130
- userProperties?: unknown | null;
136
+ userProperties?: {
137
+ [key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
138
+ } | null;
131
139
  }
132
140
 
133
141
  export interface TestEventCreateResponse {
@@ -167,13 +175,19 @@ export interface TestEventRetrieveResponse {
167
175
 
168
176
  visitorId: string;
169
177
 
170
- defaultProperties?: unknown | null;
178
+ defaultProperties?: {
179
+ [key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
180
+ } | null;
171
181
 
172
- eventProperties?: unknown | null;
182
+ eventProperties?: {
183
+ [key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
184
+ } | null;
173
185
 
174
186
  rawData?: string | null;
175
187
 
176
- requestContext?: unknown | null;
188
+ requestContext?: {
189
+ [key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
190
+ } | null;
177
191
 
178
192
  sourceId?: string | null;
179
193
 
@@ -181,7 +195,9 @@ export interface TestEventRetrieveResponse {
181
195
 
182
196
  sourceType?: string | null;
183
197
 
184
- userProperties?: unknown | null;
198
+ userProperties?: {
199
+ [key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
200
+ } | null;
185
201
  }
186
202
 
187
203
  export interface TestEventDispatchesResponse {
@@ -225,7 +241,9 @@ export namespace TestEventDispatchesResponse {
225
241
  /**
226
242
  * The mapped payload recorded for this dispatch.
227
243
  */
228
- payload?: unknown | null;
244
+ payload?: {
245
+ [key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
246
+ } | null;
229
247
 
230
248
  /**
231
249
  * Whether this send succeeded. Null while the attempt is still in flight.
@@ -257,7 +275,9 @@ export interface TestEventCreateParams {
257
275
  /**
258
276
  * Event-level properties available to destination mappings.
259
277
  */
260
- eventProperties?: unknown | null;
278
+ eventProperties?: {
279
+ [key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
280
+ } | null;
261
281
 
262
282
  /**
263
283
  * Source to attribute the event to. Defaults to the account's first enabled source
@@ -268,7 +288,9 @@ export interface TestEventCreateParams {
268
288
  /**
269
289
  * Person-level properties available to destination mappings.
270
290
  */
271
- userProperties?: unknown | null;
291
+ userProperties?: {
292
+ [key: string]: string | null | number | boolean | Array<unknown> | { [key: string]: unknown };
293
+ } | null;
272
294
 
273
295
  /**
274
296
  * Visitor identity to send the event as. Generated when omitted. Letters, numbers,
@@ -460,6 +482,20 @@ export namespace TestEventCreateParams {
460
482
  */
461
483
  gclid?: string | null;
462
484
 
485
+ /**
486
+ * The Gravity attribution ID, captured from the `graid` URL parameter on the
487
+ * landing page. Gravity resolves it to the campaign, publisher, and ad IDs
488
+ * server-side. Ex: graid-abc123
489
+ */
490
+ graid?: string | null;
491
+
492
+ /**
493
+ * The Gravity click ID, captured from the `grclid` URL parameter that Gravity
494
+ * (trygravity.com) appends to ad click-through URLs on the landing page. Ex:
495
+ * grclid-abc123
496
+ */
497
+ grclid?: string | null;
498
+
463
499
  /**
464
500
  * The host of the current page. Ex: example.com
465
501
  */