@sylphx/sdk 0.27.0 → 0.30.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.
Files changed (101) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +30 -73
  3. package/dist/access.d.ts +659 -0
  4. package/dist/access.js +638 -0
  5. package/dist/access.js.map +1 -0
  6. package/dist/ai.d.ts +176 -0
  7. package/dist/ai.js +112 -0
  8. package/dist/ai.js.map +1 -0
  9. package/dist/artifacts.d.ts +165 -0
  10. package/dist/artifacts.js +129 -0
  11. package/dist/artifacts.js.map +1 -0
  12. package/dist/auth.d.ts +896 -0
  13. package/dist/auth.js +828 -0
  14. package/dist/auth.js.map +1 -0
  15. package/dist/billing.d.ts +758 -0
  16. package/dist/billing.js +553 -0
  17. package/dist/billing.js.map +1 -0
  18. package/dist/broker.d.ts +226 -0
  19. package/dist/broker.js +187 -0
  20. package/dist/broker.js.map +1 -0
  21. package/dist/build.d.ts +313 -0
  22. package/dist/build.js +271 -0
  23. package/dist/build.js.map +1 -0
  24. package/dist/common.d.ts +162 -0
  25. package/dist/common.js +41 -0
  26. package/dist/common.js.map +1 -0
  27. package/dist/config.d.ts +198 -0
  28. package/dist/config.js +168 -0
  29. package/dist/config.js.map +1 -0
  30. package/dist/connections.d.ts +354 -0
  31. package/dist/connections.js +313 -0
  32. package/dist/connections.js.map +1 -0
  33. package/dist/data.d.ts +858 -0
  34. package/dist/data.js +814 -0
  35. package/dist/data.js.map +1 -0
  36. package/dist/entitlement.d.ts +172 -0
  37. package/dist/entitlement.js +116 -0
  38. package/dist/entitlement.js.map +1 -0
  39. package/dist/events.d.ts +1324 -0
  40. package/dist/events.js +1227 -0
  41. package/dist/events.js.map +1 -0
  42. package/dist/hosting.d.ts +709 -0
  43. package/dist/hosting.js +611 -0
  44. package/dist/hosting.js.map +1 -0
  45. package/dist/index.d.ts +79 -11493
  46. package/dist/index.js +113 -0
  47. package/dist/index.js.map +1 -0
  48. package/dist/keys.d.ts +438 -0
  49. package/dist/keys.js +406 -0
  50. package/dist/keys.js.map +1 -0
  51. package/dist/methods.d.ts +2 -0
  52. package/dist/methods.js +3995 -0
  53. package/dist/methods.js.map +1 -0
  54. package/dist/network.d.ts +733 -0
  55. package/dist/network.js +711 -0
  56. package/dist/network.js.map +1 -0
  57. package/dist/notify.d.ts +1359 -0
  58. package/dist/notify.js +1282 -0
  59. package/dist/notify.js.map +1 -0
  60. package/dist/observability.d.ts +509 -0
  61. package/dist/observability.js +437 -0
  62. package/dist/observability.js.map +1 -0
  63. package/dist/release.d.ts +303 -0
  64. package/dist/release.js +214 -0
  65. package/dist/release.js.map +1 -0
  66. package/dist/runners.d.ts +262 -0
  67. package/dist/runners.js +238 -0
  68. package/dist/runners.js.map +1 -0
  69. package/dist/runtime.d.ts +88 -0
  70. package/dist/runtime.js +226 -0
  71. package/dist/runtime.js.map +1 -0
  72. package/dist/sandboxes.d.ts +1705 -0
  73. package/dist/sandboxes.js +1226 -0
  74. package/dist/sandboxes.js.map +1 -0
  75. package/dist/secrets.d.ts +508 -0
  76. package/dist/secrets.js +474 -0
  77. package/dist/secrets.js.map +1 -0
  78. package/dist/workflows.d.ts +678 -0
  79. package/dist/workflows.js +595 -0
  80. package/dist/workflows.js.map +1 -0
  81. package/package.json +33 -106
  82. package/dist/health/index.d.ts +0 -1394
  83. package/dist/health/index.mjs +0 -1394
  84. package/dist/health/index.mjs.map +0 -1
  85. package/dist/index.mjs +0 -10386
  86. package/dist/index.mjs.map +0 -1
  87. package/dist/nextjs/index.d.ts +0 -724
  88. package/dist/nextjs/index.mjs +0 -3329
  89. package/dist/nextjs/index.mjs.map +0 -1
  90. package/dist/react/index.d.ts +0 -14168
  91. package/dist/react/index.mjs +0 -37002
  92. package/dist/react/index.mjs.map +0 -1
  93. package/dist/server/index.d.ts +0 -2017
  94. package/dist/server/index.mjs +0 -3446
  95. package/dist/server/index.mjs.map +0 -1
  96. package/dist/tasks.d.ts +0 -1463
  97. package/dist/tasks.mjs +0 -1907
  98. package/dist/tasks.mjs.map +0 -1
  99. package/dist/web-analytics.d.ts +0 -90
  100. package/dist/web-analytics.mjs +0 -225
  101. package/dist/web-analytics.mjs.map +0 -1
package/dist/notify.js ADDED
@@ -0,0 +1,1282 @@
1
+ // @generated by sylphx-gen 0.1.0 from contracts@cdf6473b36ca648759a7f4b1fc21554541d52a947477e6e9d1d7a6a9a79bdaa0. Do not edit.
2
+ // `sylphx.notify.v1`.
3
+ import * as runtime from './runtime.js';
4
+ import './common.js';
5
+ runtime.registerSchemas({
6
+ 'sylphx.notify.v1.ArchiveInboxItemRequest': [],
7
+ 'sylphx.notify.v1.Broadcast': [
8
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
9
+ ['spec', 'spec', 'sylphx.notify.v1.BroadcastSpec'],
10
+ ['status', 'status', 'sylphx.notify.v1.BroadcastStatus'],
11
+ ],
12
+ 'sylphx.notify.v1.BroadcastSpec': [
13
+ ['segmentFilter', 'segment_filter'],
14
+ ['data', 'data', undefined, 'json'],
15
+ ['sendTime', 'send_time'],
16
+ ],
17
+ 'sylphx.notify.v1.BroadcastStatus': [
18
+ ['observedGeneration', 'observed_generation'],
19
+ ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
20
+ ['admittedCount', 'admitted_count'],
21
+ ['skippedCount', 'skipped_count'],
22
+ ],
23
+ 'sylphx.notify.v1.CancelBroadcastRequest': [],
24
+ 'sylphx.notify.v1.CancelMessageRequest': [],
25
+ 'sylphx.notify.v1.ChannelDelivery': [
26
+ ['maskedAddress', 'masked_address'],
27
+ ['providerReceipt', 'provider_receipt'],
28
+ ['receiptTime', 'receipt_time'],
29
+ ['errorCode', 'error_code'],
30
+ ],
31
+ 'sylphx.notify.v1.CreateBroadcastRequest': [
32
+ ['broadcastId', 'broadcast_id'],
33
+ ['broadcast', 'broadcast', 'sylphx.notify.v1.Broadcast'],
34
+ ['validateOnly', 'validate_only'],
35
+ ],
36
+ 'sylphx.notify.v1.CreateMessageRequest': [
37
+ ['messageId', 'message_id'],
38
+ ['message', 'message', 'sylphx.notify.v1.Message'],
39
+ ['validateOnly', 'validate_only'],
40
+ ],
41
+ 'sylphx.notify.v1.CreateRecipientRequest': [
42
+ ['recipientId', 'recipient_id'],
43
+ ['recipient', 'recipient', 'sylphx.notify.v1.Recipient'],
44
+ ['validateOnly', 'validate_only'],
45
+ ],
46
+ 'sylphx.notify.v1.CreateSenderRequest': [
47
+ ['senderId', 'sender_id'],
48
+ ['sender', 'sender', 'sylphx.notify.v1.Sender'],
49
+ ['validateOnly', 'validate_only'],
50
+ ],
51
+ 'sylphx.notify.v1.CreateSendingDomainRequest': [
52
+ ['sendingDomainId', 'sending_domain_id'],
53
+ ['sendingDomain', 'sending_domain', 'sylphx.notify.v1.SendingDomain'],
54
+ ['validateOnly', 'validate_only'],
55
+ ],
56
+ 'sylphx.notify.v1.CreateSuppressionRequest': [
57
+ ['suppressionId', 'suppression_id'],
58
+ ['suppression', 'suppression', 'sylphx.notify.v1.Suppression'],
59
+ ['validateOnly', 'validate_only'],
60
+ ],
61
+ 'sylphx.notify.v1.CreateTemplateRequest': [
62
+ ['templateId', 'template_id'],
63
+ ['template', 'template', 'sylphx.notify.v1.Template'],
64
+ ['validateOnly', 'validate_only'],
65
+ ],
66
+ 'sylphx.notify.v1.DeleteBroadcastRequest': [
67
+ ['allowMissing', 'allow_missing'],
68
+ ['validateOnly', 'validate_only'],
69
+ ],
70
+ 'sylphx.notify.v1.DeletePreferenceRequest': [
71
+ ['allowMissing', 'allow_missing'],
72
+ ['validateOnly', 'validate_only'],
73
+ ],
74
+ 'sylphx.notify.v1.DeleteRecipientRequest': [
75
+ ['allowMissing', 'allow_missing'],
76
+ ['validateOnly', 'validate_only'],
77
+ ],
78
+ 'sylphx.notify.v1.DeleteSenderRequest': [
79
+ ['allowMissing', 'allow_missing'],
80
+ ['validateOnly', 'validate_only'],
81
+ ],
82
+ 'sylphx.notify.v1.DeleteSendingDomainRequest': [
83
+ ['allowMissing', 'allow_missing'],
84
+ ['validateOnly', 'validate_only'],
85
+ ],
86
+ 'sylphx.notify.v1.DeleteSuppressionRequest': [
87
+ ['allowMissing', 'allow_missing'],
88
+ ['validateOnly', 'validate_only'],
89
+ ],
90
+ 'sylphx.notify.v1.DeleteTemplateRequest': [
91
+ ['allowMissing', 'allow_missing'],
92
+ ['validateOnly', 'validate_only'],
93
+ ],
94
+ 'sylphx.notify.v1.DnsRecord': [
95
+ ['recordType', 'record_type'],
96
+ ],
97
+ 'sylphx.notify.v1.EmailContent': [
98
+ ['senderAddress', 'sender_address'],
99
+ ['htmlBody', 'html_body'],
100
+ ['textBody', 'text_body'],
101
+ ],
102
+ 'sylphx.notify.v1.GetBroadcastRequest': [],
103
+ 'sylphx.notify.v1.GetInboxItemRequest': [],
104
+ 'sylphx.notify.v1.GetMessageRequest': [],
105
+ 'sylphx.notify.v1.GetPreferenceRequest': [],
106
+ 'sylphx.notify.v1.GetRecipientRequest': [],
107
+ 'sylphx.notify.v1.GetSenderRequest': [],
108
+ 'sylphx.notify.v1.GetSendingDomainRequest': [],
109
+ 'sylphx.notify.v1.GetSuppressionRequest': [],
110
+ 'sylphx.notify.v1.GetTemplateRequest': [],
111
+ 'sylphx.notify.v1.InboxContent': [
112
+ ['actionUri', 'action_uri'],
113
+ ],
114
+ 'sylphx.notify.v1.InboxItem': [
115
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
116
+ ['actionUri', 'action_uri'],
117
+ ],
118
+ 'sylphx.notify.v1.ListBroadcastsRequest': [
119
+ ['pageSize', 'page_size'],
120
+ ['pageToken', 'page_token'],
121
+ ['orderBy', 'order_by'],
122
+ ],
123
+ 'sylphx.notify.v1.ListBroadcastsResponse': [
124
+ ['broadcasts', 'broadcasts', 'sylphx.notify.v1.Broadcast'],
125
+ ['nextPageToken', 'next_page_token'],
126
+ ],
127
+ 'sylphx.notify.v1.ListInboxItemsRequest': [
128
+ ['pageSize', 'page_size'],
129
+ ['pageToken', 'page_token'],
130
+ ['orderBy', 'order_by'],
131
+ ],
132
+ 'sylphx.notify.v1.ListInboxItemsResponse': [
133
+ ['inboxItems', 'inbox_items', 'sylphx.notify.v1.InboxItem'],
134
+ ['nextPageToken', 'next_page_token'],
135
+ ],
136
+ 'sylphx.notify.v1.ListMessagesRequest': [
137
+ ['pageSize', 'page_size'],
138
+ ['pageToken', 'page_token'],
139
+ ['orderBy', 'order_by'],
140
+ ],
141
+ 'sylphx.notify.v1.ListMessagesResponse': [
142
+ ['messages', 'messages', 'sylphx.notify.v1.Message'],
143
+ ['nextPageToken', 'next_page_token'],
144
+ ],
145
+ 'sylphx.notify.v1.ListPreferencesRequest': [
146
+ ['pageSize', 'page_size'],
147
+ ['pageToken', 'page_token'],
148
+ ['orderBy', 'order_by'],
149
+ ],
150
+ 'sylphx.notify.v1.ListPreferencesResponse': [
151
+ ['preferences', 'preferences', 'sylphx.notify.v1.Preference'],
152
+ ['nextPageToken', 'next_page_token'],
153
+ ],
154
+ 'sylphx.notify.v1.ListRecipientsRequest': [
155
+ ['pageSize', 'page_size'],
156
+ ['pageToken', 'page_token'],
157
+ ['orderBy', 'order_by'],
158
+ ],
159
+ 'sylphx.notify.v1.ListRecipientsResponse': [
160
+ ['recipients', 'recipients', 'sylphx.notify.v1.Recipient'],
161
+ ['nextPageToken', 'next_page_token'],
162
+ ],
163
+ 'sylphx.notify.v1.ListSendersRequest': [
164
+ ['pageSize', 'page_size'],
165
+ ['pageToken', 'page_token'],
166
+ ['orderBy', 'order_by'],
167
+ ],
168
+ 'sylphx.notify.v1.ListSendersResponse': [
169
+ ['senders', 'senders', 'sylphx.notify.v1.Sender'],
170
+ ['nextPageToken', 'next_page_token'],
171
+ ],
172
+ 'sylphx.notify.v1.ListSendingDomainsRequest': [
173
+ ['pageSize', 'page_size'],
174
+ ['pageToken', 'page_token'],
175
+ ['orderBy', 'order_by'],
176
+ ],
177
+ 'sylphx.notify.v1.ListSendingDomainsResponse': [
178
+ ['sendingDomains', 'sending_domains', 'sylphx.notify.v1.SendingDomain'],
179
+ ['nextPageToken', 'next_page_token'],
180
+ ],
181
+ 'sylphx.notify.v1.ListSuppressionsRequest': [
182
+ ['pageSize', 'page_size'],
183
+ ['pageToken', 'page_token'],
184
+ ['orderBy', 'order_by'],
185
+ ],
186
+ 'sylphx.notify.v1.ListSuppressionsResponse': [
187
+ ['suppressions', 'suppressions', 'sylphx.notify.v1.Suppression'],
188
+ ['nextPageToken', 'next_page_token'],
189
+ ],
190
+ 'sylphx.notify.v1.ListTemplatesRequest': [
191
+ ['pageSize', 'page_size'],
192
+ ['pageToken', 'page_token'],
193
+ ['orderBy', 'order_by'],
194
+ ],
195
+ 'sylphx.notify.v1.ListTemplatesResponse': [
196
+ ['templates', 'templates', 'sylphx.notify.v1.Template'],
197
+ ['nextPageToken', 'next_page_token'],
198
+ ],
199
+ 'sylphx.notify.v1.MarkInboxItemReadRequest': [],
200
+ 'sylphx.notify.v1.MarkInboxItemUnreadRequest': [],
201
+ 'sylphx.notify.v1.Message': [
202
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
203
+ ['templateVersion', 'template_version'],
204
+ ['data', 'data', undefined, 'json'],
205
+ ['sendTime', 'send_time'],
206
+ ['deliveries', 'deliveries', 'sylphx.notify.v1.ChannelDelivery'],
207
+ ],
208
+ 'sylphx.notify.v1.Preference': [
209
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
210
+ ['digestInterval', 'digest_interval'],
211
+ ],
212
+ 'sylphx.notify.v1.PushContent': [
213
+ ['data', 'data', undefined, 'json'],
214
+ ],
215
+ 'sylphx.notify.v1.PushDevice': [
216
+ ['deviceToken', 'device_token'],
217
+ ['tokenLast4', 'token_last4'],
218
+ ],
219
+ 'sylphx.notify.v1.PushSender': [
220
+ ['appKey', 'app_key'],
221
+ ],
222
+ 'sylphx.notify.v1.Recipient': [
223
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
224
+ ['externalKey', 'external_key'],
225
+ ['emailAddresses', 'email_addresses'],
226
+ ['phoneNumbers', 'phone_numbers'],
227
+ ['devices', 'devices', 'sylphx.notify.v1.PushDevice'],
228
+ ['languageCode', 'language_code'],
229
+ ['timeZone', 'time_zone'],
230
+ ],
231
+ 'sylphx.notify.v1.SendBroadcastRequest': [
232
+ ['validateOnly', 'validate_only'],
233
+ ],
234
+ 'sylphx.notify.v1.Sender': [
235
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
236
+ ['spec', 'spec', 'sylphx.notify.v1.SenderSpec'],
237
+ ['status', 'status', 'sylphx.notify.v1.SenderStatus'],
238
+ ],
239
+ 'sylphx.notify.v1.SenderSpec': [
240
+ ['sms', 'sms', 'sylphx.notify.v1.SmsSender'],
241
+ ['push', 'push', 'sylphx.notify.v1.PushSender'],
242
+ ],
243
+ 'sylphx.notify.v1.SenderStatus': [
244
+ ['observedGeneration', 'observed_generation'],
245
+ ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
246
+ ['verificationNote', 'verification_note'],
247
+ ],
248
+ 'sylphx.notify.v1.SendingDomain': [
249
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
250
+ ['spec', 'spec', 'sylphx.notify.v1.SendingDomainSpec'],
251
+ ['status', 'status', 'sylphx.notify.v1.SendingDomainStatus'],
252
+ ],
253
+ 'sylphx.notify.v1.SendingDomainSpec': [
254
+ ['returnPathLabel', 'return_path_label'],
255
+ ],
256
+ 'sylphx.notify.v1.SendingDomainStatus': [
257
+ ['observedGeneration', 'observed_generation'],
258
+ ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
259
+ ['verifyTime', 'verify_time'],
260
+ ['dnsRecords', 'dns_records', 'sylphx.notify.v1.DnsRecord'],
261
+ ['dkimSelector', 'dkim_selector'],
262
+ ],
263
+ 'sylphx.notify.v1.SmsContent': [],
264
+ 'sylphx.notify.v1.SmsSender': [
265
+ ['phoneNumber', 'phone_number'],
266
+ ['senderKey', 'sender_key'],
267
+ ['regionCodes', 'region_codes'],
268
+ ],
269
+ 'sylphx.notify.v1.Suppression': [
270
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
271
+ ['sourceMessage', 'source_message'],
272
+ ],
273
+ 'sylphx.notify.v1.Template': [
274
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
275
+ ['spec', 'spec', 'sylphx.notify.v1.TemplateSpec'],
276
+ ['status', 'status', 'sylphx.notify.v1.TemplateStatus'],
277
+ ],
278
+ 'sylphx.notify.v1.TemplateSpec': [
279
+ ['email', 'email', 'sylphx.notify.v1.EmailContent'],
280
+ ['sms', 'sms', 'sylphx.notify.v1.SmsContent'],
281
+ ['push', 'push', 'sylphx.notify.v1.PushContent'],
282
+ ['inbox', 'inbox', 'sylphx.notify.v1.InboxContent'],
283
+ ],
284
+ 'sylphx.notify.v1.TemplateStatus': [
285
+ ['observedGeneration', 'observed_generation'],
286
+ ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
287
+ ],
288
+ 'sylphx.notify.v1.UpdateBroadcastRequest': [
289
+ ['broadcast', 'broadcast', 'sylphx.notify.v1.Broadcast'],
290
+ ['updateMask', 'update_mask'],
291
+ ['allowMissing', 'allow_missing'],
292
+ ['validateOnly', 'validate_only'],
293
+ ],
294
+ 'sylphx.notify.v1.UpdatePreferenceRequest': [
295
+ ['preference', 'preference', 'sylphx.notify.v1.Preference'],
296
+ ['updateMask', 'update_mask'],
297
+ ['allowMissing', 'allow_missing'],
298
+ ['validateOnly', 'validate_only'],
299
+ ],
300
+ 'sylphx.notify.v1.UpdateRecipientRequest': [
301
+ ['recipient', 'recipient', 'sylphx.notify.v1.Recipient'],
302
+ ['updateMask', 'update_mask'],
303
+ ['allowMissing', 'allow_missing'],
304
+ ['validateOnly', 'validate_only'],
305
+ ],
306
+ 'sylphx.notify.v1.UpdateSenderRequest': [
307
+ ['sender', 'sender', 'sylphx.notify.v1.Sender'],
308
+ ['updateMask', 'update_mask'],
309
+ ['allowMissing', 'allow_missing'],
310
+ ['validateOnly', 'validate_only'],
311
+ ],
312
+ 'sylphx.notify.v1.UpdateSendingDomainRequest': [
313
+ ['sendingDomain', 'sending_domain', 'sylphx.notify.v1.SendingDomain'],
314
+ ['updateMask', 'update_mask'],
315
+ ['allowMissing', 'allow_missing'],
316
+ ['validateOnly', 'validate_only'],
317
+ ],
318
+ 'sylphx.notify.v1.UpdateTemplateRequest': [
319
+ ['template', 'template', 'sylphx.notify.v1.Template'],
320
+ ['updateMask', 'update_mask'],
321
+ ['allowMissing', 'allow_missing'],
322
+ ['validateOnly', 'validate_only'],
323
+ ],
324
+ 'sylphx.notify.v1.VerifySenderRequest': [],
325
+ 'sylphx.notify.v1.VerifySendingDomainRequest': [],
326
+ });
327
+ /**
328
+ * NotifyService is Sylphx Notify: messages to people over email, SMS, push,
329
+ * and in-app inbox, with preferences, suppression, templates, and broadcasts
330
+ * (docs/services/notify/vision.md). Notify is built on Sylphx Events as an
331
+ * ordinary customer.
332
+ *
333
+ * Namespace of Sylphx Notify on `Sylphx`.
334
+ */
335
+ export class NotifyApi {
336
+ /** The `sending_domains` collection. */
337
+ sendingDomains;
338
+ /** The `senders` collection. */
339
+ senders;
340
+ /** The `recipients` collection. */
341
+ recipients;
342
+ /** The `preferences` collection. */
343
+ preferences;
344
+ /** The `suppressions` collection. */
345
+ suppressions;
346
+ /** The `templates` collection. */
347
+ templates;
348
+ /** The `messages` collection. */
349
+ messages;
350
+ /** The `inbox_items` collection. */
351
+ inboxItems;
352
+ /** The `broadcasts` collection. */
353
+ broadcasts;
354
+ constructor(client) {
355
+ this.sendingDomains = new SendingDomainsCollection(client);
356
+ this.senders = new SendersCollection(client);
357
+ this.recipients = new RecipientsCollection(client);
358
+ this.preferences = new PreferencesCollection(client);
359
+ this.suppressions = new SuppressionsCollection(client);
360
+ this.templates = new TemplatesCollection(client);
361
+ this.messages = new MessagesCollection(client);
362
+ this.inboxItems = new InboxItemsCollection(client);
363
+ this.broadcasts = new BroadcastsCollection(client);
364
+ }
365
+ }
366
+ /** `sending_domains` of Sylphx Notify: Resource type `notify.sylphx.com/SendingDomain`. */
367
+ export class SendingDomainsCollection {
368
+ client;
369
+ constructor(client) {
370
+ this.client = client;
371
+ }
372
+ /**
373
+ * Gets a sending domain.
374
+ *
375
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/sending_domains/*}` · permission `notify:read` · effect `read`
376
+ *
377
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
378
+ */
379
+ async get(request) {
380
+ return this.client.call({
381
+ method: 'GET',
382
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/sending_domains/*', 'name')}`,
383
+ responseType: 'sylphx.notify.v1.SendingDomain',
384
+ mutation: false,
385
+ });
386
+ }
387
+ /**
388
+ * Lists sending domains.
389
+ *
390
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/sending_domains` · permission `notify:read` · effect `read`
391
+ *
392
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
393
+ */
394
+ async list(request) {
395
+ return this.client.call({
396
+ method: 'GET',
397
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/sending_domains`,
398
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
399
+ responseType: 'sylphx.notify.v1.ListSendingDomainsResponse',
400
+ mutation: false,
401
+ });
402
+ }
403
+ /** Every item of every page of `list`. */
404
+ async *listAll(request) {
405
+ let next = request;
406
+ for (;;) {
407
+ const page = await this.list(next);
408
+ yield* page.sendingDomains ?? [];
409
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
410
+ return;
411
+ next = { ...request, pageToken: page.nextPageToken };
412
+ }
413
+ }
414
+ /**
415
+ * Creates a sending domain.
416
+ *
417
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/sending_domains` · permission `notify:write` · effect `write`
418
+ *
419
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
420
+ */
421
+ async create(request) {
422
+ return this.client.call({
423
+ method: 'POST',
424
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/sending_domains`,
425
+ query: { sending_domain_id: request.sendingDomainId, validate_only: request.validateOnly },
426
+ body: request.sendingDomain ?? {},
427
+ bodyType: 'sylphx.notify.v1.SendingDomain',
428
+ responseType: 'sylphx.notify.v1.SendingDomain',
429
+ mutation: true,
430
+ });
431
+ }
432
+ /**
433
+ * Updates a sending domain.
434
+ *
435
+ * `PATCH /v1/{sending_domain.name=orgs/*\/projects/*\/envs/*\/sending_domains/*}` · permission `notify:write` · effect `write`
436
+ *
437
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
438
+ */
439
+ async update(request) {
440
+ return this.client.call({
441
+ method: 'PATCH',
442
+ path: `/v1/${runtime.pathParam(request.sendingDomain?.name, 'orgs/*/projects/*/envs/*/sending_domains/*', 'sending_domain.name')}`,
443
+ query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
444
+ body: request.sendingDomain ?? {},
445
+ bodyType: 'sylphx.notify.v1.SendingDomain',
446
+ responseType: 'sylphx.notify.v1.SendingDomain',
447
+ mutation: true,
448
+ });
449
+ }
450
+ /**
451
+ * Deletes a sending domain.
452
+ *
453
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/sending_domains/*}` · permission `notify:write` · effect `destructive`
454
+ *
455
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
456
+ */
457
+ async delete(request) {
458
+ return this.client.call({
459
+ method: 'DELETE',
460
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/sending_domains/*', 'name')}`,
461
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
462
+ mutation: true,
463
+ });
464
+ }
465
+ /**
466
+ * Checks the domain's DNS records now instead of on the next sweep.
467
+ *
468
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/sending_domains/*}:verify` · permission `notify:write` · effect `write`
469
+ *
470
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `RATE_LIMITED`.
471
+ */
472
+ async verify(request) {
473
+ return this.client.call({
474
+ method: 'POST',
475
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/sending_domains/*', 'name')}:verify`,
476
+ body: runtime.omit(request, ['name']),
477
+ bodyType: 'sylphx.notify.v1.VerifySendingDomainRequest',
478
+ responseType: 'sylphx.notify.v1.SendingDomain',
479
+ mutation: true,
480
+ });
481
+ }
482
+ }
483
+ /** `senders` of Sylphx Notify: Resource type `notify.sylphx.com/Sender`. */
484
+ export class SendersCollection {
485
+ client;
486
+ constructor(client) {
487
+ this.client = client;
488
+ }
489
+ /**
490
+ * Gets a sender.
491
+ *
492
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/senders/*}` · permission `notify:read` · effect `read`
493
+ *
494
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
495
+ */
496
+ async get(request) {
497
+ return this.client.call({
498
+ method: 'GET',
499
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/senders/*', 'name')}`,
500
+ responseType: 'sylphx.notify.v1.Sender',
501
+ mutation: false,
502
+ });
503
+ }
504
+ /**
505
+ * Lists senders.
506
+ *
507
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/senders` · permission `notify:read` · effect `read`
508
+ *
509
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
510
+ */
511
+ async list(request) {
512
+ return this.client.call({
513
+ method: 'GET',
514
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/senders`,
515
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
516
+ responseType: 'sylphx.notify.v1.ListSendersResponse',
517
+ mutation: false,
518
+ });
519
+ }
520
+ /** Every item of every page of `list`. */
521
+ async *listAll(request) {
522
+ let next = request;
523
+ for (;;) {
524
+ const page = await this.list(next);
525
+ yield* page.senders ?? [];
526
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
527
+ return;
528
+ next = { ...request, pageToken: page.nextPageToken };
529
+ }
530
+ }
531
+ /**
532
+ * Creates a sender.
533
+ *
534
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/senders` · permission `notify:write` · effect `write`
535
+ *
536
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
537
+ */
538
+ async create(request) {
539
+ return this.client.call({
540
+ method: 'POST',
541
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/senders`,
542
+ query: { sender_id: request.senderId, validate_only: request.validateOnly },
543
+ body: request.sender ?? {},
544
+ bodyType: 'sylphx.notify.v1.Sender',
545
+ responseType: 'sylphx.notify.v1.Sender',
546
+ mutation: true,
547
+ });
548
+ }
549
+ /**
550
+ * Updates a sender.
551
+ *
552
+ * `PATCH /v1/{sender.name=orgs/*\/projects/*\/envs/*\/senders/*}` · permission `notify:write` · effect `write`
553
+ *
554
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
555
+ */
556
+ async update(request) {
557
+ return this.client.call({
558
+ method: 'PATCH',
559
+ path: `/v1/${runtime.pathParam(request.sender?.name, 'orgs/*/projects/*/envs/*/senders/*', 'sender.name')}`,
560
+ query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
561
+ body: request.sender ?? {},
562
+ bodyType: 'sylphx.notify.v1.Sender',
563
+ responseType: 'sylphx.notify.v1.Sender',
564
+ mutation: true,
565
+ });
566
+ }
567
+ /**
568
+ * Deletes a sender.
569
+ *
570
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/senders/*}` · permission `notify:write` · effect `destructive`
571
+ *
572
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
573
+ */
574
+ async delete(request) {
575
+ return this.client.call({
576
+ method: 'DELETE',
577
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/senders/*', 'name')}`,
578
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
579
+ mutation: true,
580
+ });
581
+ }
582
+ /**
583
+ * Re-checks the sender's registration or credentials now.
584
+ *
585
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/senders/*}:verify` · permission `notify:write` · effect `write`
586
+ *
587
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `RATE_LIMITED`.
588
+ */
589
+ async verify(request) {
590
+ return this.client.call({
591
+ method: 'POST',
592
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/senders/*', 'name')}:verify`,
593
+ body: runtime.omit(request, ['name']),
594
+ bodyType: 'sylphx.notify.v1.VerifySenderRequest',
595
+ responseType: 'sylphx.notify.v1.Sender',
596
+ mutation: true,
597
+ });
598
+ }
599
+ }
600
+ /** `recipients` of Sylphx Notify: Resource type `notify.sylphx.com/Recipient`. */
601
+ export class RecipientsCollection {
602
+ client;
603
+ constructor(client) {
604
+ this.client = client;
605
+ }
606
+ /**
607
+ * Gets a recipient.
608
+ *
609
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*}` · permission `notify:read` · effect `read`
610
+ *
611
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
612
+ */
613
+ async get(request) {
614
+ return this.client.call({
615
+ method: 'GET',
616
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/recipients/*', 'name')}`,
617
+ responseType: 'sylphx.notify.v1.Recipient',
618
+ mutation: false,
619
+ });
620
+ }
621
+ /**
622
+ * Lists recipients.
623
+ *
624
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/recipients` · permission `notify:read` · effect `read`
625
+ *
626
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
627
+ */
628
+ async list(request) {
629
+ return this.client.call({
630
+ method: 'GET',
631
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/recipients`,
632
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
633
+ responseType: 'sylphx.notify.v1.ListRecipientsResponse',
634
+ mutation: false,
635
+ });
636
+ }
637
+ /** Every item of every page of `list`. */
638
+ async *listAll(request) {
639
+ let next = request;
640
+ for (;;) {
641
+ const page = await this.list(next);
642
+ yield* page.recipients ?? [];
643
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
644
+ return;
645
+ next = { ...request, pageToken: page.nextPageToken };
646
+ }
647
+ }
648
+ /**
649
+ * Creates a recipient.
650
+ *
651
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/recipients` · permission `notify:write` · effect `write`
652
+ *
653
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
654
+ */
655
+ async create(request) {
656
+ return this.client.call({
657
+ method: 'POST',
658
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/recipients`,
659
+ query: { recipient_id: request.recipientId, validate_only: request.validateOnly },
660
+ body: request.recipient ?? {},
661
+ bodyType: 'sylphx.notify.v1.Recipient',
662
+ responseType: 'sylphx.notify.v1.Recipient',
663
+ mutation: true,
664
+ });
665
+ }
666
+ /**
667
+ * Updates a recipient.
668
+ *
669
+ * `PATCH /v1/{recipient.name=orgs/*\/projects/*\/envs/*\/recipients/*}` · permission `notify:write` · effect `write`
670
+ *
671
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
672
+ */
673
+ async update(request) {
674
+ return this.client.call({
675
+ method: 'PATCH',
676
+ path: `/v1/${runtime.pathParam(request.recipient?.name, 'orgs/*/projects/*/envs/*/recipients/*', 'recipient.name')}`,
677
+ query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
678
+ body: request.recipient ?? {},
679
+ bodyType: 'sylphx.notify.v1.Recipient',
680
+ responseType: 'sylphx.notify.v1.Recipient',
681
+ mutation: true,
682
+ });
683
+ }
684
+ /**
685
+ * Deletes a recipient.
686
+ *
687
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*}` · permission `notify:write` · effect `destructive`
688
+ *
689
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
690
+ */
691
+ async delete(request) {
692
+ return this.client.call({
693
+ method: 'DELETE',
694
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/recipients/*', 'name')}`,
695
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly, force: request.force },
696
+ mutation: true,
697
+ });
698
+ }
699
+ }
700
+ /** `preferences` of Sylphx Notify: Resource type `notify.sylphx.com/Preference`. */
701
+ export class PreferencesCollection {
702
+ client;
703
+ constructor(client) {
704
+ this.client = client;
705
+ }
706
+ /**
707
+ * Gets a preference.
708
+ *
709
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*\/preferences/*}` · permission `notify:read` · effect `read`
710
+ *
711
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
712
+ */
713
+ async get(request) {
714
+ return this.client.call({
715
+ method: 'GET',
716
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/recipients/*/preferences/*', 'name')}`,
717
+ responseType: 'sylphx.notify.v1.Preference',
718
+ mutation: false,
719
+ });
720
+ }
721
+ /**
722
+ * Lists preferences.
723
+ *
724
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/recipients/*}/preferences` · permission `notify:read` · effect `read`
725
+ *
726
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
727
+ */
728
+ async list(request) {
729
+ return this.client.call({
730
+ method: 'GET',
731
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/recipients/*', 'parent')}/preferences`,
732
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
733
+ responseType: 'sylphx.notify.v1.ListPreferencesResponse',
734
+ mutation: false,
735
+ });
736
+ }
737
+ /** Every item of every page of `list`. */
738
+ async *listAll(request) {
739
+ let next = request;
740
+ for (;;) {
741
+ const page = await this.list(next);
742
+ yield* page.preferences ?? [];
743
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
744
+ return;
745
+ next = { ...request, pageToken: page.nextPageToken };
746
+ }
747
+ }
748
+ /**
749
+ * Updates a preference.
750
+ *
751
+ * `PATCH /v1/{preference.name=orgs/*\/projects/*\/envs/*\/recipients/*\/preferences/*}` · permission `notify:write` · effect `write`
752
+ *
753
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
754
+ */
755
+ async update(request) {
756
+ return this.client.call({
757
+ method: 'PATCH',
758
+ path: `/v1/${runtime.pathParam(request.preference?.name, 'orgs/*/projects/*/envs/*/recipients/*/preferences/*', 'preference.name')}`,
759
+ query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
760
+ body: request.preference ?? {},
761
+ bodyType: 'sylphx.notify.v1.Preference',
762
+ responseType: 'sylphx.notify.v1.Preference',
763
+ mutation: true,
764
+ });
765
+ }
766
+ /**
767
+ * Deletes a preference.
768
+ *
769
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*\/preferences/*}` · permission `notify:write` · effect `destructive`
770
+ *
771
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
772
+ */
773
+ async delete(request) {
774
+ return this.client.call({
775
+ method: 'DELETE',
776
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/recipients/*/preferences/*', 'name')}`,
777
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
778
+ mutation: true,
779
+ });
780
+ }
781
+ }
782
+ /** `suppressions` of Sylphx Notify: Resource type `notify.sylphx.com/Suppression`. */
783
+ export class SuppressionsCollection {
784
+ client;
785
+ constructor(client) {
786
+ this.client = client;
787
+ }
788
+ /**
789
+ * Gets a suppression.
790
+ *
791
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/suppressions/*}` · permission `notify:read` · effect `read`
792
+ *
793
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
794
+ */
795
+ async get(request) {
796
+ return this.client.call({
797
+ method: 'GET',
798
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/suppressions/*', 'name')}`,
799
+ responseType: 'sylphx.notify.v1.Suppression',
800
+ mutation: false,
801
+ });
802
+ }
803
+ /**
804
+ * Lists suppressions.
805
+ *
806
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/suppressions` · permission `notify:read` · effect `read`
807
+ *
808
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
809
+ */
810
+ async list(request) {
811
+ return this.client.call({
812
+ method: 'GET',
813
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/suppressions`,
814
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
815
+ responseType: 'sylphx.notify.v1.ListSuppressionsResponse',
816
+ mutation: false,
817
+ });
818
+ }
819
+ /** Every item of every page of `list`. */
820
+ async *listAll(request) {
821
+ let next = request;
822
+ for (;;) {
823
+ const page = await this.list(next);
824
+ yield* page.suppressions ?? [];
825
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
826
+ return;
827
+ next = { ...request, pageToken: page.nextPageToken };
828
+ }
829
+ }
830
+ /**
831
+ * Creates a suppression.
832
+ *
833
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/suppressions` · permission `notify:write` · effect `write`
834
+ *
835
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
836
+ */
837
+ async create(request) {
838
+ return this.client.call({
839
+ method: 'POST',
840
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/suppressions`,
841
+ query: { suppression_id: request.suppressionId, validate_only: request.validateOnly },
842
+ body: request.suppression ?? {},
843
+ bodyType: 'sylphx.notify.v1.Suppression',
844
+ responseType: 'sylphx.notify.v1.Suppression',
845
+ mutation: true,
846
+ });
847
+ }
848
+ /**
849
+ * Deletes a suppression.
850
+ *
851
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/suppressions/*}` · permission `notify:write` · effect `destructive`
852
+ *
853
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
854
+ */
855
+ async delete(request) {
856
+ return this.client.call({
857
+ method: 'DELETE',
858
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/suppressions/*', 'name')}`,
859
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
860
+ mutation: true,
861
+ });
862
+ }
863
+ }
864
+ /** `templates` of Sylphx Notify: Resource type `notify.sylphx.com/Template`. */
865
+ export class TemplatesCollection {
866
+ client;
867
+ constructor(client) {
868
+ this.client = client;
869
+ }
870
+ /**
871
+ * Gets a template.
872
+ *
873
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/templates/*}` · permission `notify:read` · effect `read`
874
+ *
875
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
876
+ */
877
+ async get(request) {
878
+ return this.client.call({
879
+ method: 'GET',
880
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/templates/*', 'name')}`,
881
+ responseType: 'sylphx.notify.v1.Template',
882
+ mutation: false,
883
+ });
884
+ }
885
+ /**
886
+ * Lists templates.
887
+ *
888
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/templates` · permission `notify:read` · effect `read`
889
+ *
890
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
891
+ */
892
+ async list(request) {
893
+ return this.client.call({
894
+ method: 'GET',
895
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/templates`,
896
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
897
+ responseType: 'sylphx.notify.v1.ListTemplatesResponse',
898
+ mutation: false,
899
+ });
900
+ }
901
+ /** Every item of every page of `list`. */
902
+ async *listAll(request) {
903
+ let next = request;
904
+ for (;;) {
905
+ const page = await this.list(next);
906
+ yield* page.templates ?? [];
907
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
908
+ return;
909
+ next = { ...request, pageToken: page.nextPageToken };
910
+ }
911
+ }
912
+ /**
913
+ * Creates a template.
914
+ *
915
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/templates` · permission `notify:write` · effect `write`
916
+ *
917
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
918
+ */
919
+ async create(request) {
920
+ return this.client.call({
921
+ method: 'POST',
922
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/templates`,
923
+ query: { template_id: request.templateId, validate_only: request.validateOnly },
924
+ body: request.template ?? {},
925
+ bodyType: 'sylphx.notify.v1.Template',
926
+ responseType: 'sylphx.notify.v1.Template',
927
+ mutation: true,
928
+ });
929
+ }
930
+ /**
931
+ * Updates a template.
932
+ *
933
+ * `PATCH /v1/{template.name=orgs/*\/projects/*\/envs/*\/templates/*}` · permission `notify:write` · effect `write`
934
+ *
935
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
936
+ */
937
+ async update(request) {
938
+ return this.client.call({
939
+ method: 'PATCH',
940
+ path: `/v1/${runtime.pathParam(request.template?.name, 'orgs/*/projects/*/envs/*/templates/*', 'template.name')}`,
941
+ query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
942
+ body: request.template ?? {},
943
+ bodyType: 'sylphx.notify.v1.Template',
944
+ responseType: 'sylphx.notify.v1.Template',
945
+ mutation: true,
946
+ });
947
+ }
948
+ /**
949
+ * Deletes a template.
950
+ *
951
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/templates/*}` · permission `notify:write` · effect `destructive`
952
+ *
953
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
954
+ */
955
+ async delete(request) {
956
+ return this.client.call({
957
+ method: 'DELETE',
958
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/templates/*', 'name')}`,
959
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
960
+ mutation: true,
961
+ });
962
+ }
963
+ }
964
+ /** `messages` of Sylphx Notify: Resource type `notify.sylphx.com/Message`. */
965
+ export class MessagesCollection {
966
+ client;
967
+ constructor(client) {
968
+ this.client = client;
969
+ }
970
+ /**
971
+ * Gets a message.
972
+ *
973
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/messages/*}` · permission `notify:read` · effect `read`
974
+ *
975
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
976
+ */
977
+ async get(request) {
978
+ return this.client.call({
979
+ method: 'GET',
980
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/messages/*', 'name')}`,
981
+ responseType: 'sylphx.notify.v1.Message',
982
+ mutation: false,
983
+ });
984
+ }
985
+ /**
986
+ * Lists messages.
987
+ *
988
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/messages` · permission `notify:read` · effect `read`
989
+ *
990
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
991
+ */
992
+ async list(request) {
993
+ return this.client.call({
994
+ method: 'GET',
995
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/messages`,
996
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
997
+ responseType: 'sylphx.notify.v1.ListMessagesResponse',
998
+ mutation: false,
999
+ });
1000
+ }
1001
+ /** Every item of every page of `list`. */
1002
+ async *listAll(request) {
1003
+ let next = request;
1004
+ for (;;) {
1005
+ const page = await this.list(next);
1006
+ yield* page.messages ?? [];
1007
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
1008
+ return;
1009
+ next = { ...request, pageToken: page.nextPageToken };
1010
+ }
1011
+ }
1012
+ /**
1013
+ * Sends a Message.
1014
+ *
1015
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/messages` · permission `notify:send` · effect `write`
1016
+ *
1017
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1018
+ */
1019
+ async create(request) {
1020
+ return this.client.call({
1021
+ method: 'POST',
1022
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/messages`,
1023
+ query: { message_id: request.messageId, validate_only: request.validateOnly },
1024
+ body: request.message ?? {},
1025
+ bodyType: 'sylphx.notify.v1.Message',
1026
+ responseType: 'sylphx.notify.v1.Message',
1027
+ mutation: true,
1028
+ });
1029
+ }
1030
+ /**
1031
+ * Cancels a Message whose deliveries have not been handed off.
1032
+ *
1033
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/messages/*}:cancel` · permission `notify:send` · effect `destructive`
1034
+ *
1035
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1036
+ */
1037
+ async cancel(request) {
1038
+ return this.client.call({
1039
+ method: 'POST',
1040
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/messages/*', 'name')}:cancel`,
1041
+ body: runtime.omit(request, ['name']),
1042
+ bodyType: 'sylphx.notify.v1.CancelMessageRequest',
1043
+ responseType: 'sylphx.notify.v1.Message',
1044
+ mutation: true,
1045
+ });
1046
+ }
1047
+ }
1048
+ /** `inbox_items` of Sylphx Notify: Resource type `notify.sylphx.com/InboxItem`. */
1049
+ export class InboxItemsCollection {
1050
+ client;
1051
+ constructor(client) {
1052
+ this.client = client;
1053
+ }
1054
+ /**
1055
+ * Gets an inbox item.
1056
+ *
1057
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*\/inbox_items/*}` · permission `notify:read` · effect `read`
1058
+ *
1059
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1060
+ */
1061
+ async get(request) {
1062
+ return this.client.call({
1063
+ method: 'GET',
1064
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/recipients/*/inbox_items/*', 'name')}`,
1065
+ responseType: 'sylphx.notify.v1.InboxItem',
1066
+ mutation: false,
1067
+ });
1068
+ }
1069
+ /**
1070
+ * Lists inbox items.
1071
+ *
1072
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/recipients/*}/inbox_items` · permission `notify:read` · effect `read`
1073
+ *
1074
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1075
+ */
1076
+ async list(request) {
1077
+ return this.client.call({
1078
+ method: 'GET',
1079
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/recipients/*', 'parent')}/inbox_items`,
1080
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
1081
+ responseType: 'sylphx.notify.v1.ListInboxItemsResponse',
1082
+ mutation: false,
1083
+ });
1084
+ }
1085
+ /** Every item of every page of `list`. */
1086
+ async *listAll(request) {
1087
+ let next = request;
1088
+ for (;;) {
1089
+ const page = await this.list(next);
1090
+ yield* page.inboxItems ?? [];
1091
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
1092
+ return;
1093
+ next = { ...request, pageToken: page.nextPageToken };
1094
+ }
1095
+ }
1096
+ /**
1097
+ * Marks an inbox item read.
1098
+ *
1099
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*\/inbox_items/*}:markRead` · permission `notify:write` · effect `write`
1100
+ *
1101
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1102
+ */
1103
+ async markRead(request) {
1104
+ return this.client.call({
1105
+ method: 'POST',
1106
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/recipients/*/inbox_items/*', 'name')}:markRead`,
1107
+ body: runtime.omit(request, ['name']),
1108
+ bodyType: 'sylphx.notify.v1.MarkInboxItemReadRequest',
1109
+ responseType: 'sylphx.notify.v1.InboxItem',
1110
+ mutation: true,
1111
+ });
1112
+ }
1113
+ /**
1114
+ * Marks an inbox item unread.
1115
+ *
1116
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*\/inbox_items/*}:markUnread` · permission `notify:write` · effect `write`
1117
+ *
1118
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1119
+ */
1120
+ async markUnread(request) {
1121
+ return this.client.call({
1122
+ method: 'POST',
1123
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/recipients/*/inbox_items/*', 'name')}:markUnread`,
1124
+ body: runtime.omit(request, ['name']),
1125
+ bodyType: 'sylphx.notify.v1.MarkInboxItemUnreadRequest',
1126
+ responseType: 'sylphx.notify.v1.InboxItem',
1127
+ mutation: true,
1128
+ });
1129
+ }
1130
+ /**
1131
+ * Archives an inbox item.
1132
+ *
1133
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/recipients/*\/inbox_items/*}:archive` · permission `notify:write` · effect `write`
1134
+ *
1135
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1136
+ */
1137
+ async archive(request) {
1138
+ return this.client.call({
1139
+ method: 'POST',
1140
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/recipients/*/inbox_items/*', 'name')}:archive`,
1141
+ body: runtime.omit(request, ['name']),
1142
+ bodyType: 'sylphx.notify.v1.ArchiveInboxItemRequest',
1143
+ responseType: 'sylphx.notify.v1.InboxItem',
1144
+ mutation: true,
1145
+ });
1146
+ }
1147
+ }
1148
+ /** `broadcasts` of Sylphx Notify: Resource type `notify.sylphx.com/Broadcast`. */
1149
+ export class BroadcastsCollection {
1150
+ client;
1151
+ constructor(client) {
1152
+ this.client = client;
1153
+ }
1154
+ /**
1155
+ * Gets a broadcast.
1156
+ *
1157
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/broadcasts/*}` · permission `notify:read` · effect `read`
1158
+ *
1159
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1160
+ */
1161
+ async get(request) {
1162
+ return this.client.call({
1163
+ method: 'GET',
1164
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/broadcasts/*', 'name')}`,
1165
+ responseType: 'sylphx.notify.v1.Broadcast',
1166
+ mutation: false,
1167
+ });
1168
+ }
1169
+ /**
1170
+ * Lists broadcasts.
1171
+ *
1172
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/broadcasts` · permission `notify:read` · effect `read`
1173
+ *
1174
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1175
+ */
1176
+ async list(request) {
1177
+ return this.client.call({
1178
+ method: 'GET',
1179
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/broadcasts`,
1180
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
1181
+ responseType: 'sylphx.notify.v1.ListBroadcastsResponse',
1182
+ mutation: false,
1183
+ });
1184
+ }
1185
+ /** Every item of every page of `list`. */
1186
+ async *listAll(request) {
1187
+ let next = request;
1188
+ for (;;) {
1189
+ const page = await this.list(next);
1190
+ yield* page.broadcasts ?? [];
1191
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
1192
+ return;
1193
+ next = { ...request, pageToken: page.nextPageToken };
1194
+ }
1195
+ }
1196
+ /**
1197
+ * Creates a broadcast.
1198
+ *
1199
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/broadcasts` · permission `notify:write` · effect `write`
1200
+ *
1201
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1202
+ */
1203
+ async create(request) {
1204
+ return this.client.call({
1205
+ method: 'POST',
1206
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/broadcasts`,
1207
+ query: { broadcast_id: request.broadcastId, validate_only: request.validateOnly },
1208
+ body: request.broadcast ?? {},
1209
+ bodyType: 'sylphx.notify.v1.Broadcast',
1210
+ responseType: 'sylphx.notify.v1.Broadcast',
1211
+ mutation: true,
1212
+ });
1213
+ }
1214
+ /**
1215
+ * Updates a broadcast.
1216
+ *
1217
+ * `PATCH /v1/{broadcast.name=orgs/*\/projects/*\/envs/*\/broadcasts/*}` · permission `notify:write` · effect `write`
1218
+ *
1219
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1220
+ */
1221
+ async update(request) {
1222
+ return this.client.call({
1223
+ method: 'PATCH',
1224
+ path: `/v1/${runtime.pathParam(request.broadcast?.name, 'orgs/*/projects/*/envs/*/broadcasts/*', 'broadcast.name')}`,
1225
+ query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
1226
+ body: request.broadcast ?? {},
1227
+ bodyType: 'sylphx.notify.v1.Broadcast',
1228
+ responseType: 'sylphx.notify.v1.Broadcast',
1229
+ mutation: true,
1230
+ });
1231
+ }
1232
+ /**
1233
+ * Deletes a broadcast.
1234
+ *
1235
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/broadcasts/*}` · permission `notify:write` · effect `destructive`
1236
+ *
1237
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1238
+ */
1239
+ async delete(request) {
1240
+ return this.client.call({
1241
+ method: 'DELETE',
1242
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/broadcasts/*', 'name')}`,
1243
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
1244
+ mutation: true,
1245
+ });
1246
+ }
1247
+ /**
1248
+ * Sends a Broadcast now.
1249
+ *
1250
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/broadcasts/*}:send` · permission `notify:send` · effect `write`
1251
+ *
1252
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `ETAG_MISMATCH`.
1253
+ */
1254
+ async send(request) {
1255
+ return this.client.call({
1256
+ method: 'POST',
1257
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/broadcasts/*', 'name')}:send`,
1258
+ body: runtime.omit(request, ['name']),
1259
+ bodyType: 'sylphx.notify.v1.SendBroadcastRequest',
1260
+ responseType: 'sylphx.notify.v1.Broadcast',
1261
+ mutation: true,
1262
+ });
1263
+ }
1264
+ /**
1265
+ * Cancels a Broadcast; messages already admitted still deliver.
1266
+ *
1267
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/broadcasts/*}:cancel` · permission `notify:send` · effect `destructive`
1268
+ *
1269
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `ETAG_MISMATCH`.
1270
+ */
1271
+ async cancel(request) {
1272
+ return this.client.call({
1273
+ method: 'POST',
1274
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/broadcasts/*', 'name')}:cancel`,
1275
+ body: runtime.omit(request, ['name']),
1276
+ bodyType: 'sylphx.notify.v1.CancelBroadcastRequest',
1277
+ responseType: 'sylphx.notify.v1.Broadcast',
1278
+ mutation: true,
1279
+ });
1280
+ }
1281
+ }
1282
+ //# sourceMappingURL=notify.js.map