@sylphx/sdk 0.30.0 → 0.31.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/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,20 @@ export interface CreateBroadcastRequest {
92
96
  /** Validate and return the result without writing anything. */
93
97
  validateOnly?: boolean;
94
98
  }
99
+ /** The request of CreateMailbox. */
100
+ export interface CreateMailboxRequest {
101
+ /** The parent to create in. */
102
+ parent: string;
103
+ /**
104
+ * The mailbox id, the final name segment; the server assigns one when
105
+ * empty.
106
+ */
107
+ mailboxId?: string;
108
+ /** The mailbox to create; only caller-writable fields are read. */
109
+ mailbox: Mailbox;
110
+ /** Validate and return the result without writing anything. */
111
+ validateOnly?: boolean;
112
+ }
95
113
  /** The request of CreateMessage. */
96
114
  export interface CreateMessageRequest {
97
115
  /** The parent to create in. */
@@ -181,6 +199,22 @@ export interface DeleteBroadcastRequest {
181
199
  /** Validate without deleting anything. */
182
200
  validateOnly?: boolean;
183
201
  }
202
+ /** The request of DeleteMailbox. */
203
+ export interface DeleteMailboxRequest {
204
+ /** The name of the mailbox to delete. */
205
+ name: string;
206
+ /** Delete only if the current etag matches. */
207
+ etag?: string;
208
+ /** Succeed when the mailbox does not exist. */
209
+ allowMissing?: boolean;
210
+ /** Validate without deleting anything. */
211
+ validateOnly?: boolean;
212
+ /**
213
+ * Delete its inbound email with it; a mailbox holding inbound email is not
214
+ * deleted without it.
215
+ */
216
+ force?: boolean;
217
+ }
184
218
  /** The request of DeletePreference. */
185
219
  export interface DeletePreferenceRequest {
186
220
  /** The name of the preference to delete. */
@@ -270,17 +304,41 @@ export interface EmailContent {
270
304
  htmlBody?: string;
271
305
  /** The plain-text body. */
272
306
  textBody?: string;
307
+ /** The From display name, for example the app's name. */
308
+ senderName?: string;
309
+ }
310
+ /** The request of EraseMailboxAddress. */
311
+ export interface EraseMailboxAddressRequest {
312
+ /** The name of the mailbox. */
313
+ name: string;
314
+ /** The email address whose data is removed. */
315
+ address: string;
316
+ }
317
+ /** The response of EraseMailboxAddress. */
318
+ export interface EraseMailboxAddressResponse {
319
+ /** How many inbound emails were scrubbed. */
320
+ erasedCount?: string;
273
321
  }
274
322
  /** The request of GetBroadcast. */
275
323
  export interface GetBroadcastRequest {
276
324
  /** The name of the broadcast to get. */
277
325
  name: string;
278
326
  }
327
+ /** The request of GetInboundEmail. */
328
+ export interface GetInboundEmailRequest {
329
+ /** The name of the inbound email to get. */
330
+ name: string;
331
+ }
279
332
  /** The request of GetInboxItem. */
280
333
  export interface GetInboxItemRequest {
281
334
  /** The name of the inbox item to get. */
282
335
  name: string;
283
336
  }
337
+ /** The request of GetMailbox. */
338
+ export interface GetMailboxRequest {
339
+ /** The name of the mailbox to get. */
340
+ name: string;
341
+ }
284
342
  /** The request of GetMessage. */
285
343
  export interface GetMessageRequest {
286
344
  /** The name of the message to get. */
@@ -316,6 +374,64 @@ export interface GetTemplateRequest {
316
374
  /** The name of the template to get. */
317
375
  name: string;
318
376
  }
377
+ /**
378
+ * An Inbound Email is one mail a mailbox holds, received or sent, kept as
379
+ * evidence: parsed once, never changed except by erasure. Consumers read the
380
+ * feed in `sequence` order.
381
+ */
382
+ export interface InboundEmail {
383
+ /** `orgs/{org}/projects/{project}/envs/{env}/mailboxes/{mailbox}/inbound_emails/{inbound_email}`. */
384
+ name?: string;
385
+ /** `ieml_<cell><ulid>`; never reused. */
386
+ readonly uid?: string;
387
+ /** Resource metadata. */
388
+ meta?: common.ResourceMeta;
389
+ /**
390
+ * The feed position, increasing within the environment; filter
391
+ * `sequence > N` to resume after the last one handled.
392
+ */
393
+ readonly sequence?: string;
394
+ /** Received by the mailbox, or found in its Sent folder. */
395
+ readonly direction?: InboundEmailDirection;
396
+ /**
397
+ * The Message-ID without angle brackets; the dedupe key. Mail without one
398
+ * gets `sha256-<hex>@invalid`.
399
+ */
400
+ readonly messageId?: string;
401
+ /** In-Reply-To: the Message-ID this answers, without angle brackets. */
402
+ readonly parentMessageId?: string;
403
+ /** References, oldest first. */
404
+ readonly references?: string[];
405
+ /** The From address, lower case. */
406
+ readonly senderAddress?: string;
407
+ /** The From display name. */
408
+ readonly senderName?: string;
409
+ /** The To addresses. */
410
+ readonly recipientAddresses?: string[];
411
+ /** Cc addresses. */
412
+ readonly ccAddresses?: string[];
413
+ /** The subject. */
414
+ readonly subject?: string;
415
+ /** The plain-text body. */
416
+ readonly textBody?: string;
417
+ /** The HTML body as received; render it only through a sanitizer. */
418
+ readonly htmlBody?: string;
419
+ /** The Date header, else when the mailbox received it. */
420
+ readonly receiveTime?: string;
421
+ /**
422
+ * Sent by software: Auto-Submitted, Precedence bulk or list, auto-reply
423
+ * headers, or a delivery report.
424
+ */
425
+ readonly automated?: boolean;
426
+ /** SHA-256 of the raw message, hex. */
427
+ readonly rawSha256?: string;
428
+ /** The raw message size. */
429
+ readonly sizeBytes?: string;
430
+ /** Personal data removed by erasure; the dedupe key stays. */
431
+ readonly erased?: boolean;
432
+ /** The Notify Message that sent it, for mail Notify sent as this mailbox. */
433
+ readonly message?: string;
434
+ }
319
435
  /** In-app inbox content. */
320
436
  export interface InboxContent {
321
437
  /** The title. */
@@ -367,6 +483,26 @@ export interface ListBroadcastsResponse {
367
483
  /** The token of the next page; empty on the last page. */
368
484
  nextPageToken?: string;
369
485
  }
486
+ /** The request of ListInboundEmails. */
487
+ export interface ListInboundEmailsRequest {
488
+ /** The mailbox to list in. */
489
+ parent: string;
490
+ /** At most this many; default 50, clamped to 1000. */
491
+ pageSize?: number;
492
+ /** `next_page_token` of the previous page. */
493
+ pageToken?: string;
494
+ /** AIP-160 filter over labels and filterable fields. */
495
+ filter?: string;
496
+ /** AIP-132 ordering over filterable fields. */
497
+ orderBy?: string;
498
+ }
499
+ /** The response of ListInboundEmails. */
500
+ export interface ListInboundEmailsResponse {
501
+ /** The page. */
502
+ inboundEmails?: InboundEmail[];
503
+ /** The token of the next page; empty on the last page. */
504
+ nextPageToken?: string;
505
+ }
370
506
  /** The request of ListInboxItems. */
371
507
  export interface ListInboxItemsRequest {
372
508
  /** The parent to list in. */
@@ -387,6 +523,26 @@ export interface ListInboxItemsResponse {
387
523
  /** The token of the next page; empty on the last page. */
388
524
  nextPageToken?: string;
389
525
  }
526
+ /** The request of ListMailboxes. */
527
+ export interface ListMailboxesRequest {
528
+ /** The parent to list in. */
529
+ parent: string;
530
+ /** At most this many; default 50, clamped to 1000. */
531
+ pageSize?: number;
532
+ /** `next_page_token` of the previous page. */
533
+ pageToken?: string;
534
+ /** AIP-160 filter over labels and filterable fields. */
535
+ filter?: string;
536
+ /** AIP-132 ordering over filterable fields. */
537
+ orderBy?: string;
538
+ }
539
+ /** The response of ListMailboxes. */
540
+ export interface ListMailboxesResponse {
541
+ /** The page. */
542
+ mailboxes?: Mailbox[];
543
+ /** The token of the next page; empty on the last page. */
544
+ nextPageToken?: string;
545
+ }
390
546
  /** The request of ListMessages. */
391
547
  export interface ListMessagesRequest {
392
548
  /** The parent to list in. */
@@ -527,6 +683,74 @@ export interface ListTemplatesResponse {
527
683
  /** The token of the next page; empty on the last page. */
528
684
  nextPageToken?: string;
529
685
  }
686
+ /** One mail server of a connected mailbox. */
687
+ export interface MailServer {
688
+ /** The host name. */
689
+ host?: string;
690
+ /** The port; IMAP 993 and SMTP 465 when unset. */
691
+ port?: number;
692
+ /** The login user; the mailbox address when unset. */
693
+ username?: string;
694
+ /** How the connection is secured. */
695
+ security?: MailServerSecurity;
696
+ }
697
+ /**
698
+ * A Mailbox is an email address Notify reads from and sends as. A `CONNECTED`
699
+ * mailbox is an existing mailbox at any provider, reached over IMAP (read
700
+ * only) and SMTP with its own login; a `HOSTED` mailbox receives at an
701
+ * address whose MX is Sylphx. Mail it receives becomes Inbound Email records.
702
+ */
703
+ export interface Mailbox {
704
+ /** `orgs/{org}/projects/{project}/envs/{env}/mailboxes/{mailbox}`. */
705
+ name?: string;
706
+ /** `mbx_<cell><ulid>`; never reused. */
707
+ readonly uid?: string;
708
+ /** Resource metadata. */
709
+ meta?: common.ResourceMeta;
710
+ /** Desired state. */
711
+ spec?: MailboxSpec;
712
+ /** Observed state. */
713
+ readonly status?: MailboxStatus;
714
+ }
715
+ /** MailboxSpec is the caller-writable state of a Mailbox. */
716
+ export interface MailboxSpec {
717
+ /** Connected or hosted. */
718
+ kind?: MailboxKind;
719
+ /** The address, for example `support@example.com`. */
720
+ address?: string;
721
+ /** The From display name of mail sent as this mailbox. */
722
+ displayName?: string;
723
+ /** IMAP, for a connected mailbox. */
724
+ imap?: MailServer;
725
+ /** SMTP submission, for a connected mailbox. */
726
+ smtp?: MailServer;
727
+ /** The login password of both servers; write-only, sealed at rest. */
728
+ password?: string;
729
+ /**
730
+ * Save a copy of mail sent as this mailbox to its Sent folder (IMAP
731
+ * APPEND); off when the provider saves one itself.
732
+ */
733
+ appendSent?: boolean;
734
+ /** Read mail received on or after this day on the first poll. */
735
+ backfillStartTime?: string;
736
+ /** Poll and send; a disabled mailbox keeps its records. */
737
+ enabled?: boolean;
738
+ }
739
+ /** MailboxStatus is the observed state of a Mailbox. */
740
+ export interface MailboxStatus {
741
+ /** The generation this status was computed from. */
742
+ readonly observedGeneration?: string;
743
+ /** Ready, Reconciling, Stalled. */
744
+ readonly conditions?: common.Condition[];
745
+ /** Whether a password is stored. */
746
+ readonly passwordSet?: boolean;
747
+ /** When the mailbox was last read. */
748
+ readonly lastPollTime?: string;
749
+ /** The last poll's error; empty after a clean poll. */
750
+ readonly lastError?: string;
751
+ /** The Sent folder found on the server. */
752
+ readonly sentFolder?: string;
753
+ }
530
754
  /** The request of MarkInboxItemRead. */
531
755
  export interface MarkInboxItemReadRequest {
532
756
  /** The name of the inbox item. */
@@ -554,7 +778,7 @@ export interface Message {
554
778
  recipient?: string;
555
779
  /** The topic preferences are checked against, for example `billing`. */
556
780
  topic?: string;
557
- /** The template to render. */
781
+ /** The template to render; required unless `mailbox` and `content` are set. */
558
782
  template?: string;
559
783
  /** The template version rendered; pinned at admission. */
560
784
  readonly templateVersion?: string;
@@ -573,6 +797,54 @@ export interface Message {
573
797
  readonly state?: MessageState;
574
798
  /** Per-channel deliveries and their receipts. */
575
799
  readonly deliveries?: ChannelDelivery[];
800
+ /**
801
+ * Deliver no later than this; a delivery still open then fails with
802
+ * `expired`. Unset retries for up to a day. The message record is kept.
803
+ */
804
+ deliveryDeadlineTime?: string;
805
+ /**
806
+ * Why the message is in its state, for example `recipient_interval` for
807
+ * `RATE_LIMITED` or `suppressed` for `SUPPRESSED`.
808
+ */
809
+ readonly stateReason?: string;
810
+ /** A test recipient's rendered content; empty for every other recipient. */
811
+ readonly capture?: MessageCapture;
812
+ /**
813
+ * Send as this mailbox (its address, display name and, for a connected
814
+ * mailbox, its own SMTP) instead of a verified Sending Domain.
815
+ */
816
+ mailbox?: string;
817
+ /**
818
+ * Inline content, only with `mailbox`: the subject and bodies as written,
819
+ * not rendered from a template.
820
+ */
821
+ content?: MessageContent;
822
+ /** In-Reply-To: the Message-ID this answers, without angle brackets. */
823
+ parentMessageId?: string;
824
+ /** The thread's Message-IDs, oldest first, without angle brackets. */
825
+ references?: string[];
826
+ /** The Message-ID Notify gave the email, without angle brackets. */
827
+ readonly emailMessageId?: string;
828
+ }
829
+ /** What a message to a test recipient rendered to. */
830
+ export interface MessageCapture {
831
+ /** The email subject. */
832
+ readonly subject?: string;
833
+ /** The plain-text body. */
834
+ readonly textBody?: string;
835
+ /** The HTML body. */
836
+ readonly htmlBody?: string;
837
+ /** Every link in the bodies, in order. */
838
+ readonly links?: string[];
839
+ }
840
+ /** Inline content of a Message sent as a mailbox. */
841
+ export interface MessageContent {
842
+ /** The subject. */
843
+ subject?: string;
844
+ /** The plain-text body. */
845
+ textBody?: string;
846
+ /** The HTML body. */
847
+ htmlBody?: string;
576
848
  }
577
849
  /**
578
850
  * A Preference is a recipient's choice for one topic: which channels may carry
@@ -647,6 +919,12 @@ export interface Recipient {
647
919
  languageCode?: string;
648
920
  /** IANA time zone for quiet hours and digests. */
649
921
  timeZone?: string;
922
+ /**
923
+ * A test recipient: its messages are rendered and captured on the Message,
924
+ * never delivered. An email address whose local part carries
925
+ * `+sylphx_test` is a test address whatever this says.
926
+ */
927
+ test?: boolean;
650
928
  }
651
929
  /** The request of SendBroadcast. */
652
930
  export interface SendBroadcastRequest {
@@ -657,6 +935,16 @@ export interface SendBroadcastRequest {
657
935
  /** Validate without writing anything. */
658
936
  validateOnly?: boolean;
659
937
  }
938
+ /**
939
+ * A per-recipient send limit. A message over it is recorded with state
940
+ * `RATE_LIMITED` and its create answers 429 `RATE_LIMITED` with the wait.
941
+ */
942
+ export interface SendLimit {
943
+ /** At least this long between two messages to one recipient. */
944
+ minInterval?: string;
945
+ /** At most this many messages to one recipient in any hour; 0 is no limit. */
946
+ maxPerHour?: number;
947
+ }
660
948
  /**
661
949
  * A Sender is a verified origin for SMS or push: a registered number or sender
662
950
  * id, or a push app whose APNs/FCM credentials are a Kernel Connection reached
@@ -797,6 +1085,11 @@ export interface TemplateSpec {
797
1085
  push?: PushContent;
798
1086
  /** In-app inbox content. */
799
1087
  inbox?: InboxContent;
1088
+ /**
1089
+ * A per-recipient send limit on messages rendered from this template;
1090
+ * unset admits every message.
1091
+ */
1092
+ sendLimit?: SendLimit;
800
1093
  }
801
1094
  /** TemplateStatus is the observed state of a Template. */
802
1095
  export interface TemplateStatus {
@@ -818,6 +1111,17 @@ export interface UpdateBroadcastRequest {
818
1111
  /** Validate and return the result without writing anything. */
819
1112
  validateOnly?: boolean;
820
1113
  }
1114
+ /** The request of UpdateMailbox. */
1115
+ export interface UpdateMailboxRequest {
1116
+ /** The mailbox to update; `name` identifies it. */
1117
+ mailbox: Mailbox;
1118
+ /** The fields to write; unset writes every populated field. */
1119
+ updateMask?: string;
1120
+ /** Create the mailbox when it does not exist (declarative upsert). */
1121
+ allowMissing?: boolean;
1122
+ /** Validate and return the result without writing anything. */
1123
+ validateOnly?: boolean;
1124
+ }
821
1125
  /** The request of UpdatePreference. */
822
1126
  export interface UpdatePreferenceRequest {
823
1127
  /** The preference to update; `name` identifies it. */
@@ -888,11 +1192,17 @@ export type BroadcastState = 'draft' | 'scheduled' | 'sending' | 'sent' | 'cance
888
1192
  /** A Notify channel. */
889
1193
  export type Channel = 'email' | 'sms' | 'push' | 'inbox' | (string & {});
890
1194
  /** The state of one channel delivery. */
891
- export type ChannelDeliveryState = 'pending' | 'sent' | 'delivered' | 'bounced' | 'failed' | 'skipped' | (string & {});
1195
+ export type ChannelDeliveryState = 'pending' | 'sent' | 'delivered' | 'bounced' | 'failed' | 'skipped' | 'captured' | 'suppressed' | (string & {});
1196
+ /** Whether an Inbound Email came in or went out. */
1197
+ export type InboundEmailDirection = 'received' | 'sent' | (string & {});
892
1198
  /** The state of an inbox item. */
893
1199
  export type InboxItemState = 'unread' | 'read' | 'archived' | (string & {});
1200
+ /** How a mail server connection is secured. */
1201
+ export type MailServerSecurity = 'tls' | 'starttls' | (string & {});
1202
+ /** How a Mailbox receives mail. */
1203
+ export type MailboxKind = 'connected' | 'hosted' | (string & {});
894
1204
  /** The state of a Message. */
895
- export type MessageState = 'accepted' | 'suppressed' | 'delivering' | 'delivered' | 'failed' | 'cancelled' | (string & {});
1205
+ export type MessageState = 'accepted' | 'suppressed' | 'delivering' | 'delivered' | 'failed' | 'cancelled' | 'rate_limited' | (string & {});
896
1206
  /** A push platform. */
897
1207
  export type PushPlatform = 'apns' | 'fcm' | 'web_push' | (string & {});
898
1208
  /** Why an address is suppressed. */
@@ -920,6 +1230,10 @@ export declare class NotifyApi {
920
1230
  readonly templates: TemplatesCollection;
921
1231
  /** The `messages` collection. */
922
1232
  readonly messages: MessagesCollection;
1233
+ /** The `mailboxes` collection. */
1234
+ readonly mailboxes: MailboxesCollection;
1235
+ /** The `inbound_emails` collection. */
1236
+ readonly inboundEmails: InboundEmailsCollection;
923
1237
  /** The `inbox_items` collection. */
924
1238
  readonly inboxItems: InboxItemsCollection;
925
1239
  /** The `broadcasts` collection. */
@@ -1235,7 +1549,7 @@ export declare class MessagesCollection {
1235
1549
  *
1236
1550
  * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/messages` · permission `notify:send` · effect `write`
1237
1551
  *
1238
- * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1552
+ * 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
1553
  */
1240
1554
  create(request: CreateMessageRequest): Promise<Message>;
1241
1555
  /**
@@ -1247,6 +1561,86 @@ export declare class MessagesCollection {
1247
1561
  */
1248
1562
  cancel(request: CancelMessageRequest): Promise<Message>;
1249
1563
  }
1564
+ /** `mailboxes` of Sylphx Notify: Resource type `notify.sylphx.com/Mailbox`. */
1565
+ export declare class MailboxesCollection {
1566
+ private readonly client;
1567
+ constructor(client: runtime.Client);
1568
+ /**
1569
+ * Gets a mailbox.
1570
+ *
1571
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*}` · permission `notify:read` · effect `read`
1572
+ *
1573
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1574
+ */
1575
+ get(request: GetMailboxRequest): Promise<Mailbox>;
1576
+ /**
1577
+ * Lists mailboxes.
1578
+ *
1579
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/mailboxes` · permission `notify:read` · effect `read`
1580
+ *
1581
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1582
+ */
1583
+ list(request: ListMailboxesRequest): Promise<ListMailboxesResponse>;
1584
+ /** Every item of every page of `list`. */
1585
+ listAll(request: ListMailboxesRequest): AsyncGenerator<Mailbox>;
1586
+ /**
1587
+ * Creates a mailbox.
1588
+ *
1589
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/mailboxes` · permission `notify:write` · effect `write`
1590
+ *
1591
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1592
+ */
1593
+ create(request: CreateMailboxRequest): Promise<Mailbox>;
1594
+ /**
1595
+ * Updates a mailbox.
1596
+ *
1597
+ * `PATCH /v1/{mailbox.name=orgs/*\/projects/*\/envs/*\/mailboxes/*}` · permission `notify:write` · effect `write`
1598
+ *
1599
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1600
+ */
1601
+ update(request: UpdateMailboxRequest): Promise<Mailbox>;
1602
+ /**
1603
+ * Deletes a mailbox and its inbound email.
1604
+ *
1605
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*}` · permission `notify:write` · effect `destructive`
1606
+ *
1607
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `RESOURCE_IN_USE`.
1608
+ */
1609
+ delete(request: DeleteMailboxRequest): Promise<Record<string, never>>;
1610
+ /**
1611
+ * Removes an address's personal data from every inbound email of the
1612
+ * mailbox that it sent or that names it, keeping the dedupe keys so a poll
1613
+ * never brings the mail back.
1614
+ *
1615
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*}:eraseAddress` · permission `notify:write` · effect `destructive`
1616
+ *
1617
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1618
+ */
1619
+ eraseAddress(request: EraseMailboxAddressRequest): Promise<EraseMailboxAddressResponse>;
1620
+ }
1621
+ /** `inbound_emails` of Sylphx Notify: Resource type `notify.sylphx.com/InboundEmail`. */
1622
+ export declare class InboundEmailsCollection {
1623
+ private readonly client;
1624
+ constructor(client: runtime.Client);
1625
+ /**
1626
+ * Gets an inbound email.
1627
+ *
1628
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*\/inbound_emails/*}` · permission `notify:read` · effect `read`
1629
+ *
1630
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1631
+ */
1632
+ get(request: GetInboundEmailRequest): Promise<InboundEmail>;
1633
+ /**
1634
+ * Lists a mailbox's inbound email in feed order, oldest first.
1635
+ *
1636
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/mailboxes/*}/inbound_emails` · permission `notify:read` · effect `read`
1637
+ *
1638
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1639
+ */
1640
+ list(request: ListInboundEmailsRequest): Promise<ListInboundEmailsResponse>;
1641
+ /** Every item of every page of `list`. */
1642
+ listAll(request: ListInboundEmailsRequest): AsyncGenerator<InboundEmail>;
1643
+ }
1250
1644
  /** `inbox_items` of Sylphx Notify: Resource type `notify.sylphx.com/InboxItem`. */
1251
1645
  export declare class InboxItemsCollection {
1252
1646
  private readonly client;