@amerged/ohmyhost-mcp 0.1.13 → 0.1.15
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/dist/{chunk-475EJ7IK.js → chunk-LGXYRWBD.js} +17 -8
- package/dist/index.js +1 -1
- package/dist/stdio-main.js +525 -108
- package/package.json +1 -1
- package/src/apps/mcp/local-client.ts +3 -14
- package/src/apps/mcp/local-server.ts +169 -46
- package/src/apps/product-cli/cli.ts +23 -32
- package/src/apps/product-cli/command.ts +110 -35
- package/src/apps/product-cli/product-api.ts +4 -26
- package/src/apps/product-cli/repository-init.ts +2 -2
- package/src/apps/product-cli/runtime-contract.ts +0 -94
- package/src/packages/agent-skills/generated-skill-resources.ts +16 -7
- package/src/packages/contracts/framework-admission.ts +2 -2
- package/src/packages/sdk-ts/generated/index.ts +65 -16
- package/src/packages/sdk-ts/generated/sdk.gen.ts +450 -96
- package/src/packages/sdk-ts/generated/types.gen.ts +662 -166
- package/src/packages/sdk-ts/index.ts +1 -0
- package/src/packages/sdk-ts/managed-mail-response.ts +195 -0
- package/src/packages/sdk-ts/managed-mail.ts +85 -0
|
@@ -22,11 +22,10 @@ import type {
|
|
|
22
22
|
CompleteGithubSourceAuthorizationErrors,
|
|
23
23
|
ConfigureBillingRechargeErrors,
|
|
24
24
|
ConfigureBillingRechargeResponses,
|
|
25
|
+
ConfigureManagedMailDomainErrors,
|
|
26
|
+
ConfigureManagedMailDomainResponses,
|
|
25
27
|
ConfigureProjectDomainsErrors,
|
|
26
28
|
ConfigureProjectDomainsResponses,
|
|
27
|
-
ConfigureProjectMailDomainErrors,
|
|
28
|
-
ConfigureProjectMailDomainRequest,
|
|
29
|
-
ConfigureProjectMailDomainResponses,
|
|
30
29
|
ConfigureProjectSourceAutoDeployErrors,
|
|
31
30
|
ConfigureProjectSourceAutoDeployResponses,
|
|
32
31
|
ConfigureSourceAutoDeployRequest,
|
|
@@ -64,6 +63,8 @@ import type {
|
|
|
64
63
|
DeletePaidProjectDomainResponses,
|
|
65
64
|
DeleteProjectErrors,
|
|
66
65
|
DeleteProjectResponses,
|
|
66
|
+
DisableManagedMailReceivingErrors,
|
|
67
|
+
DisableManagedMailReceivingResponses,
|
|
67
68
|
FeedbackSubmission,
|
|
68
69
|
GetAccountProfileErrors,
|
|
69
70
|
GetAccountProfileResponses,
|
|
@@ -85,6 +86,12 @@ import type {
|
|
|
85
86
|
GetFeatureInterestsResponses,
|
|
86
87
|
GetGithubOrganizationConnectionErrors,
|
|
87
88
|
GetGithubOrganizationConnectionResponses,
|
|
89
|
+
GetManagedMailAttachmentErrors,
|
|
90
|
+
GetManagedMailAttachmentResponses,
|
|
91
|
+
GetManagedMailDomainErrors,
|
|
92
|
+
GetManagedMailDomainResponses,
|
|
93
|
+
GetManagedMailMessageErrors,
|
|
94
|
+
GetManagedMailMessageResponses,
|
|
88
95
|
GetOperationErrors,
|
|
89
96
|
GetOperationResponses,
|
|
90
97
|
GetOrganizationAccountErrors,
|
|
@@ -104,8 +111,6 @@ import type {
|
|
|
104
111
|
GetProjectExportResponses,
|
|
105
112
|
GetProjectHandleAvailabilityErrors,
|
|
106
113
|
GetProjectHandleAvailabilityResponses,
|
|
107
|
-
GetProjectMailDomainErrors,
|
|
108
|
-
GetProjectMailDomainResponses,
|
|
109
114
|
GetProjectResponses,
|
|
110
115
|
GetProjectSourceAutoDeployErrors,
|
|
111
116
|
GetProjectSourceAutoDeployResponses,
|
|
@@ -126,12 +131,16 @@ import type {
|
|
|
126
131
|
ListEnvironmentSecretsResponses,
|
|
127
132
|
ListFunctionRunsErrors,
|
|
128
133
|
ListFunctionRunsResponses,
|
|
134
|
+
ListManagedMailMessagesErrors,
|
|
135
|
+
ListManagedMailMessagesResponses,
|
|
129
136
|
ListProjectDatabaseAccessErrors,
|
|
130
137
|
ListProjectDatabaseAccessResponses,
|
|
131
138
|
ListProjectsErrors,
|
|
132
139
|
ListProjectsResponses,
|
|
133
140
|
ListUserApiKeysErrors,
|
|
134
141
|
ListUserApiKeysResponses,
|
|
142
|
+
ManagedMailDomainRequest,
|
|
143
|
+
ManagedMailWebhookRequest,
|
|
135
144
|
PaidDomainRequest,
|
|
136
145
|
PlanDeploymentErrors,
|
|
137
146
|
PlanDeploymentPromotionErrors,
|
|
@@ -144,6 +153,8 @@ import type {
|
|
|
144
153
|
PlanPaidProjectDomainResponses,
|
|
145
154
|
PlanProjectDeletionErrors,
|
|
146
155
|
PlanProjectDeletionResponses,
|
|
156
|
+
PrepareManagedMailWebhookErrors,
|
|
157
|
+
PrepareManagedMailWebhookResponses,
|
|
147
158
|
ProjectDatabaseAccessRequest,
|
|
148
159
|
ProjectDatabaseQueryRequest,
|
|
149
160
|
ProjectDatabaseWriteRequest,
|
|
@@ -160,6 +171,8 @@ import type {
|
|
|
160
171
|
RecordSignupSourceResponses,
|
|
161
172
|
RegisterFeatureInterestErrors,
|
|
162
173
|
RegisterFeatureInterestResponses,
|
|
174
|
+
RetryManagedMailMessageErrors,
|
|
175
|
+
RetryManagedMailMessageResponses,
|
|
163
176
|
RevokeCurrentSessionErrors,
|
|
164
177
|
RevokeCurrentSessionResponses,
|
|
165
178
|
RevokeProjectDatabaseAccessErrors,
|
|
@@ -185,6 +198,8 @@ import type {
|
|
|
185
198
|
SubmitFeedbackResponses,
|
|
186
199
|
Ulid,
|
|
187
200
|
UserApiKeyId,
|
|
201
|
+
VerifyManagedMailWebhookErrors,
|
|
202
|
+
VerifyManagedMailWebhookResponses,
|
|
188
203
|
WriteProjectDatabaseErrors,
|
|
189
204
|
WriteProjectDatabaseResponses,
|
|
190
205
|
} from "./types.gen.js";
|
|
@@ -2351,97 +2366,6 @@ export const applyPaidProjectDomain = <ThrowOnError extends boolean = true>(
|
|
|
2351
2366
|
});
|
|
2352
2367
|
};
|
|
2353
2368
|
|
|
2354
|
-
/**
|
|
2355
|
-
* Get sender-domain delegation status
|
|
2356
|
-
*/
|
|
2357
|
-
export const getProjectMailDomain = <ThrowOnError extends boolean = true>(
|
|
2358
|
-
parameters: {
|
|
2359
|
-
"X-Request-Id"?: string;
|
|
2360
|
-
project_id: Ulid;
|
|
2361
|
-
},
|
|
2362
|
-
options?: Options<never, ThrowOnError>,
|
|
2363
|
-
): RequestResult<
|
|
2364
|
-
GetProjectMailDomainResponses,
|
|
2365
|
-
GetProjectMailDomainErrors,
|
|
2366
|
-
ThrowOnError,
|
|
2367
|
-
"data"
|
|
2368
|
-
> => {
|
|
2369
|
-
const params = buildClientParams(
|
|
2370
|
-
[parameters],
|
|
2371
|
-
[
|
|
2372
|
-
{
|
|
2373
|
-
args: [
|
|
2374
|
-
{ in: "headers", key: "X-Request-Id" },
|
|
2375
|
-
{ in: "path", key: "project_id" },
|
|
2376
|
-
],
|
|
2377
|
-
},
|
|
2378
|
-
],
|
|
2379
|
-
);
|
|
2380
|
-
return (options?.client ?? client).get<
|
|
2381
|
-
GetProjectMailDomainResponses,
|
|
2382
|
-
GetProjectMailDomainErrors,
|
|
2383
|
-
ThrowOnError,
|
|
2384
|
-
"data"
|
|
2385
|
-
>({
|
|
2386
|
-
responseStyle: "data",
|
|
2387
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
2388
|
-
url: "/v1/projects/{project_id}/mail-domain",
|
|
2389
|
-
...options,
|
|
2390
|
-
...params,
|
|
2391
|
-
});
|
|
2392
|
-
};
|
|
2393
|
-
|
|
2394
|
-
/**
|
|
2395
|
-
* Configure the project sender subdomain
|
|
2396
|
-
*
|
|
2397
|
-
* Create-only admission for one canonical sender subdomain, requiring a confirmed current Paid service period. Top-ups and promotional credits do not enable Paid. Provider mutation occurs only inside a later authorized deployment Workflow.
|
|
2398
|
-
*/
|
|
2399
|
-
export const configureProjectMailDomain = <ThrowOnError extends boolean = true>(
|
|
2400
|
-
parameters: {
|
|
2401
|
-
"X-Request-Id"?: string;
|
|
2402
|
-
"Idempotency-Key": string;
|
|
2403
|
-
project_id: Ulid;
|
|
2404
|
-
configureProjectMailDomainRequest: ConfigureProjectMailDomainRequest;
|
|
2405
|
-
},
|
|
2406
|
-
options?: Options<never, ThrowOnError>,
|
|
2407
|
-
): RequestResult<
|
|
2408
|
-
ConfigureProjectMailDomainResponses,
|
|
2409
|
-
ConfigureProjectMailDomainErrors,
|
|
2410
|
-
ThrowOnError,
|
|
2411
|
-
"data"
|
|
2412
|
-
> => {
|
|
2413
|
-
const params = buildClientParams(
|
|
2414
|
-
[parameters],
|
|
2415
|
-
[
|
|
2416
|
-
{
|
|
2417
|
-
args: [
|
|
2418
|
-
{ in: "headers", key: "X-Request-Id" },
|
|
2419
|
-
{ in: "headers", key: "Idempotency-Key" },
|
|
2420
|
-
{ in: "path", key: "project_id" },
|
|
2421
|
-
{ key: "configureProjectMailDomainRequest", map: "body" },
|
|
2422
|
-
],
|
|
2423
|
-
},
|
|
2424
|
-
],
|
|
2425
|
-
);
|
|
2426
|
-
return (options?.client ?? client).put<
|
|
2427
|
-
ConfigureProjectMailDomainResponses,
|
|
2428
|
-
ConfigureProjectMailDomainErrors,
|
|
2429
|
-
ThrowOnError,
|
|
2430
|
-
"data"
|
|
2431
|
-
>({
|
|
2432
|
-
responseStyle: "data",
|
|
2433
|
-
security: [{ scheme: "bearer", type: "http" }],
|
|
2434
|
-
url: "/v1/projects/{project_id}/mail-domain",
|
|
2435
|
-
...options,
|
|
2436
|
-
...params,
|
|
2437
|
-
headers: {
|
|
2438
|
-
"Content-Type": "application/json",
|
|
2439
|
-
...options?.headers,
|
|
2440
|
-
...params.headers,
|
|
2441
|
-
},
|
|
2442
|
-
});
|
|
2443
|
-
};
|
|
2444
|
-
|
|
2445
2369
|
/**
|
|
2446
2370
|
* Plan a deployment
|
|
2447
2371
|
*
|
|
@@ -3532,3 +3456,433 @@ export const listAuditEvents = <ThrowOnError extends boolean = true>(
|
|
|
3532
3456
|
...params,
|
|
3533
3457
|
});
|
|
3534
3458
|
};
|
|
3459
|
+
|
|
3460
|
+
/**
|
|
3461
|
+
* Read independent sending and receiving readiness
|
|
3462
|
+
*
|
|
3463
|
+
* One production mail domain per project; environment_id is the project Prod environment ID. Dev and Prod application URLs do not create separate mail domains. Provider credentials never leave ohmyho.st. Content expires 72 hours after original receipt.
|
|
3464
|
+
*/
|
|
3465
|
+
export const getManagedMailDomain = <ThrowOnError extends boolean = true>(
|
|
3466
|
+
parameters: {
|
|
3467
|
+
"X-Request-Id"?: string;
|
|
3468
|
+
project_id: Ulid;
|
|
3469
|
+
environment_id: Ulid;
|
|
3470
|
+
},
|
|
3471
|
+
options?: Options<never, ThrowOnError>,
|
|
3472
|
+
): RequestResult<
|
|
3473
|
+
GetManagedMailDomainResponses,
|
|
3474
|
+
GetManagedMailDomainErrors,
|
|
3475
|
+
ThrowOnError,
|
|
3476
|
+
"data"
|
|
3477
|
+
> => {
|
|
3478
|
+
const params = buildClientParams(
|
|
3479
|
+
[parameters],
|
|
3480
|
+
[
|
|
3481
|
+
{
|
|
3482
|
+
args: [
|
|
3483
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
3484
|
+
{ in: "path", key: "project_id" },
|
|
3485
|
+
{ in: "path", key: "environment_id" },
|
|
3486
|
+
],
|
|
3487
|
+
},
|
|
3488
|
+
],
|
|
3489
|
+
);
|
|
3490
|
+
return (options?.client ?? client).get<
|
|
3491
|
+
GetManagedMailDomainResponses,
|
|
3492
|
+
GetManagedMailDomainErrors,
|
|
3493
|
+
ThrowOnError,
|
|
3494
|
+
"data"
|
|
3495
|
+
>({
|
|
3496
|
+
responseStyle: "data",
|
|
3497
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3498
|
+
url: "/v1/projects/{project_id}/environments/{environment_id}/mail-domain",
|
|
3499
|
+
...options,
|
|
3500
|
+
...params,
|
|
3501
|
+
});
|
|
3502
|
+
};
|
|
3503
|
+
|
|
3504
|
+
/**
|
|
3505
|
+
* Configure sending and receiving on a selected mail domain
|
|
3506
|
+
*
|
|
3507
|
+
* One production mail domain per project; environment_id is the project Prod environment ID. Dev and Prod application URLs do not create separate mail domains. Provider credentials never leave ohmyho.st. Content expires 72 hours after original receipt.
|
|
3508
|
+
*/
|
|
3509
|
+
export const configureManagedMailDomain = <ThrowOnError extends boolean = true>(
|
|
3510
|
+
parameters: {
|
|
3511
|
+
"X-Request-Id"?: string;
|
|
3512
|
+
"Idempotency-Key": string;
|
|
3513
|
+
project_id: Ulid;
|
|
3514
|
+
environment_id: Ulid;
|
|
3515
|
+
managedMailDomainRequest: ManagedMailDomainRequest;
|
|
3516
|
+
},
|
|
3517
|
+
options?: Options<never, ThrowOnError>,
|
|
3518
|
+
): RequestResult<
|
|
3519
|
+
ConfigureManagedMailDomainResponses,
|
|
3520
|
+
ConfigureManagedMailDomainErrors,
|
|
3521
|
+
ThrowOnError,
|
|
3522
|
+
"data"
|
|
3523
|
+
> => {
|
|
3524
|
+
const params = buildClientParams(
|
|
3525
|
+
[parameters],
|
|
3526
|
+
[
|
|
3527
|
+
{
|
|
3528
|
+
args: [
|
|
3529
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
3530
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
3531
|
+
{ in: "path", key: "project_id" },
|
|
3532
|
+
{ in: "path", key: "environment_id" },
|
|
3533
|
+
{ key: "managedMailDomainRequest", map: "body" },
|
|
3534
|
+
],
|
|
3535
|
+
},
|
|
3536
|
+
],
|
|
3537
|
+
);
|
|
3538
|
+
return (options?.client ?? client).put<
|
|
3539
|
+
ConfigureManagedMailDomainResponses,
|
|
3540
|
+
ConfigureManagedMailDomainErrors,
|
|
3541
|
+
ThrowOnError,
|
|
3542
|
+
"data"
|
|
3543
|
+
>({
|
|
3544
|
+
responseStyle: "data",
|
|
3545
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3546
|
+
url: "/v1/projects/{project_id}/environments/{environment_id}/mail-domain",
|
|
3547
|
+
...options,
|
|
3548
|
+
...params,
|
|
3549
|
+
headers: {
|
|
3550
|
+
"Content-Type": "application/json",
|
|
3551
|
+
...options?.headers,
|
|
3552
|
+
...params.headers,
|
|
3553
|
+
},
|
|
3554
|
+
});
|
|
3555
|
+
};
|
|
3556
|
+
|
|
3557
|
+
/**
|
|
3558
|
+
* Disable receiving and remove the customer webhook
|
|
3559
|
+
*
|
|
3560
|
+
* One production mail domain per project; environment_id is the project Prod environment ID. Dev and Prod application URLs do not create separate mail domains. Provider credentials never leave ohmyho.st. Content expires 72 hours after original receipt.
|
|
3561
|
+
*/
|
|
3562
|
+
export const disableManagedMailReceiving = <ThrowOnError extends boolean = true>(
|
|
3563
|
+
parameters: {
|
|
3564
|
+
"X-Request-Id"?: string;
|
|
3565
|
+
"Idempotency-Key": string;
|
|
3566
|
+
project_id: Ulid;
|
|
3567
|
+
environment_id: Ulid;
|
|
3568
|
+
},
|
|
3569
|
+
options?: Options<never, ThrowOnError>,
|
|
3570
|
+
): RequestResult<
|
|
3571
|
+
DisableManagedMailReceivingResponses,
|
|
3572
|
+
DisableManagedMailReceivingErrors,
|
|
3573
|
+
ThrowOnError,
|
|
3574
|
+
"data"
|
|
3575
|
+
> => {
|
|
3576
|
+
const params = buildClientParams(
|
|
3577
|
+
[parameters],
|
|
3578
|
+
[
|
|
3579
|
+
{
|
|
3580
|
+
args: [
|
|
3581
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
3582
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
3583
|
+
{ in: "path", key: "project_id" },
|
|
3584
|
+
{ in: "path", key: "environment_id" },
|
|
3585
|
+
],
|
|
3586
|
+
},
|
|
3587
|
+
],
|
|
3588
|
+
);
|
|
3589
|
+
return (options?.client ?? client).delete<
|
|
3590
|
+
DisableManagedMailReceivingResponses,
|
|
3591
|
+
DisableManagedMailReceivingErrors,
|
|
3592
|
+
ThrowOnError,
|
|
3593
|
+
"data"
|
|
3594
|
+
>({
|
|
3595
|
+
responseStyle: "data",
|
|
3596
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3597
|
+
url: "/v1/projects/{project_id}/environments/{environment_id}/mail-webhook",
|
|
3598
|
+
...options,
|
|
3599
|
+
...params,
|
|
3600
|
+
});
|
|
3601
|
+
};
|
|
3602
|
+
|
|
3603
|
+
/**
|
|
3604
|
+
* Prepare a required customer webhook and return its signing secret
|
|
3605
|
+
*
|
|
3606
|
+
* One production mail domain per project; environment_id is the project Prod environment ID. Dev and Prod application URLs do not create separate mail domains. Provider credentials never leave ohmyho.st. Content expires 72 hours after original receipt.
|
|
3607
|
+
*/
|
|
3608
|
+
export const prepareManagedMailWebhook = <ThrowOnError extends boolean = true>(
|
|
3609
|
+
parameters: {
|
|
3610
|
+
"X-Request-Id"?: string;
|
|
3611
|
+
"Idempotency-Key": string;
|
|
3612
|
+
project_id: Ulid;
|
|
3613
|
+
environment_id: Ulid;
|
|
3614
|
+
managedMailWebhookRequest: ManagedMailWebhookRequest;
|
|
3615
|
+
},
|
|
3616
|
+
options?: Options<never, ThrowOnError>,
|
|
3617
|
+
): RequestResult<
|
|
3618
|
+
PrepareManagedMailWebhookResponses,
|
|
3619
|
+
PrepareManagedMailWebhookErrors,
|
|
3620
|
+
ThrowOnError,
|
|
3621
|
+
"data"
|
|
3622
|
+
> => {
|
|
3623
|
+
const params = buildClientParams(
|
|
3624
|
+
[parameters],
|
|
3625
|
+
[
|
|
3626
|
+
{
|
|
3627
|
+
args: [
|
|
3628
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
3629
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
3630
|
+
{ in: "path", key: "project_id" },
|
|
3631
|
+
{ in: "path", key: "environment_id" },
|
|
3632
|
+
{ key: "managedMailWebhookRequest", map: "body" },
|
|
3633
|
+
],
|
|
3634
|
+
},
|
|
3635
|
+
],
|
|
3636
|
+
);
|
|
3637
|
+
return (options?.client ?? client).put<
|
|
3638
|
+
PrepareManagedMailWebhookResponses,
|
|
3639
|
+
PrepareManagedMailWebhookErrors,
|
|
3640
|
+
ThrowOnError,
|
|
3641
|
+
"data"
|
|
3642
|
+
>({
|
|
3643
|
+
responseStyle: "data",
|
|
3644
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3645
|
+
url: "/v1/projects/{project_id}/environments/{environment_id}/mail-webhook",
|
|
3646
|
+
...options,
|
|
3647
|
+
...params,
|
|
3648
|
+
headers: {
|
|
3649
|
+
"Content-Type": "application/json",
|
|
3650
|
+
...options?.headers,
|
|
3651
|
+
...params.headers,
|
|
3652
|
+
},
|
|
3653
|
+
});
|
|
3654
|
+
};
|
|
3655
|
+
|
|
3656
|
+
/**
|
|
3657
|
+
* Verify the customer endpoint and enable receiving
|
|
3658
|
+
*
|
|
3659
|
+
* One production mail domain per project; environment_id is the project Prod environment ID. Dev and Prod application URLs do not create separate mail domains. Provider credentials never leave ohmyho.st. Content expires 72 hours after original receipt.
|
|
3660
|
+
*/
|
|
3661
|
+
export const verifyManagedMailWebhook = <ThrowOnError extends boolean = true>(
|
|
3662
|
+
parameters: {
|
|
3663
|
+
"X-Request-Id"?: string;
|
|
3664
|
+
"Idempotency-Key": string;
|
|
3665
|
+
project_id: Ulid;
|
|
3666
|
+
environment_id: Ulid;
|
|
3667
|
+
},
|
|
3668
|
+
options?: Options<never, ThrowOnError>,
|
|
3669
|
+
): RequestResult<
|
|
3670
|
+
VerifyManagedMailWebhookResponses,
|
|
3671
|
+
VerifyManagedMailWebhookErrors,
|
|
3672
|
+
ThrowOnError,
|
|
3673
|
+
"data"
|
|
3674
|
+
> => {
|
|
3675
|
+
const params = buildClientParams(
|
|
3676
|
+
[parameters],
|
|
3677
|
+
[
|
|
3678
|
+
{
|
|
3679
|
+
args: [
|
|
3680
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
3681
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
3682
|
+
{ in: "path", key: "project_id" },
|
|
3683
|
+
{ in: "path", key: "environment_id" },
|
|
3684
|
+
],
|
|
3685
|
+
},
|
|
3686
|
+
],
|
|
3687
|
+
);
|
|
3688
|
+
return (options?.client ?? client).post<
|
|
3689
|
+
VerifyManagedMailWebhookResponses,
|
|
3690
|
+
VerifyManagedMailWebhookErrors,
|
|
3691
|
+
ThrowOnError,
|
|
3692
|
+
"data"
|
|
3693
|
+
>({
|
|
3694
|
+
responseStyle: "data",
|
|
3695
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3696
|
+
url: "/v1/projects/{project_id}/environments/{environment_id}/mail-webhook/verify",
|
|
3697
|
+
...options,
|
|
3698
|
+
...params,
|
|
3699
|
+
});
|
|
3700
|
+
};
|
|
3701
|
+
|
|
3702
|
+
/**
|
|
3703
|
+
* List mail handoff metadata within the 72 hour window
|
|
3704
|
+
*
|
|
3705
|
+
* One production mail domain per project; environment_id is the project Prod environment ID. Dev and Prod application URLs do not create separate mail domains. Provider credentials never leave ohmyho.st. Content expires 72 hours after original receipt.
|
|
3706
|
+
*/
|
|
3707
|
+
export const listManagedMailMessages = <ThrowOnError extends boolean = true>(
|
|
3708
|
+
parameters: {
|
|
3709
|
+
"X-Request-Id"?: string;
|
|
3710
|
+
project_id: Ulid;
|
|
3711
|
+
environment_id: Ulid;
|
|
3712
|
+
after?: Ulid;
|
|
3713
|
+
},
|
|
3714
|
+
options?: Options<never, ThrowOnError>,
|
|
3715
|
+
): RequestResult<
|
|
3716
|
+
ListManagedMailMessagesResponses,
|
|
3717
|
+
ListManagedMailMessagesErrors,
|
|
3718
|
+
ThrowOnError,
|
|
3719
|
+
"data"
|
|
3720
|
+
> => {
|
|
3721
|
+
const params = buildClientParams(
|
|
3722
|
+
[parameters],
|
|
3723
|
+
[
|
|
3724
|
+
{
|
|
3725
|
+
args: [
|
|
3726
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
3727
|
+
{ in: "path", key: "project_id" },
|
|
3728
|
+
{ in: "path", key: "environment_id" },
|
|
3729
|
+
{ in: "query", key: "after" },
|
|
3730
|
+
],
|
|
3731
|
+
},
|
|
3732
|
+
],
|
|
3733
|
+
);
|
|
3734
|
+
return (options?.client ?? client).get<
|
|
3735
|
+
ListManagedMailMessagesResponses,
|
|
3736
|
+
ListManagedMailMessagesErrors,
|
|
3737
|
+
ThrowOnError,
|
|
3738
|
+
"data"
|
|
3739
|
+
>({
|
|
3740
|
+
responseStyle: "data",
|
|
3741
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3742
|
+
url: "/v1/projects/{project_id}/environments/{environment_id}/mail/messages",
|
|
3743
|
+
...options,
|
|
3744
|
+
...params,
|
|
3745
|
+
});
|
|
3746
|
+
};
|
|
3747
|
+
|
|
3748
|
+
/**
|
|
3749
|
+
* Retrieve owned mail content before expiry
|
|
3750
|
+
*
|
|
3751
|
+
* One production mail domain per project; environment_id is the project Prod environment ID. Dev and Prod application URLs do not create separate mail domains. Provider credentials never leave ohmyho.st. Content expires 72 hours after original receipt.
|
|
3752
|
+
*/
|
|
3753
|
+
export const getManagedMailMessage = <ThrowOnError extends boolean = true>(
|
|
3754
|
+
parameters: {
|
|
3755
|
+
"X-Request-Id"?: string;
|
|
3756
|
+
project_id: Ulid;
|
|
3757
|
+
environment_id: Ulid;
|
|
3758
|
+
message_id: Ulid;
|
|
3759
|
+
},
|
|
3760
|
+
options?: Options<never, ThrowOnError>,
|
|
3761
|
+
): RequestResult<
|
|
3762
|
+
GetManagedMailMessageResponses,
|
|
3763
|
+
GetManagedMailMessageErrors,
|
|
3764
|
+
ThrowOnError,
|
|
3765
|
+
"data"
|
|
3766
|
+
> => {
|
|
3767
|
+
const params = buildClientParams(
|
|
3768
|
+
[parameters],
|
|
3769
|
+
[
|
|
3770
|
+
{
|
|
3771
|
+
args: [
|
|
3772
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
3773
|
+
{ in: "path", key: "project_id" },
|
|
3774
|
+
{ in: "path", key: "environment_id" },
|
|
3775
|
+
{ in: "path", key: "message_id" },
|
|
3776
|
+
],
|
|
3777
|
+
},
|
|
3778
|
+
],
|
|
3779
|
+
);
|
|
3780
|
+
return (options?.client ?? client).get<
|
|
3781
|
+
GetManagedMailMessageResponses,
|
|
3782
|
+
GetManagedMailMessageErrors,
|
|
3783
|
+
ThrowOnError,
|
|
3784
|
+
"data"
|
|
3785
|
+
>({
|
|
3786
|
+
responseStyle: "data",
|
|
3787
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3788
|
+
url: "/v1/projects/{project_id}/environments/{environment_id}/mail/messages/{message_id}",
|
|
3789
|
+
...options,
|
|
3790
|
+
...params,
|
|
3791
|
+
});
|
|
3792
|
+
};
|
|
3793
|
+
|
|
3794
|
+
/**
|
|
3795
|
+
* Retry within the shared maximum of three retries
|
|
3796
|
+
*
|
|
3797
|
+
* One production mail domain per project; environment_id is the project Prod environment ID. Dev and Prod application URLs do not create separate mail domains. Provider credentials never leave ohmyho.st. Content expires 72 hours after original receipt.
|
|
3798
|
+
*/
|
|
3799
|
+
export const retryManagedMailMessage = <ThrowOnError extends boolean = true>(
|
|
3800
|
+
parameters: {
|
|
3801
|
+
"X-Request-Id"?: string;
|
|
3802
|
+
"Idempotency-Key": string;
|
|
3803
|
+
project_id: Ulid;
|
|
3804
|
+
environment_id: Ulid;
|
|
3805
|
+
message_id: Ulid;
|
|
3806
|
+
},
|
|
3807
|
+
options?: Options<never, ThrowOnError>,
|
|
3808
|
+
): RequestResult<
|
|
3809
|
+
RetryManagedMailMessageResponses,
|
|
3810
|
+
RetryManagedMailMessageErrors,
|
|
3811
|
+
ThrowOnError,
|
|
3812
|
+
"data"
|
|
3813
|
+
> => {
|
|
3814
|
+
const params = buildClientParams(
|
|
3815
|
+
[parameters],
|
|
3816
|
+
[
|
|
3817
|
+
{
|
|
3818
|
+
args: [
|
|
3819
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
3820
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
3821
|
+
{ in: "path", key: "project_id" },
|
|
3822
|
+
{ in: "path", key: "environment_id" },
|
|
3823
|
+
{ in: "path", key: "message_id" },
|
|
3824
|
+
],
|
|
3825
|
+
},
|
|
3826
|
+
],
|
|
3827
|
+
);
|
|
3828
|
+
return (options?.client ?? client).post<
|
|
3829
|
+
RetryManagedMailMessageResponses,
|
|
3830
|
+
RetryManagedMailMessageErrors,
|
|
3831
|
+
ThrowOnError,
|
|
3832
|
+
"data"
|
|
3833
|
+
>({
|
|
3834
|
+
responseStyle: "data",
|
|
3835
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3836
|
+
url: "/v1/projects/{project_id}/environments/{environment_id}/mail/messages/{message_id}/retry",
|
|
3837
|
+
...options,
|
|
3838
|
+
...params,
|
|
3839
|
+
});
|
|
3840
|
+
};
|
|
3841
|
+
|
|
3842
|
+
/**
|
|
3843
|
+
* Download an owned attachment before expiry
|
|
3844
|
+
*
|
|
3845
|
+
* One production mail domain per project; environment_id is the project Prod environment ID. Dev and Prod application URLs do not create separate mail domains. Provider credentials never leave ohmyho.st. Content expires 72 hours after original receipt. Downloads over 50 MiB return 413.
|
|
3846
|
+
*/
|
|
3847
|
+
export const getManagedMailAttachment = <ThrowOnError extends boolean = true>(
|
|
3848
|
+
parameters: {
|
|
3849
|
+
"X-Request-Id"?: string;
|
|
3850
|
+
project_id: Ulid;
|
|
3851
|
+
environment_id: Ulid;
|
|
3852
|
+
message_id: Ulid;
|
|
3853
|
+
attachment_id: string;
|
|
3854
|
+
},
|
|
3855
|
+
options?: Options<never, ThrowOnError>,
|
|
3856
|
+
): RequestResult<
|
|
3857
|
+
GetManagedMailAttachmentResponses,
|
|
3858
|
+
GetManagedMailAttachmentErrors,
|
|
3859
|
+
ThrowOnError,
|
|
3860
|
+
"data"
|
|
3861
|
+
> => {
|
|
3862
|
+
const params = buildClientParams(
|
|
3863
|
+
[parameters],
|
|
3864
|
+
[
|
|
3865
|
+
{
|
|
3866
|
+
args: [
|
|
3867
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
3868
|
+
{ in: "path", key: "project_id" },
|
|
3869
|
+
{ in: "path", key: "environment_id" },
|
|
3870
|
+
{ in: "path", key: "message_id" },
|
|
3871
|
+
{ in: "path", key: "attachment_id" },
|
|
3872
|
+
],
|
|
3873
|
+
},
|
|
3874
|
+
],
|
|
3875
|
+
);
|
|
3876
|
+
return (options?.client ?? client).get<
|
|
3877
|
+
GetManagedMailAttachmentResponses,
|
|
3878
|
+
GetManagedMailAttachmentErrors,
|
|
3879
|
+
ThrowOnError,
|
|
3880
|
+
"data"
|
|
3881
|
+
>({
|
|
3882
|
+
responseStyle: "data",
|
|
3883
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3884
|
+
url: "/v1/projects/{project_id}/environments/{environment_id}/mail/messages/{message_id}/attachments/{attachment_id}",
|
|
3885
|
+
...options,
|
|
3886
|
+
...params,
|
|
3887
|
+
});
|
|
3888
|
+
};
|