@oursprivacy/platform-sdk 1.3.0 → 1.4.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.
@@ -143,21 +143,21 @@ export interface ConsentSettingDeleteResponse {
143
143
  }
144
144
 
145
145
  export interface ConsentSettingUpdateParams {
146
- categories: Array<unknown>;
146
+ categories: Array<ConsentSettingUpdateParams.Category>;
147
+
148
+ default: ConsentSettingUpdateParams.Default;
147
149
 
148
150
  name: string;
149
151
 
150
- regions: Array<unknown>;
152
+ regions: Array<ConsentSettingUpdateParams.Region>;
151
153
 
152
- services: Array<unknown>;
154
+ services: Array<ConsentSettingUpdateParams.Service>;
153
155
 
154
156
  status: 'Disabled' | 'Enabled';
155
157
 
156
158
  consentCookieName?: string | null;
157
159
 
158
- customDomain?: unknown;
159
-
160
- default?: unknown;
160
+ customDomain?: string | null;
161
161
 
162
162
  revision?: number | null;
163
163
 
@@ -165,7 +165,517 @@ export interface ConsentSettingUpdateParams {
165
165
 
166
166
  webSDKToken?: string | null;
167
167
 
168
- whitelistDomains?: Array<unknown> | null;
168
+ whitelistDomains?: Array<string> | null;
169
+ }
170
+
171
+ export namespace ConsentSettingUpdateParams {
172
+ export interface Category {
173
+ label: string;
174
+
175
+ priority: number;
176
+
177
+ value: string;
178
+ }
179
+
180
+ export interface Default {
181
+ categories: Array<Default.Category>;
182
+
183
+ language: string;
184
+
185
+ mode: 'opt_in' | 'opt_out';
186
+
187
+ translations: Array<Default.Translation>;
188
+
189
+ autoShow?: boolean | null;
190
+
191
+ autoShowDismissConfig?: Default.AutoShowDismissConfig | null;
192
+
193
+ autoShowDismissMode?: 'after_pages' | 'after_seconds' | 'never' | null;
194
+
195
+ disablePageInteraction?: boolean | null;
196
+
197
+ guiOptions?: Default.GuiOptions | null;
198
+
199
+ hideFromBots?: boolean | null;
200
+
201
+ showVendorsInPreferences?: boolean | null;
202
+ }
203
+
204
+ export namespace Default {
205
+ export interface Category {
206
+ key: string;
207
+
208
+ value: Category.Value;
209
+ }
210
+
211
+ export namespace Category {
212
+ export interface Value {
213
+ enabled: boolean;
214
+
215
+ autoDisableOnGPC?: boolean | null;
216
+
217
+ readOnly?: boolean | null;
218
+
219
+ reloadPage?: boolean | null;
220
+ }
221
+ }
222
+
223
+ export interface Translation {
224
+ language: string;
225
+
226
+ value: Translation.Value;
227
+ }
228
+
229
+ export namespace Translation {
230
+ 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;
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
+ footerBg?: string | null;
371
+
372
+ footerColor?: string | null;
373
+
374
+ footerLinkColor?: string | null;
375
+
376
+ footerLinkHoverColor?: string | null;
377
+
378
+ modalBg?: string | null;
379
+
380
+ modalBorderRadius?: string | null;
381
+
382
+ primaryButtonBg?: string | null;
383
+
384
+ primaryButtonColor?: string | null;
385
+
386
+ primaryButtonHoverBg?: string | null;
387
+
388
+ primaryButtonHoverColor?: string | null;
389
+
390
+ primaryTextColor?: string | null;
391
+
392
+ secondaryButtonBg?: string | null;
393
+
394
+ secondaryButtonColor?: string | null;
395
+
396
+ secondaryButtonHoverBg?: string | null;
397
+
398
+ secondaryButtonHoverColor?: string | null;
399
+
400
+ secondaryTextColor?: string | null;
401
+
402
+ toggleOnBg?: string | null;
403
+ }
404
+
405
+ export interface PreferencesModal {
406
+ buttonLayout?: 'AcceptAllRejectAllSave' | 'AcceptAllSave' | null;
407
+
408
+ equalWeightButtons?: boolean | null;
409
+
410
+ flipButtons?: boolean | null;
411
+
412
+ layout?: 'bar' | 'bar_wide' | 'box' | null;
413
+
414
+ position?: 'left' | 'right' | null;
415
+ }
416
+ }
417
+ }
418
+
419
+ export interface Region {
420
+ regionCode: string;
421
+
422
+ rule: Region.Rule;
423
+
424
+ additionalRegions?: Array<string> | null;
425
+ }
426
+
427
+ export namespace Region {
428
+ export interface Rule {
429
+ categories: Array<Rule.Category>;
430
+
431
+ language: string;
432
+
433
+ mode: 'opt_in' | 'opt_out';
434
+
435
+ translations: Array<Rule.Translation>;
436
+
437
+ autoShow?: boolean | null;
438
+
439
+ autoShowDismissConfig?: Rule.AutoShowDismissConfig | null;
440
+
441
+ autoShowDismissMode?: 'after_pages' | 'after_seconds' | 'never' | null;
442
+
443
+ disablePageInteraction?: boolean | null;
444
+
445
+ guiOptions?: Rule.GuiOptions | null;
446
+
447
+ hideFromBots?: boolean | null;
448
+
449
+ showVendorsInPreferences?: boolean | null;
450
+ }
451
+
452
+ export namespace Rule {
453
+ export interface Category {
454
+ key: string;
455
+
456
+ value: Category.Value;
457
+ }
458
+
459
+ export namespace Category {
460
+ export interface Value {
461
+ enabled: boolean;
462
+
463
+ autoDisableOnGPC?: boolean | null;
464
+
465
+ readOnly?: boolean | null;
466
+
467
+ reloadPage?: boolean | null;
468
+ }
469
+ }
470
+
471
+ export interface Translation {
472
+ language: string;
473
+
474
+ value: Translation.Value;
475
+ }
476
+
477
+ export namespace Translation {
478
+ export interface Value {
479
+ consentModal?: Value.ConsentModal | null;
480
+
481
+ preferencesModal?: Value.PreferencesModal | null;
482
+ }
483
+
484
+ export namespace Value {
485
+ export interface ConsentModal {
486
+ acceptAllBtn: string;
487
+
488
+ description: string;
489
+
490
+ rejectAllBtn: string;
491
+
492
+ showPreferencesBtn: string;
493
+
494
+ title: string;
495
+
496
+ closeIconLabel?: string | null;
497
+
498
+ footer?: string | null;
499
+
500
+ gpcNotification?: string | null;
501
+
502
+ privacyPolicyLabel?: string | null;
503
+
504
+ privacyPolicyUrl?: string | null;
505
+
506
+ revisionMessage?: string | null;
507
+
508
+ termsOfServiceLabel?: string | null;
509
+
510
+ termsOfServiceUrl?: string | null;
511
+ }
512
+
513
+ export interface PreferencesModal {
514
+ acceptAllBtn: string;
515
+
516
+ closeIconLabel: string;
517
+
518
+ rejectAllBtn: string;
519
+
520
+ savePreferencesBtn: string;
521
+
522
+ sections: Array<PreferencesModal.Section>;
523
+
524
+ title: string;
525
+
526
+ serviceCounterLabel?: string | null;
527
+ }
528
+
529
+ export namespace PreferencesModal {
530
+ export interface Section {
531
+ description: string;
532
+
533
+ title: string;
534
+
535
+ cookieTable?: Section.CookieTable | null;
536
+
537
+ linkedCategory?: string | null;
538
+ }
539
+
540
+ export namespace Section {
541
+ export interface CookieTable {
542
+ body: Array<CookieTable.Body>;
543
+
544
+ headers: Array<CookieTable.Header>;
545
+
546
+ caption?: string | null;
547
+ }
548
+
549
+ export namespace CookieTable {
550
+ export interface Body {
551
+ key: string;
552
+
553
+ value: string;
554
+ }
555
+
556
+ export interface Header {
557
+ key: string;
558
+
559
+ value: string;
560
+ }
561
+ }
562
+ }
563
+ }
564
+ }
565
+ }
566
+
567
+ export interface AutoShowDismissConfig {
568
+ pageCount?: number | null;
569
+
570
+ seconds?: number | null;
571
+ }
572
+
573
+ export interface GuiOptions {
574
+ consentModal?: GuiOptions.ConsentModal | null;
575
+
576
+ cssVariables?: GuiOptions.CssVariables | null;
577
+
578
+ preferencesModal?: GuiOptions.PreferencesModal | null;
579
+ }
580
+
581
+ export namespace GuiOptions {
582
+ export interface ConsentModal {
583
+ buttonLayout?:
584
+ | 'AcceptAllNecessaryPreferences'
585
+ | 'AcceptAllPreferences'
586
+ | 'AcceptOnly'
587
+ | 'InformationOnly'
588
+ | 'PreferencesOnly'
589
+ | null;
590
+
591
+ equalWeightButtons?: boolean | null;
592
+
593
+ flipButtons?: boolean | null;
594
+
595
+ layout?: 'bar' | 'bar_inline' | 'box' | 'box_inline' | 'box_wide' | 'cloud' | 'cloud_inline' | null;
596
+
597
+ position?:
598
+ | 'bottom'
599
+ | 'bottom_center'
600
+ | 'bottom_left'
601
+ | 'bottom_right'
602
+ | 'middle'
603
+ | 'middle_center'
604
+ | 'middle_left'
605
+ | 'middle_right'
606
+ | 'top'
607
+ | 'top_center'
608
+ | 'top_left'
609
+ | 'top_right'
610
+ | null;
611
+
612
+ showCloseIcon?: boolean | null;
613
+ }
614
+
615
+ export interface CssVariables {
616
+ buttonBorderRadius?: string | null;
617
+
618
+ footerBg?: string | null;
619
+
620
+ footerColor?: string | null;
621
+
622
+ footerLinkColor?: string | null;
623
+
624
+ footerLinkHoverColor?: string | null;
625
+
626
+ modalBg?: string | null;
627
+
628
+ modalBorderRadius?: string | null;
629
+
630
+ primaryButtonBg?: string | null;
631
+
632
+ primaryButtonColor?: string | null;
633
+
634
+ primaryButtonHoverBg?: string | null;
635
+
636
+ primaryButtonHoverColor?: string | null;
637
+
638
+ primaryTextColor?: string | null;
639
+
640
+ secondaryButtonBg?: string | null;
641
+
642
+ secondaryButtonColor?: string | null;
643
+
644
+ secondaryButtonHoverBg?: string | null;
645
+
646
+ secondaryButtonHoverColor?: string | null;
647
+
648
+ secondaryTextColor?: string | null;
649
+
650
+ toggleOnBg?: string | null;
651
+ }
652
+
653
+ export interface PreferencesModal {
654
+ buttonLayout?: 'AcceptAllRejectAllSave' | 'AcceptAllSave' | null;
655
+
656
+ equalWeightButtons?: boolean | null;
657
+
658
+ flipButtons?: boolean | null;
659
+
660
+ layout?: 'bar' | 'bar_wide' | 'box' | null;
661
+
662
+ position?: 'left' | 'right' | null;
663
+ }
664
+ }
665
+ }
666
+ }
667
+
668
+ export interface Service {
669
+ internalNotes: string;
670
+
671
+ label: string;
672
+
673
+ additionalCategories?: Array<string> | null;
674
+
675
+ category?: string | null;
676
+
677
+ domainPatterns?: Array<string> | null;
678
+ }
169
679
  }
170
680
 
171
681
  export declare namespace ConsentSettings {
@@ -475,7 +475,7 @@ export interface DestinationUpdateParams {
475
475
 
476
476
  selectedAccountId?: string | null;
477
477
 
478
- settings?: { [key: string]: unknown } | null;
478
+ settings?: { [key: string]: string | number | boolean | null } | null;
479
479
  }
480
480
 
481
481
  export declare namespace Destinations {