@sylphx/sdk 0.31.0 → 0.32.1

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.
Files changed (120) hide show
  1. package/README.md +131 -4
  2. package/dist/access.d.ts +146 -17
  3. package/dist/access.js +114 -8
  4. package/dist/access.js.map +1 -1
  5. package/dist/agents.d.ts +1564 -0
  6. package/dist/agents.js +1096 -0
  7. package/dist/agents.js.map +1 -0
  8. package/dist/ai.d.ts +1 -2
  9. package/dist/ai.js +2 -3
  10. package/dist/ai.js.map +1 -1
  11. package/dist/artifacts.d.ts +1 -1
  12. package/dist/artifacts.js +2 -2
  13. package/dist/assets.d.ts +447 -0
  14. package/dist/assets.js +266 -0
  15. package/dist/assets.js.map +1 -0
  16. package/dist/auth/client.d.ts +239 -0
  17. package/dist/auth/client.js +337 -0
  18. package/dist/auth/client.js.map +1 -0
  19. package/dist/auth/end-user-keys-mock.d.ts +83 -0
  20. package/dist/auth/end-user-keys-mock.js +427 -0
  21. package/dist/auth/end-user-keys-mock.js.map +1 -0
  22. package/dist/auth/end-user-keys.d.ts +219 -0
  23. package/dist/auth/end-user-keys.js +240 -0
  24. package/dist/auth/end-user-keys.js.map +1 -0
  25. package/dist/auth/verify.d.ts +38 -3
  26. package/dist/auth/verify.js +58 -8
  27. package/dist/auth/verify.js.map +1 -1
  28. package/dist/auth.d.ts +656 -9
  29. package/dist/auth.js +563 -6
  30. package/dist/auth.js.map +1 -1
  31. package/dist/billing.d.ts +99 -21
  32. package/dist/billing.js +43 -5
  33. package/dist/billing.js.map +1 -1
  34. package/dist/broker.d.ts +5 -4
  35. package/dist/broker.js +3 -3
  36. package/dist/broker.js.map +1 -1
  37. package/dist/build.d.ts +362 -29
  38. package/dist/build.js +302 -10
  39. package/dist/build.js.map +1 -1
  40. package/dist/common.d.ts +1 -1
  41. package/dist/common.js +1 -1
  42. package/dist/config/flags.d.ts +140 -0
  43. package/dist/config/flags.js +462 -0
  44. package/dist/config/flags.js.map +1 -0
  45. package/dist/config.d.ts +380 -15
  46. package/dist/config.js +283 -5
  47. package/dist/config.js.map +1 -1
  48. package/dist/connections.d.ts +6 -6
  49. package/dist/connections.js +3 -3
  50. package/dist/data.d.ts +612 -7
  51. package/dist/data.js +566 -4
  52. package/dist/data.js.map +1 -1
  53. package/dist/entitlement.d.ts +10 -8
  54. package/dist/entitlement.js +3 -4
  55. package/dist/entitlement.js.map +1 -1
  56. package/dist/events/realtime.d.ts +69 -0
  57. package/dist/events/realtime.js +107 -0
  58. package/dist/events/realtime.js.map +1 -0
  59. package/dist/events/webhooks.d.ts +40 -0
  60. package/dist/events/webhooks.js +110 -0
  61. package/dist/events/webhooks.js.map +1 -0
  62. package/dist/events.d.ts +369 -22
  63. package/dist/events.js +311 -8
  64. package/dist/events.js.map +1 -1
  65. package/dist/flags.d.ts +18 -0
  66. package/dist/flags.js +44 -0
  67. package/dist/flags.js.map +1 -0
  68. package/dist/hosting.d.ts +13 -14
  69. package/dist/hosting.js +3 -4
  70. package/dist/hosting.js.map +1 -1
  71. package/dist/ids.d.ts +987 -0
  72. package/dist/ids.js +317 -0
  73. package/dist/ids.js.map +1 -0
  74. package/dist/index.d.ts +25 -1
  75. package/dist/index.js +34 -2
  76. package/dist/index.js.map +1 -1
  77. package/dist/keys.d.ts +2 -2
  78. package/dist/keys.js +3 -3
  79. package/dist/knowledge.d.ts +1192 -0
  80. package/dist/knowledge.js +1002 -0
  81. package/dist/knowledge.js.map +1 -0
  82. package/dist/localization.d.ts +663 -0
  83. package/dist/localization.js +491 -0
  84. package/dist/localization.js.map +1 -0
  85. package/dist/methods.js +3251 -133
  86. package/dist/methods.js.map +1 -1
  87. package/dist/money.d.ts +3086 -0
  88. package/dist/money.js +2358 -0
  89. package/dist/money.js.map +1 -0
  90. package/dist/network.d.ts +4 -5
  91. package/dist/network.js +3 -4
  92. package/dist/network.js.map +1 -1
  93. package/dist/notify.d.ts +667 -125
  94. package/dist/notify.js +471 -73
  95. package/dist/notify.js.map +1 -1
  96. package/dist/observability.d.ts +322 -7
  97. package/dist/observability.js +244 -8
  98. package/dist/observability.js.map +1 -1
  99. package/dist/realtime.d.ts +404 -0
  100. package/dist/realtime.js +312 -0
  101. package/dist/realtime.js.map +1 -0
  102. package/dist/release.d.ts +14 -15
  103. package/dist/release.js +3 -4
  104. package/dist/release.js.map +1 -1
  105. package/dist/runners.d.ts +2 -3
  106. package/dist/runners.js +3 -4
  107. package/dist/runners.js.map +1 -1
  108. package/dist/runtime.d.ts +5 -1
  109. package/dist/runtime.js +7 -3
  110. package/dist/runtime.js.map +1 -1
  111. package/dist/sandboxes.d.ts +64 -20
  112. package/dist/sandboxes.js +9 -4
  113. package/dist/sandboxes.js.map +1 -1
  114. package/dist/secrets.d.ts +342 -6
  115. package/dist/secrets.js +271 -4
  116. package/dist/secrets.js.map +1 -1
  117. package/dist/workflows.d.ts +969 -15
  118. package/dist/workflows.js +815 -6
  119. package/dist/workflows.js.map +1 -1
  120. package/package.json +2 -2
package/dist/notify.d.ts CHANGED
@@ -96,6 +96,48 @@ export interface CreateBroadcastRequest {
96
96
  /** Validate and return the result without writing anything. */
97
97
  validateOnly?: boolean;
98
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 CreateMailboxConnectLink. */
114
+ export interface CreateMailboxConnectLinkRequest {
115
+ /** The parent to create in. */
116
+ parent: string;
117
+ /**
118
+ * The mailbox connect link id, the final name segment; the server assigns one when
119
+ * empty.
120
+ */
121
+ mailboxConnectLinkId?: string;
122
+ /** The mailbox connect link to create; only caller-writable fields are read. */
123
+ mailboxConnectLink: MailboxConnectLink;
124
+ /** Validate and return the result without writing anything. */
125
+ validateOnly?: boolean;
126
+ }
127
+ /** The request of CreateMailboxOauthApp. */
128
+ export interface CreateMailboxOauthAppRequest {
129
+ /** The parent to create in. */
130
+ parent: string;
131
+ /**
132
+ * The mailbox OAuth app id, the final name segment; the server assigns one when
133
+ * empty.
134
+ */
135
+ mailboxOauthAppId?: string;
136
+ /** The mailbox OAuth app to create; only caller-writable fields are read. */
137
+ mailboxOauthApp: MailboxOauthApp;
138
+ /** Validate and return the result without writing anything. */
139
+ validateOnly?: boolean;
140
+ }
99
141
  /** The request of CreateMailbox. */
100
142
  export interface CreateMailboxRequest {
101
143
  /** The parent to create in. */
@@ -135,6 +177,17 @@ export interface CreateRecipientRequest {
135
177
  /** Validate and return the result without writing anything. */
136
178
  validateOnly?: boolean;
137
179
  }
180
+ /** The request of CreateRoute. */
181
+ export interface CreateRouteRequest {
182
+ /** The email domain to create in. */
183
+ parent: string;
184
+ /** The route id, the final name segment; the server assigns one when empty. */
185
+ routeId?: string;
186
+ /** The route to create; only caller-writable fields are read. */
187
+ route: Route;
188
+ /** Validate and return the result without writing anything. */
189
+ validateOnly?: boolean;
190
+ }
138
191
  /** The request of CreateSender. */
139
192
  export interface CreateSenderRequest {
140
193
  /** The parent to create in. */
@@ -146,20 +199,6 @@ export interface CreateSenderRequest {
146
199
  /** Validate and return the result without writing anything. */
147
200
  validateOnly?: boolean;
148
201
  }
149
- /** The request of CreateSendingDomain. */
150
- export interface CreateSendingDomainRequest {
151
- /** The parent to create in. */
152
- parent: string;
153
- /**
154
- * The sending domain id, the final name segment; the server assigns one when
155
- * empty.
156
- */
157
- sendingDomainId?: string;
158
- /** The sending domain to create; only caller-writable fields are read. */
159
- sendingDomain: SendingDomain;
160
- /** Validate and return the result without writing anything. */
161
- validateOnly?: boolean;
162
- }
163
202
  /** The request of CreateSuppression. */
164
203
  export interface CreateSuppressionRequest {
165
204
  /** The parent to create in. */
@@ -199,6 +238,30 @@ export interface DeleteBroadcastRequest {
199
238
  /** Validate without deleting anything. */
200
239
  validateOnly?: boolean;
201
240
  }
241
+ /** The request of DeleteEmailDomain. */
242
+ export interface DeleteEmailDomainRequest {
243
+ /** The name of the email domain to delete. */
244
+ name: string;
245
+ /** Delete only if the current etag matches. */
246
+ etag?: string;
247
+ /** Succeed when the email domain does not exist. */
248
+ allowMissing?: boolean;
249
+ /** Validate without deleting anything. */
250
+ validateOnly?: boolean;
251
+ /** Also delete the domain's routes. */
252
+ force?: boolean;
253
+ }
254
+ /** The request of DeleteMailboxOauthApp. */
255
+ export interface DeleteMailboxOauthAppRequest {
256
+ /** The name of the mailbox OAuth app to delete. */
257
+ name: string;
258
+ /** Delete only if the current etag matches. */
259
+ etag?: string;
260
+ /** Succeed when the mailbox OAuth app does not exist. */
261
+ allowMissing?: boolean;
262
+ /** Validate without deleting anything. */
263
+ validateOnly?: boolean;
264
+ }
202
265
  /** The request of DeleteMailbox. */
203
266
  export interface DeleteMailboxRequest {
204
267
  /** The name of the mailbox to delete. */
@@ -239,24 +302,24 @@ export interface DeleteRecipientRequest {
239
302
  /** Also delete the recipient's preferences and inbox items. */
240
303
  force?: boolean;
241
304
  }
242
- /** The request of DeleteSender. */
243
- export interface DeleteSenderRequest {
244
- /** The name of the sender to delete. */
305
+ /** The request of DeleteRoute. */
306
+ export interface DeleteRouteRequest {
307
+ /** The name of the route to delete. */
245
308
  name: string;
246
309
  /** Delete only if the current etag matches. */
247
310
  etag?: string;
248
- /** Succeed when the sender does not exist. */
311
+ /** Succeed when the route does not exist. */
249
312
  allowMissing?: boolean;
250
313
  /** Validate without deleting anything. */
251
314
  validateOnly?: boolean;
252
315
  }
253
- /** The request of DeleteSendingDomain. */
254
- export interface DeleteSendingDomainRequest {
255
- /** The name of the sending domain to delete. */
316
+ /** The request of DeleteSender. */
317
+ export interface DeleteSenderRequest {
318
+ /** The name of the sender to delete. */
256
319
  name: string;
257
320
  /** Delete only if the current etag matches. */
258
321
  etag?: string;
259
- /** Succeed when the sending domain does not exist. */
322
+ /** Succeed when the sender does not exist. */
260
323
  allowMissing?: boolean;
261
324
  /** Validate without deleting anything. */
262
325
  validateOnly?: boolean;
@@ -283,7 +346,7 @@ export interface DeleteTemplateRequest {
283
346
  /** Validate without deleting anything. */
284
347
  validateOnly?: boolean;
285
348
  }
286
- /** A DNS record a Sending Domain needs. */
349
+ /** A DNS record an Email Domain needs. */
287
350
  export interface DnsRecord {
288
351
  /** The record type: `TXT`, `CNAME`, or `MX`. */
289
352
  readonly recordType?: string;
@@ -293,10 +356,12 @@ export interface DnsRecord {
293
356
  readonly value?: string;
294
357
  /** Whether the published value matches. */
295
358
  readonly verified?: boolean;
359
+ /** The MX preference; zero for other record types. */
360
+ readonly priority?: number;
296
361
  }
297
362
  /** Email content; bodies are Mustache templates. */
298
363
  export interface EmailContent {
299
- /** The From address; its domain is a verified Sending Domain. */
364
+ /** The From address; its domain is a verified Email Domain. */
300
365
  senderAddress?: string;
301
366
  /** The subject. */
302
367
  subject?: string;
@@ -307,6 +372,67 @@ export interface EmailContent {
307
372
  /** The From display name, for example the app's name. */
308
373
  senderName?: string;
309
374
  }
375
+ /**
376
+ * An Email Domain is an email domain Notify sends from and receives for. It
377
+ * sends only after its DKIM and SPF records verify; every email is DKIM-signed
378
+ * with the domain's non-exportable key from Sylphx Keys, rotated with overlap. It
379
+ * receives only after every MX record of the domain points at the platform.
380
+ * No key material is ever returned.
381
+ */
382
+ export interface EmailDomain {
383
+ /** `orgs/{org}/projects/{project}/envs/{env}/mail_domains/{mail_domain}`. */
384
+ name?: string;
385
+ /** `edm_<cell><ulid>`; never reused. */
386
+ readonly uid?: string;
387
+ /** Resource metadata. */
388
+ meta?: common.ResourceMeta;
389
+ /** Desired state. */
390
+ spec?: EmailDomainSpec;
391
+ /** Observed state. */
392
+ readonly status?: EmailDomainStatus;
393
+ }
394
+ /** The receiving half of an Email Domain. */
395
+ export interface EmailDomainReceiving {
396
+ /** Receive mail for the domain; needs every MX record at the platform. */
397
+ enabled?: boolean;
398
+ /** How the domain's mail reaches the platform; `ALL` when unset. */
399
+ mode?: EmailDomainReceivingMode;
400
+ }
401
+ /** The sending half of an Email Domain. */
402
+ export interface EmailDomainSending {
403
+ /** Send from the domain. Default true. */
404
+ enabled?: boolean;
405
+ }
406
+ /** EmailDomainSpec is the caller-writable state of an EmailDomain. */
407
+ export interface EmailDomainSpec {
408
+ /** The domain, for example `mail.example.com`. */
409
+ domain?: string;
410
+ /** The return-path (bounce) subdomain label; default `bounces`. */
411
+ returnPathLabel?: string;
412
+ /** Sending; the DKIM key and SPF include. Unset sends, as before. */
413
+ sending?: EmailDomainSending;
414
+ /** Receiving; the platform accepts mail for the domain. */
415
+ receiving?: EmailDomainReceiving;
416
+ }
417
+ /** EmailDomainStatus is the observed state of an EmailDomain. */
418
+ export interface EmailDomainStatus {
419
+ /** The generation this status was computed from. */
420
+ readonly observedGeneration?: string;
421
+ /** Ready, Reconciling, Stalled. */
422
+ readonly conditions?: common.Condition[];
423
+ /** Whether every required record verified; only a verified domain sends. */
424
+ readonly verified?: boolean;
425
+ /** When the records last verified. */
426
+ readonly verifyTime?: string;
427
+ /** The records to publish: DKIM, SPF, return path, DMARC. */
428
+ readonly dnsRecords?: DnsRecord[];
429
+ /** The DKIM selector in use. */
430
+ readonly dkimSelector?: string;
431
+ /** Whether the platform receives mail for the domain. */
432
+ readonly receivingState?: EmailDomainReceivingState;
433
+ /** When the MX records last verified. */
434
+ readonly receivingVerifyTime?: string;
435
+ }
310
436
  /** The request of EraseMailboxAddress. */
311
437
  export interface EraseMailboxAddressRequest {
312
438
  /** The name of the mailbox. */
@@ -324,6 +450,11 @@ export interface GetBroadcastRequest {
324
450
  /** The name of the broadcast to get. */
325
451
  name: string;
326
452
  }
453
+ /** The request of GetEmailDomain. */
454
+ export interface GetEmailDomainRequest {
455
+ /** The name of the email domain to get. */
456
+ name: string;
457
+ }
327
458
  /** The request of GetInboundEmail. */
328
459
  export interface GetInboundEmailRequest {
329
460
  /** The name of the inbound email to get. */
@@ -334,6 +465,16 @@ export interface GetInboxItemRequest {
334
465
  /** The name of the inbox item to get. */
335
466
  name: string;
336
467
  }
468
+ /** The request of GetMailboxConnectLink. */
469
+ export interface GetMailboxConnectLinkRequest {
470
+ /** The name of the mailbox connect link to get. */
471
+ name: string;
472
+ }
473
+ /** The request of GetMailboxOauthApp. */
474
+ export interface GetMailboxOauthAppRequest {
475
+ /** The name of the mailbox OAuth app to get. */
476
+ name: string;
477
+ }
337
478
  /** The request of GetMailbox. */
338
479
  export interface GetMailboxRequest {
339
480
  /** The name of the mailbox to get. */
@@ -354,16 +495,16 @@ export interface GetRecipientRequest {
354
495
  /** The name of the recipient to get. */
355
496
  name: string;
356
497
  }
498
+ /** The request of GetRoute. */
499
+ export interface GetRouteRequest {
500
+ /** The name of the route to get. */
501
+ name: string;
502
+ }
357
503
  /** The request of GetSender. */
358
504
  export interface GetSenderRequest {
359
505
  /** The name of the sender to get. */
360
506
  name: string;
361
507
  }
362
- /** The request of GetSendingDomain. */
363
- export interface GetSendingDomainRequest {
364
- /** The name of the sending domain to get. */
365
- name: string;
366
- }
367
508
  /** The request of GetSuppression. */
368
509
  export interface GetSuppressionRequest {
369
510
  /** The name of the suppression to get. */
@@ -483,6 +624,26 @@ export interface ListBroadcastsResponse {
483
624
  /** The token of the next page; empty on the last page. */
484
625
  nextPageToken?: string;
485
626
  }
627
+ /** The request of ListEmailDomains. */
628
+ export interface ListEmailDomainsRequest {
629
+ /** The parent to list in. */
630
+ parent: string;
631
+ /** At most this many; default 50, clamped to 1000. */
632
+ pageSize?: number;
633
+ /** `next_page_token` of the previous page. */
634
+ pageToken?: string;
635
+ /** AIP-160 filter over labels and filterable fields. */
636
+ filter?: string;
637
+ /** AIP-132 ordering over filterable fields. */
638
+ orderBy?: string;
639
+ }
640
+ /** The response of ListEmailDomains. */
641
+ export interface ListEmailDomainsResponse {
642
+ /** The page. */
643
+ emailDomains?: EmailDomain[];
644
+ /** The token of the next page; empty on the last page. */
645
+ nextPageToken?: string;
646
+ }
486
647
  /** The request of ListInboundEmails. */
487
648
  export interface ListInboundEmailsRequest {
488
649
  /** The mailbox to list in. */
@@ -523,6 +684,46 @@ export interface ListInboxItemsResponse {
523
684
  /** The token of the next page; empty on the last page. */
524
685
  nextPageToken?: string;
525
686
  }
687
+ /** The request of ListMailboxConnectLinks. */
688
+ export interface ListMailboxConnectLinksRequest {
689
+ /** The parent to list in. */
690
+ parent: string;
691
+ /** At most this many; default 50, clamped to 1000. */
692
+ pageSize?: number;
693
+ /** `next_page_token` of the previous page. */
694
+ pageToken?: string;
695
+ /** AIP-160 filter over labels and filterable fields. */
696
+ filter?: string;
697
+ /** AIP-132 ordering over filterable fields. */
698
+ orderBy?: string;
699
+ }
700
+ /** The response of ListMailboxConnectLinks. */
701
+ export interface ListMailboxConnectLinksResponse {
702
+ /** The page. */
703
+ mailboxConnectLinks?: MailboxConnectLink[];
704
+ /** The token of the next page; empty on the last page. */
705
+ nextPageToken?: string;
706
+ }
707
+ /** The request of ListMailboxOauthApps. */
708
+ export interface ListMailboxOauthAppsRequest {
709
+ /** The parent to list in. */
710
+ parent: string;
711
+ /** At most this many; default 50, clamped to 1000. */
712
+ pageSize?: number;
713
+ /** `next_page_token` of the previous page. */
714
+ pageToken?: string;
715
+ /** AIP-160 filter over labels and filterable fields. */
716
+ filter?: string;
717
+ /** AIP-132 ordering over filterable fields. */
718
+ orderBy?: string;
719
+ }
720
+ /** The response of ListMailboxOauthApps. */
721
+ export interface ListMailboxOauthAppsResponse {
722
+ /** The page. */
723
+ mailboxOauthApps?: MailboxOauthApp[];
724
+ /** The token of the next page; empty on the last page. */
725
+ nextPageToken?: string;
726
+ }
526
727
  /** The request of ListMailboxes. */
527
728
  export interface ListMailboxesRequest {
528
729
  /** The parent to list in. */
@@ -603,9 +804,9 @@ export interface ListRecipientsResponse {
603
804
  /** The token of the next page; empty on the last page. */
604
805
  nextPageToken?: string;
605
806
  }
606
- /** The request of ListSenders. */
607
- export interface ListSendersRequest {
608
- /** The parent to list in. */
807
+ /** The request of ListRoutes. */
808
+ export interface ListRoutesRequest {
809
+ /** The email domain to list in. */
609
810
  parent: string;
610
811
  /** At most this many; default 50, clamped to 1000. */
611
812
  pageSize?: number;
@@ -616,15 +817,15 @@ export interface ListSendersRequest {
616
817
  /** AIP-132 ordering over filterable fields. */
617
818
  orderBy?: string;
618
819
  }
619
- /** The response of ListSenders. */
620
- export interface ListSendersResponse {
820
+ /** The response of ListRoutes. */
821
+ export interface ListRoutesResponse {
621
822
  /** The page. */
622
- senders?: Sender[];
823
+ routes?: Route[];
623
824
  /** The token of the next page; empty on the last page. */
624
825
  nextPageToken?: string;
625
826
  }
626
- /** The request of ListSendingDomains. */
627
- export interface ListSendingDomainsRequest {
827
+ /** The request of ListSenders. */
828
+ export interface ListSendersRequest {
628
829
  /** The parent to list in. */
629
830
  parent: string;
630
831
  /** At most this many; default 50, clamped to 1000. */
@@ -636,10 +837,10 @@ export interface ListSendingDomainsRequest {
636
837
  /** AIP-132 ordering over filterable fields. */
637
838
  orderBy?: string;
638
839
  }
639
- /** The response of ListSendingDomains. */
640
- export interface ListSendingDomainsResponse {
840
+ /** The response of ListSenders. */
841
+ export interface ListSendersResponse {
641
842
  /** The page. */
642
- sendingDomains?: SendingDomain[];
843
+ senders?: Sender[];
643
844
  /** The token of the next page; empty on the last page. */
644
845
  nextPageToken?: string;
645
846
  }
@@ -697,7 +898,8 @@ export interface MailServer {
697
898
  /**
698
899
  * A Mailbox is an email address Notify reads from and sends as. A `CONNECTED`
699
900
  * 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
901
+ * only) and SMTP with its own login, either a password or an OAuth 2.0 grant
902
+ * (XOAUTH2) at Google or Microsoft; a `HOSTED` mailbox receives at an
701
903
  * address whose MX is Sylphx. Mail it receives becomes Inbound Email records.
702
904
  */
703
905
  export interface Mailbox {
@@ -712,6 +914,134 @@ export interface Mailbox {
712
914
  /** Observed state. */
713
915
  readonly status?: MailboxStatus;
714
916
  }
917
+ /**
918
+ * A Mailbox Connect Link is a hosted page that a platform customer's server
919
+ * mints with its own server key for one end user, who approves the
920
+ * provider's consent there. The mailbox it connects lives in the customer's
921
+ * environment, and the end user signs in to nothing of Sylphx and sees no
922
+ * Sylphx name. It is single use and expires (the Stripe Account Link model):
923
+ * pressing Continue on the page claims it, so a link preview's fetch does
924
+ * not; a claimed or expired link sends the end user to `refresh_url`, where
925
+ * the customer's server mints a new one.
926
+ */
927
+ export interface MailboxConnectLink {
928
+ /** `orgs/{org}/projects/{project}/envs/{env}/mailbox_connect_links/{mailbox_connect_link}`. */
929
+ name?: string;
930
+ /** `mcl_<cell><ulid>`; never reused. */
931
+ readonly uid?: string;
932
+ /** Resource metadata; labels may carry the customer's own end-user id. */
933
+ meta?: common.ResourceMeta;
934
+ /**
935
+ * The provider whose consent the page opens; the environment needs that
936
+ * provider's Mailbox OAuth App.
937
+ */
938
+ provider?: MailboxOauthProvider;
939
+ /**
940
+ * The mailbox to reconnect, keeping its id and feed; it must be signed in
941
+ * as the same address. Empty creates a new connected mailbox.
942
+ */
943
+ mailbox?: string;
944
+ /** The id of the new mailbox; the server assigns one when empty. */
945
+ mailboxId?: string;
946
+ /** The From display name of the new mailbox. */
947
+ displayName?: string;
948
+ /**
949
+ * The new mailbox reads mail received on or after this day on its first
950
+ * poll.
951
+ */
952
+ backfillStartTime?: string;
953
+ /**
954
+ * The address to suggest on the consent screen (`login_hint`); the
955
+ * mailbox takes the address the provider confirms, whatever this says.
956
+ */
957
+ loginHint?: string;
958
+ /**
959
+ * Where the end user lands when done, HTTPS, with `connect_link={id}` and
960
+ * `result=connected` or `result=failed` added to the query. The query
961
+ * proves nothing: read the link back with your key for the outcome.
962
+ */
963
+ returnUrl?: string;
964
+ /**
965
+ * Where a claimed or expired link sends the end user, HTTPS; your server
966
+ * mints a new link there. Empty shows a page saying the link has expired.
967
+ */
968
+ refreshUrl?: string;
969
+ /** How long the link stays open; default 1 hour, at most 7 days. */
970
+ ttl?: string;
971
+ /**
972
+ * The link to hand the end user. It is a bearer secret: only the create
973
+ * call returns it, and only its hash is stored.
974
+ */
975
+ readonly url?: string;
976
+ /** The lifecycle state. */
977
+ readonly state?: MailboxConnectLinkState;
978
+ /** When it expires. */
979
+ readonly expireTime?: string;
980
+ /** When the end user finished, connected or failed. */
981
+ readonly completeTime?: string;
982
+ /** The mailbox it connected or reconnected. */
983
+ readonly connectedMailbox?: string;
984
+ /** The address the provider confirmed. */
985
+ readonly address?: string;
986
+ /**
987
+ * Why it failed: `consent_denied`, `scope_missing` (the end user unticked a
988
+ * scope), `address_mismatch` (a reconnect signed in as another address),
989
+ * `address_in_use` (another mailbox of the environment has the address),
990
+ * `plan_limit_reached`, or `provider_error`.
991
+ */
992
+ readonly errorCode?: string;
993
+ }
994
+ /**
995
+ * A Mailbox OAuth App is the platform customer's own OAuth client at Google
996
+ * or Microsoft. End users consent to it, so the consent screen names the
997
+ * customer's app and never Sylphx, and every `OAUTH` mailbox of its provider
998
+ * in the environment refreshes its grant against it. An environment has at
999
+ * most one per provider.
1000
+ */
1001
+ export interface MailboxOauthApp {
1002
+ /** `orgs/{org}/projects/{project}/envs/{env}/mailbox_oauth_apps/{mailbox_oauth_app}`. */
1003
+ name?: string;
1004
+ /** `moa_<cell><ulid>`; never reused. */
1005
+ readonly uid?: string;
1006
+ /** Resource metadata. */
1007
+ meta?: common.ResourceMeta;
1008
+ /** Desired state. */
1009
+ spec?: MailboxOauthAppSpec;
1010
+ /** Observed state. */
1011
+ readonly status?: MailboxOauthAppStatus;
1012
+ }
1013
+ /** MailboxOauthAppSpec is the caller-writable state of a Mailbox OAuth App. */
1014
+ export interface MailboxOauthAppSpec {
1015
+ /** The provider. */
1016
+ provider?: MailboxOauthProvider;
1017
+ /** The client id the provider issued. */
1018
+ clientId?: string;
1019
+ /** The client secret; write-only, sealed at rest, never returned. */
1020
+ clientSecret?: string;
1021
+ /**
1022
+ * Microsoft only: who may consent, `common` (the default: any work, school
1023
+ * or personal account), `organizations`, `consumers`, or one tenant id.
1024
+ */
1025
+ tenant?: string;
1026
+ }
1027
+ /** MailboxOauthAppStatus is the observed state of a Mailbox OAuth App. */
1028
+ export interface MailboxOauthAppStatus {
1029
+ /** The generation this status was computed from. */
1030
+ readonly observedGeneration?: string;
1031
+ /** Ready, Reconciling, Stalled. */
1032
+ readonly conditions?: common.Condition[];
1033
+ /** Whether a client secret is stored. */
1034
+ readonly clientSecretSet?: boolean;
1035
+ /** The redirect URI to register on the provider's client. */
1036
+ readonly redirectUri?: string;
1037
+ /**
1038
+ * The scopes a connect link asks for: Google `https://mail.google.com/`
1039
+ * (a restricted scope: a public app needs Google's verification), and
1040
+ * Microsoft `IMAP.AccessAsUser.All`, `SMTP.Send` and `offline_access`, each
1041
+ * with `openid email` to learn the address.
1042
+ */
1043
+ readonly scopes?: string[];
1044
+ }
715
1045
  /** MailboxSpec is the caller-writable state of a Mailbox. */
716
1046
  export interface MailboxSpec {
717
1047
  /** Connected or hosted. */
@@ -735,6 +1065,23 @@ export interface MailboxSpec {
735
1065
  backfillStartTime?: string;
736
1066
  /** Poll and send; a disabled mailbox keeps its records. */
737
1067
  enabled?: boolean;
1068
+ /** How a connected mailbox logs in to both servers; unset means `PASSWORD`. */
1069
+ authKind?: MailboxAuthKind;
1070
+ /**
1071
+ * The OAuth provider, for `OAUTH`; the environment's Mailbox OAuth App of
1072
+ * this provider is the client the grant belongs to. With `imap` or `smtp`
1073
+ * unset the provider's own servers are used: Google `imap.gmail.com:993`
1074
+ * and `smtp.gmail.com:465`, Microsoft `outlook.office365.com:993` and
1075
+ * `smtp.office365.com:587` (STARTTLS).
1076
+ */
1077
+ oauthProvider?: MailboxOauthProvider;
1078
+ /**
1079
+ * The OAuth refresh token, for `OAUTH`; write-only, sealed at rest like the
1080
+ * password, never returned. A connect link sets it without the caller ever
1081
+ * holding it; a caller that ran its own consent may set it directly, when
1082
+ * the token was issued to the environment's Mailbox OAuth App.
1083
+ */
1084
+ oauthRefreshToken?: string;
738
1085
  }
739
1086
  /** MailboxStatus is the observed state of a Mailbox. */
740
1087
  export interface MailboxStatus {
@@ -750,6 +1097,16 @@ export interface MailboxStatus {
750
1097
  readonly lastError?: string;
751
1098
  /** The Sent folder found on the server. */
752
1099
  readonly sentFolder?: string;
1100
+ /** Whether an OAuth refresh token is stored. */
1101
+ readonly oauthRefreshTokenSet?: boolean;
1102
+ /** The scopes the provider granted. */
1103
+ readonly oauthScopes?: string[];
1104
+ /**
1105
+ * The provider refused the refresh token (revoked, expired, or the
1106
+ * account's password changed): the mailbox neither polls nor sends until a
1107
+ * connect link naming it, or a new `oauth_refresh_token`, reconnects it.
1108
+ */
1109
+ readonly reconnectRequired?: boolean;
753
1110
  }
754
1111
  /** The request of MarkInboxItemRead. */
755
1112
  export interface MarkInboxItemReadRequest {
@@ -811,7 +1168,7 @@ export interface Message {
811
1168
  readonly capture?: MessageCapture;
812
1169
  /**
813
1170
  * Send as this mailbox (its address, display name and, for a connected
814
- * mailbox, its own SMTP) instead of a verified Sending Domain.
1171
+ * mailbox, its own SMTP) instead of a verified Email Domain.
815
1172
  */
816
1173
  mailbox?: string;
817
1174
  /**
@@ -890,7 +1247,7 @@ export interface PushDevice {
890
1247
  export interface PushSender {
891
1248
  /** The push platform. */
892
1249
  platform?: PushPlatform;
893
- /** The Kernel Connection holding the APNs, FCM, or VAPID credentials. */
1250
+ /** The Connection holding the APNs, FCM, or VAPID credentials. */
894
1251
  connection?: string;
895
1252
  /** The bundle id, package name, or web origin. */
896
1253
  appKey?: string;
@@ -926,6 +1283,66 @@ export interface Recipient {
926
1283
  */
927
1284
  test?: boolean;
928
1285
  }
1286
+ /**
1287
+ * A Route sends the mail a receiving Email Domain accepts for one address, a
1288
+ * pattern of addresses, or every other address to actions: deliver to
1289
+ * mailboxes, forward, or reject. Every accepted message also publishes
1290
+ * `sylphx.notify.inbound_email.received`.
1291
+ */
1292
+ export interface Route {
1293
+ /** `orgs/{org}/projects/{project}/envs/{env}/mail_domains/{mail_domain}/mail_routes/{mail_route}`. */
1294
+ name?: string;
1295
+ /** `rte_<cell><ulid>`; never reused. */
1296
+ readonly uid?: string;
1297
+ /** Resource metadata. */
1298
+ meta?: common.ResourceMeta;
1299
+ /** Desired state. */
1300
+ spec?: RouteSpec;
1301
+ /** Observed state. */
1302
+ readonly status?: RouteStatus;
1303
+ }
1304
+ /** One thing a Route does with mail; exactly one. */
1305
+ export interface RouteAction {
1306
+ /** Deliver to a mailbox of the environment. */
1307
+ mailbox?: string;
1308
+ /** Forward to an address. */
1309
+ forward?: string;
1310
+ /** Refuse at the recipient step with this message; stands alone. */
1311
+ reject?: string;
1312
+ }
1313
+ /** Which recipients a Route matches; exactly one. */
1314
+ export interface RouteMatch {
1315
+ /**
1316
+ * A local part, for example `support`. A local part with a `+tag` also
1317
+ * matches its route.
1318
+ */
1319
+ address?: string;
1320
+ /** A glob on the local part, for example `billing-*`. */
1321
+ pattern?: string;
1322
+ /** Every local part no other route matches. */
1323
+ catchAll?: boolean;
1324
+ }
1325
+ /** RouteSpec is the caller-writable state of a Route. */
1326
+ export interface RouteSpec {
1327
+ /** Which recipients the route matches. */
1328
+ match?: RouteMatch;
1329
+ /**
1330
+ * What happens to the mail: one or more mailbox and forward actions, or one
1331
+ * reject.
1332
+ */
1333
+ actions?: RouteAction[];
1334
+ /** What happens to mail the spam filter judges spam; `DELIVER` when unset. */
1335
+ spam?: RouteSpamPolicy;
1336
+ /** A disabled route matches nothing. */
1337
+ enabled?: boolean;
1338
+ }
1339
+ /** RouteStatus is the observed state of a Route. */
1340
+ export interface RouteStatus {
1341
+ /** The generation this status was computed from. */
1342
+ readonly observedGeneration?: string;
1343
+ /** Ready, Reconciling, Stalled. */
1344
+ readonly conditions?: common.Condition[];
1345
+ }
929
1346
  /** The request of SendBroadcast. */
930
1347
  export interface SendBroadcastRequest {
931
1348
  /** The name of the broadcast. */
@@ -947,8 +1364,8 @@ export interface SendLimit {
947
1364
  }
948
1365
  /**
949
1366
  * A Sender is a verified origin for SMS or push: a registered number or sender
950
- * id, or a push app whose APNs/FCM credentials are a Kernel Connection reached
951
- * through the Broker. It is used only once verified.
1367
+ * id, or a push app whose APNs/FCM credentials are a Connection reached
1368
+ * through the credential service. It is used only once verified.
952
1369
  */
953
1370
  export interface Sender {
954
1371
  /** `orgs/{org}/projects/{project}/envs/{env}/senders/{sender}`. */
@@ -980,46 +1397,6 @@ export interface SenderStatus {
980
1397
  /** Why the sender is not verified, when it is not. */
981
1398
  readonly verificationNote?: string;
982
1399
  }
983
- /**
984
- * A Sending Domain is an email domain Notify sends from. It sends only after
985
- * its DNS records verify; every email is DKIM-signed with the domain's
986
- * non-exportable Kernel Key, rotated with overlap. No key material is ever
987
- * returned.
988
- */
989
- export interface SendingDomain {
990
- /** `orgs/{org}/projects/{project}/envs/{env}/sending_domains/{sending_domain}`. */
991
- name?: string;
992
- /** `sdm_<cell><ulid>`; never reused. */
993
- readonly uid?: string;
994
- /** Resource metadata. */
995
- meta?: common.ResourceMeta;
996
- /** Desired state. */
997
- spec?: SendingDomainSpec;
998
- /** Observed state. */
999
- readonly status?: SendingDomainStatus;
1000
- }
1001
- /** SendingDomainSpec is the caller-writable state of a SendingDomain. */
1002
- export interface SendingDomainSpec {
1003
- /** The domain, for example `mail.example.com`. */
1004
- domain?: string;
1005
- /** The return-path (bounce) subdomain label; default `bounces`. */
1006
- returnPathLabel?: string;
1007
- }
1008
- /** SendingDomainStatus is the observed state of a SendingDomain. */
1009
- export interface SendingDomainStatus {
1010
- /** The generation this status was computed from. */
1011
- readonly observedGeneration?: string;
1012
- /** Ready, Reconciling, Stalled. */
1013
- readonly conditions?: common.Condition[];
1014
- /** Whether every required record verified; only a verified domain sends. */
1015
- readonly verified?: boolean;
1016
- /** When the records last verified. */
1017
- readonly verifyTime?: string;
1018
- /** The records to publish: DKIM, SPF, return path, DMARC. */
1019
- readonly dnsRecords?: DnsRecord[];
1020
- /** The DKIM selector in use. */
1021
- readonly dkimSelector?: string;
1022
- }
1023
1400
  /** SMS content. */
1024
1401
  export interface SmsContent {
1025
1402
  /** The SMS Sender. */
@@ -1111,6 +1488,28 @@ export interface UpdateBroadcastRequest {
1111
1488
  /** Validate and return the result without writing anything. */
1112
1489
  validateOnly?: boolean;
1113
1490
  }
1491
+ /** The request of UpdateEmailDomain. */
1492
+ export interface UpdateEmailDomainRequest {
1493
+ /** The email domain to update; `name` identifies it. */
1494
+ emailDomain: EmailDomain;
1495
+ /** The fields to write; unset writes every populated field. */
1496
+ updateMask?: string;
1497
+ /** Create the email domain when it does not exist (declarative upsert). */
1498
+ allowMissing?: boolean;
1499
+ /** Validate and return the result without writing anything. */
1500
+ validateOnly?: boolean;
1501
+ }
1502
+ /** The request of UpdateMailboxOauthApp. */
1503
+ export interface UpdateMailboxOauthAppRequest {
1504
+ /** The mailbox OAuth app to update; `name` identifies it. */
1505
+ mailboxOauthApp: MailboxOauthApp;
1506
+ /** The fields to write; unset writes every populated field. */
1507
+ updateMask?: string;
1508
+ /** Create the mailbox OAuth app when it does not exist (declarative upsert). */
1509
+ allowMissing?: boolean;
1510
+ /** Validate and return the result without writing anything. */
1511
+ validateOnly?: boolean;
1512
+ }
1114
1513
  /** The request of UpdateMailbox. */
1115
1514
  export interface UpdateMailboxRequest {
1116
1515
  /** The mailbox to update; `name` identifies it. */
@@ -1144,24 +1543,24 @@ export interface UpdateRecipientRequest {
1144
1543
  /** Validate and return the result without writing anything. */
1145
1544
  validateOnly?: boolean;
1146
1545
  }
1147
- /** The request of UpdateSender. */
1148
- export interface UpdateSenderRequest {
1149
- /** The sender to update; `name` identifies it. */
1150
- sender: Sender;
1546
+ /** The request of UpdateRoute. */
1547
+ export interface UpdateRouteRequest {
1548
+ /** The route to update; `name` identifies it. */
1549
+ route: Route;
1151
1550
  /** The fields to write; unset writes every populated field. */
1152
1551
  updateMask?: string;
1153
- /** Create the sender when it does not exist (declarative upsert). */
1552
+ /** Create the route when it does not exist (declarative upsert). */
1154
1553
  allowMissing?: boolean;
1155
1554
  /** Validate and return the result without writing anything. */
1156
1555
  validateOnly?: boolean;
1157
1556
  }
1158
- /** The request of UpdateSendingDomain. */
1159
- export interface UpdateSendingDomainRequest {
1160
- /** The sending domain to update; `name` identifies it. */
1161
- sendingDomain: SendingDomain;
1557
+ /** The request of UpdateSender. */
1558
+ export interface UpdateSenderRequest {
1559
+ /** The sender to update; `name` identifies it. */
1560
+ sender: Sender;
1162
1561
  /** The fields to write; unset writes every populated field. */
1163
1562
  updateMask?: string;
1164
- /** Create the sending domain when it does not exist (declarative upsert). */
1563
+ /** Create the sender when it does not exist (declarative upsert). */
1165
1564
  allowMissing?: boolean;
1166
1565
  /** Validate and return the result without writing anything. */
1167
1566
  validateOnly?: boolean;
@@ -1177,47 +1576,60 @@ export interface UpdateTemplateRequest {
1177
1576
  /** Validate and return the result without writing anything. */
1178
1577
  validateOnly?: boolean;
1179
1578
  }
1579
+ /** The request of VerifyEmailDomain. */
1580
+ export interface VerifyEmailDomainRequest {
1581
+ /** The name of the email domain. */
1582
+ name: string;
1583
+ }
1180
1584
  /** The request of VerifySender. */
1181
1585
  export interface VerifySenderRequest {
1182
1586
  /** The name of the sender. */
1183
1587
  name: string;
1184
1588
  }
1185
- /** The request of VerifySendingDomain. */
1186
- export interface VerifySendingDomainRequest {
1187
- /** The name of the sending domain. */
1188
- name: string;
1189
- }
1190
1589
  /** The progress of a Broadcast. */
1191
1590
  export type BroadcastState = 'draft' | 'scheduled' | 'sending' | 'sent' | 'cancelled' | (string & {});
1192
1591
  /** A Notify channel. */
1193
1592
  export type Channel = 'email' | 'sms' | 'push' | 'inbox' | (string & {});
1194
1593
  /** The state of one channel delivery. */
1195
1594
  export type ChannelDeliveryState = 'pending' | 'sent' | 'delivered' | 'bounced' | 'failed' | 'skipped' | 'captured' | 'suppressed' | (string & {});
1595
+ /** How an Email Domain's mail reaches the platform. */
1596
+ export type EmailDomainReceivingMode = 'all' | (string & {});
1597
+ /** Whether the platform receives mail for an Email Domain. */
1598
+ export type EmailDomainReceivingState = 'disabled' | 'pending' | 'verified' | 'degraded' | (string & {});
1196
1599
  /** Whether an Inbound Email came in or went out. */
1197
1600
  export type InboundEmailDirection = 'received' | 'sent' | (string & {});
1198
1601
  /** The state of an inbox item. */
1199
1602
  export type InboxItemState = 'unread' | 'read' | 'archived' | (string & {});
1200
1603
  /** How a mail server connection is secured. */
1201
1604
  export type MailServerSecurity = 'tls' | 'starttls' | (string & {});
1605
+ /** How a connected Mailbox logs in. */
1606
+ export type MailboxAuthKind = 'password' | 'oauth' | (string & {});
1607
+ /** The lifecycle of a Mailbox Connect Link. */
1608
+ export type MailboxConnectLinkState = 'pending' | 'claimed' | 'connected' | 'failed' | 'expired' | (string & {});
1202
1609
  /** How a Mailbox receives mail. */
1203
1610
  export type MailboxKind = 'connected' | 'hosted' | (string & {});
1611
+ /** An OAuth provider of connected mailboxes. */
1612
+ export type MailboxOauthProvider = 'google' | 'microsoft' | (string & {});
1204
1613
  /** The state of a Message. */
1205
1614
  export type MessageState = 'accepted' | 'suppressed' | 'delivering' | 'delivered' | 'failed' | 'cancelled' | 'rate_limited' | (string & {});
1206
1615
  /** A push platform. */
1207
1616
  export type PushPlatform = 'apns' | 'fcm' | 'web_push' | (string & {});
1617
+ /** What happens to mail judged spam on a Route. */
1618
+ export type RouteSpamPolicy = 'deliver' | 'drop' | 'reject' | (string & {});
1208
1619
  /** Why an address is suppressed. */
1209
1620
  export type SuppressionReason = 'bounce' | 'complaint' | 'carrier_opt_out' | 'unsubscribe' | 'uninstalled' | 'manual' | (string & {});
1210
1621
  /**
1211
1622
  * NotifyService is Sylphx Notify: messages to people over email, SMS, push,
1212
- * and in-app inbox, with preferences, suppression, templates, and broadcasts
1213
- * (docs/services/notify/vision.md). Notify is built on Sylphx Events as an
1214
- * ordinary customer.
1623
+ * and in-app inbox, with preferences, suppression, templates, and broadcasts.
1624
+ * Notify is built on Sylphx Events as an ordinary customer.
1215
1625
  *
1216
1626
  * Namespace of Sylphx Notify on `Sylphx`.
1217
1627
  */
1218
1628
  export declare class NotifyApi {
1219
- /** The `sending_domains` collection. */
1220
- readonly sendingDomains: SendingDomainsCollection;
1629
+ /** The `mail_domains` collection. */
1630
+ readonly mailDomains: MailDomainsCollection;
1631
+ /** The `mail_routes` collection. */
1632
+ readonly mailRoutes: MailRoutesCollection;
1221
1633
  /** The `senders` collection. */
1222
1634
  readonly senders: SendersCollection;
1223
1635
  /** The `recipients` collection. */
@@ -1232,6 +1644,10 @@ export declare class NotifyApi {
1232
1644
  readonly messages: MessagesCollection;
1233
1645
  /** The `mailboxes` collection. */
1234
1646
  readonly mailboxes: MailboxesCollection;
1647
+ /** The `mailbox_oauth_apps` collection. */
1648
+ readonly mailboxOauthApps: MailboxOauthAppsCollection;
1649
+ /** The `mailbox_connect_links` collection. */
1650
+ readonly mailboxConnectLinks: MailboxConnectLinksCollection;
1235
1651
  /** The `inbound_emails` collection. */
1236
1652
  readonly inboundEmails: InboundEmailsCollection;
1237
1653
  /** The `inbox_items` collection. */
@@ -1240,60 +1656,107 @@ export declare class NotifyApi {
1240
1656
  readonly broadcasts: BroadcastsCollection;
1241
1657
  constructor(client: runtime.Client);
1242
1658
  }
1243
- /** `sending_domains` of Sylphx Notify: Resource type `notify.sylphx.com/SendingDomain`. */
1244
- export declare class SendingDomainsCollection {
1659
+ /** `mail_domains` of Sylphx Notify: Resource type `notify.sylphx.com/EmailDomain`. */
1660
+ export declare class MailDomainsCollection {
1245
1661
  private readonly client;
1246
1662
  constructor(client: runtime.Client);
1247
1663
  /**
1248
- * Gets a sending domain.
1664
+ * Gets an email domain.
1249
1665
  *
1250
- * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/sending_domains/*}` · permission `notify:read` · effect `read`
1666
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*}` · permission `notify:read` · effect `read`
1251
1667
  *
1252
1668
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1253
1669
  */
1254
- get(request: GetSendingDomainRequest): Promise<SendingDomain>;
1670
+ get(request: GetEmailDomainRequest): Promise<EmailDomain>;
1255
1671
  /**
1256
- * Lists sending domains.
1672
+ * Lists email domains.
1257
1673
  *
1258
- * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/sending_domains` · permission `notify:read` · effect `read`
1674
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/mail_domains` · permission `notify:read` · effect `read`
1259
1675
  *
1260
1676
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1261
1677
  */
1262
- list(request: ListSendingDomainsRequest): Promise<ListSendingDomainsResponse>;
1678
+ list(request: ListEmailDomainsRequest): Promise<ListEmailDomainsResponse>;
1263
1679
  /** Every item of every page of `list`. */
1264
- listAll(request: ListSendingDomainsRequest): AsyncGenerator<SendingDomain>;
1680
+ listAll(request: ListEmailDomainsRequest): AsyncGenerator<EmailDomain>;
1265
1681
  /**
1266
- * Creates a sending domain.
1682
+ * Creates an email domain.
1267
1683
  *
1268
- * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/sending_domains` · permission `notify:write` · effect `write`
1684
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/mail_domains` · permission `notify:write` · effect `write`
1269
1685
  *
1270
1686
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1271
1687
  */
1272
- create(request: CreateSendingDomainRequest): Promise<SendingDomain>;
1688
+ create(request: CreateEmailDomainRequest): Promise<EmailDomain>;
1273
1689
  /**
1274
- * Updates a sending domain.
1690
+ * Updates an email domain.
1275
1691
  *
1276
- * `PATCH /v1/{sending_domain.name=orgs/*\/projects/*\/envs/*\/sending_domains/*}` · permission `notify:write` · effect `write`
1692
+ * `PATCH /v1/{email_domain.name=orgs/*\/projects/*\/envs/*\/mail_domains/*}` · permission `notify:write` · effect `write`
1277
1693
  *
1278
1694
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1279
1695
  */
1280
- update(request: UpdateSendingDomainRequest): Promise<SendingDomain>;
1696
+ update(request: UpdateEmailDomainRequest): Promise<EmailDomain>;
1281
1697
  /**
1282
- * Deletes a sending domain.
1698
+ * Deletes an email domain.
1283
1699
  *
1284
- * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/sending_domains/*}` · permission `notify:write` · effect `destructive`
1700
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*}` · permission `notify:write` · effect `destructive`
1285
1701
  *
1286
1702
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1287
1703
  */
1288
- delete(request: DeleteSendingDomainRequest): Promise<Record<string, never>>;
1704
+ delete(request: DeleteEmailDomainRequest): Promise<Record<string, never>>;
1289
1705
  /**
1290
1706
  * Checks the domain's DNS records now instead of on the next sweep.
1291
1707
  *
1292
- * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/sending_domains/*}:verify` · permission `notify:write` · effect `write`
1708
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*}:verify` · permission `notify:write` · effect `write`
1293
1709
  *
1294
1710
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `RATE_LIMITED`.
1295
1711
  */
1296
- verify(request: VerifySendingDomainRequest): Promise<SendingDomain>;
1712
+ verify(request: VerifyEmailDomainRequest): Promise<EmailDomain>;
1713
+ }
1714
+ /** `mail_routes` of Sylphx Notify: Resource type `notify.sylphx.com/Route`. */
1715
+ export declare class MailRoutesCollection {
1716
+ private readonly client;
1717
+ constructor(client: runtime.Client);
1718
+ /**
1719
+ * Gets a route.
1720
+ *
1721
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*\/mail_routes/*}` · permission `notify:read` · effect `read`
1722
+ *
1723
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1724
+ */
1725
+ get(request: GetRouteRequest): Promise<Route>;
1726
+ /**
1727
+ * Lists an email domain's routes.
1728
+ *
1729
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/mail_domains/*}/mail_routes` · permission `notify:read` · effect `read`
1730
+ *
1731
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1732
+ */
1733
+ list(request: ListRoutesRequest): Promise<ListRoutesResponse>;
1734
+ /** Every item of every page of `list`. */
1735
+ listAll(request: ListRoutesRequest): AsyncGenerator<Route>;
1736
+ /**
1737
+ * Creates a route.
1738
+ *
1739
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*\/mail_domains/*}/mail_routes` · permission `notify:write` · effect `write`
1740
+ *
1741
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1742
+ */
1743
+ create(request: CreateRouteRequest): Promise<Route>;
1744
+ /**
1745
+ * Updates a route.
1746
+ *
1747
+ * `PATCH /v1/{route.name=orgs/*\/projects/*\/envs/*\/mail_domains/*\/mail_routes/*}` · permission `notify:write` · effect `write`
1748
+ *
1749
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1750
+ */
1751
+ update(request: UpdateRouteRequest): Promise<Route>;
1752
+ /**
1753
+ * Deletes a route.
1754
+ *
1755
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*\/mail_routes/*}` · permission `notify:write` · effect `destructive`
1756
+ *
1757
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`.
1758
+ */
1759
+ delete(request: DeleteRouteRequest): Promise<Record<string, never>>;
1297
1760
  }
1298
1761
  /** `senders` of Sylphx Notify: Resource type `notify.sylphx.com/Sender`. */
1299
1762
  export declare class SendersCollection {
@@ -1618,6 +2081,85 @@ export declare class MailboxesCollection {
1618
2081
  */
1619
2082
  eraseAddress(request: EraseMailboxAddressRequest): Promise<EraseMailboxAddressResponse>;
1620
2083
  }
2084
+ /** `mailbox_oauth_apps` of Sylphx Notify: Resource type `notify.sylphx.com/MailboxOauthApp`. */
2085
+ export declare class MailboxOauthAppsCollection {
2086
+ private readonly client;
2087
+ constructor(client: runtime.Client);
2088
+ /**
2089
+ * Gets a mailbox OAuth app.
2090
+ *
2091
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailbox_oauth_apps/*}` · permission `notify:read` · effect `read`
2092
+ *
2093
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
2094
+ */
2095
+ get(request: GetMailboxOauthAppRequest): Promise<MailboxOauthApp>;
2096
+ /**
2097
+ * Lists mailbox OAuth apps.
2098
+ *
2099
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/mailbox_oauth_apps` · permission `notify:read` · effect `read`
2100
+ *
2101
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
2102
+ */
2103
+ list(request: ListMailboxOauthAppsRequest): Promise<ListMailboxOauthAppsResponse>;
2104
+ /** Every item of every page of `list`. */
2105
+ listAll(request: ListMailboxOauthAppsRequest): AsyncGenerator<MailboxOauthApp>;
2106
+ /**
2107
+ * Creates a mailbox OAuth app.
2108
+ *
2109
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/mailbox_oauth_apps` · permission `notify:write` · effect `write`
2110
+ *
2111
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
2112
+ */
2113
+ create(request: CreateMailboxOauthAppRequest): Promise<MailboxOauthApp>;
2114
+ /**
2115
+ * Updates a mailbox OAuth app.
2116
+ *
2117
+ * `PATCH /v1/{mailbox_oauth_app.name=orgs/*\/projects/*\/envs/*\/mailbox_oauth_apps/*}` · permission `notify:write` · effect `write`
2118
+ *
2119
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
2120
+ */
2121
+ update(request: UpdateMailboxOauthAppRequest): Promise<MailboxOauthApp>;
2122
+ /**
2123
+ * Deletes a mailbox OAuth app; refused while a mailbox uses it.
2124
+ *
2125
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mailbox_oauth_apps/*}` · permission `notify:write` · effect `destructive`
2126
+ *
2127
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `RESOURCE_IN_USE`.
2128
+ */
2129
+ delete(request: DeleteMailboxOauthAppRequest): Promise<Record<string, never>>;
2130
+ }
2131
+ /** `mailbox_connect_links` of Sylphx Notify: Resource type `notify.sylphx.com/MailboxConnectLink`. */
2132
+ export declare class MailboxConnectLinksCollection {
2133
+ private readonly client;
2134
+ constructor(client: runtime.Client);
2135
+ /**
2136
+ * Gets a mailbox connect link.
2137
+ *
2138
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailbox_connect_links/*}` · permission `notify:read` · effect `read`
2139
+ *
2140
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
2141
+ */
2142
+ get(request: GetMailboxConnectLinkRequest): Promise<MailboxConnectLink>;
2143
+ /**
2144
+ * Lists mailbox connect links.
2145
+ *
2146
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/mailbox_connect_links` · permission `notify:read` · effect `read`
2147
+ *
2148
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
2149
+ */
2150
+ list(request: ListMailboxConnectLinksRequest): Promise<ListMailboxConnectLinksResponse>;
2151
+ /** Every item of every page of `list`. */
2152
+ listAll(request: ListMailboxConnectLinksRequest): AsyncGenerator<MailboxConnectLink>;
2153
+ /**
2154
+ * Mints a mailbox connect link for one end user; the response carries its
2155
+ * `url`, which no later call returns.
2156
+ *
2157
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/mailbox_connect_links` · permission `notify:write` · effect `write`
2158
+ *
2159
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
2160
+ */
2161
+ create(request: CreateMailboxConnectLinkRequest): Promise<MailboxConnectLink>;
2162
+ }
1621
2163
  /** `inbound_emails` of Sylphx Notify: Resource type `notify.sylphx.com/InboundEmail`. */
1622
2164
  export declare class InboundEmailsCollection {
1623
2165
  private readonly client;