@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.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
// @generated by sylphx-gen
|
|
1
|
+
// @generated by sylphx-gen. Do not edit.
|
|
2
2
|
// `sylphx.notify.v1`.
|
|
3
3
|
import * as runtime from './runtime.js';
|
|
4
4
|
import './common.js';
|
|
5
5
|
runtime.registerSchemas({
|
|
6
|
+
'sylphx.notify.v1.ApplyPhoneNumberRouteRequest': [
|
|
7
|
+
['operationId', 'operation_id'],
|
|
8
|
+
['voicemail', 'voicemail', 'sylphx.notify.v1.PhoneVoicemailRoute'],
|
|
9
|
+
['providerSessionToken', 'provider_session_token'],
|
|
10
|
+
['validateOnly', 'validate_only'],
|
|
11
|
+
],
|
|
6
12
|
'sylphx.notify.v1.ArchiveInboxItemRequest': [],
|
|
7
13
|
'sylphx.notify.v1.Broadcast': [
|
|
8
14
|
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
@@ -29,6 +35,12 @@ runtime.registerSchemas({
|
|
|
29
35
|
['errorCode', 'error_code'],
|
|
30
36
|
['providerResponse', 'provider_response'],
|
|
31
37
|
],
|
|
38
|
+
'sylphx.notify.v1.ConnectPhoneNumberRequest': [
|
|
39
|
+
['phoneNumberId', 'phone_number_id'],
|
|
40
|
+
['phoneNumber', 'phone_number'],
|
|
41
|
+
['providerSessionToken', 'provider_session_token'],
|
|
42
|
+
['validateOnly', 'validate_only'],
|
|
43
|
+
],
|
|
32
44
|
'sylphx.notify.v1.CreateBroadcastRequest': [
|
|
33
45
|
['broadcastId', 'broadcast_id'],
|
|
34
46
|
['broadcast', 'broadcast', 'sylphx.notify.v1.Broadcast'],
|
|
@@ -74,6 +86,10 @@ runtime.registerSchemas({
|
|
|
74
86
|
['sender', 'sender', 'sylphx.notify.v1.Sender'],
|
|
75
87
|
['validateOnly', 'validate_only'],
|
|
76
88
|
],
|
|
89
|
+
'sylphx.notify.v1.CreateSmsNumberRequest': [
|
|
90
|
+
['smsNumberId', 'sms_number_id'],
|
|
91
|
+
['smsNumber', 'sms_number', 'sylphx.notify.v1.SmsNumber'],
|
|
92
|
+
],
|
|
77
93
|
'sylphx.notify.v1.CreateSuppressionRequest': [
|
|
78
94
|
['suppressionId', 'suppression_id'],
|
|
79
95
|
['suppression', 'suppression', 'sylphx.notify.v1.Suppression'],
|
|
@@ -100,6 +116,10 @@ runtime.registerSchemas({
|
|
|
100
116
|
['allowMissing', 'allow_missing'],
|
|
101
117
|
['validateOnly', 'validate_only'],
|
|
102
118
|
],
|
|
119
|
+
'sylphx.notify.v1.DeleteMessageTopicRequest': [
|
|
120
|
+
['allowMissing', 'allow_missing'],
|
|
121
|
+
['validateOnly', 'validate_only'],
|
|
122
|
+
],
|
|
103
123
|
'sylphx.notify.v1.DeletePreferenceRequest': [
|
|
104
124
|
['allowMissing', 'allow_missing'],
|
|
105
125
|
['validateOnly', 'validate_only'],
|
|
@@ -116,6 +136,7 @@ runtime.registerSchemas({
|
|
|
116
136
|
['allowMissing', 'allow_missing'],
|
|
117
137
|
['validateOnly', 'validate_only'],
|
|
118
138
|
],
|
|
139
|
+
'sylphx.notify.v1.DeleteSmsNumberRequest': [],
|
|
119
140
|
'sylphx.notify.v1.DeleteSuppressionRequest': [
|
|
120
141
|
['allowMissing', 'allow_missing'],
|
|
121
142
|
['validateOnly', 'validate_only'],
|
|
@@ -161,15 +182,19 @@ runtime.registerSchemas({
|
|
|
161
182
|
'sylphx.notify.v1.GetBroadcastRequest': [],
|
|
162
183
|
'sylphx.notify.v1.GetEmailDomainRequest': [],
|
|
163
184
|
'sylphx.notify.v1.GetInboundEmailRequest': [],
|
|
185
|
+
'sylphx.notify.v1.GetInboundSmsRequest': [],
|
|
164
186
|
'sylphx.notify.v1.GetInboxItemRequest': [],
|
|
165
187
|
'sylphx.notify.v1.GetMailboxConnectLinkRequest': [],
|
|
166
188
|
'sylphx.notify.v1.GetMailboxOauthAppRequest': [],
|
|
167
189
|
'sylphx.notify.v1.GetMailboxRequest': [],
|
|
168
190
|
'sylphx.notify.v1.GetMessageRequest': [],
|
|
191
|
+
'sylphx.notify.v1.GetMessageTopicRequest': [],
|
|
192
|
+
'sylphx.notify.v1.GetPhoneNumberRequest': [],
|
|
169
193
|
'sylphx.notify.v1.GetPreferenceRequest': [],
|
|
170
194
|
'sylphx.notify.v1.GetRecipientRequest': [],
|
|
171
195
|
'sylphx.notify.v1.GetRouteRequest': [],
|
|
172
196
|
'sylphx.notify.v1.GetSenderRequest': [],
|
|
197
|
+
'sylphx.notify.v1.GetSmsNumberRequest': [],
|
|
173
198
|
'sylphx.notify.v1.GetSuppressionRequest': [],
|
|
174
199
|
'sylphx.notify.v1.GetTemplateRequest': [],
|
|
175
200
|
'sylphx.notify.v1.InboundEmail': [
|
|
@@ -186,6 +211,13 @@ runtime.registerSchemas({
|
|
|
186
211
|
['rawSha256', 'raw_sha256'],
|
|
187
212
|
['sizeBytes', 'size_bytes'],
|
|
188
213
|
],
|
|
214
|
+
'sylphx.notify.v1.InboundSms': [
|
|
215
|
+
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
216
|
+
['carrierMessageId', 'carrier_message_id'],
|
|
217
|
+
['senderNumber', 'sender_number'],
|
|
218
|
+
['recipientNumber', 'recipient_number'],
|
|
219
|
+
['receiveTime', 'receive_time'],
|
|
220
|
+
],
|
|
189
221
|
'sylphx.notify.v1.InboxContent': [
|
|
190
222
|
['actionUri', 'action_uri'],
|
|
191
223
|
],
|
|
@@ -220,6 +252,15 @@ runtime.registerSchemas({
|
|
|
220
252
|
['inboundEmails', 'inbound_emails', 'sylphx.notify.v1.InboundEmail'],
|
|
221
253
|
['nextPageToken', 'next_page_token'],
|
|
222
254
|
],
|
|
255
|
+
'sylphx.notify.v1.ListInboundSmsRequest': [
|
|
256
|
+
['pageSize', 'page_size'],
|
|
257
|
+
['pageToken', 'page_token'],
|
|
258
|
+
['orderBy', 'order_by'],
|
|
259
|
+
],
|
|
260
|
+
'sylphx.notify.v1.ListInboundSmsResponse': [
|
|
261
|
+
['inboundSms', 'inbound_sms', 'sylphx.notify.v1.InboundSms'],
|
|
262
|
+
['nextPageToken', 'next_page_token'],
|
|
263
|
+
],
|
|
223
264
|
'sylphx.notify.v1.ListInboxItemsRequest': [
|
|
224
265
|
['pageSize', 'page_size'],
|
|
225
266
|
['pageToken', 'page_token'],
|
|
@@ -256,6 +297,15 @@ runtime.registerSchemas({
|
|
|
256
297
|
['mailboxes', 'mailboxes', 'sylphx.notify.v1.Mailbox'],
|
|
257
298
|
['nextPageToken', 'next_page_token'],
|
|
258
299
|
],
|
|
300
|
+
'sylphx.notify.v1.ListMessageTopicsRequest': [
|
|
301
|
+
['pageSize', 'page_size'],
|
|
302
|
+
['pageToken', 'page_token'],
|
|
303
|
+
['orderBy', 'order_by'],
|
|
304
|
+
],
|
|
305
|
+
'sylphx.notify.v1.ListMessageTopicsResponse': [
|
|
306
|
+
['messageTopics', 'message_topics', 'sylphx.notify.v1.MessageTopic'],
|
|
307
|
+
['nextPageToken', 'next_page_token'],
|
|
308
|
+
],
|
|
259
309
|
'sylphx.notify.v1.ListMessagesRequest': [
|
|
260
310
|
['pageSize', 'page_size'],
|
|
261
311
|
['pageToken', 'page_token'],
|
|
@@ -265,6 +315,14 @@ runtime.registerSchemas({
|
|
|
265
315
|
['messages', 'messages', 'sylphx.notify.v1.Message'],
|
|
266
316
|
['nextPageToken', 'next_page_token'],
|
|
267
317
|
],
|
|
318
|
+
'sylphx.notify.v1.ListPhoneNumbersRequest': [
|
|
319
|
+
['pageSize', 'page_size'],
|
|
320
|
+
['pageToken', 'page_token'],
|
|
321
|
+
],
|
|
322
|
+
'sylphx.notify.v1.ListPhoneNumbersResponse': [
|
|
323
|
+
['phoneNumbers', 'phone_numbers', 'sylphx.notify.v1.PhoneNumber'],
|
|
324
|
+
['nextPageToken', 'next_page_token'],
|
|
325
|
+
],
|
|
268
326
|
'sylphx.notify.v1.ListPreferencesRequest': [
|
|
269
327
|
['pageSize', 'page_size'],
|
|
270
328
|
['pageToken', 'page_token'],
|
|
@@ -301,6 +359,14 @@ runtime.registerSchemas({
|
|
|
301
359
|
['senders', 'senders', 'sylphx.notify.v1.Sender'],
|
|
302
360
|
['nextPageToken', 'next_page_token'],
|
|
303
361
|
],
|
|
362
|
+
'sylphx.notify.v1.ListSmsNumbersRequest': [
|
|
363
|
+
['pageSize', 'page_size'],
|
|
364
|
+
['pageToken', 'page_token'],
|
|
365
|
+
],
|
|
366
|
+
'sylphx.notify.v1.ListSmsNumbersResponse': [
|
|
367
|
+
['smsNumbers', 'sms_numbers', 'sylphx.notify.v1.SmsNumber'],
|
|
368
|
+
['nextPageToken', 'next_page_token'],
|
|
369
|
+
],
|
|
304
370
|
'sylphx.notify.v1.ListSuppressionsRequest': [
|
|
305
371
|
['pageSize', 'page_size'],
|
|
306
372
|
['pageToken', 'page_token'],
|
|
@@ -397,10 +463,59 @@ runtime.registerSchemas({
|
|
|
397
463
|
['textBody', 'text_body'],
|
|
398
464
|
['htmlBody', 'html_body'],
|
|
399
465
|
],
|
|
466
|
+
'sylphx.notify.v1.MessageTopic': [
|
|
467
|
+
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
468
|
+
['requiredFeature', 'required_feature'],
|
|
469
|
+
['sendLimitFeature', 'send_limit_feature'],
|
|
470
|
+
['sendLimitWindow', 'send_limit_window'],
|
|
471
|
+
],
|
|
472
|
+
'sylphx.notify.v1.PhoneNumber': [
|
|
473
|
+
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
474
|
+
['spec', 'spec', 'sylphx.notify.v1.PhoneNumberSpec'],
|
|
475
|
+
['status', 'status', 'sylphx.notify.v1.PhoneNumberStatus'],
|
|
476
|
+
],
|
|
477
|
+
'sylphx.notify.v1.PhoneNumberReceipt': [
|
|
478
|
+
['providerCallId', 'provider_call_id'],
|
|
479
|
+
['providerDate', 'provider_date'],
|
|
480
|
+
['receiveTime', 'receive_time'],
|
|
481
|
+
['audioSha256', 'audio_sha256'],
|
|
482
|
+
['inboundEmail', 'inbound_email'],
|
|
483
|
+
['pathDigest', 'path_digest'],
|
|
484
|
+
],
|
|
485
|
+
'sylphx.notify.v1.PhoneNumberSpec': [
|
|
486
|
+
['phoneNumber', 'phone_number'],
|
|
487
|
+
['voicemail', 'voicemail', 'sylphx.notify.v1.PhoneVoicemailRoute'],
|
|
488
|
+
],
|
|
489
|
+
'sylphx.notify.v1.PhoneNumberStatus': [
|
|
490
|
+
['observedGeneration', 'observed_generation'],
|
|
491
|
+
['conditions', 'conditions', 'sylphx.common.v1.Condition'],
|
|
492
|
+
['providerPrincipal', 'provider_principal'],
|
|
493
|
+
['providerLineId', 'provider_line_id'],
|
|
494
|
+
['providerNumberId', 'provider_number_id'],
|
|
495
|
+
['observedVoicemail', 'observed_voicemail', 'sylphx.notify.v1.PhoneVoicemailRoute'],
|
|
496
|
+
['appliedGeneration', 'applied_generation'],
|
|
497
|
+
['incomingVerifiedGeneration', 'incoming_verified_generation'],
|
|
498
|
+
['lastError', 'last_error'],
|
|
499
|
+
['observedPathDigest', 'observed_path_digest'],
|
|
500
|
+
['appliedPathDigest', 'applied_path_digest'],
|
|
501
|
+
],
|
|
502
|
+
'sylphx.notify.v1.PhoneVoicemailRoute': [
|
|
503
|
+
['delaySeconds', 'delay_seconds'],
|
|
504
|
+
['emailAddress', 'email_address'],
|
|
505
|
+
],
|
|
400
506
|
'sylphx.notify.v1.Preference': [
|
|
401
507
|
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
402
508
|
['digestInterval', 'digest_interval'],
|
|
403
509
|
],
|
|
510
|
+
'sylphx.notify.v1.ProbePhoneNumberRequest': [
|
|
511
|
+
['startDay', 'start_day'],
|
|
512
|
+
['endDay', 'end_day'],
|
|
513
|
+
['providerSessionToken', 'provider_session_token'],
|
|
514
|
+
],
|
|
515
|
+
'sylphx.notify.v1.ProbePhoneNumberResponse': [
|
|
516
|
+
['phoneNumber', 'phone_number', 'sylphx.notify.v1.PhoneNumber'],
|
|
517
|
+
['receipts', 'receipts', 'sylphx.notify.v1.PhoneNumberReceipt'],
|
|
518
|
+
],
|
|
404
519
|
'sylphx.notify.v1.PushContent': [
|
|
405
520
|
['data', 'data', undefined, 'json'],
|
|
406
521
|
],
|
|
@@ -411,6 +526,15 @@ runtime.registerSchemas({
|
|
|
411
526
|
'sylphx.notify.v1.PushSender': [
|
|
412
527
|
['appKey', 'app_key'],
|
|
413
528
|
],
|
|
529
|
+
'sylphx.notify.v1.ReadPhoneNumberVoicemailRequest': [
|
|
530
|
+
['providerCallId', 'provider_call_id'],
|
|
531
|
+
['startDay', 'start_day'],
|
|
532
|
+
['endDay', 'end_day'],
|
|
533
|
+
['providerSessionToken', 'provider_session_token'],
|
|
534
|
+
],
|
|
535
|
+
'sylphx.notify.v1.ReadPhoneNumberVoicemailResponse': [
|
|
536
|
+
['audioSha256', 'audio_sha256'],
|
|
537
|
+
],
|
|
414
538
|
'sylphx.notify.v1.Recipient': [
|
|
415
539
|
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
416
540
|
['externalKey', 'external_key'],
|
|
@@ -459,6 +583,30 @@ runtime.registerSchemas({
|
|
|
459
583
|
['verificationNote', 'verification_note'],
|
|
460
584
|
],
|
|
461
585
|
'sylphx.notify.v1.SmsContent': [],
|
|
586
|
+
'sylphx.notify.v1.SmsNumber': [
|
|
587
|
+
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
588
|
+
['spec', 'spec', 'sylphx.notify.v1.SmsNumberSpec'],
|
|
589
|
+
['status', 'status', 'sylphx.notify.v1.SmsNumberStatus'],
|
|
590
|
+
],
|
|
591
|
+
'sylphx.notify.v1.SmsNumberSpec': [
|
|
592
|
+
['regionCode', 'region_code'],
|
|
593
|
+
['numberType', 'number_type'],
|
|
594
|
+
['upfrontCostLimit', 'upfront_cost_limit'],
|
|
595
|
+
['monthlyCostLimit', 'monthly_cost_limit'],
|
|
596
|
+
],
|
|
597
|
+
'sylphx.notify.v1.SmsNumberStatus': [
|
|
598
|
+
['observedGeneration', 'observed_generation'],
|
|
599
|
+
['conditions', 'conditions', 'sylphx.common.v1.Condition'],
|
|
600
|
+
['retiredTime', 'retired_time'],
|
|
601
|
+
['phoneNumber', 'phone_number'],
|
|
602
|
+
['carrierAccount', 'carrier_account'],
|
|
603
|
+
['providerNumberId', 'provider_number_id'],
|
|
604
|
+
['orderId', 'order_id'],
|
|
605
|
+
['messagingProfileId', 'messaging_profile_id'],
|
|
606
|
+
['stateReason', 'state_reason'],
|
|
607
|
+
['upfrontCost', 'upfront_cost'],
|
|
608
|
+
['monthlyCost', 'monthly_cost'],
|
|
609
|
+
],
|
|
462
610
|
'sylphx.notify.v1.SmsSender': [
|
|
463
611
|
['phoneNumber', 'phone_number'],
|
|
464
612
|
['senderKey', 'sender_key'],
|
|
@@ -508,6 +656,12 @@ runtime.registerSchemas({
|
|
|
508
656
|
['allowMissing', 'allow_missing'],
|
|
509
657
|
['validateOnly', 'validate_only'],
|
|
510
658
|
],
|
|
659
|
+
'sylphx.notify.v1.UpdateMessageTopicRequest': [
|
|
660
|
+
['messageTopic', 'message_topic', 'sylphx.notify.v1.MessageTopic'],
|
|
661
|
+
['updateMask', 'update_mask'],
|
|
662
|
+
['allowMissing', 'allow_missing'],
|
|
663
|
+
['validateOnly', 'validate_only'],
|
|
664
|
+
],
|
|
511
665
|
'sylphx.notify.v1.UpdatePreferenceRequest': [
|
|
512
666
|
['preference', 'preference', 'sylphx.notify.v1.Preference'],
|
|
513
667
|
['updateMask', 'update_mask'],
|
|
@@ -549,6 +703,8 @@ runtime.registerSchemas({
|
|
|
549
703
|
* Namespace of Sylphx Notify on `Sylphx`.
|
|
550
704
|
*/
|
|
551
705
|
export class NotifyApi {
|
|
706
|
+
/** The `phone_numbers` collection. */
|
|
707
|
+
phoneNumbers;
|
|
552
708
|
/** The `mail_domains` collection. */
|
|
553
709
|
mailDomains;
|
|
554
710
|
/** The `mail_routes` collection. */
|
|
@@ -559,6 +715,8 @@ export class NotifyApi {
|
|
|
559
715
|
recipients;
|
|
560
716
|
/** The `preferences` collection. */
|
|
561
717
|
preferences;
|
|
718
|
+
/** The `message_topics` collection. */
|
|
719
|
+
messageTopics;
|
|
562
720
|
/** The `suppressions` collection. */
|
|
563
721
|
suppressions;
|
|
564
722
|
/** The `templates` collection. */
|
|
@@ -577,12 +735,18 @@ export class NotifyApi {
|
|
|
577
735
|
inboxItems;
|
|
578
736
|
/** The `broadcasts` collection. */
|
|
579
737
|
broadcasts;
|
|
738
|
+
/** The `sms_numbers` collection. */
|
|
739
|
+
smsNumbers;
|
|
740
|
+
/** The `inbound_sms` collection. */
|
|
741
|
+
inboundSms;
|
|
580
742
|
constructor(client) {
|
|
743
|
+
this.phoneNumbers = new PhoneNumbersCollection(client);
|
|
581
744
|
this.mailDomains = new MailDomainsCollection(client);
|
|
582
745
|
this.mailRoutes = new MailRoutesCollection(client);
|
|
583
746
|
this.senders = new SendersCollection(client);
|
|
584
747
|
this.recipients = new RecipientsCollection(client);
|
|
585
748
|
this.preferences = new PreferencesCollection(client);
|
|
749
|
+
this.messageTopics = new MessageTopicsCollection(client);
|
|
586
750
|
this.suppressions = new SuppressionsCollection(client);
|
|
587
751
|
this.templates = new TemplatesCollection(client);
|
|
588
752
|
this.messages = new MessagesCollection(client);
|
|
@@ -592,6 +756,125 @@ export class NotifyApi {
|
|
|
592
756
|
this.inboundEmails = new InboundEmailsCollection(client);
|
|
593
757
|
this.inboxItems = new InboxItemsCollection(client);
|
|
594
758
|
this.broadcasts = new BroadcastsCollection(client);
|
|
759
|
+
this.smsNumbers = new SmsNumbersCollection(client);
|
|
760
|
+
this.inboundSms = new InboundSmsCollection(client);
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
/** `phone_numbers` of Sylphx Notify: Resource type `notify.sylphx.com/PhoneNumber`. */
|
|
764
|
+
export class PhoneNumbersCollection {
|
|
765
|
+
client;
|
|
766
|
+
constructor(client) {
|
|
767
|
+
this.client = client;
|
|
768
|
+
}
|
|
769
|
+
/**
|
|
770
|
+
* ConnectPhoneNumber: existing provider-managed lines; execution credentials are transient.
|
|
771
|
+
*
|
|
772
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/phone_numbers:connect` · permission `notify:write` · effect `write`
|
|
773
|
+
*
|
|
774
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `UNAVAILABLE`.
|
|
775
|
+
*/
|
|
776
|
+
async connect(request) {
|
|
777
|
+
return this.client.call({
|
|
778
|
+
method: 'POST',
|
|
779
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/phone_numbers:connect`,
|
|
780
|
+
body: runtime.omit(request, ['parent']),
|
|
781
|
+
bodyType: 'sylphx.notify.v1.ConnectPhoneNumberRequest',
|
|
782
|
+
responseType: 'sylphx.notify.v1.PhoneNumber',
|
|
783
|
+
mutation: true,
|
|
784
|
+
});
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
* GetPhoneNumber: existing provider-managed lines; execution credentials are transient.
|
|
788
|
+
*
|
|
789
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/phone_numbers/*}` · permission `notify:read` · effect `read`
|
|
790
|
+
*
|
|
791
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `UNAVAILABLE`.
|
|
792
|
+
*/
|
|
793
|
+
async get(request) {
|
|
794
|
+
return this.client.call({
|
|
795
|
+
method: 'GET',
|
|
796
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/phone_numbers/*', 'name')}`,
|
|
797
|
+
responseType: 'sylphx.notify.v1.PhoneNumber',
|
|
798
|
+
mutation: false,
|
|
799
|
+
});
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* ListPhoneNumbers: existing provider-managed lines; execution credentials are transient.
|
|
803
|
+
*
|
|
804
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/phone_numbers` · permission `notify:read` · effect `read`
|
|
805
|
+
*
|
|
806
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `UNAVAILABLE`.
|
|
807
|
+
*/
|
|
808
|
+
async list(request) {
|
|
809
|
+
return this.client.call({
|
|
810
|
+
method: 'GET',
|
|
811
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/phone_numbers`,
|
|
812
|
+
query: { page_size: request.pageSize, page_token: request.pageToken },
|
|
813
|
+
responseType: 'sylphx.notify.v1.ListPhoneNumbersResponse',
|
|
814
|
+
mutation: false,
|
|
815
|
+
});
|
|
816
|
+
}
|
|
817
|
+
/** Every item of every page of `list`. */
|
|
818
|
+
async *listAll(request) {
|
|
819
|
+
let next = request;
|
|
820
|
+
for (;;) {
|
|
821
|
+
const page = await this.list(next);
|
|
822
|
+
yield* page.phoneNumbers ?? [];
|
|
823
|
+
if (page.nextPageToken === undefined || page.nextPageToken === '')
|
|
824
|
+
return;
|
|
825
|
+
next = { ...request, pageToken: page.nextPageToken };
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* ApplyPhoneNumberRoute: existing provider-managed lines; execution credentials are transient.
|
|
830
|
+
*
|
|
831
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/phone_numbers/*}:applyRoute` · permission `notify:write` · effect `write`
|
|
832
|
+
*
|
|
833
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `UNAVAILABLE`.
|
|
834
|
+
*/
|
|
835
|
+
async applyRoute(request) {
|
|
836
|
+
return this.client.call({
|
|
837
|
+
method: 'POST',
|
|
838
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/phone_numbers/*', 'name')}:applyRoute`,
|
|
839
|
+
body: runtime.omit(request, ['name']),
|
|
840
|
+
bodyType: 'sylphx.notify.v1.ApplyPhoneNumberRouteRequest',
|
|
841
|
+
responseType: 'sylphx.notify.v1.PhoneNumber',
|
|
842
|
+
mutation: true,
|
|
843
|
+
});
|
|
844
|
+
}
|
|
845
|
+
/**
|
|
846
|
+
* ProbePhoneNumber: existing provider-managed lines; execution credentials are transient.
|
|
847
|
+
*
|
|
848
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/phone_numbers/*}:probe` · permission `notify:write` · effect `write`
|
|
849
|
+
*
|
|
850
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `UNAVAILABLE`.
|
|
851
|
+
*/
|
|
852
|
+
async probe(request) {
|
|
853
|
+
return this.client.call({
|
|
854
|
+
method: 'POST',
|
|
855
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/phone_numbers/*', 'name')}:probe`,
|
|
856
|
+
body: runtime.omit(request, ['name']),
|
|
857
|
+
bodyType: 'sylphx.notify.v1.ProbePhoneNumberRequest',
|
|
858
|
+
responseType: 'sylphx.notify.v1.ProbePhoneNumberResponse',
|
|
859
|
+
mutation: true,
|
|
860
|
+
});
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* ReadPhoneNumberVoicemail: existing provider-managed lines; execution credentials are transient.
|
|
864
|
+
*
|
|
865
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/phone_numbers/*}:readVoicemail` · permission `notify:read` · effect `read`
|
|
866
|
+
*
|
|
867
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `RESOURCE_NOT_FOUND`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `UNAVAILABLE`.
|
|
868
|
+
*/
|
|
869
|
+
async readVoicemail(request) {
|
|
870
|
+
return this.client.call({
|
|
871
|
+
method: 'POST',
|
|
872
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/phone_numbers/*', 'name')}:readVoicemail`,
|
|
873
|
+
body: runtime.omit(request, ['name']),
|
|
874
|
+
bodyType: 'sylphx.notify.v1.ReadPhoneNumberVoicemailRequest',
|
|
875
|
+
responseType: 'sylphx.notify.v1.ReadPhoneNumberVoicemailResponse',
|
|
876
|
+
mutation: true,
|
|
877
|
+
});
|
|
595
878
|
}
|
|
596
879
|
}
|
|
597
880
|
/** `mail_domains` of Sylphx Notify: Resource type `notify.sylphx.com/EmailDomain`. */
|
|
@@ -1110,6 +1393,88 @@ export class PreferencesCollection {
|
|
|
1110
1393
|
});
|
|
1111
1394
|
}
|
|
1112
1395
|
}
|
|
1396
|
+
/** `message_topics` of Sylphx Notify: Resource type `notify.sylphx.com/MessageTopic`. */
|
|
1397
|
+
export class MessageTopicsCollection {
|
|
1398
|
+
client;
|
|
1399
|
+
constructor(client) {
|
|
1400
|
+
this.client = client;
|
|
1401
|
+
}
|
|
1402
|
+
/**
|
|
1403
|
+
* Gets a message topic.
|
|
1404
|
+
*
|
|
1405
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/message_topics/*}` · permission `notify:read` · effect `read`
|
|
1406
|
+
*
|
|
1407
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
1408
|
+
*/
|
|
1409
|
+
async get(request) {
|
|
1410
|
+
return this.client.call({
|
|
1411
|
+
method: 'GET',
|
|
1412
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/message_topics/*', 'name')}`,
|
|
1413
|
+
responseType: 'sylphx.notify.v1.MessageTopic',
|
|
1414
|
+
mutation: false,
|
|
1415
|
+
});
|
|
1416
|
+
}
|
|
1417
|
+
/**
|
|
1418
|
+
* Lists message topics.
|
|
1419
|
+
*
|
|
1420
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/message_topics` · permission `notify:read` · effect `read`
|
|
1421
|
+
*
|
|
1422
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
1423
|
+
*/
|
|
1424
|
+
async list(request) {
|
|
1425
|
+
return this.client.call({
|
|
1426
|
+
method: 'GET',
|
|
1427
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/message_topics`,
|
|
1428
|
+
query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
|
|
1429
|
+
responseType: 'sylphx.notify.v1.ListMessageTopicsResponse',
|
|
1430
|
+
mutation: false,
|
|
1431
|
+
});
|
|
1432
|
+
}
|
|
1433
|
+
/** Every item of every page of `list`. */
|
|
1434
|
+
async *listAll(request) {
|
|
1435
|
+
let next = request;
|
|
1436
|
+
for (;;) {
|
|
1437
|
+
const page = await this.list(next);
|
|
1438
|
+
yield* page.messageTopics ?? [];
|
|
1439
|
+
if (page.nextPageToken === undefined || page.nextPageToken === '')
|
|
1440
|
+
return;
|
|
1441
|
+
next = { ...request, pageToken: page.nextPageToken };
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
/**
|
|
1445
|
+
* Updates a message topic; with `allow_missing`, creates it.
|
|
1446
|
+
*
|
|
1447
|
+
* `PATCH /v1/{message_topic.name=orgs/*\/projects/*\/envs/*\/message_topics/*}` · permission `notify:write` · effect `write`
|
|
1448
|
+
*
|
|
1449
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1450
|
+
*/
|
|
1451
|
+
async update(request) {
|
|
1452
|
+
return this.client.call({
|
|
1453
|
+
method: 'PATCH',
|
|
1454
|
+
path: `/v1/${runtime.pathParam(request.messageTopic?.name, 'orgs/*/projects/*/envs/*/message_topics/*', 'message_topic.name')}`,
|
|
1455
|
+
query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
|
|
1456
|
+
body: request.messageTopic ?? {},
|
|
1457
|
+
bodyType: 'sylphx.notify.v1.MessageTopic',
|
|
1458
|
+
responseType: 'sylphx.notify.v1.MessageTopic',
|
|
1459
|
+
mutation: true,
|
|
1460
|
+
});
|
|
1461
|
+
}
|
|
1462
|
+
/**
|
|
1463
|
+
* Deletes a message topic; its messages are admitted with no gate or topic limit.
|
|
1464
|
+
*
|
|
1465
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/message_topics/*}` · permission `notify:write` · effect `destructive`
|
|
1466
|
+
*
|
|
1467
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
1468
|
+
*/
|
|
1469
|
+
async delete(request) {
|
|
1470
|
+
return this.client.call({
|
|
1471
|
+
method: 'DELETE',
|
|
1472
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/message_topics/*', 'name')}`,
|
|
1473
|
+
query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
|
|
1474
|
+
mutation: true,
|
|
1475
|
+
});
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1113
1478
|
/** `suppressions` of Sylphx Notify: Resource type `notify.sylphx.com/Suppression`. */
|
|
1114
1479
|
export class SuppressionsCollection {
|
|
1115
1480
|
client;
|
|
@@ -1946,4 +2311,135 @@ export class BroadcastsCollection {
|
|
|
1946
2311
|
});
|
|
1947
2312
|
}
|
|
1948
2313
|
}
|
|
2314
|
+
/** `sms_numbers` of Sylphx Notify: Resource type `notify.sylphx.com/SmsNumber`. */
|
|
2315
|
+
export class SmsNumbersCollection {
|
|
2316
|
+
client;
|
|
2317
|
+
constructor(client) {
|
|
2318
|
+
this.client = client;
|
|
2319
|
+
}
|
|
2320
|
+
/**
|
|
2321
|
+
* Provisions one carrier number within explicit cost limits and receives its SMS.
|
|
2322
|
+
*
|
|
2323
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/sms_numbers` · permission `notify:write` · effect `write`
|
|
2324
|
+
*
|
|
2325
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
2326
|
+
*/
|
|
2327
|
+
async create(request) {
|
|
2328
|
+
return this.client.call({
|
|
2329
|
+
method: 'POST',
|
|
2330
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/sms_numbers`,
|
|
2331
|
+
query: { sms_number_id: request.smsNumberId },
|
|
2332
|
+
body: request.smsNumber ?? {},
|
|
2333
|
+
bodyType: 'sylphx.notify.v1.SmsNumber',
|
|
2334
|
+
responseType: 'sylphx.notify.v1.SmsNumber',
|
|
2335
|
+
mutation: true,
|
|
2336
|
+
});
|
|
2337
|
+
}
|
|
2338
|
+
/**
|
|
2339
|
+
* Gets an SMS number binding.
|
|
2340
|
+
*
|
|
2341
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/sms_numbers/*}` · permission `notify:read` · effect `read`
|
|
2342
|
+
*
|
|
2343
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
2344
|
+
*/
|
|
2345
|
+
async get(request) {
|
|
2346
|
+
return this.client.call({
|
|
2347
|
+
method: 'GET',
|
|
2348
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/sms_numbers/*', 'name')}`,
|
|
2349
|
+
responseType: 'sylphx.notify.v1.SmsNumber',
|
|
2350
|
+
mutation: false,
|
|
2351
|
+
});
|
|
2352
|
+
}
|
|
2353
|
+
/**
|
|
2354
|
+
* Lists an environment's SMS number bindings.
|
|
2355
|
+
*
|
|
2356
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/sms_numbers` · permission `notify:read` · effect `read`
|
|
2357
|
+
*
|
|
2358
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
2359
|
+
*/
|
|
2360
|
+
async list(request) {
|
|
2361
|
+
return this.client.call({
|
|
2362
|
+
method: 'GET',
|
|
2363
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/sms_numbers`,
|
|
2364
|
+
query: { page_size: request.pageSize, page_token: request.pageToken },
|
|
2365
|
+
responseType: 'sylphx.notify.v1.ListSmsNumbersResponse',
|
|
2366
|
+
mutation: false,
|
|
2367
|
+
});
|
|
2368
|
+
}
|
|
2369
|
+
/** Every item of every page of `list`. */
|
|
2370
|
+
async *listAll(request) {
|
|
2371
|
+
let next = request;
|
|
2372
|
+
for (;;) {
|
|
2373
|
+
const page = await this.list(next);
|
|
2374
|
+
yield* page.smsNumbers ?? [];
|
|
2375
|
+
if (page.nextPageToken === undefined || page.nextPageToken === '')
|
|
2376
|
+
return;
|
|
2377
|
+
next = { ...request, pageToken: page.nextPageToken };
|
|
2378
|
+
}
|
|
2379
|
+
}
|
|
2380
|
+
/**
|
|
2381
|
+
* Requests carrier release and stops recurring number billing. Read status
|
|
2382
|
+
* until retired_time is set. Historical messages stay readable.
|
|
2383
|
+
*
|
|
2384
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/sms_numbers/*}` · permission `notify:write` · effect `destructive`
|
|
2385
|
+
*
|
|
2386
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`.
|
|
2387
|
+
*/
|
|
2388
|
+
async delete(request) {
|
|
2389
|
+
return this.client.call({
|
|
2390
|
+
method: 'DELETE',
|
|
2391
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/sms_numbers/*', 'name')}`,
|
|
2392
|
+
mutation: true,
|
|
2393
|
+
});
|
|
2394
|
+
}
|
|
2395
|
+
}
|
|
2396
|
+
/** `inbound_sms` of Sylphx Notify: Resource type `notify.sylphx.com/InboundSms`. */
|
|
2397
|
+
export class InboundSmsCollection {
|
|
2398
|
+
client;
|
|
2399
|
+
constructor(client) {
|
|
2400
|
+
this.client = client;
|
|
2401
|
+
}
|
|
2402
|
+
/**
|
|
2403
|
+
* Gets one inbound SMS.
|
|
2404
|
+
*
|
|
2405
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/sms_numbers/*\/inbound_sms/*}` · permission `notify:read` · effect `read`
|
|
2406
|
+
*
|
|
2407
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
2408
|
+
*/
|
|
2409
|
+
async get(request) {
|
|
2410
|
+
return this.client.call({
|
|
2411
|
+
method: 'GET',
|
|
2412
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/sms_numbers/*/inbound_sms/*', 'name')}`,
|
|
2413
|
+
responseType: 'sylphx.notify.v1.InboundSms',
|
|
2414
|
+
mutation: false,
|
|
2415
|
+
});
|
|
2416
|
+
}
|
|
2417
|
+
/**
|
|
2418
|
+
* Lists a number's inbound SMS in feed order, oldest first.
|
|
2419
|
+
*
|
|
2420
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/sms_numbers/*}/inbound_sms` · permission `notify:read` · effect `read`
|
|
2421
|
+
*
|
|
2422
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
2423
|
+
*/
|
|
2424
|
+
async list(request) {
|
|
2425
|
+
return this.client.call({
|
|
2426
|
+
method: 'GET',
|
|
2427
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/sms_numbers/*', 'parent')}/inbound_sms`,
|
|
2428
|
+
query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
|
|
2429
|
+
responseType: 'sylphx.notify.v1.ListInboundSmsResponse',
|
|
2430
|
+
mutation: false,
|
|
2431
|
+
});
|
|
2432
|
+
}
|
|
2433
|
+
/** Every item of every page of `list`. */
|
|
2434
|
+
async *listAll(request) {
|
|
2435
|
+
let next = request;
|
|
2436
|
+
for (;;) {
|
|
2437
|
+
const page = await this.list(next);
|
|
2438
|
+
yield* page.inboundSms ?? [];
|
|
2439
|
+
if (page.nextPageToken === undefined || page.nextPageToken === '')
|
|
2440
|
+
return;
|
|
2441
|
+
next = { ...request, pageToken: page.nextPageToken };
|
|
2442
|
+
}
|
|
2443
|
+
}
|
|
2444
|
+
}
|
|
1949
2445
|
//# sourceMappingURL=notify.js.map
|