@oursprivacy/platform-sdk 1.53.0 → 1.55.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.
- package/CHANGELOG.md +14 -0
- package/client.d.mts +10 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -4
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/consent-settings.d.mts +5930 -442
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +5930 -442
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/custom-domains.d.mts +301 -0
- package/resources/custom-domains.d.mts.map +1 -0
- package/resources/custom-domains.d.ts +301 -0
- package/resources/custom-domains.d.ts.map +1 -0
- package/resources/custom-domains.js +55 -0
- package/resources/custom-domains.js.map +1 -0
- package/resources/custom-domains.mjs +51 -0
- package/resources/custom-domains.mjs.map +1 -0
- package/resources/data-governance.d.mts +75 -15
- package/resources/data-governance.d.mts.map +1 -1
- package/resources/data-governance.d.ts +75 -15
- package/resources/data-governance.d.ts.map +1 -1
- package/resources/default-mappings.d.mts +207 -3
- package/resources/default-mappings.d.mts.map +1 -1
- package/resources/default-mappings.d.ts +207 -3
- package/resources/default-mappings.d.ts.map +1 -1
- package/resources/destinations.d.mts +33 -13
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +33 -13
- package/resources/destinations.d.ts.map +1 -1
- package/resources/experiment-variants.d.mts +117 -14
- package/resources/experiment-variants.d.mts.map +1 -1
- package/resources/experiment-variants.d.ts +117 -14
- package/resources/experiment-variants.d.ts.map +1 -1
- package/resources/experiments.d.mts +3979 -253
- package/resources/experiments.d.mts.map +1 -1
- package/resources/experiments.d.ts +3979 -253
- package/resources/experiments.d.ts.map +1 -1
- package/resources/funnels.d.mts +648 -7
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +648 -7
- package/resources/funnels.d.ts.map +1 -1
- package/resources/index.d.mts +4 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/journey-flows.d.mts +580 -16
- package/resources/journey-flows.d.mts.map +1 -1
- package/resources/journey-flows.d.ts +580 -16
- package/resources/journey-flows.d.ts.map +1 -1
- package/resources/locations.d.mts +25 -5
- package/resources/locations.d.mts.map +1 -1
- package/resources/locations.d.ts +25 -5
- package/resources/locations.d.ts.map +1 -1
- package/resources/mappings.d.mts +540 -12
- package/resources/mappings.d.mts.map +1 -1
- package/resources/mappings.d.ts +540 -12
- package/resources/mappings.d.ts.map +1 -1
- package/resources/mappings.js +22 -0
- package/resources/mappings.js.map +1 -1
- package/resources/mappings.mjs +22 -0
- package/resources/mappings.mjs.map +1 -1
- package/resources/me.d.mts +29 -0
- package/resources/me.d.mts.map +1 -0
- package/resources/me.d.ts +29 -0
- package/resources/me.d.ts.map +1 -0
- package/resources/me.js +17 -0
- package/resources/me.js.map +1 -0
- package/resources/me.mjs +13 -0
- package/resources/me.mjs.map +1 -0
- package/resources/replay-settings.d.mts +117 -3
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +117 -3
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/session-replays.d.mts +5 -0
- package/resources/session-replays.d.mts.map +1 -1
- package/resources/session-replays.d.ts +5 -0
- package/resources/session-replays.d.ts.map +1 -1
- package/resources/short-links.d.mts +722 -10
- package/resources/short-links.d.mts.map +1 -1
- package/resources/short-links.d.ts +722 -10
- package/resources/short-links.d.ts.map +1 -1
- package/resources/sources.d.mts +86 -11
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +86 -11
- package/resources/sources.d.ts.map +1 -1
- package/resources/tag-manager-tags.d.mts +3 -1
- package/resources/tag-manager-tags.d.mts.map +1 -1
- package/resources/tag-manager-tags.d.ts +3 -1
- package/resources/tag-manager-tags.d.ts.map +1 -1
- package/resources/tag-manager-triggers.d.mts +3 -1
- package/resources/tag-manager-triggers.d.mts.map +1 -1
- package/resources/tag-manager-triggers.d.ts +3 -1
- package/resources/tag-manager-triggers.d.ts.map +1 -1
- package/resources/tag-manager-variables.d.mts +39 -13
- package/resources/tag-manager-variables.d.mts.map +1 -1
- package/resources/tag-manager-variables.d.ts +39 -13
- package/resources/tag-manager-variables.d.ts.map +1 -1
- package/resources/tag-managers.d.mts +14 -1
- package/resources/tag-managers.d.mts.map +1 -1
- package/resources/tag-managers.d.ts +14 -1
- package/resources/tag-managers.d.ts.map +1 -1
- package/resources/tag-managers.js +8 -0
- package/resources/tag-managers.js.map +1 -1
- package/resources/tag-managers.mjs +8 -0
- package/resources/tag-managers.mjs.map +1 -1
- package/resources/test-events.d.mts +67 -11
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +67 -11
- package/resources/test-events.d.ts.map +1 -1
- package/resources/versions.d.mts +85 -40
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +85 -40
- package/resources/versions.d.ts.map +1 -1
- package/resources/versions.js +8 -8
- package/resources/versions.mjs +8 -8
- package/resources/video-channels.d.mts +32 -4
- package/resources/video-channels.d.mts.map +1 -1
- package/resources/video-channels.d.ts +32 -4
- package/resources/video-channels.d.ts.map +1 -1
- package/src/client.ts +36 -0
- package/src/resources/consent-settings.ts +7287 -374
- package/src/resources/custom-domains.ts +450 -0
- package/src/resources/data-governance.ts +45 -15
- package/src/resources/default-mappings.ts +303 -3
- package/src/resources/destinations.ts +35 -8
- package/src/resources/experiment-variants.ts +131 -14
- package/src/resources/experiments.ts +8021 -443
- package/src/resources/funnels.ts +1355 -7
- package/src/resources/index.ts +15 -0
- package/src/resources/journey-flows.ts +1224 -16
- package/src/resources/locations.ts +35 -5
- package/src/resources/mappings.ts +794 -19
- package/src/resources/me.ts +37 -0
- package/src/resources/replay-settings.ts +138 -3
- package/src/resources/session-replays.ts +6 -0
- package/src/resources/short-links.ts +872 -10
- package/src/resources/sources.ts +96 -11
- package/src/resources/tag-manager-tags.ts +7 -1
- package/src/resources/tag-manager-triggers.ts +7 -1
- package/src/resources/tag-manager-variables.ts +91 -13
- package/src/resources/tag-managers.ts +25 -0
- package/src/resources/test-events.ts +47 -11
- package/src/resources/versions.ts +86 -40
- package/src/resources/video-channels.ts +44 -4
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class CustomDomains extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the account custom-domain setup, observed DNS values, and `setupStatus`
|
|
7
|
+
* lifecycle guidance, including readiness, blocking domains, and the next
|
|
8
|
+
* recommended action. Reading status also advances certificate setup: it starts
|
|
9
|
+
* certificate validation once DNS is configured and activates the certificate once
|
|
10
|
+
* it is issued. The setup is `null` until created. Requires scope:
|
|
11
|
+
* `distributionTenant:find`. Requires API-key scope or current OAuth user
|
|
12
|
+
* permission: distributionTenant:find
|
|
13
|
+
*/
|
|
14
|
+
status(options?: RequestOptions): APIPromise<CustomDomainStatusResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* 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
|
|
20
|
+
*/
|
|
21
|
+
create(options?: RequestOptions): APIPromise<CustomDomainCreateResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Replaces the full custom-domain list for this account and returns `setupStatus`
|
|
24
|
+
* lifecycle guidance. The setup `id` is the path identifier. Each account can have
|
|
25
|
+
* up to 10 custom domains. An empty `domains` list removes all custom domains.
|
|
26
|
+
* Duplicate domains are rejected. Domains under `oursprivacy.com` are rejected.
|
|
27
|
+
* Domain delivery and certificate settings are managed by Ours Privacy; DNS
|
|
28
|
+
* changes are customer-managed. Requires scope: `distributionTenant:update`.
|
|
29
|
+
* Requires API-key scope or current OAuth user permission:
|
|
30
|
+
* distributionTenant:update
|
|
31
|
+
*/
|
|
32
|
+
replace(id: string, body: CustomDomainReplaceParams, options?: RequestOptions): APIPromise<CustomDomainReplaceResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Checks DNS and certificate status, applies any required certificate changes, and
|
|
35
|
+
* returns updated `setupStatus` lifecycle guidance. Optional: reading the setup
|
|
36
|
+
* status performs the same steps automatically. Use it to retry immediately after
|
|
37
|
+
* configuring the required CNAME or after the certificate is issued. Requires
|
|
38
|
+
* scope: `distributionTenant:update`. Requires API-key scope or current OAuth user
|
|
39
|
+
* permission: distributionTenant:update
|
|
40
|
+
*/
|
|
41
|
+
reconcileCertificate(id: string, options?: RequestOptions): APIPromise<CustomDomainReconcileCertificateResponse>;
|
|
42
|
+
}
|
|
43
|
+
export interface CustomDomainStatusResponse {
|
|
44
|
+
setup: CustomDomainStatusResponse.Setup | null;
|
|
45
|
+
}
|
|
46
|
+
export declare namespace CustomDomainStatusResponse {
|
|
47
|
+
interface Setup {
|
|
48
|
+
/**
|
|
49
|
+
* Custom-domain setup ID.
|
|
50
|
+
*/
|
|
51
|
+
id: string;
|
|
52
|
+
/**
|
|
53
|
+
* Whether the managed certificate is attached to serve the custom domains.
|
|
54
|
+
*/
|
|
55
|
+
certificateActive: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Managed certificate issuance status.
|
|
58
|
+
*/
|
|
59
|
+
certificateStatus: string | null;
|
|
60
|
+
createdAt: string | null;
|
|
61
|
+
domains: Array<Setup.Domain>;
|
|
62
|
+
enabled: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Current custom-domain setup progress and next action.
|
|
65
|
+
*/
|
|
66
|
+
setupStatus: Setup.SetupStatus;
|
|
67
|
+
status: string | null;
|
|
68
|
+
updatedAt: string | null;
|
|
69
|
+
}
|
|
70
|
+
namespace Setup {
|
|
71
|
+
interface Domain {
|
|
72
|
+
/**
|
|
73
|
+
* Required CNAME target for this domain.
|
|
74
|
+
*/
|
|
75
|
+
cnameValue: string;
|
|
76
|
+
/**
|
|
77
|
+
* Whether DNS points to the required CNAME target.
|
|
78
|
+
*/
|
|
79
|
+
dnsStatus: 'configured' | 'notConfigured' | 'wrongEndpoint' | 'error' | null;
|
|
80
|
+
/**
|
|
81
|
+
* DNS value currently observed for this domain.
|
|
82
|
+
*/
|
|
83
|
+
dnsValue: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* Custom domain attached to the account.
|
|
86
|
+
*/
|
|
87
|
+
domain: string;
|
|
88
|
+
/**
|
|
89
|
+
* Domain attachment status.
|
|
90
|
+
*/
|
|
91
|
+
status: 'active' | 'inactive';
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Current custom-domain setup progress and next action.
|
|
95
|
+
*/
|
|
96
|
+
interface SetupStatus {
|
|
97
|
+
blockingDomains: Array<string>;
|
|
98
|
+
isReady: boolean;
|
|
99
|
+
message: string;
|
|
100
|
+
nextAction: 'ADD_DOMAINS' | 'CONFIGURE_DNS' | 'RECONCILE_CERTIFICATE' | 'WAIT' | 'CONTACT_SUPPORT' | 'NONE';
|
|
101
|
+
state: 'NO_DOMAINS' | 'DNS_REQUIRED' | 'CERTIFICATE_VALIDATION_REQUIRED' | 'CERTIFICATE_PENDING' | 'CERTIFICATE_ACTIVATION_REQUIRED' | 'DEPLOYING' | 'READY' | 'CERTIFICATE_FAILED' | 'DISABLED';
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
export interface CustomDomainCreateResponse {
|
|
106
|
+
setup: CustomDomainCreateResponse.Setup;
|
|
107
|
+
}
|
|
108
|
+
export declare namespace CustomDomainCreateResponse {
|
|
109
|
+
interface Setup {
|
|
110
|
+
/**
|
|
111
|
+
* Custom-domain setup ID.
|
|
112
|
+
*/
|
|
113
|
+
id: string;
|
|
114
|
+
/**
|
|
115
|
+
* Whether the managed certificate is attached to serve the custom domains.
|
|
116
|
+
*/
|
|
117
|
+
certificateActive: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Managed certificate issuance status.
|
|
120
|
+
*/
|
|
121
|
+
certificateStatus: string | null;
|
|
122
|
+
createdAt: string | null;
|
|
123
|
+
domains: Array<Setup.Domain>;
|
|
124
|
+
enabled: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Current custom-domain setup progress and next action.
|
|
127
|
+
*/
|
|
128
|
+
setupStatus: Setup.SetupStatus;
|
|
129
|
+
status: string | null;
|
|
130
|
+
updatedAt: string | null;
|
|
131
|
+
}
|
|
132
|
+
namespace Setup {
|
|
133
|
+
interface Domain {
|
|
134
|
+
/**
|
|
135
|
+
* Required CNAME target for this domain.
|
|
136
|
+
*/
|
|
137
|
+
cnameValue: string;
|
|
138
|
+
/**
|
|
139
|
+
* Whether DNS points to the required CNAME target.
|
|
140
|
+
*/
|
|
141
|
+
dnsStatus: 'configured' | 'notConfigured' | 'wrongEndpoint' | 'error' | null;
|
|
142
|
+
/**
|
|
143
|
+
* DNS value currently observed for this domain.
|
|
144
|
+
*/
|
|
145
|
+
dnsValue: string | null;
|
|
146
|
+
/**
|
|
147
|
+
* Custom domain attached to the account.
|
|
148
|
+
*/
|
|
149
|
+
domain: string;
|
|
150
|
+
/**
|
|
151
|
+
* Domain attachment status.
|
|
152
|
+
*/
|
|
153
|
+
status: 'active' | 'inactive';
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Current custom-domain setup progress and next action.
|
|
157
|
+
*/
|
|
158
|
+
interface SetupStatus {
|
|
159
|
+
blockingDomains: Array<string>;
|
|
160
|
+
isReady: boolean;
|
|
161
|
+
message: string;
|
|
162
|
+
nextAction: 'ADD_DOMAINS' | 'CONFIGURE_DNS' | 'RECONCILE_CERTIFICATE' | 'WAIT' | 'CONTACT_SUPPORT' | 'NONE';
|
|
163
|
+
state: 'NO_DOMAINS' | 'DNS_REQUIRED' | 'CERTIFICATE_VALIDATION_REQUIRED' | 'CERTIFICATE_PENDING' | 'CERTIFICATE_ACTIVATION_REQUIRED' | 'DEPLOYING' | 'READY' | 'CERTIFICATE_FAILED' | 'DISABLED';
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
export interface CustomDomainReplaceResponse {
|
|
168
|
+
setup: CustomDomainReplaceResponse.Setup | null;
|
|
169
|
+
}
|
|
170
|
+
export declare namespace CustomDomainReplaceResponse {
|
|
171
|
+
interface Setup {
|
|
172
|
+
/**
|
|
173
|
+
* Custom-domain setup ID.
|
|
174
|
+
*/
|
|
175
|
+
id: string;
|
|
176
|
+
/**
|
|
177
|
+
* Whether the managed certificate is attached to serve the custom domains.
|
|
178
|
+
*/
|
|
179
|
+
certificateActive: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* Managed certificate issuance status.
|
|
182
|
+
*/
|
|
183
|
+
certificateStatus: string | null;
|
|
184
|
+
createdAt: string | null;
|
|
185
|
+
domains: Array<Setup.Domain>;
|
|
186
|
+
enabled: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Current custom-domain setup progress and next action.
|
|
189
|
+
*/
|
|
190
|
+
setupStatus: Setup.SetupStatus;
|
|
191
|
+
status: string | null;
|
|
192
|
+
updatedAt: string | null;
|
|
193
|
+
}
|
|
194
|
+
namespace Setup {
|
|
195
|
+
interface Domain {
|
|
196
|
+
/**
|
|
197
|
+
* Required CNAME target for this domain.
|
|
198
|
+
*/
|
|
199
|
+
cnameValue: string;
|
|
200
|
+
/**
|
|
201
|
+
* Whether DNS points to the required CNAME target.
|
|
202
|
+
*/
|
|
203
|
+
dnsStatus: 'configured' | 'notConfigured' | 'wrongEndpoint' | 'error' | null;
|
|
204
|
+
/**
|
|
205
|
+
* DNS value currently observed for this domain.
|
|
206
|
+
*/
|
|
207
|
+
dnsValue: string | null;
|
|
208
|
+
/**
|
|
209
|
+
* Custom domain attached to the account.
|
|
210
|
+
*/
|
|
211
|
+
domain: string;
|
|
212
|
+
/**
|
|
213
|
+
* Domain attachment status.
|
|
214
|
+
*/
|
|
215
|
+
status: 'active' | 'inactive';
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Current custom-domain setup progress and next action.
|
|
219
|
+
*/
|
|
220
|
+
interface SetupStatus {
|
|
221
|
+
blockingDomains: Array<string>;
|
|
222
|
+
isReady: boolean;
|
|
223
|
+
message: string;
|
|
224
|
+
nextAction: 'ADD_DOMAINS' | 'CONFIGURE_DNS' | 'RECONCILE_CERTIFICATE' | 'WAIT' | 'CONTACT_SUPPORT' | 'NONE';
|
|
225
|
+
state: 'NO_DOMAINS' | 'DNS_REQUIRED' | 'CERTIFICATE_VALIDATION_REQUIRED' | 'CERTIFICATE_PENDING' | 'CERTIFICATE_ACTIVATION_REQUIRED' | 'DEPLOYING' | 'READY' | 'CERTIFICATE_FAILED' | 'DISABLED';
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
export interface CustomDomainReconcileCertificateResponse {
|
|
230
|
+
setup: CustomDomainReconcileCertificateResponse.Setup | null;
|
|
231
|
+
}
|
|
232
|
+
export declare namespace CustomDomainReconcileCertificateResponse {
|
|
233
|
+
interface Setup {
|
|
234
|
+
/**
|
|
235
|
+
* Custom-domain setup ID.
|
|
236
|
+
*/
|
|
237
|
+
id: string;
|
|
238
|
+
/**
|
|
239
|
+
* Whether the managed certificate is attached to serve the custom domains.
|
|
240
|
+
*/
|
|
241
|
+
certificateActive: boolean;
|
|
242
|
+
/**
|
|
243
|
+
* Managed certificate issuance status.
|
|
244
|
+
*/
|
|
245
|
+
certificateStatus: string | null;
|
|
246
|
+
createdAt: string | null;
|
|
247
|
+
domains: Array<Setup.Domain>;
|
|
248
|
+
enabled: boolean;
|
|
249
|
+
/**
|
|
250
|
+
* Current custom-domain setup progress and next action.
|
|
251
|
+
*/
|
|
252
|
+
setupStatus: Setup.SetupStatus;
|
|
253
|
+
status: string | null;
|
|
254
|
+
updatedAt: string | null;
|
|
255
|
+
}
|
|
256
|
+
namespace Setup {
|
|
257
|
+
interface Domain {
|
|
258
|
+
/**
|
|
259
|
+
* Required CNAME target for this domain.
|
|
260
|
+
*/
|
|
261
|
+
cnameValue: string;
|
|
262
|
+
/**
|
|
263
|
+
* Whether DNS points to the required CNAME target.
|
|
264
|
+
*/
|
|
265
|
+
dnsStatus: 'configured' | 'notConfigured' | 'wrongEndpoint' | 'error' | null;
|
|
266
|
+
/**
|
|
267
|
+
* DNS value currently observed for this domain.
|
|
268
|
+
*/
|
|
269
|
+
dnsValue: string | null;
|
|
270
|
+
/**
|
|
271
|
+
* Custom domain attached to the account.
|
|
272
|
+
*/
|
|
273
|
+
domain: string;
|
|
274
|
+
/**
|
|
275
|
+
* Domain attachment status.
|
|
276
|
+
*/
|
|
277
|
+
status: 'active' | 'inactive';
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Current custom-domain setup progress and next action.
|
|
281
|
+
*/
|
|
282
|
+
interface SetupStatus {
|
|
283
|
+
blockingDomains: Array<string>;
|
|
284
|
+
isReady: boolean;
|
|
285
|
+
message: string;
|
|
286
|
+
nextAction: 'ADD_DOMAINS' | 'CONFIGURE_DNS' | 'RECONCILE_CERTIFICATE' | 'WAIT' | 'CONTACT_SUPPORT' | 'NONE';
|
|
287
|
+
state: 'NO_DOMAINS' | 'DNS_REQUIRED' | 'CERTIFICATE_VALIDATION_REQUIRED' | 'CERTIFICATE_PENDING' | 'CERTIFICATE_ACTIVATION_REQUIRED' | 'DEPLOYING' | 'READY' | 'CERTIFICATE_FAILED' | 'DISABLED';
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
export interface CustomDomainReplaceParams {
|
|
292
|
+
/**
|
|
293
|
+
* Replacement list of up to 10 custom domains. An empty list removes all custom
|
|
294
|
+
* domains. Domains under oursprivacy.com are rejected.
|
|
295
|
+
*/
|
|
296
|
+
domains: Array<string>;
|
|
297
|
+
}
|
|
298
|
+
export declare namespace CustomDomains {
|
|
299
|
+
export { type CustomDomainStatusResponse as CustomDomainStatusResponse, type CustomDomainCreateResponse as CustomDomainCreateResponse, type CustomDomainReplaceResponse as CustomDomainReplaceResponse, type CustomDomainReconcileCertificateResponse as CustomDomainReconcileCertificateResponse, type CustomDomainReplaceParams as CustomDomainReplaceParams, };
|
|
300
|
+
}
|
|
301
|
+
//# sourceMappingURL=custom-domains.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-domains.d.mts","sourceRoot":"","sources":["../src/resources/custom-domains.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;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;;;;;;;;;OASG;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,KAA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C;YAElG,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;;;OAGG;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"}
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class CustomDomains extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Returns the account custom-domain setup, observed DNS values, and `setupStatus`
|
|
7
|
+
* lifecycle guidance, including readiness, blocking domains, and the next
|
|
8
|
+
* recommended action. Reading status also advances certificate setup: it starts
|
|
9
|
+
* certificate validation once DNS is configured and activates the certificate once
|
|
10
|
+
* it is issued. The setup is `null` until created. Requires scope:
|
|
11
|
+
* `distributionTenant:find`. Requires API-key scope or current OAuth user
|
|
12
|
+
* permission: distributionTenant:find
|
|
13
|
+
*/
|
|
14
|
+
status(options?: RequestOptions): APIPromise<CustomDomainStatusResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* 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
|
|
20
|
+
*/
|
|
21
|
+
create(options?: RequestOptions): APIPromise<CustomDomainCreateResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Replaces the full custom-domain list for this account and returns `setupStatus`
|
|
24
|
+
* lifecycle guidance. The setup `id` is the path identifier. Each account can have
|
|
25
|
+
* up to 10 custom domains. An empty `domains` list removes all custom domains.
|
|
26
|
+
* Duplicate domains are rejected. Domains under `oursprivacy.com` are rejected.
|
|
27
|
+
* Domain delivery and certificate settings are managed by Ours Privacy; DNS
|
|
28
|
+
* changes are customer-managed. Requires scope: `distributionTenant:update`.
|
|
29
|
+
* Requires API-key scope or current OAuth user permission:
|
|
30
|
+
* distributionTenant:update
|
|
31
|
+
*/
|
|
32
|
+
replace(id: string, body: CustomDomainReplaceParams, options?: RequestOptions): APIPromise<CustomDomainReplaceResponse>;
|
|
33
|
+
/**
|
|
34
|
+
* Checks DNS and certificate status, applies any required certificate changes, and
|
|
35
|
+
* returns updated `setupStatus` lifecycle guidance. Optional: reading the setup
|
|
36
|
+
* status performs the same steps automatically. Use it to retry immediately after
|
|
37
|
+
* configuring the required CNAME or after the certificate is issued. Requires
|
|
38
|
+
* scope: `distributionTenant:update`. Requires API-key scope or current OAuth user
|
|
39
|
+
* permission: distributionTenant:update
|
|
40
|
+
*/
|
|
41
|
+
reconcileCertificate(id: string, options?: RequestOptions): APIPromise<CustomDomainReconcileCertificateResponse>;
|
|
42
|
+
}
|
|
43
|
+
export interface CustomDomainStatusResponse {
|
|
44
|
+
setup: CustomDomainStatusResponse.Setup | null;
|
|
45
|
+
}
|
|
46
|
+
export declare namespace CustomDomainStatusResponse {
|
|
47
|
+
interface Setup {
|
|
48
|
+
/**
|
|
49
|
+
* Custom-domain setup ID.
|
|
50
|
+
*/
|
|
51
|
+
id: string;
|
|
52
|
+
/**
|
|
53
|
+
* Whether the managed certificate is attached to serve the custom domains.
|
|
54
|
+
*/
|
|
55
|
+
certificateActive: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Managed certificate issuance status.
|
|
58
|
+
*/
|
|
59
|
+
certificateStatus: string | null;
|
|
60
|
+
createdAt: string | null;
|
|
61
|
+
domains: Array<Setup.Domain>;
|
|
62
|
+
enabled: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Current custom-domain setup progress and next action.
|
|
65
|
+
*/
|
|
66
|
+
setupStatus: Setup.SetupStatus;
|
|
67
|
+
status: string | null;
|
|
68
|
+
updatedAt: string | null;
|
|
69
|
+
}
|
|
70
|
+
namespace Setup {
|
|
71
|
+
interface Domain {
|
|
72
|
+
/**
|
|
73
|
+
* Required CNAME target for this domain.
|
|
74
|
+
*/
|
|
75
|
+
cnameValue: string;
|
|
76
|
+
/**
|
|
77
|
+
* Whether DNS points to the required CNAME target.
|
|
78
|
+
*/
|
|
79
|
+
dnsStatus: 'configured' | 'notConfigured' | 'wrongEndpoint' | 'error' | null;
|
|
80
|
+
/**
|
|
81
|
+
* DNS value currently observed for this domain.
|
|
82
|
+
*/
|
|
83
|
+
dnsValue: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* Custom domain attached to the account.
|
|
86
|
+
*/
|
|
87
|
+
domain: string;
|
|
88
|
+
/**
|
|
89
|
+
* Domain attachment status.
|
|
90
|
+
*/
|
|
91
|
+
status: 'active' | 'inactive';
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Current custom-domain setup progress and next action.
|
|
95
|
+
*/
|
|
96
|
+
interface SetupStatus {
|
|
97
|
+
blockingDomains: Array<string>;
|
|
98
|
+
isReady: boolean;
|
|
99
|
+
message: string;
|
|
100
|
+
nextAction: 'ADD_DOMAINS' | 'CONFIGURE_DNS' | 'RECONCILE_CERTIFICATE' | 'WAIT' | 'CONTACT_SUPPORT' | 'NONE';
|
|
101
|
+
state: 'NO_DOMAINS' | 'DNS_REQUIRED' | 'CERTIFICATE_VALIDATION_REQUIRED' | 'CERTIFICATE_PENDING' | 'CERTIFICATE_ACTIVATION_REQUIRED' | 'DEPLOYING' | 'READY' | 'CERTIFICATE_FAILED' | 'DISABLED';
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
export interface CustomDomainCreateResponse {
|
|
106
|
+
setup: CustomDomainCreateResponse.Setup;
|
|
107
|
+
}
|
|
108
|
+
export declare namespace CustomDomainCreateResponse {
|
|
109
|
+
interface Setup {
|
|
110
|
+
/**
|
|
111
|
+
* Custom-domain setup ID.
|
|
112
|
+
*/
|
|
113
|
+
id: string;
|
|
114
|
+
/**
|
|
115
|
+
* Whether the managed certificate is attached to serve the custom domains.
|
|
116
|
+
*/
|
|
117
|
+
certificateActive: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Managed certificate issuance status.
|
|
120
|
+
*/
|
|
121
|
+
certificateStatus: string | null;
|
|
122
|
+
createdAt: string | null;
|
|
123
|
+
domains: Array<Setup.Domain>;
|
|
124
|
+
enabled: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Current custom-domain setup progress and next action.
|
|
127
|
+
*/
|
|
128
|
+
setupStatus: Setup.SetupStatus;
|
|
129
|
+
status: string | null;
|
|
130
|
+
updatedAt: string | null;
|
|
131
|
+
}
|
|
132
|
+
namespace Setup {
|
|
133
|
+
interface Domain {
|
|
134
|
+
/**
|
|
135
|
+
* Required CNAME target for this domain.
|
|
136
|
+
*/
|
|
137
|
+
cnameValue: string;
|
|
138
|
+
/**
|
|
139
|
+
* Whether DNS points to the required CNAME target.
|
|
140
|
+
*/
|
|
141
|
+
dnsStatus: 'configured' | 'notConfigured' | 'wrongEndpoint' | 'error' | null;
|
|
142
|
+
/**
|
|
143
|
+
* DNS value currently observed for this domain.
|
|
144
|
+
*/
|
|
145
|
+
dnsValue: string | null;
|
|
146
|
+
/**
|
|
147
|
+
* Custom domain attached to the account.
|
|
148
|
+
*/
|
|
149
|
+
domain: string;
|
|
150
|
+
/**
|
|
151
|
+
* Domain attachment status.
|
|
152
|
+
*/
|
|
153
|
+
status: 'active' | 'inactive';
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Current custom-domain setup progress and next action.
|
|
157
|
+
*/
|
|
158
|
+
interface SetupStatus {
|
|
159
|
+
blockingDomains: Array<string>;
|
|
160
|
+
isReady: boolean;
|
|
161
|
+
message: string;
|
|
162
|
+
nextAction: 'ADD_DOMAINS' | 'CONFIGURE_DNS' | 'RECONCILE_CERTIFICATE' | 'WAIT' | 'CONTACT_SUPPORT' | 'NONE';
|
|
163
|
+
state: 'NO_DOMAINS' | 'DNS_REQUIRED' | 'CERTIFICATE_VALIDATION_REQUIRED' | 'CERTIFICATE_PENDING' | 'CERTIFICATE_ACTIVATION_REQUIRED' | 'DEPLOYING' | 'READY' | 'CERTIFICATE_FAILED' | 'DISABLED';
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
export interface CustomDomainReplaceResponse {
|
|
168
|
+
setup: CustomDomainReplaceResponse.Setup | null;
|
|
169
|
+
}
|
|
170
|
+
export declare namespace CustomDomainReplaceResponse {
|
|
171
|
+
interface Setup {
|
|
172
|
+
/**
|
|
173
|
+
* Custom-domain setup ID.
|
|
174
|
+
*/
|
|
175
|
+
id: string;
|
|
176
|
+
/**
|
|
177
|
+
* Whether the managed certificate is attached to serve the custom domains.
|
|
178
|
+
*/
|
|
179
|
+
certificateActive: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* Managed certificate issuance status.
|
|
182
|
+
*/
|
|
183
|
+
certificateStatus: string | null;
|
|
184
|
+
createdAt: string | null;
|
|
185
|
+
domains: Array<Setup.Domain>;
|
|
186
|
+
enabled: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Current custom-domain setup progress and next action.
|
|
189
|
+
*/
|
|
190
|
+
setupStatus: Setup.SetupStatus;
|
|
191
|
+
status: string | null;
|
|
192
|
+
updatedAt: string | null;
|
|
193
|
+
}
|
|
194
|
+
namespace Setup {
|
|
195
|
+
interface Domain {
|
|
196
|
+
/**
|
|
197
|
+
* Required CNAME target for this domain.
|
|
198
|
+
*/
|
|
199
|
+
cnameValue: string;
|
|
200
|
+
/**
|
|
201
|
+
* Whether DNS points to the required CNAME target.
|
|
202
|
+
*/
|
|
203
|
+
dnsStatus: 'configured' | 'notConfigured' | 'wrongEndpoint' | 'error' | null;
|
|
204
|
+
/**
|
|
205
|
+
* DNS value currently observed for this domain.
|
|
206
|
+
*/
|
|
207
|
+
dnsValue: string | null;
|
|
208
|
+
/**
|
|
209
|
+
* Custom domain attached to the account.
|
|
210
|
+
*/
|
|
211
|
+
domain: string;
|
|
212
|
+
/**
|
|
213
|
+
* Domain attachment status.
|
|
214
|
+
*/
|
|
215
|
+
status: 'active' | 'inactive';
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Current custom-domain setup progress and next action.
|
|
219
|
+
*/
|
|
220
|
+
interface SetupStatus {
|
|
221
|
+
blockingDomains: Array<string>;
|
|
222
|
+
isReady: boolean;
|
|
223
|
+
message: string;
|
|
224
|
+
nextAction: 'ADD_DOMAINS' | 'CONFIGURE_DNS' | 'RECONCILE_CERTIFICATE' | 'WAIT' | 'CONTACT_SUPPORT' | 'NONE';
|
|
225
|
+
state: 'NO_DOMAINS' | 'DNS_REQUIRED' | 'CERTIFICATE_VALIDATION_REQUIRED' | 'CERTIFICATE_PENDING' | 'CERTIFICATE_ACTIVATION_REQUIRED' | 'DEPLOYING' | 'READY' | 'CERTIFICATE_FAILED' | 'DISABLED';
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
export interface CustomDomainReconcileCertificateResponse {
|
|
230
|
+
setup: CustomDomainReconcileCertificateResponse.Setup | null;
|
|
231
|
+
}
|
|
232
|
+
export declare namespace CustomDomainReconcileCertificateResponse {
|
|
233
|
+
interface Setup {
|
|
234
|
+
/**
|
|
235
|
+
* Custom-domain setup ID.
|
|
236
|
+
*/
|
|
237
|
+
id: string;
|
|
238
|
+
/**
|
|
239
|
+
* Whether the managed certificate is attached to serve the custom domains.
|
|
240
|
+
*/
|
|
241
|
+
certificateActive: boolean;
|
|
242
|
+
/**
|
|
243
|
+
* Managed certificate issuance status.
|
|
244
|
+
*/
|
|
245
|
+
certificateStatus: string | null;
|
|
246
|
+
createdAt: string | null;
|
|
247
|
+
domains: Array<Setup.Domain>;
|
|
248
|
+
enabled: boolean;
|
|
249
|
+
/**
|
|
250
|
+
* Current custom-domain setup progress and next action.
|
|
251
|
+
*/
|
|
252
|
+
setupStatus: Setup.SetupStatus;
|
|
253
|
+
status: string | null;
|
|
254
|
+
updatedAt: string | null;
|
|
255
|
+
}
|
|
256
|
+
namespace Setup {
|
|
257
|
+
interface Domain {
|
|
258
|
+
/**
|
|
259
|
+
* Required CNAME target for this domain.
|
|
260
|
+
*/
|
|
261
|
+
cnameValue: string;
|
|
262
|
+
/**
|
|
263
|
+
* Whether DNS points to the required CNAME target.
|
|
264
|
+
*/
|
|
265
|
+
dnsStatus: 'configured' | 'notConfigured' | 'wrongEndpoint' | 'error' | null;
|
|
266
|
+
/**
|
|
267
|
+
* DNS value currently observed for this domain.
|
|
268
|
+
*/
|
|
269
|
+
dnsValue: string | null;
|
|
270
|
+
/**
|
|
271
|
+
* Custom domain attached to the account.
|
|
272
|
+
*/
|
|
273
|
+
domain: string;
|
|
274
|
+
/**
|
|
275
|
+
* Domain attachment status.
|
|
276
|
+
*/
|
|
277
|
+
status: 'active' | 'inactive';
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Current custom-domain setup progress and next action.
|
|
281
|
+
*/
|
|
282
|
+
interface SetupStatus {
|
|
283
|
+
blockingDomains: Array<string>;
|
|
284
|
+
isReady: boolean;
|
|
285
|
+
message: string;
|
|
286
|
+
nextAction: 'ADD_DOMAINS' | 'CONFIGURE_DNS' | 'RECONCILE_CERTIFICATE' | 'WAIT' | 'CONTACT_SUPPORT' | 'NONE';
|
|
287
|
+
state: 'NO_DOMAINS' | 'DNS_REQUIRED' | 'CERTIFICATE_VALIDATION_REQUIRED' | 'CERTIFICATE_PENDING' | 'CERTIFICATE_ACTIVATION_REQUIRED' | 'DEPLOYING' | 'READY' | 'CERTIFICATE_FAILED' | 'DISABLED';
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
export interface CustomDomainReplaceParams {
|
|
292
|
+
/**
|
|
293
|
+
* Replacement list of up to 10 custom domains. An empty list removes all custom
|
|
294
|
+
* domains. Domains under oursprivacy.com are rejected.
|
|
295
|
+
*/
|
|
296
|
+
domains: Array<string>;
|
|
297
|
+
}
|
|
298
|
+
export declare namespace CustomDomains {
|
|
299
|
+
export { type CustomDomainStatusResponse as CustomDomainStatusResponse, type CustomDomainCreateResponse as CustomDomainCreateResponse, type CustomDomainReplaceResponse as CustomDomainReplaceResponse, type CustomDomainReconcileCertificateResponse as CustomDomainReconcileCertificateResponse, type CustomDomainReplaceParams as CustomDomainReplaceParams, };
|
|
300
|
+
}
|
|
301
|
+
//# sourceMappingURL=custom-domains.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;OASG;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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AE,MAAM,CAAC;YAEhB,UAAU,EACR,aAAa,GAAG,eAAe,GAAG,uBAAuB,GAAG,MAAM,GAAG,iBAAiB,GAAG,MAAM,CAAC;YAElG,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;;;OAGG;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"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CustomDomains = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
class CustomDomains extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns the account custom-domain setup, observed DNS values, and `setupStatus`
|
|
10
|
+
* lifecycle guidance, including readiness, blocking domains, and the next
|
|
11
|
+
* recommended action. Reading status also advances certificate setup: it starts
|
|
12
|
+
* certificate validation once DNS is configured and activates the certificate once
|
|
13
|
+
* it is issued. The setup is `null` until created. Requires scope:
|
|
14
|
+
* `distributionTenant:find`. Requires API-key scope or current OAuth user
|
|
15
|
+
* permission: distributionTenant:find
|
|
16
|
+
*/
|
|
17
|
+
status(options) {
|
|
18
|
+
return this._client.get('/rest/v1/custom-domains/setup', options);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 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
|
|
25
|
+
*/
|
|
26
|
+
create(options) {
|
|
27
|
+
return this._client.post('/rest/v1/custom-domains', options);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Replaces the full custom-domain list for this account and returns `setupStatus`
|
|
31
|
+
* lifecycle guidance. The setup `id` is the path identifier. Each account can have
|
|
32
|
+
* up to 10 custom domains. An empty `domains` list removes all custom domains.
|
|
33
|
+
* Duplicate domains are rejected. Domains under `oursprivacy.com` are rejected.
|
|
34
|
+
* Domain delivery and certificate settings are managed by Ours Privacy; DNS
|
|
35
|
+
* changes are customer-managed. Requires scope: `distributionTenant:update`.
|
|
36
|
+
* Requires API-key scope or current OAuth user permission:
|
|
37
|
+
* distributionTenant:update
|
|
38
|
+
*/
|
|
39
|
+
replace(id, body, options) {
|
|
40
|
+
return this._client.put((0, path_1.path) `/rest/v1/custom-domains/${id}`, { body, ...options });
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Checks DNS and certificate status, applies any required certificate changes, and
|
|
44
|
+
* returns updated `setupStatus` lifecycle guidance. Optional: reading the setup
|
|
45
|
+
* status performs the same steps automatically. Use it to retry immediately after
|
|
46
|
+
* configuring the required CNAME or after the certificate is issued. Requires
|
|
47
|
+
* scope: `distributionTenant:update`. Requires API-key scope or current OAuth user
|
|
48
|
+
* permission: distributionTenant:update
|
|
49
|
+
*/
|
|
50
|
+
reconcileCertificate(id, options) {
|
|
51
|
+
return this._client.post((0, path_1.path) `/rest/v1/custom-domains/${id}/certificate-validation`, options);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.CustomDomains = CustomDomains;
|
|
55
|
+
//# sourceMappingURL=custom-domains.js.map
|