@sylphx/sdk 0.32.0 → 0.32.2

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 (127) hide show
  1. package/README.md +125 -0
  2. package/dist/access.d.ts +50 -1
  3. package/dist/access.js +14 -2
  4. package/dist/access.js.map +1 -1
  5. package/dist/agents.d.ts +2002 -0
  6. package/dist/agents.js +1367 -0
  7. package/dist/agents.js.map +1 -0
  8. package/dist/ai.js +1 -1
  9. package/dist/ai.js.map +1 -1
  10. package/dist/analytics.d.ts +232 -0
  11. package/dist/analytics.js +126 -0
  12. package/dist/analytics.js.map +1 -0
  13. package/dist/artifacts.d.ts +47 -1
  14. package/dist/artifacts.js +30 -2
  15. package/dist/artifacts.js.map +1 -1
  16. package/dist/assets.js +1 -1
  17. package/dist/assets.js.map +1 -1
  18. package/dist/auth/client.d.ts +34 -3
  19. package/dist/auth/client.js +42 -5
  20. package/dist/auth/client.js.map +1 -1
  21. package/dist/auth/continue-mock.d.ts +21 -0
  22. package/dist/auth/continue-mock.js +75 -0
  23. package/dist/auth/continue-mock.js.map +1 -0
  24. package/dist/auth/end-user-keys-mock.d.ts +83 -0
  25. package/dist/auth/end-user-keys-mock.js +427 -0
  26. package/dist/auth/end-user-keys-mock.js.map +1 -0
  27. package/dist/auth/end-user-keys.d.ts +219 -0
  28. package/dist/auth/end-user-keys.js +240 -0
  29. package/dist/auth/end-user-keys.js.map +1 -0
  30. package/dist/auth/verify.js +1 -1
  31. package/dist/auth/verify.js.map +1 -1
  32. package/dist/auth.d.ts +370 -2
  33. package/dist/auth.js +282 -2
  34. package/dist/auth.js.map +1 -1
  35. package/dist/billing.d.ts +96 -11
  36. package/dist/billing.js +41 -1
  37. package/dist/billing.js.map +1 -1
  38. package/dist/broker.d.ts +165 -33
  39. package/dist/broker.js +103 -7
  40. package/dist/broker.js.map +1 -1
  41. package/dist/browser-upload.d.ts +101 -0
  42. package/dist/browser-upload.js +130 -0
  43. package/dist/browser-upload.js.map +1 -0
  44. package/dist/build.d.ts +361 -28
  45. package/dist/build.js +302 -10
  46. package/dist/build.js.map +1 -1
  47. package/dist/common.d.ts +1 -1
  48. package/dist/common.js +1 -1
  49. package/dist/common.js.map +1 -1
  50. package/dist/config/flags.d.ts +12 -2
  51. package/dist/config/flags.js +54 -6
  52. package/dist/config/flags.js.map +1 -1
  53. package/dist/config.d.ts +24 -0
  54. package/dist/config.js +22 -1
  55. package/dist/config.js.map +1 -1
  56. package/dist/connections.d.ts +128 -25
  57. package/dist/connections.js +72 -25
  58. package/dist/connections.js.map +1 -1
  59. package/dist/data.d.ts +358 -13
  60. package/dist/data.js +166 -9
  61. package/dist/data.js.map +1 -1
  62. package/dist/entitlement.js +1 -1
  63. package/dist/entitlement.js.map +1 -1
  64. package/dist/events/realtime.js +1 -1
  65. package/dist/events/realtime.js.map +1 -1
  66. package/dist/events/webhooks.js +1 -1
  67. package/dist/events/webhooks.js.map +1 -1
  68. package/dist/events.d.ts +36 -0
  69. package/dist/events.js +29 -1
  70. package/dist/events.js.map +1 -1
  71. package/dist/flags.d.ts +20 -0
  72. package/dist/flags.js +48 -0
  73. package/dist/flags.js.map +1 -0
  74. package/dist/hosting.js +1 -1
  75. package/dist/hosting.js.map +1 -1
  76. package/dist/ids.d.ts +192 -2
  77. package/dist/ids.js +40 -2
  78. package/dist/ids.js.map +1 -1
  79. package/dist/index.d.ts +18 -1
  80. package/dist/index.js +32 -2
  81. package/dist/index.js.map +1 -1
  82. package/dist/keys.js +1 -1
  83. package/dist/keys.js.map +1 -1
  84. package/dist/knowledge.d.ts +1215 -0
  85. package/dist/knowledge.js +1012 -0
  86. package/dist/knowledge.js.map +1 -0
  87. package/dist/localization.js +1 -1
  88. package/dist/localization.js.map +1 -1
  89. package/dist/methods.js +1938 -15
  90. package/dist/methods.js.map +1 -1
  91. package/dist/money.d.ts +1989 -53
  92. package/dist/money.js +1401 -19
  93. package/dist/money.js.map +1 -1
  94. package/dist/network.js +1 -1
  95. package/dist/network.js.map +1 -1
  96. package/dist/notify.d.ts +686 -1
  97. package/dist/notify.js +552 -1
  98. package/dist/notify.js.map +1 -1
  99. package/dist/observability.d.ts +138 -0
  100. package/dist/observability.js +89 -1
  101. package/dist/observability.js.map +1 -1
  102. package/dist/realtime.d.ts +404 -0
  103. package/dist/realtime.js +312 -0
  104. package/dist/realtime.js.map +1 -0
  105. package/dist/release.js +1 -1
  106. package/dist/release.js.map +1 -1
  107. package/dist/runners.js +1 -1
  108. package/dist/runners.js.map +1 -1
  109. package/dist/runtime.d.ts +3 -0
  110. package/dist/runtime.js +54 -1
  111. package/dist/runtime.js.map +1 -1
  112. package/dist/sandboxes/stream-mock.d.ts +124 -0
  113. package/dist/sandboxes/stream-mock.js +476 -0
  114. package/dist/sandboxes/stream-mock.js.map +1 -0
  115. package/dist/sandboxes/stream.d.ts +407 -0
  116. package/dist/sandboxes/stream.js +335 -0
  117. package/dist/sandboxes/stream.js.map +1 -0
  118. package/dist/sandboxes.d.ts +94 -17
  119. package/dist/sandboxes.js +33 -4
  120. package/dist/sandboxes.js.map +1 -1
  121. package/dist/secrets.d.ts +336 -0
  122. package/dist/secrets.js +268 -1
  123. package/dist/secrets.js.map +1 -1
  124. package/dist/workflows.d.ts +119 -3
  125. package/dist/workflows.js +144 -4
  126. package/dist/workflows.js.map +1 -1
  127. package/package.json +2 -2
package/dist/notify.js CHANGED
@@ -1,4 +1,4 @@
1
- // @generated by sylphx-gen 0.1.0 from contracts@c8aac0afaf7591d0d5efa1ba6a8540d723d41a97ce7ad5d68601380ef3ab4783. Do not edit.
1
+ // @generated by sylphx-gen. Do not edit.
2
2
  // `sylphx.notify.v1`.
3
3
  import * as runtime from './runtime.js';
4
4
  import './common.js';
@@ -39,6 +39,16 @@ runtime.registerSchemas({
39
39
  ['emailDomain', 'email_domain', 'sylphx.notify.v1.EmailDomain'],
40
40
  ['validateOnly', 'validate_only'],
41
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
+ ],
42
52
  'sylphx.notify.v1.CreateMailboxRequest': [
43
53
  ['mailboxId', 'mailbox_id'],
44
54
  ['mailbox', 'mailbox', 'sylphx.notify.v1.Mailbox'],
@@ -64,6 +74,10 @@ runtime.registerSchemas({
64
74
  ['sender', 'sender', 'sylphx.notify.v1.Sender'],
65
75
  ['validateOnly', 'validate_only'],
66
76
  ],
77
+ 'sylphx.notify.v1.CreateSmsNumberRequest': [
78
+ ['smsNumberId', 'sms_number_id'],
79
+ ['smsNumber', 'sms_number', 'sylphx.notify.v1.SmsNumber'],
80
+ ],
67
81
  'sylphx.notify.v1.CreateSuppressionRequest': [
68
82
  ['suppressionId', 'suppression_id'],
69
83
  ['suppression', 'suppression', 'sylphx.notify.v1.Suppression'],
@@ -82,10 +96,18 @@ runtime.registerSchemas({
82
96
  ['allowMissing', 'allow_missing'],
83
97
  ['validateOnly', 'validate_only'],
84
98
  ],
99
+ 'sylphx.notify.v1.DeleteMailboxOauthAppRequest': [
100
+ ['allowMissing', 'allow_missing'],
101
+ ['validateOnly', 'validate_only'],
102
+ ],
85
103
  'sylphx.notify.v1.DeleteMailboxRequest': [
86
104
  ['allowMissing', 'allow_missing'],
87
105
  ['validateOnly', 'validate_only'],
88
106
  ],
107
+ 'sylphx.notify.v1.DeleteMessageTopicRequest': [
108
+ ['allowMissing', 'allow_missing'],
109
+ ['validateOnly', 'validate_only'],
110
+ ],
89
111
  'sylphx.notify.v1.DeletePreferenceRequest': [
90
112
  ['allowMissing', 'allow_missing'],
91
113
  ['validateOnly', 'validate_only'],
@@ -102,6 +124,7 @@ runtime.registerSchemas({
102
124
  ['allowMissing', 'allow_missing'],
103
125
  ['validateOnly', 'validate_only'],
104
126
  ],
127
+ 'sylphx.notify.v1.DeleteSmsNumberRequest': [],
105
128
  'sylphx.notify.v1.DeleteSuppressionRequest': [
106
129
  ['allowMissing', 'allow_missing'],
107
130
  ['validateOnly', 'validate_only'],
@@ -147,13 +170,18 @@ runtime.registerSchemas({
147
170
  'sylphx.notify.v1.GetBroadcastRequest': [],
148
171
  'sylphx.notify.v1.GetEmailDomainRequest': [],
149
172
  'sylphx.notify.v1.GetInboundEmailRequest': [],
173
+ 'sylphx.notify.v1.GetInboundSmsRequest': [],
150
174
  'sylphx.notify.v1.GetInboxItemRequest': [],
175
+ 'sylphx.notify.v1.GetMailboxConnectLinkRequest': [],
176
+ 'sylphx.notify.v1.GetMailboxOauthAppRequest': [],
151
177
  'sylphx.notify.v1.GetMailboxRequest': [],
152
178
  'sylphx.notify.v1.GetMessageRequest': [],
179
+ 'sylphx.notify.v1.GetMessageTopicRequest': [],
153
180
  'sylphx.notify.v1.GetPreferenceRequest': [],
154
181
  'sylphx.notify.v1.GetRecipientRequest': [],
155
182
  'sylphx.notify.v1.GetRouteRequest': [],
156
183
  'sylphx.notify.v1.GetSenderRequest': [],
184
+ 'sylphx.notify.v1.GetSmsNumberRequest': [],
157
185
  'sylphx.notify.v1.GetSuppressionRequest': [],
158
186
  'sylphx.notify.v1.GetTemplateRequest': [],
159
187
  'sylphx.notify.v1.InboundEmail': [
@@ -170,6 +198,13 @@ runtime.registerSchemas({
170
198
  ['rawSha256', 'raw_sha256'],
171
199
  ['sizeBytes', 'size_bytes'],
172
200
  ],
201
+ 'sylphx.notify.v1.InboundSms': [
202
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
203
+ ['carrierMessageId', 'carrier_message_id'],
204
+ ['senderNumber', 'sender_number'],
205
+ ['recipientNumber', 'recipient_number'],
206
+ ['receiveTime', 'receive_time'],
207
+ ],
173
208
  'sylphx.notify.v1.InboxContent': [
174
209
  ['actionUri', 'action_uri'],
175
210
  ],
@@ -204,6 +239,15 @@ runtime.registerSchemas({
204
239
  ['inboundEmails', 'inbound_emails', 'sylphx.notify.v1.InboundEmail'],
205
240
  ['nextPageToken', 'next_page_token'],
206
241
  ],
242
+ 'sylphx.notify.v1.ListInboundSmsRequest': [
243
+ ['pageSize', 'page_size'],
244
+ ['pageToken', 'page_token'],
245
+ ['orderBy', 'order_by'],
246
+ ],
247
+ 'sylphx.notify.v1.ListInboundSmsResponse': [
248
+ ['inboundSms', 'inbound_sms', 'sylphx.notify.v1.InboundSms'],
249
+ ['nextPageToken', 'next_page_token'],
250
+ ],
207
251
  'sylphx.notify.v1.ListInboxItemsRequest': [
208
252
  ['pageSize', 'page_size'],
209
253
  ['pageToken', 'page_token'],
@@ -213,6 +257,24 @@ runtime.registerSchemas({
213
257
  ['inboxItems', 'inbox_items', 'sylphx.notify.v1.InboxItem'],
214
258
  ['nextPageToken', 'next_page_token'],
215
259
  ],
260
+ 'sylphx.notify.v1.ListMailboxConnectLinksRequest': [
261
+ ['pageSize', 'page_size'],
262
+ ['pageToken', 'page_token'],
263
+ ['orderBy', 'order_by'],
264
+ ],
265
+ 'sylphx.notify.v1.ListMailboxConnectLinksResponse': [
266
+ ['mailboxConnectLinks', 'mailbox_connect_links', 'sylphx.notify.v1.MailboxConnectLink'],
267
+ ['nextPageToken', 'next_page_token'],
268
+ ],
269
+ 'sylphx.notify.v1.ListMailboxOauthAppsRequest': [
270
+ ['pageSize', 'page_size'],
271
+ ['pageToken', 'page_token'],
272
+ ['orderBy', 'order_by'],
273
+ ],
274
+ 'sylphx.notify.v1.ListMailboxOauthAppsResponse': [
275
+ ['mailboxOauthApps', 'mailbox_oauth_apps', 'sylphx.notify.v1.MailboxOauthApp'],
276
+ ['nextPageToken', 'next_page_token'],
277
+ ],
216
278
  'sylphx.notify.v1.ListMailboxesRequest': [
217
279
  ['pageSize', 'page_size'],
218
280
  ['pageToken', 'page_token'],
@@ -222,6 +284,15 @@ runtime.registerSchemas({
222
284
  ['mailboxes', 'mailboxes', 'sylphx.notify.v1.Mailbox'],
223
285
  ['nextPageToken', 'next_page_token'],
224
286
  ],
287
+ 'sylphx.notify.v1.ListMessageTopicsRequest': [
288
+ ['pageSize', 'page_size'],
289
+ ['pageToken', 'page_token'],
290
+ ['orderBy', 'order_by'],
291
+ ],
292
+ 'sylphx.notify.v1.ListMessageTopicsResponse': [
293
+ ['messageTopics', 'message_topics', 'sylphx.notify.v1.MessageTopic'],
294
+ ['nextPageToken', 'next_page_token'],
295
+ ],
225
296
  'sylphx.notify.v1.ListMessagesRequest': [
226
297
  ['pageSize', 'page_size'],
227
298
  ['pageToken', 'page_token'],
@@ -267,6 +338,14 @@ runtime.registerSchemas({
267
338
  ['senders', 'senders', 'sylphx.notify.v1.Sender'],
268
339
  ['nextPageToken', 'next_page_token'],
269
340
  ],
341
+ 'sylphx.notify.v1.ListSmsNumbersRequest': [
342
+ ['pageSize', 'page_size'],
343
+ ['pageToken', 'page_token'],
344
+ ],
345
+ 'sylphx.notify.v1.ListSmsNumbersResponse': [
346
+ ['smsNumbers', 'sms_numbers', 'sylphx.notify.v1.SmsNumber'],
347
+ ['nextPageToken', 'next_page_token'],
348
+ ],
270
349
  'sylphx.notify.v1.ListSuppressionsRequest': [
271
350
  ['pageSize', 'page_size'],
272
351
  ['pageToken', 'page_token'],
@@ -291,12 +370,43 @@ runtime.registerSchemas({
291
370
  ['spec', 'spec', 'sylphx.notify.v1.MailboxSpec'],
292
371
  ['status', 'status', 'sylphx.notify.v1.MailboxStatus'],
293
372
  ],
373
+ 'sylphx.notify.v1.MailboxConnectLink': [
374
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
375
+ ['mailboxId', 'mailbox_id'],
376
+ ['displayName', 'display_name'],
377
+ ['backfillStartTime', 'backfill_start_time'],
378
+ ['loginHint', 'login_hint'],
379
+ ['returnUrl', 'return_url'],
380
+ ['refreshUrl', 'refresh_url'],
381
+ ['expireTime', 'expire_time'],
382
+ ['completeTime', 'complete_time'],
383
+ ['connectedMailbox', 'connected_mailbox'],
384
+ ['errorCode', 'error_code'],
385
+ ],
386
+ 'sylphx.notify.v1.MailboxOauthApp': [
387
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
388
+ ['spec', 'spec', 'sylphx.notify.v1.MailboxOauthAppSpec'],
389
+ ['status', 'status', 'sylphx.notify.v1.MailboxOauthAppStatus'],
390
+ ],
391
+ 'sylphx.notify.v1.MailboxOauthAppSpec': [
392
+ ['clientId', 'client_id'],
393
+ ['clientSecret', 'client_secret'],
394
+ ],
395
+ 'sylphx.notify.v1.MailboxOauthAppStatus': [
396
+ ['observedGeneration', 'observed_generation'],
397
+ ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
398
+ ['clientSecretSet', 'client_secret_set'],
399
+ ['redirectUri', 'redirect_uri'],
400
+ ],
294
401
  'sylphx.notify.v1.MailboxSpec': [
295
402
  ['displayName', 'display_name'],
296
403
  ['imap', 'imap', 'sylphx.notify.v1.MailServer'],
297
404
  ['smtp', 'smtp', 'sylphx.notify.v1.MailServer'],
298
405
  ['appendSent', 'append_sent'],
299
406
  ['backfillStartTime', 'backfill_start_time'],
407
+ ['authKind', 'auth_kind'],
408
+ ['oauthProvider', 'oauth_provider'],
409
+ ['oauthRefreshToken', 'oauth_refresh_token'],
300
410
  ],
301
411
  'sylphx.notify.v1.MailboxStatus': [
302
412
  ['observedGeneration', 'observed_generation'],
@@ -305,6 +415,9 @@ runtime.registerSchemas({
305
415
  ['lastPollTime', 'last_poll_time'],
306
416
  ['lastError', 'last_error'],
307
417
  ['sentFolder', 'sent_folder'],
418
+ ['oauthRefreshTokenSet', 'oauth_refresh_token_set'],
419
+ ['oauthScopes', 'oauth_scopes'],
420
+ ['reconnectRequired', 'reconnect_required'],
308
421
  ],
309
422
  'sylphx.notify.v1.MarkInboxItemReadRequest': [],
310
423
  'sylphx.notify.v1.MarkInboxItemUnreadRequest': [],
@@ -329,6 +442,12 @@ runtime.registerSchemas({
329
442
  ['textBody', 'text_body'],
330
443
  ['htmlBody', 'html_body'],
331
444
  ],
445
+ 'sylphx.notify.v1.MessageTopic': [
446
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
447
+ ['requiredFeature', 'required_feature'],
448
+ ['sendLimitFeature', 'send_limit_feature'],
449
+ ['sendLimitWindow', 'send_limit_window'],
450
+ ],
332
451
  'sylphx.notify.v1.Preference': [
333
452
  ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
334
453
  ['digestInterval', 'digest_interval'],
@@ -391,6 +510,30 @@ runtime.registerSchemas({
391
510
  ['verificationNote', 'verification_note'],
392
511
  ],
393
512
  'sylphx.notify.v1.SmsContent': [],
513
+ 'sylphx.notify.v1.SmsNumber': [
514
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
515
+ ['spec', 'spec', 'sylphx.notify.v1.SmsNumberSpec'],
516
+ ['status', 'status', 'sylphx.notify.v1.SmsNumberStatus'],
517
+ ],
518
+ 'sylphx.notify.v1.SmsNumberSpec': [
519
+ ['regionCode', 'region_code'],
520
+ ['numberType', 'number_type'],
521
+ ['upfrontCostLimit', 'upfront_cost_limit'],
522
+ ['monthlyCostLimit', 'monthly_cost_limit'],
523
+ ],
524
+ 'sylphx.notify.v1.SmsNumberStatus': [
525
+ ['observedGeneration', 'observed_generation'],
526
+ ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
527
+ ['retiredTime', 'retired_time'],
528
+ ['phoneNumber', 'phone_number'],
529
+ ['carrierAccount', 'carrier_account'],
530
+ ['providerNumberId', 'provider_number_id'],
531
+ ['orderId', 'order_id'],
532
+ ['messagingProfileId', 'messaging_profile_id'],
533
+ ['stateReason', 'state_reason'],
534
+ ['upfrontCost', 'upfront_cost'],
535
+ ['monthlyCost', 'monthly_cost'],
536
+ ],
394
537
  'sylphx.notify.v1.SmsSender': [
395
538
  ['phoneNumber', 'phone_number'],
396
539
  ['senderKey', 'sender_key'],
@@ -428,12 +571,24 @@ runtime.registerSchemas({
428
571
  ['allowMissing', 'allow_missing'],
429
572
  ['validateOnly', 'validate_only'],
430
573
  ],
574
+ 'sylphx.notify.v1.UpdateMailboxOauthAppRequest': [
575
+ ['mailboxOauthApp', 'mailbox_oauth_app', 'sylphx.notify.v1.MailboxOauthApp'],
576
+ ['updateMask', 'update_mask'],
577
+ ['allowMissing', 'allow_missing'],
578
+ ['validateOnly', 'validate_only'],
579
+ ],
431
580
  'sylphx.notify.v1.UpdateMailboxRequest': [
432
581
  ['mailbox', 'mailbox', 'sylphx.notify.v1.Mailbox'],
433
582
  ['updateMask', 'update_mask'],
434
583
  ['allowMissing', 'allow_missing'],
435
584
  ['validateOnly', 'validate_only'],
436
585
  ],
586
+ 'sylphx.notify.v1.UpdateMessageTopicRequest': [
587
+ ['messageTopic', 'message_topic', 'sylphx.notify.v1.MessageTopic'],
588
+ ['updateMask', 'update_mask'],
589
+ ['allowMissing', 'allow_missing'],
590
+ ['validateOnly', 'validate_only'],
591
+ ],
437
592
  'sylphx.notify.v1.UpdatePreferenceRequest': [
438
593
  ['preference', 'preference', 'sylphx.notify.v1.Preference'],
439
594
  ['updateMask', 'update_mask'],
@@ -485,6 +640,8 @@ export class NotifyApi {
485
640
  recipients;
486
641
  /** The `preferences` collection. */
487
642
  preferences;
643
+ /** The `message_topics` collection. */
644
+ messageTopics;
488
645
  /** The `suppressions` collection. */
489
646
  suppressions;
490
647
  /** The `templates` collection. */
@@ -493,25 +650,38 @@ export class NotifyApi {
493
650
  messages;
494
651
  /** The `mailboxes` collection. */
495
652
  mailboxes;
653
+ /** The `mailbox_oauth_apps` collection. */
654
+ mailboxOauthApps;
655
+ /** The `mailbox_connect_links` collection. */
656
+ mailboxConnectLinks;
496
657
  /** The `inbound_emails` collection. */
497
658
  inboundEmails;
498
659
  /** The `inbox_items` collection. */
499
660
  inboxItems;
500
661
  /** The `broadcasts` collection. */
501
662
  broadcasts;
663
+ /** The `sms_numbers` collection. */
664
+ smsNumbers;
665
+ /** The `inbound_sms` collection. */
666
+ inboundSms;
502
667
  constructor(client) {
503
668
  this.mailDomains = new MailDomainsCollection(client);
504
669
  this.mailRoutes = new MailRoutesCollection(client);
505
670
  this.senders = new SendersCollection(client);
506
671
  this.recipients = new RecipientsCollection(client);
507
672
  this.preferences = new PreferencesCollection(client);
673
+ this.messageTopics = new MessageTopicsCollection(client);
508
674
  this.suppressions = new SuppressionsCollection(client);
509
675
  this.templates = new TemplatesCollection(client);
510
676
  this.messages = new MessagesCollection(client);
511
677
  this.mailboxes = new MailboxesCollection(client);
678
+ this.mailboxOauthApps = new MailboxOauthAppsCollection(client);
679
+ this.mailboxConnectLinks = new MailboxConnectLinksCollection(client);
512
680
  this.inboundEmails = new InboundEmailsCollection(client);
513
681
  this.inboxItems = new InboxItemsCollection(client);
514
682
  this.broadcasts = new BroadcastsCollection(client);
683
+ this.smsNumbers = new SmsNumbersCollection(client);
684
+ this.inboundSms = new InboundSmsCollection(client);
515
685
  }
516
686
  }
517
687
  /** `mail_domains` of Sylphx Notify: Resource type `notify.sylphx.com/EmailDomain`. */
@@ -1030,6 +1200,88 @@ export class PreferencesCollection {
1030
1200
  });
1031
1201
  }
1032
1202
  }
1203
+ /** `message_topics` of Sylphx Notify: Resource type `notify.sylphx.com/MessageTopic`. */
1204
+ export class MessageTopicsCollection {
1205
+ client;
1206
+ constructor(client) {
1207
+ this.client = client;
1208
+ }
1209
+ /**
1210
+ * Gets a message topic.
1211
+ *
1212
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/message_topics/*}` · permission `notify:read` · effect `read`
1213
+ *
1214
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1215
+ */
1216
+ async get(request) {
1217
+ return this.client.call({
1218
+ method: 'GET',
1219
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/message_topics/*', 'name')}`,
1220
+ responseType: 'sylphx.notify.v1.MessageTopic',
1221
+ mutation: false,
1222
+ });
1223
+ }
1224
+ /**
1225
+ * Lists message topics.
1226
+ *
1227
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/message_topics` · permission `notify:read` · effect `read`
1228
+ *
1229
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1230
+ */
1231
+ async list(request) {
1232
+ return this.client.call({
1233
+ method: 'GET',
1234
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/message_topics`,
1235
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
1236
+ responseType: 'sylphx.notify.v1.ListMessageTopicsResponse',
1237
+ mutation: false,
1238
+ });
1239
+ }
1240
+ /** Every item of every page of `list`. */
1241
+ async *listAll(request) {
1242
+ let next = request;
1243
+ for (;;) {
1244
+ const page = await this.list(next);
1245
+ yield* page.messageTopics ?? [];
1246
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
1247
+ return;
1248
+ next = { ...request, pageToken: page.nextPageToken };
1249
+ }
1250
+ }
1251
+ /**
1252
+ * Updates a message topic; with `allow_missing`, creates it.
1253
+ *
1254
+ * `PATCH /v1/{message_topic.name=orgs/*\/projects/*\/envs/*\/message_topics/*}` · permission `notify:write` · effect `write`
1255
+ *
1256
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1257
+ */
1258
+ async update(request) {
1259
+ return this.client.call({
1260
+ method: 'PATCH',
1261
+ path: `/v1/${runtime.pathParam(request.messageTopic?.name, 'orgs/*/projects/*/envs/*/message_topics/*', 'message_topic.name')}`,
1262
+ query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
1263
+ body: request.messageTopic ?? {},
1264
+ bodyType: 'sylphx.notify.v1.MessageTopic',
1265
+ responseType: 'sylphx.notify.v1.MessageTopic',
1266
+ mutation: true,
1267
+ });
1268
+ }
1269
+ /**
1270
+ * Deletes a message topic; its messages are admitted with no gate or topic limit.
1271
+ *
1272
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/message_topics/*}` · permission `notify:write` · effect `destructive`
1273
+ *
1274
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1275
+ */
1276
+ async delete(request) {
1277
+ return this.client.call({
1278
+ method: 'DELETE',
1279
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/message_topics/*', 'name')}`,
1280
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
1281
+ mutation: true,
1282
+ });
1283
+ }
1284
+ }
1033
1285
  /** `suppressions` of Sylphx Notify: Resource type `notify.sylphx.com/Suppression`. */
1034
1286
  export class SuppressionsCollection {
1035
1287
  client;
@@ -1415,6 +1667,174 @@ export class MailboxesCollection {
1415
1667
  });
1416
1668
  }
1417
1669
  }
1670
+ /** `mailbox_oauth_apps` of Sylphx Notify: Resource type `notify.sylphx.com/MailboxOauthApp`. */
1671
+ export class MailboxOauthAppsCollection {
1672
+ client;
1673
+ constructor(client) {
1674
+ this.client = client;
1675
+ }
1676
+ /**
1677
+ * Gets a mailbox OAuth app.
1678
+ *
1679
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailbox_oauth_apps/*}` · permission `notify:read` · effect `read`
1680
+ *
1681
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1682
+ */
1683
+ async get(request) {
1684
+ return this.client.call({
1685
+ method: 'GET',
1686
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mailbox_oauth_apps/*', 'name')}`,
1687
+ responseType: 'sylphx.notify.v1.MailboxOauthApp',
1688
+ mutation: false,
1689
+ });
1690
+ }
1691
+ /**
1692
+ * Lists mailbox OAuth apps.
1693
+ *
1694
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/mailbox_oauth_apps` · permission `notify:read` · effect `read`
1695
+ *
1696
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1697
+ */
1698
+ async list(request) {
1699
+ return this.client.call({
1700
+ method: 'GET',
1701
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/mailbox_oauth_apps`,
1702
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
1703
+ responseType: 'sylphx.notify.v1.ListMailboxOauthAppsResponse',
1704
+ mutation: false,
1705
+ });
1706
+ }
1707
+ /** Every item of every page of `list`. */
1708
+ async *listAll(request) {
1709
+ let next = request;
1710
+ for (;;) {
1711
+ const page = await this.list(next);
1712
+ yield* page.mailboxOauthApps ?? [];
1713
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
1714
+ return;
1715
+ next = { ...request, pageToken: page.nextPageToken };
1716
+ }
1717
+ }
1718
+ /**
1719
+ * Creates a mailbox OAuth app.
1720
+ *
1721
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/mailbox_oauth_apps` · permission `notify:write` · effect `write`
1722
+ *
1723
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1724
+ */
1725
+ async create(request) {
1726
+ return this.client.call({
1727
+ method: 'POST',
1728
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/mailbox_oauth_apps`,
1729
+ query: { mailbox_oauth_app_id: request.mailboxOauthAppId, validate_only: request.validateOnly },
1730
+ body: request.mailboxOauthApp ?? {},
1731
+ bodyType: 'sylphx.notify.v1.MailboxOauthApp',
1732
+ responseType: 'sylphx.notify.v1.MailboxOauthApp',
1733
+ mutation: true,
1734
+ });
1735
+ }
1736
+ /**
1737
+ * Updates a mailbox OAuth app.
1738
+ *
1739
+ * `PATCH /v1/{mailbox_oauth_app.name=orgs/*\/projects/*\/envs/*\/mailbox_oauth_apps/*}` · permission `notify:write` · effect `write`
1740
+ *
1741
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1742
+ */
1743
+ async update(request) {
1744
+ return this.client.call({
1745
+ method: 'PATCH',
1746
+ path: `/v1/${runtime.pathParam(request.mailboxOauthApp?.name, 'orgs/*/projects/*/envs/*/mailbox_oauth_apps/*', 'mailbox_oauth_app.name')}`,
1747
+ query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
1748
+ body: request.mailboxOauthApp ?? {},
1749
+ bodyType: 'sylphx.notify.v1.MailboxOauthApp',
1750
+ responseType: 'sylphx.notify.v1.MailboxOauthApp',
1751
+ mutation: true,
1752
+ });
1753
+ }
1754
+ /**
1755
+ * Deletes a mailbox OAuth app; refused while a mailbox uses it.
1756
+ *
1757
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mailbox_oauth_apps/*}` · permission `notify:write` · effect `destructive`
1758
+ *
1759
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `RESOURCE_IN_USE`.
1760
+ */
1761
+ async delete(request) {
1762
+ return this.client.call({
1763
+ method: 'DELETE',
1764
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mailbox_oauth_apps/*', 'name')}`,
1765
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
1766
+ mutation: true,
1767
+ });
1768
+ }
1769
+ }
1770
+ /** `mailbox_connect_links` of Sylphx Notify: Resource type `notify.sylphx.com/MailboxConnectLink`. */
1771
+ export class MailboxConnectLinksCollection {
1772
+ client;
1773
+ constructor(client) {
1774
+ this.client = client;
1775
+ }
1776
+ /**
1777
+ * Gets a mailbox connect link.
1778
+ *
1779
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailbox_connect_links/*}` · permission `notify:read` · effect `read`
1780
+ *
1781
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1782
+ */
1783
+ async get(request) {
1784
+ return this.client.call({
1785
+ method: 'GET',
1786
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mailbox_connect_links/*', 'name')}`,
1787
+ responseType: 'sylphx.notify.v1.MailboxConnectLink',
1788
+ mutation: false,
1789
+ });
1790
+ }
1791
+ /**
1792
+ * Lists mailbox connect links.
1793
+ *
1794
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/mailbox_connect_links` · permission `notify:read` · effect `read`
1795
+ *
1796
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1797
+ */
1798
+ async list(request) {
1799
+ return this.client.call({
1800
+ method: 'GET',
1801
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/mailbox_connect_links`,
1802
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
1803
+ responseType: 'sylphx.notify.v1.ListMailboxConnectLinksResponse',
1804
+ mutation: false,
1805
+ });
1806
+ }
1807
+ /** Every item of every page of `list`. */
1808
+ async *listAll(request) {
1809
+ let next = request;
1810
+ for (;;) {
1811
+ const page = await this.list(next);
1812
+ yield* page.mailboxConnectLinks ?? [];
1813
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
1814
+ return;
1815
+ next = { ...request, pageToken: page.nextPageToken };
1816
+ }
1817
+ }
1818
+ /**
1819
+ * Mints a mailbox connect link for one end user; the response carries its
1820
+ * `url`, which no later call returns.
1821
+ *
1822
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/mailbox_connect_links` · permission `notify:write` · effect `write`
1823
+ *
1824
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1825
+ */
1826
+ async create(request) {
1827
+ return this.client.call({
1828
+ method: 'POST',
1829
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/mailbox_connect_links`,
1830
+ query: { mailbox_connect_link_id: request.mailboxConnectLinkId, validate_only: request.validateOnly },
1831
+ body: request.mailboxConnectLink ?? {},
1832
+ bodyType: 'sylphx.notify.v1.MailboxConnectLink',
1833
+ responseType: 'sylphx.notify.v1.MailboxConnectLink',
1834
+ mutation: true,
1835
+ });
1836
+ }
1837
+ }
1418
1838
  /** `inbound_emails` of Sylphx Notify: Resource type `notify.sylphx.com/InboundEmail`. */
1419
1839
  export class InboundEmailsCollection {
1420
1840
  client;
@@ -1698,4 +2118,135 @@ export class BroadcastsCollection {
1698
2118
  });
1699
2119
  }
1700
2120
  }
2121
+ /** `sms_numbers` of Sylphx Notify: Resource type `notify.sylphx.com/SmsNumber`. */
2122
+ export class SmsNumbersCollection {
2123
+ client;
2124
+ constructor(client) {
2125
+ this.client = client;
2126
+ }
2127
+ /**
2128
+ * Provisions one carrier number within explicit cost limits and receives its SMS.
2129
+ *
2130
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/sms_numbers` · permission `notify:write` · effect `write`
2131
+ *
2132
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
2133
+ */
2134
+ async create(request) {
2135
+ return this.client.call({
2136
+ method: 'POST',
2137
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/sms_numbers`,
2138
+ query: { sms_number_id: request.smsNumberId },
2139
+ body: request.smsNumber ?? {},
2140
+ bodyType: 'sylphx.notify.v1.SmsNumber',
2141
+ responseType: 'sylphx.notify.v1.SmsNumber',
2142
+ mutation: true,
2143
+ });
2144
+ }
2145
+ /**
2146
+ * Gets an SMS number binding.
2147
+ *
2148
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/sms_numbers/*}` · permission `notify:read` · effect `read`
2149
+ *
2150
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
2151
+ */
2152
+ async get(request) {
2153
+ return this.client.call({
2154
+ method: 'GET',
2155
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/sms_numbers/*', 'name')}`,
2156
+ responseType: 'sylphx.notify.v1.SmsNumber',
2157
+ mutation: false,
2158
+ });
2159
+ }
2160
+ /**
2161
+ * Lists an environment's SMS number bindings.
2162
+ *
2163
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/sms_numbers` · permission `notify:read` · effect `read`
2164
+ *
2165
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
2166
+ */
2167
+ async list(request) {
2168
+ return this.client.call({
2169
+ method: 'GET',
2170
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/sms_numbers`,
2171
+ query: { page_size: request.pageSize, page_token: request.pageToken },
2172
+ responseType: 'sylphx.notify.v1.ListSmsNumbersResponse',
2173
+ mutation: false,
2174
+ });
2175
+ }
2176
+ /** Every item of every page of `list`. */
2177
+ async *listAll(request) {
2178
+ let next = request;
2179
+ for (;;) {
2180
+ const page = await this.list(next);
2181
+ yield* page.smsNumbers ?? [];
2182
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
2183
+ return;
2184
+ next = { ...request, pageToken: page.nextPageToken };
2185
+ }
2186
+ }
2187
+ /**
2188
+ * Requests carrier release and stops recurring number billing. Read status
2189
+ * until retired_time is set. Historical messages stay readable.
2190
+ *
2191
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/sms_numbers/*}` · permission `notify:write` · effect `destructive`
2192
+ *
2193
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`.
2194
+ */
2195
+ async delete(request) {
2196
+ return this.client.call({
2197
+ method: 'DELETE',
2198
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/sms_numbers/*', 'name')}`,
2199
+ mutation: true,
2200
+ });
2201
+ }
2202
+ }
2203
+ /** `inbound_sms` of Sylphx Notify: Resource type `notify.sylphx.com/InboundSms`. */
2204
+ export class InboundSmsCollection {
2205
+ client;
2206
+ constructor(client) {
2207
+ this.client = client;
2208
+ }
2209
+ /**
2210
+ * Gets one inbound SMS.
2211
+ *
2212
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/sms_numbers/*\/inbound_sms/*}` · permission `notify:read` · effect `read`
2213
+ *
2214
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
2215
+ */
2216
+ async get(request) {
2217
+ return this.client.call({
2218
+ method: 'GET',
2219
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/sms_numbers/*/inbound_sms/*', 'name')}`,
2220
+ responseType: 'sylphx.notify.v1.InboundSms',
2221
+ mutation: false,
2222
+ });
2223
+ }
2224
+ /**
2225
+ * Lists a number's inbound SMS in feed order, oldest first.
2226
+ *
2227
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/sms_numbers/*}/inbound_sms` · permission `notify:read` · effect `read`
2228
+ *
2229
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
2230
+ */
2231
+ async list(request) {
2232
+ return this.client.call({
2233
+ method: 'GET',
2234
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/sms_numbers/*', 'parent')}/inbound_sms`,
2235
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
2236
+ responseType: 'sylphx.notify.v1.ListInboundSmsResponse',
2237
+ mutation: false,
2238
+ });
2239
+ }
2240
+ /** Every item of every page of `list`. */
2241
+ async *listAll(request) {
2242
+ let next = request;
2243
+ for (;;) {
2244
+ const page = await this.list(next);
2245
+ yield* page.inboundSms ?? [];
2246
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
2247
+ return;
2248
+ next = { ...request, pageToken: page.nextPageToken };
2249
+ }
2250
+ }
2251
+ }
1701
2252
  //# sourceMappingURL=notify.js.map