@oursprivacy/platform-sdk 1.58.0 → 1.59.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.
@@ -11,7 +11,11 @@ export class CustomDomains extends APIResource {
11
11
  * lifecycle guidance, including readiness, blocking domains, and the next
12
12
  * recommended action. Reading status also advances certificate setup: it starts
13
13
  * certificate validation once DNS is configured and activates the certificate once
14
- * it is issued. The setup is `null` until created. Requires scope:
14
+ * it is issued. Terminal certificate failures include `certificateFailure` with a
15
+ * provider code, explanation, and failed validation domains; a successful status
16
+ * read still returns HTTP 200. DNS blockers can coexist with a certificate
17
+ * failure. Refresh does not restart a terminal failed request; contact support
18
+ * after remediation. The setup is `null` until created. Requires scope:
15
19
  * `distributionTenant:find`. Requires API-key scope or current OAuth user
16
20
  * permission: distributionTenant:find
17
21
  */
@@ -21,9 +25,10 @@ export class CustomDomains extends APIResource {
21
25
 
22
26
  /**
23
27
  * Creates the account custom-domain setup and returns its `setupStatus` lifecycle
24
- * guidance. Each account can have one setup; an existing setup returns HTTP 409.
25
- * Requires scope: `distributionTenant:create`. Requires API-key scope or current
26
- * OAuth user permission: distributionTenant:create
28
+ * guidance with `certificateFailure: null`. Each account can have one setup; an
29
+ * existing setup returns HTTP 409. Requires scope: `distributionTenant:create`.
30
+ * Requires API-key scope or current OAuth user permission:
31
+ * distributionTenant:create
27
32
  */
28
33
  create(options?: RequestOptions): APIPromise<CustomDomainCreateResponse> {
29
34
  return this._client.post('/rest/v1/custom-domains', options);
@@ -52,9 +57,10 @@ export class CustomDomains extends APIResource {
52
57
  * Checks DNS and certificate status, applies any required certificate changes, and
53
58
  * returns updated `setupStatus` lifecycle guidance. Optional: reading the setup
54
59
  * status performs the same steps automatically. Use it to retry immediately after
55
- * configuring the required CNAME or after the certificate is issued. Requires
56
- * scope: `distributionTenant:update`. Requires API-key scope or current OAuth user
57
- * permission: distributionTenant:update
60
+ * configuring the required CNAME or after the certificate is issued. It does not
61
+ * restart a terminal failed certificate request; contact support after correcting
62
+ * the reported problem. Requires scope: `distributionTenant:update`. Requires
63
+ * API-key scope or current OAuth user permission: distributionTenant:update
58
64
  */
59
65
  reconcileCertificate(
60
66
  id: string,
@@ -80,17 +86,35 @@ export namespace CustomDomainStatusResponse {
80
86
  */
81
87
  certificateActive: boolean;
82
88
 
89
+ /**
90
+ * Current terminal certificate failure. Null for new, pending, or issued requests;
91
+ * independent of DNS lifecycle blockers.
92
+ */
93
+ certificateFailure: Setup.CertificateFailure | null;
94
+
83
95
  /**
84
96
  * Managed certificate issuance status.
85
97
  */
86
98
  certificateStatus: string | null;
87
99
 
100
+ /**
101
+ * ISO 8601 timestamp when the setup was created.
102
+ */
88
103
  createdAt: string | null;
89
104
 
105
+ /**
106
+ * Maximum number of custom domains this account can attach.
107
+ */
90
108
  domainLimit: number;
91
109
 
110
+ /**
111
+ * Custom domains attached to the setup.
112
+ */
92
113
  domains: Array<Setup.Domain>;
93
114
 
115
+ /**
116
+ * Whether the setup is enabled to serve traffic.
117
+ */
94
118
  enabled: boolean;
95
119
 
96
120
  /**
@@ -98,12 +122,41 @@ export namespace CustomDomainStatusResponse {
98
122
  */
99
123
  setupStatus: Setup.SetupStatus;
100
124
 
125
+ /**
126
+ * Delivery deployment status, or null when unavailable.
127
+ */
101
128
  status: string | null;
102
129
 
130
+ /**
131
+ * ISO 8601 timestamp when the setup was last updated.
132
+ */
103
133
  updatedAt: string | null;
104
134
  }
105
135
 
106
136
  export namespace Setup {
137
+ /**
138
+ * Current terminal certificate failure. Null for new, pending, or issued requests;
139
+ * independent of DNS lifecycle blockers.
140
+ */
141
+ export interface CertificateFailure {
142
+ /**
143
+ * Certificate failure reason, such as CAA_ERROR when DNS CAA records do not
144
+ * authorize the issuer. Other values may appear. Null when unavailable.
145
+ */
146
+ code: string | null;
147
+
148
+ /**
149
+ * Customer domains with failed certificate validation, not individually proven CAA
150
+ * policy defects. An empty list means none were identified.
151
+ */
152
+ domains: Array<string>;
153
+
154
+ /**
155
+ * Certificate failure explanation and next steps.
156
+ */
157
+ message: string;
158
+ }
159
+
107
160
  export interface Domain {
108
161
  /**
109
162
  * Required CNAME target for this domain.
@@ -135,15 +188,31 @@ export namespace CustomDomainStatusResponse {
135
188
  * Current custom-domain setup progress and next action.
136
189
  */
137
190
  export interface SetupStatus {
191
+ /**
192
+ * Custom domains whose DNS currently blocks setup. Empty when DNS is not the
193
+ * blocker.
194
+ */
138
195
  blockingDomains: Array<string>;
139
196
 
197
+ /**
198
+ * Whether every custom domain is ready to serve traffic.
199
+ */
140
200
  isReady: boolean;
141
201
 
202
+ /**
203
+ * Customer-facing explanation of the current stage.
204
+ */
142
205
  message: string;
143
206
 
207
+ /**
208
+ * Recommended next step to move setup forward.
209
+ */
144
210
  nextAction:
145
211
  'ADD_DOMAINS' | 'CONFIGURE_DNS' | 'RECONCILE_CERTIFICATE' | 'WAIT' | 'CONTACT_SUPPORT' | 'NONE';
146
212
 
213
+ /**
214
+ * Current setup stage. READY means every custom domain can serve traffic.
215
+ */
147
216
  state:
148
217
  | 'NO_DOMAINS'
149
218
  | 'DNS_REQUIRED'
@@ -174,17 +243,35 @@ export namespace CustomDomainCreateResponse {
174
243
  */
175
244
  certificateActive: boolean;
176
245
 
246
+ /**
247
+ * Current terminal certificate failure. Null for new, pending, or issued requests;
248
+ * independent of DNS lifecycle blockers.
249
+ */
250
+ certificateFailure: Setup.CertificateFailure | null;
251
+
177
252
  /**
178
253
  * Managed certificate issuance status.
179
254
  */
180
255
  certificateStatus: string | null;
181
256
 
257
+ /**
258
+ * ISO 8601 timestamp when the setup was created.
259
+ */
182
260
  createdAt: string | null;
183
261
 
262
+ /**
263
+ * Maximum number of custom domains this account can attach.
264
+ */
184
265
  domainLimit: number;
185
266
 
267
+ /**
268
+ * Custom domains attached to the setup.
269
+ */
186
270
  domains: Array<Setup.Domain>;
187
271
 
272
+ /**
273
+ * Whether the setup is enabled to serve traffic.
274
+ */
188
275
  enabled: boolean;
189
276
 
190
277
  /**
@@ -192,12 +279,41 @@ export namespace CustomDomainCreateResponse {
192
279
  */
193
280
  setupStatus: Setup.SetupStatus;
194
281
 
282
+ /**
283
+ * Delivery deployment status, or null when unavailable.
284
+ */
195
285
  status: string | null;
196
286
 
287
+ /**
288
+ * ISO 8601 timestamp when the setup was last updated.
289
+ */
197
290
  updatedAt: string | null;
198
291
  }
199
292
 
200
293
  export namespace Setup {
294
+ /**
295
+ * Current terminal certificate failure. Null for new, pending, or issued requests;
296
+ * independent of DNS lifecycle blockers.
297
+ */
298
+ export interface CertificateFailure {
299
+ /**
300
+ * Certificate failure reason, such as CAA_ERROR when DNS CAA records do not
301
+ * authorize the issuer. Other values may appear. Null when unavailable.
302
+ */
303
+ code: string | null;
304
+
305
+ /**
306
+ * Customer domains with failed certificate validation, not individually proven CAA
307
+ * policy defects. An empty list means none were identified.
308
+ */
309
+ domains: Array<string>;
310
+
311
+ /**
312
+ * Certificate failure explanation and next steps.
313
+ */
314
+ message: string;
315
+ }
316
+
201
317
  export interface Domain {
202
318
  /**
203
319
  * Required CNAME target for this domain.
@@ -229,15 +345,31 @@ export namespace CustomDomainCreateResponse {
229
345
  * Current custom-domain setup progress and next action.
230
346
  */
231
347
  export interface SetupStatus {
348
+ /**
349
+ * Custom domains whose DNS currently blocks setup. Empty when DNS is not the
350
+ * blocker.
351
+ */
232
352
  blockingDomains: Array<string>;
233
353
 
354
+ /**
355
+ * Whether every custom domain is ready to serve traffic.
356
+ */
234
357
  isReady: boolean;
235
358
 
359
+ /**
360
+ * Customer-facing explanation of the current stage.
361
+ */
236
362
  message: string;
237
363
 
364
+ /**
365
+ * Recommended next step to move setup forward.
366
+ */
238
367
  nextAction:
239
368
  'ADD_DOMAINS' | 'CONFIGURE_DNS' | 'RECONCILE_CERTIFICATE' | 'WAIT' | 'CONTACT_SUPPORT' | 'NONE';
240
369
 
370
+ /**
371
+ * Current setup stage. READY means every custom domain can serve traffic.
372
+ */
241
373
  state:
242
374
  | 'NO_DOMAINS'
243
375
  | 'DNS_REQUIRED'
@@ -268,17 +400,35 @@ export namespace CustomDomainReplaceResponse {
268
400
  */
269
401
  certificateActive: boolean;
270
402
 
403
+ /**
404
+ * Current terminal certificate failure. Null for new, pending, or issued requests;
405
+ * independent of DNS lifecycle blockers.
406
+ */
407
+ certificateFailure: Setup.CertificateFailure | null;
408
+
271
409
  /**
272
410
  * Managed certificate issuance status.
273
411
  */
274
412
  certificateStatus: string | null;
275
413
 
414
+ /**
415
+ * ISO 8601 timestamp when the setup was created.
416
+ */
276
417
  createdAt: string | null;
277
418
 
419
+ /**
420
+ * Maximum number of custom domains this account can attach.
421
+ */
278
422
  domainLimit: number;
279
423
 
424
+ /**
425
+ * Custom domains attached to the setup.
426
+ */
280
427
  domains: Array<Setup.Domain>;
281
428
 
429
+ /**
430
+ * Whether the setup is enabled to serve traffic.
431
+ */
282
432
  enabled: boolean;
283
433
 
284
434
  /**
@@ -286,12 +436,41 @@ export namespace CustomDomainReplaceResponse {
286
436
  */
287
437
  setupStatus: Setup.SetupStatus;
288
438
 
439
+ /**
440
+ * Delivery deployment status, or null when unavailable.
441
+ */
289
442
  status: string | null;
290
443
 
444
+ /**
445
+ * ISO 8601 timestamp when the setup was last updated.
446
+ */
291
447
  updatedAt: string | null;
292
448
  }
293
449
 
294
450
  export namespace Setup {
451
+ /**
452
+ * Current terminal certificate failure. Null for new, pending, or issued requests;
453
+ * independent of DNS lifecycle blockers.
454
+ */
455
+ export interface CertificateFailure {
456
+ /**
457
+ * Certificate failure reason, such as CAA_ERROR when DNS CAA records do not
458
+ * authorize the issuer. Other values may appear. Null when unavailable.
459
+ */
460
+ code: string | null;
461
+
462
+ /**
463
+ * Customer domains with failed certificate validation, not individually proven CAA
464
+ * policy defects. An empty list means none were identified.
465
+ */
466
+ domains: Array<string>;
467
+
468
+ /**
469
+ * Certificate failure explanation and next steps.
470
+ */
471
+ message: string;
472
+ }
473
+
295
474
  export interface Domain {
296
475
  /**
297
476
  * Required CNAME target for this domain.
@@ -323,15 +502,31 @@ export namespace CustomDomainReplaceResponse {
323
502
  * Current custom-domain setup progress and next action.
324
503
  */
325
504
  export interface SetupStatus {
505
+ /**
506
+ * Custom domains whose DNS currently blocks setup. Empty when DNS is not the
507
+ * blocker.
508
+ */
326
509
  blockingDomains: Array<string>;
327
510
 
511
+ /**
512
+ * Whether every custom domain is ready to serve traffic.
513
+ */
328
514
  isReady: boolean;
329
515
 
516
+ /**
517
+ * Customer-facing explanation of the current stage.
518
+ */
330
519
  message: string;
331
520
 
521
+ /**
522
+ * Recommended next step to move setup forward.
523
+ */
332
524
  nextAction:
333
525
  'ADD_DOMAINS' | 'CONFIGURE_DNS' | 'RECONCILE_CERTIFICATE' | 'WAIT' | 'CONTACT_SUPPORT' | 'NONE';
334
526
 
527
+ /**
528
+ * Current setup stage. READY means every custom domain can serve traffic.
529
+ */
335
530
  state:
336
531
  | 'NO_DOMAINS'
337
532
  | 'DNS_REQUIRED'
@@ -362,17 +557,35 @@ export namespace CustomDomainReconcileCertificateResponse {
362
557
  */
363
558
  certificateActive: boolean;
364
559
 
560
+ /**
561
+ * Current terminal certificate failure. Null for new, pending, or issued requests;
562
+ * independent of DNS lifecycle blockers.
563
+ */
564
+ certificateFailure: Setup.CertificateFailure | null;
565
+
365
566
  /**
366
567
  * Managed certificate issuance status.
367
568
  */
368
569
  certificateStatus: string | null;
369
570
 
571
+ /**
572
+ * ISO 8601 timestamp when the setup was created.
573
+ */
370
574
  createdAt: string | null;
371
575
 
576
+ /**
577
+ * Maximum number of custom domains this account can attach.
578
+ */
372
579
  domainLimit: number;
373
580
 
581
+ /**
582
+ * Custom domains attached to the setup.
583
+ */
374
584
  domains: Array<Setup.Domain>;
375
585
 
586
+ /**
587
+ * Whether the setup is enabled to serve traffic.
588
+ */
376
589
  enabled: boolean;
377
590
 
378
591
  /**
@@ -380,12 +593,41 @@ export namespace CustomDomainReconcileCertificateResponse {
380
593
  */
381
594
  setupStatus: Setup.SetupStatus;
382
595
 
596
+ /**
597
+ * Delivery deployment status, or null when unavailable.
598
+ */
383
599
  status: string | null;
384
600
 
601
+ /**
602
+ * ISO 8601 timestamp when the setup was last updated.
603
+ */
385
604
  updatedAt: string | null;
386
605
  }
387
606
 
388
607
  export namespace Setup {
608
+ /**
609
+ * Current terminal certificate failure. Null for new, pending, or issued requests;
610
+ * independent of DNS lifecycle blockers.
611
+ */
612
+ export interface CertificateFailure {
613
+ /**
614
+ * Certificate failure reason, such as CAA_ERROR when DNS CAA records do not
615
+ * authorize the issuer. Other values may appear. Null when unavailable.
616
+ */
617
+ code: string | null;
618
+
619
+ /**
620
+ * Customer domains with failed certificate validation, not individually proven CAA
621
+ * policy defects. An empty list means none were identified.
622
+ */
623
+ domains: Array<string>;
624
+
625
+ /**
626
+ * Certificate failure explanation and next steps.
627
+ */
628
+ message: string;
629
+ }
630
+
389
631
  export interface Domain {
390
632
  /**
391
633
  * Required CNAME target for this domain.
@@ -417,15 +659,31 @@ export namespace CustomDomainReconcileCertificateResponse {
417
659
  * Current custom-domain setup progress and next action.
418
660
  */
419
661
  export interface SetupStatus {
662
+ /**
663
+ * Custom domains whose DNS currently blocks setup. Empty when DNS is not the
664
+ * blocker.
665
+ */
420
666
  blockingDomains: Array<string>;
421
667
 
668
+ /**
669
+ * Whether every custom domain is ready to serve traffic.
670
+ */
422
671
  isReady: boolean;
423
672
 
673
+ /**
674
+ * Customer-facing explanation of the current stage.
675
+ */
424
676
  message: string;
425
677
 
678
+ /**
679
+ * Recommended next step to move setup forward.
680
+ */
426
681
  nextAction:
427
682
  'ADD_DOMAINS' | 'CONFIGURE_DNS' | 'RECONCILE_CERTIFICATE' | 'WAIT' | 'CONTACT_SUPPORT' | 'NONE';
428
683
 
684
+ /**
685
+ * Current setup stage. READY means every custom domain can serve traffic.
686
+ */
429
687
  state:
430
688
  | 'NO_DOMAINS'
431
689
  | 'DNS_REQUIRED'
@@ -210,7 +210,7 @@ export interface DashboardListResponse {
210
210
  * Shared analytics filter, combined with Insight report filters or Funnel and
211
211
  * Journey entry filters. Null clears it; report-specific filters remain in effect.
212
212
  */
213
- filter?: DashboardListResponse.Filter;
213
+ filter?: DashboardListResponse.Filter | null;
214
214
  }
215
215
 
216
216
  export namespace DashboardListResponse {
@@ -383,17 +383,107 @@ export namespace DashboardListResponse {
383
383
 
384
384
  export namespace Filter {
385
385
  export interface UnionMember0 {
386
- children: Array<unknown>;
386
+ children: Array<UnionMember0.UnionMember0 | UnionMember0.UnionMember1 | UnionMember0.UnionMember2>;
387
387
 
388
388
  kind: 'and' | 'or';
389
389
  }
390
390
 
391
+ export namespace UnionMember0 {
392
+ export interface UnionMember0 {
393
+ children: Array<unknown>;
394
+
395
+ kind: 'and' | 'or';
396
+ }
397
+
398
+ export interface UnionMember1 {
399
+ child: unknown;
400
+
401
+ kind: 'not';
402
+ }
403
+
404
+ export interface UnionMember2 {
405
+ kind: 'predicate';
406
+
407
+ operator:
408
+ | 'eq'
409
+ | 'neq'
410
+ | 'gt'
411
+ | 'gte'
412
+ | 'lt'
413
+ | 'lte'
414
+ | 'contains'
415
+ | 'not_contains'
416
+ | 'contains_ci'
417
+ | 'not_contains_ci'
418
+ | 'starts_with'
419
+ | 'ends_with'
420
+ | 'in'
421
+ | 'not_in'
422
+ | 'exists'
423
+ | 'missing'
424
+ | 'is_null';
425
+
426
+ property: string;
427
+
428
+ path?: Array<string>;
429
+
430
+ type?: 'string' | 'number' | 'boolean';
431
+
432
+ value?: string | number | boolean | Array<string | number | boolean>;
433
+ }
434
+ }
435
+
391
436
  export interface UnionMember1 {
392
- child: unknown;
437
+ child: UnionMember1.UnionMember0 | UnionMember1.UnionMember1 | UnionMember1.UnionMember2;
393
438
 
394
439
  kind: 'not';
395
440
  }
396
441
 
442
+ export namespace UnionMember1 {
443
+ export interface UnionMember0 {
444
+ children: Array<unknown>;
445
+
446
+ kind: 'and' | 'or';
447
+ }
448
+
449
+ export interface UnionMember1 {
450
+ child: unknown;
451
+
452
+ kind: 'not';
453
+ }
454
+
455
+ export interface UnionMember2 {
456
+ kind: 'predicate';
457
+
458
+ operator:
459
+ | 'eq'
460
+ | 'neq'
461
+ | 'gt'
462
+ | 'gte'
463
+ | 'lt'
464
+ | 'lte'
465
+ | 'contains'
466
+ | 'not_contains'
467
+ | 'contains_ci'
468
+ | 'not_contains_ci'
469
+ | 'starts_with'
470
+ | 'ends_with'
471
+ | 'in'
472
+ | 'not_in'
473
+ | 'exists'
474
+ | 'missing'
475
+ | 'is_null';
476
+
477
+ property: string;
478
+
479
+ path?: Array<string>;
480
+
481
+ type?: 'string' | 'number' | 'boolean';
482
+
483
+ value?: string | number | boolean | Array<string | number | boolean>;
484
+ }
485
+ }
486
+
397
487
  export interface UnionMember2 {
398
488
  kind: 'predicate';
399
489