@amerged/ohmyhost-sdk 0.1.11 → 0.1.14

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.
@@ -4,6 +4,98 @@ export type ClientOptions = {
4
4
  baseUrl: "https://app.ohmyho.st" | "https://dev.app.ohmyho.st" | (string & {});
5
5
  };
6
6
 
7
+ export type ManagedMailDomainRequest = {
8
+ domain: string;
9
+ sending: boolean;
10
+ receiving: boolean;
11
+ };
12
+
13
+ export type ManagedMailWebhookRequest = {
14
+ url: string;
15
+ };
16
+
17
+ export type ManagedMailDnsRecord = {
18
+ type: "TXT" | "CNAME" | "MX";
19
+ name: string;
20
+ value: string;
21
+ purpose: string;
22
+ status: string;
23
+ priority?: number;
24
+ };
25
+
26
+ export type ManagedMailDomain = {
27
+ domain_id: Ulid;
28
+ domain: string;
29
+ environment_id: Ulid;
30
+ sending: "disabled" | "pending" | "ready" | "failed";
31
+ receiving: "disabled" | "pending" | "ready" | "failed";
32
+ status: "ready" | "verification_pending";
33
+ configured_at: string;
34
+ observed_at: string | null;
35
+ dns_records: Array<ManagedMailDnsRecord>;
36
+ dns?: {
37
+ status: "configured" | "action_required" | "conflict";
38
+ records: Array<ManagedMailDnsRecord>;
39
+ };
40
+ webhook: {
41
+ url: string;
42
+ verified: boolean;
43
+ } | null;
44
+ next_check_after_seconds: 60 | null;
45
+ };
46
+
47
+ export type ManagedMailWebhook = {
48
+ url: string;
49
+ /**
50
+ * Server-only signing secret. Never log or send it to the browser.
51
+ */
52
+ signing_secret: string;
53
+ status: "verification_required";
54
+ };
55
+
56
+ export type ManagedMailDisabled = {
57
+ status: "disabled";
58
+ };
59
+
60
+ export type ManagedMailExpired = {
61
+ status: "expired";
62
+ };
63
+
64
+ export type ManagedMailRetryResult = {
65
+ attempted: boolean;
66
+ delivered?: boolean;
67
+ };
68
+
69
+ export type ManagedMailMessagePage = {
70
+ items: Array<{
71
+ message_id: Ulid;
72
+ received_at: string;
73
+ state: "pending" | "delivering" | "delivered" | "delivery_failed" | "expired";
74
+ attempts: number;
75
+ }>;
76
+ };
77
+
78
+ export type ManagedMailContentResult = ManagedMailExpired | ManagedMailContent;
79
+
80
+ export type ManagedMailContent = {
81
+ id: Ulid;
82
+ domain: string;
83
+ received_at: string;
84
+ expires_at: string;
85
+ from: string;
86
+ to: Array<string>;
87
+ subject: string;
88
+ text: string | null;
89
+ html: string | null;
90
+ message_id: string;
91
+ attachments: Array<{
92
+ id: string;
93
+ filename: string | null;
94
+ content_type: string;
95
+ download_path: string;
96
+ }>;
97
+ };
98
+
7
99
  /**
8
100
  * One entry for each roadmap topic; no personal data or other browsers' votes.
9
101
  */
@@ -280,44 +372,6 @@ export type PaidDomain = {
280
372
  url: string | null;
281
373
  };
282
374
 
283
- export type ConfigureProjectMailDomainRequest = {
284
- domain: string;
285
- };
286
-
287
- export type ProjectMailDomain = ConfiguredProjectMailDomain | DelegatedProjectMailDomain;
288
-
289
- export type ConfiguredProjectMailDomain = {
290
- domain: string;
291
- status: "configured";
292
- configured_at: string;
293
- };
294
-
295
- export type DelegatedProjectMailDomain = {
296
- domain: string;
297
- status: "delegation_required" | "verification_pending" | "verification_failed" | "ready";
298
- configured_at: string;
299
- name_servers: [string, string, string, string];
300
- change_id: string;
301
- /**
302
- * Time of the fresh read-only provider verification, not the original configuration time.
303
- */
304
- observed_at?: string;
305
- /**
306
- * Ask the agent to check pending or failed verification again after one hour; null when ready.
307
- */
308
- next_check_after_seconds?: 3600 | null;
309
- /**
310
- * A missing tenant association is platform provisioning, not a request to rewrite DNS. Read the original operation and its failure action.
311
- */
312
- verification_issue?:
313
- | "identity_missing"
314
- | "identity_verification_failed"
315
- | "dkim_verification_failed"
316
- | "dkim_records_changed"
317
- | "tenant_association_missing"
318
- | null;
319
- };
320
-
321
375
  export type PutEnvironmentSecretRequest = {
322
376
  /**
323
377
  * Write-only plaintext value. It is encrypted before persistence and never returned.
@@ -865,6 +919,10 @@ export type ProjectHandleAvailability = {
865
919
  };
866
920
 
867
921
  export type ProjectStatus = {
922
+ /**
923
+ * Optimistic-concurrency token for changing this project address; use it as If-Match on the handle endpoint.
924
+ */
925
+ etag: string;
868
926
  project_id: Ulid;
869
927
  handle: string;
870
928
  region: HostingRegion;
@@ -912,9 +970,14 @@ export type ProblemDetails = {
912
970
  | "mail_domain_required"
913
971
  | "storage_jurisdiction_conflict"
914
972
  | "framework_conversion_required"
973
+ | "repository_configuration_missing"
915
974
  | "migration_filename_noncanonical"
916
975
  | "environment_secret_mutation_blocked"
917
976
  | "workers_runtime_incompatible"
977
+ | "project_handle_invalid"
978
+ | "project_handle_taken"
979
+ | "project_handle_unchanged"
980
+ | "project_rename_blocked"
918
981
  | "payload_too_large"
919
982
  | "rate_limited"
920
983
  | "insufficient_organization_credits"
@@ -3812,8 +3875,13 @@ export type GetCloudflareDnsAuthorizationStatusResponses = {
3812
3875
  export type GetCloudflareDnsAuthorizationStatusResponse =
3813
3876
  GetCloudflareDnsAuthorizationStatusResponses[keyof GetCloudflareDnsAuthorizationStatusResponses];
3814
3877
 
3815
- export type ConfigureProjectDomainsData = {
3816
- body?: never;
3878
+ export type ChangeProjectHandleData = {
3879
+ body: {
3880
+ /**
3881
+ * One to five lowercase words of letters and digits.
3882
+ */
3883
+ handle: string;
3884
+ };
3817
3885
  headers: {
3818
3886
  /**
3819
3887
  * Optional caller-provided correlation identifier.
@@ -3823,6 +3891,10 @@ export type ConfigureProjectDomainsData = {
3823
3891
  * Identifies one mutation and its canonical request payload.
3824
3892
  */
3825
3893
  "Idempotency-Key": string;
3894
+ /**
3895
+ * Exact ETag returned for the current project or deployment state.
3896
+ */
3897
+ "If-Match": string;
3826
3898
  };
3827
3899
  path: {
3828
3900
  /**
@@ -3831,10 +3903,10 @@ export type ConfigureProjectDomainsData = {
3831
3903
  project_id: Ulid;
3832
3904
  };
3833
3905
  query?: never;
3834
- url: "/v1/projects/{project_id}/domains";
3906
+ url: "/v1/projects/{project_id}/handle";
3835
3907
  };
3836
3908
 
3837
- export type ConfigureProjectDomainsErrors = {
3909
+ export type ChangeProjectHandleErrors = {
3838
3910
  /**
3839
3911
  * The request failed.
3840
3912
  */
@@ -3865,79 +3937,20 @@ export type ConfigureProjectDomainsErrors = {
3865
3937
  503: ProblemDetails;
3866
3938
  };
3867
3939
 
3868
- export type ConfigureProjectDomainsError =
3869
- ConfigureProjectDomainsErrors[keyof ConfigureProjectDomainsErrors];
3940
+ export type ChangeProjectHandleError = ChangeProjectHandleErrors[keyof ChangeProjectHandleErrors];
3870
3941
 
3871
- export type ConfigureProjectDomainsResponses = {
3942
+ export type ChangeProjectHandleResponses = {
3872
3943
  /**
3873
3944
  * The mutation was accepted for asynchronous processing.
3874
3945
  */
3875
3946
  202: Operation;
3876
3947
  };
3877
3948
 
3878
- export type ConfigureProjectDomainsResponse =
3879
- ConfigureProjectDomainsResponses[keyof ConfigureProjectDomainsResponses];
3880
-
3881
- export type PlanPaidProjectDomainData = {
3882
- body: PaidDomainRequest;
3883
- headers?: {
3884
- /**
3885
- * Optional caller-provided correlation identifier.
3886
- */
3887
- "X-Request-Id"?: string;
3888
- };
3889
- path: {
3890
- /**
3891
- * Project identifier.
3892
- */
3893
- project_id: Ulid;
3894
- };
3895
- query?: never;
3896
- url: "/v1/projects/{project_id}/paid-domain:plan";
3897
- };
3898
-
3899
- export type PlanPaidProjectDomainErrors = {
3900
- /**
3901
- * The request failed.
3902
- */
3903
- 400: ProblemDetails;
3904
- /**
3905
- * The request failed.
3906
- */
3907
- 401: ProblemDetails;
3908
- /**
3909
- * The request failed.
3910
- */
3911
- 403: ProblemDetails;
3912
- /**
3913
- * The resource does not exist or is not visible to the authenticated principal.
3914
- */
3915
- 404: ProblemDetails;
3916
- /**
3917
- * The request failed.
3918
- */
3919
- 429: ProblemDetails;
3920
- /**
3921
- * The request failed.
3922
- */
3923
- 503: ProblemDetails;
3924
- };
3925
-
3926
- export type PlanPaidProjectDomainError =
3927
- PlanPaidProjectDomainErrors[keyof PlanPaidProjectDomainErrors];
3928
-
3929
- export type PlanPaidProjectDomainResponses = {
3930
- /**
3931
- * Manual CNAME instructions and exact provider effects.
3932
- */
3933
- 200: PaidDomainPlan;
3934
- };
3935
-
3936
- export type PlanPaidProjectDomainResponse =
3937
- PlanPaidProjectDomainResponses[keyof PlanPaidProjectDomainResponses];
3949
+ export type ChangeProjectHandleResponse =
3950
+ ChangeProjectHandleResponses[keyof ChangeProjectHandleResponses];
3938
3951
 
3939
- export type DeletePaidProjectDomainData = {
3940
- body: PaidDomainRequest;
3952
+ export type ConfigureProjectDomainsData = {
3953
+ body?: never;
3941
3954
  headers: {
3942
3955
  /**
3943
3956
  * Optional caller-provided correlation identifier.
@@ -3955,10 +3968,10 @@ export type DeletePaidProjectDomainData = {
3955
3968
  project_id: Ulid;
3956
3969
  };
3957
3970
  query?: never;
3958
- url: "/v1/projects/{project_id}/paid-domain";
3971
+ url: "/v1/projects/{project_id}/domains";
3959
3972
  };
3960
3973
 
3961
- export type DeletePaidProjectDomainErrors = {
3974
+ export type ConfigureProjectDomainsErrors = {
3962
3975
  /**
3963
3976
  * The request failed.
3964
3977
  */
@@ -3989,21 +4002,21 @@ export type DeletePaidProjectDomainErrors = {
3989
4002
  503: ProblemDetails;
3990
4003
  };
3991
4004
 
3992
- export type DeletePaidProjectDomainError =
3993
- DeletePaidProjectDomainErrors[keyof DeletePaidProjectDomainErrors];
4005
+ export type ConfigureProjectDomainsError =
4006
+ ConfigureProjectDomainsErrors[keyof ConfigureProjectDomainsErrors];
3994
4007
 
3995
- export type DeletePaidProjectDomainResponses = {
4008
+ export type ConfigureProjectDomainsResponses = {
3996
4009
  /**
3997
- * Exact route and custom hostname are absent.
4010
+ * The mutation was accepted for asynchronous processing.
3998
4011
  */
3999
- 200: PaidDomain;
4012
+ 202: Operation;
4000
4013
  };
4001
4014
 
4002
- export type DeletePaidProjectDomainResponse =
4003
- DeletePaidProjectDomainResponses[keyof DeletePaidProjectDomainResponses];
4015
+ export type ConfigureProjectDomainsResponse =
4016
+ ConfigureProjectDomainsResponses[keyof ConfigureProjectDomainsResponses];
4004
4017
 
4005
- export type GetPaidProjectDomainData = {
4006
- body?: never;
4018
+ export type PlanPaidProjectDomainData = {
4019
+ body: PaidDomainRequest;
4007
4020
  headers?: {
4008
4021
  /**
4009
4022
  * Optional caller-provided correlation identifier.
@@ -4017,10 +4030,10 @@ export type GetPaidProjectDomainData = {
4017
4030
  project_id: Ulid;
4018
4031
  };
4019
4032
  query?: never;
4020
- url: "/v1/projects/{project_id}/paid-domain";
4033
+ url: "/v1/projects/{project_id}/paid-domain:plan";
4021
4034
  };
4022
4035
 
4023
- export type GetPaidProjectDomainErrors = {
4036
+ export type PlanPaidProjectDomainErrors = {
4024
4037
  /**
4025
4038
  * The request failed.
4026
4039
  */
@@ -4047,20 +4060,20 @@ export type GetPaidProjectDomainErrors = {
4047
4060
  503: ProblemDetails;
4048
4061
  };
4049
4062
 
4050
- export type GetPaidProjectDomainError =
4051
- GetPaidProjectDomainErrors[keyof GetPaidProjectDomainErrors];
4063
+ export type PlanPaidProjectDomainError =
4064
+ PlanPaidProjectDomainErrors[keyof PlanPaidProjectDomainErrors];
4052
4065
 
4053
- export type GetPaidProjectDomainResponses = {
4066
+ export type PlanPaidProjectDomainResponses = {
4054
4067
  /**
4055
- * Current credential-free hostname, CNAME and certificate state.
4068
+ * Manual CNAME instructions and exact provider effects.
4056
4069
  */
4057
- 200: PaidDomain;
4070
+ 200: PaidDomainPlan;
4058
4071
  };
4059
4072
 
4060
- export type GetPaidProjectDomainResponse =
4061
- GetPaidProjectDomainResponses[keyof GetPaidProjectDomainResponses];
4073
+ export type PlanPaidProjectDomainResponse =
4074
+ PlanPaidProjectDomainResponses[keyof PlanPaidProjectDomainResponses];
4062
4075
 
4063
- export type ApplyPaidProjectDomainData = {
4076
+ export type DeletePaidProjectDomainData = {
4064
4077
  body: PaidDomainRequest;
4065
4078
  headers: {
4066
4079
  /**
@@ -4082,7 +4095,7 @@ export type ApplyPaidProjectDomainData = {
4082
4095
  url: "/v1/projects/{project_id}/paid-domain";
4083
4096
  };
4084
4097
 
4085
- export type ApplyPaidProjectDomainErrors = {
4098
+ export type DeletePaidProjectDomainErrors = {
4086
4099
  /**
4087
4100
  * The request failed.
4088
4101
  */
@@ -4091,10 +4104,6 @@ export type ApplyPaidProjectDomainErrors = {
4091
4104
  * The request failed.
4092
4105
  */
4093
4106
  401: ProblemDetails;
4094
- /**
4095
- * The request failed.
4096
- */
4097
- 402: ProblemDetails;
4098
4107
  /**
4099
4108
  * The request failed.
4100
4109
  */
@@ -4117,20 +4126,20 @@ export type ApplyPaidProjectDomainErrors = {
4117
4126
  503: ProblemDetails;
4118
4127
  };
4119
4128
 
4120
- export type ApplyPaidProjectDomainError =
4121
- ApplyPaidProjectDomainErrors[keyof ApplyPaidProjectDomainErrors];
4129
+ export type DeletePaidProjectDomainError =
4130
+ DeletePaidProjectDomainErrors[keyof DeletePaidProjectDomainErrors];
4122
4131
 
4123
- export type ApplyPaidProjectDomainResponses = {
4132
+ export type DeletePaidProjectDomainResponses = {
4124
4133
  /**
4125
- * Current Cloudflare for SaaS hostname and certificate state.
4134
+ * Exact route and custom hostname are absent.
4126
4135
  */
4127
4136
  200: PaidDomain;
4128
4137
  };
4129
4138
 
4130
- export type ApplyPaidProjectDomainResponse =
4131
- ApplyPaidProjectDomainResponses[keyof ApplyPaidProjectDomainResponses];
4139
+ export type DeletePaidProjectDomainResponse =
4140
+ DeletePaidProjectDomainResponses[keyof DeletePaidProjectDomainResponses];
4132
4141
 
4133
- export type GetProjectMailDomainData = {
4142
+ export type GetPaidProjectDomainData = {
4134
4143
  body?: never;
4135
4144
  headers?: {
4136
4145
  /**
@@ -4145,10 +4154,10 @@ export type GetProjectMailDomainData = {
4145
4154
  project_id: Ulid;
4146
4155
  };
4147
4156
  query?: never;
4148
- url: "/v1/projects/{project_id}/mail-domain";
4157
+ url: "/v1/projects/{project_id}/paid-domain";
4149
4158
  };
4150
4159
 
4151
- export type GetProjectMailDomainErrors = {
4160
+ export type GetPaidProjectDomainErrors = {
4152
4161
  /**
4153
4162
  * The request failed.
4154
4163
  */
@@ -4175,21 +4184,21 @@ export type GetProjectMailDomainErrors = {
4175
4184
  503: ProblemDetails;
4176
4185
  };
4177
4186
 
4178
- export type GetProjectMailDomainError =
4179
- GetProjectMailDomainErrors[keyof GetProjectMailDomainErrors];
4187
+ export type GetPaidProjectDomainError =
4188
+ GetPaidProjectDomainErrors[keyof GetPaidProjectDomainErrors];
4180
4189
 
4181
- export type GetProjectMailDomainResponses = {
4190
+ export type GetPaidProjectDomainResponses = {
4182
4191
  /**
4183
- * The current credential-free sender-domain status.
4192
+ * Current credential-free hostname, CNAME and certificate state.
4184
4193
  */
4185
- 200: ProjectMailDomain;
4194
+ 200: PaidDomain;
4186
4195
  };
4187
4196
 
4188
- export type GetProjectMailDomainResponse =
4189
- GetProjectMailDomainResponses[keyof GetProjectMailDomainResponses];
4197
+ export type GetPaidProjectDomainResponse =
4198
+ GetPaidProjectDomainResponses[keyof GetPaidProjectDomainResponses];
4190
4199
 
4191
- export type ConfigureProjectMailDomainData = {
4192
- body: ConfigureProjectMailDomainRequest;
4200
+ export type ApplyPaidProjectDomainData = {
4201
+ body: PaidDomainRequest;
4193
4202
  headers: {
4194
4203
  /**
4195
4204
  * Optional caller-provided correlation identifier.
@@ -4207,10 +4216,10 @@ export type ConfigureProjectMailDomainData = {
4207
4216
  project_id: Ulid;
4208
4217
  };
4209
4218
  query?: never;
4210
- url: "/v1/projects/{project_id}/mail-domain";
4219
+ url: "/v1/projects/{project_id}/paid-domain";
4211
4220
  };
4212
4221
 
4213
- export type ConfigureProjectMailDomainErrors = {
4222
+ export type ApplyPaidProjectDomainErrors = {
4214
4223
  /**
4215
4224
  * The request failed.
4216
4225
  */
@@ -4232,9 +4241,9 @@ export type ConfigureProjectMailDomainErrors = {
4232
4241
  */
4233
4242
  404: ProblemDetails;
4234
4243
  /**
4235
- * The request failed.
4244
+ * The idempotency key was already used with a different canonical request.
4236
4245
  */
4237
- 409: ProblemDetails;
4246
+ 409: IdempotencyConflictProblem;
4238
4247
  /**
4239
4248
  * The request failed.
4240
4249
  */
@@ -4245,18 +4254,18 @@ export type ConfigureProjectMailDomainErrors = {
4245
4254
  503: ProblemDetails;
4246
4255
  };
4247
4256
 
4248
- export type ConfigureProjectMailDomainError =
4249
- ConfigureProjectMailDomainErrors[keyof ConfigureProjectMailDomainErrors];
4257
+ export type ApplyPaidProjectDomainError =
4258
+ ApplyPaidProjectDomainErrors[keyof ApplyPaidProjectDomainErrors];
4250
4259
 
4251
- export type ConfigureProjectMailDomainResponses = {
4260
+ export type ApplyPaidProjectDomainResponses = {
4252
4261
  /**
4253
- * The immutable project sender-domain configuration and current credential-free status.
4262
+ * Current Cloudflare for SaaS hostname and certificate state.
4254
4263
  */
4255
- 200: ProjectMailDomain;
4264
+ 200: PaidDomain;
4256
4265
  };
4257
4266
 
4258
- export type ConfigureProjectMailDomainResponse =
4259
- ConfigureProjectMailDomainResponses[keyof ConfigureProjectMailDomainResponses];
4267
+ export type ApplyPaidProjectDomainResponse =
4268
+ ApplyPaidProjectDomainResponses[keyof ApplyPaidProjectDomainResponses];
4260
4269
 
4261
4270
  export type PlanDeploymentData = {
4262
4271
  body: PlanDeploymentRequest;
@@ -5861,3 +5870,573 @@ export type ListAuditEventsResponses = {
5861
5870
  };
5862
5871
 
5863
5872
  export type ListAuditEventsResponse = ListAuditEventsResponses[keyof ListAuditEventsResponses];
5873
+
5874
+ export type GetManagedMailDomainData = {
5875
+ body?: never;
5876
+ headers?: {
5877
+ /**
5878
+ * Optional caller-provided correlation identifier.
5879
+ */
5880
+ "X-Request-Id"?: string;
5881
+ };
5882
+ path: {
5883
+ project_id: Ulid;
5884
+ environment_id: Ulid;
5885
+ };
5886
+ query?: never;
5887
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail-domain";
5888
+ };
5889
+
5890
+ export type GetManagedMailDomainErrors = {
5891
+ /**
5892
+ * The request failed.
5893
+ */
5894
+ 400: ProblemDetails;
5895
+ /**
5896
+ * The request failed.
5897
+ */
5898
+ 401: ProblemDetails;
5899
+ /**
5900
+ * The request failed.
5901
+ */
5902
+ 403: ProblemDetails;
5903
+ /**
5904
+ * The request failed.
5905
+ */
5906
+ 404: ProblemDetails;
5907
+ /**
5908
+ * The request failed.
5909
+ */
5910
+ 409: ProblemDetails;
5911
+ /**
5912
+ * The request failed.
5913
+ */
5914
+ 429: ProblemDetails;
5915
+ /**
5916
+ * The request failed.
5917
+ */
5918
+ 503: ProblemDetails;
5919
+ };
5920
+
5921
+ export type GetManagedMailDomainError =
5922
+ GetManagedMailDomainErrors[keyof GetManagedMailDomainErrors];
5923
+
5924
+ export type GetManagedMailDomainResponses = {
5925
+ /**
5926
+ * Authorized mail result.
5927
+ */
5928
+ 200: ManagedMailDomain;
5929
+ };
5930
+
5931
+ export type GetManagedMailDomainResponse =
5932
+ GetManagedMailDomainResponses[keyof GetManagedMailDomainResponses];
5933
+
5934
+ export type ConfigureManagedMailDomainData = {
5935
+ body: ManagedMailDomainRequest;
5936
+ headers: {
5937
+ /**
5938
+ * Optional caller-provided correlation identifier.
5939
+ */
5940
+ "X-Request-Id"?: string;
5941
+ /**
5942
+ * Identifies one mutation and its canonical request payload.
5943
+ */
5944
+ "Idempotency-Key": string;
5945
+ };
5946
+ path: {
5947
+ project_id: Ulid;
5948
+ environment_id: Ulid;
5949
+ };
5950
+ query?: never;
5951
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail-domain";
5952
+ };
5953
+
5954
+ export type ConfigureManagedMailDomainErrors = {
5955
+ /**
5956
+ * The request failed.
5957
+ */
5958
+ 400: ProblemDetails;
5959
+ /**
5960
+ * The request failed.
5961
+ */
5962
+ 401: ProblemDetails;
5963
+ /**
5964
+ * The request failed.
5965
+ */
5966
+ 403: ProblemDetails;
5967
+ /**
5968
+ * The request failed.
5969
+ */
5970
+ 404: ProblemDetails;
5971
+ /**
5972
+ * The request failed.
5973
+ */
5974
+ 409: ProblemDetails;
5975
+ /**
5976
+ * The request failed.
5977
+ */
5978
+ 429: ProblemDetails;
5979
+ /**
5980
+ * The request failed.
5981
+ */
5982
+ 503: ProblemDetails;
5983
+ };
5984
+
5985
+ export type ConfigureManagedMailDomainError =
5986
+ ConfigureManagedMailDomainErrors[keyof ConfigureManagedMailDomainErrors];
5987
+
5988
+ export type ConfigureManagedMailDomainResponses = {
5989
+ /**
5990
+ * Authorized mail result.
5991
+ */
5992
+ 200: ManagedMailDomain;
5993
+ };
5994
+
5995
+ export type ConfigureManagedMailDomainResponse =
5996
+ ConfigureManagedMailDomainResponses[keyof ConfigureManagedMailDomainResponses];
5997
+
5998
+ export type DisableManagedMailReceivingData = {
5999
+ body?: never;
6000
+ headers: {
6001
+ /**
6002
+ * Optional caller-provided correlation identifier.
6003
+ */
6004
+ "X-Request-Id"?: string;
6005
+ /**
6006
+ * Identifies one mutation and its canonical request payload.
6007
+ */
6008
+ "Idempotency-Key": string;
6009
+ };
6010
+ path: {
6011
+ project_id: Ulid;
6012
+ environment_id: Ulid;
6013
+ };
6014
+ query?: never;
6015
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail-webhook";
6016
+ };
6017
+
6018
+ export type DisableManagedMailReceivingErrors = {
6019
+ /**
6020
+ * The request failed.
6021
+ */
6022
+ 400: ProblemDetails;
6023
+ /**
6024
+ * The request failed.
6025
+ */
6026
+ 401: ProblemDetails;
6027
+ /**
6028
+ * The request failed.
6029
+ */
6030
+ 403: ProblemDetails;
6031
+ /**
6032
+ * The request failed.
6033
+ */
6034
+ 404: ProblemDetails;
6035
+ /**
6036
+ * The request failed.
6037
+ */
6038
+ 409: ProblemDetails;
6039
+ /**
6040
+ * The request failed.
6041
+ */
6042
+ 429: ProblemDetails;
6043
+ /**
6044
+ * The request failed.
6045
+ */
6046
+ 503: ProblemDetails;
6047
+ };
6048
+
6049
+ export type DisableManagedMailReceivingError =
6050
+ DisableManagedMailReceivingErrors[keyof DisableManagedMailReceivingErrors];
6051
+
6052
+ export type DisableManagedMailReceivingResponses = {
6053
+ /**
6054
+ * Authorized mail result.
6055
+ */
6056
+ 200: ManagedMailDisabled;
6057
+ };
6058
+
6059
+ export type DisableManagedMailReceivingResponse =
6060
+ DisableManagedMailReceivingResponses[keyof DisableManagedMailReceivingResponses];
6061
+
6062
+ export type PrepareManagedMailWebhookData = {
6063
+ body: ManagedMailWebhookRequest;
6064
+ headers: {
6065
+ /**
6066
+ * Optional caller-provided correlation identifier.
6067
+ */
6068
+ "X-Request-Id"?: string;
6069
+ /**
6070
+ * Identifies one mutation and its canonical request payload.
6071
+ */
6072
+ "Idempotency-Key": string;
6073
+ };
6074
+ path: {
6075
+ project_id: Ulid;
6076
+ environment_id: Ulid;
6077
+ };
6078
+ query?: never;
6079
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail-webhook";
6080
+ };
6081
+
6082
+ export type PrepareManagedMailWebhookErrors = {
6083
+ /**
6084
+ * The request failed.
6085
+ */
6086
+ 400: ProblemDetails;
6087
+ /**
6088
+ * The request failed.
6089
+ */
6090
+ 401: ProblemDetails;
6091
+ /**
6092
+ * The request failed.
6093
+ */
6094
+ 403: ProblemDetails;
6095
+ /**
6096
+ * The request failed.
6097
+ */
6098
+ 404: ProblemDetails;
6099
+ /**
6100
+ * The request failed.
6101
+ */
6102
+ 409: ProblemDetails;
6103
+ /**
6104
+ * The request failed.
6105
+ */
6106
+ 429: ProblemDetails;
6107
+ /**
6108
+ * The request failed.
6109
+ */
6110
+ 503: ProblemDetails;
6111
+ };
6112
+
6113
+ export type PrepareManagedMailWebhookError =
6114
+ PrepareManagedMailWebhookErrors[keyof PrepareManagedMailWebhookErrors];
6115
+
6116
+ export type PrepareManagedMailWebhookResponses = {
6117
+ /**
6118
+ * Authorized mail result.
6119
+ */
6120
+ 200: ManagedMailWebhook;
6121
+ };
6122
+
6123
+ export type PrepareManagedMailWebhookResponse =
6124
+ PrepareManagedMailWebhookResponses[keyof PrepareManagedMailWebhookResponses];
6125
+
6126
+ export type VerifyManagedMailWebhookData = {
6127
+ body?: never;
6128
+ headers: {
6129
+ /**
6130
+ * Optional caller-provided correlation identifier.
6131
+ */
6132
+ "X-Request-Id"?: string;
6133
+ /**
6134
+ * Identifies one mutation and its canonical request payload.
6135
+ */
6136
+ "Idempotency-Key": string;
6137
+ };
6138
+ path: {
6139
+ project_id: Ulid;
6140
+ environment_id: Ulid;
6141
+ };
6142
+ query?: never;
6143
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail-webhook/verify";
6144
+ };
6145
+
6146
+ export type VerifyManagedMailWebhookErrors = {
6147
+ /**
6148
+ * The request failed.
6149
+ */
6150
+ 400: ProblemDetails;
6151
+ /**
6152
+ * The request failed.
6153
+ */
6154
+ 401: ProblemDetails;
6155
+ /**
6156
+ * The request failed.
6157
+ */
6158
+ 403: ProblemDetails;
6159
+ /**
6160
+ * The request failed.
6161
+ */
6162
+ 404: ProblemDetails;
6163
+ /**
6164
+ * The request failed.
6165
+ */
6166
+ 409: ProblemDetails;
6167
+ /**
6168
+ * The request failed.
6169
+ */
6170
+ 429: ProblemDetails;
6171
+ /**
6172
+ * The request failed.
6173
+ */
6174
+ 503: ProblemDetails;
6175
+ };
6176
+
6177
+ export type VerifyManagedMailWebhookError =
6178
+ VerifyManagedMailWebhookErrors[keyof VerifyManagedMailWebhookErrors];
6179
+
6180
+ export type VerifyManagedMailWebhookResponses = {
6181
+ /**
6182
+ * Authorized mail result.
6183
+ */
6184
+ 200: ManagedMailDomain;
6185
+ };
6186
+
6187
+ export type VerifyManagedMailWebhookResponse =
6188
+ VerifyManagedMailWebhookResponses[keyof VerifyManagedMailWebhookResponses];
6189
+
6190
+ export type ListManagedMailMessagesData = {
6191
+ body?: never;
6192
+ headers?: {
6193
+ /**
6194
+ * Optional caller-provided correlation identifier.
6195
+ */
6196
+ "X-Request-Id"?: string;
6197
+ };
6198
+ path: {
6199
+ project_id: Ulid;
6200
+ environment_id: Ulid;
6201
+ };
6202
+ query?: {
6203
+ after?: Ulid;
6204
+ };
6205
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail/messages";
6206
+ };
6207
+
6208
+ export type ListManagedMailMessagesErrors = {
6209
+ /**
6210
+ * The request failed.
6211
+ */
6212
+ 400: ProblemDetails;
6213
+ /**
6214
+ * The request failed.
6215
+ */
6216
+ 401: ProblemDetails;
6217
+ /**
6218
+ * The request failed.
6219
+ */
6220
+ 403: ProblemDetails;
6221
+ /**
6222
+ * The request failed.
6223
+ */
6224
+ 404: ProblemDetails;
6225
+ /**
6226
+ * The request failed.
6227
+ */
6228
+ 409: ProblemDetails;
6229
+ /**
6230
+ * The request failed.
6231
+ */
6232
+ 429: ProblemDetails;
6233
+ /**
6234
+ * The request failed.
6235
+ */
6236
+ 503: ProblemDetails;
6237
+ };
6238
+
6239
+ export type ListManagedMailMessagesError =
6240
+ ListManagedMailMessagesErrors[keyof ListManagedMailMessagesErrors];
6241
+
6242
+ export type ListManagedMailMessagesResponses = {
6243
+ /**
6244
+ * Authorized mail result.
6245
+ */
6246
+ 200: ManagedMailMessagePage;
6247
+ };
6248
+
6249
+ export type ListManagedMailMessagesResponse =
6250
+ ListManagedMailMessagesResponses[keyof ListManagedMailMessagesResponses];
6251
+
6252
+ export type GetManagedMailMessageData = {
6253
+ body?: never;
6254
+ headers?: {
6255
+ /**
6256
+ * Optional caller-provided correlation identifier.
6257
+ */
6258
+ "X-Request-Id"?: string;
6259
+ };
6260
+ path: {
6261
+ project_id: Ulid;
6262
+ environment_id: Ulid;
6263
+ message_id: Ulid;
6264
+ };
6265
+ query?: never;
6266
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail/messages/{message_id}";
6267
+ };
6268
+
6269
+ export type GetManagedMailMessageErrors = {
6270
+ /**
6271
+ * The request failed.
6272
+ */
6273
+ 400: ProblemDetails;
6274
+ /**
6275
+ * The request failed.
6276
+ */
6277
+ 401: ProblemDetails;
6278
+ /**
6279
+ * The request failed.
6280
+ */
6281
+ 403: ProblemDetails;
6282
+ /**
6283
+ * The request failed.
6284
+ */
6285
+ 404: ProblemDetails;
6286
+ /**
6287
+ * The request failed.
6288
+ */
6289
+ 409: ProblemDetails;
6290
+ /**
6291
+ * The request failed.
6292
+ */
6293
+ 429: ProblemDetails;
6294
+ /**
6295
+ * The request failed.
6296
+ */
6297
+ 503: ProblemDetails;
6298
+ };
6299
+
6300
+ export type GetManagedMailMessageError =
6301
+ GetManagedMailMessageErrors[keyof GetManagedMailMessageErrors];
6302
+
6303
+ export type GetManagedMailMessageResponses = {
6304
+ /**
6305
+ * Authorized mail result.
6306
+ */
6307
+ 200: ManagedMailContentResult;
6308
+ };
6309
+
6310
+ export type GetManagedMailMessageResponse =
6311
+ GetManagedMailMessageResponses[keyof GetManagedMailMessageResponses];
6312
+
6313
+ export type RetryManagedMailMessageData = {
6314
+ body?: never;
6315
+ headers: {
6316
+ /**
6317
+ * Optional caller-provided correlation identifier.
6318
+ */
6319
+ "X-Request-Id"?: string;
6320
+ /**
6321
+ * Identifies one mutation and its canonical request payload.
6322
+ */
6323
+ "Idempotency-Key": string;
6324
+ };
6325
+ path: {
6326
+ project_id: Ulid;
6327
+ environment_id: Ulid;
6328
+ message_id: Ulid;
6329
+ };
6330
+ query?: never;
6331
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail/messages/{message_id}/retry";
6332
+ };
6333
+
6334
+ export type RetryManagedMailMessageErrors = {
6335
+ /**
6336
+ * The request failed.
6337
+ */
6338
+ 400: ProblemDetails;
6339
+ /**
6340
+ * The request failed.
6341
+ */
6342
+ 401: ProblemDetails;
6343
+ /**
6344
+ * The request failed.
6345
+ */
6346
+ 403: ProblemDetails;
6347
+ /**
6348
+ * The request failed.
6349
+ */
6350
+ 404: ProblemDetails;
6351
+ /**
6352
+ * The request failed.
6353
+ */
6354
+ 409: ProblemDetails;
6355
+ /**
6356
+ * The request failed.
6357
+ */
6358
+ 429: ProblemDetails;
6359
+ /**
6360
+ * The request failed.
6361
+ */
6362
+ 503: ProblemDetails;
6363
+ };
6364
+
6365
+ export type RetryManagedMailMessageError =
6366
+ RetryManagedMailMessageErrors[keyof RetryManagedMailMessageErrors];
6367
+
6368
+ export type RetryManagedMailMessageResponses = {
6369
+ /**
6370
+ * Authorized mail result.
6371
+ */
6372
+ 200: ManagedMailRetryResult;
6373
+ };
6374
+
6375
+ export type RetryManagedMailMessageResponse =
6376
+ RetryManagedMailMessageResponses[keyof RetryManagedMailMessageResponses];
6377
+
6378
+ export type GetManagedMailAttachmentData = {
6379
+ body?: never;
6380
+ headers?: {
6381
+ /**
6382
+ * Optional caller-provided correlation identifier.
6383
+ */
6384
+ "X-Request-Id"?: string;
6385
+ };
6386
+ path: {
6387
+ project_id: Ulid;
6388
+ environment_id: Ulid;
6389
+ message_id: Ulid;
6390
+ attachment_id: string;
6391
+ };
6392
+ query?: never;
6393
+ url: "/v1/projects/{project_id}/environments/{environment_id}/mail/messages/{message_id}/attachments/{attachment_id}";
6394
+ };
6395
+
6396
+ export type GetManagedMailAttachmentErrors = {
6397
+ /**
6398
+ * The request failed.
6399
+ */
6400
+ 400: ProblemDetails;
6401
+ /**
6402
+ * The request failed.
6403
+ */
6404
+ 401: ProblemDetails;
6405
+ /**
6406
+ * The request failed.
6407
+ */
6408
+ 403: ProblemDetails;
6409
+ /**
6410
+ * The request failed.
6411
+ */
6412
+ 404: ProblemDetails;
6413
+ /**
6414
+ * The request failed.
6415
+ */
6416
+ 409: ProblemDetails;
6417
+ /**
6418
+ * The request failed.
6419
+ */
6420
+ 413: ProblemDetails;
6421
+ /**
6422
+ * The request failed.
6423
+ */
6424
+ 429: ProblemDetails;
6425
+ /**
6426
+ * The request failed.
6427
+ */
6428
+ 503: ProblemDetails;
6429
+ };
6430
+
6431
+ export type GetManagedMailAttachmentError =
6432
+ GetManagedMailAttachmentErrors[keyof GetManagedMailAttachmentErrors];
6433
+
6434
+ export type GetManagedMailAttachmentResponses = {
6435
+ /**
6436
+ * Authorized mail result.
6437
+ */
6438
+ 200: ManagedMailExpired;
6439
+ };
6440
+
6441
+ export type GetManagedMailAttachmentResponse =
6442
+ GetManagedMailAttachmentResponses[keyof GetManagedMailAttachmentResponses];