@amerged/ohmyhost-mcp 0.1.13 → 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.
@@ -4213,134 +4267,6 @@ export type ApplyPaidProjectDomainResponses = {
4213
4267
  export type ApplyPaidProjectDomainResponse =
4214
4268
  ApplyPaidProjectDomainResponses[keyof ApplyPaidProjectDomainResponses];
4215
4269
 
4216
- export type GetProjectMailDomainData = {
4217
- body?: never;
4218
- headers?: {
4219
- /**
4220
- * Optional caller-provided correlation identifier.
4221
- */
4222
- "X-Request-Id"?: string;
4223
- };
4224
- path: {
4225
- /**
4226
- * Project identifier.
4227
- */
4228
- project_id: Ulid;
4229
- };
4230
- query?: never;
4231
- url: "/v1/projects/{project_id}/mail-domain";
4232
- };
4233
-
4234
- export type GetProjectMailDomainErrors = {
4235
- /**
4236
- * The request failed.
4237
- */
4238
- 400: ProblemDetails;
4239
- /**
4240
- * The request failed.
4241
- */
4242
- 401: ProblemDetails;
4243
- /**
4244
- * The request failed.
4245
- */
4246
- 403: ProblemDetails;
4247
- /**
4248
- * The resource does not exist or is not visible to the authenticated principal.
4249
- */
4250
- 404: ProblemDetails;
4251
- /**
4252
- * The request failed.
4253
- */
4254
- 429: ProblemDetails;
4255
- /**
4256
- * The request failed.
4257
- */
4258
- 503: ProblemDetails;
4259
- };
4260
-
4261
- export type GetProjectMailDomainError =
4262
- GetProjectMailDomainErrors[keyof GetProjectMailDomainErrors];
4263
-
4264
- export type GetProjectMailDomainResponses = {
4265
- /**
4266
- * The current credential-free sender-domain status.
4267
- */
4268
- 200: ProjectMailDomain;
4269
- };
4270
-
4271
- export type GetProjectMailDomainResponse =
4272
- GetProjectMailDomainResponses[keyof GetProjectMailDomainResponses];
4273
-
4274
- export type ConfigureProjectMailDomainData = {
4275
- body: ConfigureProjectMailDomainRequest;
4276
- headers: {
4277
- /**
4278
- * Optional caller-provided correlation identifier.
4279
- */
4280
- "X-Request-Id"?: string;
4281
- /**
4282
- * Identifies one mutation and its canonical request payload.
4283
- */
4284
- "Idempotency-Key": string;
4285
- };
4286
- path: {
4287
- /**
4288
- * Project identifier.
4289
- */
4290
- project_id: Ulid;
4291
- };
4292
- query?: never;
4293
- url: "/v1/projects/{project_id}/mail-domain";
4294
- };
4295
-
4296
- export type ConfigureProjectMailDomainErrors = {
4297
- /**
4298
- * The request failed.
4299
- */
4300
- 400: ProblemDetails;
4301
- /**
4302
- * The request failed.
4303
- */
4304
- 401: ProblemDetails;
4305
- /**
4306
- * The request failed.
4307
- */
4308
- 402: ProblemDetails;
4309
- /**
4310
- * The request failed.
4311
- */
4312
- 403: ProblemDetails;
4313
- /**
4314
- * The resource does not exist or is not visible to the authenticated principal.
4315
- */
4316
- 404: ProblemDetails;
4317
- /**
4318
- * The request failed.
4319
- */
4320
- 409: ProblemDetails;
4321
- /**
4322
- * The request failed.
4323
- */
4324
- 429: ProblemDetails;
4325
- /**
4326
- * The request failed.
4327
- */
4328
- 503: ProblemDetails;
4329
- };
4330
-
4331
- export type ConfigureProjectMailDomainError =
4332
- ConfigureProjectMailDomainErrors[keyof ConfigureProjectMailDomainErrors];
4333
-
4334
- export type ConfigureProjectMailDomainResponses = {
4335
- /**
4336
- * The immutable project sender-domain configuration and current credential-free status.
4337
- */
4338
- 200: ProjectMailDomain;
4339
- };
4340
-
4341
- export type ConfigureProjectMailDomainResponse =
4342
- ConfigureProjectMailDomainResponses[keyof ConfigureProjectMailDomainResponses];
4343
-
4344
4270
  export type PlanDeploymentData = {
4345
4271
  body: PlanDeploymentRequest;
4346
4272
  headers?: {
@@ -5944,3 +5870,573 @@ export type ListAuditEventsResponses = {
5944
5870
  };
5945
5871
 
5946
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];