@amerged/ohmyhost-sdk 0.1.65 → 0.1.66
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/generated/index.d.ts +1 -1
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/mcp-remote.gen.d.ts +2 -2
- package/dist/generated/mcp-remote.gen.d.ts.map +1 -1
- package/dist/generated/mcp-remote.gen.js +152 -334
- package/dist/generated/mcp-remote.gen.js.map +1 -1
- package/dist/generated/sdk.gen.d.ts +12 -5
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +19 -6
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +79 -61
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/managed-mail.d.ts.map +1 -1
- package/dist/managed-mail.js +3 -0
- package/dist/managed-mail.js.map +1 -1
- package/package.json +1 -1
- package/src/packages/sdk-ts/package.json +1 -1
- package/src/packages/sdk-ts/src/generated/index.ts +2 -0
- package/src/packages/sdk-ts/src/generated/mcp-remote.gen.ts +203 -343
- package/src/packages/sdk-ts/src/generated/sdk.gen.ts +22 -6
- package/src/packages/sdk-ts/src/generated/types.gen.ts +96 -62
- package/src/packages/sdk-ts/src/managed-mail.ts +3 -0
|
@@ -2627,6 +2627,7 @@ export const getOrganizationReferral = <ThrowOnError extends boolean = true>(
|
|
|
2627
2627
|
*/
|
|
2628
2628
|
export const getOrganizationAccount = <ThrowOnError extends boolean = true>(
|
|
2629
2629
|
parameters: {
|
|
2630
|
+
"X-Request-Id"?: string;
|
|
2630
2631
|
organization_id: Ulid;
|
|
2631
2632
|
},
|
|
2632
2633
|
options?: Options<never, ThrowOnError>,
|
|
@@ -2638,7 +2639,14 @@ export const getOrganizationAccount = <ThrowOnError extends boolean = true>(
|
|
|
2638
2639
|
> => {
|
|
2639
2640
|
const params = buildClientParams(
|
|
2640
2641
|
[parameters],
|
|
2641
|
-
[
|
|
2642
|
+
[
|
|
2643
|
+
{
|
|
2644
|
+
args: [
|
|
2645
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
2646
|
+
{ in: "path", key: "organization_id" },
|
|
2647
|
+
],
|
|
2648
|
+
},
|
|
2649
|
+
],
|
|
2642
2650
|
);
|
|
2643
2651
|
return (options?.client ?? client).get<
|
|
2644
2652
|
GetOrganizationAccountResponses,
|
|
@@ -2657,7 +2665,7 @@ export const getOrganizationAccount = <ThrowOnError extends boolean = true>(
|
|
|
2657
2665
|
/**
|
|
2658
2666
|
* Submit a contact or privacy question
|
|
2659
2667
|
*
|
|
2660
|
-
* Stores a private contact request for twelve months, with idempotent replay and no account creation or marketing enrollment.
|
|
2668
|
+
* Stores a private contact request for twelve months, with idempotent replay and no account creation or marketing enrollment. Any other method answers 405 with the Problem code invalid_request.
|
|
2661
2669
|
*/
|
|
2662
2670
|
export const submitContactRequest = <ThrowOnError extends boolean = true>(
|
|
2663
2671
|
parameters: {
|
|
@@ -2735,7 +2743,7 @@ export const getFeatureInterests = <ThrowOnError extends boolean = true>(
|
|
|
2735
2743
|
/**
|
|
2736
2744
|
* Set or remove this anonymous browser's roadmap vote
|
|
2737
2745
|
*
|
|
2738
|
-
* Store a desired choice once per request key for twelve months. Replaying an earlier request never overwrites a later choice. A null choice removes the vote; this is not toggle-on-every-request behavior.
|
|
2746
|
+
* Store a desired choice once per request key for twelve months. Replaying an earlier request never overwrites a later choice. A null choice removes the vote; this is not toggle-on-every-request behavior. After the voter header check, any method other than GET or POST answers 405 with the Problem code invalid_request.
|
|
2739
2747
|
*/
|
|
2740
2748
|
export const registerFeatureInterest = <ThrowOnError extends boolean = true>(
|
|
2741
2749
|
parameters: {
|
|
@@ -2784,6 +2792,8 @@ export const registerFeatureInterest = <ThrowOnError extends boolean = true>(
|
|
|
2784
2792
|
|
|
2785
2793
|
/**
|
|
2786
2794
|
* Read distinct active projects successfully deployed in the past seven days
|
|
2795
|
+
*
|
|
2796
|
+
* Any other method answers 404 with the Problem code resource_not_found.
|
|
2787
2797
|
*/
|
|
2788
2798
|
export const getPublicDeploymentStats = <ThrowOnError extends boolean = true>(
|
|
2789
2799
|
options?: Options<never, ThrowOnError>,
|
|
@@ -3496,7 +3506,7 @@ export const getOrganizationCredits = <ThrowOnError extends boolean = true>(
|
|
|
3496
3506
|
/**
|
|
3497
3507
|
* Read recent measured usage by day, project and meter
|
|
3498
3508
|
*
|
|
3499
|
-
* Owner-only. days holds the credit-log charges of the last up to 14 UTC days (today included, oldest first), grouped by day, project and meter. projects holds what each project has used so far in the current UTC month. A null environment_id means a project-shared cost, never a guessed Dev allocation. Only billed usage is included; charges may arrive later, so this is not a complete provider invoice or a zero-usage guarantee. No credit is granted or charged by this read; it remains usable at zero credits.
|
|
3509
|
+
* Owner-only. days holds the credit-log charges of the last up to 14 UTC days (today included, oldest first), grouped by day, project and meter; a refund is not netted into days. projects holds what each project has used so far in the current UTC month, after refunds. A null environment_id means a project-shared cost, never a guessed Dev allocation. Only billed usage is included; charges may arrive later, so this is not a complete provider invoice or a zero-usage guarantee. No credit is granted or charged by this read; it remains usable at zero credits.
|
|
3500
3510
|
*/
|
|
3501
3511
|
export const getOrganizationCreditUsage = <ThrowOnError extends boolean = true>(
|
|
3502
3512
|
parameters: {
|
|
@@ -3799,7 +3809,7 @@ export const listProjects = <ThrowOnError extends boolean = true>(
|
|
|
3799
3809
|
/**
|
|
3800
3810
|
* Create a project
|
|
3801
3811
|
*
|
|
3802
|
-
* Atomically records the project and a durable operation for asynchronous processing.
|
|
3812
|
+
* Atomically records the project and a durable operation for asynchronous processing. The accepted answer and an identical idempotent replay both return the new project_id.
|
|
3803
3813
|
*/
|
|
3804
3814
|
export const createProject = <ThrowOnError extends boolean = true>(
|
|
3805
3815
|
parameters: {
|
|
@@ -5406,6 +5416,8 @@ export const planPaidProjectDomain = <ThrowOnError extends boolean = true>(
|
|
|
5406
5416
|
|
|
5407
5417
|
/**
|
|
5408
5418
|
* Delete one exact Paid customer-owned hostname
|
|
5419
|
+
*
|
|
5420
|
+
* A changed request under a used key returns idempotency_key_reused (409). A repeated delete of an already deleted connection answers the deleted state (200), under its own key or a fresh one, and records no further deletion. The project's connection of another hostname answers domain_already_configured (409), and a deletion already running under another key answers domain_deleting (409).
|
|
5409
5421
|
*/
|
|
5410
5422
|
export const deletePaidProjectDomain = <ThrowOnError extends boolean = true>(
|
|
5411
5423
|
parameters: {
|
|
@@ -5496,7 +5508,7 @@ export const getPaidProjectDomain = <ThrowOnError extends boolean = true>(
|
|
|
5496
5508
|
/**
|
|
5497
5509
|
* Apply one Paid customer-owned hostname
|
|
5498
5510
|
*
|
|
5499
|
-
* Requires Paid access (a Stripe period or a grant) or, for a Free workspace, a project that currently shows the powered-by flag, and no expired credit-exhaustion grace. Returns paid_plan_required otherwise, or insufficient_organization_credits after seven days with no available credits, without provider mutation. Top-ups lift a credit-exhaustion block but never start or extend Paid access. Without an active Prod deployment, apply declares the hostname as awaiting_deployment, enabling Cloudflare consent without provider resources, DNS changes or domain charges. After a successful Prod deployment, replay the same hostname and idempotency key to activate it. A
|
|
5511
|
+
* Requires Paid access (a Stripe period or a grant) or, for a Free workspace, a project that currently shows the powered-by flag, and no expired credit-exhaustion grace. Returns paid_plan_required otherwise, or insufficient_organization_credits after seven days with no available credits, without provider mutation. Top-ups lift a credit-exhaustion block but never start or extend Paid access. Without an active Prod deployment, apply declares the hostname as awaiting_deployment, enabling Cloudflare consent without provider resources, DNS changes or domain charges. After a successful Prod deployment, replay the same hostname and idempotency key to activate it. A key already used for this connection returns idempotency_key_reused (409) when its request changed or its connection has since ended. The same member's fresh key for this hostname's live connection is answered with that connection as it stands and provisions nothing; only the original key activates an awaiting_deployment connection. A fresh key for another hostname, or for a connection another member configured, answers domain_already_configured (409); the project's one connection must be deleted first to replace it. A connection still being deleted answers domain_deleting (409) until its deletion finishes.
|
|
5500
5512
|
*/
|
|
5501
5513
|
export const applyPaidProjectDomain = <ThrowOnError extends boolean = true>(
|
|
5502
5514
|
parameters: {
|
|
@@ -5759,6 +5771,8 @@ export const streamDeploymentLogs = <ThrowOnError extends boolean = true>(
|
|
|
5759
5771
|
"X-Request-Id"?: string;
|
|
5760
5772
|
project_id: Ulid;
|
|
5761
5773
|
deployment_id: Ulid;
|
|
5774
|
+
cursor?: string;
|
|
5775
|
+
limit?: number;
|
|
5762
5776
|
},
|
|
5763
5777
|
options?: Options<never, ThrowOnError, StreamDeploymentLogsResponse>,
|
|
5764
5778
|
): Promise<ServerSentEventsResult<StreamDeploymentLogsResponses>> => {
|
|
@@ -5770,6 +5784,8 @@ export const streamDeploymentLogs = <ThrowOnError extends boolean = true>(
|
|
|
5770
5784
|
{ in: "headers", key: "X-Request-Id" },
|
|
5771
5785
|
{ in: "path", key: "project_id" },
|
|
5772
5786
|
{ in: "path", key: "deployment_id" },
|
|
5787
|
+
{ in: "query", key: "cursor" },
|
|
5788
|
+
{ in: "query", key: "limit" },
|
|
5773
5789
|
],
|
|
5774
5790
|
},
|
|
5775
5791
|
],
|
|
@@ -260,7 +260,7 @@ export type ApplicationDomainIdentity = {
|
|
|
260
260
|
|
|
261
261
|
export type ManagedMailDomainRequest = {
|
|
262
262
|
domain: string;
|
|
263
|
-
sending:
|
|
263
|
+
sending: true;
|
|
264
264
|
receiving: boolean;
|
|
265
265
|
};
|
|
266
266
|
|
|
@@ -1929,6 +1929,14 @@ export type ProblemDetails = {
|
|
|
1929
1929
|
| "shared_data_requires_promotion"
|
|
1930
1930
|
| "development_environment_exists"
|
|
1931
1931
|
| "development_environment_missing"
|
|
1932
|
+
| "source_generation_conflict"
|
|
1933
|
+
| "source_commit_conflict"
|
|
1934
|
+
| "source_upload_conflict"
|
|
1935
|
+
| "source_upload_expired"
|
|
1936
|
+
| "source_scope_unavailable"
|
|
1937
|
+
| "source_snapshot_invalid"
|
|
1938
|
+
| "source_snapshot_too_large"
|
|
1939
|
+
| "preview_version_conflict"
|
|
1932
1940
|
| "production_deployment_required"
|
|
1933
1941
|
| "framework_conversion_required"
|
|
1934
1942
|
| "repository_configuration_missing"
|
|
@@ -1968,6 +1976,7 @@ export type ProblemDetails = {
|
|
|
1968
1976
|
| "billing_purchase_conflict"
|
|
1969
1977
|
| "billing_recharge_conflict"
|
|
1970
1978
|
| "github_connection_required"
|
|
1979
|
+
| "connection_revoked"
|
|
1971
1980
|
| "github_connection_revoked"
|
|
1972
1981
|
| "repository_not_installed"
|
|
1973
1982
|
| "cloudflare_zone_not_bound"
|
|
@@ -1985,6 +1994,8 @@ export type ProblemDetails = {
|
|
|
1985
1994
|
| "domain_hostname_taken"
|
|
1986
1995
|
| "domain_ownership_required"
|
|
1987
1996
|
| "domain_dns_conflict"
|
|
1997
|
+
| "domain_already_configured"
|
|
1998
|
+
| "domain_deleting"
|
|
1988
1999
|
| "data_change_blocked"
|
|
1989
2000
|
| "data_change_in_progress"
|
|
1990
2001
|
| "data_change_not_applicable"
|
|
@@ -1994,6 +2005,11 @@ export type ProblemDetails = {
|
|
|
1994
2005
|
| "native_auth_launch_unavailable"
|
|
1995
2006
|
| "native_auth_provider_unavailable"
|
|
1996
2007
|
| "native_auth_epoch_exhausted"
|
|
2008
|
+
| "native_auth_revision_conflict"
|
|
2009
|
+
| "native_auth_provider_incomplete"
|
|
2010
|
+
| "auto_deploy_source_unavailable"
|
|
2011
|
+
| "cutover_pending"
|
|
2012
|
+
| "project_operation_in_progress"
|
|
1997
2013
|
| "native_user_conflict"
|
|
1998
2014
|
| "project_domains_conflict";
|
|
1999
2015
|
request_id: string;
|
|
@@ -2005,6 +2021,17 @@ export type ProblemDetails = {
|
|
|
2005
2021
|
suggested_action: string;
|
|
2006
2022
|
};
|
|
2007
2023
|
|
|
2024
|
+
/**
|
|
2025
|
+
* Durable record of an accepted project creation. project_id identifies the new project; it is returned unchanged by an identical idempotent replay.
|
|
2026
|
+
*/
|
|
2027
|
+
export type ProjectCreateOperation = {
|
|
2028
|
+
id: Ulid;
|
|
2029
|
+
state: "queued";
|
|
2030
|
+
created_at: string;
|
|
2031
|
+
updated_at: string;
|
|
2032
|
+
project_id: Ulid;
|
|
2033
|
+
};
|
|
2034
|
+
|
|
2008
2035
|
/**
|
|
2009
2036
|
* Durable record returned for an accepted asynchronous mutation. Optional reconciliation is a current observation for queued/running work, separate from immutable terminal state. A completed reconciliation attempt alone does not mean the operation succeeded.
|
|
2010
2037
|
*/
|
|
@@ -2135,23 +2162,7 @@ export type DatabaseCompute = {
|
|
|
2135
2162
|
environment: "dev" | "prod";
|
|
2136
2163
|
data_mode: "shared" | "isolated";
|
|
2137
2164
|
observed_at: string;
|
|
2138
|
-
database:
|
|
2139
|
-
| null
|
|
2140
|
-
| FixedDatabaseCompute
|
|
2141
|
-
| {
|
|
2142
|
-
min_cu: number;
|
|
2143
|
-
max_cu: number;
|
|
2144
|
-
min_memory_gb: number;
|
|
2145
|
-
max_memory_gb: number;
|
|
2146
|
-
/**
|
|
2147
|
-
* Configured timeout: 0 is provider default; -1 disables suspension.
|
|
2148
|
-
*/
|
|
2149
|
-
suspend_timeout_seconds: number;
|
|
2150
|
-
state: "init" | "active" | "idle";
|
|
2151
|
-
pending_state: "init" | "active" | "idle" | null;
|
|
2152
|
-
disabled: boolean;
|
|
2153
|
-
region: string;
|
|
2154
|
-
};
|
|
2165
|
+
database: null | FixedDatabaseCompute;
|
|
2155
2166
|
};
|
|
2156
2167
|
|
|
2157
2168
|
/**
|
|
@@ -2255,6 +2266,7 @@ export type OperationFailure = {
|
|
|
2255
2266
|
| "storage_jurisdiction_conflict"
|
|
2256
2267
|
| "provider_state_absent"
|
|
2257
2268
|
| "auto_deploy_plan_rejected"
|
|
2269
|
+
| "auto_deploy_repository_renamed"
|
|
2258
2270
|
| "promotion_source_stale"
|
|
2259
2271
|
| "promotion_target_stale"
|
|
2260
2272
|
| "project_handle_taken"
|
|
@@ -2398,6 +2410,11 @@ export type AuditLimit = number;
|
|
|
2398
2410
|
*/
|
|
2399
2411
|
export type IdempotencyKey = string;
|
|
2400
2412
|
|
|
2413
|
+
/**
|
|
2414
|
+
* Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
|
|
2415
|
+
*/
|
|
2416
|
+
export type IdempotencyKeyToken = string;
|
|
2417
|
+
|
|
2401
2418
|
/**
|
|
2402
2419
|
* Use resource_etag from a fresh rollback, promotion, deletion or data-change plan. For a project address change, use etag from project status; an ETag from another representation is not accepted.
|
|
2403
2420
|
*/
|
|
@@ -2484,7 +2501,7 @@ export type ProjectLimit = number;
|
|
|
2484
2501
|
export type EnvironmentId = Ulid;
|
|
2485
2502
|
|
|
2486
2503
|
/**
|
|
2487
|
-
* Uppercase environment-variable name.
|
|
2504
|
+
* Uppercase environment-variable name. Set refuses a name starting with OHMYHOST_ and the platform names BETTER_AUTH_SECRET, BETTER_AUTH_URL, DATABASE_URL, HYPERDRIVE, ASSETS, FILES, IMAGES and STORAGE with a 400 whose detail is "Secret name is reserved.". Delete refuses the installed platform keys OHMYHOST_AI_KEY, OHMYHOST_MAIL_KEY, OHMYHOST_STORAGE_KEY, OHMYHOST_BROWSER_KEY and BETTER_AUTH_SECRET with the same detail.
|
|
2488
2505
|
*/
|
|
2489
2506
|
export type SecretName = string;
|
|
2490
2507
|
|
|
@@ -4129,7 +4146,7 @@ export type CreateWorkspaceMailDomainData = {
|
|
|
4129
4146
|
*/
|
|
4130
4147
|
"X-Request-Id"?: string;
|
|
4131
4148
|
/**
|
|
4132
|
-
* Identifies one mutation and its canonical request payload.
|
|
4149
|
+
* Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
|
|
4133
4150
|
*/
|
|
4134
4151
|
"Idempotency-Key": string;
|
|
4135
4152
|
};
|
|
@@ -4196,7 +4213,7 @@ export type RetireWorkspaceMailDomainData = {
|
|
|
4196
4213
|
*/
|
|
4197
4214
|
"X-Request-Id"?: string;
|
|
4198
4215
|
/**
|
|
4199
|
-
* Identifies one mutation and its canonical request payload.
|
|
4216
|
+
* Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
|
|
4200
4217
|
*/
|
|
4201
4218
|
"Idempotency-Key": string;
|
|
4202
4219
|
};
|
|
@@ -4328,7 +4345,7 @@ export type RevokeWorkspaceMailDomainDnsAuthorizationData = {
|
|
|
4328
4345
|
*/
|
|
4329
4346
|
"X-Request-Id"?: string;
|
|
4330
4347
|
/**
|
|
4331
|
-
* Identifies one mutation and its canonical request payload.
|
|
4348
|
+
* Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
|
|
4332
4349
|
*/
|
|
4333
4350
|
"Idempotency-Key": string;
|
|
4334
4351
|
};
|
|
@@ -4460,7 +4477,7 @@ export type AuthorizeWorkspaceMailDomainDnsData = {
|
|
|
4460
4477
|
*/
|
|
4461
4478
|
"X-Request-Id"?: string;
|
|
4462
4479
|
/**
|
|
4463
|
-
* Identifies one mutation and its canonical request payload.
|
|
4480
|
+
* Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
|
|
4464
4481
|
*/
|
|
4465
4482
|
"Idempotency-Key": string;
|
|
4466
4483
|
};
|
|
@@ -4528,7 +4545,7 @@ export type DetachProjectMailDomainBindingData = {
|
|
|
4528
4545
|
*/
|
|
4529
4546
|
"X-Request-Id"?: string;
|
|
4530
4547
|
/**
|
|
4531
|
-
* Identifies one mutation and its canonical request payload.
|
|
4548
|
+
* Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
|
|
4532
4549
|
*/
|
|
4533
4550
|
"Idempotency-Key": string;
|
|
4534
4551
|
};
|
|
@@ -4660,7 +4677,7 @@ export type PutProjectMailDomainBindingData = {
|
|
|
4660
4677
|
*/
|
|
4661
4678
|
"X-Request-Id"?: string;
|
|
4662
4679
|
/**
|
|
4663
|
-
* Identifies one mutation and its canonical request payload.
|
|
4680
|
+
* Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
|
|
4664
4681
|
*/
|
|
4665
4682
|
"Idempotency-Key": string;
|
|
4666
4683
|
};
|
|
@@ -4728,7 +4745,7 @@ export type RevokeApplicationDomainIdentityData = {
|
|
|
4728
4745
|
*/
|
|
4729
4746
|
"X-Request-Id"?: string;
|
|
4730
4747
|
/**
|
|
4731
|
-
* Identifies one mutation and its canonical request payload.
|
|
4748
|
+
* Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
|
|
4732
4749
|
*/
|
|
4733
4750
|
"Idempotency-Key": string;
|
|
4734
4751
|
};
|
|
@@ -4858,7 +4875,7 @@ export type DeclareApplicationDomainIdentityData = {
|
|
|
4858
4875
|
*/
|
|
4859
4876
|
"X-Request-Id"?: string;
|
|
4860
4877
|
/**
|
|
4861
|
-
* Identifies one mutation and its canonical request payload.
|
|
4878
|
+
* Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
|
|
4862
4879
|
*/
|
|
4863
4880
|
"Idempotency-Key": string;
|
|
4864
4881
|
};
|
|
@@ -4925,7 +4942,7 @@ export type VerifyApplicationDomainIdentityData = {
|
|
|
4925
4942
|
*/
|
|
4926
4943
|
"X-Request-Id"?: string;
|
|
4927
4944
|
/**
|
|
4928
|
-
* Identifies one mutation and its canonical request payload.
|
|
4945
|
+
* Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
|
|
4929
4946
|
*/
|
|
4930
4947
|
"Idempotency-Key": string;
|
|
4931
4948
|
};
|
|
@@ -4992,7 +5009,7 @@ export type RevokeApplicationDomainIdentityDnsAuthorizationData = {
|
|
|
4992
5009
|
*/
|
|
4993
5010
|
"X-Request-Id"?: string;
|
|
4994
5011
|
/**
|
|
4995
|
-
* Identifies one mutation and its canonical request payload.
|
|
5012
|
+
* Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
|
|
4996
5013
|
*/
|
|
4997
5014
|
"Idempotency-Key": string;
|
|
4998
5015
|
};
|
|
@@ -5122,7 +5139,7 @@ export type AuthorizeApplicationDomainIdentityDnsData = {
|
|
|
5122
5139
|
*/
|
|
5123
5140
|
"X-Request-Id"?: string;
|
|
5124
5141
|
/**
|
|
5125
|
-
* Identifies one mutation and its canonical request payload.
|
|
5142
|
+
* Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
|
|
5126
5143
|
*/
|
|
5127
5144
|
"Idempotency-Key": string;
|
|
5128
5145
|
};
|
|
@@ -5622,6 +5639,12 @@ export type GetOrganizationReferralResponse =
|
|
|
5622
5639
|
|
|
5623
5640
|
export type GetOrganizationAccountData = {
|
|
5624
5641
|
body?: never;
|
|
5642
|
+
headers?: {
|
|
5643
|
+
/**
|
|
5644
|
+
* Optional caller-provided correlation identifier.
|
|
5645
|
+
*/
|
|
5646
|
+
"X-Request-Id"?: string;
|
|
5647
|
+
};
|
|
5625
5648
|
path: {
|
|
5626
5649
|
organization_id: Ulid;
|
|
5627
5650
|
};
|
|
@@ -5926,7 +5949,7 @@ export type CreateUserApiKeyData = {
|
|
|
5926
5949
|
*/
|
|
5927
5950
|
"X-Request-Id"?: string;
|
|
5928
5951
|
/**
|
|
5929
|
-
* Identifies one mutation and its canonical request payload.
|
|
5952
|
+
* Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
|
|
5930
5953
|
*/
|
|
5931
5954
|
"Idempotency-Key": string;
|
|
5932
5955
|
};
|
|
@@ -6045,7 +6068,7 @@ export type SubmitFeedbackData = {
|
|
|
6045
6068
|
*/
|
|
6046
6069
|
"X-Request-Id"?: string;
|
|
6047
6070
|
/**
|
|
6048
|
-
* Identifies one mutation and its canonical request payload.
|
|
6071
|
+
* Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
|
|
6049
6072
|
*/
|
|
6050
6073
|
"Idempotency-Key": string;
|
|
6051
6074
|
};
|
|
@@ -6294,7 +6317,7 @@ export type RevokeCurrentSessionData = {
|
|
|
6294
6317
|
*/
|
|
6295
6318
|
"X-Request-Id"?: string;
|
|
6296
6319
|
/**
|
|
6297
|
-
* Identifies one mutation and its canonical request payload.
|
|
6320
|
+
* Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
|
|
6298
6321
|
*/
|
|
6299
6322
|
"Idempotency-Key": string;
|
|
6300
6323
|
};
|
|
@@ -6415,7 +6438,7 @@ export type CreateBillingCheckoutData = {
|
|
|
6415
6438
|
*/
|
|
6416
6439
|
"X-Request-Id"?: string;
|
|
6417
6440
|
/**
|
|
6418
|
-
* Identifies one mutation and its canonical request payload.
|
|
6441
|
+
* Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
|
|
6419
6442
|
*/
|
|
6420
6443
|
"Idempotency-Key": string;
|
|
6421
6444
|
};
|
|
@@ -6658,7 +6681,7 @@ export type ConfigureBillingRechargeData = {
|
|
|
6658
6681
|
*/
|
|
6659
6682
|
"X-Request-Id"?: string;
|
|
6660
6683
|
/**
|
|
6661
|
-
* Identifies one mutation and its canonical request payload.
|
|
6684
|
+
* Identifies one mutation and its canonical request payload; only letters, digits and the characters . _ : - are accepted.
|
|
6662
6685
|
*/
|
|
6663
6686
|
"Idempotency-Key": string;
|
|
6664
6687
|
};
|
|
@@ -7092,9 +7115,9 @@ export type SetProjectCreditBudgetErrors = {
|
|
|
7092
7115
|
*/
|
|
7093
7116
|
404: ProblemDetails;
|
|
7094
7117
|
/**
|
|
7095
|
-
* The
|
|
7118
|
+
* The request failed.
|
|
7096
7119
|
*/
|
|
7097
|
-
409:
|
|
7120
|
+
409: ProblemDetails;
|
|
7098
7121
|
/**
|
|
7099
7122
|
* The request failed.
|
|
7100
7123
|
*/
|
|
@@ -7209,9 +7232,9 @@ export type CreateProjectErrors = {
|
|
|
7209
7232
|
*/
|
|
7210
7233
|
403: ProblemDetails;
|
|
7211
7234
|
/**
|
|
7212
|
-
* The
|
|
7235
|
+
* The request failed.
|
|
7213
7236
|
*/
|
|
7214
|
-
409:
|
|
7237
|
+
409: ProblemDetails;
|
|
7215
7238
|
/**
|
|
7216
7239
|
* The request failed.
|
|
7217
7240
|
*/
|
|
@@ -7230,9 +7253,9 @@ export type CreateProjectError = CreateProjectErrors[keyof CreateProjectErrors];
|
|
|
7230
7253
|
|
|
7231
7254
|
export type CreateProjectResponses = {
|
|
7232
7255
|
/**
|
|
7233
|
-
* The
|
|
7256
|
+
* The project creation was accepted for asynchronous provisioning.
|
|
7234
7257
|
*/
|
|
7235
|
-
202:
|
|
7258
|
+
202: ProjectCreateOperation;
|
|
7236
7259
|
};
|
|
7237
7260
|
|
|
7238
7261
|
export type CreateProjectResponse = CreateProjectResponses[keyof CreateProjectResponses];
|
|
@@ -8150,9 +8173,9 @@ export type LinkProjectSourceErrors = {
|
|
|
8150
8173
|
*/
|
|
8151
8174
|
404: ProblemDetails;
|
|
8152
8175
|
/**
|
|
8153
|
-
* The
|
|
8176
|
+
* The request failed.
|
|
8154
8177
|
*/
|
|
8155
|
-
409:
|
|
8178
|
+
409: ProblemDetails;
|
|
8156
8179
|
/**
|
|
8157
8180
|
* The request failed.
|
|
8158
8181
|
*/
|
|
@@ -9261,9 +9284,9 @@ export type ChangeProjectHandleErrors = {
|
|
|
9261
9284
|
*/
|
|
9262
9285
|
404: ProblemDetails;
|
|
9263
9286
|
/**
|
|
9264
|
-
* The
|
|
9287
|
+
* The request failed.
|
|
9265
9288
|
*/
|
|
9266
|
-
409:
|
|
9289
|
+
409: ProblemDetails;
|
|
9267
9290
|
/**
|
|
9268
9291
|
* The request failed.
|
|
9269
9292
|
*/
|
|
@@ -9326,9 +9349,9 @@ export type ConfigureProjectDomainsErrors = {
|
|
|
9326
9349
|
*/
|
|
9327
9350
|
404: ProblemDetails;
|
|
9328
9351
|
/**
|
|
9329
|
-
* The
|
|
9352
|
+
* The request failed.
|
|
9330
9353
|
*/
|
|
9331
|
-
409:
|
|
9354
|
+
409: ProblemDetails;
|
|
9332
9355
|
/**
|
|
9333
9356
|
* The request failed.
|
|
9334
9357
|
*/
|
|
@@ -9454,9 +9477,9 @@ export type DeletePaidProjectDomainErrors = {
|
|
|
9454
9477
|
*/
|
|
9455
9478
|
404: ProblemDetails;
|
|
9456
9479
|
/**
|
|
9457
|
-
* The
|
|
9480
|
+
* The request failed.
|
|
9458
9481
|
*/
|
|
9459
|
-
409:
|
|
9482
|
+
409: ProblemDetails;
|
|
9460
9483
|
/**
|
|
9461
9484
|
* The request failed.
|
|
9462
9485
|
*/
|
|
@@ -9781,9 +9804,9 @@ export type CreateDeploymentErrors = {
|
|
|
9781
9804
|
*/
|
|
9782
9805
|
404: ProblemDetails;
|
|
9783
9806
|
/**
|
|
9784
|
-
* The
|
|
9807
|
+
* The request failed.
|
|
9785
9808
|
*/
|
|
9786
|
-
409:
|
|
9809
|
+
409: ProblemDetails;
|
|
9787
9810
|
/**
|
|
9788
9811
|
* The request failed.
|
|
9789
9812
|
*/
|
|
@@ -9947,11 +9970,18 @@ export type StreamDeploymentLogsData = {
|
|
|
9947
9970
|
*/
|
|
9948
9971
|
deployment_id: Ulid;
|
|
9949
9972
|
};
|
|
9950
|
-
query?:
|
|
9973
|
+
query?: {
|
|
9974
|
+
cursor?: string;
|
|
9975
|
+
limit?: number;
|
|
9976
|
+
};
|
|
9951
9977
|
url: "/v1/projects/{project_id}/deployments/{deployment_id}/logs/events";
|
|
9952
9978
|
};
|
|
9953
9979
|
|
|
9954
9980
|
export type StreamDeploymentLogsErrors = {
|
|
9981
|
+
/**
|
|
9982
|
+
* The request failed.
|
|
9983
|
+
*/
|
|
9984
|
+
400: ProblemDetails;
|
|
9955
9985
|
/**
|
|
9956
9986
|
* The request failed.
|
|
9957
9987
|
*/
|
|
@@ -9964,6 +9994,10 @@ export type StreamDeploymentLogsErrors = {
|
|
|
9964
9994
|
* The resource does not exist or is not visible to the authenticated principal.
|
|
9965
9995
|
*/
|
|
9966
9996
|
404: ProblemDetails;
|
|
9997
|
+
/**
|
|
9998
|
+
* The request failed.
|
|
9999
|
+
*/
|
|
10000
|
+
429: ProblemDetails;
|
|
9967
10001
|
/**
|
|
9968
10002
|
* The request failed.
|
|
9969
10003
|
*/
|
|
@@ -9975,7 +10009,7 @@ export type StreamDeploymentLogsError =
|
|
|
9975
10009
|
|
|
9976
10010
|
export type StreamDeploymentLogsResponses = {
|
|
9977
10011
|
/**
|
|
9978
|
-
* A bounded normalized diagnostic event stream.
|
|
10012
|
+
* A bounded normalized diagnostic event stream of one page. Each diagnostic is a diagnostic event; when more follow, a final next event carries next_cursor for the next request's cursor.
|
|
9979
10013
|
*/
|
|
9980
10014
|
200: DeploymentDiagnostic;
|
|
9981
10015
|
};
|
|
@@ -12281,7 +12315,7 @@ export type DeleteEnvironmentSecretData = {
|
|
|
12281
12315
|
*/
|
|
12282
12316
|
environment_id: Ulid;
|
|
12283
12317
|
/**
|
|
12284
|
-
* Uppercase environment-variable name.
|
|
12318
|
+
* Uppercase environment-variable name. Set refuses a name starting with OHMYHOST_ and the platform names BETTER_AUTH_SECRET, BETTER_AUTH_URL, DATABASE_URL, HYPERDRIVE, ASSETS, FILES, IMAGES and STORAGE with a 400 whose detail is "Secret name is reserved.". Delete refuses the installed platform keys OHMYHOST_AI_KEY, OHMYHOST_MAIL_KEY, OHMYHOST_STORAGE_KEY, OHMYHOST_BROWSER_KEY and BETTER_AUTH_SECRET with the same detail.
|
|
12285
12319
|
*/
|
|
12286
12320
|
secret_name: string;
|
|
12287
12321
|
};
|
|
@@ -12307,9 +12341,9 @@ export type DeleteEnvironmentSecretErrors = {
|
|
|
12307
12341
|
*/
|
|
12308
12342
|
404: ProblemDetails;
|
|
12309
12343
|
/**
|
|
12310
|
-
* The
|
|
12344
|
+
* The request failed.
|
|
12311
12345
|
*/
|
|
12312
|
-
409:
|
|
12346
|
+
409: ProblemDetails;
|
|
12313
12347
|
/**
|
|
12314
12348
|
* The request failed.
|
|
12315
12349
|
*/
|
|
@@ -12355,7 +12389,7 @@ export type PutEnvironmentSecretData = {
|
|
|
12355
12389
|
*/
|
|
12356
12390
|
environment_id: Ulid;
|
|
12357
12391
|
/**
|
|
12358
|
-
* Uppercase environment-variable name.
|
|
12392
|
+
* Uppercase environment-variable name. Set refuses a name starting with OHMYHOST_ and the platform names BETTER_AUTH_SECRET, BETTER_AUTH_URL, DATABASE_URL, HYPERDRIVE, ASSETS, FILES, IMAGES and STORAGE with a 400 whose detail is "Secret name is reserved.". Delete refuses the installed platform keys OHMYHOST_AI_KEY, OHMYHOST_MAIL_KEY, OHMYHOST_STORAGE_KEY, OHMYHOST_BROWSER_KEY and BETTER_AUTH_SECRET with the same detail.
|
|
12359
12393
|
*/
|
|
12360
12394
|
secret_name: string;
|
|
12361
12395
|
};
|
|
@@ -12381,9 +12415,9 @@ export type PutEnvironmentSecretErrors = {
|
|
|
12381
12415
|
*/
|
|
12382
12416
|
404: ProblemDetails;
|
|
12383
12417
|
/**
|
|
12384
|
-
* The
|
|
12418
|
+
* The request failed.
|
|
12385
12419
|
*/
|
|
12386
|
-
409:
|
|
12420
|
+
409: ProblemDetails;
|
|
12387
12421
|
/**
|
|
12388
12422
|
* The request failed.
|
|
12389
12423
|
*/
|
|
@@ -12429,7 +12463,7 @@ export type RotateEnvironmentSecretData = {
|
|
|
12429
12463
|
*/
|
|
12430
12464
|
environment_id: Ulid;
|
|
12431
12465
|
/**
|
|
12432
|
-
* Uppercase environment-variable name.
|
|
12466
|
+
* Uppercase environment-variable name. Set refuses a name starting with OHMYHOST_ and the platform names BETTER_AUTH_SECRET, BETTER_AUTH_URL, DATABASE_URL, HYPERDRIVE, ASSETS, FILES, IMAGES and STORAGE with a 400 whose detail is "Secret name is reserved.". Delete refuses the installed platform keys OHMYHOST_AI_KEY, OHMYHOST_MAIL_KEY, OHMYHOST_STORAGE_KEY, OHMYHOST_BROWSER_KEY and BETTER_AUTH_SECRET with the same detail.
|
|
12433
12467
|
*/
|
|
12434
12468
|
secret_name: string;
|
|
12435
12469
|
};
|
|
@@ -12455,9 +12489,9 @@ export type RotateEnvironmentSecretErrors = {
|
|
|
12455
12489
|
*/
|
|
12456
12490
|
404: ProblemDetails;
|
|
12457
12491
|
/**
|
|
12458
|
-
* The
|
|
12492
|
+
* The request failed.
|
|
12459
12493
|
*/
|
|
12460
|
-
409:
|
|
12494
|
+
409: ProblemDetails;
|
|
12461
12495
|
/**
|
|
12462
12496
|
* The request failed.
|
|
12463
12497
|
*/
|
|
@@ -35,6 +35,9 @@ function requestManagedMail(client: Client, input: ManagedMailCommand) {
|
|
|
35
35
|
const scope = { project_id: input.projectId, environment_id: input.environmentId };
|
|
36
36
|
switch (input.action) {
|
|
37
37
|
case "configure":
|
|
38
|
+
// The contract accepts only sending true, so a setup that does not send is refused before any request.
|
|
39
|
+
if (input.sending !== true)
|
|
40
|
+
throw new TypeError("A managed mail domain must send: sending must be true.");
|
|
38
41
|
return configureManagedMailDomain(
|
|
39
42
|
{
|
|
40
43
|
...scope,
|