@meshery/schemas 1.3.51 → 1.3.52
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/dist/cloudApi.d.mts +1219 -135
- package/dist/cloudApi.d.ts +1219 -135
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/dist/constructs/v1beta1/organization_smtp/OrganizationSmtp.d.ts +1099 -217
- package/dist/constructs/v1beta1/organization_smtp/OrganizationSmtpSchema.js +6 -2
- package/dist/constructs/v1beta1/organization_smtp/OrganizationSmtpSchema.mjs +6 -2
- package/package.json +1 -1
|
@@ -4,7 +4,32 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export interface paths {
|
|
7
|
-
"/api/
|
|
7
|
+
"/api/orgs/{orgId}/environments/mail-relay": {
|
|
8
|
+
parameters: {
|
|
9
|
+
query?: never;
|
|
10
|
+
header?: never;
|
|
11
|
+
path?: never;
|
|
12
|
+
cookie?: never;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Probe whether an organization has brought its own mail server
|
|
16
|
+
* @description Returns the organization's mail-relay environment when it exists. A 404 is the ordinary answer for an organization using the provider's shared relay, and is not an error condition.
|
|
17
|
+
*/
|
|
18
|
+
get: operations["getOrganizationSmtpEnvironment"];
|
|
19
|
+
put?: never;
|
|
20
|
+
post?: never;
|
|
21
|
+
/**
|
|
22
|
+
* Remove an organization's mail server entirely
|
|
23
|
+
* @description Removes the configuration, its stored credential and the environment that held them, together. The organization's mail reverts to the provider's shared relay.
|
|
24
|
+
* Idempotent, and deliberately declares no 404: removing an absent configuration succeeds with the same 204 as removing a present one, so "not found" is not an outcome this operation has. An unknown or unauthorized organization is answered by the permission middleware before the handler runs.
|
|
25
|
+
*/
|
|
26
|
+
delete: operations["deleteOrganizationSmtpEnvironment"];
|
|
27
|
+
options?: never;
|
|
28
|
+
head?: never;
|
|
29
|
+
patch?: never;
|
|
30
|
+
trace?: never;
|
|
31
|
+
};
|
|
32
|
+
"/api/orgs/{orgId}/environments/mail-relay/connection": {
|
|
8
33
|
parameters: {
|
|
9
34
|
query?: never;
|
|
10
35
|
header?: never;
|
|
@@ -13,27 +38,70 @@ export interface paths {
|
|
|
13
38
|
};
|
|
14
39
|
/**
|
|
15
40
|
* Get an organization's SMTP configuration
|
|
16
|
-
* @description Returns the organization's mail server configuration, including its current
|
|
41
|
+
* @description Returns the organization's mail server configuration, including its current status and from-domain verification state. The password is always the redaction sentinel `***`.
|
|
17
42
|
*/
|
|
18
43
|
get: operations["getOrganizationSmtpConfiguration"];
|
|
19
44
|
/**
|
|
20
|
-
*
|
|
21
|
-
* @description
|
|
22
|
-
* Changing the from address resets from-domain verification
|
|
45
|
+
* Update an organization's SMTP settings
|
|
46
|
+
* @description Replaces the settings. The payload has no `password` property at all and rejects unknown properties, so this operation cannot carry a credential even by accident - rotating the password is a separate operation. That is what lets an administrator rename a display name without retyping a secret, while the redaction sentinel stays refused everywhere it can be written.
|
|
47
|
+
* Changing the from address to a different registrable domain resets from-domain verification and returns the configuration to `registered`.
|
|
48
|
+
*/
|
|
49
|
+
put: operations["updateOrganizationSmtpConfiguration"];
|
|
50
|
+
/**
|
|
51
|
+
* Register an organization's SMTP server
|
|
52
|
+
* @description Creates the configuration, provisioning the mail-relay environment on the organization's behalf when it does not yet exist. This is the only operation that accepts the password alongside the settings; afterwards the two are written separately.
|
|
53
|
+
* The new configuration starts unproven, so mail continues to take the provider relay until the from domain is verified and a test delivery succeeds.
|
|
54
|
+
* Declares no 404 for the same reason the delete does not: this operation brings the configuration into existence, so its absence beforehand is the normal case rather than an error.
|
|
55
|
+
*/
|
|
56
|
+
post: operations["createOrganizationSmtpConfiguration"];
|
|
57
|
+
delete?: never;
|
|
58
|
+
options?: never;
|
|
59
|
+
head?: never;
|
|
60
|
+
patch?: never;
|
|
61
|
+
trace?: never;
|
|
62
|
+
};
|
|
63
|
+
"/api/orgs/{orgId}/environments/mail-relay/connection/credential": {
|
|
64
|
+
parameters: {
|
|
65
|
+
query?: never;
|
|
66
|
+
header?: never;
|
|
67
|
+
path?: never;
|
|
68
|
+
cookie?: never;
|
|
69
|
+
};
|
|
70
|
+
get?: never;
|
|
71
|
+
/**
|
|
72
|
+
* Rotate the password presented to an organization's SMTP server
|
|
73
|
+
* @description Replaces the stored password. The redaction sentinel `***` and the empty string are REFUSED with a 400 rather than treated as "leave it alone", so a client that echoes a read back cannot overwrite the credential with the sentinel.
|
|
23
74
|
*/
|
|
24
|
-
put: operations["
|
|
75
|
+
put: operations["rotateOrganizationSmtpCredential"];
|
|
25
76
|
post?: never;
|
|
77
|
+
delete?: never;
|
|
78
|
+
options?: never;
|
|
79
|
+
head?: never;
|
|
80
|
+
patch?: never;
|
|
81
|
+
trace?: never;
|
|
82
|
+
};
|
|
83
|
+
"/api/orgs/{orgId}/environments/mail-relay/connection/enablement": {
|
|
84
|
+
parameters: {
|
|
85
|
+
query?: never;
|
|
86
|
+
header?: never;
|
|
87
|
+
path?: never;
|
|
88
|
+
cookie?: never;
|
|
89
|
+
};
|
|
90
|
+
get?: never;
|
|
91
|
+
put?: never;
|
|
26
92
|
/**
|
|
27
|
-
*
|
|
28
|
-
* @description
|
|
93
|
+
* Turn an organization's own mail server on or off
|
|
94
|
+
* @description The only operation by which an administrator writes the configuration's status, and it can write only the two administrative states: turning it off moves the configuration to `ignored`, and turning it on returns it to `registered` so that it must prove itself again before mail is routed. `connected` and `disconnected` are written by delivery outcomes alone and are never settable here, which is what keeps a deliberate opt-out distinguishable from a failing relay.
|
|
95
|
+
* Turning it on is refused with a 409 while the from domain is unverified.
|
|
29
96
|
*/
|
|
30
|
-
|
|
97
|
+
post: operations["setOrganizationSmtpEnablement"];
|
|
98
|
+
delete?: never;
|
|
31
99
|
options?: never;
|
|
32
100
|
head?: never;
|
|
33
101
|
patch?: never;
|
|
34
102
|
trace?: never;
|
|
35
103
|
};
|
|
36
|
-
"/api/
|
|
104
|
+
"/api/orgs/{orgId}/environments/mail-relay/connection/test": {
|
|
37
105
|
parameters: {
|
|
38
106
|
query?: never;
|
|
39
107
|
header?: never;
|
|
@@ -45,6 +113,7 @@ export interface paths {
|
|
|
45
113
|
/**
|
|
46
114
|
* Send a test message through an organization's SMTP configuration
|
|
47
115
|
* @description Delivers a real message through the configured server and reports a classified outcome. A real delivery rather than a connection probe on purpose: a server that connects and authenticates but refuses the sender or the recipient is the most common misconfiguration, and a probe reports it healthy.
|
|
116
|
+
* A successful test is also what promotes a verified configuration from `registered` to `connected`, so this operation is part of the lifecycle rather than a convenience. It takes the same permission as a write, because there is no read-only form of dialling an arbitrary host, and it is rate limited per organization.
|
|
48
117
|
* The recipient defaults to the calling administrator's own address. The outcome is a classification, never the remote server's own text.
|
|
49
118
|
*/
|
|
50
119
|
post: operations["testOrganizationSmtpConfiguration"];
|
|
@@ -54,7 +123,7 @@ export interface paths {
|
|
|
54
123
|
patch?: never;
|
|
55
124
|
trace?: never;
|
|
56
125
|
};
|
|
57
|
-
"/api/
|
|
126
|
+
"/api/orgs/{orgId}/environments/mail-relay/domain-verification": {
|
|
58
127
|
parameters: {
|
|
59
128
|
query?: never;
|
|
60
129
|
header?: never;
|
|
@@ -69,7 +138,7 @@ export interface paths {
|
|
|
69
138
|
put?: never;
|
|
70
139
|
/**
|
|
71
140
|
* Check the from-domain verification challenge
|
|
72
|
-
* @description Resolves the challenge record and records the result. Proving the domain is what permits
|
|
141
|
+
* @description Resolves the challenge record and records the result. Proving the domain is what permits mail to be routed through the organization's server. Rate limited per organization.
|
|
73
142
|
*/
|
|
74
143
|
post: operations["verifyOrganizationSmtpDomain"];
|
|
75
144
|
delete?: never;
|
|
@@ -84,7 +153,11 @@ export interface components {
|
|
|
84
153
|
schemas: {
|
|
85
154
|
/**
|
|
86
155
|
* OrganizationSmtpConfiguration
|
|
87
|
-
* @description An organization's own outbound mail server. When present and
|
|
156
|
+
* @description An organization's own outbound mail server. When present and healthy, every transactional email whose reader belongs to this organization - application notifications and identity-flow mail (account verification, password recovery) alike - is delivered through this server rather than through the provider's shared relay, so the message leaves from the organization's own domain. At most one live configuration exists per organization. The SMTP password is encrypted at rest and is never returned; reads always carry the redaction sentinel instead.
|
|
157
|
+
*
|
|
158
|
+
* This is a WIRE contract only. It is not backed by a table of its own: the configuration is stored on the same environment/connection/credential chain that bring-your-own identity providers already uses - a well-known per-organization Environment, joined through environments_connections_mappings to a Connection whose credential_id points at a Credential. The organization relationship lives on `environments.organization_id`, the dial target on `connections.url` and `connections.metadata`, the transport verdict on `connections.status`, and the password alone in `credentials.secret`.
|
|
159
|
+
*
|
|
160
|
+
* No property here carries a construct-specific `db` tag, because no property here names a column of its own. The exception is deliberate and inherited: `createdAt` and `updatedAt` `$ref` the shared core definitions, which declare `db: created_at` / `db: updated_at` for every construct that uses them, and those two tags are accurate for the underlying connection row.
|
|
88
161
|
* @example {
|
|
89
162
|
* "id": "00000000-0000-0000-0000-000000000000",
|
|
90
163
|
* "organizationId": "00000000-0000-0000-0000-000000000000",
|
|
@@ -97,15 +170,13 @@ export interface components {
|
|
|
97
170
|
* "fromAddress": "no-reply@example.com",
|
|
98
171
|
* "fromDisplayName": "Example Corp",
|
|
99
172
|
* "replyToAddress": "support@example.com",
|
|
100
|
-
* "
|
|
173
|
+
* "status": "registered",
|
|
101
174
|
* "fallbackToProvider": true,
|
|
102
175
|
* "fromDomain": "example.com",
|
|
103
176
|
* "fromDomainVerificationToken": "0f6a5d2c9b1e4a7f8c3d6b0e2a4f7c19",
|
|
104
177
|
* "fromDomainVerifiedAt": null,
|
|
105
|
-
* "verificationState": "unverified",
|
|
106
178
|
* "lastSuccessAt": null,
|
|
107
179
|
* "lastFailureAt": null,
|
|
108
|
-
* "lastFailureReason": null,
|
|
109
180
|
* "consecutiveFailures": 0,
|
|
110
181
|
* "createdBy": "00000000-0000-0000-0000-000000000000",
|
|
111
182
|
* "createdAt": "0001-01-01T00:00:00Z",
|
|
@@ -127,7 +198,7 @@ export interface components {
|
|
|
127
198
|
/** @description Hostname of the organization's SMTP server. */
|
|
128
199
|
host: string;
|
|
129
200
|
/**
|
|
130
|
-
* @description TCP port the organization's SMTP server listens on.
|
|
201
|
+
* @description TCP port the organization's SMTP server listens on. The server additionally restricts this to a submission-port allowlist; a syntactically valid port outside it is refused.
|
|
131
202
|
* @default 587
|
|
132
203
|
*/
|
|
133
204
|
port: number;
|
|
@@ -143,13 +214,16 @@ export interface components {
|
|
|
143
214
|
* @enum {string}
|
|
144
215
|
*/
|
|
145
216
|
authMechanism: "plain" | "cram-md5" | "none";
|
|
146
|
-
/** @description Username presented to the organization's SMTP server. */
|
|
217
|
+
/** @description Username presented to the organization's SMTP server. Held beside the host rather than with the password because it is an identifier rather than a secret, and the health surface must show it without a decryption round trip. It is usually an email address, so it is returned only on an authorized read. */
|
|
147
218
|
username?: string;
|
|
148
|
-
/**
|
|
149
|
-
|
|
219
|
+
/**
|
|
220
|
+
* @description Present only when a password is stored, and then always the redaction sentinel `***` - never the stored value, which is encrypted at rest and is never projected into a response. Its presence is therefore the only thing it reports: a configuration whose `authMechanism` is `none` stores no password and omits this property entirely. It is optional rather than required for exactly that reason.
|
|
221
|
+
* Read-only, and read-only here means read-only: no request body references this schema. The write semantics belong to the payload schemas - `OrganizationSmtpConfigurationPayload` on create and `OrganizationSmtpCredentialPayload` on rotation - and are documented there.
|
|
222
|
+
*/
|
|
223
|
+
readonly password?: string;
|
|
150
224
|
/**
|
|
151
225
|
* Format: email
|
|
152
|
-
* @description Address the organization's mail is sent from. Its domain must be verified before
|
|
226
|
+
* @description Address the organization's mail is sent from. Its domain must be verified before mail is routed through this server.
|
|
153
227
|
*/
|
|
154
228
|
fromAddress: string;
|
|
155
229
|
/** @description Display name shown alongside the from address in the message header. */
|
|
@@ -160,10 +234,13 @@ export interface components {
|
|
|
160
234
|
*/
|
|
161
235
|
replyToAddress?: string;
|
|
162
236
|
/**
|
|
163
|
-
* @description
|
|
164
|
-
*
|
|
237
|
+
* @description Lifecycle and transport verdict, carrying the connection status vocabulary because the configuration IS a connection. `registered` means configured but never proven - the from domain is unverified, or no message has yet been delivered - and mail takes the provider relay. `connected` means the last delivery attempt succeeded and mail is routed through this server. `disconnected` means consecutive failures opened the circuit, so the server is no longer dialled and the fallback setting decides what happens. `ignored` means an administrator turned it off.
|
|
238
|
+
*
|
|
239
|
+
* The writers are disjoint on purpose: only an administrator writes `ignored`, and only the delivery circuit writes `connected` or `disconnected`. That is what keeps a deliberate opt-out distinguishable from a failing relay. It also makes "enabled while the from domain is unverified" unrepresentable rather than merely forbidden, which is why this property replaces the separate `enabled` and `verificationState` pair it supersedes.
|
|
240
|
+
* @default registered
|
|
241
|
+
* @enum {string}
|
|
165
242
|
*/
|
|
166
|
-
|
|
243
|
+
status: "registered" | "connected" | "disconnected" | "ignored";
|
|
167
244
|
/**
|
|
168
245
|
* @description Whether a message that this server fails to accept is re-sent through the provider's shared relay. Disabling it means the organization owns delivery entirely and a failure is a dropped message, including account verification and password recovery.
|
|
169
246
|
* @default true
|
|
@@ -178,12 +255,6 @@ export interface components {
|
|
|
178
255
|
* @description Timestamp at which control of the from domain was last proven. Null while unproven.
|
|
179
256
|
*/
|
|
180
257
|
fromDomainVerifiedAt?: string | null;
|
|
181
|
-
/**
|
|
182
|
-
* @description Health of the configuration. `unverified` means it has never delivered a test message, `verified` means the last delivery attempt succeeded, and `failing` means consecutive failures have opened the circuit and mail is being handled under the fallback setting without dialling this server.
|
|
183
|
-
* @default unverified
|
|
184
|
-
* @enum {string}
|
|
185
|
-
*/
|
|
186
|
-
verificationState: "unverified" | "verified" | "failing";
|
|
187
258
|
/**
|
|
188
259
|
* Format: date-time
|
|
189
260
|
* @description Timestamp of the last message this server accepted.
|
|
@@ -225,17 +296,15 @@ export interface components {
|
|
|
225
296
|
*/
|
|
226
297
|
deletedAt?: string | null;
|
|
227
298
|
};
|
|
228
|
-
/**
|
|
299
|
+
/**
|
|
300
|
+
* @description Everything needed to register an organization's mail server, settings and password together, so that registration is one operation. Accepted only on create; afterwards the settings and the credential are written by separate operations.
|
|
301
|
+
* `status`, the delivery counters behind it, the from-domain proof and the timestamps are all server-owned and are not accepted here. A new configuration therefore always starts at `registered`, whatever the caller sends.
|
|
302
|
+
*/
|
|
229
303
|
OrganizationSmtpConfigurationPayload: {
|
|
230
|
-
/**
|
|
231
|
-
* Format: uuid
|
|
232
|
-
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
233
|
-
*/
|
|
234
|
-
id?: string;
|
|
235
304
|
/** @description Hostname of the organization's SMTP server. */
|
|
236
305
|
host: string;
|
|
237
306
|
/**
|
|
238
|
-
* @description TCP port the organization's SMTP server listens on.
|
|
307
|
+
* @description TCP port the organization's SMTP server listens on. Restricted further by a submission-port allowlist.
|
|
239
308
|
* @default 587
|
|
240
309
|
*/
|
|
241
310
|
port: number;
|
|
@@ -251,13 +320,18 @@ export interface components {
|
|
|
251
320
|
* @enum {string}
|
|
252
321
|
*/
|
|
253
322
|
authMechanism: "plain" | "cram-md5" | "none";
|
|
254
|
-
/** @description Username presented to the organization's SMTP server. */
|
|
323
|
+
/** @description Username presented to the organization's SMTP server. Required by the server, together with `password`, for every `authMechanism` other than `none`; see that property for why the pairing is a server-enforced contract rather than a schema constraint. */
|
|
255
324
|
username?: string;
|
|
256
|
-
/**
|
|
325
|
+
/**
|
|
326
|
+
* @description Password presented to the organization's SMTP server. The server requires it, together with `username`, for every `authMechanism` other than `none`, and answers 400 when either is missing.
|
|
327
|
+
* That rule is deliberately NOT encoded in `required` or as a `oneOf`/`if`-`then`. Both encodings were measured against the generator: `if`/`then` collapses this payload to `interface{}`, and `oneOf` injects a `union json.RawMessage` field with a custom marshaller, either of which costs every consumer its generated type or its wire behaviour to express a constraint the server enforces anyway. Treat this property as conditionally required by contract, not by schema.
|
|
328
|
+
* This is the ONLY operation that accepts the password alongside the settings, so that registering a mail server is one call and no configuration exists in a state where it is expected to send but holds no credential. Afterwards the password is written only by the rotation operation, never by the settings update, whose payload declares no `password` property at all.
|
|
329
|
+
* The redaction sentinel `***` is refused, and so is the empty string - omit the property instead of sending it empty, which the `minLength` below enforces so this payload and the rotation payload agree.
|
|
330
|
+
*/
|
|
257
331
|
password?: string;
|
|
258
332
|
/**
|
|
259
333
|
* Format: email
|
|
260
|
-
* @description Address the organization's mail is sent from.
|
|
334
|
+
* @description Address the organization's mail is sent from.
|
|
261
335
|
*/
|
|
262
336
|
fromAddress: string;
|
|
263
337
|
/** @description Display name shown alongside the from address. */
|
|
@@ -268,16 +342,62 @@ export interface components {
|
|
|
268
342
|
*/
|
|
269
343
|
replyToAddress?: string;
|
|
270
344
|
/**
|
|
271
|
-
* @description Whether
|
|
272
|
-
* @default
|
|
345
|
+
* @description Whether a message this server fails to accept is re-sent through the provider's shared relay. Disabling it means a failure is a dropped message, account verification and password recovery included.
|
|
346
|
+
* @default true
|
|
273
347
|
*/
|
|
274
|
-
|
|
348
|
+
fallbackToProvider: boolean;
|
|
349
|
+
};
|
|
350
|
+
/** @description Client-settable settings of an organization's mail server, WITHOUT the password. The omission is deliberate and structural: because this schema forbids unknown properties, a client cannot send a credential through this operation at all, so the read-then-write round trip that would otherwise overwrite a stored password with the redaction sentinel is not expressible. Rotate the password through its own operation. */
|
|
351
|
+
OrganizationSmtpSettingsPayload: {
|
|
352
|
+
/** @description Hostname of the organization's SMTP server. */
|
|
353
|
+
host: string;
|
|
275
354
|
/**
|
|
276
|
-
* @description
|
|
355
|
+
* @description TCP port the organization's SMTP server listens on. Restricted further by a submission-port allowlist.
|
|
356
|
+
* @default 587
|
|
357
|
+
*/
|
|
358
|
+
port: number;
|
|
359
|
+
/**
|
|
360
|
+
* @description Transport encryption to negotiate.
|
|
361
|
+
* @default starttls
|
|
362
|
+
* @enum {string}
|
|
363
|
+
*/
|
|
364
|
+
encryption: "starttls" | "tls" | "none";
|
|
365
|
+
/**
|
|
366
|
+
* @description SMTP authentication mechanism. Changing this to a mechanism other than `none` while no password is stored is refused; rotate the credential first.
|
|
367
|
+
* @default plain
|
|
368
|
+
* @enum {string}
|
|
369
|
+
*/
|
|
370
|
+
authMechanism: "plain" | "cram-md5" | "none";
|
|
371
|
+
/** @description Username presented to the organization's SMTP server. */
|
|
372
|
+
username?: string;
|
|
373
|
+
/**
|
|
374
|
+
* Format: email
|
|
375
|
+
* @description Address the organization's mail is sent from. Changing it to a different registrable domain resets from-domain verification.
|
|
376
|
+
*/
|
|
377
|
+
fromAddress: string;
|
|
378
|
+
/** @description Display name shown alongside the from address. */
|
|
379
|
+
fromDisplayName?: string;
|
|
380
|
+
/**
|
|
381
|
+
* Format: email
|
|
382
|
+
* @description Address replies are directed to.
|
|
383
|
+
*/
|
|
384
|
+
replyToAddress?: string;
|
|
385
|
+
/**
|
|
386
|
+
* @description Whether a message this server fails to accept is re-sent through the provider's shared relay.
|
|
277
387
|
* @default true
|
|
278
388
|
*/
|
|
279
389
|
fallbackToProvider: boolean;
|
|
280
390
|
};
|
|
391
|
+
/** @description The password presented to an organization's SMTP server. The only payload that carries it after creation. */
|
|
392
|
+
OrganizationSmtpCredentialPayload: {
|
|
393
|
+
/** @description New password. The redaction sentinel `***` and the empty string are refused with a 400 rather than treated as "leave the stored value alone", so echoing a read back cannot erase the credential. */
|
|
394
|
+
password: string;
|
|
395
|
+
};
|
|
396
|
+
/** @description Administrative on/off for an organization's own mail server. It cannot express the delivery-driven states, which are written by outcomes alone. */
|
|
397
|
+
OrganizationSmtpEnablementPayload: {
|
|
398
|
+
/** @description True returns the configuration to `registered` so it may prove itself and carry mail; false moves it to `ignored`. Turning it on is refused while the from domain is unverified. */
|
|
399
|
+
enabled: boolean;
|
|
400
|
+
};
|
|
281
401
|
/** @description Options for a test delivery. */
|
|
282
402
|
OrganizationSmtpTestRequest: {
|
|
283
403
|
/**
|
|
@@ -370,6 +490,15 @@ export interface components {
|
|
|
370
490
|
"text/plain": string;
|
|
371
491
|
};
|
|
372
492
|
};
|
|
493
|
+
/** @description The configuration already exists, or the requested state transition is refused in the configuration's current state */
|
|
494
|
+
409: {
|
|
495
|
+
headers: {
|
|
496
|
+
[name: string]: unknown;
|
|
497
|
+
};
|
|
498
|
+
content: {
|
|
499
|
+
"text/plain": string;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
373
502
|
/** @description Too many attempts for this organization */
|
|
374
503
|
429: {
|
|
375
504
|
headers: {
|
|
@@ -397,15 +526,10 @@ export interface components {
|
|
|
397
526
|
organizationSmtpConfigurationPayload: {
|
|
398
527
|
content: {
|
|
399
528
|
"application/json": {
|
|
400
|
-
/**
|
|
401
|
-
* Format: uuid
|
|
402
|
-
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
403
|
-
*/
|
|
404
|
-
id?: string;
|
|
405
529
|
/** @description Hostname of the organization's SMTP server. */
|
|
406
530
|
host: string;
|
|
407
531
|
/**
|
|
408
|
-
* @description TCP port the organization's SMTP server listens on.
|
|
532
|
+
* @description TCP port the organization's SMTP server listens on. Restricted further by a submission-port allowlist.
|
|
409
533
|
* @default 587
|
|
410
534
|
*/
|
|
411
535
|
port: number;
|
|
@@ -421,13 +545,18 @@ export interface components {
|
|
|
421
545
|
* @enum {string}
|
|
422
546
|
*/
|
|
423
547
|
authMechanism?: "plain" | "cram-md5" | "none";
|
|
424
|
-
/** @description Username presented to the organization's SMTP server. */
|
|
548
|
+
/** @description Username presented to the organization's SMTP server. Required by the server, together with `password`, for every `authMechanism` other than `none`; see that property for why the pairing is a server-enforced contract rather than a schema constraint. */
|
|
425
549
|
username?: string;
|
|
426
|
-
/**
|
|
550
|
+
/**
|
|
551
|
+
* @description Password presented to the organization's SMTP server. The server requires it, together with `username`, for every `authMechanism` other than `none`, and answers 400 when either is missing.
|
|
552
|
+
* That rule is deliberately NOT encoded in `required` or as a `oneOf`/`if`-`then`. Both encodings were measured against the generator: `if`/`then` collapses this payload to `interface{}`, and `oneOf` injects a `union json.RawMessage` field with a custom marshaller, either of which costs every consumer its generated type or its wire behaviour to express a constraint the server enforces anyway. Treat this property as conditionally required by contract, not by schema.
|
|
553
|
+
* This is the ONLY operation that accepts the password alongside the settings, so that registering a mail server is one call and no configuration exists in a state where it is expected to send but holds no credential. Afterwards the password is written only by the rotation operation, never by the settings update, whose payload declares no `password` property at all.
|
|
554
|
+
* The redaction sentinel `***` is refused, and so is the empty string - omit the property instead of sending it empty, which the `minLength` below enforces so this payload and the rotation payload agree.
|
|
555
|
+
*/
|
|
427
556
|
password?: string;
|
|
428
557
|
/**
|
|
429
558
|
* Format: email
|
|
430
|
-
* @description Address the organization's mail is sent from.
|
|
559
|
+
* @description Address the organization's mail is sent from.
|
|
431
560
|
*/
|
|
432
561
|
fromAddress: string;
|
|
433
562
|
/** @description Display name shown alongside the from address. */
|
|
@@ -438,18 +567,73 @@ export interface components {
|
|
|
438
567
|
*/
|
|
439
568
|
replyToAddress?: string;
|
|
440
569
|
/**
|
|
441
|
-
* @description Whether
|
|
442
|
-
* @default
|
|
570
|
+
* @description Whether a message this server fails to accept is re-sent through the provider's shared relay. Disabling it means a failure is a dropped message, account verification and password recovery included.
|
|
571
|
+
* @default true
|
|
443
572
|
*/
|
|
444
|
-
|
|
573
|
+
fallbackToProvider?: boolean;
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
organizationSmtpSettingsPayload: {
|
|
578
|
+
content: {
|
|
579
|
+
"application/json": {
|
|
580
|
+
/** @description Hostname of the organization's SMTP server. */
|
|
581
|
+
host: string;
|
|
445
582
|
/**
|
|
446
|
-
* @description
|
|
583
|
+
* @description TCP port the organization's SMTP server listens on. Restricted further by a submission-port allowlist.
|
|
584
|
+
* @default 587
|
|
585
|
+
*/
|
|
586
|
+
port: number;
|
|
587
|
+
/**
|
|
588
|
+
* @description Transport encryption to negotiate.
|
|
589
|
+
* @default starttls
|
|
590
|
+
* @enum {string}
|
|
591
|
+
*/
|
|
592
|
+
encryption?: "starttls" | "tls" | "none";
|
|
593
|
+
/**
|
|
594
|
+
* @description SMTP authentication mechanism. Changing this to a mechanism other than `none` while no password is stored is refused; rotate the credential first.
|
|
595
|
+
* @default plain
|
|
596
|
+
* @enum {string}
|
|
597
|
+
*/
|
|
598
|
+
authMechanism?: "plain" | "cram-md5" | "none";
|
|
599
|
+
/** @description Username presented to the organization's SMTP server. */
|
|
600
|
+
username?: string;
|
|
601
|
+
/**
|
|
602
|
+
* Format: email
|
|
603
|
+
* @description Address the organization's mail is sent from. Changing it to a different registrable domain resets from-domain verification.
|
|
604
|
+
*/
|
|
605
|
+
fromAddress: string;
|
|
606
|
+
/** @description Display name shown alongside the from address. */
|
|
607
|
+
fromDisplayName?: string;
|
|
608
|
+
/**
|
|
609
|
+
* Format: email
|
|
610
|
+
* @description Address replies are directed to.
|
|
611
|
+
*/
|
|
612
|
+
replyToAddress?: string;
|
|
613
|
+
/**
|
|
614
|
+
* @description Whether a message this server fails to accept is re-sent through the provider's shared relay.
|
|
447
615
|
* @default true
|
|
448
616
|
*/
|
|
449
617
|
fallbackToProvider?: boolean;
|
|
450
618
|
};
|
|
451
619
|
};
|
|
452
620
|
};
|
|
621
|
+
organizationSmtpCredentialPayload: {
|
|
622
|
+
content: {
|
|
623
|
+
"application/json": {
|
|
624
|
+
/** @description New password. The redaction sentinel `***` and the empty string are refused with a 400 rather than treated as "leave the stored value alone", so echoing a read back cannot erase the credential. */
|
|
625
|
+
password: string;
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
organizationSmtpEnablementPayload: {
|
|
630
|
+
content: {
|
|
631
|
+
"application/json": {
|
|
632
|
+
/** @description True returns the configuration to `registered` so it may prove itself and carry mail; false moves it to `ignored`. Turning it on is refused while the from domain is unverified. */
|
|
633
|
+
enabled: boolean;
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
};
|
|
453
637
|
organizationSmtpTestRequest: {
|
|
454
638
|
content: {
|
|
455
639
|
"application/json": {
|
|
@@ -467,7 +651,7 @@ export interface components {
|
|
|
467
651
|
}
|
|
468
652
|
export type $defs = Record<string, never>;
|
|
469
653
|
export interface operations {
|
|
470
|
-
|
|
654
|
+
getOrganizationSmtpEnvironment: {
|
|
471
655
|
parameters: {
|
|
472
656
|
query?: never;
|
|
473
657
|
header?: never;
|
|
@@ -479,7 +663,7 @@ export interface operations {
|
|
|
479
663
|
};
|
|
480
664
|
requestBody?: never;
|
|
481
665
|
responses: {
|
|
482
|
-
/** @description The organization
|
|
666
|
+
/** @description The organization has its own mail-relay environment. The canonical Environment shape, not a bespoke one: this endpoint returns an ordinary environment row that happens to carry the well-known name. */
|
|
483
667
|
200: {
|
|
484
668
|
headers: {
|
|
485
669
|
[name: string]: unknown;
|
|
@@ -488,112 +672,51 @@ export interface operations {
|
|
|
488
672
|
"application/json": {
|
|
489
673
|
/**
|
|
490
674
|
* Format: uuid
|
|
491
|
-
* @description
|
|
675
|
+
* @description ID
|
|
492
676
|
*/
|
|
493
677
|
id: string;
|
|
494
678
|
/**
|
|
495
|
-
*
|
|
496
|
-
* @
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
*
|
|
503
|
-
*
|
|
504
|
-
|
|
505
|
-
port: number;
|
|
506
|
-
/**
|
|
507
|
-
* @description Transport encryption to negotiate. `starttls` upgrades a cleartext connection (typically port 587), `tls` opens an implicit TLS connection (typically port 465), and `none` sends in cleartext and is intended only for an internal relay on a trusted network.
|
|
508
|
-
* @default starttls
|
|
509
|
-
* @enum {string}
|
|
510
|
-
*/
|
|
511
|
-
encryption: "starttls" | "tls" | "none";
|
|
512
|
-
/**
|
|
513
|
-
* @description SMTP authentication mechanism. `none` is permitted only for a relay that authorizes by source address; a configuration using any other mechanism must carry both a username and a password.
|
|
514
|
-
* @default plain
|
|
515
|
-
* @enum {string}
|
|
516
|
-
*/
|
|
517
|
-
authMechanism: "plain" | "cram-md5" | "none";
|
|
518
|
-
/** @description Username presented to the organization's SMTP server. */
|
|
519
|
-
username?: string;
|
|
520
|
-
/** @description Password presented to the organization's SMTP server. Write-only. A read always returns the redaction sentinel `***`; the stored value is encrypted at rest and is never projected into a response. Writing `***` or an empty string preserves the stored password, so a client may round-trip a read without erasing the credential. */
|
|
521
|
-
password?: string;
|
|
522
|
-
/**
|
|
523
|
-
* Format: email
|
|
524
|
-
* @description Address the organization's mail is sent from. Its domain must be verified before the configuration can be enabled.
|
|
525
|
-
*/
|
|
526
|
-
fromAddress: string;
|
|
527
|
-
/** @description Display name shown alongside the from address in the message header. */
|
|
528
|
-
fromDisplayName?: string;
|
|
529
|
-
/**
|
|
530
|
-
* Format: email
|
|
531
|
-
* @description Address replies are directed to. It is also the address carried when a message falls back to the provider relay, which rewrites the from address to the provider's own so the message stays aligned for SPF and DMARC.
|
|
532
|
-
*/
|
|
533
|
-
replyToAddress?: string;
|
|
534
|
-
/**
|
|
535
|
-
* @description Whether mail is routed through this server. Cannot be set while the from domain is unverified.
|
|
536
|
-
* @default false
|
|
537
|
-
*/
|
|
538
|
-
enabled: boolean;
|
|
539
|
-
/**
|
|
540
|
-
* @description Whether a message that this server fails to accept is re-sent through the provider's shared relay. Disabling it means the organization owns delivery entirely and a failure is a dropped message, including account verification and password recovery.
|
|
541
|
-
* @default true
|
|
542
|
-
*/
|
|
543
|
-
fallbackToProvider: boolean;
|
|
544
|
-
/** @description Registrable domain of the from address, held separately as the unit that ownership is proven for. */
|
|
545
|
-
fromDomain?: string;
|
|
546
|
-
/** @description Token the organization publishes in DNS to prove control of the from domain. Not a credential - it authorizes nothing and grants no access. */
|
|
547
|
-
fromDomainVerificationToken?: string;
|
|
548
|
-
/**
|
|
549
|
-
* Format: date-time
|
|
550
|
-
* @description Timestamp at which control of the from domain was last proven. Null while unproven.
|
|
551
|
-
*/
|
|
552
|
-
fromDomainVerifiedAt?: string | null;
|
|
553
|
-
/**
|
|
554
|
-
* @description Health of the configuration. `unverified` means it has never delivered a test message, `verified` means the last delivery attempt succeeded, and `failing` means consecutive failures have opened the circuit and mail is being handled under the fallback setting without dialling this server.
|
|
555
|
-
* @default unverified
|
|
556
|
-
* @enum {string}
|
|
557
|
-
*/
|
|
558
|
-
verificationState: "unverified" | "verified" | "failing";
|
|
559
|
-
/**
|
|
560
|
-
* Format: date-time
|
|
561
|
-
* @description Timestamp of the last message this server accepted.
|
|
679
|
+
* @description Specifies the version of the schema to which the environment conforms.
|
|
680
|
+
* @default environments.meshery.io/v1beta3
|
|
681
|
+
* @example [
|
|
682
|
+
* "v1",
|
|
683
|
+
* "v1alpha1",
|
|
684
|
+
* "v2beta3",
|
|
685
|
+
* "v1.custom-suffix",
|
|
686
|
+
* "models.meshery.io/v1beta1",
|
|
687
|
+
* "capability.meshery.io/v1alpha1"
|
|
688
|
+
* ]
|
|
562
689
|
*/
|
|
563
|
-
|
|
564
|
-
/**
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
lastFailureAt?: string | null;
|
|
569
|
-
/**
|
|
570
|
-
* @description Classification of the last failure. Always a classification, never the remote server's own message: the set is closed on purpose, because reporting a remote server's text back to a caller would turn a refusal into an oracle for what the network can reach.
|
|
571
|
-
* @enum {string}
|
|
572
|
-
*/
|
|
573
|
-
lastFailureReason?: "blocked_target" | "connect_refused" | "connect_timeout" | "tls_failed" | "starttls_unsupported" | "auth_rejected" | "relay_rejected_sender" | "relay_rejected_recipient" | "delivery_failed" | "credential_unreadable";
|
|
690
|
+
schemaVersion: string;
|
|
691
|
+
/** @description Environment name */
|
|
692
|
+
name: string;
|
|
693
|
+
/** @description Environment description */
|
|
694
|
+
description: string;
|
|
574
695
|
/**
|
|
575
|
-
*
|
|
576
|
-
* @
|
|
696
|
+
* Format: uuid
|
|
697
|
+
* @description Environment organization ID
|
|
577
698
|
*/
|
|
578
|
-
|
|
699
|
+
organizationId: string;
|
|
579
700
|
/**
|
|
580
701
|
* Format: uuid
|
|
581
|
-
* @description
|
|
702
|
+
* @description Environment owner
|
|
582
703
|
*/
|
|
583
|
-
|
|
704
|
+
owner?: string;
|
|
584
705
|
/**
|
|
585
706
|
* Format: date-time
|
|
586
|
-
* @description Timestamp when the
|
|
707
|
+
* @description Timestamp when the environment was created.
|
|
587
708
|
*/
|
|
588
|
-
createdAt
|
|
709
|
+
createdAt?: string;
|
|
710
|
+
/** @description Additional metadata associated with the environment. */
|
|
711
|
+
metadata?: Record<string, never>;
|
|
589
712
|
/**
|
|
590
713
|
* Format: date-time
|
|
591
|
-
* @description Timestamp when the
|
|
714
|
+
* @description Timestamp when the environment was last updated.
|
|
592
715
|
*/
|
|
593
|
-
updatedAt
|
|
716
|
+
updatedAt?: string;
|
|
594
717
|
/**
|
|
595
718
|
* Format: date-time
|
|
596
|
-
* @description Timestamp when the
|
|
719
|
+
* @description Timestamp when the environment was soft deleted. Null while the environment remains active.
|
|
597
720
|
*/
|
|
598
721
|
deletedAt?: string | null;
|
|
599
722
|
};
|
|
@@ -637,7 +760,7 @@ export interface operations {
|
|
|
637
760
|
};
|
|
638
761
|
};
|
|
639
762
|
};
|
|
640
|
-
|
|
763
|
+
deleteOrganizationSmtpEnvironment: {
|
|
641
764
|
parameters: {
|
|
642
765
|
query?: never;
|
|
643
766
|
header?: never;
|
|
@@ -647,40 +770,251 @@ export interface operations {
|
|
|
647
770
|
};
|
|
648
771
|
cookie?: never;
|
|
649
772
|
};
|
|
650
|
-
requestBody
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
773
|
+
requestBody?: never;
|
|
774
|
+
responses: {
|
|
775
|
+
/** @description The configuration was removed. */
|
|
776
|
+
204: {
|
|
777
|
+
headers: {
|
|
778
|
+
[name: string]: unknown;
|
|
779
|
+
};
|
|
780
|
+
content?: never;
|
|
781
|
+
};
|
|
782
|
+
/** @description Expired JWT token used or insufficient privilege */
|
|
783
|
+
401: {
|
|
784
|
+
headers: {
|
|
785
|
+
[name: string]: unknown;
|
|
786
|
+
};
|
|
787
|
+
content: {
|
|
788
|
+
"text/plain": string;
|
|
789
|
+
};
|
|
790
|
+
};
|
|
791
|
+
/** @description Caller lacks the permission key required for this organization */
|
|
792
|
+
403: {
|
|
793
|
+
headers: {
|
|
794
|
+
[name: string]: unknown;
|
|
795
|
+
};
|
|
796
|
+
content: {
|
|
797
|
+
"text/plain": string;
|
|
798
|
+
};
|
|
799
|
+
};
|
|
800
|
+
/** @description Internal server error */
|
|
801
|
+
500: {
|
|
802
|
+
headers: {
|
|
803
|
+
[name: string]: unknown;
|
|
804
|
+
};
|
|
805
|
+
content: {
|
|
806
|
+
"text/plain": string;
|
|
807
|
+
};
|
|
808
|
+
};
|
|
809
|
+
};
|
|
810
|
+
};
|
|
811
|
+
getOrganizationSmtpConfiguration: {
|
|
812
|
+
parameters: {
|
|
813
|
+
query?: never;
|
|
814
|
+
header?: never;
|
|
815
|
+
path: {
|
|
816
|
+
/** @description Organization ID */
|
|
817
|
+
orgId: string;
|
|
818
|
+
};
|
|
819
|
+
cookie?: never;
|
|
820
|
+
};
|
|
821
|
+
requestBody?: never;
|
|
822
|
+
responses: {
|
|
823
|
+
/** @description The organization's SMTP configuration. */
|
|
824
|
+
200: {
|
|
825
|
+
headers: {
|
|
826
|
+
[name: string]: unknown;
|
|
827
|
+
};
|
|
828
|
+
content: {
|
|
829
|
+
"application/json": {
|
|
830
|
+
/**
|
|
831
|
+
* Format: uuid
|
|
832
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
833
|
+
*/
|
|
834
|
+
id: string;
|
|
835
|
+
/**
|
|
836
|
+
* Format: uuid
|
|
837
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
838
|
+
*/
|
|
839
|
+
organizationId: string;
|
|
840
|
+
/** @description Hostname of the organization's SMTP server. */
|
|
841
|
+
host: string;
|
|
842
|
+
/**
|
|
843
|
+
* @description TCP port the organization's SMTP server listens on. The server additionally restricts this to a submission-port allowlist; a syntactically valid port outside it is refused.
|
|
844
|
+
* @default 587
|
|
845
|
+
*/
|
|
846
|
+
port: number;
|
|
847
|
+
/**
|
|
848
|
+
* @description Transport encryption to negotiate. `starttls` upgrades a cleartext connection (typically port 587), `tls` opens an implicit TLS connection (typically port 465), and `none` sends in cleartext and is intended only for an internal relay on a trusted network.
|
|
849
|
+
* @default starttls
|
|
850
|
+
* @enum {string}
|
|
851
|
+
*/
|
|
852
|
+
encryption: "starttls" | "tls" | "none";
|
|
853
|
+
/**
|
|
854
|
+
* @description SMTP authentication mechanism. `none` is permitted only for a relay that authorizes by source address; a configuration using any other mechanism must carry both a username and a password.
|
|
855
|
+
* @default plain
|
|
856
|
+
* @enum {string}
|
|
857
|
+
*/
|
|
858
|
+
authMechanism: "plain" | "cram-md5" | "none";
|
|
859
|
+
/** @description Username presented to the organization's SMTP server. Held beside the host rather than with the password because it is an identifier rather than a secret, and the health surface must show it without a decryption round trip. It is usually an email address, so it is returned only on an authorized read. */
|
|
860
|
+
username?: string;
|
|
861
|
+
/**
|
|
862
|
+
* @description Present only when a password is stored, and then always the redaction sentinel `***` - never the stored value, which is encrypted at rest and is never projected into a response. Its presence is therefore the only thing it reports: a configuration whose `authMechanism` is `none` stores no password and omits this property entirely. It is optional rather than required for exactly that reason.
|
|
863
|
+
* Read-only, and read-only here means read-only: no request body references this schema. The write semantics belong to the payload schemas - `OrganizationSmtpConfigurationPayload` on create and `OrganizationSmtpCredentialPayload` on rotation - and are documented there.
|
|
864
|
+
*/
|
|
865
|
+
readonly password?: string;
|
|
866
|
+
/**
|
|
867
|
+
* Format: email
|
|
868
|
+
* @description Address the organization's mail is sent from. Its domain must be verified before mail is routed through this server.
|
|
869
|
+
*/
|
|
870
|
+
fromAddress: string;
|
|
871
|
+
/** @description Display name shown alongside the from address in the message header. */
|
|
872
|
+
fromDisplayName?: string;
|
|
873
|
+
/**
|
|
874
|
+
* Format: email
|
|
875
|
+
* @description Address replies are directed to. It is also the address carried when a message falls back to the provider relay, which rewrites the from address to the provider's own so the message stays aligned for SPF and DMARC.
|
|
876
|
+
*/
|
|
877
|
+
replyToAddress?: string;
|
|
878
|
+
/**
|
|
879
|
+
* @description Lifecycle and transport verdict, carrying the connection status vocabulary because the configuration IS a connection. `registered` means configured but never proven - the from domain is unverified, or no message has yet been delivered - and mail takes the provider relay. `connected` means the last delivery attempt succeeded and mail is routed through this server. `disconnected` means consecutive failures opened the circuit, so the server is no longer dialled and the fallback setting decides what happens. `ignored` means an administrator turned it off.
|
|
880
|
+
*
|
|
881
|
+
* The writers are disjoint on purpose: only an administrator writes `ignored`, and only the delivery circuit writes `connected` or `disconnected`. That is what keeps a deliberate opt-out distinguishable from a failing relay. It also makes "enabled while the from domain is unverified" unrepresentable rather than merely forbidden, which is why this property replaces the separate `enabled` and `verificationState` pair it supersedes.
|
|
882
|
+
* @default registered
|
|
883
|
+
* @enum {string}
|
|
884
|
+
*/
|
|
885
|
+
status: "registered" | "connected" | "disconnected" | "ignored";
|
|
886
|
+
/**
|
|
887
|
+
* @description Whether a message that this server fails to accept is re-sent through the provider's shared relay. Disabling it means the organization owns delivery entirely and a failure is a dropped message, including account verification and password recovery.
|
|
888
|
+
* @default true
|
|
889
|
+
*/
|
|
890
|
+
fallbackToProvider: boolean;
|
|
891
|
+
/** @description Registrable domain of the from address, held separately as the unit that ownership is proven for. */
|
|
892
|
+
fromDomain?: string;
|
|
893
|
+
/** @description Token the organization publishes in DNS to prove control of the from domain. Not a credential - it authorizes nothing and grants no access. */
|
|
894
|
+
fromDomainVerificationToken?: string;
|
|
895
|
+
/**
|
|
896
|
+
* Format: date-time
|
|
897
|
+
* @description Timestamp at which control of the from domain was last proven. Null while unproven.
|
|
898
|
+
*/
|
|
899
|
+
fromDomainVerifiedAt?: string | null;
|
|
900
|
+
/**
|
|
901
|
+
* Format: date-time
|
|
902
|
+
* @description Timestamp of the last message this server accepted.
|
|
903
|
+
*/
|
|
904
|
+
lastSuccessAt?: string | null;
|
|
905
|
+
/**
|
|
906
|
+
* Format: date-time
|
|
907
|
+
* @description Timestamp of the last delivery attempt this server rejected or failed to accept.
|
|
908
|
+
*/
|
|
909
|
+
lastFailureAt?: string | null;
|
|
910
|
+
/**
|
|
911
|
+
* @description Classification of the last failure. Always a classification, never the remote server's own message: the set is closed on purpose, because reporting a remote server's text back to a caller would turn a refusal into an oracle for what the network can reach.
|
|
912
|
+
* @enum {string}
|
|
913
|
+
*/
|
|
914
|
+
lastFailureReason?: "blocked_target" | "connect_refused" | "connect_timeout" | "tls_failed" | "starttls_unsupported" | "auth_rejected" | "relay_rejected_sender" | "relay_rejected_recipient" | "delivery_failed" | "credential_unreadable";
|
|
915
|
+
/**
|
|
916
|
+
* @description Delivery failures since the last success. Drives the circuit that stops dialling a persistently unreachable server.
|
|
917
|
+
* @default 0
|
|
918
|
+
*/
|
|
919
|
+
consecutiveFailures: number;
|
|
920
|
+
/**
|
|
921
|
+
* Format: uuid
|
|
922
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
923
|
+
*/
|
|
924
|
+
createdBy?: string | null;
|
|
925
|
+
/**
|
|
926
|
+
* Format: date-time
|
|
927
|
+
* @description Timestamp when the configuration was created.
|
|
928
|
+
*/
|
|
929
|
+
createdAt: string;
|
|
930
|
+
/**
|
|
931
|
+
* Format: date-time
|
|
932
|
+
* @description Timestamp when the configuration was last changed.
|
|
933
|
+
*/
|
|
934
|
+
updatedAt: string;
|
|
935
|
+
/**
|
|
936
|
+
* Format: date-time
|
|
937
|
+
* @description Timestamp when the configuration was soft deleted. Null while it remains active.
|
|
938
|
+
*/
|
|
939
|
+
deletedAt?: string | null;
|
|
940
|
+
};
|
|
941
|
+
};
|
|
942
|
+
};
|
|
943
|
+
/** @description Expired JWT token used or insufficient privilege */
|
|
944
|
+
401: {
|
|
945
|
+
headers: {
|
|
946
|
+
[name: string]: unknown;
|
|
947
|
+
};
|
|
948
|
+
content: {
|
|
949
|
+
"text/plain": string;
|
|
950
|
+
};
|
|
951
|
+
};
|
|
952
|
+
/** @description Caller lacks the permission key required for this organization */
|
|
953
|
+
403: {
|
|
954
|
+
headers: {
|
|
955
|
+
[name: string]: unknown;
|
|
956
|
+
};
|
|
957
|
+
content: {
|
|
958
|
+
"text/plain": string;
|
|
959
|
+
};
|
|
960
|
+
};
|
|
961
|
+
/** @description Result not found */
|
|
962
|
+
404: {
|
|
963
|
+
headers: {
|
|
964
|
+
[name: string]: unknown;
|
|
965
|
+
};
|
|
966
|
+
content: {
|
|
967
|
+
"text/plain": string;
|
|
968
|
+
};
|
|
969
|
+
};
|
|
970
|
+
/** @description Internal server error */
|
|
971
|
+
500: {
|
|
972
|
+
headers: {
|
|
973
|
+
[name: string]: unknown;
|
|
974
|
+
};
|
|
975
|
+
content: {
|
|
976
|
+
"text/plain": string;
|
|
977
|
+
};
|
|
978
|
+
};
|
|
979
|
+
};
|
|
980
|
+
};
|
|
981
|
+
updateOrganizationSmtpConfiguration: {
|
|
982
|
+
parameters: {
|
|
983
|
+
query?: never;
|
|
984
|
+
header?: never;
|
|
985
|
+
path: {
|
|
986
|
+
/** @description Organization ID */
|
|
987
|
+
orgId: string;
|
|
988
|
+
};
|
|
989
|
+
cookie?: never;
|
|
990
|
+
};
|
|
991
|
+
requestBody: {
|
|
992
|
+
content: {
|
|
993
|
+
"application/json": {
|
|
994
|
+
/** @description Hostname of the organization's SMTP server. */
|
|
995
|
+
host: string;
|
|
996
|
+
/**
|
|
997
|
+
* @description TCP port the organization's SMTP server listens on. Restricted further by a submission-port allowlist.
|
|
998
|
+
* @default 587
|
|
663
999
|
*/
|
|
664
1000
|
port: number;
|
|
665
1001
|
/**
|
|
666
|
-
* @description Transport encryption to negotiate.
|
|
1002
|
+
* @description Transport encryption to negotiate.
|
|
667
1003
|
* @default starttls
|
|
668
1004
|
* @enum {string}
|
|
669
1005
|
*/
|
|
670
1006
|
encryption?: "starttls" | "tls" | "none";
|
|
671
1007
|
/**
|
|
672
|
-
* @description SMTP authentication mechanism.
|
|
1008
|
+
* @description SMTP authentication mechanism. Changing this to a mechanism other than `none` while no password is stored is refused; rotate the credential first.
|
|
673
1009
|
* @default plain
|
|
674
1010
|
* @enum {string}
|
|
675
1011
|
*/
|
|
676
1012
|
authMechanism?: "plain" | "cram-md5" | "none";
|
|
677
1013
|
/** @description Username presented to the organization's SMTP server. */
|
|
678
1014
|
username?: string;
|
|
679
|
-
/** @description Password presented to the organization's SMTP server. Write-only. `***` or an empty string preserves the stored password, so a client may round-trip a read without erasing the credential. */
|
|
680
|
-
password?: string;
|
|
681
1015
|
/**
|
|
682
1016
|
* Format: email
|
|
683
|
-
* @description Address the organization's mail is sent from. Changing it resets from-domain verification.
|
|
1017
|
+
* @description Address the organization's mail is sent from. Changing it to a different registrable domain resets from-domain verification.
|
|
684
1018
|
*/
|
|
685
1019
|
fromAddress: string;
|
|
686
1020
|
/** @description Display name shown alongside the from address. */
|
|
@@ -691,12 +1025,7 @@ export interface operations {
|
|
|
691
1025
|
*/
|
|
692
1026
|
replyToAddress?: string;
|
|
693
1027
|
/**
|
|
694
|
-
* @description Whether
|
|
695
|
-
* @default false
|
|
696
|
-
*/
|
|
697
|
-
enabled?: boolean;
|
|
698
|
-
/**
|
|
699
|
-
* @description Whether a message this server fails to accept is re-sent through the provider's shared relay. Disabling it means a failure is a dropped message, account verification and password recovery included.
|
|
1028
|
+
* @description Whether a message this server fails to accept is re-sent through the provider's shared relay.
|
|
700
1029
|
* @default true
|
|
701
1030
|
*/
|
|
702
1031
|
fallbackToProvider?: boolean;
|
|
@@ -724,7 +1053,7 @@ export interface operations {
|
|
|
724
1053
|
/** @description Hostname of the organization's SMTP server. */
|
|
725
1054
|
host: string;
|
|
726
1055
|
/**
|
|
727
|
-
* @description TCP port the organization's SMTP server listens on.
|
|
1056
|
+
* @description TCP port the organization's SMTP server listens on. The server additionally restricts this to a submission-port allowlist; a syntactically valid port outside it is refused.
|
|
728
1057
|
* @default 587
|
|
729
1058
|
*/
|
|
730
1059
|
port: number;
|
|
@@ -740,13 +1069,16 @@ export interface operations {
|
|
|
740
1069
|
* @enum {string}
|
|
741
1070
|
*/
|
|
742
1071
|
authMechanism: "plain" | "cram-md5" | "none";
|
|
743
|
-
/** @description Username presented to the organization's SMTP server. */
|
|
1072
|
+
/** @description Username presented to the organization's SMTP server. Held beside the host rather than with the password because it is an identifier rather than a secret, and the health surface must show it without a decryption round trip. It is usually an email address, so it is returned only on an authorized read. */
|
|
744
1073
|
username?: string;
|
|
745
|
-
/**
|
|
746
|
-
|
|
1074
|
+
/**
|
|
1075
|
+
* @description Present only when a password is stored, and then always the redaction sentinel `***` - never the stored value, which is encrypted at rest and is never projected into a response. Its presence is therefore the only thing it reports: a configuration whose `authMechanism` is `none` stores no password and omits this property entirely. It is optional rather than required for exactly that reason.
|
|
1076
|
+
* Read-only, and read-only here means read-only: no request body references this schema. The write semantics belong to the payload schemas - `OrganizationSmtpConfigurationPayload` on create and `OrganizationSmtpCredentialPayload` on rotation - and are documented there.
|
|
1077
|
+
*/
|
|
1078
|
+
readonly password?: string;
|
|
747
1079
|
/**
|
|
748
1080
|
* Format: email
|
|
749
|
-
* @description Address the organization's mail is sent from. Its domain must be verified before
|
|
1081
|
+
* @description Address the organization's mail is sent from. Its domain must be verified before mail is routed through this server.
|
|
750
1082
|
*/
|
|
751
1083
|
fromAddress: string;
|
|
752
1084
|
/** @description Display name shown alongside the from address in the message header. */
|
|
@@ -757,10 +1089,13 @@ export interface operations {
|
|
|
757
1089
|
*/
|
|
758
1090
|
replyToAddress?: string;
|
|
759
1091
|
/**
|
|
760
|
-
* @description
|
|
761
|
-
*
|
|
1092
|
+
* @description Lifecycle and transport verdict, carrying the connection status vocabulary because the configuration IS a connection. `registered` means configured but never proven - the from domain is unverified, or no message has yet been delivered - and mail takes the provider relay. `connected` means the last delivery attempt succeeded and mail is routed through this server. `disconnected` means consecutive failures opened the circuit, so the server is no longer dialled and the fallback setting decides what happens. `ignored` means an administrator turned it off.
|
|
1093
|
+
*
|
|
1094
|
+
* The writers are disjoint on purpose: only an administrator writes `ignored`, and only the delivery circuit writes `connected` or `disconnected`. That is what keeps a deliberate opt-out distinguishable from a failing relay. It also makes "enabled while the from domain is unverified" unrepresentable rather than merely forbidden, which is why this property replaces the separate `enabled` and `verificationState` pair it supersedes.
|
|
1095
|
+
* @default registered
|
|
1096
|
+
* @enum {string}
|
|
762
1097
|
*/
|
|
763
|
-
|
|
1098
|
+
status: "registered" | "connected" | "disconnected" | "ignored";
|
|
764
1099
|
/**
|
|
765
1100
|
* @description Whether a message that this server fails to accept is re-sent through the provider's shared relay. Disabling it means the organization owns delivery entirely and a failure is a dropped message, including account verification and password recovery.
|
|
766
1101
|
* @default true
|
|
@@ -775,12 +1110,6 @@ export interface operations {
|
|
|
775
1110
|
* @description Timestamp at which control of the from domain was last proven. Null while unproven.
|
|
776
1111
|
*/
|
|
777
1112
|
fromDomainVerifiedAt?: string | null;
|
|
778
|
-
/**
|
|
779
|
-
* @description Health of the configuration. `unverified` means it has never delivered a test message, `verified` means the last delivery attempt succeeded, and `failing` means consecutive failures have opened the circuit and mail is being handled under the fallback setting without dialling this server.
|
|
780
|
-
* @default unverified
|
|
781
|
-
* @enum {string}
|
|
782
|
-
*/
|
|
783
|
-
verificationState: "unverified" | "verified" | "failing";
|
|
784
1113
|
/**
|
|
785
1114
|
* Format: date-time
|
|
786
1115
|
* @description Timestamp of the last message this server accepted.
|
|
@@ -871,7 +1200,7 @@ export interface operations {
|
|
|
871
1200
|
};
|
|
872
1201
|
};
|
|
873
1202
|
};
|
|
874
|
-
|
|
1203
|
+
createOrganizationSmtpConfiguration: {
|
|
875
1204
|
parameters: {
|
|
876
1205
|
query?: never;
|
|
877
1206
|
header?: never;
|
|
@@ -881,35 +1210,588 @@ export interface operations {
|
|
|
881
1210
|
};
|
|
882
1211
|
cookie?: never;
|
|
883
1212
|
};
|
|
884
|
-
requestBody
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
"
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
1213
|
+
requestBody: {
|
|
1214
|
+
content: {
|
|
1215
|
+
"application/json": {
|
|
1216
|
+
/** @description Hostname of the organization's SMTP server. */
|
|
1217
|
+
host: string;
|
|
1218
|
+
/**
|
|
1219
|
+
* @description TCP port the organization's SMTP server listens on. Restricted further by a submission-port allowlist.
|
|
1220
|
+
* @default 587
|
|
1221
|
+
*/
|
|
1222
|
+
port: number;
|
|
1223
|
+
/**
|
|
1224
|
+
* @description Transport encryption to negotiate. `starttls` upgrades a cleartext connection (typically port 587), `tls` opens an implicit TLS connection (typically port 465), and `none` sends in cleartext.
|
|
1225
|
+
* @default starttls
|
|
1226
|
+
* @enum {string}
|
|
1227
|
+
*/
|
|
1228
|
+
encryption?: "starttls" | "tls" | "none";
|
|
1229
|
+
/**
|
|
1230
|
+
* @description SMTP authentication mechanism. Any mechanism other than `none` requires both a username and a password.
|
|
1231
|
+
* @default plain
|
|
1232
|
+
* @enum {string}
|
|
1233
|
+
*/
|
|
1234
|
+
authMechanism?: "plain" | "cram-md5" | "none";
|
|
1235
|
+
/** @description Username presented to the organization's SMTP server. Required by the server, together with `password`, for every `authMechanism` other than `none`; see that property for why the pairing is a server-enforced contract rather than a schema constraint. */
|
|
1236
|
+
username?: string;
|
|
1237
|
+
/**
|
|
1238
|
+
* @description Password presented to the organization's SMTP server. The server requires it, together with `username`, for every `authMechanism` other than `none`, and answers 400 when either is missing.
|
|
1239
|
+
* That rule is deliberately NOT encoded in `required` or as a `oneOf`/`if`-`then`. Both encodings were measured against the generator: `if`/`then` collapses this payload to `interface{}`, and `oneOf` injects a `union json.RawMessage` field with a custom marshaller, either of which costs every consumer its generated type or its wire behaviour to express a constraint the server enforces anyway. Treat this property as conditionally required by contract, not by schema.
|
|
1240
|
+
* This is the ONLY operation that accepts the password alongside the settings, so that registering a mail server is one call and no configuration exists in a state where it is expected to send but holds no credential. Afterwards the password is written only by the rotation operation, never by the settings update, whose payload declares no `password` property at all.
|
|
1241
|
+
* The redaction sentinel `***` is refused, and so is the empty string - omit the property instead of sending it empty, which the `minLength` below enforces so this payload and the rotation payload agree.
|
|
1242
|
+
*/
|
|
1243
|
+
password?: string;
|
|
1244
|
+
/**
|
|
1245
|
+
* Format: email
|
|
1246
|
+
* @description Address the organization's mail is sent from.
|
|
1247
|
+
*/
|
|
1248
|
+
fromAddress: string;
|
|
1249
|
+
/** @description Display name shown alongside the from address. */
|
|
1250
|
+
fromDisplayName?: string;
|
|
1251
|
+
/**
|
|
1252
|
+
* Format: email
|
|
1253
|
+
* @description Address replies are directed to.
|
|
1254
|
+
*/
|
|
1255
|
+
replyToAddress?: string;
|
|
1256
|
+
/**
|
|
1257
|
+
* @description Whether a message this server fails to accept is re-sent through the provider's shared relay. Disabling it means a failure is a dropped message, account verification and password recovery included.
|
|
1258
|
+
* @default true
|
|
1259
|
+
*/
|
|
1260
|
+
fallbackToProvider?: boolean;
|
|
1261
|
+
};
|
|
1262
|
+
};
|
|
1263
|
+
};
|
|
1264
|
+
responses: {
|
|
1265
|
+
/** @description The stored SMTP configuration. */
|
|
1266
|
+
201: {
|
|
1267
|
+
headers: {
|
|
1268
|
+
[name: string]: unknown;
|
|
1269
|
+
};
|
|
1270
|
+
content: {
|
|
1271
|
+
"application/json": {
|
|
1272
|
+
/**
|
|
1273
|
+
* Format: uuid
|
|
1274
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
1275
|
+
*/
|
|
1276
|
+
id: string;
|
|
1277
|
+
/**
|
|
1278
|
+
* Format: uuid
|
|
1279
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
1280
|
+
*/
|
|
1281
|
+
organizationId: string;
|
|
1282
|
+
/** @description Hostname of the organization's SMTP server. */
|
|
1283
|
+
host: string;
|
|
1284
|
+
/**
|
|
1285
|
+
* @description TCP port the organization's SMTP server listens on. The server additionally restricts this to a submission-port allowlist; a syntactically valid port outside it is refused.
|
|
1286
|
+
* @default 587
|
|
1287
|
+
*/
|
|
1288
|
+
port: number;
|
|
1289
|
+
/**
|
|
1290
|
+
* @description Transport encryption to negotiate. `starttls` upgrades a cleartext connection (typically port 587), `tls` opens an implicit TLS connection (typically port 465), and `none` sends in cleartext and is intended only for an internal relay on a trusted network.
|
|
1291
|
+
* @default starttls
|
|
1292
|
+
* @enum {string}
|
|
1293
|
+
*/
|
|
1294
|
+
encryption: "starttls" | "tls" | "none";
|
|
1295
|
+
/**
|
|
1296
|
+
* @description SMTP authentication mechanism. `none` is permitted only for a relay that authorizes by source address; a configuration using any other mechanism must carry both a username and a password.
|
|
1297
|
+
* @default plain
|
|
1298
|
+
* @enum {string}
|
|
1299
|
+
*/
|
|
1300
|
+
authMechanism: "plain" | "cram-md5" | "none";
|
|
1301
|
+
/** @description Username presented to the organization's SMTP server. Held beside the host rather than with the password because it is an identifier rather than a secret, and the health surface must show it without a decryption round trip. It is usually an email address, so it is returned only on an authorized read. */
|
|
1302
|
+
username?: string;
|
|
1303
|
+
/**
|
|
1304
|
+
* @description Present only when a password is stored, and then always the redaction sentinel `***` - never the stored value, which is encrypted at rest and is never projected into a response. Its presence is therefore the only thing it reports: a configuration whose `authMechanism` is `none` stores no password and omits this property entirely. It is optional rather than required for exactly that reason.
|
|
1305
|
+
* Read-only, and read-only here means read-only: no request body references this schema. The write semantics belong to the payload schemas - `OrganizationSmtpConfigurationPayload` on create and `OrganizationSmtpCredentialPayload` on rotation - and are documented there.
|
|
1306
|
+
*/
|
|
1307
|
+
readonly password?: string;
|
|
1308
|
+
/**
|
|
1309
|
+
* Format: email
|
|
1310
|
+
* @description Address the organization's mail is sent from. Its domain must be verified before mail is routed through this server.
|
|
1311
|
+
*/
|
|
1312
|
+
fromAddress: string;
|
|
1313
|
+
/** @description Display name shown alongside the from address in the message header. */
|
|
1314
|
+
fromDisplayName?: string;
|
|
1315
|
+
/**
|
|
1316
|
+
* Format: email
|
|
1317
|
+
* @description Address replies are directed to. It is also the address carried when a message falls back to the provider relay, which rewrites the from address to the provider's own so the message stays aligned for SPF and DMARC.
|
|
1318
|
+
*/
|
|
1319
|
+
replyToAddress?: string;
|
|
1320
|
+
/**
|
|
1321
|
+
* @description Lifecycle and transport verdict, carrying the connection status vocabulary because the configuration IS a connection. `registered` means configured but never proven - the from domain is unverified, or no message has yet been delivered - and mail takes the provider relay. `connected` means the last delivery attempt succeeded and mail is routed through this server. `disconnected` means consecutive failures opened the circuit, so the server is no longer dialled and the fallback setting decides what happens. `ignored` means an administrator turned it off.
|
|
1322
|
+
*
|
|
1323
|
+
* The writers are disjoint on purpose: only an administrator writes `ignored`, and only the delivery circuit writes `connected` or `disconnected`. That is what keeps a deliberate opt-out distinguishable from a failing relay. It also makes "enabled while the from domain is unverified" unrepresentable rather than merely forbidden, which is why this property replaces the separate `enabled` and `verificationState` pair it supersedes.
|
|
1324
|
+
* @default registered
|
|
1325
|
+
* @enum {string}
|
|
1326
|
+
*/
|
|
1327
|
+
status: "registered" | "connected" | "disconnected" | "ignored";
|
|
1328
|
+
/**
|
|
1329
|
+
* @description Whether a message that this server fails to accept is re-sent through the provider's shared relay. Disabling it means the organization owns delivery entirely and a failure is a dropped message, including account verification and password recovery.
|
|
1330
|
+
* @default true
|
|
1331
|
+
*/
|
|
1332
|
+
fallbackToProvider: boolean;
|
|
1333
|
+
/** @description Registrable domain of the from address, held separately as the unit that ownership is proven for. */
|
|
1334
|
+
fromDomain?: string;
|
|
1335
|
+
/** @description Token the organization publishes in DNS to prove control of the from domain. Not a credential - it authorizes nothing and grants no access. */
|
|
1336
|
+
fromDomainVerificationToken?: string;
|
|
1337
|
+
/**
|
|
1338
|
+
* Format: date-time
|
|
1339
|
+
* @description Timestamp at which control of the from domain was last proven. Null while unproven.
|
|
1340
|
+
*/
|
|
1341
|
+
fromDomainVerifiedAt?: string | null;
|
|
1342
|
+
/**
|
|
1343
|
+
* Format: date-time
|
|
1344
|
+
* @description Timestamp of the last message this server accepted.
|
|
1345
|
+
*/
|
|
1346
|
+
lastSuccessAt?: string | null;
|
|
1347
|
+
/**
|
|
1348
|
+
* Format: date-time
|
|
1349
|
+
* @description Timestamp of the last delivery attempt this server rejected or failed to accept.
|
|
1350
|
+
*/
|
|
1351
|
+
lastFailureAt?: string | null;
|
|
1352
|
+
/**
|
|
1353
|
+
* @description Classification of the last failure. Always a classification, never the remote server's own message: the set is closed on purpose, because reporting a remote server's text back to a caller would turn a refusal into an oracle for what the network can reach.
|
|
1354
|
+
* @enum {string}
|
|
1355
|
+
*/
|
|
1356
|
+
lastFailureReason?: "blocked_target" | "connect_refused" | "connect_timeout" | "tls_failed" | "starttls_unsupported" | "auth_rejected" | "relay_rejected_sender" | "relay_rejected_recipient" | "delivery_failed" | "credential_unreadable";
|
|
1357
|
+
/**
|
|
1358
|
+
* @description Delivery failures since the last success. Drives the circuit that stops dialling a persistently unreachable server.
|
|
1359
|
+
* @default 0
|
|
1360
|
+
*/
|
|
1361
|
+
consecutiveFailures: number;
|
|
1362
|
+
/**
|
|
1363
|
+
* Format: uuid
|
|
1364
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
1365
|
+
*/
|
|
1366
|
+
createdBy?: string | null;
|
|
1367
|
+
/**
|
|
1368
|
+
* Format: date-time
|
|
1369
|
+
* @description Timestamp when the configuration was created.
|
|
1370
|
+
*/
|
|
1371
|
+
createdAt: string;
|
|
1372
|
+
/**
|
|
1373
|
+
* Format: date-time
|
|
1374
|
+
* @description Timestamp when the configuration was last changed.
|
|
1375
|
+
*/
|
|
1376
|
+
updatedAt: string;
|
|
1377
|
+
/**
|
|
1378
|
+
* Format: date-time
|
|
1379
|
+
* @description Timestamp when the configuration was soft deleted. Null while it remains active.
|
|
1380
|
+
*/
|
|
1381
|
+
deletedAt?: string | null;
|
|
1382
|
+
};
|
|
1383
|
+
};
|
|
1384
|
+
};
|
|
1385
|
+
/** @description Invalid request body or request param */
|
|
1386
|
+
400: {
|
|
1387
|
+
headers: {
|
|
1388
|
+
[name: string]: unknown;
|
|
1389
|
+
};
|
|
1390
|
+
content: {
|
|
1391
|
+
"text/plain": string;
|
|
1392
|
+
};
|
|
1393
|
+
};
|
|
1394
|
+
/** @description Expired JWT token used or insufficient privilege */
|
|
1395
|
+
401: {
|
|
1396
|
+
headers: {
|
|
1397
|
+
[name: string]: unknown;
|
|
1398
|
+
};
|
|
1399
|
+
content: {
|
|
1400
|
+
"text/plain": string;
|
|
1401
|
+
};
|
|
1402
|
+
};
|
|
1403
|
+
/** @description Caller lacks the permission key required for this organization */
|
|
1404
|
+
403: {
|
|
1405
|
+
headers: {
|
|
1406
|
+
[name: string]: unknown;
|
|
1407
|
+
};
|
|
1408
|
+
content: {
|
|
1409
|
+
"text/plain": string;
|
|
1410
|
+
};
|
|
1411
|
+
};
|
|
1412
|
+
/** @description The configuration already exists, or the requested state transition is refused in the configuration's current state */
|
|
1413
|
+
409: {
|
|
1414
|
+
headers: {
|
|
1415
|
+
[name: string]: unknown;
|
|
1416
|
+
};
|
|
1417
|
+
content: {
|
|
1418
|
+
"text/plain": string;
|
|
1419
|
+
};
|
|
1420
|
+
};
|
|
1421
|
+
/** @description Internal server error */
|
|
1422
|
+
500: {
|
|
1423
|
+
headers: {
|
|
1424
|
+
[name: string]: unknown;
|
|
1425
|
+
};
|
|
1426
|
+
content: {
|
|
1427
|
+
"text/plain": string;
|
|
1428
|
+
};
|
|
1429
|
+
};
|
|
1430
|
+
};
|
|
1431
|
+
};
|
|
1432
|
+
rotateOrganizationSmtpCredential: {
|
|
1433
|
+
parameters: {
|
|
1434
|
+
query?: never;
|
|
1435
|
+
header?: never;
|
|
1436
|
+
path: {
|
|
1437
|
+
/** @description Organization ID */
|
|
1438
|
+
orgId: string;
|
|
1439
|
+
};
|
|
1440
|
+
cookie?: never;
|
|
1441
|
+
};
|
|
1442
|
+
requestBody: {
|
|
1443
|
+
content: {
|
|
1444
|
+
"application/json": {
|
|
1445
|
+
/** @description New password. The redaction sentinel `***` and the empty string are refused with a 400 rather than treated as "leave the stored value alone", so echoing a read back cannot erase the credential. */
|
|
1446
|
+
password: string;
|
|
1447
|
+
};
|
|
1448
|
+
};
|
|
1449
|
+
};
|
|
1450
|
+
responses: {
|
|
1451
|
+
/** @description The stored SMTP configuration, with the password redacted. */
|
|
1452
|
+
200: {
|
|
1453
|
+
headers: {
|
|
1454
|
+
[name: string]: unknown;
|
|
1455
|
+
};
|
|
1456
|
+
content: {
|
|
1457
|
+
"application/json": {
|
|
1458
|
+
/**
|
|
1459
|
+
* Format: uuid
|
|
1460
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
1461
|
+
*/
|
|
1462
|
+
id: string;
|
|
1463
|
+
/**
|
|
1464
|
+
* Format: uuid
|
|
1465
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
1466
|
+
*/
|
|
1467
|
+
organizationId: string;
|
|
1468
|
+
/** @description Hostname of the organization's SMTP server. */
|
|
1469
|
+
host: string;
|
|
1470
|
+
/**
|
|
1471
|
+
* @description TCP port the organization's SMTP server listens on. The server additionally restricts this to a submission-port allowlist; a syntactically valid port outside it is refused.
|
|
1472
|
+
* @default 587
|
|
1473
|
+
*/
|
|
1474
|
+
port: number;
|
|
1475
|
+
/**
|
|
1476
|
+
* @description Transport encryption to negotiate. `starttls` upgrades a cleartext connection (typically port 587), `tls` opens an implicit TLS connection (typically port 465), and `none` sends in cleartext and is intended only for an internal relay on a trusted network.
|
|
1477
|
+
* @default starttls
|
|
1478
|
+
* @enum {string}
|
|
1479
|
+
*/
|
|
1480
|
+
encryption: "starttls" | "tls" | "none";
|
|
1481
|
+
/**
|
|
1482
|
+
* @description SMTP authentication mechanism. `none` is permitted only for a relay that authorizes by source address; a configuration using any other mechanism must carry both a username and a password.
|
|
1483
|
+
* @default plain
|
|
1484
|
+
* @enum {string}
|
|
1485
|
+
*/
|
|
1486
|
+
authMechanism: "plain" | "cram-md5" | "none";
|
|
1487
|
+
/** @description Username presented to the organization's SMTP server. Held beside the host rather than with the password because it is an identifier rather than a secret, and the health surface must show it without a decryption round trip. It is usually an email address, so it is returned only on an authorized read. */
|
|
1488
|
+
username?: string;
|
|
1489
|
+
/**
|
|
1490
|
+
* @description Present only when a password is stored, and then always the redaction sentinel `***` - never the stored value, which is encrypted at rest and is never projected into a response. Its presence is therefore the only thing it reports: a configuration whose `authMechanism` is `none` stores no password and omits this property entirely. It is optional rather than required for exactly that reason.
|
|
1491
|
+
* Read-only, and read-only here means read-only: no request body references this schema. The write semantics belong to the payload schemas - `OrganizationSmtpConfigurationPayload` on create and `OrganizationSmtpCredentialPayload` on rotation - and are documented there.
|
|
1492
|
+
*/
|
|
1493
|
+
readonly password?: string;
|
|
1494
|
+
/**
|
|
1495
|
+
* Format: email
|
|
1496
|
+
* @description Address the organization's mail is sent from. Its domain must be verified before mail is routed through this server.
|
|
1497
|
+
*/
|
|
1498
|
+
fromAddress: string;
|
|
1499
|
+
/** @description Display name shown alongside the from address in the message header. */
|
|
1500
|
+
fromDisplayName?: string;
|
|
1501
|
+
/**
|
|
1502
|
+
* Format: email
|
|
1503
|
+
* @description Address replies are directed to. It is also the address carried when a message falls back to the provider relay, which rewrites the from address to the provider's own so the message stays aligned for SPF and DMARC.
|
|
1504
|
+
*/
|
|
1505
|
+
replyToAddress?: string;
|
|
1506
|
+
/**
|
|
1507
|
+
* @description Lifecycle and transport verdict, carrying the connection status vocabulary because the configuration IS a connection. `registered` means configured but never proven - the from domain is unverified, or no message has yet been delivered - and mail takes the provider relay. `connected` means the last delivery attempt succeeded and mail is routed through this server. `disconnected` means consecutive failures opened the circuit, so the server is no longer dialled and the fallback setting decides what happens. `ignored` means an administrator turned it off.
|
|
1508
|
+
*
|
|
1509
|
+
* The writers are disjoint on purpose: only an administrator writes `ignored`, and only the delivery circuit writes `connected` or `disconnected`. That is what keeps a deliberate opt-out distinguishable from a failing relay. It also makes "enabled while the from domain is unverified" unrepresentable rather than merely forbidden, which is why this property replaces the separate `enabled` and `verificationState` pair it supersedes.
|
|
1510
|
+
* @default registered
|
|
1511
|
+
* @enum {string}
|
|
1512
|
+
*/
|
|
1513
|
+
status: "registered" | "connected" | "disconnected" | "ignored";
|
|
1514
|
+
/**
|
|
1515
|
+
* @description Whether a message that this server fails to accept is re-sent through the provider's shared relay. Disabling it means the organization owns delivery entirely and a failure is a dropped message, including account verification and password recovery.
|
|
1516
|
+
* @default true
|
|
1517
|
+
*/
|
|
1518
|
+
fallbackToProvider: boolean;
|
|
1519
|
+
/** @description Registrable domain of the from address, held separately as the unit that ownership is proven for. */
|
|
1520
|
+
fromDomain?: string;
|
|
1521
|
+
/** @description Token the organization publishes in DNS to prove control of the from domain. Not a credential - it authorizes nothing and grants no access. */
|
|
1522
|
+
fromDomainVerificationToken?: string;
|
|
1523
|
+
/**
|
|
1524
|
+
* Format: date-time
|
|
1525
|
+
* @description Timestamp at which control of the from domain was last proven. Null while unproven.
|
|
1526
|
+
*/
|
|
1527
|
+
fromDomainVerifiedAt?: string | null;
|
|
1528
|
+
/**
|
|
1529
|
+
* Format: date-time
|
|
1530
|
+
* @description Timestamp of the last message this server accepted.
|
|
1531
|
+
*/
|
|
1532
|
+
lastSuccessAt?: string | null;
|
|
1533
|
+
/**
|
|
1534
|
+
* Format: date-time
|
|
1535
|
+
* @description Timestamp of the last delivery attempt this server rejected or failed to accept.
|
|
1536
|
+
*/
|
|
1537
|
+
lastFailureAt?: string | null;
|
|
1538
|
+
/**
|
|
1539
|
+
* @description Classification of the last failure. Always a classification, never the remote server's own message: the set is closed on purpose, because reporting a remote server's text back to a caller would turn a refusal into an oracle for what the network can reach.
|
|
1540
|
+
* @enum {string}
|
|
1541
|
+
*/
|
|
1542
|
+
lastFailureReason?: "blocked_target" | "connect_refused" | "connect_timeout" | "tls_failed" | "starttls_unsupported" | "auth_rejected" | "relay_rejected_sender" | "relay_rejected_recipient" | "delivery_failed" | "credential_unreadable";
|
|
1543
|
+
/**
|
|
1544
|
+
* @description Delivery failures since the last success. Drives the circuit that stops dialling a persistently unreachable server.
|
|
1545
|
+
* @default 0
|
|
1546
|
+
*/
|
|
1547
|
+
consecutiveFailures: number;
|
|
1548
|
+
/**
|
|
1549
|
+
* Format: uuid
|
|
1550
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
1551
|
+
*/
|
|
1552
|
+
createdBy?: string | null;
|
|
1553
|
+
/**
|
|
1554
|
+
* Format: date-time
|
|
1555
|
+
* @description Timestamp when the configuration was created.
|
|
1556
|
+
*/
|
|
1557
|
+
createdAt: string;
|
|
1558
|
+
/**
|
|
1559
|
+
* Format: date-time
|
|
1560
|
+
* @description Timestamp when the configuration was last changed.
|
|
1561
|
+
*/
|
|
1562
|
+
updatedAt: string;
|
|
1563
|
+
/**
|
|
1564
|
+
* Format: date-time
|
|
1565
|
+
* @description Timestamp when the configuration was soft deleted. Null while it remains active.
|
|
1566
|
+
*/
|
|
1567
|
+
deletedAt?: string | null;
|
|
1568
|
+
};
|
|
1569
|
+
};
|
|
1570
|
+
};
|
|
1571
|
+
/** @description Invalid request body or request param */
|
|
1572
|
+
400: {
|
|
1573
|
+
headers: {
|
|
1574
|
+
[name: string]: unknown;
|
|
1575
|
+
};
|
|
1576
|
+
content: {
|
|
1577
|
+
"text/plain": string;
|
|
1578
|
+
};
|
|
1579
|
+
};
|
|
1580
|
+
/** @description Expired JWT token used or insufficient privilege */
|
|
1581
|
+
401: {
|
|
1582
|
+
headers: {
|
|
1583
|
+
[name: string]: unknown;
|
|
1584
|
+
};
|
|
1585
|
+
content: {
|
|
1586
|
+
"text/plain": string;
|
|
1587
|
+
};
|
|
1588
|
+
};
|
|
1589
|
+
/** @description Caller lacks the permission key required for this organization */
|
|
1590
|
+
403: {
|
|
1591
|
+
headers: {
|
|
1592
|
+
[name: string]: unknown;
|
|
1593
|
+
};
|
|
1594
|
+
content: {
|
|
1595
|
+
"text/plain": string;
|
|
1596
|
+
};
|
|
1597
|
+
};
|
|
1598
|
+
/** @description Result not found */
|
|
1599
|
+
404: {
|
|
1600
|
+
headers: {
|
|
1601
|
+
[name: string]: unknown;
|
|
1602
|
+
};
|
|
1603
|
+
content: {
|
|
1604
|
+
"text/plain": string;
|
|
1605
|
+
};
|
|
1606
|
+
};
|
|
1607
|
+
/** @description Internal server error */
|
|
1608
|
+
500: {
|
|
1609
|
+
headers: {
|
|
1610
|
+
[name: string]: unknown;
|
|
1611
|
+
};
|
|
1612
|
+
content: {
|
|
1613
|
+
"text/plain": string;
|
|
1614
|
+
};
|
|
1615
|
+
};
|
|
1616
|
+
};
|
|
1617
|
+
};
|
|
1618
|
+
setOrganizationSmtpEnablement: {
|
|
1619
|
+
parameters: {
|
|
1620
|
+
query?: never;
|
|
1621
|
+
header?: never;
|
|
1622
|
+
path: {
|
|
1623
|
+
/** @description Organization ID */
|
|
1624
|
+
orgId: string;
|
|
1625
|
+
};
|
|
1626
|
+
cookie?: never;
|
|
1627
|
+
};
|
|
1628
|
+
requestBody: {
|
|
1629
|
+
content: {
|
|
1630
|
+
"application/json": {
|
|
1631
|
+
/** @description True returns the configuration to `registered` so it may prove itself and carry mail; false moves it to `ignored`. Turning it on is refused while the from domain is unverified. */
|
|
1632
|
+
enabled: boolean;
|
|
1633
|
+
};
|
|
1634
|
+
};
|
|
1635
|
+
};
|
|
1636
|
+
responses: {
|
|
1637
|
+
/** @description The stored SMTP configuration. */
|
|
1638
|
+
200: {
|
|
1639
|
+
headers: {
|
|
1640
|
+
[name: string]: unknown;
|
|
1641
|
+
};
|
|
1642
|
+
content: {
|
|
1643
|
+
"application/json": {
|
|
1644
|
+
/**
|
|
1645
|
+
* Format: uuid
|
|
1646
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
1647
|
+
*/
|
|
1648
|
+
id: string;
|
|
1649
|
+
/**
|
|
1650
|
+
* Format: uuid
|
|
1651
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
1652
|
+
*/
|
|
1653
|
+
organizationId: string;
|
|
1654
|
+
/** @description Hostname of the organization's SMTP server. */
|
|
1655
|
+
host: string;
|
|
1656
|
+
/**
|
|
1657
|
+
* @description TCP port the organization's SMTP server listens on. The server additionally restricts this to a submission-port allowlist; a syntactically valid port outside it is refused.
|
|
1658
|
+
* @default 587
|
|
1659
|
+
*/
|
|
1660
|
+
port: number;
|
|
1661
|
+
/**
|
|
1662
|
+
* @description Transport encryption to negotiate. `starttls` upgrades a cleartext connection (typically port 587), `tls` opens an implicit TLS connection (typically port 465), and `none` sends in cleartext and is intended only for an internal relay on a trusted network.
|
|
1663
|
+
* @default starttls
|
|
1664
|
+
* @enum {string}
|
|
1665
|
+
*/
|
|
1666
|
+
encryption: "starttls" | "tls" | "none";
|
|
1667
|
+
/**
|
|
1668
|
+
* @description SMTP authentication mechanism. `none` is permitted only for a relay that authorizes by source address; a configuration using any other mechanism must carry both a username and a password.
|
|
1669
|
+
* @default plain
|
|
1670
|
+
* @enum {string}
|
|
1671
|
+
*/
|
|
1672
|
+
authMechanism: "plain" | "cram-md5" | "none";
|
|
1673
|
+
/** @description Username presented to the organization's SMTP server. Held beside the host rather than with the password because it is an identifier rather than a secret, and the health surface must show it without a decryption round trip. It is usually an email address, so it is returned only on an authorized read. */
|
|
1674
|
+
username?: string;
|
|
1675
|
+
/**
|
|
1676
|
+
* @description Present only when a password is stored, and then always the redaction sentinel `***` - never the stored value, which is encrypted at rest and is never projected into a response. Its presence is therefore the only thing it reports: a configuration whose `authMechanism` is `none` stores no password and omits this property entirely. It is optional rather than required for exactly that reason.
|
|
1677
|
+
* Read-only, and read-only here means read-only: no request body references this schema. The write semantics belong to the payload schemas - `OrganizationSmtpConfigurationPayload` on create and `OrganizationSmtpCredentialPayload` on rotation - and are documented there.
|
|
1678
|
+
*/
|
|
1679
|
+
readonly password?: string;
|
|
1680
|
+
/**
|
|
1681
|
+
* Format: email
|
|
1682
|
+
* @description Address the organization's mail is sent from. Its domain must be verified before mail is routed through this server.
|
|
1683
|
+
*/
|
|
1684
|
+
fromAddress: string;
|
|
1685
|
+
/** @description Display name shown alongside the from address in the message header. */
|
|
1686
|
+
fromDisplayName?: string;
|
|
1687
|
+
/**
|
|
1688
|
+
* Format: email
|
|
1689
|
+
* @description Address replies are directed to. It is also the address carried when a message falls back to the provider relay, which rewrites the from address to the provider's own so the message stays aligned for SPF and DMARC.
|
|
1690
|
+
*/
|
|
1691
|
+
replyToAddress?: string;
|
|
1692
|
+
/**
|
|
1693
|
+
* @description Lifecycle and transport verdict, carrying the connection status vocabulary because the configuration IS a connection. `registered` means configured but never proven - the from domain is unverified, or no message has yet been delivered - and mail takes the provider relay. `connected` means the last delivery attempt succeeded and mail is routed through this server. `disconnected` means consecutive failures opened the circuit, so the server is no longer dialled and the fallback setting decides what happens. `ignored` means an administrator turned it off.
|
|
1694
|
+
*
|
|
1695
|
+
* The writers are disjoint on purpose: only an administrator writes `ignored`, and only the delivery circuit writes `connected` or `disconnected`. That is what keeps a deliberate opt-out distinguishable from a failing relay. It also makes "enabled while the from domain is unverified" unrepresentable rather than merely forbidden, which is why this property replaces the separate `enabled` and `verificationState` pair it supersedes.
|
|
1696
|
+
* @default registered
|
|
1697
|
+
* @enum {string}
|
|
1698
|
+
*/
|
|
1699
|
+
status: "registered" | "connected" | "disconnected" | "ignored";
|
|
1700
|
+
/**
|
|
1701
|
+
* @description Whether a message that this server fails to accept is re-sent through the provider's shared relay. Disabling it means the organization owns delivery entirely and a failure is a dropped message, including account verification and password recovery.
|
|
1702
|
+
* @default true
|
|
1703
|
+
*/
|
|
1704
|
+
fallbackToProvider: boolean;
|
|
1705
|
+
/** @description Registrable domain of the from address, held separately as the unit that ownership is proven for. */
|
|
1706
|
+
fromDomain?: string;
|
|
1707
|
+
/** @description Token the organization publishes in DNS to prove control of the from domain. Not a credential - it authorizes nothing and grants no access. */
|
|
1708
|
+
fromDomainVerificationToken?: string;
|
|
1709
|
+
/**
|
|
1710
|
+
* Format: date-time
|
|
1711
|
+
* @description Timestamp at which control of the from domain was last proven. Null while unproven.
|
|
1712
|
+
*/
|
|
1713
|
+
fromDomainVerifiedAt?: string | null;
|
|
1714
|
+
/**
|
|
1715
|
+
* Format: date-time
|
|
1716
|
+
* @description Timestamp of the last message this server accepted.
|
|
1717
|
+
*/
|
|
1718
|
+
lastSuccessAt?: string | null;
|
|
1719
|
+
/**
|
|
1720
|
+
* Format: date-time
|
|
1721
|
+
* @description Timestamp of the last delivery attempt this server rejected or failed to accept.
|
|
1722
|
+
*/
|
|
1723
|
+
lastFailureAt?: string | null;
|
|
1724
|
+
/**
|
|
1725
|
+
* @description Classification of the last failure. Always a classification, never the remote server's own message: the set is closed on purpose, because reporting a remote server's text back to a caller would turn a refusal into an oracle for what the network can reach.
|
|
1726
|
+
* @enum {string}
|
|
1727
|
+
*/
|
|
1728
|
+
lastFailureReason?: "blocked_target" | "connect_refused" | "connect_timeout" | "tls_failed" | "starttls_unsupported" | "auth_rejected" | "relay_rejected_sender" | "relay_rejected_recipient" | "delivery_failed" | "credential_unreadable";
|
|
1729
|
+
/**
|
|
1730
|
+
* @description Delivery failures since the last success. Drives the circuit that stops dialling a persistently unreachable server.
|
|
1731
|
+
* @default 0
|
|
1732
|
+
*/
|
|
1733
|
+
consecutiveFailures: number;
|
|
1734
|
+
/**
|
|
1735
|
+
* Format: uuid
|
|
1736
|
+
* @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
|
|
1737
|
+
*/
|
|
1738
|
+
createdBy?: string | null;
|
|
1739
|
+
/**
|
|
1740
|
+
* Format: date-time
|
|
1741
|
+
* @description Timestamp when the configuration was created.
|
|
1742
|
+
*/
|
|
1743
|
+
createdAt: string;
|
|
1744
|
+
/**
|
|
1745
|
+
* Format: date-time
|
|
1746
|
+
* @description Timestamp when the configuration was last changed.
|
|
1747
|
+
*/
|
|
1748
|
+
updatedAt: string;
|
|
1749
|
+
/**
|
|
1750
|
+
* Format: date-time
|
|
1751
|
+
* @description Timestamp when the configuration was soft deleted. Null while it remains active.
|
|
1752
|
+
*/
|
|
1753
|
+
deletedAt?: string | null;
|
|
1754
|
+
};
|
|
1755
|
+
};
|
|
1756
|
+
};
|
|
1757
|
+
/** @description Invalid request body or request param */
|
|
1758
|
+
400: {
|
|
1759
|
+
headers: {
|
|
1760
|
+
[name: string]: unknown;
|
|
1761
|
+
};
|
|
1762
|
+
content: {
|
|
1763
|
+
"text/plain": string;
|
|
1764
|
+
};
|
|
1765
|
+
};
|
|
1766
|
+
/** @description Expired JWT token used or insufficient privilege */
|
|
1767
|
+
401: {
|
|
1768
|
+
headers: {
|
|
1769
|
+
[name: string]: unknown;
|
|
1770
|
+
};
|
|
1771
|
+
content: {
|
|
1772
|
+
"text/plain": string;
|
|
1773
|
+
};
|
|
1774
|
+
};
|
|
1775
|
+
/** @description Caller lacks the permission key required for this organization */
|
|
1776
|
+
403: {
|
|
1777
|
+
headers: {
|
|
1778
|
+
[name: string]: unknown;
|
|
1779
|
+
};
|
|
1780
|
+
content: {
|
|
1781
|
+
"text/plain": string;
|
|
1782
|
+
};
|
|
1783
|
+
};
|
|
1784
|
+
/** @description Result not found */
|
|
1785
|
+
404: {
|
|
1786
|
+
headers: {
|
|
1787
|
+
[name: string]: unknown;
|
|
1788
|
+
};
|
|
1789
|
+
content: {
|
|
1790
|
+
"text/plain": string;
|
|
1791
|
+
};
|
|
1792
|
+
};
|
|
1793
|
+
/** @description The configuration already exists, or the requested state transition is refused in the configuration's current state */
|
|
1794
|
+
409: {
|
|
913
1795
|
headers: {
|
|
914
1796
|
[name: string]: unknown;
|
|
915
1797
|
};
|