@sylphx/sdk 0.28.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 -118
  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 -33656
  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 -112
  82. package/dist/connect.d.ts +0 -2838
  83. package/dist/connect.mjs +0 -220
  84. package/dist/connect.mjs.map +0 -1
  85. package/dist/health/index.d.ts +0 -1394
  86. package/dist/health/index.mjs +0 -1394
  87. package/dist/health/index.mjs.map +0 -1
  88. package/dist/index.mjs +0 -38429
  89. package/dist/index.mjs.map +0 -1
  90. package/dist/nextjs/index.d.ts +0 -724
  91. package/dist/nextjs/index.mjs +0 -3332
  92. package/dist/nextjs/index.mjs.map +0 -1
  93. package/dist/react/index.d.ts +0 -13066
  94. package/dist/react/index.mjs +0 -35329
  95. package/dist/react/index.mjs.map +0 -1
  96. package/dist/server/index.d.ts +0 -2000
  97. package/dist/server/index.mjs +0 -3446
  98. package/dist/server/index.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/events.js ADDED
@@ -0,0 +1,1227 @@
1
+ // @generated by sylphx-gen 0.1.0 from contracts@cdf6473b36ca648759a7f4b1fc21554541d52a947477e6e9d1d7a6a9a79bdaa0. Do not edit.
2
+ // `sylphx.events.v1`.
3
+ import * as runtime from './runtime.js';
4
+ import './common.js';
5
+ runtime.registerSchemas({
6
+ 'sylphx.events.v1.AckQueueMessagesRequest': [
7
+ ['leases', 'leases', 'sylphx.events.v1.MessageLease'],
8
+ ],
9
+ 'sylphx.events.v1.AckQueueMessagesResponse': [
10
+ ['staleLeases', 'stale_leases', 'sylphx.events.v1.MessageLease'],
11
+ ],
12
+ 'sylphx.events.v1.CloudEvent': [
13
+ ['eventTime', 'event_time'],
14
+ ['dataContentType', 'data_content_type'],
15
+ ['dataSchema', 'data_schema'],
16
+ ['data', 'data', undefined, 'json'],
17
+ ['extensions', 'extensions', undefined, 'map'],
18
+ ],
19
+ 'sylphx.events.v1.CreateInboundEndpointRequest': [
20
+ ['inboundEndpointId', 'inbound_endpoint_id'],
21
+ ['inboundEndpoint', 'inbound_endpoint', 'sylphx.events.v1.InboundEndpoint'],
22
+ ['validateOnly', 'validate_only'],
23
+ ],
24
+ 'sylphx.events.v1.CreateQueueRequest': [
25
+ ['queueId', 'queue_id'],
26
+ ['queue', 'queue', 'sylphx.events.v1.Queue'],
27
+ ['validateOnly', 'validate_only'],
28
+ ],
29
+ 'sylphx.events.v1.CreateRealtimeChannelRequest': [
30
+ ['realtimeChannelId', 'realtime_channel_id'],
31
+ ['realtimeChannel', 'realtime_channel', 'sylphx.events.v1.RealtimeChannel'],
32
+ ['validateOnly', 'validate_only'],
33
+ ],
34
+ 'sylphx.events.v1.CreateSubscriptionRequest': [
35
+ ['subscriptionId', 'subscription_id'],
36
+ ['subscription', 'subscription', 'sylphx.events.v1.Subscription'],
37
+ ['validateOnly', 'validate_only'],
38
+ ],
39
+ 'sylphx.events.v1.CreateTopicRequest': [
40
+ ['topicId', 'topic_id'],
41
+ ['topic', 'topic', 'sylphx.events.v1.Topic'],
42
+ ['validateOnly', 'validate_only'],
43
+ ],
44
+ 'sylphx.events.v1.CreateWebhookEndpointRequest': [
45
+ ['webhookEndpointId', 'webhook_endpoint_id'],
46
+ ['webhookEndpoint', 'webhook_endpoint', 'sylphx.events.v1.WebhookEndpoint'],
47
+ ['validateOnly', 'validate_only'],
48
+ ],
49
+ 'sylphx.events.v1.DeleteInboundEndpointRequest': [
50
+ ['allowMissing', 'allow_missing'],
51
+ ['validateOnly', 'validate_only'],
52
+ ],
53
+ 'sylphx.events.v1.DeleteQueueRequest': [
54
+ ['allowMissing', 'allow_missing'],
55
+ ['validateOnly', 'validate_only'],
56
+ ],
57
+ 'sylphx.events.v1.DeleteRealtimeChannelRequest': [
58
+ ['allowMissing', 'allow_missing'],
59
+ ['validateOnly', 'validate_only'],
60
+ ],
61
+ 'sylphx.events.v1.DeleteSubscriptionRequest': [
62
+ ['allowMissing', 'allow_missing'],
63
+ ['validateOnly', 'validate_only'],
64
+ ],
65
+ 'sylphx.events.v1.DeleteTopicRequest': [
66
+ ['allowMissing', 'allow_missing'],
67
+ ['validateOnly', 'validate_only'],
68
+ ],
69
+ 'sylphx.events.v1.DeleteWebhookEndpointRequest': [
70
+ ['allowMissing', 'allow_missing'],
71
+ ['validateOnly', 'validate_only'],
72
+ ],
73
+ 'sylphx.events.v1.DeliveryAttempt': [
74
+ ['attemptNumber', 'attempt_number'],
75
+ ['httpStatus', 'http_status'],
76
+ ['errorCode', 'error_code'],
77
+ ['startTime', 'start_time'],
78
+ ['endTime', 'end_time'],
79
+ ['evidenceDigest', 'evidence_digest'],
80
+ ],
81
+ 'sylphx.events.v1.Event': [
82
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
83
+ ['eventId', 'event_id'],
84
+ ['eventTime', 'event_time'],
85
+ ['dataContentType', 'data_content_type'],
86
+ ['dataSchema', 'data_schema'],
87
+ ['data', 'data', undefined, 'json'],
88
+ ['extensions', 'extensions', undefined, 'map'],
89
+ ['admitTime', 'admit_time'],
90
+ ],
91
+ 'sylphx.events.v1.GetEventRequest': [],
92
+ 'sylphx.events.v1.GetInboundEndpointRequest': [],
93
+ 'sylphx.events.v1.GetQueueRequest': [],
94
+ 'sylphx.events.v1.GetRealtimeChannelRequest': [],
95
+ 'sylphx.events.v1.GetSubscriptionRequest': [],
96
+ 'sylphx.events.v1.GetTopicRequest': [],
97
+ 'sylphx.events.v1.GetWebhookDeliveryRequest': [],
98
+ 'sylphx.events.v1.GetWebhookEndpointRequest': [],
99
+ 'sylphx.events.v1.InboundEndpoint': [
100
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
101
+ ['spec', 'spec', 'sylphx.events.v1.InboundEndpointSpec'],
102
+ ['status', 'status', 'sylphx.events.v1.InboundEndpointStatus'],
103
+ ],
104
+ 'sylphx.events.v1.InboundEndpointSpec': [
105
+ ['signatureScheme', 'signature_scheme'],
106
+ ['verificationSecret', 'verification_secret'],
107
+ ],
108
+ 'sylphx.events.v1.InboundEndpointStatus': [
109
+ ['observedGeneration', 'observed_generation'],
110
+ ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
111
+ ['receiveUri', 'receive_uri'],
112
+ ['lastReceiveTime', 'last_receive_time'],
113
+ ['rejectedCount', 'rejected_count'],
114
+ ],
115
+ 'sylphx.events.v1.LeaseQueueMessagesRequest': [
116
+ ['maxMessages', 'max_messages'],
117
+ ['visibilityTimeout', 'visibility_timeout'],
118
+ ],
119
+ 'sylphx.events.v1.LeaseQueueMessagesResponse': [
120
+ ['messages', 'messages', 'sylphx.events.v1.LeasedMessage'],
121
+ ],
122
+ 'sylphx.events.v1.LeasedMessage': [
123
+ ['messageId', 'message_id'],
124
+ ['event', 'event', 'sylphx.events.v1.CloudEvent'],
125
+ ['lease', 'lease', 'sylphx.events.v1.MessageLease'],
126
+ ['deliveryCount', 'delivery_count'],
127
+ ['leaseExpireTime', 'lease_expire_time'],
128
+ ],
129
+ 'sylphx.events.v1.ListEventsRequest': [
130
+ ['pageSize', 'page_size'],
131
+ ['pageToken', 'page_token'],
132
+ ['orderBy', 'order_by'],
133
+ ],
134
+ 'sylphx.events.v1.ListEventsResponse': [
135
+ ['events', 'events', 'sylphx.events.v1.Event'],
136
+ ['nextPageToken', 'next_page_token'],
137
+ ],
138
+ 'sylphx.events.v1.ListInboundEndpointsRequest': [
139
+ ['pageSize', 'page_size'],
140
+ ['pageToken', 'page_token'],
141
+ ['orderBy', 'order_by'],
142
+ ],
143
+ 'sylphx.events.v1.ListInboundEndpointsResponse': [
144
+ ['inboundEndpoints', 'inbound_endpoints', 'sylphx.events.v1.InboundEndpoint'],
145
+ ['nextPageToken', 'next_page_token'],
146
+ ],
147
+ 'sylphx.events.v1.ListQueuesRequest': [
148
+ ['pageSize', 'page_size'],
149
+ ['pageToken', 'page_token'],
150
+ ['orderBy', 'order_by'],
151
+ ],
152
+ 'sylphx.events.v1.ListQueuesResponse': [
153
+ ['queues', 'queues', 'sylphx.events.v1.Queue'],
154
+ ['nextPageToken', 'next_page_token'],
155
+ ],
156
+ 'sylphx.events.v1.ListRealtimeChannelsRequest': [
157
+ ['pageSize', 'page_size'],
158
+ ['pageToken', 'page_token'],
159
+ ['orderBy', 'order_by'],
160
+ ],
161
+ 'sylphx.events.v1.ListRealtimeChannelsResponse': [
162
+ ['realtimeChannels', 'realtime_channels', 'sylphx.events.v1.RealtimeChannel'],
163
+ ['nextPageToken', 'next_page_token'],
164
+ ],
165
+ 'sylphx.events.v1.ListSubscriptionsRequest': [
166
+ ['pageSize', 'page_size'],
167
+ ['pageToken', 'page_token'],
168
+ ['orderBy', 'order_by'],
169
+ ],
170
+ 'sylphx.events.v1.ListSubscriptionsResponse': [
171
+ ['subscriptions', 'subscriptions', 'sylphx.events.v1.Subscription'],
172
+ ['nextPageToken', 'next_page_token'],
173
+ ],
174
+ 'sylphx.events.v1.ListTopicsRequest': [
175
+ ['pageSize', 'page_size'],
176
+ ['pageToken', 'page_token'],
177
+ ['orderBy', 'order_by'],
178
+ ],
179
+ 'sylphx.events.v1.ListTopicsResponse': [
180
+ ['topics', 'topics', 'sylphx.events.v1.Topic'],
181
+ ['nextPageToken', 'next_page_token'],
182
+ ],
183
+ 'sylphx.events.v1.ListWebhookDeliveriesRequest': [
184
+ ['pageSize', 'page_size'],
185
+ ['pageToken', 'page_token'],
186
+ ['orderBy', 'order_by'],
187
+ ],
188
+ 'sylphx.events.v1.ListWebhookDeliveriesResponse': [
189
+ ['webhookDeliveries', 'webhook_deliveries', 'sylphx.events.v1.WebhookDelivery'],
190
+ ['nextPageToken', 'next_page_token'],
191
+ ],
192
+ 'sylphx.events.v1.ListWebhookEndpointsRequest': [
193
+ ['pageSize', 'page_size'],
194
+ ['pageToken', 'page_token'],
195
+ ['orderBy', 'order_by'],
196
+ ],
197
+ 'sylphx.events.v1.ListWebhookEndpointsResponse': [
198
+ ['webhookEndpoints', 'webhook_endpoints', 'sylphx.events.v1.WebhookEndpoint'],
199
+ ['nextPageToken', 'next_page_token'],
200
+ ],
201
+ 'sylphx.events.v1.MessageLease': [
202
+ ['messageId', 'message_id'],
203
+ ['leaseGeneration', 'lease_generation'],
204
+ ],
205
+ 'sylphx.events.v1.NackQueueMessagesRequest': [
206
+ ['leases', 'leases', 'sylphx.events.v1.MessageLease'],
207
+ ],
208
+ 'sylphx.events.v1.NackQueueMessagesResponse': [
209
+ ['staleLeases', 'stale_leases', 'sylphx.events.v1.MessageLease'],
210
+ ],
211
+ 'sylphx.events.v1.PublishEventsRequest': [
212
+ ['events', 'events', 'sylphx.events.v1.CloudEvent'],
213
+ ],
214
+ 'sylphx.events.v1.PublishEventsResponse': [
215
+ ['events', 'events', 'sylphx.events.v1.Event'],
216
+ ],
217
+ 'sylphx.events.v1.Queue': [
218
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
219
+ ['spec', 'spec', 'sylphx.events.v1.QueueSpec'],
220
+ ['status', 'status', 'sylphx.events.v1.QueueStatus'],
221
+ ],
222
+ 'sylphx.events.v1.QueueSpec': [
223
+ ['visibilityTimeout', 'visibility_timeout'],
224
+ ['maxDeliveries', 'max_deliveries'],
225
+ ['deadLetterQueue', 'dead_letter_queue'],
226
+ ],
227
+ 'sylphx.events.v1.QueueStatus': [
228
+ ['observedGeneration', 'observed_generation'],
229
+ ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
230
+ ['readyCount', 'ready_count'],
231
+ ['leasedCount', 'leased_count'],
232
+ ['deadLetterCount', 'dead_letter_count'],
233
+ ],
234
+ 'sylphx.events.v1.RealtimeChannel': [
235
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
236
+ ['spec', 'spec', 'sylphx.events.v1.RealtimeChannelSpec'],
237
+ ['status', 'status', 'sylphx.events.v1.RealtimeChannelStatus'],
238
+ ],
239
+ 'sylphx.events.v1.RealtimeChannelSpec': [
240
+ ['publishableOk', 'publishable_ok'],
241
+ ['historyRetention', 'history_retention'],
242
+ ],
243
+ 'sylphx.events.v1.RealtimeChannelStatus': [
244
+ ['observedGeneration', 'observed_generation'],
245
+ ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
246
+ ['connectUri', 'connect_uri'],
247
+ ['connectionCount', 'connection_count'],
248
+ ],
249
+ 'sylphx.events.v1.ReplayQueueRequest': [
250
+ ['startTime', 'start_time'],
251
+ ['endTime', 'end_time'],
252
+ ],
253
+ 'sylphx.events.v1.ReplayQueueResponse': [
254
+ ['replayedCount', 'replayed_count'],
255
+ ],
256
+ 'sylphx.events.v1.ReplayWebhookDeliveryRequest': [],
257
+ 'sylphx.events.v1.ReplayWebhookEndpointRequest': [
258
+ ['startTime', 'start_time'],
259
+ ['endTime', 'end_time'],
260
+ ],
261
+ 'sylphx.events.v1.ReplayWebhookEndpointResponse': [
262
+ ['replayedCount', 'replayed_count'],
263
+ ],
264
+ 'sylphx.events.v1.SendQueueMessagesRequest': [
265
+ ['events', 'events', 'sylphx.events.v1.CloudEvent'],
266
+ ],
267
+ 'sylphx.events.v1.SendQueueMessagesResponse': [
268
+ ['messageIds', 'message_ids'],
269
+ ],
270
+ 'sylphx.events.v1.Subscription': [
271
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
272
+ ['spec', 'spec', 'sylphx.events.v1.SubscriptionSpec'],
273
+ ['status', 'status', 'sylphx.events.v1.SubscriptionStatus'],
274
+ ],
275
+ 'sylphx.events.v1.SubscriptionSpec': [
276
+ ['webhookEndpoint', 'webhook_endpoint'],
277
+ ['realtimeChannel', 'realtime_channel'],
278
+ ],
279
+ 'sylphx.events.v1.SubscriptionStatus': [
280
+ ['observedGeneration', 'observed_generation'],
281
+ ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
282
+ ],
283
+ 'sylphx.events.v1.Topic': [
284
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
285
+ ['spec', 'spec', 'sylphx.events.v1.TopicSpec'],
286
+ ['status', 'status', 'sylphx.events.v1.TopicStatus'],
287
+ ],
288
+ 'sylphx.events.v1.TopicSpec': [],
289
+ 'sylphx.events.v1.TopicStatus': [
290
+ ['observedGeneration', 'observed_generation'],
291
+ ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
292
+ ],
293
+ 'sylphx.events.v1.UpdateInboundEndpointRequest': [
294
+ ['inboundEndpoint', 'inbound_endpoint', 'sylphx.events.v1.InboundEndpoint'],
295
+ ['updateMask', 'update_mask'],
296
+ ['allowMissing', 'allow_missing'],
297
+ ['validateOnly', 'validate_only'],
298
+ ],
299
+ 'sylphx.events.v1.UpdateQueueRequest': [
300
+ ['queue', 'queue', 'sylphx.events.v1.Queue'],
301
+ ['updateMask', 'update_mask'],
302
+ ['allowMissing', 'allow_missing'],
303
+ ['validateOnly', 'validate_only'],
304
+ ],
305
+ 'sylphx.events.v1.UpdateRealtimeChannelRequest': [
306
+ ['realtimeChannel', 'realtime_channel', 'sylphx.events.v1.RealtimeChannel'],
307
+ ['updateMask', 'update_mask'],
308
+ ['allowMissing', 'allow_missing'],
309
+ ['validateOnly', 'validate_only'],
310
+ ],
311
+ 'sylphx.events.v1.UpdateSubscriptionRequest': [
312
+ ['subscription', 'subscription', 'sylphx.events.v1.Subscription'],
313
+ ['updateMask', 'update_mask'],
314
+ ['allowMissing', 'allow_missing'],
315
+ ['validateOnly', 'validate_only'],
316
+ ],
317
+ 'sylphx.events.v1.UpdateTopicRequest': [
318
+ ['topic', 'topic', 'sylphx.events.v1.Topic'],
319
+ ['updateMask', 'update_mask'],
320
+ ['allowMissing', 'allow_missing'],
321
+ ['validateOnly', 'validate_only'],
322
+ ],
323
+ 'sylphx.events.v1.UpdateWebhookEndpointRequest': [
324
+ ['webhookEndpoint', 'webhook_endpoint', 'sylphx.events.v1.WebhookEndpoint'],
325
+ ['updateMask', 'update_mask'],
326
+ ['allowMissing', 'allow_missing'],
327
+ ['validateOnly', 'validate_only'],
328
+ ],
329
+ 'sylphx.events.v1.WebhookDelivery': [
330
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
331
+ ['attempts', 'attempts', 'sylphx.events.v1.DeliveryAttempt'],
332
+ ['nextAttemptTime', 'next_attempt_time'],
333
+ ],
334
+ 'sylphx.events.v1.WebhookEndpoint': [
335
+ ['meta', 'meta', 'sylphx.common.v1.ResourceMeta'],
336
+ ['spec', 'spec', 'sylphx.events.v1.WebhookEndpointSpec'],
337
+ ['status', 'status', 'sylphx.events.v1.WebhookEndpointStatus'],
338
+ ],
339
+ 'sylphx.events.v1.WebhookEndpointSpec': [
340
+ ['signingKey', 'signing_key'],
341
+ ['signingSecret', 'signing_secret'],
342
+ ['maxConcurrentDeliveries', 'max_concurrent_deliveries'],
343
+ ],
344
+ 'sylphx.events.v1.WebhookEndpointStatus': [
345
+ ['observedGeneration', 'observed_generation'],
346
+ ['conditions', 'conditions', 'sylphx.common.v1.Condition'],
347
+ ['disableReason', 'disable_reason'],
348
+ ['lastSuccessTime', 'last_success_time'],
349
+ ['consecutiveFailureCount', 'consecutive_failure_count'],
350
+ ],
351
+ });
352
+ /**
353
+ * EventsService is Sylphx Events: the event bus, queues, outbound and inbound
354
+ * webhooks, and realtime channels (docs/services/events/vision.md). Publish,
355
+ * lease, ack, and delivery run in each Cell from the Cell Snapshot.
356
+ *
357
+ * Namespace of Sylphx Events on `Sylphx`.
358
+ */
359
+ export class EventsApi {
360
+ /** The `topics` collection. */
361
+ topics;
362
+ /** The `events` collection. */
363
+ events;
364
+ /** The `subscriptions` collection. */
365
+ subscriptions;
366
+ /** The `queues` collection. */
367
+ queues;
368
+ /** The `webhook_endpoints` collection. */
369
+ webhookEndpoints;
370
+ /** The `webhook_deliveries` collection. */
371
+ webhookDeliveries;
372
+ /** The `inbound_endpoints` collection. */
373
+ inboundEndpoints;
374
+ /** The `realtime_channels` collection. */
375
+ realtimeChannels;
376
+ constructor(client) {
377
+ this.topics = new TopicsCollection(client);
378
+ this.events = new EventsCollection(client);
379
+ this.subscriptions = new SubscriptionsCollection(client);
380
+ this.queues = new QueuesCollection(client);
381
+ this.webhookEndpoints = new WebhookEndpointsCollection(client);
382
+ this.webhookDeliveries = new WebhookDeliveriesCollection(client);
383
+ this.inboundEndpoints = new InboundEndpointsCollection(client);
384
+ this.realtimeChannels = new RealtimeChannelsCollection(client);
385
+ }
386
+ }
387
+ /** `topics` of Sylphx Events: Resource type `events.sylphx.com/Topic`. */
388
+ export class TopicsCollection {
389
+ client;
390
+ constructor(client) {
391
+ this.client = client;
392
+ }
393
+ /**
394
+ * Gets a topic.
395
+ *
396
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/topics/*}` · permission `events:read` · effect `read`
397
+ *
398
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
399
+ */
400
+ async get(request) {
401
+ return this.client.call({
402
+ method: 'GET',
403
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/topics/*', 'name')}`,
404
+ responseType: 'sylphx.events.v1.Topic',
405
+ mutation: false,
406
+ });
407
+ }
408
+ /**
409
+ * Lists topics.
410
+ *
411
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/topics` · permission `events:read` · effect `read`
412
+ *
413
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
414
+ */
415
+ async list(request) {
416
+ return this.client.call({
417
+ method: 'GET',
418
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/topics`,
419
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
420
+ responseType: 'sylphx.events.v1.ListTopicsResponse',
421
+ mutation: false,
422
+ });
423
+ }
424
+ /** Every item of every page of `list`. */
425
+ async *listAll(request) {
426
+ let next = request;
427
+ for (;;) {
428
+ const page = await this.list(next);
429
+ yield* page.topics ?? [];
430
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
431
+ return;
432
+ next = { ...request, pageToken: page.nextPageToken };
433
+ }
434
+ }
435
+ /**
436
+ * Creates a topic.
437
+ *
438
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/topics` · permission `events:write` · effect `write`
439
+ *
440
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
441
+ */
442
+ async create(request) {
443
+ return this.client.call({
444
+ method: 'POST',
445
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/topics`,
446
+ query: { topic_id: request.topicId, validate_only: request.validateOnly },
447
+ body: request.topic ?? {},
448
+ bodyType: 'sylphx.events.v1.Topic',
449
+ responseType: 'sylphx.events.v1.Topic',
450
+ mutation: true,
451
+ });
452
+ }
453
+ /**
454
+ * Updates a topic.
455
+ *
456
+ * `PATCH /v1/{topic.name=orgs/*\/projects/*\/envs/*\/topics/*}` · permission `events:write` · effect `write`
457
+ *
458
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
459
+ */
460
+ async update(request) {
461
+ return this.client.call({
462
+ method: 'PATCH',
463
+ path: `/v1/${runtime.pathParam(request.topic?.name, 'orgs/*/projects/*/envs/*/topics/*', 'topic.name')}`,
464
+ query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
465
+ body: request.topic ?? {},
466
+ bodyType: 'sylphx.events.v1.Topic',
467
+ responseType: 'sylphx.events.v1.Topic',
468
+ mutation: true,
469
+ });
470
+ }
471
+ /**
472
+ * Deletes a topic.
473
+ *
474
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/topics/*}` · permission `events:write` · effect `destructive`
475
+ *
476
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
477
+ */
478
+ async delete(request) {
479
+ return this.client.call({
480
+ method: 'DELETE',
481
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/topics/*', 'name')}`,
482
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly, force: request.force },
483
+ mutation: true,
484
+ });
485
+ }
486
+ /**
487
+ * Publishes CloudEvents into a Topic, atomically. Replaying the same
488
+ * `source` + `id` with the same payload returns the stored event; a
489
+ * different payload fails with RESOURCE_ALREADY_EXISTS.
490
+ *
491
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/topics/*}:publish` · permission `events:publish` · effect `write`
492
+ *
493
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `RATE_LIMITED`, `SPEND_LIMIT_REACHED`.
494
+ */
495
+ async publish(request) {
496
+ return this.client.call({
497
+ method: 'POST',
498
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/topics/*', 'name')}:publish`,
499
+ body: runtime.omit(request, ['name']),
500
+ bodyType: 'sylphx.events.v1.PublishEventsRequest',
501
+ responseType: 'sylphx.events.v1.PublishEventsResponse',
502
+ mutation: true,
503
+ });
504
+ }
505
+ }
506
+ /** `events` of Sylphx Events: Resource type `events.sylphx.com/Event`. */
507
+ export class EventsCollection {
508
+ client;
509
+ constructor(client) {
510
+ this.client = client;
511
+ }
512
+ /**
513
+ * Gets an event.
514
+ *
515
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/events/*}` · permission `events:read` · effect `read`
516
+ *
517
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
518
+ */
519
+ async get(request) {
520
+ return this.client.call({
521
+ method: 'GET',
522
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/events/*', 'name')}`,
523
+ responseType: 'sylphx.events.v1.Event',
524
+ mutation: false,
525
+ });
526
+ }
527
+ /**
528
+ * Lists events.
529
+ *
530
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/events` · permission `events:read` · effect `read`
531
+ *
532
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
533
+ */
534
+ async list(request) {
535
+ return this.client.call({
536
+ method: 'GET',
537
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/events`,
538
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
539
+ responseType: 'sylphx.events.v1.ListEventsResponse',
540
+ mutation: false,
541
+ });
542
+ }
543
+ /** Every item of every page of `list`. */
544
+ async *listAll(request) {
545
+ let next = request;
546
+ for (;;) {
547
+ const page = await this.list(next);
548
+ yield* page.events ?? [];
549
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
550
+ return;
551
+ next = { ...request, pageToken: page.nextPageToken };
552
+ }
553
+ }
554
+ }
555
+ /** `subscriptions` of Sylphx Events: Resource type `events.sylphx.com/Subscription`. */
556
+ export class SubscriptionsCollection {
557
+ client;
558
+ constructor(client) {
559
+ this.client = client;
560
+ }
561
+ /**
562
+ * Gets a subscription.
563
+ *
564
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/subscriptions/*}` · permission `events:read` · effect `read`
565
+ *
566
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
567
+ */
568
+ async get(request) {
569
+ return this.client.call({
570
+ method: 'GET',
571
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/subscriptions/*', 'name')}`,
572
+ responseType: 'sylphx.events.v1.Subscription',
573
+ mutation: false,
574
+ });
575
+ }
576
+ /**
577
+ * Lists subscriptions.
578
+ *
579
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/subscriptions` · permission `events:read` · effect `read`
580
+ *
581
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
582
+ */
583
+ async list(request) {
584
+ return this.client.call({
585
+ method: 'GET',
586
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/subscriptions`,
587
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
588
+ responseType: 'sylphx.events.v1.ListSubscriptionsResponse',
589
+ mutation: false,
590
+ });
591
+ }
592
+ /** Every item of every page of `list`. */
593
+ async *listAll(request) {
594
+ let next = request;
595
+ for (;;) {
596
+ const page = await this.list(next);
597
+ yield* page.subscriptions ?? [];
598
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
599
+ return;
600
+ next = { ...request, pageToken: page.nextPageToken };
601
+ }
602
+ }
603
+ /**
604
+ * Creates a subscription.
605
+ *
606
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/subscriptions` · permission `events:write` · effect `write`
607
+ *
608
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
609
+ */
610
+ async create(request) {
611
+ return this.client.call({
612
+ method: 'POST',
613
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/subscriptions`,
614
+ query: { subscription_id: request.subscriptionId, validate_only: request.validateOnly },
615
+ body: request.subscription ?? {},
616
+ bodyType: 'sylphx.events.v1.Subscription',
617
+ responseType: 'sylphx.events.v1.Subscription',
618
+ mutation: true,
619
+ });
620
+ }
621
+ /**
622
+ * Updates a subscription.
623
+ *
624
+ * `PATCH /v1/{subscription.name=orgs/*\/projects/*\/envs/*\/subscriptions/*}` · permission `events:write` · effect `write`
625
+ *
626
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
627
+ */
628
+ async update(request) {
629
+ return this.client.call({
630
+ method: 'PATCH',
631
+ path: `/v1/${runtime.pathParam(request.subscription?.name, 'orgs/*/projects/*/envs/*/subscriptions/*', 'subscription.name')}`,
632
+ query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
633
+ body: request.subscription ?? {},
634
+ bodyType: 'sylphx.events.v1.Subscription',
635
+ responseType: 'sylphx.events.v1.Subscription',
636
+ mutation: true,
637
+ });
638
+ }
639
+ /**
640
+ * Deletes a subscription.
641
+ *
642
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/subscriptions/*}` · permission `events:write` · effect `destructive`
643
+ *
644
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
645
+ */
646
+ async delete(request) {
647
+ return this.client.call({
648
+ method: 'DELETE',
649
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/subscriptions/*', 'name')}`,
650
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
651
+ mutation: true,
652
+ });
653
+ }
654
+ }
655
+ /** `queues` of Sylphx Events: Resource type `events.sylphx.com/Queue`. */
656
+ export class QueuesCollection {
657
+ client;
658
+ constructor(client) {
659
+ this.client = client;
660
+ }
661
+ /**
662
+ * Gets a queue.
663
+ *
664
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/queues/*}` · permission `events:read` · effect `read`
665
+ *
666
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
667
+ */
668
+ async get(request) {
669
+ return this.client.call({
670
+ method: 'GET',
671
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/queues/*', 'name')}`,
672
+ responseType: 'sylphx.events.v1.Queue',
673
+ mutation: false,
674
+ });
675
+ }
676
+ /**
677
+ * Lists queues.
678
+ *
679
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/queues` · permission `events:read` · effect `read`
680
+ *
681
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
682
+ */
683
+ async list(request) {
684
+ return this.client.call({
685
+ method: 'GET',
686
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/queues`,
687
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
688
+ responseType: 'sylphx.events.v1.ListQueuesResponse',
689
+ mutation: false,
690
+ });
691
+ }
692
+ /** Every item of every page of `list`. */
693
+ async *listAll(request) {
694
+ let next = request;
695
+ for (;;) {
696
+ const page = await this.list(next);
697
+ yield* page.queues ?? [];
698
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
699
+ return;
700
+ next = { ...request, pageToken: page.nextPageToken };
701
+ }
702
+ }
703
+ /**
704
+ * Creates a queue.
705
+ *
706
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/queues` · permission `events:write` · effect `write`
707
+ *
708
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
709
+ */
710
+ async create(request) {
711
+ return this.client.call({
712
+ method: 'POST',
713
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/queues`,
714
+ query: { queue_id: request.queueId, validate_only: request.validateOnly },
715
+ body: request.queue ?? {},
716
+ bodyType: 'sylphx.events.v1.Queue',
717
+ responseType: 'sylphx.events.v1.Queue',
718
+ mutation: true,
719
+ });
720
+ }
721
+ /**
722
+ * Updates a queue.
723
+ *
724
+ * `PATCH /v1/{queue.name=orgs/*\/projects/*\/envs/*\/queues/*}` · permission `events:write` · effect `write`
725
+ *
726
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
727
+ */
728
+ async update(request) {
729
+ return this.client.call({
730
+ method: 'PATCH',
731
+ path: `/v1/${runtime.pathParam(request.queue?.name, 'orgs/*/projects/*/envs/*/queues/*', 'queue.name')}`,
732
+ query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
733
+ body: request.queue ?? {},
734
+ bodyType: 'sylphx.events.v1.Queue',
735
+ responseType: 'sylphx.events.v1.Queue',
736
+ mutation: true,
737
+ });
738
+ }
739
+ /**
740
+ * Deletes a queue.
741
+ *
742
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/queues/*}` · permission `events:write` · effect `destructive`
743
+ *
744
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
745
+ */
746
+ async delete(request) {
747
+ return this.client.call({
748
+ method: 'DELETE',
749
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/queues/*', 'name')}`,
750
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
751
+ mutation: true,
752
+ });
753
+ }
754
+ /**
755
+ * Enqueues messages directly, without a Subscription.
756
+ *
757
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/queues/*}:send` · permission `events:publish` · effect `write`
758
+ *
759
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `RATE_LIMITED`, `SPEND_LIMIT_REACHED`.
760
+ */
761
+ async send(request) {
762
+ return this.client.call({
763
+ method: 'POST',
764
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/queues/*', 'name')}:send`,
765
+ body: runtime.omit(request, ['name']),
766
+ bodyType: 'sylphx.events.v1.SendQueueMessagesRequest',
767
+ responseType: 'sylphx.events.v1.SendQueueMessagesResponse',
768
+ mutation: true,
769
+ });
770
+ }
771
+ /**
772
+ * Leases up to `max_messages` ready messages for the visibility timeout.
773
+ *
774
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/queues/*}:lease` · permission `events:write` · effect `write`
775
+ *
776
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `RATE_LIMITED`.
777
+ */
778
+ async lease(request) {
779
+ return this.client.call({
780
+ method: 'POST',
781
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/queues/*', 'name')}:lease`,
782
+ body: runtime.omit(request, ['name']),
783
+ bodyType: 'sylphx.events.v1.LeaseQueueMessagesRequest',
784
+ responseType: 'sylphx.events.v1.LeaseQueueMessagesResponse',
785
+ mutation: true,
786
+ });
787
+ }
788
+ /**
789
+ * Acknowledges leased messages; each is removed. A lease that is stale
790
+ * (expired or superseded) is reported, not applied.
791
+ *
792
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/queues/*}:ack` · permission `events:write` · effect `write`
793
+ *
794
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
795
+ */
796
+ async ack(request) {
797
+ return this.client.call({
798
+ method: 'POST',
799
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/queues/*', 'name')}:ack`,
800
+ body: runtime.omit(request, ['name']),
801
+ bodyType: 'sylphx.events.v1.AckQueueMessagesRequest',
802
+ responseType: 'sylphx.events.v1.AckQueueMessagesResponse',
803
+ mutation: true,
804
+ });
805
+ }
806
+ /**
807
+ * Returns leased messages to the Queue after `delay`; each nack counts as a
808
+ * delivery.
809
+ *
810
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/queues/*}:nack` · permission `events:write` · effect `write`
811
+ *
812
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
813
+ */
814
+ async nack(request) {
815
+ return this.client.call({
816
+ method: 'POST',
817
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/queues/*', 'name')}:nack`,
818
+ body: runtime.omit(request, ['name']),
819
+ bodyType: 'sylphx.events.v1.NackQueueMessagesRequest',
820
+ responseType: 'sylphx.events.v1.NackQueueMessagesResponse',
821
+ mutation: true,
822
+ });
823
+ }
824
+ /**
825
+ * Moves dead-lettered messages, optionally bounded by dead-letter time, back
826
+ * to ready.
827
+ *
828
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/queues/*}:replay` · permission `events:write` · effect `write`
829
+ *
830
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
831
+ */
832
+ async replay(request) {
833
+ return this.client.call({
834
+ method: 'POST',
835
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/queues/*', 'name')}:replay`,
836
+ body: runtime.omit(request, ['name']),
837
+ bodyType: 'sylphx.events.v1.ReplayQueueRequest',
838
+ responseType: 'sylphx.events.v1.ReplayQueueResponse',
839
+ mutation: true,
840
+ });
841
+ }
842
+ }
843
+ /** `webhook_endpoints` of Sylphx Events: Resource type `events.sylphx.com/WebhookEndpoint`. */
844
+ export class WebhookEndpointsCollection {
845
+ client;
846
+ constructor(client) {
847
+ this.client = client;
848
+ }
849
+ /**
850
+ * Gets a webhook endpoint.
851
+ *
852
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/webhook_endpoints/*}` · permission `events:read` · effect `read`
853
+ *
854
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
855
+ */
856
+ async get(request) {
857
+ return this.client.call({
858
+ method: 'GET',
859
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/webhook_endpoints/*', 'name')}`,
860
+ responseType: 'sylphx.events.v1.WebhookEndpoint',
861
+ mutation: false,
862
+ });
863
+ }
864
+ /**
865
+ * Lists webhook endpoints.
866
+ *
867
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/webhook_endpoints` · permission `events:read` · effect `read`
868
+ *
869
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
870
+ */
871
+ async list(request) {
872
+ return this.client.call({
873
+ method: 'GET',
874
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/webhook_endpoints`,
875
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
876
+ responseType: 'sylphx.events.v1.ListWebhookEndpointsResponse',
877
+ mutation: false,
878
+ });
879
+ }
880
+ /** Every item of every page of `list`. */
881
+ async *listAll(request) {
882
+ let next = request;
883
+ for (;;) {
884
+ const page = await this.list(next);
885
+ yield* page.webhookEndpoints ?? [];
886
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
887
+ return;
888
+ next = { ...request, pageToken: page.nextPageToken };
889
+ }
890
+ }
891
+ /**
892
+ * Creates a webhook endpoint.
893
+ *
894
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/webhook_endpoints` · permission `events:write` · effect `write`
895
+ *
896
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
897
+ */
898
+ async create(request) {
899
+ return this.client.call({
900
+ method: 'POST',
901
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/webhook_endpoints`,
902
+ query: { webhook_endpoint_id: request.webhookEndpointId, validate_only: request.validateOnly },
903
+ body: request.webhookEndpoint ?? {},
904
+ bodyType: 'sylphx.events.v1.WebhookEndpoint',
905
+ responseType: 'sylphx.events.v1.WebhookEndpoint',
906
+ mutation: true,
907
+ });
908
+ }
909
+ /**
910
+ * Updates a webhook endpoint.
911
+ *
912
+ * `PATCH /v1/{webhook_endpoint.name=orgs/*\/projects/*\/envs/*\/webhook_endpoints/*}` · permission `events:write` · effect `write`
913
+ *
914
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
915
+ */
916
+ async update(request) {
917
+ return this.client.call({
918
+ method: 'PATCH',
919
+ path: `/v1/${runtime.pathParam(request.webhookEndpoint?.name, 'orgs/*/projects/*/envs/*/webhook_endpoints/*', 'webhook_endpoint.name')}`,
920
+ query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
921
+ body: request.webhookEndpoint ?? {},
922
+ bodyType: 'sylphx.events.v1.WebhookEndpoint',
923
+ responseType: 'sylphx.events.v1.WebhookEndpoint',
924
+ mutation: true,
925
+ });
926
+ }
927
+ /**
928
+ * Deletes a webhook endpoint.
929
+ *
930
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/webhook_endpoints/*}` · permission `events:write` · effect `destructive`
931
+ *
932
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
933
+ */
934
+ async delete(request) {
935
+ return this.client.call({
936
+ method: 'DELETE',
937
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/webhook_endpoints/*', 'name')}`,
938
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly, force: request.force },
939
+ mutation: true,
940
+ });
941
+ }
942
+ /**
943
+ * Redelivers every delivery to the endpoint in a time range, dead-lettered
944
+ * ones included.
945
+ *
946
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/webhook_endpoints/*}:replay` · permission `events:write` · effect `write`
947
+ *
948
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
949
+ */
950
+ async replay(request) {
951
+ return this.client.call({
952
+ method: 'POST',
953
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/webhook_endpoints/*', 'name')}:replay`,
954
+ body: runtime.omit(request, ['name']),
955
+ bodyType: 'sylphx.events.v1.ReplayWebhookEndpointRequest',
956
+ responseType: 'sylphx.events.v1.ReplayWebhookEndpointResponse',
957
+ mutation: true,
958
+ });
959
+ }
960
+ }
961
+ /** `webhook_deliveries` of Sylphx Events: Resource type `events.sylphx.com/WebhookDelivery`. */
962
+ export class WebhookDeliveriesCollection {
963
+ client;
964
+ constructor(client) {
965
+ this.client = client;
966
+ }
967
+ /**
968
+ * Gets a webhook delivery.
969
+ *
970
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/webhook_endpoints/*\/webhook_deliveries/*}` · permission `events:read` · effect `read`
971
+ *
972
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
973
+ */
974
+ async get(request) {
975
+ return this.client.call({
976
+ method: 'GET',
977
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/webhook_endpoints/*/webhook_deliveries/*', 'name')}`,
978
+ responseType: 'sylphx.events.v1.WebhookDelivery',
979
+ mutation: false,
980
+ });
981
+ }
982
+ /**
983
+ * Lists webhook deliveries.
984
+ *
985
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/webhook_endpoints/*}/webhook_deliveries` · permission `events:read` · effect `read`
986
+ *
987
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
988
+ */
989
+ async list(request) {
990
+ return this.client.call({
991
+ method: 'GET',
992
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*/webhook_endpoints/*', 'parent')}/webhook_deliveries`,
993
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
994
+ responseType: 'sylphx.events.v1.ListWebhookDeliveriesResponse',
995
+ mutation: false,
996
+ });
997
+ }
998
+ /** Every item of every page of `list`. */
999
+ async *listAll(request) {
1000
+ let next = request;
1001
+ for (;;) {
1002
+ const page = await this.list(next);
1003
+ yield* page.webhookDeliveries ?? [];
1004
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
1005
+ return;
1006
+ next = { ...request, pageToken: page.nextPageToken };
1007
+ }
1008
+ }
1009
+ /**
1010
+ * Redelivers one delivery now, as a new attempt.
1011
+ *
1012
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/webhook_endpoints/*\/webhook_deliveries/*}:replay` · permission `events:write` · effect `write`
1013
+ *
1014
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1015
+ */
1016
+ async replay(request) {
1017
+ return this.client.call({
1018
+ method: 'POST',
1019
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/webhook_endpoints/*/webhook_deliveries/*', 'name')}:replay`,
1020
+ body: runtime.omit(request, ['name']),
1021
+ bodyType: 'sylphx.events.v1.ReplayWebhookDeliveryRequest',
1022
+ responseType: 'sylphx.events.v1.WebhookDelivery',
1023
+ mutation: true,
1024
+ });
1025
+ }
1026
+ }
1027
+ /** `inbound_endpoints` of Sylphx Events: Resource type `events.sylphx.com/InboundEndpoint`. */
1028
+ export class InboundEndpointsCollection {
1029
+ client;
1030
+ constructor(client) {
1031
+ this.client = client;
1032
+ }
1033
+ /**
1034
+ * Gets an inbound endpoint.
1035
+ *
1036
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/inbound_endpoints/*}` · permission `events:read` · effect `read`
1037
+ *
1038
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1039
+ */
1040
+ async get(request) {
1041
+ return this.client.call({
1042
+ method: 'GET',
1043
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/inbound_endpoints/*', 'name')}`,
1044
+ responseType: 'sylphx.events.v1.InboundEndpoint',
1045
+ mutation: false,
1046
+ });
1047
+ }
1048
+ /**
1049
+ * Lists inbound endpoints.
1050
+ *
1051
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/inbound_endpoints` · permission `events:read` · effect `read`
1052
+ *
1053
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1054
+ */
1055
+ async list(request) {
1056
+ return this.client.call({
1057
+ method: 'GET',
1058
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/inbound_endpoints`,
1059
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
1060
+ responseType: 'sylphx.events.v1.ListInboundEndpointsResponse',
1061
+ mutation: false,
1062
+ });
1063
+ }
1064
+ /** Every item of every page of `list`. */
1065
+ async *listAll(request) {
1066
+ let next = request;
1067
+ for (;;) {
1068
+ const page = await this.list(next);
1069
+ yield* page.inboundEndpoints ?? [];
1070
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
1071
+ return;
1072
+ next = { ...request, pageToken: page.nextPageToken };
1073
+ }
1074
+ }
1075
+ /**
1076
+ * Creates an inbound endpoint.
1077
+ *
1078
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/inbound_endpoints` · permission `events:write` · effect `write`
1079
+ *
1080
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1081
+ */
1082
+ async create(request) {
1083
+ return this.client.call({
1084
+ method: 'POST',
1085
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/inbound_endpoints`,
1086
+ query: { inbound_endpoint_id: request.inboundEndpointId, validate_only: request.validateOnly },
1087
+ body: request.inboundEndpoint ?? {},
1088
+ bodyType: 'sylphx.events.v1.InboundEndpoint',
1089
+ responseType: 'sylphx.events.v1.InboundEndpoint',
1090
+ mutation: true,
1091
+ });
1092
+ }
1093
+ /**
1094
+ * Updates an inbound endpoint.
1095
+ *
1096
+ * `PATCH /v1/{inbound_endpoint.name=orgs/*\/projects/*\/envs/*\/inbound_endpoints/*}` · permission `events:write` · effect `write`
1097
+ *
1098
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1099
+ */
1100
+ async update(request) {
1101
+ return this.client.call({
1102
+ method: 'PATCH',
1103
+ path: `/v1/${runtime.pathParam(request.inboundEndpoint?.name, 'orgs/*/projects/*/envs/*/inbound_endpoints/*', 'inbound_endpoint.name')}`,
1104
+ query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
1105
+ body: request.inboundEndpoint ?? {},
1106
+ bodyType: 'sylphx.events.v1.InboundEndpoint',
1107
+ responseType: 'sylphx.events.v1.InboundEndpoint',
1108
+ mutation: true,
1109
+ });
1110
+ }
1111
+ /**
1112
+ * Deletes an inbound endpoint.
1113
+ *
1114
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/inbound_endpoints/*}` · permission `events:write` · effect `destructive`
1115
+ *
1116
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1117
+ */
1118
+ async delete(request) {
1119
+ return this.client.call({
1120
+ method: 'DELETE',
1121
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/inbound_endpoints/*', 'name')}`,
1122
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
1123
+ mutation: true,
1124
+ });
1125
+ }
1126
+ }
1127
+ /** `realtime_channels` of Sylphx Events: Resource type `events.sylphx.com/RealtimeChannel`. */
1128
+ export class RealtimeChannelsCollection {
1129
+ client;
1130
+ constructor(client) {
1131
+ this.client = client;
1132
+ }
1133
+ /**
1134
+ * Gets a realtime channel.
1135
+ *
1136
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/realtime_channels/*}` · permission `events:read` · effect `read`
1137
+ *
1138
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1139
+ */
1140
+ async get(request) {
1141
+ return this.client.call({
1142
+ method: 'GET',
1143
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/realtime_channels/*', 'name')}`,
1144
+ responseType: 'sylphx.events.v1.RealtimeChannel',
1145
+ mutation: false,
1146
+ });
1147
+ }
1148
+ /**
1149
+ * Lists realtime channels.
1150
+ *
1151
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/realtime_channels` · permission `events:read` · effect `read`
1152
+ *
1153
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1154
+ */
1155
+ async list(request) {
1156
+ return this.client.call({
1157
+ method: 'GET',
1158
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/realtime_channels`,
1159
+ query: { page_size: request.pageSize, page_token: request.pageToken, filter: request.filter, order_by: request.orderBy },
1160
+ responseType: 'sylphx.events.v1.ListRealtimeChannelsResponse',
1161
+ mutation: false,
1162
+ });
1163
+ }
1164
+ /** Every item of every page of `list`. */
1165
+ async *listAll(request) {
1166
+ let next = request;
1167
+ for (;;) {
1168
+ const page = await this.list(next);
1169
+ yield* page.realtimeChannels ?? [];
1170
+ if (page.nextPageToken === undefined || page.nextPageToken === '')
1171
+ return;
1172
+ next = { ...request, pageToken: page.nextPageToken };
1173
+ }
1174
+ }
1175
+ /**
1176
+ * Creates a realtime channel.
1177
+ *
1178
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/realtime_channels` · permission `events:write` · effect `write`
1179
+ *
1180
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1181
+ */
1182
+ async create(request) {
1183
+ return this.client.call({
1184
+ method: 'POST',
1185
+ path: `/v1/${runtime.pathParam(request.parent, 'orgs/*/projects/*/envs/*', 'parent')}/realtime_channels`,
1186
+ query: { realtime_channel_id: request.realtimeChannelId, validate_only: request.validateOnly },
1187
+ body: request.realtimeChannel ?? {},
1188
+ bodyType: 'sylphx.events.v1.RealtimeChannel',
1189
+ responseType: 'sylphx.events.v1.RealtimeChannel',
1190
+ mutation: true,
1191
+ });
1192
+ }
1193
+ /**
1194
+ * Updates a realtime channel.
1195
+ *
1196
+ * `PATCH /v1/{realtime_channel.name=orgs/*\/projects/*\/envs/*\/realtime_channels/*}` · permission `events:write` · effect `write`
1197
+ *
1198
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1199
+ */
1200
+ async update(request) {
1201
+ return this.client.call({
1202
+ method: 'PATCH',
1203
+ path: `/v1/${runtime.pathParam(request.realtimeChannel?.name, 'orgs/*/projects/*/envs/*/realtime_channels/*', 'realtime_channel.name')}`,
1204
+ query: { update_mask: request.updateMask, allow_missing: request.allowMissing, validate_only: request.validateOnly },
1205
+ body: request.realtimeChannel ?? {},
1206
+ bodyType: 'sylphx.events.v1.RealtimeChannel',
1207
+ responseType: 'sylphx.events.v1.RealtimeChannel',
1208
+ mutation: true,
1209
+ });
1210
+ }
1211
+ /**
1212
+ * Deletes a realtime channel.
1213
+ *
1214
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/realtime_channels/*}` · permission `events:write` · effect `destructive`
1215
+ *
1216
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1217
+ */
1218
+ async delete(request) {
1219
+ return this.client.call({
1220
+ method: 'DELETE',
1221
+ path: `/v1/${runtime.pathParam(request.name, 'orgs/*/projects/*/envs/*/realtime_channels/*', 'name')}`,
1222
+ query: { etag: request.etag, allow_missing: request.allowMissing, validate_only: request.validateOnly },
1223
+ mutation: true,
1224
+ });
1225
+ }
1226
+ }
1227
+ //# sourceMappingURL=events.js.map