@vibelord/lanes 1.7.6 → 1.8.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 (38) hide show
  1. package/README.md +13 -9
  2. package/package.json +1 -1
  3. package/payload/lanes/README.md +2 -2
  4. package/payload/lanes/VERSION +1 -1
  5. package/payload/lanes/bin/lanes +26 -4
  6. package/payload/lanes/bin/lanes-site-serve +4 -8
  7. package/payload/lanes/bin-rs/BINARIES.json +17 -2
  8. package/payload/lanes/bin-rs/THIRD-PARTY-NOTICES +18953 -0
  9. package/payload/lanes/bin-rs/x86_64-unknown-linux-musl/lanes-hook +0 -0
  10. package/payload/lanes/bin-rs/x86_64-unknown-linux-musl/lanes-terminal +0 -0
  11. package/payload/lanes/client/lanes-launch +4 -2
  12. package/payload/lanes/container/lane-mcp +1 -1
  13. package/payload/lanes/container/lane_core.py +4 -3
  14. package/payload/lanes/docs/ARCHITECTURE.md +38 -9
  15. package/payload/lanes/docs/RUNBOOK.md +123 -53
  16. package/payload/lanes/docs/USERGUIDE.md +68 -9
  17. package/payload/lanes/install/lanes-host.service.in +25 -0
  18. package/payload/lanes/install/services.py +243 -0
  19. package/payload/lanes/libexec/agent_state.py +3 -1
  20. package/payload/lanes/libexec/attach.py +139 -21
  21. package/payload/lanes/libexec/cutover.py +24 -4
  22. package/payload/lanes/libexec/doctor_lanes2.py +3 -3
  23. package/payload/lanes/libexec/native.sh +2 -2
  24. package/payload/lanes/libexec/native_bin.py +595 -109
  25. package/payload/lanes/libexec/shadow.py +51 -3
  26. package/payload/lanes/libexec/sidebar.py +208 -35
  27. package/payload/lanes/libexec/sidebar_status.py +190 -80
  28. package/payload/lanes/libexec/update.py +12 -3
  29. package/payload/lanes/site/protocol.py +24 -9
  30. package/payload/lanes/site/relay.py +292 -0
  31. package/payload/lanes/site/server.py +31 -3
  32. package/payload/lanes/web/README.md +6 -6
  33. package/payload/lanes/web/directory.js +10 -8
  34. package/payload/lanes/web/generated/README.md +85 -21
  35. package/payload/lanes/web/generated/lanes2_protocol.d.mts +4190 -188
  36. package/payload/lanes/web/generated/lanes2_protocol.mjs +14218 -351
  37. package/payload/lanes/web/inbox.js +8 -6
  38. package/payload/manifest.json +22 -5
@@ -1,4 +1,4 @@
1
- // GENERATED by crates/lanes-protocol/src/schema/codegen.rs from docs/contracts/lanes2/schema (sha256:8770ee3de77611ab0ae32f07efd29a6e9640a86292954de263a91f83cf8ad35c). Do not edit; regenerate with `LANES2_DECODERS_BLESS=1 cargo test -p lanes-protocol --lib schema::codegen` in a managed build job.
1
+ // GENERATED by crates/lanes-protocol/src/schema/codegen.rs from docs/contracts/lanes2/schema (sha256:558037ad6db6b20af095acf718408e3d4b1ca672f33cbd824ce4db25fd58505d). Do not edit; regenerate with `LANES2_DECODERS_BLESS=1 cargo test -p lanes-protocol --lib schema::codegen` in a managed build job.
2
2
  // Declarations of lanes2_protocol.mjs; consume them from JavaScript through JSDoc, for example
3
3
  // /** @typedef {import('./generated/lanes2_protocol.mjs').Receipt} Receipt */
4
4
 
@@ -16,7 +16,7 @@ export declare class Lanes2DecodeError extends Error {
16
16
  readonly reason: string;
17
17
  }
18
18
 
19
- /** Compact JSON of a decoded document, members in their own order. */
19
+ /** Compact JSON of plain wire values, members in their own order: no null and no negative integer (a document's own encoder writes those where its schema has them). */
20
20
  export declare function encode(value: unknown): string;
21
21
 
22
22
  export type Frame =
@@ -27,7 +27,9 @@ export type Frame =
27
27
  | { frame: "subscribe"; body: Subscribe }
28
28
  | { frame: "snapshot"; body: Snapshot }
29
29
  | { frame: "resync"; body: Resync }
30
- | { frame: "refused"; body: FrameRefusal };
30
+ | { frame: "refused"; body: FrameRefusal }
31
+ | { frame: "request"; body: Request }
32
+ | { frame: "document"; body: Document };
31
33
 
32
34
  /** Tolerant: unknown members of a newer peer are accepted and dropped. */
33
35
  export interface Hello {
@@ -61,6 +63,8 @@ export interface HelloPeer {
61
63
  build: string;
62
64
  /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
63
65
  instance_id: string;
66
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
67
+ device?: string;
64
68
  }
65
69
 
66
70
  /** Tolerant: unknown members of a newer peer are accepted and dropped. */
@@ -123,7 +127,9 @@ export type CommandPayload =
123
127
  | { kind: "set_view_mode"; args: CommandPayloadSetViewMode }
124
128
  | { kind: "return_focus"; args: CommandPayloadReturnFocus }
125
129
  | { kind: "resize_view"; args: CommandPayloadResizeView }
126
- | { kind: "answer_prompt"; args: CommandPayloadAnswerPrompt };
130
+ | { kind: "answer_prompt"; args: CommandPayloadAnswerPrompt }
131
+ | { kind: "close_lane"; args: CommandPayloadCloseLane }
132
+ | { kind: "register_lane"; args: CommandPayloadRegisterLane };
127
133
 
128
134
  export interface CommandPayloadRenameLane {
129
135
  /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
@@ -176,6 +182,14 @@ export interface CommandPayloadAnswerPrompt {
176
182
 
177
183
  export type CommandPayloadAnswerPromptAssurance = "atomic_prompt_answer" | "verified_terminal_answer";
178
184
 
185
+ export interface CommandPayloadCloseLane {
186
+ }
187
+
188
+ export interface CommandPayloadRegisterLane {
189
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
190
+ display_name?: string;
191
+ }
192
+
179
193
  export interface Receipt {
180
194
  v: 1;
181
195
  /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
@@ -264,7 +278,8 @@ export type EventPayload =
264
278
  | { kind: "prompt_opened"; data: EventPayloadPromptOpened }
265
279
  | { kind: "prompt_closed"; data: EventPayloadPromptClosed }
266
280
  | { kind: "receipt"; data: Receipt }
267
- | { kind: "cursor_advance"; data: EventPayloadCursorAdvance };
281
+ | { kind: "cursor_advance"; data: EventPayloadCursorAdvance }
282
+ | { kind: "document_changed"; data: EventPayloadDocumentChanged };
268
283
 
269
284
  export interface EventPayloadDirectoryRowRemoved {
270
285
  lane: EventPayloadDirectoryRowRemovedLane;
@@ -331,6 +346,16 @@ export type EventPayloadPromptClosedCause = "answered" | "superseded" | "expired
331
346
  export interface EventPayloadCursorAdvance {
332
347
  }
333
348
 
349
+ export interface EventPayloadDocumentChanged {
350
+ kind: EventPayloadDocumentChangedKind;
351
+ /** Unsigned 64-bit integer, at least 0. */
352
+ revision: bigint;
353
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
354
+ scope?: string;
355
+ }
356
+
357
+ export type EventPayloadDocumentChangedKind = "inbox_page" | "inbox_thread" | "builds_panel" | "build_log" | "capacity_panel" | "economics_panel" | "tools_panel" | "tool_repair" | "connector_page" | "schedules_page" | "project_view" | "presentation_preferences" | "signals";
358
+
334
359
  export interface Subscribe {
335
360
  v: 1;
336
361
  /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
@@ -404,6 +429,71 @@ export interface FrameRefusal {
404
429
 
405
430
  export type FrameRefusalCode = "malformed" | "frame_too_large" | "too_deep" | "invalid" | "wrong_direction" | "not_negotiated" | "stale_epoch" | "hello_after_negotiation" | "expected_hello" | "protocol_epoch_changed";
406
431
 
432
+ export interface Request {
433
+ v: 1;
434
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
435
+ request_id: string;
436
+ /** Unsigned 64-bit integer, at least 0. */
437
+ protocol_epoch: bigint;
438
+ /** Unsigned integer, 0 to 4294967295. */
439
+ remaining_deadline_ms: number;
440
+ payload: RequestPayload;
441
+ }
442
+
443
+ export type RequestPayload =
444
+ | { kind: "inbox_page"; args: InboxPageRequest }
445
+ | { kind: "inbox_thread"; args: InboxThreadRequest }
446
+ | { kind: "builds_panel"; args: PanelPageRequest }
447
+ | { kind: "build_log"; args: BuildLogRequest }
448
+ | { kind: "capacity_panel"; args: PanelPageRequest }
449
+ | { kind: "economics_panel"; args: PanelPageRequest }
450
+ | { kind: "tools_panel"; args: PanelPageRequest }
451
+ | { kind: "tool_repair"; args: ToolRepairRequest }
452
+ | { kind: "connector_page"; args: ConnectorPageRequest }
453
+ | { kind: "schedules_page"; args: PanelPageRequest }
454
+ | { kind: "project_view"; args: ProjectViewRequest }
455
+ | { kind: "presentation_preferences"; args: RequestPayloadPresentationPreferences }
456
+ | { kind: "signals"; args: RequestPayloadSignals }
457
+ | { kind: "inbox_thread_action"; args: InboxThreadCommand }
458
+ | { kind: "inbox_compose"; args: InboxComposeCommand }
459
+ | { kind: "preferences_update"; args: PreferencesUpdate }
460
+ | { kind: "connector_command"; args: ConnectorCommand }
461
+ | { kind: "schedule_command"; args: ScheduleCommand }
462
+ | { kind: "project_command"; args: ProjectCommand }
463
+ | { kind: "view_step"; args: ViewStep }
464
+ | { kind: "sidebar_command"; args: SidebarCommand };
465
+
466
+ export interface RequestPayloadPresentationPreferences {
467
+ v: 1;
468
+ }
469
+
470
+ export interface RequestPayloadSignals {
471
+ v: 1;
472
+ }
473
+
474
+ export interface Document {
475
+ v: 1;
476
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
477
+ request_id: string;
478
+ payload: DocumentPayload;
479
+ }
480
+
481
+ export type DocumentPayload =
482
+ | { kind: "inbox_projection"; body: InboxProjection }
483
+ | { kind: "inbox_thread"; body: InboxThread }
484
+ | { kind: "builds_panel"; body: BuildsPanel }
485
+ | { kind: "build_log"; body: BuildLogPage }
486
+ | { kind: "capacity_panel"; body: CapacityPanel }
487
+ | { kind: "economics_panel"; body: EconomicsPanel }
488
+ | { kind: "tools_panel"; body: ToolsPanel }
489
+ | { kind: "tool_repair"; body: ToolRepair }
490
+ | { kind: "connector_page"; body: ConnectorPage }
491
+ | { kind: "schedules_page"; body: SchedulesPage }
492
+ | { kind: "project_view"; body: ProjectView }
493
+ | { kind: "presentation_preferences"; body: PrincipalPresentationPreferences }
494
+ | { kind: "signals_snapshot"; body: SignalsSnapshot }
495
+ | { kind: "view_result"; body: ViewResult };
496
+
407
497
  export interface RuntimeBinding {
408
498
  v: 1;
409
499
  product: RuntimeBindingProduct;
@@ -453,7 +543,7 @@ export interface RuntimeBindingNegotiatedOperationsItem {
453
543
  initiator: RuntimeBindingNegotiatedOperationsItemInitiator;
454
544
  }
455
545
 
456
- export type RuntimeBindingNegotiatedOperationsItemCapability = "holder_view_mode" | "prompt_observation" | "atomic_prompt_answer" | "verified_terminal_answer" | "exact_focus_return" | "independent_resize" | "durable_command_query" | "replay_horizon";
546
+ export type RuntimeBindingNegotiatedOperationsItemCapability = "holder_view_mode" | "prompt_observation" | "atomic_prompt_answer" | "verified_terminal_answer" | "exact_focus_return" | "independent_resize" | "durable_command_query" | "replay_horizon" | "inbox" | "builds_panel" | "capacity_panel" | "economics_panel" | "tools_panel" | "connectors" | "schedules" | "projects" | "presentation_preferences" | "view_navigation" | "diagnostics" | "lane_lifecycle";
457
547
 
458
548
  export type RuntimeBindingNegotiatedOperationsItemInitiator = "client" | "host";
459
549
 
@@ -538,113 +628,42 @@ export interface ExecutionBindingSpendAuthority {
538
628
  export type ExecutionBindingSpendAuthorityOwner = "lanes_host" | "native_holder" | "throttle_edge" | "throttle_messaging" | "throttle_platform" | "buildctl";
539
629
 
540
630
  export interface OwnerOperationReceipt {
541
- v: 1;
542
- scope: OwnerOperationReceiptScope;
543
631
  /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
544
632
  operation_id: string;
633
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
634
+ operation_kind: string;
545
635
  /** Payload digest `sha256:<64 hex>`, 71 to 71 characters. */
546
636
  payload_digest: string;
547
- owner: OwnerOperationReceiptOwner;
548
- custody: OwnerOperationReceiptCustody;
549
- effect: OwnerOperationReceiptEffect;
550
- uncertainty: OwnerOperationReceiptUncertainty;
551
- /** Unsigned 64-bit integer, at least 0. */
552
- source_revision: bigint;
553
- retry_horizon: OwnerOperationReceiptRetryHorizon;
554
- recovery: OwnerOperationReceiptRecovery;
555
- /** At most 32 items. */
556
- evidence_refs: Array<OwnerOperationReceiptEvidenceRefsItem>;
557
- /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
558
- owner_operation_ref?: string;
559
- }
560
-
561
- export interface OwnerOperationReceiptScope {
562
- /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
563
- principal: string;
564
- /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
565
- kind: string;
566
- }
567
-
568
- export interface OwnerOperationReceiptOwner {
569
- service: OwnerOperationReceiptOwnerService;
570
- /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
571
- instance_id: string;
572
- }
573
-
574
- export type OwnerOperationReceiptOwnerService = "lanes_host" | "native_holder" | "throttle_edge" | "throttle_messaging" | "throttle_platform" | "buildctl";
575
-
576
- export type OwnerOperationReceiptCustody = "accepted" | "refused" | "conflict" | "expired" | "unknown";
577
-
578
- export type OwnerOperationReceiptEffect = "none" | "delivery_attempted" | "native_accepted" | "recipient_acknowledged" | "completed" | "failed";
579
-
580
- export type OwnerOperationReceiptUncertainty = "certain" | "possible_effect" | "unknown_outcome";
581
-
582
- export interface OwnerOperationReceiptRetryHorizon {
583
- /** Unsigned 64-bit integer, at least 0. */
584
- epoch: bigint;
585
- /** Unsigned 64-bit integer, at least 0. */
586
- not_after_unix_ms: bigint;
587
- }
588
-
589
- export interface OwnerOperationReceiptRecovery {
590
- method: OwnerOperationReceiptRecoveryMethod;
591
- /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
592
- reference: string;
593
- }
594
-
595
- export type OwnerOperationReceiptRecoveryMethod = "by_operation_id" | "by_owner_reference";
596
-
597
- export interface OwnerOperationReceiptEvidenceRefsItem {
598
- /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
599
- witness: string;
600
637
  /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
601
- reference: string;
638
+ owner: string;
602
639
  /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
603
- target_generation?: string;
604
- }
605
-
606
- export interface OperationTombstone {
607
- v: 1;
608
- scope: OperationTombstoneScope;
640
+ owner_operation_ref: string;
641
+ custody: OwnerOperationReceiptCustody;
642
+ certainty: OwnerOperationReceiptCertainty;
643
+ retained: OwnerOperationReceiptRetained;
609
644
  /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
610
- operation_id: string;
645
+ source_revision: string;
611
646
  /** Unsigned 64-bit integer, at least 0. */
612
- retry_epoch: bigint;
613
- /** Payload digest `sha256:<64 hex>`, 71 to 71 characters. */
614
- payload_digest: string;
615
- owner: OperationTombstoneOwner;
616
- final_custody: OperationTombstoneFinalCustody;
647
+ committed_at: bigint;
617
648
  /** Unsigned 64-bit integer, at least 0. */
618
- retained_until_unix_ms: bigint;
619
- /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
620
- owner_operation_ref?: string;
621
- }
622
-
623
- export interface OperationTombstoneScope {
624
- /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
625
- principal: string;
626
- /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
627
- kind: string;
649
+ retry_until: bigint;
650
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
651
+ lookup: string;
652
+ replayed?: boolean;
628
653
  }
629
654
 
630
- export interface OperationTombstoneOwner {
631
- service: OperationTombstoneOwnerService;
632
- /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
633
- instance_id: string;
634
- }
655
+ export type OwnerOperationReceiptCustody = "committed" | "conflict" | "expired" | "unknown_operation" | "owner_unavailable" | "refused" | "unknown";
635
656
 
636
- export type OperationTombstoneOwnerService = "lanes_host" | "native_holder" | "throttle_edge" | "throttle_messaging" | "throttle_platform" | "buildctl";
657
+ export type OwnerOperationReceiptCertainty = "definite";
637
658
 
638
- export type OperationTombstoneFinalCustody = "accepted" | "refused" | "conflict" | "expired" | "unknown";
659
+ export type OwnerOperationReceiptRetained = "receipt" | "tombstone";
639
660
 
640
661
  export interface RetryHorizon {
641
662
  v: 1;
642
663
  /** Unsigned 64-bit integer, at least 0. */
643
- current_epoch: bigint;
664
+ retry_horizon_ms: bigint;
644
665
  /** Unsigned 64-bit integer, at least 0. */
645
- oldest_accepted_epoch: bigint;
646
- /** Unsigned 64-bit integer, at least 0. */
647
- oldest_accepted_epoch_started_unix_ms: bigint;
666
+ max_future_skew_ms: bigint;
648
667
  /** Unsigned 64-bit integer, at least 0. */
649
668
  receipt_retention_ms: bigint;
650
669
  /** Unsigned 64-bit integer, at least 0. */
@@ -832,6 +851,8 @@ export interface LaneDirectoryRow {
832
851
  source: LaneDirectoryRowSource;
833
852
  /** At most 64 items. */
834
853
  actions: Array<LaneDirectoryRowActionsItem>;
854
+ agent_status?: LaneDirectoryRowAgentStatus;
855
+ holder_state?: LaneDirectoryRowHolderState;
835
856
  native_binding?: LaneDirectoryRowNativeBinding;
836
857
  }
837
858
 
@@ -878,6 +899,10 @@ export interface LaneDirectoryRowActionsItem {
878
899
 
879
900
  export type LaneDirectoryRowActionsItemAvailability = "available" | "unsupported" | "unconfigured" | "unauthorized" | "unqualified" | "unhealthy";
880
901
 
902
+ export type LaneDirectoryRowAgentStatus = "working" | "needs_input" | "needs_approval" | "done" | "errored" | "shell" | "idle";
903
+
904
+ export type LaneDirectoryRowHolderState = "active" | "quiet" | "missing" | "absent" | "dead" | "helper" | "unknown";
905
+
881
906
  export interface LaneDirectoryRowNativeBinding {
882
907
  /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
883
908
  runtime_instance_id: string;
@@ -899,10 +924,14 @@ export interface PrincipalPresentationPreferences {
899
924
  /** At most 640 items. */
900
925
  hidden: Array<PrincipalPresentationPreferencesHiddenItem>;
901
926
  /** At most 640 items. */
902
- viewed_done: Array<PrincipalPresentationPreferencesViewedDoneItem>;
927
+ hidden_boards: Array<string>;
903
928
  /** At most 640 items. */
904
- board_order: Array<PrincipalPresentationPreferencesBoardOrderItem>;
929
+ board_order: Array<string>;
930
+ /** At most 640 items. */
931
+ viewed_done: Array<PrincipalPresentationPreferencesViewedDoneItem>;
905
932
  theme: PrincipalPresentationPreferencesTheme;
933
+ appearance: PrincipalPresentationPreferencesAppearance;
934
+ fleet_fold: boolean;
906
935
  resume?: PrincipalPresentationPreferencesResume;
907
936
  }
908
937
 
@@ -939,15 +968,6 @@ export interface PrincipalPresentationPreferencesViewedDoneItemLane {
939
968
  lane_id: string;
940
969
  }
941
970
 
942
- export interface PrincipalPresentationPreferencesBoardOrderItem {
943
- /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
944
- authority: string;
945
- /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
946
- workspace_id: string;
947
- /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
948
- lane_id: string;
949
- }
950
-
951
971
  export interface PrincipalPresentationPreferencesTheme {
952
972
  /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
953
973
  theme_id: string;
@@ -955,6 +975,18 @@ export interface PrincipalPresentationPreferencesTheme {
955
975
  theme_revision: bigint;
956
976
  }
957
977
 
978
+ export interface PrincipalPresentationPreferencesAppearance {
979
+ mode: PrincipalPresentationPreferencesAppearanceMode;
980
+ colour_tier: PrincipalPresentationPreferencesAppearanceColourTier;
981
+ glyph_mode: PrincipalPresentationPreferencesAppearanceGlyphMode;
982
+ }
983
+
984
+ export type PrincipalPresentationPreferencesAppearanceMode = "light" | "dark" | "auto";
985
+
986
+ export type PrincipalPresentationPreferencesAppearanceColourTier = "truecolor" | "256" | "16" | "palette16" | "none";
987
+
988
+ export type PrincipalPresentationPreferencesAppearanceGlyphMode = "unicode" | "ascii" | "emoji";
989
+
958
990
  export interface PrincipalPresentationPreferencesResume {
959
991
  lane: PrincipalPresentationPreferencesResumeLane;
960
992
  /** Unsigned 64-bit integer, at least 0. */
@@ -974,6 +1006,8 @@ export interface PrincipalPresentationPreferencesResumeLane {
974
1006
 
975
1007
  export interface PreferencesUpdate {
976
1008
  v: 1;
1009
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1010
+ operation_id: string;
977
1011
  /** Unsigned 64-bit integer, at least 0. */
978
1012
  expected_revision: bigint;
979
1013
  preferences: PreferencesUpdatePreferences;
@@ -985,10 +1019,14 @@ export interface PreferencesUpdatePreferences {
985
1019
  /** At most 640 items. */
986
1020
  hidden: Array<PreferencesUpdatePreferencesHiddenItem>;
987
1021
  /** At most 640 items. */
988
- viewed_done: Array<PreferencesUpdatePreferencesViewedDoneItem>;
1022
+ hidden_boards: Array<string>;
989
1023
  /** At most 640 items. */
990
- board_order: Array<PreferencesUpdatePreferencesBoardOrderItem>;
1024
+ board_order: Array<string>;
1025
+ /** At most 640 items. */
1026
+ viewed_done: Array<PreferencesUpdatePreferencesViewedDoneItem>;
991
1027
  theme: PreferencesUpdatePreferencesTheme;
1028
+ appearance: PreferencesUpdatePreferencesAppearance;
1029
+ fleet_fold: boolean;
992
1030
  resume?: PreferencesUpdatePreferencesResume;
993
1031
  }
994
1032
 
@@ -1025,15 +1063,6 @@ export interface PreferencesUpdatePreferencesViewedDoneItemLane {
1025
1063
  lane_id: string;
1026
1064
  }
1027
1065
 
1028
- export interface PreferencesUpdatePreferencesBoardOrderItem {
1029
- /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1030
- authority: string;
1031
- /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1032
- workspace_id: string;
1033
- /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1034
- lane_id: string;
1035
- }
1036
-
1037
1066
  export interface PreferencesUpdatePreferencesTheme {
1038
1067
  /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1039
1068
  theme_id: string;
@@ -1041,6 +1070,18 @@ export interface PreferencesUpdatePreferencesTheme {
1041
1070
  theme_revision: bigint;
1042
1071
  }
1043
1072
 
1073
+ export interface PreferencesUpdatePreferencesAppearance {
1074
+ mode: PreferencesUpdatePreferencesAppearanceMode;
1075
+ colour_tier: PreferencesUpdatePreferencesAppearanceColourTier;
1076
+ glyph_mode: PreferencesUpdatePreferencesAppearanceGlyphMode;
1077
+ }
1078
+
1079
+ export type PreferencesUpdatePreferencesAppearanceMode = "light" | "dark" | "auto";
1080
+
1081
+ export type PreferencesUpdatePreferencesAppearanceColourTier = "truecolor" | "256" | "16" | "palette16" | "none";
1082
+
1083
+ export type PreferencesUpdatePreferencesAppearanceGlyphMode = "unicode" | "ascii" | "emoji";
1084
+
1044
1085
  export interface PreferencesUpdatePreferencesResume {
1045
1086
  lane: PreferencesUpdatePreferencesResumeLane;
1046
1087
  /** Unsigned 64-bit integer, at least 0. */
@@ -1059,8 +1100,9 @@ export interface PreferencesUpdatePreferencesResumeLane {
1059
1100
  }
1060
1101
 
1061
1102
  export interface MessageCreatePayload {
1062
- v: 1;
1063
- /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1103
+ /** Token (visible ASCII without `"` or `\`), 1 to 256 characters. */
1104
+ from: string;
1105
+ /** Token (visible ASCII without `"` or `\`), 1 to 256 characters. */
1064
1106
  to: string;
1065
1107
  /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
1066
1108
  text: string;
@@ -1068,95 +1110,4055 @@ export interface MessageCreatePayload {
1068
1110
  ttl_s?: bigint;
1069
1111
  }
1070
1112
 
1071
- /** Decode one Lanes 2.0 frame (RT 7) (`frame.schema.json`); throws Lanes2DecodeError. */
1072
- export declare function decodeFrame(input: string | Uint8Array): Frame;
1073
-
1074
- /** Decode one Lanes 2.0 bootstrap handshake (RT 7.1) (`hello.schema.json`); throws Lanes2DecodeError. */
1075
- export declare function decodeHello(input: string | Uint8Array): Hello;
1113
+ export interface AnswerPromptPayload {
1114
+ v: 1;
1115
+ target: AnswerPromptPayloadTarget;
1116
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1117
+ native_generation: string;
1118
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1119
+ prompt_id: string;
1120
+ /** Unsigned integer, 1 to 9007199254740991. */
1121
+ prompt_revision: number;
1122
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1123
+ option_id: string;
1124
+ assurance: AnswerPromptPayloadAssurance;
1125
+ }
1076
1126
 
1077
- /** Decode one Lanes 2.0 command envelope (RT 7.2) (`command.schema.json`); throws Lanes2DecodeError. */
1078
- export declare function decodeCommand(input: string | Uint8Array): Command;
1127
+ export interface AnswerPromptPayloadTarget {
1128
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1129
+ authority: string;
1130
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1131
+ workspace_id: string;
1132
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1133
+ lane_id: string;
1134
+ }
1079
1135
 
1080
- /** Decode one Lanes 2.0 operation receipt (RT 7.2, 9.2) (`receipt.schema.json`); throws Lanes2DecodeError. */
1081
- export declare function decodeReceipt(input: string | Uint8Array): Receipt;
1136
+ export type AnswerPromptPayloadAssurance = "atomic_prompt_answer" | "verified_terminal_answer";
1082
1137
 
1083
- /** Decode one Lanes 2.0 subscription event (RT 7.2, 7.3) (`event.schema.json`); throws Lanes2DecodeError. */
1084
- export declare function decodeEvent(input: string | Uint8Array): Event;
1138
+ export interface OwnerCreateAnswer {
1139
+ v: 1;
1140
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1141
+ id: string;
1142
+ state: OwnerCreateAnswerState;
1143
+ /** Unsigned 64-bit integer, at least 0. */
1144
+ expires_at: bigint;
1145
+ receipt: OwnerCreateAnswerReceipt;
1146
+ }
1085
1147
 
1086
- /** Decode one Lanes 2.0 directory subscription (RT 7.3) (`subscribe.schema.json`); throws Lanes2DecodeError. */
1087
- export declare function decodeSubscribe(input: string | Uint8Array): Subscribe;
1148
+ export type OwnerCreateAnswerState = "queued";
1088
1149
 
1089
- /** Decode one Lanes 2.0 subscription snapshot (RT 7.3) (`snapshot.schema.json`); throws Lanes2DecodeError. */
1090
- export declare function decodeSnapshot(input: string | Uint8Array): Snapshot;
1150
+ export interface OwnerCreateAnswerReceipt {
1151
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1152
+ operation_id: string;
1153
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1154
+ operation_kind: string;
1155
+ /** Payload digest `sha256:<64 hex>`, 71 to 71 characters. */
1156
+ payload_digest: string;
1157
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1158
+ owner: string;
1159
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1160
+ owner_operation_ref: string;
1161
+ custody: OwnerCreateAnswerReceiptCustody;
1162
+ certainty: OwnerCreateAnswerReceiptCertainty;
1163
+ retained: OwnerCreateAnswerReceiptRetained;
1164
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1165
+ source_revision: string;
1166
+ /** Unsigned 64-bit integer, at least 0. */
1167
+ committed_at: bigint;
1168
+ /** Unsigned 64-bit integer, at least 0. */
1169
+ retry_until: bigint;
1170
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1171
+ lookup: string;
1172
+ replayed?: boolean;
1173
+ }
1091
1174
 
1092
- /** Decode one Lanes 2.0 resynchronization (RT 7.3) (`resync.schema.json`); throws Lanes2DecodeError. */
1093
- export declare function decodeResync(input: string | Uint8Array): Resync;
1175
+ export type OwnerCreateAnswerReceiptCustody = "committed" | "conflict" | "expired" | "unknown_operation" | "owner_unavailable" | "refused" | "unknown";
1094
1176
 
1095
- /** Decode one Lanes 2.0 boundary refusal (RT 7.1, 7.2) (`frame_refusal.schema.json`); throws Lanes2DecodeError. */
1096
- export declare function decodeFrameRefusal(input: string | Uint8Array): FrameRefusal;
1177
+ export type OwnerCreateAnswerReceiptCertainty = "definite";
1097
1178
 
1098
- /** Decode one RuntimeBinding (TI 3, INT-01) (`runtime_binding.schema.json`); throws Lanes2DecodeError. */
1099
- export declare function decodeRuntimeBinding(input: string | Uint8Array): RuntimeBinding;
1179
+ export type OwnerCreateAnswerReceiptRetained = "receipt" | "tombstone";
1100
1180
 
1101
- /** Decode one ExecutionBinding (TI 3, INT-04) (`execution_binding.schema.json`); throws Lanes2DecodeError. */
1102
- export declare function decodeExecutionBinding(input: string | Uint8Array): ExecutionBinding;
1181
+ export interface OwnerLookupAnswer {
1182
+ v: 1;
1183
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1184
+ id: string;
1185
+ /** Unsigned 64-bit integer, at least 0. Or null. */
1186
+ expires_at: bigint | null;
1187
+ receipt: OwnerLookupAnswerReceipt;
1188
+ }
1103
1189
 
1104
- /** Decode one OwnerOperationReceipt (TI 3, 6) (`owner_operation_receipt.schema.json`); throws Lanes2DecodeError. */
1105
- export declare function decodeOwnerOperationReceipt(input: string | Uint8Array): OwnerOperationReceipt;
1190
+ export interface OwnerLookupAnswerReceipt {
1191
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1192
+ operation_id: string;
1193
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1194
+ operation_kind: string;
1195
+ /** Payload digest `sha256:<64 hex>`, 71 to 71 characters. */
1196
+ payload_digest: string;
1197
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1198
+ owner: string;
1199
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1200
+ owner_operation_ref: string;
1201
+ custody: OwnerLookupAnswerReceiptCustody;
1202
+ certainty: OwnerLookupAnswerReceiptCertainty;
1203
+ retained: OwnerLookupAnswerReceiptRetained;
1204
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1205
+ source_revision: string;
1206
+ /** Unsigned 64-bit integer, at least 0. */
1207
+ committed_at: bigint;
1208
+ /** Unsigned 64-bit integer, at least 0. */
1209
+ retry_until: bigint;
1210
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1211
+ lookup: string;
1212
+ replayed?: boolean;
1213
+ }
1106
1214
 
1107
- /** Decode one Operation anti-replay tombstone (TI 6) (`operation_tombstone.schema.json`); throws Lanes2DecodeError. */
1108
- export declare function decodeOperationTombstone(input: string | Uint8Array): OperationTombstone;
1215
+ export type OwnerLookupAnswerReceiptCustody = "committed" | "conflict" | "expired" | "unknown_operation" | "owner_unavailable" | "refused" | "unknown";
1109
1216
 
1110
- /** Decode one Owner retry horizon (TI 6, RT 6.2) (`retry_horizon.schema.json`); throws Lanes2DecodeError. */
1111
- export declare function decodeRetryHorizon(input: string | Uint8Array): RetryHorizon;
1217
+ export type OwnerLookupAnswerReceiptCertainty = "definite";
1112
1218
 
1113
- /** Decode one SourceUpdate (TI 3, INT-12) (`source_update.schema.json`); throws Lanes2DecodeError. */
1114
- export declare function decodeSourceUpdate(input: string | Uint8Array): SourceUpdate;
1219
+ export type OwnerLookupAnswerReceiptRetained = "receipt" | "tombstone";
1115
1220
 
1116
- /** Decode one AdapterCapability (TI 3, RT 8, 9.4) (`adapter_capability.schema.json`); throws Lanes2DecodeError. */
1117
- export declare function decodeAdapterCapability(input: string | Uint8Array): AdapterCapability;
1221
+ export interface DeliveryReceipt {
1222
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1223
+ message_id: string;
1224
+ /** Token (visible ASCII without `"` or `\`), 1 to 256 characters. */
1225
+ recipient: string;
1226
+ /** Unsigned 64-bit integer, at least 0. */
1227
+ queued_at: bigint;
1228
+ /** Unsigned 64-bit integer, at least 0. */
1229
+ expires_at: bigint;
1230
+ rung: DeliveryReceiptRung;
1231
+ witness: DeliveryReceiptWitness;
1232
+ /** Or null. */
1233
+ target_generation: DeliveryReceiptTargetGeneration | null;
1234
+ /** Unsigned integer, 0 to 4294967295. */
1235
+ open_attempts: number;
1236
+ /** Unsigned integer, 0 to 4294967295. */
1237
+ attempts: number;
1238
+ /** Unsigned integer, 0 to 4294967295. */
1239
+ definite_rejections: number;
1240
+ /** Or null. */
1241
+ withheld_from: DeliveryReceiptWithheldFrom | null;
1242
+ /** Or null. */
1243
+ terminal: DeliveryReceiptTerminal | null;
1244
+ }
1118
1245
 
1119
- /** Decode one LaneDirectoryProjection (TI 3, INT-12, IC 5.1) (`lane_directory_projection.schema.json`); throws Lanes2DecodeError. */
1120
- export declare function decodeLaneDirectoryProjection(input: string | Uint8Array): LaneDirectoryProjection;
1246
+ export type DeliveryReceiptRung = "accepted_into_custody" | "delivery_attempted" | "native_acceptance_observed" | "recipient_acknowledged" | "work_outcome";
1121
1247
 
1122
- /** Decode one Lane directory row (TI 3, IC 5.1) (`lane_directory_row.schema.json`); throws Lanes2DecodeError. */
1123
- export declare function decodeLaneDirectoryRow(input: string | Uint8Array): LaneDirectoryRow;
1248
+ export interface DeliveryReceiptWitness {
1249
+ kind: DeliveryReceiptWitnessKind;
1250
+ /** Unsigned 64-bit integer, at least 0. */
1251
+ acked_at_ms?: bigint;
1252
+ /** Unsigned 64-bit integer, at least 0. */
1253
+ at_ms?: bigint;
1254
+ /** Unsigned 64-bit integer, at least 0. */
1255
+ delivered_at_ms?: bigint;
1256
+ /** Unsigned 64-bit integer, at least 0. */
1257
+ observed_at_ms?: bigint;
1258
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1259
+ provider?: string;
1260
+ /** Unsigned 64-bit integer, at least 0. */
1261
+ queued_at_ms?: bigint;
1262
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1263
+ request_id?: string;
1264
+ }
1124
1265
 
1125
- /** Decode one PrincipalPresentationPreferences (TI 3, IC 5.1) (`principal_presentation_preferences.schema.json`); throws Lanes2DecodeError. */
1126
- export declare function decodePrincipalPresentationPreferences(input: string | Uint8Array): PrincipalPresentationPreferences;
1266
+ export type DeliveryReceiptWitnessKind = "inbox_commit" | "shaped_attempt_released" | "upstream_accepted" | "inbox_delivered_mark" | "recipient_ack" | "inbox_ack_observed";
1127
1267
 
1128
- /** Decode one Revision-checked preferences update (IC 5.1) (`preferences_update.schema.json`); throws Lanes2DecodeError. */
1129
- export declare function decodePreferencesUpdate(input: string | Uint8Array): PreferencesUpdate;
1268
+ export interface DeliveryReceiptTargetGeneration {
1269
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1270
+ client_id: string;
1271
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. Or null. */
1272
+ native_session: string | null;
1273
+ }
1130
1274
 
1131
- /** Decode one Message creation payload, the digest input (TI 6, INT-07) (`message_create_payload.schema.json`); throws Lanes2DecodeError. */
1132
- export declare function decodeMessageCreatePayload(input: string | Uint8Array): MessageCreatePayload;
1275
+ export interface DeliveryReceiptWithheldFrom {
1276
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1277
+ client_id: string;
1278
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. Or null. */
1279
+ native_session: string | null;
1280
+ }
1133
1281
 
1134
- /** Every document by name. */
1135
- export interface Lanes2Documents {
1136
- frame: Frame;
1137
- hello: Hello;
1138
- command: Command;
1139
- receipt: Receipt;
1140
- event: Event;
1141
- subscribe: Subscribe;
1142
- snapshot: Snapshot;
1143
- resync: Resync;
1144
- frame_refusal: FrameRefusal;
1145
- runtime_binding: RuntimeBinding;
1146
- execution_binding: ExecutionBinding;
1147
- owner_operation_receipt: OwnerOperationReceipt;
1148
- operation_tombstone: OperationTombstone;
1149
- retry_horizon: RetryHorizon;
1150
- source_update: SourceUpdate;
1151
- adapter_capability: AdapterCapability;
1152
- lane_directory_projection: LaneDirectoryProjection;
1153
- lane_directory_row: LaneDirectoryRow;
1154
- principal_presentation_preferences: PrincipalPresentationPreferences;
1155
- preferences_update: PreferencesUpdate;
1156
- message_create_payload: MessageCreatePayload;
1282
+ export interface DeliveryReceiptTerminal {
1283
+ kind: DeliveryReceiptTerminalKind;
1284
+ /** Unsigned 64-bit integer, at least 0. */
1285
+ at_ms: bigint;
1157
1286
  }
1158
1287
 
1159
- export declare const DOCUMENT_NAMES: ReadonlyArray<keyof Lanes2Documents>;
1160
- export declare const DOCUMENTS: {
1161
- readonly [K in keyof Lanes2Documents]: (input: string | Uint8Array) => Lanes2Documents[K];
1288
+ export type DeliveryReceiptTerminalKind = "expired" | "cancelled";
1289
+
1290
+ export interface InboxProjection {
1291
+ v: 1;
1292
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1293
+ principal_id: string;
1294
+ /** Unsigned 64-bit integer, at least 0. */
1295
+ revision: bigint;
1296
+ /** Unsigned 64-bit integer, at least 0. */
1297
+ as_of_unix_ms: bigint;
1298
+ completeness: InboxProjectionCompleteness;
1299
+ /** At most 500 items. */
1300
+ rows: Array<InboxProjectionRowsItem>;
1301
+ /** Unsigned integer, 0 to 4294967295. */
1302
+ omitted: number;
1303
+ omitted_by_view: InboxProjectionOmittedByView;
1304
+ /** At most 64 items. */
1305
+ actions: Array<InboxProjectionActionsItem>;
1306
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1307
+ next_page?: string;
1308
+ }
1309
+
1310
+ export type InboxProjectionCompleteness = "complete" | "incomplete";
1311
+
1312
+ export interface InboxProjectionRowsItem {
1313
+ v: 1;
1314
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1315
+ thread: string;
1316
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
1317
+ subject: string;
1318
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1319
+ peer: string;
1320
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1321
+ workspace_id: string;
1322
+ peer_traffic: boolean;
1323
+ /** Unsigned integer, 0 to 4294967295. */
1324
+ entries: number;
1325
+ /** Unsigned integer, 0 to 4294967295. */
1326
+ unread: number;
1327
+ /** Unsigned 64-bit integer, at least 0. */
1328
+ activity_unix_ms: bigint;
1329
+ scheduled: boolean;
1330
+ archived: boolean;
1331
+ attention?: InboxProjectionRowsItemAttention;
1332
+ latest?: InboxProjectionRowsItemLatest;
1333
+ /** Unsigned 64-bit integer, at least 0. */
1334
+ snoozed_until_unix_ms?: bigint;
1335
+ waiting_for?: InboxProjectionRowsItemWaitingFor;
1336
+ }
1337
+
1338
+ export type InboxProjectionRowsItemAttention = "human_question" | "needs_input" | "delivery_uncertain";
1339
+
1340
+ export interface InboxProjectionRowsItemLatest {
1341
+ /** Unsigned 64-bit integer, at least 0. */
1342
+ at_unix_ms: bigint;
1343
+ from_kind: InboxProjectionRowsItemLatestFromKind;
1344
+ text_expired: boolean;
1345
+ delivery: InboxProjectionRowsItemLatestDelivery;
1346
+ delivery_state: InboxProjectionRowsItemLatestDeliveryState;
1347
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
1348
+ preview?: string;
1349
+ }
1350
+
1351
+ export type InboxProjectionRowsItemLatestFromKind = "human" | "agent";
1352
+
1353
+ export interface InboxProjectionRowsItemLatestDelivery {
1354
+ custody: InboxProjectionRowsItemLatestDeliveryCustody;
1355
+ native: InboxProjectionRowsItemLatestDeliveryNative;
1356
+ receipt: InboxProjectionRowsItemLatestDeliveryReceipt;
1357
+ fulfillment: InboxProjectionRowsItemLatestDeliveryFulfillment;
1358
+ }
1359
+
1360
+ export type InboxProjectionRowsItemLatestDeliveryCustody = "draft" | "scheduled" | "waiting" | "ready" | "claimed" | "expired" | "cancelled" | "failed";
1361
+
1362
+ export type InboxProjectionRowsItemLatestDeliveryNative = "not_offered" | "submitted" | "native_accepted" | "rejected" | "uncertain";
1363
+
1364
+ export type InboxProjectionRowsItemLatestDeliveryReceipt = "not_requested" | "pending" | "acknowledged";
1365
+
1366
+ export type InboxProjectionRowsItemLatestDeliveryFulfillment = "open" | "accepted" | "in_progress" | "completed" | "declined" | "superseded";
1367
+
1368
+ export type InboxProjectionRowsItemLatestDeliveryState = "draft" | "scheduled" | "waiting" | "ready" | "claimed" | "submitted" | "native_accepted" | "acknowledged" | "failed" | "expired" | "cancelled" | "uncertain";
1369
+
1370
+ export type InboxProjectionRowsItemWaitingFor = "included_allowance" | "concurrency" | "paid_ceiling" | "capacity" | "build" | "authority" | "native_decision" | "peer" | "human" | "dependency" | "delivery" | "scheduled" | "paused";
1371
+
1372
+ export interface InboxProjectionOmittedByView {
1373
+ /** Unsigned integer, 0 to 4294967295. */
1374
+ needs_you: number;
1375
+ /** Unsigned integer, 0 to 4294967295. */
1376
+ unread: number;
1377
+ /** Unsigned integer, 0 to 4294967295. */
1378
+ waiting: number;
1379
+ /** Unsigned integer, 0 to 4294967295. */
1380
+ scheduled: number;
1381
+ /** Unsigned integer, 0 to 4294967295. */
1382
+ history: number;
1383
+ }
1384
+
1385
+ export interface InboxProjectionActionsItem {
1386
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1387
+ action: string;
1388
+ availability: InboxProjectionActionsItemAvailability;
1389
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
1390
+ reason?: string;
1391
+ }
1392
+
1393
+ export type InboxProjectionActionsItemAvailability = "available" | "unsupported" | "unconfigured" | "unauthorized" | "unqualified" | "unhealthy";
1394
+
1395
+ export interface InboxPageRequest {
1396
+ v: 1;
1397
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1398
+ after?: string;
1399
+ /** Unsigned integer, 0 to 65535. */
1400
+ page_limit?: number;
1401
+ }
1402
+
1403
+ export interface InboxThread {
1404
+ v: 1;
1405
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1406
+ thread: string;
1407
+ /** Unsigned 64-bit integer, at least 0. */
1408
+ revision: bigint;
1409
+ /** At most 500 items. */
1410
+ entries: Array<InboxThreadEntriesItem>;
1411
+ /** Unsigned integer, 0 to 4294967295. */
1412
+ earlier_omitted: number;
1413
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1414
+ earlier_page?: string;
1415
+ }
1416
+
1417
+ export interface InboxThreadEntriesItem {
1418
+ v: 1;
1419
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1420
+ message_id: string;
1421
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1422
+ from: string;
1423
+ from_kind: InboxThreadEntriesItemFromKind;
1424
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1425
+ to: string;
1426
+ /** Unsigned 64-bit integer, at least 0. */
1427
+ at_unix_ms: bigint;
1428
+ delivery: InboxThreadEntriesItemDelivery;
1429
+ delivery_state: InboxThreadEntriesItemDeliveryState;
1430
+ lanes_evidence?: InboxThreadEntriesItemLanesEvidence;
1431
+ owner_evidence?: InboxThreadEntriesItemOwnerEvidence;
1432
+ purpose?: InboxThreadEntriesItemPurpose;
1433
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
1434
+ text?: string;
1435
+ }
1436
+
1437
+ export type InboxThreadEntriesItemFromKind = "human" | "agent";
1438
+
1439
+ export interface InboxThreadEntriesItemDelivery {
1440
+ custody: InboxThreadEntriesItemDeliveryCustody;
1441
+ native: InboxThreadEntriesItemDeliveryNative;
1442
+ receipt: InboxThreadEntriesItemDeliveryReceipt;
1443
+ fulfillment: InboxThreadEntriesItemDeliveryFulfillment;
1444
+ }
1445
+
1446
+ export type InboxThreadEntriesItemDeliveryCustody = "draft" | "scheduled" | "waiting" | "ready" | "claimed" | "expired" | "cancelled" | "failed";
1447
+
1448
+ export type InboxThreadEntriesItemDeliveryNative = "not_offered" | "submitted" | "native_accepted" | "rejected" | "uncertain";
1449
+
1450
+ export type InboxThreadEntriesItemDeliveryReceipt = "not_requested" | "pending" | "acknowledged";
1451
+
1452
+ export type InboxThreadEntriesItemDeliveryFulfillment = "open" | "accepted" | "in_progress" | "completed" | "declined" | "superseded";
1453
+
1454
+ export type InboxThreadEntriesItemDeliveryState = "draft" | "scheduled" | "waiting" | "ready" | "claimed" | "submitted" | "native_accepted" | "acknowledged" | "failed" | "expired" | "cancelled" | "uncertain";
1455
+
1456
+ export interface InboxThreadEntriesItemLanesEvidence {
1457
+ channel: InboxThreadEntriesItemLanesEvidenceChannel;
1458
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1459
+ target_generation: string;
1460
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1461
+ reached_generation?: string;
1462
+ }
1463
+
1464
+ export type InboxThreadEntriesItemLanesEvidenceChannel = "peer_socket" | "codex_queue" | "throttle_turn" | "typed" | "queued";
1465
+
1466
+ export interface InboxThreadEntriesItemOwnerEvidence {
1467
+ witness: InboxThreadEntriesItemOwnerEvidenceWitness;
1468
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
1469
+ target_generation?: string;
1470
+ }
1471
+
1472
+ export type InboxThreadEntriesItemOwnerEvidenceWitness = "inbox_commit" | "shaped_attempt_released" | "upstream_accepted" | "inbox_delivered_mark" | "recipient_ack" | "inbox_ack_observed";
1473
+
1474
+ export type InboxThreadEntriesItemPurpose = "request" | "finding" | "contract_change" | "handoff" | "blocker" | "review" | "completion" | "ordinary" | "question";
1475
+
1476
+ export interface InboxThreadRequest {
1477
+ v: 1;
1478
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1479
+ thread: string;
1480
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1481
+ before?: string;
1482
+ /** Unsigned integer, 0 to 65535. */
1483
+ page_limit?: number;
1484
+ }
1485
+
1486
+ export interface InboxThreadCommand {
1487
+ v: 1;
1488
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1489
+ operation_id: string;
1490
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1491
+ thread: string;
1492
+ action: InboxThreadCommandAction;
1493
+ /** Unsigned 64-bit integer, at least 0. */
1494
+ seen_through_unix_ms?: bigint;
1495
+ /** Unsigned 64-bit integer, at least 0. */
1496
+ snooze_until_unix_ms?: bigint;
1497
+ }
1498
+
1499
+ export type InboxThreadCommandAction = "mark_read" | "mark_unread" | "snooze" | "unsnooze" | "archive" | "unarchive";
1500
+
1501
+ export interface InboxComposeCommand {
1502
+ v: 1;
1503
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1504
+ operation_id: string;
1505
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1506
+ to: string;
1507
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
1508
+ text: string;
1509
+ timing: InboxComposeCommandTiming;
1510
+ purpose?: InboxComposeCommandPurpose;
1511
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1512
+ reply_to?: string;
1513
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1514
+ target_generation?: string;
1515
+ }
1516
+
1517
+ export type InboxComposeCommandTiming = "now" | "after_turn";
1518
+
1519
+ export type InboxComposeCommandPurpose = "request" | "finding" | "contract_change" | "handoff" | "blocker" | "review" | "completion" | "ordinary" | "question";
1520
+
1521
+ export interface ViewStep {
1522
+ v: 1;
1523
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1524
+ operation_id: string;
1525
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1526
+ view_device: string;
1527
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1528
+ workspace_id: string;
1529
+ slot: ViewStepSlot;
1530
+ step: ViewStepStep;
1531
+ /** Unsigned 64-bit integer, at least 0. */
1532
+ pane?: bigint;
1533
+ }
1534
+
1535
+ export type ViewStepSlot = "main" | "b" | "c";
1536
+
1537
+ export type ViewStepStep = "next" | "prev";
1538
+
1539
+ export interface SidebarCommand {
1540
+ v: 1;
1541
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1542
+ operation_id: string;
1543
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1544
+ view_device: string;
1545
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1546
+ workspace_id: string;
1547
+ cmd: SidebarCommandCmd;
1548
+ /** Unsigned 64-bit integer, at least 0. */
1549
+ pane?: bigint;
1550
+ }
1551
+
1552
+ export type SidebarCommandCmd = "filter" | "upload";
1553
+
1554
+ export interface ViewResult {
1555
+ v: 1;
1556
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1557
+ operation_id: string;
1558
+ outcome: ViewResultOutcome;
1559
+ woken: boolean;
1560
+ /** At most 8 items. */
1561
+ warnings: Array<string>;
1562
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1563
+ lane?: string;
1564
+ refusal?: ViewResultRefusal;
1565
+ }
1566
+
1567
+ export type ViewResultOutcome = "applied" | "refused";
1568
+
1569
+ export interface ViewResultRefusal {
1570
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1571
+ code: string;
1572
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
1573
+ reason: string;
1574
+ }
1575
+
1576
+ export interface PanelPageRequest {
1577
+ v: 1;
1578
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1579
+ after?: string;
1580
+ /** Unsigned integer, 0 to 65535. */
1581
+ page_limit?: number;
1582
+ }
1583
+
1584
+ export interface BuildLogRequest {
1585
+ v: 1;
1586
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1587
+ job: string;
1588
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1589
+ attempt: string;
1590
+ /** Unsigned 64-bit integer, at least 0. */
1591
+ offset: bigint;
1592
+ /** Unsigned integer, 0 to 4294967295. */
1593
+ limit: number;
1594
+ }
1595
+
1596
+ export interface ToolRepairRequest {
1597
+ v: 1;
1598
+ session: ToolRepairRequestSession;
1599
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1600
+ tool: string;
1601
+ }
1602
+
1603
+ export interface ToolRepairRequestSession {
1604
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1605
+ workspace: string;
1606
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1607
+ lane: string;
1608
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1609
+ generation: string;
1610
+ }
1611
+
1612
+ export interface ConnectorPageRequest {
1613
+ v: 1;
1614
+ operation: ConnectorPageRequestOperation;
1615
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1616
+ after?: string;
1617
+ /** Unsigned integer, 0 to 65535. */
1618
+ page_limit?: number;
1619
+ }
1620
+
1621
+ export type ConnectorPageRequestOperation = "connector.events" | "connector.intents" | "connector.engagements" | "connector.links" | "connector.validations" | "connector.priorities" | "connector.cursors" | "connector.quarantine";
1622
+
1623
+ export interface ConnectorPage {
1624
+ v: 1;
1625
+ items: ConnectorPageItems;
1626
+ /** At most 500 items. */
1627
+ unreadable: Array<string>;
1628
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1629
+ next?: string;
1630
+ /** Unsigned 64-bit integer, at least 0. */
1631
+ revision?: bigint;
1632
+ }
1633
+
1634
+ export type ConnectorPageItems =
1635
+ | { read: "connector.events"; rows: Array<ConnectorPageItemsConnectorEventsItem> }
1636
+ | { read: "connector.intents"; rows: Array<ConnectorPageItemsConnectorIntentsItem> }
1637
+ | { read: "connector.engagements"; rows: Array<ConnectorPageItemsConnectorEngagementsItem> }
1638
+ | { read: "connector.links"; rows: Array<ConnectorPageItemsConnectorLinksItem> }
1639
+ | { read: "connector.validations"; rows: Array<ConnectorPageItemsConnectorValidationsItem> }
1640
+ | { read: "connector.priorities"; rows: Array<ConnectorPageItemsConnectorPrioritiesItem> }
1641
+ | { read: "connector.cursors"; rows: Array<ConnectorPageItemsConnectorCursorsItem> }
1642
+ | { read: "connector.quarantine"; rows: Array<ConnectorPageItemsConnectorQuarantineItem> };
1643
+
1644
+ export interface ConnectorPageItemsConnectorEventsItem {
1645
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1646
+ key: string;
1647
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1648
+ id: string;
1649
+ connector: ConnectorPageItemsConnectorEventsItemConnector;
1650
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1651
+ authority: string;
1652
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1653
+ external_id: string;
1654
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1655
+ family: string;
1656
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1657
+ action: string;
1658
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1659
+ subject: string;
1660
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. Or null. */
1661
+ entity_version: string | null;
1662
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. Or null. */
1663
+ actor: string | null;
1664
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
1665
+ permalink: string | null;
1666
+ /** Unsigned 64-bit integer, at least 0. */
1667
+ received_unix_ms: bigint;
1668
+ provenance: ConnectorPageItemsConnectorEventsItemProvenance;
1669
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1670
+ body_sha256: string;
1671
+ state: ConnectorPageItemsConnectorEventsItemState;
1672
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
1673
+ reason: string | null;
1674
+ facts: ConnectorPageItemsConnectorEventsItemFacts;
1675
+ }
1676
+
1677
+ export type ConnectorPageItemsConnectorEventsItemConnector = "github" | "linear";
1678
+
1679
+ export type ConnectorPageItemsConnectorEventsItemProvenance = "webhook" | "catch_up";
1680
+
1681
+ export type ConnectorPageItemsConnectorEventsItemState = "pending" | "processed" | "ignored" | "failed";
1682
+
1683
+ export type ConnectorPageItemsConnectorEventsItemFacts =
1684
+ | { fact: "feedback"; detail: ConnectorPageItemsConnectorEventsItemFactsFeedback }
1685
+ | { fact: "pull_source"; detail: ConnectorPageItemsConnectorEventsItemFactsPullSource }
1686
+ | { fact: "push"; detail: ConnectorPageItemsConnectorEventsItemFactsPush }
1687
+ | { fact: "priority"; detail: ConnectorPageItemsConnectorEventsItemFactsPriority }
1688
+ | { fact: "session_created"; detail: ConnectorPageItemsConnectorEventsItemFactsSessionCreated }
1689
+ | { fact: "session_prompted"; detail: ConnectorPageItemsConnectorEventsItemFactsSessionPrompted }
1690
+ | { fact: "session_stop"; detail: ConnectorPageItemsConnectorEventsItemFactsSessionStop }
1691
+ | { fact: "recorded"; detail: ConnectorPageItemsConnectorEventsItemFactsRecorded };
1692
+
1693
+ export interface ConnectorPageItemsConnectorEventsItemFactsFeedback {
1694
+ /** Unsigned 64-bit integer, at least 0. */
1695
+ pull: bigint;
1696
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1697
+ kind: string;
1698
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
1699
+ head: string | null;
1700
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. Or null. */
1701
+ thread: string | null;
1702
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
1703
+ path: string | null;
1704
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. Or null. */
1705
+ operation: string | null;
1706
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. Or null. */
1707
+ check: string | null;
1708
+ }
1709
+
1710
+ export interface ConnectorPageItemsConnectorEventsItemFactsPullSource {
1711
+ /** Unsigned 64-bit integer, at least 0. */
1712
+ pull: bigint;
1713
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1714
+ head: string;
1715
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1716
+ base: string;
1717
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1718
+ base_ref: string;
1719
+ base_changed: boolean;
1720
+ /** Unsigned 64-bit integer, at least 0. Or null. */
1721
+ version: bigint | null;
1722
+ }
1723
+
1724
+ export interface ConnectorPageItemsConnectorEventsItemFactsPush {
1725
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1726
+ branch: string;
1727
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1728
+ after: string;
1729
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
1730
+ before: string | null;
1731
+ /** Unsigned 64-bit integer, at least 0. Or null. */
1732
+ version: bigint | null;
1733
+ }
1734
+
1735
+ export interface ConnectorPageItemsConnectorEventsItemFactsPriority {
1736
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1737
+ issue: string;
1738
+ /** Unsigned 64-bit integer, at least 0. */
1739
+ priority: bigint;
1740
+ /** Unsigned 64-bit integer, at least 0. */
1741
+ version: bigint;
1742
+ by_connector: boolean;
1743
+ }
1744
+
1745
+ export interface ConnectorPageItemsConnectorEventsItemFactsSessionCreated {
1746
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1747
+ session: string;
1748
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
1749
+ issue: string | null;
1750
+ }
1751
+
1752
+ export interface ConnectorPageItemsConnectorEventsItemFactsSessionPrompted {
1753
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1754
+ session: string;
1755
+ }
1756
+
1757
+ export interface ConnectorPageItemsConnectorEventsItemFactsSessionStop {
1758
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1759
+ session: string;
1760
+ }
1761
+
1762
+ export interface ConnectorPageItemsConnectorEventsItemFactsRecorded {
1763
+ }
1764
+
1765
+ export interface ConnectorPageItemsConnectorIntentsItem {
1766
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1767
+ key: string;
1768
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1769
+ id: string;
1770
+ connector: ConnectorPageItemsConnectorIntentsItemConnector;
1771
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1772
+ authority: string;
1773
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1774
+ kind: string;
1775
+ route: ConnectorPageItemsConnectorIntentsItemRoute;
1776
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1777
+ event: string;
1778
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1779
+ recipient: string;
1780
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1781
+ subject: string;
1782
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
1783
+ body: string;
1784
+ /** Unsigned 64-bit integer, at least 0. */
1785
+ created_unix_ms: bigint;
1786
+ /** Unsigned 64-bit integer, at least 0. */
1787
+ due_unix_ms: bigint;
1788
+ state: ConnectorPageItemsConnectorIntentsItemState;
1789
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
1790
+ reason: string | null;
1791
+ /** Unsigned 64-bit integer, at least 0. Or null. */
1792
+ settled_unix_ms: bigint | null;
1793
+ /** Unsigned 64-bit integer, at least 0. Or null. */
1794
+ retry_unix_ms: bigint | null;
1795
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
1796
+ operation: string | null;
1797
+ /** Or null. */
1798
+ outcome: ConnectorPageItemsConnectorIntentsItemOutcome | null;
1799
+ }
1800
+
1801
+ export type ConnectorPageItemsConnectorIntentsItemConnector = "github" | "linear";
1802
+
1803
+ export type ConnectorPageItemsConnectorIntentsItemRoute = "internal" | "outbound";
1804
+
1805
+ export type ConnectorPageItemsConnectorIntentsItemState = "pending" | "submitted" | "unknown" | "delivered" | "refused" | "unavailable" | "fenced";
1806
+
1807
+ export interface ConnectorPageItemsConnectorIntentsItemOutcome {
1808
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1809
+ state: string;
1810
+ /** Unsigned 64-bit integer, at least 0. */
1811
+ attempts: bigint;
1812
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. Or null. */
1813
+ external_id: string | null;
1814
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
1815
+ code: string | null;
1816
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. Or null. */
1817
+ record: string | null;
1818
+ }
1819
+
1820
+ export interface ConnectorPageItemsConnectorEngagementsItem {
1821
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1822
+ key: string;
1823
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1824
+ session: string;
1825
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1826
+ authority: string;
1827
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
1828
+ issue: string | null;
1829
+ /** At most 64 items. */
1830
+ work: Array<string>;
1831
+ /** At most 64 items. */
1832
+ descendants: Array<ConnectorPageItemsConnectorEngagementsItemDescendantsItem>;
1833
+ stopped: boolean;
1834
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1835
+ state: string;
1836
+ /** Unsigned 64-bit integer, at least 0. */
1837
+ created_unix_ms: bigint;
1838
+ /** Unsigned 64-bit integer, at least 0. */
1839
+ activity_due_unix_ms: bigint;
1840
+ /** Unsigned 64-bit integer, at least 0. Or null. */
1841
+ activity_unix_ms: bigint | null;
1842
+ /** Unsigned 64-bit integer, at least 0. Or null. */
1843
+ stop_unix_ms: bigint | null;
1844
+ }
1845
+
1846
+ export interface ConnectorPageItemsConnectorEngagementsItemDescendantsItem {
1847
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1848
+ run: string;
1849
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1850
+ state: string;
1851
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
1852
+ owner: string | null;
1853
+ }
1854
+
1855
+ export interface ConnectorPageItemsConnectorLinksItem {
1856
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1857
+ key: string;
1858
+ link: ConnectorPageItemsConnectorLinksItemLink;
1859
+ }
1860
+
1861
+ export type ConnectorPageItemsConnectorLinksItemLink =
1862
+ | { kind: "pull"; spec: ConnectorPageItemsConnectorLinksItemLinkPull }
1863
+ | { kind: "consumer"; spec: ConnectorPageItemsConnectorLinksItemLinkConsumer }
1864
+ | { kind: "issue"; spec: ConnectorPageItemsConnectorLinksItemLinkIssue };
1865
+
1866
+ export interface ConnectorPageItemsConnectorLinksItemLinkPull {
1867
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1868
+ authority: string;
1869
+ /** Unsigned 64-bit integer, at least 0. */
1870
+ number: bigint;
1871
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1872
+ contribution: string;
1873
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1874
+ owner: string;
1875
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1876
+ head: string;
1877
+ /** At most 16 items. */
1878
+ provides: Array<ConnectorPageItemsConnectorLinksItemLinkPullProvidesItem>;
1879
+ /** At most 64 items. */
1880
+ consumes: Array<string>;
1881
+ /** Unsigned 64-bit integer, at least 0. Or null. */
1882
+ head_version: bigint | null;
1883
+ }
1884
+
1885
+ export interface ConnectorPageItemsConnectorLinksItemLinkPullProvidesItem {
1886
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
1887
+ name: string;
1888
+ /** At most 16 items. */
1889
+ paths: Array<string>;
1890
+ }
1891
+
1892
+ export interface ConnectorPageItemsConnectorLinksItemLinkConsumer {
1893
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1894
+ responsibility: string;
1895
+ /** At most 64 items. */
1896
+ consumes: Array<string>;
1897
+ }
1898
+
1899
+ export interface ConnectorPageItemsConnectorLinksItemLinkIssue {
1900
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1901
+ authority: string;
1902
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1903
+ issue: string;
1904
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1905
+ work: string;
1906
+ /** Unsigned 64-bit integer, at least 0. */
1907
+ admitted: bigint;
1908
+ }
1909
+
1910
+ export interface ConnectorPageItemsConnectorValidationsItem {
1911
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1912
+ key: string;
1913
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1914
+ evidence: string;
1915
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1916
+ owner: string;
1917
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1918
+ base_authority: string;
1919
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1920
+ base_ref: string;
1921
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1922
+ base: string;
1923
+ /** At most 64 items. */
1924
+ heads: Array<ConnectorPageItemsConnectorValidationsItemHeadsItem>;
1925
+ result: ConnectorPageItemsConnectorValidationsItemResult;
1926
+ state: ConnectorPageItemsConnectorValidationsItemState;
1927
+ /** Or null. */
1928
+ cause: ConnectorPageItemsConnectorValidationsItemCause | null;
1929
+ }
1930
+
1931
+ export interface ConnectorPageItemsConnectorValidationsItemHeadsItem {
1932
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1933
+ authority: string;
1934
+ /** Unsigned 64-bit integer, at least 0. */
1935
+ number: bigint;
1936
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1937
+ head: string;
1938
+ }
1939
+
1940
+ export type ConnectorPageItemsConnectorValidationsItemResult = "passed" | "failed";
1941
+
1942
+ export type ConnectorPageItemsConnectorValidationsItemState = "current" | "stale";
1943
+
1944
+ export interface ConnectorPageItemsConnectorValidationsItemCause {
1945
+ kind: ConnectorPageItemsConnectorValidationsItemCauseKind;
1946
+ /** Unsigned 64-bit integer, at least 0. Or null. */
1947
+ number: bigint | null;
1948
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1949
+ from: string;
1950
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1951
+ to: string;
1952
+ }
1953
+
1954
+ export type ConnectorPageItemsConnectorValidationsItemCauseKind = "head" | "base";
1955
+
1956
+ export interface ConnectorPageItemsConnectorPrioritiesItem {
1957
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1958
+ key: string;
1959
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1960
+ authority: string;
1961
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1962
+ issue: string;
1963
+ /** Unsigned 64-bit integer, at least 0. */
1964
+ priority: bigint;
1965
+ /** Unsigned 64-bit integer, at least 0. */
1966
+ version: bigint;
1967
+ /** Or null. */
1968
+ pending: ConnectorPageItemsConnectorPrioritiesItemPending | null;
1969
+ }
1970
+
1971
+ export interface ConnectorPageItemsConnectorPrioritiesItemPending {
1972
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
1973
+ operation: string;
1974
+ /** Unsigned 64-bit integer, at least 0. */
1975
+ priority: bigint;
1976
+ /** Unsigned 64-bit integer, at least 0. */
1977
+ based_on: bigint;
1978
+ }
1979
+
1980
+ export interface ConnectorPageItemsConnectorCursorsItem {
1981
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1982
+ key: string;
1983
+ connector: ConnectorPageItemsConnectorCursorsItemConnector;
1984
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. Or null. */
1985
+ cursor: string | null;
1986
+ state: ConnectorPageItemsConnectorCursorsItemState;
1987
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
1988
+ reason: string | null;
1989
+ /** Unsigned 64-bit integer, at least 0. */
1990
+ updated_unix_ms: bigint;
1991
+ }
1992
+
1993
+ export type ConnectorPageItemsConnectorCursorsItemConnector = "github" | "linear";
1994
+
1995
+ export type ConnectorPageItemsConnectorCursorsItemState = "ok" | "gap" | "unavailable";
1996
+
1997
+ export interface ConnectorPageItemsConnectorQuarantineItem {
1998
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
1999
+ key: string;
2000
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2001
+ id: string;
2002
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2003
+ table: string;
2004
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
2005
+ row: string;
2006
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2007
+ index: string;
2008
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
2009
+ reason: string;
2010
+ /** Unsigned 64-bit integer, at least 0. Or null. */
2011
+ quarantined_unix_ms: bigint | null;
2012
+ }
2013
+
2014
+ export type ConnectorCommand = {
2015
+ v: 1;
2016
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2017
+ operation_id: string;
2018
+ /** Unsigned 64-bit integer, at least 0. */
2019
+ expected_revision: bigint;
2020
+ } & (
2021
+ | { operation: "connector.link_pull"; args: ConnectorCommandConnectorLinkPull }
2022
+ | { operation: "connector.link_consumer"; args: ConnectorCommandConnectorLinkConsumer }
2023
+ | { operation: "connector.link_issue"; args: ConnectorCommandConnectorLinkIssue }
2024
+ | { operation: "connector.record_validation"; args: ConnectorCommandConnectorRecordValidation }
2025
+ | { operation: "connector.report_stop"; args: ConnectorCommandConnectorReportStop }
2026
+ | { operation: "connector.bind_engagement"; args: ConnectorCommandConnectorBindEngagement }
2027
+ | { operation: "connector.reprocess_event"; args: ConnectorCommandConnectorReprocessEvent }
2028
+ | { operation: "connector.resume_cursor"; args: ConnectorCommandConnectorResumeCursor }
2029
+ | { operation: "connector.reopen_intent"; args: ConnectorCommandConnectorReopenIntent }
2030
+ );
2031
+
2032
+ export interface ConnectorCommandConnectorLinkPull {
2033
+ link: "pull";
2034
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2035
+ authority: string;
2036
+ /** Unsigned 64-bit integer, at least 0. */
2037
+ number: bigint;
2038
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2039
+ contribution: string;
2040
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2041
+ owner: string;
2042
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2043
+ head: string;
2044
+ /** At most 16 items. */
2045
+ provides: Array<ConnectorCommandConnectorLinkPullProvidesItem>;
2046
+ /** At most 64 items. */
2047
+ consumes: Array<string>;
2048
+ /** Unsigned 64-bit integer, at least 0. */
2049
+ head_version?: bigint;
2050
+ }
2051
+
2052
+ export interface ConnectorCommandConnectorLinkPullProvidesItem {
2053
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2054
+ name: string;
2055
+ /** At most 16 items. */
2056
+ paths: Array<string>;
2057
+ }
2058
+
2059
+ export interface ConnectorCommandConnectorLinkConsumer {
2060
+ link: "consumer";
2061
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2062
+ responsibility: string;
2063
+ /** At most 64 items. */
2064
+ consumes: Array<string>;
2065
+ }
2066
+
2067
+ export interface ConnectorCommandConnectorLinkIssue {
2068
+ link: "issue";
2069
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2070
+ authority: string;
2071
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2072
+ issue: string;
2073
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2074
+ work: string;
2075
+ /** Unsigned 64-bit integer, at least 0. */
2076
+ admitted: bigint;
2077
+ }
2078
+
2079
+ export interface ConnectorCommandConnectorRecordValidation {
2080
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2081
+ evidence: string;
2082
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2083
+ owner: string;
2084
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2085
+ base_authority: string;
2086
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
2087
+ base_ref: string;
2088
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2089
+ base: string;
2090
+ /** At most 64 items. */
2091
+ heads: Array<ConnectorCommandConnectorRecordValidationHeadsItem>;
2092
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2093
+ result: string;
2094
+ }
2095
+
2096
+ export interface ConnectorCommandConnectorRecordValidationHeadsItem {
2097
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2098
+ authority: string;
2099
+ /** Unsigned 64-bit integer, at least 0. */
2100
+ number: bigint;
2101
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2102
+ head: string;
2103
+ }
2104
+
2105
+ export interface ConnectorCommandConnectorReportStop {
2106
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2107
+ authority: string;
2108
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2109
+ session: string;
2110
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2111
+ descendant: string;
2112
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2113
+ outcome: string;
2114
+ }
2115
+
2116
+ export interface ConnectorCommandConnectorBindEngagement {
2117
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2118
+ authority: string;
2119
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2120
+ session: string;
2121
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2122
+ descendant?: string;
2123
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2124
+ work?: string;
2125
+ }
2126
+
2127
+ export interface ConnectorCommandConnectorReprocessEvent {
2128
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2129
+ event: string;
2130
+ }
2131
+
2132
+ export interface ConnectorCommandConnectorResumeCursor {
2133
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2134
+ connector: string;
2135
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
2136
+ cursor?: string;
2137
+ }
2138
+
2139
+ export interface ConnectorCommandConnectorReopenIntent {
2140
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2141
+ intent: string;
2142
+ }
2143
+
2144
+ export interface ProjectViewRequest {
2145
+ v: 1;
2146
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2147
+ project_id: string;
2148
+ }
2149
+
2150
+ export interface ProjectView {
2151
+ v: 1;
2152
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2153
+ project_id: string;
2154
+ status: ProjectViewStatus;
2155
+ /** Unsigned 64-bit integer, at least 0. */
2156
+ project_revision: bigint;
2157
+ /** At most 500 items. */
2158
+ ready: Array<ProjectViewReadyItem>;
2159
+ /** At most 64 items. */
2160
+ ineligible: Array<ProjectViewIneligibleItem>;
2161
+ /** Unsigned 64-bit integer, at least 0. */
2162
+ mandate_revision?: bigint;
2163
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
2164
+ next?: string;
2165
+ pause_mode?: ProjectViewPauseMode;
2166
+ /** Unsigned 64-bit integer, at least 0. */
2167
+ revision?: bigint;
2168
+ }
2169
+
2170
+ export type ProjectViewStatus = "draft" | "active" | "paused" | "needs_decision" | "completing" | "complete" | "stopped";
2171
+
2172
+ export interface ProjectViewReadyItem {
2173
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2174
+ item: string;
2175
+ /** Unsigned 64-bit integer, at least 0. */
2176
+ revision: bigint;
2177
+ /** Unsigned integer, 0 to 4294967295. */
2178
+ priority: number;
2179
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2180
+ work_type: string;
2181
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
2182
+ objective: string;
2183
+ /** Unsigned 64-bit integer, at least 0. */
2184
+ dependents: bigint;
2185
+ }
2186
+
2187
+ export interface ProjectViewIneligibleItem {
2188
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2189
+ reason: string;
2190
+ /** Unsigned 64-bit integer, at least 0. */
2191
+ count: bigint;
2192
+ }
2193
+
2194
+ export type ProjectViewPauseMode = "hold_new_work" | "cooperative_pause";
2195
+
2196
+ export type ProjectCommand = {
2197
+ v: 1;
2198
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2199
+ operation_id: string;
2200
+ /** Opaque id (`[A-Za-z0-9_][A-Za-z0-9_.:-]*`), 1 to 128 characters. */
2201
+ project_id: string;
2202
+ /** Unsigned 64-bit integer, at least 0. */
2203
+ expected_revision: bigint;
2204
+ } & (
2205
+ | { action: "save_mandate"; args: ProjectCommandSaveMandate }
2206
+ | { action: "activate"; args: ProjectCommandActivate }
2207
+ | { action: "pause"; args: ProjectCommandPause }
2208
+ | { action: "resume"; args: ProjectCommandResume }
2209
+ | { action: "raise_decision"; args: ProjectCommandRaiseDecision }
2210
+ | { action: "resolve_decision"; args: ProjectCommandResolveDecision }
2211
+ | { action: "begin_completing"; args: ProjectCommandBeginCompleting }
2212
+ | { action: "accept_outcome"; args: ProjectCommandAcceptOutcome }
2213
+ | { action: "reopen_work"; args: ProjectCommandReopenWork }
2214
+ | { action: "stop"; args: ProjectCommandStop }
2215
+ | { action: "resume_after_reconciliation"; args: ProjectCommandResumeAfterReconciliation }
2216
+ );
2217
+
2218
+ export interface ProjectCommandSaveMandate {
2219
+ change: ProjectCommandSaveMandateChange;
2220
+ /** Text (no control character but LF and TAB), at most 2048 characters, at most 2048 UTF-8 bytes. */
2221
+ outcome: string;
2222
+ /** Text (no control character but LF and TAB), at most 2048 characters, at most 2048 UTF-8 bytes. */
2223
+ stage: string;
2224
+ /** At most 32 items. */
2225
+ scope: Array<string>;
2226
+ /** At most 32 items. */
2227
+ links: Array<string>;
2228
+ /** At most 32 items. */
2229
+ priorities: Array<string>;
2230
+ /** At most 16 items. */
2231
+ success_criteria: Array<string>;
2232
+ /** At most 32 items. */
2233
+ required_items: Array<string>;
2234
+ /** Text (no control character but LF and TAB), at most 2048 characters, at most 2048 UTF-8 bytes. */
2235
+ discovery: string;
2236
+ /** Text (no control character but LF and TAB), at most 2048 characters, at most 2048 UTF-8 bytes. */
2237
+ publishing: string;
2238
+ /** Text (no control character but LF and TAB), at most 2048 characters, at most 2048 UTF-8 bytes. */
2239
+ integration: string;
2240
+ /** Text (no control character but LF and TAB), at most 2048 characters, at most 2048 UTF-8 bytes. */
2241
+ resources: string;
2242
+ /** Text (no control character but LF and TAB), at most 2048 characters, at most 2048 UTF-8 bytes. */
2243
+ recovery: string;
2244
+ /** Text (no control character but LF and TAB), at most 2048 characters, at most 2048 UTF-8 bytes. */
2245
+ escalation: string;
2246
+ /** Text (no control character but LF and TAB), at most 2048 characters, at most 2048 UTF-8 bytes. */
2247
+ conditions: string;
2248
+ }
2249
+
2250
+ export type ProjectCommandSaveMandateChange = "within_scope" | "material_expansion";
2251
+
2252
+ export interface ProjectCommandActivate {
2253
+ }
2254
+
2255
+ export interface ProjectCommandPause {
2256
+ mode: ProjectCommandPauseMode;
2257
+ }
2258
+
2259
+ export type ProjectCommandPauseMode = "hold_new_work" | "cooperative_pause";
2260
+
2261
+ export interface ProjectCommandResume {
2262
+ }
2263
+
2264
+ export interface ProjectCommandRaiseDecision {
2265
+ /** Opaque id (`[A-Za-z0-9_][A-Za-z0-9_.:-]*`), 1 to 128 characters. */
2266
+ decision: string;
2267
+ /** Text (no control character but LF and TAB), at most 2048 characters, at most 2048 UTF-8 bytes. */
2268
+ question: string;
2269
+ /** At most 32 items. */
2270
+ options: Array<string>;
2271
+ /** At most 500 items. */
2272
+ items?: Array<string>;
2273
+ }
2274
+
2275
+ export interface ProjectCommandResolveDecision {
2276
+ /** Opaque id (`[A-Za-z0-9_][A-Za-z0-9_.:-]*`), 1 to 128 characters. */
2277
+ decision: string;
2278
+ /** Text (no control character but LF and TAB), at most 2048 characters, at most 2048 UTF-8 bytes. */
2279
+ response: string;
2280
+ }
2281
+
2282
+ export interface ProjectCommandBeginCompleting {
2283
+ }
2284
+
2285
+ export interface ProjectCommandAcceptOutcome {
2286
+ /** At most 64 items. */
2287
+ evidence: Array<string>;
2288
+ }
2289
+
2290
+ export interface ProjectCommandReopenWork {
2291
+ }
2292
+
2293
+ export interface ProjectCommandStop {
2294
+ }
2295
+
2296
+ export interface ProjectCommandResumeAfterReconciliation {
2297
+ /** Opaque id (`[A-Za-z0-9_][A-Za-z0-9_.:-]*`), 1 to 128 characters. */
2298
+ evidence: string;
2299
+ }
2300
+
2301
+ export interface ProjectAgentRequest {
2302
+ schema: "lanes.project-request.v1";
2303
+ op: ProjectAgentRequestOp;
2304
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2305
+ lane: string;
2306
+ /** Opaque id (`[A-Za-z0-9_][A-Za-z0-9_.:-]*`), 1 to 128 characters. */
2307
+ project: string;
2308
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
2309
+ after?: string;
2310
+ /** Opaque id (`[A-Za-z0-9_][A-Za-z0-9_.:-]*`), 1 to 128 characters. */
2311
+ checkpoint?: string;
2312
+ /** Unsigned 64-bit integer, at least 0. */
2313
+ epoch?: bigint;
2314
+ /** Opaque id (`[A-Za-z0-9_][A-Za-z0-9_.:-]*`), 1 to 128 characters. */
2315
+ item?: string;
2316
+ /** Unsigned 64-bit integer, at least 0. */
2317
+ lease_s?: bigint;
2318
+ /** Unsigned 64-bit integer, at least 0. */
2319
+ limit?: bigint;
2320
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
2321
+ next_action?: string;
2322
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
2323
+ note?: string;
2324
+ /** Opaque id (`[A-Za-z0-9_][A-Za-z0-9_.:-]*`), 1 to 128 characters. */
2325
+ request?: string;
2326
+ /** Unsigned 64-bit integer, at least 0. */
2327
+ revision?: bigint;
2328
+ }
2329
+
2330
+ export type ProjectAgentRequestOp = "work_list" | "work_claim" | "work_release" | "checkpoint";
2331
+
2332
+ export type ScheduleCommand = {
2333
+ v: 1;
2334
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2335
+ operation_id: string;
2336
+ } & (
2337
+ | { op: "create"; args: ScheduleCommandCreate }
2338
+ | { op: "edit"; args: ScheduleCommandEdit }
2339
+ | { op: "pause"; args: ScheduleCommandPause }
2340
+ | { op: "resume"; args: ScheduleCommandResume }
2341
+ | { op: "retire"; args: ScheduleCommandRetire }
2342
+ | { op: "cancel_occurrence"; args: ScheduleCommandCancelOccurrence }
2343
+ );
2344
+
2345
+ export interface ScheduleCommandCreate {
2346
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2347
+ schedule: string;
2348
+ trigger: ScheduleCommandCreateTrigger;
2349
+ action: ScheduleCommandCreateAction;
2350
+ /** Unsigned integer, 0 to 65535. */
2351
+ overlap: number;
2352
+ }
2353
+
2354
+ export type ScheduleCommandCreateTrigger =
2355
+ | { kind: "timed"; spec: ScheduleCommandCreateTriggerTimed }
2356
+ | { kind: "condition"; spec: ScheduleCommandCreateTriggerCondition };
2357
+
2358
+ export interface ScheduleCommandCreateTriggerTimed {
2359
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2360
+ zone: string;
2361
+ rule: ScheduleCommandCreateTriggerTimedRule;
2362
+ missed: ScheduleCommandCreateTriggerTimedMissed;
2363
+ }
2364
+
2365
+ export type ScheduleCommandCreateTriggerTimedRule =
2366
+ | { every: "once"; rule: ScheduleCommandCreateTriggerTimedRuleOnce }
2367
+ | { every: "daily"; rule: ScheduleCommandCreateTriggerTimedRuleDaily }
2368
+ | { every: "weekly"; rule: ScheduleCommandCreateTriggerTimedRuleWeekly };
2369
+
2370
+ export interface ScheduleCommandCreateTriggerTimedRuleOnce {
2371
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2372
+ at: string;
2373
+ fold?: ScheduleCommandCreateTriggerTimedRuleOnceFold;
2374
+ }
2375
+
2376
+ export type ScheduleCommandCreateTriggerTimedRuleOnceFold = "first" | "second";
2377
+
2378
+ export interface ScheduleCommandCreateTriggerTimedRuleDaily {
2379
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2380
+ time: string;
2381
+ gap: ScheduleCommandCreateTriggerTimedRuleDailyGap;
2382
+ fold: ScheduleCommandCreateTriggerTimedRuleDailyFold;
2383
+ }
2384
+
2385
+ export type ScheduleCommandCreateTriggerTimedRuleDailyGap = "skip" | "next_valid";
2386
+
2387
+ export type ScheduleCommandCreateTriggerTimedRuleDailyFold = "first" | "second";
2388
+
2389
+ export interface ScheduleCommandCreateTriggerTimedRuleWeekly {
2390
+ /** At most 7 items. */
2391
+ days: Array<ScheduleCommandCreateTriggerTimedRuleWeeklyDaysItem>;
2392
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2393
+ time: string;
2394
+ gap: ScheduleCommandCreateTriggerTimedRuleWeeklyGap;
2395
+ fold: ScheduleCommandCreateTriggerTimedRuleWeeklyFold;
2396
+ }
2397
+
2398
+ export type ScheduleCommandCreateTriggerTimedRuleWeeklyDaysItem = "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
2399
+
2400
+ export type ScheduleCommandCreateTriggerTimedRuleWeeklyGap = "skip" | "next_valid";
2401
+
2402
+ export type ScheduleCommandCreateTriggerTimedRuleWeeklyFold = "first" | "second";
2403
+
2404
+ export type ScheduleCommandCreateTriggerTimedMissed =
2405
+ | { policy: "coalesce_once"; args: ScheduleCommandCreateTriggerTimedMissedCoalesceOnce }
2406
+ | { policy: "skip"; args: ScheduleCommandCreateTriggerTimedMissedSkip }
2407
+ | { policy: "catch_up"; args: ScheduleCommandCreateTriggerTimedMissedCatchUp };
2408
+
2409
+ export interface ScheduleCommandCreateTriggerTimedMissedCoalesceOnce {
2410
+ }
2411
+
2412
+ export interface ScheduleCommandCreateTriggerTimedMissedSkip {
2413
+ }
2414
+
2415
+ export interface ScheduleCommandCreateTriggerTimedMissedCatchUp {
2416
+ /** Unsigned integer, 0 to 65535. */
2417
+ max: number;
2418
+ /** Unsigned 64-bit integer, at least 0. */
2419
+ expiry_ms: bigint;
2420
+ }
2421
+
2422
+ export interface ScheduleCommandCreateTriggerCondition {
2423
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2424
+ source: string;
2425
+ initial: ScheduleCommandCreateTriggerConditionInitial;
2426
+ rearm?: ScheduleCommandCreateTriggerConditionRearm;
2427
+ }
2428
+
2429
+ export type ScheduleCommandCreateTriggerConditionInitial = "current_and_future" | "future_only";
2430
+
2431
+ export type ScheduleCommandCreateTriggerConditionRearm =
2432
+ | { on: "frontier_changed"; args: ScheduleCommandCreateTriggerConditionRearmFrontierChanged }
2433
+ | { on: "cooldown"; args: ScheduleCommandCreateTriggerConditionRearmCooldown };
2434
+
2435
+ export interface ScheduleCommandCreateTriggerConditionRearmFrontierChanged {
2436
+ }
2437
+
2438
+ export interface ScheduleCommandCreateTriggerConditionRearmCooldown {
2439
+ /** Unsigned 64-bit integer, at least 0. */
2440
+ cooldown_ms: bigint;
2441
+ }
2442
+
2443
+ export type ScheduleCommandCreateAction =
2444
+ | { kind: "message"; args: ScheduleCommandCreateActionMessage }
2445
+ | { kind: "standing"; args: ScheduleCommandCreateActionStanding };
2446
+
2447
+ export interface ScheduleCommandCreateActionMessage {
2448
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2449
+ recipient: string;
2450
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
2451
+ body: string;
2452
+ }
2453
+
2454
+ export interface ScheduleCommandCreateActionStanding {
2455
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2456
+ responsibility: string;
2457
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2458
+ action: string;
2459
+ }
2460
+
2461
+ export interface ScheduleCommandEdit {
2462
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2463
+ schedule: string;
2464
+ /** Unsigned 64-bit integer, at least 0. */
2465
+ expected_revision: bigint;
2466
+ timed: ScheduleCommandEditTimed;
2467
+ /** Unsigned integer, 0 to 65535. */
2468
+ overlap: number;
2469
+ }
2470
+
2471
+ export interface ScheduleCommandEditTimed {
2472
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2473
+ zone: string;
2474
+ rule: ScheduleCommandEditTimedRule;
2475
+ missed: ScheduleCommandEditTimedMissed;
2476
+ }
2477
+
2478
+ export type ScheduleCommandEditTimedRule =
2479
+ | { every: "once"; rule: ScheduleCommandEditTimedRuleOnce }
2480
+ | { every: "daily"; rule: ScheduleCommandEditTimedRuleDaily }
2481
+ | { every: "weekly"; rule: ScheduleCommandEditTimedRuleWeekly };
2482
+
2483
+ export interface ScheduleCommandEditTimedRuleOnce {
2484
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2485
+ at: string;
2486
+ fold?: ScheduleCommandEditTimedRuleOnceFold;
2487
+ }
2488
+
2489
+ export type ScheduleCommandEditTimedRuleOnceFold = "first" | "second";
2490
+
2491
+ export interface ScheduleCommandEditTimedRuleDaily {
2492
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2493
+ time: string;
2494
+ gap: ScheduleCommandEditTimedRuleDailyGap;
2495
+ fold: ScheduleCommandEditTimedRuleDailyFold;
2496
+ }
2497
+
2498
+ export type ScheduleCommandEditTimedRuleDailyGap = "skip" | "next_valid";
2499
+
2500
+ export type ScheduleCommandEditTimedRuleDailyFold = "first" | "second";
2501
+
2502
+ export interface ScheduleCommandEditTimedRuleWeekly {
2503
+ /** At most 7 items. */
2504
+ days: Array<ScheduleCommandEditTimedRuleWeeklyDaysItem>;
2505
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2506
+ time: string;
2507
+ gap: ScheduleCommandEditTimedRuleWeeklyGap;
2508
+ fold: ScheduleCommandEditTimedRuleWeeklyFold;
2509
+ }
2510
+
2511
+ export type ScheduleCommandEditTimedRuleWeeklyDaysItem = "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
2512
+
2513
+ export type ScheduleCommandEditTimedRuleWeeklyGap = "skip" | "next_valid";
2514
+
2515
+ export type ScheduleCommandEditTimedRuleWeeklyFold = "first" | "second";
2516
+
2517
+ export type ScheduleCommandEditTimedMissed =
2518
+ | { policy: "coalesce_once"; args: ScheduleCommandEditTimedMissedCoalesceOnce }
2519
+ | { policy: "skip"; args: ScheduleCommandEditTimedMissedSkip }
2520
+ | { policy: "catch_up"; args: ScheduleCommandEditTimedMissedCatchUp };
2521
+
2522
+ export interface ScheduleCommandEditTimedMissedCoalesceOnce {
2523
+ }
2524
+
2525
+ export interface ScheduleCommandEditTimedMissedSkip {
2526
+ }
2527
+
2528
+ export interface ScheduleCommandEditTimedMissedCatchUp {
2529
+ /** Unsigned integer, 0 to 65535. */
2530
+ max: number;
2531
+ /** Unsigned 64-bit integer, at least 0. */
2532
+ expiry_ms: bigint;
2533
+ }
2534
+
2535
+ export interface ScheduleCommandPause {
2536
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2537
+ schedule: string;
2538
+ /** Unsigned 64-bit integer, at least 0. */
2539
+ expected_revision: bigint;
2540
+ }
2541
+
2542
+ export interface ScheduleCommandResume {
2543
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2544
+ schedule: string;
2545
+ /** Unsigned 64-bit integer, at least 0. */
2546
+ expected_revision: bigint;
2547
+ }
2548
+
2549
+ export interface ScheduleCommandRetire {
2550
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2551
+ schedule: string;
2552
+ /** Unsigned 64-bit integer, at least 0. */
2553
+ expected_revision: bigint;
2554
+ }
2555
+
2556
+ export interface ScheduleCommandCancelOccurrence {
2557
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2558
+ occurrence: string;
2559
+ /** Unsigned 64-bit integer, at least 0. */
2560
+ expected_revision: bigint;
2561
+ }
2562
+
2563
+ export interface SchedulesPage {
2564
+ v: 1;
2565
+ /** At most 500 items. */
2566
+ items: Array<SchedulesPageItemsItem>;
2567
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
2568
+ next?: string;
2569
+ /** Unsigned 64-bit integer, at least 0. */
2570
+ revision?: bigint;
2571
+ }
2572
+
2573
+ export interface SchedulesPageItemsItem {
2574
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2575
+ schedule: string;
2576
+ /** Unsigned 64-bit integer, at least 0. */
2577
+ revision: bigint;
2578
+ status: SchedulesPageItemsItemStatus;
2579
+ trigger: SchedulesPageItemsItemTrigger;
2580
+ action: SchedulesPageItemsItemAction;
2581
+ /** Unsigned integer, 0 to 65535. */
2582
+ overlap: number;
2583
+ /** At most 16 items. */
2584
+ occurrences: Array<SchedulesPageItemsItemOccurrencesItem>;
2585
+ occurrences_truncated: boolean;
2586
+ /** Unsigned 64-bit integer, at least 0. */
2587
+ next_unix_ms?: bigint;
2588
+ }
2589
+
2590
+ export type SchedulesPageItemsItemStatus = "active" | "paused" | "retired";
2591
+
2592
+ export type SchedulesPageItemsItemTrigger =
2593
+ | { kind: "timed"; spec: SchedulesPageItemsItemTriggerTimed }
2594
+ | { kind: "condition"; spec: SchedulesPageItemsItemTriggerCondition };
2595
+
2596
+ export interface SchedulesPageItemsItemTriggerTimed {
2597
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2598
+ zone: string;
2599
+ rule: SchedulesPageItemsItemTriggerTimedRule;
2600
+ missed: SchedulesPageItemsItemTriggerTimedMissed;
2601
+ }
2602
+
2603
+ export type SchedulesPageItemsItemTriggerTimedRule =
2604
+ | { every: "once"; rule: SchedulesPageItemsItemTriggerTimedRuleOnce }
2605
+ | { every: "daily"; rule: SchedulesPageItemsItemTriggerTimedRuleDaily }
2606
+ | { every: "weekly"; rule: SchedulesPageItemsItemTriggerTimedRuleWeekly };
2607
+
2608
+ export interface SchedulesPageItemsItemTriggerTimedRuleOnce {
2609
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2610
+ at: string;
2611
+ fold?: SchedulesPageItemsItemTriggerTimedRuleOnceFold;
2612
+ }
2613
+
2614
+ export type SchedulesPageItemsItemTriggerTimedRuleOnceFold = "first" | "second";
2615
+
2616
+ export interface SchedulesPageItemsItemTriggerTimedRuleDaily {
2617
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2618
+ time: string;
2619
+ gap: SchedulesPageItemsItemTriggerTimedRuleDailyGap;
2620
+ fold: SchedulesPageItemsItemTriggerTimedRuleDailyFold;
2621
+ }
2622
+
2623
+ export type SchedulesPageItemsItemTriggerTimedRuleDailyGap = "skip" | "next_valid";
2624
+
2625
+ export type SchedulesPageItemsItemTriggerTimedRuleDailyFold = "first" | "second";
2626
+
2627
+ export interface SchedulesPageItemsItemTriggerTimedRuleWeekly {
2628
+ /** At most 7 items. */
2629
+ days: Array<SchedulesPageItemsItemTriggerTimedRuleWeeklyDaysItem>;
2630
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2631
+ time: string;
2632
+ gap: SchedulesPageItemsItemTriggerTimedRuleWeeklyGap;
2633
+ fold: SchedulesPageItemsItemTriggerTimedRuleWeeklyFold;
2634
+ }
2635
+
2636
+ export type SchedulesPageItemsItemTriggerTimedRuleWeeklyDaysItem = "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
2637
+
2638
+ export type SchedulesPageItemsItemTriggerTimedRuleWeeklyGap = "skip" | "next_valid";
2639
+
2640
+ export type SchedulesPageItemsItemTriggerTimedRuleWeeklyFold = "first" | "second";
2641
+
2642
+ export type SchedulesPageItemsItemTriggerTimedMissed =
2643
+ | { policy: "coalesce_once"; args: SchedulesPageItemsItemTriggerTimedMissedCoalesceOnce }
2644
+ | { policy: "skip"; args: SchedulesPageItemsItemTriggerTimedMissedSkip }
2645
+ | { policy: "catch_up"; args: SchedulesPageItemsItemTriggerTimedMissedCatchUp };
2646
+
2647
+ export interface SchedulesPageItemsItemTriggerTimedMissedCoalesceOnce {
2648
+ }
2649
+
2650
+ export interface SchedulesPageItemsItemTriggerTimedMissedSkip {
2651
+ }
2652
+
2653
+ export interface SchedulesPageItemsItemTriggerTimedMissedCatchUp {
2654
+ /** Unsigned integer, 0 to 65535. */
2655
+ max: number;
2656
+ /** Unsigned 64-bit integer, at least 0. */
2657
+ expiry_ms: bigint;
2658
+ }
2659
+
2660
+ export interface SchedulesPageItemsItemTriggerCondition {
2661
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2662
+ source: string;
2663
+ initial: SchedulesPageItemsItemTriggerConditionInitial;
2664
+ rearm?: SchedulesPageItemsItemTriggerConditionRearm;
2665
+ }
2666
+
2667
+ export type SchedulesPageItemsItemTriggerConditionInitial = "current_and_future" | "future_only";
2668
+
2669
+ export type SchedulesPageItemsItemTriggerConditionRearm =
2670
+ | { on: "frontier_changed"; args: SchedulesPageItemsItemTriggerConditionRearmFrontierChanged }
2671
+ | { on: "cooldown"; args: SchedulesPageItemsItemTriggerConditionRearmCooldown };
2672
+
2673
+ export interface SchedulesPageItemsItemTriggerConditionRearmFrontierChanged {
2674
+ }
2675
+
2676
+ export interface SchedulesPageItemsItemTriggerConditionRearmCooldown {
2677
+ /** Unsigned 64-bit integer, at least 0. */
2678
+ cooldown_ms: bigint;
2679
+ }
2680
+
2681
+ export type SchedulesPageItemsItemAction =
2682
+ | { kind: "message"; args: SchedulesPageItemsItemActionMessage }
2683
+ | { kind: "standing"; args: SchedulesPageItemsItemActionStanding };
2684
+
2685
+ export interface SchedulesPageItemsItemActionMessage {
2686
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2687
+ recipient: string;
2688
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
2689
+ body: string;
2690
+ }
2691
+
2692
+ export interface SchedulesPageItemsItemActionStanding {
2693
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2694
+ responsibility: string;
2695
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2696
+ action: string;
2697
+ }
2698
+
2699
+ export interface SchedulesPageItemsItemOccurrencesItem {
2700
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2701
+ occurrence: string;
2702
+ /** Unsigned 64-bit integer, at least 0. */
2703
+ revision: bigint;
2704
+ state: SchedulesPageItemsItemOccurrencesItemState;
2705
+ /** Unsigned 64-bit integer, at least 0. Or null. */
2706
+ nominal_unix_ms: bigint | null;
2707
+ }
2708
+
2709
+ export type SchedulesPageItemsItemOccurrencesItemState = "pending_time" | "pending_condition" | "ready" | "held" | "claimed";
2710
+
2711
+ export interface BuildsPanel {
2712
+ schema: "lanes2.builds-panel/1";
2713
+ /** Unsigned 64-bit integer, at least 0. */
2714
+ observed_at_unix_ms: bigint;
2715
+ source: BuildsPanelSource;
2716
+ completeness: BuildsPanelCompleteness;
2717
+ /** At most 500 items. */
2718
+ jobs: Array<BuildsPanelJobsItem>;
2719
+ /** At most 500 items. */
2720
+ recent: Array<BuildsPanelRecentItem>;
2721
+ history: BuildsPanelHistory;
2722
+ /** At most 500 items. */
2723
+ lane_waits: Array<BuildsPanelLaneWaitsItem>;
2724
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
2725
+ lane_waits_label: string | null;
2726
+ /** At most 16 items. */
2727
+ resources: Array<string>;
2728
+ /** Or null. */
2729
+ unavailable: BuildsPanelUnavailable | null;
2730
+ }
2731
+
2732
+ export interface BuildsPanelSource {
2733
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2734
+ adapter: string;
2735
+ /** Unsigned 64-bit integer, at least 0. Or null. */
2736
+ protocol: bigint | null;
2737
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
2738
+ revision: string | null;
2739
+ events_capability: boolean;
2740
+ }
2741
+
2742
+ export interface BuildsPanelCompleteness {
2743
+ complete: boolean;
2744
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
2745
+ label: string | null;
2746
+ }
2747
+
2748
+ export interface BuildsPanelJobsItem {
2749
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2750
+ id: string;
2751
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
2752
+ title: string;
2753
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2754
+ state: string;
2755
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
2756
+ label: string;
2757
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2758
+ stage: string;
2759
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2760
+ lane: string;
2761
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2762
+ profile: string;
2763
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
2764
+ worker: string | null;
2765
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2766
+ snapshot: string;
2767
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
2768
+ source_revision: string | null;
2769
+ /** Unsigned 64-bit integer, at least 0. */
2770
+ age_ms: bigint;
2771
+ /** Or null. */
2772
+ wait: BuildsPanelJobsItemWait | null;
2773
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
2774
+ priority: string;
2775
+ /** At most 8 items. */
2776
+ priority_detail: Array<string>;
2777
+ log: BuildsPanelJobsItemLog;
2778
+ /** Or null. */
2779
+ receipt: BuildsPanelJobsItemReceipt | null;
2780
+ /** At most 16 items. */
2781
+ actions: Array<BuildsPanelJobsItemActionsItem>;
2782
+ }
2783
+
2784
+ export interface BuildsPanelJobsItemWait {
2785
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
2786
+ reason: string;
2787
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
2788
+ provenance: string;
2789
+ }
2790
+
2791
+ export interface BuildsPanelJobsItemLog {
2792
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
2793
+ identity: string;
2794
+ /** Unsigned 64-bit integer, at least 0. */
2795
+ length: bigint;
2796
+ }
2797
+
2798
+ export interface BuildsPanelJobsItemReceipt {
2799
+ /** Signed 64-bit integer (a JavaScript number when it is safe, else a bigint). Or null. */
2800
+ exit_code: number | bigint | null;
2801
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
2802
+ artifact_sha256: string | null;
2803
+ }
2804
+
2805
+ export interface BuildsPanelJobsItemActionsItem {
2806
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2807
+ action: string;
2808
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
2809
+ label: string;
2810
+ available: boolean;
2811
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
2812
+ code: string | null;
2813
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
2814
+ reason: string | null;
2815
+ }
2816
+
2817
+ export interface BuildsPanelRecentItem {
2818
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2819
+ id: string;
2820
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
2821
+ title: string;
2822
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2823
+ state: string;
2824
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
2825
+ label: string;
2826
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2827
+ stage: string;
2828
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2829
+ lane: string;
2830
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2831
+ profile: string;
2832
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
2833
+ worker: string | null;
2834
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2835
+ snapshot: string;
2836
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
2837
+ source_revision: string | null;
2838
+ /** Unsigned 64-bit integer, at least 0. */
2839
+ age_ms: bigint;
2840
+ /** Or null. */
2841
+ wait: BuildsPanelRecentItemWait | null;
2842
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
2843
+ priority: string;
2844
+ /** At most 8 items. */
2845
+ priority_detail: Array<string>;
2846
+ log: BuildsPanelRecentItemLog;
2847
+ /** Or null. */
2848
+ receipt: BuildsPanelRecentItemReceipt | null;
2849
+ /** At most 16 items. */
2850
+ actions: Array<BuildsPanelRecentItemActionsItem>;
2851
+ }
2852
+
2853
+ export interface BuildsPanelRecentItemWait {
2854
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
2855
+ reason: string;
2856
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
2857
+ provenance: string;
2858
+ }
2859
+
2860
+ export interface BuildsPanelRecentItemLog {
2861
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
2862
+ identity: string;
2863
+ /** Unsigned 64-bit integer, at least 0. */
2864
+ length: bigint;
2865
+ }
2866
+
2867
+ export interface BuildsPanelRecentItemReceipt {
2868
+ /** Signed 64-bit integer (a JavaScript number when it is safe, else a bigint). Or null. */
2869
+ exit_code: number | bigint | null;
2870
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
2871
+ artifact_sha256: string | null;
2872
+ }
2873
+
2874
+ export interface BuildsPanelRecentItemActionsItem {
2875
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2876
+ action: string;
2877
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
2878
+ label: string;
2879
+ available: boolean;
2880
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
2881
+ code: string | null;
2882
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
2883
+ reason: string | null;
2884
+ }
2885
+
2886
+ export interface BuildsPanelHistory {
2887
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
2888
+ label: string | null;
2889
+ }
2890
+
2891
+ export interface BuildsPanelLaneWaitsItem {
2892
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2893
+ lane: string;
2894
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2895
+ job: string;
2896
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2897
+ attempt_ref: string;
2898
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2899
+ state: string;
2900
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
2901
+ reason: string;
2902
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
2903
+ provenance: string;
2904
+ }
2905
+
2906
+ export interface BuildsPanelUnavailable {
2907
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2908
+ code: string;
2909
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
2910
+ reason: string;
2911
+ }
2912
+
2913
+ export interface BuildLogPage {
2914
+ schema: "lanes2.build-log/1";
2915
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2916
+ job: string;
2917
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
2918
+ identity: string;
2919
+ /** Unsigned 64-bit integer, at least 0. */
2920
+ start: bigint;
2921
+ /** String, at most 163840 characters, at most 163840 UTF-8 bytes. */
2922
+ text: string;
2923
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
2924
+ notice: string | null;
2925
+ /** Unsigned 64-bit integer, at least 0. */
2926
+ next_offset: bigint;
2927
+ complete: boolean;
2928
+ }
2929
+
2930
+ export interface ToolsPanel {
2931
+ schema: "lanes2.tools-panel/1";
2932
+ /** Unsigned 64-bit integer, at least 0. */
2933
+ observed_at_unix_ms: bigint;
2934
+ session: ToolsPanelSession;
2935
+ source: ToolsPanelSource;
2936
+ contracts: ToolsPanelContracts;
2937
+ repair: ToolsPanelRepair;
2938
+ page: ToolsPanelPage;
2939
+ /** At most 500 items. */
2940
+ tools: Array<ToolsPanelToolsItem>;
2941
+ /** Or null. */
2942
+ unavailable: ToolsPanelUnavailable | null;
2943
+ /** At most 500 items. */
2944
+ skills: Array<ToolsPanelSkillsItem>;
2945
+ /** Or null. */
2946
+ skills_unavailable: ToolsPanelSkillsUnavailable | null;
2947
+ /** Or null. */
2948
+ launch: ToolsPanelLaunch | null;
2949
+ }
2950
+
2951
+ export interface ToolsPanelSession {
2952
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2953
+ workspace: string;
2954
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2955
+ lane: string;
2956
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2957
+ generation: string;
2958
+ }
2959
+
2960
+ export interface ToolsPanelSource {
2961
+ provenance: ToolsPanelSourceProvenance;
2962
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
2963
+ label: string;
2964
+ /** Or null. */
2965
+ discovery: ToolsPanelSourceDiscovery | null;
2966
+ }
2967
+
2968
+ export type ToolsPanelSourceProvenance = "fixture" | "owner" | "none";
2969
+
2970
+ export interface ToolsPanelSourceDiscovery {
2971
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
2972
+ generation: string;
2973
+ disclosure: ToolsPanelSourceDiscoveryDisclosure;
2974
+ /** Unsigned 64-bit integer, at least 0. */
2975
+ observed_at_unix_ms: bigint;
2976
+ }
2977
+
2978
+ export type ToolsPanelSourceDiscoveryDisclosure = "full" | "meta" | "hybrid" | "auto" | "unknown";
2979
+
2980
+ export interface ToolsPanelContracts {
2981
+ tools: ToolsPanelContractsTools;
2982
+ skills: ToolsPanelContractsSkills;
2983
+ }
2984
+
2985
+ export interface ToolsPanelContractsTools {
2986
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
2987
+ contract: string;
2988
+ active: boolean;
2989
+ }
2990
+
2991
+ export interface ToolsPanelContractsSkills {
2992
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
2993
+ contract: string;
2994
+ active: boolean;
2995
+ }
2996
+
2997
+ export interface ToolsPanelRepair {
2998
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
2999
+ switch: string;
3000
+ enabled: boolean;
3001
+ }
3002
+
3003
+ export interface ToolsPanelPage {
3004
+ /** Unsigned integer, 0 to 65535. */
3005
+ limit: number;
3006
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3007
+ after: string | null;
3008
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3009
+ next: string | null;
3010
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3011
+ skills_after: string | null;
3012
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3013
+ skills_next: string | null;
3014
+ }
3015
+
3016
+ export interface ToolsPanelToolsItem {
3017
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3018
+ name: string;
3019
+ selected: boolean;
3020
+ attached: boolean;
3021
+ loaded: ToolsPanelToolsItemLoaded;
3022
+ state: ToolsPanelToolsItemState;
3023
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3024
+ label: string;
3025
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3026
+ cause: string;
3027
+ /** Or null. */
3028
+ preview: ToolsPanelToolsItemPreview | null;
3029
+ /** Or null. */
3030
+ apply: ToolsPanelToolsItemApply | null;
3031
+ /** At most 16 items. */
3032
+ actions: Array<ToolsPanelToolsItemActionsItem>;
3033
+ }
3034
+
3035
+ export type ToolsPanelToolsItemLoaded = "yes" | "no" | "undisclosed" | "other_session" | "not_observed";
3036
+
3037
+ export type ToolsPanelToolsItemState = "effective" | "selected_unattached" | "loaded_unattributed" | "attached_not_loaded" | "attached_undisclosed" | "attached_unverified" | "drift" | "not_selected";
3038
+
3039
+ export interface ToolsPanelToolsItemPreview {
3040
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3041
+ receipt: string;
3042
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3043
+ owner_preview: string;
3044
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3045
+ generation: string;
3046
+ /** At most 16 items. */
3047
+ steps: Array<ToolsPanelToolsItemPreviewStepsItem>;
3048
+ observed: ToolsPanelToolsItemPreviewObserved;
3049
+ /** Unsigned 64-bit integer, at least 0. */
3050
+ created_at_unix_ms: bigint;
3051
+ open: boolean;
3052
+ }
3053
+
3054
+ export interface ToolsPanelToolsItemPreviewStepsItem {
3055
+ kind: ToolsPanelToolsItemPreviewStepsItemKind;
3056
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3057
+ text: string;
3058
+ }
3059
+
3060
+ export type ToolsPanelToolsItemPreviewStepsItemKind = "attach" | "refresh_discovery" | "reconnect" | "credential_setup" | "restore_projection" | "remove_duplicate";
3061
+
3062
+ export type ToolsPanelToolsItemPreviewObserved = "effective" | "selected_unattached" | "loaded_unattributed" | "attached_not_loaded" | "attached_undisclosed" | "attached_unverified" | "drift" | "not_selected";
3063
+
3064
+ export interface ToolsPanelToolsItemApply {
3065
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3066
+ receipt: string;
3067
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3068
+ preview: string;
3069
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3070
+ key: string;
3071
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3072
+ generation: string;
3073
+ phase: ToolsPanelToolsItemApplyPhase;
3074
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3075
+ phase_code: string | null;
3076
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
3077
+ phase_reason: string | null;
3078
+ /** Unsigned 64-bit integer, at least 0. */
3079
+ owner_calls: bigint;
3080
+ reconciled_by_discovery: boolean;
3081
+ confirmation: ToolsPanelToolsItemApplyConfirmation;
3082
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
3083
+ confirmation_reason: string | null;
3084
+ /** Unsigned 64-bit integer, at least 0. */
3085
+ checks: bigint;
3086
+ /** Unsigned 64-bit integer, at least 0. */
3087
+ full_misses: bigint;
3088
+ }
3089
+
3090
+ export type ToolsPanelToolsItemApplyPhase = "intended" | "applied" | "replayed" | "refused" | "unknown";
3091
+
3092
+ export type ToolsPanelToolsItemApplyConfirmation = "pending" | "confirmed" | "session_replaced" | "unverifiable" | "not_confirmed" | "not_applicable";
3093
+
3094
+ export interface ToolsPanelToolsItemActionsItem {
3095
+ action: ToolsPanelToolsItemActionsItemAction;
3096
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3097
+ label: string;
3098
+ available: boolean;
3099
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3100
+ code: string | null;
3101
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
3102
+ reason: string | null;
3103
+ }
3104
+
3105
+ export type ToolsPanelToolsItemActionsItemAction = "inspect" | "repair_preview" | "repair_apply" | "rediscover";
3106
+
3107
+ export interface ToolsPanelUnavailable {
3108
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3109
+ code: string;
3110
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
3111
+ reason: string;
3112
+ }
3113
+
3114
+ export interface ToolsPanelSkillsItem {
3115
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3116
+ name: string;
3117
+ selected: boolean;
3118
+ loaded: boolean;
3119
+ state: ToolsPanelSkillsItemState;
3120
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3121
+ label: string;
3122
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3123
+ cause: string;
3124
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
3125
+ source: string | null;
3126
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. Or null. */
3127
+ digest: string | null;
3128
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
3129
+ native_path: string | null;
3130
+ timing: ToolsPanelSkillsItemTiming;
3131
+ /** At most 16 items. */
3132
+ actions: Array<ToolsPanelSkillsItemActionsItem>;
3133
+ }
3134
+
3135
+ export type ToolsPanelSkillsItemState = "picked_up" | "pending_pickup" | "drift";
3136
+
3137
+ export type ToolsPanelSkillsItemTiming = "not_reported";
3138
+
3139
+ export interface ToolsPanelSkillsItemActionsItem {
3140
+ action: ToolsPanelSkillsItemActionsItemAction;
3141
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3142
+ label: string;
3143
+ available: boolean;
3144
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3145
+ code: string | null;
3146
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
3147
+ reason: string | null;
3148
+ }
3149
+
3150
+ export type ToolsPanelSkillsItemActionsItemAction = "skill_rollback" | "skill_select";
3151
+
3152
+ export interface ToolsPanelSkillsUnavailable {
3153
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3154
+ code: string;
3155
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
3156
+ reason: string;
3157
+ }
3158
+
3159
+ export interface ToolsPanelLaunch {
3160
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3161
+ workspace: string;
3162
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3163
+ lane: string;
3164
+ /** At most 64 items. */
3165
+ selected: Array<string>;
3166
+ existing: ToolsPanelLaunchExisting;
3167
+ fresh: ToolsPanelLaunchFresh;
3168
+ }
3169
+
3170
+ export interface ToolsPanelLaunchExisting {
3171
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3172
+ generation: string;
3173
+ /** At most 64 items. */
3174
+ effective: Array<string>;
3175
+ /** At most 64 items. */
3176
+ unverified: Array<ToolsPanelLaunchExistingUnverifiedItem>;
3177
+ }
3178
+
3179
+ export interface ToolsPanelLaunchExistingUnverifiedItem {
3180
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3181
+ name: string;
3182
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3183
+ cause: string;
3184
+ }
3185
+
3186
+ export interface ToolsPanelLaunchFresh {
3187
+ /** At most 64 items. */
3188
+ tools: Array<string>;
3189
+ /** At most 64 items. */
3190
+ missing: Array<ToolsPanelLaunchFreshMissingItem>;
3191
+ /** At most 64 items. Or null. */
3192
+ skills: Array<string> | null;
3193
+ /** Or null. */
3194
+ skills_unavailable: ToolsPanelLaunchFreshSkillsUnavailable | null;
3195
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
3196
+ basis: string;
3197
+ }
3198
+
3199
+ export interface ToolsPanelLaunchFreshMissingItem {
3200
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3201
+ name: string;
3202
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3203
+ cause: string;
3204
+ }
3205
+
3206
+ export interface ToolsPanelLaunchFreshSkillsUnavailable {
3207
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3208
+ code: string;
3209
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
3210
+ reason: string;
3211
+ }
3212
+
3213
+ export interface ToolRepair {
3214
+ schema: "lanes2.tool-repair/1";
3215
+ session: ToolRepairSession;
3216
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3217
+ tool: string;
3218
+ /** Or null. */
3219
+ preview: ToolRepairPreview | null;
3220
+ /** Or null. */
3221
+ apply: ToolRepairApply | null;
3222
+ /** Or null. */
3223
+ refusal: ToolRepairRefusal | null;
3224
+ }
3225
+
3226
+ export interface ToolRepairSession {
3227
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3228
+ workspace: string;
3229
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3230
+ lane: string;
3231
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3232
+ generation: string;
3233
+ }
3234
+
3235
+ export interface ToolRepairPreview {
3236
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3237
+ receipt: string;
3238
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3239
+ owner_preview: string;
3240
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3241
+ generation: string;
3242
+ /** At most 16 items. */
3243
+ steps: Array<ToolRepairPreviewStepsItem>;
3244
+ observed: ToolRepairPreviewObserved;
3245
+ /** Unsigned 64-bit integer, at least 0. */
3246
+ created_at_unix_ms: bigint;
3247
+ open: boolean;
3248
+ }
3249
+
3250
+ export interface ToolRepairPreviewStepsItem {
3251
+ kind: ToolRepairPreviewStepsItemKind;
3252
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3253
+ text: string;
3254
+ }
3255
+
3256
+ export type ToolRepairPreviewStepsItemKind = "attach" | "refresh_discovery" | "reconnect" | "credential_setup" | "restore_projection" | "remove_duplicate";
3257
+
3258
+ export type ToolRepairPreviewObserved = "effective" | "selected_unattached" | "loaded_unattributed" | "attached_not_loaded" | "attached_undisclosed" | "attached_unverified" | "drift" | "not_selected";
3259
+
3260
+ export interface ToolRepairApply {
3261
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3262
+ receipt: string;
3263
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3264
+ preview: string;
3265
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3266
+ key: string;
3267
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3268
+ generation: string;
3269
+ phase: ToolRepairApplyPhase;
3270
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3271
+ phase_code: string | null;
3272
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
3273
+ phase_reason: string | null;
3274
+ /** Unsigned 64-bit integer, at least 0. */
3275
+ owner_calls: bigint;
3276
+ reconciled_by_discovery: boolean;
3277
+ confirmation: ToolRepairApplyConfirmation;
3278
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
3279
+ confirmation_reason: string | null;
3280
+ /** Unsigned 64-bit integer, at least 0. */
3281
+ checks: bigint;
3282
+ /** Unsigned 64-bit integer, at least 0. */
3283
+ full_misses: bigint;
3284
+ }
3285
+
3286
+ export type ToolRepairApplyPhase = "intended" | "applied" | "replayed" | "refused" | "unknown";
3287
+
3288
+ export type ToolRepairApplyConfirmation = "pending" | "confirmed" | "session_replaced" | "unverifiable" | "not_confirmed" | "not_applicable";
3289
+
3290
+ export interface ToolRepairRefusal {
3291
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3292
+ code: string;
3293
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
3294
+ reason: string;
3295
+ }
3296
+
3297
+ export interface CapacityPanel {
3298
+ schema: "lanes2.capacity-panel/2";
3299
+ /** Unsigned 64-bit integer, at least 0. */
3300
+ observed_at_unix_ms: bigint;
3301
+ /** At most 32 items. */
3302
+ sources: Array<CapacityPanelSourcesItem>;
3303
+ included: CapacityPanelIncluded;
3304
+ /** Or null. */
3305
+ build: CapacityPanelBuild | null;
3306
+ /** At most 500 items. */
3307
+ runs: Array<CapacityPanelRunsItem>;
3308
+ /** At most 500 items. */
3309
+ bookings: Array<CapacityPanelBookingsItem>;
3310
+ /** At most 500 items. */
3311
+ lane_waits: Array<CapacityPanelLaneWaitsItem>;
3312
+ /** At most 4 items. */
3313
+ controls: Array<CapacityPanelControlsItem>;
3314
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. Or null. */
3315
+ next: string | null;
3316
+ /** Or null. */
3317
+ unavailable: CapacityPanelUnavailable | null;
3318
+ }
3319
+
3320
+ export interface CapacityPanelSourcesItem {
3321
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3322
+ name: string;
3323
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3324
+ adapter: string;
3325
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3326
+ route: string;
3327
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3328
+ instance: string | null;
3329
+ /** Unsigned 64-bit integer, at least 0. Or null. */
3330
+ observed_at_unix_ms: bigint | null;
3331
+ fresh: boolean;
3332
+ /** Text (no control character but LF and TAB), 1 to 1024 characters, at most 1024 UTF-8 bytes. Or null. */
3333
+ error: string | null;
3334
+ }
3335
+
3336
+ export interface CapacityPanelIncluded {
3337
+ /** At most 64 items. */
3338
+ rows: Array<CapacityPanelIncludedRowsItem>;
3339
+ aggregate: CapacityPanelIncludedAggregate;
3340
+ }
3341
+
3342
+ export interface CapacityPanelIncludedRowsItem {
3343
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3344
+ pool: string;
3345
+ /** Unsigned 64-bit integer, at least 0. Or null. */
3346
+ available: bigint | null;
3347
+ /** Unsigned 64-bit integer, at least 0. Or null. */
3348
+ cooling: bigint | null;
3349
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. Or null. */
3350
+ reset: string | null;
3351
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3352
+ pressure: string | null;
3353
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3354
+ source: string | null;
3355
+ }
3356
+
3357
+ export interface CapacityPanelIncludedAggregate {
3358
+ state: CapacityPanelIncludedAggregateState;
3359
+ /** Text (no control character but LF and TAB), 1 to 1024 characters, at most 1024 UTF-8 bytes. */
3360
+ reason: string;
3361
+ }
3362
+
3363
+ export type CapacityPanelIncludedAggregateState = "unavailable";
3364
+
3365
+ export interface CapacityPanelBuild {
3366
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. Or null. */
3367
+ bottleneck: string | null;
3368
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3369
+ source: string | null;
3370
+ }
3371
+
3372
+ export interface CapacityPanelRunsItem {
3373
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3374
+ id: string;
3375
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3376
+ title: string;
3377
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
3378
+ lane: string;
3379
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3380
+ lane_label: string;
3381
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
3382
+ generation: string | null;
3383
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3384
+ state: string;
3385
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3386
+ state_source: string;
3387
+ policy: CapacityPanelRunsItemPolicy;
3388
+ /** Or null. */
3389
+ ceiling: CapacityPanelRunsItemCeiling | null;
3390
+ /** At most 16 items. */
3391
+ notes: Array<CapacityPanelRunsItemNotesItem>;
3392
+ /** Or null. */
3393
+ envelope: CapacityPanelRunsItemEnvelope | null;
3394
+ /** At most 64 items. */
3395
+ in_flight: Array<CapacityPanelRunsItemInFlightItem>;
3396
+ }
3397
+
3398
+ export interface CapacityPanelRunsItemPolicy {
3399
+ capacity_mode: CapacityPanelRunsItemPolicyCapacityMode;
3400
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3401
+ dispatch: string;
3402
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. Or null. */
3403
+ deadline: string | null;
3404
+ /** Unsigned 64-bit integer, at least 0. */
3405
+ revision: bigint;
3406
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. Or null. */
3407
+ limiting: string | null;
3408
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3409
+ source: string | null;
3410
+ }
3411
+
3412
+ export type CapacityPanelRunsItemPolicyCapacityMode = "included_only" | "included_with_paid_fallback" | "exact_paid";
3413
+
3414
+ export interface CapacityPanelRunsItemCeiling {
3415
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3416
+ project: string;
3417
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3418
+ currency: string;
3419
+ /** Or null. */
3420
+ ceiling: CapacityPanelRunsItemCeilingCeiling | null;
3421
+ /** Or null. */
3422
+ allocated: CapacityPanelRunsItemCeilingAllocated | null;
3423
+ /** Or null. */
3424
+ unallocated: CapacityPanelRunsItemCeilingUnallocated | null;
3425
+ /** Or null. */
3426
+ held: CapacityPanelRunsItemCeilingHeld | null;
3427
+ /** Or null. */
3428
+ consumed: CapacityPanelRunsItemCeilingConsumed | null;
3429
+ /** Or null. */
3430
+ breach: CapacityPanelRunsItemCeilingBreach | null;
3431
+ /** Or null. */
3432
+ available: CapacityPanelRunsItemCeilingAvailable | null;
3433
+ /** Unsigned 64-bit integer, at least 0. */
3434
+ policy_revision: bigint;
3435
+ enforcement: CapacityPanelRunsItemCeilingEnforcement;
3436
+ /** At most 64 items. */
3437
+ envelopes: Array<CapacityPanelRunsItemCeilingEnvelopesItem>;
3438
+ envelopes_truncated: boolean;
3439
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3440
+ source: string | null;
3441
+ }
3442
+
3443
+ export interface CapacityPanelRunsItemCeilingCeiling {
3444
+ /** Unsigned 64-bit integer, at least 0. */
3445
+ micros: bigint;
3446
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3447
+ currency: string;
3448
+ }
3449
+
3450
+ export interface CapacityPanelRunsItemCeilingAllocated {
3451
+ /** Unsigned 64-bit integer, at least 0. */
3452
+ micros: bigint;
3453
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3454
+ currency: string;
3455
+ }
3456
+
3457
+ export interface CapacityPanelRunsItemCeilingUnallocated {
3458
+ /** Unsigned 64-bit integer, at least 0. */
3459
+ micros: bigint;
3460
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3461
+ currency: string;
3462
+ }
3463
+
3464
+ export interface CapacityPanelRunsItemCeilingHeld {
3465
+ /** Unsigned 64-bit integer, at least 0. */
3466
+ micros: bigint;
3467
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3468
+ currency: string;
3469
+ }
3470
+
3471
+ export interface CapacityPanelRunsItemCeilingConsumed {
3472
+ /** Unsigned 64-bit integer, at least 0. */
3473
+ micros: bigint;
3474
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3475
+ currency: string;
3476
+ }
3477
+
3478
+ export interface CapacityPanelRunsItemCeilingBreach {
3479
+ /** Unsigned 64-bit integer, at least 0. */
3480
+ micros: bigint;
3481
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3482
+ currency: string;
3483
+ }
3484
+
3485
+ export interface CapacityPanelRunsItemCeilingAvailable {
3486
+ /** Unsigned 64-bit integer, at least 0. */
3487
+ micros: bigint;
3488
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3489
+ currency: string;
3490
+ }
3491
+
3492
+ export type CapacityPanelRunsItemCeilingEnforcement = "unavailable" | "exact";
3493
+
3494
+ export interface CapacityPanelRunsItemCeilingEnvelopesItem {
3495
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3496
+ spend_owner: string;
3497
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3498
+ owner_ref: string;
3499
+ /** Or null. */
3500
+ allocated: CapacityPanelRunsItemCeilingEnvelopesItemAllocated | null;
3501
+ /** Or null. */
3502
+ held: CapacityPanelRunsItemCeilingEnvelopesItemHeld | null;
3503
+ /** Or null. */
3504
+ consumed: CapacityPanelRunsItemCeilingEnvelopesItemConsumed | null;
3505
+ /** Or null. */
3506
+ released: CapacityPanelRunsItemCeilingEnvelopesItemReleased | null;
3507
+ /** Or null. */
3508
+ available: CapacityPanelRunsItemCeilingEnvelopesItemAvailable | null;
3509
+ /** Or null. */
3510
+ breach: CapacityPanelRunsItemCeilingEnvelopesItemBreach | null;
3511
+ enforcement: CapacityPanelRunsItemCeilingEnvelopesItemEnforcement;
3512
+ }
3513
+
3514
+ export interface CapacityPanelRunsItemCeilingEnvelopesItemAllocated {
3515
+ /** Unsigned 64-bit integer, at least 0. */
3516
+ micros: bigint;
3517
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3518
+ currency: string;
3519
+ }
3520
+
3521
+ export interface CapacityPanelRunsItemCeilingEnvelopesItemHeld {
3522
+ /** Unsigned 64-bit integer, at least 0. */
3523
+ micros: bigint;
3524
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3525
+ currency: string;
3526
+ }
3527
+
3528
+ export interface CapacityPanelRunsItemCeilingEnvelopesItemConsumed {
3529
+ /** Unsigned 64-bit integer, at least 0. */
3530
+ micros: bigint;
3531
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3532
+ currency: string;
3533
+ }
3534
+
3535
+ export interface CapacityPanelRunsItemCeilingEnvelopesItemReleased {
3536
+ /** Unsigned 64-bit integer, at least 0. */
3537
+ micros: bigint;
3538
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3539
+ currency: string;
3540
+ }
3541
+
3542
+ export interface CapacityPanelRunsItemCeilingEnvelopesItemAvailable {
3543
+ /** Unsigned 64-bit integer, at least 0. */
3544
+ micros: bigint;
3545
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3546
+ currency: string;
3547
+ }
3548
+
3549
+ export interface CapacityPanelRunsItemCeilingEnvelopesItemBreach {
3550
+ /** Unsigned 64-bit integer, at least 0. */
3551
+ micros: bigint;
3552
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3553
+ currency: string;
3554
+ }
3555
+
3556
+ export type CapacityPanelRunsItemCeilingEnvelopesItemEnforcement = "unavailable" | "exact";
3557
+
3558
+ export interface CapacityPanelRunsItemNotesItem {
3559
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3560
+ label: string;
3561
+ /** Text (no control character but LF and TAB), 1 to 1024 characters, at most 1024 UTF-8 bytes. */
3562
+ text: string;
3563
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3564
+ source: string;
3565
+ }
3566
+
3567
+ export interface CapacityPanelRunsItemEnvelope {
3568
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3569
+ id: string;
3570
+ /** At most 64 items. */
3571
+ members: Array<CapacityPanelRunsItemEnvelopeMembersItem>;
3572
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3573
+ source: string;
3574
+ }
3575
+
3576
+ export interface CapacityPanelRunsItemEnvelopeMembersItem {
3577
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3578
+ role: string;
3579
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3580
+ reference: string;
3581
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3582
+ state: string;
3583
+ }
3584
+
3585
+ export interface CapacityPanelRunsItemInFlightItem {
3586
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3587
+ reference: string;
3588
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3589
+ state: string;
3590
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3591
+ source: string;
3592
+ }
3593
+
3594
+ export interface CapacityPanelBookingsItem {
3595
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
3596
+ id: string;
3597
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
3598
+ run: string | null;
3599
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
3600
+ lane: string;
3601
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3602
+ lane_label: string;
3603
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
3604
+ generation: string | null;
3605
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3606
+ state: string;
3607
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3608
+ pool: string;
3609
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3610
+ model: string;
3611
+ /** Unsigned 64-bit integer, at least 0. */
3612
+ epoch_start_unix_ms: bigint;
3613
+ /** Unsigned 64-bit integer, at least 0. */
3614
+ epoch_end_unix_ms: bigint;
3615
+ /** Or null. */
3616
+ amount: CapacityPanelBookingsItemAmount | null;
3617
+ /** Or null. */
3618
+ remaining: CapacityPanelBookingsItemRemaining | null;
3619
+ /** Or null. */
3620
+ active_holds: CapacityPanelBookingsItemActiveHolds | null;
3621
+ /** Or null. */
3622
+ final: CapacityPanelBookingsItemFinal | null;
3623
+ /** Or null. */
3624
+ provisional: CapacityPanelBookingsItemProvisional | null;
3625
+ /** Or null. */
3626
+ released: CapacityPanelBookingsItemReleased | null;
3627
+ /** Unsigned 64-bit integer, at least 0. Or null. */
3628
+ slots: bigint | null;
3629
+ /** Unsigned 64-bit integer, at least 0. Or null. */
3630
+ starts: bigint | null;
3631
+ /** Or null. */
3632
+ conserves: boolean | null;
3633
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3634
+ source: string | null;
3635
+ }
3636
+
3637
+ export interface CapacityPanelBookingsItemAmount {
3638
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3639
+ category: string;
3640
+ /** Or null. */
3641
+ value: CapacityPanelBookingsItemAmountValue | null;
3642
+ /** Or null. */
3643
+ known: CapacityPanelBookingsItemAmountKnown | null;
3644
+ /** Unsigned 64-bit integer, at least 0. */
3645
+ unknown_items: bigint;
3646
+ coverage: CapacityPanelBookingsItemAmountCoverage;
3647
+ /** Unsigned 64-bit integer, at least 0. Or null. */
3648
+ through_unix_ms: bigint | null;
3649
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3650
+ source: string | null;
3651
+ /** Or null. */
3652
+ basis: CapacityPanelBookingsItemAmountBasis | null;
3653
+ /** Or null. */
3654
+ conversion: CapacityPanelBookingsItemAmountConversion | null;
3655
+ }
3656
+
3657
+ export interface CapacityPanelBookingsItemAmountValue {
3658
+ kind: CapacityPanelBookingsItemAmountValueKind;
3659
+ /** Unsigned 64-bit integer, at least 0. */
3660
+ count?: bigint;
3661
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3662
+ currency?: string;
3663
+ /** Unsigned 64-bit integer, at least 0. */
3664
+ micros?: bigint;
3665
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3666
+ unit?: string;
3667
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3668
+ usage?: string;
3669
+ }
3670
+
3671
+ export type CapacityPanelBookingsItemAmountValueKind = "money" | "count" | "unpriced";
3672
+
3673
+ export interface CapacityPanelBookingsItemAmountKnown {
3674
+ kind: CapacityPanelBookingsItemAmountKnownKind;
3675
+ /** Unsigned 64-bit integer, at least 0. */
3676
+ count?: bigint;
3677
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3678
+ currency?: string;
3679
+ /** Unsigned 64-bit integer, at least 0. */
3680
+ micros?: bigint;
3681
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3682
+ unit?: string;
3683
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3684
+ usage?: string;
3685
+ }
3686
+
3687
+ export type CapacityPanelBookingsItemAmountKnownKind = "money" | "count" | "unpriced";
3688
+
3689
+ export type CapacityPanelBookingsItemAmountCoverage = "complete" | "partial" | "unavailable";
3690
+
3691
+ export interface CapacityPanelBookingsItemAmountBasis {
3692
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3693
+ name: string;
3694
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3695
+ as_of: string;
3696
+ }
3697
+
3698
+ export interface CapacityPanelBookingsItemAmountConversion {
3699
+ value: CapacityPanelBookingsItemAmountConversionValue;
3700
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3701
+ basis: string;
3702
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3703
+ as_of: string;
3704
+ }
3705
+
3706
+ export interface CapacityPanelBookingsItemAmountConversionValue {
3707
+ kind: CapacityPanelBookingsItemAmountConversionValueKind;
3708
+ /** Unsigned 64-bit integer, at least 0. */
3709
+ count?: bigint;
3710
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3711
+ currency?: string;
3712
+ /** Unsigned 64-bit integer, at least 0. */
3713
+ micros?: bigint;
3714
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3715
+ unit?: string;
3716
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3717
+ usage?: string;
3718
+ }
3719
+
3720
+ export type CapacityPanelBookingsItemAmountConversionValueKind = "money" | "count" | "unpriced";
3721
+
3722
+ export interface CapacityPanelBookingsItemRemaining {
3723
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3724
+ category: string;
3725
+ /** Or null. */
3726
+ value: CapacityPanelBookingsItemRemainingValue | null;
3727
+ /** Or null. */
3728
+ known: CapacityPanelBookingsItemRemainingKnown | null;
3729
+ /** Unsigned 64-bit integer, at least 0. */
3730
+ unknown_items: bigint;
3731
+ coverage: CapacityPanelBookingsItemRemainingCoverage;
3732
+ /** Unsigned 64-bit integer, at least 0. Or null. */
3733
+ through_unix_ms: bigint | null;
3734
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3735
+ source: string | null;
3736
+ /** Or null. */
3737
+ basis: CapacityPanelBookingsItemRemainingBasis | null;
3738
+ /** Or null. */
3739
+ conversion: CapacityPanelBookingsItemRemainingConversion | null;
3740
+ }
3741
+
3742
+ export interface CapacityPanelBookingsItemRemainingValue {
3743
+ kind: CapacityPanelBookingsItemRemainingValueKind;
3744
+ /** Unsigned 64-bit integer, at least 0. */
3745
+ count?: bigint;
3746
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3747
+ currency?: string;
3748
+ /** Unsigned 64-bit integer, at least 0. */
3749
+ micros?: bigint;
3750
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3751
+ unit?: string;
3752
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3753
+ usage?: string;
3754
+ }
3755
+
3756
+ export type CapacityPanelBookingsItemRemainingValueKind = "money" | "count" | "unpriced";
3757
+
3758
+ export interface CapacityPanelBookingsItemRemainingKnown {
3759
+ kind: CapacityPanelBookingsItemRemainingKnownKind;
3760
+ /** Unsigned 64-bit integer, at least 0. */
3761
+ count?: bigint;
3762
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3763
+ currency?: string;
3764
+ /** Unsigned 64-bit integer, at least 0. */
3765
+ micros?: bigint;
3766
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3767
+ unit?: string;
3768
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3769
+ usage?: string;
3770
+ }
3771
+
3772
+ export type CapacityPanelBookingsItemRemainingKnownKind = "money" | "count" | "unpriced";
3773
+
3774
+ export type CapacityPanelBookingsItemRemainingCoverage = "complete" | "partial" | "unavailable";
3775
+
3776
+ export interface CapacityPanelBookingsItemRemainingBasis {
3777
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3778
+ name: string;
3779
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3780
+ as_of: string;
3781
+ }
3782
+
3783
+ export interface CapacityPanelBookingsItemRemainingConversion {
3784
+ value: CapacityPanelBookingsItemRemainingConversionValue;
3785
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3786
+ basis: string;
3787
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3788
+ as_of: string;
3789
+ }
3790
+
3791
+ export interface CapacityPanelBookingsItemRemainingConversionValue {
3792
+ kind: CapacityPanelBookingsItemRemainingConversionValueKind;
3793
+ /** Unsigned 64-bit integer, at least 0. */
3794
+ count?: bigint;
3795
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3796
+ currency?: string;
3797
+ /** Unsigned 64-bit integer, at least 0. */
3798
+ micros?: bigint;
3799
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3800
+ unit?: string;
3801
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3802
+ usage?: string;
3803
+ }
3804
+
3805
+ export type CapacityPanelBookingsItemRemainingConversionValueKind = "money" | "count" | "unpriced";
3806
+
3807
+ export interface CapacityPanelBookingsItemActiveHolds {
3808
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3809
+ category: string;
3810
+ /** Or null. */
3811
+ value: CapacityPanelBookingsItemActiveHoldsValue | null;
3812
+ /** Or null. */
3813
+ known: CapacityPanelBookingsItemActiveHoldsKnown | null;
3814
+ /** Unsigned 64-bit integer, at least 0. */
3815
+ unknown_items: bigint;
3816
+ coverage: CapacityPanelBookingsItemActiveHoldsCoverage;
3817
+ /** Unsigned 64-bit integer, at least 0. Or null. */
3818
+ through_unix_ms: bigint | null;
3819
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3820
+ source: string | null;
3821
+ /** Or null. */
3822
+ basis: CapacityPanelBookingsItemActiveHoldsBasis | null;
3823
+ /** Or null. */
3824
+ conversion: CapacityPanelBookingsItemActiveHoldsConversion | null;
3825
+ }
3826
+
3827
+ export interface CapacityPanelBookingsItemActiveHoldsValue {
3828
+ kind: CapacityPanelBookingsItemActiveHoldsValueKind;
3829
+ /** Unsigned 64-bit integer, at least 0. */
3830
+ count?: bigint;
3831
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3832
+ currency?: string;
3833
+ /** Unsigned 64-bit integer, at least 0. */
3834
+ micros?: bigint;
3835
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3836
+ unit?: string;
3837
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3838
+ usage?: string;
3839
+ }
3840
+
3841
+ export type CapacityPanelBookingsItemActiveHoldsValueKind = "money" | "count" | "unpriced";
3842
+
3843
+ export interface CapacityPanelBookingsItemActiveHoldsKnown {
3844
+ kind: CapacityPanelBookingsItemActiveHoldsKnownKind;
3845
+ /** Unsigned 64-bit integer, at least 0. */
3846
+ count?: bigint;
3847
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3848
+ currency?: string;
3849
+ /** Unsigned 64-bit integer, at least 0. */
3850
+ micros?: bigint;
3851
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3852
+ unit?: string;
3853
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3854
+ usage?: string;
3855
+ }
3856
+
3857
+ export type CapacityPanelBookingsItemActiveHoldsKnownKind = "money" | "count" | "unpriced";
3858
+
3859
+ export type CapacityPanelBookingsItemActiveHoldsCoverage = "complete" | "partial" | "unavailable";
3860
+
3861
+ export interface CapacityPanelBookingsItemActiveHoldsBasis {
3862
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3863
+ name: string;
3864
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3865
+ as_of: string;
3866
+ }
3867
+
3868
+ export interface CapacityPanelBookingsItemActiveHoldsConversion {
3869
+ value: CapacityPanelBookingsItemActiveHoldsConversionValue;
3870
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3871
+ basis: string;
3872
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3873
+ as_of: string;
3874
+ }
3875
+
3876
+ export interface CapacityPanelBookingsItemActiveHoldsConversionValue {
3877
+ kind: CapacityPanelBookingsItemActiveHoldsConversionValueKind;
3878
+ /** Unsigned 64-bit integer, at least 0. */
3879
+ count?: bigint;
3880
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3881
+ currency?: string;
3882
+ /** Unsigned 64-bit integer, at least 0. */
3883
+ micros?: bigint;
3884
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3885
+ unit?: string;
3886
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3887
+ usage?: string;
3888
+ }
3889
+
3890
+ export type CapacityPanelBookingsItemActiveHoldsConversionValueKind = "money" | "count" | "unpriced";
3891
+
3892
+ export interface CapacityPanelBookingsItemFinal {
3893
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3894
+ category: string;
3895
+ /** Or null. */
3896
+ value: CapacityPanelBookingsItemFinalValue | null;
3897
+ /** Or null. */
3898
+ known: CapacityPanelBookingsItemFinalKnown | null;
3899
+ /** Unsigned 64-bit integer, at least 0. */
3900
+ unknown_items: bigint;
3901
+ coverage: CapacityPanelBookingsItemFinalCoverage;
3902
+ /** Unsigned 64-bit integer, at least 0. Or null. */
3903
+ through_unix_ms: bigint | null;
3904
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3905
+ source: string | null;
3906
+ /** Or null. */
3907
+ basis: CapacityPanelBookingsItemFinalBasis | null;
3908
+ /** Or null. */
3909
+ conversion: CapacityPanelBookingsItemFinalConversion | null;
3910
+ }
3911
+
3912
+ export interface CapacityPanelBookingsItemFinalValue {
3913
+ kind: CapacityPanelBookingsItemFinalValueKind;
3914
+ /** Unsigned 64-bit integer, at least 0. */
3915
+ count?: bigint;
3916
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3917
+ currency?: string;
3918
+ /** Unsigned 64-bit integer, at least 0. */
3919
+ micros?: bigint;
3920
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3921
+ unit?: string;
3922
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3923
+ usage?: string;
3924
+ }
3925
+
3926
+ export type CapacityPanelBookingsItemFinalValueKind = "money" | "count" | "unpriced";
3927
+
3928
+ export interface CapacityPanelBookingsItemFinalKnown {
3929
+ kind: CapacityPanelBookingsItemFinalKnownKind;
3930
+ /** Unsigned 64-bit integer, at least 0. */
3931
+ count?: bigint;
3932
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3933
+ currency?: string;
3934
+ /** Unsigned 64-bit integer, at least 0. */
3935
+ micros?: bigint;
3936
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3937
+ unit?: string;
3938
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3939
+ usage?: string;
3940
+ }
3941
+
3942
+ export type CapacityPanelBookingsItemFinalKnownKind = "money" | "count" | "unpriced";
3943
+
3944
+ export type CapacityPanelBookingsItemFinalCoverage = "complete" | "partial" | "unavailable";
3945
+
3946
+ export interface CapacityPanelBookingsItemFinalBasis {
3947
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3948
+ name: string;
3949
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3950
+ as_of: string;
3951
+ }
3952
+
3953
+ export interface CapacityPanelBookingsItemFinalConversion {
3954
+ value: CapacityPanelBookingsItemFinalConversionValue;
3955
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3956
+ basis: string;
3957
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3958
+ as_of: string;
3959
+ }
3960
+
3961
+ export interface CapacityPanelBookingsItemFinalConversionValue {
3962
+ kind: CapacityPanelBookingsItemFinalConversionValueKind;
3963
+ /** Unsigned 64-bit integer, at least 0. */
3964
+ count?: bigint;
3965
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3966
+ currency?: string;
3967
+ /** Unsigned 64-bit integer, at least 0. */
3968
+ micros?: bigint;
3969
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3970
+ unit?: string;
3971
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
3972
+ usage?: string;
3973
+ }
3974
+
3975
+ export type CapacityPanelBookingsItemFinalConversionValueKind = "money" | "count" | "unpriced";
3976
+
3977
+ export interface CapacityPanelBookingsItemProvisional {
3978
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
3979
+ category: string;
3980
+ /** Or null. */
3981
+ value: CapacityPanelBookingsItemProvisionalValue | null;
3982
+ /** Or null. */
3983
+ known: CapacityPanelBookingsItemProvisionalKnown | null;
3984
+ /** Unsigned 64-bit integer, at least 0. */
3985
+ unknown_items: bigint;
3986
+ coverage: CapacityPanelBookingsItemProvisionalCoverage;
3987
+ /** Unsigned 64-bit integer, at least 0. Or null. */
3988
+ through_unix_ms: bigint | null;
3989
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
3990
+ source: string | null;
3991
+ /** Or null. */
3992
+ basis: CapacityPanelBookingsItemProvisionalBasis | null;
3993
+ /** Or null. */
3994
+ conversion: CapacityPanelBookingsItemProvisionalConversion | null;
3995
+ }
3996
+
3997
+ export interface CapacityPanelBookingsItemProvisionalValue {
3998
+ kind: CapacityPanelBookingsItemProvisionalValueKind;
3999
+ /** Unsigned 64-bit integer, at least 0. */
4000
+ count?: bigint;
4001
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4002
+ currency?: string;
4003
+ /** Unsigned 64-bit integer, at least 0. */
4004
+ micros?: bigint;
4005
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4006
+ unit?: string;
4007
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4008
+ usage?: string;
4009
+ }
4010
+
4011
+ export type CapacityPanelBookingsItemProvisionalValueKind = "money" | "count" | "unpriced";
4012
+
4013
+ export interface CapacityPanelBookingsItemProvisionalKnown {
4014
+ kind: CapacityPanelBookingsItemProvisionalKnownKind;
4015
+ /** Unsigned 64-bit integer, at least 0. */
4016
+ count?: bigint;
4017
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4018
+ currency?: string;
4019
+ /** Unsigned 64-bit integer, at least 0. */
4020
+ micros?: bigint;
4021
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4022
+ unit?: string;
4023
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4024
+ usage?: string;
4025
+ }
4026
+
4027
+ export type CapacityPanelBookingsItemProvisionalKnownKind = "money" | "count" | "unpriced";
4028
+
4029
+ export type CapacityPanelBookingsItemProvisionalCoverage = "complete" | "partial" | "unavailable";
4030
+
4031
+ export interface CapacityPanelBookingsItemProvisionalBasis {
4032
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4033
+ name: string;
4034
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4035
+ as_of: string;
4036
+ }
4037
+
4038
+ export interface CapacityPanelBookingsItemProvisionalConversion {
4039
+ value: CapacityPanelBookingsItemProvisionalConversionValue;
4040
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4041
+ basis: string;
4042
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4043
+ as_of: string;
4044
+ }
4045
+
4046
+ export interface CapacityPanelBookingsItemProvisionalConversionValue {
4047
+ kind: CapacityPanelBookingsItemProvisionalConversionValueKind;
4048
+ /** Unsigned 64-bit integer, at least 0. */
4049
+ count?: bigint;
4050
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4051
+ currency?: string;
4052
+ /** Unsigned 64-bit integer, at least 0. */
4053
+ micros?: bigint;
4054
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4055
+ unit?: string;
4056
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4057
+ usage?: string;
4058
+ }
4059
+
4060
+ export type CapacityPanelBookingsItemProvisionalConversionValueKind = "money" | "count" | "unpriced";
4061
+
4062
+ export interface CapacityPanelBookingsItemReleased {
4063
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4064
+ category: string;
4065
+ /** Or null. */
4066
+ value: CapacityPanelBookingsItemReleasedValue | null;
4067
+ /** Or null. */
4068
+ known: CapacityPanelBookingsItemReleasedKnown | null;
4069
+ /** Unsigned 64-bit integer, at least 0. */
4070
+ unknown_items: bigint;
4071
+ coverage: CapacityPanelBookingsItemReleasedCoverage;
4072
+ /** Unsigned 64-bit integer, at least 0. Or null. */
4073
+ through_unix_ms: bigint | null;
4074
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4075
+ source: string | null;
4076
+ /** Or null. */
4077
+ basis: CapacityPanelBookingsItemReleasedBasis | null;
4078
+ /** Or null. */
4079
+ conversion: CapacityPanelBookingsItemReleasedConversion | null;
4080
+ }
4081
+
4082
+ export interface CapacityPanelBookingsItemReleasedValue {
4083
+ kind: CapacityPanelBookingsItemReleasedValueKind;
4084
+ /** Unsigned 64-bit integer, at least 0. */
4085
+ count?: bigint;
4086
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4087
+ currency?: string;
4088
+ /** Unsigned 64-bit integer, at least 0. */
4089
+ micros?: bigint;
4090
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4091
+ unit?: string;
4092
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4093
+ usage?: string;
4094
+ }
4095
+
4096
+ export type CapacityPanelBookingsItemReleasedValueKind = "money" | "count" | "unpriced";
4097
+
4098
+ export interface CapacityPanelBookingsItemReleasedKnown {
4099
+ kind: CapacityPanelBookingsItemReleasedKnownKind;
4100
+ /** Unsigned 64-bit integer, at least 0. */
4101
+ count?: bigint;
4102
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4103
+ currency?: string;
4104
+ /** Unsigned 64-bit integer, at least 0. */
4105
+ micros?: bigint;
4106
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4107
+ unit?: string;
4108
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4109
+ usage?: string;
4110
+ }
4111
+
4112
+ export type CapacityPanelBookingsItemReleasedKnownKind = "money" | "count" | "unpriced";
4113
+
4114
+ export type CapacityPanelBookingsItemReleasedCoverage = "complete" | "partial" | "unavailable";
4115
+
4116
+ export interface CapacityPanelBookingsItemReleasedBasis {
4117
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4118
+ name: string;
4119
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4120
+ as_of: string;
4121
+ }
4122
+
4123
+ export interface CapacityPanelBookingsItemReleasedConversion {
4124
+ value: CapacityPanelBookingsItemReleasedConversionValue;
4125
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4126
+ basis: string;
4127
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4128
+ as_of: string;
4129
+ }
4130
+
4131
+ export interface CapacityPanelBookingsItemReleasedConversionValue {
4132
+ kind: CapacityPanelBookingsItemReleasedConversionValueKind;
4133
+ /** Unsigned 64-bit integer, at least 0. */
4134
+ count?: bigint;
4135
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4136
+ currency?: string;
4137
+ /** Unsigned 64-bit integer, at least 0. */
4138
+ micros?: bigint;
4139
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4140
+ unit?: string;
4141
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4142
+ usage?: string;
4143
+ }
4144
+
4145
+ export type CapacityPanelBookingsItemReleasedConversionValueKind = "money" | "count" | "unpriced";
4146
+
4147
+ export interface CapacityPanelLaneWaitsItem {
4148
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. */
4149
+ lane: string;
4150
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4151
+ lane_label: string;
4152
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
4153
+ generation: string | null;
4154
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
4155
+ run: string | null;
4156
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4157
+ code: string;
4158
+ /** Text (no control character but LF and TAB), 1 to 1024 characters, at most 1024 UTF-8 bytes. */
4159
+ reason: string;
4160
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4161
+ owner: string;
4162
+ /** Text (no control character but LF and TAB), 1 to 1024 characters, at most 1024 UTF-8 bytes. Or null. */
4163
+ next_action: string | null;
4164
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4165
+ source: string;
4166
+ /** Unsigned 64-bit integer, at least 0. Or null. */
4167
+ since_unix_ms: bigint | null;
4168
+ }
4169
+
4170
+ export interface CapacityPanelControlsItem {
4171
+ action: CapacityPanelControlsItemAction;
4172
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4173
+ label: string;
4174
+ available: boolean;
4175
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4176
+ code: string | null;
4177
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
4178
+ reason: string | null;
4179
+ }
4180
+
4181
+ export type CapacityPanelControlsItemAction = "preview_booking" | "create_booking" | "release_booking" | "allow_paid_fallback";
4182
+
4183
+ export interface CapacityPanelUnavailable {
4184
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4185
+ code: string;
4186
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
4187
+ reason: string;
4188
+ }
4189
+
4190
+ export interface EconomicsPanel {
4191
+ schema: "lanes2.economics-panel/2";
4192
+ /** Unsigned 64-bit integer, at least 0. */
4193
+ observed_at_unix_ms: bigint;
4194
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4195
+ scope: string;
4196
+ /** At most 32 items. */
4197
+ sources: Array<EconomicsPanelSourcesItem>;
4198
+ coverage: EconomicsPanelCoverage;
4199
+ /** At most 500 items. */
4200
+ rows: Array<EconomicsPanelRowsItem>;
4201
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. Or null. */
4202
+ next: string | null;
4203
+ /** Or null. */
4204
+ unavailable: EconomicsPanelUnavailable | null;
4205
+ }
4206
+
4207
+ export interface EconomicsPanelSourcesItem {
4208
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4209
+ name: string;
4210
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4211
+ adapter: string;
4212
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4213
+ route: string;
4214
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4215
+ instance: string | null;
4216
+ /** Unsigned 64-bit integer, at least 0. Or null. */
4217
+ observed_at_unix_ms: bigint | null;
4218
+ fresh: boolean;
4219
+ /** Text (no control character but LF and TAB), 1 to 1024 characters, at most 1024 UTF-8 bytes. Or null. */
4220
+ error: string | null;
4221
+ }
4222
+
4223
+ export interface EconomicsPanelCoverage {
4224
+ complete: boolean;
4225
+ /** At most 64 items. */
4226
+ reasons: Array<EconomicsPanelCoverageReasonsItem>;
4227
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4228
+ source: string | null;
4229
+ }
4230
+
4231
+ export interface EconomicsPanelCoverageReasonsItem {
4232
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4233
+ reason: string;
4234
+ /** Text (no control character but LF and TAB), 1 to 1024 characters, at most 1024 UTF-8 bytes. */
4235
+ detail: string;
4236
+ }
4237
+
4238
+ export interface EconomicsPanelRowsItem {
4239
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
4240
+ id: string;
4241
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4242
+ title: string;
4243
+ /** Token (visible ASCII without `"` or `\`), 1 to 512 characters. Or null. */
4244
+ lane: string | null;
4245
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. Or null. */
4246
+ lane_label: string | null;
4247
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
4248
+ generation: string | null;
4249
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
4250
+ run: string | null;
4251
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. Or null. */
4252
+ run_title: string | null;
4253
+ attribution: EconomicsPanelRowsItemAttribution;
4254
+ /** At most 64 items. */
4255
+ figures: Array<EconomicsPanelRowsItemFiguresItem>;
4256
+ }
4257
+
4258
+ export type EconomicsPanelRowsItemAttribution = "bound" | "unattributed" | "unattributed_child" | "unjoined_settlement" | "coarsened";
4259
+
4260
+ export interface EconomicsPanelRowsItemFiguresItem {
4261
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4262
+ category: string;
4263
+ /** Or null. */
4264
+ value: EconomicsPanelRowsItemFiguresItemValue | null;
4265
+ /** Or null. */
4266
+ known: EconomicsPanelRowsItemFiguresItemKnown | null;
4267
+ /** Unsigned 64-bit integer, at least 0. */
4268
+ unknown_items: bigint;
4269
+ coverage: EconomicsPanelRowsItemFiguresItemCoverage;
4270
+ /** Unsigned 64-bit integer, at least 0. Or null. */
4271
+ through_unix_ms: bigint | null;
4272
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4273
+ source: string | null;
4274
+ /** Or null. */
4275
+ basis: EconomicsPanelRowsItemFiguresItemBasis | null;
4276
+ /** Or null. */
4277
+ conversion: EconomicsPanelRowsItemFiguresItemConversion | null;
4278
+ }
4279
+
4280
+ export interface EconomicsPanelRowsItemFiguresItemValue {
4281
+ kind: EconomicsPanelRowsItemFiguresItemValueKind;
4282
+ /** Unsigned 64-bit integer, at least 0. */
4283
+ count?: bigint;
4284
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4285
+ currency?: string;
4286
+ /** Unsigned 64-bit integer, at least 0. */
4287
+ micros?: bigint;
4288
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4289
+ unit?: string;
4290
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4291
+ usage?: string;
4292
+ }
4293
+
4294
+ export type EconomicsPanelRowsItemFiguresItemValueKind = "money" | "count" | "unpriced";
4295
+
4296
+ export interface EconomicsPanelRowsItemFiguresItemKnown {
4297
+ kind: EconomicsPanelRowsItemFiguresItemKnownKind;
4298
+ /** Unsigned 64-bit integer, at least 0. */
4299
+ count?: bigint;
4300
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4301
+ currency?: string;
4302
+ /** Unsigned 64-bit integer, at least 0. */
4303
+ micros?: bigint;
4304
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4305
+ unit?: string;
4306
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4307
+ usage?: string;
4308
+ }
4309
+
4310
+ export type EconomicsPanelRowsItemFiguresItemKnownKind = "money" | "count" | "unpriced";
4311
+
4312
+ export type EconomicsPanelRowsItemFiguresItemCoverage = "complete" | "partial" | "unavailable";
4313
+
4314
+ export interface EconomicsPanelRowsItemFiguresItemBasis {
4315
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4316
+ name: string;
4317
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4318
+ as_of: string;
4319
+ }
4320
+
4321
+ export interface EconomicsPanelRowsItemFiguresItemConversion {
4322
+ value: EconomicsPanelRowsItemFiguresItemConversionValue;
4323
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4324
+ basis: string;
4325
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4326
+ as_of: string;
4327
+ }
4328
+
4329
+ export interface EconomicsPanelRowsItemFiguresItemConversionValue {
4330
+ kind: EconomicsPanelRowsItemFiguresItemConversionValueKind;
4331
+ /** Unsigned 64-bit integer, at least 0. */
4332
+ count?: bigint;
4333
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4334
+ currency?: string;
4335
+ /** Unsigned 64-bit integer, at least 0. */
4336
+ micros?: bigint;
4337
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4338
+ unit?: string;
4339
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4340
+ usage?: string;
4341
+ }
4342
+
4343
+ export type EconomicsPanelRowsItemFiguresItemConversionValueKind = "money" | "count" | "unpriced";
4344
+
4345
+ export interface EconomicsPanelUnavailable {
4346
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4347
+ code: string;
4348
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
4349
+ reason: string;
4350
+ }
4351
+
4352
+ export interface SignalsSnapshot {
4353
+ v: 2;
4354
+ schema: "lanes2.signals.snapshot/2";
4355
+ /** Unsigned 64-bit integer, at least 0. */
4356
+ manifest_revision: bigint;
4357
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4358
+ profile: string;
4359
+ /** Unsigned 64-bit integer, at least 0. */
4360
+ resources_revision: bigint;
4361
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4362
+ runtime_version: string;
4363
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
4364
+ source_revision: string | null;
4365
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
4366
+ installed_version: string | null;
4367
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
4368
+ host_instance: string | null;
4369
+ /** Unsigned 64-bit integer, at least 0. */
4370
+ written_at_unix_ms: bigint;
4371
+ /** Unsigned 64-bit integer, at least 0. */
4372
+ refresh_ms: bigint;
4373
+ /** Unsigned 64-bit integer, at least 0. */
4374
+ stale_after_ms: bigint;
4375
+ /** At most 16 items. */
4376
+ attribution: Array<SignalsSnapshotAttributionItem>;
4377
+ /** At most 128 items. */
4378
+ signals: Array<SignalsSnapshotSignalsItem>;
4379
+ }
4380
+
4381
+ export interface SignalsSnapshotAttributionItem {
4382
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4383
+ origin: string;
4384
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4385
+ label: string;
4386
+ delay: boolean;
4387
+ state: SignalsSnapshotAttributionItemState;
4388
+ /** At most 32 items. */
4389
+ signals: Array<string>;
4390
+ }
4391
+
4392
+ export type SignalsSnapshotAttributionItemState = "ok" | "incomplete" | "warn" | "alert";
4393
+
4394
+ export interface SignalsSnapshotSignalsItem {
4395
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4396
+ id: string;
4397
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4398
+ doctor: string;
4399
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4400
+ unit: string;
4401
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4402
+ kind: string;
4403
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4404
+ origin: string;
4405
+ state: SignalsSnapshotSignalsItemState;
4406
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4407
+ reason: string | null;
4408
+ /** At most 16 items. */
4409
+ samples: Array<SignalsSnapshotSignalsItemSamplesItem>;
4410
+ }
4411
+
4412
+ export type SignalsSnapshotSignalsItemState = "ok" | "warn" | "alert" | "unavailable";
4413
+
4414
+ export interface SignalsSnapshotSignalsItemSamplesItem {
4415
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4416
+ label: string | null;
4417
+ /** Unsigned 64-bit integer, at least 0. Or null. */
4418
+ value: bigint | null;
4419
+ /** Unsigned 64-bit integer, at least 0. Or null. */
4420
+ delta: bigint | null;
4421
+ state: SignalsSnapshotSignalsItemSamplesItemState;
4422
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4423
+ reason: string | null;
4424
+ /** Or null. */
4425
+ cmp: SignalsSnapshotSignalsItemSamplesItemCmp | null;
4426
+ /** Unsigned 64-bit integer, at least 0. Or null. */
4427
+ warn: bigint | null;
4428
+ /** Unsigned 64-bit integer, at least 0. Or null. */
4429
+ alert: bigint | null;
4430
+ }
4431
+
4432
+ export type SignalsSnapshotSignalsItemSamplesItemState = "ok" | "warn" | "alert" | "unavailable";
4433
+
4434
+ export type SignalsSnapshotSignalsItemSamplesItemCmp = "at_least" | "above" | "at_most";
4435
+
4436
+ export interface Wait {
4437
+ class: WaitClass;
4438
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4439
+ code: string;
4440
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
4441
+ owner: string;
4442
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4443
+ reason: string;
4444
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
4445
+ source: string;
4446
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4447
+ next_action?: string;
4448
+ /** Unsigned 64-bit integer, at least 0. */
4449
+ since_unix_ms?: bigint;
4450
+ }
4451
+
4452
+ export type WaitClass = "included_allowance" | "concurrency" | "paid_ceiling" | "capacity" | "build" | "authority" | "native_decision" | "peer" | "human" | "dependency" | "delivery" | "scheduled" | "paused";
4453
+
4454
+ export interface HookEvent {
4455
+ /** Unsigned 64-bit integer, at least 0. */
4456
+ emitted_at_ms: bigint;
4457
+ /** Text (no control character but LF and TAB), at most 64 characters, at most 64 UTF-8 bytes. */
4458
+ event: string;
4459
+ /** Token (visible ASCII without `"` or `\`), 1 to 16 characters. */
4460
+ harness: string;
4461
+ schema: "lanes.hook.event/1";
4462
+ /** Canonical ULID (26 upper-case Crockford base-32 digits, the first at most 7), 26 to 26 characters. */
4463
+ source_event_id: string;
4464
+ status: HookEventStatus;
4465
+ /** Unsigned integer, 0 to 4294967295. */
4466
+ agent_pid?: number;
4467
+ /** Unsigned 64-bit integer, at least 0. */
4468
+ agent_start?: bigint;
4469
+ /** At most 16 items. */
4470
+ faults?: Array<string>;
4471
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
4472
+ lane?: string;
4473
+ native?: HookEventNative;
4474
+ /** Text (no control character but LF and TAB), 1 to 128 characters, at most 128 UTF-8 bytes. */
4475
+ native_generation?: string;
4476
+ /** Text (no control character but LF and TAB), at most 480 characters, at most 480 UTF-8 bytes. */
4477
+ note?: string;
4478
+ /** Unsigned integer, 0 to 4294967295. */
4479
+ parent_pid?: number;
4480
+ /** Unsigned 64-bit integer, at least 0. */
4481
+ parent_start?: bigint;
4482
+ /** Text (no control character but LF and TAB), 1 to 262144 characters, at most 262144 UTF-8 bytes. */
4483
+ payload?: string;
4484
+ /** Payload digest `sha256:<64 hex>`, 71 to 71 characters. */
4485
+ payload_digest?: string;
4486
+ payload_source?: HookEventPayloadSource;
4487
+ /** Token (visible ASCII without `"` or `\`), 1 to 11 characters. */
4488
+ tmux_pane?: string;
4489
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
4490
+ tmux_socket?: string;
4491
+ }
4492
+
4493
+ export type HookEventStatus = "working" | "needs_input" | "needs_approval" | "done" | "errored" | "shell" | "idle";
4494
+
4495
+ export interface HookEventNative {
4496
+ /** Text (no control character but LF and TAB), 1 to 128 characters, at most 128 UTF-8 bytes. */
4497
+ hook_event_name?: string;
4498
+ /** Text (no control character but LF and TAB), 1 to 128 characters, at most 128 UTF-8 bytes. */
4499
+ prompt_id?: string;
4500
+ /** Text (no control character but LF and TAB), 1 to 128 characters, at most 128 UTF-8 bytes. */
4501
+ session_id?: string;
4502
+ /** Text (no control character but LF and TAB), 1 to 128 characters, at most 128 UTF-8 bytes. */
4503
+ tool_name?: string;
4504
+ /** Text (no control character but LF and TAB), 1 to 128 characters, at most 128 UTF-8 bytes. */
4505
+ tool_use_id?: string;
4506
+ /** Text (no control character but LF and TAB), 1 to 128 characters, at most 128 UTF-8 bytes. */
4507
+ turn_id?: string;
4508
+ }
4509
+
4510
+ export type HookEventPayloadSource = "stdin" | "argv";
4511
+
4512
+ export type HookAck =
4513
+ | HookAckCommitted
4514
+ | HookAckDuplicate
4515
+ | HookAckSpool
4516
+ | HookAckRefused
4517
+ | HookAckAccepted;
4518
+
4519
+ export interface HookAckCommitted {
4520
+ custody: "committed";
4521
+ schema: "lanes.hook.ack/1";
4522
+ /** Unsigned 64-bit integer, at least 1. */
4523
+ seq: bigint;
4524
+ /** Canonical ULID (26 upper-case Crockford base-32 digits, the first at most 7), 26 to 26 characters. */
4525
+ source_event_id: string;
4526
+ }
4527
+
4528
+ export interface HookAckDuplicate {
4529
+ custody: "duplicate";
4530
+ schema: "lanes.hook.ack/1";
4531
+ /** Unsigned 64-bit integer, at least 1. */
4532
+ seq: bigint;
4533
+ /** Canonical ULID (26 upper-case Crockford base-32 digits, the first at most 7), 26 to 26 characters. */
4534
+ source_event_id: string;
4535
+ }
4536
+
4537
+ export interface HookAckSpool {
4538
+ custody: "spool";
4539
+ reason: HookAckSpoolReason;
4540
+ schema: "lanes.hook.ack/1";
4541
+ /** Canonical ULID (26 upper-case Crockford base-32 digits, the first at most 7), 26 to 26 characters. */
4542
+ source_event_id: string;
4543
+ }
4544
+
4545
+ export type HookAckSpoolReason = "ingress_lane_share" | "ingress_lane_fenced" | "ingress_pool_full" | "ingress_reserve_full" | "store_busy" | "store_quota" | "host_stopping";
4546
+
4547
+ export interface HookAckRefused {
4548
+ custody: "refused";
4549
+ reason: HookAckRefusedReason;
4550
+ schema: "lanes.hook.ack/1";
4551
+ /** Canonical ULID (26 upper-case Crockford base-32 digits, the first at most 7), 26 to 26 characters. */
4552
+ source_event_id: string;
4553
+ }
4554
+
4555
+ export type HookAckRefusedReason = "schema_unknown" | "event_not_canonical" | "event_invalid" | "too_large" | "lane_unresolved" | "scope" | "source_event_conflict";
4556
+
4557
+ export interface HookAckAccepted {
4558
+ custody: "accepted";
4559
+ schema: "lanes.hook.ack/1";
4560
+ /** Canonical ULID (26 upper-case Crockford base-32 digits, the first at most 7), 26 to 26 characters. */
4561
+ source_event_id: string;
4562
+ }
4563
+
4564
+ export interface HookHealth {
4565
+ /** Unsigned 64-bit integer, at least 0. */
4566
+ at_unix_ms: bigint;
4567
+ schema: "lanes.hook.health/1";
4568
+ /** Canonical ULID (26 upper-case Crockford base-32 digits, the first at most 7), 26 to 26 characters. */
4569
+ source_event_id: string;
4570
+ stage: HookHealthStage;
4571
+ custody?: HookHealthCustody;
4572
+ /** Text (no control character but LF and TAB), 1 to 64 characters, at most 64 UTF-8 bytes. */
4573
+ event?: string;
4574
+ /** Token (visible ASCII without `"` or `\`), 1 to 16 characters. */
4575
+ harness?: string;
4576
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. */
4577
+ lane?: string;
4578
+ /** Text (no control character but LF and TAB), 1 to 320 characters, at most 320 UTF-8 bytes. */
4579
+ reason?: string;
4580
+ reclaim?: HookHealthReclaim;
4581
+ }
4582
+
4583
+ export type HookHealthStage = "arguments" | "event" | "socket" | "fallback" | "cleanup";
4584
+
4585
+ export type HookHealthCustody = "committed" | "duplicate" | "fallback_published" | "accepted_only" | "unknown" | "none";
4586
+
4587
+ export interface HookHealthReclaim {
4588
+ /** Unsigned 64-bit integer, at least 0. */
4589
+ failed: bigint;
4590
+ /** Unsigned 64-bit integer, at least 0. */
4591
+ kept_foreign: bigint;
4592
+ /** Unsigned 64-bit integer, at least 0. */
4593
+ kept_live: bigint;
4594
+ /** Unsigned 64-bit integer, at least 0. */
4595
+ kept_young: bigint;
4596
+ owner_unverifiable: boolean;
4597
+ /** Unsigned 64-bit integer, at least 0. */
4598
+ reclaimed: bigint;
4599
+ /** Unsigned 64-bit integer, at least 0. */
4600
+ scanned: bigint;
4601
+ }
4602
+
4603
+ export interface CliVersion {
4604
+ schema: "lanes.version/1";
4605
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4606
+ version: string;
4607
+ /** Token (visible ASCII without `"` or `\`), 1 to 128 characters. Or null. */
4608
+ commit: string | null;
4609
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
4610
+ tree: string;
4611
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
4612
+ current: string | null;
4613
+ running: CliVersionRunning;
4614
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4615
+ client_min: string | null;
4616
+ }
4617
+
4618
+ export interface CliVersionRunning {
4619
+ docsd?: CliVersionRunningDocsd;
4620
+ economy?: CliVersionRunningEconomy;
4621
+ enrold?: CliVersionRunningEnrold;
4622
+ notify?: CliVersionRunningNotify;
4623
+ sidebar?: CliVersionRunningSidebar;
4624
+ statusd?: CliVersionRunningStatusd;
4625
+ studio_host?: CliVersionRunningStudioHost;
4626
+ }
4627
+
4628
+ export interface CliVersionRunningDocsd {
4629
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
4630
+ tree: string | null;
4631
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4632
+ version: string | null;
4633
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4634
+ started: string;
4635
+ current: boolean;
4636
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4637
+ changed: string | null;
4638
+ }
4639
+
4640
+ export interface CliVersionRunningEconomy {
4641
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
4642
+ tree: string | null;
4643
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4644
+ version: string | null;
4645
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4646
+ started: string;
4647
+ current: boolean;
4648
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4649
+ changed: string | null;
4650
+ }
4651
+
4652
+ export interface CliVersionRunningEnrold {
4653
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
4654
+ tree: string | null;
4655
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4656
+ version: string | null;
4657
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4658
+ started: string;
4659
+ current: boolean;
4660
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4661
+ changed: string | null;
4662
+ }
4663
+
4664
+ export interface CliVersionRunningNotify {
4665
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
4666
+ tree: string | null;
4667
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4668
+ version: string | null;
4669
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4670
+ started: string;
4671
+ current: boolean;
4672
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4673
+ changed: string | null;
4674
+ }
4675
+
4676
+ export interface CliVersionRunningSidebar {
4677
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
4678
+ tree: string | null;
4679
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4680
+ version: string | null;
4681
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4682
+ started: string;
4683
+ current: boolean;
4684
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4685
+ changed: string | null;
4686
+ }
4687
+
4688
+ export interface CliVersionRunningStatusd {
4689
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
4690
+ tree: string | null;
4691
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4692
+ version: string | null;
4693
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4694
+ started: string;
4695
+ current: boolean;
4696
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4697
+ changed: string | null;
4698
+ }
4699
+
4700
+ export interface CliVersionRunningStudioHost {
4701
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
4702
+ tree: string | null;
4703
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4704
+ version: string | null;
4705
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. */
4706
+ started: string;
4707
+ current: boolean;
4708
+ /** Token (visible ASCII without `"` or `\`), 1 to 64 characters. Or null. */
4709
+ changed: string | null;
4710
+ }
4711
+
4712
+ export interface CliDiagnostics {
4713
+ schema: "lanes.diagnostics/1";
4714
+ /** At most 16 items. */
4715
+ components: Array<CliDiagnosticsComponentsItem>;
4716
+ }
4717
+
4718
+ export interface CliDiagnosticsComponentsItem {
4719
+ component: CliDiagnosticsComponentsItemComponent;
4720
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. */
4721
+ name: string;
4722
+ /** Text (no control character but LF and TAB), 1 to 256 characters, at most 256 UTF-8 bytes. Or null. */
4723
+ version: string | null;
4724
+ /** At most 128 items. */
4725
+ capabilities: Array<string>;
4726
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. */
4727
+ source: string;
4728
+ /** Text (no control character but LF and TAB), 1 to 4096 characters, at most 4096 UTF-8 bytes. Or null. */
4729
+ unknown: string | null;
4730
+ }
4731
+
4732
+ export type CliDiagnosticsComponentsItemComponent = "client" | "host" | "holder" | "harness";
4733
+
4734
+ /** Decode one Lanes 2.0 frame (RT 7) (`frame.schema.json`); throws Lanes2DecodeError. */
4735
+ export declare function decodeFrame(input: string | Uint8Array): Frame;
4736
+
4737
+ /** Encode one decoded Lanes 2.0 frame (RT 7) (`frame.schema.json`), members in their own order. */
4738
+ export declare function encodeFrame(value: Frame): string;
4739
+
4740
+ /** Decode one Lanes 2.0 bootstrap handshake (RT 7.1) (`hello.schema.json`); throws Lanes2DecodeError. */
4741
+ export declare function decodeHello(input: string | Uint8Array): Hello;
4742
+
4743
+ /** Encode one decoded Lanes 2.0 bootstrap handshake (RT 7.1) (`hello.schema.json`), members in their own order. */
4744
+ export declare function encodeHello(value: Hello): string;
4745
+
4746
+ /** Decode one Lanes 2.0 command envelope (RT 7.2) (`command.schema.json`); throws Lanes2DecodeError. */
4747
+ export declare function decodeCommand(input: string | Uint8Array): Command;
4748
+
4749
+ /** Encode one decoded Lanes 2.0 command envelope (RT 7.2) (`command.schema.json`), members in their own order. */
4750
+ export declare function encodeCommand(value: Command): string;
4751
+
4752
+ /** Decode one Lanes 2.0 operation receipt (RT 7.2, 9.2) (`receipt.schema.json`); throws Lanes2DecodeError. */
4753
+ export declare function decodeReceipt(input: string | Uint8Array): Receipt;
4754
+
4755
+ /** Encode one decoded Lanes 2.0 operation receipt (RT 7.2, 9.2) (`receipt.schema.json`), members in their own order. */
4756
+ export declare function encodeReceipt(value: Receipt): string;
4757
+
4758
+ /** Decode one Lanes 2.0 subscription event (RT 7.2, 7.3) (`event.schema.json`); throws Lanes2DecodeError. */
4759
+ export declare function decodeEvent(input: string | Uint8Array): Event;
4760
+
4761
+ /** Encode one decoded Lanes 2.0 subscription event (RT 7.2, 7.3) (`event.schema.json`), members in their own order. */
4762
+ export declare function encodeEvent(value: Event): string;
4763
+
4764
+ /** Decode one Lanes 2.0 directory subscription (RT 7.3) (`subscribe.schema.json`); throws Lanes2DecodeError. */
4765
+ export declare function decodeSubscribe(input: string | Uint8Array): Subscribe;
4766
+
4767
+ /** Encode one decoded Lanes 2.0 directory subscription (RT 7.3) (`subscribe.schema.json`), members in their own order. */
4768
+ export declare function encodeSubscribe(value: Subscribe): string;
4769
+
4770
+ /** Decode one Lanes 2.0 subscription snapshot (RT 7.3) (`snapshot.schema.json`); throws Lanes2DecodeError. */
4771
+ export declare function decodeSnapshot(input: string | Uint8Array): Snapshot;
4772
+
4773
+ /** Encode one decoded Lanes 2.0 subscription snapshot (RT 7.3) (`snapshot.schema.json`), members in their own order. */
4774
+ export declare function encodeSnapshot(value: Snapshot): string;
4775
+
4776
+ /** Decode one Lanes 2.0 resynchronization (RT 7.3) (`resync.schema.json`); throws Lanes2DecodeError. */
4777
+ export declare function decodeResync(input: string | Uint8Array): Resync;
4778
+
4779
+ /** Encode one decoded Lanes 2.0 resynchronization (RT 7.3) (`resync.schema.json`), members in their own order. */
4780
+ export declare function encodeResync(value: Resync): string;
4781
+
4782
+ /** Decode one Lanes 2.0 boundary refusal (RT 7.1, 7.2) (`frame_refusal.schema.json`); throws Lanes2DecodeError. */
4783
+ export declare function decodeFrameRefusal(input: string | Uint8Array): FrameRefusal;
4784
+
4785
+ /** Encode one decoded Lanes 2.0 boundary refusal (RT 7.1, 7.2) (`frame_refusal.schema.json`), members in their own order. */
4786
+ export declare function encodeFrameRefusal(value: FrameRefusal): string;
4787
+
4788
+ /** Decode one Lanes 2.0 host request (FC-T1) (`request.schema.json`); throws Lanes2DecodeError. */
4789
+ export declare function decodeRequest(input: string | Uint8Array): Request;
4790
+
4791
+ /** Encode one decoded Lanes 2.0 host request (FC-T1) (`request.schema.json`), members in their own order. */
4792
+ export declare function encodeRequest(value: Request): string;
4793
+
4794
+ /** Decode one Lanes 2.0 host document (FC-T1) (`document.schema.json`); throws Lanes2DecodeError. */
4795
+ export declare function decodeDocument(input: string | Uint8Array): Document;
4796
+
4797
+ /** Encode one decoded Lanes 2.0 host document (FC-T1) (`document.schema.json`), members in their own order. */
4798
+ export declare function encodeDocument(value: Document): string;
4799
+
4800
+ /** Decode one RuntimeBinding (TI 3, INT-01) (`runtime_binding.schema.json`); throws Lanes2DecodeError. */
4801
+ export declare function decodeRuntimeBinding(input: string | Uint8Array): RuntimeBinding;
4802
+
4803
+ /** Encode one decoded RuntimeBinding (TI 3, INT-01) (`runtime_binding.schema.json`), members in their own order. */
4804
+ export declare function encodeRuntimeBinding(value: RuntimeBinding): string;
4805
+
4806
+ /** Decode one ExecutionBinding (TI 3, INT-04) (`execution_binding.schema.json`); throws Lanes2DecodeError. */
4807
+ export declare function decodeExecutionBinding(input: string | Uint8Array): ExecutionBinding;
4808
+
4809
+ /** Encode one decoded ExecutionBinding (TI 3, INT-04) (`execution_binding.schema.json`), members in their own order. */
4810
+ export declare function encodeExecutionBinding(value: ExecutionBinding): string;
4811
+
4812
+ /** Decode one OwnerOperationReceipt, the custody owner's receipt (TI 3, 6; FC-D9) (`owner_operation_receipt.schema.json`); throws Lanes2DecodeError. */
4813
+ export declare function decodeOwnerOperationReceipt(input: string | Uint8Array): OwnerOperationReceipt;
4814
+
4815
+ /** Encode one decoded OwnerOperationReceipt, the custody owner's receipt (TI 3, 6; FC-D9) (`owner_operation_receipt.schema.json`), members in their own order. */
4816
+ export declare function encodeOwnerOperationReceipt(value: OwnerOperationReceipt): string;
4817
+
4818
+ /** Decode one Owner retry horizon (FC-D4, TI 6, RT 6.2) (`retry_horizon.schema.json`); throws Lanes2DecodeError. */
4819
+ export declare function decodeRetryHorizon(input: string | Uint8Array): RetryHorizon;
4820
+
4821
+ /** Encode one decoded Owner retry horizon (FC-D4, TI 6, RT 6.2) (`retry_horizon.schema.json`), members in their own order. */
4822
+ export declare function encodeRetryHorizon(value: RetryHorizon): string;
4823
+
4824
+ /** Decode one SourceUpdate (TI 3, INT-12) (`source_update.schema.json`); throws Lanes2DecodeError. */
4825
+ export declare function decodeSourceUpdate(input: string | Uint8Array): SourceUpdate;
4826
+
4827
+ /** Encode one decoded SourceUpdate (TI 3, INT-12) (`source_update.schema.json`), members in their own order. */
4828
+ export declare function encodeSourceUpdate(value: SourceUpdate): string;
4829
+
4830
+ /** Decode one AdapterCapability (TI 3, RT 8, 9.4) (`adapter_capability.schema.json`); throws Lanes2DecodeError. */
4831
+ export declare function decodeAdapterCapability(input: string | Uint8Array): AdapterCapability;
4832
+
4833
+ /** Encode one decoded AdapterCapability (TI 3, RT 8, 9.4) (`adapter_capability.schema.json`), members in their own order. */
4834
+ export declare function encodeAdapterCapability(value: AdapterCapability): string;
4835
+
4836
+ /** Decode one LaneDirectoryProjection (TI 3, INT-12, IC 5.1) (`lane_directory_projection.schema.json`); throws Lanes2DecodeError. */
4837
+ export declare function decodeLaneDirectoryProjection(input: string | Uint8Array): LaneDirectoryProjection;
4838
+
4839
+ /** Encode one decoded LaneDirectoryProjection (TI 3, INT-12, IC 5.1) (`lane_directory_projection.schema.json`), members in their own order. */
4840
+ export declare function encodeLaneDirectoryProjection(value: LaneDirectoryProjection): string;
4841
+
4842
+ /** Decode one Lane directory row (TI 3, IC 5.1) (`lane_directory_row.schema.json`); throws Lanes2DecodeError. */
4843
+ export declare function decodeLaneDirectoryRow(input: string | Uint8Array): LaneDirectoryRow;
4844
+
4845
+ /** Encode one decoded Lane directory row (TI 3, IC 5.1) (`lane_directory_row.schema.json`), members in their own order. */
4846
+ export declare function encodeLaneDirectoryRow(value: LaneDirectoryRow): string;
4847
+
4848
+ /** Decode one PrincipalPresentationPreferences (TI 3, IC 5.1) (`principal_presentation_preferences.schema.json`); throws Lanes2DecodeError. */
4849
+ export declare function decodePrincipalPresentationPreferences(input: string | Uint8Array): PrincipalPresentationPreferences;
4850
+
4851
+ /** Encode one decoded PrincipalPresentationPreferences (TI 3, IC 5.1) (`principal_presentation_preferences.schema.json`), members in their own order. */
4852
+ export declare function encodePrincipalPresentationPreferences(value: PrincipalPresentationPreferences): string;
4853
+
4854
+ /** Decode one Revision-checked preferences update (IC 5.1) (`preferences_update.schema.json`); throws Lanes2DecodeError. */
4855
+ export declare function decodePreferencesUpdate(input: string | Uint8Array): PreferencesUpdate;
4856
+
4857
+ /** Encode one decoded Revision-checked preferences update (IC 5.1) (`preferences_update.schema.json`), members in their own order. */
4858
+ export declare function encodePreferencesUpdate(value: PreferencesUpdate): string;
4859
+
4860
+ /** Decode one Lane-message create payload, the lane-message.create/v1 digest input (TI 6, FC-D8) (`message_create_payload.schema.json`); throws Lanes2DecodeError. */
4861
+ export declare function decodeMessageCreatePayload(input: string | Uint8Array): MessageCreatePayload;
4862
+
4863
+ /** Encode one decoded Lane-message create payload, the lane-message.create/v1 digest input (TI 6, FC-D8) (`message_create_payload.schema.json`), members in their own order. */
4864
+ export declare function encodeMessageCreatePayload(value: MessageCreatePayload): string;
4865
+
4866
+ /** Decode one Answer payload, the answer digest input (TI 6, FC-D3.2) (`answer_prompt_payload.schema.json`); throws Lanes2DecodeError. */
4867
+ export declare function decodeAnswerPromptPayload(input: string | Uint8Array): AnswerPromptPayload;
4868
+
4869
+ /** Encode one decoded Answer payload, the answer digest input (TI 6, FC-D3.2) (`answer_prompt_payload.schema.json`), members in their own order. */
4870
+ export declare function encodeAnswerPromptPayload(value: AnswerPromptPayload): string;
4871
+
4872
+ /** Decode one The custody owner's create answer (TI 6, FC-D9) (`owner_create_answer.schema.json`); throws Lanes2DecodeError. */
4873
+ export declare function decodeOwnerCreateAnswer(input: string | Uint8Array): OwnerCreateAnswer;
4874
+
4875
+ /** Encode one decoded The custody owner's create answer (TI 6, FC-D9) (`owner_create_answer.schema.json`), members in their own order. */
4876
+ export declare function encodeOwnerCreateAnswer(value: OwnerCreateAnswer): string;
4877
+
4878
+ /** Decode one The custody owner's lookup answer (TI 6, FC-D9) (`owner_lookup_answer.schema.json`); throws Lanes2DecodeError. */
4879
+ export declare function decodeOwnerLookupAnswer(input: string | Uint8Array): OwnerLookupAnswer;
4880
+
4881
+ /** Encode one decoded The custody owner's lookup answer (TI 6, FC-D9) (`owner_lookup_answer.schema.json`), members in their own order. */
4882
+ export declare function encodeOwnerLookupAnswer(value: OwnerLookupAnswer): string;
4883
+
4884
+ /** Decode one The custody owner's INT-08 delivery ladder receipt (TI 6, FC-D9) (`delivery_receipt.schema.json`); throws Lanes2DecodeError. */
4885
+ export declare function decodeDeliveryReceipt(input: string | Uint8Array): DeliveryReceipt;
4886
+
4887
+ /** Encode one decoded The custody owner's INT-08 delivery ladder receipt (TI 6, FC-D9) (`delivery_receipt.schema.json`), members in their own order. */
4888
+ export declare function encodeDeliveryReceipt(value: DeliveryReceipt): string;
4889
+
4890
+ /** Decode one Inbox projection (CW 14.1, P09, P12) (`inbox_projection.schema.json`); throws Lanes2DecodeError. */
4891
+ export declare function decodeInboxProjection(input: string | Uint8Array): InboxProjection;
4892
+
4893
+ /** Encode one decoded Inbox projection (CW 14.1, P09, P12) (`inbox_projection.schema.json`), members in their own order. */
4894
+ export declare function encodeInboxProjection(value: InboxProjection): string;
4895
+
4896
+ /** Decode one Inbox page request (CW 14.1, P09; CW:998 pages) (`inbox_page_request.schema.json`); throws Lanes2DecodeError. */
4897
+ export declare function decodeInboxPageRequest(input: string | Uint8Array): InboxPageRequest;
4898
+
4899
+ /** Encode one decoded Inbox page request (CW 14.1, P09; CW:998 pages) (`inbox_page_request.schema.json`), members in their own order. */
4900
+ export declare function encodeInboxPageRequest(value: InboxPageRequest): string;
4901
+
4902
+ /** Decode one Inbox thread (CW 14.2, P10) (`inbox_thread.schema.json`); throws Lanes2DecodeError. */
4903
+ export declare function decodeInboxThread(input: string | Uint8Array): InboxThread;
4904
+
4905
+ /** Encode one decoded Inbox thread (CW 14.2, P10) (`inbox_thread.schema.json`), members in their own order. */
4906
+ export declare function encodeInboxThread(value: InboxThread): string;
4907
+
4908
+ /** Decode one Inbox thread page request (CW 14.2, P10; CW:998 pages) (`inbox_thread_request.schema.json`); throws Lanes2DecodeError. */
4909
+ export declare function decodeInboxThreadRequest(input: string | Uint8Array): InboxThreadRequest;
4910
+
4911
+ /** Encode one decoded Inbox thread page request (CW 14.2, P10; CW:998 pages) (`inbox_thread_request.schema.json`), members in their own order. */
4912
+ export declare function encodeInboxThreadRequest(value: InboxThreadRequest): string;
4913
+
4914
+ /** Decode one Inbox thread action (CW 14.2, P11) (`inbox_thread_command.schema.json`); throws Lanes2DecodeError. */
4915
+ export declare function decodeInboxThreadCommand(input: string | Uint8Array): InboxThreadCommand;
4916
+
4917
+ /** Encode one decoded Inbox thread action (CW 14.2, P11) (`inbox_thread_command.schema.json`), members in their own order. */
4918
+ export declare function encodeInboxThreadCommand(value: InboxThreadCommand): string;
4919
+
4920
+ /** Decode one Inbox composed message (CW 7.2, P11; TI INT-07) (`inbox_compose_command.schema.json`); throws Lanes2DecodeError. */
4921
+ export declare function decodeInboxComposeCommand(input: string | Uint8Array): InboxComposeCommand;
4922
+
4923
+ /** Encode one decoded Inbox composed message (CW 7.2, P11; TI INT-07) (`inbox_compose_command.schema.json`), members in their own order. */
4924
+ export declare function encodeInboxComposeCommand(value: InboxComposeCommand): string;
4925
+
4926
+ /** Decode one View step request (FC-T1, C6) (`view_step.schema.json`); throws Lanes2DecodeError. */
4927
+ export declare function decodeViewStep(input: string | Uint8Array): ViewStep;
4928
+
4929
+ /** Encode one decoded View step request (FC-T1, C6) (`view_step.schema.json`), members in their own order. */
4930
+ export declare function encodeViewStep(value: ViewStep): string;
4931
+
4932
+ /** Decode one Sidebar command request (FC-T1, C6) (`sidebar_command.schema.json`); throws Lanes2DecodeError. */
4933
+ export declare function decodeSidebarCommand(input: string | Uint8Array): SidebarCommand;
4934
+
4935
+ /** Encode one decoded Sidebar command request (FC-T1, C6) (`sidebar_command.schema.json`), members in their own order. */
4936
+ export declare function encodeSidebarCommand(value: SidebarCommand): string;
4937
+
4938
+ /** Decode one View operation result (FC-T1) (`view_result.schema.json`); throws Lanes2DecodeError. */
4939
+ export declare function decodeViewResult(input: string | Uint8Array): ViewResult;
4940
+
4941
+ /** Encode one decoded View operation result (FC-T1) (`view_result.schema.json`), members in their own order. */
4942
+ export declare function encodeViewResult(value: ViewResult): string;
4943
+
4944
+ /** Decode one Panel page request (FC-T1) (`panel_page_request.schema.json`); throws Lanes2DecodeError. */
4945
+ export declare function decodePanelPageRequest(input: string | Uint8Array): PanelPageRequest;
4946
+
4947
+ /** Encode one decoded Panel page request (FC-T1) (`panel_page_request.schema.json`), members in their own order. */
4948
+ export declare function encodePanelPageRequest(value: PanelPageRequest): string;
4949
+
4950
+ /** Decode one Build log read request (FC-T1) (`build_log_request.schema.json`); throws Lanes2DecodeError. */
4951
+ export declare function decodeBuildLogRequest(input: string | Uint8Array): BuildLogRequest;
4952
+
4953
+ /** Encode one decoded Build log read request (FC-T1) (`build_log_request.schema.json`), members in their own order. */
4954
+ export declare function encodeBuildLogRequest(value: BuildLogRequest): string;
4955
+
4956
+ /** Decode one Tool repair read request (FC-T1) (`tool_repair_request.schema.json`); throws Lanes2DecodeError. */
4957
+ export declare function decodeToolRepairRequest(input: string | Uint8Array): ToolRepairRequest;
4958
+
4959
+ /** Encode one decoded Tool repair read request (FC-T1) (`tool_repair_request.schema.json`), members in their own order. */
4960
+ export declare function encodeToolRepairRequest(value: ToolRepairRequest): string;
4961
+
4962
+ /** Decode one Connector page request (FC-T1) (`connector_page_request.schema.json`); throws Lanes2DecodeError. */
4963
+ export declare function decodeConnectorPageRequest(input: string | Uint8Array): ConnectorPageRequest;
4964
+
4965
+ /** Encode one decoded Connector page request (FC-T1) (`connector_page_request.schema.json`), members in their own order. */
4966
+ export declare function encodeConnectorPageRequest(value: ConnectorPageRequest): string;
4967
+
4968
+ /** Decode one Connector page (FC-T1) (`connector_page.schema.json`); throws Lanes2DecodeError. */
4969
+ export declare function decodeConnectorPage(input: string | Uint8Array): ConnectorPage;
4970
+
4971
+ /** Encode one decoded Connector page (FC-T1) (`connector_page.schema.json`), members in their own order. */
4972
+ export declare function encodeConnectorPage(value: ConnectorPage): string;
4973
+
4974
+ /** Decode one Connector command request (FC-T1) (`connector_command.schema.json`); throws Lanes2DecodeError. */
4975
+ export declare function decodeConnectorCommand(input: string | Uint8Array): ConnectorCommand;
4976
+
4977
+ /** Encode one decoded Connector command request (FC-T1) (`connector_command.schema.json`), members in their own order. */
4978
+ export declare function encodeConnectorCommand(value: ConnectorCommand): string;
4979
+
4980
+ /** Decode one Project view request (FC-T1) (`project_view_request.schema.json`); throws Lanes2DecodeError. */
4981
+ export declare function decodeProjectViewRequest(input: string | Uint8Array): ProjectViewRequest;
4982
+
4983
+ /** Encode one decoded Project view request (FC-T1) (`project_view_request.schema.json`), members in their own order. */
4984
+ export declare function encodeProjectViewRequest(value: ProjectViewRequest): string;
4985
+
4986
+ /** Decode one Project view (FC-T1) (`project_view.schema.json`); throws Lanes2DecodeError. */
4987
+ export declare function decodeProjectView(input: string | Uint8Array): ProjectView;
4988
+
4989
+ /** Encode one decoded Project view (FC-T1) (`project_view.schema.json`), members in their own order. */
4990
+ export declare function encodeProjectView(value: ProjectView): string;
4991
+
4992
+ /** Decode one Project command request (FC-T1) (`project_command.schema.json`); throws Lanes2DecodeError. */
4993
+ export declare function decodeProjectCommand(input: string | Uint8Array): ProjectCommand;
4994
+
4995
+ /** Encode one decoded Project command request (FC-T1) (`project_command.schema.json`), members in their own order. */
4996
+ export declare function encodeProjectCommand(value: ProjectCommand): string;
4997
+
4998
+ /** Decode one Project agent tool request lanes.project-request.v1 (FC-E13) (`project_agent_request.schema.json`); throws Lanes2DecodeError. */
4999
+ export declare function decodeProjectAgentRequest(input: string | Uint8Array): ProjectAgentRequest;
5000
+
5001
+ /** Encode one decoded Project agent tool request lanes.project-request.v1 (FC-E13) (`project_agent_request.schema.json`), members in their own order. */
5002
+ export declare function encodeProjectAgentRequest(value: ProjectAgentRequest): string;
5003
+
5004
+ /** Decode one Schedule command request (FC-E13, FC-T1) (`schedule_command.schema.json`); throws Lanes2DecodeError. */
5005
+ export declare function decodeScheduleCommand(input: string | Uint8Array): ScheduleCommand;
5006
+
5007
+ /** Encode one decoded Schedule command request (FC-E13, FC-T1) (`schedule_command.schema.json`), members in their own order. */
5008
+ export declare function encodeScheduleCommand(value: ScheduleCommand): string;
5009
+
5010
+ /** Decode one Schedules page (FC-T1) (`schedules_page.schema.json`); throws Lanes2DecodeError. */
5011
+ export declare function decodeSchedulesPage(input: string | Uint8Array): SchedulesPage;
5012
+
5013
+ /** Encode one decoded Schedules page (FC-T1) (`schedules_page.schema.json`), members in their own order. */
5014
+ export declare function encodeSchedulesPage(value: SchedulesPage): string;
5015
+
5016
+ /** Decode one Builds panel lanes2.builds-panel/1 (FC-E13, FC-T1) (`builds_panel.schema.json`); throws Lanes2DecodeError. */
5017
+ export declare function decodeBuildsPanel(input: string | Uint8Array): BuildsPanel;
5018
+
5019
+ /** Encode one decoded Builds panel lanes2.builds-panel/1 (FC-E13, FC-T1) (`builds_panel.schema.json`), members in their own order. */
5020
+ export declare function encodeBuildsPanel(value: BuildsPanel): string;
5021
+
5022
+ /** Decode one Build log read lanes2.build-log/1 (FC-E13, FC-T1) (`build_log_page.schema.json`); throws Lanes2DecodeError. */
5023
+ export declare function decodeBuildLogPage(input: string | Uint8Array): BuildLogPage;
5024
+
5025
+ /** Encode one decoded Build log read lanes2.build-log/1 (FC-E13, FC-T1) (`build_log_page.schema.json`), members in their own order. */
5026
+ export declare function encodeBuildLogPage(value: BuildLogPage): string;
5027
+
5028
+ /** Decode one Tools panel lanes2.tools-panel/1 (FC-E13, FC-T1) (`tools_panel.schema.json`); throws Lanes2DecodeError. */
5029
+ export declare function decodeToolsPanel(input: string | Uint8Array): ToolsPanel;
5030
+
5031
+ /** Encode one decoded Tools panel lanes2.tools-panel/1 (FC-E13, FC-T1) (`tools_panel.schema.json`), members in their own order. */
5032
+ export declare function encodeToolsPanel(value: ToolsPanel): string;
5033
+
5034
+ /** Decode one Tool repair answer lanes2.tool-repair/1 (FC-E13, FC-T1) (`tool_repair.schema.json`); throws Lanes2DecodeError. */
5035
+ export declare function decodeToolRepair(input: string | Uint8Array): ToolRepair;
5036
+
5037
+ /** Encode one decoded Tool repair answer lanes2.tool-repair/1 (FC-E13, FC-T1) (`tool_repair.schema.json`), members in their own order. */
5038
+ export declare function encodeToolRepair(value: ToolRepair): string;
5039
+
5040
+ /** Decode one Capacity panel lanes2.capacity-panel/2 (FC-E13, FC-X9) (`capacity_panel.schema.json`); throws Lanes2DecodeError. */
5041
+ export declare function decodeCapacityPanel(input: string | Uint8Array): CapacityPanel;
5042
+
5043
+ /** Encode one decoded Capacity panel lanes2.capacity-panel/2 (FC-E13, FC-X9) (`capacity_panel.schema.json`), members in their own order. */
5044
+ export declare function encodeCapacityPanel(value: CapacityPanel): string;
5045
+
5046
+ /** Decode one Economics panel lanes2.economics-panel/2 (FC-E13, FC-X9) (`economics_panel.schema.json`); throws Lanes2DecodeError. */
5047
+ export declare function decodeEconomicsPanel(input: string | Uint8Array): EconomicsPanel;
5048
+
5049
+ /** Encode one decoded Economics panel lanes2.economics-panel/2 (FC-E13, FC-X9) (`economics_panel.schema.json`), members in their own order. */
5050
+ export declare function encodeEconomicsPanel(value: EconomicsPanel): string;
5051
+
5052
+ /** Decode one Runtime signal snapshot lanes2.signals.snapshot/2 (FC-E13) (`signals_snapshot.schema.json`); throws Lanes2DecodeError. */
5053
+ export declare function decodeSignalsSnapshot(input: string | Uint8Array): SignalsSnapshot;
5054
+
5055
+ /** Encode one decoded Runtime signal snapshot lanes2.signals.snapshot/2 (FC-E13) (`signals_snapshot.schema.json`), members in their own order. */
5056
+ export declare function encodeSignalsSnapshot(value: SignalsSnapshot): string;
5057
+
5058
+ /** Decode one Lanes 2.0 Wait (FC-E11) (`wait.schema.json`); throws Lanes2DecodeError. */
5059
+ export declare function decodeWait(input: string | Uint8Array): Wait;
5060
+
5061
+ /** Encode one decoded Lanes 2.0 Wait (FC-E11) (`wait.schema.json`), members in their own order. */
5062
+ export declare function encodeWait(value: Wait): string;
5063
+
5064
+ /** Decode one Hook event (lanes.hook.event/1, RT 10.1, FC-T5) (`hook_event.schema.json`); throws Lanes2DecodeError. */
5065
+ export declare function decodeHookEvent(input: string | Uint8Array): HookEvent;
5066
+
5067
+ /** Encode one decoded Hook event (lanes.hook.event/1, RT 10.1, FC-T5) (`hook_event.schema.json`), members in their own order. */
5068
+ export declare function encodeHookEvent(value: HookEvent): string;
5069
+
5070
+ /** Decode one Hook acknowledgement (lanes.hook.ack/1, RT 10.1, FC-T6) (`hook_ack.schema.json`); throws Lanes2DecodeError. */
5071
+ export declare function decodeHookAck(input: string | Uint8Array): HookAck;
5072
+
5073
+ /** Encode one decoded Hook acknowledgement (lanes.hook.ack/1, RT 10.1, FC-T6) (`hook_ack.schema.json`), members in their own order. */
5074
+ export declare function encodeHookAck(value: HookAck): string;
5075
+
5076
+ /** Decode one Hook failure record (lanes.hook.health/1, RT 10.2, FC-I-2) (`hook_health.schema.json`); throws Lanes2DecodeError. */
5077
+ export declare function decodeHookHealth(input: string | Uint8Array): HookHealth;
5078
+
5079
+ /** Encode one decoded Hook failure record (lanes.hook.health/1, RT 10.2, FC-I-2) (`hook_health.schema.json`), members in their own order. */
5080
+ export declare function encodeHookHealth(value: HookHealth): string;
5081
+
5082
+ /** Decode one lanes version --json lanes.version/1 (FC-E13) (`cli_version.schema.json`); throws Lanes2DecodeError. */
5083
+ export declare function decodeCliVersion(input: string | Uint8Array): CliVersion;
5084
+
5085
+ /** Encode one decoded lanes version --json lanes.version/1 (FC-E13) (`cli_version.schema.json`), members in their own order. */
5086
+ export declare function encodeCliVersion(value: CliVersion): string;
5087
+
5088
+ /** Decode one lanes-terminal diagnostics --json lanes.diagnostics/1 (FC-E13) (`cli_diagnostics.schema.json`); throws Lanes2DecodeError. */
5089
+ export declare function decodeCliDiagnostics(input: string | Uint8Array): CliDiagnostics;
5090
+
5091
+ /** Encode one decoded lanes-terminal diagnostics --json lanes.diagnostics/1 (FC-E13) (`cli_diagnostics.schema.json`), members in their own order. */
5092
+ export declare function encodeCliDiagnostics(value: CliDiagnostics): string;
5093
+
5094
+ /** Every document by name. */
5095
+ export interface Lanes2Documents {
5096
+ frame: Frame;
5097
+ hello: Hello;
5098
+ command: Command;
5099
+ receipt: Receipt;
5100
+ event: Event;
5101
+ subscribe: Subscribe;
5102
+ snapshot: Snapshot;
5103
+ resync: Resync;
5104
+ frame_refusal: FrameRefusal;
5105
+ request: Request;
5106
+ document: Document;
5107
+ runtime_binding: RuntimeBinding;
5108
+ execution_binding: ExecutionBinding;
5109
+ owner_operation_receipt: OwnerOperationReceipt;
5110
+ retry_horizon: RetryHorizon;
5111
+ source_update: SourceUpdate;
5112
+ adapter_capability: AdapterCapability;
5113
+ lane_directory_projection: LaneDirectoryProjection;
5114
+ lane_directory_row: LaneDirectoryRow;
5115
+ principal_presentation_preferences: PrincipalPresentationPreferences;
5116
+ preferences_update: PreferencesUpdate;
5117
+ message_create_payload: MessageCreatePayload;
5118
+ answer_prompt_payload: AnswerPromptPayload;
5119
+ owner_create_answer: OwnerCreateAnswer;
5120
+ owner_lookup_answer: OwnerLookupAnswer;
5121
+ delivery_receipt: DeliveryReceipt;
5122
+ inbox_projection: InboxProjection;
5123
+ inbox_page_request: InboxPageRequest;
5124
+ inbox_thread: InboxThread;
5125
+ inbox_thread_request: InboxThreadRequest;
5126
+ inbox_thread_command: InboxThreadCommand;
5127
+ inbox_compose_command: InboxComposeCommand;
5128
+ view_step: ViewStep;
5129
+ sidebar_command: SidebarCommand;
5130
+ view_result: ViewResult;
5131
+ panel_page_request: PanelPageRequest;
5132
+ build_log_request: BuildLogRequest;
5133
+ tool_repair_request: ToolRepairRequest;
5134
+ connector_page_request: ConnectorPageRequest;
5135
+ connector_page: ConnectorPage;
5136
+ connector_command: ConnectorCommand;
5137
+ project_view_request: ProjectViewRequest;
5138
+ project_view: ProjectView;
5139
+ project_command: ProjectCommand;
5140
+ project_agent_request: ProjectAgentRequest;
5141
+ schedule_command: ScheduleCommand;
5142
+ schedules_page: SchedulesPage;
5143
+ builds_panel: BuildsPanel;
5144
+ build_log_page: BuildLogPage;
5145
+ tools_panel: ToolsPanel;
5146
+ tool_repair: ToolRepair;
5147
+ capacity_panel: CapacityPanel;
5148
+ economics_panel: EconomicsPanel;
5149
+ signals_snapshot: SignalsSnapshot;
5150
+ wait: Wait;
5151
+ hook_event: HookEvent;
5152
+ hook_ack: HookAck;
5153
+ hook_health: HookHealth;
5154
+ cli_version: CliVersion;
5155
+ cli_diagnostics: CliDiagnostics;
5156
+ }
5157
+
5158
+ export declare const DOCUMENT_NAMES: ReadonlyArray<keyof Lanes2Documents>;
5159
+ export declare const DOCUMENTS: {
5160
+ readonly [K in keyof Lanes2Documents]: (input: string | Uint8Array) => Lanes2Documents[K];
5161
+ };
5162
+ export declare const ENCODERS: {
5163
+ readonly [K in keyof Lanes2Documents]: (value: Lanes2Documents[K]) => string;
1162
5164
  };