@oursprivacy/platform-sdk 1.6.0 → 1.7.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 (42) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/package.json +1 -1
  3. package/resources/allowed-events.d.mts +1 -1
  4. package/resources/allowed-events.d.mts.map +1 -1
  5. package/resources/allowed-events.d.ts +1 -1
  6. package/resources/allowed-events.d.ts.map +1 -1
  7. package/resources/consent-settings.d.mts +19 -244
  8. package/resources/consent-settings.d.mts.map +1 -1
  9. package/resources/consent-settings.d.ts +19 -244
  10. package/resources/consent-settings.d.ts.map +1 -1
  11. package/resources/destinations.d.mts +2 -4
  12. package/resources/destinations.d.mts.map +1 -1
  13. package/resources/destinations.d.ts +2 -4
  14. package/resources/destinations.d.ts.map +1 -1
  15. package/resources/global-dispatch-centers.d.mts +3 -163
  16. package/resources/global-dispatch-centers.d.mts.map +1 -1
  17. package/resources/global-dispatch-centers.d.ts +3 -163
  18. package/resources/global-dispatch-centers.d.ts.map +1 -1
  19. package/resources/replay-settings.d.mts +9 -42
  20. package/resources/replay-settings.d.mts.map +1 -1
  21. package/resources/replay-settings.d.ts +9 -42
  22. package/resources/replay-settings.d.ts.map +1 -1
  23. package/resources/sources.d.mts +4 -11
  24. package/resources/sources.d.mts.map +1 -1
  25. package/resources/sources.d.ts +4 -11
  26. package/resources/sources.d.ts.map +1 -1
  27. package/resources/versions.d.mts +11 -11
  28. package/resources/versions.d.mts.map +1 -1
  29. package/resources/versions.d.ts +11 -11
  30. package/resources/versions.d.ts.map +1 -1
  31. package/src/resources/allowed-events.ts +1 -1
  32. package/src/resources/consent-settings.ts +19 -433
  33. package/src/resources/destinations.ts +2 -2
  34. package/src/resources/global-dispatch-centers.ts +3 -640
  35. package/src/resources/replay-settings.ts +9 -61
  36. package/src/resources/sources.ts +4 -14
  37. package/src/resources/versions.ts +11 -11
  38. package/src/version.ts +1 -1
  39. package/version.d.mts +1 -1
  40. package/version.d.ts +1 -1
  41. package/version.js +1 -1
  42. 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 {
@@ -188,13 +144,13 @@ export namespace ConsentSettingUpdateParams {
188
144
 
189
145
  autoShow?: boolean | null;
190
146
 
191
- autoShowDismissConfig?: Default.AutoShowDismissConfig | null;
147
+ autoShowDismissConfig?: unknown | null;
192
148
 
193
- autoShowDismissMode?: 'after_pages' | 'after_seconds' | 'never' | null;
149
+ autoShowDismissMode?: string | null;
194
150
 
195
151
  disablePageInteraction?: boolean | null;
196
152
 
197
- guiOptions?: Default.GuiOptions | null;
153
+ guiOptions?: unknown | null;
198
154
 
199
155
  hideFromBots?: boolean | null;
200
156
 
@@ -228,194 +184,9 @@ export namespace ConsentSettingUpdateParams {
228
184
 
229
185
  export namespace Translation {
230
186
  export interface Value {
231
- consentModal?: Value.ConsentModal | null;
187
+ consentModal?: unknown | null;
232
188
 
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;
243
-
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;
189
+ preferencesModal?: unknown | null;
419
190
  }
420
191
  }
421
192
  }
@@ -425,7 +196,7 @@ export namespace ConsentSettingUpdateParams {
425
196
 
426
197
  rule: Region.Rule;
427
198
 
428
- additionalRegions?: Array<string> | null;
199
+ additionalRegions?: Array<unknown> | null;
429
200
  }
430
201
 
431
202
  export namespace Region {
@@ -440,13 +211,13 @@ export namespace ConsentSettingUpdateParams {
440
211
 
441
212
  autoShow?: boolean | null;
442
213
 
443
- autoShowDismissConfig?: Rule.AutoShowDismissConfig | null;
214
+ autoShowDismissConfig?: unknown | null;
444
215
 
445
- autoShowDismissMode?: 'after_pages' | 'after_seconds' | 'never' | null;
216
+ autoShowDismissMode?: string | null;
446
217
 
447
218
  disablePageInteraction?: boolean | null;
448
219
 
449
- guiOptions?: Rule.GuiOptions | null;
220
+ guiOptions?: unknown | null;
450
221
 
451
222
  hideFromBots?: boolean | null;
452
223
 
@@ -480,194 +251,9 @@ export namespace ConsentSettingUpdateParams {
480
251
 
481
252
  export namespace Translation {
482
253
  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;
254
+ consentModal?: unknown | null;
669
255
 
670
- position?: 'left' | 'right' | null;
256
+ preferencesModal?: unknown | null;
671
257
  }
672
258
  }
673
259
  }
@@ -678,11 +264,11 @@ export namespace ConsentSettingUpdateParams {
678
264
 
679
265
  label: string;
680
266
 
681
- additionalCategories?: Array<string> | null;
267
+ additionalCategories?: Array<unknown> | null;
682
268
 
683
269
  category?: string | null;
684
270
 
685
- domainPatterns?: Array<string> | null;
271
+ domainPatterns?: Array<unknown> | null;
686
272
  }
687
273
  }
688
274
 
@@ -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 {