@sylphx/sdk 0.31.0 → 0.32.0
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 +111 -4
- package/dist/access.d.ts +112 -17
- package/dist/access.js +101 -7
- package/dist/access.js.map +1 -1
- package/dist/ai.d.ts +1 -2
- package/dist/ai.js +2 -3
- package/dist/ai.js.map +1 -1
- package/dist/artifacts.d.ts +1 -1
- package/dist/artifacts.js +2 -2
- package/dist/assets.d.ts +447 -0
- package/dist/assets.js +266 -0
- package/dist/assets.js.map +1 -0
- package/dist/auth/client.d.ts +239 -0
- package/dist/auth/client.js +337 -0
- package/dist/auth/client.js.map +1 -0
- package/dist/auth/verify.d.ts +38 -3
- package/dist/auth/verify.js +58 -8
- package/dist/auth/verify.js.map +1 -1
- package/dist/auth.d.ts +455 -7
- package/dist/auth.js +416 -5
- package/dist/auth.js.map +1 -1
- package/dist/billing.d.ts +13 -13
- package/dist/billing.js +5 -5
- package/dist/broker.d.ts +5 -4
- package/dist/broker.js +3 -3
- package/dist/broker.js.map +1 -1
- package/dist/build.d.ts +4 -4
- package/dist/build.js +3 -3
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/config/flags.d.ts +140 -0
- package/dist/config/flags.js +462 -0
- package/dist/config/flags.js.map +1 -0
- package/dist/config.d.ts +380 -15
- package/dist/config.js +283 -5
- package/dist/config.js.map +1 -1
- package/dist/connections.d.ts +6 -6
- package/dist/connections.js +3 -3
- package/dist/data.d.ts +560 -7
- package/dist/data.js +510 -4
- package/dist/data.js.map +1 -1
- package/dist/entitlement.d.ts +10 -8
- package/dist/entitlement.js +3 -4
- package/dist/entitlement.js.map +1 -1
- package/dist/events/realtime.d.ts +69 -0
- package/dist/events/realtime.js +107 -0
- package/dist/events/realtime.js.map +1 -0
- package/dist/events/webhooks.d.ts +40 -0
- package/dist/events/webhooks.js +110 -0
- package/dist/events/webhooks.js.map +1 -0
- package/dist/events.d.ts +369 -22
- package/dist/events.js +311 -8
- package/dist/events.js.map +1 -1
- package/dist/hosting.d.ts +13 -14
- package/dist/hosting.js +3 -4
- package/dist/hosting.js.map +1 -1
- package/dist/ids.d.ts +837 -0
- package/dist/ids.js +287 -0
- package/dist/ids.js.map +1 -0
- package/dist/index.d.ts +12 -1
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/dist/keys.d.ts +2 -2
- package/dist/keys.js +3 -3
- package/dist/localization.d.ts +663 -0
- package/dist/localization.js +491 -0
- package/dist/localization.js.map +1 -0
- package/dist/methods.js +1719 -124
- package/dist/methods.js.map +1 -1
- package/dist/money.d.ts +1406 -0
- package/dist/money.js +1090 -0
- package/dist/money.js.map +1 -0
- package/dist/network.d.ts +4 -5
- package/dist/network.js +3 -4
- package/dist/network.js.map +1 -1
- package/dist/notify.d.ts +321 -124
- package/dist/notify.js +223 -73
- package/dist/notify.js.map +1 -1
- package/dist/observability.d.ts +184 -7
- package/dist/observability.js +156 -8
- package/dist/observability.js.map +1 -1
- package/dist/release.d.ts +14 -15
- package/dist/release.js +3 -4
- package/dist/release.js.map +1 -1
- package/dist/runners.d.ts +2 -3
- package/dist/runners.js +3 -4
- package/dist/runners.js.map +1 -1
- package/dist/runtime.d.ts +5 -1
- package/dist/runtime.js +7 -3
- package/dist/runtime.js.map +1 -1
- package/dist/sandboxes.d.ts +64 -20
- package/dist/sandboxes.js +9 -4
- package/dist/sandboxes.js.map +1 -1
- package/dist/secrets.d.ts +6 -6
- package/dist/secrets.js +4 -4
- package/dist/workflows.d.ts +850 -12
- package/dist/workflows.js +672 -3
- package/dist/workflows.js.map +1 -1
- package/package.json +1 -1
package/dist/notify.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by sylphx-gen 0.1.0 from contracts@
|
|
1
|
+
// @generated by sylphx-gen 0.1.0 from contracts@c8aac0afaf7591d0d5efa1ba6a8540d723d41a97ce7ad5d68601380ef3ab4783. Do not edit.
|
|
2
2
|
// `sylphx.notify.v1`.
|
|
3
3
|
import * as runtime from './runtime.js';
|
|
4
4
|
import './common.js';
|
|
@@ -34,6 +34,11 @@ runtime.registerSchemas({
|
|
|
34
34
|
['broadcast', 'broadcast', 'sylphx.notify.v1.Broadcast'],
|
|
35
35
|
['validateOnly', 'validate_only'],
|
|
36
36
|
],
|
|
37
|
+
'sylphx.notify.v1.CreateEmailDomainRequest': [
|
|
38
|
+
['emailDomainId', 'email_domain_id'],
|
|
39
|
+
['emailDomain', 'email_domain', 'sylphx.notify.v1.EmailDomain'],
|
|
40
|
+
['validateOnly', 'validate_only'],
|
|
41
|
+
],
|
|
37
42
|
'sylphx.notify.v1.CreateMailboxRequest': [
|
|
38
43
|
['mailboxId', 'mailbox_id'],
|
|
39
44
|
['mailbox', 'mailbox', 'sylphx.notify.v1.Mailbox'],
|
|
@@ -49,16 +54,16 @@ runtime.registerSchemas({
|
|
|
49
54
|
['recipient', 'recipient', 'sylphx.notify.v1.Recipient'],
|
|
50
55
|
['validateOnly', 'validate_only'],
|
|
51
56
|
],
|
|
57
|
+
'sylphx.notify.v1.CreateRouteRequest': [
|
|
58
|
+
['routeId', 'route_id'],
|
|
59
|
+
['route', 'route', 'sylphx.notify.v1.Route'],
|
|
60
|
+
['validateOnly', 'validate_only'],
|
|
61
|
+
],
|
|
52
62
|
'sylphx.notify.v1.CreateSenderRequest': [
|
|
53
63
|
['senderId', 'sender_id'],
|
|
54
64
|
['sender', 'sender', 'sylphx.notify.v1.Sender'],
|
|
55
65
|
['validateOnly', 'validate_only'],
|
|
56
66
|
],
|
|
57
|
-
'sylphx.notify.v1.CreateSendingDomainRequest': [
|
|
58
|
-
['sendingDomainId', 'sending_domain_id'],
|
|
59
|
-
['sendingDomain', 'sending_domain', 'sylphx.notify.v1.SendingDomain'],
|
|
60
|
-
['validateOnly', 'validate_only'],
|
|
61
|
-
],
|
|
62
67
|
'sylphx.notify.v1.CreateSuppressionRequest': [
|
|
63
68
|
['suppressionId', 'suppression_id'],
|
|
64
69
|
['suppression', 'suppression', 'sylphx.notify.v1.Suppression'],
|
|
@@ -73,6 +78,10 @@ runtime.registerSchemas({
|
|
|
73
78
|
['allowMissing', 'allow_missing'],
|
|
74
79
|
['validateOnly', 'validate_only'],
|
|
75
80
|
],
|
|
81
|
+
'sylphx.notify.v1.DeleteEmailDomainRequest': [
|
|
82
|
+
['allowMissing', 'allow_missing'],
|
|
83
|
+
['validateOnly', 'validate_only'],
|
|
84
|
+
],
|
|
76
85
|
'sylphx.notify.v1.DeleteMailboxRequest': [
|
|
77
86
|
['allowMissing', 'allow_missing'],
|
|
78
87
|
['validateOnly', 'validate_only'],
|
|
@@ -85,11 +94,11 @@ runtime.registerSchemas({
|
|
|
85
94
|
['allowMissing', 'allow_missing'],
|
|
86
95
|
['validateOnly', 'validate_only'],
|
|
87
96
|
],
|
|
88
|
-
'sylphx.notify.v1.
|
|
97
|
+
'sylphx.notify.v1.DeleteRouteRequest': [
|
|
89
98
|
['allowMissing', 'allow_missing'],
|
|
90
99
|
['validateOnly', 'validate_only'],
|
|
91
100
|
],
|
|
92
|
-
'sylphx.notify.v1.
|
|
101
|
+
'sylphx.notify.v1.DeleteSenderRequest': [
|
|
93
102
|
['allowMissing', 'allow_missing'],
|
|
94
103
|
['validateOnly', 'validate_only'],
|
|
95
104
|
],
|
|
@@ -110,19 +119,41 @@ runtime.registerSchemas({
|
|
|
110
119
|
['textBody', 'text_body'],
|
|
111
120
|
['senderName', 'sender_name'],
|
|
112
121
|
],
|
|
122
|
+
'sylphx.notify.v1.EmailDomain': [
|
|
123
|
+
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
124
|
+
['spec', 'spec', 'sylphx.notify.v1.EmailDomainSpec'],
|
|
125
|
+
['status', 'status', 'sylphx.notify.v1.EmailDomainStatus'],
|
|
126
|
+
],
|
|
127
|
+
'sylphx.notify.v1.EmailDomainReceiving': [],
|
|
128
|
+
'sylphx.notify.v1.EmailDomainSending': [],
|
|
129
|
+
'sylphx.notify.v1.EmailDomainSpec': [
|
|
130
|
+
['returnPathLabel', 'return_path_label'],
|
|
131
|
+
['sending', 'sending', 'sylphx.notify.v1.EmailDomainSending'],
|
|
132
|
+
['receiving', 'receiving', 'sylphx.notify.v1.EmailDomainReceiving'],
|
|
133
|
+
],
|
|
134
|
+
'sylphx.notify.v1.EmailDomainStatus': [
|
|
135
|
+
['observedGeneration', 'observed_generation'],
|
|
136
|
+
['conditions', 'conditions', 'sylphx.common.v1.Condition'],
|
|
137
|
+
['verifyTime', 'verify_time'],
|
|
138
|
+
['dnsRecords', 'dns_records', 'sylphx.notify.v1.DnsRecord'],
|
|
139
|
+
['dkimSelector', 'dkim_selector'],
|
|
140
|
+
['receivingState', 'receiving_state'],
|
|
141
|
+
['receivingVerifyTime', 'receiving_verify_time'],
|
|
142
|
+
],
|
|
113
143
|
'sylphx.notify.v1.EraseMailboxAddressRequest': [],
|
|
114
144
|
'sylphx.notify.v1.EraseMailboxAddressResponse': [
|
|
115
145
|
['erasedCount', 'erased_count'],
|
|
116
146
|
],
|
|
117
147
|
'sylphx.notify.v1.GetBroadcastRequest': [],
|
|
148
|
+
'sylphx.notify.v1.GetEmailDomainRequest': [],
|
|
118
149
|
'sylphx.notify.v1.GetInboundEmailRequest': [],
|
|
119
150
|
'sylphx.notify.v1.GetInboxItemRequest': [],
|
|
120
151
|
'sylphx.notify.v1.GetMailboxRequest': [],
|
|
121
152
|
'sylphx.notify.v1.GetMessageRequest': [],
|
|
122
153
|
'sylphx.notify.v1.GetPreferenceRequest': [],
|
|
123
154
|
'sylphx.notify.v1.GetRecipientRequest': [],
|
|
155
|
+
'sylphx.notify.v1.GetRouteRequest': [],
|
|
124
156
|
'sylphx.notify.v1.GetSenderRequest': [],
|
|
125
|
-
'sylphx.notify.v1.GetSendingDomainRequest': [],
|
|
126
157
|
'sylphx.notify.v1.GetSuppressionRequest': [],
|
|
127
158
|
'sylphx.notify.v1.GetTemplateRequest': [],
|
|
128
159
|
'sylphx.notify.v1.InboundEmail': [
|
|
@@ -155,6 +186,15 @@ runtime.registerSchemas({
|
|
|
155
186
|
['broadcasts', 'broadcasts', 'sylphx.notify.v1.Broadcast'],
|
|
156
187
|
['nextPageToken', 'next_page_token'],
|
|
157
188
|
],
|
|
189
|
+
'sylphx.notify.v1.ListEmailDomainsRequest': [
|
|
190
|
+
['pageSize', 'page_size'],
|
|
191
|
+
['pageToken', 'page_token'],
|
|
192
|
+
['orderBy', 'order_by'],
|
|
193
|
+
],
|
|
194
|
+
'sylphx.notify.v1.ListEmailDomainsResponse': [
|
|
195
|
+
['emailDomains', 'email_domains', 'sylphx.notify.v1.EmailDomain'],
|
|
196
|
+
['nextPageToken', 'next_page_token'],
|
|
197
|
+
],
|
|
158
198
|
'sylphx.notify.v1.ListInboundEmailsRequest': [
|
|
159
199
|
['pageSize', 'page_size'],
|
|
160
200
|
['pageToken', 'page_token'],
|
|
@@ -209,22 +249,22 @@ runtime.registerSchemas({
|
|
|
209
249
|
['recipients', 'recipients', 'sylphx.notify.v1.Recipient'],
|
|
210
250
|
['nextPageToken', 'next_page_token'],
|
|
211
251
|
],
|
|
212
|
-
'sylphx.notify.v1.
|
|
252
|
+
'sylphx.notify.v1.ListRoutesRequest': [
|
|
213
253
|
['pageSize', 'page_size'],
|
|
214
254
|
['pageToken', 'page_token'],
|
|
215
255
|
['orderBy', 'order_by'],
|
|
216
256
|
],
|
|
217
|
-
'sylphx.notify.v1.
|
|
218
|
-
['
|
|
257
|
+
'sylphx.notify.v1.ListRoutesResponse': [
|
|
258
|
+
['routes', 'routes', 'sylphx.notify.v1.Route'],
|
|
219
259
|
['nextPageToken', 'next_page_token'],
|
|
220
260
|
],
|
|
221
|
-
'sylphx.notify.v1.
|
|
261
|
+
'sylphx.notify.v1.ListSendersRequest': [
|
|
222
262
|
['pageSize', 'page_size'],
|
|
223
263
|
['pageToken', 'page_token'],
|
|
224
264
|
['orderBy', 'order_by'],
|
|
225
265
|
],
|
|
226
|
-
'sylphx.notify.v1.
|
|
227
|
-
['
|
|
266
|
+
'sylphx.notify.v1.ListSendersResponse': [
|
|
267
|
+
['senders', 'senders', 'sylphx.notify.v1.Sender'],
|
|
228
268
|
['nextPageToken', 'next_page_token'],
|
|
229
269
|
],
|
|
230
270
|
'sylphx.notify.v1.ListSuppressionsRequest': [
|
|
@@ -312,6 +352,23 @@ runtime.registerSchemas({
|
|
|
312
352
|
['languageCode', 'language_code'],
|
|
313
353
|
['timeZone', 'time_zone'],
|
|
314
354
|
],
|
|
355
|
+
'sylphx.notify.v1.Route': [
|
|
356
|
+
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
357
|
+
['spec', 'spec', 'sylphx.notify.v1.RouteSpec'],
|
|
358
|
+
['status', 'status', 'sylphx.notify.v1.RouteStatus'],
|
|
359
|
+
],
|
|
360
|
+
'sylphx.notify.v1.RouteAction': [],
|
|
361
|
+
'sylphx.notify.v1.RouteMatch': [
|
|
362
|
+
['catchAll', 'catch_all'],
|
|
363
|
+
],
|
|
364
|
+
'sylphx.notify.v1.RouteSpec': [
|
|
365
|
+
['match', 'match', 'sylphx.notify.v1.RouteMatch'],
|
|
366
|
+
['actions', 'actions', 'sylphx.notify.v1.RouteAction'],
|
|
367
|
+
],
|
|
368
|
+
'sylphx.notify.v1.RouteStatus': [
|
|
369
|
+
['observedGeneration', 'observed_generation'],
|
|
370
|
+
['conditions', 'conditions', 'sylphx.common.v1.Condition'],
|
|
371
|
+
],
|
|
315
372
|
'sylphx.notify.v1.SendBroadcastRequest': [
|
|
316
373
|
['validateOnly', 'validate_only'],
|
|
317
374
|
],
|
|
@@ -333,21 +390,6 @@ runtime.registerSchemas({
|
|
|
333
390
|
['conditions', 'conditions', 'sylphx.common.v1.Condition'],
|
|
334
391
|
['verificationNote', 'verification_note'],
|
|
335
392
|
],
|
|
336
|
-
'sylphx.notify.v1.SendingDomain': [
|
|
337
|
-
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
338
|
-
['spec', 'spec', 'sylphx.notify.v1.SendingDomainSpec'],
|
|
339
|
-
['status', 'status', 'sylphx.notify.v1.SendingDomainStatus'],
|
|
340
|
-
],
|
|
341
|
-
'sylphx.notify.v1.SendingDomainSpec': [
|
|
342
|
-
['returnPathLabel', 'return_path_label'],
|
|
343
|
-
],
|
|
344
|
-
'sylphx.notify.v1.SendingDomainStatus': [
|
|
345
|
-
['observedGeneration', 'observed_generation'],
|
|
346
|
-
['conditions', 'conditions', 'sylphx.common.v1.Condition'],
|
|
347
|
-
['verifyTime', 'verify_time'],
|
|
348
|
-
['dnsRecords', 'dns_records', 'sylphx.notify.v1.DnsRecord'],
|
|
349
|
-
['dkimSelector', 'dkim_selector'],
|
|
350
|
-
],
|
|
351
393
|
'sylphx.notify.v1.SmsContent': [],
|
|
352
394
|
'sylphx.notify.v1.SmsSender': [
|
|
353
395
|
['phoneNumber', 'phone_number'],
|
|
@@ -380,6 +422,12 @@ runtime.registerSchemas({
|
|
|
380
422
|
['allowMissing', 'allow_missing'],
|
|
381
423
|
['validateOnly', 'validate_only'],
|
|
382
424
|
],
|
|
425
|
+
'sylphx.notify.v1.UpdateEmailDomainRequest': [
|
|
426
|
+
['emailDomain', 'email_domain', 'sylphx.notify.v1.EmailDomain'],
|
|
427
|
+
['updateMask', 'update_mask'],
|
|
428
|
+
['allowMissing', 'allow_missing'],
|
|
429
|
+
['validateOnly', 'validate_only'],
|
|
430
|
+
],
|
|
383
431
|
'sylphx.notify.v1.UpdateMailboxRequest': [
|
|
384
432
|
['mailbox', 'mailbox', 'sylphx.notify.v1.Mailbox'],
|
|
385
433
|
['updateMask', 'update_mask'],
|
|
@@ -398,14 +446,14 @@ runtime.registerSchemas({
|
|
|
398
446
|
['allowMissing', 'allow_missing'],
|
|
399
447
|
['validateOnly', 'validate_only'],
|
|
400
448
|
],
|
|
401
|
-
'sylphx.notify.v1.
|
|
402
|
-
['
|
|
449
|
+
'sylphx.notify.v1.UpdateRouteRequest': [
|
|
450
|
+
['route', 'route', 'sylphx.notify.v1.Route'],
|
|
403
451
|
['updateMask', 'update_mask'],
|
|
404
452
|
['allowMissing', 'allow_missing'],
|
|
405
453
|
['validateOnly', 'validate_only'],
|
|
406
454
|
],
|
|
407
|
-
'sylphx.notify.v1.
|
|
408
|
-
['
|
|
455
|
+
'sylphx.notify.v1.UpdateSenderRequest': [
|
|
456
|
+
['sender', 'sender', 'sylphx.notify.v1.Sender'],
|
|
409
457
|
['updateMask', 'update_mask'],
|
|
410
458
|
['allowMissing', 'allow_missing'],
|
|
411
459
|
['validateOnly', 'validate_only'],
|
|
@@ -416,20 +464,21 @@ runtime.registerSchemas({
|
|
|
416
464
|
['allowMissing', 'allow_missing'],
|
|
417
465
|
['validateOnly', 'validate_only'],
|
|
418
466
|
],
|
|
467
|
+
'sylphx.notify.v1.VerifyEmailDomainRequest': [],
|
|
419
468
|
'sylphx.notify.v1.VerifySenderRequest': [],
|
|
420
|
-
'sylphx.notify.v1.VerifySendingDomainRequest': [],
|
|
421
469
|
});
|
|
422
470
|
/**
|
|
423
471
|
* NotifyService is Sylphx Notify: messages to people over email, SMS, push,
|
|
424
|
-
* and in-app inbox, with preferences, suppression, templates, and broadcasts
|
|
425
|
-
*
|
|
426
|
-
* ordinary customer.
|
|
472
|
+
* and in-app inbox, with preferences, suppression, templates, and broadcasts.
|
|
473
|
+
* Notify is built on Sylphx Events as an ordinary customer.
|
|
427
474
|
*
|
|
428
475
|
* Namespace of Sylphx Notify on `Sylphx`.
|
|
429
476
|
*/
|
|
430
477
|
export class NotifyApi {
|
|
431
|
-
/** The `
|
|
432
|
-
|
|
478
|
+
/** The `mail_domains` collection. */
|
|
479
|
+
mailDomains;
|
|
480
|
+
/** The `mail_routes` collection. */
|
|
481
|
+
mailRoutes;
|
|
433
482
|
/** The `senders` collection. */
|
|
434
483
|
senders;
|
|
435
484
|
/** The `recipients` collection. */
|
|
@@ -451,7 +500,8 @@ export class NotifyApi {
|
|
|
451
500
|
/** The `broadcasts` collection. */
|
|
452
501
|
broadcasts;
|
|
453
502
|
constructor(client) {
|
|
454
|
-
this.
|
|
503
|
+
this.mailDomains = new MailDomainsCollection(client);
|
|
504
|
+
this.mailRoutes = new MailRoutesCollection(client);
|
|
455
505
|
this.senders = new SendersCollection(client);
|
|
456
506
|
this.recipients = new RecipientsCollection(client);
|
|
457
507
|
this.preferences = new PreferencesCollection(client);
|
|
@@ -464,40 +514,40 @@ export class NotifyApi {
|
|
|
464
514
|
this.broadcasts = new BroadcastsCollection(client);
|
|
465
515
|
}
|
|
466
516
|
}
|
|
467
|
-
/** `
|
|
468
|
-
export class
|
|
517
|
+
/** `mail_domains` of Sylphx Notify: Resource type `notify.sylphx.com/EmailDomain`. */
|
|
518
|
+
export class MailDomainsCollection {
|
|
469
519
|
client;
|
|
470
520
|
constructor(client) {
|
|
471
521
|
this.client = client;
|
|
472
522
|
}
|
|
473
523
|
/**
|
|
474
|
-
* Gets
|
|
524
|
+
* Gets an email domain.
|
|
475
525
|
*
|
|
476
|
-
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/
|
|
526
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*}` · permission `notify:read` · effect `read`
|
|
477
527
|
*
|
|
478
528
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
479
529
|
*/
|
|
480
530
|
async get(request) {
|
|
481
531
|
return this.client.call({
|
|
482
532
|
method: 'GET',
|
|
483
|
-
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/
|
|
484
|
-
responseType: 'sylphx.notify.v1.
|
|
533
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mail_domains/*', 'name')}`,
|
|
534
|
+
responseType: 'sylphx.notify.v1.EmailDomain',
|
|
485
535
|
mutation: false,
|
|
486
536
|
});
|
|
487
537
|
}
|
|
488
538
|
/**
|
|
489
|
-
* Lists
|
|
539
|
+
* Lists email domains.
|
|
490
540
|
*
|
|
491
|
-
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/
|
|
541
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/mail_domains` · permission `notify:read` · effect `read`
|
|
492
542
|
*
|
|
493
543
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
494
544
|
*/
|
|
495
545
|
async list(request) {
|
|
496
546
|
return this.client.call({
|
|
497
547
|
method: 'GET',
|
|
498
|
-
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/
|
|
548
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/mail_domains`,
|
|
499
549
|
query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
|
|
500
|
-
responseType: 'sylphx.notify.v1.
|
|
550
|
+
responseType: 'sylphx.notify.v1.ListEmailDomainsResponse',
|
|
501
551
|
mutation: false,
|
|
502
552
|
});
|
|
503
553
|
}
|
|
@@ -506,77 +556,177 @@ export class SendingDomainsCollection {
|
|
|
506
556
|
let next = request;
|
|
507
557
|
for (;;) {
|
|
508
558
|
const page = await this.list(next);
|
|
509
|
-
yield* page.
|
|
559
|
+
yield* page.emailDomains ?? [];
|
|
510
560
|
if (page.nextPageToken === undefined || page.nextPageToken === '')
|
|
511
561
|
return;
|
|
512
562
|
next = { ...request, pageToken: page.nextPageToken };
|
|
513
563
|
}
|
|
514
564
|
}
|
|
515
565
|
/**
|
|
516
|
-
* Creates
|
|
566
|
+
* Creates an email domain.
|
|
517
567
|
*
|
|
518
|
-
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/
|
|
568
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/mail_domains` · permission `notify:write` · effect `write`
|
|
519
569
|
*
|
|
520
570
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
521
571
|
*/
|
|
522
572
|
async create(request) {
|
|
523
573
|
return this.client.call({
|
|
524
574
|
method: 'POST',
|
|
525
|
-
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/
|
|
526
|
-
query: {
|
|
527
|
-
body: request.
|
|
528
|
-
bodyType: 'sylphx.notify.v1.
|
|
529
|
-
responseType: 'sylphx.notify.v1.
|
|
575
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/mail_domains`,
|
|
576
|
+
query: { email_domain_id: request.emailDomainId, validate_only: request.validateOnly },
|
|
577
|
+
body: request.emailDomain ?? {},
|
|
578
|
+
bodyType: 'sylphx.notify.v1.EmailDomain',
|
|
579
|
+
responseType: 'sylphx.notify.v1.EmailDomain',
|
|
530
580
|
mutation: true,
|
|
531
581
|
});
|
|
532
582
|
}
|
|
533
583
|
/**
|
|
534
|
-
* Updates
|
|
584
|
+
* Updates an email domain.
|
|
535
585
|
*
|
|
536
|
-
* `PATCH /v1/{
|
|
586
|
+
* `PATCH /v1/{email_domain.name=orgs/*\/projects/*\/envs/*\/mail_domains/*}` · permission `notify:write` · effect `write`
|
|
537
587
|
*
|
|
538
588
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
539
589
|
*/
|
|
540
590
|
async update(request) {
|
|
541
591
|
return this.client.call({
|
|
542
592
|
method: 'PATCH',
|
|
543
|
-
path: `/v1/${runtime.pathParam(request.
|
|
593
|
+
path: `/v1/${runtime.pathParam(request.emailDomain?.name, 'orgs/*/projects/*/envs/*/mail_domains/*', 'email_domain.name')}`,
|
|
544
594
|
query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
|
|
545
|
-
body: request.
|
|
546
|
-
bodyType: 'sylphx.notify.v1.
|
|
547
|
-
responseType: 'sylphx.notify.v1.
|
|
595
|
+
body: request.emailDomain ?? {},
|
|
596
|
+
bodyType: 'sylphx.notify.v1.EmailDomain',
|
|
597
|
+
responseType: 'sylphx.notify.v1.EmailDomain',
|
|
548
598
|
mutation: true,
|
|
549
599
|
});
|
|
550
600
|
}
|
|
551
601
|
/**
|
|
552
|
-
* Deletes
|
|
602
|
+
* Deletes an email domain.
|
|
553
603
|
*
|
|
554
|
-
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/
|
|
604
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*}` · permission `notify:write` · effect `destructive`
|
|
555
605
|
*
|
|
556
606
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
557
607
|
*/
|
|
558
608
|
async delete(request) {
|
|
559
609
|
return this.client.call({
|
|
560
610
|
method: 'DELETE',
|
|
561
|
-
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/
|
|
562
|
-
query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
|
|
611
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mail_domains/*', 'name')}`,
|
|
612
|
+
query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly, force: request.force },
|
|
563
613
|
mutation: true,
|
|
564
614
|
});
|
|
565
615
|
}
|
|
566
616
|
/**
|
|
567
617
|
* Checks the domain's DNS records now instead of on the next sweep.
|
|
568
618
|
*
|
|
569
|
-
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/
|
|
619
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*}:verify` · permission `notify:write` · effect `write`
|
|
570
620
|
*
|
|
571
621
|
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `RATE_LIMITED`.
|
|
572
622
|
*/
|
|
573
623
|
async verify(request) {
|
|
574
624
|
return this.client.call({
|
|
575
625
|
method: 'POST',
|
|
576
|
-
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/
|
|
626
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mail_domains/*', 'name')}:verify`,
|
|
577
627
|
body: runtime.omit(request, ['name']),
|
|
578
|
-
bodyType: 'sylphx.notify.v1.
|
|
579
|
-
responseType: 'sylphx.notify.v1.
|
|
628
|
+
bodyType: 'sylphx.notify.v1.VerifyEmailDomainRequest',
|
|
629
|
+
responseType: 'sylphx.notify.v1.EmailDomain',
|
|
630
|
+
mutation: true,
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
/** `mail_routes` of Sylphx Notify: Resource type `notify.sylphx.com/Route`. */
|
|
635
|
+
export class MailRoutesCollection {
|
|
636
|
+
client;
|
|
637
|
+
constructor(client) {
|
|
638
|
+
this.client = client;
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* Gets a route.
|
|
642
|
+
*
|
|
643
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*\/mail_routes/*}` · permission `notify:read` · effect `read`
|
|
644
|
+
*
|
|
645
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
646
|
+
*/
|
|
647
|
+
async get(request) {
|
|
648
|
+
return this.client.call({
|
|
649
|
+
method: 'GET',
|
|
650
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mail_domains/*/mail_routes/*', 'name')}`,
|
|
651
|
+
responseType: 'sylphx.notify.v1.Route',
|
|
652
|
+
mutation: false,
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* Lists an email domain's routes.
|
|
657
|
+
*
|
|
658
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/mail_domains/*}/mail_routes` · permission `notify:read` · effect `read`
|
|
659
|
+
*
|
|
660
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
661
|
+
*/
|
|
662
|
+
async list(request) {
|
|
663
|
+
return this.client.call({
|
|
664
|
+
method: 'GET',
|
|
665
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/mail_domains/*', 'parent')}/mail_routes`,
|
|
666
|
+
query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
|
|
667
|
+
responseType: 'sylphx.notify.v1.ListRoutesResponse',
|
|
668
|
+
mutation: false,
|
|
669
|
+
});
|
|
670
|
+
}
|
|
671
|
+
/** Every item of every page of `list`. */
|
|
672
|
+
async *listAll(request) {
|
|
673
|
+
let next = request;
|
|
674
|
+
for (;;) {
|
|
675
|
+
const page = await this.list(next);
|
|
676
|
+
yield* page.routes ?? [];
|
|
677
|
+
if (page.nextPageToken === undefined || page.nextPageToken === '')
|
|
678
|
+
return;
|
|
679
|
+
next = { ...request, pageToken: page.nextPageToken };
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* Creates a route.
|
|
684
|
+
*
|
|
685
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*\/mail_domains/*}/mail_routes` · permission `notify:write` · effect `write`
|
|
686
|
+
*
|
|
687
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
|
|
688
|
+
*/
|
|
689
|
+
async create(request) {
|
|
690
|
+
return this.client.call({
|
|
691
|
+
method: 'POST',
|
|
692
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/mail_domains/*', 'parent')}/mail_routes`,
|
|
693
|
+
query: { route_id: request.routeId, validate_only: request.validateOnly },
|
|
694
|
+
body: request.route ?? {},
|
|
695
|
+
bodyType: 'sylphx.notify.v1.Route',
|
|
696
|
+
responseType: 'sylphx.notify.v1.Route',
|
|
697
|
+
mutation: true,
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* Updates a route.
|
|
702
|
+
*
|
|
703
|
+
* `PATCH /v1/{route.name=orgs/*\/projects/*\/envs/*\/mail_domains/*\/mail_routes/*}` · permission `notify:write` · effect `write`
|
|
704
|
+
*
|
|
705
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
706
|
+
*/
|
|
707
|
+
async update(request) {
|
|
708
|
+
return this.client.call({
|
|
709
|
+
method: 'PATCH',
|
|
710
|
+
path: `/v1/${runtime.pathParam(request.route?.name, 'orgs/*/projects/*/envs/*/mail_domains/*/mail_routes/*', 'route.name')}`,
|
|
711
|
+
query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
|
|
712
|
+
body: request.route ?? {},
|
|
713
|
+
bodyType: 'sylphx.notify.v1.Route',
|
|
714
|
+
responseType: 'sylphx.notify.v1.Route',
|
|
715
|
+
mutation: true,
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* Deletes a route.
|
|
720
|
+
*
|
|
721
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mail_domains/*\/mail_routes/*}` · permission `notify:write` · effect `destructive`
|
|
722
|
+
*
|
|
723
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`.
|
|
724
|
+
*/
|
|
725
|
+
async delete(request) {
|
|
726
|
+
return this.client.call({
|
|
727
|
+
method: 'DELETE',
|
|
728
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mail_domains/*/mail_routes/*', 'name')}`,
|
|
729
|
+
query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
|
|
580
730
|
mutation: true,
|
|
581
731
|
});
|
|
582
732
|
}
|