@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.
@@ -7,16 +7,21 @@ export declare class CustomDomains extends APIResource {
7
7
  * lifecycle guidance, including readiness, blocking domains, and the next
8
8
  * recommended action. Reading status also advances certificate setup: it starts
9
9
  * certificate validation once DNS is configured and activates the certificate once
10
- * it is issued. The setup is `null` until created. Requires scope:
10
+ * it is issued. Terminal certificate failures include `certificateFailure` with a
11
+ * provider code, explanation, and failed validation domains; a successful status
12
+ * read still returns HTTP 200. DNS blockers can coexist with a certificate
13
+ * failure. Refresh does not restart a terminal failed request; contact support
14
+ * after remediation. The setup is `null` until created. Requires scope:
11
15
  * `distributionTenant:find`. Requires API-key scope or current OAuth user
12
16
  * permission: distributionTenant:find
13
17
  */
14
18
  status(options?: RequestOptions): APIPromise<CustomDomainStatusResponse>;
15
19
  /**
16
20
  * Creates the account custom-domain setup and returns its `setupStatus` lifecycle
17
- * guidance. Each account can have one setup; an existing setup returns HTTP 409.
18
- * Requires scope: `distributionTenant:create`. Requires API-key scope or current
19
- * OAuth user permission: distributionTenant:create
21
+ * guidance with `certificateFailure: null`. Each account can have one setup; an
22
+ * existing setup returns HTTP 409. Requires scope: `distributionTenant:create`.
23
+ * Requires API-key scope or current OAuth user permission:
24
+ * distributionTenant:create
20
25
  */
21
26
  create(options?: RequestOptions): APIPromise<CustomDomainCreateResponse>;
22
27
  /**
@@ -35,9 +40,10 @@ export declare class CustomDomains extends APIResource {
35
40
  * Checks DNS and certificate status, applies any required certificate changes, and
36
41
  * returns updated `setupStatus` lifecycle guidance. Optional: reading the setup
37
42
  * status performs the same steps automatically. Use it to retry immediately after
38
- * configuring the required CNAME or after the certificate is issued. Requires
39
- * scope: `distributionTenant:update`. Requires API-key scope or current OAuth user
40
- * permission: distributionTenant:update
43
+ * configuring the required CNAME or after the certificate is issued. It does not
44
+ * restart a terminal failed certificate request; contact support after correcting
45
+ * the reported problem. Requires scope: `distributionTenant:update`. Requires
46
+ * API-key scope or current OAuth user permission: distributionTenant:update
41
47
  */
42
48
  reconcileCertificate(id: string, options?: RequestOptions): APIPromise<CustomDomainReconcileCertificateResponse>;
43
49
  }
@@ -54,22 +60,65 @@ export declare namespace CustomDomainStatusResponse {
54
60
  * Whether the managed certificate is attached to serve the custom domains.
55
61
  */
56
62
  certificateActive: boolean;
63
+ /**
64
+ * Current terminal certificate failure. Null for new, pending, or issued requests;
65
+ * independent of DNS lifecycle blockers.
66
+ */
67
+ certificateFailure: Setup.CertificateFailure | null;
57
68
  /**
58
69
  * Managed certificate issuance status.
59
70
  */
60
71
  certificateStatus: string | null;
72
+ /**
73
+ * ISO 8601 timestamp when the setup was created.
74
+ */
61
75
  createdAt: string | null;
76
+ /**
77
+ * Maximum number of custom domains this account can attach.
78
+ */
62
79
  domainLimit: number;
80
+ /**
81
+ * Custom domains attached to the setup.
82
+ */
63
83
  domains: Array<Setup.Domain>;
84
+ /**
85
+ * Whether the setup is enabled to serve traffic.
86
+ */
64
87
  enabled: boolean;
65
88
  /**
66
89
  * Current custom-domain setup progress and next action.
67
90
  */
68
91
  setupStatus: Setup.SetupStatus;
92
+ /**
93
+ * Delivery deployment status, or null when unavailable.
94
+ */
69
95
  status: string | null;
96
+ /**
97
+ * ISO 8601 timestamp when the setup was last updated.
98
+ */
70
99
  updatedAt: string | null;
71
100
  }
72
101
  namespace Setup {
102
+ /**
103
+ * Current terminal certificate failure. Null for new, pending, or issued requests;
104
+ * independent of DNS lifecycle blockers.
105
+ */
106
+ interface CertificateFailure {
107
+ /**
108
+ * Certificate failure reason, such as CAA_ERROR when DNS CAA records do not
109
+ * authorize the issuer. Other values may appear. Null when unavailable.
110
+ */
111
+ code: string | null;
112
+ /**
113
+ * Customer domains with failed certificate validation, not individually proven CAA
114
+ * policy defects. An empty list means none were identified.
115
+ */
116
+ domains: Array<string>;
117
+ /**
118
+ * Certificate failure explanation and next steps.
119
+ */
120
+ message: string;
121
+ }
73
122
  interface Domain {
74
123
  /**
75
124
  * Required CNAME target for this domain.
@@ -96,10 +145,26 @@ export declare namespace CustomDomainStatusResponse {
96
145
  * Current custom-domain setup progress and next action.
97
146
  */
98
147
  interface SetupStatus {
148
+ /**
149
+ * Custom domains whose DNS currently blocks setup. Empty when DNS is not the
150
+ * blocker.
151
+ */
99
152
  blockingDomains: Array<string>;
153
+ /**
154
+ * Whether every custom domain is ready to serve traffic.
155
+ */
100
156
  isReady: boolean;
157
+ /**
158
+ * Customer-facing explanation of the current stage.
159
+ */
101
160
  message: string;
161
+ /**
162
+ * Recommended next step to move setup forward.
163
+ */
102
164
  nextAction: 'ADD_DOMAINS' | 'CONFIGURE_DNS' | 'RECONCILE_CERTIFICATE' | 'WAIT' | 'CONTACT_SUPPORT' | 'NONE';
165
+ /**
166
+ * Current setup stage. READY means every custom domain can serve traffic.
167
+ */
103
168
  state: 'NO_DOMAINS' | 'DNS_REQUIRED' | 'CERTIFICATE_VALIDATION_REQUIRED' | 'CERTIFICATE_PENDING' | 'CERTIFICATE_ACTIVATION_REQUIRED' | 'DEPLOYING' | 'READY' | 'CERTIFICATE_FAILED' | 'DISABLED';
104
169
  }
105
170
  }
@@ -117,22 +182,65 @@ export declare namespace CustomDomainCreateResponse {
117
182
  * Whether the managed certificate is attached to serve the custom domains.
118
183
  */
119
184
  certificateActive: boolean;
185
+ /**
186
+ * Current terminal certificate failure. Null for new, pending, or issued requests;
187
+ * independent of DNS lifecycle blockers.
188
+ */
189
+ certificateFailure: Setup.CertificateFailure | null;
120
190
  /**
121
191
  * Managed certificate issuance status.
122
192
  */
123
193
  certificateStatus: string | null;
194
+ /**
195
+ * ISO 8601 timestamp when the setup was created.
196
+ */
124
197
  createdAt: string | null;
198
+ /**
199
+ * Maximum number of custom domains this account can attach.
200
+ */
125
201
  domainLimit: number;
202
+ /**
203
+ * Custom domains attached to the setup.
204
+ */
126
205
  domains: Array<Setup.Domain>;
206
+ /**
207
+ * Whether the setup is enabled to serve traffic.
208
+ */
127
209
  enabled: boolean;
128
210
  /**
129
211
  * Current custom-domain setup progress and next action.
130
212
  */
131
213
  setupStatus: Setup.SetupStatus;
214
+ /**
215
+ * Delivery deployment status, or null when unavailable.
216
+ */
132
217
  status: string | null;
218
+ /**
219
+ * ISO 8601 timestamp when the setup was last updated.
220
+ */
133
221
  updatedAt: string | null;
134
222
  }
135
223
  namespace Setup {
224
+ /**
225
+ * Current terminal certificate failure. Null for new, pending, or issued requests;
226
+ * independent of DNS lifecycle blockers.
227
+ */
228
+ interface CertificateFailure {
229
+ /**
230
+ * Certificate failure reason, such as CAA_ERROR when DNS CAA records do not
231
+ * authorize the issuer. Other values may appear. Null when unavailable.
232
+ */
233
+ code: string | null;
234
+ /**
235
+ * Customer domains with failed certificate validation, not individually proven CAA
236
+ * policy defects. An empty list means none were identified.
237
+ */
238
+ domains: Array<string>;
239
+ /**
240
+ * Certificate failure explanation and next steps.
241
+ */
242
+ message: string;
243
+ }
136
244
  interface Domain {
137
245
  /**
138
246
  * Required CNAME target for this domain.
@@ -159,10 +267,26 @@ export declare namespace CustomDomainCreateResponse {
159
267
  * Current custom-domain setup progress and next action.
160
268
  */
161
269
  interface SetupStatus {
270
+ /**
271
+ * Custom domains whose DNS currently blocks setup. Empty when DNS is not the
272
+ * blocker.
273
+ */
162
274
  blockingDomains: Array<string>;
275
+ /**
276
+ * Whether every custom domain is ready to serve traffic.
277
+ */
163
278
  isReady: boolean;
279
+ /**
280
+ * Customer-facing explanation of the current stage.
281
+ */
164
282
  message: string;
283
+ /**
284
+ * Recommended next step to move setup forward.
285
+ */
165
286
  nextAction: 'ADD_DOMAINS' | 'CONFIGURE_DNS' | 'RECONCILE_CERTIFICATE' | 'WAIT' | 'CONTACT_SUPPORT' | 'NONE';
287
+ /**
288
+ * Current setup stage. READY means every custom domain can serve traffic.
289
+ */
166
290
  state: 'NO_DOMAINS' | 'DNS_REQUIRED' | 'CERTIFICATE_VALIDATION_REQUIRED' | 'CERTIFICATE_PENDING' | 'CERTIFICATE_ACTIVATION_REQUIRED' | 'DEPLOYING' | 'READY' | 'CERTIFICATE_FAILED' | 'DISABLED';
167
291
  }
168
292
  }
@@ -180,22 +304,65 @@ export declare namespace CustomDomainReplaceResponse {
180
304
  * Whether the managed certificate is attached to serve the custom domains.
181
305
  */
182
306
  certificateActive: boolean;
307
+ /**
308
+ * Current terminal certificate failure. Null for new, pending, or issued requests;
309
+ * independent of DNS lifecycle blockers.
310
+ */
311
+ certificateFailure: Setup.CertificateFailure | null;
183
312
  /**
184
313
  * Managed certificate issuance status.
185
314
  */
186
315
  certificateStatus: string | null;
316
+ /**
317
+ * ISO 8601 timestamp when the setup was created.
318
+ */
187
319
  createdAt: string | null;
320
+ /**
321
+ * Maximum number of custom domains this account can attach.
322
+ */
188
323
  domainLimit: number;
324
+ /**
325
+ * Custom domains attached to the setup.
326
+ */
189
327
  domains: Array<Setup.Domain>;
328
+ /**
329
+ * Whether the setup is enabled to serve traffic.
330
+ */
190
331
  enabled: boolean;
191
332
  /**
192
333
  * Current custom-domain setup progress and next action.
193
334
  */
194
335
  setupStatus: Setup.SetupStatus;
336
+ /**
337
+ * Delivery deployment status, or null when unavailable.
338
+ */
195
339
  status: string | null;
340
+ /**
341
+ * ISO 8601 timestamp when the setup was last updated.
342
+ */
196
343
  updatedAt: string | null;
197
344
  }
198
345
  namespace Setup {
346
+ /**
347
+ * Current terminal certificate failure. Null for new, pending, or issued requests;
348
+ * independent of DNS lifecycle blockers.
349
+ */
350
+ interface CertificateFailure {
351
+ /**
352
+ * Certificate failure reason, such as CAA_ERROR when DNS CAA records do not
353
+ * authorize the issuer. Other values may appear. Null when unavailable.
354
+ */
355
+ code: string | null;
356
+ /**
357
+ * Customer domains with failed certificate validation, not individually proven CAA
358
+ * policy defects. An empty list means none were identified.
359
+ */
360
+ domains: Array<string>;
361
+ /**
362
+ * Certificate failure explanation and next steps.
363
+ */
364
+ message: string;
365
+ }
199
366
  interface Domain {
200
367
  /**
201
368
  * Required CNAME target for this domain.
@@ -222,10 +389,26 @@ export declare namespace CustomDomainReplaceResponse {
222
389
  * Current custom-domain setup progress and next action.
223
390
  */
224
391
  interface SetupStatus {
392
+ /**
393
+ * Custom domains whose DNS currently blocks setup. Empty when DNS is not the
394
+ * blocker.
395
+ */
225
396
  blockingDomains: Array<string>;
397
+ /**
398
+ * Whether every custom domain is ready to serve traffic.
399
+ */
226
400
  isReady: boolean;
401
+ /**
402
+ * Customer-facing explanation of the current stage.
403
+ */
227
404
  message: string;
405
+ /**
406
+ * Recommended next step to move setup forward.
407
+ */
228
408
  nextAction: 'ADD_DOMAINS' | 'CONFIGURE_DNS' | 'RECONCILE_CERTIFICATE' | 'WAIT' | 'CONTACT_SUPPORT' | 'NONE';
409
+ /**
410
+ * Current setup stage. READY means every custom domain can serve traffic.
411
+ */
229
412
  state: 'NO_DOMAINS' | 'DNS_REQUIRED' | 'CERTIFICATE_VALIDATION_REQUIRED' | 'CERTIFICATE_PENDING' | 'CERTIFICATE_ACTIVATION_REQUIRED' | 'DEPLOYING' | 'READY' | 'CERTIFICATE_FAILED' | 'DISABLED';
230
413
  }
231
414
  }
@@ -243,22 +426,65 @@ export declare namespace CustomDomainReconcileCertificateResponse {
243
426
  * Whether the managed certificate is attached to serve the custom domains.
244
427
  */
245
428
  certificateActive: boolean;
429
+ /**
430
+ * Current terminal certificate failure. Null for new, pending, or issued requests;
431
+ * independent of DNS lifecycle blockers.
432
+ */
433
+ certificateFailure: Setup.CertificateFailure | null;
246
434
  /**
247
435
  * Managed certificate issuance status.
248
436
  */
249
437
  certificateStatus: string | null;
438
+ /**
439
+ * ISO 8601 timestamp when the setup was created.
440
+ */
250
441
  createdAt: string | null;
442
+ /**
443
+ * Maximum number of custom domains this account can attach.
444
+ */
251
445
  domainLimit: number;
446
+ /**
447
+ * Custom domains attached to the setup.
448
+ */
252
449
  domains: Array<Setup.Domain>;
450
+ /**
451
+ * Whether the setup is enabled to serve traffic.
452
+ */
253
453
  enabled: boolean;
254
454
  /**
255
455
  * Current custom-domain setup progress and next action.
256
456
  */
257
457
  setupStatus: Setup.SetupStatus;
458
+ /**
459
+ * Delivery deployment status, or null when unavailable.
460
+ */
258
461
  status: string | null;
462
+ /**
463
+ * ISO 8601 timestamp when the setup was last updated.
464
+ */
259
465
  updatedAt: string | null;
260
466
  }
261
467
  namespace Setup {
468
+ /**
469
+ * Current terminal certificate failure. Null for new, pending, or issued requests;
470
+ * independent of DNS lifecycle blockers.
471
+ */
472
+ interface CertificateFailure {
473
+ /**
474
+ * Certificate failure reason, such as CAA_ERROR when DNS CAA records do not
475
+ * authorize the issuer. Other values may appear. Null when unavailable.
476
+ */
477
+ code: string | null;
478
+ /**
479
+ * Customer domains with failed certificate validation, not individually proven CAA
480
+ * policy defects. An empty list means none were identified.
481
+ */
482
+ domains: Array<string>;
483
+ /**
484
+ * Certificate failure explanation and next steps.
485
+ */
486
+ message: string;
487
+ }
262
488
  interface Domain {
263
489
  /**
264
490
  * Required CNAME target for this domain.
@@ -285,10 +511,26 @@ export declare namespace CustomDomainReconcileCertificateResponse {
285
511
  * Current custom-domain setup progress and next action.
286
512
  */
287
513
  interface SetupStatus {
514
+ /**
515
+ * Custom domains whose DNS currently blocks setup. Empty when DNS is not the
516
+ * blocker.
517
+ */
288
518
  blockingDomains: Array<string>;
519
+ /**
520
+ * Whether every custom domain is ready to serve traffic.
521
+ */
289
522
  isReady: boolean;
523
+ /**
524
+ * Customer-facing explanation of the current stage.
525
+ */
290
526
  message: string;
527
+ /**
528
+ * Recommended next step to move setup forward.
529
+ */
291
530
  nextAction: 'ADD_DOMAINS' | 'CONFIGURE_DNS' | 'RECONCILE_CERTIFICATE' | 'WAIT' | 'CONTACT_SUPPORT' | 'NONE';
531
+ /**
532
+ * Current setup stage. READY means every custom domain can serve traffic.
533
+ */
292
534
  state: 'NO_DOMAINS' | 'DNS_REQUIRED' | 'CERTIFICATE_VALIDATION_REQUIRED' | 'CERTIFICATE_PENDING' | 'CERTIFICATE_ACTIVATION_REQUIRED' | 'DEPLOYING' | 'READY' | 'CERTIFICATE_FAILED' | 'DISABLED';
293
535
  }
294
536
  }
@@ -1 +1 @@
1
- {"version":3,"file":"custom-domains.d.ts","sourceRoot":"","sources":["../src/resources/custom-domains.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIxE;;;;;OAKG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIxE;;;;;;;;;;OAUG;IACH,OAAO,CACL,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C;;;;;;;OAOG;IACH,oBAAoB,CAClB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wCAAwC,CAAC;CAGxD;AAED,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,0BAA0B,CAAC,KAAK,GAAG,IAAI,CAAC;CAChD;AAED,yBAAiB,0BAA0B,CAAC;IAC1C,UAAiB,KAAK;QACpB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,iBAAiB,EAAE,OAAO,CAAC;QAE3B;;WAEG;QACH,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;QAEjC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAEzB,WAAW,EAAE,MAAM,CAAC;QAEpB,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAE7B,OAAO,EAAE,OA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;WAEG;QACH,UAAiB,WAAW;YAC1B;;;eAGG;YACH,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAE/B;;eAEG;YACH,OAAO,EAAE,OAAO,CAAC;YAEjB;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;eAEG;YACH,UAAU,EACR,aAAa,GAAG,eAAe,GAAG,uBAAuB,GAAG,MAAM,GAAG,iBAAiB,GAAG,MAAM,CAAC;YAElG;;eAEG;YACH,KAAK,EACD,YAAY,GACZ,cAAc,GACd,iCAAiC,GACjC,qBAAqB,GACrB,iCAAiC,GACjC,WAAW,GACX,OAAO,GACP,oBAAoB,GACpB,UAAU,CAAC;SAChB;KACF;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -10,7 +10,11 @@ class CustomDomains extends resource_1.APIResource {
10
10
  * lifecycle guidance, including readiness, blocking domains, and the next
11
11
  * recommended action. Reading status also advances certificate setup: it starts
12
12
  * certificate validation once DNS is configured and activates the certificate once
13
- * it is issued. The setup is `null` until created. Requires scope:
13
+ * it is issued. Terminal certificate failures include `certificateFailure` with a
14
+ * provider code, explanation, and failed validation domains; a successful status
15
+ * read still returns HTTP 200. DNS blockers can coexist with a certificate
16
+ * failure. Refresh does not restart a terminal failed request; contact support
17
+ * after remediation. The setup is `null` until created. Requires scope:
14
18
  * `distributionTenant:find`. Requires API-key scope or current OAuth user
15
19
  * permission: distributionTenant:find
16
20
  */
@@ -19,9 +23,10 @@ class CustomDomains extends resource_1.APIResource {
19
23
  }
20
24
  /**
21
25
  * Creates the account custom-domain setup and returns its `setupStatus` lifecycle
22
- * guidance. Each account can have one setup; an existing setup returns HTTP 409.
23
- * Requires scope: `distributionTenant:create`. Requires API-key scope or current
24
- * OAuth user permission: distributionTenant:create
26
+ * guidance with `certificateFailure: null`. Each account can have one setup; an
27
+ * existing setup returns HTTP 409. Requires scope: `distributionTenant:create`.
28
+ * Requires API-key scope or current OAuth user permission:
29
+ * distributionTenant:create
25
30
  */
26
31
  create(options) {
27
32
  return this._client.post('/rest/v1/custom-domains', options);
@@ -44,9 +49,10 @@ class CustomDomains extends resource_1.APIResource {
44
49
  * Checks DNS and certificate status, applies any required certificate changes, and
45
50
  * returns updated `setupStatus` lifecycle guidance. Optional: reading the setup
46
51
  * status performs the same steps automatically. Use it to retry immediately after
47
- * configuring the required CNAME or after the certificate is issued. Requires
48
- * scope: `distributionTenant:update`. Requires API-key scope or current OAuth user
49
- * permission: distributionTenant:update
52
+ * configuring the required CNAME or after the certificate is issued. It does not
53
+ * restart a terminal failed certificate request; contact support after correcting
54
+ * the reported problem. Requires scope: `distributionTenant:update`. Requires
55
+ * API-key scope or current OAuth user permission: distributionTenant:update
50
56
  */
51
57
  reconcileCertificate(id, options) {
52
58
  return this._client.post((0, path_1.path) `/rest/v1/custom-domains/${id}/certificate-validation`, options);
@@ -1 +1 @@
1
- {"version":3,"file":"custom-domains.js","sourceRoot":"","sources":["../src/resources/custom-domains.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,C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I,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF;AA/DD,sCA+DC"}
@@ -7,7 +7,11 @@ export class CustomDomains extends APIResource {
7
7
  * lifecycle guidance, including readiness, blocking domains, and the next
8
8
  * recommended action. Reading status also advances certificate setup: it starts
9
9
  * certificate validation once DNS is configured and activates the certificate once
10
- * it is issued. The setup is `null` until created. Requires scope:
10
+ * it is issued. Terminal certificate failures include `certificateFailure` with a
11
+ * provider code, explanation, and failed validation domains; a successful status
12
+ * read still returns HTTP 200. DNS blockers can coexist with a certificate
13
+ * failure. Refresh does not restart a terminal failed request; contact support
14
+ * after remediation. The setup is `null` until created. Requires scope:
11
15
  * `distributionTenant:find`. Requires API-key scope or current OAuth user
12
16
  * permission: distributionTenant:find
13
17
  */
@@ -16,9 +20,10 @@ export class CustomDomains extends APIResource {
16
20
  }
17
21
  /**
18
22
  * Creates the account custom-domain setup and returns its `setupStatus` lifecycle
19
- * guidance. Each account can have one setup; an existing setup returns HTTP 409.
20
- * Requires scope: `distributionTenant:create`. Requires API-key scope or current
21
- * OAuth user permission: distributionTenant:create
23
+ * guidance with `certificateFailure: null`. Each account can have one setup; an
24
+ * existing setup returns HTTP 409. Requires scope: `distributionTenant:create`.
25
+ * Requires API-key scope or current OAuth user permission:
26
+ * distributionTenant:create
22
27
  */
23
28
  create(options) {
24
29
  return this._client.post('/rest/v1/custom-domains', options);
@@ -41,9 +46,10 @@ export class CustomDomains extends APIResource {
41
46
  * Checks DNS and certificate status, applies any required certificate changes, and
42
47
  * returns updated `setupStatus` lifecycle guidance. Optional: reading the setup
43
48
  * status performs the same steps automatically. Use it to retry immediately after
44
- * configuring the required CNAME or after the certificate is issued. Requires
45
- * scope: `distributionTenant:update`. Requires API-key scope or current OAuth user
46
- * permission: distributionTenant:update
49
+ * configuring the required CNAME or after the certificate is issued. It does not
50
+ * restart a terminal failed certificate request; contact support after correcting
51
+ * the reported problem. Requires scope: `distributionTenant:update`. Requires
52
+ * API-key scope or current OAuth user permission: distributionTenant:update
47
53
  */
48
54
  reconcileCertificate(id, options) {
49
55
  return this._client.post(path `/rest/v1/custom-domains/${id}/certificate-validation`, options);
@@ -1 +1 @@
1
- {"version":3,"file":"custom-domains.mjs","sourceRoot":"","sources":["../src/resources/custom-domains.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;OAQG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CACL,EAAU,EACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;OAOG;IACH,oBAAoB,CAClB,EAAU,EACV,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,2BAA2B,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF"}
1
+ {"version":3,"file":"custom-domains.mjs","sourceRoot":"","sources":["../src/resources/custom-domains.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CACL,EAAU,EACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;OAQG;IACH,oBAAoB,CAClB,EAAU,EACV,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,2BAA2B,EAAE,yBAAyB,EAAE,OAAO,CAAC,CAAC;IAChG,CAAC;CACF"}
@@ -131,7 +131,7 @@ export interface DashboardListResponse {
131
131
  * Shared analytics filter, combined with Insight report filters or Funnel and
132
132
  * Journey entry filters. Null clears it; report-specific filters remain in effect.
133
133
  */
134
- filter?: DashboardListResponse.Filter;
134
+ filter?: DashboardListResponse.Filter | null;
135
135
  }
136
136
  export declare namespace DashboardListResponse {
137
137
  /**
@@ -234,13 +234,49 @@ export declare namespace DashboardListResponse {
234
234
  }
235
235
  namespace Filter {
236
236
  interface UnionMember0 {
237
- children: Array<unknown>;
237
+ children: Array<UnionMember0.UnionMember0 | UnionMember0.UnionMember1 | UnionMember0.UnionMember2>;
238
238
  kind: 'and' | 'or';
239
239
  }
240
+ namespace UnionMember0 {
241
+ interface UnionMember0 {
242
+ children: Array<unknown>;
243
+ kind: 'and' | 'or';
244
+ }
245
+ interface UnionMember1 {
246
+ child: unknown;
247
+ kind: 'not';
248
+ }
249
+ interface UnionMember2 {
250
+ kind: 'predicate';
251
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
252
+ property: string;
253
+ path?: Array<string>;
254
+ type?: 'string' | 'number' | 'boolean';
255
+ value?: string | number | boolean | Array<string | number | boolean>;
256
+ }
257
+ }
240
258
  interface UnionMember1 {
241
- child: unknown;
259
+ child: UnionMember1.UnionMember0 | UnionMember1.UnionMember1 | UnionMember1.UnionMember2;
242
260
  kind: 'not';
243
261
  }
262
+ namespace UnionMember1 {
263
+ interface UnionMember0 {
264
+ children: Array<unknown>;
265
+ kind: 'and' | 'or';
266
+ }
267
+ interface UnionMember1 {
268
+ child: unknown;
269
+ kind: 'not';
270
+ }
271
+ interface UnionMember2 {
272
+ kind: 'predicate';
273
+ operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';
274
+ property: string;
275
+ path?: Array<string>;
276
+ type?: 'string' | 'number' | 'boolean';
277
+ value?: string | number | boolean | Array<string | number | boolean>;
278
+ }
279
+ }
244
280
  interface UnionMember2 {
245
281
  kind: 'predicate';
246
282
  operator: 'eq' | 'neq' | 'gt' | 'gte' | 'lt' | 'lte' | 'contains' | 'not_contains' | 'contains_ci' | 'not_contains_ci' | 'starts_with' | 'ends_with' | 'in' | 'not_in' | 'exists' | 'missing' | 'is_null';