@oursprivacy/platform-sdk 1.50.0 → 1.52.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 (104) 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 +1 -1
  11. package/resources/analytics.d.mts +2 -2
  12. package/resources/analytics.d.ts +2 -2
  13. package/resources/analytics.js +2 -2
  14. package/resources/analytics.mjs +2 -2
  15. package/resources/destinations.d.mts +7 -7
  16. package/resources/destinations.d.mts.map +1 -1
  17. package/resources/destinations.d.ts +7 -7
  18. package/resources/destinations.d.ts.map +1 -1
  19. package/resources/experiments.d.mts +661 -35
  20. package/resources/experiments.d.mts.map +1 -1
  21. package/resources/experiments.d.ts +661 -35
  22. package/resources/experiments.d.ts.map +1 -1
  23. package/resources/experiments.js +27 -19
  24. package/resources/experiments.js.map +1 -1
  25. package/resources/experiments.mjs +27 -19
  26. package/resources/experiments.mjs.map +1 -1
  27. package/resources/index.d.mts +4 -2
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +4 -2
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/index.js +5 -1
  32. package/resources/index.js.map +1 -1
  33. package/resources/index.mjs +2 -0
  34. package/resources/index.mjs.map +1 -1
  35. package/resources/journey-flows.d.mts +4155 -0
  36. package/resources/journey-flows.d.mts.map +1 -0
  37. package/resources/journey-flows.d.ts +4155 -0
  38. package/resources/journey-flows.d.ts.map +1 -0
  39. package/resources/journey-flows.js +90 -0
  40. package/resources/journey-flows.js.map +1 -0
  41. package/resources/journey-flows.mjs +86 -0
  42. package/resources/journey-flows.mjs.map +1 -0
  43. package/resources/short-links.d.mts +40 -0
  44. package/resources/short-links.d.mts.map +1 -1
  45. package/resources/short-links.d.ts +40 -0
  46. package/resources/short-links.d.ts.map +1 -1
  47. package/resources/sources.d.mts +20 -0
  48. package/resources/sources.d.mts.map +1 -1
  49. package/resources/sources.d.ts +20 -0
  50. package/resources/sources.d.ts.map +1 -1
  51. package/resources/test-events.d.mts +540 -0
  52. package/resources/test-events.d.mts.map +1 -0
  53. package/resources/test-events.d.ts +540 -0
  54. package/resources/test-events.d.ts.map +1 -0
  55. package/resources/test-events.js +88 -0
  56. package/resources/test-events.js.map +1 -0
  57. package/resources/test-events.mjs +84 -0
  58. package/resources/test-events.mjs.map +1 -0
  59. package/resources/video-channels.d.mts +13 -0
  60. package/resources/video-channels.d.mts.map +1 -1
  61. package/resources/video-channels.d.ts +13 -0
  62. package/resources/video-channels.d.ts.map +1 -1
  63. package/resources/videos.d.mts +160 -2
  64. package/resources/videos.d.mts.map +1 -1
  65. package/resources/videos.d.ts +160 -2
  66. package/resources/videos.d.ts.map +1 -1
  67. package/resources/videos.js +32 -2
  68. package/resources/videos.js.map +1 -1
  69. package/resources/videos.mjs +32 -2
  70. package/resources/videos.mjs.map +1 -1
  71. package/resources/web-analytics.d.mts +9 -9
  72. package/resources/web-analytics.d.mts.map +1 -1
  73. package/resources/web-analytics.d.ts +9 -9
  74. package/resources/web-analytics.d.ts.map +1 -1
  75. package/resources/web-analytics.js +2 -2
  76. package/resources/web-analytics.js.map +1 -1
  77. package/resources/web-analytics.mjs +2 -2
  78. package/resources/web-analytics.mjs.map +1 -1
  79. package/resources/web-scanners.d.mts +28 -17
  80. package/resources/web-scanners.d.mts.map +1 -1
  81. package/resources/web-scanners.d.ts +28 -17
  82. package/resources/web-scanners.d.ts.map +1 -1
  83. package/resources/web-scanners.js +19 -14
  84. package/resources/web-scanners.js.map +1 -1
  85. package/resources/web-scanners.mjs +19 -14
  86. package/resources/web-scanners.mjs.map +1 -1
  87. package/src/client.ts +80 -4
  88. package/src/resources/analytics.ts +2 -2
  89. package/src/resources/destinations.ts +7 -0
  90. package/src/resources/experiments.ts +808 -35
  91. package/src/resources/index.ts +37 -2
  92. package/src/resources/journey-flows.ts +8244 -0
  93. package/src/resources/short-links.ts +47 -0
  94. package/src/resources/sources.ts +24 -0
  95. package/src/resources/test-events.ts +701 -0
  96. package/src/resources/video-channels.ts +22 -0
  97. package/src/resources/videos.ts +279 -2
  98. package/src/resources/web-analytics.ts +13 -13
  99. package/src/resources/web-scanners.ts +28 -17
  100. package/src/version.ts +1 -1
  101. package/version.d.mts +1 -1
  102. package/version.d.ts +1 -1
  103. package/version.js +1 -1
  104. package/version.mjs +1 -1
@@ -151,6 +151,13 @@ export interface ShortLinkListResponse {
151
151
 
152
152
  createdAt: string;
153
153
 
154
+ /**
155
+ * Whether saved published design campaign tags are added to the destination when
156
+ * enabled. Existing destination UTMs stay unchanged. Defaults to true for new
157
+ * short links and false for existing links without a stored setting.
158
+ */
159
+ forwardUtmToDestination: boolean;
160
+
154
161
  status: 'Disabled' | 'Enabled';
155
162
 
156
163
  /**
@@ -206,6 +213,13 @@ export interface ShortLinkCreateResponse {
206
213
 
207
214
  createdAt: string;
208
215
 
216
+ /**
217
+ * Whether saved published design campaign tags are added to the destination when
218
+ * enabled. Existing destination UTMs stay unchanged. Defaults to true for new
219
+ * short links and false for existing links without a stored setting.
220
+ */
221
+ forwardUtmToDestination: boolean;
222
+
209
223
  status: 'Disabled' | 'Enabled';
210
224
 
211
225
  /**
@@ -261,6 +275,13 @@ export interface ShortLinkRetrieveResponse {
261
275
 
262
276
  createdAt: string;
263
277
 
278
+ /**
279
+ * Whether saved published design campaign tags are added to the destination when
280
+ * enabled. Existing destination UTMs stay unchanged. Defaults to true for new
281
+ * short links and false for existing links without a stored setting.
282
+ */
283
+ forwardUtmToDestination: boolean;
284
+
264
285
  status: 'Disabled' | 'Enabled';
265
286
 
266
287
  /**
@@ -316,6 +337,13 @@ export interface ShortLinkUpdateResponse {
316
337
 
317
338
  createdAt: string;
318
339
 
340
+ /**
341
+ * Whether saved published design campaign tags are added to the destination when
342
+ * enabled. Existing destination UTMs stay unchanged. Defaults to true for new
343
+ * short links and false for existing links without a stored setting.
344
+ */
345
+ forwardUtmToDestination: boolean;
346
+
319
347
  status: 'Disabled' | 'Enabled';
320
348
 
321
349
  /**
@@ -375,6 +403,13 @@ export interface ShortLinkCloneResponse {
375
403
 
376
404
  createdAt: string;
377
405
 
406
+ /**
407
+ * Whether saved published design campaign tags are added to the destination when
408
+ * enabled. Existing destination UTMs stay unchanged. Defaults to true for new
409
+ * short links and false for existing links without a stored setting.
410
+ */
411
+ forwardUtmToDestination: boolean;
412
+
378
413
  status: 'Disabled' | 'Enabled';
379
414
 
380
415
  /**
@@ -491,6 +526,12 @@ export interface ShortLinkCreateParams {
491
526
  */
492
527
  code?: string | null;
493
528
 
529
+ /**
530
+ * When enabled, add saved published design campaign tags to the destination after
531
+ * publishing. Defaults to true when omitted; null is rejected.
532
+ */
533
+ forwardUtmToDestination?: boolean;
534
+
494
535
  /**
495
536
  * Human-readable name. Also sent as the tracked event name on every click/scan.
496
537
  */
@@ -515,6 +556,12 @@ export interface ShortLinkCreateParams {
515
556
  export interface ShortLinkUpdateParams {
516
557
  code?: string | null;
517
558
 
559
+ /**
560
+ * When enabled, add saved published design campaign tags to the destination after
561
+ * publishing. Omit to leave unchanged; null is rejected.
562
+ */
563
+ forwardUtmToDestination?: boolean;
564
+
518
565
  name?: string | null;
519
566
 
520
567
  qr?: unknown | null;
@@ -77,6 +77,12 @@ export interface SourceListResponse {
77
77
 
78
78
  createdAt: string;
79
79
 
80
+ /**
81
+ * Whether published short-link campaign tags are forwarded to missing destination
82
+ * UTM keys. Existing sources default to false.
83
+ */
84
+ forwardUtmToDestination: boolean;
85
+
80
86
  status: 'Disabled' | 'Enabled';
81
87
 
82
88
  type:
@@ -168,6 +174,12 @@ export interface SourceCreateResponse {
168
174
 
169
175
  createdAt: string;
170
176
 
177
+ /**
178
+ * Whether published short-link campaign tags are forwarded to missing destination
179
+ * UTM keys. Existing sources default to false.
180
+ */
181
+ forwardUtmToDestination: boolean;
182
+
171
183
  status: 'Disabled' | 'Enabled';
172
184
 
173
185
  type:
@@ -259,6 +271,12 @@ export interface SourceRetrieveResponse {
259
271
 
260
272
  createdAt: string;
261
273
 
274
+ /**
275
+ * Whether published short-link campaign tags are forwarded to missing destination
276
+ * UTM keys. Existing sources default to false.
277
+ */
278
+ forwardUtmToDestination: boolean;
279
+
262
280
  status: 'Disabled' | 'Enabled';
263
281
 
264
282
  type:
@@ -350,6 +368,12 @@ export interface SourceUpdateResponse {
350
368
 
351
369
  createdAt: string;
352
370
 
371
+ /**
372
+ * Whether published short-link campaign tags are forwarded to missing destination
373
+ * UTM keys. Existing sources default to false.
374
+ */
375
+ forwardUtmToDestination: boolean;
376
+
353
377
  status: 'Disabled' | 'Enabled';
354
378
 
355
379
  type: