@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.
Files changed (100) hide show
  1. package/README.md +123 -0
  2. package/dist/access.d.ts +126 -20
  3. package/dist/access.js +111 -15
  4. package/dist/access.js.map +1 -1
  5. package/dist/ai.d.ts +1 -2
  6. package/dist/ai.js +2 -3
  7. package/dist/ai.js.map +1 -1
  8. package/dist/artifacts.d.ts +1 -1
  9. package/dist/artifacts.js +2 -2
  10. package/dist/assets.d.ts +447 -0
  11. package/dist/assets.js +266 -0
  12. package/dist/assets.js.map +1 -0
  13. package/dist/auth/client.d.ts +239 -0
  14. package/dist/auth/client.js +337 -0
  15. package/dist/auth/client.js.map +1 -0
  16. package/dist/auth/verify.d.ts +92 -0
  17. package/dist/auth/verify.js +207 -0
  18. package/dist/auth/verify.js.map +1 -0
  19. package/dist/auth.d.ts +455 -7
  20. package/dist/auth.js +416 -5
  21. package/dist/auth.js.map +1 -1
  22. package/dist/billing.d.ts +113 -17
  23. package/dist/billing.js +45 -5
  24. package/dist/billing.js.map +1 -1
  25. package/dist/broker.d.ts +5 -4
  26. package/dist/broker.js +3 -3
  27. package/dist/broker.js.map +1 -1
  28. package/dist/build.d.ts +4 -4
  29. package/dist/build.js +3 -3
  30. package/dist/common.d.ts +1 -1
  31. package/dist/common.js +1 -1
  32. package/dist/config/flags.d.ts +140 -0
  33. package/dist/config/flags.js +462 -0
  34. package/dist/config/flags.js.map +1 -0
  35. package/dist/config.d.ts +380 -15
  36. package/dist/config.js +283 -5
  37. package/dist/config.js.map +1 -1
  38. package/dist/connections.d.ts +6 -6
  39. package/dist/connections.js +3 -3
  40. package/dist/data.d.ts +844 -8
  41. package/dist/data.js +779 -5
  42. package/dist/data.js.map +1 -1
  43. package/dist/entitlement.d.ts +18 -9
  44. package/dist/entitlement.js +4 -4
  45. package/dist/entitlement.js.map +1 -1
  46. package/dist/events/realtime.d.ts +69 -0
  47. package/dist/events/realtime.js +107 -0
  48. package/dist/events/realtime.js.map +1 -0
  49. package/dist/events/webhooks.d.ts +40 -0
  50. package/dist/events/webhooks.js +110 -0
  51. package/dist/events/webhooks.js.map +1 -0
  52. package/dist/events.d.ts +369 -22
  53. package/dist/events.js +311 -8
  54. package/dist/events.js.map +1 -1
  55. package/dist/hosting.d.ts +13 -14
  56. package/dist/hosting.js +3 -4
  57. package/dist/hosting.js.map +1 -1
  58. package/dist/ids.d.ts +837 -0
  59. package/dist/ids.js +287 -0
  60. package/dist/ids.js.map +1 -0
  61. package/dist/index.d.ts +12 -1
  62. package/dist/index.js +16 -2
  63. package/dist/index.js.map +1 -1
  64. package/dist/keys.d.ts +2 -2
  65. package/dist/keys.js +3 -3
  66. package/dist/localization.d.ts +663 -0
  67. package/dist/localization.js +491 -0
  68. package/dist/localization.js.map +1 -0
  69. package/dist/methods.js +1933 -133
  70. package/dist/methods.js.map +1 -1
  71. package/dist/money.d.ts +1406 -0
  72. package/dist/money.js +1090 -0
  73. package/dist/money.js.map +1 -0
  74. package/dist/network.d.ts +4 -5
  75. package/dist/network.js +3 -4
  76. package/dist/network.js.map +1 -1
  77. package/dist/notify.d.ts +718 -127
  78. package/dist/notify.js +493 -74
  79. package/dist/notify.js.map +1 -1
  80. package/dist/observability.d.ts +184 -7
  81. package/dist/observability.js +156 -8
  82. package/dist/observability.js.map +1 -1
  83. package/dist/release.d.ts +14 -15
  84. package/dist/release.js +3 -4
  85. package/dist/release.js.map +1 -1
  86. package/dist/runners.d.ts +2 -3
  87. package/dist/runners.js +3 -4
  88. package/dist/runners.js.map +1 -1
  89. package/dist/runtime.d.ts +42 -5
  90. package/dist/runtime.js +101 -18
  91. package/dist/runtime.js.map +1 -1
  92. package/dist/sandboxes.d.ts +64 -20
  93. package/dist/sandboxes.js +9 -4
  94. package/dist/sandboxes.js.map +1 -1
  95. package/dist/secrets.d.ts +6 -6
  96. package/dist/secrets.js +4 -4
  97. package/dist/workflows.d.ts +850 -12
  98. package/dist/workflows.js +672 -3
  99. package/dist/workflows.js.map +1 -1
  100. package/package.json +4 -4
package/dist/notify.js CHANGED
@@ -1,4 +1,4 @@
1
- // @generated by sylphx-gen 0.1.0 from contracts@cdf6473b36ca648759a7f4b1fc21554541d52a947477e6e9d1d7a6a9a79bdaa0. Do not edit.
1
+ // @generated by sylphx-gen 0.1.0 from contracts@c8aac0afaf7591d0d5efa1ba6a8540d723d41a97ce7ad5d68601380ef3ab4783. Do not edit.
2
2
  // `sylphx.notify.v1`.
3
3
  import * as runtime from './runtime.js';
4
4
  import './common.js';
@@ -27,12 +27,23 @@ runtime.registerSchemas({
27
27
  ['providerReceipt', 'provider_receipt'],
28
28
  ['receiptTime', 'receipt_time'],
29
29
  ['errorCode', 'error_code'],
30
+ ['providerResponse', 'provider_response'],
30
31
  ],
31
32
  'sylphx.notify.v1.CreateBroadcastRequest': [
32
33
  ['broadcastId', 'broadcast_id'],
33
34
  ['broadcast', 'broadcast', 'sylphx.notify.v1.Broadcast'],
34
35
  ['validateOnly', 'validate_only'],
35
36
  ],
37
+ 'sylphx.notify.v1.CreateEmailDomainRequest': [
38
+ ['emailDomainId', 'email_domain_id'],
39
+ ['emailDomain', 'email_domain', 'sylphx.notify.v1.EmailDomain'],
40
+ ['validateOnly', 'validate_only'],
41
+ ],
42
+ 'sylphx.notify.v1.CreateMailboxRequest': [
43
+ ['mailboxId', 'mailbox_id'],
44
+ ['mailbox', 'mailbox', 'sylphx.notify.v1.Mailbox'],
45
+ ['validateOnly', 'validate_only'],
46
+ ],
36
47
  'sylphx.notify.v1.CreateMessageRequest': [
37
48
  ['messageId', 'message_id'],
38
49
  ['message', 'message', 'sylphx.notify.v1.Message'],
@@ -43,16 +54,16 @@ runtime.registerSchemas({
43
54
  ['recipient', 'recipient', 'sylphx.notify.v1.Recipient'],
44
55
  ['validateOnly', 'validate_only'],
45
56
  ],
57
+ 'sylphx.notify.v1.CreateRouteRequest': [
58
+ ['routeId', 'route_id'],
59
+ ['route', 'route', 'sylphx.notify.v1.Route'],
60
+ ['validateOnly', 'validate_only'],
61
+ ],
46
62
  'sylphx.notify.v1.CreateSenderRequest': [
47
63
  ['senderId', 'sender_id'],
48
64
  ['sender', 'sender', 'sylphx.notify.v1.Sender'],
49
65
  ['validateOnly', 'validate_only'],
50
66
  ],
51
- 'sylphx.notify.v1.CreateSendingDomainRequest': [
52
- ['sendingDomainId', 'sending_domain_id'],
53
- ['sendingDomain', 'sending_domain', 'sylphx.notify.v1.SendingDomain'],
54
- ['validateOnly', 'validate_only'],
55
- ],
56
67
  'sylphx.notify.v1.CreateSuppressionRequest': [
57
68
  ['suppressionId', 'suppression_id'],
58
69
  ['suppression', 'suppression', 'sylphx.notify.v1.Suppression'],
@@ -67,6 +78,14 @@ runtime.registerSchemas({
67
78
  ['allowMissing', 'allow_missing'],
68
79
  ['validateOnly', 'validate_only'],
69
80
  ],
81
+ 'sylphx.notify.v1.DeleteEmailDomainRequest': [
82
+ ['allowMissing', 'allow_missing'],
83
+ ['validateOnly', 'validate_only'],
84
+ ],
85
+ 'sylphx.notify.v1.DeleteMailboxRequest': [
86
+ ['allowMissing', 'allow_missing'],
87
+ ['validateOnly', 'validate_only'],
88
+ ],
70
89
  'sylphx.notify.v1.DeletePreferenceRequest': [
71
90
  ['allowMissing', 'allow_missing'],
72
91
  ['validateOnly', 'validate_only'],
@@ -75,11 +94,11 @@ runtime.registerSchemas({
75
94
  ['allowMissing', 'allow_missing'],
76
95
  ['validateOnly', 'validate_only'],
77
96
  ],
78
- 'sylphx.notify.v1.DeleteSenderRequest': [
97
+ 'sylphx.notify.v1.DeleteRouteRequest': [
79
98
  ['allowMissing', 'allow_missing'],
80
99
  ['validateOnly', 'validate_only'],
81
100
  ],
82
- 'sylphx.notify.v1.DeleteSendingDomainRequest': [
101
+ 'sylphx.notify.v1.DeleteSenderRequest': [
83
102
  ['allowMissing', 'allow_missing'],
84
103
  ['validateOnly', 'validate_only'],
85
104
  ],
@@ -98,16 +117,59 @@ runtime.registerSchemas({
98
117
  ['senderAddress', 'sender_address'],
99
118
  ['htmlBody', 'html_body'],
100
119
  ['textBody', 'text_body'],
120
+ ['senderName', 'sender_name'],
121
+ ],
122
+ 'sylphx.notify.v1.EmailDomain': [
123
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
124
+ ['spec', 'spec', 'sylphx.notify.v1.EmailDomainSpec'],
125
+ ['status', 'status', 'sylphx.notify.v1.EmailDomainStatus'],
126
+ ],
127
+ 'sylphx.notify.v1.EmailDomainReceiving': [],
128
+ 'sylphx.notify.v1.EmailDomainSending': [],
129
+ 'sylphx.notify.v1.EmailDomainSpec': [
130
+ ['returnPathLabel', 'return_path_label'],
131
+ ['sending', 'sending', 'sylphx.notify.v1.EmailDomainSending'],
132
+ ['receiving', 'receiving', 'sylphx.notify.v1.EmailDomainReceiving'],
133
+ ],
134
+ 'sylphx.notify.v1.EmailDomainStatus': [
135
+ ['observedGeneration', 'observed_generation'],
136
+ ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
137
+ ['verifyTime', 'verify_time'],
138
+ ['dnsRecords', 'dns_records', 'sylphx.notify.v1.DnsRecord'],
139
+ ['dkimSelector', 'dkim_selector'],
140
+ ['receivingState', 'receiving_state'],
141
+ ['receivingVerifyTime', 'receiving_verify_time'],
142
+ ],
143
+ 'sylphx.notify.v1.EraseMailboxAddressRequest': [],
144
+ 'sylphx.notify.v1.EraseMailboxAddressResponse': [
145
+ ['erasedCount', 'erased_count'],
101
146
  ],
102
147
  'sylphx.notify.v1.GetBroadcastRequest': [],
148
+ 'sylphx.notify.v1.GetEmailDomainRequest': [],
149
+ 'sylphx.notify.v1.GetInboundEmailRequest': [],
103
150
  'sylphx.notify.v1.GetInboxItemRequest': [],
151
+ 'sylphx.notify.v1.GetMailboxRequest': [],
104
152
  'sylphx.notify.v1.GetMessageRequest': [],
105
153
  'sylphx.notify.v1.GetPreferenceRequest': [],
106
154
  'sylphx.notify.v1.GetRecipientRequest': [],
155
+ 'sylphx.notify.v1.GetRouteRequest': [],
107
156
  'sylphx.notify.v1.GetSenderRequest': [],
108
- 'sylphx.notify.v1.GetSendingDomainRequest': [],
109
157
  'sylphx.notify.v1.GetSuppressionRequest': [],
110
158
  'sylphx.notify.v1.GetTemplateRequest': [],
159
+ 'sylphx.notify.v1.InboundEmail': [
160
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
161
+ ['messageId', 'message_id'],
162
+ ['parentMessageId', 'parent_message_id'],
163
+ ['senderAddress', 'sender_address'],
164
+ ['senderName', 'sender_name'],
165
+ ['recipientAddresses', 'recipient_addresses'],
166
+ ['ccAddresses', 'cc_addresses'],
167
+ ['textBody', 'text_body'],
168
+ ['htmlBody', 'html_body'],
169
+ ['receiveTime', 'receive_time'],
170
+ ['rawSha256', 'raw_sha256'],
171
+ ['sizeBytes', 'size_bytes'],
172
+ ],
111
173
  'sylphx.notify.v1.InboxContent': [
112
174
  ['actionUri', 'action_uri'],
113
175
  ],
@@ -124,6 +186,24 @@ runtime.registerSchemas({
124
186
  ['broadcasts', 'broadcasts', 'sylphx.notify.v1.Broadcast'],
125
187
  ['nextPageToken', 'next_page_token'],
126
188
  ],
189
+ 'sylphx.notify.v1.ListEmailDomainsRequest': [
190
+ ['pageSize', 'page_size'],
191
+ ['pageToken', 'page_token'],
192
+ ['orderBy', 'order_by'],
193
+ ],
194
+ 'sylphx.notify.v1.ListEmailDomainsResponse': [
195
+ ['emailDomains', 'email_domains', 'sylphx.notify.v1.EmailDomain'],
196
+ ['nextPageToken', 'next_page_token'],
197
+ ],
198
+ 'sylphx.notify.v1.ListInboundEmailsRequest': [
199
+ ['pageSize', 'page_size'],
200
+ ['pageToken', 'page_token'],
201
+ ['orderBy', 'order_by'],
202
+ ],
203
+ 'sylphx.notify.v1.ListInboundEmailsResponse': [
204
+ ['inboundEmails', 'inbound_emails', 'sylphx.notify.v1.InboundEmail'],
205
+ ['nextPageToken', 'next_page_token'],
206
+ ],
127
207
  'sylphx.notify.v1.ListInboxItemsRequest': [
128
208
  ['pageSize', 'page_size'],
129
209
  ['pageToken', 'page_token'],
@@ -133,6 +213,15 @@ runtime.registerSchemas({
133
213
  ['inboxItems', 'inbox_items', 'sylphx.notify.v1.InboxItem'],
134
214
  ['nextPageToken', 'next_page_token'],
135
215
  ],
216
+ 'sylphx.notify.v1.ListMailboxesRequest': [
217
+ ['pageSize', 'page_size'],
218
+ ['pageToken', 'page_token'],
219
+ ['orderBy', 'order_by'],
220
+ ],
221
+ 'sylphx.notify.v1.ListMailboxesResponse': [
222
+ ['mailboxes', 'mailboxes', 'sylphx.notify.v1.Mailbox'],
223
+ ['nextPageToken', 'next_page_token'],
224
+ ],
136
225
  'sylphx.notify.v1.ListMessagesRequest': [
137
226
  ['pageSize', 'page_size'],
138
227
  ['pageToken', 'page_token'],
@@ -160,22 +249,22 @@ runtime.registerSchemas({
160
249
  ['recipients', 'recipients', 'sylphx.notify.v1.Recipient'],
161
250
  ['nextPageToken', 'next_page_token'],
162
251
  ],
163
- 'sylphx.notify.v1.ListSendersRequest': [
252
+ 'sylphx.notify.v1.ListRoutesRequest': [
164
253
  ['pageSize', 'page_size'],
165
254
  ['pageToken', 'page_token'],
166
255
  ['orderBy', 'order_by'],
167
256
  ],
168
- 'sylphx.notify.v1.ListSendersResponse': [
169
- ['senders', 'senders', 'sylphx.notify.v1.Sender'],
257
+ 'sylphx.notify.v1.ListRoutesResponse': [
258
+ ['routes', 'routes', 'sylphx.notify.v1.Route'],
170
259
  ['nextPageToken', 'next_page_token'],
171
260
  ],
172
- 'sylphx.notify.v1.ListSendingDomainsRequest': [
261
+ 'sylphx.notify.v1.ListSendersRequest': [
173
262
  ['pageSize', 'page_size'],
174
263
  ['pageToken', 'page_token'],
175
264
  ['orderBy', 'order_by'],
176
265
  ],
177
- 'sylphx.notify.v1.ListSendingDomainsResponse': [
178
- ['sendingDomains', 'sending_domains', 'sylphx.notify.v1.SendingDomain'],
266
+ 'sylphx.notify.v1.ListSendersResponse': [
267
+ ['senders', 'senders', 'sylphx.notify.v1.Sender'],
179
268
  ['nextPageToken', 'next_page_token'],
180
269
  ],
181
270
  'sylphx.notify.v1.ListSuppressionsRequest': [
@@ -196,6 +285,27 @@ runtime.registerSchemas({
196
285
  ['templates', 'templates', 'sylphx.notify.v1.Template'],
197
286
  ['nextPageToken', 'next_page_token'],
198
287
  ],
288
+ 'sylphx.notify.v1.MailServer': [],
289
+ 'sylphx.notify.v1.Mailbox': [
290
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
291
+ ['spec', 'spec', 'sylphx.notify.v1.MailboxSpec'],
292
+ ['status', 'status', 'sylphx.notify.v1.MailboxStatus'],
293
+ ],
294
+ 'sylphx.notify.v1.MailboxSpec': [
295
+ ['displayName', 'display_name'],
296
+ ['imap', 'imap', 'sylphx.notify.v1.MailServer'],
297
+ ['smtp', 'smtp', 'sylphx.notify.v1.MailServer'],
298
+ ['appendSent', 'append_sent'],
299
+ ['backfillStartTime', 'backfill_start_time'],
300
+ ],
301
+ 'sylphx.notify.v1.MailboxStatus': [
302
+ ['observedGeneration', 'observed_generation'],
303
+ ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
304
+ ['passwordSet', 'password_set'],
305
+ ['lastPollTime', 'last_poll_time'],
306
+ ['lastError', 'last_error'],
307
+ ['sentFolder', 'sent_folder'],
308
+ ],
199
309
  'sylphx.notify.v1.MarkInboxItemReadRequest': [],
200
310
  'sylphx.notify.v1.MarkInboxItemUnreadRequest': [],
201
311
  'sylphx.notify.v1.Message': [
@@ -204,6 +314,20 @@ runtime.registerSchemas({
204
314
  ['data', 'data', undefined, 'json'],
205
315
  ['sendTime', 'send_time'],
206
316
  ['deliveries', 'deliveries', 'sylphx.notify.v1.ChannelDelivery'],
317
+ ['deliveryDeadlineTime', 'delivery_deadline_time'],
318
+ ['stateReason', 'state_reason'],
319
+ ['capture', 'capture', 'sylphx.notify.v1.MessageCapture'],
320
+ ['content', 'content', 'sylphx.notify.v1.MessageContent'],
321
+ ['parentMessageId', 'parent_message_id'],
322
+ ['emailMessageId', 'email_message_id'],
323
+ ],
324
+ 'sylphx.notify.v1.MessageCapture': [
325
+ ['textBody', 'text_body'],
326
+ ['htmlBody', 'html_body'],
327
+ ],
328
+ 'sylphx.notify.v1.MessageContent': [
329
+ ['textBody', 'text_body'],
330
+ ['htmlBody', 'html_body'],
207
331
  ],
208
332
  'sylphx.notify.v1.Preference': [
209
333
  ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
@@ -228,9 +352,30 @@ runtime.registerSchemas({
228
352
  ['languageCode', 'language_code'],
229
353
  ['timeZone', 'time_zone'],
230
354
  ],
355
+ 'sylphx.notify.v1.Route': [
356
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
357
+ ['spec', 'spec', 'sylphx.notify.v1.RouteSpec'],
358
+ ['status', 'status', 'sylphx.notify.v1.RouteStatus'],
359
+ ],
360
+ 'sylphx.notify.v1.RouteAction': [],
361
+ 'sylphx.notify.v1.RouteMatch': [
362
+ ['catchAll', 'catch_all'],
363
+ ],
364
+ 'sylphx.notify.v1.RouteSpec': [
365
+ ['match', 'match', 'sylphx.notify.v1.RouteMatch'],
366
+ ['actions', 'actions', 'sylphx.notify.v1.RouteAction'],
367
+ ],
368
+ 'sylphx.notify.v1.RouteStatus': [
369
+ ['observedGeneration', 'observed_generation'],
370
+ ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
371
+ ],
231
372
  'sylphx.notify.v1.SendBroadcastRequest': [
232
373
  ['validateOnly', 'validate_only'],
233
374
  ],
375
+ 'sylphx.notify.v1.SendLimit': [
376
+ ['minInterval', 'min_interval'],
377
+ ['maxPerHour', 'max_per_hour'],
378
+ ],
234
379
  'sylphx.notify.v1.Sender': [
235
380
  ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
236
381
  ['spec', 'spec', 'sylphx.notify.v1.SenderSpec'],
@@ -245,21 +390,6 @@ runtime.registerSchemas({
245
390
  ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
246
391
  ['verificationNote', 'verification_note'],
247
392
  ],
248
- 'sylphx.notify.v1.SendingDomain': [
249
- ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
250
- ['spec', 'spec', 'sylphx.notify.v1.SendingDomainSpec'],
251
- ['status', 'status', 'sylphx.notify.v1.SendingDomainStatus'],
252
- ],
253
- 'sylphx.notify.v1.SendingDomainSpec': [
254
- ['returnPathLabel', 'return_path_label'],
255
- ],
256
- 'sylphx.notify.v1.SendingDomainStatus': [
257
- ['observedGeneration', 'observed_generation'],
258
- ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
259
- ['verifyTime', 'verify_time'],
260
- ['dnsRecords', 'dns_records', 'sylphx.notify.v1.DnsRecord'],
261
- ['dkimSelector', 'dkim_selector'],
262
- ],
263
393
  'sylphx.notify.v1.SmsContent': [],
264
394
  'sylphx.notify.v1.SmsSender': [
265
395
  ['phoneNumber', 'phone_number'],
@@ -280,6 +410,7 @@ runtime.registerSchemas({
280
410
  ['sms', 'sms', 'sylphx.notify.v1.SmsContent'],
281
411
  ['push', 'push', 'sylphx.notify.v1.PushContent'],
282
412
  ['inbox', 'inbox', 'sylphx.notify.v1.InboxContent'],
413
+ ['sendLimit', 'send_limit', 'sylphx.notify.v1.SendLimit'],
283
414
  ],
284
415
  'sylphx.notify.v1.TemplateStatus': [
285
416
  ['observedGeneration', 'observed_generation'],
@@ -291,6 +422,18 @@ runtime.registerSchemas({
291
422
  ['allowMissing', 'allow_missing'],
292
423
  ['validateOnly', 'validate_only'],
293
424
  ],
425
+ 'sylphx.notify.v1.UpdateEmailDomainRequest': [
426
+ ['emailDomain', 'email_domain', 'sylphx.notify.v1.EmailDomain'],
427
+ ['updateMask', 'update_mask'],
428
+ ['allowMissing', 'allow_missing'],
429
+ ['validateOnly', 'validate_only'],
430
+ ],
431
+ 'sylphx.notify.v1.UpdateMailboxRequest': [
432
+ ['mailbox', 'mailbox', 'sylphx.notify.v1.Mailbox'],
433
+ ['updateMask', 'update_mask'],
434
+ ['allowMissing', 'allow_missing'],
435
+ ['validateOnly', 'validate_only'],
436
+ ],
294
437
  'sylphx.notify.v1.UpdatePreferenceRequest': [
295
438
  ['preference', 'preference', 'sylphx.notify.v1.Preference'],
296
439
  ['updateMask', 'update_mask'],
@@ -303,14 +446,14 @@ runtime.registerSchemas({
303
446
  ['allowMissing', 'allow_missing'],
304
447
  ['validateOnly', 'validate_only'],
305
448
  ],
306
- 'sylphx.notify.v1.UpdateSenderRequest': [
307
- ['sender', 'sender', 'sylphx.notify.v1.Sender'],
449
+ 'sylphx.notify.v1.UpdateRouteRequest': [
450
+ ['route', 'route', 'sylphx.notify.v1.Route'],
308
451
  ['updateMask', 'update_mask'],
309
452
  ['allowMissing', 'allow_missing'],
310
453
  ['validateOnly', 'validate_only'],
311
454
  ],
312
- 'sylphx.notify.v1.UpdateSendingDomainRequest': [
313
- ['sendingDomain', 'sending_domain', 'sylphx.notify.v1.SendingDomain'],
455
+ 'sylphx.notify.v1.UpdateSenderRequest': [
456
+ ['sender', 'sender', 'sylphx.notify.v1.Sender'],
314
457
  ['updateMask', 'update_mask'],
315
458
  ['allowMissing', 'allow_missing'],
316
459
  ['validateOnly', 'validate_only'],
@@ -321,20 +464,21 @@ runtime.registerSchemas({
321
464
  ['allowMissing', 'allow_missing'],
322
465
  ['validateOnly', 'validate_only'],
323
466
  ],
467
+ 'sylphx.notify.v1.VerifyEmailDomainRequest': [],
324
468
  'sylphx.notify.v1.VerifySenderRequest': [],
325
- 'sylphx.notify.v1.VerifySendingDomainRequest': [],
326
469
  });
327
470
  /**
328
471
  * NotifyService is Sylphx Notify: messages to people over email, SMS, push,
329
- * and in-app inbox, with preferences, suppression, templates, and broadcasts
330
- * (docs/services/notify/vision.md). Notify is built on Sylphx Events as an
331
- * ordinary customer.
472
+ * and in-app inbox, with preferences, suppression, templates, and broadcasts.
473
+ * Notify is built on Sylphx Events as an ordinary customer.
332
474
  *
333
475
  * Namespace of Sylphx Notify on `Sylphx`.
334
476
  */
335
477
  export class NotifyApi {
336
- /** The `sending_domains` collection. */
337
- sendingDomains;
478
+ /** The `mail_domains` collection. */
479
+ mailDomains;
480
+ /** The `mail_routes` collection. */
481
+ mailRoutes;
338
482
  /** The `senders` collection. */
339
483
  senders;
340
484
  /** The `recipients` collection. */
@@ -347,56 +491,63 @@ export class NotifyApi {
347
491
  templates;
348
492
  /** The `messages` collection. */
349
493
  messages;
494
+ /** The `mailboxes` collection. */
495
+ mailboxes;
496
+ /** The `inbound_emails` collection. */
497
+ inboundEmails;
350
498
  /** The `inbox_items` collection. */
351
499
  inboxItems;
352
500
  /** The `broadcasts` collection. */
353
501
  broadcasts;
354
502
  constructor(client) {
355
- this.sendingDomains = new SendingDomainsCollection(client);
503
+ this.mailDomains = new MailDomainsCollection(client);
504
+ this.mailRoutes = new MailRoutesCollection(client);
356
505
  this.senders = new SendersCollection(client);
357
506
  this.recipients = new RecipientsCollection(client);
358
507
  this.preferences = new PreferencesCollection(client);
359
508
  this.suppressions = new SuppressionsCollection(client);
360
509
  this.templates = new TemplatesCollection(client);
361
510
  this.messages = new MessagesCollection(client);
511
+ this.mailboxes = new MailboxesCollection(client);
512
+ this.inboundEmails = new InboundEmailsCollection(client);
362
513
  this.inboxItems = new InboxItemsCollection(client);
363
514
  this.broadcasts = new BroadcastsCollection(client);
364
515
  }
365
516
  }
366
- /** `sending_domains` of Sylphx Notify: Resource type `notify.sylphx.com/SendingDomain`. */
367
- export class SendingDomainsCollection {
517
+ /** `mail_domains` of Sylphx Notify: Resource type `notify.sylphx.com/EmailDomain`. */
518
+ export class MailDomainsCollection {
368
519
  client;
369
520
  constructor(client) {
370
521
  this.client = client;
371
522
  }
372
523
  /**
373
- * Gets a sending domain.
524
+ * Gets an email domain.
374
525
  *
375
- * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/sending_domains/*}` · permission `notify:read` · effect `read`
526
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*}` · permission `notify:read` · effect `read`
376
527
  *
377
528
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
378
529
  */
379
530
  async get(request) {
380
531
  return this.client.call({
381
532
  method: 'GET',
382
- path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/sending_domains/*', 'name')}`,
383
- responseType: 'sylphx.notify.v1.SendingDomain',
533
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mail_domains/*', 'name')}`,
534
+ responseType: 'sylphx.notify.v1.EmailDomain',
384
535
  mutation: false,
385
536
  });
386
537
  }
387
538
  /**
388
- * Lists sending domains.
539
+ * Lists email domains.
389
540
  *
390
- * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/sending_domains` · permission `notify:read` · effect `read`
541
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/mail_domains` · permission `notify:read` · effect `read`
391
542
  *
392
543
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
393
544
  */
394
545
  async list(request) {
395
546
  return this.client.call({
396
547
  method: 'GET',
397
- path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/sending_domains`,
548
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/mail_domains`,
398
549
  query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
399
- responseType: 'sylphx.notify.v1.ListSendingDomainsResponse',
550
+ responseType: 'sylphx.notify.v1.ListEmailDomainsResponse',
400
551
  mutation: false,
401
552
  });
402
553
  }
@@ -405,77 +556,177 @@ export class SendingDomainsCollection {
405
556
  let next = request;
406
557
  for (;;) {
407
558
  const page = await this.list(next);
408
- yield* page.sendingDomains ?? [];
559
+ yield* page.emailDomains ?? [];
409
560
  if (page.nextPageToken === undefined || page.nextPageToken === '')
410
561
  return;
411
562
  next = { ...request, pageToken: page.nextPageToken };
412
563
  }
413
564
  }
414
565
  /**
415
- * Creates a sending domain.
566
+ * Creates an email domain.
416
567
  *
417
- * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/sending_domains` · permission `notify:write` · effect `write`
568
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/mail_domains` · permission `notify:write` · effect `write`
418
569
  *
419
570
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
420
571
  */
421
572
  async create(request) {
422
573
  return this.client.call({
423
574
  method: 'POST',
424
- path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/sending_domains`,
425
- query: { sending_domain_id: request.sendingDomainId, validate_only: request.validateOnly },
426
- body: request.sendingDomain ?? {},
427
- bodyType: 'sylphx.notify.v1.SendingDomain',
428
- responseType: 'sylphx.notify.v1.SendingDomain',
575
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/mail_domains`,
576
+ query: { email_domain_id: request.emailDomainId, validate_only: request.validateOnly },
577
+ body: request.emailDomain ?? {},
578
+ bodyType: 'sylphx.notify.v1.EmailDomain',
579
+ responseType: 'sylphx.notify.v1.EmailDomain',
429
580
  mutation: true,
430
581
  });
431
582
  }
432
583
  /**
433
- * Updates a sending domain.
584
+ * Updates an email domain.
434
585
  *
435
- * `PATCH /v1/{sending_domain.name=orgs/*\/projects/*\/envs/*\/sending_domains/*}` · permission `notify:write` · effect `write`
586
+ * `PATCH /v1/{email_domain.name=orgs/*\/projects/*\/envs/*\/mail_domains/*}` · permission `notify:write` · effect `write`
436
587
  *
437
588
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
438
589
  */
439
590
  async update(request) {
440
591
  return this.client.call({
441
592
  method: 'PATCH',
442
- path: `/v1/${runtime.pathParam(request.sendingDomain?.name, 'orgs/*/projects/*/envs/*/sending_domains/*', 'sending_domain.name')}`,
593
+ path: `/v1/${runtime.pathParam(request.emailDomain?.name, 'orgs/*/projects/*/envs/*/mail_domains/*', 'email_domain.name')}`,
443
594
  query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
444
- body: request.sendingDomain ?? {},
445
- bodyType: 'sylphx.notify.v1.SendingDomain',
446
- responseType: 'sylphx.notify.v1.SendingDomain',
595
+ body: request.emailDomain ?? {},
596
+ bodyType: 'sylphx.notify.v1.EmailDomain',
597
+ responseType: 'sylphx.notify.v1.EmailDomain',
447
598
  mutation: true,
448
599
  });
449
600
  }
450
601
  /**
451
- * Deletes a sending domain.
602
+ * Deletes an email domain.
452
603
  *
453
- * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/sending_domains/*}` · permission `notify:write` · effect `destructive`
604
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*}` · permission `notify:write` · effect `destructive`
454
605
  *
455
606
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
456
607
  */
457
608
  async delete(request) {
458
609
  return this.client.call({
459
610
  method: 'DELETE',
460
- path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/sending_domains/*', 'name')}`,
461
- query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
611
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mail_domains/*', 'name')}`,
612
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly, force: request.force },
462
613
  mutation: true,
463
614
  });
464
615
  }
465
616
  /**
466
617
  * Checks the domain's DNS records now instead of on the next sweep.
467
618
  *
468
- * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/sending_domains/*}:verify` · permission `notify:write` · effect `write`
619
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*}:verify` · permission `notify:write` · effect `write`
469
620
  *
470
621
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `RATE_LIMITED`.
471
622
  */
472
623
  async verify(request) {
473
624
  return this.client.call({
474
625
  method: 'POST',
475
- path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/sending_domains/*', 'name')}:verify`,
626
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mail_domains/*', 'name')}:verify`,
476
627
  body: runtime.omit(request, ['name']),
477
- bodyType: 'sylphx.notify.v1.VerifySendingDomainRequest',
478
- responseType: 'sylphx.notify.v1.SendingDomain',
628
+ bodyType: 'sylphx.notify.v1.VerifyEmailDomainRequest',
629
+ responseType: 'sylphx.notify.v1.EmailDomain',
630
+ mutation: true,
631
+ });
632
+ }
633
+ }
634
+ /** `mail_routes` of Sylphx Notify: Resource type `notify.sylphx.com/Route`. */
635
+ export class MailRoutesCollection {
636
+ client;
637
+ constructor(client) {
638
+ this.client = client;
639
+ }
640
+ /**
641
+ * Gets a route.
642
+ *
643
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*\/mail_routes/*}` · permission `notify:read` · effect `read`
644
+ *
645
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
646
+ */
647
+ async get(request) {
648
+ return this.client.call({
649
+ method: 'GET',
650
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mail_domains/*/mail_routes/*', 'name')}`,
651
+ responseType: 'sylphx.notify.v1.Route',
652
+ mutation: false,
653
+ });
654
+ }
655
+ /**
656
+ * Lists an email domain's routes.
657
+ *
658
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/mail_domains/*}/mail_routes` · permission `notify:read` · effect `read`
659
+ *
660
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
661
+ */
662
+ async list(request) {
663
+ return this.client.call({
664
+ method: 'GET',
665
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/mail_domains/*', 'parent')}/mail_routes`,
666
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
667
+ responseType: 'sylphx.notify.v1.ListRoutesResponse',
668
+ mutation: false,
669
+ });
670
+ }
671
+ /** Every item of every page of `list`. */
672
+ async *listAll(request) {
673
+ let next = request;
674
+ for (;;) {
675
+ const page = await this.list(next);
676
+ yield* page.routes ?? [];
677
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
678
+ return;
679
+ next = { ...request, pageToken: page.nextPageToken };
680
+ }
681
+ }
682
+ /**
683
+ * Creates a route.
684
+ *
685
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*\/mail_domains/*}/mail_routes` · permission `notify:write` · effect `write`
686
+ *
687
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
688
+ */
689
+ async create(request) {
690
+ return this.client.call({
691
+ method: 'POST',
692
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/mail_domains/*', 'parent')}/mail_routes`,
693
+ query: { route_id: request.routeId, validate_only: request.validateOnly },
694
+ body: request.route ?? {},
695
+ bodyType: 'sylphx.notify.v1.Route',
696
+ responseType: 'sylphx.notify.v1.Route',
697
+ mutation: true,
698
+ });
699
+ }
700
+ /**
701
+ * Updates a route.
702
+ *
703
+ * `PATCH /v1/{route.name=orgs/*\/projects/*\/envs/*\/mail_domains/*\/mail_routes/*}` · permission `notify:write` · effect `write`
704
+ *
705
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
706
+ */
707
+ async update(request) {
708
+ return this.client.call({
709
+ method: 'PATCH',
710
+ path: `/v1/${runtime.pathParam(request.route?.name, 'orgs/*/projects/*/envs/*/mail_domains/*/mail_routes/*', 'route.name')}`,
711
+ query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
712
+ body: request.route ?? {},
713
+ bodyType: 'sylphx.notify.v1.Route',
714
+ responseType: 'sylphx.notify.v1.Route',
715
+ mutation: true,
716
+ });
717
+ }
718
+ /**
719
+ * Deletes a route.
720
+ *
721
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*\/mail_routes/*}` · permission `notify:write` · effect `destructive`
722
+ *
723
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`.
724
+ */
725
+ async delete(request) {
726
+ return this.client.call({
727
+ method: 'DELETE',
728
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mail_domains/*/mail_routes/*', 'name')}`,
729
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
479
730
  mutation: true,
480
731
  });
481
732
  }
@@ -1014,7 +1265,7 @@ export class MessagesCollection {
1014
1265
  *
1015
1266
  * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/messages` · permission `notify:send` · effect `write`
1016
1267
  *
1017
- * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1268
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`, `RATE_LIMITED`, `INVALID_STATE`.
1018
1269
  */
1019
1270
  async create(request) {
1020
1271
  return this.client.call({
@@ -1045,6 +1296,174 @@ export class MessagesCollection {
1045
1296
  });
1046
1297
  }
1047
1298
  }
1299
+ /** `mailboxes` of Sylphx Notify: Resource type `notify.sylphx.com/Mailbox`. */
1300
+ export class MailboxesCollection {
1301
+ client;
1302
+ constructor(client) {
1303
+ this.client = client;
1304
+ }
1305
+ /**
1306
+ * Gets a mailbox.
1307
+ *
1308
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*}` · permission `notify:read` · effect `read`
1309
+ *
1310
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1311
+ */
1312
+ async get(request) {
1313
+ return this.client.call({
1314
+ method: 'GET',
1315
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mailboxes/*', 'name')}`,
1316
+ responseType: 'sylphx.notify.v1.Mailbox',
1317
+ mutation: false,
1318
+ });
1319
+ }
1320
+ /**
1321
+ * Lists mailboxes.
1322
+ *
1323
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/mailboxes` · permission `notify:read` · effect `read`
1324
+ *
1325
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1326
+ */
1327
+ async list(request) {
1328
+ return this.client.call({
1329
+ method: 'GET',
1330
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/mailboxes`,
1331
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
1332
+ responseType: 'sylphx.notify.v1.ListMailboxesResponse',
1333
+ mutation: false,
1334
+ });
1335
+ }
1336
+ /** Every item of every page of `list`. */
1337
+ async *listAll(request) {
1338
+ let next = request;
1339
+ for (;;) {
1340
+ const page = await this.list(next);
1341
+ yield* page.mailboxes ?? [];
1342
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
1343
+ return;
1344
+ next = { ...request, pageToken: page.nextPageToken };
1345
+ }
1346
+ }
1347
+ /**
1348
+ * Creates a mailbox.
1349
+ *
1350
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/mailboxes` · permission `notify:write` · effect `write`
1351
+ *
1352
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1353
+ */
1354
+ async create(request) {
1355
+ return this.client.call({
1356
+ method: 'POST',
1357
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/mailboxes`,
1358
+ query: { mailbox_id: request.mailboxId, validate_only: request.validateOnly },
1359
+ body: request.mailbox ?? {},
1360
+ bodyType: 'sylphx.notify.v1.Mailbox',
1361
+ responseType: 'sylphx.notify.v1.Mailbox',
1362
+ mutation: true,
1363
+ });
1364
+ }
1365
+ /**
1366
+ * Updates a mailbox.
1367
+ *
1368
+ * `PATCH /v1/{mailbox.name=orgs/*\/projects/*\/envs/*\/mailboxes/*}` · permission `notify:write` · effect `write`
1369
+ *
1370
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1371
+ */
1372
+ async update(request) {
1373
+ return this.client.call({
1374
+ method: 'PATCH',
1375
+ path: `/v1/${runtime.pathParam(request.mailbox?.name, 'orgs/*/projects/*/envs/*/mailboxes/*', 'mailbox.name')}`,
1376
+ query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
1377
+ body: request.mailbox ?? {},
1378
+ bodyType: 'sylphx.notify.v1.Mailbox',
1379
+ responseType: 'sylphx.notify.v1.Mailbox',
1380
+ mutation: true,
1381
+ });
1382
+ }
1383
+ /**
1384
+ * Deletes a mailbox and its inbound email.
1385
+ *
1386
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*}` · permission `notify:write` · effect `destructive`
1387
+ *
1388
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `RESOURCE_IN_USE`.
1389
+ */
1390
+ async delete(request) {
1391
+ return this.client.call({
1392
+ method: 'DELETE',
1393
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mailboxes/*', 'name')}`,
1394
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly, force: request.force },
1395
+ mutation: true,
1396
+ });
1397
+ }
1398
+ /**
1399
+ * Removes an address's personal data from every inbound email of the
1400
+ * mailbox that it sent or that names it, keeping the dedupe keys so a poll
1401
+ * never brings the mail back.
1402
+ *
1403
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*}:eraseAddress` · permission `notify:write` · effect `destructive`
1404
+ *
1405
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1406
+ */
1407
+ async eraseAddress(request) {
1408
+ return this.client.call({
1409
+ method: 'POST',
1410
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mailboxes/*', 'name')}:eraseAddress`,
1411
+ body: runtime.omit(request, ['name']),
1412
+ bodyType: 'sylphx.notify.v1.EraseMailboxAddressRequest',
1413
+ responseType: 'sylphx.notify.v1.EraseMailboxAddressResponse',
1414
+ mutation: true,
1415
+ });
1416
+ }
1417
+ }
1418
+ /** `inbound_emails` of Sylphx Notify: Resource type `notify.sylphx.com/InboundEmail`. */
1419
+ export class InboundEmailsCollection {
1420
+ client;
1421
+ constructor(client) {
1422
+ this.client = client;
1423
+ }
1424
+ /**
1425
+ * Gets an inbound email.
1426
+ *
1427
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*\/inbound_emails/*}` · permission `notify:read` · effect `read`
1428
+ *
1429
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1430
+ */
1431
+ async get(request) {
1432
+ return this.client.call({
1433
+ method: 'GET',
1434
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mailboxes/*/inbound_emails/*', 'name')}`,
1435
+ responseType: 'sylphx.notify.v1.InboundEmail',
1436
+ mutation: false,
1437
+ });
1438
+ }
1439
+ /**
1440
+ * Lists a mailbox's inbound email in feed order, oldest first.
1441
+ *
1442
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/mailboxes/*}/inbound_emails` · permission `notify:read` · effect `read`
1443
+ *
1444
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1445
+ */
1446
+ async list(request) {
1447
+ return this.client.call({
1448
+ method: 'GET',
1449
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/mailboxes/*', 'parent')}/inbound_emails`,
1450
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
1451
+ responseType: 'sylphx.notify.v1.ListInboundEmailsResponse',
1452
+ mutation: false,
1453
+ });
1454
+ }
1455
+ /** Every item of every page of `list`. */
1456
+ async *listAll(request) {
1457
+ let next = request;
1458
+ for (;;) {
1459
+ const page = await this.list(next);
1460
+ yield* page.inboundEmails ?? [];
1461
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
1462
+ return;
1463
+ next = { ...request, pageToken: page.nextPageToken };
1464
+ }
1465
+ }
1466
+ }
1048
1467
  /** `inbox_items` of Sylphx Notify: Resource type `notify.sylphx.com/InboxItem`. */
1049
1468
  export class InboxItemsCollection {
1050
1469
  client;