@sylphx/sdk 0.32.44 → 0.32.46
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 +18 -3
- package/dist/auth.d.ts +2 -0
- package/dist/auth.js +1 -0
- package/dist/auth.js.map +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/data.d.ts +17 -0
- package/dist/data.js +1 -0
- package/dist/data.js.map +1 -1
- package/dist/hosting.d.ts +7 -5
- package/dist/hosting.js +5 -3
- package/dist/hosting.js.map +1 -1
- package/dist/methods.js +93 -0
- package/dist/methods.js.map +1 -1
- package/dist/notify.d.ts +338 -26
- package/dist/notify.js +327 -53
- package/dist/notify.js.map +1 -1
- package/dist/signal/browser.d.ts +13 -5
- package/dist/signal/browser.js +24 -12
- package/dist/signal/browser.js.map +1 -1
- package/dist/signal.d.ts +1 -1
- package/dist/signal.js.map +1 -1
- package/package.json +1 -1
package/dist/notify.js
CHANGED
|
@@ -10,6 +10,19 @@ runtime.registerSchemas({
|
|
|
10
10
|
['messagingProfileId', 'messaging_profile_id'],
|
|
11
11
|
['validateOnly', 'validate_only'],
|
|
12
12
|
],
|
|
13
|
+
'sylphx.notify.v1.AppPassword': [
|
|
14
|
+
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
15
|
+
['spec', 'spec', 'sylphx.notify.v1.AppPasswordSpec'],
|
|
16
|
+
['status', 'status', 'sylphx.notify.v1.AppPasswordStatus'],
|
|
17
|
+
],
|
|
18
|
+
'sylphx.notify.v1.AppPasswordSpec': [
|
|
19
|
+
['expireTime', 'expire_time'],
|
|
20
|
+
],
|
|
21
|
+
'sylphx.notify.v1.AppPasswordStatus': [
|
|
22
|
+
['observedGeneration', 'observed_generation'],
|
|
23
|
+
['conditions', 'conditions', 'sylphx.common.v1.Condition'],
|
|
24
|
+
['createTime', 'create_time'],
|
|
25
|
+
],
|
|
13
26
|
'sylphx.notify.v1.ApplyPhoneNumberRouteRequest': [
|
|
14
27
|
['operationId', 'operation_id'],
|
|
15
28
|
['voicemail', 'voicemail', 'sylphx.notify.v1.PhoneVoicemailRoute'],
|
|
@@ -52,6 +65,11 @@ runtime.registerSchemas({
|
|
|
52
65
|
['providerSessionToken', 'provider_session_token'],
|
|
53
66
|
['validateOnly', 'validate_only'],
|
|
54
67
|
],
|
|
68
|
+
'sylphx.notify.v1.CreateAppPasswordRequest': [
|
|
69
|
+
['appPasswordId', 'app_password_id'],
|
|
70
|
+
['appPassword', 'app_password', 'sylphx.notify.v1.AppPassword'],
|
|
71
|
+
['validateOnly', 'validate_only'],
|
|
72
|
+
],
|
|
55
73
|
'sylphx.notify.v1.CreateBroadcastRequest': [
|
|
56
74
|
['broadcastId', 'broadcast_id'],
|
|
57
75
|
['broadcast', 'broadcast', 'sylphx.notify.v1.Broadcast'],
|
|
@@ -77,6 +95,11 @@ runtime.registerSchemas({
|
|
|
77
95
|
['mailbox', 'mailbox', 'sylphx.notify.v1.Mailbox'],
|
|
78
96
|
['validateOnly', 'validate_only'],
|
|
79
97
|
],
|
|
98
|
+
'sylphx.notify.v1.CreateMaskedAliasRequest': [
|
|
99
|
+
['maskedAliasId', 'masked_alias_id'],
|
|
100
|
+
['maskedAlias', 'masked_alias', 'sylphx.notify.v1.MaskedAlias'],
|
|
101
|
+
['validateOnly', 'validate_only'],
|
|
102
|
+
],
|
|
80
103
|
'sylphx.notify.v1.CreateMessageRequest': [
|
|
81
104
|
['messageId', 'message_id'],
|
|
82
105
|
['message', 'message', 'sylphx.notify.v1.Message'],
|
|
@@ -111,6 +134,9 @@ runtime.registerSchemas({
|
|
|
111
134
|
['template', 'template', 'sylphx.notify.v1.Template'],
|
|
112
135
|
['validateOnly', 'validate_only'],
|
|
113
136
|
],
|
|
137
|
+
'sylphx.notify.v1.DeleteAppPasswordRequest': [
|
|
138
|
+
['validateOnly', 'validate_only'],
|
|
139
|
+
],
|
|
114
140
|
'sylphx.notify.v1.DeleteBroadcastRequest': [
|
|
115
141
|
['allowMissing', 'allow_missing'],
|
|
116
142
|
['validateOnly', 'validate_only'],
|
|
@@ -189,13 +215,17 @@ runtime.registerSchemas({
|
|
|
189
215
|
['dkimSelector', 'dkim_selector'],
|
|
190
216
|
['receivingState', 'receiving_state'],
|
|
191
217
|
['receivingVerifyTime', 'receiving_verify_time'],
|
|
218
|
+
['outboundPaused', 'outbound_paused'],
|
|
192
219
|
],
|
|
193
220
|
'sylphx.notify.v1.EraseMailboxAddressRequest': [],
|
|
194
221
|
'sylphx.notify.v1.EraseMailboxAddressResponse': [
|
|
195
222
|
['erasedCount', 'erased_count'],
|
|
196
223
|
],
|
|
224
|
+
'sylphx.notify.v1.GetAppPasswordRequest': [],
|
|
197
225
|
'sylphx.notify.v1.GetBroadcastRequest': [],
|
|
198
226
|
'sylphx.notify.v1.GetEmailDomainRequest': [],
|
|
227
|
+
'sylphx.notify.v1.GetInboundEmailRawRequest': [],
|
|
228
|
+
'sylphx.notify.v1.GetInboundEmailRawResponse': [],
|
|
199
229
|
'sylphx.notify.v1.GetInboundEmailRequest': [],
|
|
200
230
|
'sylphx.notify.v1.GetInboundMessageRequest': [],
|
|
201
231
|
'sylphx.notify.v1.GetInboundSmsRequest': [],
|
|
@@ -203,6 +233,7 @@ runtime.registerSchemas({
|
|
|
203
233
|
'sylphx.notify.v1.GetMailboxConnectLinkRequest': [],
|
|
204
234
|
'sylphx.notify.v1.GetMailboxOauthAppRequest': [],
|
|
205
235
|
'sylphx.notify.v1.GetMailboxRequest': [],
|
|
236
|
+
'sylphx.notify.v1.GetMaskedAliasRequest': [],
|
|
206
237
|
'sylphx.notify.v1.GetMessageRequest': [],
|
|
207
238
|
'sylphx.notify.v1.GetMessageTopicRequest': [],
|
|
208
239
|
'sylphx.notify.v1.GetPhoneNumberRequest': [],
|
|
@@ -213,6 +244,11 @@ runtime.registerSchemas({
|
|
|
213
244
|
'sylphx.notify.v1.GetSmsNumberRequest': [],
|
|
214
245
|
'sylphx.notify.v1.GetSuppressionRequest': [],
|
|
215
246
|
'sylphx.notify.v1.GetTemplateRequest': [],
|
|
247
|
+
'sylphx.notify.v1.InboundAttachment': [
|
|
248
|
+
['mimeType', 'mime_type'],
|
|
249
|
+
['sizeBytes', 'size_bytes'],
|
|
250
|
+
['contentId', 'content_id'],
|
|
251
|
+
],
|
|
216
252
|
'sylphx.notify.v1.InboundEmail': [
|
|
217
253
|
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
218
254
|
['messageId', 'message_id'],
|
|
@@ -226,6 +262,7 @@ runtime.registerSchemas({
|
|
|
226
262
|
['receiveTime', 'receive_time'],
|
|
227
263
|
['rawSha256', 'raw_sha256'],
|
|
228
264
|
['sizeBytes', 'size_bytes'],
|
|
265
|
+
['attachments', 'attachments', 'sylphx.notify.v1.InboundAttachment'],
|
|
229
266
|
],
|
|
230
267
|
'sylphx.notify.v1.InboundMessage': [
|
|
231
268
|
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
@@ -250,6 +287,14 @@ runtime.registerSchemas({
|
|
|
250
287
|
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
251
288
|
['actionUri', 'action_uri'],
|
|
252
289
|
],
|
|
290
|
+
'sylphx.notify.v1.ListAppPasswordsRequest': [
|
|
291
|
+
['pageSize', 'page_size'],
|
|
292
|
+
['pageToken', 'page_token'],
|
|
293
|
+
],
|
|
294
|
+
'sylphx.notify.v1.ListAppPasswordsResponse': [
|
|
295
|
+
['appPasswords', 'app_passwords', 'sylphx.notify.v1.AppPassword'],
|
|
296
|
+
['nextPageToken', 'next_page_token'],
|
|
297
|
+
],
|
|
253
298
|
'sylphx.notify.v1.ListBroadcastsRequest': [
|
|
254
299
|
['pageSize', 'page_size'],
|
|
255
300
|
['pageToken', 'page_token'],
|
|
@@ -331,6 +376,14 @@ runtime.registerSchemas({
|
|
|
331
376
|
['mailboxes', 'mailboxes', 'sylphx.notify.v1.Mailbox'],
|
|
332
377
|
['nextPageToken', 'next_page_token'],
|
|
333
378
|
],
|
|
379
|
+
'sylphx.notify.v1.ListMaskedAliasesRequest': [
|
|
380
|
+
['pageSize', 'page_size'],
|
|
381
|
+
['pageToken', 'page_token'],
|
|
382
|
+
],
|
|
383
|
+
'sylphx.notify.v1.ListMaskedAliasesResponse': [
|
|
384
|
+
['maskedAliases', 'masked_aliases', 'sylphx.notify.v1.MaskedAlias'],
|
|
385
|
+
['nextPageToken', 'next_page_token'],
|
|
386
|
+
],
|
|
334
387
|
'sylphx.notify.v1.ListMessageTopicsRequest': [
|
|
335
388
|
['pageSize', 'page_size'],
|
|
336
389
|
['pageToken', 'page_token'],
|
|
@@ -453,6 +506,10 @@ runtime.registerSchemas({
|
|
|
453
506
|
['clientSecretSet', 'client_secret_set'],
|
|
454
507
|
['redirectUri', 'redirect_uri'],
|
|
455
508
|
],
|
|
509
|
+
'sylphx.notify.v1.MailboxRetention': [
|
|
510
|
+
['rawDays', 'raw_days'],
|
|
511
|
+
['mailDays', 'mail_days'],
|
|
512
|
+
],
|
|
456
513
|
'sylphx.notify.v1.MailboxSpec': [
|
|
457
514
|
['displayName', 'display_name'],
|
|
458
515
|
['imap', 'imap', 'sylphx.notify.v1.MailServer'],
|
|
@@ -462,6 +519,10 @@ runtime.registerSchemas({
|
|
|
462
519
|
['authKind', 'auth_kind'],
|
|
463
520
|
['oauthProvider', 'oauth_provider'],
|
|
464
521
|
['oauthRefreshToken', 'oauth_refresh_token'],
|
|
522
|
+
['quotaBytes', 'quota_bytes'],
|
|
523
|
+
['retention', 'retention', 'sylphx.notify.v1.MailboxRetention'],
|
|
524
|
+
['spamFolder', 'spam_folder'],
|
|
525
|
+
['ownerCustomerOrgId', 'owner_customer_org_id'],
|
|
465
526
|
],
|
|
466
527
|
'sylphx.notify.v1.MailboxStatus': [
|
|
467
528
|
['observedGeneration', 'observed_generation'],
|
|
@@ -473,9 +534,27 @@ runtime.registerSchemas({
|
|
|
473
534
|
['oauthRefreshTokenSet', 'oauth_refresh_token_set'],
|
|
474
535
|
['oauthScopes', 'oauth_scopes'],
|
|
475
536
|
['reconnectRequired', 'reconnect_required'],
|
|
537
|
+
['outboundPaused', 'outbound_paused'],
|
|
538
|
+
['usedBytes', 'used_bytes'],
|
|
539
|
+
['lastReceiveTime', 'last_receive_time'],
|
|
476
540
|
],
|
|
477
541
|
'sylphx.notify.v1.MarkInboxItemReadRequest': [],
|
|
478
542
|
'sylphx.notify.v1.MarkInboxItemUnreadRequest': [],
|
|
543
|
+
'sylphx.notify.v1.MaskedAlias': [
|
|
544
|
+
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
545
|
+
['spec', 'spec', 'sylphx.notify.v1.MaskedAliasSpec'],
|
|
546
|
+
['status', 'status', 'sylphx.notify.v1.MaskedAliasStatus'],
|
|
547
|
+
],
|
|
548
|
+
'sylphx.notify.v1.MaskedAliasSpec': [
|
|
549
|
+
['replyMode', 'reply_mode'],
|
|
550
|
+
],
|
|
551
|
+
'sylphx.notify.v1.MaskedAliasStatus': [
|
|
552
|
+
['observedGeneration', 'observed_generation'],
|
|
553
|
+
['conditions', 'conditions', 'sylphx.common.v1.Condition'],
|
|
554
|
+
['blockedCount', 'blocked_count'],
|
|
555
|
+
['lastBlockedTime', 'last_blocked_time'],
|
|
556
|
+
['canSend', 'can_send'],
|
|
557
|
+
],
|
|
479
558
|
'sylphx.notify.v1.Message': [
|
|
480
559
|
['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
|
|
481
560
|
['templateVersion', 'template_version'],
|
|
@@ -489,6 +568,7 @@ runtime.registerSchemas({
|
|
|
489
568
|
['parentMessageId', 'parent_message_id'],
|
|
490
569
|
['emailMessageId', 'email_message_id'],
|
|
491
570
|
['replyTo', 'reply_to'],
|
|
571
|
+
['maskedAlias', 'masked_alias'],
|
|
492
572
|
],
|
|
493
573
|
'sylphx.notify.v1.MessageCapture': [
|
|
494
574
|
['textBody', 'text_body'],
|
|
@@ -712,6 +792,11 @@ runtime.registerSchemas({
|
|
|
712
792
|
['allowMissing', 'allow_missing'],
|
|
713
793
|
['validateOnly', 'validate_only'],
|
|
714
794
|
],
|
|
795
|
+
'sylphx.notify.v1.UpdateMaskedAliasRequest': [
|
|
796
|
+
['maskedAlias', 'masked_alias', 'sylphx.notify.v1.MaskedAlias'],
|
|
797
|
+
['updateMask', 'update_mask'],
|
|
798
|
+
['validateOnly', 'validate_only'],
|
|
799
|
+
],
|
|
715
800
|
'sylphx.notify.v1.UpdateMessageTopicRequest': [
|
|
716
801
|
['messageTopic', 'message_topic', 'sylphx.notify.v1.MessageTopic'],
|
|
717
802
|
['updateMask', 'update_mask'],
|
|
@@ -794,12 +879,16 @@ export class NotifyApi {
|
|
|
794
879
|
messages;
|
|
795
880
|
/** The `mailboxes` collection. */
|
|
796
881
|
mailboxes;
|
|
882
|
+
/** The `masked_aliases` collection. */
|
|
883
|
+
maskedAliases;
|
|
884
|
+
/** The `app_passwords` collection. */
|
|
885
|
+
appPasswords;
|
|
886
|
+
/** The `inbound_emails` collection. */
|
|
887
|
+
inboundEmails;
|
|
797
888
|
/** The `mailbox_oauth_apps` collection. */
|
|
798
889
|
mailboxOauthApps;
|
|
799
890
|
/** The `mailbox_connect_links` collection. */
|
|
800
891
|
mailboxConnectLinks;
|
|
801
|
-
/** The `inbound_emails` collection. */
|
|
802
|
-
inboundEmails;
|
|
803
892
|
/** The `inbox_items` collection. */
|
|
804
893
|
inboxItems;
|
|
805
894
|
/** The `broadcasts` collection. */
|
|
@@ -822,9 +911,11 @@ export class NotifyApi {
|
|
|
822
911
|
this.templates = new TemplatesCollection(client);
|
|
823
912
|
this.messages = new MessagesCollection(client);
|
|
824
913
|
this.mailboxes = new MailboxesCollection(client);
|
|
914
|
+
this.maskedAliases = new MaskedAliasesCollection(client);
|
|
915
|
+
this.appPasswords = new AppPasswordsCollection(client);
|
|
916
|
+
this.inboundEmails = new InboundEmailsCollection(client);
|
|
825
917
|
this.mailboxOauthApps = new MailboxOauthAppsCollection(client);
|
|
826
918
|
this.mailboxConnectLinks = new MailboxConnectLinksCollection(client);
|
|
827
|
-
this.inboundEmails = new InboundEmailsCollection(client);
|
|
828
919
|
this.inboxItems = new InboxItemsCollection(client);
|
|
829
920
|
this.broadcasts = new BroadcastsCollection(client);
|
|
830
921
|
this.smsNumbers = new SmsNumbersCollection(client);
|
|
@@ -1817,7 +1908,7 @@ export class MessagesCollection {
|
|
|
1817
1908
|
*
|
|
1818
1909
|
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/messages` · permission `notify:send` · effect `write`
|
|
1819
1910
|
*
|
|
1820
|
-
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`, `RATE_LIMITED`, `DESTINATION_COUNTRY_NOT_ALLOWED`, `BUDGET_EXHAUSTED`, `INVALID_STATE`.
|
|
1911
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`, `RATE_LIMITED`, `DESTINATION_COUNTRY_NOT_ALLOWED`, `BUDGET_EXHAUSTED`, `COMPLAINT_FUSE_ACTIVE`, `INVALID_STATE`.
|
|
1821
1912
|
*/
|
|
1822
1913
|
async create(request) {
|
|
1823
1914
|
return this.client.call({
|
|
@@ -1967,6 +2058,238 @@ export class MailboxesCollection {
|
|
|
1967
2058
|
});
|
|
1968
2059
|
}
|
|
1969
2060
|
}
|
|
2061
|
+
/** `masked_aliases` of Sylphx Notify: Resource type `notify.sylphx.com/MaskedAlias`. */
|
|
2062
|
+
export class MaskedAliasesCollection {
|
|
2063
|
+
client;
|
|
2064
|
+
constructor(client) {
|
|
2065
|
+
this.client = client;
|
|
2066
|
+
}
|
|
2067
|
+
/**
|
|
2068
|
+
* Gets a masked alias.
|
|
2069
|
+
*
|
|
2070
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/masked_aliases/*}` · permission `notify:read` · effect `read`
|
|
2071
|
+
*
|
|
2072
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
|
|
2073
|
+
*/
|
|
2074
|
+
async get(request) {
|
|
2075
|
+
return this.client.call({
|
|
2076
|
+
method: 'GET',
|
|
2077
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/masked_aliases/*', 'name')}`,
|
|
2078
|
+
responseType: 'sylphx.notify.v1.MaskedAlias',
|
|
2079
|
+
mutation: false,
|
|
2080
|
+
});
|
|
2081
|
+
}
|
|
2082
|
+
/**
|
|
2083
|
+
* Lists the masked alias collection.
|
|
2084
|
+
*
|
|
2085
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/masked_aliases` · permission `notify:read` · effect `read`
|
|
2086
|
+
*
|
|
2087
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
|
|
2088
|
+
*/
|
|
2089
|
+
async list(request) {
|
|
2090
|
+
return this.client.call({
|
|
2091
|
+
method: 'GET',
|
|
2092
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/masked_aliases`,
|
|
2093
|
+
query: { page_size: request.pageSize, page_token: request.pageToken },
|
|
2094
|
+
responseType: 'sylphx.notify.v1.ListMaskedAliasesResponse',
|
|
2095
|
+
mutation: false,
|
|
2096
|
+
});
|
|
2097
|
+
}
|
|
2098
|
+
/** Every item of every page of `list`. */
|
|
2099
|
+
async *listAll(request) {
|
|
2100
|
+
let next = request;
|
|
2101
|
+
for (;;) {
|
|
2102
|
+
const page = await this.list(next);
|
|
2103
|
+
yield* page.maskedAliases ?? [];
|
|
2104
|
+
if (page.nextPageToken === undefined || page.nextPageToken === '')
|
|
2105
|
+
return;
|
|
2106
|
+
next = { ...request, pageToken: page.nextPageToken };
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
/**
|
|
2110
|
+
* Creates a masked alias.
|
|
2111
|
+
*
|
|
2112
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/masked_aliases` · permission `notify:write` · effect `write`
|
|
2113
|
+
*
|
|
2114
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `FAILED_PRECONDITION`.
|
|
2115
|
+
*/
|
|
2116
|
+
async create(request) {
|
|
2117
|
+
return this.client.call({
|
|
2118
|
+
method: 'POST',
|
|
2119
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/masked_aliases`,
|
|
2120
|
+
query: { masked_alias_id: request.maskedAliasId, validate_only: request.validateOnly },
|
|
2121
|
+
body: request.maskedAlias ?? {},
|
|
2122
|
+
bodyType: 'sylphx.notify.v1.MaskedAlias',
|
|
2123
|
+
responseType: 'sylphx.notify.v1.MaskedAlias',
|
|
2124
|
+
mutation: true,
|
|
2125
|
+
});
|
|
2126
|
+
}
|
|
2127
|
+
/**
|
|
2128
|
+
* Updates a masked alias.
|
|
2129
|
+
*
|
|
2130
|
+
* `PATCH /v1/{masked_alias.name=orgs/*\/projects/*\/envs/*\/masked_aliases/*}` · permission `notify:write` · effect `write`
|
|
2131
|
+
*
|
|
2132
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `ETAG_MISMATCH`, `FAILED_PRECONDITION`.
|
|
2133
|
+
*/
|
|
2134
|
+
async update(request) {
|
|
2135
|
+
return this.client.call({
|
|
2136
|
+
method: 'PATCH',
|
|
2137
|
+
path: `/v1/${runtime.pathParam(request.maskedAlias?.name, 'orgs/*/projects/*/envs/*/masked_aliases/*', 'masked_alias.name')}`,
|
|
2138
|
+
query: { update_mask: request.updateMask, validate_only: request.validateOnly },
|
|
2139
|
+
body: request.maskedAlias ?? {},
|
|
2140
|
+
bodyType: 'sylphx.notify.v1.MaskedAlias',
|
|
2141
|
+
responseType: 'sylphx.notify.v1.MaskedAlias',
|
|
2142
|
+
mutation: true,
|
|
2143
|
+
});
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
/** `app_passwords` of Sylphx Notify: Resource type `notify.sylphx.com/AppPassword`. */
|
|
2147
|
+
export class AppPasswordsCollection {
|
|
2148
|
+
client;
|
|
2149
|
+
constructor(client) {
|
|
2150
|
+
this.client = client;
|
|
2151
|
+
}
|
|
2152
|
+
/**
|
|
2153
|
+
* Gets a app password.
|
|
2154
|
+
*
|
|
2155
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*\/app_passwords/*}` · permission `notify:read` · effect `read`
|
|
2156
|
+
*
|
|
2157
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
|
|
2158
|
+
*/
|
|
2159
|
+
async get(request) {
|
|
2160
|
+
return this.client.call({
|
|
2161
|
+
method: 'GET',
|
|
2162
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mailboxes/*/app_passwords/*', 'name')}`,
|
|
2163
|
+
responseType: 'sylphx.notify.v1.AppPassword',
|
|
2164
|
+
mutation: false,
|
|
2165
|
+
});
|
|
2166
|
+
}
|
|
2167
|
+
/**
|
|
2168
|
+
* Lists the app password collection.
|
|
2169
|
+
*
|
|
2170
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/mailboxes/*}/app_passwords` · permission `notify:read` · effect `read`
|
|
2171
|
+
*
|
|
2172
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
|
|
2173
|
+
*/
|
|
2174
|
+
async list(request) {
|
|
2175
|
+
return this.client.call({
|
|
2176
|
+
method: 'GET',
|
|
2177
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/mailboxes/*', 'parent')}/app_passwords`,
|
|
2178
|
+
query: { page_size: request.pageSize, page_token: request.pageToken },
|
|
2179
|
+
responseType: 'sylphx.notify.v1.ListAppPasswordsResponse',
|
|
2180
|
+
mutation: false,
|
|
2181
|
+
});
|
|
2182
|
+
}
|
|
2183
|
+
/** Every item of every page of `list`. */
|
|
2184
|
+
async *listAll(request) {
|
|
2185
|
+
let next = request;
|
|
2186
|
+
for (;;) {
|
|
2187
|
+
const page = await this.list(next);
|
|
2188
|
+
yield* page.appPasswords ?? [];
|
|
2189
|
+
if (page.nextPageToken === undefined || page.nextPageToken === '')
|
|
2190
|
+
return;
|
|
2191
|
+
next = { ...request, pageToken: page.nextPageToken };
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
/**
|
|
2195
|
+
* Creates a app password.
|
|
2196
|
+
*
|
|
2197
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*\/mailboxes/*}/app_passwords` · permission `notify:write` · effect `write`
|
|
2198
|
+
*
|
|
2199
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `FAILED_PRECONDITION`.
|
|
2200
|
+
*/
|
|
2201
|
+
async create(request) {
|
|
2202
|
+
return this.client.call({
|
|
2203
|
+
method: 'POST',
|
|
2204
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/mailboxes/*', 'parent')}/app_passwords`,
|
|
2205
|
+
query: { app_password_id: request.appPasswordId, validate_only: request.validateOnly },
|
|
2206
|
+
body: request.appPassword ?? {},
|
|
2207
|
+
bodyType: 'sylphx.notify.v1.AppPassword',
|
|
2208
|
+
responseType: 'sylphx.notify.v1.AppPassword',
|
|
2209
|
+
mutation: true,
|
|
2210
|
+
});
|
|
2211
|
+
}
|
|
2212
|
+
/**
|
|
2213
|
+
* Deletes the app password.
|
|
2214
|
+
*
|
|
2215
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*\/app_passwords/*}` · permission `notify:write` · effect `destructive`
|
|
2216
|
+
*
|
|
2217
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `ETAG_MISMATCH`.
|
|
2218
|
+
*/
|
|
2219
|
+
async delete(request) {
|
|
2220
|
+
return this.client.call({
|
|
2221
|
+
method: 'DELETE',
|
|
2222
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mailboxes/*/app_passwords/*', 'name')}`,
|
|
2223
|
+
query: { etag: request.etag, validate_only: request.validateOnly },
|
|
2224
|
+
mutation: true,
|
|
2225
|
+
});
|
|
2226
|
+
}
|
|
2227
|
+
}
|
|
2228
|
+
/** `inbound_emails` of Sylphx Notify: Resource type `notify.sylphx.com/InboundEmail`. */
|
|
2229
|
+
export class InboundEmailsCollection {
|
|
2230
|
+
client;
|
|
2231
|
+
constructor(client) {
|
|
2232
|
+
this.client = client;
|
|
2233
|
+
}
|
|
2234
|
+
/**
|
|
2235
|
+
* Returns the retained raw MIME of a message as base64 in JSON.
|
|
2236
|
+
* Erased or expired messages have no raw response.
|
|
2237
|
+
*
|
|
2238
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*\/inbound_emails/*}:raw` · permission `notify:read` · effect `read`
|
|
2239
|
+
*
|
|
2240
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNAVAILABLE`.
|
|
2241
|
+
*/
|
|
2242
|
+
async raw(request) {
|
|
2243
|
+
return this.client.call({
|
|
2244
|
+
method: 'GET',
|
|
2245
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mailboxes/*/inbound_emails/*', 'name')}:raw`,
|
|
2246
|
+
responseType: 'sylphx.notify.v1.GetInboundEmailRawResponse',
|
|
2247
|
+
mutation: false,
|
|
2248
|
+
});
|
|
2249
|
+
}
|
|
2250
|
+
/**
|
|
2251
|
+
* Gets an inbound email.
|
|
2252
|
+
*
|
|
2253
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*\/inbound_emails/*}` · permission `notify:read` · effect `read`
|
|
2254
|
+
*
|
|
2255
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
2256
|
+
*/
|
|
2257
|
+
async get(request) {
|
|
2258
|
+
return this.client.call({
|
|
2259
|
+
method: 'GET',
|
|
2260
|
+
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mailboxes/*/inbound_emails/*', 'name')}`,
|
|
2261
|
+
responseType: 'sylphx.notify.v1.InboundEmail',
|
|
2262
|
+
mutation: false,
|
|
2263
|
+
});
|
|
2264
|
+
}
|
|
2265
|
+
/**
|
|
2266
|
+
* Lists a mailbox's inbound email in feed order, oldest first.
|
|
2267
|
+
*
|
|
2268
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/mailboxes/*}/inbound_emails` · permission `notify:read` · effect `read`
|
|
2269
|
+
*
|
|
2270
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
2271
|
+
*/
|
|
2272
|
+
async list(request) {
|
|
2273
|
+
return this.client.call({
|
|
2274
|
+
method: 'GET',
|
|
2275
|
+
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/mailboxes/*', 'parent')}/inbound_emails`,
|
|
2276
|
+
query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
|
|
2277
|
+
responseType: 'sylphx.notify.v1.ListInboundEmailsResponse',
|
|
2278
|
+
mutation: false,
|
|
2279
|
+
});
|
|
2280
|
+
}
|
|
2281
|
+
/** Every item of every page of `list`. */
|
|
2282
|
+
async *listAll(request) {
|
|
2283
|
+
let next = request;
|
|
2284
|
+
for (;;) {
|
|
2285
|
+
const page = await this.list(next);
|
|
2286
|
+
yield* page.inboundEmails ?? [];
|
|
2287
|
+
if (page.nextPageToken === undefined || page.nextPageToken === '')
|
|
2288
|
+
return;
|
|
2289
|
+
next = { ...request, pageToken: page.nextPageToken };
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
}
|
|
1970
2293
|
/** `mailbox_oauth_apps` of Sylphx Notify: Resource type `notify.sylphx.com/MailboxOauthApp`. */
|
|
1971
2294
|
export class MailboxOauthAppsCollection {
|
|
1972
2295
|
client;
|
|
@@ -2135,55 +2458,6 @@ export class MailboxConnectLinksCollection {
|
|
|
2135
2458
|
});
|
|
2136
2459
|
}
|
|
2137
2460
|
}
|
|
2138
|
-
/** `inbound_emails` of Sylphx Notify: Resource type `notify.sylphx.com/InboundEmail`. */
|
|
2139
|
-
export class InboundEmailsCollection {
|
|
2140
|
-
client;
|
|
2141
|
-
constructor(client) {
|
|
2142
|
-
this.client = client;
|
|
2143
|
-
}
|
|
2144
|
-
/**
|
|
2145
|
-
* Gets an inbound email.
|
|
2146
|
-
*
|
|
2147
|
-
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/mailboxes/*\/inbound_emails/*}` · permission `notify:read` · effect `read`
|
|
2148
|
-
*
|
|
2149
|
-
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
2150
|
-
*/
|
|
2151
|
-
async get(request) {
|
|
2152
|
-
return this.client.call({
|
|
2153
|
-
method: 'GET',
|
|
2154
|
-
path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/mailboxes/*/inbound_emails/*', 'name')}`,
|
|
2155
|
-
responseType: 'sylphx.notify.v1.InboundEmail',
|
|
2156
|
-
mutation: false,
|
|
2157
|
-
});
|
|
2158
|
-
}
|
|
2159
|
-
/**
|
|
2160
|
-
* Lists a mailbox's inbound email in feed order, oldest first.
|
|
2161
|
-
*
|
|
2162
|
-
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/mailboxes/*}/inbound_emails` · permission `notify:read` · effect `read`
|
|
2163
|
-
*
|
|
2164
|
-
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
2165
|
-
*/
|
|
2166
|
-
async list(request) {
|
|
2167
|
-
return this.client.call({
|
|
2168
|
-
method: 'GET',
|
|
2169
|
-
path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/mailboxes/*', 'parent')}/inbound_emails`,
|
|
2170
|
-
query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
|
|
2171
|
-
responseType: 'sylphx.notify.v1.ListInboundEmailsResponse',
|
|
2172
|
-
mutation: false,
|
|
2173
|
-
});
|
|
2174
|
-
}
|
|
2175
|
-
/** Every item of every page of `list`. */
|
|
2176
|
-
async *listAll(request) {
|
|
2177
|
-
let next = request;
|
|
2178
|
-
for (;;) {
|
|
2179
|
-
const page = await this.list(next);
|
|
2180
|
-
yield* page.inboundEmails ?? [];
|
|
2181
|
-
if (page.nextPageToken === undefined || page.nextPageToken === '')
|
|
2182
|
-
return;
|
|
2183
|
-
next = { ...request, pageToken: page.nextPageToken };
|
|
2184
|
-
}
|
|
2185
|
-
}
|
|
2186
|
-
}
|
|
2187
2461
|
/** `inbox_items` of Sylphx Notify: Resource type `notify.sylphx.com/InboxItem`. */
|
|
2188
2462
|
export class InboxItemsCollection {
|
|
2189
2463
|
client;
|