@amerged/ohmyhost-cli 0.1.36 → 0.1.38
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/README.md +1 -1
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/bin.js +1 -1
- package/dist/{chunk-LU7ONYZG.js → chunk-EWKJGJQU.js} +1379 -258
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/apps/product-cli/package.json +2 -2
- package/src/apps/product-cli/src/cli.ts +37 -1
- package/src/apps/product-cli/src/command.ts +228 -2
- package/src/apps/product-cli/src/composition.ts +4 -0
- package/src/apps/product-cli/src/product-api.ts +11 -1
- package/src/apps/product-cli/src/repository-init.ts +181 -9
- package/src/packages/contracts/package.json +6 -1
- package/src/packages/contracts/src/framework-admission-corpus.ts +15 -18
- package/src/packages/contracts/src/framework-build-script.mjs +10 -3
- package/src/packages/contracts/src/index.ts +3 -0
- package/src/packages/contracts/src/problem-policy.ts +2 -2
- package/src/packages/contracts/src/shared-mail.ts +236 -0
- package/src/packages/sdk-ts/package.json +2 -2
- package/src/packages/sdk-ts/src/generated/index.ts +112 -0
- package/src/packages/sdk-ts/src/generated/sdk.gen.ts +870 -0
- package/src/packages/sdk-ts/src/generated/shared-mail-response.ts +238 -0
- package/src/packages/sdk-ts/src/generated/types.gen.ts +1207 -0
- package/src/packages/sdk-ts/src/index.ts +2 -0
- package/src/packages/sdk-ts/src/shared-mail-response.ts +1 -0
- package/src/packages/sdk-ts/src/shared-mail.ts +225 -0
- package/src/packages/workos-auth-contracts/package.json +1 -1
|
@@ -11,8 +11,13 @@ import {
|
|
|
11
11
|
type TDataShape,
|
|
12
12
|
} from "./client/index.js";
|
|
13
13
|
import type {
|
|
14
|
+
ApplicationDomainIdentityRequest,
|
|
14
15
|
ApplyPaidProjectDomainErrors,
|
|
15
16
|
ApplyPaidProjectDomainResponses,
|
|
17
|
+
AuthorizeApplicationDomainIdentityDnsErrors,
|
|
18
|
+
AuthorizeApplicationDomainIdentityDnsResponses,
|
|
19
|
+
AuthorizeWorkspaceMailDomainDnsErrors,
|
|
20
|
+
AuthorizeWorkspaceMailDomainDnsResponses,
|
|
16
21
|
ChangeDatabaseComputeErrors,
|
|
17
22
|
ChangeDatabaseComputeResponses,
|
|
18
23
|
ChangeManagedSourceErrors,
|
|
@@ -66,6 +71,11 @@ import type {
|
|
|
66
71
|
CreateProjectResponses,
|
|
67
72
|
CreateUserApiKeyErrors,
|
|
68
73
|
CreateUserApiKeyResponses,
|
|
74
|
+
CreateWorkspaceMailDomainErrors,
|
|
75
|
+
CreateWorkspaceMailDomainRequest,
|
|
76
|
+
CreateWorkspaceMailDomainResponses,
|
|
77
|
+
DeclareApplicationDomainIdentityErrors,
|
|
78
|
+
DeclareApplicationDomainIdentityResponses,
|
|
69
79
|
DeleteEnvironmentSecretErrors,
|
|
70
80
|
DeleteEnvironmentSecretResponses,
|
|
71
81
|
DeleteManagedMailDomainErrors,
|
|
@@ -74,6 +84,8 @@ import type {
|
|
|
74
84
|
DeletePaidProjectDomainResponses,
|
|
75
85
|
DeleteProjectErrors,
|
|
76
86
|
DeleteProjectResponses,
|
|
87
|
+
DetachProjectMailDomainBindingErrors,
|
|
88
|
+
DetachProjectMailDomainBindingResponses,
|
|
77
89
|
DiffManagedSourceErrors,
|
|
78
90
|
DiffManagedSourceResponses,
|
|
79
91
|
DisableManagedMailReceivingErrors,
|
|
@@ -83,6 +95,10 @@ import type {
|
|
|
83
95
|
FeedbackSubmission,
|
|
84
96
|
GetAccountProfileErrors,
|
|
85
97
|
GetAccountProfileResponses,
|
|
98
|
+
GetApplicationDomainIdentityDnsAuthorizationErrors,
|
|
99
|
+
GetApplicationDomainIdentityDnsAuthorizationResponses,
|
|
100
|
+
GetApplicationDomainIdentityErrors,
|
|
101
|
+
GetApplicationDomainIdentityResponses,
|
|
86
102
|
GetBillingCheckoutErrors,
|
|
87
103
|
GetBillingCheckoutResponses,
|
|
88
104
|
GetBillingRechargeErrors,
|
|
@@ -132,6 +148,8 @@ import type {
|
|
|
132
148
|
GetProjectExportResponses,
|
|
133
149
|
GetProjectHandleAvailabilityErrors,
|
|
134
150
|
GetProjectHandleAvailabilityResponses,
|
|
151
|
+
GetProjectMailDomainBindingErrors,
|
|
152
|
+
GetProjectMailDomainBindingResponses,
|
|
135
153
|
GetProjectPoweredByFlagErrors,
|
|
136
154
|
GetProjectPoweredByFlagResponses,
|
|
137
155
|
GetProjectResponses,
|
|
@@ -143,6 +161,10 @@ import type {
|
|
|
143
161
|
GetProjectStatusResponses,
|
|
144
162
|
GetPublicDeploymentStatsErrors,
|
|
145
163
|
GetPublicDeploymentStatsResponses,
|
|
164
|
+
GetWorkspaceMailDomainDnsAuthorizationErrors,
|
|
165
|
+
GetWorkspaceMailDomainDnsAuthorizationResponses,
|
|
166
|
+
GetWorkspaceMailDomainErrors,
|
|
167
|
+
GetWorkspaceMailDomainResponses,
|
|
146
168
|
InitializeManagedSourceErrors,
|
|
147
169
|
InitializeManagedSourceResponses,
|
|
148
170
|
LinkProjectSourceErrors,
|
|
@@ -168,6 +190,9 @@ import type {
|
|
|
168
190
|
ListProjectsResponses,
|
|
169
191
|
ListUserApiKeysErrors,
|
|
170
192
|
ListUserApiKeysResponses,
|
|
193
|
+
ListWorkspaceMailDomainsErrors,
|
|
194
|
+
ListWorkspaceMailDomainsResponses,
|
|
195
|
+
MailRevisionRequest,
|
|
171
196
|
ManagedMailDomainRequest,
|
|
172
197
|
ManagedMailWebhookRequest,
|
|
173
198
|
ManagedSourceBlobRequest,
|
|
@@ -198,6 +223,7 @@ import type {
|
|
|
198
223
|
ProjectDatabaseQueryRequest,
|
|
199
224
|
ProjectDatabaseWriteRequest,
|
|
200
225
|
ProjectDataChangeRequest,
|
|
226
|
+
ProjectMailDomainBindingRequest,
|
|
201
227
|
PromoteDeploymentErrors,
|
|
202
228
|
PromoteDeploymentResponses,
|
|
203
229
|
PutEnvironmentSecretErrors,
|
|
@@ -205,6 +231,8 @@ import type {
|
|
|
205
231
|
PutEnvironmentSecretResponses,
|
|
206
232
|
PutManagedSourceBlobErrors,
|
|
207
233
|
PutManagedSourceBlobResponses,
|
|
234
|
+
PutProjectMailDomainBindingErrors,
|
|
235
|
+
PutProjectMailDomainBindingResponses,
|
|
208
236
|
QueryProjectDatabaseErrors,
|
|
209
237
|
QueryProjectDatabaseResponses,
|
|
210
238
|
ReconcileOperationErrors,
|
|
@@ -215,8 +243,14 @@ import type {
|
|
|
215
243
|
RegisterFeatureInterestResponses,
|
|
216
244
|
RestoreManagedSourceErrors,
|
|
217
245
|
RestoreManagedSourceResponses,
|
|
246
|
+
RetireWorkspaceMailDomainErrors,
|
|
247
|
+
RetireWorkspaceMailDomainResponses,
|
|
218
248
|
RetryManagedMailMessageErrors,
|
|
219
249
|
RetryManagedMailMessageResponses,
|
|
250
|
+
RevokeApplicationDomainIdentityDnsAuthorizationErrors,
|
|
251
|
+
RevokeApplicationDomainIdentityDnsAuthorizationResponses,
|
|
252
|
+
RevokeApplicationDomainIdentityErrors,
|
|
253
|
+
RevokeApplicationDomainIdentityResponses,
|
|
220
254
|
RevokeCurrentSessionErrors,
|
|
221
255
|
RevokeCurrentSessionResponses,
|
|
222
256
|
RevokeProjectDatabaseAccessErrors,
|
|
@@ -225,6 +259,8 @@ import type {
|
|
|
225
259
|
RevokeProjectDevShareLinkResponses,
|
|
226
260
|
RevokeUserApiKeyErrors,
|
|
227
261
|
RevokeUserApiKeyResponses,
|
|
262
|
+
RevokeWorkspaceMailDomainDnsAuthorizationErrors,
|
|
263
|
+
RevokeWorkspaceMailDomainDnsAuthorizationResponses,
|
|
228
264
|
RollbackDeploymentErrors,
|
|
229
265
|
RollbackDeploymentResponses,
|
|
230
266
|
RotateProjectDevShareLinkErrors,
|
|
@@ -240,6 +276,7 @@ import type {
|
|
|
240
276
|
SetProjectNotesResponses,
|
|
241
277
|
SetProjectPoweredByFlagErrors,
|
|
242
278
|
SetProjectPoweredByFlagResponses,
|
|
279
|
+
SharedMailDnsAuthorizationRequest,
|
|
243
280
|
StreamDeploymentLogsErrors,
|
|
244
281
|
StreamDeploymentLogsResponse,
|
|
245
282
|
StreamDeploymentLogsResponses,
|
|
@@ -254,6 +291,8 @@ import type {
|
|
|
254
291
|
SwitchManagedSourceResponses,
|
|
255
292
|
Ulid,
|
|
256
293
|
UserApiKeyId,
|
|
294
|
+
VerifyApplicationDomainIdentityErrors,
|
|
295
|
+
VerifyApplicationDomainIdentityResponses,
|
|
257
296
|
VerifyManagedMailWebhookErrors,
|
|
258
297
|
VerifyManagedMailWebhookResponses,
|
|
259
298
|
WriteProjectDatabaseErrors,
|
|
@@ -278,6 +317,837 @@ export type Options<
|
|
|
278
317
|
meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
|
|
279
318
|
};
|
|
280
319
|
|
|
320
|
+
/**
|
|
321
|
+
* List authorized workspace sending domains
|
|
322
|
+
*
|
|
323
|
+
* Explicit workspace sender authority and target project authority are checked independently. Shared sending requires current verified application identity with the same registrable main domain. Receiving and mailbox routing remain separate.
|
|
324
|
+
*/
|
|
325
|
+
export const listWorkspaceMailDomains = <ThrowOnError extends boolean = true>(
|
|
326
|
+
parameters: {
|
|
327
|
+
"X-Request-Id"?: string;
|
|
328
|
+
organization_id: Ulid;
|
|
329
|
+
},
|
|
330
|
+
options?: Options<never, ThrowOnError>,
|
|
331
|
+
): RequestResult<
|
|
332
|
+
ListWorkspaceMailDomainsResponses,
|
|
333
|
+
ListWorkspaceMailDomainsErrors,
|
|
334
|
+
ThrowOnError,
|
|
335
|
+
"data"
|
|
336
|
+
> => {
|
|
337
|
+
const params = buildClientParams(
|
|
338
|
+
[parameters],
|
|
339
|
+
[
|
|
340
|
+
{
|
|
341
|
+
args: [
|
|
342
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
343
|
+
{ in: "path", key: "organization_id" },
|
|
344
|
+
],
|
|
345
|
+
},
|
|
346
|
+
],
|
|
347
|
+
);
|
|
348
|
+
return (options?.client ?? client).get<
|
|
349
|
+
ListWorkspaceMailDomainsResponses,
|
|
350
|
+
ListWorkspaceMailDomainsErrors,
|
|
351
|
+
ThrowOnError,
|
|
352
|
+
"data"
|
|
353
|
+
>({
|
|
354
|
+
responseStyle: "data",
|
|
355
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
356
|
+
url: "/v1/organizations/{organization_id}/mail-domains",
|
|
357
|
+
...options,
|
|
358
|
+
...params,
|
|
359
|
+
});
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Create a workspace sending domain
|
|
364
|
+
*
|
|
365
|
+
* Explicit workspace sender authority and target project authority are checked independently. Shared sending requires current verified application identity with the same registrable main domain. Receiving and mailbox routing remain separate.
|
|
366
|
+
*/
|
|
367
|
+
export const createWorkspaceMailDomain = <ThrowOnError extends boolean = true>(
|
|
368
|
+
parameters: {
|
|
369
|
+
"X-Request-Id"?: string;
|
|
370
|
+
"Idempotency-Key": string;
|
|
371
|
+
organization_id: Ulid;
|
|
372
|
+
createWorkspaceMailDomainRequest: CreateWorkspaceMailDomainRequest;
|
|
373
|
+
},
|
|
374
|
+
options?: Options<never, ThrowOnError>,
|
|
375
|
+
): RequestResult<
|
|
376
|
+
CreateWorkspaceMailDomainResponses,
|
|
377
|
+
CreateWorkspaceMailDomainErrors,
|
|
378
|
+
ThrowOnError,
|
|
379
|
+
"data"
|
|
380
|
+
> => {
|
|
381
|
+
const params = buildClientParams(
|
|
382
|
+
[parameters],
|
|
383
|
+
[
|
|
384
|
+
{
|
|
385
|
+
args: [
|
|
386
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
387
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
388
|
+
{ in: "path", key: "organization_id" },
|
|
389
|
+
{ key: "createWorkspaceMailDomainRequest", map: "body" },
|
|
390
|
+
],
|
|
391
|
+
},
|
|
392
|
+
],
|
|
393
|
+
);
|
|
394
|
+
return (options?.client ?? client).post<
|
|
395
|
+
CreateWorkspaceMailDomainResponses,
|
|
396
|
+
CreateWorkspaceMailDomainErrors,
|
|
397
|
+
ThrowOnError,
|
|
398
|
+
"data"
|
|
399
|
+
>({
|
|
400
|
+
responseStyle: "data",
|
|
401
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
402
|
+
url: "/v1/organizations/{organization_id}/mail-domains",
|
|
403
|
+
...options,
|
|
404
|
+
...params,
|
|
405
|
+
headers: {
|
|
406
|
+
"Content-Type": "application/json",
|
|
407
|
+
...options?.headers,
|
|
408
|
+
...params.headers,
|
|
409
|
+
},
|
|
410
|
+
});
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Retire an unused workspace mail domain
|
|
415
|
+
*
|
|
416
|
+
* Explicit workspace sender authority and target project authority are checked independently. Shared sending requires current verified application identity with the same registrable main domain. Receiving and mailbox routing remain separate.
|
|
417
|
+
*/
|
|
418
|
+
export const retireWorkspaceMailDomain = <ThrowOnError extends boolean = true>(
|
|
419
|
+
parameters: {
|
|
420
|
+
"X-Request-Id"?: string;
|
|
421
|
+
"Idempotency-Key": string;
|
|
422
|
+
organization_id: Ulid;
|
|
423
|
+
mail_domain_id: Ulid;
|
|
424
|
+
mailRevisionRequest: MailRevisionRequest;
|
|
425
|
+
},
|
|
426
|
+
options?: Options<never, ThrowOnError>,
|
|
427
|
+
): RequestResult<
|
|
428
|
+
RetireWorkspaceMailDomainResponses,
|
|
429
|
+
RetireWorkspaceMailDomainErrors,
|
|
430
|
+
ThrowOnError,
|
|
431
|
+
"data"
|
|
432
|
+
> => {
|
|
433
|
+
const params = buildClientParams(
|
|
434
|
+
[parameters],
|
|
435
|
+
[
|
|
436
|
+
{
|
|
437
|
+
args: [
|
|
438
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
439
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
440
|
+
{ in: "path", key: "organization_id" },
|
|
441
|
+
{ in: "path", key: "mail_domain_id" },
|
|
442
|
+
{ key: "mailRevisionRequest", map: "body" },
|
|
443
|
+
],
|
|
444
|
+
},
|
|
445
|
+
],
|
|
446
|
+
);
|
|
447
|
+
return (options?.client ?? client).delete<
|
|
448
|
+
RetireWorkspaceMailDomainResponses,
|
|
449
|
+
RetireWorkspaceMailDomainErrors,
|
|
450
|
+
ThrowOnError,
|
|
451
|
+
"data"
|
|
452
|
+
>({
|
|
453
|
+
responseStyle: "data",
|
|
454
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
455
|
+
url: "/v1/organizations/{organization_id}/mail-domains/{mail_domain_id}",
|
|
456
|
+
...options,
|
|
457
|
+
...params,
|
|
458
|
+
headers: {
|
|
459
|
+
"Content-Type": "application/json",
|
|
460
|
+
...options?.headers,
|
|
461
|
+
...params.headers,
|
|
462
|
+
},
|
|
463
|
+
});
|
|
464
|
+
};
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Read one authorized workspace sending domain
|
|
468
|
+
*
|
|
469
|
+
* Explicit workspace sender authority and target project authority are checked independently. Shared sending requires current verified application identity with the same registrable main domain. Receiving and mailbox routing remain separate.
|
|
470
|
+
*/
|
|
471
|
+
export const getWorkspaceMailDomain = <ThrowOnError extends boolean = true>(
|
|
472
|
+
parameters: {
|
|
473
|
+
"X-Request-Id"?: string;
|
|
474
|
+
organization_id: Ulid;
|
|
475
|
+
mail_domain_id: Ulid;
|
|
476
|
+
},
|
|
477
|
+
options?: Options<never, ThrowOnError>,
|
|
478
|
+
): RequestResult<
|
|
479
|
+
GetWorkspaceMailDomainResponses,
|
|
480
|
+
GetWorkspaceMailDomainErrors,
|
|
481
|
+
ThrowOnError,
|
|
482
|
+
"data"
|
|
483
|
+
> => {
|
|
484
|
+
const params = buildClientParams(
|
|
485
|
+
[parameters],
|
|
486
|
+
[
|
|
487
|
+
{
|
|
488
|
+
args: [
|
|
489
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
490
|
+
{ in: "path", key: "organization_id" },
|
|
491
|
+
{ in: "path", key: "mail_domain_id" },
|
|
492
|
+
],
|
|
493
|
+
},
|
|
494
|
+
],
|
|
495
|
+
);
|
|
496
|
+
return (options?.client ?? client).get<
|
|
497
|
+
GetWorkspaceMailDomainResponses,
|
|
498
|
+
GetWorkspaceMailDomainErrors,
|
|
499
|
+
ThrowOnError,
|
|
500
|
+
"data"
|
|
501
|
+
>({
|
|
502
|
+
responseStyle: "data",
|
|
503
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
504
|
+
url: "/v1/organizations/{organization_id}/mail-domains/{mail_domain_id}",
|
|
505
|
+
...options,
|
|
506
|
+
...params,
|
|
507
|
+
});
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Revoke workspace mail DNS management without changing sending
|
|
512
|
+
*
|
|
513
|
+
* Explicit workspace sender authority and target project authority are checked independently. Shared sending requires current verified application identity with the same registrable main domain. Receiving and mailbox routing remain separate.
|
|
514
|
+
*/
|
|
515
|
+
export const revokeWorkspaceMailDomainDnsAuthorization = <ThrowOnError extends boolean = true>(
|
|
516
|
+
parameters: {
|
|
517
|
+
"X-Request-Id"?: string;
|
|
518
|
+
"Idempotency-Key": string;
|
|
519
|
+
organization_id: Ulid;
|
|
520
|
+
mail_domain_id: Ulid;
|
|
521
|
+
mailRevisionRequest: MailRevisionRequest;
|
|
522
|
+
},
|
|
523
|
+
options?: Options<never, ThrowOnError>,
|
|
524
|
+
): RequestResult<
|
|
525
|
+
RevokeWorkspaceMailDomainDnsAuthorizationResponses,
|
|
526
|
+
RevokeWorkspaceMailDomainDnsAuthorizationErrors,
|
|
527
|
+
ThrowOnError,
|
|
528
|
+
"data"
|
|
529
|
+
> => {
|
|
530
|
+
const params = buildClientParams(
|
|
531
|
+
[parameters],
|
|
532
|
+
[
|
|
533
|
+
{
|
|
534
|
+
args: [
|
|
535
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
536
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
537
|
+
{ in: "path", key: "organization_id" },
|
|
538
|
+
{ in: "path", key: "mail_domain_id" },
|
|
539
|
+
{ key: "mailRevisionRequest", map: "body" },
|
|
540
|
+
],
|
|
541
|
+
},
|
|
542
|
+
],
|
|
543
|
+
);
|
|
544
|
+
return (options?.client ?? client).delete<
|
|
545
|
+
RevokeWorkspaceMailDomainDnsAuthorizationResponses,
|
|
546
|
+
RevokeWorkspaceMailDomainDnsAuthorizationErrors,
|
|
547
|
+
ThrowOnError,
|
|
548
|
+
"data"
|
|
549
|
+
>({
|
|
550
|
+
responseStyle: "data",
|
|
551
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
552
|
+
url: "/v1/organizations/{organization_id}/mail-domains/{mail_domain_id}/dns-authorization",
|
|
553
|
+
...options,
|
|
554
|
+
...params,
|
|
555
|
+
headers: {
|
|
556
|
+
"Content-Type": "application/json",
|
|
557
|
+
...options?.headers,
|
|
558
|
+
...params.headers,
|
|
559
|
+
},
|
|
560
|
+
});
|
|
561
|
+
};
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* Read sender-domain DNS authorization
|
|
565
|
+
*
|
|
566
|
+
* Explicit workspace sender authority and target project authority are checked independently. Shared sending requires current verified application identity with the same registrable main domain. Receiving and mailbox routing remain separate.
|
|
567
|
+
*/
|
|
568
|
+
export const getWorkspaceMailDomainDnsAuthorization = <ThrowOnError extends boolean = true>(
|
|
569
|
+
parameters: {
|
|
570
|
+
"X-Request-Id"?: string;
|
|
571
|
+
organization_id: Ulid;
|
|
572
|
+
mail_domain_id: Ulid;
|
|
573
|
+
},
|
|
574
|
+
options?: Options<never, ThrowOnError>,
|
|
575
|
+
): RequestResult<
|
|
576
|
+
GetWorkspaceMailDomainDnsAuthorizationResponses,
|
|
577
|
+
GetWorkspaceMailDomainDnsAuthorizationErrors,
|
|
578
|
+
ThrowOnError,
|
|
579
|
+
"data"
|
|
580
|
+
> => {
|
|
581
|
+
const params = buildClientParams(
|
|
582
|
+
[parameters],
|
|
583
|
+
[
|
|
584
|
+
{
|
|
585
|
+
args: [
|
|
586
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
587
|
+
{ in: "path", key: "organization_id" },
|
|
588
|
+
{ in: "path", key: "mail_domain_id" },
|
|
589
|
+
],
|
|
590
|
+
},
|
|
591
|
+
],
|
|
592
|
+
);
|
|
593
|
+
return (options?.client ?? client).get<
|
|
594
|
+
GetWorkspaceMailDomainDnsAuthorizationResponses,
|
|
595
|
+
GetWorkspaceMailDomainDnsAuthorizationErrors,
|
|
596
|
+
ThrowOnError,
|
|
597
|
+
"data"
|
|
598
|
+
>({
|
|
599
|
+
responseStyle: "data",
|
|
600
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
601
|
+
url: "/v1/organizations/{organization_id}/mail-domains/{mail_domain_id}/dns-authorization",
|
|
602
|
+
...options,
|
|
603
|
+
...params,
|
|
604
|
+
});
|
|
605
|
+
};
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* Authorize exact sender-domain DNS management
|
|
609
|
+
*
|
|
610
|
+
* Explicit workspace sender authority and target project authority are checked independently. Shared sending requires current verified application identity with the same registrable main domain. Receiving and mailbox routing remain separate.
|
|
611
|
+
*/
|
|
612
|
+
export const authorizeWorkspaceMailDomainDns = <ThrowOnError extends boolean = true>(
|
|
613
|
+
parameters: {
|
|
614
|
+
"X-Request-Id"?: string;
|
|
615
|
+
"Idempotency-Key": string;
|
|
616
|
+
organization_id: Ulid;
|
|
617
|
+
mail_domain_id: Ulid;
|
|
618
|
+
sharedMailDnsAuthorizationRequest: SharedMailDnsAuthorizationRequest;
|
|
619
|
+
},
|
|
620
|
+
options?: Options<never, ThrowOnError>,
|
|
621
|
+
): RequestResult<
|
|
622
|
+
AuthorizeWorkspaceMailDomainDnsResponses,
|
|
623
|
+
AuthorizeWorkspaceMailDomainDnsErrors,
|
|
624
|
+
ThrowOnError,
|
|
625
|
+
"data"
|
|
626
|
+
> => {
|
|
627
|
+
const params = buildClientParams(
|
|
628
|
+
[parameters],
|
|
629
|
+
[
|
|
630
|
+
{
|
|
631
|
+
args: [
|
|
632
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
633
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
634
|
+
{ in: "path", key: "organization_id" },
|
|
635
|
+
{ in: "path", key: "mail_domain_id" },
|
|
636
|
+
{ key: "sharedMailDnsAuthorizationRequest", map: "body" },
|
|
637
|
+
],
|
|
638
|
+
},
|
|
639
|
+
],
|
|
640
|
+
);
|
|
641
|
+
return (options?.client ?? client).post<
|
|
642
|
+
AuthorizeWorkspaceMailDomainDnsResponses,
|
|
643
|
+
AuthorizeWorkspaceMailDomainDnsErrors,
|
|
644
|
+
ThrowOnError,
|
|
645
|
+
"data"
|
|
646
|
+
>({
|
|
647
|
+
responseStyle: "data",
|
|
648
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
649
|
+
url: "/v1/organizations/{organization_id}/mail-domains/{mail_domain_id}/dns-authorization",
|
|
650
|
+
...options,
|
|
651
|
+
...params,
|
|
652
|
+
headers: {
|
|
653
|
+
"Content-Type": "application/json",
|
|
654
|
+
...options?.headers,
|
|
655
|
+
...params.headers,
|
|
656
|
+
},
|
|
657
|
+
});
|
|
658
|
+
};
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Detach only the selected project sender
|
|
662
|
+
*
|
|
663
|
+
* Explicit workspace sender authority and target project authority are checked independently. Shared sending requires current verified application identity with the same registrable main domain. Receiving and mailbox routing remain separate.
|
|
664
|
+
*/
|
|
665
|
+
export const detachProjectMailDomainBinding = <ThrowOnError extends boolean = true>(
|
|
666
|
+
parameters: {
|
|
667
|
+
"X-Request-Id"?: string;
|
|
668
|
+
"Idempotency-Key": string;
|
|
669
|
+
project_id: Ulid;
|
|
670
|
+
environment_id: Ulid;
|
|
671
|
+
mailRevisionRequest: MailRevisionRequest;
|
|
672
|
+
},
|
|
673
|
+
options?: Options<never, ThrowOnError>,
|
|
674
|
+
): RequestResult<
|
|
675
|
+
DetachProjectMailDomainBindingResponses,
|
|
676
|
+
DetachProjectMailDomainBindingErrors,
|
|
677
|
+
ThrowOnError,
|
|
678
|
+
"data"
|
|
679
|
+
> => {
|
|
680
|
+
const params = buildClientParams(
|
|
681
|
+
[parameters],
|
|
682
|
+
[
|
|
683
|
+
{
|
|
684
|
+
args: [
|
|
685
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
686
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
687
|
+
{ in: "path", key: "project_id" },
|
|
688
|
+
{ in: "path", key: "environment_id" },
|
|
689
|
+
{ key: "mailRevisionRequest", map: "body" },
|
|
690
|
+
],
|
|
691
|
+
},
|
|
692
|
+
],
|
|
693
|
+
);
|
|
694
|
+
return (options?.client ?? client).delete<
|
|
695
|
+
DetachProjectMailDomainBindingResponses,
|
|
696
|
+
DetachProjectMailDomainBindingErrors,
|
|
697
|
+
ThrowOnError,
|
|
698
|
+
"data"
|
|
699
|
+
>({
|
|
700
|
+
responseStyle: "data",
|
|
701
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
702
|
+
url: "/v1/projects/{project_id}/environments/{environment_id}/mail-domain-binding",
|
|
703
|
+
...options,
|
|
704
|
+
...params,
|
|
705
|
+
headers: {
|
|
706
|
+
"Content-Type": "application/json",
|
|
707
|
+
...options?.headers,
|
|
708
|
+
...params.headers,
|
|
709
|
+
},
|
|
710
|
+
});
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* Read project sender settings
|
|
715
|
+
*
|
|
716
|
+
* Explicit workspace sender authority and target project authority are checked independently. Shared sending requires current verified application identity with the same registrable main domain. Receiving and mailbox routing remain separate.
|
|
717
|
+
*/
|
|
718
|
+
export const getProjectMailDomainBinding = <ThrowOnError extends boolean = true>(
|
|
719
|
+
parameters: {
|
|
720
|
+
"X-Request-Id"?: string;
|
|
721
|
+
project_id: Ulid;
|
|
722
|
+
environment_id: Ulid;
|
|
723
|
+
},
|
|
724
|
+
options?: Options<never, ThrowOnError>,
|
|
725
|
+
): RequestResult<
|
|
726
|
+
GetProjectMailDomainBindingResponses,
|
|
727
|
+
GetProjectMailDomainBindingErrors,
|
|
728
|
+
ThrowOnError,
|
|
729
|
+
"data"
|
|
730
|
+
> => {
|
|
731
|
+
const params = buildClientParams(
|
|
732
|
+
[parameters],
|
|
733
|
+
[
|
|
734
|
+
{
|
|
735
|
+
args: [
|
|
736
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
737
|
+
{ in: "path", key: "project_id" },
|
|
738
|
+
{ in: "path", key: "environment_id" },
|
|
739
|
+
],
|
|
740
|
+
},
|
|
741
|
+
],
|
|
742
|
+
);
|
|
743
|
+
return (options?.client ?? client).get<
|
|
744
|
+
GetProjectMailDomainBindingResponses,
|
|
745
|
+
GetProjectMailDomainBindingErrors,
|
|
746
|
+
ThrowOnError,
|
|
747
|
+
"data"
|
|
748
|
+
>({
|
|
749
|
+
responseStyle: "data",
|
|
750
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
751
|
+
url: "/v1/projects/{project_id}/environments/{environment_id}/mail-domain-binding",
|
|
752
|
+
...options,
|
|
753
|
+
...params,
|
|
754
|
+
});
|
|
755
|
+
};
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Attach or update a same-main-domain sender
|
|
759
|
+
*
|
|
760
|
+
* Explicit workspace sender authority and target project authority are checked independently. Shared sending requires current verified application identity with the same registrable main domain. Receiving and mailbox routing remain separate.
|
|
761
|
+
*/
|
|
762
|
+
export const putProjectMailDomainBinding = <ThrowOnError extends boolean = true>(
|
|
763
|
+
parameters: {
|
|
764
|
+
"X-Request-Id"?: string;
|
|
765
|
+
"Idempotency-Key": string;
|
|
766
|
+
project_id: Ulid;
|
|
767
|
+
environment_id: Ulid;
|
|
768
|
+
projectMailDomainBindingRequest: ProjectMailDomainBindingRequest;
|
|
769
|
+
},
|
|
770
|
+
options?: Options<never, ThrowOnError>,
|
|
771
|
+
): RequestResult<
|
|
772
|
+
PutProjectMailDomainBindingResponses,
|
|
773
|
+
PutProjectMailDomainBindingErrors,
|
|
774
|
+
ThrowOnError,
|
|
775
|
+
"data"
|
|
776
|
+
> => {
|
|
777
|
+
const params = buildClientParams(
|
|
778
|
+
[parameters],
|
|
779
|
+
[
|
|
780
|
+
{
|
|
781
|
+
args: [
|
|
782
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
783
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
784
|
+
{ in: "path", key: "project_id" },
|
|
785
|
+
{ in: "path", key: "environment_id" },
|
|
786
|
+
{ key: "projectMailDomainBindingRequest", map: "body" },
|
|
787
|
+
],
|
|
788
|
+
},
|
|
789
|
+
],
|
|
790
|
+
);
|
|
791
|
+
return (options?.client ?? client).put<
|
|
792
|
+
PutProjectMailDomainBindingResponses,
|
|
793
|
+
PutProjectMailDomainBindingErrors,
|
|
794
|
+
ThrowOnError,
|
|
795
|
+
"data"
|
|
796
|
+
>({
|
|
797
|
+
responseStyle: "data",
|
|
798
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
799
|
+
url: "/v1/projects/{project_id}/environments/{environment_id}/mail-domain-binding",
|
|
800
|
+
...options,
|
|
801
|
+
...params,
|
|
802
|
+
headers: {
|
|
803
|
+
"Content-Type": "application/json",
|
|
804
|
+
...options?.headers,
|
|
805
|
+
...params.headers,
|
|
806
|
+
},
|
|
807
|
+
});
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* Revoke application domain proof and dependent shared sends
|
|
812
|
+
*
|
|
813
|
+
* Explicit workspace sender authority and target project authority are checked independently. Shared sending requires current verified application identity with the same registrable main domain. Receiving and mailbox routing remain separate.
|
|
814
|
+
*/
|
|
815
|
+
export const revokeApplicationDomainIdentity = <ThrowOnError extends boolean = true>(
|
|
816
|
+
parameters: {
|
|
817
|
+
"X-Request-Id"?: string;
|
|
818
|
+
"Idempotency-Key": string;
|
|
819
|
+
project_id: Ulid;
|
|
820
|
+
mailRevisionRequest: MailRevisionRequest;
|
|
821
|
+
},
|
|
822
|
+
options?: Options<never, ThrowOnError>,
|
|
823
|
+
): RequestResult<
|
|
824
|
+
RevokeApplicationDomainIdentityResponses,
|
|
825
|
+
RevokeApplicationDomainIdentityErrors,
|
|
826
|
+
ThrowOnError,
|
|
827
|
+
"data"
|
|
828
|
+
> => {
|
|
829
|
+
const params = buildClientParams(
|
|
830
|
+
[parameters],
|
|
831
|
+
[
|
|
832
|
+
{
|
|
833
|
+
args: [
|
|
834
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
835
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
836
|
+
{ in: "path", key: "project_id" },
|
|
837
|
+
{ key: "mailRevisionRequest", map: "body" },
|
|
838
|
+
],
|
|
839
|
+
},
|
|
840
|
+
],
|
|
841
|
+
);
|
|
842
|
+
return (options?.client ?? client).delete<
|
|
843
|
+
RevokeApplicationDomainIdentityResponses,
|
|
844
|
+
RevokeApplicationDomainIdentityErrors,
|
|
845
|
+
ThrowOnError,
|
|
846
|
+
"data"
|
|
847
|
+
>({
|
|
848
|
+
responseStyle: "data",
|
|
849
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
850
|
+
url: "/v1/projects/{project_id}/application-domain-identity",
|
|
851
|
+
...options,
|
|
852
|
+
...params,
|
|
853
|
+
headers: {
|
|
854
|
+
"Content-Type": "application/json",
|
|
855
|
+
...options?.headers,
|
|
856
|
+
...params.headers,
|
|
857
|
+
},
|
|
858
|
+
});
|
|
859
|
+
};
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Read the intended application domain proof
|
|
863
|
+
*
|
|
864
|
+
* Explicit workspace sender authority and target project authority are checked independently. Shared sending requires current verified application identity with the same registrable main domain. Receiving and mailbox routing remain separate.
|
|
865
|
+
*/
|
|
866
|
+
export const getApplicationDomainIdentity = <ThrowOnError extends boolean = true>(
|
|
867
|
+
parameters: {
|
|
868
|
+
"X-Request-Id"?: string;
|
|
869
|
+
project_id: Ulid;
|
|
870
|
+
},
|
|
871
|
+
options?: Options<never, ThrowOnError>,
|
|
872
|
+
): RequestResult<
|
|
873
|
+
GetApplicationDomainIdentityResponses,
|
|
874
|
+
GetApplicationDomainIdentityErrors,
|
|
875
|
+
ThrowOnError,
|
|
876
|
+
"data"
|
|
877
|
+
> => {
|
|
878
|
+
const params = buildClientParams(
|
|
879
|
+
[parameters],
|
|
880
|
+
[
|
|
881
|
+
{
|
|
882
|
+
args: [
|
|
883
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
884
|
+
{ in: "path", key: "project_id" },
|
|
885
|
+
],
|
|
886
|
+
},
|
|
887
|
+
],
|
|
888
|
+
);
|
|
889
|
+
return (options?.client ?? client).get<
|
|
890
|
+
GetApplicationDomainIdentityResponses,
|
|
891
|
+
GetApplicationDomainIdentityErrors,
|
|
892
|
+
ThrowOnError,
|
|
893
|
+
"data"
|
|
894
|
+
>({
|
|
895
|
+
responseStyle: "data",
|
|
896
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
897
|
+
url: "/v1/projects/{project_id}/application-domain-identity",
|
|
898
|
+
...options,
|
|
899
|
+
...params,
|
|
900
|
+
});
|
|
901
|
+
};
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Declare an intended application domain without switching traffic
|
|
905
|
+
*
|
|
906
|
+
* Explicit workspace sender authority and target project authority are checked independently. Shared sending requires current verified application identity with the same registrable main domain. Receiving and mailbox routing remain separate.
|
|
907
|
+
*/
|
|
908
|
+
export const declareApplicationDomainIdentity = <ThrowOnError extends boolean = true>(
|
|
909
|
+
parameters: {
|
|
910
|
+
"X-Request-Id"?: string;
|
|
911
|
+
"Idempotency-Key": string;
|
|
912
|
+
project_id: Ulid;
|
|
913
|
+
applicationDomainIdentityRequest: ApplicationDomainIdentityRequest;
|
|
914
|
+
},
|
|
915
|
+
options?: Options<never, ThrowOnError>,
|
|
916
|
+
): RequestResult<
|
|
917
|
+
DeclareApplicationDomainIdentityResponses,
|
|
918
|
+
DeclareApplicationDomainIdentityErrors,
|
|
919
|
+
ThrowOnError,
|
|
920
|
+
"data"
|
|
921
|
+
> => {
|
|
922
|
+
const params = buildClientParams(
|
|
923
|
+
[parameters],
|
|
924
|
+
[
|
|
925
|
+
{
|
|
926
|
+
args: [
|
|
927
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
928
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
929
|
+
{ in: "path", key: "project_id" },
|
|
930
|
+
{ key: "applicationDomainIdentityRequest", map: "body" },
|
|
931
|
+
],
|
|
932
|
+
},
|
|
933
|
+
],
|
|
934
|
+
);
|
|
935
|
+
return (options?.client ?? client).put<
|
|
936
|
+
DeclareApplicationDomainIdentityResponses,
|
|
937
|
+
DeclareApplicationDomainIdentityErrors,
|
|
938
|
+
ThrowOnError,
|
|
939
|
+
"data"
|
|
940
|
+
>({
|
|
941
|
+
responseStyle: "data",
|
|
942
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
943
|
+
url: "/v1/projects/{project_id}/application-domain-identity",
|
|
944
|
+
...options,
|
|
945
|
+
...params,
|
|
946
|
+
headers: {
|
|
947
|
+
"Content-Type": "application/json",
|
|
948
|
+
...options?.headers,
|
|
949
|
+
...params.headers,
|
|
950
|
+
},
|
|
951
|
+
});
|
|
952
|
+
};
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* Verify the current application DNS challenge
|
|
956
|
+
*
|
|
957
|
+
* Explicit workspace sender authority and target project authority are checked independently. Shared sending requires current verified application identity with the same registrable main domain. Receiving and mailbox routing remain separate.
|
|
958
|
+
*/
|
|
959
|
+
export const verifyApplicationDomainIdentity = <ThrowOnError extends boolean = true>(
|
|
960
|
+
parameters: {
|
|
961
|
+
"X-Request-Id"?: string;
|
|
962
|
+
"Idempotency-Key": string;
|
|
963
|
+
project_id: Ulid;
|
|
964
|
+
mailRevisionRequest: MailRevisionRequest;
|
|
965
|
+
},
|
|
966
|
+
options?: Options<never, ThrowOnError>,
|
|
967
|
+
): RequestResult<
|
|
968
|
+
VerifyApplicationDomainIdentityResponses,
|
|
969
|
+
VerifyApplicationDomainIdentityErrors,
|
|
970
|
+
ThrowOnError,
|
|
971
|
+
"data"
|
|
972
|
+
> => {
|
|
973
|
+
const params = buildClientParams(
|
|
974
|
+
[parameters],
|
|
975
|
+
[
|
|
976
|
+
{
|
|
977
|
+
args: [
|
|
978
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
979
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
980
|
+
{ in: "path", key: "project_id" },
|
|
981
|
+
{ key: "mailRevisionRequest", map: "body" },
|
|
982
|
+
],
|
|
983
|
+
},
|
|
984
|
+
],
|
|
985
|
+
);
|
|
986
|
+
return (options?.client ?? client).post<
|
|
987
|
+
VerifyApplicationDomainIdentityResponses,
|
|
988
|
+
VerifyApplicationDomainIdentityErrors,
|
|
989
|
+
ThrowOnError,
|
|
990
|
+
"data"
|
|
991
|
+
>({
|
|
992
|
+
responseStyle: "data",
|
|
993
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
994
|
+
url: "/v1/projects/{project_id}/application-domain-identity/verify",
|
|
995
|
+
...options,
|
|
996
|
+
...params,
|
|
997
|
+
headers: {
|
|
998
|
+
"Content-Type": "application/json",
|
|
999
|
+
...options?.headers,
|
|
1000
|
+
...params.headers,
|
|
1001
|
+
},
|
|
1002
|
+
});
|
|
1003
|
+
};
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* Revoke application proof DNS management without switching traffic
|
|
1007
|
+
*
|
|
1008
|
+
* Explicit workspace sender authority and target project authority are checked independently. Shared sending requires current verified application identity with the same registrable main domain. Receiving and mailbox routing remain separate.
|
|
1009
|
+
*/
|
|
1010
|
+
export const revokeApplicationDomainIdentityDnsAuthorization = <
|
|
1011
|
+
ThrowOnError extends boolean = true,
|
|
1012
|
+
>(
|
|
1013
|
+
parameters: {
|
|
1014
|
+
"X-Request-Id"?: string;
|
|
1015
|
+
"Idempotency-Key": string;
|
|
1016
|
+
project_id: Ulid;
|
|
1017
|
+
mailRevisionRequest: MailRevisionRequest;
|
|
1018
|
+
},
|
|
1019
|
+
options?: Options<never, ThrowOnError>,
|
|
1020
|
+
): RequestResult<
|
|
1021
|
+
RevokeApplicationDomainIdentityDnsAuthorizationResponses,
|
|
1022
|
+
RevokeApplicationDomainIdentityDnsAuthorizationErrors,
|
|
1023
|
+
ThrowOnError,
|
|
1024
|
+
"data"
|
|
1025
|
+
> => {
|
|
1026
|
+
const params = buildClientParams(
|
|
1027
|
+
[parameters],
|
|
1028
|
+
[
|
|
1029
|
+
{
|
|
1030
|
+
args: [
|
|
1031
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
1032
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
1033
|
+
{ in: "path", key: "project_id" },
|
|
1034
|
+
{ key: "mailRevisionRequest", map: "body" },
|
|
1035
|
+
],
|
|
1036
|
+
},
|
|
1037
|
+
],
|
|
1038
|
+
);
|
|
1039
|
+
return (options?.client ?? client).delete<
|
|
1040
|
+
RevokeApplicationDomainIdentityDnsAuthorizationResponses,
|
|
1041
|
+
RevokeApplicationDomainIdentityDnsAuthorizationErrors,
|
|
1042
|
+
ThrowOnError,
|
|
1043
|
+
"data"
|
|
1044
|
+
>({
|
|
1045
|
+
responseStyle: "data",
|
|
1046
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1047
|
+
url: "/v1/projects/{project_id}/application-domain-identity/dns-authorization",
|
|
1048
|
+
...options,
|
|
1049
|
+
...params,
|
|
1050
|
+
headers: {
|
|
1051
|
+
"Content-Type": "application/json",
|
|
1052
|
+
...options?.headers,
|
|
1053
|
+
...params.headers,
|
|
1054
|
+
},
|
|
1055
|
+
});
|
|
1056
|
+
};
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* Read application proof DNS authorization
|
|
1060
|
+
*
|
|
1061
|
+
* Explicit workspace sender authority and target project authority are checked independently. Shared sending requires current verified application identity with the same registrable main domain. Receiving and mailbox routing remain separate.
|
|
1062
|
+
*/
|
|
1063
|
+
export const getApplicationDomainIdentityDnsAuthorization = <ThrowOnError extends boolean = true>(
|
|
1064
|
+
parameters: {
|
|
1065
|
+
"X-Request-Id"?: string;
|
|
1066
|
+
project_id: Ulid;
|
|
1067
|
+
},
|
|
1068
|
+
options?: Options<never, ThrowOnError>,
|
|
1069
|
+
): RequestResult<
|
|
1070
|
+
GetApplicationDomainIdentityDnsAuthorizationResponses,
|
|
1071
|
+
GetApplicationDomainIdentityDnsAuthorizationErrors,
|
|
1072
|
+
ThrowOnError,
|
|
1073
|
+
"data"
|
|
1074
|
+
> => {
|
|
1075
|
+
const params = buildClientParams(
|
|
1076
|
+
[parameters],
|
|
1077
|
+
[
|
|
1078
|
+
{
|
|
1079
|
+
args: [
|
|
1080
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
1081
|
+
{ in: "path", key: "project_id" },
|
|
1082
|
+
],
|
|
1083
|
+
},
|
|
1084
|
+
],
|
|
1085
|
+
);
|
|
1086
|
+
return (options?.client ?? client).get<
|
|
1087
|
+
GetApplicationDomainIdentityDnsAuthorizationResponses,
|
|
1088
|
+
GetApplicationDomainIdentityDnsAuthorizationErrors,
|
|
1089
|
+
ThrowOnError,
|
|
1090
|
+
"data"
|
|
1091
|
+
>({
|
|
1092
|
+
responseStyle: "data",
|
|
1093
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1094
|
+
url: "/v1/projects/{project_id}/application-domain-identity/dns-authorization",
|
|
1095
|
+
...options,
|
|
1096
|
+
...params,
|
|
1097
|
+
});
|
|
1098
|
+
};
|
|
1099
|
+
|
|
1100
|
+
/**
|
|
1101
|
+
* Authorize only the frozen application TXT challenge
|
|
1102
|
+
*
|
|
1103
|
+
* Explicit workspace sender authority and target project authority are checked independently. Shared sending requires current verified application identity with the same registrable main domain. Receiving and mailbox routing remain separate.
|
|
1104
|
+
*/
|
|
1105
|
+
export const authorizeApplicationDomainIdentityDns = <ThrowOnError extends boolean = true>(
|
|
1106
|
+
parameters: {
|
|
1107
|
+
"X-Request-Id"?: string;
|
|
1108
|
+
"Idempotency-Key": string;
|
|
1109
|
+
project_id: Ulid;
|
|
1110
|
+
sharedMailDnsAuthorizationRequest: SharedMailDnsAuthorizationRequest;
|
|
1111
|
+
},
|
|
1112
|
+
options?: Options<never, ThrowOnError>,
|
|
1113
|
+
): RequestResult<
|
|
1114
|
+
AuthorizeApplicationDomainIdentityDnsResponses,
|
|
1115
|
+
AuthorizeApplicationDomainIdentityDnsErrors,
|
|
1116
|
+
ThrowOnError,
|
|
1117
|
+
"data"
|
|
1118
|
+
> => {
|
|
1119
|
+
const params = buildClientParams(
|
|
1120
|
+
[parameters],
|
|
1121
|
+
[
|
|
1122
|
+
{
|
|
1123
|
+
args: [
|
|
1124
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
1125
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
1126
|
+
{ in: "path", key: "project_id" },
|
|
1127
|
+
{ key: "sharedMailDnsAuthorizationRequest", map: "body" },
|
|
1128
|
+
],
|
|
1129
|
+
},
|
|
1130
|
+
],
|
|
1131
|
+
);
|
|
1132
|
+
return (options?.client ?? client).post<
|
|
1133
|
+
AuthorizeApplicationDomainIdentityDnsResponses,
|
|
1134
|
+
AuthorizeApplicationDomainIdentityDnsErrors,
|
|
1135
|
+
ThrowOnError,
|
|
1136
|
+
"data"
|
|
1137
|
+
>({
|
|
1138
|
+
responseStyle: "data",
|
|
1139
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
1140
|
+
url: "/v1/projects/{project_id}/application-domain-identity/dns-authorization",
|
|
1141
|
+
...options,
|
|
1142
|
+
...params,
|
|
1143
|
+
headers: {
|
|
1144
|
+
"Content-Type": "application/json",
|
|
1145
|
+
...options?.headers,
|
|
1146
|
+
...params.headers,
|
|
1147
|
+
},
|
|
1148
|
+
});
|
|
1149
|
+
};
|
|
1150
|
+
|
|
281
1151
|
/**
|
|
282
1152
|
* Read the current interactive user profile and signup attribution
|
|
283
1153
|
*/
|