@sylphx/sdk 0.30.0 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +123 -0
- package/dist/access.d.ts +126 -20
- package/dist/access.js +111 -15
- package/dist/access.js.map +1 -1
- package/dist/ai.d.ts +1 -2
- package/dist/ai.js +2 -3
- package/dist/ai.js.map +1 -1
- package/dist/artifacts.d.ts +1 -1
- package/dist/artifacts.js +2 -2
- package/dist/assets.d.ts +447 -0
- package/dist/assets.js +266 -0
- package/dist/assets.js.map +1 -0
- package/dist/auth/client.d.ts +239 -0
- package/dist/auth/client.js +337 -0
- package/dist/auth/client.js.map +1 -0
- package/dist/auth/verify.d.ts +92 -0
- package/dist/auth/verify.js +207 -0
- package/dist/auth/verify.js.map +1 -0
- package/dist/auth.d.ts +455 -7
- package/dist/auth.js +416 -5
- package/dist/auth.js.map +1 -1
- package/dist/billing.d.ts +113 -17
- package/dist/billing.js +45 -5
- package/dist/billing.js.map +1 -1
- package/dist/broker.d.ts +5 -4
- package/dist/broker.js +3 -3
- package/dist/broker.js.map +1 -1
- package/dist/build.d.ts +4 -4
- package/dist/build.js +3 -3
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/config/flags.d.ts +140 -0
- package/dist/config/flags.js +462 -0
- package/dist/config/flags.js.map +1 -0
- package/dist/config.d.ts +380 -15
- package/dist/config.js +283 -5
- package/dist/config.js.map +1 -1
- package/dist/connections.d.ts +6 -6
- package/dist/connections.js +3 -3
- package/dist/data.d.ts +844 -8
- package/dist/data.js +779 -5
- package/dist/data.js.map +1 -1
- package/dist/entitlement.d.ts +18 -9
- package/dist/entitlement.js +4 -4
- package/dist/entitlement.js.map +1 -1
- package/dist/events/realtime.d.ts +69 -0
- package/dist/events/realtime.js +107 -0
- package/dist/events/realtime.js.map +1 -0
- package/dist/events/webhooks.d.ts +40 -0
- package/dist/events/webhooks.js +110 -0
- package/dist/events/webhooks.js.map +1 -0
- package/dist/events.d.ts +369 -22
- package/dist/events.js +311 -8
- package/dist/events.js.map +1 -1
- package/dist/hosting.d.ts +13 -14
- package/dist/hosting.js +3 -4
- package/dist/hosting.js.map +1 -1
- package/dist/ids.d.ts +837 -0
- package/dist/ids.js +287 -0
- package/dist/ids.js.map +1 -0
- package/dist/index.d.ts +12 -1
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/dist/keys.d.ts +2 -2
- package/dist/keys.js +3 -3
- package/dist/localization.d.ts +663 -0
- package/dist/localization.js +491 -0
- package/dist/localization.js.map +1 -0
- package/dist/methods.js +1933 -133
- package/dist/methods.js.map +1 -1
- package/dist/money.d.ts +1406 -0
- package/dist/money.js +1090 -0
- package/dist/money.js.map +1 -0
- package/dist/network.d.ts +4 -5
- package/dist/network.js +3 -4
- package/dist/network.js.map +1 -1
- package/dist/notify.d.ts +718 -127
- package/dist/notify.js +493 -74
- package/dist/notify.js.map +1 -1
- package/dist/observability.d.ts +184 -7
- package/dist/observability.js +156 -8
- package/dist/observability.js.map +1 -1
- package/dist/release.d.ts +14 -15
- package/dist/release.js +3 -4
- package/dist/release.js.map +1 -1
- package/dist/runners.d.ts +2 -3
- package/dist/runners.js +3 -4
- package/dist/runners.js.map +1 -1
- package/dist/runtime.d.ts +42 -5
- package/dist/runtime.js +101 -18
- package/dist/runtime.js.map +1 -1
- package/dist/sandboxes.d.ts +64 -20
- package/dist/sandboxes.js +9 -4
- package/dist/sandboxes.js.map +1 -1
- package/dist/secrets.d.ts +6 -6
- package/dist/secrets.js +4 -4
- package/dist/workflows.d.ts +850 -12
- package/dist/workflows.js +672 -3
- package/dist/workflows.js.map +1 -1
- package/package.json +4 -4
package/dist/notify.d.ts
CHANGED
|
@@ -77,6 +77,10 @@ export interface ChannelDelivery {
|
|
|
77
77
|
readonly receiptTime?: string;
|
|
78
78
|
/** A machine-readable failure code. */
|
|
79
79
|
readonly errorCode?: string;
|
|
80
|
+
/** The provider's last reply, for example `250 2.0.0 queued as …`. */
|
|
81
|
+
readonly providerResponse?: string;
|
|
82
|
+
/** Hand-off attempts so far. */
|
|
83
|
+
readonly attempts?: number;
|
|
80
84
|
}
|
|
81
85
|
/** The request of CreateBroadcast. */
|
|
82
86
|
export interface CreateBroadcastRequest {
|
|
@@ -92,6 +96,34 @@ export interface CreateBroadcastRequest {
|
|
|
92
96
|
/** Validate and return the result without writing anything. */
|
|
93
97
|
validateOnly?: boolean;
|
|
94
98
|
}
|
|
99
|
+
/** The request of CreateEmailDomain. */
|
|
100
|
+
export interface CreateEmailDomainRequest {
|
|
101
|
+
/** The parent to create in. */
|
|
102
|
+
parent: string;
|
|
103
|
+
/**
|
|
104
|
+
* The email domain id, the final name segment; the server assigns one when
|
|
105
|
+
* empty.
|
|
106
|
+
*/
|
|
107
|
+
emailDomainId?: string;
|
|
108
|
+
/** The email domain to create; only caller-writable fields are read. */
|
|
109
|
+
emailDomain: EmailDomain;
|
|
110
|
+
/** Validate and return the result without writing anything. */
|
|
111
|
+
validateOnly?: boolean;
|
|
112
|
+
}
|
|
113
|
+
/** The request of CreateMailbox. */
|
|
114
|
+
export interface CreateMailboxRequest {
|
|
115
|
+
/** The parent to create in. */
|
|
116
|
+
parent: string;
|
|
117
|
+
/**
|
|
118
|
+
* The mailbox id, the final name segment; the server assigns one when
|
|
119
|
+
* empty.
|
|
120
|
+
*/
|
|
121
|
+
mailboxId?: string;
|
|
122
|
+
/** The mailbox to create; only caller-writable fields are read. */
|
|
123
|
+
mailbox: Mailbox;
|
|
124
|
+
/** Validate and return the result without writing anything. */
|
|
125
|
+
validateOnly?: boolean;
|
|
126
|
+
}
|
|
95
127
|
/** The request of CreateMessage. */
|
|
96
128
|
export interface CreateMessageRequest {
|
|
97
129
|
/** The parent to create in. */
|
|
@@ -117,6 +149,17 @@ export interface CreateRecipientRequest {
|
|
|
117
149
|
/** Validate and return the result without writing anything. */
|
|
118
150
|
validateOnly?: boolean;
|
|
119
151
|
}
|
|
152
|
+
/** The request of CreateRoute. */
|
|
153
|
+
export interface CreateRouteRequest {
|
|
154
|
+
/** The email domain to create in. */
|
|
155
|
+
parent: string;
|
|
156
|
+
/** The route id, the final name segment; the server assigns one when empty. */
|
|
157
|
+
routeId?: string;
|
|
158
|
+
/** The route to create; only caller-writable fields are read. */
|
|
159
|
+
route: Route;
|
|
160
|
+
/** Validate and return the result without writing anything. */
|
|
161
|
+
validateOnly?: boolean;
|
|
162
|
+
}
|
|
120
163
|
/** The request of CreateSender. */
|
|
121
164
|
export interface CreateSenderRequest {
|
|
122
165
|
/** The parent to create in. */
|
|
@@ -128,20 +171,6 @@ export interface CreateSenderRequest {
|
|
|
128
171
|
/** Validate and return the result without writing anything. */
|
|
129
172
|
validateOnly?: boolean;
|
|
130
173
|
}
|
|
131
|
-
/** The request of CreateSendingDomain. */
|
|
132
|
-
export interface CreateSendingDomainRequest {
|
|
133
|
-
/** The parent to create in. */
|
|
134
|
-
parent: string;
|
|
135
|
-
/**
|
|
136
|
-
* The sending domain id, the final name segment; the server assigns one when
|
|
137
|
-
* empty.
|
|
138
|
-
*/
|
|
139
|
-
sendingDomainId?: string;
|
|
140
|
-
/** The sending domain to create; only caller-writable fields are read. */
|
|
141
|
-
sendingDomain: SendingDomain;
|
|
142
|
-
/** Validate and return the result without writing anything. */
|
|
143
|
-
validateOnly?: boolean;
|
|
144
|
-
}
|
|
145
174
|
/** The request of CreateSuppression. */
|
|
146
175
|
export interface CreateSuppressionRequest {
|
|
147
176
|
/** The parent to create in. */
|
|
@@ -181,6 +210,35 @@ export interface DeleteBroadcastRequest {
|
|
|
181
210
|
/** Validate without deleting anything. */
|
|
182
211
|
validateOnly?: boolean;
|
|
183
212
|
}
|
|
213
|
+
/** The request of DeleteEmailDomain. */
|
|
214
|
+
export interface DeleteEmailDomainRequest {
|
|
215
|
+
/** The name of the email domain to delete. */
|
|
216
|
+
name: string;
|
|
217
|
+
/** Delete only if the current etag matches. */
|
|
218
|
+
etag?: string;
|
|
219
|
+
/** Succeed when the email domain does not exist. */
|
|
220
|
+
allowMissing?: boolean;
|
|
221
|
+
/** Validate without deleting anything. */
|
|
222
|
+
validateOnly?: boolean;
|
|
223
|
+
/** Also delete the domain's routes. */
|
|
224
|
+
force?: boolean;
|
|
225
|
+
}
|
|
226
|
+
/** The request of DeleteMailbox. */
|
|
227
|
+
export interface DeleteMailboxRequest {
|
|
228
|
+
/** The name of the mailbox to delete. */
|
|
229
|
+
name: string;
|
|
230
|
+
/** Delete only if the current etag matches. */
|
|
231
|
+
etag?: string;
|
|
232
|
+
/** Succeed when the mailbox does not exist. */
|
|
233
|
+
allowMissing?: boolean;
|
|
234
|
+
/** Validate without deleting anything. */
|
|
235
|
+
validateOnly?: boolean;
|
|
236
|
+
/**
|
|
237
|
+
* Delete its inbound email with it; a mailbox holding inbound email is not
|
|
238
|
+
* deleted without it.
|
|
239
|
+
*/
|
|
240
|
+
force?: boolean;
|
|
241
|
+
}
|
|
184
242
|
/** The request of DeletePreference. */
|
|
185
243
|
export interface DeletePreferenceRequest {
|
|
186
244
|
/** The name of the preference to delete. */
|
|
@@ -205,24 +263,24 @@ export interface DeleteRecipientRequest {
|
|
|
205
263
|
/** Also delete the recipient's preferences and inbox items. */
|
|
206
264
|
force?: boolean;
|
|
207
265
|
}
|
|
208
|
-
/** The request of
|
|
209
|
-
export interface
|
|
210
|
-
/** The name of the
|
|
266
|
+
/** The request of DeleteRoute. */
|
|
267
|
+
export interface DeleteRouteRequest {
|
|
268
|
+
/** The name of the route to delete. */
|
|
211
269
|
name: string;
|
|
212
270
|
/** Delete only if the current etag matches. */
|
|
213
271
|
etag?: string;
|
|
214
|
-
/** Succeed when the
|
|
272
|
+
/** Succeed when the route does not exist. */
|
|
215
273
|
allowMissing?: boolean;
|
|
216
274
|
/** Validate without deleting anything. */
|
|
217
275
|
validateOnly?: boolean;
|
|
218
276
|
}
|
|
219
|
-
/** The request of
|
|
220
|
-
export interface
|
|
221
|
-
/** The name of the
|
|
277
|
+
/** The request of DeleteSender. */
|
|
278
|
+
export interface DeleteSenderRequest {
|
|
279
|
+
/** The name of the sender to delete. */
|
|
222
280
|
name: string;
|
|
223
281
|
/** Delete only if the current etag matches. */
|
|
224
282
|
etag?: string;
|
|
225
|
-
/** Succeed when the
|
|
283
|
+
/** Succeed when the sender does not exist. */
|
|
226
284
|
allowMissing?: boolean;
|
|
227
285
|
/** Validate without deleting anything. */
|
|
228
286
|
validateOnly?: boolean;
|
|
@@ -249,7 +307,7 @@ export interface DeleteTemplateRequest {
|
|
|
249
307
|
/** Validate without deleting anything. */
|
|
250
308
|
validateOnly?: boolean;
|
|
251
309
|
}
|
|
252
|
-
/** A DNS record
|
|
310
|
+
/** A DNS record an Email Domain needs. */
|
|
253
311
|
export interface DnsRecord {
|
|
254
312
|
/** The record type: `TXT`, `CNAME`, or `MX`. */
|
|
255
313
|
readonly recordType?: string;
|
|
@@ -259,10 +317,12 @@ export interface DnsRecord {
|
|
|
259
317
|
readonly value?: string;
|
|
260
318
|
/** Whether the published value matches. */
|
|
261
319
|
readonly verified?: boolean;
|
|
320
|
+
/** The MX preference; zero for other record types. */
|
|
321
|
+
readonly priority?: number;
|
|
262
322
|
}
|
|
263
323
|
/** Email content; bodies are Mustache templates. */
|
|
264
324
|
export interface EmailContent {
|
|
265
|
-
/** The From address; its domain is a verified
|
|
325
|
+
/** The From address; its domain is a verified Email Domain. */
|
|
266
326
|
senderAddress?: string;
|
|
267
327
|
/** The subject. */
|
|
268
328
|
subject?: string;
|
|
@@ -270,17 +330,107 @@ export interface EmailContent {
|
|
|
270
330
|
htmlBody?: string;
|
|
271
331
|
/** The plain-text body. */
|
|
272
332
|
textBody?: string;
|
|
333
|
+
/** The From display name, for example the app's name. */
|
|
334
|
+
senderName?: string;
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* An Email Domain is an email domain Notify sends from and receives for. It
|
|
338
|
+
* sends only after its DKIM and SPF records verify; every email is DKIM-signed
|
|
339
|
+
* with the domain's non-exportable key from Sylphx Keys, rotated with overlap. It
|
|
340
|
+
* receives only after every MX record of the domain points at the platform.
|
|
341
|
+
* No key material is ever returned.
|
|
342
|
+
*/
|
|
343
|
+
export interface EmailDomain {
|
|
344
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/mail_domains/{mail_domain}`. */
|
|
345
|
+
name?: string;
|
|
346
|
+
/** `edm_<cell><ulid>`; never reused. */
|
|
347
|
+
readonly uid?: string;
|
|
348
|
+
/** Resource metadata. */
|
|
349
|
+
meta?: common.ResourceMeta;
|
|
350
|
+
/** Desired state. */
|
|
351
|
+
spec?: EmailDomainSpec;
|
|
352
|
+
/** Observed state. */
|
|
353
|
+
readonly status?: EmailDomainStatus;
|
|
354
|
+
}
|
|
355
|
+
/** The receiving half of an Email Domain. */
|
|
356
|
+
export interface EmailDomainReceiving {
|
|
357
|
+
/** Receive mail for the domain; needs every MX record at the platform. */
|
|
358
|
+
enabled?: boolean;
|
|
359
|
+
/** How the domain's mail reaches the platform; `ALL` when unset. */
|
|
360
|
+
mode?: EmailDomainReceivingMode;
|
|
361
|
+
}
|
|
362
|
+
/** The sending half of an Email Domain. */
|
|
363
|
+
export interface EmailDomainSending {
|
|
364
|
+
/** Send from the domain. Default true. */
|
|
365
|
+
enabled?: boolean;
|
|
366
|
+
}
|
|
367
|
+
/** EmailDomainSpec is the caller-writable state of an EmailDomain. */
|
|
368
|
+
export interface EmailDomainSpec {
|
|
369
|
+
/** The domain, for example `mail.example.com`. */
|
|
370
|
+
domain?: string;
|
|
371
|
+
/** The return-path (bounce) subdomain label; default `bounces`. */
|
|
372
|
+
returnPathLabel?: string;
|
|
373
|
+
/** Sending; the DKIM key and SPF include. Unset sends, as before. */
|
|
374
|
+
sending?: EmailDomainSending;
|
|
375
|
+
/** Receiving; the platform accepts mail for the domain. */
|
|
376
|
+
receiving?: EmailDomainReceiving;
|
|
377
|
+
}
|
|
378
|
+
/** EmailDomainStatus is the observed state of an EmailDomain. */
|
|
379
|
+
export interface EmailDomainStatus {
|
|
380
|
+
/** The generation this status was computed from. */
|
|
381
|
+
readonly observedGeneration?: string;
|
|
382
|
+
/** Ready, Reconciling, Stalled. */
|
|
383
|
+
readonly conditions?: common.Condition[];
|
|
384
|
+
/** Whether every required record verified; only a verified domain sends. */
|
|
385
|
+
readonly verified?: boolean;
|
|
386
|
+
/** When the records last verified. */
|
|
387
|
+
readonly verifyTime?: string;
|
|
388
|
+
/** The records to publish: DKIM, SPF, return path, DMARC. */
|
|
389
|
+
readonly dnsRecords?: DnsRecord[];
|
|
390
|
+
/** The DKIM selector in use. */
|
|
391
|
+
readonly dkimSelector?: string;
|
|
392
|
+
/** Whether the platform receives mail for the domain. */
|
|
393
|
+
readonly receivingState?: EmailDomainReceivingState;
|
|
394
|
+
/** When the MX records last verified. */
|
|
395
|
+
readonly receivingVerifyTime?: string;
|
|
396
|
+
}
|
|
397
|
+
/** The request of EraseMailboxAddress. */
|
|
398
|
+
export interface EraseMailboxAddressRequest {
|
|
399
|
+
/** The name of the mailbox. */
|
|
400
|
+
name: string;
|
|
401
|
+
/** The email address whose data is removed. */
|
|
402
|
+
address: string;
|
|
403
|
+
}
|
|
404
|
+
/** The response of EraseMailboxAddress. */
|
|
405
|
+
export interface EraseMailboxAddressResponse {
|
|
406
|
+
/** How many inbound emails were scrubbed. */
|
|
407
|
+
erasedCount?: string;
|
|
273
408
|
}
|
|
274
409
|
/** The request of GetBroadcast. */
|
|
275
410
|
export interface GetBroadcastRequest {
|
|
276
411
|
/** The name of the broadcast to get. */
|
|
277
412
|
name: string;
|
|
278
413
|
}
|
|
414
|
+
/** The request of GetEmailDomain. */
|
|
415
|
+
export interface GetEmailDomainRequest {
|
|
416
|
+
/** The name of the email domain to get. */
|
|
417
|
+
name: string;
|
|
418
|
+
}
|
|
419
|
+
/** The request of GetInboundEmail. */
|
|
420
|
+
export interface GetInboundEmailRequest {
|
|
421
|
+
/** The name of the inbound email to get. */
|
|
422
|
+
name: string;
|
|
423
|
+
}
|
|
279
424
|
/** The request of GetInboxItem. */
|
|
280
425
|
export interface GetInboxItemRequest {
|
|
281
426
|
/** The name of the inbox item to get. */
|
|
282
427
|
name: string;
|
|
283
428
|
}
|
|
429
|
+
/** The request of GetMailbox. */
|
|
430
|
+
export interface GetMailboxRequest {
|
|
431
|
+
/** The name of the mailbox to get. */
|
|
432
|
+
name: string;
|
|
433
|
+
}
|
|
284
434
|
/** The request of GetMessage. */
|
|
285
435
|
export interface GetMessageRequest {
|
|
286
436
|
/** The name of the message to get. */
|
|
@@ -296,16 +446,16 @@ export interface GetRecipientRequest {
|
|
|
296
446
|
/** The name of the recipient to get. */
|
|
297
447
|
name: string;
|
|
298
448
|
}
|
|
449
|
+
/** The request of GetRoute. */
|
|
450
|
+
export interface GetRouteRequest {
|
|
451
|
+
/** The name of the route to get. */
|
|
452
|
+
name: string;
|
|
453
|
+
}
|
|
299
454
|
/** The request of GetSender. */
|
|
300
455
|
export interface GetSenderRequest {
|
|
301
456
|
/** The name of the sender to get. */
|
|
302
457
|
name: string;
|
|
303
458
|
}
|
|
304
|
-
/** The request of GetSendingDomain. */
|
|
305
|
-
export interface GetSendingDomainRequest {
|
|
306
|
-
/** The name of the sending domain to get. */
|
|
307
|
-
name: string;
|
|
308
|
-
}
|
|
309
459
|
/** The request of GetSuppression. */
|
|
310
460
|
export interface GetSuppressionRequest {
|
|
311
461
|
/** The name of the suppression to get. */
|
|
@@ -316,6 +466,64 @@ export interface GetTemplateRequest {
|
|
|
316
466
|
/** The name of the template to get. */
|
|
317
467
|
name: string;
|
|
318
468
|
}
|
|
469
|
+
/**
|
|
470
|
+
* An Inbound Email is one mail a mailbox holds, received or sent, kept as
|
|
471
|
+
* evidence: parsed once, never changed except by erasure. Consumers read the
|
|
472
|
+
* feed in `sequence` order.
|
|
473
|
+
*/
|
|
474
|
+
export interface InboundEmail {
|
|
475
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/mailboxes/{mailbox}/inbound_emails/{inbound_email}`. */
|
|
476
|
+
name?: string;
|
|
477
|
+
/** `ieml_<cell><ulid>`; never reused. */
|
|
478
|
+
readonly uid?: string;
|
|
479
|
+
/** Resource metadata. */
|
|
480
|
+
meta?: common.ResourceMeta;
|
|
481
|
+
/**
|
|
482
|
+
* The feed position, increasing within the environment; filter
|
|
483
|
+
* `sequence > N` to resume after the last one handled.
|
|
484
|
+
*/
|
|
485
|
+
readonly sequence?: string;
|
|
486
|
+
/** Received by the mailbox, or found in its Sent folder. */
|
|
487
|
+
readonly direction?: InboundEmailDirection;
|
|
488
|
+
/**
|
|
489
|
+
* The Message-ID without angle brackets; the dedupe key. Mail without one
|
|
490
|
+
* gets `sha256-<hex>@invalid`.
|
|
491
|
+
*/
|
|
492
|
+
readonly messageId?: string;
|
|
493
|
+
/** In-Reply-To: the Message-ID this answers, without angle brackets. */
|
|
494
|
+
readonly parentMessageId?: string;
|
|
495
|
+
/** References, oldest first. */
|
|
496
|
+
readonly references?: string[];
|
|
497
|
+
/** The From address, lower case. */
|
|
498
|
+
readonly senderAddress?: string;
|
|
499
|
+
/** The From display name. */
|
|
500
|
+
readonly senderName?: string;
|
|
501
|
+
/** The To addresses. */
|
|
502
|
+
readonly recipientAddresses?: string[];
|
|
503
|
+
/** Cc addresses. */
|
|
504
|
+
readonly ccAddresses?: string[];
|
|
505
|
+
/** The subject. */
|
|
506
|
+
readonly subject?: string;
|
|
507
|
+
/** The plain-text body. */
|
|
508
|
+
readonly textBody?: string;
|
|
509
|
+
/** The HTML body as received; render it only through a sanitizer. */
|
|
510
|
+
readonly htmlBody?: string;
|
|
511
|
+
/** The Date header, else when the mailbox received it. */
|
|
512
|
+
readonly receiveTime?: string;
|
|
513
|
+
/**
|
|
514
|
+
* Sent by software: Auto-Submitted, Precedence bulk or list, auto-reply
|
|
515
|
+
* headers, or a delivery report.
|
|
516
|
+
*/
|
|
517
|
+
readonly automated?: boolean;
|
|
518
|
+
/** SHA-256 of the raw message, hex. */
|
|
519
|
+
readonly rawSha256?: string;
|
|
520
|
+
/** The raw message size. */
|
|
521
|
+
readonly sizeBytes?: string;
|
|
522
|
+
/** Personal data removed by erasure; the dedupe key stays. */
|
|
523
|
+
readonly erased?: boolean;
|
|
524
|
+
/** The Notify Message that sent it, for mail Notify sent as this mailbox. */
|
|
525
|
+
readonly message?: string;
|
|
526
|
+
}
|
|
319
527
|
/** In-app inbox content. */
|
|
320
528
|
export interface InboxContent {
|
|
321
529
|
/** The title. */
|
|
@@ -367,6 +575,46 @@ export interface ListBroadcastsResponse {
|
|
|
367
575
|
/** The token of the next page; empty on the last page. */
|
|
368
576
|
nextPageToken?: string;
|
|
369
577
|
}
|
|
578
|
+
/** The request of ListEmailDomains. */
|
|
579
|
+
export interface ListEmailDomainsRequest {
|
|
580
|
+
/** The parent to list in. */
|
|
581
|
+
parent: string;
|
|
582
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
583
|
+
pageSize?: number;
|
|
584
|
+
/** `next_page_token` of the previous page. */
|
|
585
|
+
pageToken?: string;
|
|
586
|
+
/** AIP-160 filter over labels and filterable fields. */
|
|
587
|
+
filter?: string;
|
|
588
|
+
/** AIP-132 ordering over filterable fields. */
|
|
589
|
+
orderBy?: string;
|
|
590
|
+
}
|
|
591
|
+
/** The response of ListEmailDomains. */
|
|
592
|
+
export interface ListEmailDomainsResponse {
|
|
593
|
+
/** The page. */
|
|
594
|
+
emailDomains?: EmailDomain[];
|
|
595
|
+
/** The token of the next page; empty on the last page. */
|
|
596
|
+
nextPageToken?: string;
|
|
597
|
+
}
|
|
598
|
+
/** The request of ListInboundEmails. */
|
|
599
|
+
export interface ListInboundEmailsRequest {
|
|
600
|
+
/** The mailbox to list in. */
|
|
601
|
+
parent: string;
|
|
602
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
603
|
+
pageSize?: number;
|
|
604
|
+
/** `next_page_token` of the previous page. */
|
|
605
|
+
pageToken?: string;
|
|
606
|
+
/** AIP-160 filter over labels and filterable fields. */
|
|
607
|
+
filter?: string;
|
|
608
|
+
/** AIP-132 ordering over filterable fields. */
|
|
609
|
+
orderBy?: string;
|
|
610
|
+
}
|
|
611
|
+
/** The response of ListInboundEmails. */
|
|
612
|
+
export interface ListInboundEmailsResponse {
|
|
613
|
+
/** The page. */
|
|
614
|
+
inboundEmails?: InboundEmail[];
|
|
615
|
+
/** The token of the next page; empty on the last page. */
|
|
616
|
+
nextPageToken?: string;
|
|
617
|
+
}
|
|
370
618
|
/** The request of ListInboxItems. */
|
|
371
619
|
export interface ListInboxItemsRequest {
|
|
372
620
|
/** The parent to list in. */
|
|
@@ -387,6 +635,26 @@ export interface ListInboxItemsResponse {
|
|
|
387
635
|
/** The token of the next page; empty on the last page. */
|
|
388
636
|
nextPageToken?: string;
|
|
389
637
|
}
|
|
638
|
+
/** The request of ListMailboxes. */
|
|
639
|
+
export interface ListMailboxesRequest {
|
|
640
|
+
/** The parent to list in. */
|
|
641
|
+
parent: string;
|
|
642
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
643
|
+
pageSize?: number;
|
|
644
|
+
/** `next_page_token` of the previous page. */
|
|
645
|
+
pageToken?: string;
|
|
646
|
+
/** AIP-160 filter over labels and filterable fields. */
|
|
647
|
+
filter?: string;
|
|
648
|
+
/** AIP-132 ordering over filterable fields. */
|
|
649
|
+
orderBy?: string;
|
|
650
|
+
}
|
|
651
|
+
/** The response of ListMailboxes. */
|
|
652
|
+
export interface ListMailboxesResponse {
|
|
653
|
+
/** The page. */
|
|
654
|
+
mailboxes?: Mailbox[];
|
|
655
|
+
/** The token of the next page; empty on the last page. */
|
|
656
|
+
nextPageToken?: string;
|
|
657
|
+
}
|
|
390
658
|
/** The request of ListMessages. */
|
|
391
659
|
export interface ListMessagesRequest {
|
|
392
660
|
/** The parent to list in. */
|
|
@@ -447,9 +715,9 @@ export interface ListRecipientsResponse {
|
|
|
447
715
|
/** The token of the next page; empty on the last page. */
|
|
448
716
|
nextPageToken?: string;
|
|
449
717
|
}
|
|
450
|
-
/** The request of
|
|
451
|
-
export interface
|
|
452
|
-
/** The
|
|
718
|
+
/** The request of ListRoutes. */
|
|
719
|
+
export interface ListRoutesRequest {
|
|
720
|
+
/** The email domain to list in. */
|
|
453
721
|
parent: string;
|
|
454
722
|
/** At most this many; default 50, clamped to 1000. */
|
|
455
723
|
pageSize?: number;
|
|
@@ -460,15 +728,15 @@ export interface ListSendersRequest {
|
|
|
460
728
|
/** AIP-132 ordering over filterable fields. */
|
|
461
729
|
orderBy?: string;
|
|
462
730
|
}
|
|
463
|
-
/** The response of
|
|
464
|
-
export interface
|
|
731
|
+
/** The response of ListRoutes. */
|
|
732
|
+
export interface ListRoutesResponse {
|
|
465
733
|
/** The page. */
|
|
466
|
-
|
|
734
|
+
routes?: Route[];
|
|
467
735
|
/** The token of the next page; empty on the last page. */
|
|
468
736
|
nextPageToken?: string;
|
|
469
737
|
}
|
|
470
|
-
/** The request of
|
|
471
|
-
export interface
|
|
738
|
+
/** The request of ListSenders. */
|
|
739
|
+
export interface ListSendersRequest {
|
|
472
740
|
/** The parent to list in. */
|
|
473
741
|
parent: string;
|
|
474
742
|
/** At most this many; default 50, clamped to 1000. */
|
|
@@ -480,10 +748,10 @@ export interface ListSendingDomainsRequest {
|
|
|
480
748
|
/** AIP-132 ordering over filterable fields. */
|
|
481
749
|
orderBy?: string;
|
|
482
750
|
}
|
|
483
|
-
/** The response of
|
|
484
|
-
export interface
|
|
751
|
+
/** The response of ListSenders. */
|
|
752
|
+
export interface ListSendersResponse {
|
|
485
753
|
/** The page. */
|
|
486
|
-
|
|
754
|
+
senders?: Sender[];
|
|
487
755
|
/** The token of the next page; empty on the last page. */
|
|
488
756
|
nextPageToken?: string;
|
|
489
757
|
}
|
|
@@ -527,6 +795,74 @@ export interface ListTemplatesResponse {
|
|
|
527
795
|
/** The token of the next page; empty on the last page. */
|
|
528
796
|
nextPageToken?: string;
|
|
529
797
|
}
|
|
798
|
+
/** One mail server of a connected mailbox. */
|
|
799
|
+
export interface MailServer {
|
|
800
|
+
/** The host name. */
|
|
801
|
+
host?: string;
|
|
802
|
+
/** The port; IMAP 993 and SMTP 465 when unset. */
|
|
803
|
+
port?: number;
|
|
804
|
+
/** The login user; the mailbox address when unset. */
|
|
805
|
+
username?: string;
|
|
806
|
+
/** How the connection is secured. */
|
|
807
|
+
security?: MailServerSecurity;
|
|
808
|
+
}
|
|
809
|
+
/**
|
|
810
|
+
* A Mailbox is an email address Notify reads from and sends as. A `CONNECTED`
|
|
811
|
+
* mailbox is an existing mailbox at any provider, reached over IMAP (read
|
|
812
|
+
* only) and SMTP with its own login; a `HOSTED` mailbox receives at an
|
|
813
|
+
* address whose MX is Sylphx. Mail it receives becomes Inbound Email records.
|
|
814
|
+
*/
|
|
815
|
+
export interface Mailbox {
|
|
816
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/mailboxes/{mailbox}`. */
|
|
817
|
+
name?: string;
|
|
818
|
+
/** `mbx_<cell><ulid>`; never reused. */
|
|
819
|
+
readonly uid?: string;
|
|
820
|
+
/** Resource metadata. */
|
|
821
|
+
meta?: common.ResourceMeta;
|
|
822
|
+
/** Desired state. */
|
|
823
|
+
spec?: MailboxSpec;
|
|
824
|
+
/** Observed state. */
|
|
825
|
+
readonly status?: MailboxStatus;
|
|
826
|
+
}
|
|
827
|
+
/** MailboxSpec is the caller-writable state of a Mailbox. */
|
|
828
|
+
export interface MailboxSpec {
|
|
829
|
+
/** Connected or hosted. */
|
|
830
|
+
kind?: MailboxKind;
|
|
831
|
+
/** The address, for example `support@example.com`. */
|
|
832
|
+
address?: string;
|
|
833
|
+
/** The From display name of mail sent as this mailbox. */
|
|
834
|
+
displayName?: string;
|
|
835
|
+
/** IMAP, for a connected mailbox. */
|
|
836
|
+
imap?: MailServer;
|
|
837
|
+
/** SMTP submission, for a connected mailbox. */
|
|
838
|
+
smtp?: MailServer;
|
|
839
|
+
/** The login password of both servers; write-only, sealed at rest. */
|
|
840
|
+
password?: string;
|
|
841
|
+
/**
|
|
842
|
+
* Save a copy of mail sent as this mailbox to its Sent folder (IMAP
|
|
843
|
+
* APPEND); off when the provider saves one itself.
|
|
844
|
+
*/
|
|
845
|
+
appendSent?: boolean;
|
|
846
|
+
/** Read mail received on or after this day on the first poll. */
|
|
847
|
+
backfillStartTime?: string;
|
|
848
|
+
/** Poll and send; a disabled mailbox keeps its records. */
|
|
849
|
+
enabled?: boolean;
|
|
850
|
+
}
|
|
851
|
+
/** MailboxStatus is the observed state of a Mailbox. */
|
|
852
|
+
export interface MailboxStatus {
|
|
853
|
+
/** The generation this status was computed from. */
|
|
854
|
+
readonly observedGeneration?: string;
|
|
855
|
+
/** Ready, Reconciling, Stalled. */
|
|
856
|
+
readonly conditions?: common.Condition[];
|
|
857
|
+
/** Whether a password is stored. */
|
|
858
|
+
readonly passwordSet?: boolean;
|
|
859
|
+
/** When the mailbox was last read. */
|
|
860
|
+
readonly lastPollTime?: string;
|
|
861
|
+
/** The last poll's error; empty after a clean poll. */
|
|
862
|
+
readonly lastError?: string;
|
|
863
|
+
/** The Sent folder found on the server. */
|
|
864
|
+
readonly sentFolder?: string;
|
|
865
|
+
}
|
|
530
866
|
/** The request of MarkInboxItemRead. */
|
|
531
867
|
export interface MarkInboxItemReadRequest {
|
|
532
868
|
/** The name of the inbox item. */
|
|
@@ -554,7 +890,7 @@ export interface Message {
|
|
|
554
890
|
recipient?: string;
|
|
555
891
|
/** The topic preferences are checked against, for example `billing`. */
|
|
556
892
|
topic?: string;
|
|
557
|
-
/** The template to render. */
|
|
893
|
+
/** The template to render; required unless `mailbox` and `content` are set. */
|
|
558
894
|
template?: string;
|
|
559
895
|
/** The template version rendered; pinned at admission. */
|
|
560
896
|
readonly templateVersion?: string;
|
|
@@ -573,6 +909,54 @@ export interface Message {
|
|
|
573
909
|
readonly state?: MessageState;
|
|
574
910
|
/** Per-channel deliveries and their receipts. */
|
|
575
911
|
readonly deliveries?: ChannelDelivery[];
|
|
912
|
+
/**
|
|
913
|
+
* Deliver no later than this; a delivery still open then fails with
|
|
914
|
+
* `expired`. Unset retries for up to a day. The message record is kept.
|
|
915
|
+
*/
|
|
916
|
+
deliveryDeadlineTime?: string;
|
|
917
|
+
/**
|
|
918
|
+
* Why the message is in its state, for example `recipient_interval` for
|
|
919
|
+
* `RATE_LIMITED` or `suppressed` for `SUPPRESSED`.
|
|
920
|
+
*/
|
|
921
|
+
readonly stateReason?: string;
|
|
922
|
+
/** A test recipient's rendered content; empty for every other recipient. */
|
|
923
|
+
readonly capture?: MessageCapture;
|
|
924
|
+
/**
|
|
925
|
+
* Send as this mailbox (its address, display name and, for a connected
|
|
926
|
+
* mailbox, its own SMTP) instead of a verified Email Domain.
|
|
927
|
+
*/
|
|
928
|
+
mailbox?: string;
|
|
929
|
+
/**
|
|
930
|
+
* Inline content, only with `mailbox`: the subject and bodies as written,
|
|
931
|
+
* not rendered from a template.
|
|
932
|
+
*/
|
|
933
|
+
content?: MessageContent;
|
|
934
|
+
/** In-Reply-To: the Message-ID this answers, without angle brackets. */
|
|
935
|
+
parentMessageId?: string;
|
|
936
|
+
/** The thread's Message-IDs, oldest first, without angle brackets. */
|
|
937
|
+
references?: string[];
|
|
938
|
+
/** The Message-ID Notify gave the email, without angle brackets. */
|
|
939
|
+
readonly emailMessageId?: string;
|
|
940
|
+
}
|
|
941
|
+
/** What a message to a test recipient rendered to. */
|
|
942
|
+
export interface MessageCapture {
|
|
943
|
+
/** The email subject. */
|
|
944
|
+
readonly subject?: string;
|
|
945
|
+
/** The plain-text body. */
|
|
946
|
+
readonly textBody?: string;
|
|
947
|
+
/** The HTML body. */
|
|
948
|
+
readonly htmlBody?: string;
|
|
949
|
+
/** Every link in the bodies, in order. */
|
|
950
|
+
readonly links?: string[];
|
|
951
|
+
}
|
|
952
|
+
/** Inline content of a Message sent as a mailbox. */
|
|
953
|
+
export interface MessageContent {
|
|
954
|
+
/** The subject. */
|
|
955
|
+
subject?: string;
|
|
956
|
+
/** The plain-text body. */
|
|
957
|
+
textBody?: string;
|
|
958
|
+
/** The HTML body. */
|
|
959
|
+
htmlBody?: string;
|
|
576
960
|
}
|
|
577
961
|
/**
|
|
578
962
|
* A Preference is a recipient's choice for one topic: which channels may carry
|
|
@@ -618,7 +1002,7 @@ export interface PushDevice {
|
|
|
618
1002
|
export interface PushSender {
|
|
619
1003
|
/** The push platform. */
|
|
620
1004
|
platform?: PushPlatform;
|
|
621
|
-
/** The
|
|
1005
|
+
/** The Connection holding the APNs, FCM, or VAPID credentials. */
|
|
622
1006
|
connection?: string;
|
|
623
1007
|
/** The bundle id, package name, or web origin. */
|
|
624
1008
|
appKey?: string;
|
|
@@ -647,6 +1031,72 @@ export interface Recipient {
|
|
|
647
1031
|
languageCode?: string;
|
|
648
1032
|
/** IANA time zone for quiet hours and digests. */
|
|
649
1033
|
timeZone?: string;
|
|
1034
|
+
/**
|
|
1035
|
+
* A test recipient: its messages are rendered and captured on the Message,
|
|
1036
|
+
* never delivered. An email address whose local part carries
|
|
1037
|
+
* `+sylphx_test` is a test address whatever this says.
|
|
1038
|
+
*/
|
|
1039
|
+
test?: boolean;
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* A Route sends the mail a receiving Email Domain accepts for one address, a
|
|
1043
|
+
* pattern of addresses, or every other address to actions: deliver to
|
|
1044
|
+
* mailboxes, forward, or reject. Every accepted message also publishes
|
|
1045
|
+
* `sylphx.notify.inbound_email.received`.
|
|
1046
|
+
*/
|
|
1047
|
+
export interface Route {
|
|
1048
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/mail_domains/{mail_domain}/mail_routes/{mail_route}`. */
|
|
1049
|
+
name?: string;
|
|
1050
|
+
/** `rte_<cell><ulid>`; never reused. */
|
|
1051
|
+
readonly uid?: string;
|
|
1052
|
+
/** Resource metadata. */
|
|
1053
|
+
meta?: common.ResourceMeta;
|
|
1054
|
+
/** Desired state. */
|
|
1055
|
+
spec?: RouteSpec;
|
|
1056
|
+
/** Observed state. */
|
|
1057
|
+
readonly status?: RouteStatus;
|
|
1058
|
+
}
|
|
1059
|
+
/** One thing a Route does with mail; exactly one. */
|
|
1060
|
+
export interface RouteAction {
|
|
1061
|
+
/** Deliver to a mailbox of the environment. */
|
|
1062
|
+
mailbox?: string;
|
|
1063
|
+
/** Forward to an address. */
|
|
1064
|
+
forward?: string;
|
|
1065
|
+
/** Refuse at the recipient step with this message; stands alone. */
|
|
1066
|
+
reject?: string;
|
|
1067
|
+
}
|
|
1068
|
+
/** Which recipients a Route matches; exactly one. */
|
|
1069
|
+
export interface RouteMatch {
|
|
1070
|
+
/**
|
|
1071
|
+
* A local part, for example `support`. A local part with a `+tag` also
|
|
1072
|
+
* matches its route.
|
|
1073
|
+
*/
|
|
1074
|
+
address?: string;
|
|
1075
|
+
/** A glob on the local part, for example `billing-*`. */
|
|
1076
|
+
pattern?: string;
|
|
1077
|
+
/** Every local part no other route matches. */
|
|
1078
|
+
catchAll?: boolean;
|
|
1079
|
+
}
|
|
1080
|
+
/** RouteSpec is the caller-writable state of a Route. */
|
|
1081
|
+
export interface RouteSpec {
|
|
1082
|
+
/** Which recipients the route matches. */
|
|
1083
|
+
match?: RouteMatch;
|
|
1084
|
+
/**
|
|
1085
|
+
* What happens to the mail: one or more mailbox and forward actions, or one
|
|
1086
|
+
* reject.
|
|
1087
|
+
*/
|
|
1088
|
+
actions?: RouteAction[];
|
|
1089
|
+
/** What happens to mail the spam filter judges spam; `DELIVER` when unset. */
|
|
1090
|
+
spam?: RouteSpamPolicy;
|
|
1091
|
+
/** A disabled route matches nothing. */
|
|
1092
|
+
enabled?: boolean;
|
|
1093
|
+
}
|
|
1094
|
+
/** RouteStatus is the observed state of a Route. */
|
|
1095
|
+
export interface RouteStatus {
|
|
1096
|
+
/** The generation this status was computed from. */
|
|
1097
|
+
readonly observedGeneration?: string;
|
|
1098
|
+
/** Ready, Reconciling, Stalled. */
|
|
1099
|
+
readonly conditions?: common.Condition[];
|
|
650
1100
|
}
|
|
651
1101
|
/** The request of SendBroadcast. */
|
|
652
1102
|
export interface SendBroadcastRequest {
|
|
@@ -657,10 +1107,20 @@ export interface SendBroadcastRequest {
|
|
|
657
1107
|
/** Validate without writing anything. */
|
|
658
1108
|
validateOnly?: boolean;
|
|
659
1109
|
}
|
|
1110
|
+
/**
|
|
1111
|
+
* A per-recipient send limit. A message over it is recorded with state
|
|
1112
|
+
* `RATE_LIMITED` and its create answers 429 `RATE_LIMITED` with the wait.
|
|
1113
|
+
*/
|
|
1114
|
+
export interface SendLimit {
|
|
1115
|
+
/** At least this long between two messages to one recipient. */
|
|
1116
|
+
minInterval?: string;
|
|
1117
|
+
/** At most this many messages to one recipient in any hour; 0 is no limit. */
|
|
1118
|
+
maxPerHour?: number;
|
|
1119
|
+
}
|
|
660
1120
|
/**
|
|
661
1121
|
* A Sender is a verified origin for SMS or push: a registered number or sender
|
|
662
|
-
* id, or a push app whose APNs/FCM credentials are a
|
|
663
|
-
* through the
|
|
1122
|
+
* id, or a push app whose APNs/FCM credentials are a Connection reached
|
|
1123
|
+
* through the credential service. It is used only once verified.
|
|
664
1124
|
*/
|
|
665
1125
|
export interface Sender {
|
|
666
1126
|
/** `orgs/{org}/projects/{project}/envs/{env}/senders/{sender}`. */
|
|
@@ -692,46 +1152,6 @@ export interface SenderStatus {
|
|
|
692
1152
|
/** Why the sender is not verified, when it is not. */
|
|
693
1153
|
readonly verificationNote?: string;
|
|
694
1154
|
}
|
|
695
|
-
/**
|
|
696
|
-
* A Sending Domain is an email domain Notify sends from. It sends only after
|
|
697
|
-
* its DNS records verify; every email is DKIM-signed with the domain's
|
|
698
|
-
* non-exportable Kernel Key, rotated with overlap. No key material is ever
|
|
699
|
-
* returned.
|
|
700
|
-
*/
|
|
701
|
-
export interface SendingDomain {
|
|
702
|
-
/** `orgs/{org}/projects/{project}/envs/{env}/sending_domains/{sending_domain}`. */
|
|
703
|
-
name?: string;
|
|
704
|
-
/** `sdm_<cell><ulid>`; never reused. */
|
|
705
|
-
readonly uid?: string;
|
|
706
|
-
/** Resource metadata. */
|
|
707
|
-
meta?: common.ResourceMeta;
|
|
708
|
-
/** Desired state. */
|
|
709
|
-
spec?: SendingDomainSpec;
|
|
710
|
-
/** Observed state. */
|
|
711
|
-
readonly status?: SendingDomainStatus;
|
|
712
|
-
}
|
|
713
|
-
/** SendingDomainSpec is the caller-writable state of a SendingDomain. */
|
|
714
|
-
export interface SendingDomainSpec {
|
|
715
|
-
/** The domain, for example `mail.example.com`. */
|
|
716
|
-
domain?: string;
|
|
717
|
-
/** The return-path (bounce) subdomain label; default `bounces`. */
|
|
718
|
-
returnPathLabel?: string;
|
|
719
|
-
}
|
|
720
|
-
/** SendingDomainStatus is the observed state of a SendingDomain. */
|
|
721
|
-
export interface SendingDomainStatus {
|
|
722
|
-
/** The generation this status was computed from. */
|
|
723
|
-
readonly observedGeneration?: string;
|
|
724
|
-
/** Ready, Reconciling, Stalled. */
|
|
725
|
-
readonly conditions?: common.Condition[];
|
|
726
|
-
/** Whether every required record verified; only a verified domain sends. */
|
|
727
|
-
readonly verified?: boolean;
|
|
728
|
-
/** When the records last verified. */
|
|
729
|
-
readonly verifyTime?: string;
|
|
730
|
-
/** The records to publish: DKIM, SPF, return path, DMARC. */
|
|
731
|
-
readonly dnsRecords?: DnsRecord[];
|
|
732
|
-
/** The DKIM selector in use. */
|
|
733
|
-
readonly dkimSelector?: string;
|
|
734
|
-
}
|
|
735
1155
|
/** SMS content. */
|
|
736
1156
|
export interface SmsContent {
|
|
737
1157
|
/** The SMS Sender. */
|
|
@@ -797,6 +1217,11 @@ export interface TemplateSpec {
|
|
|
797
1217
|
push?: PushContent;
|
|
798
1218
|
/** In-app inbox content. */
|
|
799
1219
|
inbox?: InboxContent;
|
|
1220
|
+
/**
|
|
1221
|
+
* A per-recipient send limit on messages rendered from this template;
|
|
1222
|
+
* unset admits every message.
|
|
1223
|
+
*/
|
|
1224
|
+
sendLimit?: SendLimit;
|
|
800
1225
|
}
|
|
801
1226
|
/** TemplateStatus is the observed state of a Template. */
|
|
802
1227
|
export interface TemplateStatus {
|
|
@@ -818,6 +1243,28 @@ export interface UpdateBroadcastRequest {
|
|
|
818
1243
|
/** Validate and return the result without writing anything. */
|
|
819
1244
|
validateOnly?: boolean;
|
|
820
1245
|
}
|
|
1246
|
+
/** The request of UpdateEmailDomain. */
|
|
1247
|
+
export interface UpdateEmailDomainRequest {
|
|
1248
|
+
/** The email domain to update; `name` identifies it. */
|
|
1249
|
+
emailDomain: EmailDomain;
|
|
1250
|
+
/** The fields to write; unset writes every populated field. */
|
|
1251
|
+
updateMask?: string;
|
|
1252
|
+
/** Create the email domain when it does not exist (declarative upsert). */
|
|
1253
|
+
allowMissing?: boolean;
|
|
1254
|
+
/** Validate and return the result without writing anything. */
|
|
1255
|
+
validateOnly?: boolean;
|
|
1256
|
+
}
|
|
1257
|
+
/** The request of UpdateMailbox. */
|
|
1258
|
+
export interface UpdateMailboxRequest {
|
|
1259
|
+
/** The mailbox to update; `name` identifies it. */
|
|
1260
|
+
mailbox: Mailbox;
|
|
1261
|
+
/** The fields to write; unset writes every populated field. */
|
|
1262
|
+
updateMask?: string;
|
|
1263
|
+
/** Create the mailbox when it does not exist (declarative upsert). */
|
|
1264
|
+
allowMissing?: boolean;
|
|
1265
|
+
/** Validate and return the result without writing anything. */
|
|
1266
|
+
validateOnly?: boolean;
|
|
1267
|
+
}
|
|
821
1268
|
/** The request of UpdatePreference. */
|
|
822
1269
|
export interface UpdatePreferenceRequest {
|
|
823
1270
|
/** The preference to update; `name` identifies it. */
|
|
@@ -840,24 +1287,24 @@ export interface UpdateRecipientRequest {
|
|
|
840
1287
|
/** Validate and return the result without writing anything. */
|
|
841
1288
|
validateOnly?: boolean;
|
|
842
1289
|
}
|
|
843
|
-
/** The request of
|
|
844
|
-
export interface
|
|
845
|
-
/** The
|
|
846
|
-
|
|
1290
|
+
/** The request of UpdateRoute. */
|
|
1291
|
+
export interface UpdateRouteRequest {
|
|
1292
|
+
/** The route to update; `name` identifies it. */
|
|
1293
|
+
route: Route;
|
|
847
1294
|
/** The fields to write; unset writes every populated field. */
|
|
848
1295
|
updateMask?: string;
|
|
849
|
-
/** Create the
|
|
1296
|
+
/** Create the route when it does not exist (declarative upsert). */
|
|
850
1297
|
allowMissing?: boolean;
|
|
851
1298
|
/** Validate and return the result without writing anything. */
|
|
852
1299
|
validateOnly?: boolean;
|
|
853
1300
|
}
|
|
854
|
-
/** The request of
|
|
855
|
-
export interface
|
|
856
|
-
/** The
|
|
857
|
-
|
|
1301
|
+
/** The request of UpdateSender. */
|
|
1302
|
+
export interface UpdateSenderRequest {
|
|
1303
|
+
/** The sender to update; `name` identifies it. */
|
|
1304
|
+
sender: Sender;
|
|
858
1305
|
/** The fields to write; unset writes every populated field. */
|
|
859
1306
|
updateMask?: string;
|
|
860
|
-
/** Create the
|
|
1307
|
+
/** Create the sender when it does not exist (declarative upsert). */
|
|
861
1308
|
allowMissing?: boolean;
|
|
862
1309
|
/** Validate and return the result without writing anything. */
|
|
863
1310
|
validateOnly?: boolean;
|
|
@@ -873,41 +1320,54 @@ export interface UpdateTemplateRequest {
|
|
|
873
1320
|
/** Validate and return the result without writing anything. */
|
|
874
1321
|
validateOnly?: boolean;
|
|
875
1322
|
}
|
|
1323
|
+
/** The request of VerifyEmailDomain. */
|
|
1324
|
+
export interface VerifyEmailDomainRequest {
|
|
1325
|
+
/** The name of the email domain. */
|
|
1326
|
+
name: string;
|
|
1327
|
+
}
|
|
876
1328
|
/** The request of VerifySender. */
|
|
877
1329
|
export interface VerifySenderRequest {
|
|
878
1330
|
/** The name of the sender. */
|
|
879
1331
|
name: string;
|
|
880
1332
|
}
|
|
881
|
-
/** The request of VerifySendingDomain. */
|
|
882
|
-
export interface VerifySendingDomainRequest {
|
|
883
|
-
/** The name of the sending domain. */
|
|
884
|
-
name: string;
|
|
885
|
-
}
|
|
886
1333
|
/** The progress of a Broadcast. */
|
|
887
1334
|
export type BroadcastState = 'draft' | 'scheduled' | 'sending' | 'sent' | 'cancelled' | (string & {});
|
|
888
1335
|
/** A Notify channel. */
|
|
889
1336
|
export type Channel = 'email' | 'sms' | 'push' | 'inbox' | (string & {});
|
|
890
1337
|
/** The state of one channel delivery. */
|
|
891
|
-
export type ChannelDeliveryState = 'pending' | 'sent' | 'delivered' | 'bounced' | 'failed' | 'skipped' | (string & {});
|
|
1338
|
+
export type ChannelDeliveryState = 'pending' | 'sent' | 'delivered' | 'bounced' | 'failed' | 'skipped' | 'captured' | 'suppressed' | (string & {});
|
|
1339
|
+
/** How an Email Domain's mail reaches the platform. */
|
|
1340
|
+
export type EmailDomainReceivingMode = 'all' | (string & {});
|
|
1341
|
+
/** Whether the platform receives mail for an Email Domain. */
|
|
1342
|
+
export type EmailDomainReceivingState = 'disabled' | 'pending' | 'verified' | 'degraded' | (string & {});
|
|
1343
|
+
/** Whether an Inbound Email came in or went out. */
|
|
1344
|
+
export type InboundEmailDirection = 'received' | 'sent' | (string & {});
|
|
892
1345
|
/** The state of an inbox item. */
|
|
893
1346
|
export type InboxItemState = 'unread' | 'read' | 'archived' | (string & {});
|
|
1347
|
+
/** How a mail server connection is secured. */
|
|
1348
|
+
export type MailServerSecurity = 'tls' | 'starttls' | (string & {});
|
|
1349
|
+
/** How a Mailbox receives mail. */
|
|
1350
|
+
export type MailboxKind = 'connected' | 'hosted' | (string & {});
|
|
894
1351
|
/** The state of a Message. */
|
|
895
|
-
export type MessageState = 'accepted' | 'suppressed' | 'delivering' | 'delivered' | 'failed' | 'cancelled' | (string & {});
|
|
1352
|
+
export type MessageState = 'accepted' | 'suppressed' | 'delivering' | 'delivered' | 'failed' | 'cancelled' | 'rate_limited' | (string & {});
|
|
896
1353
|
/** A push platform. */
|
|
897
1354
|
export type PushPlatform = 'apns' | 'fcm' | 'web_push' | (string & {});
|
|
1355
|
+
/** What happens to mail judged spam on a Route. */
|
|
1356
|
+
export type RouteSpamPolicy = 'deliver' | 'drop' | 'reject' | (string & {});
|
|
898
1357
|
/** Why an address is suppressed. */
|
|
899
1358
|
export type SuppressionReason = 'bounce' | 'complaint' | 'carrier_opt_out' | 'unsubscribe' | 'uninstalled' | 'manual' | (string & {});
|
|
900
1359
|
/**
|
|
901
1360
|
* NotifyService is Sylphx Notify: messages to people over email, SMS, push,
|
|
902
|
-
* and in-app inbox, with preferences, suppression, templates, and broadcasts
|
|
903
|
-
*
|
|
904
|
-
* ordinary customer.
|
|
1361
|
+
* and in-app inbox, with preferences, suppression, templates, and broadcasts.
|
|
1362
|
+
* Notify is built on Sylphx Events as an ordinary customer.
|
|
905
1363
|
*
|
|
906
1364
|
* Namespace of Sylphx Notify on `Sylphx`.
|
|
907
1365
|
*/
|
|
908
1366
|
export declare class NotifyApi {
|
|
909
|
-
/** The `
|
|
910
|
-
readonly
|
|
1367
|
+
/** The `mail_domains` collection. */
|
|
1368
|
+
readonly mailDomains: MailDomainsCollection;
|
|
1369
|
+
/** The `mail_routes` collection. */
|
|
1370
|
+
readonly mailRoutes: MailRoutesCollection;
|
|
911
1371
|
/** The `senders` collection. */
|
|
912
1372
|
readonly senders: SendersCollection;
|
|
913
1373
|
/** The `recipients` collection. */
|
|
@@ -920,66 +1380,117 @@ export declare class NotifyApi {
|
|
|
920
1380
|
readonly templates: TemplatesCollection;
|
|
921
1381
|
/** The `messages` collection. */
|
|
922
1382
|
readonly messages: MessagesCollection;
|
|
1383
|
+
/** The `mailboxes` collection. */
|
|
1384
|
+
readonly mailboxes: MailboxesCollection;
|
|
1385
|
+
/** The `inbound_emails` collection. */
|
|
1386
|
+
readonly inboundEmails: InboundEmailsCollection;
|
|
923
1387
|
/** The `inbox_items` collection. */
|
|
924
1388
|
readonly inboxItems: InboxItemsCollection;
|
|
925
1389
|
/** The `broadcasts` collection. */
|
|
926
1390
|
readonly broadcasts: BroadcastsCollection;
|
|
927
1391
|
constructor(client: runtime.Client);
|
|
928
1392
|
}
|
|
929
|
-
/** `
|
|
930
|
-
export declare class
|
|
1393
|
+
/** `mail_domains` of Sylphx Notify: Resource type `notify.sylphx.com/EmailDomain`. */
|
|
1394
|
+
export declare class MailDomainsCollection {
|
|
931
1395
|
private readonly client;
|
|
932
1396
|
constructor(client: runtime.Client);
|
|
933
1397
|
/**
|
|
934
|
-
* Gets
|
|
1398
|
+
* Gets an email domain.
|
|
935
1399
|
*
|
|
936
|
-
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/
|
|
1400
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*}` · permission `notify:read` · effect `read`
|
|
937
1401
|
*
|
|
938
1402
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
939
1403
|
*/
|
|
940
|
-
get(request:
|
|
1404
|
+
get(request: GetEmailDomainRequest): Promise<EmailDomain>;
|
|
941
1405
|
/**
|
|
942
|
-
* Lists
|
|
1406
|
+
* Lists email domains.
|
|
943
1407
|
*
|
|
944
|
-
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/
|
|
1408
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/mail_domains` · permission `notify:read` · effect `read`
|
|
945
1409
|
*
|
|
946
1410
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
947
1411
|
*/
|
|
948
|
-
list(request:
|
|
1412
|
+
list(request: ListEmailDomainsRequest): Promise<ListEmailDomainsResponse>;
|
|
949
1413
|
/** Every item of every page of `list`. */
|
|
950
|
-
listAll(request:
|
|
1414
|
+
listAll(request: ListEmailDomainsRequest): AsyncGenerator<EmailDomain>;
|
|
951
1415
|
/**
|
|
952
|
-
* Creates
|
|
1416
|
+
* Creates an email domain.
|
|
953
1417
|
*
|
|
954
|
-
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/
|
|
1418
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/mail_domains` · permission `notify:write` · effect `write`
|
|
955
1419
|
*
|
|
956
1420
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
957
1421
|
*/
|
|
958
|
-
create(request:
|
|
1422
|
+
create(request: CreateEmailDomainRequest): Promise<EmailDomain>;
|
|
959
1423
|
/**
|
|
960
|
-
* Updates
|
|
1424
|
+
* Updates an email domain.
|
|
961
1425
|
*
|
|
962
|
-
* `PATCH /v1/{
|
|
1426
|
+
* `PATCH /v1/{email_domain.name=orgs/*\/projects/*\/envs/*\/mail_domains/*}` · permission `notify:write` · effect `write`
|
|
963
1427
|
*
|
|
964
1428
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
965
1429
|
*/
|
|
966
|
-
update(request:
|
|
1430
|
+
update(request: UpdateEmailDomainRequest): Promise<EmailDomain>;
|
|
967
1431
|
/**
|
|
968
|
-
* Deletes
|
|
1432
|
+
* Deletes an email domain.
|
|
969
1433
|
*
|
|
970
|
-
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/
|
|
1434
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*}` · permission `notify:write` · effect `destructive`
|
|
971
1435
|
*
|
|
972
1436
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
973
1437
|
*/
|
|
974
|
-
delete(request:
|
|
1438
|
+
delete(request: DeleteEmailDomainRequest): Promise<Record<string, never>>;
|
|
975
1439
|
/**
|
|
976
1440
|
* Checks the domain's DNS records now instead of on the next sweep.
|
|
977
1441
|
*
|
|
978
|
-
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/
|
|
1442
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*}:verify` · permission `notify:write` · effect `write`
|
|
979
1443
|
*
|
|
980
1444
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `RATE_LIMITED`.
|
|
981
1445
|
*/
|
|
982
|
-
verify(request:
|
|
1446
|
+
verify(request: VerifyEmailDomainRequest): Promise<EmailDomain>;
|
|
1447
|
+
}
|
|
1448
|
+
/** `mail_routes` of Sylphx Notify: Resource type `notify.sylphx.com/Route`. */
|
|
1449
|
+
export declare class MailRoutesCollection {
|
|
1450
|
+
private readonly client;
|
|
1451
|
+
constructor(client: runtime.Client);
|
|
1452
|
+
/**
|
|
1453
|
+
* Gets a route.
|
|
1454
|
+
*
|
|
1455
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*\/mail_routes/*}` · permission `notify:read` · effect `read`
|
|
1456
|
+
*
|
|
1457
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
1458
|
+
*/
|
|
1459
|
+
get(request: GetRouteRequest): Promise<Route>;
|
|
1460
|
+
/**
|
|
1461
|
+
* Lists an email domain's routes.
|
|
1462
|
+
*
|
|
1463
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/mail_domains/*}/mail_routes` · permission `notify:read` · effect `read`
|
|
1464
|
+
*
|
|
1465
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
1466
|
+
*/
|
|
1467
|
+
list(request: ListRoutesRequest): Promise<ListRoutesResponse>;
|
|
1468
|
+
/** Every item of every page of `list`. */
|
|
1469
|
+
listAll(request: ListRoutesRequest): AsyncGenerator<Route>;
|
|
1470
|
+
/**
|
|
1471
|
+
* Creates a route.
|
|
1472
|
+
*
|
|
1473
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*\/mail_domains/*}/mail_routes` · permission `notify:write` · effect `write`
|
|
1474
|
+
*
|
|
1475
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
1476
|
+
*/
|
|
1477
|
+
create(request: CreateRouteRequest): Promise<Route>;
|
|
1478
|
+
/**
|
|
1479
|
+
* Updates a route.
|
|
1480
|
+
*
|
|
1481
|
+
* `PATCH /v1/{route.name=orgs/*\/projects/*\/envs/*\/mail_domains/*\/mail_routes/*}` · permission `notify:write` · effect `write`
|
|
1482
|
+
*
|
|
1483
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1484
|
+
*/
|
|
1485
|
+
update(request: UpdateRouteRequest): Promise<Route>;
|
|
1486
|
+
/**
|
|
1487
|
+
* Deletes a route.
|
|
1488
|
+
*
|
|
1489
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*\/mail_routes/*}` · permission `notify:write` · effect `destructive`
|
|
1490
|
+
*
|
|
1491
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`.
|
|
1492
|
+
*/
|
|
1493
|
+
delete(request: DeleteRouteRequest): Promise<Record<string, never>>;
|
|
983
1494
|
}
|
|
984
1495
|
/** `senders` of Sylphx Notify: Resource type `notify.sylphx.com/Sender`. */
|
|
985
1496
|
export declare class SendersCollection {
|
|
@@ -1235,7 +1746,7 @@ export declare class MessagesCollection {
|
|
|
1235
1746
|
*
|
|
1236
1747
|
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/messages` · permission `notify:send` · effect `write`
|
|
1237
1748
|
*
|
|
1238
|
-
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
1749
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`, `RATE_LIMITED`, `INVALID_STATE`.
|
|
1239
1750
|
*/
|
|
1240
1751
|
create(request: CreateMessageRequest): Promise<Message>;
|
|
1241
1752
|
/**
|
|
@@ -1247,6 +1758,86 @@ export declare class MessagesCollection {
|
|
|
1247
1758
|
*/
|
|
1248
1759
|
cancel(request: CancelMessageRequest): Promise<Message>;
|
|
1249
1760
|
}
|
|
1761
|
+
/** `mailboxes` of Sylphx Notify: Resource type `notify.sylphx.com/Mailbox`. */
|
|
1762
|
+
export declare class MailboxesCollection {
|
|
1763
|
+
private readonly client;
|
|
1764
|
+
constructor(client: runtime.Client);
|
|
1765
|
+
/**
|
|
1766
|
+
* Gets a mailbox.
|
|
1767
|
+
*
|
|
1768
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*}` · permission `notify:read` · effect `read`
|
|
1769
|
+
*
|
|
1770
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
1771
|
+
*/
|
|
1772
|
+
get(request: GetMailboxRequest): Promise<Mailbox>;
|
|
1773
|
+
/**
|
|
1774
|
+
* Lists mailboxes.
|
|
1775
|
+
*
|
|
1776
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/mailboxes` · permission `notify:read` · effect `read`
|
|
1777
|
+
*
|
|
1778
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
1779
|
+
*/
|
|
1780
|
+
list(request: ListMailboxesRequest): Promise<ListMailboxesResponse>;
|
|
1781
|
+
/** Every item of every page of `list`. */
|
|
1782
|
+
listAll(request: ListMailboxesRequest): AsyncGenerator<Mailbox>;
|
|
1783
|
+
/**
|
|
1784
|
+
* Creates a mailbox.
|
|
1785
|
+
*
|
|
1786
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/mailboxes` · permission `notify:write` · effect `write`
|
|
1787
|
+
*
|
|
1788
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
1789
|
+
*/
|
|
1790
|
+
create(request: CreateMailboxRequest): Promise<Mailbox>;
|
|
1791
|
+
/**
|
|
1792
|
+
* Updates a mailbox.
|
|
1793
|
+
*
|
|
1794
|
+
* `PATCH /v1/{mailbox.name=orgs/*\/projects/*\/envs/*\/mailboxes/*}` · permission `notify:write` · effect `write`
|
|
1795
|
+
*
|
|
1796
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1797
|
+
*/
|
|
1798
|
+
update(request: UpdateMailboxRequest): Promise<Mailbox>;
|
|
1799
|
+
/**
|
|
1800
|
+
* Deletes a mailbox and its inbound email.
|
|
1801
|
+
*
|
|
1802
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*}` · permission `notify:write` · effect `destructive`
|
|
1803
|
+
*
|
|
1804
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `RESOURCE_IN_USE`.
|
|
1805
|
+
*/
|
|
1806
|
+
delete(request: DeleteMailboxRequest): Promise<Record<string, never>>;
|
|
1807
|
+
/**
|
|
1808
|
+
* Removes an address's personal data from every inbound email of the
|
|
1809
|
+
* mailbox that it sent or that names it, keeping the dedupe keys so a poll
|
|
1810
|
+
* never brings the mail back.
|
|
1811
|
+
*
|
|
1812
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*}:eraseAddress` · permission `notify:write` · effect `destructive`
|
|
1813
|
+
*
|
|
1814
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1815
|
+
*/
|
|
1816
|
+
eraseAddress(request: EraseMailboxAddressRequest): Promise<EraseMailboxAddressResponse>;
|
|
1817
|
+
}
|
|
1818
|
+
/** `inbound_emails` of Sylphx Notify: Resource type `notify.sylphx.com/InboundEmail`. */
|
|
1819
|
+
export declare class InboundEmailsCollection {
|
|
1820
|
+
private readonly client;
|
|
1821
|
+
constructor(client: runtime.Client);
|
|
1822
|
+
/**
|
|
1823
|
+
* Gets an inbound email.
|
|
1824
|
+
*
|
|
1825
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*\/inbound_emails/*}` · permission `notify:read` · effect `read`
|
|
1826
|
+
*
|
|
1827
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
1828
|
+
*/
|
|
1829
|
+
get(request: GetInboundEmailRequest): Promise<InboundEmail>;
|
|
1830
|
+
/**
|
|
1831
|
+
* Lists a mailbox's inbound email in feed order, oldest first.
|
|
1832
|
+
*
|
|
1833
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/mailboxes/*}/inbound_emails` · permission `notify:read` · effect `read`
|
|
1834
|
+
*
|
|
1835
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
1836
|
+
*/
|
|
1837
|
+
list(request: ListInboundEmailsRequest): Promise<ListInboundEmailsResponse>;
|
|
1838
|
+
/** Every item of every page of `list`. */
|
|
1839
|
+
listAll(request: ListInboundEmailsRequest): AsyncGenerator<InboundEmail>;
|
|
1840
|
+
}
|
|
1250
1841
|
/** `inbox_items` of Sylphx Notify: Resource type `notify.sylphx.com/InboxItem`. */
|
|
1251
1842
|
export declare class InboxItemsCollection {
|
|
1252
1843
|
private readonly client;
|