@sylphx/sdk 0.32.1 → 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.
- package/README.md +105 -0
- package/dist/access.d.ts +16 -1
- package/dist/access.js +1 -1
- package/dist/access.js.map +1 -1
- package/dist/agents.d.ts +463 -25
- package/dist/agents.js +276 -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.js +1 -1
- package/dist/hosting.js.map +1 -1
- package/dist/ids.d.ts +40 -0
- package/dist/ids.js +9 -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 +408 -8
- 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 +340 -0
- package/dist/notify.js +304 -1
- package/dist/notify.js.map +1 -1
- package/dist/observability.js +1 -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 +3 -0
- package/dist/runtime.js +54 -1
- 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 +94 -17
- package/dist/sandboxes.js +33 -4
- package/dist/sandboxes.js.map +1 -1
- package/dist/secrets.js +1 -1
- package/dist/secrets.js.map +1 -1
- package/dist/workflows.js +1 -1
- package/dist/workflows.js.map +1 -1
- package/package.json +1 -1
package/dist/notify.d.ts
CHANGED
|
@@ -199,6 +199,15 @@ export interface CreateSenderRequest {
|
|
|
199
199
|
/** Validate and return the result without writing anything. */
|
|
200
200
|
validateOnly?: boolean;
|
|
201
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
|
+
}
|
|
202
211
|
/** The request of CreateSuppression. */
|
|
203
212
|
export interface CreateSuppressionRequest {
|
|
204
213
|
/** The parent to create in. */
|
|
@@ -278,6 +287,17 @@ export interface DeleteMailboxRequest {
|
|
|
278
287
|
*/
|
|
279
288
|
force?: boolean;
|
|
280
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
|
+
}
|
|
281
301
|
/** The request of DeletePreference. */
|
|
282
302
|
export interface DeletePreferenceRequest {
|
|
283
303
|
/** The name of the preference to delete. */
|
|
@@ -324,6 +344,11 @@ export interface DeleteSenderRequest {
|
|
|
324
344
|
/** Validate without deleting anything. */
|
|
325
345
|
validateOnly?: boolean;
|
|
326
346
|
}
|
|
347
|
+
/** The request of DeleteSmsNumber. */
|
|
348
|
+
export interface DeleteSmsNumberRequest {
|
|
349
|
+
/** The name of the number to release. */
|
|
350
|
+
name: string;
|
|
351
|
+
}
|
|
327
352
|
/** The request of DeleteSuppression. */
|
|
328
353
|
export interface DeleteSuppressionRequest {
|
|
329
354
|
/** The name of the suppression to delete. */
|
|
@@ -460,6 +485,11 @@ export interface GetInboundEmailRequest {
|
|
|
460
485
|
/** The name of the inbound email to get. */
|
|
461
486
|
name: string;
|
|
462
487
|
}
|
|
488
|
+
/** The request of GetInboundSms. */
|
|
489
|
+
export interface GetInboundSmsRequest {
|
|
490
|
+
/** The name of the inbound SMS to get. */
|
|
491
|
+
name: string;
|
|
492
|
+
}
|
|
463
493
|
/** The request of GetInboxItem. */
|
|
464
494
|
export interface GetInboxItemRequest {
|
|
465
495
|
/** The name of the inbox item to get. */
|
|
@@ -485,6 +515,11 @@ export interface GetMessageRequest {
|
|
|
485
515
|
/** The name of the message to get. */
|
|
486
516
|
name: string;
|
|
487
517
|
}
|
|
518
|
+
/** The request of GetMessageTopic. */
|
|
519
|
+
export interface GetMessageTopicRequest {
|
|
520
|
+
/** The name of the message topic to get. */
|
|
521
|
+
name: string;
|
|
522
|
+
}
|
|
488
523
|
/** The request of GetPreference. */
|
|
489
524
|
export interface GetPreferenceRequest {
|
|
490
525
|
/** The name of the preference to get. */
|
|
@@ -505,6 +540,11 @@ export interface GetSenderRequest {
|
|
|
505
540
|
/** The name of the sender to get. */
|
|
506
541
|
name: string;
|
|
507
542
|
}
|
|
543
|
+
/** The request of GetSmsNumber. */
|
|
544
|
+
export interface GetSmsNumberRequest {
|
|
545
|
+
/** The name of the binding to get. */
|
|
546
|
+
name: string;
|
|
547
|
+
}
|
|
508
548
|
/** The request of GetSuppression. */
|
|
509
549
|
export interface GetSuppressionRequest {
|
|
510
550
|
/** The name of the suppression to get. */
|
|
@@ -573,6 +613,39 @@ export interface InboundEmail {
|
|
|
573
613
|
/** The Notify Message that sent it, for mail Notify sent as this mailbox. */
|
|
574
614
|
readonly message?: string;
|
|
575
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
|
+
}
|
|
576
649
|
/** In-app inbox content. */
|
|
577
650
|
export interface InboxContent {
|
|
578
651
|
/** The title. */
|
|
@@ -664,6 +737,26 @@ export interface ListInboundEmailsResponse {
|
|
|
664
737
|
/** The token of the next page; empty on the last page. */
|
|
665
738
|
nextPageToken?: string;
|
|
666
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
|
+
}
|
|
667
760
|
/** The request of ListInboxItems. */
|
|
668
761
|
export interface ListInboxItemsRequest {
|
|
669
762
|
/** The parent to list in. */
|
|
@@ -744,6 +837,26 @@ export interface ListMailboxesResponse {
|
|
|
744
837
|
/** The token of the next page; empty on the last page. */
|
|
745
838
|
nextPageToken?: string;
|
|
746
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
|
+
}
|
|
747
860
|
/** The request of ListMessages. */
|
|
748
861
|
export interface ListMessagesRequest {
|
|
749
862
|
/** The parent to list in. */
|
|
@@ -844,6 +957,22 @@ export interface ListSendersResponse {
|
|
|
844
957
|
/** The token of the next page; empty on the last page. */
|
|
845
958
|
nextPageToken?: string;
|
|
846
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
|
+
}
|
|
847
976
|
/** The request of ListSuppressions. */
|
|
848
977
|
export interface ListSuppressionsRequest {
|
|
849
978
|
/** The parent to list in. */
|
|
@@ -1203,6 +1332,41 @@ export interface MessageContent {
|
|
|
1203
1332
|
/** The HTML body. */
|
|
1204
1333
|
htmlBody?: string;
|
|
1205
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
|
+
}
|
|
1206
1370
|
/**
|
|
1207
1371
|
* A Preference is a recipient's choice for one topic: which channels may carry
|
|
1208
1372
|
* it. Admission honors it, and unsubscribe links write it. The id is the
|
|
@@ -1404,6 +1568,63 @@ export interface SmsContent {
|
|
|
1404
1568
|
/** The body. */
|
|
1405
1569
|
body?: string;
|
|
1406
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
|
+
}
|
|
1407
1628
|
/** An SMS origin. */
|
|
1408
1629
|
export interface SmsSender {
|
|
1409
1630
|
/** An E.164 number. */
|
|
@@ -1521,6 +1742,17 @@ export interface UpdateMailboxRequest {
|
|
|
1521
1742
|
/** Validate and return the result without writing anything. */
|
|
1522
1743
|
validateOnly?: boolean;
|
|
1523
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
|
+
}
|
|
1524
1756
|
/** The request of UpdatePreference. */
|
|
1525
1757
|
export interface UpdatePreferenceRequest {
|
|
1526
1758
|
/** The preference to update; `name` identifies it. */
|
|
@@ -1636,6 +1868,8 @@ export declare class NotifyApi {
|
|
|
1636
1868
|
readonly recipients: RecipientsCollection;
|
|
1637
1869
|
/** The `preferences` collection. */
|
|
1638
1870
|
readonly preferences: PreferencesCollection;
|
|
1871
|
+
/** The `message_topics` collection. */
|
|
1872
|
+
readonly messageTopics: MessageTopicsCollection;
|
|
1639
1873
|
/** The `suppressions` collection. */
|
|
1640
1874
|
readonly suppressions: SuppressionsCollection;
|
|
1641
1875
|
/** The `templates` collection. */
|
|
@@ -1654,6 +1888,10 @@ export declare class NotifyApi {
|
|
|
1654
1888
|
readonly inboxItems: InboxItemsCollection;
|
|
1655
1889
|
/** The `broadcasts` collection. */
|
|
1656
1890
|
readonly broadcasts: BroadcastsCollection;
|
|
1891
|
+
/** The `sms_numbers` collection. */
|
|
1892
|
+
readonly smsNumbers: SmsNumbersCollection;
|
|
1893
|
+
/** The `inbound_sms` collection. */
|
|
1894
|
+
readonly inboundSms: InboundSmsCollection;
|
|
1657
1895
|
constructor(client: runtime.Client);
|
|
1658
1896
|
}
|
|
1659
1897
|
/** `mail_domains` of Sylphx Notify: Resource type `notify.sylphx.com/EmailDomain`. */
|
|
@@ -1899,6 +2137,45 @@ export declare class PreferencesCollection {
|
|
|
1899
2137
|
*/
|
|
1900
2138
|
delete(request: DeletePreferenceRequest): Promise<Record<string, never>>;
|
|
1901
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
|
+
}
|
|
1902
2179
|
/** `suppressions` of Sylphx Notify: Resource type `notify.sylphx.com/Suppression`. */
|
|
1903
2180
|
export declare class SuppressionsCollection {
|
|
1904
2181
|
private readonly client;
|
|
@@ -2293,3 +2570,66 @@ export declare class BroadcastsCollection {
|
|
|
2293
2570
|
*/
|
|
2294
2571
|
cancel(request: CancelBroadcastRequest): Promise<Broadcast>;
|
|
2295
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
|
+
}
|