@open-conduit/sdk 0.0.0-stage → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/wire.d.ts ADDED
@@ -0,0 +1,1647 @@
1
+ import { type Infer } from "./schema.js";
2
+ /** A versioned payload: data is any JSON value, schema names its shape. */
3
+ export declare const Payload: import("./schema.js").Type<{
4
+ data?: unknown;
5
+ schema?: string | undefined;
6
+ }>;
7
+ export type Payload = Infer<typeof Payload>;
8
+ export declare const Key: import("./schema.js").Type<{
9
+ external_id: string;
10
+ source: string;
11
+ }>;
12
+ export type Key = Infer<typeof Key>;
13
+ export declare const Event: import("./schema.js").Type<{
14
+ actor?: string | undefined;
15
+ causation_id?: string | undefined;
16
+ correlation_key?: {
17
+ external_id: string;
18
+ source: string;
19
+ } | undefined;
20
+ data?: {
21
+ data?: unknown;
22
+ schema?: string | undefined;
23
+ } | undefined;
24
+ delivery_id?: string | undefined;
25
+ execution_id?: string | undefined;
26
+ id?: string | undefined;
27
+ occurred_at?: string | undefined;
28
+ received_at?: string | undefined;
29
+ source?: string | undefined;
30
+ type: string;
31
+ via?: string | undefined;
32
+ work_id?: string | undefined;
33
+ }>;
34
+ export type Event = Infer<typeof Event>;
35
+ export declare const AcceptedEvent: import("./schema.js").Type<{
36
+ disposition?: string | undefined;
37
+ event: {
38
+ actor?: string | undefined;
39
+ causation_id?: string | undefined;
40
+ correlation_key?: {
41
+ external_id: string;
42
+ source: string;
43
+ } | undefined;
44
+ data?: {
45
+ data?: unknown;
46
+ schema?: string | undefined;
47
+ } | undefined;
48
+ delivery_id?: string | undefined;
49
+ execution_id?: string | undefined;
50
+ id?: string | undefined;
51
+ occurred_at?: string | undefined;
52
+ received_at?: string | undefined;
53
+ source?: string | undefined;
54
+ type: string;
55
+ via?: string | undefined;
56
+ work_id?: string | undefined;
57
+ };
58
+ retired?: boolean | undefined;
59
+ routed: boolean;
60
+ routed_work_id?: string | undefined;
61
+ scope_id?: string | undefined;
62
+ sequence: number;
63
+ }>;
64
+ export type AcceptedEvent = Infer<typeof AcceptedEvent>;
65
+ export declare const DisplayLink: import("./schema.js").Type<{
66
+ label: string;
67
+ url: string;
68
+ }>;
69
+ export type DisplayLink = Infer<typeof DisplayLink>;
70
+ export declare const Display: import("./schema.js").Type<{
71
+ links?: {
72
+ label: string;
73
+ url: string;
74
+ }[] | undefined;
75
+ ref?: string | undefined;
76
+ requester?: string | undefined;
77
+ title?: string | undefined;
78
+ }>;
79
+ export type Display = Infer<typeof Display>;
80
+ export declare const Work: import("./schema.js").Type<{
81
+ context: {
82
+ data?: unknown;
83
+ schema?: string | undefined;
84
+ };
85
+ correlation_keys: {
86
+ external_id: string;
87
+ source: string;
88
+ }[] | null;
89
+ created_at: string;
90
+ display?: {
91
+ links?: {
92
+ label: string;
93
+ url: string;
94
+ }[] | undefined;
95
+ ref?: string | undefined;
96
+ requester?: string | undefined;
97
+ title?: string | undefined;
98
+ } | undefined;
99
+ id: string;
100
+ kind: string;
101
+ latest_executor?: string | undefined;
102
+ parent_id?: string | undefined;
103
+ revision: number;
104
+ scope_id: string;
105
+ state: string;
106
+ updated_at: string;
107
+ }>;
108
+ export type Work = Infer<typeof Work>;
109
+ /** One Event for a Work that no attempt of it has read yet: queued, or accepted and not yet routed (unrouted). */
110
+ export declare const PendingInput: import("./schema.js").Type<{
111
+ binding?: string | undefined;
112
+ event_id: string;
113
+ sequence: number;
114
+ type: string;
115
+ unrouted?: boolean | undefined;
116
+ }>;
117
+ export type PendingInput = Infer<typeof PendingInput>;
118
+ export declare const LeaseRef: import("./schema.js").Type<{
119
+ epoch: number;
120
+ execution_id: string;
121
+ owner: string;
122
+ }>;
123
+ export type LeaseRef = Infer<typeof LeaseRef>;
124
+ /** The authority an operation call runs under: its scope, Work and grant. */
125
+ export declare const Authority: import("./schema.js").Type<{
126
+ connection?: string | undefined;
127
+ event_types?: string[] | undefined;
128
+ execution_id: string;
129
+ expires_at: string;
130
+ lease: {
131
+ epoch: number;
132
+ execution_id: string;
133
+ owner: string;
134
+ };
135
+ operations?: string[] | undefined;
136
+ scope_id: string;
137
+ trigger_id?: string | undefined;
138
+ work_id: string;
139
+ work_kinds?: {
140
+ description?: string | undefined;
141
+ kind: string;
142
+ }[] | undefined;
143
+ }>;
144
+ export type Authority = Infer<typeof Authority>;
145
+ export declare const HostInfo: import("./schema.js").Type<{
146
+ name: string;
147
+ version: string;
148
+ }>;
149
+ export type HostInfo = Infer<typeof HostInfo>;
150
+ export declare const InitializeParams: import("./schema.js").Type<{
151
+ host: {
152
+ name: string;
153
+ version: string;
154
+ };
155
+ protocol_versions: number[] | null;
156
+ state_dir: string;
157
+ }>;
158
+ export type InitializeParams = Infer<typeof InitializeParams>;
159
+ export declare const InitializeResult: import("./schema.js").Type<{
160
+ manifest: unknown;
161
+ protocol_version: number;
162
+ }>;
163
+ export type InitializeResult = Infer<typeof InitializeResult>;
164
+ export declare const ConnectionEntry: import("./schema.js").Type<{
165
+ config?: unknown;
166
+ id: string;
167
+ secrets?: string[] | undefined;
168
+ type: string;
169
+ }>;
170
+ export type ConnectionEntry = Infer<typeof ConnectionEntry>;
171
+ /** One configured scope entry of one of the extension's types. */
172
+ export declare const ConfigEntry: import("./schema.js").Type<{
173
+ binding_connections?: {
174
+ config?: unknown;
175
+ id: string;
176
+ secrets?: string[] | undefined;
177
+ type: string;
178
+ }[] | undefined;
179
+ config?: unknown;
180
+ connection?: {
181
+ config?: unknown;
182
+ id: string;
183
+ secrets?: string[] | undefined;
184
+ type: string;
185
+ } | undefined;
186
+ name?: string | undefined;
187
+ scope_id: string;
188
+ secrets?: string[] | undefined;
189
+ type: string;
190
+ }>;
191
+ export type ConfigEntry = Infer<typeof ConfigEntry>;
192
+ export declare const KVState: import("./schema.js").Type<{
193
+ declared: number;
194
+ stored: number;
195
+ }>;
196
+ export type KVState = Infer<typeof KVState>;
197
+ export declare const ConfigureParams: import("./schema.js").Type<{
198
+ disabled?: {
199
+ binding_connections?: {
200
+ config?: unknown;
201
+ id: string;
202
+ secrets?: string[] | undefined;
203
+ type: string;
204
+ }[] | undefined;
205
+ config?: unknown;
206
+ connection?: {
207
+ config?: unknown;
208
+ id: string;
209
+ secrets?: string[] | undefined;
210
+ type: string;
211
+ } | undefined;
212
+ name?: string | undefined;
213
+ scope_id: string;
214
+ secrets?: string[] | undefined;
215
+ type: string;
216
+ }[] | undefined;
217
+ dry_run?: boolean | undefined;
218
+ entries?: {
219
+ binding_connections?: {
220
+ config?: unknown;
221
+ id: string;
222
+ secrets?: string[] | undefined;
223
+ type: string;
224
+ }[] | undefined;
225
+ config?: unknown;
226
+ connection?: {
227
+ config?: unknown;
228
+ id: string;
229
+ secrets?: string[] | undefined;
230
+ type: string;
231
+ } | undefined;
232
+ name?: string | undefined;
233
+ scope_id: string;
234
+ secrets?: string[] | undefined;
235
+ type: string;
236
+ }[] | undefined;
237
+ generation: string;
238
+ kv: {
239
+ declared: number;
240
+ stored: number;
241
+ };
242
+ public_url?: string | undefined;
243
+ }>;
244
+ export type ConfigureParams = Infer<typeof ConfigureParams>;
245
+ export declare const ValidateParams: import("./schema.js").Type<{
246
+ config?: unknown;
247
+ kind: string;
248
+ secret_names?: string[] | undefined;
249
+ type: string;
250
+ }>;
251
+ export type ValidateParams = Infer<typeof ValidateParams>;
252
+ export declare const OperationParams: import("./schema.js").Type<{
253
+ authority: {
254
+ connection?: string | undefined;
255
+ event_types?: string[] | undefined;
256
+ execution_id: string;
257
+ expires_at: string;
258
+ lease: {
259
+ epoch: number;
260
+ execution_id: string;
261
+ owner: string;
262
+ };
263
+ operations?: string[] | undefined;
264
+ scope_id: string;
265
+ trigger_id?: string | undefined;
266
+ work_id: string;
267
+ work_kinds?: {
268
+ description?: string | undefined;
269
+ kind: string;
270
+ }[] | undefined;
271
+ };
272
+ input: {
273
+ data?: unknown;
274
+ schema?: string | undefined;
275
+ };
276
+ operation: string;
277
+ request_id?: string | undefined;
278
+ }>;
279
+ export type OperationParams = Infer<typeof OperationParams>;
280
+ export declare const OperationResult: import("./schema.js").Type<{
281
+ output: {
282
+ data?: unknown;
283
+ schema?: string | undefined;
284
+ };
285
+ }>;
286
+ export type OperationResult = Infer<typeof OperationResult>;
287
+ export declare const TaskRunParams: import("./schema.js").Type<{
288
+ task: string;
289
+ }>;
290
+ export type TaskRunParams = Infer<typeof TaskRunParams>;
291
+ /** What runs a sleeping task before its time. */
292
+ export declare const TaskWake: import("./schema.js").Type<{
293
+ families?: string[] | undefined;
294
+ work?: boolean | undefined;
295
+ }>;
296
+ export type TaskWake = Infer<typeof TaskWake>;
297
+ /** What a task says about its next run; empty keeps its declared interval. */
298
+ export declare const TaskRunResult: import("./schema.js").Type<{
299
+ next_run_at?: string | undefined;
300
+ wake?: {
301
+ families?: string[] | undefined;
302
+ work?: boolean | undefined;
303
+ } | undefined;
304
+ }>;
305
+ export type TaskRunResult = Infer<typeof TaskRunResult>;
306
+ export declare const CheckRunParams: import("./schema.js").Type<{
307
+ check: string;
308
+ config: unknown;
309
+ deep?: boolean | undefined;
310
+ }>;
311
+ export type CheckRunParams = Infer<typeof CheckRunParams>;
312
+ export declare const CheckRunResult: import("./schema.js").Type<{
313
+ code?: string | undefined;
314
+ detail?: string | undefined;
315
+ items?: string[] | undefined;
316
+ ok: boolean;
317
+ status?: string | undefined;
318
+ }>;
319
+ export type CheckRunResult = Infer<typeof CheckRunResult>;
320
+ export declare const KVGetParams: import("./schema.js").Type<{
321
+ key: string;
322
+ namespace: string;
323
+ }>;
324
+ export type KVGetParams = Infer<typeof KVGetParams>;
325
+ export declare const KVEntry: import("./schema.js").Type<{
326
+ key: string;
327
+ value: string | null;
328
+ version: string;
329
+ }>;
330
+ export type KVEntry = Infer<typeof KVEntry>;
331
+ export declare const KVGetResult: import("./schema.js").Type<{
332
+ entry: {
333
+ key: string;
334
+ value: string | null;
335
+ version: string;
336
+ };
337
+ found: boolean;
338
+ }>;
339
+ export type KVGetResult = Infer<typeof KVGetResult>;
340
+ export declare const KVListParams: import("./schema.js").Type<{
341
+ namespace: string;
342
+ prefix?: string | undefined;
343
+ }>;
344
+ export type KVListParams = Infer<typeof KVListParams>;
345
+ export declare const KVListResult: import("./schema.js").Type<{
346
+ entries: {
347
+ key: string;
348
+ value: string | null;
349
+ version: string;
350
+ }[] | null;
351
+ }>;
352
+ export type KVListResult = Infer<typeof KVListResult>;
353
+ /** A precondition: the key holds version, or is absent. */
354
+ export declare const KVCheck: import("./schema.js").Type<{
355
+ absent?: boolean | undefined;
356
+ key: string;
357
+ namespace: string;
358
+ version?: string | undefined;
359
+ }>;
360
+ export type KVCheck = Infer<typeof KVCheck>;
361
+ export declare const KVPut: import("./schema.js").Type<{
362
+ key: string;
363
+ namespace: string;
364
+ value: string;
365
+ }>;
366
+ export type KVPut = Infer<typeof KVPut>;
367
+ export declare const KVDelete: import("./schema.js").Type<{
368
+ key: string;
369
+ namespace: string;
370
+ }>;
371
+ export type KVDelete = Infer<typeof KVDelete>;
372
+ export declare const KVCommitParams: import("./schema.js").Type<{
373
+ checks?: {
374
+ absent?: boolean | undefined;
375
+ key: string;
376
+ namespace: string;
377
+ version?: string | undefined;
378
+ }[] | undefined;
379
+ deletes?: {
380
+ key: string;
381
+ namespace: string;
382
+ }[] | undefined;
383
+ puts?: {
384
+ key: string;
385
+ namespace: string;
386
+ value: string;
387
+ }[] | undefined;
388
+ }>;
389
+ export type KVCommitParams = Infer<typeof KVCommitParams>;
390
+ /** A Work's position in a state.works order: the next page starts after it. */
391
+ export declare const WorkCursor: import("./schema.js").Type<{
392
+ at: string;
393
+ id: string;
394
+ }>;
395
+ export type WorkCursor = Infer<typeof WorkCursor>;
396
+ export declare const StateParams: import("./schema.js").Type<{
397
+ after?: number | undefined;
398
+ correlation?: {
399
+ external_id: string;
400
+ source: string;
401
+ } | undefined;
402
+ cursor?: {
403
+ at: string;
404
+ id: string;
405
+ } | undefined;
406
+ delivery_id?: string | undefined;
407
+ executor?: string | undefined;
408
+ id?: string | undefined;
409
+ kind?: string | undefined;
410
+ limit?: number | undefined;
411
+ order?: string | undefined;
412
+ parent_id?: string | undefined;
413
+ scope_id?: string | undefined;
414
+ source?: string | undefined;
415
+ sources?: string[] | undefined;
416
+ states?: string[] | undefined;
417
+ updated_since?: string | undefined;
418
+ }>;
419
+ export type StateParams = Infer<typeof StateParams>;
420
+ export declare const EventAcceptParams: import("./schema.js").Type<{
421
+ checks?: {
422
+ absent?: boolean | undefined;
423
+ key: string;
424
+ namespace: string;
425
+ version?: string | undefined;
426
+ }[] | undefined;
427
+ deletes?: {
428
+ key: string;
429
+ namespace: string;
430
+ }[] | undefined;
431
+ event: {
432
+ actor?: string | undefined;
433
+ causation_id?: string | undefined;
434
+ correlation_key?: {
435
+ external_id: string;
436
+ source: string;
437
+ } | undefined;
438
+ data?: {
439
+ data?: unknown;
440
+ schema?: string | undefined;
441
+ } | undefined;
442
+ delivery_id?: string | undefined;
443
+ execution_id?: string | undefined;
444
+ id?: string | undefined;
445
+ occurred_at?: string | undefined;
446
+ received_at?: string | undefined;
447
+ source?: string | undefined;
448
+ type: string;
449
+ via?: string | undefined;
450
+ work_id?: string | undefined;
451
+ };
452
+ parent: string;
453
+ records?: {
454
+ key: string;
455
+ namespace: string;
456
+ value: string;
457
+ }[] | undefined;
458
+ scope_id: string;
459
+ }>;
460
+ export type EventAcceptParams = Infer<typeof EventAcceptParams>;
461
+ export declare const EventAcceptResult: import("./schema.js").Type<{
462
+ added: boolean;
463
+ event: {
464
+ disposition?: string | undefined;
465
+ event: {
466
+ actor?: string | undefined;
467
+ causation_id?: string | undefined;
468
+ correlation_key?: {
469
+ external_id: string;
470
+ source: string;
471
+ } | undefined;
472
+ data?: {
473
+ data?: unknown;
474
+ schema?: string | undefined;
475
+ } | undefined;
476
+ delivery_id?: string | undefined;
477
+ execution_id?: string | undefined;
478
+ id?: string | undefined;
479
+ occurred_at?: string | undefined;
480
+ received_at?: string | undefined;
481
+ source?: string | undefined;
482
+ type: string;
483
+ via?: string | undefined;
484
+ work_id?: string | undefined;
485
+ };
486
+ retired?: boolean | undefined;
487
+ routed: boolean;
488
+ routed_work_id?: string | undefined;
489
+ scope_id?: string | undefined;
490
+ sequence: number;
491
+ };
492
+ }>;
493
+ export type EventAcceptResult = Infer<typeof EventAcceptResult>;
494
+ export declare const SecretResolveParams: import("./schema.js").Type<{
495
+ connection?: string | undefined;
496
+ names: string[];
497
+ scope_id: string;
498
+ }>;
499
+ export type SecretResolveParams = Infer<typeof SecretResolveParams>;
500
+ export declare const SecretResolveResult: import("./schema.js").Type<{
501
+ values: Record<string, string> | null;
502
+ }>;
503
+ export type SecretResolveResult = Infer<typeof SecretResolveResult>;
504
+ export declare const ArtifactCreateParams: import("./schema.js").Type<{
505
+ media_type: string;
506
+ }>;
507
+ export type ArtifactCreateParams = Infer<typeof ArtifactCreateParams>;
508
+ export declare const ArtifactCreateResult: import("./schema.js").Type<{
509
+ writer: string;
510
+ }>;
511
+ export type ArtifactCreateResult = Infer<typeof ArtifactCreateResult>;
512
+ export declare const ArtifactWriteParams: import("./schema.js").Type<{
513
+ chunk: string;
514
+ writer: string;
515
+ }>;
516
+ export type ArtifactWriteParams = Infer<typeof ArtifactWriteParams>;
517
+ export declare const ArtifactTarget: import("./schema.js").Type<{
518
+ writer: string;
519
+ }>;
520
+ export type ArtifactTarget = Infer<typeof ArtifactTarget>;
521
+ export declare const ArtifactRef: import("./schema.js").Type<{
522
+ id: string;
523
+ media_type?: string | undefined;
524
+ sha256?: string | undefined;
525
+ size: number;
526
+ }>;
527
+ export type ArtifactRef = Infer<typeof ArtifactRef>;
528
+ /** A source's namespace (its correlation keys' source) in a scope. */
529
+ export declare const Source: import("./schema.js").Type<{
530
+ namespace: string;
531
+ scope_id: string;
532
+ }>;
533
+ export type Source = Infer<typeof Source>;
534
+ /** One delivery of a push (a webhook's body); body is base64. */
535
+ export declare const Delivery: import("./schema.js").Type<{
536
+ body?: string | undefined;
537
+ content_type?: string | undefined;
538
+ id: string;
539
+ received_at: string;
540
+ }>;
541
+ export type Delivery = Infer<typeof Delivery>;
542
+ export declare const EventFamily: import("./schema.js").Type<{
543
+ loss?: string | undefined;
544
+ re_derivable: boolean;
545
+ type: string;
546
+ }>;
547
+ export type EventFamily = Infer<typeof EventFamily>;
548
+ /** What a source holds of one object now: its ID, version and the Event it maps to. */
549
+ export declare const Observation: import("./schema.js").Type<{
550
+ event: {
551
+ actor?: string | undefined;
552
+ causation_id?: string | undefined;
553
+ correlation_key?: {
554
+ external_id: string;
555
+ source: string;
556
+ } | undefined;
557
+ data?: {
558
+ data?: unknown;
559
+ schema?: string | undefined;
560
+ } | undefined;
561
+ delivery_id?: string | undefined;
562
+ execution_id?: string | undefined;
563
+ id?: string | undefined;
564
+ occurred_at?: string | undefined;
565
+ received_at?: string | undefined;
566
+ source?: string | undefined;
567
+ type: string;
568
+ via?: string | undefined;
569
+ work_id?: string | undefined;
570
+ };
571
+ id: string;
572
+ version: string;
573
+ }>;
574
+ export type Observation = Infer<typeof Observation>;
575
+ export declare const PushResult: import("./schema.js").Type<{
576
+ events?: {
577
+ actor?: string | undefined;
578
+ causation_id?: string | undefined;
579
+ correlation_key?: {
580
+ external_id: string;
581
+ source: string;
582
+ } | undefined;
583
+ data?: {
584
+ data?: unknown;
585
+ schema?: string | undefined;
586
+ } | undefined;
587
+ delivery_id?: string | undefined;
588
+ execution_id?: string | undefined;
589
+ id?: string | undefined;
590
+ occurred_at?: string | undefined;
591
+ received_at?: string | undefined;
592
+ source?: string | undefined;
593
+ type: string;
594
+ via?: string | undefined;
595
+ work_id?: string | undefined;
596
+ }[] | undefined;
597
+ observations?: {
598
+ event: {
599
+ actor?: string | undefined;
600
+ causation_id?: string | undefined;
601
+ correlation_key?: {
602
+ external_id: string;
603
+ source: string;
604
+ } | undefined;
605
+ data?: {
606
+ data?: unknown;
607
+ schema?: string | undefined;
608
+ } | undefined;
609
+ delivery_id?: string | undefined;
610
+ execution_id?: string | undefined;
611
+ id?: string | undefined;
612
+ occurred_at?: string | undefined;
613
+ received_at?: string | undefined;
614
+ source?: string | undefined;
615
+ type: string;
616
+ via?: string | undefined;
617
+ work_id?: string | undefined;
618
+ };
619
+ id: string;
620
+ version: string;
621
+ }[] | undefined;
622
+ }>;
623
+ export type PushResult = Infer<typeof PushResult>;
624
+ export declare const Scan: import("./schema.js").Type<{
625
+ checkpoint?: string | undefined;
626
+ cursor?: string | undefined;
627
+ scan_id?: string | undefined;
628
+ source: {
629
+ namespace: string;
630
+ scope_id: string;
631
+ };
632
+ }>;
633
+ export type Scan = Infer<typeof Scan>;
634
+ /**
635
+ * One page of a reconcile. complete certifies the scan covered the whole
636
+ * source across its pages; false with no next_cursor is a partial scan,
637
+ * never proof that anything is gone. not_before (an RFC 3339 time) says the
638
+ * provider can't answer this page yet, a rate limit say: such a page has no
639
+ * observations, is not complete and repeats the scan's cursor as next_cursor,
640
+ * and the host asks for it again at that time without counting a failure.
641
+ */
642
+ export declare const Snapshot: import("./schema.js").Type<{
643
+ checkpoint?: string | undefined;
644
+ complete: boolean;
645
+ next_cursor?: string | undefined;
646
+ not_before?: string | undefined;
647
+ observations?: {
648
+ event: {
649
+ actor?: string | undefined;
650
+ causation_id?: string | undefined;
651
+ correlation_key?: {
652
+ external_id: string;
653
+ source: string;
654
+ } | undefined;
655
+ data?: {
656
+ data?: unknown;
657
+ schema?: string | undefined;
658
+ } | undefined;
659
+ delivery_id?: string | undefined;
660
+ execution_id?: string | undefined;
661
+ id?: string | undefined;
662
+ occurred_at?: string | undefined;
663
+ received_at?: string | undefined;
664
+ source?: string | undefined;
665
+ type: string;
666
+ via?: string | undefined;
667
+ work_id?: string | undefined;
668
+ };
669
+ id: string;
670
+ version: string;
671
+ }[] | undefined;
672
+ scan_id: string;
673
+ }>;
674
+ export type Snapshot = Infer<typeof Snapshot>;
675
+ /** A source an entry registers at configure. */
676
+ export declare const SourceDecl: import("./schema.js").Type<{
677
+ families: {
678
+ loss?: string | undefined;
679
+ re_derivable: boolean;
680
+ type: string;
681
+ }[];
682
+ interval_seconds: number;
683
+ name: string;
684
+ source: {
685
+ namespace: string;
686
+ scope_id: string;
687
+ };
688
+ }>;
689
+ export type SourceDecl = Infer<typeof SourceDecl>;
690
+ export declare const ConfigureResult: import("./schema.js").Type<{
691
+ kv_version: number;
692
+ sources?: {
693
+ families: {
694
+ loss?: string | undefined;
695
+ re_derivable: boolean;
696
+ type: string;
697
+ }[];
698
+ interval_seconds: number;
699
+ name: string;
700
+ source: {
701
+ namespace: string;
702
+ scope_id: string;
703
+ };
704
+ }[] | undefined;
705
+ webhook_paths?: string[] | undefined;
706
+ }>;
707
+ export type ConfigureResult = Infer<typeof ConfigureResult>;
708
+ export declare const IngressPushParams: import("./schema.js").Type<{
709
+ delivery: {
710
+ body?: string | undefined;
711
+ content_type?: string | undefined;
712
+ id: string;
713
+ received_at: string;
714
+ };
715
+ name: string;
716
+ source: {
717
+ namespace: string;
718
+ scope_id: string;
719
+ };
720
+ }>;
721
+ export type IngressPushParams = Infer<typeof IngressPushParams>;
722
+ export declare const IngressReconcileParams: import("./schema.js").Type<{
723
+ name: string;
724
+ scan: {
725
+ checkpoint?: string | undefined;
726
+ cursor?: string | undefined;
727
+ scan_id?: string | undefined;
728
+ source: {
729
+ namespace: string;
730
+ scope_id: string;
731
+ };
732
+ };
733
+ }>;
734
+ export type IngressReconcileParams = Infer<typeof IngressReconcileParams>;
735
+ export declare const IngressDeliverParams: import("./schema.js").Type<{
736
+ delivery: {
737
+ body?: string | undefined;
738
+ content_type?: string | undefined;
739
+ id: string;
740
+ received_at: string;
741
+ };
742
+ name: string;
743
+ }>;
744
+ export type IngressDeliverParams = Infer<typeof IngressDeliverParams>;
745
+ /** A delivery's accepted Events; added[i] is false for one already accepted (a retry). */
746
+ export declare const IngressDeliverResult: import("./schema.js").Type<{
747
+ accepted: {
748
+ disposition?: string | undefined;
749
+ event: {
750
+ actor?: string | undefined;
751
+ causation_id?: string | undefined;
752
+ correlation_key?: {
753
+ external_id: string;
754
+ source: string;
755
+ } | undefined;
756
+ data?: {
757
+ data?: unknown;
758
+ schema?: string | undefined;
759
+ } | undefined;
760
+ delivery_id?: string | undefined;
761
+ execution_id?: string | undefined;
762
+ id?: string | undefined;
763
+ occurred_at?: string | undefined;
764
+ received_at?: string | undefined;
765
+ source?: string | undefined;
766
+ type: string;
767
+ via?: string | undefined;
768
+ work_id?: string | undefined;
769
+ };
770
+ retired?: boolean | undefined;
771
+ routed: boolean;
772
+ routed_work_id?: string | undefined;
773
+ scope_id?: string | undefined;
774
+ sequence: number;
775
+ }[] | null;
776
+ added: boolean[] | null;
777
+ }>;
778
+ export type IngressDeliverResult = Infer<typeof IngressDeliverResult>;
779
+ /** One HTTP request on a webhook path the extension registered; body is base64. */
780
+ export declare const WebhookHandleParams: import("./schema.js").Type<{
781
+ body?: string | undefined;
782
+ forward_id?: string | undefined;
783
+ header?: Record<string, string[]> | undefined;
784
+ method: string;
785
+ path: string;
786
+ query?: string | undefined;
787
+ received_at: string;
788
+ }>;
789
+ export type WebhookHandleParams = Infer<typeof WebhookHandleParams>;
790
+ export declare const WebhookHandleResult: import("./schema.js").Type<{
791
+ body?: string | undefined;
792
+ header?: Record<string, string[]> | undefined;
793
+ status: number;
794
+ }>;
795
+ export type WebhookHandleResult = Infer<typeof WebhookHandleResult>;
796
+ export declare const Route: import("./schema.js").Type<{
797
+ active_policy?: string | undefined;
798
+ binding: string;
799
+ config: {
800
+ data?: unknown;
801
+ schema?: string | undefined;
802
+ };
803
+ handler: string;
804
+ name: string;
805
+ }>;
806
+ export type Route = Infer<typeof Route>;
807
+ /** A scope as an extension sees it: never its secret references. */
808
+ export declare const Scope: import("./schema.js").Type<{
809
+ bindings?: unknown[] | undefined;
810
+ config: {
811
+ data?: unknown;
812
+ schema?: string | undefined;
813
+ };
814
+ created_at: string;
815
+ id: string;
816
+ name: string;
817
+ parent_id?: string | undefined;
818
+ revision: number;
819
+ routes?: {
820
+ active_policy?: string | undefined;
821
+ binding: string;
822
+ config: {
823
+ data?: unknown;
824
+ schema?: string | undefined;
825
+ };
826
+ handler: string;
827
+ name: string;
828
+ }[] | undefined;
829
+ updated_at: string;
830
+ }>;
831
+ export type Scope = Infer<typeof Scope>;
832
+ export declare const RouteInput: import("./schema.js").Type<{
833
+ event: {
834
+ disposition?: string | undefined;
835
+ event: {
836
+ actor?: string | undefined;
837
+ causation_id?: string | undefined;
838
+ correlation_key?: {
839
+ external_id: string;
840
+ source: string;
841
+ } | undefined;
842
+ data?: {
843
+ data?: unknown;
844
+ schema?: string | undefined;
845
+ } | undefined;
846
+ delivery_id?: string | undefined;
847
+ execution_id?: string | undefined;
848
+ id?: string | undefined;
849
+ occurred_at?: string | undefined;
850
+ received_at?: string | undefined;
851
+ source?: string | undefined;
852
+ type: string;
853
+ via?: string | undefined;
854
+ work_id?: string | undefined;
855
+ };
856
+ retired?: boolean | undefined;
857
+ routed: boolean;
858
+ routed_work_id?: string | undefined;
859
+ scope_id?: string | undefined;
860
+ sequence: number;
861
+ };
862
+ route: {
863
+ active_policy?: string | undefined;
864
+ binding: string;
865
+ config: {
866
+ data?: unknown;
867
+ schema?: string | undefined;
868
+ };
869
+ handler: string;
870
+ name: string;
871
+ };
872
+ scope: {
873
+ bindings?: unknown[] | undefined;
874
+ config: {
875
+ data?: unknown;
876
+ schema?: string | undefined;
877
+ };
878
+ created_at: string;
879
+ id: string;
880
+ name: string;
881
+ parent_id?: string | undefined;
882
+ revision: number;
883
+ routes?: {
884
+ active_policy?: string | undefined;
885
+ binding: string;
886
+ config: {
887
+ data?: unknown;
888
+ schema?: string | undefined;
889
+ };
890
+ handler: string;
891
+ name: string;
892
+ }[] | undefined;
893
+ updated_at: string;
894
+ };
895
+ work?: {
896
+ context: {
897
+ data?: unknown;
898
+ schema?: string | undefined;
899
+ };
900
+ correlation_keys: {
901
+ external_id: string;
902
+ source: string;
903
+ }[] | null;
904
+ created_at: string;
905
+ display?: {
906
+ links?: {
907
+ label: string;
908
+ url: string;
909
+ }[] | undefined;
910
+ ref?: string | undefined;
911
+ requester?: string | undefined;
912
+ title?: string | undefined;
913
+ } | undefined;
914
+ id: string;
915
+ kind: string;
916
+ latest_executor?: string | undefined;
917
+ parent_id?: string | undefined;
918
+ revision: number;
919
+ scope_id: string;
920
+ state: string;
921
+ updated_at: string;
922
+ } | undefined;
923
+ }>;
924
+ export type RouteInput = Infer<typeof RouteInput>;
925
+ /**
926
+ * A route's answer for one Event. On a match with no work, create_id and
927
+ * kind open new Work; attach_keys add correlation keys to it; display
928
+ * replaces what the Work shows. deliver is absent to queue the Event on
929
+ * the route's binding, "none" to only attach, "current" to queue it on the
930
+ * binding the Work runs on.
931
+ */
932
+ export declare const RouteDecision: import("./schema.js").Type<{
933
+ attach_keys?: {
934
+ external_id: string;
935
+ source: string;
936
+ }[] | undefined;
937
+ context?: {
938
+ data?: unknown;
939
+ schema?: string | undefined;
940
+ } | undefined;
941
+ create_id?: string | undefined;
942
+ deliver?: string | undefined;
943
+ display?: {
944
+ links?: {
945
+ label: string;
946
+ url: string;
947
+ }[] | undefined;
948
+ ref?: string | undefined;
949
+ requester?: string | undefined;
950
+ title?: string | undefined;
951
+ } | undefined;
952
+ grants?: string[] | undefined;
953
+ kind?: string | undefined;
954
+ match: boolean;
955
+ reason?: string | undefined;
956
+ successor?: boolean | undefined;
957
+ }>;
958
+ export type RouteDecision = Infer<typeof RouteDecision>;
959
+ /** A sample Event a route handler offers for a route trace (routes.decisions). */
960
+ export declare const RouteSample: import("./schema.js").Type<{
961
+ event: {
962
+ actor?: string | undefined;
963
+ causation_id?: string | undefined;
964
+ correlation_key?: {
965
+ external_id: string;
966
+ source: string;
967
+ } | undefined;
968
+ data?: {
969
+ data?: unknown;
970
+ schema?: string | undefined;
971
+ } | undefined;
972
+ delivery_id?: string | undefined;
973
+ execution_id?: string | undefined;
974
+ id?: string | undefined;
975
+ occurred_at?: string | undefined;
976
+ received_at?: string | undefined;
977
+ source?: string | undefined;
978
+ type: string;
979
+ via?: string | undefined;
980
+ work_id?: string | undefined;
981
+ };
982
+ id: string;
983
+ title: string;
984
+ }>;
985
+ export type RouteSample = Infer<typeof RouteSample>;
986
+ export declare const RouteMatchParams: import("./schema.js").Type<{
987
+ handler: string;
988
+ input: {
989
+ event: {
990
+ disposition?: string | undefined;
991
+ event: {
992
+ actor?: string | undefined;
993
+ causation_id?: string | undefined;
994
+ correlation_key?: {
995
+ external_id: string;
996
+ source: string;
997
+ } | undefined;
998
+ data?: {
999
+ data?: unknown;
1000
+ schema?: string | undefined;
1001
+ } | undefined;
1002
+ delivery_id?: string | undefined;
1003
+ execution_id?: string | undefined;
1004
+ id?: string | undefined;
1005
+ occurred_at?: string | undefined;
1006
+ received_at?: string | undefined;
1007
+ source?: string | undefined;
1008
+ type: string;
1009
+ via?: string | undefined;
1010
+ work_id?: string | undefined;
1011
+ };
1012
+ retired?: boolean | undefined;
1013
+ routed: boolean;
1014
+ routed_work_id?: string | undefined;
1015
+ scope_id?: string | undefined;
1016
+ sequence: number;
1017
+ };
1018
+ route: {
1019
+ active_policy?: string | undefined;
1020
+ binding: string;
1021
+ config: {
1022
+ data?: unknown;
1023
+ schema?: string | undefined;
1024
+ };
1025
+ handler: string;
1026
+ name: string;
1027
+ };
1028
+ scope: {
1029
+ bindings?: unknown[] | undefined;
1030
+ config: {
1031
+ data?: unknown;
1032
+ schema?: string | undefined;
1033
+ };
1034
+ created_at: string;
1035
+ id: string;
1036
+ name: string;
1037
+ parent_id?: string | undefined;
1038
+ revision: number;
1039
+ routes?: {
1040
+ active_policy?: string | undefined;
1041
+ binding: string;
1042
+ config: {
1043
+ data?: unknown;
1044
+ schema?: string | undefined;
1045
+ };
1046
+ handler: string;
1047
+ name: string;
1048
+ }[] | undefined;
1049
+ updated_at: string;
1050
+ };
1051
+ work?: {
1052
+ context: {
1053
+ data?: unknown;
1054
+ schema?: string | undefined;
1055
+ };
1056
+ correlation_keys: {
1057
+ external_id: string;
1058
+ source: string;
1059
+ }[] | null;
1060
+ created_at: string;
1061
+ display?: {
1062
+ links?: {
1063
+ label: string;
1064
+ url: string;
1065
+ }[] | undefined;
1066
+ ref?: string | undefined;
1067
+ requester?: string | undefined;
1068
+ title?: string | undefined;
1069
+ } | undefined;
1070
+ id: string;
1071
+ kind: string;
1072
+ latest_executor?: string | undefined;
1073
+ parent_id?: string | undefined;
1074
+ revision: number;
1075
+ scope_id: string;
1076
+ state: string;
1077
+ updated_at: string;
1078
+ } | undefined;
1079
+ };
1080
+ }>;
1081
+ export type RouteMatchParams = Infer<typeof RouteMatchParams>;
1082
+ export declare const RouteSamplesParams: import("./schema.js").Type<{
1083
+ handler: string;
1084
+ now: string;
1085
+ route: {
1086
+ active_policy?: string | undefined;
1087
+ binding: string;
1088
+ config: {
1089
+ data?: unknown;
1090
+ schema?: string | undefined;
1091
+ };
1092
+ handler: string;
1093
+ name: string;
1094
+ };
1095
+ scope: {
1096
+ bindings?: unknown[] | undefined;
1097
+ config: {
1098
+ data?: unknown;
1099
+ schema?: string | undefined;
1100
+ };
1101
+ created_at: string;
1102
+ id: string;
1103
+ name: string;
1104
+ parent_id?: string | undefined;
1105
+ revision: number;
1106
+ routes?: {
1107
+ active_policy?: string | undefined;
1108
+ binding: string;
1109
+ config: {
1110
+ data?: unknown;
1111
+ schema?: string | undefined;
1112
+ };
1113
+ handler: string;
1114
+ name: string;
1115
+ }[] | undefined;
1116
+ updated_at: string;
1117
+ };
1118
+ }>;
1119
+ export type RouteSamplesParams = Infer<typeof RouteSamplesParams>;
1120
+ export declare const RouteSamplesResult: import("./schema.js").Type<{
1121
+ samples: {
1122
+ event: {
1123
+ actor?: string | undefined;
1124
+ causation_id?: string | undefined;
1125
+ correlation_key?: {
1126
+ external_id: string;
1127
+ source: string;
1128
+ } | undefined;
1129
+ data?: {
1130
+ data?: unknown;
1131
+ schema?: string | undefined;
1132
+ } | undefined;
1133
+ delivery_id?: string | undefined;
1134
+ execution_id?: string | undefined;
1135
+ id?: string | undefined;
1136
+ occurred_at?: string | undefined;
1137
+ received_at?: string | undefined;
1138
+ source?: string | undefined;
1139
+ type: string;
1140
+ via?: string | undefined;
1141
+ work_id?: string | undefined;
1142
+ };
1143
+ id: string;
1144
+ title: string;
1145
+ }[];
1146
+ }>;
1147
+ export type RouteSamplesResult = Infer<typeof RouteSamplesResult>;
1148
+ export declare const WorkKindTriggerParams: import("./schema.js").Type<{
1149
+ inputs: {
1150
+ actor?: string | undefined;
1151
+ causation_id?: string | undefined;
1152
+ correlation_key?: {
1153
+ external_id: string;
1154
+ source: string;
1155
+ } | undefined;
1156
+ data?: {
1157
+ data?: unknown;
1158
+ schema?: string | undefined;
1159
+ } | undefined;
1160
+ delivery_id?: string | undefined;
1161
+ execution_id?: string | undefined;
1162
+ id?: string | undefined;
1163
+ occurred_at?: string | undefined;
1164
+ received_at?: string | undefined;
1165
+ source?: string | undefined;
1166
+ type: string;
1167
+ via?: string | undefined;
1168
+ work_id?: string | undefined;
1169
+ }[] | null;
1170
+ kind: string;
1171
+ }>;
1172
+ export type WorkKindTriggerParams = Infer<typeof WorkKindTriggerParams>;
1173
+ export declare const WorkKindTriggerResult: import("./schema.js").Type<{
1174
+ index: number;
1175
+ }>;
1176
+ export type WorkKindTriggerResult = Infer<typeof WorkKindTriggerResult>;
1177
+ /**
1178
+ * What a wait suspends the Work until: an Event of one of types (any, when
1179
+ * empty) on one of keys (every key the Work owns, when empty), or timeout.
1180
+ */
1181
+ export declare const WaitRequest: import("./schema.js").Type<{
1182
+ after_sequence?: number | undefined;
1183
+ description?: string | undefined;
1184
+ keys?: {
1185
+ external_id: string;
1186
+ source: string;
1187
+ }[] | undefined;
1188
+ timeout?: string | undefined;
1189
+ types?: string[] | undefined;
1190
+ }>;
1191
+ export type WaitRequest = Infer<typeof WaitRequest>;
1192
+ /**
1193
+ * A subscription to Events on another key (another Work's, or one no Work
1194
+ * owns yet), aliased into the waiting Work as alias_type Events.
1195
+ */
1196
+ export declare const Dependency: import("./schema.js").Type<{
1197
+ alias_type: string;
1198
+ filter: {
1199
+ data?: unknown;
1200
+ schema?: string | undefined;
1201
+ };
1202
+ from_now?: boolean | undefined;
1203
+ id: string;
1204
+ label?: string | undefined;
1205
+ source_key: {
1206
+ external_id: string;
1207
+ source: string;
1208
+ };
1209
+ source_scope_id?: string | undefined;
1210
+ types?: string[] | undefined;
1211
+ }>;
1212
+ export type Dependency = Infer<typeof Dependency>;
1213
+ export declare const WaitPlan: import("./schema.js").Type<{
1214
+ dependencies?: {
1215
+ alias_type: string;
1216
+ filter: {
1217
+ data?: unknown;
1218
+ schema?: string | undefined;
1219
+ };
1220
+ from_now?: boolean | undefined;
1221
+ id: string;
1222
+ label?: string | undefined;
1223
+ source_key: {
1224
+ external_id: string;
1225
+ source: string;
1226
+ };
1227
+ source_scope_id?: string | undefined;
1228
+ types?: string[] | undefined;
1229
+ }[] | undefined;
1230
+ output: {
1231
+ data?: unknown;
1232
+ schema?: string | undefined;
1233
+ };
1234
+ wait: {
1235
+ after_sequence?: number | undefined;
1236
+ description?: string | undefined;
1237
+ keys?: {
1238
+ external_id: string;
1239
+ source: string;
1240
+ }[] | undefined;
1241
+ timeout?: string | undefined;
1242
+ types?: string[] | undefined;
1243
+ };
1244
+ }>;
1245
+ export type WaitPlan = Infer<typeof WaitPlan>;
1246
+ export declare const EmitPlan: import("./schema.js").Type<{
1247
+ cause?: string | undefined;
1248
+ commit_id?: string | undefined;
1249
+ event: {
1250
+ actor?: string | undefined;
1251
+ causation_id?: string | undefined;
1252
+ correlation_key?: {
1253
+ external_id: string;
1254
+ source: string;
1255
+ } | undefined;
1256
+ data?: {
1257
+ data?: unknown;
1258
+ schema?: string | undefined;
1259
+ } | undefined;
1260
+ delivery_id?: string | undefined;
1261
+ execution_id?: string | undefined;
1262
+ id?: string | undefined;
1263
+ occurred_at?: string | undefined;
1264
+ received_at?: string | undefined;
1265
+ source?: string | undefined;
1266
+ type: string;
1267
+ via?: string | undefined;
1268
+ work_id?: string | undefined;
1269
+ };
1270
+ once?: string | undefined;
1271
+ }>;
1272
+ export type EmitPlan = Infer<typeof EmitPlan>;
1273
+ /** The Event an emission accepted, as its commit receives it. */
1274
+ export declare const Emitted: import("./schema.js").Type<{
1275
+ added: boolean;
1276
+ depth: number;
1277
+ event: {
1278
+ disposition?: string | undefined;
1279
+ event: {
1280
+ actor?: string | undefined;
1281
+ causation_id?: string | undefined;
1282
+ correlation_key?: {
1283
+ external_id: string;
1284
+ source: string;
1285
+ } | undefined;
1286
+ data?: {
1287
+ data?: unknown;
1288
+ schema?: string | undefined;
1289
+ } | undefined;
1290
+ delivery_id?: string | undefined;
1291
+ execution_id?: string | undefined;
1292
+ id?: string | undefined;
1293
+ occurred_at?: string | undefined;
1294
+ received_at?: string | undefined;
1295
+ source?: string | undefined;
1296
+ type: string;
1297
+ via?: string | undefined;
1298
+ work_id?: string | undefined;
1299
+ };
1300
+ retired?: boolean | undefined;
1301
+ routed: boolean;
1302
+ routed_work_id?: string | undefined;
1303
+ scope_id?: string | undefined;
1304
+ sequence: number;
1305
+ };
1306
+ root: string;
1307
+ }>;
1308
+ export type Emitted = Infer<typeof Emitted>;
1309
+ /** A KV write an emission's commit makes; value is base64. */
1310
+ export declare const EmitRecord: import("./schema.js").Type<{
1311
+ key: string;
1312
+ namespace: string;
1313
+ value: string;
1314
+ }>;
1315
+ export type EmitRecord = Infer<typeof EmitRecord>;
1316
+ export declare const EmitCommit: import("./schema.js").Type<{
1317
+ output: {
1318
+ data?: unknown;
1319
+ schema?: string | undefined;
1320
+ };
1321
+ records?: {
1322
+ key: string;
1323
+ namespace: string;
1324
+ value: string;
1325
+ }[] | undefined;
1326
+ }>;
1327
+ export type EmitCommit = Infer<typeof EmitCommit>;
1328
+ export declare const EmitCommitParams: import("./schema.js").Type<{
1329
+ commit_id: string;
1330
+ emitted: {
1331
+ added: boolean;
1332
+ depth: number;
1333
+ event: {
1334
+ disposition?: string | undefined;
1335
+ event: {
1336
+ actor?: string | undefined;
1337
+ causation_id?: string | undefined;
1338
+ correlation_key?: {
1339
+ external_id: string;
1340
+ source: string;
1341
+ } | undefined;
1342
+ data?: {
1343
+ data?: unknown;
1344
+ schema?: string | undefined;
1345
+ } | undefined;
1346
+ delivery_id?: string | undefined;
1347
+ execution_id?: string | undefined;
1348
+ id?: string | undefined;
1349
+ occurred_at?: string | undefined;
1350
+ received_at?: string | undefined;
1351
+ source?: string | undefined;
1352
+ type: string;
1353
+ via?: string | undefined;
1354
+ work_id?: string | undefined;
1355
+ };
1356
+ retired?: boolean | undefined;
1357
+ routed: boolean;
1358
+ routed_work_id?: string | undefined;
1359
+ scope_id?: string | undefined;
1360
+ sequence: number;
1361
+ };
1362
+ root: string;
1363
+ };
1364
+ }>;
1365
+ export type EmitCommitParams = Infer<typeof EmitCommitParams>;
1366
+ export declare const Family: import("./schema.js").Type<{
1367
+ loss?: string | undefined;
1368
+ re_derivable: boolean;
1369
+ sealed?: boolean | undefined;
1370
+ type: string;
1371
+ }>;
1372
+ export type Family = Infer<typeof Family>;
1373
+ /** A payload schema the extension writes and reads: the versions it reads, the highest being the one it writes. */
1374
+ export declare const SchemaDecl: import("./schema.js").Type<{
1375
+ name: string;
1376
+ versions: number[];
1377
+ }>;
1378
+ export type SchemaDecl = Infer<typeof SchemaDecl>;
1379
+ export declare const ExtensionDecl: import("./schema.js").Type<{
1380
+ ingress?: boolean | undefined;
1381
+ type: string;
1382
+ }>;
1383
+ export type ExtensionDecl = Infer<typeof ExtensionDecl>;
1384
+ export declare const OperationDecl: import("./schema.js").Type<{
1385
+ commit?: boolean | undefined;
1386
+ guidance?: string | undefined;
1387
+ input?: Record<string, unknown> | undefined;
1388
+ kind: "emit" | "handler" | "wait";
1389
+ name: string;
1390
+ serves?: string | undefined;
1391
+ summary?: string | undefined;
1392
+ wants?: string | undefined;
1393
+ }>;
1394
+ export type OperationDecl = Infer<typeof OperationDecl>;
1395
+ export declare const RouteDecl: import("./schema.js").Type<{
1396
+ config?: boolean | undefined;
1397
+ handler: string;
1398
+ samples?: boolean | undefined;
1399
+ }>;
1400
+ export type RouteDecl = Infer<typeof RouteDecl>;
1401
+ export declare const WorkKindDecl: import("./schema.js").Type<{
1402
+ kind: string;
1403
+ run_once?: boolean | undefined;
1404
+ standing?: boolean | undefined;
1405
+ timed?: boolean | undefined;
1406
+ trigger?: boolean | undefined;
1407
+ }>;
1408
+ export type WorkKindDecl = Infer<typeof WorkKindDecl>;
1409
+ export declare const ToolsetOperation: import("./schema.js").Type<{
1410
+ name: string;
1411
+ since?: number | undefined;
1412
+ }>;
1413
+ export type ToolsetOperation = Infer<typeof ToolsetOperation>;
1414
+ export declare const ToolsetDecl: import("./schema.js").Type<{
1415
+ name: string;
1416
+ operations: {
1417
+ name: string;
1418
+ since?: number | undefined;
1419
+ }[];
1420
+ summary?: string | undefined;
1421
+ }>;
1422
+ export type ToolsetDecl = Infer<typeof ToolsetDecl>;
1423
+ export declare const TaskDecl: import("./schema.js").Type<{
1424
+ interval_seconds: number;
1425
+ name: string;
1426
+ }>;
1427
+ export type TaskDecl = Infer<typeof TaskDecl>;
1428
+ export declare const CheckDecl: import("./schema.js").Type<{
1429
+ deep?: boolean | undefined;
1430
+ name: string;
1431
+ }>;
1432
+ export type CheckDecl = Infer<typeof CheckDecl>;
1433
+ export declare const Provides: import("./schema.js").Type<{
1434
+ checks?: {
1435
+ deep?: boolean | undefined;
1436
+ name: string;
1437
+ }[] | undefined;
1438
+ extensions?: {
1439
+ ingress?: boolean | undefined;
1440
+ type: string;
1441
+ }[] | undefined;
1442
+ families?: {
1443
+ loss?: string | undefined;
1444
+ re_derivable: boolean;
1445
+ sealed?: boolean | undefined;
1446
+ type: string;
1447
+ }[] | undefined;
1448
+ operations?: {
1449
+ commit?: boolean | undefined;
1450
+ guidance?: string | undefined;
1451
+ input?: Record<string, unknown> | undefined;
1452
+ kind: "emit" | "handler" | "wait";
1453
+ name: string;
1454
+ serves?: string | undefined;
1455
+ summary?: string | undefined;
1456
+ wants?: string | undefined;
1457
+ }[] | undefined;
1458
+ playbooks?: string | undefined;
1459
+ routes?: {
1460
+ config?: boolean | undefined;
1461
+ handler: string;
1462
+ samples?: boolean | undefined;
1463
+ }[] | undefined;
1464
+ schemas?: {
1465
+ name: string;
1466
+ versions: number[];
1467
+ }[] | undefined;
1468
+ tasks?: {
1469
+ interval_seconds: number;
1470
+ name: string;
1471
+ }[] | undefined;
1472
+ toolsets?: {
1473
+ name: string;
1474
+ operations: {
1475
+ name: string;
1476
+ since?: number | undefined;
1477
+ }[];
1478
+ summary?: string | undefined;
1479
+ }[] | undefined;
1480
+ webhook_max_bytes?: number | undefined;
1481
+ webhooks?: boolean | undefined;
1482
+ work_kinds?: {
1483
+ kind: string;
1484
+ run_once?: boolean | undefined;
1485
+ standing?: boolean | undefined;
1486
+ timed?: boolean | undefined;
1487
+ trigger?: boolean | undefined;
1488
+ }[] | undefined;
1489
+ }>;
1490
+ export type Provides = Infer<typeof Provides>;
1491
+ export declare const Manifest: import("./schema.js").Type<{
1492
+ command: string[];
1493
+ kv_version?: number | undefined;
1494
+ name: string;
1495
+ permissions?: string[] | undefined;
1496
+ protocol: number[];
1497
+ provides: {
1498
+ checks?: {
1499
+ deep?: boolean | undefined;
1500
+ name: string;
1501
+ }[] | undefined;
1502
+ extensions?: {
1503
+ ingress?: boolean | undefined;
1504
+ type: string;
1505
+ }[] | undefined;
1506
+ families?: {
1507
+ loss?: string | undefined;
1508
+ re_derivable: boolean;
1509
+ sealed?: boolean | undefined;
1510
+ type: string;
1511
+ }[] | undefined;
1512
+ operations?: {
1513
+ commit?: boolean | undefined;
1514
+ guidance?: string | undefined;
1515
+ input?: Record<string, unknown> | undefined;
1516
+ kind: "emit" | "handler" | "wait";
1517
+ name: string;
1518
+ serves?: string | undefined;
1519
+ summary?: string | undefined;
1520
+ wants?: string | undefined;
1521
+ }[] | undefined;
1522
+ playbooks?: string | undefined;
1523
+ routes?: {
1524
+ config?: boolean | undefined;
1525
+ handler: string;
1526
+ samples?: boolean | undefined;
1527
+ }[] | undefined;
1528
+ schemas?: {
1529
+ name: string;
1530
+ versions: number[];
1531
+ }[] | undefined;
1532
+ tasks?: {
1533
+ interval_seconds: number;
1534
+ name: string;
1535
+ }[] | undefined;
1536
+ toolsets?: {
1537
+ name: string;
1538
+ operations: {
1539
+ name: string;
1540
+ since?: number | undefined;
1541
+ }[];
1542
+ summary?: string | undefined;
1543
+ }[] | undefined;
1544
+ webhook_max_bytes?: number | undefined;
1545
+ webhooks?: boolean | undefined;
1546
+ work_kinds?: {
1547
+ kind: string;
1548
+ run_once?: boolean | undefined;
1549
+ standing?: boolean | undefined;
1550
+ timed?: boolean | undefined;
1551
+ trigger?: boolean | undefined;
1552
+ }[] | undefined;
1553
+ };
1554
+ summary?: string | undefined;
1555
+ title?: string | undefined;
1556
+ version: string;
1557
+ }>;
1558
+ export type Manifest = Infer<typeof Manifest>;
1559
+ export declare const OperationCase: import("./schema.js").Type<{
1560
+ error?: string | undefined;
1561
+ input: {
1562
+ data?: unknown;
1563
+ schema?: string | undefined;
1564
+ };
1565
+ operation: string;
1566
+ output?: {
1567
+ data?: unknown;
1568
+ schema?: string | undefined;
1569
+ } | undefined;
1570
+ }>;
1571
+ export type OperationCase = Infer<typeof OperationCase>;
1572
+ export declare const Fixture: import("./schema.js").Type<{
1573
+ entries?: {
1574
+ binding_connections?: {
1575
+ config?: unknown;
1576
+ id: string;
1577
+ secrets?: string[] | undefined;
1578
+ type: string;
1579
+ }[] | undefined;
1580
+ config?: unknown;
1581
+ connection?: {
1582
+ config?: unknown;
1583
+ id: string;
1584
+ secrets?: string[] | undefined;
1585
+ type: string;
1586
+ } | undefined;
1587
+ name?: string | undefined;
1588
+ scope_id: string;
1589
+ secrets?: string[] | undefined;
1590
+ type: string;
1591
+ }[] | undefined;
1592
+ operations?: {
1593
+ error?: string | undefined;
1594
+ input: {
1595
+ data?: unknown;
1596
+ schema?: string | undefined;
1597
+ };
1598
+ operation: string;
1599
+ output?: {
1600
+ data?: unknown;
1601
+ schema?: string | undefined;
1602
+ } | undefined;
1603
+ }[] | undefined;
1604
+ scopes?: string[] | undefined;
1605
+ secrets?: Record<string, string> | undefined;
1606
+ }>;
1607
+ export type Fixture = Infer<typeof Fixture>;
1608
+ /** A package's certification.json: the fixture `extension certify` runs. */
1609
+ export declare const CertificationFile: import("./schema.js").Type<{
1610
+ command?: string[] | undefined;
1611
+ fixture?: {
1612
+ entries?: {
1613
+ binding_connections?: {
1614
+ config?: unknown;
1615
+ id: string;
1616
+ secrets?: string[] | undefined;
1617
+ type: string;
1618
+ }[] | undefined;
1619
+ config?: unknown;
1620
+ connection?: {
1621
+ config?: unknown;
1622
+ id: string;
1623
+ secrets?: string[] | undefined;
1624
+ type: string;
1625
+ } | undefined;
1626
+ name?: string | undefined;
1627
+ scope_id: string;
1628
+ secrets?: string[] | undefined;
1629
+ type: string;
1630
+ }[] | undefined;
1631
+ operations?: {
1632
+ error?: string | undefined;
1633
+ input: {
1634
+ data?: unknown;
1635
+ schema?: string | undefined;
1636
+ };
1637
+ operation: string;
1638
+ output?: {
1639
+ data?: unknown;
1640
+ schema?: string | undefined;
1641
+ } | undefined;
1642
+ }[] | undefined;
1643
+ scopes?: string[] | undefined;
1644
+ secrets?: Record<string, string> | undefined;
1645
+ } | undefined;
1646
+ }>;
1647
+ export type CertificationFile = Infer<typeof CertificationFile>;