@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.d.ts CHANGED
@@ -110,6 +110,34 @@ export interface CreateEmailDomainRequest {
110
110
  /** Validate and return the result without writing anything. */
111
111
  validateOnly?: boolean;
112
112
  }
113
+ /** The request of CreateMailboxConnectLink. */
114
+ export interface CreateMailboxConnectLinkRequest {
115
+ /** The parent to create in. */
116
+ parent: string;
117
+ /**
118
+ * The mailbox connect link id, the final name segment; the server assigns one when
119
+ * empty.
120
+ */
121
+ mailboxConnectLinkId?: string;
122
+ /** The mailbox connect link to create; only caller-writable fields are read. */
123
+ mailboxConnectLink: MailboxConnectLink;
124
+ /** Validate and return the result without writing anything. */
125
+ validateOnly?: boolean;
126
+ }
127
+ /** The request of CreateMailboxOauthApp. */
128
+ export interface CreateMailboxOauthAppRequest {
129
+ /** The parent to create in. */
130
+ parent: string;
131
+ /**
132
+ * The mailbox OAuth app id, the final name segment; the server assigns one when
133
+ * empty.
134
+ */
135
+ mailboxOauthAppId?: string;
136
+ /** The mailbox OAuth app to create; only caller-writable fields are read. */
137
+ mailboxOauthApp: MailboxOauthApp;
138
+ /** Validate and return the result without writing anything. */
139
+ validateOnly?: boolean;
140
+ }
113
141
  /** The request of CreateMailbox. */
114
142
  export interface CreateMailboxRequest {
115
143
  /** The parent to create in. */
@@ -171,6 +199,15 @@ export interface CreateSenderRequest {
171
199
  /** Validate and return the result without writing anything. */
172
200
  validateOnly?: boolean;
173
201
  }
202
+ /** The request of CreateSmsNumber. */
203
+ export interface CreateSmsNumberRequest {
204
+ /** The environment to bind the number in. */
205
+ parent: string;
206
+ /** The binding id; server-assigned when empty. */
207
+ smsNumberId?: string;
208
+ /** The binding to create. */
209
+ smsNumber: SmsNumber;
210
+ }
174
211
  /** The request of CreateSuppression. */
175
212
  export interface CreateSuppressionRequest {
176
213
  /** The parent to create in. */
@@ -223,6 +260,17 @@ export interface DeleteEmailDomainRequest {
223
260
  /** Also delete the domain's routes. */
224
261
  force?: boolean;
225
262
  }
263
+ /** The request of DeleteMailboxOauthApp. */
264
+ export interface DeleteMailboxOauthAppRequest {
265
+ /** The name of the mailbox OAuth app to delete. */
266
+ name: string;
267
+ /** Delete only if the current etag matches. */
268
+ etag?: string;
269
+ /** Succeed when the mailbox OAuth app does not exist. */
270
+ allowMissing?: boolean;
271
+ /** Validate without deleting anything. */
272
+ validateOnly?: boolean;
273
+ }
226
274
  /** The request of DeleteMailbox. */
227
275
  export interface DeleteMailboxRequest {
228
276
  /** The name of the mailbox to delete. */
@@ -239,6 +287,17 @@ export interface DeleteMailboxRequest {
239
287
  */
240
288
  force?: boolean;
241
289
  }
290
+ /** The request of DeleteMessageTopic. */
291
+ export interface DeleteMessageTopicRequest {
292
+ /** The name of the message topic to delete. */
293
+ name: string;
294
+ /** Delete only if the current etag matches. */
295
+ etag?: string;
296
+ /** Succeed when the message topic does not exist. */
297
+ allowMissing?: boolean;
298
+ /** Validate without deleting anything. */
299
+ validateOnly?: boolean;
300
+ }
242
301
  /** The request of DeletePreference. */
243
302
  export interface DeletePreferenceRequest {
244
303
  /** The name of the preference to delete. */
@@ -285,6 +344,11 @@ export interface DeleteSenderRequest {
285
344
  /** Validate without deleting anything. */
286
345
  validateOnly?: boolean;
287
346
  }
347
+ /** The request of DeleteSmsNumber. */
348
+ export interface DeleteSmsNumberRequest {
349
+ /** The name of the number to release. */
350
+ name: string;
351
+ }
288
352
  /** The request of DeleteSuppression. */
289
353
  export interface DeleteSuppressionRequest {
290
354
  /** The name of the suppression to delete. */
@@ -421,11 +485,26 @@ export interface GetInboundEmailRequest {
421
485
  /** The name of the inbound email to get. */
422
486
  name: string;
423
487
  }
488
+ /** The request of GetInboundSms. */
489
+ export interface GetInboundSmsRequest {
490
+ /** The name of the inbound SMS to get. */
491
+ name: string;
492
+ }
424
493
  /** The request of GetInboxItem. */
425
494
  export interface GetInboxItemRequest {
426
495
  /** The name of the inbox item to get. */
427
496
  name: string;
428
497
  }
498
+ /** The request of GetMailboxConnectLink. */
499
+ export interface GetMailboxConnectLinkRequest {
500
+ /** The name of the mailbox connect link to get. */
501
+ name: string;
502
+ }
503
+ /** The request of GetMailboxOauthApp. */
504
+ export interface GetMailboxOauthAppRequest {
505
+ /** The name of the mailbox OAuth app to get. */
506
+ name: string;
507
+ }
429
508
  /** The request of GetMailbox. */
430
509
  export interface GetMailboxRequest {
431
510
  /** The name of the mailbox to get. */
@@ -436,6 +515,11 @@ export interface GetMessageRequest {
436
515
  /** The name of the message to get. */
437
516
  name: string;
438
517
  }
518
+ /** The request of GetMessageTopic. */
519
+ export interface GetMessageTopicRequest {
520
+ /** The name of the message topic to get. */
521
+ name: string;
522
+ }
439
523
  /** The request of GetPreference. */
440
524
  export interface GetPreferenceRequest {
441
525
  /** The name of the preference to get. */
@@ -456,6 +540,11 @@ export interface GetSenderRequest {
456
540
  /** The name of the sender to get. */
457
541
  name: string;
458
542
  }
543
+ /** The request of GetSmsNumber. */
544
+ export interface GetSmsNumberRequest {
545
+ /** The name of the binding to get. */
546
+ name: string;
547
+ }
459
548
  /** The request of GetSuppression. */
460
549
  export interface GetSuppressionRequest {
461
550
  /** The name of the suppression to get. */
@@ -524,6 +613,39 @@ export interface InboundEmail {
524
613
  /** The Notify Message that sent it, for mail Notify sent as this mailbox. */
525
614
  readonly message?: string;
526
615
  }
616
+ /**
617
+ * An Inbound SMS is one text a bound number received, kept as evidence. The
618
+ * body is cleared when the environment's tier retention expires; the carrier's
619
+ * message id stays, so a replay after that never records the message again.
620
+ * Consumers read the feed in `sequence` order.
621
+ */
622
+ export interface InboundSms {
623
+ /** `orgs/{org}/projects/{project}/envs/{env}/sms_numbers/{sms_number}/inbound_sms/{inbound_sms}`. */
624
+ name?: string;
625
+ /** `isms_<cell><ulid>`; never reused. */
626
+ readonly uid?: string;
627
+ /** Resource metadata. */
628
+ meta?: common.ResourceMeta;
629
+ /**
630
+ * The feed position, increasing within the environment; filter
631
+ * `sequence > N` to resume after the last one handled.
632
+ */
633
+ readonly sequence?: string;
634
+ /** The carrier's id for this message; the dedupe key on the number binding. */
635
+ readonly carrierMessageId?: string;
636
+ /** The sender, in E.164 when the carrier gave one. */
637
+ readonly senderNumber?: string;
638
+ /** The number the message was sent to, in E.164. */
639
+ readonly recipientNumber?: string;
640
+ /** The text. Empty once retention has cleared it. */
641
+ readonly text?: string;
642
+ /** How many segments the carrier counted. */
643
+ readonly segments?: number;
644
+ /** When the carrier says it received the message. */
645
+ readonly receiveTime?: string;
646
+ /** The text has been cleared by retention; the dedupe key stays. */
647
+ readonly cleared?: boolean;
648
+ }
527
649
  /** In-app inbox content. */
528
650
  export interface InboxContent {
529
651
  /** The title. */
@@ -615,6 +737,26 @@ export interface ListInboundEmailsResponse {
615
737
  /** The token of the next page; empty on the last page. */
616
738
  nextPageToken?: string;
617
739
  }
740
+ /** The request of ListInboundSms. */
741
+ export interface ListInboundSmsRequest {
742
+ /** The number binding to list in. */
743
+ parent: string;
744
+ /** At most this many; default 50, clamped to 1000. */
745
+ pageSize?: number;
746
+ /** `next_page_token` of the previous page. */
747
+ pageToken?: string;
748
+ /** AIP-160 filter over filterable fields. */
749
+ filter?: string;
750
+ /** AIP-132 ordering over filterable fields. */
751
+ orderBy?: string;
752
+ }
753
+ /** The response of ListInboundSms. */
754
+ export interface ListInboundSmsResponse {
755
+ /** The page. */
756
+ inboundSms?: InboundSms[];
757
+ /** The token of the next page; empty on the last page. */
758
+ nextPageToken?: string;
759
+ }
618
760
  /** The request of ListInboxItems. */
619
761
  export interface ListInboxItemsRequest {
620
762
  /** The parent to list in. */
@@ -635,6 +777,46 @@ export interface ListInboxItemsResponse {
635
777
  /** The token of the next page; empty on the last page. */
636
778
  nextPageToken?: string;
637
779
  }
780
+ /** The request of ListMailboxConnectLinks. */
781
+ export interface ListMailboxConnectLinksRequest {
782
+ /** The parent to list in. */
783
+ parent: string;
784
+ /** At most this many; default 50, clamped to 1000. */
785
+ pageSize?: number;
786
+ /** `next_page_token` of the previous page. */
787
+ pageToken?: string;
788
+ /** AIP-160 filter over labels and filterable fields. */
789
+ filter?: string;
790
+ /** AIP-132 ordering over filterable fields. */
791
+ orderBy?: string;
792
+ }
793
+ /** The response of ListMailboxConnectLinks. */
794
+ export interface ListMailboxConnectLinksResponse {
795
+ /** The page. */
796
+ mailboxConnectLinks?: MailboxConnectLink[];
797
+ /** The token of the next page; empty on the last page. */
798
+ nextPageToken?: string;
799
+ }
800
+ /** The request of ListMailboxOauthApps. */
801
+ export interface ListMailboxOauthAppsRequest {
802
+ /** The parent to list in. */
803
+ parent: string;
804
+ /** At most this many; default 50, clamped to 1000. */
805
+ pageSize?: number;
806
+ /** `next_page_token` of the previous page. */
807
+ pageToken?: string;
808
+ /** AIP-160 filter over labels and filterable fields. */
809
+ filter?: string;
810
+ /** AIP-132 ordering over filterable fields. */
811
+ orderBy?: string;
812
+ }
813
+ /** The response of ListMailboxOauthApps. */
814
+ export interface ListMailboxOauthAppsResponse {
815
+ /** The page. */
816
+ mailboxOauthApps?: MailboxOauthApp[];
817
+ /** The token of the next page; empty on the last page. */
818
+ nextPageToken?: string;
819
+ }
638
820
  /** The request of ListMailboxes. */
639
821
  export interface ListMailboxesRequest {
640
822
  /** The parent to list in. */
@@ -655,6 +837,26 @@ export interface ListMailboxesResponse {
655
837
  /** The token of the next page; empty on the last page. */
656
838
  nextPageToken?: string;
657
839
  }
840
+ /** The request of ListMessageTopics. */
841
+ export interface ListMessageTopicsRequest {
842
+ /** The parent to list in. */
843
+ parent: string;
844
+ /** At most this many; default 50, clamped to 1000. */
845
+ pageSize?: number;
846
+ /** `next_page_token` of the previous page. */
847
+ pageToken?: string;
848
+ /** AIP-160 filter over labels and filterable fields. */
849
+ filter?: string;
850
+ /** AIP-132 ordering over filterable fields. */
851
+ orderBy?: string;
852
+ }
853
+ /** The response of ListMessageTopics. */
854
+ export interface ListMessageTopicsResponse {
855
+ /** The page. */
856
+ messageTopics?: MessageTopic[];
857
+ /** The token of the next page; empty on the last page. */
858
+ nextPageToken?: string;
859
+ }
658
860
  /** The request of ListMessages. */
659
861
  export interface ListMessagesRequest {
660
862
  /** The parent to list in. */
@@ -755,6 +957,22 @@ export interface ListSendersResponse {
755
957
  /** The token of the next page; empty on the last page. */
756
958
  nextPageToken?: string;
757
959
  }
960
+ /** The request of ListSmsNumbers. */
961
+ export interface ListSmsNumbersRequest {
962
+ /** The environment to list in. */
963
+ parent: string;
964
+ /** At most this many; default 50, clamped to 1000. */
965
+ pageSize?: number;
966
+ /** `next_page_token` of the previous page. */
967
+ pageToken?: string;
968
+ }
969
+ /** The response of ListSmsNumbers. */
970
+ export interface ListSmsNumbersResponse {
971
+ /** The page. */
972
+ smsNumbers?: SmsNumber[];
973
+ /** The token of the next page; empty on the last page. */
974
+ nextPageToken?: string;
975
+ }
758
976
  /** The request of ListSuppressions. */
759
977
  export interface ListSuppressionsRequest {
760
978
  /** The parent to list in. */
@@ -809,7 +1027,8 @@ export interface MailServer {
809
1027
  /**
810
1028
  * A Mailbox is an email address Notify reads from and sends as. A `CONNECTED`
811
1029
  * mailbox is an existing mailbox at any provider, reached over IMAP (read
812
- * only) and SMTP with its own login; a `HOSTED` mailbox receives at an
1030
+ * only) and SMTP with its own login, either a password or an OAuth 2.0 grant
1031
+ * (XOAUTH2) at Google or Microsoft; a `HOSTED` mailbox receives at an
813
1032
  * address whose MX is Sylphx. Mail it receives becomes Inbound Email records.
814
1033
  */
815
1034
  export interface Mailbox {
@@ -824,6 +1043,134 @@ export interface Mailbox {
824
1043
  /** Observed state. */
825
1044
  readonly status?: MailboxStatus;
826
1045
  }
1046
+ /**
1047
+ * A Mailbox Connect Link is a hosted page that a platform customer's server
1048
+ * mints with its own server key for one end user, who approves the
1049
+ * provider's consent there. The mailbox it connects lives in the customer's
1050
+ * environment, and the end user signs in to nothing of Sylphx and sees no
1051
+ * Sylphx name. It is single use and expires (the Stripe Account Link model):
1052
+ * pressing Continue on the page claims it, so a link preview's fetch does
1053
+ * not; a claimed or expired link sends the end user to `refresh_url`, where
1054
+ * the customer's server mints a new one.
1055
+ */
1056
+ export interface MailboxConnectLink {
1057
+ /** `orgs/{org}/projects/{project}/envs/{env}/mailbox_connect_links/{mailbox_connect_link}`. */
1058
+ name?: string;
1059
+ /** `mcl_<cell><ulid>`; never reused. */
1060
+ readonly uid?: string;
1061
+ /** Resource metadata; labels may carry the customer's own end-user id. */
1062
+ meta?: common.ResourceMeta;
1063
+ /**
1064
+ * The provider whose consent the page opens; the environment needs that
1065
+ * provider's Mailbox OAuth App.
1066
+ */
1067
+ provider?: MailboxOauthProvider;
1068
+ /**
1069
+ * The mailbox to reconnect, keeping its id and feed; it must be signed in
1070
+ * as the same address. Empty creates a new connected mailbox.
1071
+ */
1072
+ mailbox?: string;
1073
+ /** The id of the new mailbox; the server assigns one when empty. */
1074
+ mailboxId?: string;
1075
+ /** The From display name of the new mailbox. */
1076
+ displayName?: string;
1077
+ /**
1078
+ * The new mailbox reads mail received on or after this day on its first
1079
+ * poll.
1080
+ */
1081
+ backfillStartTime?: string;
1082
+ /**
1083
+ * The address to suggest on the consent screen (`login_hint`); the
1084
+ * mailbox takes the address the provider confirms, whatever this says.
1085
+ */
1086
+ loginHint?: string;
1087
+ /**
1088
+ * Where the end user lands when done, HTTPS, with `connect_link={id}` and
1089
+ * `result=connected` or `result=failed` added to the query. The query
1090
+ * proves nothing: read the link back with your key for the outcome.
1091
+ */
1092
+ returnUrl?: string;
1093
+ /**
1094
+ * Where a claimed or expired link sends the end user, HTTPS; your server
1095
+ * mints a new link there. Empty shows a page saying the link has expired.
1096
+ */
1097
+ refreshUrl?: string;
1098
+ /** How long the link stays open; default 1 hour, at most 7 days. */
1099
+ ttl?: string;
1100
+ /**
1101
+ * The link to hand the end user. It is a bearer secret: only the create
1102
+ * call returns it, and only its hash is stored.
1103
+ */
1104
+ readonly url?: string;
1105
+ /** The lifecycle state. */
1106
+ readonly state?: MailboxConnectLinkState;
1107
+ /** When it expires. */
1108
+ readonly expireTime?: string;
1109
+ /** When the end user finished, connected or failed. */
1110
+ readonly completeTime?: string;
1111
+ /** The mailbox it connected or reconnected. */
1112
+ readonly connectedMailbox?: string;
1113
+ /** The address the provider confirmed. */
1114
+ readonly address?: string;
1115
+ /**
1116
+ * Why it failed: `consent_denied`, `scope_missing` (the end user unticked a
1117
+ * scope), `address_mismatch` (a reconnect signed in as another address),
1118
+ * `address_in_use` (another mailbox of the environment has the address),
1119
+ * `plan_limit_reached`, or `provider_error`.
1120
+ */
1121
+ readonly errorCode?: string;
1122
+ }
1123
+ /**
1124
+ * A Mailbox OAuth App is the platform customer's own OAuth client at Google
1125
+ * or Microsoft. End users consent to it, so the consent screen names the
1126
+ * customer's app and never Sylphx, and every `OAUTH` mailbox of its provider
1127
+ * in the environment refreshes its grant against it. An environment has at
1128
+ * most one per provider.
1129
+ */
1130
+ export interface MailboxOauthApp {
1131
+ /** `orgs/{org}/projects/{project}/envs/{env}/mailbox_oauth_apps/{mailbox_oauth_app}`. */
1132
+ name?: string;
1133
+ /** `moa_<cell><ulid>`; never reused. */
1134
+ readonly uid?: string;
1135
+ /** Resource metadata. */
1136
+ meta?: common.ResourceMeta;
1137
+ /** Desired state. */
1138
+ spec?: MailboxOauthAppSpec;
1139
+ /** Observed state. */
1140
+ readonly status?: MailboxOauthAppStatus;
1141
+ }
1142
+ /** MailboxOauthAppSpec is the caller-writable state of a Mailbox OAuth App. */
1143
+ export interface MailboxOauthAppSpec {
1144
+ /** The provider. */
1145
+ provider?: MailboxOauthProvider;
1146
+ /** The client id the provider issued. */
1147
+ clientId?: string;
1148
+ /** The client secret; write-only, sealed at rest, never returned. */
1149
+ clientSecret?: string;
1150
+ /**
1151
+ * Microsoft only: who may consent, `common` (the default: any work, school
1152
+ * or personal account), `organizations`, `consumers`, or one tenant id.
1153
+ */
1154
+ tenant?: string;
1155
+ }
1156
+ /** MailboxOauthAppStatus is the observed state of a Mailbox OAuth App. */
1157
+ export interface MailboxOauthAppStatus {
1158
+ /** The generation this status was computed from. */
1159
+ readonly observedGeneration?: string;
1160
+ /** Ready, Reconciling, Stalled. */
1161
+ readonly conditions?: common.Condition[];
1162
+ /** Whether a client secret is stored. */
1163
+ readonly clientSecretSet?: boolean;
1164
+ /** The redirect URI to register on the provider's client. */
1165
+ readonly redirectUri?: string;
1166
+ /**
1167
+ * The scopes a connect link asks for: Google `https://mail.google.com/`
1168
+ * (a restricted scope: a public app needs Google's verification), and
1169
+ * Microsoft `IMAP.AccessAsUser.All`, `SMTP.Send` and `offline_access`, each
1170
+ * with `openid email` to learn the address.
1171
+ */
1172
+ readonly scopes?: string[];
1173
+ }
827
1174
  /** MailboxSpec is the caller-writable state of a Mailbox. */
828
1175
  export interface MailboxSpec {
829
1176
  /** Connected or hosted. */
@@ -847,6 +1194,23 @@ export interface MailboxSpec {
847
1194
  backfillStartTime?: string;
848
1195
  /** Poll and send; a disabled mailbox keeps its records. */
849
1196
  enabled?: boolean;
1197
+ /** How a connected mailbox logs in to both servers; unset means `PASSWORD`. */
1198
+ authKind?: MailboxAuthKind;
1199
+ /**
1200
+ * The OAuth provider, for `OAUTH`; the environment's Mailbox OAuth App of
1201
+ * this provider is the client the grant belongs to. With `imap` or `smtp`
1202
+ * unset the provider's own servers are used: Google `imap.gmail.com:993`
1203
+ * and `smtp.gmail.com:465`, Microsoft `outlook.office365.com:993` and
1204
+ * `smtp.office365.com:587` (STARTTLS).
1205
+ */
1206
+ oauthProvider?: MailboxOauthProvider;
1207
+ /**
1208
+ * The OAuth refresh token, for `OAUTH`; write-only, sealed at rest like the
1209
+ * password, never returned. A connect link sets it without the caller ever
1210
+ * holding it; a caller that ran its own consent may set it directly, when
1211
+ * the token was issued to the environment's Mailbox OAuth App.
1212
+ */
1213
+ oauthRefreshToken?: string;
850
1214
  }
851
1215
  /** MailboxStatus is the observed state of a Mailbox. */
852
1216
  export interface MailboxStatus {
@@ -862,6 +1226,16 @@ export interface MailboxStatus {
862
1226
  readonly lastError?: string;
863
1227
  /** The Sent folder found on the server. */
864
1228
  readonly sentFolder?: string;
1229
+ /** Whether an OAuth refresh token is stored. */
1230
+ readonly oauthRefreshTokenSet?: boolean;
1231
+ /** The scopes the provider granted. */
1232
+ readonly oauthScopes?: string[];
1233
+ /**
1234
+ * The provider refused the refresh token (revoked, expired, or the
1235
+ * account's password changed): the mailbox neither polls nor sends until a
1236
+ * connect link naming it, or a new `oauth_refresh_token`, reconnects it.
1237
+ */
1238
+ readonly reconnectRequired?: boolean;
865
1239
  }
866
1240
  /** The request of MarkInboxItemRead. */
867
1241
  export interface MarkInboxItemReadRequest {
@@ -958,6 +1332,41 @@ export interface MessageContent {
958
1332
  /** The HTML body. */
959
1333
  htmlBody?: string;
960
1334
  }
1335
+ /**
1336
+ * A Message Topic holds an environment's settings for one message topic. The
1337
+ * id is the topic messages carry. A topic with no Message Topic admits every
1338
+ * message; a Message Topic may gate it on a Sylphx Money feature the recipient holds and cap it
1339
+ * by a Money limit feature, so a plan's allowances stay data in Money.
1340
+ */
1341
+ export interface MessageTopic {
1342
+ /** `orgs/{org}/projects/{project}/envs/{env}/message_topics/{message_topic}`. */
1343
+ name?: string;
1344
+ /** `tpc_<cell><ulid>`; never reused. */
1345
+ readonly uid?: string;
1346
+ /** Resource metadata. */
1347
+ meta?: common.ResourceMeta;
1348
+ /**
1349
+ * A Money feature key the recipient must hold (`entitlement_grants:check`
1350
+ * for the Recipient's `external_key` as the end user). A message to a
1351
+ * recipient that does not hold it is recorded `SUPPRESSED` with
1352
+ * `state_reason` `entitlement`; when Money cannot answer, the create fails
1353
+ * with 503 and writes nothing. The sending key must also hold
1354
+ * `billing:read`. Unset admits every recipient.
1355
+ */
1356
+ requiredFeature?: string;
1357
+ /**
1358
+ * A Money `limit` feature whose allowance is the most messages on this topic
1359
+ * one recipient receives per `send_limit_window`. A message over it, or to a
1360
+ * recipient that holds no allowance, is recorded `RATE_LIMITED` and its
1361
+ * create answers 429. Unset: no topic limit.
1362
+ */
1363
+ sendLimitFeature?: string;
1364
+ /**
1365
+ * The window the allowance counts over: 1 minute to 24 hours; default 24
1366
+ * hours.
1367
+ */
1368
+ sendLimitWindow?: string;
1369
+ }
961
1370
  /**
962
1371
  * A Preference is a recipient's choice for one topic: which channels may carry
963
1372
  * it. Admission honors it, and unsubscribe links write it. The id is the
@@ -1159,6 +1568,63 @@ export interface SmsContent {
1159
1568
  /** The body. */
1160
1569
  body?: string;
1161
1570
  }
1571
+ /**
1572
+ * An SMS Number is provisioned and owned by Notify for one environment.
1573
+ * The platform orders it within the caller's explicit USD cost limits and
1574
+ * authenticates delivery into its durable inbound feed.
1575
+ */
1576
+ export interface SmsNumber {
1577
+ /** `orgs/{org}/projects/{project}/envs/{env}/sms_numbers/{sms_number}`. */
1578
+ name?: string;
1579
+ /** `snum_<cell><ulid>`; never reused. */
1580
+ readonly uid?: string;
1581
+ /** Resource metadata. */
1582
+ meta?: common.ResourceMeta;
1583
+ /** Desired state. */
1584
+ spec?: SmsNumberSpec;
1585
+ /** Observed state. */
1586
+ readonly status?: SmsNumberStatus;
1587
+ }
1588
+ /** SmsNumberSpec is the caller-writable state of an SMS Number. */
1589
+ export interface SmsNumberSpec {
1590
+ /** ISO two-letter country code. */
1591
+ regionCode?: string;
1592
+ /** local, mobile, toll_free, national or shared_cost. */
1593
+ numberType?: string;
1594
+ /** The carrier; Telnyx is supported. */
1595
+ provider?: string;
1596
+ /** Maximum one-time USD price, as a decimal string. No quote over it is ordered. */
1597
+ upfrontCostLimit?: string;
1598
+ /** Maximum recurring monthly USD price, as a decimal string. */
1599
+ monthlyCostLimit?: string;
1600
+ }
1601
+ /** SmsNumberStatus is the observed state of an SMS Number. */
1602
+ export interface SmsNumberStatus {
1603
+ /** The generation this status was computed from. */
1604
+ readonly observedGeneration?: string;
1605
+ /** Ready, Reconciling, Stalled. */
1606
+ readonly conditions?: common.Condition[];
1607
+ /** Receiving: an active binding whose number the carrier delivers to. */
1608
+ readonly receiving?: boolean;
1609
+ /** When the binding stopped receiving, if it has. */
1610
+ readonly retiredTime?: string;
1611
+ /** The provisioned E.164 number; empty until inventory selection. */
1612
+ readonly phoneNumber?: string;
1613
+ /** The platform carrier account reference, never a credential. */
1614
+ readonly carrierAccount?: string;
1615
+ /** Carrier number identifier, when available. */
1616
+ readonly providerNumberId?: string;
1617
+ /** Stable carrier order receipt; an uncertain purchase is reconciled, not repeated. */
1618
+ readonly orderId?: string;
1619
+ /** Messaging profile holding this number's webhook configuration. */
1620
+ readonly messagingProfileId?: string;
1621
+ /** Safe reason for a pending or stalled provision; contains no message text. */
1622
+ readonly stateReason?: string;
1623
+ /** Accepted one-time price in USD. */
1624
+ readonly upfrontCost?: string;
1625
+ /** Accepted monthly price in USD. */
1626
+ readonly monthlyCost?: string;
1627
+ }
1162
1628
  /** An SMS origin. */
1163
1629
  export interface SmsSender {
1164
1630
  /** An E.164 number. */
@@ -1254,6 +1720,17 @@ export interface UpdateEmailDomainRequest {
1254
1720
  /** Validate and return the result without writing anything. */
1255
1721
  validateOnly?: boolean;
1256
1722
  }
1723
+ /** The request of UpdateMailboxOauthApp. */
1724
+ export interface UpdateMailboxOauthAppRequest {
1725
+ /** The mailbox OAuth app to update; `name` identifies it. */
1726
+ mailboxOauthApp: MailboxOauthApp;
1727
+ /** The fields to write; unset writes every populated field. */
1728
+ updateMask?: string;
1729
+ /** Create the mailbox OAuth app when it does not exist (declarative upsert). */
1730
+ allowMissing?: boolean;
1731
+ /** Validate and return the result without writing anything. */
1732
+ validateOnly?: boolean;
1733
+ }
1257
1734
  /** The request of UpdateMailbox. */
1258
1735
  export interface UpdateMailboxRequest {
1259
1736
  /** The mailbox to update; `name` identifies it. */
@@ -1265,6 +1742,17 @@ export interface UpdateMailboxRequest {
1265
1742
  /** Validate and return the result without writing anything. */
1266
1743
  validateOnly?: boolean;
1267
1744
  }
1745
+ /** The request of UpdateMessageTopic. */
1746
+ export interface UpdateMessageTopicRequest {
1747
+ /** The message topic to update; `name` identifies it. */
1748
+ messageTopic: MessageTopic;
1749
+ /** The fields to write; unset writes every populated field. */
1750
+ updateMask?: string;
1751
+ /** Create the message topic when it does not exist (declarative upsert). */
1752
+ allowMissing?: boolean;
1753
+ /** Validate and return the result without writing anything. */
1754
+ validateOnly?: boolean;
1755
+ }
1268
1756
  /** The request of UpdatePreference. */
1269
1757
  export interface UpdatePreferenceRequest {
1270
1758
  /** The preference to update; `name` identifies it. */
@@ -1346,8 +1834,14 @@ export type InboundEmailDirection = 'received' | 'sent' | (string & {});
1346
1834
  export type InboxItemState = 'unread' | 'read' | 'archived' | (string & {});
1347
1835
  /** How a mail server connection is secured. */
1348
1836
  export type MailServerSecurity = 'tls' | 'starttls' | (string & {});
1837
+ /** How a connected Mailbox logs in. */
1838
+ export type MailboxAuthKind = 'password' | 'oauth' | (string & {});
1839
+ /** The lifecycle of a Mailbox Connect Link. */
1840
+ export type MailboxConnectLinkState = 'pending' | 'claimed' | 'connected' | 'failed' | 'expired' | (string & {});
1349
1841
  /** How a Mailbox receives mail. */
1350
1842
  export type MailboxKind = 'connected' | 'hosted' | (string & {});
1843
+ /** An OAuth provider of connected mailboxes. */
1844
+ export type MailboxOauthProvider = 'google' | 'microsoft' | (string & {});
1351
1845
  /** The state of a Message. */
1352
1846
  export type MessageState = 'accepted' | 'suppressed' | 'delivering' | 'delivered' | 'failed' | 'cancelled' | 'rate_limited' | (string & {});
1353
1847
  /** A push platform. */
@@ -1374,6 +1868,8 @@ export declare class NotifyApi {
1374
1868
  readonly recipients: RecipientsCollection;
1375
1869
  /** The `preferences` collection. */
1376
1870
  readonly preferences: PreferencesCollection;
1871
+ /** The `message_topics` collection. */
1872
+ readonly messageTopics: MessageTopicsCollection;
1377
1873
  /** The `suppressions` collection. */
1378
1874
  readonly suppressions: SuppressionsCollection;
1379
1875
  /** The `templates` collection. */
@@ -1382,12 +1878,20 @@ export declare class NotifyApi {
1382
1878
  readonly messages: MessagesCollection;
1383
1879
  /** The `mailboxes` collection. */
1384
1880
  readonly mailboxes: MailboxesCollection;
1881
+ /** The `mailbox_oauth_apps` collection. */
1882
+ readonly mailboxOauthApps: MailboxOauthAppsCollection;
1883
+ /** The `mailbox_connect_links` collection. */
1884
+ readonly mailboxConnectLinks: MailboxConnectLinksCollection;
1385
1885
  /** The `inbound_emails` collection. */
1386
1886
  readonly inboundEmails: InboundEmailsCollection;
1387
1887
  /** The `inbox_items` collection. */
1388
1888
  readonly inboxItems: InboxItemsCollection;
1389
1889
  /** The `broadcasts` collection. */
1390
1890
  readonly broadcasts: BroadcastsCollection;
1891
+ /** The `sms_numbers` collection. */
1892
+ readonly smsNumbers: SmsNumbersCollection;
1893
+ /** The `inbound_sms` collection. */
1894
+ readonly inboundSms: InboundSmsCollection;
1391
1895
  constructor(client: runtime.Client);
1392
1896
  }
1393
1897
  /** `mail_domains` of Sylphx Notify: Resource type `notify.sylphx.com/EmailDomain`. */
@@ -1633,6 +2137,45 @@ export declare class PreferencesCollection {
1633
2137
  */
1634
2138
  delete(request: DeletePreferenceRequest): Promise<Record<string, never>>;
1635
2139
  }
2140
+ /** `message_topics` of Sylphx Notify: Resource type `notify.sylphx.com/MessageTopic`. */
2141
+ export declare class MessageTopicsCollection {
2142
+ private readonly client;
2143
+ constructor(client: runtime.Client);
2144
+ /**
2145
+ * Gets a message topic.
2146
+ *
2147
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/message_topics/*}` · permission `notify:read` · effect `read`
2148
+ *
2149
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
2150
+ */
2151
+ get(request: GetMessageTopicRequest): Promise<MessageTopic>;
2152
+ /**
2153
+ * Lists message topics.
2154
+ *
2155
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/message_topics` · permission `notify:read` · effect `read`
2156
+ *
2157
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
2158
+ */
2159
+ list(request: ListMessageTopicsRequest): Promise<ListMessageTopicsResponse>;
2160
+ /** Every item of every page of `list`. */
2161
+ listAll(request: ListMessageTopicsRequest): AsyncGenerator<MessageTopic>;
2162
+ /**
2163
+ * Updates a message topic; with `allow_missing`, creates it.
2164
+ *
2165
+ * `PATCH /v1/{message_topic.name=orgs/*\/projects/*\/envs/*\/message_topics/*}` · permission `notify:write` · effect `write`
2166
+ *
2167
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
2168
+ */
2169
+ update(request: UpdateMessageTopicRequest): Promise<MessageTopic>;
2170
+ /**
2171
+ * Deletes a message topic; its messages are admitted with no gate or topic limit.
2172
+ *
2173
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/message_topics/*}` · permission `notify:write` · effect `destructive`
2174
+ *
2175
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
2176
+ */
2177
+ delete(request: DeleteMessageTopicRequest): Promise<Record<string, never>>;
2178
+ }
1636
2179
  /** `suppressions` of Sylphx Notify: Resource type `notify.sylphx.com/Suppression`. */
1637
2180
  export declare class SuppressionsCollection {
1638
2181
  private readonly client;
@@ -1815,6 +2358,85 @@ export declare class MailboxesCollection {
1815
2358
  */
1816
2359
  eraseAddress(request: EraseMailboxAddressRequest): Promise<EraseMailboxAddressResponse>;
1817
2360
  }
2361
+ /** `mailbox_oauth_apps` of Sylphx Notify: Resource type `notify.sylphx.com/MailboxOauthApp`. */
2362
+ export declare class MailboxOauthAppsCollection {
2363
+ private readonly client;
2364
+ constructor(client: runtime.Client);
2365
+ /**
2366
+ * Gets a mailbox OAuth app.
2367
+ *
2368
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailbox_oauth_apps/*}` · permission `notify:read` · effect `read`
2369
+ *
2370
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
2371
+ */
2372
+ get(request: GetMailboxOauthAppRequest): Promise<MailboxOauthApp>;
2373
+ /**
2374
+ * Lists mailbox OAuth apps.
2375
+ *
2376
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/mailbox_oauth_apps` · permission `notify:read` · effect `read`
2377
+ *
2378
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
2379
+ */
2380
+ list(request: ListMailboxOauthAppsRequest): Promise<ListMailboxOauthAppsResponse>;
2381
+ /** Every item of every page of `list`. */
2382
+ listAll(request: ListMailboxOauthAppsRequest): AsyncGenerator<MailboxOauthApp>;
2383
+ /**
2384
+ * Creates a mailbox OAuth app.
2385
+ *
2386
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/mailbox_oauth_apps` · permission `notify:write` · effect `write`
2387
+ *
2388
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
2389
+ */
2390
+ create(request: CreateMailboxOauthAppRequest): Promise<MailboxOauthApp>;
2391
+ /**
2392
+ * Updates a mailbox OAuth app.
2393
+ *
2394
+ * `PATCH /v1/{mailbox_oauth_app.name=orgs/*\/projects/*\/envs/*\/mailbox_oauth_apps/*}` · permission `notify:write` · effect `write`
2395
+ *
2396
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
2397
+ */
2398
+ update(request: UpdateMailboxOauthAppRequest): Promise<MailboxOauthApp>;
2399
+ /**
2400
+ * Deletes a mailbox OAuth app; refused while a mailbox uses it.
2401
+ *
2402
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mailbox_oauth_apps/*}` · permission `notify:write` · effect `destructive`
2403
+ *
2404
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `RESOURCE_IN_USE`.
2405
+ */
2406
+ delete(request: DeleteMailboxOauthAppRequest): Promise<Record<string, never>>;
2407
+ }
2408
+ /** `mailbox_connect_links` of Sylphx Notify: Resource type `notify.sylphx.com/MailboxConnectLink`. */
2409
+ export declare class MailboxConnectLinksCollection {
2410
+ private readonly client;
2411
+ constructor(client: runtime.Client);
2412
+ /**
2413
+ * Gets a mailbox connect link.
2414
+ *
2415
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailbox_connect_links/*}` · permission `notify:read` · effect `read`
2416
+ *
2417
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
2418
+ */
2419
+ get(request: GetMailboxConnectLinkRequest): Promise<MailboxConnectLink>;
2420
+ /**
2421
+ * Lists mailbox connect links.
2422
+ *
2423
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/mailbox_connect_links` · permission `notify:read` · effect `read`
2424
+ *
2425
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
2426
+ */
2427
+ list(request: ListMailboxConnectLinksRequest): Promise<ListMailboxConnectLinksResponse>;
2428
+ /** Every item of every page of `list`. */
2429
+ listAll(request: ListMailboxConnectLinksRequest): AsyncGenerator<MailboxConnectLink>;
2430
+ /**
2431
+ * Mints a mailbox connect link for one end user; the response carries its
2432
+ * `url`, which no later call returns.
2433
+ *
2434
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/mailbox_connect_links` · permission `notify:write` · effect `write`
2435
+ *
2436
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
2437
+ */
2438
+ create(request: CreateMailboxConnectLinkRequest): Promise<MailboxConnectLink>;
2439
+ }
1818
2440
  /** `inbound_emails` of Sylphx Notify: Resource type `notify.sylphx.com/InboundEmail`. */
1819
2441
  export declare class InboundEmailsCollection {
1820
2442
  private readonly client;
@@ -1948,3 +2570,66 @@ export declare class BroadcastsCollection {
1948
2570
  */
1949
2571
  cancel(request: CancelBroadcastRequest): Promise<Broadcast>;
1950
2572
  }
2573
+ /** `sms_numbers` of Sylphx Notify: Resource type `notify.sylphx.com/SmsNumber`. */
2574
+ export declare class SmsNumbersCollection {
2575
+ private readonly client;
2576
+ constructor(client: runtime.Client);
2577
+ /**
2578
+ * Provisions one carrier number within explicit cost limits and receives its SMS.
2579
+ *
2580
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/sms_numbers` · permission `notify:write` · effect `write`
2581
+ *
2582
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
2583
+ */
2584
+ create(request: CreateSmsNumberRequest): Promise<SmsNumber>;
2585
+ /**
2586
+ * Gets an SMS number binding.
2587
+ *
2588
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/sms_numbers/*}` · permission `notify:read` · effect `read`
2589
+ *
2590
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
2591
+ */
2592
+ get(request: GetSmsNumberRequest): Promise<SmsNumber>;
2593
+ /**
2594
+ * Lists an environment's SMS number bindings.
2595
+ *
2596
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/sms_numbers` · permission `notify:read` · effect `read`
2597
+ *
2598
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
2599
+ */
2600
+ list(request: ListSmsNumbersRequest): Promise<ListSmsNumbersResponse>;
2601
+ /** Every item of every page of `list`. */
2602
+ listAll(request: ListSmsNumbersRequest): AsyncGenerator<SmsNumber>;
2603
+ /**
2604
+ * Requests carrier release and stops recurring number billing. Read status
2605
+ * until retired_time is set. Historical messages stay readable.
2606
+ *
2607
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/sms_numbers/*}` · permission `notify:write` · effect `destructive`
2608
+ *
2609
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`.
2610
+ */
2611
+ delete(request: DeleteSmsNumberRequest): Promise<Record<string, never>>;
2612
+ }
2613
+ /** `inbound_sms` of Sylphx Notify: Resource type `notify.sylphx.com/InboundSms`. */
2614
+ export declare class InboundSmsCollection {
2615
+ private readonly client;
2616
+ constructor(client: runtime.Client);
2617
+ /**
2618
+ * Gets one inbound SMS.
2619
+ *
2620
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/sms_numbers/*\/inbound_sms/*}` · permission `notify:read` · effect `read`
2621
+ *
2622
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
2623
+ */
2624
+ get(request: GetInboundSmsRequest): Promise<InboundSms>;
2625
+ /**
2626
+ * Lists a number's inbound SMS in feed order, oldest first.
2627
+ *
2628
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/sms_numbers/*}/inbound_sms` · permission `notify:read` · effect `read`
2629
+ *
2630
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
2631
+ */
2632
+ list(request: ListInboundSmsRequest): Promise<ListInboundSmsResponse>;
2633
+ /** Every item of every page of `list`. */
2634
+ listAll(request: ListInboundSmsRequest): AsyncGenerator<InboundSms>;
2635
+ }