@oursprivacy/platform-sdk 1.6.0 → 1.8.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 (47) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/internal/utils/env.js +2 -2
  3. package/internal/utils/env.js.map +1 -1
  4. package/internal/utils/env.mjs +2 -2
  5. package/internal/utils/env.mjs.map +1 -1
  6. package/package.json +1 -1
  7. package/resources/allowed-events.d.mts +1 -1
  8. package/resources/allowed-events.d.mts.map +1 -1
  9. package/resources/allowed-events.d.ts +1 -1
  10. package/resources/allowed-events.d.ts.map +1 -1
  11. package/resources/consent-settings.d.mts +21 -244
  12. package/resources/consent-settings.d.mts.map +1 -1
  13. package/resources/consent-settings.d.ts +21 -244
  14. package/resources/consent-settings.d.ts.map +1 -1
  15. package/resources/destinations.d.mts +2 -4
  16. package/resources/destinations.d.mts.map +1 -1
  17. package/resources/destinations.d.ts +2 -4
  18. package/resources/destinations.d.ts.map +1 -1
  19. package/resources/global-dispatch-centers.d.mts +3 -163
  20. package/resources/global-dispatch-centers.d.mts.map +1 -1
  21. package/resources/global-dispatch-centers.d.ts +3 -163
  22. package/resources/global-dispatch-centers.d.ts.map +1 -1
  23. package/resources/replay-settings.d.mts +9 -42
  24. package/resources/replay-settings.d.mts.map +1 -1
  25. package/resources/replay-settings.d.ts +9 -42
  26. package/resources/replay-settings.d.ts.map +1 -1
  27. package/resources/sources.d.mts +4 -11
  28. package/resources/sources.d.mts.map +1 -1
  29. package/resources/sources.d.ts +4 -11
  30. package/resources/sources.d.ts.map +1 -1
  31. package/resources/versions.d.mts +11 -11
  32. package/resources/versions.d.mts.map +1 -1
  33. package/resources/versions.d.ts +11 -11
  34. package/resources/versions.d.ts.map +1 -1
  35. package/src/internal/utils/env.ts +2 -2
  36. package/src/resources/allowed-events.ts +1 -1
  37. package/src/resources/consent-settings.ts +23 -433
  38. package/src/resources/destinations.ts +2 -2
  39. package/src/resources/global-dispatch-centers.ts +3 -640
  40. package/src/resources/replay-settings.ts +9 -61
  41. package/src/resources/sources.ts +4 -14
  42. package/src/resources/versions.ts +11 -11
  43. package/src/version.ts +1 -1
  44. package/version.d.mts +1 -1
  45. package/version.d.ts +1 -1
  46. package/version.js +1 -1
  47. package/version.mjs +1 -1
@@ -16,7 +16,7 @@ export class ConsentSettings extends APIResource {
16
16
  /**
17
17
  * Find a single consent setting by ID. Requires scope: consentSettings:find
18
18
  */
19
- retrieve(id: string, options?: RequestOptions): APIPromise<ConsentSettingRetrieveResponse | null> {
19
+ retrieve(id: string, options?: RequestOptions): APIPromise<unknown> {
20
20
  return this._client.get(path`/rest/v1/consent-settings/${id}`, options);
21
21
  }
22
22
 
@@ -51,61 +51,17 @@ export interface ConsentSettingCreateResponse {
51
51
 
52
52
  cause?: string | null;
53
53
 
54
- consentSettings?: ConsentSettingCreateResponse.ConsentSettings | null;
54
+ consentSettings?: unknown | null;
55
55
  }
56
56
 
57
- export namespace ConsentSettingCreateResponse {
58
- export interface ConsentSettings {
59
- id: string;
60
-
61
- createdAt: string;
62
-
63
- kind: string;
64
-
65
- name: string;
66
-
67
- status: 'Disabled' | 'Enabled';
68
-
69
- updatedAt?: string | null;
70
- }
71
- }
72
-
73
- export interface ConsentSettingRetrieveResponse {
74
- id: string;
75
-
76
- createdAt: string;
77
-
78
- kind: string;
79
-
80
- name: string;
81
-
82
- status: 'Disabled' | 'Enabled';
83
-
84
- updatedAt?: string | null;
85
- }
57
+ export type ConsentSettingRetrieveResponse = unknown;
86
58
 
87
59
  export interface ConsentSettingUpdateResponse {
88
60
  isSuccess: boolean;
89
61
 
90
62
  cause?: string | null;
91
63
 
92
- consentSettings?: ConsentSettingUpdateResponse.ConsentSettings | null;
93
- }
94
-
95
- export namespace ConsentSettingUpdateResponse {
96
- export interface ConsentSettings {
97
- id: string;
98
-
99
- createdAt: string;
100
-
101
- kind: string;
102
-
103
- name: string;
104
-
105
- status: 'Disabled' | 'Enabled';
106
-
107
- updatedAt?: string | null;
108
- }
64
+ consentSettings?: unknown | null;
109
65
  }
110
66
 
111
67
  export interface ConsentSettingListResponse {
@@ -161,11 +117,11 @@ export interface ConsentSettingUpdateParams {
161
117
 
162
118
  revision?: number | null;
163
119
 
164
- skipBlockingClassNames?: Array<string> | null;
120
+ skipBlockingClassNames?: Array<unknown> | null;
165
121
 
166
122
  webSDKToken?: string | null;
167
123
 
168
- whitelistDomains?: Array<string> | null;
124
+ whitelistDomains?: Array<unknown> | null;
169
125
  }
170
126
 
171
127
  export namespace ConsentSettingUpdateParams {
@@ -186,15 +142,17 @@ export namespace ConsentSettingUpdateParams {
186
142
 
187
143
  translations: Array<Default.Translation>;
188
144
 
145
+ autoblockUnknown?: boolean | null;
146
+
189
147
  autoShow?: boolean | null;
190
148
 
191
- autoShowDismissConfig?: Default.AutoShowDismissConfig | null;
149
+ autoShowDismissConfig?: unknown | null;
192
150
 
193
- autoShowDismissMode?: 'after_pages' | 'after_seconds' | 'never' | null;
151
+ autoShowDismissMode?: string | null;
194
152
 
195
153
  disablePageInteraction?: boolean | null;
196
154
 
197
- guiOptions?: Default.GuiOptions | null;
155
+ guiOptions?: unknown | null;
198
156
 
199
157
  hideFromBots?: boolean | null;
200
158
 
@@ -228,194 +186,9 @@ export namespace ConsentSettingUpdateParams {
228
186
 
229
187
  export namespace Translation {
230
188
  export interface Value {
231
- consentModal?: Value.ConsentModal | null;
232
-
233
- preferencesModal?: Value.PreferencesModal | null;
234
- }
235
-
236
- export namespace Value {
237
- export interface ConsentModal {
238
- acceptAllBtn: string;
239
-
240
- description: string;
241
-
242
- rejectAllBtn: string;
189
+ consentModal?: unknown | null;
243
190
 
244
- showPreferencesBtn: string;
245
-
246
- title: string;
247
-
248
- closeIconLabel?: string | null;
249
-
250
- footer?: string | null;
251
-
252
- gpcNotification?: string | null;
253
-
254
- privacyPolicyLabel?: string | null;
255
-
256
- privacyPolicyUrl?: string | null;
257
-
258
- revisionMessage?: string | null;
259
-
260
- termsOfServiceLabel?: string | null;
261
-
262
- termsOfServiceUrl?: string | null;
263
- }
264
-
265
- export interface PreferencesModal {
266
- acceptAllBtn: string;
267
-
268
- closeIconLabel: string;
269
-
270
- rejectAllBtn: string;
271
-
272
- savePreferencesBtn: string;
273
-
274
- sections: Array<PreferencesModal.Section>;
275
-
276
- title: string;
277
-
278
- serviceCounterLabel?: string | null;
279
- }
280
-
281
- export namespace PreferencesModal {
282
- export interface Section {
283
- description: string;
284
-
285
- title: string;
286
-
287
- cookieTable?: Section.CookieTable | null;
288
-
289
- linkedCategory?: string | null;
290
- }
291
-
292
- export namespace Section {
293
- export interface CookieTable {
294
- body: Array<CookieTable.Body>;
295
-
296
- headers: Array<CookieTable.Header>;
297
-
298
- caption?: string | null;
299
- }
300
-
301
- export namespace CookieTable {
302
- export interface Body {
303
- key: string;
304
-
305
- value: string;
306
- }
307
-
308
- export interface Header {
309
- key: string;
310
-
311
- value: string;
312
- }
313
- }
314
- }
315
- }
316
- }
317
- }
318
-
319
- export interface AutoShowDismissConfig {
320
- pageCount?: number | null;
321
-
322
- seconds?: number | null;
323
- }
324
-
325
- export interface GuiOptions {
326
- consentModal?: GuiOptions.ConsentModal | null;
327
-
328
- cssVariables?: GuiOptions.CssVariables | null;
329
-
330
- preferencesModal?: GuiOptions.PreferencesModal | null;
331
- }
332
-
333
- export namespace GuiOptions {
334
- export interface ConsentModal {
335
- buttonLayout?:
336
- | 'AcceptAllNecessaryPreferences'
337
- | 'AcceptAllPreferences'
338
- | 'AcceptOnly'
339
- | 'InformationOnly'
340
- | 'PreferencesOnly'
341
- | null;
342
-
343
- equalWeightButtons?: boolean | null;
344
-
345
- flipButtons?: boolean | null;
346
-
347
- layout?: 'bar' | 'bar_inline' | 'box' | 'box_inline' | 'box_wide' | 'cloud' | 'cloud_inline' | null;
348
-
349
- position?:
350
- | 'bottom'
351
- | 'bottom_center'
352
- | 'bottom_left'
353
- | 'bottom_right'
354
- | 'middle'
355
- | 'middle_center'
356
- | 'middle_left'
357
- | 'middle_right'
358
- | 'top'
359
- | 'top_center'
360
- | 'top_left'
361
- | 'top_right'
362
- | null;
363
-
364
- showCloseIcon?: boolean | null;
365
- }
366
-
367
- export interface CssVariables {
368
- buttonBorderRadius?: string | null;
369
-
370
- cookieCategoryBlockBg?: string | null;
371
-
372
- cookieCategoryBlockHoverBg?: string | null;
373
-
374
- footerBg?: string | null;
375
-
376
- footerColor?: string | null;
377
-
378
- footerLinkColor?: string | null;
379
-
380
- footerLinkHoverColor?: string | null;
381
-
382
- modalBg?: string | null;
383
-
384
- modalBorderRadius?: string | null;
385
-
386
- primaryButtonBg?: string | null;
387
-
388
- primaryButtonColor?: string | null;
389
-
390
- primaryButtonHoverBg?: string | null;
391
-
392
- primaryButtonHoverColor?: string | null;
393
-
394
- primaryTextColor?: string | null;
395
-
396
- secondaryButtonBg?: string | null;
397
-
398
- secondaryButtonColor?: string | null;
399
-
400
- secondaryButtonHoverBg?: string | null;
401
-
402
- secondaryButtonHoverColor?: string | null;
403
-
404
- secondaryTextColor?: string | null;
405
-
406
- toggleOnBg?: string | null;
407
- }
408
-
409
- export interface PreferencesModal {
410
- buttonLayout?: 'AcceptAllRejectAllSave' | 'AcceptAllSave' | null;
411
-
412
- equalWeightButtons?: boolean | null;
413
-
414
- flipButtons?: boolean | null;
415
-
416
- layout?: 'bar' | 'bar_wide' | 'box' | null;
417
-
418
- position?: 'left' | 'right' | null;
191
+ preferencesModal?: unknown | null;
419
192
  }
420
193
  }
421
194
  }
@@ -425,7 +198,7 @@ export namespace ConsentSettingUpdateParams {
425
198
 
426
199
  rule: Region.Rule;
427
200
 
428
- additionalRegions?: Array<string> | null;
201
+ additionalRegions?: Array<unknown> | null;
429
202
  }
430
203
 
431
204
  export namespace Region {
@@ -438,15 +211,17 @@ export namespace ConsentSettingUpdateParams {
438
211
 
439
212
  translations: Array<Rule.Translation>;
440
213
 
214
+ autoblockUnknown?: boolean | null;
215
+
441
216
  autoShow?: boolean | null;
442
217
 
443
- autoShowDismissConfig?: Rule.AutoShowDismissConfig | null;
218
+ autoShowDismissConfig?: unknown | null;
444
219
 
445
- autoShowDismissMode?: 'after_pages' | 'after_seconds' | 'never' | null;
220
+ autoShowDismissMode?: string | null;
446
221
 
447
222
  disablePageInteraction?: boolean | null;
448
223
 
449
- guiOptions?: Rule.GuiOptions | null;
224
+ guiOptions?: unknown | null;
450
225
 
451
226
  hideFromBots?: boolean | null;
452
227
 
@@ -480,194 +255,9 @@ export namespace ConsentSettingUpdateParams {
480
255
 
481
256
  export namespace Translation {
482
257
  export interface Value {
483
- consentModal?: Value.ConsentModal | null;
484
-
485
- preferencesModal?: Value.PreferencesModal | null;
486
- }
487
-
488
- export namespace Value {
489
- export interface ConsentModal {
490
- acceptAllBtn: string;
491
-
492
- description: string;
493
-
494
- rejectAllBtn: string;
495
-
496
- showPreferencesBtn: string;
497
-
498
- title: string;
499
-
500
- closeIconLabel?: string | null;
501
-
502
- footer?: string | null;
503
-
504
- gpcNotification?: string | null;
505
-
506
- privacyPolicyLabel?: string | null;
507
-
508
- privacyPolicyUrl?: string | null;
509
-
510
- revisionMessage?: string | null;
511
-
512
- termsOfServiceLabel?: string | null;
513
-
514
- termsOfServiceUrl?: string | null;
515
- }
516
-
517
- export interface PreferencesModal {
518
- acceptAllBtn: string;
519
-
520
- closeIconLabel: string;
521
-
522
- rejectAllBtn: string;
523
-
524
- savePreferencesBtn: string;
525
-
526
- sections: Array<PreferencesModal.Section>;
527
-
528
- title: string;
529
-
530
- serviceCounterLabel?: string | null;
531
- }
532
-
533
- export namespace PreferencesModal {
534
- export interface Section {
535
- description: string;
536
-
537
- title: string;
538
-
539
- cookieTable?: Section.CookieTable | null;
540
-
541
- linkedCategory?: string | null;
542
- }
543
-
544
- export namespace Section {
545
- export interface CookieTable {
546
- body: Array<CookieTable.Body>;
547
-
548
- headers: Array<CookieTable.Header>;
549
-
550
- caption?: string | null;
551
- }
552
-
553
- export namespace CookieTable {
554
- export interface Body {
555
- key: string;
556
-
557
- value: string;
558
- }
559
-
560
- export interface Header {
561
- key: string;
562
-
563
- value: string;
564
- }
565
- }
566
- }
567
- }
568
- }
569
- }
570
-
571
- export interface AutoShowDismissConfig {
572
- pageCount?: number | null;
573
-
574
- seconds?: number | null;
575
- }
576
-
577
- export interface GuiOptions {
578
- consentModal?: GuiOptions.ConsentModal | null;
579
-
580
- cssVariables?: GuiOptions.CssVariables | null;
581
-
582
- preferencesModal?: GuiOptions.PreferencesModal | null;
583
- }
584
-
585
- export namespace GuiOptions {
586
- export interface ConsentModal {
587
- buttonLayout?:
588
- | 'AcceptAllNecessaryPreferences'
589
- | 'AcceptAllPreferences'
590
- | 'AcceptOnly'
591
- | 'InformationOnly'
592
- | 'PreferencesOnly'
593
- | null;
594
-
595
- equalWeightButtons?: boolean | null;
596
-
597
- flipButtons?: boolean | null;
598
-
599
- layout?: 'bar' | 'bar_inline' | 'box' | 'box_inline' | 'box_wide' | 'cloud' | 'cloud_inline' | null;
600
-
601
- position?:
602
- | 'bottom'
603
- | 'bottom_center'
604
- | 'bottom_left'
605
- | 'bottom_right'
606
- | 'middle'
607
- | 'middle_center'
608
- | 'middle_left'
609
- | 'middle_right'
610
- | 'top'
611
- | 'top_center'
612
- | 'top_left'
613
- | 'top_right'
614
- | null;
615
-
616
- showCloseIcon?: boolean | null;
617
- }
618
-
619
- export interface CssVariables {
620
- buttonBorderRadius?: string | null;
621
-
622
- cookieCategoryBlockBg?: string | null;
623
-
624
- cookieCategoryBlockHoverBg?: string | null;
625
-
626
- footerBg?: string | null;
627
-
628
- footerColor?: string | null;
629
-
630
- footerLinkColor?: string | null;
631
-
632
- footerLinkHoverColor?: string | null;
633
-
634
- modalBg?: string | null;
635
-
636
- modalBorderRadius?: string | null;
637
-
638
- primaryButtonBg?: string | null;
639
-
640
- primaryButtonColor?: string | null;
641
-
642
- primaryButtonHoverBg?: string | null;
643
-
644
- primaryButtonHoverColor?: string | null;
645
-
646
- primaryTextColor?: string | null;
647
-
648
- secondaryButtonBg?: string | null;
649
-
650
- secondaryButtonColor?: string | null;
651
-
652
- secondaryButtonHoverBg?: string | null;
653
-
654
- secondaryButtonHoverColor?: string | null;
655
-
656
- secondaryTextColor?: string | null;
657
-
658
- toggleOnBg?: string | null;
659
- }
660
-
661
- export interface PreferencesModal {
662
- buttonLayout?: 'AcceptAllRejectAllSave' | 'AcceptAllSave' | null;
663
-
664
- equalWeightButtons?: boolean | null;
665
-
666
- flipButtons?: boolean | null;
667
-
668
- layout?: 'bar' | 'bar_wide' | 'box' | null;
258
+ consentModal?: unknown | null;
669
259
 
670
- position?: 'left' | 'right' | null;
260
+ preferencesModal?: unknown | null;
671
261
  }
672
262
  }
673
263
  }
@@ -678,11 +268,11 @@ export namespace ConsentSettingUpdateParams {
678
268
 
679
269
  label: string;
680
270
 
681
- additionalCategories?: Array<string> | null;
271
+ additionalCategories?: Array<unknown> | null;
682
272
 
683
273
  category?: string | null;
684
274
 
685
- domainPatterns?: Array<string> | null;
275
+ domainPatterns?: Array<unknown> | null;
686
276
  }
687
277
  }
688
278
 
@@ -468,7 +468,7 @@ export interface DestinationUpdateParams {
468
468
 
469
469
  httpDestinationUrl?: string | null;
470
470
 
471
- limitedToSourceIds?: Array<string> | null;
471
+ limitedToSourceIds?: Array<unknown> | null;
472
472
 
473
473
  managerGoogleCustomerId?: string | null;
474
474
 
@@ -480,7 +480,7 @@ export interface DestinationUpdateParams {
480
480
 
481
481
  selectedAccountId?: string | null;
482
482
 
483
- settings?: { [key: string]: string | number | boolean | null } | null;
483
+ settings?: unknown | null;
484
484
  }
485
485
 
486
486
  export declare namespace Destinations {