@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.js CHANGED
@@ -1,4 +1,4 @@
1
- // @generated by sylphx-gen 0.1.0 from contracts@446ceb843d4ff88057b0db68e2e54e4aea52d8143b72d66016122995b878de20. Do not edit.
1
+ // @generated by sylphx-gen 0.1.0 from contracts@c8a7361c53e572321b0ec9fb014fd1e8279b007b62562423038e0d0e5b9d767a. Do not edit.
2
2
  // `sylphx.notify.v1`.
3
3
  import * as runtime from './runtime.js';
4
4
  import './common.js';
@@ -34,6 +34,21 @@ runtime.registerSchemas({
34
34
  ['broadcast', 'broadcast', 'sylphx.notify.v1.Broadcast'],
35
35
  ['validateOnly', 'validate_only'],
36
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.CreateMailboxConnectLinkRequest': [
43
+ ['mailboxConnectLinkId', 'mailbox_connect_link_id'],
44
+ ['mailboxConnectLink', 'mailbox_connect_link', 'sylphx.notify.v1.MailboxConnectLink'],
45
+ ['validateOnly', 'validate_only'],
46
+ ],
47
+ 'sylphx.notify.v1.CreateMailboxOauthAppRequest': [
48
+ ['mailboxOauthAppId', 'mailbox_oauth_app_id'],
49
+ ['mailboxOauthApp', 'mailbox_oauth_app', 'sylphx.notify.v1.MailboxOauthApp'],
50
+ ['validateOnly', 'validate_only'],
51
+ ],
37
52
  'sylphx.notify.v1.CreateMailboxRequest': [
38
53
  ['mailboxId', 'mailbox_id'],
39
54
  ['mailbox', 'mailbox', 'sylphx.notify.v1.Mailbox'],
@@ -49,16 +64,16 @@ runtime.registerSchemas({
49
64
  ['recipient', 'recipient', 'sylphx.notify.v1.Recipient'],
50
65
  ['validateOnly', 'validate_only'],
51
66
  ],
67
+ 'sylphx.notify.v1.CreateRouteRequest': [
68
+ ['routeId', 'route_id'],
69
+ ['route', 'route', 'sylphx.notify.v1.Route'],
70
+ ['validateOnly', 'validate_only'],
71
+ ],
52
72
  'sylphx.notify.v1.CreateSenderRequest': [
53
73
  ['senderId', 'sender_id'],
54
74
  ['sender', 'sender', 'sylphx.notify.v1.Sender'],
55
75
  ['validateOnly', 'validate_only'],
56
76
  ],
57
- 'sylphx.notify.v1.CreateSendingDomainRequest': [
58
- ['sendingDomainId', 'sending_domain_id'],
59
- ['sendingDomain', 'sending_domain', 'sylphx.notify.v1.SendingDomain'],
60
- ['validateOnly', 'validate_only'],
61
- ],
62
77
  'sylphx.notify.v1.CreateSuppressionRequest': [
63
78
  ['suppressionId', 'suppression_id'],
64
79
  ['suppression', 'suppression', 'sylphx.notify.v1.Suppression'],
@@ -73,6 +88,14 @@ runtime.registerSchemas({
73
88
  ['allowMissing', 'allow_missing'],
74
89
  ['validateOnly', 'validate_only'],
75
90
  ],
91
+ 'sylphx.notify.v1.DeleteEmailDomainRequest': [
92
+ ['allowMissing', 'allow_missing'],
93
+ ['validateOnly', 'validate_only'],
94
+ ],
95
+ 'sylphx.notify.v1.DeleteMailboxOauthAppRequest': [
96
+ ['allowMissing', 'allow_missing'],
97
+ ['validateOnly', 'validate_only'],
98
+ ],
76
99
  'sylphx.notify.v1.DeleteMailboxRequest': [
77
100
  ['allowMissing', 'allow_missing'],
78
101
  ['validateOnly', 'validate_only'],
@@ -85,11 +108,11 @@ runtime.registerSchemas({
85
108
  ['allowMissing', 'allow_missing'],
86
109
  ['validateOnly', 'validate_only'],
87
110
  ],
88
- 'sylphx.notify.v1.DeleteSenderRequest': [
111
+ 'sylphx.notify.v1.DeleteRouteRequest': [
89
112
  ['allowMissing', 'allow_missing'],
90
113
  ['validateOnly', 'validate_only'],
91
114
  ],
92
- 'sylphx.notify.v1.DeleteSendingDomainRequest': [
115
+ 'sylphx.notify.v1.DeleteSenderRequest': [
93
116
  ['allowMissing', 'allow_missing'],
94
117
  ['validateOnly', 'validate_only'],
95
118
  ],
@@ -110,19 +133,43 @@ runtime.registerSchemas({
110
133
  ['textBody', 'text_body'],
111
134
  ['senderName', 'sender_name'],
112
135
  ],
136
+ 'sylphx.notify.v1.EmailDomain': [
137
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
138
+ ['spec', 'spec', 'sylphx.notify.v1.EmailDomainSpec'],
139
+ ['status', 'status', 'sylphx.notify.v1.EmailDomainStatus'],
140
+ ],
141
+ 'sylphx.notify.v1.EmailDomainReceiving': [],
142
+ 'sylphx.notify.v1.EmailDomainSending': [],
143
+ 'sylphx.notify.v1.EmailDomainSpec': [
144
+ ['returnPathLabel', 'return_path_label'],
145
+ ['sending', 'sending', 'sylphx.notify.v1.EmailDomainSending'],
146
+ ['receiving', 'receiving', 'sylphx.notify.v1.EmailDomainReceiving'],
147
+ ],
148
+ 'sylphx.notify.v1.EmailDomainStatus': [
149
+ ['observedGeneration', 'observed_generation'],
150
+ ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
151
+ ['verifyTime', 'verify_time'],
152
+ ['dnsRecords', 'dns_records', 'sylphx.notify.v1.DnsRecord'],
153
+ ['dkimSelector', 'dkim_selector'],
154
+ ['receivingState', 'receiving_state'],
155
+ ['receivingVerifyTime', 'receiving_verify_time'],
156
+ ],
113
157
  'sylphx.notify.v1.EraseMailboxAddressRequest': [],
114
158
  'sylphx.notify.v1.EraseMailboxAddressResponse': [
115
159
  ['erasedCount', 'erased_count'],
116
160
  ],
117
161
  'sylphx.notify.v1.GetBroadcastRequest': [],
162
+ 'sylphx.notify.v1.GetEmailDomainRequest': [],
118
163
  'sylphx.notify.v1.GetInboundEmailRequest': [],
119
164
  'sylphx.notify.v1.GetInboxItemRequest': [],
165
+ 'sylphx.notify.v1.GetMailboxConnectLinkRequest': [],
166
+ 'sylphx.notify.v1.GetMailboxOauthAppRequest': [],
120
167
  'sylphx.notify.v1.GetMailboxRequest': [],
121
168
  'sylphx.notify.v1.GetMessageRequest': [],
122
169
  'sylphx.notify.v1.GetPreferenceRequest': [],
123
170
  'sylphx.notify.v1.GetRecipientRequest': [],
171
+ 'sylphx.notify.v1.GetRouteRequest': [],
124
172
  'sylphx.notify.v1.GetSenderRequest': [],
125
- 'sylphx.notify.v1.GetSendingDomainRequest': [],
126
173
  'sylphx.notify.v1.GetSuppressionRequest': [],
127
174
  'sylphx.notify.v1.GetTemplateRequest': [],
128
175
  'sylphx.notify.v1.InboundEmail': [
@@ -155,6 +202,15 @@ runtime.registerSchemas({
155
202
  ['broadcasts', 'broadcasts', 'sylphx.notify.v1.Broadcast'],
156
203
  ['nextPageToken', 'next_page_token'],
157
204
  ],
205
+ 'sylphx.notify.v1.ListEmailDomainsRequest': [
206
+ ['pageSize', 'page_size'],
207
+ ['pageToken', 'page_token'],
208
+ ['orderBy', 'order_by'],
209
+ ],
210
+ 'sylphx.notify.v1.ListEmailDomainsResponse': [
211
+ ['emailDomains', 'email_domains', 'sylphx.notify.v1.EmailDomain'],
212
+ ['nextPageToken', 'next_page_token'],
213
+ ],
158
214
  'sylphx.notify.v1.ListInboundEmailsRequest': [
159
215
  ['pageSize', 'page_size'],
160
216
  ['pageToken', 'page_token'],
@@ -173,6 +229,24 @@ runtime.registerSchemas({
173
229
  ['inboxItems', 'inbox_items', 'sylphx.notify.v1.InboxItem'],
174
230
  ['nextPageToken', 'next_page_token'],
175
231
  ],
232
+ 'sylphx.notify.v1.ListMailboxConnectLinksRequest': [
233
+ ['pageSize', 'page_size'],
234
+ ['pageToken', 'page_token'],
235
+ ['orderBy', 'order_by'],
236
+ ],
237
+ 'sylphx.notify.v1.ListMailboxConnectLinksResponse': [
238
+ ['mailboxConnectLinks', 'mailbox_connect_links', 'sylphx.notify.v1.MailboxConnectLink'],
239
+ ['nextPageToken', 'next_page_token'],
240
+ ],
241
+ 'sylphx.notify.v1.ListMailboxOauthAppsRequest': [
242
+ ['pageSize', 'page_size'],
243
+ ['pageToken', 'page_token'],
244
+ ['orderBy', 'order_by'],
245
+ ],
246
+ 'sylphx.notify.v1.ListMailboxOauthAppsResponse': [
247
+ ['mailboxOauthApps', 'mailbox_oauth_apps', 'sylphx.notify.v1.MailboxOauthApp'],
248
+ ['nextPageToken', 'next_page_token'],
249
+ ],
176
250
  'sylphx.notify.v1.ListMailboxesRequest': [
177
251
  ['pageSize', 'page_size'],
178
252
  ['pageToken', 'page_token'],
@@ -209,22 +283,22 @@ runtime.registerSchemas({
209
283
  ['recipients', 'recipients', 'sylphx.notify.v1.Recipient'],
210
284
  ['nextPageToken', 'next_page_token'],
211
285
  ],
212
- 'sylphx.notify.v1.ListSendersRequest': [
286
+ 'sylphx.notify.v1.ListRoutesRequest': [
213
287
  ['pageSize', 'page_size'],
214
288
  ['pageToken', 'page_token'],
215
289
  ['orderBy', 'order_by'],
216
290
  ],
217
- 'sylphx.notify.v1.ListSendersResponse': [
218
- ['senders', 'senders', 'sylphx.notify.v1.Sender'],
291
+ 'sylphx.notify.v1.ListRoutesResponse': [
292
+ ['routes', 'routes', 'sylphx.notify.v1.Route'],
219
293
  ['nextPageToken', 'next_page_token'],
220
294
  ],
221
- 'sylphx.notify.v1.ListSendingDomainsRequest': [
295
+ 'sylphx.notify.v1.ListSendersRequest': [
222
296
  ['pageSize', 'page_size'],
223
297
  ['pageToken', 'page_token'],
224
298
  ['orderBy', 'order_by'],
225
299
  ],
226
- 'sylphx.notify.v1.ListSendingDomainsResponse': [
227
- ['sendingDomains', 'sending_domains', 'sylphx.notify.v1.SendingDomain'],
300
+ 'sylphx.notify.v1.ListSendersResponse': [
301
+ ['senders', 'senders', 'sylphx.notify.v1.Sender'],
228
302
  ['nextPageToken', 'next_page_token'],
229
303
  ],
230
304
  'sylphx.notify.v1.ListSuppressionsRequest': [
@@ -251,12 +325,43 @@ runtime.registerSchemas({
251
325
  ['spec', 'spec', 'sylphx.notify.v1.MailboxSpec'],
252
326
  ['status', 'status', 'sylphx.notify.v1.MailboxStatus'],
253
327
  ],
328
+ 'sylphx.notify.v1.MailboxConnectLink': [
329
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
330
+ ['mailboxId', 'mailbox_id'],
331
+ ['displayName', 'display_name'],
332
+ ['backfillStartTime', 'backfill_start_time'],
333
+ ['loginHint', 'login_hint'],
334
+ ['returnUrl', 'return_url'],
335
+ ['refreshUrl', 'refresh_url'],
336
+ ['expireTime', 'expire_time'],
337
+ ['completeTime', 'complete_time'],
338
+ ['connectedMailbox', 'connected_mailbox'],
339
+ ['errorCode', 'error_code'],
340
+ ],
341
+ 'sylphx.notify.v1.MailboxOauthApp': [
342
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
343
+ ['spec', 'spec', 'sylphx.notify.v1.MailboxOauthAppSpec'],
344
+ ['status', 'status', 'sylphx.notify.v1.MailboxOauthAppStatus'],
345
+ ],
346
+ 'sylphx.notify.v1.MailboxOauthAppSpec': [
347
+ ['clientId', 'client_id'],
348
+ ['clientSecret', 'client_secret'],
349
+ ],
350
+ 'sylphx.notify.v1.MailboxOauthAppStatus': [
351
+ ['observedGeneration', 'observed_generation'],
352
+ ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
353
+ ['clientSecretSet', 'client_secret_set'],
354
+ ['redirectUri', 'redirect_uri'],
355
+ ],
254
356
  'sylphx.notify.v1.MailboxSpec': [
255
357
  ['displayName', 'display_name'],
256
358
  ['imap', 'imap', 'sylphx.notify.v1.MailServer'],
257
359
  ['smtp', 'smtp', 'sylphx.notify.v1.MailServer'],
258
360
  ['appendSent', 'append_sent'],
259
361
  ['backfillStartTime', 'backfill_start_time'],
362
+ ['authKind', 'auth_kind'],
363
+ ['oauthProvider', 'oauth_provider'],
364
+ ['oauthRefreshToken', 'oauth_refresh_token'],
260
365
  ],
261
366
  'sylphx.notify.v1.MailboxStatus': [
262
367
  ['observedGeneration', 'observed_generation'],
@@ -265,6 +370,9 @@ runtime.registerSchemas({
265
370
  ['lastPollTime', 'last_poll_time'],
266
371
  ['lastError', 'last_error'],
267
372
  ['sentFolder', 'sent_folder'],
373
+ ['oauthRefreshTokenSet', 'oauth_refresh_token_set'],
374
+ ['oauthScopes', 'oauth_scopes'],
375
+ ['reconnectRequired', 'reconnect_required'],
268
376
  ],
269
377
  'sylphx.notify.v1.MarkInboxItemReadRequest': [],
270
378
  'sylphx.notify.v1.MarkInboxItemUnreadRequest': [],
@@ -312,6 +420,23 @@ runtime.registerSchemas({
312
420
  ['languageCode', 'language_code'],
313
421
  ['timeZone', 'time_zone'],
314
422
  ],
423
+ 'sylphx.notify.v1.Route': [
424
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
425
+ ['spec', 'spec', 'sylphx.notify.v1.RouteSpec'],
426
+ ['status', 'status', 'sylphx.notify.v1.RouteStatus'],
427
+ ],
428
+ 'sylphx.notify.v1.RouteAction': [],
429
+ 'sylphx.notify.v1.RouteMatch': [
430
+ ['catchAll', 'catch_all'],
431
+ ],
432
+ 'sylphx.notify.v1.RouteSpec': [
433
+ ['match', 'match', 'sylphx.notify.v1.RouteMatch'],
434
+ ['actions', 'actions', 'sylphx.notify.v1.RouteAction'],
435
+ ],
436
+ 'sylphx.notify.v1.RouteStatus': [
437
+ ['observedGeneration', 'observed_generation'],
438
+ ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
439
+ ],
315
440
  'sylphx.notify.v1.SendBroadcastRequest': [
316
441
  ['validateOnly', 'validate_only'],
317
442
  ],
@@ -333,21 +458,6 @@ runtime.registerSchemas({
333
458
  ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
334
459
  ['verificationNote', 'verification_note'],
335
460
  ],
336
- 'sylphx.notify.v1.SendingDomain': [
337
- ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
338
- ['spec', 'spec', 'sylphx.notify.v1.SendingDomainSpec'],
339
- ['status', 'status', 'sylphx.notify.v1.SendingDomainStatus'],
340
- ],
341
- 'sylphx.notify.v1.SendingDomainSpec': [
342
- ['returnPathLabel', 'return_path_label'],
343
- ],
344
- 'sylphx.notify.v1.SendingDomainStatus': [
345
- ['observedGeneration', 'observed_generation'],
346
- ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
347
- ['verifyTime', 'verify_time'],
348
- ['dnsRecords', 'dns_records', 'sylphx.notify.v1.DnsRecord'],
349
- ['dkimSelector', 'dkim_selector'],
350
- ],
351
461
  'sylphx.notify.v1.SmsContent': [],
352
462
  'sylphx.notify.v1.SmsSender': [
353
463
  ['phoneNumber', 'phone_number'],
@@ -380,6 +490,18 @@ runtime.registerSchemas({
380
490
  ['allowMissing', 'allow_missing'],
381
491
  ['validateOnly', 'validate_only'],
382
492
  ],
493
+ 'sylphx.notify.v1.UpdateEmailDomainRequest': [
494
+ ['emailDomain', 'email_domain', 'sylphx.notify.v1.EmailDomain'],
495
+ ['updateMask', 'update_mask'],
496
+ ['allowMissing', 'allow_missing'],
497
+ ['validateOnly', 'validate_only'],
498
+ ],
499
+ 'sylphx.notify.v1.UpdateMailboxOauthAppRequest': [
500
+ ['mailboxOauthApp', 'mailbox_oauth_app', 'sylphx.notify.v1.MailboxOauthApp'],
501
+ ['updateMask', 'update_mask'],
502
+ ['allowMissing', 'allow_missing'],
503
+ ['validateOnly', 'validate_only'],
504
+ ],
383
505
  'sylphx.notify.v1.UpdateMailboxRequest': [
384
506
  ['mailbox', 'mailbox', 'sylphx.notify.v1.Mailbox'],
385
507
  ['updateMask', 'update_mask'],
@@ -398,14 +520,14 @@ runtime.registerSchemas({
398
520
  ['allowMissing', 'allow_missing'],
399
521
  ['validateOnly', 'validate_only'],
400
522
  ],
401
- 'sylphx.notify.v1.UpdateSenderRequest': [
402
- ['sender', 'sender', 'sylphx.notify.v1.Sender'],
523
+ 'sylphx.notify.v1.UpdateRouteRequest': [
524
+ ['route', 'route', 'sylphx.notify.v1.Route'],
403
525
  ['updateMask', 'update_mask'],
404
526
  ['allowMissing', 'allow_missing'],
405
527
  ['validateOnly', 'validate_only'],
406
528
  ],
407
- 'sylphx.notify.v1.UpdateSendingDomainRequest': [
408
- ['sendingDomain', 'sending_domain', 'sylphx.notify.v1.SendingDomain'],
529
+ 'sylphx.notify.v1.UpdateSenderRequest': [
530
+ ['sender', 'sender', 'sylphx.notify.v1.Sender'],
409
531
  ['updateMask', 'update_mask'],
410
532
  ['allowMissing', 'allow_missing'],
411
533
  ['validateOnly', 'validate_only'],
@@ -416,20 +538,21 @@ runtime.registerSchemas({
416
538
  ['allowMissing', 'allow_missing'],
417
539
  ['validateOnly', 'validate_only'],
418
540
  ],
541
+ 'sylphx.notify.v1.VerifyEmailDomainRequest': [],
419
542
  'sylphx.notify.v1.VerifySenderRequest': [],
420
- 'sylphx.notify.v1.VerifySendingDomainRequest': [],
421
543
  });
422
544
  /**
423
545
  * NotifyService is Sylphx Notify: messages to people over email, SMS, push,
424
- * and in-app inbox, with preferences, suppression, templates, and broadcasts
425
- * (docs/services/notify/vision.md). Notify is built on Sylphx Events as an
426
- * ordinary customer.
546
+ * and in-app inbox, with preferences, suppression, templates, and broadcasts.
547
+ * Notify is built on Sylphx Events as an ordinary customer.
427
548
  *
428
549
  * Namespace of Sylphx Notify on `Sylphx`.
429
550
  */
430
551
  export class NotifyApi {
431
- /** The `sending_domains` collection. */
432
- sendingDomains;
552
+ /** The `mail_domains` collection. */
553
+ mailDomains;
554
+ /** The `mail_routes` collection. */
555
+ mailRoutes;
433
556
  /** The `senders` collection. */
434
557
  senders;
435
558
  /** The `recipients` collection. */
@@ -444,6 +567,10 @@ export class NotifyApi {
444
567
  messages;
445
568
  /** The `mailboxes` collection. */
446
569
  mailboxes;
570
+ /** The `mailbox_oauth_apps` collection. */
571
+ mailboxOauthApps;
572
+ /** The `mailbox_connect_links` collection. */
573
+ mailboxConnectLinks;
447
574
  /** The `inbound_emails` collection. */
448
575
  inboundEmails;
449
576
  /** The `inbox_items` collection. */
@@ -451,7 +578,8 @@ export class NotifyApi {
451
578
  /** The `broadcasts` collection. */
452
579
  broadcasts;
453
580
  constructor(client) {
454
- this.sendingDomains = new SendingDomainsCollection(client);
581
+ this.mailDomains = new MailDomainsCollection(client);
582
+ this.mailRoutes = new MailRoutesCollection(client);
455
583
  this.senders = new SendersCollection(client);
456
584
  this.recipients = new RecipientsCollection(client);
457
585
  this.preferences = new PreferencesCollection(client);
@@ -459,45 +587,47 @@ export class NotifyApi {
459
587
  this.templates = new TemplatesCollection(client);
460
588
  this.messages = new MessagesCollection(client);
461
589
  this.mailboxes = new MailboxesCollection(client);
590
+ this.mailboxOauthApps = new MailboxOauthAppsCollection(client);
591
+ this.mailboxConnectLinks = new MailboxConnectLinksCollection(client);
462
592
  this.inboundEmails = new InboundEmailsCollection(client);
463
593
  this.inboxItems = new InboxItemsCollection(client);
464
594
  this.broadcasts = new BroadcastsCollection(client);
465
595
  }
466
596
  }
467
- /** `sending_domains` of Sylphx Notify: Resource type `notify.sylphx.com/SendingDomain`. */
468
- export class SendingDomainsCollection {
597
+ /** `mail_domains` of Sylphx Notify: Resource type `notify.sylphx.com/EmailDomain`. */
598
+ export class MailDomainsCollection {
469
599
  client;
470
600
  constructor(client) {
471
601
  this.client = client;
472
602
  }
473
603
  /**
474
- * Gets a sending domain.
604
+ * Gets an email domain.
475
605
  *
476
- * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/sending_domains/*}` · permission `notify:read` · effect `read`
606
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*}` · permission `notify:read` · effect `read`
477
607
  *
478
608
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
479
609
  */
480
610
  async get(request) {
481
611
  return this.client.call({
482
612
  method: 'GET',
483
- path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/sending_domains/*', 'name')}`,
484
- responseType: 'sylphx.notify.v1.SendingDomain',
613
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mail_domains/*', 'name')}`,
614
+ responseType: 'sylphx.notify.v1.EmailDomain',
485
615
  mutation: false,
486
616
  });
487
617
  }
488
618
  /**
489
- * Lists sending domains.
619
+ * Lists email domains.
490
620
  *
491
- * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/sending_domains` · permission `notify:read` · effect `read`
621
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/mail_domains` · permission `notify:read` · effect `read`
492
622
  *
493
623
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
494
624
  */
495
625
  async list(request) {
496
626
  return this.client.call({
497
627
  method: 'GET',
498
- path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/sending_domains`,
628
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/mail_domains`,
499
629
  query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
500
- responseType: 'sylphx.notify.v1.ListSendingDomainsResponse',
630
+ responseType: 'sylphx.notify.v1.ListEmailDomainsResponse',
501
631
  mutation: false,
502
632
  });
503
633
  }
@@ -506,77 +636,177 @@ export class SendingDomainsCollection {
506
636
  let next = request;
507
637
  for (;;) {
508
638
  const page = await this.list(next);
509
- yield* page.sendingDomains ?? [];
639
+ yield* page.emailDomains ?? [];
510
640
  if (page.nextPageToken === undefined || page.nextPageToken === '')
511
641
  return;
512
642
  next = { ...request, pageToken: page.nextPageToken };
513
643
  }
514
644
  }
515
645
  /**
516
- * Creates a sending domain.
646
+ * Creates an email domain.
517
647
  *
518
- * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/sending_domains` · permission `notify:write` · effect `write`
648
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/mail_domains` · permission `notify:write` · effect `write`
519
649
  *
520
650
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
521
651
  */
522
652
  async create(request) {
523
653
  return this.client.call({
524
654
  method: 'POST',
525
- path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/sending_domains`,
526
- query: { sending_domain_id: request.sendingDomainId, validate_only: request.validateOnly },
527
- body: request.sendingDomain ?? {},
528
- bodyType: 'sylphx.notify.v1.SendingDomain',
529
- responseType: 'sylphx.notify.v1.SendingDomain',
655
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/mail_domains`,
656
+ query: { email_domain_id: request.emailDomainId, validate_only: request.validateOnly },
657
+ body: request.emailDomain ?? {},
658
+ bodyType: 'sylphx.notify.v1.EmailDomain',
659
+ responseType: 'sylphx.notify.v1.EmailDomain',
530
660
  mutation: true,
531
661
  });
532
662
  }
533
663
  /**
534
- * Updates a sending domain.
664
+ * Updates an email domain.
535
665
  *
536
- * `PATCH /v1/{sending_domain.name=orgs/*\/projects/*\/envs/*\/sending_domains/*}` · permission `notify:write` · effect `write`
666
+ * `PATCH /v1/{email_domain.name=orgs/*\/projects/*\/envs/*\/mail_domains/*}` · permission `notify:write` · effect `write`
537
667
  *
538
668
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
539
669
  */
540
670
  async update(request) {
541
671
  return this.client.call({
542
672
  method: 'PATCH',
543
- path: `/v1/${runtime.pathParam(request.sendingDomain?.name, 'orgs/*/projects/*/envs/*/sending_domains/*', 'sending_domain.name')}`,
673
+ path: `/v1/${runtime.pathParam(request.emailDomain?.name, 'orgs/*/projects/*/envs/*/mail_domains/*', 'email_domain.name')}`,
544
674
  query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
545
- body: request.sendingDomain ?? {},
546
- bodyType: 'sylphx.notify.v1.SendingDomain',
547
- responseType: 'sylphx.notify.v1.SendingDomain',
675
+ body: request.emailDomain ?? {},
676
+ bodyType: 'sylphx.notify.v1.EmailDomain',
677
+ responseType: 'sylphx.notify.v1.EmailDomain',
548
678
  mutation: true,
549
679
  });
550
680
  }
551
681
  /**
552
- * Deletes a sending domain.
682
+ * Deletes an email domain.
553
683
  *
554
- * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/sending_domains/*}` · permission `notify:write` · effect `destructive`
684
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*}` · permission `notify:write` · effect `destructive`
555
685
  *
556
686
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
557
687
  */
558
688
  async delete(request) {
559
689
  return this.client.call({
560
690
  method: 'DELETE',
561
- path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/sending_domains/*', 'name')}`,
562
- query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
691
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mail_domains/*', 'name')}`,
692
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly, force: request.force },
563
693
  mutation: true,
564
694
  });
565
695
  }
566
696
  /**
567
697
  * Checks the domain's DNS records now instead of on the next sweep.
568
698
  *
569
- * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/sending_domains/*}:verify` · permission `notify:write` · effect `write`
699
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*}:verify` · permission `notify:write` · effect `write`
570
700
  *
571
701
  * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `RATE_LIMITED`.
572
702
  */
573
703
  async verify(request) {
574
704
  return this.client.call({
575
705
  method: 'POST',
576
- path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/sending_domains/*', 'name')}:verify`,
706
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mail_domains/*', 'name')}:verify`,
577
707
  body: runtime.omit(request, ['name']),
578
- bodyType: 'sylphx.notify.v1.VerifySendingDomainRequest',
579
- responseType: 'sylphx.notify.v1.SendingDomain',
708
+ bodyType: 'sylphx.notify.v1.VerifyEmailDomainRequest',
709
+ responseType: 'sylphx.notify.v1.EmailDomain',
710
+ mutation: true,
711
+ });
712
+ }
713
+ }
714
+ /** `mail_routes` of Sylphx Notify: Resource type `notify.sylphx.com/Route`. */
715
+ export class MailRoutesCollection {
716
+ client;
717
+ constructor(client) {
718
+ this.client = client;
719
+ }
720
+ /**
721
+ * Gets a route.
722
+ *
723
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*\/mail_routes/*}` · permission `notify:read` · effect `read`
724
+ *
725
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
726
+ */
727
+ async get(request) {
728
+ return this.client.call({
729
+ method: 'GET',
730
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mail_domains/*/mail_routes/*', 'name')}`,
731
+ responseType: 'sylphx.notify.v1.Route',
732
+ mutation: false,
733
+ });
734
+ }
735
+ /**
736
+ * Lists an email domain's routes.
737
+ *
738
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/mail_domains/*}/mail_routes` · permission `notify:read` · effect `read`
739
+ *
740
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
741
+ */
742
+ async list(request) {
743
+ return this.client.call({
744
+ method: 'GET',
745
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/mail_domains/*', 'parent')}/mail_routes`,
746
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
747
+ responseType: 'sylphx.notify.v1.ListRoutesResponse',
748
+ mutation: false,
749
+ });
750
+ }
751
+ /** Every item of every page of `list`. */
752
+ async *listAll(request) {
753
+ let next = request;
754
+ for (;;) {
755
+ const page = await this.list(next);
756
+ yield* page.routes ?? [];
757
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
758
+ return;
759
+ next = { ...request, pageToken: page.nextPageToken };
760
+ }
761
+ }
762
+ /**
763
+ * Creates a route.
764
+ *
765
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*\/mail_domains/*}/mail_routes` · permission `notify:write` · effect `write`
766
+ *
767
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
768
+ */
769
+ async create(request) {
770
+ return this.client.call({
771
+ method: 'POST',
772
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/mail_domains/*', 'parent')}/mail_routes`,
773
+ query: { route_id: request.routeId, validate_only: request.validateOnly },
774
+ body: request.route ?? {},
775
+ bodyType: 'sylphx.notify.v1.Route',
776
+ responseType: 'sylphx.notify.v1.Route',
777
+ mutation: true,
778
+ });
779
+ }
780
+ /**
781
+ * Updates a route.
782
+ *
783
+ * `PATCH /v1/{route.name=orgs/*\/projects/*\/envs/*\/mail_domains/*\/mail_routes/*}` · permission `notify:write` · effect `write`
784
+ *
785
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
786
+ */
787
+ async update(request) {
788
+ return this.client.call({
789
+ method: 'PATCH',
790
+ path: `/v1/${runtime.pathParam(request.route?.name, 'orgs/*/projects/*/envs/*/mail_domains/*/mail_routes/*', 'route.name')}`,
791
+ query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
792
+ body: request.route ?? {},
793
+ bodyType: 'sylphx.notify.v1.Route',
794
+ responseType: 'sylphx.notify.v1.Route',
795
+ mutation: true,
796
+ });
797
+ }
798
+ /**
799
+ * Deletes a route.
800
+ *
801
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*\/mail_routes/*}` · permission `notify:write` · effect `destructive`
802
+ *
803
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`.
804
+ */
805
+ async delete(request) {
806
+ return this.client.call({
807
+ method: 'DELETE',
808
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mail_domains/*/mail_routes/*', 'name')}`,
809
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
580
810
  mutation: true,
581
811
  });
582
812
  }
@@ -1265,6 +1495,174 @@ export class MailboxesCollection {
1265
1495
  });
1266
1496
  }
1267
1497
  }
1498
+ /** `mailbox_oauth_apps` of Sylphx Notify: Resource type `notify.sylphx.com/MailboxOauthApp`. */
1499
+ export class MailboxOauthAppsCollection {
1500
+ client;
1501
+ constructor(client) {
1502
+ this.client = client;
1503
+ }
1504
+ /**
1505
+ * Gets a mailbox OAuth app.
1506
+ *
1507
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailbox_oauth_apps/*}` · permission `notify:read` · effect `read`
1508
+ *
1509
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1510
+ */
1511
+ async get(request) {
1512
+ return this.client.call({
1513
+ method: 'GET',
1514
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mailbox_oauth_apps/*', 'name')}`,
1515
+ responseType: 'sylphx.notify.v1.MailboxOauthApp',
1516
+ mutation: false,
1517
+ });
1518
+ }
1519
+ /**
1520
+ * Lists mailbox OAuth apps.
1521
+ *
1522
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/mailbox_oauth_apps` · permission `notify:read` · effect `read`
1523
+ *
1524
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1525
+ */
1526
+ async list(request) {
1527
+ return this.client.call({
1528
+ method: 'GET',
1529
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/mailbox_oauth_apps`,
1530
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
1531
+ responseType: 'sylphx.notify.v1.ListMailboxOauthAppsResponse',
1532
+ mutation: false,
1533
+ });
1534
+ }
1535
+ /** Every item of every page of `list`. */
1536
+ async *listAll(request) {
1537
+ let next = request;
1538
+ for (;;) {
1539
+ const page = await this.list(next);
1540
+ yield* page.mailboxOauthApps ?? [];
1541
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
1542
+ return;
1543
+ next = { ...request, pageToken: page.nextPageToken };
1544
+ }
1545
+ }
1546
+ /**
1547
+ * Creates a mailbox OAuth app.
1548
+ *
1549
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/mailbox_oauth_apps` · permission `notify:write` · effect `write`
1550
+ *
1551
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1552
+ */
1553
+ async create(request) {
1554
+ return this.client.call({
1555
+ method: 'POST',
1556
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/mailbox_oauth_apps`,
1557
+ query: { mailbox_oauth_app_id: request.mailboxOauthAppId, validate_only: request.validateOnly },
1558
+ body: request.mailboxOauthApp ?? {},
1559
+ bodyType: 'sylphx.notify.v1.MailboxOauthApp',
1560
+ responseType: 'sylphx.notify.v1.MailboxOauthApp',
1561
+ mutation: true,
1562
+ });
1563
+ }
1564
+ /**
1565
+ * Updates a mailbox OAuth app.
1566
+ *
1567
+ * `PATCH /v1/{mailbox_oauth_app.name=orgs/*\/projects/*\/envs/*\/mailbox_oauth_apps/*}` · permission `notify:write` · effect `write`
1568
+ *
1569
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1570
+ */
1571
+ async update(request) {
1572
+ return this.client.call({
1573
+ method: 'PATCH',
1574
+ path: `/v1/${runtime.pathParam(request.mailboxOauthApp?.name, 'orgs/*/projects/*/envs/*/mailbox_oauth_apps/*', 'mailbox_oauth_app.name')}`,
1575
+ query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
1576
+ body: request.mailboxOauthApp ?? {},
1577
+ bodyType: 'sylphx.notify.v1.MailboxOauthApp',
1578
+ responseType: 'sylphx.notify.v1.MailboxOauthApp',
1579
+ mutation: true,
1580
+ });
1581
+ }
1582
+ /**
1583
+ * Deletes a mailbox OAuth app; refused while a mailbox uses it.
1584
+ *
1585
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mailbox_oauth_apps/*}` · permission `notify:write` · effect `destructive`
1586
+ *
1587
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `RESOURCE_IN_USE`.
1588
+ */
1589
+ async delete(request) {
1590
+ return this.client.call({
1591
+ method: 'DELETE',
1592
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mailbox_oauth_apps/*', 'name')}`,
1593
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
1594
+ mutation: true,
1595
+ });
1596
+ }
1597
+ }
1598
+ /** `mailbox_connect_links` of Sylphx Notify: Resource type `notify.sylphx.com/MailboxConnectLink`. */
1599
+ export class MailboxConnectLinksCollection {
1600
+ client;
1601
+ constructor(client) {
1602
+ this.client = client;
1603
+ }
1604
+ /**
1605
+ * Gets a mailbox connect link.
1606
+ *
1607
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailbox_connect_links/*}` · permission `notify:read` · effect `read`
1608
+ *
1609
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1610
+ */
1611
+ async get(request) {
1612
+ return this.client.call({
1613
+ method: 'GET',
1614
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mailbox_connect_links/*', 'name')}`,
1615
+ responseType: 'sylphx.notify.v1.MailboxConnectLink',
1616
+ mutation: false,
1617
+ });
1618
+ }
1619
+ /**
1620
+ * Lists mailbox connect links.
1621
+ *
1622
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/mailbox_connect_links` · permission `notify:read` · effect `read`
1623
+ *
1624
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1625
+ */
1626
+ async list(request) {
1627
+ return this.client.call({
1628
+ method: 'GET',
1629
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/mailbox_connect_links`,
1630
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
1631
+ responseType: 'sylphx.notify.v1.ListMailboxConnectLinksResponse',
1632
+ mutation: false,
1633
+ });
1634
+ }
1635
+ /** Every item of every page of `list`. */
1636
+ async *listAll(request) {
1637
+ let next = request;
1638
+ for (;;) {
1639
+ const page = await this.list(next);
1640
+ yield* page.mailboxConnectLinks ?? [];
1641
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
1642
+ return;
1643
+ next = { ...request, pageToken: page.nextPageToken };
1644
+ }
1645
+ }
1646
+ /**
1647
+ * Mints a mailbox connect link for one end user; the response carries its
1648
+ * `url`, which no later call returns.
1649
+ *
1650
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/mailbox_connect_links` · permission `notify:write` · effect `write`
1651
+ *
1652
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1653
+ */
1654
+ async create(request) {
1655
+ return this.client.call({
1656
+ method: 'POST',
1657
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/mailbox_connect_links`,
1658
+ query: { mailbox_connect_link_id: request.mailboxConnectLinkId, validate_only: request.validateOnly },
1659
+ body: request.mailboxConnectLink ?? {},
1660
+ bodyType: 'sylphx.notify.v1.MailboxConnectLink',
1661
+ responseType: 'sylphx.notify.v1.MailboxConnectLink',
1662
+ mutation: true,
1663
+ });
1664
+ }
1665
+ }
1268
1666
  /** `inbound_emails` of Sylphx Notify: Resource type `notify.sylphx.com/InboundEmail`. */
1269
1667
  export class InboundEmailsCollection {
1270
1668
  client;