@sylphx/sdk 0.28.0 → 0.31.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 (104) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +42 -114
  3. package/dist/access.d.ts +670 -0
  4. package/dist/access.js +640 -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/verify.d.ts +57 -0
  13. package/dist/auth/verify.js +157 -0
  14. package/dist/auth/verify.js.map +1 -0
  15. package/dist/auth.d.ts +896 -0
  16. package/dist/auth.js +828 -0
  17. package/dist/auth.js.map +1 -0
  18. package/dist/billing.d.ts +854 -0
  19. package/dist/billing.js +593 -0
  20. package/dist/billing.js.map +1 -0
  21. package/dist/broker.d.ts +226 -0
  22. package/dist/broker.js +187 -0
  23. package/dist/broker.js.map +1 -0
  24. package/dist/build.d.ts +313 -0
  25. package/dist/build.js +271 -0
  26. package/dist/build.js.map +1 -0
  27. package/dist/common.d.ts +162 -0
  28. package/dist/common.js +41 -0
  29. package/dist/common.js.map +1 -0
  30. package/dist/config.d.ts +198 -0
  31. package/dist/config.js +168 -0
  32. package/dist/config.js.map +1 -0
  33. package/dist/connections.d.ts +354 -0
  34. package/dist/connections.js +313 -0
  35. package/dist/connections.js.map +1 -0
  36. package/dist/data.d.ts +1141 -0
  37. package/dist/data.js +1082 -0
  38. package/dist/data.js.map +1 -0
  39. package/dist/entitlement.d.ts +179 -0
  40. package/dist/entitlement.js +117 -0
  41. package/dist/entitlement.js.map +1 -0
  42. package/dist/events.d.ts +1324 -0
  43. package/dist/events.js +1227 -0
  44. package/dist/events.js.map +1 -0
  45. package/dist/hosting.d.ts +709 -0
  46. package/dist/hosting.js +611 -0
  47. package/dist/hosting.js.map +1 -0
  48. package/dist/index.d.ts +79 -33656
  49. package/dist/index.js +113 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/keys.d.ts +438 -0
  52. package/dist/keys.js +406 -0
  53. package/dist/keys.js.map +1 -0
  54. package/dist/methods.d.ts +2 -0
  55. package/dist/methods.js +4200 -0
  56. package/dist/methods.js.map +1 -0
  57. package/dist/network.d.ts +733 -0
  58. package/dist/network.js +711 -0
  59. package/dist/network.js.map +1 -0
  60. package/dist/notify.d.ts +1753 -0
  61. package/dist/notify.js +1551 -0
  62. package/dist/notify.js.map +1 -0
  63. package/dist/observability.d.ts +509 -0
  64. package/dist/observability.js +437 -0
  65. package/dist/observability.js.map +1 -0
  66. package/dist/release.d.ts +303 -0
  67. package/dist/release.js +214 -0
  68. package/dist/release.js.map +1 -0
  69. package/dist/runners.d.ts +262 -0
  70. package/dist/runners.js +238 -0
  71. package/dist/runners.js.map +1 -0
  72. package/dist/runtime.d.ts +121 -0
  73. package/dist/runtime.js +305 -0
  74. package/dist/runtime.js.map +1 -0
  75. package/dist/sandboxes.d.ts +1705 -0
  76. package/dist/sandboxes.js +1226 -0
  77. package/dist/sandboxes.js.map +1 -0
  78. package/dist/secrets.d.ts +508 -0
  79. package/dist/secrets.js +474 -0
  80. package/dist/secrets.js.map +1 -0
  81. package/dist/workflows.d.ts +678 -0
  82. package/dist/workflows.js +595 -0
  83. package/dist/workflows.js.map +1 -0
  84. package/package.json +33 -112
  85. package/dist/connect.d.ts +0 -2838
  86. package/dist/connect.mjs +0 -220
  87. package/dist/connect.mjs.map +0 -1
  88. package/dist/health/index.d.ts +0 -1394
  89. package/dist/health/index.mjs +0 -1394
  90. package/dist/health/index.mjs.map +0 -1
  91. package/dist/index.mjs +0 -38429
  92. package/dist/index.mjs.map +0 -1
  93. package/dist/nextjs/index.d.ts +0 -724
  94. package/dist/nextjs/index.mjs +0 -3332
  95. package/dist/nextjs/index.mjs.map +0 -1
  96. package/dist/react/index.d.ts +0 -13066
  97. package/dist/react/index.mjs +0 -35329
  98. package/dist/react/index.mjs.map +0 -1
  99. package/dist/server/index.d.ts +0 -2000
  100. package/dist/server/index.mjs +0 -3446
  101. package/dist/server/index.mjs.map +0 -1
  102. package/dist/web-analytics.d.ts +0 -90
  103. package/dist/web-analytics.mjs +0 -225
  104. package/dist/web-analytics.mjs.map +0 -1
@@ -0,0 +1,1324 @@
1
+ import * as runtime from './runtime.js';
2
+ import './common.js';
3
+ import type * as common from './common.js';
4
+ /** The request of AckQueueMessages. */
5
+ export interface AckQueueMessagesRequest {
6
+ /** The name of the queue. */
7
+ name: string;
8
+ /** The leases to ack, at most 100. */
9
+ leases: MessageLease[];
10
+ }
11
+ /** The response of AckQueueMessages. */
12
+ export interface AckQueueMessagesResponse {
13
+ /** Leases that were stale and not applied. */
14
+ staleLeases?: MessageLease[];
15
+ }
16
+ /** A CloudEvents 1.0 event as a producer submits it. */
17
+ export interface CloudEvent {
18
+ /** Unique per `source`; with `source` it is the dedupe key. */
19
+ id?: string;
20
+ /** The producer's URI-reference. */
21
+ source?: string;
22
+ /** The event type, for example `com.example.order.created`. */
23
+ type?: string;
24
+ /** The subject within the source. */
25
+ subject?: string;
26
+ /** When the occurrence happened. */
27
+ eventTime?: string;
28
+ /** The payload media type; default `application/json`. */
29
+ dataContentType?: string;
30
+ /** The payload schema URI. */
31
+ dataSchema?: string;
32
+ /** The payload. */
33
+ data?: unknown;
34
+ /** Extension attributes, at most 64. */
35
+ extensions?: Record<string, string>;
36
+ }
37
+ /** The request of CreateInboundEndpoint. */
38
+ export interface CreateInboundEndpointRequest {
39
+ /** The parent to create in. */
40
+ parent: string;
41
+ /**
42
+ * The inbound endpoint id, the final name segment; the server assigns one
43
+ * when empty.
44
+ */
45
+ inboundEndpointId?: string;
46
+ /** The inbound endpoint to create; only caller-writable fields are read. */
47
+ inboundEndpoint: InboundEndpoint;
48
+ /** Validate and return the result without writing anything. */
49
+ validateOnly?: boolean;
50
+ }
51
+ /** The request of CreateQueue. */
52
+ export interface CreateQueueRequest {
53
+ /** The parent to create in. */
54
+ parent: string;
55
+ /** The queue id, the final name segment; the server assigns one when empty. */
56
+ queueId?: string;
57
+ /** The queue to create; only caller-writable fields are read. */
58
+ queue: Queue;
59
+ /** Validate and return the result without writing anything. */
60
+ validateOnly?: boolean;
61
+ }
62
+ /** The request of CreateRealtimeChannel. */
63
+ export interface CreateRealtimeChannelRequest {
64
+ /** The parent to create in. */
65
+ parent: string;
66
+ /**
67
+ * The realtime channel id, the final name segment; the server assigns one
68
+ * when empty.
69
+ */
70
+ realtimeChannelId?: string;
71
+ /** The realtime channel to create; only caller-writable fields are read. */
72
+ realtimeChannel: RealtimeChannel;
73
+ /** Validate and return the result without writing anything. */
74
+ validateOnly?: boolean;
75
+ }
76
+ /** The request of CreateSubscription. */
77
+ export interface CreateSubscriptionRequest {
78
+ /** The parent to create in. */
79
+ parent: string;
80
+ /**
81
+ * The subscription id, the final name segment; the server assigns one when
82
+ * empty.
83
+ */
84
+ subscriptionId?: string;
85
+ /** The subscription to create; only caller-writable fields are read. */
86
+ subscription: Subscription;
87
+ /** Validate and return the result without writing anything. */
88
+ validateOnly?: boolean;
89
+ }
90
+ /** The request of CreateTopic. */
91
+ export interface CreateTopicRequest {
92
+ /** The parent to create in. */
93
+ parent: string;
94
+ /** The topic id, the final name segment; the server assigns one when empty. */
95
+ topicId?: string;
96
+ /** The topic to create; only caller-writable fields are read. */
97
+ topic: Topic;
98
+ /** Validate and return the result without writing anything. */
99
+ validateOnly?: boolean;
100
+ }
101
+ /** The request of CreateWebhookEndpoint. */
102
+ export interface CreateWebhookEndpointRequest {
103
+ /** The parent to create in. */
104
+ parent: string;
105
+ /**
106
+ * The webhook endpoint id, the final name segment; the server assigns one
107
+ * when empty.
108
+ */
109
+ webhookEndpointId?: string;
110
+ /** The webhook endpoint to create; only caller-writable fields are read. */
111
+ webhookEndpoint: WebhookEndpoint;
112
+ /** Validate and return the result without writing anything. */
113
+ validateOnly?: boolean;
114
+ }
115
+ /** The request of DeleteInboundEndpoint. */
116
+ export interface DeleteInboundEndpointRequest {
117
+ /** The name of the inbound endpoint to delete. */
118
+ name: string;
119
+ /** Delete only if the current etag matches. */
120
+ etag?: string;
121
+ /** Succeed when the inbound endpoint does not exist. */
122
+ allowMissing?: boolean;
123
+ /** Validate without deleting anything. */
124
+ validateOnly?: boolean;
125
+ }
126
+ /** The request of DeleteQueue. */
127
+ export interface DeleteQueueRequest {
128
+ /** The name of the queue to delete. */
129
+ name: string;
130
+ /** Delete only if the current etag matches. */
131
+ etag?: string;
132
+ /** Succeed when the queue does not exist. */
133
+ allowMissing?: boolean;
134
+ /** Validate without deleting anything. */
135
+ validateOnly?: boolean;
136
+ }
137
+ /** The request of DeleteRealtimeChannel. */
138
+ export interface DeleteRealtimeChannelRequest {
139
+ /** The name of the realtime channel to delete. */
140
+ name: string;
141
+ /** Delete only if the current etag matches. */
142
+ etag?: string;
143
+ /** Succeed when the realtime channel does not exist. */
144
+ allowMissing?: boolean;
145
+ /** Validate without deleting anything. */
146
+ validateOnly?: boolean;
147
+ }
148
+ /** The request of DeleteSubscription. */
149
+ export interface DeleteSubscriptionRequest {
150
+ /** The name of the subscription to delete. */
151
+ name: string;
152
+ /** Delete only if the current etag matches. */
153
+ etag?: string;
154
+ /** Succeed when the subscription does not exist. */
155
+ allowMissing?: boolean;
156
+ /** Validate without deleting anything. */
157
+ validateOnly?: boolean;
158
+ }
159
+ /** The request of DeleteTopic. */
160
+ export interface DeleteTopicRequest {
161
+ /** The name of the topic to delete. */
162
+ name: string;
163
+ /** Delete only if the current etag matches. */
164
+ etag?: string;
165
+ /** Succeed when the topic does not exist. */
166
+ allowMissing?: boolean;
167
+ /** Validate without deleting anything. */
168
+ validateOnly?: boolean;
169
+ /**
170
+ * Also delete the Topic's Subscriptions; without it a Topic with
171
+ * Subscriptions fails with INVALID_STATE.
172
+ */
173
+ force?: boolean;
174
+ }
175
+ /** The request of DeleteWebhookEndpoint. */
176
+ export interface DeleteWebhookEndpointRequest {
177
+ /** The name of the webhook endpoint to delete. */
178
+ name: string;
179
+ /** Delete only if the current etag matches. */
180
+ etag?: string;
181
+ /** Succeed when the webhook endpoint does not exist. */
182
+ allowMissing?: boolean;
183
+ /** Validate without deleting anything. */
184
+ validateOnly?: boolean;
185
+ /**
186
+ * Also delete the endpoint's delivery records and the Subscriptions that
187
+ * target it.
188
+ */
189
+ force?: boolean;
190
+ }
191
+ /** One attempt of a webhook delivery and its receipt. */
192
+ export interface DeliveryAttempt {
193
+ /** The attempt number, from 1. */
194
+ readonly attemptNumber?: number;
195
+ /** How the attempt ended. */
196
+ readonly outcome?: DeliveryAttemptOutcome;
197
+ /** The endpoint's HTTP status, when it answered. */
198
+ readonly httpStatus?: number;
199
+ /** A machine-readable failure code. */
200
+ readonly errorCode?: string;
201
+ /** When the attempt started. */
202
+ readonly startTime?: string;
203
+ /** When the attempt ended. */
204
+ readonly endTime?: string;
205
+ /** `sha256:<hex>` of the recorded response evidence. */
206
+ readonly evidenceDigest?: string;
207
+ }
208
+ /** An Event is one published CloudEvents 1.0 fact, as stored. It is immutable. */
209
+ export interface Event {
210
+ /** `orgs/{org}/projects/{project}/envs/{env}/events/{event}`. */
211
+ name?: string;
212
+ /** `evt_<cell><ulid>`; never reused. */
213
+ readonly uid?: string;
214
+ /** Resource metadata. */
215
+ meta?: common.ResourceMeta;
216
+ /** The Topic it was published to. */
217
+ readonly topic?: string;
218
+ /** The producer's CloudEvents `source`. */
219
+ readonly source?: string;
220
+ /** The producer's CloudEvents `id`, unique per `source`. */
221
+ readonly eventId?: string;
222
+ /** The CloudEvents `type`. */
223
+ readonly type?: string;
224
+ /** The CloudEvents `subject`. */
225
+ readonly subject?: string;
226
+ /** The CloudEvents `time`. */
227
+ readonly eventTime?: string;
228
+ /** The CloudEvents `datacontenttype`. */
229
+ readonly dataContentType?: string;
230
+ /** The CloudEvents `dataschema`. */
231
+ readonly dataSchema?: string;
232
+ /** The payload. */
233
+ readonly data?: unknown;
234
+ /** CloudEvents extension attributes. */
235
+ readonly extensions?: Record<string, string>;
236
+ /** When Events admitted it. */
237
+ readonly admitTime?: string;
238
+ }
239
+ /** The request of GetEvent. */
240
+ export interface GetEventRequest {
241
+ /** The name of the event to get. */
242
+ name: string;
243
+ }
244
+ /** The request of GetInboundEndpoint. */
245
+ export interface GetInboundEndpointRequest {
246
+ /** The name of the inbound endpoint to get. */
247
+ name: string;
248
+ }
249
+ /** The request of GetQueue. */
250
+ export interface GetQueueRequest {
251
+ /** The name of the queue to get. */
252
+ name: string;
253
+ }
254
+ /** The request of GetRealtimeChannel. */
255
+ export interface GetRealtimeChannelRequest {
256
+ /** The name of the realtime channel to get. */
257
+ name: string;
258
+ }
259
+ /** The request of GetSubscription. */
260
+ export interface GetSubscriptionRequest {
261
+ /** The name of the subscription to get. */
262
+ name: string;
263
+ }
264
+ /** The request of GetTopic. */
265
+ export interface GetTopicRequest {
266
+ /** The name of the topic to get. */
267
+ name: string;
268
+ }
269
+ /** The request of GetWebhookDelivery. */
270
+ export interface GetWebhookDeliveryRequest {
271
+ /** The name of the webhook delivery to get. */
272
+ name: string;
273
+ }
274
+ /** The request of GetWebhookEndpoint. */
275
+ export interface GetWebhookEndpointRequest {
276
+ /** The name of the webhook endpoint to get. */
277
+ name: string;
278
+ }
279
+ /**
280
+ * An Inbound Endpoint receives a provider's webhooks. Events verifies the
281
+ * provider signature with a Kernel Secret, dedupes by the provider's delivery
282
+ * id, answers 2xx inside the provider's budget, persists the raw request, then
283
+ * publishes it onto a Topic. A bad signature is refused and recorded.
284
+ */
285
+ export interface InboundEndpoint {
286
+ /** `orgs/{org}/projects/{project}/envs/{env}/inbound_endpoints/{inbound_endpoint}`. */
287
+ name?: string;
288
+ /** `ibe_<cell><ulid>`; never reused. */
289
+ readonly uid?: string;
290
+ /** Resource metadata. */
291
+ meta?: common.ResourceMeta;
292
+ /** Desired state. */
293
+ spec?: InboundEndpointSpec;
294
+ /** Observed state. */
295
+ readonly status?: InboundEndpointStatus;
296
+ }
297
+ /** InboundEndpointSpec is the caller-writable state of an InboundEndpoint. */
298
+ export interface InboundEndpointSpec {
299
+ /** The sender's signature scheme. */
300
+ signatureScheme?: InboundSignatureScheme;
301
+ /** A Kernel Secrets Secret holding the provider's verification secret. */
302
+ verificationSecret?: string;
303
+ /** The Topic verified requests are published to. */
304
+ topic?: string;
305
+ /** The CloudEvents `source` of published events; default the endpoint name. */
306
+ source?: string;
307
+ }
308
+ /** InboundEndpointStatus is the observed state of an InboundEndpoint. */
309
+ export interface InboundEndpointStatus {
310
+ /** The generation this status was computed from. */
311
+ readonly observedGeneration?: string;
312
+ /** Ready, Reconciling, Stalled. */
313
+ readonly conditions?: common.Condition[];
314
+ /** The URI to give the provider. */
315
+ readonly receiveUri?: string;
316
+ /** The last verified request. */
317
+ readonly lastReceiveTime?: string;
318
+ /** Requests refused for a bad signature, all time. */
319
+ readonly rejectedCount?: string;
320
+ }
321
+ /** The request of LeaseQueueMessages. */
322
+ export interface LeaseQueueMessagesRequest {
323
+ /** The name of the queue. */
324
+ name: string;
325
+ /** At most this many; default 1, at most 100. */
326
+ maxMessages?: number;
327
+ /** Override the Queue's visibility timeout for this lease. */
328
+ visibilityTimeout?: string;
329
+ /** Wait up to this long (at most 20s) for a message when none is ready. */
330
+ wait?: string;
331
+ }
332
+ /** The response of LeaseQueueMessages. */
333
+ export interface LeaseQueueMessagesResponse {
334
+ /** The leased messages. */
335
+ messages?: LeasedMessage[];
336
+ }
337
+ /** A message under lease. */
338
+ export interface LeasedMessage {
339
+ /** The message id, stable across deliveries. */
340
+ readonly messageId?: string;
341
+ /** The event. */
342
+ readonly event?: CloudEvent;
343
+ /** The lease to ack or nack with. */
344
+ readonly lease?: MessageLease;
345
+ /** This delivery's number, from 1. */
346
+ readonly deliveryCount?: number;
347
+ /** When the lease expires and the message is ready again. */
348
+ readonly leaseExpireTime?: string;
349
+ }
350
+ /** The request of ListEvents. */
351
+ export interface ListEventsRequest {
352
+ /** The parent to list in. */
353
+ parent: string;
354
+ /** At most this many; default 50, clamped to 1000. */
355
+ pageSize?: number;
356
+ /** `next_page_token` of the previous page. */
357
+ pageToken?: string;
358
+ /** AIP-160 filter over labels and filterable fields. */
359
+ filter?: string;
360
+ /** AIP-132 ordering over filterable fields. */
361
+ orderBy?: string;
362
+ }
363
+ /** The response of ListEvents. */
364
+ export interface ListEventsResponse {
365
+ /** The page. */
366
+ events?: Event[];
367
+ /** The token of the next page; empty on the last page. */
368
+ nextPageToken?: string;
369
+ }
370
+ /** The request of ListInboundEndpoints. */
371
+ export interface ListInboundEndpointsRequest {
372
+ /** The parent to list in. */
373
+ parent: string;
374
+ /** At most this many; default 50, clamped to 1000. */
375
+ pageSize?: number;
376
+ /** `next_page_token` of the previous page. */
377
+ pageToken?: string;
378
+ /** AIP-160 filter over labels and filterable fields. */
379
+ filter?: string;
380
+ /** AIP-132 ordering over filterable fields. */
381
+ orderBy?: string;
382
+ }
383
+ /** The response of ListInboundEndpoints. */
384
+ export interface ListInboundEndpointsResponse {
385
+ /** The page. */
386
+ inboundEndpoints?: InboundEndpoint[];
387
+ /** The token of the next page; empty on the last page. */
388
+ nextPageToken?: string;
389
+ }
390
+ /** The request of ListQueues. */
391
+ export interface ListQueuesRequest {
392
+ /** The parent to list in. */
393
+ parent: string;
394
+ /** At most this many; default 50, clamped to 1000. */
395
+ pageSize?: number;
396
+ /** `next_page_token` of the previous page. */
397
+ pageToken?: string;
398
+ /** AIP-160 filter over labels and filterable fields. */
399
+ filter?: string;
400
+ /** AIP-132 ordering over filterable fields. */
401
+ orderBy?: string;
402
+ }
403
+ /** The response of ListQueues. */
404
+ export interface ListQueuesResponse {
405
+ /** The page. */
406
+ queues?: Queue[];
407
+ /** The token of the next page; empty on the last page. */
408
+ nextPageToken?: string;
409
+ }
410
+ /** The request of ListRealtimeChannels. */
411
+ export interface ListRealtimeChannelsRequest {
412
+ /** The parent to list in. */
413
+ parent: string;
414
+ /** At most this many; default 50, clamped to 1000. */
415
+ pageSize?: number;
416
+ /** `next_page_token` of the previous page. */
417
+ pageToken?: string;
418
+ /** AIP-160 filter over labels and filterable fields. */
419
+ filter?: string;
420
+ /** AIP-132 ordering over filterable fields. */
421
+ orderBy?: string;
422
+ }
423
+ /** The response of ListRealtimeChannels. */
424
+ export interface ListRealtimeChannelsResponse {
425
+ /** The page. */
426
+ realtimeChannels?: RealtimeChannel[];
427
+ /** The token of the next page; empty on the last page. */
428
+ nextPageToken?: string;
429
+ }
430
+ /** The request of ListSubscriptions. */
431
+ export interface ListSubscriptionsRequest {
432
+ /** The parent to list in. */
433
+ parent: string;
434
+ /** At most this many; default 50, clamped to 1000. */
435
+ pageSize?: number;
436
+ /** `next_page_token` of the previous page. */
437
+ pageToken?: string;
438
+ /** AIP-160 filter over labels and filterable fields. */
439
+ filter?: string;
440
+ /** AIP-132 ordering over filterable fields. */
441
+ orderBy?: string;
442
+ }
443
+ /** The response of ListSubscriptions. */
444
+ export interface ListSubscriptionsResponse {
445
+ /** The page. */
446
+ subscriptions?: Subscription[];
447
+ /** The token of the next page; empty on the last page. */
448
+ nextPageToken?: string;
449
+ }
450
+ /** The request of ListTopics. */
451
+ export interface ListTopicsRequest {
452
+ /** The parent to list in. */
453
+ parent: string;
454
+ /** At most this many; default 50, clamped to 1000. */
455
+ pageSize?: number;
456
+ /** `next_page_token` of the previous page. */
457
+ pageToken?: string;
458
+ /** AIP-160 filter over labels and filterable fields. */
459
+ filter?: string;
460
+ /** AIP-132 ordering over filterable fields. */
461
+ orderBy?: string;
462
+ }
463
+ /** The response of ListTopics. */
464
+ export interface ListTopicsResponse {
465
+ /** The page. */
466
+ topics?: Topic[];
467
+ /** The token of the next page; empty on the last page. */
468
+ nextPageToken?: string;
469
+ }
470
+ /** The request of ListWebhookDeliveries. */
471
+ export interface ListWebhookDeliveriesRequest {
472
+ /** The parent to list in. */
473
+ parent: string;
474
+ /** At most this many; default 50, clamped to 1000. */
475
+ pageSize?: number;
476
+ /** `next_page_token` of the previous page. */
477
+ pageToken?: string;
478
+ /** AIP-160 filter over labels and filterable fields. */
479
+ filter?: string;
480
+ /** AIP-132 ordering over filterable fields. */
481
+ orderBy?: string;
482
+ }
483
+ /** The response of ListWebhookDeliveries. */
484
+ export interface ListWebhookDeliveriesResponse {
485
+ /** The page. */
486
+ webhookDeliveries?: WebhookDelivery[];
487
+ /** The token of the next page; empty on the last page. */
488
+ nextPageToken?: string;
489
+ }
490
+ /** The request of ListWebhookEndpoints. */
491
+ export interface ListWebhookEndpointsRequest {
492
+ /** The parent to list in. */
493
+ parent: string;
494
+ /** At most this many; default 50, clamped to 1000. */
495
+ pageSize?: number;
496
+ /** `next_page_token` of the previous page. */
497
+ pageToken?: string;
498
+ /** AIP-160 filter over labels and filterable fields. */
499
+ filter?: string;
500
+ /** AIP-132 ordering over filterable fields. */
501
+ orderBy?: string;
502
+ }
503
+ /** The response of ListWebhookEndpoints. */
504
+ export interface ListWebhookEndpointsResponse {
505
+ /** The page. */
506
+ webhookEndpoints?: WebhookEndpoint[];
507
+ /** The token of the next page; empty on the last page. */
508
+ nextPageToken?: string;
509
+ }
510
+ /** A fenced lease on one message. */
511
+ export interface MessageLease {
512
+ /** The message id. */
513
+ messageId?: string;
514
+ /** The lease fence: the lease generation this holder was granted. */
515
+ leaseGeneration?: string;
516
+ }
517
+ /** The request of NackQueueMessages. */
518
+ export interface NackQueueMessagesRequest {
519
+ /** The name of the queue. */
520
+ name: string;
521
+ /** The leases to nack, at most 100. */
522
+ leases: MessageLease[];
523
+ /** Hide the messages this long before the next lease. */
524
+ delay?: string;
525
+ }
526
+ /** The response of NackQueueMessages. */
527
+ export interface NackQueueMessagesResponse {
528
+ /** Leases that were stale and not applied. */
529
+ staleLeases?: MessageLease[];
530
+ }
531
+ /** The request of PublishEvents. */
532
+ export interface PublishEventsRequest {
533
+ /** The name of the topic. */
534
+ name: string;
535
+ /** The events, at most 100. */
536
+ events: CloudEvent[];
537
+ }
538
+ /** The response of PublishEvents. */
539
+ export interface PublishEventsResponse {
540
+ /** The stored events, in request order. */
541
+ events?: Event[];
542
+ }
543
+ /**
544
+ * A Queue holds messages for pull consumers. A consumer leases messages for a
545
+ * visibility timeout, then acks or nacks them; a lease is fenced, so a stale
546
+ * holder cannot ack a message someone else holds. A message leased
547
+ * `max_deliveries` times moves to the dead-letter queue.
548
+ */
549
+ export interface Queue {
550
+ /** `orgs/{org}/projects/{project}/envs/{env}/queues/{queue}`. */
551
+ name?: string;
552
+ /** `que_<cell><ulid>`; never reused. */
553
+ readonly uid?: string;
554
+ /** Resource metadata. */
555
+ meta?: common.ResourceMeta;
556
+ /** Desired state. */
557
+ spec?: QueueSpec;
558
+ /** Observed state. */
559
+ readonly status?: QueueStatus;
560
+ }
561
+ /** QueueSpec is the caller-writable state of a Queue. */
562
+ export interface QueueSpec {
563
+ /** How long a lease hides a message; default 30s, 1s to 12h. */
564
+ visibilityTimeout?: string;
565
+ /** Deliveries before a message dead-letters; default 5, 1 to 100. */
566
+ maxDeliveries?: number;
567
+ /**
568
+ * The dead-letter Queue; unset keeps exhausted messages in this Queue's own
569
+ * dead-letter set.
570
+ */
571
+ deadLetterQueue?: string;
572
+ /** How long an unacked message is kept; default 4d, at most 14d. */
573
+ retention?: string;
574
+ }
575
+ /** QueueStatus is the observed state of a Queue. */
576
+ export interface QueueStatus {
577
+ /** The generation this status was computed from. */
578
+ readonly observedGeneration?: string;
579
+ /** Ready, Reconciling, Stalled. */
580
+ readonly conditions?: common.Condition[];
581
+ /** Messages ready to lease. */
582
+ readonly readyCount?: string;
583
+ /** Messages under lease. */
584
+ readonly leasedCount?: string;
585
+ /** Messages in the dead-letter set. */
586
+ readonly deadLetterCount?: string;
587
+ }
588
+ /**
589
+ * A Realtime Channel delivers matching events to authorized clients over
590
+ * WebSocket or SSE, resumable from a cursor. Subscriptions route events into
591
+ * it; Notify's inbox rides it.
592
+ */
593
+ export interface RealtimeChannel {
594
+ /** `orgs/{org}/projects/{project}/envs/{env}/realtime_channels/{realtime_channel}`. */
595
+ name?: string;
596
+ /** `rtc_<cell><ulid>`; never reused. */
597
+ readonly uid?: string;
598
+ /** Resource metadata. */
599
+ meta?: common.ResourceMeta;
600
+ /** Desired state. */
601
+ spec?: RealtimeChannelSpec;
602
+ /** Observed state. */
603
+ readonly status?: RealtimeChannelStatus;
604
+ }
605
+ /** RealtimeChannelSpec is the caller-writable state of a RealtimeChannel. */
606
+ export interface RealtimeChannelSpec {
607
+ /**
608
+ * Allow clients holding a publishable key (`events:realtime:subscribe`) to
609
+ * connect.
610
+ */
611
+ publishableOk?: boolean;
612
+ /** How far back a cursor may resume; default 24h, at most 7d. */
613
+ historyRetention?: string;
614
+ }
615
+ /** RealtimeChannelStatus is the observed state of a RealtimeChannel. */
616
+ export interface RealtimeChannelStatus {
617
+ /** The generation this status was computed from. */
618
+ readonly observedGeneration?: string;
619
+ /** Ready, Reconciling, Stalled. */
620
+ readonly conditions?: common.Condition[];
621
+ /** The WebSocket and SSE URI clients connect to. */
622
+ readonly connectUri?: string;
623
+ /** Clients connected now. */
624
+ readonly connectionCount?: string;
625
+ }
626
+ /** The request of ReplayQueue. */
627
+ export interface ReplayQueueRequest {
628
+ /** The name of the queue. */
629
+ name: string;
630
+ /** Replay messages dead-lettered at or after this time. */
631
+ startTime?: string;
632
+ /** Replay messages dead-lettered before this time. */
633
+ endTime?: string;
634
+ }
635
+ /** The response of ReplayQueue. */
636
+ export interface ReplayQueueResponse {
637
+ /** Messages returned to ready. */
638
+ replayedCount?: string;
639
+ }
640
+ /** The request of ReplayWebhookDelivery. */
641
+ export interface ReplayWebhookDeliveryRequest {
642
+ /** The name of the webhook delivery. */
643
+ name: string;
644
+ }
645
+ /** The request of ReplayWebhookEndpoint. */
646
+ export interface ReplayWebhookEndpointRequest {
647
+ /** The name of the webhook endpoint. */
648
+ name: string;
649
+ /** Replay deliveries created at or after this time. */
650
+ startTime: string;
651
+ /** Replay deliveries created before this time; default now. */
652
+ endTime?: string;
653
+ }
654
+ /** The response of ReplayWebhookEndpoint. */
655
+ export interface ReplayWebhookEndpointResponse {
656
+ /** Deliveries queued again. */
657
+ replayedCount?: string;
658
+ }
659
+ /** The request of SendQueueMessages. */
660
+ export interface SendQueueMessagesRequest {
661
+ /** The name of the queue. */
662
+ name: string;
663
+ /** The messages, at most 100. */
664
+ events: CloudEvent[];
665
+ /** Hide the messages this long before their first lease. */
666
+ delay?: string;
667
+ }
668
+ /** The response of SendQueueMessages. */
669
+ export interface SendQueueMessagesResponse {
670
+ /** The message ids, in request order. */
671
+ messageIds?: string[];
672
+ }
673
+ /**
674
+ * A Subscription fans each matching event of a Topic out to one Queue, Webhook
675
+ * Endpoint, or Realtime Channel: exactly one message per (subscription,
676
+ * event).
677
+ */
678
+ export interface Subscription {
679
+ /** `orgs/{org}/projects/{project}/envs/{env}/subscriptions/{subscription}`. */
680
+ name?: string;
681
+ /** `sub_<cell><ulid>`; never reused. */
682
+ readonly uid?: string;
683
+ /** Resource metadata. */
684
+ meta?: common.ResourceMeta;
685
+ /** Desired state. */
686
+ spec?: SubscriptionSpec;
687
+ /** Observed state. */
688
+ readonly status?: SubscriptionStatus;
689
+ }
690
+ /** SubscriptionSpec is the caller-writable state of a Subscription. */
691
+ export interface SubscriptionSpec {
692
+ /** The Topic to read. */
693
+ topic?: string;
694
+ /**
695
+ * Match these CloudEvents types; empty matches all. A trailing `*` matches a
696
+ * prefix.
697
+ */
698
+ types?: string[];
699
+ /** Match these sources; empty matches all. */
700
+ sources?: string[];
701
+ /** A Queue. */
702
+ queue?: string;
703
+ /** A Webhook Endpoint. */
704
+ webhookEndpoint?: string;
705
+ /** A Realtime Channel. */
706
+ realtimeChannel?: string;
707
+ /**
708
+ * Whether matching is paused; events published while paused are not
709
+ * delivered.
710
+ */
711
+ paused?: boolean;
712
+ }
713
+ /** SubscriptionStatus is the observed state of a Subscription. */
714
+ export interface SubscriptionStatus {
715
+ /** The generation this status was computed from. */
716
+ readonly observedGeneration?: string;
717
+ /** Ready, Reconciling, Stalled. */
718
+ readonly conditions?: common.Condition[];
719
+ }
720
+ /**
721
+ * A Topic is a named stream producers publish CloudEvents into. An event is
722
+ * immutable and deduplicated by `source` + `id` within the Topic; a different
723
+ * payload under the same pair is a conflict, never a second fact.
724
+ */
725
+ export interface Topic {
726
+ /** `orgs/{org}/projects/{project}/envs/{env}/topics/{topic}`. */
727
+ name?: string;
728
+ /** `top_<cell><ulid>`; never reused. */
729
+ readonly uid?: string;
730
+ /** Resource metadata. */
731
+ meta?: common.ResourceMeta;
732
+ /** Desired state. */
733
+ spec?: TopicSpec;
734
+ /** Observed state. */
735
+ readonly status?: TopicStatus;
736
+ }
737
+ /** TopicSpec is the caller-writable state of a Topic. */
738
+ export interface TopicSpec {
739
+ /**
740
+ * How long published events stay readable and replayable; default 7d, at
741
+ * most 30d.
742
+ */
743
+ retention?: string;
744
+ }
745
+ /** TopicStatus is the observed state of a Topic. */
746
+ export interface TopicStatus {
747
+ /** The generation this status was computed from. */
748
+ readonly observedGeneration?: string;
749
+ /** Ready, Reconciling, Stalled. */
750
+ readonly conditions?: common.Condition[];
751
+ }
752
+ /** The request of UpdateInboundEndpoint. */
753
+ export interface UpdateInboundEndpointRequest {
754
+ /** The inbound endpoint to update; `name` identifies it. */
755
+ inboundEndpoint: InboundEndpoint;
756
+ /** The fields to write; unset writes every populated field. */
757
+ updateMask?: string;
758
+ /** Create the inbound endpoint when it does not exist (declarative upsert). */
759
+ allowMissing?: boolean;
760
+ /** Validate and return the result without writing anything. */
761
+ validateOnly?: boolean;
762
+ }
763
+ /** The request of UpdateQueue. */
764
+ export interface UpdateQueueRequest {
765
+ /** The queue to update; `name` identifies it. */
766
+ queue: Queue;
767
+ /** The fields to write; unset writes every populated field. */
768
+ updateMask?: string;
769
+ /** Create the queue when it does not exist (declarative upsert). */
770
+ allowMissing?: boolean;
771
+ /** Validate and return the result without writing anything. */
772
+ validateOnly?: boolean;
773
+ }
774
+ /** The request of UpdateRealtimeChannel. */
775
+ export interface UpdateRealtimeChannelRequest {
776
+ /** The realtime channel to update; `name` identifies it. */
777
+ realtimeChannel: RealtimeChannel;
778
+ /** The fields to write; unset writes every populated field. */
779
+ updateMask?: string;
780
+ /** Create the realtime channel when it does not exist (declarative upsert). */
781
+ allowMissing?: boolean;
782
+ /** Validate and return the result without writing anything. */
783
+ validateOnly?: boolean;
784
+ }
785
+ /** The request of UpdateSubscription. */
786
+ export interface UpdateSubscriptionRequest {
787
+ /** The subscription to update; `name` identifies it. */
788
+ subscription: Subscription;
789
+ /** The fields to write; unset writes every populated field. */
790
+ updateMask?: string;
791
+ /** Create the subscription when it does not exist (declarative upsert). */
792
+ allowMissing?: boolean;
793
+ /** Validate and return the result without writing anything. */
794
+ validateOnly?: boolean;
795
+ }
796
+ /** The request of UpdateTopic. */
797
+ export interface UpdateTopicRequest {
798
+ /** The topic to update; `name` identifies it. */
799
+ topic: Topic;
800
+ /** The fields to write; unset writes every populated field. */
801
+ updateMask?: string;
802
+ /** Create the topic when it does not exist (declarative upsert). */
803
+ allowMissing?: boolean;
804
+ /** Validate and return the result without writing anything. */
805
+ validateOnly?: boolean;
806
+ }
807
+ /** The request of UpdateWebhookEndpoint. */
808
+ export interface UpdateWebhookEndpointRequest {
809
+ /** The webhook endpoint to update; `name` identifies it. */
810
+ webhookEndpoint: WebhookEndpoint;
811
+ /** The fields to write; unset writes every populated field. */
812
+ updateMask?: string;
813
+ /** Create the webhook endpoint when it does not exist (declarative upsert). */
814
+ allowMissing?: boolean;
815
+ /** Validate and return the result without writing anything. */
816
+ validateOnly?: boolean;
817
+ }
818
+ /**
819
+ * A Webhook Delivery is one event on its way to a Webhook Endpoint, with every
820
+ * attempt and its immutable receipt. A receipt is evidence of an endpoint
821
+ * response, never of a human reading.
822
+ */
823
+ export interface WebhookDelivery {
824
+ /** `orgs/{org}/projects/{project}/envs/{env}/webhook_endpoints/{webhook_endpoint}/webhook_deliveries/{webhook_delivery}`. */
825
+ name?: string;
826
+ /** `whd_<cell><ulid>`; never reused. */
827
+ readonly uid?: string;
828
+ /** Resource metadata. */
829
+ meta?: common.ResourceMeta;
830
+ /** The Event delivered. */
831
+ readonly event?: string;
832
+ /** The Subscription that fanned it out. */
833
+ readonly subscription?: string;
834
+ /** The delivery state. */
835
+ readonly state?: DeliveryState;
836
+ /** Every attempt, oldest first. */
837
+ readonly attempts?: DeliveryAttempt[];
838
+ /** When the next attempt is due. */
839
+ readonly nextAttemptTime?: string;
840
+ }
841
+ /**
842
+ * A Webhook Endpoint is an HTTPS receiver that Subscriptions deliver to,
843
+ * signed per Standard Webhooks. Failures retry on the fixed schedule
844
+ * (immediately, 5s, 5m, 30m, 2h, 5h, 10h, 10h); exhausted deliveries
845
+ * dead-letter; an endpoint that keeps failing is disabled.
846
+ */
847
+ export interface WebhookEndpoint {
848
+ /** `orgs/{org}/projects/{project}/envs/{env}/webhook_endpoints/{webhook_endpoint}`. */
849
+ name?: string;
850
+ /** `whe_<cell><ulid>`; never reused. */
851
+ readonly uid?: string;
852
+ /** Resource metadata. */
853
+ meta?: common.ResourceMeta;
854
+ /** Desired state. */
855
+ spec?: WebhookEndpointSpec;
856
+ /** Observed state. */
857
+ readonly status?: WebhookEndpointStatus;
858
+ }
859
+ /** WebhookEndpointSpec is the caller-writable state of a WebhookEndpoint. */
860
+ export interface WebhookEndpointSpec {
861
+ /**
862
+ * The HTTPS URI deliveries are POSTed to; its host resolves to a public
863
+ * address.
864
+ */
865
+ uri?: string;
866
+ /** A Kernel Keys Key (sign-only, asymmetric) that signs deliveries. */
867
+ signingKey?: string;
868
+ /**
869
+ * A Kernel Secrets Secret (write-only) for symmetric Standard Webhooks
870
+ * signing.
871
+ */
872
+ signingSecret?: string;
873
+ /** Stop delivering; deliveries queue until enabled. */
874
+ disabled?: boolean;
875
+ /** At most this many deliveries in flight; default 10. */
876
+ maxConcurrentDeliveries?: number;
877
+ }
878
+ /** WebhookEndpointStatus is the observed state of a WebhookEndpoint. */
879
+ export interface WebhookEndpointStatus {
880
+ /** The generation this status was computed from. */
881
+ readonly observedGeneration?: string;
882
+ /** Ready, Reconciling, Stalled. */
883
+ readonly conditions?: common.Condition[];
884
+ /** Whether Events is delivering. */
885
+ readonly state?: WebhookEndpointState;
886
+ /** Why Events disabled the endpoint, when it did. */
887
+ readonly disableReason?: string;
888
+ /** The last 2xx answer. */
889
+ readonly lastSuccessTime?: string;
890
+ /** Consecutive failed deliveries. */
891
+ readonly consecutiveFailureCount?: number;
892
+ }
893
+ /** How one delivery attempt ended. */
894
+ export type DeliveryAttemptOutcome = 'delivered' | 'retryable_failure' | 'terminal_failure' | 'ambiguous' | (string & {});
895
+ /** The state of one webhook delivery. */
896
+ export type DeliveryState = 'pending' | 'delivered' | 'dead_lettered' | 'cancelled' | (string & {});
897
+ /** The signature scheme an Inbound Endpoint verifies. */
898
+ export type InboundSignatureScheme = 'standard_webhooks' | 'stripe' | 'shopify' | 'github' | (string & {});
899
+ /** Whether a Webhook Endpoint receives deliveries. */
900
+ export type WebhookEndpointState = 'enabled' | 'disabled' | 'failing_disabled' | (string & {});
901
+ /**
902
+ * EventsService is Sylphx Events: the event bus, queues, outbound and inbound
903
+ * webhooks, and realtime channels (docs/services/events/vision.md). Publish,
904
+ * lease, ack, and delivery run in each Cell from the Cell Snapshot.
905
+ *
906
+ * Namespace of Sylphx Events on `Sylphx`.
907
+ */
908
+ export declare class EventsApi {
909
+ /** The `topics` collection. */
910
+ readonly topics: TopicsCollection;
911
+ /** The `events` collection. */
912
+ readonly events: EventsCollection;
913
+ /** The `subscriptions` collection. */
914
+ readonly subscriptions: SubscriptionsCollection;
915
+ /** The `queues` collection. */
916
+ readonly queues: QueuesCollection;
917
+ /** The `webhook_endpoints` collection. */
918
+ readonly webhookEndpoints: WebhookEndpointsCollection;
919
+ /** The `webhook_deliveries` collection. */
920
+ readonly webhookDeliveries: WebhookDeliveriesCollection;
921
+ /** The `inbound_endpoints` collection. */
922
+ readonly inboundEndpoints: InboundEndpointsCollection;
923
+ /** The `realtime_channels` collection. */
924
+ readonly realtimeChannels: RealtimeChannelsCollection;
925
+ constructor(client: runtime.Client);
926
+ }
927
+ /** `topics` of Sylphx Events: Resource type `events.sylphx.com/Topic`. */
928
+ export declare class TopicsCollection {
929
+ private readonly client;
930
+ constructor(client: runtime.Client);
931
+ /**
932
+ * Gets a topic.
933
+ *
934
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/topics/*}` · permission `events:read` · effect `read`
935
+ *
936
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
937
+ */
938
+ get(request: GetTopicRequest): Promise<Topic>;
939
+ /**
940
+ * Lists topics.
941
+ *
942
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/topics` · permission `events:read` · effect `read`
943
+ *
944
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
945
+ */
946
+ list(request: ListTopicsRequest): Promise<ListTopicsResponse>;
947
+ /** Every item of every page of `list`. */
948
+ listAll(request: ListTopicsRequest): AsyncGenerator<Topic>;
949
+ /**
950
+ * Creates a topic.
951
+ *
952
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/topics` · permission `events:write` · effect `write`
953
+ *
954
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
955
+ */
956
+ create(request: CreateTopicRequest): Promise<Topic>;
957
+ /**
958
+ * Updates a topic.
959
+ *
960
+ * `PATCH /v1/{topic.name=orgs/*\/projects/*\/envs/*\/topics/*}` · permission `events:write` · effect `write`
961
+ *
962
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
963
+ */
964
+ update(request: UpdateTopicRequest): Promise<Topic>;
965
+ /**
966
+ * Deletes a topic.
967
+ *
968
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/topics/*}` · permission `events:write` · effect `destructive`
969
+ *
970
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
971
+ */
972
+ delete(request: DeleteTopicRequest): Promise<Record<string, never>>;
973
+ /**
974
+ * Publishes CloudEvents into a Topic, atomically. Replaying the same
975
+ * `source` + `id` with the same payload returns the stored event; a
976
+ * different payload fails with RESOURCE_ALREADY_EXISTS.
977
+ *
978
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/topics/*}:publish` · permission `events:publish` · effect `write`
979
+ *
980
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `RATE_LIMITED`, `SPEND_LIMIT_REACHED`.
981
+ */
982
+ publish(request: PublishEventsRequest): Promise<PublishEventsResponse>;
983
+ }
984
+ /** `events` of Sylphx Events: Resource type `events.sylphx.com/Event`. */
985
+ export declare class EventsCollection {
986
+ private readonly client;
987
+ constructor(client: runtime.Client);
988
+ /**
989
+ * Gets an event.
990
+ *
991
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/events/*}` · permission `events:read` · effect `read`
992
+ *
993
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
994
+ */
995
+ get(request: GetEventRequest): Promise<Event>;
996
+ /**
997
+ * Lists events.
998
+ *
999
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/events` · permission `events:read` · effect `read`
1000
+ *
1001
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1002
+ */
1003
+ list(request: ListEventsRequest): Promise<ListEventsResponse>;
1004
+ /** Every item of every page of `list`. */
1005
+ listAll(request: ListEventsRequest): AsyncGenerator<Event>;
1006
+ }
1007
+ /** `subscriptions` of Sylphx Events: Resource type `events.sylphx.com/Subscription`. */
1008
+ export declare class SubscriptionsCollection {
1009
+ private readonly client;
1010
+ constructor(client: runtime.Client);
1011
+ /**
1012
+ * Gets a subscription.
1013
+ *
1014
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/subscriptions/*}` · permission `events:read` · effect `read`
1015
+ *
1016
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1017
+ */
1018
+ get(request: GetSubscriptionRequest): Promise<Subscription>;
1019
+ /**
1020
+ * Lists subscriptions.
1021
+ *
1022
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/subscriptions` · permission `events:read` · effect `read`
1023
+ *
1024
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1025
+ */
1026
+ list(request: ListSubscriptionsRequest): Promise<ListSubscriptionsResponse>;
1027
+ /** Every item of every page of `list`. */
1028
+ listAll(request: ListSubscriptionsRequest): AsyncGenerator<Subscription>;
1029
+ /**
1030
+ * Creates a subscription.
1031
+ *
1032
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/subscriptions` · permission `events:write` · effect `write`
1033
+ *
1034
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1035
+ */
1036
+ create(request: CreateSubscriptionRequest): Promise<Subscription>;
1037
+ /**
1038
+ * Updates a subscription.
1039
+ *
1040
+ * `PATCH /v1/{subscription.name=orgs/*\/projects/*\/envs/*\/subscriptions/*}` · permission `events:write` · effect `write`
1041
+ *
1042
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1043
+ */
1044
+ update(request: UpdateSubscriptionRequest): Promise<Subscription>;
1045
+ /**
1046
+ * Deletes a subscription.
1047
+ *
1048
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/subscriptions/*}` · permission `events:write` · effect `destructive`
1049
+ *
1050
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1051
+ */
1052
+ delete(request: DeleteSubscriptionRequest): Promise<Record<string, never>>;
1053
+ }
1054
+ /** `queues` of Sylphx Events: Resource type `events.sylphx.com/Queue`. */
1055
+ export declare class QueuesCollection {
1056
+ private readonly client;
1057
+ constructor(client: runtime.Client);
1058
+ /**
1059
+ * Gets a queue.
1060
+ *
1061
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/queues/*}` · permission `events:read` · effect `read`
1062
+ *
1063
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1064
+ */
1065
+ get(request: GetQueueRequest): Promise<Queue>;
1066
+ /**
1067
+ * Lists queues.
1068
+ *
1069
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/queues` · permission `events:read` · effect `read`
1070
+ *
1071
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1072
+ */
1073
+ list(request: ListQueuesRequest): Promise<ListQueuesResponse>;
1074
+ /** Every item of every page of `list`. */
1075
+ listAll(request: ListQueuesRequest): AsyncGenerator<Queue>;
1076
+ /**
1077
+ * Creates a queue.
1078
+ *
1079
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/queues` · permission `events:write` · effect `write`
1080
+ *
1081
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1082
+ */
1083
+ create(request: CreateQueueRequest): Promise<Queue>;
1084
+ /**
1085
+ * Updates a queue.
1086
+ *
1087
+ * `PATCH /v1/{queue.name=orgs/*\/projects/*\/envs/*\/queues/*}` · permission `events:write` · effect `write`
1088
+ *
1089
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1090
+ */
1091
+ update(request: UpdateQueueRequest): Promise<Queue>;
1092
+ /**
1093
+ * Deletes a queue.
1094
+ *
1095
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/queues/*}` · permission `events:write` · effect `destructive`
1096
+ *
1097
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1098
+ */
1099
+ delete(request: DeleteQueueRequest): Promise<Record<string, never>>;
1100
+ /**
1101
+ * Enqueues messages directly, without a Subscription.
1102
+ *
1103
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/queues/*}:send` · permission `events:publish` · effect `write`
1104
+ *
1105
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `RATE_LIMITED`, `SPEND_LIMIT_REACHED`.
1106
+ */
1107
+ send(request: SendQueueMessagesRequest): Promise<SendQueueMessagesResponse>;
1108
+ /**
1109
+ * Leases up to `max_messages` ready messages for the visibility timeout.
1110
+ *
1111
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/queues/*}:lease` · permission `events:write` · effect `write`
1112
+ *
1113
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `RATE_LIMITED`.
1114
+ */
1115
+ lease(request: LeaseQueueMessagesRequest): Promise<LeaseQueueMessagesResponse>;
1116
+ /**
1117
+ * Acknowledges leased messages; each is removed. A lease that is stale
1118
+ * (expired or superseded) is reported, not applied.
1119
+ *
1120
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/queues/*}:ack` · permission `events:write` · effect `write`
1121
+ *
1122
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
1123
+ */
1124
+ ack(request: AckQueueMessagesRequest): Promise<AckQueueMessagesResponse>;
1125
+ /**
1126
+ * Returns leased messages to the Queue after `delay`; each nack counts as a
1127
+ * delivery.
1128
+ *
1129
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/queues/*}:nack` · permission `events:write` · effect `write`
1130
+ *
1131
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`.
1132
+ */
1133
+ nack(request: NackQueueMessagesRequest): Promise<NackQueueMessagesResponse>;
1134
+ /**
1135
+ * Moves dead-lettered messages, optionally bounded by dead-letter time, back
1136
+ * to ready.
1137
+ *
1138
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/queues/*}:replay` · permission `events:write` · effect `write`
1139
+ *
1140
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1141
+ */
1142
+ replay(request: ReplayQueueRequest): Promise<ReplayQueueResponse>;
1143
+ }
1144
+ /** `webhook_endpoints` of Sylphx Events: Resource type `events.sylphx.com/WebhookEndpoint`. */
1145
+ export declare class WebhookEndpointsCollection {
1146
+ private readonly client;
1147
+ constructor(client: runtime.Client);
1148
+ /**
1149
+ * Gets a webhook endpoint.
1150
+ *
1151
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/webhook_endpoints/*}` · permission `events:read` · effect `read`
1152
+ *
1153
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1154
+ */
1155
+ get(request: GetWebhookEndpointRequest): Promise<WebhookEndpoint>;
1156
+ /**
1157
+ * Lists webhook endpoints.
1158
+ *
1159
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/webhook_endpoints` · permission `events:read` · effect `read`
1160
+ *
1161
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1162
+ */
1163
+ list(request: ListWebhookEndpointsRequest): Promise<ListWebhookEndpointsResponse>;
1164
+ /** Every item of every page of `list`. */
1165
+ listAll(request: ListWebhookEndpointsRequest): AsyncGenerator<WebhookEndpoint>;
1166
+ /**
1167
+ * Creates a webhook endpoint.
1168
+ *
1169
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/webhook_endpoints` · permission `events:write` · effect `write`
1170
+ *
1171
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1172
+ */
1173
+ create(request: CreateWebhookEndpointRequest): Promise<WebhookEndpoint>;
1174
+ /**
1175
+ * Updates a webhook endpoint.
1176
+ *
1177
+ * `PATCH /v1/{webhook_endpoint.name=orgs/*\/projects/*\/envs/*\/webhook_endpoints/*}` · permission `events:write` · effect `write`
1178
+ *
1179
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1180
+ */
1181
+ update(request: UpdateWebhookEndpointRequest): Promise<WebhookEndpoint>;
1182
+ /**
1183
+ * Deletes a webhook endpoint.
1184
+ *
1185
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/webhook_endpoints/*}` · permission `events:write` · effect `destructive`
1186
+ *
1187
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1188
+ */
1189
+ delete(request: DeleteWebhookEndpointRequest): Promise<Record<string, never>>;
1190
+ /**
1191
+ * Redelivers every delivery to the endpoint in a time range, dead-lettered
1192
+ * ones included.
1193
+ *
1194
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/webhook_endpoints/*}:replay` · permission `events:write` · effect `write`
1195
+ *
1196
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1197
+ */
1198
+ replay(request: ReplayWebhookEndpointRequest): Promise<ReplayWebhookEndpointResponse>;
1199
+ }
1200
+ /** `webhook_deliveries` of Sylphx Events: Resource type `events.sylphx.com/WebhookDelivery`. */
1201
+ export declare class WebhookDeliveriesCollection {
1202
+ private readonly client;
1203
+ constructor(client: runtime.Client);
1204
+ /**
1205
+ * Gets a webhook delivery.
1206
+ *
1207
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/webhook_endpoints/*\/webhook_deliveries/*}` · permission `events:read` · effect `read`
1208
+ *
1209
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1210
+ */
1211
+ get(request: GetWebhookDeliveryRequest): Promise<WebhookDelivery>;
1212
+ /**
1213
+ * Lists webhook deliveries.
1214
+ *
1215
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*\/webhook_endpoints/*}/webhook_deliveries` · permission `events:read` · effect `read`
1216
+ *
1217
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1218
+ */
1219
+ list(request: ListWebhookDeliveriesRequest): Promise<ListWebhookDeliveriesResponse>;
1220
+ /** Every item of every page of `list`. */
1221
+ listAll(request: ListWebhookDeliveriesRequest): AsyncGenerator<WebhookDelivery>;
1222
+ /**
1223
+ * Redelivers one delivery now, as a new attempt.
1224
+ *
1225
+ * `POST /v1/{name=orgs/*\/projects/*\/envs/*\/webhook_endpoints/*\/webhook_deliveries/*}:replay` · permission `events:write` · effect `write`
1226
+ *
1227
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1228
+ */
1229
+ replay(request: ReplayWebhookDeliveryRequest): Promise<WebhookDelivery>;
1230
+ }
1231
+ /** `inbound_endpoints` of Sylphx Events: Resource type `events.sylphx.com/InboundEndpoint`. */
1232
+ export declare class InboundEndpointsCollection {
1233
+ private readonly client;
1234
+ constructor(client: runtime.Client);
1235
+ /**
1236
+ * Gets an inbound endpoint.
1237
+ *
1238
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/inbound_endpoints/*}` · permission `events:read` · effect `read`
1239
+ *
1240
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1241
+ */
1242
+ get(request: GetInboundEndpointRequest): Promise<InboundEndpoint>;
1243
+ /**
1244
+ * Lists inbound endpoints.
1245
+ *
1246
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/inbound_endpoints` · permission `events:read` · effect `read`
1247
+ *
1248
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1249
+ */
1250
+ list(request: ListInboundEndpointsRequest): Promise<ListInboundEndpointsResponse>;
1251
+ /** Every item of every page of `list`. */
1252
+ listAll(request: ListInboundEndpointsRequest): AsyncGenerator<InboundEndpoint>;
1253
+ /**
1254
+ * Creates an inbound endpoint.
1255
+ *
1256
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/inbound_endpoints` · permission `events:write` · effect `write`
1257
+ *
1258
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1259
+ */
1260
+ create(request: CreateInboundEndpointRequest): Promise<InboundEndpoint>;
1261
+ /**
1262
+ * Updates an inbound endpoint.
1263
+ *
1264
+ * `PATCH /v1/{inbound_endpoint.name=orgs/*\/projects/*\/envs/*\/inbound_endpoints/*}` · permission `events:write` · effect `write`
1265
+ *
1266
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1267
+ */
1268
+ update(request: UpdateInboundEndpointRequest): Promise<InboundEndpoint>;
1269
+ /**
1270
+ * Deletes an inbound endpoint.
1271
+ *
1272
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/inbound_endpoints/*}` · permission `events:write` · effect `destructive`
1273
+ *
1274
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1275
+ */
1276
+ delete(request: DeleteInboundEndpointRequest): Promise<Record<string, never>>;
1277
+ }
1278
+ /** `realtime_channels` of Sylphx Events: Resource type `events.sylphx.com/RealtimeChannel`. */
1279
+ export declare class RealtimeChannelsCollection {
1280
+ private readonly client;
1281
+ constructor(client: runtime.Client);
1282
+ /**
1283
+ * Gets a realtime channel.
1284
+ *
1285
+ * `GET /v1/{name=orgs/*\/projects/*\/envs/*\/realtime_channels/*}` · permission `events:read` · effect `read`
1286
+ *
1287
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
1288
+ */
1289
+ get(request: GetRealtimeChannelRequest): Promise<RealtimeChannel>;
1290
+ /**
1291
+ * Lists realtime channels.
1292
+ *
1293
+ * `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/realtime_channels` · permission `events:read` · effect `read`
1294
+ *
1295
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
1296
+ */
1297
+ list(request: ListRealtimeChannelsRequest): Promise<ListRealtimeChannelsResponse>;
1298
+ /** Every item of every page of `list`. */
1299
+ listAll(request: ListRealtimeChannelsRequest): AsyncGenerator<RealtimeChannel>;
1300
+ /**
1301
+ * Creates a realtime channel.
1302
+ *
1303
+ * `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/realtime_channels` · permission `events:write` · effect `write`
1304
+ *
1305
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`.
1306
+ */
1307
+ create(request: CreateRealtimeChannelRequest): Promise<RealtimeChannel>;
1308
+ /**
1309
+ * Updates a realtime channel.
1310
+ *
1311
+ * `PATCH /v1/{realtime_channel.name=orgs/*\/projects/*\/envs/*\/realtime_channels/*}` · permission `events:write` · effect `write`
1312
+ *
1313
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1314
+ */
1315
+ update(request: UpdateRealtimeChannelRequest): Promise<RealtimeChannel>;
1316
+ /**
1317
+ * Deletes a realtime channel.
1318
+ *
1319
+ * `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/realtime_channels/*}` · permission `events:write` · effect `destructive`
1320
+ *
1321
+ * Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
1322
+ */
1323
+ delete(request: DeleteRealtimeChannelRequest): Promise<Record<string, never>>;
1324
+ }