@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 GlobalDispatchCenters extends APIResource {
16
16
  /**
17
17
  * Find a single global dispatch center by ID. Requires scope: globalDispatch:find
18
18
  */
19
- retrieve(id: string, options?: RequestOptions): APIPromise<GlobalDispatchCenterRetrieveResponse | null> {
19
+ retrieve(id: string, options?: RequestOptions): APIPromise<unknown> {
20
20
  return this._client.get(path`/rest/v1/global-dispatch-centers/${id}`, options);
21
21
  }
22
22
 
@@ -60,19 +60,7 @@ export interface GlobalDispatchCenterCreateResponse {
60
60
  updatedAt?: string | null;
61
61
  }
62
62
 
63
- export interface GlobalDispatchCenterRetrieveResponse {
64
- id: string;
65
-
66
- createdAt: string;
67
-
68
- isEnabled: boolean;
69
-
70
- kind: string;
71
-
72
- name?: string | null;
73
-
74
- updatedAt?: string | null;
75
- }
63
+ export type GlobalDispatchCenterRetrieveResponse = unknown;
76
64
 
77
65
  export interface GlobalDispatchCenterUpdateResponse {
78
66
  id: string;
@@ -111,7 +99,7 @@ export namespace GlobalDispatchCenterListResponse {
111
99
  export type GlobalDispatchCenterDeleteResponse = boolean;
112
100
 
113
101
  export interface GlobalDispatchCenterUpdateParams {
114
- categories?: Array<GlobalDispatchCenterUpdateParams.Category> | null;
102
+ categories?: Array<unknown> | null;
115
103
 
116
104
  isEnabled?: boolean | null;
117
105
 
@@ -120,631 +108,6 @@ export interface GlobalDispatchCenterUpdateParams {
120
108
  notes?: string | null;
121
109
  }
122
110
 
123
- export namespace GlobalDispatchCenterUpdateParams {
124
- export interface Category {
125
- description?: string | null;
126
-
127
- destinationIds?: Array<string> | null;
128
-
129
- logic?: Category.Logic | null;
130
-
131
- name?: string | null;
132
-
133
- priority?: number | null;
134
- }
135
-
136
- export namespace Category {
137
- export interface Logic {
138
- AND?: Array<Logic.And> | null;
139
-
140
- condition?: Logic.Condition | null;
141
-
142
- NOT?: Logic.Not | null;
143
-
144
- OR?: Array<Logic.Or> | null;
145
- }
146
-
147
- export namespace Logic {
148
- export interface And {
149
- AND?: Array<And.And> | null;
150
-
151
- condition?: And.Condition | null;
152
-
153
- NOT?: And.Not | null;
154
-
155
- OR?: Array<And.Or> | null;
156
- }
157
-
158
- export namespace And {
159
- export interface And {
160
- condition?: And.Condition | null;
161
- }
162
-
163
- export namespace And {
164
- export interface Condition {
165
- operator:
166
- | 'Contains'
167
- | 'DoesNotContain'
168
- | 'DoesNotMatchRegex'
169
- | 'DoesNotMatchRegexIgnoreCase'
170
- | 'EndsWith'
171
- | 'Is'
172
- | 'IsAfter'
173
- | 'IsBefore'
174
- | 'IsBetween'
175
- | 'IsFalse'
176
- | 'IsFalsy'
177
- | 'IsFoundIn'
178
- | 'IsGreaterThan'
179
- | 'IsGreaterThanOrEqual'
180
- | 'IsIn'
181
- | 'IsLessThan'
182
- | 'IsLessThanOrEqual'
183
- | 'IsNot'
184
- | 'IsNotFoundIn'
185
- | 'IsNotIn'
186
- | 'IsNotNull'
187
- | 'IsNotUndefined'
188
- | 'IsNull'
189
- | 'IsOnOrAfter'
190
- | 'IsOnOrBefore'
191
- | 'IsTrue'
192
- | 'IsTruthy'
193
- | 'IsUndefined'
194
- | 'MatchesRegex'
195
- | 'MatchesRegexIgnoreCase'
196
- | 'StartsWith';
197
-
198
- property: string;
199
-
200
- value: string;
201
- }
202
- }
203
-
204
- export interface Condition {
205
- operator:
206
- | 'Contains'
207
- | 'DoesNotContain'
208
- | 'DoesNotMatchRegex'
209
- | 'DoesNotMatchRegexIgnoreCase'
210
- | 'EndsWith'
211
- | 'Is'
212
- | 'IsAfter'
213
- | 'IsBefore'
214
- | 'IsBetween'
215
- | 'IsFalse'
216
- | 'IsFalsy'
217
- | 'IsFoundIn'
218
- | 'IsGreaterThan'
219
- | 'IsGreaterThanOrEqual'
220
- | 'IsIn'
221
- | 'IsLessThan'
222
- | 'IsLessThanOrEqual'
223
- | 'IsNot'
224
- | 'IsNotFoundIn'
225
- | 'IsNotIn'
226
- | 'IsNotNull'
227
- | 'IsNotUndefined'
228
- | 'IsNull'
229
- | 'IsOnOrAfter'
230
- | 'IsOnOrBefore'
231
- | 'IsTrue'
232
- | 'IsTruthy'
233
- | 'IsUndefined'
234
- | 'MatchesRegex'
235
- | 'MatchesRegexIgnoreCase'
236
- | 'StartsWith';
237
-
238
- property: string;
239
-
240
- value: string;
241
- }
242
-
243
- export interface Not {
244
- condition?: Not.Condition | null;
245
- }
246
-
247
- export namespace Not {
248
- export interface Condition {
249
- operator:
250
- | 'Contains'
251
- | 'DoesNotContain'
252
- | 'DoesNotMatchRegex'
253
- | 'DoesNotMatchRegexIgnoreCase'
254
- | 'EndsWith'
255
- | 'Is'
256
- | 'IsAfter'
257
- | 'IsBefore'
258
- | 'IsBetween'
259
- | 'IsFalse'
260
- | 'IsFalsy'
261
- | 'IsFoundIn'
262
- | 'IsGreaterThan'
263
- | 'IsGreaterThanOrEqual'
264
- | 'IsIn'
265
- | 'IsLessThan'
266
- | 'IsLessThanOrEqual'
267
- | 'IsNot'
268
- | 'IsNotFoundIn'
269
- | 'IsNotIn'
270
- | 'IsNotNull'
271
- | 'IsNotUndefined'
272
- | 'IsNull'
273
- | 'IsOnOrAfter'
274
- | 'IsOnOrBefore'
275
- | 'IsTrue'
276
- | 'IsTruthy'
277
- | 'IsUndefined'
278
- | 'MatchesRegex'
279
- | 'MatchesRegexIgnoreCase'
280
- | 'StartsWith';
281
-
282
- property: string;
283
-
284
- value: string;
285
- }
286
- }
287
-
288
- export interface Or {
289
- condition?: Or.Condition | null;
290
- }
291
-
292
- export namespace Or {
293
- export interface Condition {
294
- operator:
295
- | 'Contains'
296
- | 'DoesNotContain'
297
- | 'DoesNotMatchRegex'
298
- | 'DoesNotMatchRegexIgnoreCase'
299
- | 'EndsWith'
300
- | 'Is'
301
- | 'IsAfter'
302
- | 'IsBefore'
303
- | 'IsBetween'
304
- | 'IsFalse'
305
- | 'IsFalsy'
306
- | 'IsFoundIn'
307
- | 'IsGreaterThan'
308
- | 'IsGreaterThanOrEqual'
309
- | 'IsIn'
310
- | 'IsLessThan'
311
- | 'IsLessThanOrEqual'
312
- | 'IsNot'
313
- | 'IsNotFoundIn'
314
- | 'IsNotIn'
315
- | 'IsNotNull'
316
- | 'IsNotUndefined'
317
- | 'IsNull'
318
- | 'IsOnOrAfter'
319
- | 'IsOnOrBefore'
320
- | 'IsTrue'
321
- | 'IsTruthy'
322
- | 'IsUndefined'
323
- | 'MatchesRegex'
324
- | 'MatchesRegexIgnoreCase'
325
- | 'StartsWith';
326
-
327
- property: string;
328
-
329
- value: string;
330
- }
331
- }
332
- }
333
-
334
- export interface Condition {
335
- operator:
336
- | 'Contains'
337
- | 'DoesNotContain'
338
- | 'DoesNotMatchRegex'
339
- | 'DoesNotMatchRegexIgnoreCase'
340
- | 'EndsWith'
341
- | 'Is'
342
- | 'IsAfter'
343
- | 'IsBefore'
344
- | 'IsBetween'
345
- | 'IsFalse'
346
- | 'IsFalsy'
347
- | 'IsFoundIn'
348
- | 'IsGreaterThan'
349
- | 'IsGreaterThanOrEqual'
350
- | 'IsIn'
351
- | 'IsLessThan'
352
- | 'IsLessThanOrEqual'
353
- | 'IsNot'
354
- | 'IsNotFoundIn'
355
- | 'IsNotIn'
356
- | 'IsNotNull'
357
- | 'IsNotUndefined'
358
- | 'IsNull'
359
- | 'IsOnOrAfter'
360
- | 'IsOnOrBefore'
361
- | 'IsTrue'
362
- | 'IsTruthy'
363
- | 'IsUndefined'
364
- | 'MatchesRegex'
365
- | 'MatchesRegexIgnoreCase'
366
- | 'StartsWith';
367
-
368
- property: string;
369
-
370
- value: string;
371
- }
372
-
373
- export interface Not {
374
- AND?: Array<Not.And> | null;
375
-
376
- condition?: Not.Condition | null;
377
-
378
- NOT?: Not.Not | null;
379
-
380
- OR?: Array<Not.Or> | null;
381
- }
382
-
383
- export namespace Not {
384
- export interface And {
385
- condition?: And.Condition | null;
386
- }
387
-
388
- export namespace And {
389
- export interface Condition {
390
- operator:
391
- | 'Contains'
392
- | 'DoesNotContain'
393
- | 'DoesNotMatchRegex'
394
- | 'DoesNotMatchRegexIgnoreCase'
395
- | 'EndsWith'
396
- | 'Is'
397
- | 'IsAfter'
398
- | 'IsBefore'
399
- | 'IsBetween'
400
- | 'IsFalse'
401
- | 'IsFalsy'
402
- | 'IsFoundIn'
403
- | 'IsGreaterThan'
404
- | 'IsGreaterThanOrEqual'
405
- | 'IsIn'
406
- | 'IsLessThan'
407
- | 'IsLessThanOrEqual'
408
- | 'IsNot'
409
- | 'IsNotFoundIn'
410
- | 'IsNotIn'
411
- | 'IsNotNull'
412
- | 'IsNotUndefined'
413
- | 'IsNull'
414
- | 'IsOnOrAfter'
415
- | 'IsOnOrBefore'
416
- | 'IsTrue'
417
- | 'IsTruthy'
418
- | 'IsUndefined'
419
- | 'MatchesRegex'
420
- | 'MatchesRegexIgnoreCase'
421
- | 'StartsWith';
422
-
423
- property: string;
424
-
425
- value: string;
426
- }
427
- }
428
-
429
- export interface Condition {
430
- operator:
431
- | 'Contains'
432
- | 'DoesNotContain'
433
- | 'DoesNotMatchRegex'
434
- | 'DoesNotMatchRegexIgnoreCase'
435
- | 'EndsWith'
436
- | 'Is'
437
- | 'IsAfter'
438
- | 'IsBefore'
439
- | 'IsBetween'
440
- | 'IsFalse'
441
- | 'IsFalsy'
442
- | 'IsFoundIn'
443
- | 'IsGreaterThan'
444
- | 'IsGreaterThanOrEqual'
445
- | 'IsIn'
446
- | 'IsLessThan'
447
- | 'IsLessThanOrEqual'
448
- | 'IsNot'
449
- | 'IsNotFoundIn'
450
- | 'IsNotIn'
451
- | 'IsNotNull'
452
- | 'IsNotUndefined'
453
- | 'IsNull'
454
- | 'IsOnOrAfter'
455
- | 'IsOnOrBefore'
456
- | 'IsTrue'
457
- | 'IsTruthy'
458
- | 'IsUndefined'
459
- | 'MatchesRegex'
460
- | 'MatchesRegexIgnoreCase'
461
- | 'StartsWith';
462
-
463
- property: string;
464
-
465
- value: string;
466
- }
467
-
468
- export interface Not {
469
- condition?: Not.Condition | null;
470
- }
471
-
472
- export namespace Not {
473
- export interface Condition {
474
- operator:
475
- | 'Contains'
476
- | 'DoesNotContain'
477
- | 'DoesNotMatchRegex'
478
- | 'DoesNotMatchRegexIgnoreCase'
479
- | 'EndsWith'
480
- | 'Is'
481
- | 'IsAfter'
482
- | 'IsBefore'
483
- | 'IsBetween'
484
- | 'IsFalse'
485
- | 'IsFalsy'
486
- | 'IsFoundIn'
487
- | 'IsGreaterThan'
488
- | 'IsGreaterThanOrEqual'
489
- | 'IsIn'
490
- | 'IsLessThan'
491
- | 'IsLessThanOrEqual'
492
- | 'IsNot'
493
- | 'IsNotFoundIn'
494
- | 'IsNotIn'
495
- | 'IsNotNull'
496
- | 'IsNotUndefined'
497
- | 'IsNull'
498
- | 'IsOnOrAfter'
499
- | 'IsOnOrBefore'
500
- | 'IsTrue'
501
- | 'IsTruthy'
502
- | 'IsUndefined'
503
- | 'MatchesRegex'
504
- | 'MatchesRegexIgnoreCase'
505
- | 'StartsWith';
506
-
507
- property: string;
508
-
509
- value: string;
510
- }
511
- }
512
-
513
- export interface Or {
514
- condition?: Or.Condition | null;
515
- }
516
-
517
- export namespace Or {
518
- export interface Condition {
519
- operator:
520
- | 'Contains'
521
- | 'DoesNotContain'
522
- | 'DoesNotMatchRegex'
523
- | 'DoesNotMatchRegexIgnoreCase'
524
- | 'EndsWith'
525
- | 'Is'
526
- | 'IsAfter'
527
- | 'IsBefore'
528
- | 'IsBetween'
529
- | 'IsFalse'
530
- | 'IsFalsy'
531
- | 'IsFoundIn'
532
- | 'IsGreaterThan'
533
- | 'IsGreaterThanOrEqual'
534
- | 'IsIn'
535
- | 'IsLessThan'
536
- | 'IsLessThanOrEqual'
537
- | 'IsNot'
538
- | 'IsNotFoundIn'
539
- | 'IsNotIn'
540
- | 'IsNotNull'
541
- | 'IsNotUndefined'
542
- | 'IsNull'
543
- | 'IsOnOrAfter'
544
- | 'IsOnOrBefore'
545
- | 'IsTrue'
546
- | 'IsTruthy'
547
- | 'IsUndefined'
548
- | 'MatchesRegex'
549
- | 'MatchesRegexIgnoreCase'
550
- | 'StartsWith';
551
-
552
- property: string;
553
-
554
- value: string;
555
- }
556
- }
557
- }
558
-
559
- export interface Or {
560
- AND?: Array<Or.And> | null;
561
-
562
- condition?: Or.Condition | null;
563
-
564
- NOT?: Or.Not | null;
565
-
566
- OR?: Array<Or.Or> | null;
567
- }
568
-
569
- export namespace Or {
570
- export interface And {
571
- condition?: And.Condition | null;
572
- }
573
-
574
- export namespace And {
575
- export interface Condition {
576
- operator:
577
- | 'Contains'
578
- | 'DoesNotContain'
579
- | 'DoesNotMatchRegex'
580
- | 'DoesNotMatchRegexIgnoreCase'
581
- | 'EndsWith'
582
- | 'Is'
583
- | 'IsAfter'
584
- | 'IsBefore'
585
- | 'IsBetween'
586
- | 'IsFalse'
587
- | 'IsFalsy'
588
- | 'IsFoundIn'
589
- | 'IsGreaterThan'
590
- | 'IsGreaterThanOrEqual'
591
- | 'IsIn'
592
- | 'IsLessThan'
593
- | 'IsLessThanOrEqual'
594
- | 'IsNot'
595
- | 'IsNotFoundIn'
596
- | 'IsNotIn'
597
- | 'IsNotNull'
598
- | 'IsNotUndefined'
599
- | 'IsNull'
600
- | 'IsOnOrAfter'
601
- | 'IsOnOrBefore'
602
- | 'IsTrue'
603
- | 'IsTruthy'
604
- | 'IsUndefined'
605
- | 'MatchesRegex'
606
- | 'MatchesRegexIgnoreCase'
607
- | 'StartsWith';
608
-
609
- property: string;
610
-
611
- value: string;
612
- }
613
- }
614
-
615
- export interface Condition {
616
- operator:
617
- | 'Contains'
618
- | 'DoesNotContain'
619
- | 'DoesNotMatchRegex'
620
- | 'DoesNotMatchRegexIgnoreCase'
621
- | 'EndsWith'
622
- | 'Is'
623
- | 'IsAfter'
624
- | 'IsBefore'
625
- | 'IsBetween'
626
- | 'IsFalse'
627
- | 'IsFalsy'
628
- | 'IsFoundIn'
629
- | 'IsGreaterThan'
630
- | 'IsGreaterThanOrEqual'
631
- | 'IsIn'
632
- | 'IsLessThan'
633
- | 'IsLessThanOrEqual'
634
- | 'IsNot'
635
- | 'IsNotFoundIn'
636
- | 'IsNotIn'
637
- | 'IsNotNull'
638
- | 'IsNotUndefined'
639
- | 'IsNull'
640
- | 'IsOnOrAfter'
641
- | 'IsOnOrBefore'
642
- | 'IsTrue'
643
- | 'IsTruthy'
644
- | 'IsUndefined'
645
- | 'MatchesRegex'
646
- | 'MatchesRegexIgnoreCase'
647
- | 'StartsWith';
648
-
649
- property: string;
650
-
651
- value: string;
652
- }
653
-
654
- export interface Not {
655
- condition?: Not.Condition | null;
656
- }
657
-
658
- export namespace Not {
659
- export interface Condition {
660
- operator:
661
- | 'Contains'
662
- | 'DoesNotContain'
663
- | 'DoesNotMatchRegex'
664
- | 'DoesNotMatchRegexIgnoreCase'
665
- | 'EndsWith'
666
- | 'Is'
667
- | 'IsAfter'
668
- | 'IsBefore'
669
- | 'IsBetween'
670
- | 'IsFalse'
671
- | 'IsFalsy'
672
- | 'IsFoundIn'
673
- | 'IsGreaterThan'
674
- | 'IsGreaterThanOrEqual'
675
- | 'IsIn'
676
- | 'IsLessThan'
677
- | 'IsLessThanOrEqual'
678
- | 'IsNot'
679
- | 'IsNotFoundIn'
680
- | 'IsNotIn'
681
- | 'IsNotNull'
682
- | 'IsNotUndefined'
683
- | 'IsNull'
684
- | 'IsOnOrAfter'
685
- | 'IsOnOrBefore'
686
- | 'IsTrue'
687
- | 'IsTruthy'
688
- | 'IsUndefined'
689
- | 'MatchesRegex'
690
- | 'MatchesRegexIgnoreCase'
691
- | 'StartsWith';
692
-
693
- property: string;
694
-
695
- value: string;
696
- }
697
- }
698
-
699
- export interface Or {
700
- condition?: Or.Condition | null;
701
- }
702
-
703
- export namespace Or {
704
- export interface Condition {
705
- operator:
706
- | 'Contains'
707
- | 'DoesNotContain'
708
- | 'DoesNotMatchRegex'
709
- | 'DoesNotMatchRegexIgnoreCase'
710
- | 'EndsWith'
711
- | 'Is'
712
- | 'IsAfter'
713
- | 'IsBefore'
714
- | 'IsBetween'
715
- | 'IsFalse'
716
- | 'IsFalsy'
717
- | 'IsFoundIn'
718
- | 'IsGreaterThan'
719
- | 'IsGreaterThanOrEqual'
720
- | 'IsIn'
721
- | 'IsLessThan'
722
- | 'IsLessThanOrEqual'
723
- | 'IsNot'
724
- | 'IsNotFoundIn'
725
- | 'IsNotIn'
726
- | 'IsNotNull'
727
- | 'IsNotUndefined'
728
- | 'IsNull'
729
- | 'IsOnOrAfter'
730
- | 'IsOnOrBefore'
731
- | 'IsTrue'
732
- | 'IsTruthy'
733
- | 'IsUndefined'
734
- | 'MatchesRegex'
735
- | 'MatchesRegexIgnoreCase'
736
- | 'StartsWith';
737
-
738
- property: string;
739
-
740
- value: string;
741
- }
742
- }
743
- }
744
- }
745
- }
746
- }
747
-
748
111
  export declare namespace GlobalDispatchCenters {
749
112
  export {
750
113
  type GlobalDispatchCenterCreateResponse as GlobalDispatchCenterCreateResponse,