@hasna/todos 0.15.34 → 0.15.41

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 (93) hide show
  1. package/dist/cli/cloud-router.d.ts +53 -19
  2. package/dist/cli/cloud-router.d.ts.map +1 -1
  3. package/dist/cli/commands/agent-commands.d.ts.map +1 -1
  4. package/dist/cli/commands/plan-template-commands.d.ts.map +1 -1
  5. package/dist/cli/commands/project-commands.d.ts.map +1 -1
  6. package/dist/cli/commands/task-commands.d.ts.map +1 -1
  7. package/dist/cli/commands/task-subtree-transfer-commands.d.ts +3 -0
  8. package/dist/cli/commands/task-subtree-transfer-commands.d.ts.map +1 -0
  9. package/dist/cli/index.js +3551 -836
  10. package/dist/cli/stage-a.d.ts.map +1 -1
  11. package/dist/contracts.js +147 -57
  12. package/dist/db/migrations.d.ts.map +1 -1
  13. package/dist/db/plan-comments.d.ts +14 -0
  14. package/dist/db/plan-comments.d.ts.map +1 -0
  15. package/dist/db/projects.d.ts +23 -0
  16. package/dist/db/projects.d.ts.map +1 -1
  17. package/dist/db/schema.d.ts.map +1 -1
  18. package/dist/db/task-crud.d.ts.map +1 -1
  19. package/dist/db/task-lifecycle.d.ts.map +1 -1
  20. package/dist/db/task-lists.d.ts.map +1 -1
  21. package/dist/db/task-relations.d.ts.map +1 -1
  22. package/dist/index.d.ts +3 -2
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +1994 -346
  25. package/dist/json-contracts.d.ts.map +1 -1
  26. package/dist/lib/comment-cursor.d.ts +19 -0
  27. package/dist/lib/comment-cursor.d.ts.map +1 -1
  28. package/dist/lib/import-export-bridge.d.ts.map +1 -1
  29. package/dist/lib/onboarding-fixtures.d.ts.map +1 -1
  30. package/dist/mcp/index.js +2491 -507
  31. package/dist/mcp/tools/task-project-tools.d.ts.map +1 -1
  32. package/dist/mcp.js +11 -4
  33. package/dist/project-registration/authority.d.ts.map +1 -1
  34. package/dist/project-registration/sqlite.d.ts.map +1 -1
  35. package/dist/project-registration.js +362 -79
  36. package/dist/registry.d.ts +1 -1
  37. package/dist/registry.d.ts.map +1 -1
  38. package/dist/registry.js +154 -57
  39. package/dist/release-provenance.json +5 -5
  40. package/dist/sdk/index.d.ts +1 -1
  41. package/dist/sdk/index.d.ts.map +1 -1
  42. package/dist/sdk/index.js +35 -0
  43. package/dist/sdk/v1.generated.d.ts +144 -0
  44. package/dist/sdk/v1.generated.d.ts.map +1 -1
  45. package/dist/server/cloud.d.ts +12 -2
  46. package/dist/server/cloud.d.ts.map +1 -1
  47. package/dist/server/index.js +5247 -8429
  48. package/dist/server/openapi.d.ts +2104 -1314
  49. package/dist/server/openapi.d.ts.map +1 -1
  50. package/dist/server/v1.d.ts +2 -1
  51. package/dist/server/v1.d.ts.map +1 -1
  52. package/dist/storage/config.d.ts +12 -30
  53. package/dist/storage/config.d.ts.map +1 -1
  54. package/dist/storage/index.d.ts +2 -2
  55. package/dist/storage/index.d.ts.map +1 -1
  56. package/dist/storage/interfaces.d.ts +13 -2
  57. package/dist/storage/interfaces.d.ts.map +1 -1
  58. package/dist/storage/local-sqlite.d.ts.map +1 -1
  59. package/dist/storage/postgres-adapter.d.ts.map +1 -1
  60. package/dist/storage/timestamp-backfill.d.ts +62 -0
  61. package/dist/storage/timestamp-backfill.d.ts.map +1 -0
  62. package/dist/storage.d.ts +2 -2
  63. package/dist/storage.d.ts.map +1 -1
  64. package/dist/storage.js +327 -75
  65. package/dist/task-subtree-transfer/authority.d.ts +27 -0
  66. package/dist/task-subtree-transfer/authority.d.ts.map +1 -0
  67. package/dist/task-subtree-transfer/backend.d.ts +9 -0
  68. package/dist/task-subtree-transfer/backend.d.ts.map +1 -0
  69. package/dist/task-subtree-transfer/canonical.d.ts +14 -0
  70. package/dist/task-subtree-transfer/canonical.d.ts.map +1 -0
  71. package/dist/task-subtree-transfer/http.d.ts +16 -0
  72. package/dist/task-subtree-transfer/http.d.ts.map +1 -0
  73. package/dist/task-subtree-transfer/index.d.ts +6 -0
  74. package/dist/task-subtree-transfer/index.d.ts.map +1 -0
  75. package/dist/task-subtree-transfer/planner.d.ts +24 -0
  76. package/dist/task-subtree-transfer/planner.d.ts.map +1 -0
  77. package/dist/task-subtree-transfer/postgres.d.ts +19 -0
  78. package/dist/task-subtree-transfer/postgres.d.ts.map +1 -0
  79. package/dist/task-subtree-transfer/schema-sql.d.ts +5 -0
  80. package/dist/task-subtree-transfer/schema-sql.d.ts.map +1 -0
  81. package/dist/task-subtree-transfer/sqlite.d.ts +16 -0
  82. package/dist/task-subtree-transfer/sqlite.d.ts.map +1 -0
  83. package/dist/task-subtree-transfer/types.d.ts +148 -0
  84. package/dist/task-subtree-transfer/types.d.ts.map +1 -0
  85. package/dist/task-subtree-transfer.d.ts +2 -0
  86. package/dist/task-subtree-transfer.d.ts.map +1 -0
  87. package/dist/task-subtree-transfer.js +1869 -0
  88. package/dist/testing.d.ts +41 -7
  89. package/dist/testing.d.ts.map +1 -1
  90. package/dist/testing.js +44 -1
  91. package/dist/types/index.d.ts +29 -2
  92. package/dist/types/index.d.ts.map +1 -1
  93. package/package.json +11 -4
@@ -114,6 +114,10 @@ export declare function buildV1OpenApiDocument(version?: string): {
114
114
  readonly task_counter: {
115
115
  readonly type: "number";
116
116
  };
117
+ readonly parent_id: {
118
+ readonly type: "string";
119
+ readonly nullable: true;
120
+ };
117
121
  readonly created_at: {
118
122
  readonly type: "string";
119
123
  };
@@ -505,323 +509,364 @@ export declare function buildV1OpenApiDocument(version?: string): {
505
509
  };
506
510
  };
507
511
  };
508
- TaskManifestCompensateRequest: {
512
+ TaskSubtreeTransferExpectedTask: {
509
513
  readonly type: "object";
510
514
  readonly additionalProperties: false;
511
- readonly required: readonly ["receipt_id", "operation_id", "step_id", "idempotency_key", "precondition_digest", "if_binding_version"];
515
+ readonly required: readonly ["task_id", "version"];
512
516
  readonly properties: {
513
- readonly receipt_id: {
517
+ readonly task_id: {
514
518
  readonly type: "string";
515
519
  readonly format: "uuid";
516
520
  };
517
- readonly operation_id: {
518
- readonly type: "string";
519
- };
520
- readonly step_id: {
521
- readonly type: "string";
522
- };
523
- readonly idempotency_key: {
524
- readonly type: "string";
525
- readonly pattern: "^tmk_[0-9a-f]{48}$";
526
- };
527
- readonly precondition_digest: {
528
- readonly type: "string";
529
- readonly pattern: "^[0-9a-f]{64}$";
530
- };
531
- readonly if_binding_version: {
521
+ readonly version: {
532
522
  readonly type: "integer";
533
523
  readonly minimum: 1;
534
524
  };
535
525
  };
536
526
  };
537
- TaskManifestCompensationResult: {
538
- readonly type: "object";
539
- readonly additionalProperties: false;
540
- readonly required: readonly ["duplicate", "receipt", "absent", "readback"];
541
- readonly properties: {
542
- readonly duplicate: {
543
- readonly type: "boolean";
544
- };
545
- readonly receipt: {
546
- readonly $ref: "#/components/schemas/TaskManifestReceipt";
547
- };
548
- readonly absent: {
549
- readonly type: "boolean";
550
- readonly enum: readonly [true];
551
- };
552
- readonly readback: {
553
- readonly type: "object";
554
- readonly additionalProperties: true;
555
- };
556
- };
557
- };
558
- TaskManifestCompensateResponse: {
527
+ TaskSubtreeTransferSharedPlanSplit: {
559
528
  readonly type: "object";
560
529
  readonly additionalProperties: false;
561
- readonly required: readonly ["result"];
530
+ readonly required: readonly ["source_plan_id", "destination_plan_id"];
562
531
  readonly properties: {
563
- readonly result: {
564
- readonly $ref: "#/components/schemas/TaskManifestCompensationResult";
532
+ readonly source_plan_id: {
533
+ readonly type: "string";
534
+ readonly format: "uuid";
565
535
  };
566
- };
567
- };
568
- TaskManifestReadExactRequest: {
569
- readonly type: "object";
570
- readonly additionalProperties: false;
571
- readonly required: readonly ["receipt_id"];
572
- readonly properties: {
573
- readonly receipt_id: {
536
+ readonly destination_plan_id: {
574
537
  readonly type: "string";
575
538
  readonly format: "uuid";
576
539
  };
577
540
  };
578
541
  };
579
- TaskManifestBindingLookupRequest: {
542
+ TaskSubtreeTransferInspectRequest: {
580
543
  readonly type: "object";
581
544
  readonly additionalProperties: false;
582
- readonly required: readonly ["authority", "route", "schema_version", "tenant_id", "plan_id", "max_items"];
545
+ readonly required: readonly ["source_project_id", "destination_project_id", "destination_task_list_id", "root_task_id", "destination_parent_id"];
583
546
  readonly properties: {
584
- readonly authority: {
547
+ readonly source_project_id: {
585
548
  readonly type: "string";
586
- readonly enum: readonly ["todos"];
549
+ readonly format: "uuid";
587
550
  };
588
- readonly route: {
551
+ readonly destination_project_id: {
589
552
  readonly type: "string";
590
- readonly enum: readonly ["todos.task-manifest.v1"];
591
- };
592
- readonly schema_version: {
593
- readonly type: "integer";
594
- readonly enum: readonly [1];
553
+ readonly format: "uuid";
595
554
  };
596
- readonly tenant_id: {
555
+ readonly destination_task_list_id: {
597
556
  readonly type: "string";
598
- readonly minLength: 1;
599
- readonly maxLength: 200;
557
+ readonly format: "uuid";
600
558
  };
601
- readonly plan_id: {
559
+ readonly root_task_id: {
602
560
  readonly type: "string";
603
561
  readonly format: "uuid";
604
562
  };
605
- readonly max_items: {
606
- readonly type: "integer";
607
- readonly enum: readonly [1];
563
+ readonly destination_parent_id: {
564
+ readonly type: "string";
565
+ readonly format: "uuid";
566
+ readonly nullable: true;
608
567
  };
609
568
  };
610
569
  };
611
- TaskManifestBindingLookupResult: {
570
+ TaskSubtreeTransferInspection: {
612
571
  readonly type: "object";
613
572
  readonly additionalProperties: false;
614
- readonly required: readonly ["authority", "route", "schema_version", "tenant_id", "plan_id", "operation_id", "step_id", "apply_receipt_id", "binding_version", "state"];
573
+ readonly required: readonly ["source_project_id", "destination_project_id", "destination_task_list_id", "root_task_id", "destination_parent_id", "expected_root_parent_id", "source_population_digest", "expected_tasks", "contained_plan_ids", "shared_plan_ids", "complete"];
615
574
  readonly properties: {
616
- readonly authority: {
575
+ readonly expected_root_parent_id: {
617
576
  readonly type: "string";
618
- readonly enum: readonly ["todos"];
577
+ readonly format: "uuid";
578
+ readonly nullable: true;
619
579
  };
620
- readonly route: {
580
+ readonly source_population_digest: {
621
581
  readonly type: "string";
622
- readonly enum: readonly ["todos.task-manifest.v1"];
582
+ readonly pattern: "^[0-9a-f]{64}$";
623
583
  };
624
- readonly schema_version: {
625
- readonly type: "integer";
626
- readonly enum: readonly [1];
584
+ readonly expected_tasks: {
585
+ readonly type: "array";
586
+ readonly minItems: 1;
587
+ readonly items: {
588
+ readonly $ref: "#/components/schemas/TaskSubtreeTransferExpectedTask";
589
+ };
627
590
  };
628
- readonly tenant_id: {
629
- readonly type: "string";
591
+ readonly contained_plan_ids: {
592
+ readonly type: "array";
593
+ readonly items: {
594
+ readonly type: "string";
595
+ readonly format: "uuid";
596
+ };
630
597
  };
631
- readonly plan_id: {
598
+ readonly shared_plan_ids: {
599
+ readonly type: "array";
600
+ readonly items: {
601
+ readonly type: "string";
602
+ readonly format: "uuid";
603
+ };
604
+ };
605
+ readonly complete: {
606
+ readonly type: "boolean";
607
+ readonly enum: readonly [true];
608
+ };
609
+ readonly source_project_id: {
632
610
  readonly type: "string";
633
611
  readonly format: "uuid";
634
612
  };
635
- readonly operation_id: {
613
+ readonly destination_project_id: {
636
614
  readonly type: "string";
637
- readonly minLength: 1;
638
- readonly maxLength: 200;
615
+ readonly format: "uuid";
639
616
  };
640
- readonly step_id: {
617
+ readonly destination_task_list_id: {
641
618
  readonly type: "string";
642
- readonly minLength: 1;
643
- readonly maxLength: 200;
619
+ readonly format: "uuid";
644
620
  };
645
- readonly apply_receipt_id: {
621
+ readonly root_task_id: {
646
622
  readonly type: "string";
647
623
  readonly format: "uuid";
648
624
  };
649
- readonly binding_version: {
650
- readonly type: "integer";
651
- readonly minimum: 1;
652
- };
653
- readonly state: {
625
+ readonly destination_parent_id: {
654
626
  readonly type: "string";
655
- readonly enum: readonly ["applied", "compensated"];
627
+ readonly format: "uuid";
628
+ readonly nullable: true;
656
629
  };
657
630
  };
658
631
  };
659
- TaskManifestBindingLookupResponse: {
632
+ TaskSubtreeTransferApplyRequest: {
660
633
  readonly type: "object";
661
634
  readonly additionalProperties: false;
662
- readonly required: readonly ["result"];
635
+ readonly required: readonly ["version", "operation_id", "step_id", "idempotency_key", "precondition_digest", "source_project_id", "destination_project_id", "destination_task_list_id", "root_task_id", "destination_parent_id", "expected_root_parent_id", "source_population_digest", "expected_tasks", "shared_plan_splits"];
663
636
  readonly properties: {
664
- readonly result: {
665
- readonly $ref: "#/components/schemas/TaskManifestBindingLookupResult";
637
+ readonly version: {
638
+ readonly type: "integer";
639
+ readonly enum: readonly [1];
666
640
  };
667
- };
668
- };
669
- ProjectRegistrationCapability: {
670
- readonly type: "object";
671
- readonly additionalProperties: false;
672
- readonly required: readonly ["authority", "route", "package_version", "authority_id", "tenant_id", "corpus_id", "supported_resources", "conditional_create", "immutable_receipts", "exact_terminal_lookup", "exact_readback", "bind_existing_adoption", "prior_registration_adoption_validation", "project_resource_enumeration", "project_resource_page_limit", "conditional_inverse", "ambiguous_outcome_reconciliation"];
673
- readonly properties: {
674
- readonly authority: {
641
+ readonly operation_id: {
675
642
  readonly type: "string";
676
- readonly enum: readonly ["todos"];
643
+ readonly minLength: 1;
644
+ readonly maxLength: 200;
677
645
  };
678
- readonly route: {
646
+ readonly step_id: {
679
647
  readonly type: "string";
680
- readonly enum: readonly ["todos.project-registration.v1"];
648
+ readonly minLength: 1;
649
+ readonly maxLength: 200;
681
650
  };
682
- readonly package_version: {
651
+ readonly idempotency_key: {
683
652
  readonly type: "string";
653
+ readonly minLength: 1;
654
+ readonly maxLength: 240;
684
655
  };
685
- readonly authority_id: {
656
+ readonly precondition_digest: {
686
657
  readonly type: "string";
658
+ readonly pattern: "^[0-9a-f]{64}$";
687
659
  };
688
- readonly tenant_id: {
660
+ readonly expected_root_parent_id: {
689
661
  readonly type: "string";
662
+ readonly format: "uuid";
663
+ readonly nullable: true;
690
664
  };
691
- readonly corpus_id: {
665
+ readonly source_population_digest: {
692
666
  readonly type: "string";
667
+ readonly pattern: "^[0-9a-f]{64}$";
693
668
  };
694
- readonly supported_resources: {
669
+ readonly expected_tasks: {
695
670
  readonly type: "array";
671
+ readonly minItems: 1;
696
672
  readonly items: {
697
- readonly type: "string";
698
- readonly enum: readonly ["project", "task_list"];
673
+ readonly $ref: "#/components/schemas/TaskSubtreeTransferExpectedTask";
699
674
  };
700
675
  };
701
- readonly conditional_create: {
702
- readonly type: "boolean";
703
- readonly enum: readonly [true];
704
- };
705
- readonly immutable_receipts: {
706
- readonly type: "boolean";
707
- readonly enum: readonly [true];
708
- };
709
- readonly exact_terminal_lookup: {
710
- readonly type: "boolean";
711
- readonly enum: readonly [true];
712
- };
713
- readonly exact_readback: {
714
- readonly type: "boolean";
715
- readonly enum: readonly [true];
716
- };
717
- readonly bind_existing_adoption: {
718
- readonly type: "boolean";
719
- readonly enum: readonly [true];
676
+ readonly shared_plan_splits: {
677
+ readonly type: "array";
678
+ readonly items: {
679
+ readonly $ref: "#/components/schemas/TaskSubtreeTransferSharedPlanSplit";
680
+ };
720
681
  };
721
- readonly prior_registration_adoption_validation: {
722
- readonly type: "boolean";
723
- readonly enum: readonly [true];
682
+ readonly source_project_id: {
683
+ readonly type: "string";
684
+ readonly format: "uuid";
724
685
  };
725
- readonly project_resource_enumeration: {
726
- readonly type: "boolean";
727
- readonly enum: readonly [true];
686
+ readonly destination_project_id: {
687
+ readonly type: "string";
688
+ readonly format: "uuid";
728
689
  };
729
- readonly project_resource_page_limit: {
730
- readonly type: "integer";
731
- readonly minimum: 1;
690
+ readonly destination_task_list_id: {
691
+ readonly type: "string";
692
+ readonly format: "uuid";
732
693
  };
733
- readonly conditional_inverse: {
734
- readonly type: "boolean";
735
- readonly enum: readonly [true];
694
+ readonly root_task_id: {
695
+ readonly type: "string";
696
+ readonly format: "uuid";
736
697
  };
737
- readonly ambiguous_outcome_reconciliation: {
738
- readonly type: "boolean";
739
- readonly enum: readonly [true];
698
+ readonly destination_parent_id: {
699
+ readonly type: "string";
700
+ readonly format: "uuid";
701
+ readonly nullable: true;
740
702
  };
741
703
  };
742
704
  };
743
- ProjectRegistrationReceipt: {
705
+ TaskSubtreeTransferTaskImage: {
744
706
  readonly type: "object";
745
707
  readonly additionalProperties: false;
746
- readonly required: readonly ["receipt_id", "authority", "route", "package_version", "authority_id", "tenant_id", "corpus_id", "operation_id", "step_id", "resource_kind", "direction", "idempotency_key", "request_digest", "precondition_digest", "outcome", "reason", "target_id", "result_revision", "result_digest", "duplicate_of_receipt_id", "accepted_receipt_id", "created_by_operation", "created_at"];
708
+ readonly required: readonly ["task_id", "project_id", "parent_id", "plan_id", "task_list_id", "version", "updated_at"];
747
709
  readonly properties: {
748
- readonly receipt_id: {
710
+ readonly task_id: {
749
711
  readonly type: "string";
712
+ readonly format: "uuid";
750
713
  };
751
- readonly authority: {
714
+ readonly project_id: {
752
715
  readonly type: "string";
753
- readonly enum: readonly ["todos"];
716
+ readonly format: "uuid";
717
+ readonly nullable: true;
754
718
  };
755
- readonly route: {
719
+ readonly parent_id: {
756
720
  readonly type: "string";
757
- readonly enum: readonly ["todos.project-registration.v1"];
721
+ readonly format: "uuid";
722
+ readonly nullable: true;
758
723
  };
759
- readonly package_version: {
724
+ readonly plan_id: {
760
725
  readonly type: "string";
726
+ readonly format: "uuid";
727
+ readonly nullable: true;
761
728
  };
762
- readonly authority_id: {
729
+ readonly task_list_id: {
763
730
  readonly type: "string";
731
+ readonly format: "uuid";
732
+ readonly nullable: true;
764
733
  };
765
- readonly tenant_id: {
766
- readonly type: "string";
734
+ readonly version: {
735
+ readonly type: "integer";
736
+ readonly minimum: 1;
767
737
  };
768
- readonly corpus_id: {
738
+ readonly updated_at: {
769
739
  readonly type: "string";
740
+ readonly format: "date-time";
770
741
  };
771
- readonly operation_id: {
772
- readonly type: "string";
742
+ };
743
+ };
744
+ TaskSubtreeTransferPlanImage: {
745
+ readonly type: "object";
746
+ readonly additionalProperties: false;
747
+ readonly required: readonly ["plan_id", "project_id", "task_list_id", "updated_at"];
748
+ readonly properties: {
749
+ readonly plan_id: {
750
+ readonly type: "string";
751
+ readonly format: "uuid";
773
752
  };
774
- readonly step_id: {
753
+ readonly project_id: {
775
754
  readonly type: "string";
755
+ readonly format: "uuid";
756
+ readonly nullable: true;
776
757
  };
777
- readonly resource_kind: {
758
+ readonly task_list_id: {
778
759
  readonly type: "string";
779
- readonly enum: readonly ["project", "task_list"];
760
+ readonly format: "uuid";
761
+ readonly nullable: true;
780
762
  };
781
- readonly direction: {
763
+ readonly updated_at: {
764
+ readonly type: "string";
765
+ readonly format: "date-time";
766
+ };
767
+ };
768
+ };
769
+ TaskSubtreeTransferImage: {
770
+ readonly type: "object";
771
+ readonly additionalProperties: false;
772
+ readonly required: readonly ["tasks", "plans"];
773
+ readonly properties: {
774
+ readonly tasks: {
775
+ readonly type: "array";
776
+ readonly items: {
777
+ readonly $ref: "#/components/schemas/TaskSubtreeTransferTaskImage";
778
+ };
779
+ };
780
+ readonly plans: {
781
+ readonly type: "array";
782
+ readonly items: {
783
+ readonly $ref: "#/components/schemas/TaskSubtreeTransferPlanImage";
784
+ };
785
+ };
786
+ };
787
+ };
788
+ TaskSubtreeTransferReceipt: {
789
+ readonly type: "object";
790
+ readonly additionalProperties: false;
791
+ readonly required: readonly ["receipt_id", "authority", "route", "schema_version", "kind", "operation_id", "step_id", "idempotency_key", "request_digest", "precondition_digest", "result_digest", "apply_receipt_id", "source_project_id", "destination_project_id", "destination_task_list_id", "root_task_id", "source_population_digest", "prior_image", "post_image", "shared_plan_splits", "created_at"];
792
+ readonly properties: {
793
+ readonly receipt_id: {
794
+ readonly type: "string";
795
+ readonly format: "uuid";
796
+ };
797
+ readonly authority: {
798
+ readonly type: "string";
799
+ readonly enum: readonly ["todos"];
800
+ };
801
+ readonly route: {
802
+ readonly type: "string";
803
+ readonly enum: readonly ["todos.task-subtree-transfer.v1"];
804
+ };
805
+ readonly schema_version: {
806
+ readonly type: "integer";
807
+ readonly enum: readonly [1];
808
+ };
809
+ readonly kind: {
810
+ readonly type: "string";
811
+ readonly enum: readonly ["apply", "rollback"];
812
+ };
813
+ readonly operation_id: {
814
+ readonly type: "string";
815
+ };
816
+ readonly step_id: {
782
817
  readonly type: "string";
783
- readonly enum: readonly ["forward", "inverse"];
784
818
  };
785
819
  readonly idempotency_key: {
786
820
  readonly type: "string";
787
821
  };
788
822
  readonly request_digest: {
789
823
  readonly type: "string";
824
+ readonly pattern: "^[0-9a-f]{64}$";
790
825
  };
791
826
  readonly precondition_digest: {
792
827
  readonly type: "string";
828
+ readonly pattern: "^[0-9a-f]{64}$";
793
829
  };
794
- readonly outcome: {
830
+ readonly result_digest: {
795
831
  readonly type: "string";
796
- readonly enum: readonly ["accepted", "duplicate_of_accepted", "terminal_nonacceptance"];
832
+ readonly pattern: "^[0-9a-f]{64}$";
797
833
  };
798
- readonly reason: {
834
+ readonly apply_receipt_id: {
799
835
  readonly type: "string";
836
+ readonly format: "uuid";
800
837
  readonly nullable: true;
801
838
  };
802
- readonly target_id: {
839
+ readonly source_project_id: {
803
840
  readonly type: "string";
804
841
  readonly format: "uuid";
805
- readonly nullable: true;
806
842
  };
807
- readonly result_revision: {
843
+ readonly destination_project_id: {
808
844
  readonly type: "string";
809
- readonly nullable: true;
845
+ readonly format: "uuid";
810
846
  };
811
- readonly result_digest: {
847
+ readonly destination_task_list_id: {
812
848
  readonly type: "string";
813
- readonly nullable: true;
849
+ readonly format: "uuid";
814
850
  };
815
- readonly duplicate_of_receipt_id: {
851
+ readonly root_task_id: {
816
852
  readonly type: "string";
817
- readonly nullable: true;
853
+ readonly format: "uuid";
818
854
  };
819
- readonly accepted_receipt_id: {
855
+ readonly source_population_digest: {
820
856
  readonly type: "string";
821
- readonly nullable: true;
857
+ readonly pattern: "^[0-9a-f]{64}$";
822
858
  };
823
- readonly created_by_operation: {
824
- readonly type: "boolean";
859
+ readonly prior_image: {
860
+ readonly $ref: "#/components/schemas/TaskSubtreeTransferImage";
861
+ };
862
+ readonly post_image: {
863
+ readonly $ref: "#/components/schemas/TaskSubtreeTransferImage";
864
+ };
865
+ readonly shared_plan_splits: {
866
+ readonly type: "array";
867
+ readonly items: {
868
+ readonly $ref: "#/components/schemas/TaskSubtreeTransferSharedPlanSplit";
869
+ };
825
870
  };
826
871
  readonly created_at: {
827
872
  readonly type: "string";
@@ -829,220 +874,311 @@ export declare function buildV1OpenApiDocument(version?: string): {
829
874
  };
830
875
  };
831
876
  };
832
- ProjectRegistrationRequest: {
877
+ TaskSubtreeTransferResult: {
833
878
  readonly type: "object";
834
879
  readonly additionalProperties: false;
835
- readonly required: readonly ["operation_id", "step_id", "resource_kind", "direction", "authority_route", "package_version", "authority_id", "tenant_id", "corpus_id", "target_selector", "idempotency_key", "request_digest", "precondition_digest", "project_id", "project_slug", "project_name", "desired", "response_byte_limit", "time_budget_ms"];
880
+ readonly required: readonly ["duplicate", "receipt", "moved_task_ids", "moved_plan_ids", "complete"];
836
881
  readonly properties: {
837
- readonly response_byte_limit: {
838
- readonly type: "integer";
839
- readonly minimum: 1;
840
- };
841
- readonly time_budget_ms: {
842
- readonly type: "integer";
843
- readonly minimum: 1;
882
+ readonly duplicate: {
883
+ readonly type: "boolean";
844
884
  };
845
- readonly operation_id: {
846
- readonly type: "string";
885
+ readonly receipt: {
886
+ readonly $ref: "#/components/schemas/TaskSubtreeTransferReceipt";
847
887
  };
848
- readonly step_id: {
849
- readonly type: "string";
888
+ readonly moved_task_ids: {
889
+ readonly type: "array";
890
+ readonly items: {
891
+ readonly type: "string";
892
+ readonly format: "uuid";
893
+ };
850
894
  };
851
- readonly resource_kind: {
852
- readonly type: "string";
853
- readonly enum: readonly ["project", "task_list"];
895
+ readonly moved_plan_ids: {
896
+ readonly type: "array";
897
+ readonly items: {
898
+ readonly type: "string";
899
+ readonly format: "uuid";
900
+ };
854
901
  };
855
- readonly direction: {
856
- readonly type: "string";
857
- readonly enum: readonly ["forward", "inverse"];
902
+ readonly complete: {
903
+ readonly type: "boolean";
904
+ readonly enum: readonly [true];
858
905
  };
859
- readonly authority_route: {
906
+ };
907
+ };
908
+ TaskSubtreeTransferCapability: {
909
+ readonly type: "object";
910
+ readonly additionalProperties: false;
911
+ readonly required: readonly ["authority", "route", "schema_version", "tenant_id", "backend", "exact_descendant_closure", "complete_source_population_digest", "per_task_version_cas", "explicit_shared_plan_splits", "atomic_apply", "immutable_forward_inverse_receipts", "prior_image_receipts", "cas_protected_rollback", "preserves_descendant_parent_ids", "preserves_task_and_relation_identities"];
912
+ readonly properties: {
913
+ readonly authority: {
860
914
  readonly type: "string";
915
+ readonly enum: readonly ["todos"];
861
916
  };
862
- readonly package_version: {
917
+ readonly route: {
863
918
  readonly type: "string";
919
+ readonly enum: readonly ["todos.task-subtree-transfer.v1"];
864
920
  };
865
- readonly authority_id: {
866
- readonly type: "string";
921
+ readonly schema_version: {
922
+ readonly type: "integer";
923
+ readonly enum: readonly [1];
867
924
  };
868
925
  readonly tenant_id: {
869
926
  readonly type: "string";
927
+ readonly minLength: 1;
928
+ readonly maxLength: 200;
870
929
  };
871
- readonly corpus_id: {
930
+ readonly backend: {
872
931
  readonly type: "string";
932
+ readonly enum: readonly ["sqlite", "postgresql", "http"];
873
933
  };
874
- readonly target_selector: {
875
- readonly type: "string";
934
+ readonly exact_descendant_closure: {
935
+ readonly type: "boolean";
936
+ readonly enum: readonly [true];
876
937
  };
877
- readonly idempotency_key: {
878
- readonly type: "string";
938
+ readonly complete_source_population_digest: {
939
+ readonly type: "boolean";
940
+ readonly enum: readonly [true];
879
941
  };
880
- readonly request_digest: {
881
- readonly type: "string";
942
+ readonly per_task_version_cas: {
943
+ readonly type: "boolean";
944
+ readonly enum: readonly [true];
882
945
  };
883
- readonly precondition_digest: {
884
- readonly type: "string";
946
+ readonly explicit_shared_plan_splits: {
947
+ readonly type: "boolean";
948
+ readonly enum: readonly [true];
885
949
  };
886
- readonly project_id: {
887
- readonly type: "string";
950
+ readonly atomic_apply: {
951
+ readonly type: "boolean";
952
+ readonly enum: readonly [true];
888
953
  };
889
- readonly project_slug: {
890
- readonly type: "string";
954
+ readonly immutable_forward_inverse_receipts: {
955
+ readonly type: "boolean";
956
+ readonly enum: readonly [true];
891
957
  };
892
- readonly project_name: {
893
- readonly type: "string";
958
+ readonly prior_image_receipts: {
959
+ readonly type: "boolean";
960
+ readonly enum: readonly [true];
894
961
  };
895
- readonly desired: {
896
- readonly type: "object";
897
- readonly additionalProperties: true;
962
+ readonly cas_protected_rollback: {
963
+ readonly type: "boolean";
964
+ readonly enum: readonly [true];
898
965
  };
899
- readonly bind_existing: {
966
+ readonly preserves_descendant_parent_ids: {
900
967
  readonly type: "boolean";
968
+ readonly enum: readonly [true];
901
969
  };
902
- readonly accepted_receipt: {
903
- readonly $ref: "#/components/schemas/ProjectRegistrationReceipt";
970
+ readonly preserves_task_and_relation_identities: {
971
+ readonly type: "boolean";
972
+ readonly enum: readonly [true];
904
973
  };
905
974
  };
906
975
  };
907
- ProjectRegistrationLookupRequest: {
976
+ TaskSubtreeTransferRollbackRequest: {
908
977
  readonly type: "object";
909
978
  readonly additionalProperties: false;
910
- readonly required: readonly ["operation_id", "step_id", "resource_kind", "direction", "authority", "authority_route", "package_version", "authority_id", "tenant_id", "corpus_id", "target_selector", "idempotency_key", "max_items", "response_byte_limit", "time_budget_ms"];
979
+ readonly required: readonly ["receipt_id", "operation_id", "step_id", "idempotency_key", "precondition_digest"];
911
980
  readonly properties: {
912
- readonly response_byte_limit: {
913
- readonly type: "integer";
914
- readonly minimum: 1;
915
- };
916
- readonly time_budget_ms: {
917
- readonly type: "integer";
918
- readonly minimum: 1;
981
+ readonly receipt_id: {
982
+ readonly type: "string";
983
+ readonly format: "uuid";
919
984
  };
920
985
  readonly operation_id: {
921
986
  readonly type: "string";
987
+ readonly minLength: 1;
988
+ readonly maxLength: 200;
922
989
  };
923
990
  readonly step_id: {
924
991
  readonly type: "string";
992
+ readonly minLength: 1;
993
+ readonly maxLength: 200;
925
994
  };
926
- readonly resource_kind: {
927
- readonly type: "string";
928
- readonly enum: readonly ["project", "task_list"];
929
- };
930
- readonly direction: {
931
- readonly type: "string";
932
- readonly enum: readonly ["forward", "inverse"];
933
- };
934
- readonly authority: {
935
- readonly type: "string";
936
- readonly enum: readonly ["todos"];
937
- };
938
- readonly authority_route: {
995
+ readonly idempotency_key: {
939
996
  readonly type: "string";
997
+ readonly minLength: 1;
998
+ readonly maxLength: 240;
940
999
  };
941
- readonly package_version: {
1000
+ readonly precondition_digest: {
942
1001
  readonly type: "string";
1002
+ readonly pattern: "^[0-9a-f]{64}$";
943
1003
  };
944
- readonly authority_id: {
1004
+ };
1005
+ };
1006
+ TaskSubtreeTransferReadExactRequest: {
1007
+ readonly type: "object";
1008
+ readonly additionalProperties: false;
1009
+ readonly required: readonly ["receipt_id"];
1010
+ readonly properties: {
1011
+ readonly receipt_id: {
945
1012
  readonly type: "string";
1013
+ readonly format: "uuid";
946
1014
  };
947
- readonly tenant_id: {
1015
+ };
1016
+ };
1017
+ TaskManifestCompensateRequest: {
1018
+ readonly type: "object";
1019
+ readonly additionalProperties: false;
1020
+ readonly required: readonly ["receipt_id", "operation_id", "step_id", "idempotency_key", "precondition_digest", "if_binding_version"];
1021
+ readonly properties: {
1022
+ readonly receipt_id: {
948
1023
  readonly type: "string";
1024
+ readonly format: "uuid";
949
1025
  };
950
- readonly corpus_id: {
1026
+ readonly operation_id: {
951
1027
  readonly type: "string";
952
1028
  };
953
- readonly target_selector: {
1029
+ readonly step_id: {
954
1030
  readonly type: "string";
955
1031
  };
956
1032
  readonly idempotency_key: {
957
1033
  readonly type: "string";
1034
+ readonly pattern: "^tmk_[0-9a-f]{48}$";
958
1035
  };
959
- readonly target_id: {
1036
+ readonly precondition_digest: {
960
1037
  readonly type: "string";
961
- readonly format: "uuid";
1038
+ readonly pattern: "^[0-9a-f]{64}$";
962
1039
  };
963
- readonly max_items: {
1040
+ readonly if_binding_version: {
964
1041
  readonly type: "integer";
965
- readonly enum: readonly [1];
1042
+ readonly minimum: 1;
966
1043
  };
967
1044
  };
968
1045
  };
969
- PriorRegistrationAdoptionValidation: {
1046
+ TaskManifestCompensationResult: {
970
1047
  readonly type: "object";
971
1048
  readonly additionalProperties: false;
972
- readonly required: readonly ["valid", "resource_kind", "target_id", "source_receipt_id", "accepted_receipt_id", "source_outcome", "created_at", "current_revision", "accepted_result_digest"];
1049
+ readonly required: readonly ["duplicate", "receipt", "absent", "readback"];
973
1050
  readonly properties: {
974
- readonly valid: {
1051
+ readonly duplicate: {
1052
+ readonly type: "boolean";
1053
+ };
1054
+ readonly receipt: {
1055
+ readonly $ref: "#/components/schemas/TaskManifestReceipt";
1056
+ };
1057
+ readonly absent: {
975
1058
  readonly type: "boolean";
976
1059
  readonly enum: readonly [true];
977
1060
  };
978
- readonly resource_kind: {
979
- readonly type: "string";
980
- readonly enum: readonly ["project", "task_list"];
1061
+ readonly readback: {
1062
+ readonly type: "object";
1063
+ readonly additionalProperties: true;
981
1064
  };
982
- readonly target_id: {
1065
+ };
1066
+ };
1067
+ TaskManifestCompensateResponse: {
1068
+ readonly type: "object";
1069
+ readonly additionalProperties: false;
1070
+ readonly required: readonly ["result"];
1071
+ readonly properties: {
1072
+ readonly result: {
1073
+ readonly $ref: "#/components/schemas/TaskManifestCompensationResult";
1074
+ };
1075
+ };
1076
+ };
1077
+ TaskManifestReadExactRequest: {
1078
+ readonly type: "object";
1079
+ readonly additionalProperties: false;
1080
+ readonly required: readonly ["receipt_id"];
1081
+ readonly properties: {
1082
+ readonly receipt_id: {
983
1083
  readonly type: "string";
984
1084
  readonly format: "uuid";
985
1085
  };
986
- readonly source_receipt_id: {
1086
+ };
1087
+ };
1088
+ TaskManifestBindingLookupRequest: {
1089
+ readonly type: "object";
1090
+ readonly additionalProperties: false;
1091
+ readonly required: readonly ["authority", "route", "schema_version", "tenant_id", "plan_id", "max_items"];
1092
+ readonly properties: {
1093
+ readonly authority: {
987
1094
  readonly type: "string";
1095
+ readonly enum: readonly ["todos"];
988
1096
  };
989
- readonly accepted_receipt_id: {
1097
+ readonly route: {
990
1098
  readonly type: "string";
1099
+ readonly enum: readonly ["todos.task-manifest.v1"];
991
1100
  };
992
- readonly source_outcome: {
993
- readonly type: "string";
994
- readonly enum: readonly ["accepted", "duplicate_of_accepted"];
1101
+ readonly schema_version: {
1102
+ readonly type: "integer";
1103
+ readonly enum: readonly [1];
995
1104
  };
996
- readonly created_at: {
1105
+ readonly tenant_id: {
997
1106
  readonly type: "string";
998
- readonly format: "date-time";
1107
+ readonly minLength: 1;
1108
+ readonly maxLength: 200;
999
1109
  };
1000
- readonly current_revision: {
1110
+ readonly plan_id: {
1001
1111
  readonly type: "string";
1002
- readonly format: "date-time";
1112
+ readonly format: "uuid";
1003
1113
  };
1004
- readonly accepted_result_digest: {
1005
- readonly type: "string";
1114
+ readonly max_items: {
1115
+ readonly type: "integer";
1116
+ readonly enum: readonly [1];
1006
1117
  };
1007
1118
  };
1008
1119
  };
1009
- ProjectResource: {
1120
+ TaskManifestBindingLookupResult: {
1010
1121
  readonly type: "object";
1011
1122
  readonly additionalProperties: false;
1012
- readonly required: readonly ["source_project_id", "kind", "scope", "target_id", "parent_id", "revision", "digest"];
1123
+ readonly required: readonly ["authority", "route", "schema_version", "tenant_id", "plan_id", "operation_id", "step_id", "apply_receipt_id", "binding_version", "state"];
1013
1124
  readonly properties: {
1014
- readonly source_project_id: {
1125
+ readonly authority: {
1015
1126
  readonly type: "string";
1127
+ readonly enum: readonly ["todos"];
1016
1128
  };
1017
- readonly kind: {
1129
+ readonly route: {
1018
1130
  readonly type: "string";
1019
- readonly enum: readonly ["project", "task_list", "plan", "task"];
1131
+ readonly enum: readonly ["todos.task-manifest.v1"];
1020
1132
  };
1021
- readonly scope: {
1133
+ readonly schema_version: {
1134
+ readonly type: "integer";
1135
+ readonly enum: readonly [1];
1136
+ };
1137
+ readonly tenant_id: {
1022
1138
  readonly type: "string";
1023
- readonly enum: readonly ["collection", "resource"];
1024
1139
  };
1025
- readonly target_id: {
1140
+ readonly plan_id: {
1026
1141
  readonly type: "string";
1027
1142
  readonly format: "uuid";
1028
1143
  };
1029
- readonly parent_id: {
1144
+ readonly operation_id: {
1030
1145
  readonly type: "string";
1031
- readonly format: "uuid";
1032
- readonly nullable: true;
1146
+ readonly minLength: 1;
1147
+ readonly maxLength: 200;
1033
1148
  };
1034
- readonly revision: {
1149
+ readonly step_id: {
1035
1150
  readonly type: "string";
1151
+ readonly minLength: 1;
1152
+ readonly maxLength: 200;
1036
1153
  };
1037
- readonly digest: {
1154
+ readonly apply_receipt_id: {
1155
+ readonly type: "string";
1156
+ readonly format: "uuid";
1157
+ };
1158
+ readonly binding_version: {
1159
+ readonly type: "integer";
1160
+ readonly minimum: 1;
1161
+ };
1162
+ readonly state: {
1038
1163
  readonly type: "string";
1164
+ readonly enum: readonly ["applied", "compensated"];
1039
1165
  };
1040
1166
  };
1041
1167
  };
1042
- ProjectResourcePage: {
1168
+ TaskManifestBindingLookupResponse: {
1043
1169
  readonly type: "object";
1044
1170
  readonly additionalProperties: false;
1045
- readonly required: readonly ["authority", "route", "package_version", "authority_id", "tenant_id", "corpus_id", "source_project_id", "todos_project_id", "task_list_id", "include_anchors", "collection_revision", "limit", "count", "resources", "has_more", "next_cursor", "complete", "truncated"];
1171
+ readonly required: readonly ["result"];
1172
+ readonly properties: {
1173
+ readonly result: {
1174
+ readonly $ref: "#/components/schemas/TaskManifestBindingLookupResult";
1175
+ };
1176
+ };
1177
+ };
1178
+ ProjectRegistrationCapability: {
1179
+ readonly type: "object";
1180
+ readonly additionalProperties: false;
1181
+ readonly required: readonly ["authority", "route", "package_version", "authority_id", "tenant_id", "corpus_id", "supported_resources", "conditional_create", "immutable_receipts", "exact_terminal_lookup", "exact_readback", "bind_existing_adoption", "prior_registration_adoption_validation", "project_resource_enumeration", "project_resource_page_limit", "conditional_inverse", "ambiguous_outcome_reconciliation"];
1046
1182
  readonly properties: {
1047
1183
  readonly authority: {
1048
1184
  readonly type: "string";
@@ -1064,404 +1200,467 @@ export declare function buildV1OpenApiDocument(version?: string): {
1064
1200
  readonly corpus_id: {
1065
1201
  readonly type: "string";
1066
1202
  };
1067
- readonly source_project_id: {
1068
- readonly type: "string";
1069
- };
1070
- readonly todos_project_id: {
1071
- readonly type: "string";
1072
- readonly format: "uuid";
1203
+ readonly supported_resources: {
1204
+ readonly type: "array";
1205
+ readonly items: {
1206
+ readonly type: "string";
1207
+ readonly enum: readonly ["project", "task_list"];
1208
+ };
1073
1209
  };
1074
- readonly task_list_id: {
1075
- readonly type: "string";
1076
- readonly format: "uuid";
1210
+ readonly conditional_create: {
1211
+ readonly type: "boolean";
1212
+ readonly enum: readonly [true];
1077
1213
  };
1078
- readonly include_anchors: {
1214
+ readonly immutable_receipts: {
1079
1215
  readonly type: "boolean";
1216
+ readonly enum: readonly [true];
1080
1217
  };
1081
- readonly collection_revision: {
1082
- readonly type: "string";
1218
+ readonly exact_terminal_lookup: {
1219
+ readonly type: "boolean";
1220
+ readonly enum: readonly [true];
1083
1221
  };
1084
- readonly limit: {
1085
- readonly type: "integer";
1086
- readonly minimum: 1;
1087
- readonly maximum: 500;
1222
+ readonly exact_readback: {
1223
+ readonly type: "boolean";
1224
+ readonly enum: readonly [true];
1088
1225
  };
1089
- readonly count: {
1090
- readonly type: "integer";
1091
- readonly minimum: 0;
1226
+ readonly bind_existing_adoption: {
1227
+ readonly type: "boolean";
1228
+ readonly enum: readonly [true];
1092
1229
  };
1093
- readonly resources: {
1094
- readonly type: "array";
1095
- readonly items: {
1096
- readonly $ref: "#/components/schemas/ProjectResource";
1097
- };
1230
+ readonly prior_registration_adoption_validation: {
1231
+ readonly type: "boolean";
1232
+ readonly enum: readonly [true];
1098
1233
  };
1099
- readonly has_more: {
1234
+ readonly project_resource_enumeration: {
1100
1235
  readonly type: "boolean";
1236
+ readonly enum: readonly [true];
1101
1237
  };
1102
- readonly next_cursor: {
1103
- readonly type: "string";
1104
- readonly nullable: true;
1238
+ readonly project_resource_page_limit: {
1239
+ readonly type: "integer";
1240
+ readonly minimum: 1;
1105
1241
  };
1106
- readonly complete: {
1242
+ readonly conditional_inverse: {
1107
1243
  readonly type: "boolean";
1244
+ readonly enum: readonly [true];
1108
1245
  };
1109
- readonly truncated: {
1246
+ readonly ambiguous_outcome_reconciliation: {
1110
1247
  readonly type: "boolean";
1111
- readonly enum: readonly [false];
1248
+ readonly enum: readonly [true];
1112
1249
  };
1113
1250
  };
1114
1251
  };
1115
- TaskList: {
1252
+ ProjectRegistrationReceipt: {
1116
1253
  readonly type: "object";
1254
+ readonly additionalProperties: false;
1255
+ readonly required: readonly ["receipt_id", "authority", "route", "package_version", "authority_id", "tenant_id", "corpus_id", "operation_id", "step_id", "resource_kind", "direction", "idempotency_key", "request_digest", "precondition_digest", "outcome", "reason", "target_id", "result_revision", "result_digest", "duplicate_of_receipt_id", "accepted_receipt_id", "created_by_operation", "created_at"];
1117
1256
  readonly properties: {
1118
- readonly id: {
1257
+ readonly receipt_id: {
1119
1258
  readonly type: "string";
1120
1259
  };
1121
- readonly project_id: {
1260
+ readonly authority: {
1122
1261
  readonly type: "string";
1123
- readonly nullable: true;
1262
+ readonly enum: readonly ["todos"];
1124
1263
  };
1125
- readonly slug: {
1264
+ readonly route: {
1126
1265
  readonly type: "string";
1266
+ readonly enum: readonly ["todos.project-registration.v1"];
1127
1267
  };
1128
- readonly name: {
1268
+ readonly package_version: {
1129
1269
  readonly type: "string";
1130
1270
  };
1131
- readonly description: {
1271
+ readonly authority_id: {
1132
1272
  readonly type: "string";
1133
- readonly nullable: true;
1134
1273
  };
1135
- readonly metadata: {
1136
- readonly type: "object";
1137
- readonly additionalProperties: true;
1274
+ readonly tenant_id: {
1275
+ readonly type: "string";
1138
1276
  };
1139
- readonly created_at: {
1277
+ readonly corpus_id: {
1140
1278
  readonly type: "string";
1141
1279
  };
1142
- readonly updated_at: {
1280
+ readonly operation_id: {
1143
1281
  readonly type: "string";
1144
1282
  };
1145
- };
1146
- };
1147
- ProjectTaskListEnsureReceipt: {
1148
- readonly type: "object";
1149
- readonly additionalProperties: false;
1150
- readonly required: readonly ["schema_version", "receipt_id", "idempotency_key", "project_id", "task_list_id", "slug", "created_by_operation", "result_revision", "result_digest", "rollback_supported", "created_at"];
1151
- readonly properties: {
1152
- readonly schema_version: {
1283
+ readonly step_id: {
1153
1284
  readonly type: "string";
1154
- readonly enum: readonly ["todos.project-task-list-ensure.v1"];
1155
1285
  };
1156
- readonly receipt_id: {
1286
+ readonly resource_kind: {
1287
+ readonly type: "string";
1288
+ readonly enum: readonly ["project", "task_list"];
1289
+ };
1290
+ readonly direction: {
1157
1291
  readonly type: "string";
1292
+ readonly enum: readonly ["forward", "inverse"];
1158
1293
  };
1159
1294
  readonly idempotency_key: {
1160
1295
  readonly type: "string";
1161
1296
  };
1162
- readonly project_id: {
1297
+ readonly request_digest: {
1163
1298
  readonly type: "string";
1164
1299
  };
1165
- readonly task_list_id: {
1300
+ readonly precondition_digest: {
1166
1301
  readonly type: "string";
1167
1302
  };
1168
- readonly slug: {
1303
+ readonly outcome: {
1169
1304
  readonly type: "string";
1305
+ readonly enum: readonly ["accepted", "duplicate_of_accepted", "terminal_nonacceptance"];
1170
1306
  };
1171
- readonly created_by_operation: {
1172
- readonly type: "boolean";
1307
+ readonly reason: {
1308
+ readonly type: "string";
1309
+ readonly nullable: true;
1310
+ };
1311
+ readonly target_id: {
1312
+ readonly type: "string";
1313
+ readonly format: "uuid";
1314
+ readonly nullable: true;
1173
1315
  };
1174
1316
  readonly result_revision: {
1175
1317
  readonly type: "string";
1318
+ readonly nullable: true;
1176
1319
  };
1177
1320
  readonly result_digest: {
1178
1321
  readonly type: "string";
1322
+ readonly nullable: true;
1179
1323
  };
1180
- readonly rollback_supported: {
1181
- readonly type: "boolean";
1182
- };
1183
- readonly created_at: {
1324
+ readonly duplicate_of_receipt_id: {
1184
1325
  readonly type: "string";
1185
- readonly format: "date-time";
1186
- };
1187
- };
1188
- };
1189
- ProjectTaskListEnsureResult: {
1190
- readonly type: "object";
1191
- readonly additionalProperties: false;
1192
- readonly required: readonly ["mode", "action", "project", "task_list", "receipt"];
1193
- readonly properties: {
1194
- readonly mode: {
1195
- readonly type: "string";
1196
- readonly enum: readonly ["plan", "apply"];
1326
+ readonly nullable: true;
1197
1327
  };
1198
- readonly action: {
1328
+ readonly accepted_receipt_id: {
1199
1329
  readonly type: "string";
1200
- readonly enum: readonly ["would_create", "created", "already_present"];
1201
- };
1202
- readonly project: {
1203
- readonly $ref: "#/components/schemas/Project";
1330
+ readonly nullable: true;
1204
1331
  };
1205
- readonly task_list: {
1206
- readonly oneOf: readonly [{
1207
- readonly $ref: "#/components/schemas/TaskList";
1208
- }, {
1209
- readonly type: "null";
1210
- }];
1332
+ readonly created_by_operation: {
1333
+ readonly type: "boolean";
1211
1334
  };
1212
- readonly receipt: {
1213
- readonly oneOf: readonly [{
1214
- readonly $ref: "#/components/schemas/ProjectTaskListEnsureReceipt";
1215
- }, {
1216
- readonly type: "null";
1217
- }];
1335
+ readonly created_at: {
1336
+ readonly type: "string";
1337
+ readonly format: "date-time";
1218
1338
  };
1219
1339
  };
1220
1340
  };
1221
- ProjectTaskListRollbackResult: {
1341
+ ProjectRegistrationRequest: {
1222
1342
  readonly type: "object";
1223
1343
  readonly additionalProperties: false;
1224
- readonly required: readonly ["schema_version", "action", "project_id", "task_list_id", "accepted_receipt_id", "rollback_receipt_id", "removed_at"];
1344
+ readonly required: readonly ["operation_id", "step_id", "resource_kind", "direction", "authority_route", "package_version", "authority_id", "tenant_id", "corpus_id", "target_selector", "idempotency_key", "request_digest", "precondition_digest", "project_id", "project_slug", "project_name", "desired", "response_byte_limit", "time_budget_ms"];
1225
1345
  readonly properties: {
1226
- readonly schema_version: {
1346
+ readonly response_byte_limit: {
1347
+ readonly type: "integer";
1348
+ readonly minimum: 1;
1349
+ };
1350
+ readonly time_budget_ms: {
1351
+ readonly type: "integer";
1352
+ readonly minimum: 1;
1353
+ };
1354
+ readonly operation_id: {
1227
1355
  readonly type: "string";
1228
- readonly enum: readonly ["todos.project-task-list-ensure.v1"];
1229
1356
  };
1230
- readonly action: {
1357
+ readonly step_id: {
1231
1358
  readonly type: "string";
1232
- readonly enum: readonly ["removed"];
1233
1359
  };
1234
- readonly project_id: {
1360
+ readonly resource_kind: {
1235
1361
  readonly type: "string";
1362
+ readonly enum: readonly ["project", "task_list"];
1236
1363
  };
1237
- readonly task_list_id: {
1364
+ readonly direction: {
1238
1365
  readonly type: "string";
1366
+ readonly enum: readonly ["forward", "inverse"];
1239
1367
  };
1240
- readonly accepted_receipt_id: {
1368
+ readonly authority_route: {
1241
1369
  readonly type: "string";
1242
1370
  };
1243
- readonly rollback_receipt_id: {
1371
+ readonly package_version: {
1244
1372
  readonly type: "string";
1245
1373
  };
1246
- readonly removed_at: {
1374
+ readonly authority_id: {
1247
1375
  readonly type: "string";
1248
- readonly format: "date-time";
1249
1376
  };
1250
- };
1251
- };
1252
- TaskComment: {
1253
- readonly type: "object";
1254
- readonly required: readonly ["id", "task_id", "agent_id", "session_id", "content", "type", "progress_pct", "created_at"];
1255
- readonly properties: {
1256
- readonly id: {
1377
+ readonly tenant_id: {
1257
1378
  readonly type: "string";
1258
1379
  };
1259
- readonly task_id: {
1380
+ readonly corpus_id: {
1260
1381
  readonly type: "string";
1261
1382
  };
1262
- readonly agent_id: {
1383
+ readonly target_selector: {
1263
1384
  readonly type: "string";
1264
- readonly nullable: true;
1265
1385
  };
1266
- readonly session_id: {
1386
+ readonly idempotency_key: {
1267
1387
  readonly type: "string";
1268
- readonly nullable: true;
1269
1388
  };
1270
- readonly content: {
1389
+ readonly request_digest: {
1271
1390
  readonly type: "string";
1272
1391
  };
1273
- readonly type: {
1392
+ readonly precondition_digest: {
1274
1393
  readonly type: "string";
1275
- readonly enum: readonly ["comment", "progress", "note"];
1276
1394
  };
1277
- readonly progress_pct: {
1278
- readonly type: "number";
1279
- readonly nullable: true;
1395
+ readonly project_id: {
1396
+ readonly type: "string";
1280
1397
  };
1281
- readonly created_at: {
1398
+ readonly project_slug: {
1282
1399
  readonly type: "string";
1283
- readonly format: "date-time";
1400
+ };
1401
+ readonly project_name: {
1402
+ readonly type: "string";
1403
+ };
1404
+ readonly desired: {
1405
+ readonly type: "object";
1406
+ readonly additionalProperties: true;
1407
+ };
1408
+ readonly bind_existing: {
1409
+ readonly type: "boolean";
1410
+ };
1411
+ readonly accepted_receipt: {
1412
+ readonly $ref: "#/components/schemas/ProjectRegistrationReceipt";
1284
1413
  };
1285
1414
  };
1286
1415
  };
1287
- StaleLockHandoffInput: {
1416
+ ProjectRegistrationLookupRequest: {
1288
1417
  readonly type: "object";
1289
1418
  readonly additionalProperties: false;
1290
- readonly required: readonly ["expected_holder", "expected_lock_version", "stale_after_seconds", "new_holder", "reason"];
1419
+ readonly required: readonly ["operation_id", "step_id", "resource_kind", "direction", "authority", "authority_route", "package_version", "authority_id", "tenant_id", "corpus_id", "target_selector", "idempotency_key", "max_items", "response_byte_limit", "time_budget_ms"];
1291
1420
  readonly properties: {
1292
- readonly expected_holder: {
1293
- readonly type: "string";
1294
- readonly minLength: 1;
1295
- };
1296
- readonly expected_lock_version: {
1297
- readonly type: "string";
1298
- readonly format: "date-time";
1299
- readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$";
1300
- readonly description: "Exact authoritative locked_at token read from the task; no default or normalization is applied.";
1421
+ readonly response_byte_limit: {
1422
+ readonly type: "integer";
1423
+ readonly minimum: 1;
1301
1424
  };
1302
- readonly stale_after_seconds: {
1425
+ readonly time_budget_ms: {
1303
1426
  readonly type: "integer";
1304
1427
  readonly minimum: 1;
1305
- readonly description: "Lock age threshold supplied by the caller. The lock must be strictly older at the CAS instant.";
1306
1428
  };
1307
- readonly new_holder: {
1429
+ readonly operation_id: {
1308
1430
  readonly type: "string";
1309
- readonly minLength: 1;
1310
- readonly description: "Must match the agent bound to the authenticated API key.";
1311
1431
  };
1312
- readonly reason: {
1432
+ readonly step_id: {
1313
1433
  readonly type: "string";
1314
- readonly minLength: 1;
1315
- readonly maxLength: 4096;
1316
1434
  };
1317
- };
1318
- };
1319
- StaleLockHandoffReceipt: {
1320
- readonly type: "object";
1321
- readonly additionalProperties: false;
1322
- readonly required: readonly ["schema_version", "receipt_id", "task_id", "actor", "previous_holder", "previous_lock_version", "new_holder", "new_lock_version", "stale_after_seconds", "stale_cutoff", "reason", "created_at"];
1323
- readonly properties: {
1324
- readonly schema_version: {
1435
+ readonly resource_kind: {
1325
1436
  readonly type: "string";
1326
- readonly enum: readonly ["todos.stale-lock-handoff.v1"];
1437
+ readonly enum: readonly ["project", "task_list"];
1327
1438
  };
1328
- readonly receipt_id: {
1439
+ readonly direction: {
1329
1440
  readonly type: "string";
1330
- readonly format: "uuid";
1441
+ readonly enum: readonly ["forward", "inverse"];
1331
1442
  };
1332
- readonly task_id: {
1443
+ readonly authority: {
1333
1444
  readonly type: "string";
1334
- readonly format: "uuid";
1445
+ readonly enum: readonly ["todos"];
1335
1446
  };
1336
- readonly actor: {
1447
+ readonly authority_route: {
1337
1448
  readonly type: "string";
1338
1449
  };
1339
- readonly previous_holder: {
1450
+ readonly package_version: {
1340
1451
  readonly type: "string";
1341
1452
  };
1342
- readonly previous_lock_version: {
1453
+ readonly authority_id: {
1343
1454
  readonly type: "string";
1344
- readonly format: "date-time";
1345
1455
  };
1346
- readonly new_holder: {
1456
+ readonly tenant_id: {
1347
1457
  readonly type: "string";
1348
1458
  };
1349
- readonly new_lock_version: {
1459
+ readonly corpus_id: {
1350
1460
  readonly type: "string";
1351
- readonly format: "date-time";
1352
- };
1353
- readonly stale_after_seconds: {
1354
- readonly type: "integer";
1355
- readonly minimum: 1;
1356
1461
  };
1357
- readonly stale_cutoff: {
1462
+ readonly target_selector: {
1358
1463
  readonly type: "string";
1359
- readonly format: "date-time";
1360
1464
  };
1361
- readonly reason: {
1465
+ readonly idempotency_key: {
1362
1466
  readonly type: "string";
1363
1467
  };
1364
- readonly created_at: {
1468
+ readonly target_id: {
1365
1469
  readonly type: "string";
1366
- readonly format: "date-time";
1470
+ readonly format: "uuid";
1471
+ };
1472
+ readonly max_items: {
1473
+ readonly type: "integer";
1474
+ readonly enum: readonly [1];
1367
1475
  };
1368
1476
  };
1369
1477
  };
1370
- TaskGitRef: {
1478
+ PriorRegistrationAdoptionValidation: {
1371
1479
  readonly type: "object";
1372
1480
  readonly additionalProperties: false;
1373
- readonly required: readonly ["id", "task_id", "ref_type", "name", "url", "provider", "metadata", "created_at", "updated_at"];
1481
+ readonly required: readonly ["valid", "resource_kind", "target_id", "source_receipt_id", "accepted_receipt_id", "source_outcome", "created_at", "current_revision", "accepted_result_digest"];
1374
1482
  readonly properties: {
1375
- readonly id: {
1376
- readonly type: "string";
1377
- readonly minLength: 1;
1483
+ readonly valid: {
1484
+ readonly type: "boolean";
1485
+ readonly enum: readonly [true];
1378
1486
  };
1379
- readonly task_id: {
1487
+ readonly resource_kind: {
1380
1488
  readonly type: "string";
1381
- readonly minLength: 1;
1489
+ readonly enum: readonly ["project", "task_list"];
1382
1490
  };
1383
- readonly ref_type: {
1491
+ readonly target_id: {
1384
1492
  readonly type: "string";
1385
- readonly enum: readonly ["branch", "pull_request"];
1493
+ readonly format: "uuid";
1386
1494
  };
1387
- readonly name: {
1495
+ readonly source_receipt_id: {
1388
1496
  readonly type: "string";
1389
- readonly minLength: 1;
1390
1497
  };
1391
- readonly url: {
1498
+ readonly accepted_receipt_id: {
1392
1499
  readonly type: "string";
1393
- readonly nullable: true;
1394
1500
  };
1395
- readonly provider: {
1501
+ readonly source_outcome: {
1396
1502
  readonly type: "string";
1397
- readonly nullable: true;
1398
- };
1399
- readonly metadata: {
1400
- readonly type: "object";
1401
- readonly additionalProperties: true;
1503
+ readonly enum: readonly ["accepted", "duplicate_of_accepted"];
1402
1504
  };
1403
1505
  readonly created_at: {
1404
1506
  readonly type: "string";
1405
1507
  readonly format: "date-time";
1406
1508
  };
1407
- readonly updated_at: {
1509
+ readonly current_revision: {
1408
1510
  readonly type: "string";
1409
1511
  readonly format: "date-time";
1410
1512
  };
1513
+ readonly accepted_result_digest: {
1514
+ readonly type: "string";
1515
+ };
1411
1516
  };
1412
1517
  };
1413
- Plan: {
1518
+ ProjectResource: {
1414
1519
  readonly type: "object";
1415
- readonly required: readonly ["id", "slug", "name", "status", "created_at", "updated_at"];
1520
+ readonly additionalProperties: false;
1521
+ readonly required: readonly ["source_project_id", "kind", "scope", "target_id", "parent_id", "revision", "digest"];
1416
1522
  readonly properties: {
1417
- readonly id: {
1418
- readonly type: "string";
1419
- };
1420
- readonly slug: {
1421
- readonly type: "string";
1422
- readonly nullable: true;
1423
- };
1424
- readonly project_id: {
1523
+ readonly source_project_id: {
1425
1524
  readonly type: "string";
1426
- readonly nullable: true;
1427
1525
  };
1428
- readonly task_list_id: {
1526
+ readonly kind: {
1429
1527
  readonly type: "string";
1430
- readonly nullable: true;
1528
+ readonly enum: readonly ["project", "task_list", "plan", "task"];
1431
1529
  };
1432
- readonly agent_id: {
1530
+ readonly scope: {
1433
1531
  readonly type: "string";
1434
- readonly nullable: true;
1532
+ readonly enum: readonly ["collection", "resource"];
1435
1533
  };
1436
- readonly name: {
1534
+ readonly target_id: {
1437
1535
  readonly type: "string";
1536
+ readonly format: "uuid";
1438
1537
  };
1439
- readonly description: {
1538
+ readonly parent_id: {
1440
1539
  readonly type: "string";
1540
+ readonly format: "uuid";
1441
1541
  readonly nullable: true;
1442
1542
  };
1443
- readonly status: {
1543
+ readonly revision: {
1444
1544
  readonly type: "string";
1445
- readonly enum: readonly ["active", "completed", "archived"];
1446
1545
  };
1447
- readonly created_at: {
1546
+ readonly digest: {
1547
+ readonly type: "string";
1548
+ };
1549
+ };
1550
+ };
1551
+ ProjectResourcePage: {
1552
+ readonly type: "object";
1553
+ readonly additionalProperties: false;
1554
+ readonly required: readonly ["authority", "route", "package_version", "authority_id", "tenant_id", "corpus_id", "source_project_id", "todos_project_id", "task_list_id", "include_anchors", "collection_revision", "limit", "count", "resources", "has_more", "next_cursor", "complete", "truncated"];
1555
+ readonly properties: {
1556
+ readonly authority: {
1557
+ readonly type: "string";
1558
+ readonly enum: readonly ["todos"];
1559
+ };
1560
+ readonly route: {
1561
+ readonly type: "string";
1562
+ readonly enum: readonly ["todos.project-registration.v1"];
1563
+ };
1564
+ readonly package_version: {
1565
+ readonly type: "string";
1566
+ };
1567
+ readonly authority_id: {
1568
+ readonly type: "string";
1569
+ };
1570
+ readonly tenant_id: {
1571
+ readonly type: "string";
1572
+ };
1573
+ readonly corpus_id: {
1574
+ readonly type: "string";
1575
+ };
1576
+ readonly source_project_id: {
1577
+ readonly type: "string";
1578
+ };
1579
+ readonly todos_project_id: {
1580
+ readonly type: "string";
1581
+ readonly format: "uuid";
1582
+ };
1583
+ readonly task_list_id: {
1584
+ readonly type: "string";
1585
+ readonly format: "uuid";
1586
+ };
1587
+ readonly include_anchors: {
1588
+ readonly type: "boolean";
1589
+ };
1590
+ readonly collection_revision: {
1591
+ readonly type: "string";
1592
+ };
1593
+ readonly limit: {
1594
+ readonly type: "integer";
1595
+ readonly minimum: 1;
1596
+ readonly maximum: 500;
1597
+ };
1598
+ readonly count: {
1599
+ readonly type: "integer";
1600
+ readonly minimum: 0;
1601
+ };
1602
+ readonly resources: {
1603
+ readonly type: "array";
1604
+ readonly items: {
1605
+ readonly $ref: "#/components/schemas/ProjectResource";
1606
+ };
1607
+ };
1608
+ readonly has_more: {
1609
+ readonly type: "boolean";
1610
+ };
1611
+ readonly next_cursor: {
1612
+ readonly type: "string";
1613
+ readonly nullable: true;
1614
+ };
1615
+ readonly complete: {
1616
+ readonly type: "boolean";
1617
+ };
1618
+ readonly truncated: {
1619
+ readonly type: "boolean";
1620
+ readonly enum: readonly [false];
1621
+ };
1622
+ };
1623
+ };
1624
+ TaskList: {
1625
+ readonly type: "object";
1626
+ readonly properties: {
1627
+ readonly id: {
1628
+ readonly type: "string";
1629
+ };
1630
+ readonly project_id: {
1631
+ readonly type: "string";
1632
+ readonly nullable: true;
1633
+ };
1634
+ readonly slug: {
1635
+ readonly type: "string";
1636
+ };
1637
+ readonly name: {
1638
+ readonly type: "string";
1639
+ };
1640
+ readonly description: {
1641
+ readonly type: "string";
1642
+ readonly nullable: true;
1643
+ };
1644
+ readonly metadata: {
1645
+ readonly type: "object";
1646
+ readonly additionalProperties: true;
1647
+ };
1648
+ readonly created_at: {
1448
1649
  readonly type: "string";
1449
- readonly format: "date-time";
1450
1650
  };
1451
1651
  readonly updated_at: {
1452
1652
  readonly type: "string";
1453
- readonly format: "date-time";
1454
1653
  };
1455
1654
  };
1456
1655
  };
1457
- PlanProjectLinkReceipt: {
1656
+ ProjectTaskListEnsureReceipt: {
1458
1657
  readonly type: "object";
1459
1658
  readonly additionalProperties: false;
1460
- readonly required: readonly ["schema_version", "receipt_id", "idempotency_key", "plan_id", "project_id", "prior_plan_project_id", "prior_task_project_ids", "task_ids", "task_count", "result_plan_revision", "result_digest", "rollback_supported", "created_at"];
1659
+ readonly required: readonly ["schema_version", "receipt_id", "idempotency_key", "project_id", "task_list_id", "slug", "created_by_operation", "result_revision", "result_digest", "rollback_supported", "created_at"];
1461
1660
  readonly properties: {
1462
1661
  readonly schema_version: {
1463
1662
  readonly type: "string";
1464
- readonly enum: readonly ["todos.plan-project-link.v1"];
1663
+ readonly enum: readonly ["todos.project-task-list-ensure.v1"];
1465
1664
  };
1466
1665
  readonly receipt_id: {
1467
1666
  readonly type: "string";
@@ -1469,34 +1668,19 @@ export declare function buildV1OpenApiDocument(version?: string): {
1469
1668
  readonly idempotency_key: {
1470
1669
  readonly type: "string";
1471
1670
  };
1472
- readonly plan_id: {
1473
- readonly type: "string";
1474
- };
1475
1671
  readonly project_id: {
1476
1672
  readonly type: "string";
1477
1673
  };
1478
- readonly prior_plan_project_id: {
1674
+ readonly task_list_id: {
1479
1675
  readonly type: "string";
1480
- readonly nullable: true;
1481
- };
1482
- readonly prior_task_project_ids: {
1483
- readonly type: "object";
1484
- readonly additionalProperties: {
1485
- readonly type: "string";
1486
- readonly nullable: true;
1487
- };
1488
1676
  };
1489
- readonly task_ids: {
1490
- readonly type: "array";
1491
- readonly items: {
1492
- readonly type: "string";
1493
- };
1677
+ readonly slug: {
1678
+ readonly type: "string";
1494
1679
  };
1495
- readonly task_count: {
1496
- readonly type: "integer";
1497
- readonly minimum: 0;
1680
+ readonly created_by_operation: {
1681
+ readonly type: "boolean";
1498
1682
  };
1499
- readonly result_plan_revision: {
1683
+ readonly result_revision: {
1500
1684
  readonly type: "string";
1501
1685
  };
1502
1686
  readonly result_digest: {
@@ -1504,7 +1688,6 @@ export declare function buildV1OpenApiDocument(version?: string): {
1504
1688
  };
1505
1689
  readonly rollback_supported: {
1506
1690
  readonly type: "boolean";
1507
- readonly enum: readonly [true];
1508
1691
  };
1509
1692
  readonly created_at: {
1510
1693
  readonly type: "string";
@@ -1512,10 +1695,10 @@ export declare function buildV1OpenApiDocument(version?: string): {
1512
1695
  };
1513
1696
  };
1514
1697
  };
1515
- PlanProjectLinkResult: {
1698
+ ProjectTaskListEnsureResult: {
1516
1699
  readonly type: "object";
1517
1700
  readonly additionalProperties: false;
1518
- readonly required: readonly ["mode", "action", "plan", "project", "tasks", "receipt"];
1701
+ readonly required: readonly ["mode", "action", "project", "task_list", "receipt"];
1519
1702
  readonly properties: {
1520
1703
  readonly mode: {
1521
1704
  readonly type: "string";
@@ -1523,50 +1706,45 @@ export declare function buildV1OpenApiDocument(version?: string): {
1523
1706
  };
1524
1707
  readonly action: {
1525
1708
  readonly type: "string";
1526
- readonly enum: readonly ["would_link", "linked", "already_linked"];
1527
- };
1528
- readonly plan: {
1529
- readonly $ref: "#/components/schemas/Plan";
1709
+ readonly enum: readonly ["would_create", "created", "already_present"];
1530
1710
  };
1531
1711
  readonly project: {
1532
1712
  readonly $ref: "#/components/schemas/Project";
1533
1713
  };
1534
- readonly tasks: {
1535
- readonly type: "array";
1536
- readonly items: {
1537
- readonly $ref: "#/components/schemas/Task";
1538
- };
1714
+ readonly task_list: {
1715
+ readonly oneOf: readonly [{
1716
+ readonly $ref: "#/components/schemas/TaskList";
1717
+ }, {
1718
+ readonly type: "null";
1719
+ }];
1539
1720
  };
1540
1721
  readonly receipt: {
1541
1722
  readonly oneOf: readonly [{
1542
- readonly $ref: "#/components/schemas/PlanProjectLinkReceipt";
1723
+ readonly $ref: "#/components/schemas/ProjectTaskListEnsureReceipt";
1543
1724
  }, {
1544
1725
  readonly type: "null";
1545
1726
  }];
1546
1727
  };
1547
1728
  };
1548
1729
  };
1549
- PlanProjectLinkRollbackResult: {
1730
+ ProjectTaskListRollbackResult: {
1550
1731
  readonly type: "object";
1551
1732
  readonly additionalProperties: false;
1552
- readonly required: readonly ["schema_version", "action", "plan", "tasks", "accepted_receipt_id", "rollback_receipt_id", "restored_at"];
1733
+ readonly required: readonly ["schema_version", "action", "project_id", "task_list_id", "accepted_receipt_id", "rollback_receipt_id", "removed_at"];
1553
1734
  readonly properties: {
1554
1735
  readonly schema_version: {
1555
1736
  readonly type: "string";
1556
- readonly enum: readonly ["todos.plan-project-link.v1"];
1737
+ readonly enum: readonly ["todos.project-task-list-ensure.v1"];
1557
1738
  };
1558
1739
  readonly action: {
1559
1740
  readonly type: "string";
1560
- readonly enum: readonly ["restored"];
1741
+ readonly enum: readonly ["removed"];
1561
1742
  };
1562
- readonly plan: {
1563
- readonly $ref: "#/components/schemas/Plan";
1743
+ readonly project_id: {
1744
+ readonly type: "string";
1564
1745
  };
1565
- readonly tasks: {
1566
- readonly type: "array";
1567
- readonly items: {
1568
- readonly $ref: "#/components/schemas/Task";
1569
- };
1746
+ readonly task_list_id: {
1747
+ readonly type: "string";
1570
1748
  };
1571
1749
  readonly accepted_receipt_id: {
1572
1750
  readonly type: "string";
@@ -1574,652 +1752,722 @@ export declare function buildV1OpenApiDocument(version?: string): {
1574
1752
  readonly rollback_receipt_id: {
1575
1753
  readonly type: "string";
1576
1754
  };
1577
- readonly restored_at: {
1755
+ readonly removed_at: {
1578
1756
  readonly type: "string";
1579
1757
  readonly format: "date-time";
1580
1758
  };
1581
1759
  };
1582
1760
  };
1583
- Template: {
1761
+ TaskComment: {
1584
1762
  readonly type: "object";
1585
- readonly required: readonly ["id", "name", "title_pattern", "priority", "tags", "variables", "version", "metadata", "created_at"];
1763
+ readonly required: readonly ["id", "task_id", "agent_id", "session_id", "content", "type", "progress_pct", "created_at"];
1586
1764
  readonly properties: {
1587
1765
  readonly id: {
1588
1766
  readonly type: "string";
1589
1767
  };
1590
- readonly name: {
1768
+ readonly task_id: {
1591
1769
  readonly type: "string";
1592
1770
  };
1593
- readonly title_pattern: {
1771
+ readonly agent_id: {
1594
1772
  readonly type: "string";
1773
+ readonly nullable: true;
1595
1774
  };
1596
- readonly description: {
1775
+ readonly session_id: {
1597
1776
  readonly type: "string";
1598
1777
  readonly nullable: true;
1599
1778
  };
1600
- readonly priority: {
1779
+ readonly content: {
1601
1780
  readonly type: "string";
1602
- readonly enum: readonly ["low", "medium", "high", "critical"];
1603
- };
1604
- readonly tags: {
1605
- readonly type: "array";
1606
- readonly items: {
1607
- readonly type: "string";
1608
- };
1609
- };
1610
- readonly variables: {
1611
- readonly type: "array";
1612
- readonly items: {
1613
- readonly type: "object";
1614
- readonly properties: {
1615
- readonly name: {
1616
- readonly type: "string";
1617
- };
1618
- readonly required: {
1619
- readonly type: "boolean";
1620
- };
1621
- readonly default: {
1622
- readonly type: "string";
1623
- };
1624
- readonly description: {
1625
- readonly type: "string";
1626
- };
1627
- };
1628
- };
1629
- };
1630
- readonly version: {
1631
- readonly type: "integer";
1632
- readonly minimum: 1;
1633
1781
  };
1634
- readonly project_id: {
1782
+ readonly type: {
1635
1783
  readonly type: "string";
1636
- readonly nullable: true;
1784
+ readonly enum: readonly ["comment", "progress", "note"];
1637
1785
  };
1638
- readonly plan_id: {
1639
- readonly type: "string";
1786
+ readonly progress_pct: {
1787
+ readonly type: "number";
1640
1788
  readonly nullable: true;
1641
1789
  };
1642
- readonly metadata: {
1643
- readonly type: "object";
1644
- readonly additionalProperties: true;
1645
- };
1646
1790
  readonly created_at: {
1647
1791
  readonly type: "string";
1648
1792
  readonly format: "date-time";
1649
1793
  };
1650
- readonly tasks: {
1651
- readonly type: "array";
1652
- readonly items: {
1653
- readonly $ref: "#/components/schemas/TemplateTask";
1654
- };
1655
- };
1656
1794
  };
1657
1795
  };
1658
- TemplateTask: {
1796
+ StaleLockHandoffInput: {
1659
1797
  readonly type: "object";
1660
- readonly required: readonly ["id", "template_id", "position", "title_pattern", "priority", "tags", "depends_on_positions", "metadata", "created_at"];
1798
+ readonly additionalProperties: false;
1799
+ readonly required: readonly ["expected_holder", "expected_lock_version", "stale_after_seconds", "new_holder", "reason"];
1661
1800
  readonly properties: {
1662
- readonly id: {
1801
+ readonly expected_holder: {
1663
1802
  readonly type: "string";
1803
+ readonly minLength: 1;
1664
1804
  };
1665
- readonly template_id: {
1805
+ readonly expected_lock_version: {
1666
1806
  readonly type: "string";
1807
+ readonly format: "date-time";
1808
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$";
1809
+ readonly description: "Exact authoritative locked_at token read from the task; no default or normalization is applied.";
1667
1810
  };
1668
- readonly position: {
1811
+ readonly stale_after_seconds: {
1669
1812
  readonly type: "integer";
1670
- readonly minimum: 0;
1813
+ readonly minimum: 1;
1814
+ readonly description: "Lock age threshold supplied by the caller. The lock must be strictly older at the CAS instant.";
1671
1815
  };
1672
- readonly title_pattern: {
1816
+ readonly new_holder: {
1673
1817
  readonly type: "string";
1818
+ readonly minLength: 1;
1819
+ readonly description: "Must match the agent bound to the authenticated API key.";
1674
1820
  };
1675
- readonly description: {
1821
+ readonly reason: {
1676
1822
  readonly type: "string";
1677
- readonly nullable: true;
1823
+ readonly minLength: 1;
1824
+ readonly maxLength: 4096;
1678
1825
  };
1679
- readonly priority: {
1826
+ };
1827
+ };
1828
+ StaleLockHandoffReceipt: {
1829
+ readonly type: "object";
1830
+ readonly additionalProperties: false;
1831
+ readonly required: readonly ["schema_version", "receipt_id", "task_id", "actor", "previous_holder", "previous_lock_version", "new_holder", "new_lock_version", "stale_after_seconds", "stale_cutoff", "reason", "created_at"];
1832
+ readonly properties: {
1833
+ readonly schema_version: {
1680
1834
  readonly type: "string";
1681
- readonly enum: readonly ["low", "medium", "high", "critical"];
1835
+ readonly enum: readonly ["todos.stale-lock-handoff.v1"];
1682
1836
  };
1683
- readonly tags: {
1684
- readonly type: "array";
1685
- readonly items: {
1686
- readonly type: "string";
1687
- };
1837
+ readonly receipt_id: {
1838
+ readonly type: "string";
1839
+ readonly format: "uuid";
1688
1840
  };
1689
- readonly task_type: {
1841
+ readonly task_id: {
1690
1842
  readonly type: "string";
1691
- readonly nullable: true;
1843
+ readonly format: "uuid";
1692
1844
  };
1693
- readonly condition: {
1845
+ readonly actor: {
1694
1846
  readonly type: "string";
1695
- readonly nullable: true;
1696
1847
  };
1697
- readonly include_template_id: {
1848
+ readonly previous_holder: {
1698
1849
  readonly type: "string";
1699
- readonly nullable: true;
1700
1850
  };
1701
- readonly depends_on_positions: {
1702
- readonly type: "array";
1703
- readonly items: {
1704
- readonly type: "integer";
1705
- readonly minimum: 0;
1706
- };
1851
+ readonly previous_lock_version: {
1852
+ readonly type: "string";
1853
+ readonly format: "date-time";
1707
1854
  };
1708
- readonly metadata: {
1709
- readonly type: "object";
1710
- readonly additionalProperties: true;
1855
+ readonly new_holder: {
1856
+ readonly type: "string";
1711
1857
  };
1712
- readonly created_at: {
1858
+ readonly new_lock_version: {
1713
1859
  readonly type: "string";
1714
1860
  readonly format: "date-time";
1715
1861
  };
1716
- };
1717
- };
1718
- TemplateVariable: {
1719
- readonly type: "object";
1720
- readonly required: readonly ["name", "required"];
1721
- readonly properties: {
1722
- readonly name: {
1723
- readonly type: "string";
1862
+ readonly stale_after_seconds: {
1863
+ readonly type: "integer";
1864
+ readonly minimum: 1;
1724
1865
  };
1725
- readonly required: {
1726
- readonly type: "boolean";
1866
+ readonly stale_cutoff: {
1867
+ readonly type: "string";
1868
+ readonly format: "date-time";
1727
1869
  };
1728
- readonly default: {
1870
+ readonly reason: {
1729
1871
  readonly type: "string";
1730
1872
  };
1731
- readonly description: {
1873
+ readonly created_at: {
1732
1874
  readonly type: "string";
1875
+ readonly format: "date-time";
1733
1876
  };
1734
1877
  };
1735
1878
  };
1736
- CreateTemplateTaskInput: {
1879
+ TaskGitRef: {
1737
1880
  readonly type: "object";
1738
1881
  readonly additionalProperties: false;
1739
- readonly required: readonly ["title_pattern"];
1882
+ readonly required: readonly ["id", "task_id", "ref_type", "name", "url", "provider", "metadata", "created_at", "updated_at"];
1740
1883
  readonly properties: {
1741
- readonly position: {
1742
- readonly type: "integer";
1743
- readonly minimum: 0;
1744
- };
1745
- readonly title_pattern: {
1884
+ readonly id: {
1746
1885
  readonly type: "string";
1747
1886
  readonly minLength: 1;
1748
1887
  };
1749
- readonly description: {
1888
+ readonly task_id: {
1750
1889
  readonly type: "string";
1751
- readonly nullable: true;
1890
+ readonly minLength: 1;
1752
1891
  };
1753
- readonly priority: {
1892
+ readonly ref_type: {
1754
1893
  readonly type: "string";
1755
- readonly enum: readonly ["low", "medium", "high", "critical"];
1756
- };
1757
- readonly tags: {
1758
- readonly type: "array";
1759
- readonly items: {
1760
- readonly type: "string";
1761
- readonly minLength: 1;
1762
- };
1894
+ readonly enum: readonly ["branch", "pull_request"];
1763
1895
  };
1764
- readonly task_type: {
1896
+ readonly name: {
1765
1897
  readonly type: "string";
1766
- readonly nullable: true;
1898
+ readonly minLength: 1;
1767
1899
  };
1768
- readonly condition: {
1900
+ readonly url: {
1769
1901
  readonly type: "string";
1770
1902
  readonly nullable: true;
1771
1903
  };
1772
- readonly include_template_id: {
1904
+ readonly provider: {
1773
1905
  readonly type: "string";
1774
1906
  readonly nullable: true;
1775
1907
  };
1776
- readonly depends_on: {
1777
- readonly type: "array";
1778
- readonly items: {
1779
- readonly type: "integer";
1780
- readonly minimum: 0;
1781
- };
1782
- };
1783
- readonly depends_on_positions: {
1784
- readonly type: "array";
1785
- readonly items: {
1786
- readonly type: "integer";
1787
- readonly minimum: 0;
1788
- };
1789
- };
1790
1908
  readonly metadata: {
1791
1909
  readonly type: "object";
1792
1910
  readonly additionalProperties: true;
1793
1911
  };
1912
+ readonly created_at: {
1913
+ readonly type: "string";
1914
+ readonly format: "date-time";
1915
+ };
1916
+ readonly updated_at: {
1917
+ readonly type: "string";
1918
+ readonly format: "date-time";
1919
+ };
1794
1920
  };
1795
1921
  };
1796
- CreateTaskInput: {
1797
- type: string;
1798
- required: string[];
1799
- properties: {
1800
- title: {
1801
- type: string;
1802
- };
1803
- description: {
1804
- type: string;
1805
- nullable: boolean;
1922
+ Plan: {
1923
+ readonly type: "object";
1924
+ readonly required: readonly ["id", "slug", "name", "status", "created_at", "updated_at"];
1925
+ readonly properties: {
1926
+ readonly id: {
1927
+ readonly type: "string";
1806
1928
  };
1807
- status: {
1808
- type: string;
1809
- enum: ("pending" | "in_progress" | "completed" | "failed" | "cancelled")[];
1929
+ readonly slug: {
1930
+ readonly type: "string";
1931
+ readonly nullable: true;
1810
1932
  };
1811
- priority: {
1812
- type: string;
1813
- enum: ("low" | "medium" | "high" | "critical")[];
1933
+ readonly project_id: {
1934
+ readonly type: "string";
1935
+ readonly nullable: true;
1814
1936
  };
1815
- project_id: {
1816
- type: string;
1937
+ readonly task_list_id: {
1938
+ readonly type: "string";
1939
+ readonly nullable: true;
1817
1940
  };
1818
- parent_id: {
1819
- type: string;
1941
+ readonly agent_id: {
1942
+ readonly type: "string";
1943
+ readonly nullable: true;
1820
1944
  };
1821
- plan_id: {
1822
- type: string;
1945
+ readonly name: {
1946
+ readonly type: "string";
1823
1947
  };
1824
- assigned_to: {
1825
- type: string;
1948
+ readonly description: {
1949
+ readonly type: "string";
1950
+ readonly nullable: true;
1826
1951
  };
1827
- agent_id: {
1828
- type: string;
1952
+ readonly status: {
1953
+ readonly type: "string";
1954
+ readonly enum: readonly ["active", "completed", "archived"];
1829
1955
  };
1830
- created_by: {
1831
- type: string;
1956
+ readonly created_at: {
1957
+ readonly type: "string";
1958
+ readonly format: "date-time";
1832
1959
  };
1833
- tags: {
1834
- type: string;
1835
- items: {
1836
- type: string;
1837
- };
1960
+ readonly updated_at: {
1961
+ readonly type: "string";
1962
+ readonly format: "date-time";
1838
1963
  };
1839
1964
  };
1840
1965
  };
1841
- UpdateTaskInput: {
1842
- type: string;
1843
- properties: {
1844
- title: {
1845
- type: string;
1966
+ PlanProjectLinkReceipt: {
1967
+ readonly type: "object";
1968
+ readonly additionalProperties: false;
1969
+ readonly required: readonly ["schema_version", "receipt_id", "idempotency_key", "plan_id", "project_id", "prior_plan_project_id", "prior_task_project_ids", "task_ids", "task_count", "result_plan_revision", "result_digest", "rollback_supported", "created_at"];
1970
+ readonly properties: {
1971
+ readonly schema_version: {
1972
+ readonly type: "string";
1973
+ readonly enum: readonly ["todos.plan-project-link.v1"];
1846
1974
  };
1847
- description: {
1848
- type: string;
1975
+ readonly receipt_id: {
1976
+ readonly type: "string";
1849
1977
  };
1850
- status: {
1851
- type: string;
1852
- enum: ("pending" | "in_progress" | "completed" | "failed" | "cancelled")[];
1978
+ readonly idempotency_key: {
1979
+ readonly type: "string";
1853
1980
  };
1854
- priority: {
1855
- type: string;
1856
- enum: ("low" | "medium" | "high" | "critical")[];
1981
+ readonly plan_id: {
1982
+ readonly type: "string";
1857
1983
  };
1858
- assigned_to: {
1859
- type: string;
1984
+ readonly project_id: {
1985
+ readonly type: "string";
1860
1986
  };
1861
- project_id: {
1862
- type: string;
1863
- nullable: boolean;
1987
+ readonly prior_plan_project_id: {
1988
+ readonly type: "string";
1989
+ readonly nullable: true;
1864
1990
  };
1865
- parent_id: {
1866
- type: string;
1867
- nullable: boolean;
1991
+ readonly prior_task_project_ids: {
1992
+ readonly type: "object";
1993
+ readonly additionalProperties: {
1994
+ readonly type: "string";
1995
+ readonly nullable: true;
1996
+ };
1868
1997
  };
1869
- plan_id: {
1870
- type: string;
1871
- nullable: boolean;
1998
+ readonly task_ids: {
1999
+ readonly type: "array";
2000
+ readonly items: {
2001
+ readonly type: "string";
2002
+ };
1872
2003
  };
1873
- task_list_id: {
1874
- type: string;
1875
- nullable: boolean;
2004
+ readonly task_count: {
2005
+ readonly type: "integer";
2006
+ readonly minimum: 0;
1876
2007
  };
1877
- version: {
1878
- type: string;
2008
+ readonly result_plan_revision: {
2009
+ readonly type: "string";
2010
+ };
2011
+ readonly result_digest: {
2012
+ readonly type: "string";
2013
+ };
2014
+ readonly rollback_supported: {
2015
+ readonly type: "boolean";
2016
+ readonly enum: readonly [true];
2017
+ };
2018
+ readonly created_at: {
2019
+ readonly type: "string";
2020
+ readonly format: "date-time";
1879
2021
  };
1880
2022
  };
1881
2023
  };
1882
- CompleteTaskInput: {
1883
- type: string;
1884
- additionalProperties: boolean;
1885
- properties: {
1886
- agent_id: {
1887
- type: string;
1888
- minLength: number;
1889
- };
1890
- attachment_ids: {
1891
- type: string;
1892
- items: {
1893
- type: string;
1894
- minLength: number;
1895
- };
2024
+ PlanProjectLinkResult: {
2025
+ readonly type: "object";
2026
+ readonly additionalProperties: false;
2027
+ readonly required: readonly ["mode", "action", "plan", "project", "tasks", "receipt"];
2028
+ readonly properties: {
2029
+ readonly mode: {
2030
+ readonly type: "string";
2031
+ readonly enum: readonly ["plan", "apply"];
1896
2032
  };
1897
- files_changed: {
1898
- type: string;
1899
- items: {
1900
- type: string;
1901
- minLength: number;
1902
- };
2033
+ readonly action: {
2034
+ readonly type: "string";
2035
+ readonly enum: readonly ["would_link", "linked", "already_linked"];
1903
2036
  };
1904
- test_results: {
1905
- type: string;
2037
+ readonly plan: {
2038
+ readonly $ref: "#/components/schemas/Plan";
1906
2039
  };
1907
- commit_hash: {
1908
- type: string;
2040
+ readonly project: {
2041
+ readonly $ref: "#/components/schemas/Project";
1909
2042
  };
1910
- notes: {
1911
- type: string;
2043
+ readonly tasks: {
2044
+ readonly type: "array";
2045
+ readonly items: {
2046
+ readonly $ref: "#/components/schemas/Task";
2047
+ };
1912
2048
  };
1913
- confidence: {
1914
- type: string;
1915
- minimum: number;
1916
- maximum: number;
2049
+ readonly receipt: {
2050
+ readonly oneOf: readonly [{
2051
+ readonly $ref: "#/components/schemas/PlanProjectLinkReceipt";
2052
+ }, {
2053
+ readonly type: "null";
2054
+ }];
1917
2055
  };
1918
2056
  };
1919
2057
  };
1920
- FailTaskInput: {
1921
- type: string;
1922
- additionalProperties: boolean;
1923
- properties: {
1924
- agent_id: {
1925
- type: string;
1926
- minLength: number;
2058
+ PlanProjectLinkRollbackResult: {
2059
+ readonly type: "object";
2060
+ readonly additionalProperties: false;
2061
+ readonly required: readonly ["schema_version", "action", "plan", "tasks", "accepted_receipt_id", "rollback_receipt_id", "restored_at"];
2062
+ readonly properties: {
2063
+ readonly schema_version: {
2064
+ readonly type: "string";
2065
+ readonly enum: readonly ["todos.plan-project-link.v1"];
1927
2066
  };
1928
- reason: {
1929
- type: string;
2067
+ readonly action: {
2068
+ readonly type: "string";
2069
+ readonly enum: readonly ["restored"];
1930
2070
  };
1931
- retry: {
1932
- type: string;
2071
+ readonly plan: {
2072
+ readonly $ref: "#/components/schemas/Plan";
1933
2073
  };
1934
- };
1935
- };
1936
- TaskFailureResult: {
1937
- type: string;
1938
- additionalProperties: boolean;
1939
- required: string[];
1940
- properties: {
1941
- task: {
1942
- $ref: string;
2074
+ readonly tasks: {
2075
+ readonly type: "array";
2076
+ readonly items: {
2077
+ readonly $ref: "#/components/schemas/Task";
2078
+ };
1943
2079
  };
1944
- retryTask: {
1945
- $ref: string;
2080
+ readonly accepted_receipt_id: {
2081
+ readonly type: "string";
2082
+ };
2083
+ readonly rollback_receipt_id: {
2084
+ readonly type: "string";
2085
+ };
2086
+ readonly restored_at: {
2087
+ readonly type: "string";
2088
+ readonly format: "date-time";
1946
2089
  };
1947
2090
  };
1948
2091
  };
1949
- CreateProjectInput: {
1950
- type: string;
1951
- additionalProperties: boolean;
1952
- required: string[];
1953
- properties: {
1954
- name: {
1955
- type: string;
1956
- minLength: number;
1957
- pattern: string;
2092
+ Template: {
2093
+ readonly type: "object";
2094
+ readonly required: readonly ["id", "name", "title_pattern", "priority", "tags", "variables", "version", "metadata", "created_at"];
2095
+ readonly properties: {
2096
+ readonly id: {
2097
+ readonly type: "string";
1958
2098
  };
1959
- path: {
1960
- type: string;
1961
- minLength: number;
2099
+ readonly name: {
2100
+ readonly type: "string";
1962
2101
  };
1963
- description: {
1964
- type: string;
2102
+ readonly title_pattern: {
2103
+ readonly type: "string";
1965
2104
  };
1966
- task_list_id: {
1967
- type: string;
1968
- minLength: number;
1969
- pattern: string;
2105
+ readonly description: {
2106
+ readonly type: "string";
2107
+ readonly nullable: true;
1970
2108
  };
1971
- task_prefix: {
1972
- type: string;
1973
- minLength: number;
2109
+ readonly priority: {
2110
+ readonly type: "string";
2111
+ readonly enum: readonly ["low", "medium", "high", "critical"];
1974
2112
  };
1975
- };
1976
- };
1977
- UpdateProjectInput: {
1978
- type: string;
1979
- additionalProperties: boolean;
1980
- minProperties: number;
1981
- properties: {
1982
- name: {
1983
- type: string;
1984
- minLength: number;
2113
+ readonly tags: {
2114
+ readonly type: "array";
2115
+ readonly items: {
2116
+ readonly type: "string";
2117
+ };
1985
2118
  };
1986
- path: {
1987
- type: string;
1988
- minLength: number;
2119
+ readonly variables: {
2120
+ readonly type: "array";
2121
+ readonly items: {
2122
+ readonly type: "object";
2123
+ readonly properties: {
2124
+ readonly name: {
2125
+ readonly type: "string";
2126
+ };
2127
+ readonly required: {
2128
+ readonly type: "boolean";
2129
+ };
2130
+ readonly default: {
2131
+ readonly type: "string";
2132
+ };
2133
+ readonly description: {
2134
+ readonly type: "string";
2135
+ };
2136
+ };
2137
+ };
1989
2138
  };
1990
- description: {
1991
- type: string;
1992
- nullable: boolean;
2139
+ readonly version: {
2140
+ readonly type: "integer";
2141
+ readonly minimum: 1;
1993
2142
  };
1994
- };
1995
- };
1996
- RenameProjectInput: {
1997
- type: string;
1998
- additionalProperties: boolean;
1999
- required: string[];
2000
- properties: {
2001
- new_slug: {
2002
- type: string;
2003
- minLength: number;
2004
- pattern: string;
2143
+ readonly project_id: {
2144
+ readonly type: "string";
2145
+ readonly nullable: true;
2005
2146
  };
2006
- name: {
2007
- type: string;
2008
- minLength: number;
2147
+ readonly plan_id: {
2148
+ readonly type: "string";
2149
+ readonly nullable: true;
2009
2150
  };
2010
- };
2011
- };
2012
- ProjectTaskListEnsureApplyInput: {
2013
- type: string;
2014
- additionalProperties: boolean;
2015
- required: string[];
2016
- properties: {
2017
- expected_project_revision: {
2018
- type: string;
2019
- minLength: number;
2151
+ readonly metadata: {
2152
+ readonly type: "object";
2153
+ readonly additionalProperties: true;
2020
2154
  };
2021
- idempotency_key: {
2022
- type: string;
2023
- minLength: number;
2024
- maxLength: number;
2025
- pattern: string;
2155
+ readonly created_at: {
2156
+ readonly type: "string";
2157
+ readonly format: "date-time";
2158
+ };
2159
+ readonly tasks: {
2160
+ readonly type: "array";
2161
+ readonly items: {
2162
+ readonly $ref: "#/components/schemas/TemplateTask";
2163
+ };
2026
2164
  };
2027
2165
  };
2028
2166
  };
2029
- ProjectTaskListRollbackInput: {
2030
- type: string;
2031
- additionalProperties: boolean;
2032
- required: string[];
2033
- properties: {
2034
- receipt_id: {
2035
- type: string;
2036
- minLength: number;
2167
+ TemplateTask: {
2168
+ readonly type: "object";
2169
+ readonly required: readonly ["id", "template_id", "position", "title_pattern", "priority", "tags", "depends_on_positions", "metadata", "created_at"];
2170
+ readonly properties: {
2171
+ readonly id: {
2172
+ readonly type: "string";
2037
2173
  };
2038
- expected_task_list_revision: {
2039
- type: string;
2040
- minLength: number;
2174
+ readonly template_id: {
2175
+ readonly type: "string";
2176
+ };
2177
+ readonly position: {
2178
+ readonly type: "integer";
2179
+ readonly minimum: 0;
2180
+ };
2181
+ readonly title_pattern: {
2182
+ readonly type: "string";
2183
+ };
2184
+ readonly description: {
2185
+ readonly type: "string";
2186
+ readonly nullable: true;
2187
+ };
2188
+ readonly priority: {
2189
+ readonly type: "string";
2190
+ readonly enum: readonly ["low", "medium", "high", "critical"];
2191
+ };
2192
+ readonly tags: {
2193
+ readonly type: "array";
2194
+ readonly items: {
2195
+ readonly type: "string";
2196
+ };
2197
+ };
2198
+ readonly task_type: {
2199
+ readonly type: "string";
2200
+ readonly nullable: true;
2201
+ };
2202
+ readonly condition: {
2203
+ readonly type: "string";
2204
+ readonly nullable: true;
2205
+ };
2206
+ readonly include_template_id: {
2207
+ readonly type: "string";
2208
+ readonly nullable: true;
2209
+ };
2210
+ readonly depends_on_positions: {
2211
+ readonly type: "array";
2212
+ readonly items: {
2213
+ readonly type: "integer";
2214
+ readonly minimum: 0;
2215
+ };
2216
+ };
2217
+ readonly metadata: {
2218
+ readonly type: "object";
2219
+ readonly additionalProperties: true;
2220
+ };
2221
+ readonly created_at: {
2222
+ readonly type: "string";
2223
+ readonly format: "date-time";
2041
2224
  };
2042
2225
  };
2043
2226
  };
2044
- PlanProjectLinkApplyInput: {
2045
- type: string;
2046
- additionalProperties: boolean;
2047
- required: string[];
2048
- properties: {
2049
- project_id: {
2050
- type: string;
2051
- minLength: number;
2227
+ TemplateVariable: {
2228
+ readonly type: "object";
2229
+ readonly required: readonly ["name", "required"];
2230
+ readonly properties: {
2231
+ readonly name: {
2232
+ readonly type: "string";
2052
2233
  };
2053
- expected_plan_revision: {
2054
- type: string;
2055
- minLength: number;
2234
+ readonly required: {
2235
+ readonly type: "boolean";
2056
2236
  };
2057
- expected_project_revision: {
2058
- type: string;
2059
- minLength: number;
2237
+ readonly default: {
2238
+ readonly type: "string";
2060
2239
  };
2061
- idempotency_key: {
2062
- type: string;
2063
- minLength: number;
2064
- maxLength: number;
2065
- pattern: string;
2240
+ readonly description: {
2241
+ readonly type: "string";
2066
2242
  };
2067
2243
  };
2068
2244
  };
2069
- PlanProjectLinkRollbackInput: {
2245
+ CreateTemplateTaskInput: {
2246
+ readonly type: "object";
2247
+ readonly additionalProperties: false;
2248
+ readonly required: readonly ["title_pattern"];
2249
+ readonly properties: {
2250
+ readonly position: {
2251
+ readonly type: "integer";
2252
+ readonly minimum: 0;
2253
+ };
2254
+ readonly title_pattern: {
2255
+ readonly type: "string";
2256
+ readonly minLength: 1;
2257
+ };
2258
+ readonly description: {
2259
+ readonly type: "string";
2260
+ readonly nullable: true;
2261
+ };
2262
+ readonly priority: {
2263
+ readonly type: "string";
2264
+ readonly enum: readonly ["low", "medium", "high", "critical"];
2265
+ };
2266
+ readonly tags: {
2267
+ readonly type: "array";
2268
+ readonly items: {
2269
+ readonly type: "string";
2270
+ readonly minLength: 1;
2271
+ };
2272
+ };
2273
+ readonly task_type: {
2274
+ readonly type: "string";
2275
+ readonly nullable: true;
2276
+ };
2277
+ readonly condition: {
2278
+ readonly type: "string";
2279
+ readonly nullable: true;
2280
+ };
2281
+ readonly include_template_id: {
2282
+ readonly type: "string";
2283
+ readonly nullable: true;
2284
+ };
2285
+ readonly depends_on: {
2286
+ readonly type: "array";
2287
+ readonly items: {
2288
+ readonly type: "integer";
2289
+ readonly minimum: 0;
2290
+ };
2291
+ };
2292
+ readonly depends_on_positions: {
2293
+ readonly type: "array";
2294
+ readonly items: {
2295
+ readonly type: "integer";
2296
+ readonly minimum: 0;
2297
+ };
2298
+ };
2299
+ readonly metadata: {
2300
+ readonly type: "object";
2301
+ readonly additionalProperties: true;
2302
+ };
2303
+ };
2304
+ };
2305
+ CreateTaskInput: {
2070
2306
  type: string;
2071
- additionalProperties: boolean;
2072
2307
  required: string[];
2073
2308
  properties: {
2074
- project_id: {
2309
+ title: {
2075
2310
  type: string;
2076
- minLength: number;
2077
2311
  };
2078
- receipt_id: {
2312
+ description: {
2079
2313
  type: string;
2080
- minLength: number;
2314
+ nullable: boolean;
2081
2315
  };
2082
- expected_plan_revision: {
2316
+ status: {
2083
2317
  type: string;
2084
- minLength: number;
2318
+ enum: ("pending" | "in_progress" | "completed" | "failed" | "cancelled")[];
2085
2319
  };
2086
- };
2087
- };
2088
- ErrorResponse: {
2089
- type: string;
2090
- required: string[];
2091
- properties: {
2092
- error: {
2320
+ priority: {
2093
2321
  type: string;
2322
+ enum: ("low" | "medium" | "high" | "critical")[];
2094
2323
  };
2095
- code: {
2324
+ project_id: {
2096
2325
  type: string;
2097
2326
  };
2098
- conflict: {
2327
+ parent_id: {
2099
2328
  type: string;
2100
2329
  };
2101
- };
2102
- };
2103
- CreateTaskListInput: {
2104
- type: string;
2105
- additionalProperties: boolean;
2106
- required: string[];
2107
- properties: {
2108
- name: {
2330
+ plan_id: {
2109
2331
  type: string;
2110
- minLength: number;
2111
- pattern: string;
2112
2332
  };
2113
- slug: {
2333
+ assigned_to: {
2114
2334
  type: string;
2115
- minLength: number;
2116
- pattern: string;
2117
2335
  };
2118
- project_id: {
2336
+ agent_id: {
2119
2337
  type: string;
2120
2338
  };
2121
- description: {
2339
+ created_by: {
2122
2340
  type: string;
2123
2341
  };
2124
- metadata: {
2342
+ tags: {
2125
2343
  type: string;
2126
- additionalProperties: boolean;
2344
+ items: {
2345
+ type: string;
2346
+ };
2127
2347
  };
2128
2348
  };
2129
2349
  };
2130
- UpdateTaskListInput: {
2350
+ UpdateTaskInput: {
2131
2351
  type: string;
2132
- additionalProperties: boolean;
2133
- minProperties: number;
2134
2352
  properties: {
2135
- slug: {
2353
+ title: {
2136
2354
  type: string;
2137
- minLength: number;
2138
- pattern: string;
2139
2355
  };
2140
- name: {
2356
+ description: {
2141
2357
  type: string;
2142
2358
  };
2143
- description: {
2359
+ status: {
2144
2360
  type: string;
2361
+ enum: ("pending" | "in_progress" | "completed" | "failed" | "cancelled")[];
2145
2362
  };
2146
- metadata: {
2363
+ priority: {
2147
2364
  type: string;
2148
- additionalProperties: boolean;
2365
+ enum: ("low" | "medium" | "high" | "critical")[];
2149
2366
  };
2150
- };
2151
- };
2152
- CreateTaskCommentInput: {
2153
- type: string;
2154
- required: string[];
2155
- properties: {
2156
- content: {
2367
+ assigned_to: {
2157
2368
  type: string;
2158
- minLength: number;
2159
2369
  };
2160
- agent_id: {
2370
+ project_id: {
2161
2371
  type: string;
2372
+ nullable: boolean;
2162
2373
  };
2163
- session_id: {
2374
+ parent_id: {
2164
2375
  type: string;
2376
+ nullable: boolean;
2165
2377
  };
2166
- type: {
2378
+ plan_id: {
2167
2379
  type: string;
2168
- enum: string[];
2380
+ nullable: boolean;
2169
2381
  };
2170
- progress_pct: {
2382
+ task_list_id: {
2383
+ type: string;
2384
+ nullable: boolean;
2385
+ };
2386
+ version: {
2171
2387
  type: string;
2172
2388
  };
2173
2389
  };
2174
2390
  };
2175
- CreatePlanInput: {
2391
+ CompleteTaskInput: {
2176
2392
  type: string;
2177
2393
  additionalProperties: boolean;
2178
- required: string[];
2179
2394
  properties: {
2180
- name: {
2395
+ agent_id: {
2181
2396
  type: string;
2182
2397
  minLength: number;
2183
2398
  };
2184
- slug: {
2399
+ attachment_ids: {
2185
2400
  type: string;
2186
- minLength: number;
2187
- pattern: string;
2188
- };
2189
- description: {
2401
+ items: {
2402
+ type: string;
2403
+ minLength: number;
2404
+ };
2405
+ };
2406
+ files_changed: {
2190
2407
  type: string;
2408
+ items: {
2409
+ type: string;
2410
+ minLength: number;
2411
+ };
2191
2412
  };
2192
- project_id: {
2413
+ test_results: {
2193
2414
  type: string;
2194
- minLength: number;
2195
2415
  };
2196
- task_list_id: {
2416
+ commit_hash: {
2197
2417
  type: string;
2198
- minLength: number;
2199
2418
  };
2419
+ notes: {
2420
+ type: string;
2421
+ };
2422
+ confidence: {
2423
+ type: string;
2424
+ minimum: number;
2425
+ maximum: number;
2426
+ };
2427
+ };
2428
+ };
2429
+ FailTaskInput: {
2430
+ type: string;
2431
+ additionalProperties: boolean;
2432
+ properties: {
2200
2433
  agent_id: {
2201
2434
  type: string;
2202
2435
  minLength: number;
2203
2436
  };
2204
- status: {
2437
+ reason: {
2438
+ type: string;
2439
+ };
2440
+ retry: {
2205
2441
  type: string;
2206
- enum: string[];
2207
2442
  };
2208
2443
  };
2209
2444
  };
2210
- UpdatePlanInput: {
2445
+ TaskFailureResult: {
2211
2446
  type: string;
2212
2447
  additionalProperties: boolean;
2213
- minProperties: number;
2448
+ required: string[];
2449
+ properties: {
2450
+ task: {
2451
+ $ref: string;
2452
+ };
2453
+ retryTask: {
2454
+ $ref: string;
2455
+ };
2456
+ };
2457
+ };
2458
+ CreateProjectInput: {
2459
+ type: string;
2460
+ additionalProperties: boolean;
2461
+ required: string[];
2214
2462
  properties: {
2215
2463
  name: {
2216
2464
  type: string;
2217
2465
  minLength: number;
2466
+ pattern: string;
2218
2467
  };
2219
- slug: {
2468
+ path: {
2220
2469
  type: string;
2221
2470
  minLength: number;
2222
- pattern: string;
2223
2471
  };
2224
2472
  description: {
2225
2473
  type: string;
@@ -2227,27 +2475,28 @@ export declare function buildV1OpenApiDocument(version?: string): {
2227
2475
  task_list_id: {
2228
2476
  type: string;
2229
2477
  minLength: number;
2478
+ pattern: string;
2230
2479
  };
2231
- agent_id: {
2480
+ task_prefix: {
2232
2481
  type: string;
2233
2482
  minLength: number;
2234
2483
  };
2235
- status: {
2484
+ parent_id: {
2236
2485
  type: string;
2237
- enum: string[];
2486
+ minLength: number;
2238
2487
  };
2239
2488
  };
2240
2489
  };
2241
- CreateTemplateInput: {
2490
+ UpdateProjectInput: {
2242
2491
  type: string;
2243
2492
  additionalProperties: boolean;
2244
- required: string[];
2493
+ minProperties: number;
2245
2494
  properties: {
2246
2495
  name: {
2247
2496
  type: string;
2248
2497
  minLength: number;
2249
2498
  };
2250
- title_pattern: {
2499
+ path: {
2251
2500
  type: string;
2252
2501
  minLength: number;
2253
2502
  };
@@ -2255,357 +2504,445 @@ export declare function buildV1OpenApiDocument(version?: string): {
2255
2504
  type: string;
2256
2505
  nullable: boolean;
2257
2506
  };
2258
- priority: {
2259
- type: string;
2260
- enum: string[];
2261
- };
2262
- tags: {
2263
- type: string;
2264
- items: {
2265
- type: string;
2266
- minLength: number;
2267
- };
2268
- };
2269
- variables: {
2270
- type: string;
2271
- items: {
2272
- $ref: string;
2273
- };
2274
- };
2275
- project_id: {
2507
+ parent_id: {
2276
2508
  type: string;
2277
2509
  minLength: number;
2278
2510
  nullable: boolean;
2279
2511
  };
2280
- plan_id: {
2512
+ };
2513
+ };
2514
+ RenameProjectInput: {
2515
+ type: string;
2516
+ additionalProperties: boolean;
2517
+ required: string[];
2518
+ properties: {
2519
+ new_slug: {
2281
2520
  type: string;
2282
2521
  minLength: number;
2283
- nullable: boolean;
2284
- };
2285
- metadata: {
2286
- type: string;
2287
- additionalProperties: boolean;
2522
+ pattern: string;
2288
2523
  };
2289
- tasks: {
2524
+ name: {
2290
2525
  type: string;
2291
- items: {
2292
- $ref: string;
2293
- };
2526
+ minLength: number;
2294
2527
  };
2295
2528
  };
2296
2529
  };
2297
- UpdateTemplateInput: {
2530
+ ProjectTaskListEnsureApplyInput: {
2298
2531
  type: string;
2299
2532
  additionalProperties: boolean;
2300
- minProperties: number;
2533
+ required: string[];
2301
2534
  properties: {
2302
- name: {
2535
+ expected_project_revision: {
2303
2536
  type: string;
2304
2537
  minLength: number;
2305
2538
  };
2306
- title_pattern: {
2539
+ idempotency_key: {
2307
2540
  type: string;
2308
2541
  minLength: number;
2542
+ maxLength: number;
2543
+ pattern: string;
2309
2544
  };
2310
- description: {
2311
- type: string;
2312
- nullable: boolean;
2313
- };
2314
- priority: {
2545
+ };
2546
+ };
2547
+ ProjectTaskListRollbackInput: {
2548
+ type: string;
2549
+ additionalProperties: boolean;
2550
+ required: string[];
2551
+ properties: {
2552
+ receipt_id: {
2315
2553
  type: string;
2316
- enum: string[];
2554
+ minLength: number;
2317
2555
  };
2318
- tags: {
2556
+ expected_task_list_revision: {
2319
2557
  type: string;
2320
- items: {
2321
- type: string;
2322
- minLength: number;
2323
- };
2558
+ minLength: number;
2324
2559
  };
2325
- variables: {
2560
+ };
2561
+ };
2562
+ PlanProjectLinkApplyInput: {
2563
+ type: string;
2564
+ additionalProperties: boolean;
2565
+ required: string[];
2566
+ properties: {
2567
+ project_id: {
2326
2568
  type: string;
2327
- items: {
2328
- type: string;
2329
- };
2569
+ minLength: number;
2330
2570
  };
2331
- project_id: {
2571
+ expected_plan_revision: {
2332
2572
  type: string;
2333
- nullable: boolean;
2573
+ minLength: number;
2334
2574
  };
2335
- plan_id: {
2575
+ expected_project_revision: {
2336
2576
  type: string;
2337
- nullable: boolean;
2577
+ minLength: number;
2338
2578
  };
2339
- metadata: {
2579
+ idempotency_key: {
2340
2580
  type: string;
2341
- additionalProperties: boolean;
2581
+ minLength: number;
2582
+ maxLength: number;
2583
+ pattern: string;
2342
2584
  };
2343
2585
  };
2344
2586
  };
2345
- PrGroupCiProof: {
2587
+ PlanProjectLinkRollbackInput: {
2346
2588
  type: string;
2347
2589
  additionalProperties: boolean;
2348
2590
  required: string[];
2349
2591
  properties: {
2350
- provider: {
2592
+ project_id: {
2351
2593
  type: string;
2352
2594
  minLength: number;
2353
2595
  };
2354
- provider_run_id: {
2596
+ receipt_id: {
2355
2597
  type: string;
2356
2598
  minLength: number;
2357
2599
  };
2358
- status: {
2359
- type: string;
2360
- enum: string[];
2361
- };
2362
- repository: {
2600
+ expected_plan_revision: {
2363
2601
  type: string;
2364
2602
  minLength: number;
2365
2603
  };
2366
- pr_number: {
2604
+ };
2605
+ };
2606
+ ErrorResponse: {
2607
+ type: string;
2608
+ required: string[];
2609
+ properties: {
2610
+ error: {
2367
2611
  type: string;
2368
- minimum: number;
2369
2612
  };
2370
- base_sha: {
2613
+ code: {
2371
2614
  type: string;
2372
- pattern: string;
2373
2615
  };
2374
- head_sha: {
2616
+ conflict: {
2375
2617
  type: string;
2376
- pattern: string;
2377
2618
  };
2378
2619
  };
2379
2620
  };
2380
- PrGroupCleanupProof: {
2621
+ CreateTaskListInput: {
2381
2622
  type: string;
2382
2623
  additionalProperties: boolean;
2383
2624
  required: string[];
2384
2625
  properties: {
2385
- worktree_clean: {
2626
+ name: {
2386
2627
  type: string;
2387
- const: boolean;
2628
+ minLength: number;
2629
+ pattern: string;
2388
2630
  };
2389
- provider_reachable: {
2631
+ slug: {
2390
2632
  type: string;
2391
- const: boolean;
2633
+ minLength: number;
2634
+ pattern: string;
2392
2635
  };
2393
- provider_head_sha: {
2636
+ project_id: {
2394
2637
  type: string;
2395
- pattern: string;
2396
2638
  };
2397
- pr_policy_satisfied: {
2639
+ description: {
2398
2640
  type: string;
2399
- const: boolean;
2400
2641
  };
2401
- terminal_disposition: {
2642
+ metadata: {
2402
2643
  type: string;
2403
- enum: string[];
2644
+ additionalProperties: boolean;
2404
2645
  };
2405
- writer_retired: {
2646
+ };
2647
+ };
2648
+ UpdateTaskListInput: {
2649
+ type: string;
2650
+ additionalProperties: boolean;
2651
+ minProperties: number;
2652
+ properties: {
2653
+ slug: {
2406
2654
  type: string;
2407
- const: boolean;
2655
+ minLength: number;
2656
+ pattern: string;
2408
2657
  };
2409
- review_receipt_key: {
2658
+ name: {
2410
2659
  type: string;
2411
- nullable: boolean;
2412
2660
  };
2413
- conditional_merge_receipt_key: {
2661
+ description: {
2414
2662
  type: string;
2415
- nullable: boolean;
2416
2663
  };
2417
- merge_receipt_key: {
2664
+ metadata: {
2665
+ type: string;
2666
+ additionalProperties: boolean;
2667
+ };
2668
+ project_id: {
2418
2669
  type: string;
2419
2670
  nullable: boolean;
2420
2671
  };
2421
2672
  };
2422
2673
  };
2423
- PrGroupRecord: {
2674
+ CreateTaskCommentInput: {
2424
2675
  type: string;
2425
- additionalProperties: boolean;
2426
2676
  required: string[];
2427
2677
  properties: {
2428
- schema_version: {
2678
+ content: {
2429
2679
  type: string;
2430
- const: number;
2680
+ minLength: number;
2431
2681
  };
2432
- id: {
2682
+ agent_id: {
2433
2683
  type: string;
2434
2684
  };
2435
- identity_key: {
2685
+ session_id: {
2436
2686
  type: string;
2437
2687
  };
2438
- root_request_id: {
2688
+ type: {
2439
2689
  type: string;
2690
+ enum: string[];
2440
2691
  };
2441
- repository: {
2692
+ progress_pct: {
2442
2693
  type: string;
2443
2694
  };
2444
- leaf_task_id: {
2695
+ };
2696
+ };
2697
+ CreatePlanInput: {
2698
+ type: string;
2699
+ additionalProperties: boolean;
2700
+ required: string[];
2701
+ properties: {
2702
+ name: {
2445
2703
  type: string;
2704
+ minLength: number;
2446
2705
  };
2447
- branch: {
2706
+ slug: {
2707
+ type: string;
2708
+ minLength: number;
2709
+ pattern: string;
2710
+ };
2711
+ description: {
2448
2712
  type: string;
2449
2713
  };
2450
- pr_number: {
2714
+ project_id: {
2451
2715
  type: string;
2452
- nullable: boolean;
2716
+ minLength: number;
2453
2717
  };
2454
- base_sha: {
2718
+ task_list_id: {
2455
2719
  type: string;
2456
- nullable: boolean;
2720
+ minLength: number;
2457
2721
  };
2458
- state: {
2722
+ agent_id: {
2723
+ type: string;
2724
+ minLength: number;
2725
+ };
2726
+ status: {
2459
2727
  type: string;
2460
2728
  enum: string[];
2461
2729
  };
2462
- active_attempt_id: {
2730
+ };
2731
+ };
2732
+ UpdatePlanInput: {
2733
+ type: string;
2734
+ additionalProperties: boolean;
2735
+ minProperties: number;
2736
+ properties: {
2737
+ name: {
2463
2738
  type: string;
2464
- nullable: boolean;
2739
+ minLength: number;
2465
2740
  };
2466
- active_generation: {
2741
+ slug: {
2467
2742
  type: string;
2468
- nullable: boolean;
2743
+ minLength: number;
2744
+ pattern: string;
2469
2745
  };
2470
- repair_cycle_count: {
2746
+ description: {
2471
2747
  type: string;
2472
- minimum: number;
2473
- maximum: number;
2474
2748
  };
2475
- repair_cycle_limit: {
2749
+ task_list_id: {
2476
2750
  type: string;
2477
- const: number;
2751
+ minLength: number;
2478
2752
  };
2479
- terminal_attempt_id: {
2753
+ agent_id: {
2480
2754
  type: string;
2481
- nullable: boolean;
2755
+ minLength: number;
2482
2756
  };
2483
- terminal_generation: {
2757
+ status: {
2484
2758
  type: string;
2485
- nullable: boolean;
2759
+ enum: string[];
2486
2760
  };
2487
- terminal_outcome: {
2761
+ };
2762
+ };
2763
+ CreateTemplateInput: {
2764
+ type: string;
2765
+ additionalProperties: boolean;
2766
+ required: string[];
2767
+ properties: {
2768
+ name: {
2488
2769
  type: string;
2489
- nullable: boolean;
2490
- enum: (string | null)[];
2770
+ minLength: number;
2491
2771
  };
2492
- terminal_head_sha: {
2772
+ title_pattern: {
2493
2773
  type: string;
2494
- nullable: boolean;
2774
+ minLength: number;
2495
2775
  };
2496
- terminal_at: {
2776
+ description: {
2497
2777
  type: string;
2498
2778
  nullable: boolean;
2499
2779
  };
2500
- cleanup_eligible_at: {
2780
+ priority: {
2781
+ type: string;
2782
+ enum: string[];
2783
+ };
2784
+ tags: {
2785
+ type: string;
2786
+ items: {
2787
+ type: string;
2788
+ minLength: number;
2789
+ };
2790
+ };
2791
+ variables: {
2792
+ type: string;
2793
+ items: {
2794
+ $ref: string;
2795
+ };
2796
+ };
2797
+ project_id: {
2501
2798
  type: string;
2799
+ minLength: number;
2502
2800
  nullable: boolean;
2503
2801
  };
2504
- revision: {
2802
+ plan_id: {
2505
2803
  type: string;
2506
- minimum: number;
2804
+ minLength: number;
2805
+ nullable: boolean;
2507
2806
  };
2508
- created_at: {
2807
+ metadata: {
2509
2808
  type: string;
2809
+ additionalProperties: boolean;
2510
2810
  };
2511
- updated_at: {
2811
+ tasks: {
2512
2812
  type: string;
2813
+ items: {
2814
+ $ref: string;
2815
+ };
2513
2816
  };
2514
2817
  };
2515
2818
  };
2516
- PrGroupAttemptRecord: {
2819
+ UpdateTemplateInput: {
2517
2820
  type: string;
2518
2821
  additionalProperties: boolean;
2519
- required: string[];
2822
+ minProperties: number;
2520
2823
  properties: {
2521
- schema_version: {
2824
+ name: {
2522
2825
  type: string;
2523
- const: number;
2826
+ minLength: number;
2524
2827
  };
2525
- id: {
2828
+ title_pattern: {
2829
+ type: string;
2830
+ minLength: number;
2831
+ };
2832
+ description: {
2526
2833
  type: string;
2834
+ nullable: boolean;
2527
2835
  };
2528
- group_id: {
2836
+ priority: {
2529
2837
  type: string;
2838
+ enum: string[];
2530
2839
  };
2531
- leaf_task_id: {
2840
+ tags: {
2532
2841
  type: string;
2842
+ items: {
2843
+ type: string;
2844
+ minLength: number;
2845
+ };
2533
2846
  };
2534
- dispatch_attempt: {
2847
+ variables: {
2535
2848
  type: string;
2849
+ items: {
2850
+ type: string;
2851
+ };
2536
2852
  };
2537
- writer_generation: {
2853
+ project_id: {
2538
2854
  type: string;
2855
+ nullable: boolean;
2539
2856
  };
2540
- previous_attempt_id: {
2857
+ plan_id: {
2541
2858
  type: string;
2542
2859
  nullable: boolean;
2543
2860
  };
2544
- worktree: {
2861
+ metadata: {
2545
2862
  type: string;
2863
+ additionalProperties: boolean;
2546
2864
  };
2547
- branch: {
2865
+ };
2866
+ };
2867
+ PrGroupCiProof: {
2868
+ type: string;
2869
+ additionalProperties: boolean;
2870
+ required: string[];
2871
+ properties: {
2872
+ provider: {
2873
+ type: string;
2874
+ minLength: number;
2875
+ };
2876
+ provider_run_id: {
2877
+ type: string;
2878
+ minLength: number;
2879
+ };
2880
+ status: {
2548
2881
  type: string;
2882
+ enum: string[];
2549
2883
  };
2550
2884
  repository: {
2551
2885
  type: string;
2886
+ minLength: number;
2552
2887
  };
2553
2888
  pr_number: {
2554
2889
  type: string;
2555
- nullable: boolean;
2890
+ minimum: number;
2556
2891
  };
2557
2892
  base_sha: {
2558
2893
  type: string;
2559
- nullable: boolean;
2894
+ pattern: string;
2560
2895
  };
2561
- provider: {
2896
+ head_sha: {
2562
2897
  type: string;
2563
- nullable: boolean;
2898
+ pattern: string;
2564
2899
  };
2565
- provider_run_id: {
2900
+ };
2901
+ };
2902
+ PrGroupCleanupProof: {
2903
+ type: string;
2904
+ additionalProperties: boolean;
2905
+ required: string[];
2906
+ properties: {
2907
+ worktree_clean: {
2566
2908
  type: string;
2567
- nullable: boolean;
2909
+ const: boolean;
2568
2910
  };
2569
- profile_alias: {
2911
+ provider_reachable: {
2570
2912
  type: string;
2571
- nullable: boolean;
2913
+ const: boolean;
2572
2914
  };
2573
- status: {
2915
+ provider_head_sha: {
2574
2916
  type: string;
2575
- enum: string[];
2917
+ pattern: string;
2576
2918
  };
2577
- admitted_at: {
2919
+ pr_policy_satisfied: {
2578
2920
  type: string;
2921
+ const: boolean;
2579
2922
  };
2580
- started_at: {
2923
+ terminal_disposition: {
2581
2924
  type: string;
2582
- nullable: boolean;
2925
+ enum: string[];
2583
2926
  };
2584
- last_heartbeat_at: {
2927
+ writer_retired: {
2585
2928
  type: string;
2586
- nullable: boolean;
2929
+ const: boolean;
2587
2930
  };
2588
- handed_off_at: {
2931
+ review_receipt_key: {
2589
2932
  type: string;
2590
2933
  nullable: boolean;
2591
2934
  };
2592
- fenced_at: {
2935
+ conditional_merge_receipt_key: {
2593
2936
  type: string;
2594
2937
  nullable: boolean;
2595
2938
  };
2596
- terminal_at: {
2939
+ merge_receipt_key: {
2597
2940
  type: string;
2598
2941
  nullable: boolean;
2599
2942
  };
2600
- created_at: {
2601
- type: string;
2602
- };
2603
- updated_at: {
2604
- type: string;
2605
- };
2606
2943
  };
2607
2944
  };
2608
- PrGroupEventRecord: {
2945
+ PrGroupRecord: {
2609
2946
  type: string;
2610
2947
  additionalProperties: boolean;
2611
2948
  required: string[];
@@ -2617,45 +2954,230 @@ export declare function buildV1OpenApiDocument(version?: string): {
2617
2954
  id: {
2618
2955
  type: string;
2619
2956
  };
2620
- group_id: {
2957
+ identity_key: {
2621
2958
  type: string;
2622
2959
  };
2623
- attempt_id: {
2960
+ root_request_id: {
2624
2961
  type: string;
2625
2962
  };
2626
- writer_generation: {
2963
+ repository: {
2627
2964
  type: string;
2628
2965
  };
2629
- sequence: {
2966
+ leaf_task_id: {
2630
2967
  type: string;
2631
- minimum: number;
2632
2968
  };
2633
- idempotency_key: {
2969
+ branch: {
2634
2970
  type: string;
2635
2971
  };
2636
- event_type: {
2972
+ pr_number: {
2637
2973
  type: string;
2638
- enum: string[];
2974
+ nullable: boolean;
2975
+ };
2976
+ base_sha: {
2977
+ type: string;
2978
+ nullable: boolean;
2639
2979
  };
2640
2980
  state: {
2641
2981
  type: string;
2642
2982
  enum: string[];
2643
2983
  };
2644
- message: {
2984
+ active_attempt_id: {
2645
2985
  type: string;
2646
2986
  nullable: boolean;
2647
2987
  };
2648
- head_sha: {
2988
+ active_generation: {
2649
2989
  type: string;
2650
2990
  nullable: boolean;
2651
2991
  };
2652
- receipt_key: {
2992
+ repair_cycle_count: {
2653
2993
  type: string;
2654
- nullable: boolean;
2994
+ minimum: number;
2995
+ maximum: number;
2655
2996
  };
2656
- review_receipt_key: {
2997
+ repair_cycle_limit: {
2998
+ type: string;
2999
+ const: number;
3000
+ };
3001
+ terminal_attempt_id: {
3002
+ type: string;
3003
+ nullable: boolean;
3004
+ };
3005
+ terminal_generation: {
3006
+ type: string;
3007
+ nullable: boolean;
3008
+ };
3009
+ terminal_outcome: {
3010
+ type: string;
3011
+ nullable: boolean;
3012
+ enum: (string | null)[];
3013
+ };
3014
+ terminal_head_sha: {
3015
+ type: string;
3016
+ nullable: boolean;
3017
+ };
3018
+ terminal_at: {
3019
+ type: string;
3020
+ nullable: boolean;
3021
+ };
3022
+ cleanup_eligible_at: {
3023
+ type: string;
3024
+ nullable: boolean;
3025
+ };
3026
+ revision: {
3027
+ type: string;
3028
+ minimum: number;
3029
+ };
3030
+ created_at: {
3031
+ type: string;
3032
+ };
3033
+ updated_at: {
3034
+ type: string;
3035
+ };
3036
+ };
3037
+ };
3038
+ PrGroupAttemptRecord: {
3039
+ type: string;
3040
+ additionalProperties: boolean;
3041
+ required: string[];
3042
+ properties: {
3043
+ schema_version: {
3044
+ type: string;
3045
+ const: number;
3046
+ };
3047
+ id: {
3048
+ type: string;
3049
+ };
3050
+ group_id: {
3051
+ type: string;
3052
+ };
3053
+ leaf_task_id: {
3054
+ type: string;
3055
+ };
3056
+ dispatch_attempt: {
3057
+ type: string;
3058
+ };
3059
+ writer_generation: {
3060
+ type: string;
3061
+ };
3062
+ previous_attempt_id: {
3063
+ type: string;
3064
+ nullable: boolean;
3065
+ };
3066
+ worktree: {
3067
+ type: string;
3068
+ };
3069
+ branch: {
3070
+ type: string;
3071
+ };
3072
+ repository: {
3073
+ type: string;
3074
+ };
3075
+ pr_number: {
3076
+ type: string;
3077
+ nullable: boolean;
3078
+ };
3079
+ base_sha: {
3080
+ type: string;
3081
+ nullable: boolean;
3082
+ };
3083
+ provider: {
3084
+ type: string;
3085
+ nullable: boolean;
3086
+ };
3087
+ provider_run_id: {
3088
+ type: string;
3089
+ nullable: boolean;
3090
+ };
3091
+ profile_alias: {
3092
+ type: string;
3093
+ nullable: boolean;
3094
+ };
3095
+ status: {
3096
+ type: string;
3097
+ enum: string[];
3098
+ };
3099
+ admitted_at: {
3100
+ type: string;
3101
+ };
3102
+ started_at: {
3103
+ type: string;
3104
+ nullable: boolean;
3105
+ };
3106
+ last_heartbeat_at: {
3107
+ type: string;
3108
+ nullable: boolean;
3109
+ };
3110
+ handed_off_at: {
3111
+ type: string;
3112
+ nullable: boolean;
3113
+ };
3114
+ fenced_at: {
3115
+ type: string;
3116
+ nullable: boolean;
3117
+ };
3118
+ terminal_at: {
3119
+ type: string;
3120
+ nullable: boolean;
3121
+ };
3122
+ created_at: {
3123
+ type: string;
3124
+ };
3125
+ updated_at: {
2657
3126
  type: string;
2658
- nullable: boolean;
3127
+ };
3128
+ };
3129
+ };
3130
+ PrGroupEventRecord: {
3131
+ type: string;
3132
+ additionalProperties: boolean;
3133
+ required: string[];
3134
+ properties: {
3135
+ schema_version: {
3136
+ type: string;
3137
+ const: number;
3138
+ };
3139
+ id: {
3140
+ type: string;
3141
+ };
3142
+ group_id: {
3143
+ type: string;
3144
+ };
3145
+ attempt_id: {
3146
+ type: string;
3147
+ };
3148
+ writer_generation: {
3149
+ type: string;
3150
+ };
3151
+ sequence: {
3152
+ type: string;
3153
+ minimum: number;
3154
+ };
3155
+ idempotency_key: {
3156
+ type: string;
3157
+ };
3158
+ event_type: {
3159
+ type: string;
3160
+ enum: string[];
3161
+ };
3162
+ state: {
3163
+ type: string;
3164
+ enum: string[];
3165
+ };
3166
+ message: {
3167
+ type: string;
3168
+ nullable: boolean;
3169
+ };
3170
+ head_sha: {
3171
+ type: string;
3172
+ nullable: boolean;
3173
+ };
3174
+ receipt_key: {
3175
+ type: string;
3176
+ nullable: boolean;
3177
+ };
3178
+ review_receipt_key: {
3179
+ type: string;
3180
+ nullable: boolean;
2659
3181
  };
2660
3182
  conditional_merge_receipt_key: {
2661
3183
  type: string;
@@ -3407,60 +3929,357 @@ export declare function buildV1OpenApiDocument(version?: string): {
3407
3929
  properties: {
3408
3930
  capability: {
3409
3931
  $ref: string;
3410
- };
3932
+ };
3933
+ };
3934
+ };
3935
+ };
3936
+ };
3937
+ };
3938
+ };
3939
+ };
3940
+ };
3941
+ "/v1/project-registration/resources": {
3942
+ get: {
3943
+ operationId: string;
3944
+ summary: string;
3945
+ parameters: ({
3946
+ name: string;
3947
+ in: string;
3948
+ required: boolean;
3949
+ schema: {
3950
+ type: string;
3951
+ default?: undefined;
3952
+ minimum?: undefined;
3953
+ maximum?: undefined;
3954
+ };
3955
+ } | {
3956
+ name: string;
3957
+ in: string;
3958
+ schema: {
3959
+ type: string;
3960
+ default: boolean;
3961
+ minimum?: undefined;
3962
+ maximum?: undefined;
3963
+ };
3964
+ required?: undefined;
3965
+ } | {
3966
+ name: string;
3967
+ in: string;
3968
+ schema: {
3969
+ type: string;
3970
+ minimum: number;
3971
+ maximum: number;
3972
+ default: number;
3973
+ };
3974
+ required?: undefined;
3975
+ } | {
3976
+ name: string;
3977
+ in: string;
3978
+ schema: {
3979
+ type: string;
3980
+ default?: undefined;
3981
+ minimum?: undefined;
3982
+ maximum?: undefined;
3983
+ };
3984
+ required?: undefined;
3985
+ })[];
3986
+ responses: {
3987
+ "200": {
3988
+ content: {
3989
+ "application/json": {
3990
+ schema: {
3991
+ type: string;
3992
+ additionalProperties: boolean;
3993
+ required: string[];
3994
+ properties: {
3995
+ page: {
3996
+ $ref: string;
3997
+ };
3998
+ };
3999
+ };
4000
+ };
4001
+ };
4002
+ };
4003
+ "400": {
4004
+ content: {
4005
+ "application/json": {
4006
+ schema: {
4007
+ $ref: string;
4008
+ };
4009
+ };
4010
+ };
4011
+ };
4012
+ "404": {
4013
+ content: {
4014
+ "application/json": {
4015
+ schema: {
4016
+ $ref: string;
4017
+ };
4018
+ };
4019
+ };
4020
+ };
4021
+ "409": {
4022
+ content: {
4023
+ "application/json": {
4024
+ schema: {
4025
+ $ref: string;
4026
+ };
4027
+ };
4028
+ };
4029
+ };
4030
+ };
4031
+ };
4032
+ };
4033
+ "/v1/project-registration/create": {
4034
+ post: {
4035
+ operationId: string;
4036
+ summary: string;
4037
+ requestBody: {
4038
+ required: boolean;
4039
+ content: {
4040
+ "application/json": {
4041
+ schema: {
4042
+ $ref: string;
4043
+ };
4044
+ };
4045
+ };
4046
+ };
4047
+ responses: {
4048
+ "201": {
4049
+ content: {
4050
+ "application/json": {
4051
+ schema: {
4052
+ type: string;
4053
+ additionalProperties: boolean;
4054
+ required: string[];
4055
+ properties: {
4056
+ receipt: {
4057
+ $ref: string;
4058
+ };
4059
+ };
4060
+ };
4061
+ };
4062
+ };
4063
+ };
4064
+ "400": {
4065
+ content: {
4066
+ "application/json": {
4067
+ schema: {
4068
+ $ref: string;
4069
+ };
4070
+ };
4071
+ };
4072
+ };
4073
+ "409": {
4074
+ content: {
4075
+ "application/json": {
4076
+ schema: {
4077
+ $ref: string;
4078
+ };
4079
+ };
4080
+ };
4081
+ };
4082
+ };
4083
+ };
4084
+ };
4085
+ "/v1/project-registration/read-exact": {
4086
+ post: {
4087
+ operationId: string;
4088
+ summary: string;
4089
+ requestBody: {
4090
+ required: boolean;
4091
+ content: {
4092
+ "application/json": {
4093
+ schema: {
4094
+ type: string;
4095
+ additionalProperties: boolean;
4096
+ required: string[];
4097
+ properties: {
4098
+ response_byte_limit: {
4099
+ readonly type: "integer";
4100
+ readonly minimum: 1;
4101
+ };
4102
+ time_budget_ms: {
4103
+ readonly type: "integer";
4104
+ readonly minimum: 1;
4105
+ };
4106
+ resource_kind: {
4107
+ type: string;
4108
+ enum: string[];
4109
+ };
4110
+ target_id: {
4111
+ type: string;
4112
+ format: string;
4113
+ };
4114
+ };
4115
+ };
4116
+ };
4117
+ };
4118
+ };
4119
+ responses: {
4120
+ "200": {
4121
+ content: {
4122
+ "application/json": {
4123
+ schema: {
4124
+ type: string;
4125
+ additionalProperties: boolean;
4126
+ required: string[];
4127
+ properties: {
4128
+ record: {
4129
+ type: string;
4130
+ additionalProperties: boolean;
4131
+ required: string[];
4132
+ properties: {
4133
+ target_id: {
4134
+ type: string;
4135
+ format: string;
4136
+ };
4137
+ revision: {
4138
+ type: string;
4139
+ };
4140
+ digest: {
4141
+ type: string;
4142
+ };
4143
+ };
4144
+ };
4145
+ };
4146
+ };
4147
+ };
4148
+ };
4149
+ };
4150
+ "400": {
4151
+ content: {
4152
+ "application/json": {
4153
+ schema: {
4154
+ $ref: string;
4155
+ };
4156
+ };
4157
+ };
4158
+ };
4159
+ "404": {
4160
+ content: {
4161
+ "application/json": {
4162
+ schema: {
4163
+ $ref: string;
4164
+ };
4165
+ };
4166
+ };
4167
+ };
4168
+ };
4169
+ };
4170
+ };
4171
+ "/v1/project-registration/receipts/lookup": {
4172
+ post: {
4173
+ operationId: string;
4174
+ summary: string;
4175
+ requestBody: {
4176
+ required: boolean;
4177
+ content: {
4178
+ "application/json": {
4179
+ schema: {
4180
+ $ref: string;
4181
+ };
4182
+ };
4183
+ };
4184
+ };
4185
+ responses: {
4186
+ "200": {
4187
+ content: {
4188
+ "application/json": {
4189
+ schema: {
4190
+ type: string;
4191
+ additionalProperties: boolean;
4192
+ required: string[];
4193
+ properties: {
4194
+ receipt: {
4195
+ $ref: string;
4196
+ };
4197
+ response_control: {
4198
+ type: string;
4199
+ additionalProperties: boolean;
4200
+ required: string[];
4201
+ properties: {
4202
+ response_bytes: {
4203
+ type: string;
4204
+ minimum: number;
4205
+ };
4206
+ elapsed_ms: {
4207
+ type: string;
4208
+ minimum: number;
4209
+ };
4210
+ complete: {
4211
+ type: string;
4212
+ enum: boolean[];
4213
+ };
4214
+ truncated: {
4215
+ type: string;
4216
+ enum: boolean[];
4217
+ };
4218
+ response_byte_limit: {
4219
+ readonly type: "integer";
4220
+ readonly minimum: 1;
4221
+ };
4222
+ time_budget_ms: {
4223
+ readonly type: "integer";
4224
+ readonly minimum: 1;
4225
+ };
4226
+ };
4227
+ };
4228
+ };
4229
+ };
4230
+ };
4231
+ };
4232
+ };
4233
+ "400": {
4234
+ content: {
4235
+ "application/json": {
4236
+ schema: {
4237
+ $ref: string;
4238
+ };
4239
+ };
4240
+ };
4241
+ };
4242
+ "404": {
4243
+ content: {
4244
+ "application/json": {
4245
+ schema: {
4246
+ $ref: string;
4247
+ };
4248
+ };
4249
+ };
4250
+ };
4251
+ };
4252
+ };
4253
+ };
4254
+ "/v1/project-registration/validate-prior-adoption": {
4255
+ post: {
4256
+ operationId: string;
4257
+ summary: string;
4258
+ requestBody: {
4259
+ required: boolean;
4260
+ content: {
4261
+ "application/json": {
4262
+ schema: {
4263
+ type: string;
4264
+ additionalProperties: boolean;
4265
+ required: string[];
4266
+ properties: {
4267
+ source_request: {
4268
+ $ref: string;
4269
+ };
4270
+ source_receipt: {
4271
+ $ref: string;
4272
+ };
4273
+ current_record: {
4274
+ oneOf: {
4275
+ $ref: string;
4276
+ }[];
3411
4277
  };
3412
4278
  };
3413
4279
  };
3414
4280
  };
3415
4281
  };
3416
4282
  };
3417
- };
3418
- };
3419
- "/v1/project-registration/resources": {
3420
- get: {
3421
- operationId: string;
3422
- summary: string;
3423
- parameters: ({
3424
- name: string;
3425
- in: string;
3426
- required: boolean;
3427
- schema: {
3428
- type: string;
3429
- default?: undefined;
3430
- minimum?: undefined;
3431
- maximum?: undefined;
3432
- };
3433
- } | {
3434
- name: string;
3435
- in: string;
3436
- schema: {
3437
- type: string;
3438
- default: boolean;
3439
- minimum?: undefined;
3440
- maximum?: undefined;
3441
- };
3442
- required?: undefined;
3443
- } | {
3444
- name: string;
3445
- in: string;
3446
- schema: {
3447
- type: string;
3448
- minimum: number;
3449
- maximum: number;
3450
- default: number;
3451
- };
3452
- required?: undefined;
3453
- } | {
3454
- name: string;
3455
- in: string;
3456
- schema: {
3457
- type: string;
3458
- default?: undefined;
3459
- minimum?: undefined;
3460
- maximum?: undefined;
3461
- };
3462
- required?: undefined;
3463
- })[];
3464
4283
  responses: {
3465
4284
  "200": {
3466
4285
  content: {
@@ -3470,7 +4289,7 @@ export declare function buildV1OpenApiDocument(version?: string): {
3470
4289
  additionalProperties: boolean;
3471
4290
  required: string[];
3472
4291
  properties: {
3473
- page: {
4292
+ validation: {
3474
4293
  $ref: string;
3475
4294
  };
3476
4295
  };
@@ -3508,7 +4327,7 @@ export declare function buildV1OpenApiDocument(version?: string): {
3508
4327
  };
3509
4328
  };
3510
4329
  };
3511
- "/v1/project-registration/create": {
4330
+ "/v1/project-registration/compensate": {
3512
4331
  post: {
3513
4332
  operationId: string;
3514
4333
  summary: string;
@@ -3548,6 +4367,15 @@ export declare function buildV1OpenApiDocument(version?: string): {
3548
4367
  };
3549
4368
  };
3550
4369
  };
4370
+ "404": {
4371
+ content: {
4372
+ "application/json": {
4373
+ schema: {
4374
+ $ref: string;
4375
+ };
4376
+ };
4377
+ };
4378
+ };
3551
4379
  "409": {
3552
4380
  content: {
3553
4381
  "application/json": {
@@ -3560,7 +4388,7 @@ export declare function buildV1OpenApiDocument(version?: string): {
3560
4388
  };
3561
4389
  };
3562
4390
  };
3563
- "/v1/project-registration/read-exact": {
4391
+ "/v1/project-registration/verify-inverse": {
3564
4392
  post: {
3565
4393
  operationId: string;
3566
4394
  summary: string;
@@ -3569,27 +4397,7 @@ export declare function buildV1OpenApiDocument(version?: string): {
3569
4397
  content: {
3570
4398
  "application/json": {
3571
4399
  schema: {
3572
- type: string;
3573
- additionalProperties: boolean;
3574
- required: string[];
3575
- properties: {
3576
- response_byte_limit: {
3577
- readonly type: "integer";
3578
- readonly minimum: 1;
3579
- };
3580
- time_budget_ms: {
3581
- readonly type: "integer";
3582
- readonly minimum: 1;
3583
- };
3584
- resource_kind: {
3585
- type: string;
3586
- enum: string[];
3587
- };
3588
- target_id: {
3589
- type: string;
3590
- format: string;
3591
- };
3592
- };
4400
+ $ref: string;
3593
4401
  };
3594
4402
  };
3595
4403
  };
@@ -3603,7 +4411,7 @@ export declare function buildV1OpenApiDocument(version?: string): {
3603
4411
  additionalProperties: boolean;
3604
4412
  required: string[];
3605
4413
  properties: {
3606
- record: {
4414
+ verification: {
3607
4415
  type: string;
3608
4416
  additionalProperties: boolean;
3609
4417
  required: string[];
@@ -3612,8 +4420,12 @@ export declare function buildV1OpenApiDocument(version?: string): {
3612
4420
  type: string;
3613
4421
  format: string;
3614
4422
  };
3615
- revision: {
4423
+ accepted_receipt_id: {
4424
+ type: string;
4425
+ };
4426
+ absent: {
3616
4427
  type: string;
4428
+ enum: boolean[];
3617
4429
  };
3618
4430
  digest: {
3619
4431
  type: string;
@@ -3643,23 +4455,22 @@ export declare function buildV1OpenApiDocument(version?: string): {
3643
4455
  };
3644
4456
  };
3645
4457
  };
4458
+ "409": {
4459
+ content: {
4460
+ "application/json": {
4461
+ schema: {
4462
+ $ref: string;
4463
+ };
4464
+ };
4465
+ };
4466
+ };
3646
4467
  };
3647
4468
  };
3648
4469
  };
3649
- "/v1/project-registration/receipts/lookup": {
3650
- post: {
4470
+ "/v1/task-subtree-transfer/capability": {
4471
+ get: {
3651
4472
  operationId: string;
3652
4473
  summary: string;
3653
- requestBody: {
3654
- required: boolean;
3655
- content: {
3656
- "application/json": {
3657
- schema: {
3658
- $ref: string;
3659
- };
3660
- };
3661
- };
3662
- };
3663
4474
  responses: {
3664
4475
  "200": {
3665
4476
  content: {
@@ -3669,46 +4480,15 @@ export declare function buildV1OpenApiDocument(version?: string): {
3669
4480
  additionalProperties: boolean;
3670
4481
  required: string[];
3671
4482
  properties: {
3672
- receipt: {
4483
+ capability: {
3673
4484
  $ref: string;
3674
4485
  };
3675
- response_control: {
3676
- type: string;
3677
- additionalProperties: boolean;
3678
- required: string[];
3679
- properties: {
3680
- response_bytes: {
3681
- type: string;
3682
- minimum: number;
3683
- };
3684
- elapsed_ms: {
3685
- type: string;
3686
- minimum: number;
3687
- };
3688
- complete: {
3689
- type: string;
3690
- enum: boolean[];
3691
- };
3692
- truncated: {
3693
- type: string;
3694
- enum: boolean[];
3695
- };
3696
- response_byte_limit: {
3697
- readonly type: "integer";
3698
- readonly minimum: 1;
3699
- };
3700
- time_budget_ms: {
3701
- readonly type: "integer";
3702
- readonly minimum: 1;
3703
- };
3704
- };
3705
- };
3706
4486
  };
3707
4487
  };
3708
4488
  };
3709
4489
  };
3710
4490
  };
3711
- "400": {
4491
+ "401": {
3712
4492
  content: {
3713
4493
  "application/json": {
3714
4494
  schema: {
@@ -3717,7 +4497,7 @@ export declare function buildV1OpenApiDocument(version?: string): {
3717
4497
  };
3718
4498
  };
3719
4499
  };
3720
- "404": {
4500
+ "503": {
3721
4501
  content: {
3722
4502
  "application/json": {
3723
4503
  schema: {
@@ -3729,7 +4509,7 @@ export declare function buildV1OpenApiDocument(version?: string): {
3729
4509
  };
3730
4510
  };
3731
4511
  };
3732
- "/v1/project-registration/validate-prior-adoption": {
4512
+ "/v1/task-subtree-transfer/inspect": {
3733
4513
  post: {
3734
4514
  operationId: string;
3735
4515
  summary: string;
@@ -3738,22 +4518,7 @@ export declare function buildV1OpenApiDocument(version?: string): {
3738
4518
  content: {
3739
4519
  "application/json": {
3740
4520
  schema: {
3741
- type: string;
3742
- additionalProperties: boolean;
3743
- required: string[];
3744
- properties: {
3745
- source_request: {
3746
- $ref: string;
3747
- };
3748
- source_receipt: {
3749
- $ref: string;
3750
- };
3751
- current_record: {
3752
- oneOf: {
3753
- $ref: string;
3754
- }[];
3755
- };
3756
- };
4521
+ $ref: string;
3757
4522
  };
3758
4523
  };
3759
4524
  };
@@ -3767,7 +4532,7 @@ export declare function buildV1OpenApiDocument(version?: string): {
3767
4532
  additionalProperties: boolean;
3768
4533
  required: string[];
3769
4534
  properties: {
3770
- validation: {
4535
+ inspection: {
3771
4536
  $ref: string;
3772
4537
  };
3773
4538
  };
@@ -3805,7 +4570,7 @@ export declare function buildV1OpenApiDocument(version?: string): {
3805
4570
  };
3806
4571
  };
3807
4572
  };
3808
- "/v1/project-registration/compensate": {
4573
+ "/v1/task-subtree-transfer/apply": {
3809
4574
  post: {
3810
4575
  operationId: string;
3811
4576
  summary: string;
@@ -3828,7 +4593,7 @@ export declare function buildV1OpenApiDocument(version?: string): {
3828
4593
  additionalProperties: boolean;
3829
4594
  required: string[];
3830
4595
  properties: {
3831
- receipt: {
4596
+ result: {
3832
4597
  $ref: string;
3833
4598
  };
3834
4599
  };
@@ -3845,7 +4610,7 @@ export declare function buildV1OpenApiDocument(version?: string): {
3845
4610
  };
3846
4611
  };
3847
4612
  };
3848
- "404": {
4613
+ "409": {
3849
4614
  content: {
3850
4615
  "application/json": {
3851
4616
  schema: {
@@ -3854,7 +4619,7 @@ export declare function buildV1OpenApiDocument(version?: string): {
3854
4619
  };
3855
4620
  };
3856
4621
  };
3857
- "409": {
4622
+ "503": {
3858
4623
  content: {
3859
4624
  "application/json": {
3860
4625
  schema: {
@@ -3866,7 +4631,7 @@ export declare function buildV1OpenApiDocument(version?: string): {
3866
4631
  };
3867
4632
  };
3868
4633
  };
3869
- "/v1/project-registration/verify-inverse": {
4634
+ "/v1/task-subtree-transfer/read-exact": {
3870
4635
  post: {
3871
4636
  operationId: string;
3872
4637
  summary: string;
@@ -3889,26 +4654,51 @@ export declare function buildV1OpenApiDocument(version?: string): {
3889
4654
  additionalProperties: boolean;
3890
4655
  required: string[];
3891
4656
  properties: {
3892
- verification: {
3893
- type: string;
3894
- additionalProperties: boolean;
3895
- required: string[];
3896
- properties: {
3897
- target_id: {
3898
- type: string;
3899
- format: string;
3900
- };
3901
- accepted_receipt_id: {
3902
- type: string;
3903
- };
3904
- absent: {
3905
- type: string;
3906
- enum: boolean[];
3907
- };
3908
- digest: {
3909
- type: string;
3910
- };
3911
- };
4657
+ result: {
4658
+ $ref: string;
4659
+ };
4660
+ };
4661
+ };
4662
+ };
4663
+ };
4664
+ };
4665
+ "404": {
4666
+ content: {
4667
+ "application/json": {
4668
+ schema: {
4669
+ $ref: string;
4670
+ };
4671
+ };
4672
+ };
4673
+ };
4674
+ };
4675
+ };
4676
+ };
4677
+ "/v1/task-subtree-transfer/rollback": {
4678
+ post: {
4679
+ operationId: string;
4680
+ summary: string;
4681
+ requestBody: {
4682
+ required: boolean;
4683
+ content: {
4684
+ "application/json": {
4685
+ schema: {
4686
+ $ref: string;
4687
+ };
4688
+ };
4689
+ };
4690
+ };
4691
+ responses: {
4692
+ "201": {
4693
+ content: {
4694
+ "application/json": {
4695
+ schema: {
4696
+ type: string;
4697
+ additionalProperties: boolean;
4698
+ required: string[];
4699
+ properties: {
4700
+ result: {
4701
+ $ref: string;
3912
4702
  };
3913
4703
  };
3914
4704
  };