@sylphx/sdk 0.32.1 → 0.32.3
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.
- package/README.md +105 -0
- package/dist/access.d.ts +24 -4
- package/dist/access.js +7 -7
- package/dist/access.js.map +1 -1
- package/dist/agents.d.ts +1048 -26
- package/dist/agents.js +771 -5
- package/dist/agents.js.map +1 -1
- package/dist/ai.js +1 -1
- package/dist/ai.js.map +1 -1
- package/dist/analytics.d.ts +232 -0
- package/dist/analytics.js +126 -0
- package/dist/analytics.js.map +1 -0
- package/dist/artifacts.d.ts +47 -1
- package/dist/artifacts.js +30 -2
- package/dist/artifacts.js.map +1 -1
- package/dist/assets.js +1 -1
- package/dist/assets.js.map +1 -1
- package/dist/auth/client.d.ts +34 -3
- package/dist/auth/client.js +42 -5
- package/dist/auth/client.js.map +1 -1
- package/dist/auth/continue-mock.d.ts +21 -0
- package/dist/auth/continue-mock.js +75 -0
- package/dist/auth/continue-mock.js.map +1 -0
- package/dist/auth/end-user-keys-mock.js +1 -1
- package/dist/auth/end-user-keys-mock.js.map +1 -1
- package/dist/auth/end-user-keys.js +1 -1
- package/dist/auth/end-user-keys.js.map +1 -1
- package/dist/auth/verify.js +1 -1
- package/dist/auth/verify.js.map +1 -1
- package/dist/auth.d.ts +169 -0
- package/dist/auth.js +135 -1
- package/dist/auth.js.map +1 -1
- package/dist/billing.d.ts +13 -6
- package/dist/billing.js +3 -1
- package/dist/billing.js.map +1 -1
- package/dist/broker.d.ts +165 -33
- package/dist/broker.js +103 -7
- package/dist/broker.js.map +1 -1
- package/dist/browser-upload.d.ts +101 -0
- package/dist/browser-upload.js +130 -0
- package/dist/browser-upload.js.map +1 -0
- package/dist/build.js +1 -1
- package/dist/build.js.map +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/common.js.map +1 -1
- package/dist/config/flags.d.ts +12 -2
- package/dist/config/flags.js +54 -6
- package/dist/config/flags.js.map +1 -1
- package/dist/config.d.ts +24 -0
- package/dist/config.js +22 -1
- package/dist/config.js.map +1 -1
- package/dist/connections.d.ts +128 -25
- package/dist/connections.js +72 -25
- package/dist/connections.js.map +1 -1
- package/dist/data.d.ts +306 -13
- package/dist/data.js +110 -9
- package/dist/data.js.map +1 -1
- package/dist/entitlement.js +1 -1
- package/dist/entitlement.js.map +1 -1
- package/dist/events/realtime.js +1 -1
- package/dist/events/realtime.js.map +1 -1
- package/dist/events/webhooks.js +1 -1
- package/dist/events/webhooks.js.map +1 -1
- package/dist/events.d.ts +36 -0
- package/dist/events.js +29 -1
- package/dist/events.js.map +1 -1
- package/dist/flags.d.ts +2 -0
- package/dist/flags.js +5 -1
- package/dist/flags.js.map +1 -1
- package/dist/hosting.d.ts +229 -0
- package/dist/hosting.js +168 -1
- package/dist/hosting.js.map +1 -1
- package/dist/ids.d.ts +75 -0
- package/dist/ids.js +16 -1
- package/dist/ids.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/dist/keys.js +1 -1
- package/dist/keys.js.map +1 -1
- package/dist/knowledge.d.ts +32 -9
- package/dist/knowledge.js +21 -11
- package/dist/knowledge.js.map +1 -1
- package/dist/localization.js +1 -1
- package/dist/localization.js.map +1 -1
- package/dist/methods.js +818 -15
- package/dist/methods.js.map +1 -1
- package/dist/money.d.ts +263 -7
- package/dist/money.js +121 -7
- package/dist/money.js.map +1 -1
- package/dist/network.js +1 -1
- package/dist/network.js.map +1 -1
- package/dist/notify.d.ts +579 -0
- package/dist/notify.js +497 -1
- package/dist/notify.js.map +1 -1
- package/dist/observability.d.ts +303 -0
- package/dist/observability.js +221 -1
- package/dist/observability.js.map +1 -1
- package/dist/realtime.js +1 -1
- package/dist/realtime.js.map +1 -1
- package/dist/release.js +1 -1
- package/dist/release.js.map +1 -1
- package/dist/runners.js +1 -1
- package/dist/runners.js.map +1 -1
- package/dist/runtime.d.ts +5 -1
- package/dist/runtime.js +81 -9
- package/dist/runtime.js.map +1 -1
- package/dist/sandboxes/stream-mock.d.ts +124 -0
- package/dist/sandboxes/stream-mock.js +476 -0
- package/dist/sandboxes/stream-mock.js.map +1 -0
- package/dist/sandboxes/stream.d.ts +407 -0
- package/dist/sandboxes/stream.js +335 -0
- package/dist/sandboxes/stream.js.map +1 -0
- package/dist/sandboxes.d.ts +137 -26
- package/dist/sandboxes.js +46 -4
- package/dist/sandboxes.js.map +1 -1
- package/dist/secrets.js +1 -1
- package/dist/secrets.js.map +1 -1
- package/dist/workflows.d.ts +53 -1
- package/dist/workflows.js +39 -3
- package/dist/workflows.js.map +1 -1
- package/package.json +1 -1
package/dist/notify.d.ts
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
import * as runtime from './runtime.js';
|
|
2
2
|
import './common.js';
|
|
3
3
|
import type * as common from './common.js';
|
|
4
|
+
/**
|
|
5
|
+
* Apply or reconcile the SAME operation after a lost response. Resupply a
|
|
6
|
+
* current token with the same operation id and route; readback precedes retry.
|
|
7
|
+
* Credentials are removed before hashing/persistence. No unattended credential
|
|
8
|
+
* refresh or background retry occurs; the provider continues executing calls.
|
|
9
|
+
*/
|
|
10
|
+
export interface ApplyPhoneNumberRouteRequest {
|
|
11
|
+
/** Connected line. */
|
|
12
|
+
name: string;
|
|
13
|
+
/** Stable logical operation id. A different route needs a different id. */
|
|
14
|
+
operationId: string;
|
|
15
|
+
/** Desired voicemail settings. */
|
|
16
|
+
voicemail: PhoneVoicemailRoute;
|
|
17
|
+
/** Transient provider session; excluded from every durable command/hash. */
|
|
18
|
+
providerSessionToken: string;
|
|
19
|
+
/** Validate without provider or database mutation. */
|
|
20
|
+
validateOnly?: boolean;
|
|
21
|
+
}
|
|
4
22
|
/** The request of ArchiveInboxItem. */
|
|
5
23
|
export interface ArchiveInboxItemRequest {
|
|
6
24
|
/** The name of the inbox item. */
|
|
@@ -82,6 +100,23 @@ export interface ChannelDelivery {
|
|
|
82
100
|
/** Hand-off attempts so far. */
|
|
83
101
|
readonly attempts?: number;
|
|
84
102
|
}
|
|
103
|
+
/** Connect an existing owned line; no provider mutation occurs. */
|
|
104
|
+
export interface ConnectPhoneNumberRequest {
|
|
105
|
+
/** Tenant environment. */
|
|
106
|
+
parent: string;
|
|
107
|
+
/** Stable caller-chosen id; retries reuse this id. */
|
|
108
|
+
phoneNumberId: string;
|
|
109
|
+
/** Existing E.164 number. */
|
|
110
|
+
phoneNumber: string;
|
|
111
|
+
/**
|
|
112
|
+
* Existing provider session, held only for this synchronous request. Never
|
|
113
|
+
* stored, logged, included in command hashes, or refreshed. Issuer lifetime
|
|
114
|
+
* is provider-owned; transient custody does not assert a shorter lifetime.
|
|
115
|
+
*/
|
|
116
|
+
providerSessionToken: string;
|
|
117
|
+
/** Validate ownership/config without creating a binding. */
|
|
118
|
+
validateOnly?: boolean;
|
|
119
|
+
}
|
|
85
120
|
/** The request of CreateBroadcast. */
|
|
86
121
|
export interface CreateBroadcastRequest {
|
|
87
122
|
/** The parent to create in. */
|
|
@@ -199,6 +234,15 @@ export interface CreateSenderRequest {
|
|
|
199
234
|
/** Validate and return the result without writing anything. */
|
|
200
235
|
validateOnly?: boolean;
|
|
201
236
|
}
|
|
237
|
+
/** The request of CreateSmsNumber. */
|
|
238
|
+
export interface CreateSmsNumberRequest {
|
|
239
|
+
/** The environment to bind the number in. */
|
|
240
|
+
parent: string;
|
|
241
|
+
/** The binding id; server-assigned when empty. */
|
|
242
|
+
smsNumberId?: string;
|
|
243
|
+
/** The binding to create. */
|
|
244
|
+
smsNumber: SmsNumber;
|
|
245
|
+
}
|
|
202
246
|
/** The request of CreateSuppression. */
|
|
203
247
|
export interface CreateSuppressionRequest {
|
|
204
248
|
/** The parent to create in. */
|
|
@@ -278,6 +322,17 @@ export interface DeleteMailboxRequest {
|
|
|
278
322
|
*/
|
|
279
323
|
force?: boolean;
|
|
280
324
|
}
|
|
325
|
+
/** The request of DeleteMessageTopic. */
|
|
326
|
+
export interface DeleteMessageTopicRequest {
|
|
327
|
+
/** The name of the message topic to delete. */
|
|
328
|
+
name: string;
|
|
329
|
+
/** Delete only if the current etag matches. */
|
|
330
|
+
etag?: string;
|
|
331
|
+
/** Succeed when the message topic does not exist. */
|
|
332
|
+
allowMissing?: boolean;
|
|
333
|
+
/** Validate without deleting anything. */
|
|
334
|
+
validateOnly?: boolean;
|
|
335
|
+
}
|
|
281
336
|
/** The request of DeletePreference. */
|
|
282
337
|
export interface DeletePreferenceRequest {
|
|
283
338
|
/** The name of the preference to delete. */
|
|
@@ -324,6 +379,11 @@ export interface DeleteSenderRequest {
|
|
|
324
379
|
/** Validate without deleting anything. */
|
|
325
380
|
validateOnly?: boolean;
|
|
326
381
|
}
|
|
382
|
+
/** The request of DeleteSmsNumber. */
|
|
383
|
+
export interface DeleteSmsNumberRequest {
|
|
384
|
+
/** The name of the number to release. */
|
|
385
|
+
name: string;
|
|
386
|
+
}
|
|
327
387
|
/** The request of DeleteSuppression. */
|
|
328
388
|
export interface DeleteSuppressionRequest {
|
|
329
389
|
/** The name of the suppression to delete. */
|
|
@@ -460,6 +520,11 @@ export interface GetInboundEmailRequest {
|
|
|
460
520
|
/** The name of the inbound email to get. */
|
|
461
521
|
name: string;
|
|
462
522
|
}
|
|
523
|
+
/** The request of GetInboundSms. */
|
|
524
|
+
export interface GetInboundSmsRequest {
|
|
525
|
+
/** The name of the inbound SMS to get. */
|
|
526
|
+
name: string;
|
|
527
|
+
}
|
|
463
528
|
/** The request of GetInboxItem. */
|
|
464
529
|
export interface GetInboxItemRequest {
|
|
465
530
|
/** The name of the inbox item to get. */
|
|
@@ -485,6 +550,16 @@ export interface GetMessageRequest {
|
|
|
485
550
|
/** The name of the message to get. */
|
|
486
551
|
name: string;
|
|
487
552
|
}
|
|
553
|
+
/** The request of GetMessageTopic. */
|
|
554
|
+
export interface GetMessageTopicRequest {
|
|
555
|
+
/** The name of the message topic to get. */
|
|
556
|
+
name: string;
|
|
557
|
+
}
|
|
558
|
+
/** Get a connected line's persisted observations; probe performs fresh provider reads. */
|
|
559
|
+
export interface GetPhoneNumberRequest {
|
|
560
|
+
/** Resource to read. */
|
|
561
|
+
name: string;
|
|
562
|
+
}
|
|
488
563
|
/** The request of GetPreference. */
|
|
489
564
|
export interface GetPreferenceRequest {
|
|
490
565
|
/** The name of the preference to get. */
|
|
@@ -505,6 +580,11 @@ export interface GetSenderRequest {
|
|
|
505
580
|
/** The name of the sender to get. */
|
|
506
581
|
name: string;
|
|
507
582
|
}
|
|
583
|
+
/** The request of GetSmsNumber. */
|
|
584
|
+
export interface GetSmsNumberRequest {
|
|
585
|
+
/** The name of the binding to get. */
|
|
586
|
+
name: string;
|
|
587
|
+
}
|
|
508
588
|
/** The request of GetSuppression. */
|
|
509
589
|
export interface GetSuppressionRequest {
|
|
510
590
|
/** The name of the suppression to get. */
|
|
@@ -573,6 +653,39 @@ export interface InboundEmail {
|
|
|
573
653
|
/** The Notify Message that sent it, for mail Notify sent as this mailbox. */
|
|
574
654
|
readonly message?: string;
|
|
575
655
|
}
|
|
656
|
+
/**
|
|
657
|
+
* An Inbound SMS is one text a bound number received, kept as evidence. The
|
|
658
|
+
* body is cleared when the environment's tier retention expires; the carrier's
|
|
659
|
+
* message id stays, so a replay after that never records the message again.
|
|
660
|
+
* Consumers read the feed in `sequence` order.
|
|
661
|
+
*/
|
|
662
|
+
export interface InboundSms {
|
|
663
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/sms_numbers/{sms_number}/inbound_sms/{inbound_sms}`. */
|
|
664
|
+
name?: string;
|
|
665
|
+
/** `isms_<cell><ulid>`; never reused. */
|
|
666
|
+
readonly uid?: string;
|
|
667
|
+
/** Resource metadata. */
|
|
668
|
+
meta?: common.ResourceMeta;
|
|
669
|
+
/**
|
|
670
|
+
* The feed position, increasing within the environment; filter
|
|
671
|
+
* `sequence > N` to resume after the last one handled.
|
|
672
|
+
*/
|
|
673
|
+
readonly sequence?: string;
|
|
674
|
+
/** The carrier's id for this message; the dedupe key on the number binding. */
|
|
675
|
+
readonly carrierMessageId?: string;
|
|
676
|
+
/** The sender, in E.164 when the carrier gave one. */
|
|
677
|
+
readonly senderNumber?: string;
|
|
678
|
+
/** The number the message was sent to, in E.164. */
|
|
679
|
+
readonly recipientNumber?: string;
|
|
680
|
+
/** The text. Empty once retention has cleared it. */
|
|
681
|
+
readonly text?: string;
|
|
682
|
+
/** How many segments the carrier counted. */
|
|
683
|
+
readonly segments?: number;
|
|
684
|
+
/** When the carrier says it received the message. */
|
|
685
|
+
readonly receiveTime?: string;
|
|
686
|
+
/** The text has been cleared by retention; the dedupe key stays. */
|
|
687
|
+
readonly cleared?: boolean;
|
|
688
|
+
}
|
|
576
689
|
/** In-app inbox content. */
|
|
577
690
|
export interface InboxContent {
|
|
578
691
|
/** The title. */
|
|
@@ -664,6 +777,26 @@ export interface ListInboundEmailsResponse {
|
|
|
664
777
|
/** The token of the next page; empty on the last page. */
|
|
665
778
|
nextPageToken?: string;
|
|
666
779
|
}
|
|
780
|
+
/** The request of ListInboundSms. */
|
|
781
|
+
export interface ListInboundSmsRequest {
|
|
782
|
+
/** The number binding 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 filterable fields. */
|
|
789
|
+
filter?: string;
|
|
790
|
+
/** AIP-132 ordering over filterable fields. */
|
|
791
|
+
orderBy?: string;
|
|
792
|
+
}
|
|
793
|
+
/** The response of ListInboundSms. */
|
|
794
|
+
export interface ListInboundSmsResponse {
|
|
795
|
+
/** The page. */
|
|
796
|
+
inboundSms?: InboundSms[];
|
|
797
|
+
/** The token of the next page; empty on the last page. */
|
|
798
|
+
nextPageToken?: string;
|
|
799
|
+
}
|
|
667
800
|
/** The request of ListInboxItems. */
|
|
668
801
|
export interface ListInboxItemsRequest {
|
|
669
802
|
/** The parent to list in. */
|
|
@@ -744,6 +877,26 @@ export interface ListMailboxesResponse {
|
|
|
744
877
|
/** The token of the next page; empty on the last page. */
|
|
745
878
|
nextPageToken?: string;
|
|
746
879
|
}
|
|
880
|
+
/** The request of ListMessageTopics. */
|
|
881
|
+
export interface ListMessageTopicsRequest {
|
|
882
|
+
/** The parent to list in. */
|
|
883
|
+
parent: string;
|
|
884
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
885
|
+
pageSize?: number;
|
|
886
|
+
/** `next_page_token` of the previous page. */
|
|
887
|
+
pageToken?: string;
|
|
888
|
+
/** AIP-160 filter over labels and filterable fields. */
|
|
889
|
+
filter?: string;
|
|
890
|
+
/** AIP-132 ordering over filterable fields. */
|
|
891
|
+
orderBy?: string;
|
|
892
|
+
}
|
|
893
|
+
/** The response of ListMessageTopics. */
|
|
894
|
+
export interface ListMessageTopicsResponse {
|
|
895
|
+
/** The page. */
|
|
896
|
+
messageTopics?: MessageTopic[];
|
|
897
|
+
/** The token of the next page; empty on the last page. */
|
|
898
|
+
nextPageToken?: string;
|
|
899
|
+
}
|
|
747
900
|
/** The request of ListMessages. */
|
|
748
901
|
export interface ListMessagesRequest {
|
|
749
902
|
/** The parent to list in. */
|
|
@@ -764,6 +917,22 @@ export interface ListMessagesResponse {
|
|
|
764
917
|
/** The token of the next page; empty on the last page. */
|
|
765
918
|
nextPageToken?: string;
|
|
766
919
|
}
|
|
920
|
+
/** List connected lines in one environment. */
|
|
921
|
+
export interface ListPhoneNumbersRequest {
|
|
922
|
+
/** Tenant environment. */
|
|
923
|
+
parent: string;
|
|
924
|
+
/** Page size, default 50, maximum 1000. */
|
|
925
|
+
pageSize?: number;
|
|
926
|
+
/** Continuation token. */
|
|
927
|
+
pageToken?: string;
|
|
928
|
+
}
|
|
929
|
+
/** One page of connected lines. */
|
|
930
|
+
export interface ListPhoneNumbersResponse {
|
|
931
|
+
/** Connected lines. */
|
|
932
|
+
phoneNumbers?: PhoneNumber[];
|
|
933
|
+
/** Continuation token. */
|
|
934
|
+
nextPageToken?: string;
|
|
935
|
+
}
|
|
767
936
|
/** The request of ListPreferences. */
|
|
768
937
|
export interface ListPreferencesRequest {
|
|
769
938
|
/** The parent to list in. */
|
|
@@ -844,6 +1013,22 @@ export interface ListSendersResponse {
|
|
|
844
1013
|
/** The token of the next page; empty on the last page. */
|
|
845
1014
|
nextPageToken?: string;
|
|
846
1015
|
}
|
|
1016
|
+
/** The request of ListSmsNumbers. */
|
|
1017
|
+
export interface ListSmsNumbersRequest {
|
|
1018
|
+
/** The environment to list in. */
|
|
1019
|
+
parent: string;
|
|
1020
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
1021
|
+
pageSize?: number;
|
|
1022
|
+
/** `next_page_token` of the previous page. */
|
|
1023
|
+
pageToken?: string;
|
|
1024
|
+
}
|
|
1025
|
+
/** The response of ListSmsNumbers. */
|
|
1026
|
+
export interface ListSmsNumbersResponse {
|
|
1027
|
+
/** The page. */
|
|
1028
|
+
smsNumbers?: SmsNumber[];
|
|
1029
|
+
/** The token of the next page; empty on the last page. */
|
|
1030
|
+
nextPageToken?: string;
|
|
1031
|
+
}
|
|
847
1032
|
/** The request of ListSuppressions. */
|
|
848
1033
|
export interface ListSuppressionsRequest {
|
|
849
1034
|
/** The parent to list in. */
|
|
@@ -1203,6 +1388,123 @@ export interface MessageContent {
|
|
|
1203
1388
|
/** The HTML body. */
|
|
1204
1389
|
htmlBody?: string;
|
|
1205
1390
|
}
|
|
1391
|
+
/**
|
|
1392
|
+
* A Message Topic holds an environment's settings for one message topic. The
|
|
1393
|
+
* id is the topic messages carry. A topic with no Message Topic admits every
|
|
1394
|
+
* message; a Message Topic may gate it on a Sylphx Money feature the recipient holds and cap it
|
|
1395
|
+
* by a Money limit feature, so a plan's allowances stay data in Money.
|
|
1396
|
+
*/
|
|
1397
|
+
export interface MessageTopic {
|
|
1398
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/message_topics/{message_topic}`. */
|
|
1399
|
+
name?: string;
|
|
1400
|
+
/** `tpc_<cell><ulid>`; never reused. */
|
|
1401
|
+
readonly uid?: string;
|
|
1402
|
+
/** Resource metadata. */
|
|
1403
|
+
meta?: common.ResourceMeta;
|
|
1404
|
+
/**
|
|
1405
|
+
* A Money feature key the recipient must hold (`entitlement_grants:check`
|
|
1406
|
+
* for the Recipient's `external_key` as the end user). A message to a
|
|
1407
|
+
* recipient that does not hold it is recorded `SUPPRESSED` with
|
|
1408
|
+
* `state_reason` `entitlement`; when Money cannot answer, the create fails
|
|
1409
|
+
* with 503 and writes nothing. The sending key must also hold
|
|
1410
|
+
* `billing:read`. Unset admits every recipient.
|
|
1411
|
+
*/
|
|
1412
|
+
requiredFeature?: string;
|
|
1413
|
+
/**
|
|
1414
|
+
* A Money `limit` feature whose allowance is the most messages on this topic
|
|
1415
|
+
* one recipient receives per `send_limit_window`. A message over it, or to a
|
|
1416
|
+
* recipient that holds no allowance, is recorded `RATE_LIMITED` and its
|
|
1417
|
+
* create answers 429. Unset: no topic limit.
|
|
1418
|
+
*/
|
|
1419
|
+
sendLimitFeature?: string;
|
|
1420
|
+
/**
|
|
1421
|
+
* The window the allowance counts over: 1 minute to 24 hours; default 24
|
|
1422
|
+
* hours.
|
|
1423
|
+
*/
|
|
1424
|
+
sendLimitWindow?: string;
|
|
1425
|
+
}
|
|
1426
|
+
/**
|
|
1427
|
+
* A connected, existing provider-managed telephone line. The provider answers
|
|
1428
|
+
* calls and records voicemail; Notify controls its route on demand. Connecting
|
|
1429
|
+
* never orders a number or changes a provider subscription.
|
|
1430
|
+
*/
|
|
1431
|
+
export interface PhoneNumber {
|
|
1432
|
+
/** The resource name. */
|
|
1433
|
+
name?: string;
|
|
1434
|
+
/** Immutable pnum_ identifier. */
|
|
1435
|
+
readonly uid?: string;
|
|
1436
|
+
/** Resource metadata. */
|
|
1437
|
+
meta?: common.ResourceMeta;
|
|
1438
|
+
/** The connected line and desired voicemail route. */
|
|
1439
|
+
spec?: PhoneNumberSpec;
|
|
1440
|
+
/** Authoritative observations, with route application separate from incoming verification. */
|
|
1441
|
+
readonly status?: PhoneNumberStatus;
|
|
1442
|
+
}
|
|
1443
|
+
/** A line-scoped provider receipt, without caller identity or stored audio. */
|
|
1444
|
+
export interface PhoneNumberReceipt {
|
|
1445
|
+
/** Provider's stable call identifier, scoped to this connected line. */
|
|
1446
|
+
providerCallId?: string;
|
|
1447
|
+
/** Original provider time. A timezone-free string is not a verified timestamp. */
|
|
1448
|
+
providerDate?: string;
|
|
1449
|
+
/** Set only when the provider timestamp carries an established offset. */
|
|
1450
|
+
receiveTime?: string;
|
|
1451
|
+
/** Applied route generation attributable to this receipt, or zero. */
|
|
1452
|
+
generation?: string;
|
|
1453
|
+
/** SHA-256 of the exact provider recording bytes. */
|
|
1454
|
+
audioSha256?: string;
|
|
1455
|
+
/** Intended Notify mailbox's inbound email holding an identical attachment. */
|
|
1456
|
+
inboundEmail?: string;
|
|
1457
|
+
/** Incoming proof; never true from configuration alone. */
|
|
1458
|
+
verified?: boolean;
|
|
1459
|
+
/** Safe hash of the actual call-path configuration at observation. */
|
|
1460
|
+
pathDigest?: string;
|
|
1461
|
+
}
|
|
1462
|
+
/** Desired state of an existing provider-managed line. */
|
|
1463
|
+
export interface PhoneNumberSpec {
|
|
1464
|
+
/** Existing E.164 number, verified against authenticated provider inventory. */
|
|
1465
|
+
phoneNumber?: string;
|
|
1466
|
+
/** Provider adapter; currently switchboard_free. */
|
|
1467
|
+
provider?: string;
|
|
1468
|
+
/** Desired route, admitted only through applyRoute with a durable operation id. */
|
|
1469
|
+
voicemail?: PhoneVoicemailRoute;
|
|
1470
|
+
}
|
|
1471
|
+
/** Observed state. A stored configuration alone never verifies incoming calls. */
|
|
1472
|
+
export interface PhoneNumberStatus {
|
|
1473
|
+
/** Generation represented by these observations. */
|
|
1474
|
+
readonly observedGeneration?: string;
|
|
1475
|
+
/** Connected, RouteApplied and IncomingVerified are independent conditions. */
|
|
1476
|
+
readonly conditions?: common.Condition[];
|
|
1477
|
+
/** Opaque hash of the provider-accepted session principal; never its login name. */
|
|
1478
|
+
readonly providerPrincipal?: string;
|
|
1479
|
+
/** Immutable provider line identity. */
|
|
1480
|
+
readonly providerLineId?: string;
|
|
1481
|
+
/** Immutable provider number identity. */
|
|
1482
|
+
readonly providerNumberId?: string;
|
|
1483
|
+
/** Last provider readback, independent of desired state. */
|
|
1484
|
+
readonly observedVoicemail?: PhoneVoicemailRoute;
|
|
1485
|
+
/** Generation confirmed by provider readback. */
|
|
1486
|
+
readonly appliedGeneration?: string;
|
|
1487
|
+
/** Generation with a scoped incoming voicemail recording delivered to its intended mailbox. */
|
|
1488
|
+
readonly incomingVerifiedGeneration?: string;
|
|
1489
|
+
/** Safe error classification; never a provider body or credential. */
|
|
1490
|
+
readonly lastError?: string;
|
|
1491
|
+
/** Safe hash of the full last-observed provider call-path configuration. */
|
|
1492
|
+
readonly observedPathDigest?: string;
|
|
1493
|
+
/** Incoming-proof baseline, cleared on observed external path changes. */
|
|
1494
|
+
readonly appliedPathDigest?: string;
|
|
1495
|
+
}
|
|
1496
|
+
/** Only these fields are changed; existing redirects, hours and prompts survive. */
|
|
1497
|
+
export interface PhoneVoicemailRoute {
|
|
1498
|
+
/** Whether voicemail is enabled. */
|
|
1499
|
+
enabled?: boolean;
|
|
1500
|
+
/**
|
|
1501
|
+
* Provider wait before offering voicemail, in seconds; at most 600.
|
|
1502
|
+
* Forced transfer is separate provider configuration and is preserved.
|
|
1503
|
+
*/
|
|
1504
|
+
delaySeconds?: number;
|
|
1505
|
+
/** Intended recording-delivery address. */
|
|
1506
|
+
emailAddress?: string;
|
|
1507
|
+
}
|
|
1206
1508
|
/**
|
|
1207
1509
|
* A Preference is a recipient's choice for one topic: which channels may carry
|
|
1208
1510
|
* it. Admission honors it, and unsubscribe links write it. The id is the
|
|
@@ -1223,6 +1525,27 @@ export interface Preference {
|
|
|
1223
1525
|
*/
|
|
1224
1526
|
digestInterval?: string;
|
|
1225
1527
|
}
|
|
1528
|
+
/** Fetch current config and a bounded day-window of line-scoped incoming receipts. */
|
|
1529
|
+
export interface ProbePhoneNumberRequest {
|
|
1530
|
+
/** Connected line. */
|
|
1531
|
+
name: string;
|
|
1532
|
+
/** First provider-local calendar day, YYYY-MM-DD. */
|
|
1533
|
+
startDay: string;
|
|
1534
|
+
/** Last day inclusive; at most one day after start_day. */
|
|
1535
|
+
endDay: string;
|
|
1536
|
+
/** Transient provider session. */
|
|
1537
|
+
providerSessionToken: string;
|
|
1538
|
+
}
|
|
1539
|
+
/**
|
|
1540
|
+
* Fresh provider observations and receipts. Unknown date encoding or missing
|
|
1541
|
+
* identical delivered audio leaves IncomingVerified false.
|
|
1542
|
+
*/
|
|
1543
|
+
export interface ProbePhoneNumberResponse {
|
|
1544
|
+
/** Connected line after readback. */
|
|
1545
|
+
phoneNumber?: PhoneNumber;
|
|
1546
|
+
/** Provider-backed voicemail receipts. */
|
|
1547
|
+
receipts?: PhoneNumberReceipt[];
|
|
1548
|
+
}
|
|
1226
1549
|
/** Push content. */
|
|
1227
1550
|
export interface PushContent {
|
|
1228
1551
|
/** The title. */
|
|
@@ -1252,6 +1575,29 @@ export interface PushSender {
|
|
|
1252
1575
|
/** The bundle id, package name, or web origin. */
|
|
1253
1576
|
appKey?: string;
|
|
1254
1577
|
}
|
|
1578
|
+
/**
|
|
1579
|
+
* Read provider audio for an already observed line-scoped receipt. No arbitrary
|
|
1580
|
+
* provider ID can be used as a lookup into another tenant or provider line.
|
|
1581
|
+
*/
|
|
1582
|
+
export interface ReadPhoneNumberVoicemailRequest {
|
|
1583
|
+
/** Connected line. */
|
|
1584
|
+
name: string;
|
|
1585
|
+
/** Stable provider receipt id already held by this line. */
|
|
1586
|
+
providerCallId: string;
|
|
1587
|
+
/** Day window to re-establish receipt ownership. */
|
|
1588
|
+
startDay: string;
|
|
1589
|
+
/** Last day inclusive, at most one day after start_day. */
|
|
1590
|
+
endDay: string;
|
|
1591
|
+
/** Transient provider session. */
|
|
1592
|
+
providerSessionToken: string;
|
|
1593
|
+
}
|
|
1594
|
+
/** Audio is returned on demand and never persisted by this integration. */
|
|
1595
|
+
export interface ReadPhoneNumberVoicemailResponse {
|
|
1596
|
+
/** Exact provider recording bytes, maximum 2 MiB. */
|
|
1597
|
+
audio?: string;
|
|
1598
|
+
/** SHA-256 of those bytes. */
|
|
1599
|
+
audioSha256?: string;
|
|
1600
|
+
}
|
|
1255
1601
|
/**
|
|
1256
1602
|
* A Recipient is one of a customer's users, across channels: email addresses,
|
|
1257
1603
|
* phone numbers, and device tokens. Dead device tokens are pruned from
|
|
@@ -1404,6 +1750,63 @@ export interface SmsContent {
|
|
|
1404
1750
|
/** The body. */
|
|
1405
1751
|
body?: string;
|
|
1406
1752
|
}
|
|
1753
|
+
/**
|
|
1754
|
+
* An SMS Number is provisioned and owned by Notify for one environment.
|
|
1755
|
+
* The platform orders it within the caller's explicit USD cost limits and
|
|
1756
|
+
* authenticates delivery into its durable inbound feed.
|
|
1757
|
+
*/
|
|
1758
|
+
export interface SmsNumber {
|
|
1759
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/sms_numbers/{sms_number}`. */
|
|
1760
|
+
name?: string;
|
|
1761
|
+
/** `snum_<cell><ulid>`; never reused. */
|
|
1762
|
+
readonly uid?: string;
|
|
1763
|
+
/** Resource metadata. */
|
|
1764
|
+
meta?: common.ResourceMeta;
|
|
1765
|
+
/** Desired state. */
|
|
1766
|
+
spec?: SmsNumberSpec;
|
|
1767
|
+
/** Observed state. */
|
|
1768
|
+
readonly status?: SmsNumberStatus;
|
|
1769
|
+
}
|
|
1770
|
+
/** SmsNumberSpec is the caller-writable state of an SMS Number. */
|
|
1771
|
+
export interface SmsNumberSpec {
|
|
1772
|
+
/** ISO two-letter country code. */
|
|
1773
|
+
regionCode?: string;
|
|
1774
|
+
/** local, mobile, toll_free, national or shared_cost. */
|
|
1775
|
+
numberType?: string;
|
|
1776
|
+
/** The carrier; Telnyx is supported. */
|
|
1777
|
+
provider?: string;
|
|
1778
|
+
/** Maximum one-time USD price, as a decimal string. No quote over it is ordered. */
|
|
1779
|
+
upfrontCostLimit?: string;
|
|
1780
|
+
/** Maximum recurring monthly USD price, as a decimal string. */
|
|
1781
|
+
monthlyCostLimit?: string;
|
|
1782
|
+
}
|
|
1783
|
+
/** SmsNumberStatus is the observed state of an SMS Number. */
|
|
1784
|
+
export interface SmsNumberStatus {
|
|
1785
|
+
/** The generation this status was computed from. */
|
|
1786
|
+
readonly observedGeneration?: string;
|
|
1787
|
+
/** Ready, Reconciling, Stalled. */
|
|
1788
|
+
readonly conditions?: common.Condition[];
|
|
1789
|
+
/** Receiving: an active binding whose number the carrier delivers to. */
|
|
1790
|
+
readonly receiving?: boolean;
|
|
1791
|
+
/** When the binding stopped receiving, if it has. */
|
|
1792
|
+
readonly retiredTime?: string;
|
|
1793
|
+
/** The provisioned E.164 number; empty until inventory selection. */
|
|
1794
|
+
readonly phoneNumber?: string;
|
|
1795
|
+
/** The platform carrier account reference, never a credential. */
|
|
1796
|
+
readonly carrierAccount?: string;
|
|
1797
|
+
/** Carrier number identifier, when available. */
|
|
1798
|
+
readonly providerNumberId?: string;
|
|
1799
|
+
/** Stable carrier order receipt; an uncertain purchase is reconciled, not repeated. */
|
|
1800
|
+
readonly orderId?: string;
|
|
1801
|
+
/** Messaging profile holding this number's webhook configuration. */
|
|
1802
|
+
readonly messagingProfileId?: string;
|
|
1803
|
+
/** Safe reason for a pending or stalled provision; contains no message text. */
|
|
1804
|
+
readonly stateReason?: string;
|
|
1805
|
+
/** Accepted one-time price in USD. */
|
|
1806
|
+
readonly upfrontCost?: string;
|
|
1807
|
+
/** Accepted monthly price in USD. */
|
|
1808
|
+
readonly monthlyCost?: string;
|
|
1809
|
+
}
|
|
1407
1810
|
/** An SMS origin. */
|
|
1408
1811
|
export interface SmsSender {
|
|
1409
1812
|
/** An E.164 number. */
|
|
@@ -1521,6 +1924,17 @@ export interface UpdateMailboxRequest {
|
|
|
1521
1924
|
/** Validate and return the result without writing anything. */
|
|
1522
1925
|
validateOnly?: boolean;
|
|
1523
1926
|
}
|
|
1927
|
+
/** The request of UpdateMessageTopic. */
|
|
1928
|
+
export interface UpdateMessageTopicRequest {
|
|
1929
|
+
/** The message topic to update; `name` identifies it. */
|
|
1930
|
+
messageTopic: MessageTopic;
|
|
1931
|
+
/** The fields to write; unset writes every populated field. */
|
|
1932
|
+
updateMask?: string;
|
|
1933
|
+
/** Create the message topic when it does not exist (declarative upsert). */
|
|
1934
|
+
allowMissing?: boolean;
|
|
1935
|
+
/** Validate and return the result without writing anything. */
|
|
1936
|
+
validateOnly?: boolean;
|
|
1937
|
+
}
|
|
1524
1938
|
/** The request of UpdatePreference. */
|
|
1525
1939
|
export interface UpdatePreferenceRequest {
|
|
1526
1940
|
/** The preference to update; `name` identifies it. */
|
|
@@ -1626,6 +2040,8 @@ export type SuppressionReason = 'bounce' | 'complaint' | 'carrier_opt_out' | 'un
|
|
|
1626
2040
|
* Namespace of Sylphx Notify on `Sylphx`.
|
|
1627
2041
|
*/
|
|
1628
2042
|
export declare class NotifyApi {
|
|
2043
|
+
/** The `phone_numbers` collection. */
|
|
2044
|
+
readonly phoneNumbers: PhoneNumbersCollection;
|
|
1629
2045
|
/** The `mail_domains` collection. */
|
|
1630
2046
|
readonly mailDomains: MailDomainsCollection;
|
|
1631
2047
|
/** The `mail_routes` collection. */
|
|
@@ -1636,6 +2052,8 @@ export declare class NotifyApi {
|
|
|
1636
2052
|
readonly recipients: RecipientsCollection;
|
|
1637
2053
|
/** The `preferences` collection. */
|
|
1638
2054
|
readonly preferences: PreferencesCollection;
|
|
2055
|
+
/** The `message_topics` collection. */
|
|
2056
|
+
readonly messageTopics: MessageTopicsCollection;
|
|
1639
2057
|
/** The `suppressions` collection. */
|
|
1640
2058
|
readonly suppressions: SuppressionsCollection;
|
|
1641
2059
|
/** The `templates` collection. */
|
|
@@ -1654,7 +2072,66 @@ export declare class NotifyApi {
|
|
|
1654
2072
|
readonly inboxItems: InboxItemsCollection;
|
|
1655
2073
|
/** The `broadcasts` collection. */
|
|
1656
2074
|
readonly broadcasts: BroadcastsCollection;
|
|
2075
|
+
/** The `sms_numbers` collection. */
|
|
2076
|
+
readonly smsNumbers: SmsNumbersCollection;
|
|
2077
|
+
/** The `inbound_sms` collection. */
|
|
2078
|
+
readonly inboundSms: InboundSmsCollection;
|
|
2079
|
+
constructor(client: runtime.Client);
|
|
2080
|
+
}
|
|
2081
|
+
/** `phone_numbers` of Sylphx Notify: Resource type `notify.sylphx.com/PhoneNumber`. */
|
|
2082
|
+
export declare class PhoneNumbersCollection {
|
|
2083
|
+
private readonly client;
|
|
1657
2084
|
constructor(client: runtime.Client);
|
|
2085
|
+
/**
|
|
2086
|
+
* ConnectPhoneNumber: existing provider-managed lines; execution credentials are transient.
|
|
2087
|
+
*
|
|
2088
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/phone_numbers:connect` · permission `notify:write` · effect `write`
|
|
2089
|
+
*
|
|
2090
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `UNAVAILABLE`.
|
|
2091
|
+
*/
|
|
2092
|
+
connect(request: ConnectPhoneNumberRequest): Promise<PhoneNumber>;
|
|
2093
|
+
/**
|
|
2094
|
+
* GetPhoneNumber: existing provider-managed lines; execution credentials are transient.
|
|
2095
|
+
*
|
|
2096
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/phone_numbers/*}` · permission `notify:read` · effect `read`
|
|
2097
|
+
*
|
|
2098
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `UNAVAILABLE`.
|
|
2099
|
+
*/
|
|
2100
|
+
get(request: GetPhoneNumberRequest): Promise<PhoneNumber>;
|
|
2101
|
+
/**
|
|
2102
|
+
* ListPhoneNumbers: existing provider-managed lines; execution credentials are transient.
|
|
2103
|
+
*
|
|
2104
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/phone_numbers` · permission `notify:read` · effect `read`
|
|
2105
|
+
*
|
|
2106
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `UNAVAILABLE`.
|
|
2107
|
+
*/
|
|
2108
|
+
list(request: ListPhoneNumbersRequest): Promise<ListPhoneNumbersResponse>;
|
|
2109
|
+
/** Every item of every page of `list`. */
|
|
2110
|
+
listAll(request: ListPhoneNumbersRequest): AsyncGenerator<PhoneNumber>;
|
|
2111
|
+
/**
|
|
2112
|
+
* ApplyPhoneNumberRoute: existing provider-managed lines; execution credentials are transient.
|
|
2113
|
+
*
|
|
2114
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/phone_numbers/*}:applyRoute` · permission `notify:write` · effect `write`
|
|
2115
|
+
*
|
|
2116
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `UNAVAILABLE`.
|
|
2117
|
+
*/
|
|
2118
|
+
applyRoute(request: ApplyPhoneNumberRouteRequest): Promise<PhoneNumber>;
|
|
2119
|
+
/**
|
|
2120
|
+
* ProbePhoneNumber: existing provider-managed lines; execution credentials are transient.
|
|
2121
|
+
*
|
|
2122
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/phone_numbers/*}:probe` · permission `notify:write` · effect `write`
|
|
2123
|
+
*
|
|
2124
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `UNAVAILABLE`.
|
|
2125
|
+
*/
|
|
2126
|
+
probe(request: ProbePhoneNumberRequest): Promise<ProbePhoneNumberResponse>;
|
|
2127
|
+
/**
|
|
2128
|
+
* ReadPhoneNumberVoicemail: existing provider-managed lines; execution credentials are transient.
|
|
2129
|
+
*
|
|
2130
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/phone_numbers/*}:readVoicemail` · permission `notify:read` · effect `read`
|
|
2131
|
+
*
|
|
2132
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `UNAVAILABLE`.
|
|
2133
|
+
*/
|
|
2134
|
+
readVoicemail(request: ReadPhoneNumberVoicemailRequest): Promise<ReadPhoneNumberVoicemailResponse>;
|
|
1658
2135
|
}
|
|
1659
2136
|
/** `mail_domains` of Sylphx Notify: Resource type `notify.sylphx.com/EmailDomain`. */
|
|
1660
2137
|
export declare class MailDomainsCollection {
|
|
@@ -1899,6 +2376,45 @@ export declare class PreferencesCollection {
|
|
|
1899
2376
|
*/
|
|
1900
2377
|
delete(request: DeletePreferenceRequest): Promise<Record<string, never>>;
|
|
1901
2378
|
}
|
|
2379
|
+
/** `message_topics` of Sylphx Notify: Resource type `notify.sylphx.com/MessageTopic`. */
|
|
2380
|
+
export declare class MessageTopicsCollection {
|
|
2381
|
+
private readonly client;
|
|
2382
|
+
constructor(client: runtime.Client);
|
|
2383
|
+
/**
|
|
2384
|
+
* Gets a message topic.
|
|
2385
|
+
*
|
|
2386
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/message_topics/*}` · permission `notify:read` · effect `read`
|
|
2387
|
+
*
|
|
2388
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
2389
|
+
*/
|
|
2390
|
+
get(request: GetMessageTopicRequest): Promise<MessageTopic>;
|
|
2391
|
+
/**
|
|
2392
|
+
* Lists message topics.
|
|
2393
|
+
*
|
|
2394
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/message_topics` · permission `notify:read` · effect `read`
|
|
2395
|
+
*
|
|
2396
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
2397
|
+
*/
|
|
2398
|
+
list(request: ListMessageTopicsRequest): Promise<ListMessageTopicsResponse>;
|
|
2399
|
+
/** Every item of every page of `list`. */
|
|
2400
|
+
listAll(request: ListMessageTopicsRequest): AsyncGenerator<MessageTopic>;
|
|
2401
|
+
/**
|
|
2402
|
+
* Updates a message topic; with `allow_missing`, creates it.
|
|
2403
|
+
*
|
|
2404
|
+
* `PATCH /v1/{message_topic.name=orgs/*\/projects/*\/envs/*\/message_topics/*}` · permission `notify:write` · effect `write`
|
|
2405
|
+
*
|
|
2406
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2407
|
+
*/
|
|
2408
|
+
update(request: UpdateMessageTopicRequest): Promise<MessageTopic>;
|
|
2409
|
+
/**
|
|
2410
|
+
* Deletes a message topic; its messages are admitted with no gate or topic limit.
|
|
2411
|
+
*
|
|
2412
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/message_topics/*}` · permission `notify:write` · effect `destructive`
|
|
2413
|
+
*
|
|
2414
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2415
|
+
*/
|
|
2416
|
+
delete(request: DeleteMessageTopicRequest): Promise<Record<string, never>>;
|
|
2417
|
+
}
|
|
1902
2418
|
/** `suppressions` of Sylphx Notify: Resource type `notify.sylphx.com/Suppression`. */
|
|
1903
2419
|
export declare class SuppressionsCollection {
|
|
1904
2420
|
private readonly client;
|
|
@@ -2293,3 +2809,66 @@ export declare class BroadcastsCollection {
|
|
|
2293
2809
|
*/
|
|
2294
2810
|
cancel(request: CancelBroadcastRequest): Promise<Broadcast>;
|
|
2295
2811
|
}
|
|
2812
|
+
/** `sms_numbers` of Sylphx Notify: Resource type `notify.sylphx.com/SmsNumber`. */
|
|
2813
|
+
export declare class SmsNumbersCollection {
|
|
2814
|
+
private readonly client;
|
|
2815
|
+
constructor(client: runtime.Client);
|
|
2816
|
+
/**
|
|
2817
|
+
* Provisions one carrier number within explicit cost limits and receives its SMS.
|
|
2818
|
+
*
|
|
2819
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/sms_numbers` · permission `notify:write` · effect `write`
|
|
2820
|
+
*
|
|
2821
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2822
|
+
*/
|
|
2823
|
+
create(request: CreateSmsNumberRequest): Promise<SmsNumber>;
|
|
2824
|
+
/**
|
|
2825
|
+
* Gets an SMS number binding.
|
|
2826
|
+
*
|
|
2827
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/sms_numbers/*}` · permission `notify:read` · effect `read`
|
|
2828
|
+
*
|
|
2829
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
2830
|
+
*/
|
|
2831
|
+
get(request: GetSmsNumberRequest): Promise<SmsNumber>;
|
|
2832
|
+
/**
|
|
2833
|
+
* Lists an environment's SMS number bindings.
|
|
2834
|
+
*
|
|
2835
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/sms_numbers` · permission `notify:read` · effect `read`
|
|
2836
|
+
*
|
|
2837
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
2838
|
+
*/
|
|
2839
|
+
list(request: ListSmsNumbersRequest): Promise<ListSmsNumbersResponse>;
|
|
2840
|
+
/** Every item of every page of `list`. */
|
|
2841
|
+
listAll(request: ListSmsNumbersRequest): AsyncGenerator<SmsNumber>;
|
|
2842
|
+
/**
|
|
2843
|
+
* Requests carrier release and stops recurring number billing. Read status
|
|
2844
|
+
* until retired_time is set. Historical messages stay readable.
|
|
2845
|
+
*
|
|
2846
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/sms_numbers/*}` · permission `notify:write` · effect `destructive`
|
|
2847
|
+
*
|
|
2848
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`.
|
|
2849
|
+
*/
|
|
2850
|
+
delete(request: DeleteSmsNumberRequest): Promise<Record<string, never>>;
|
|
2851
|
+
}
|
|
2852
|
+
/** `inbound_sms` of Sylphx Notify: Resource type `notify.sylphx.com/InboundSms`. */
|
|
2853
|
+
export declare class InboundSmsCollection {
|
|
2854
|
+
private readonly client;
|
|
2855
|
+
constructor(client: runtime.Client);
|
|
2856
|
+
/**
|
|
2857
|
+
* Gets one inbound SMS.
|
|
2858
|
+
*
|
|
2859
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/sms_numbers/*\/inbound_sms/*}` · permission `notify:read` · effect `read`
|
|
2860
|
+
*
|
|
2861
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
2862
|
+
*/
|
|
2863
|
+
get(request: GetInboundSmsRequest): Promise<InboundSms>;
|
|
2864
|
+
/**
|
|
2865
|
+
* Lists a number's inbound SMS in feed order, oldest first.
|
|
2866
|
+
*
|
|
2867
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/sms_numbers/*}/inbound_sms` · permission `notify:read` · effect `read`
|
|
2868
|
+
*
|
|
2869
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
2870
|
+
*/
|
|
2871
|
+
list(request: ListInboundSmsRequest): Promise<ListInboundSmsResponse>;
|
|
2872
|
+
/** Every item of every page of `list`. */
|
|
2873
|
+
listAll(request: ListInboundSmsRequest): AsyncGenerator<InboundSms>;
|
|
2874
|
+
}
|