@primitive.ai/prim 0.1.0-alpha.94 → 0.1.0-alpha.96

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 (40) hide show
  1. package/README.md +7 -4
  2. package/dist/{chunk-UKUAAAXE.js → chunk-27ADT6FQ.js} +2 -2
  3. package/dist/{chunk-OTHKG76J.js → chunk-35FMRWJH.js} +1 -1
  4. package/dist/{chunk-DXJQR4QI.js → chunk-4GHANPWQ.js} +2 -2
  5. package/dist/{chunk-WUXFLE7X.js → chunk-7KABYYWG.js} +64 -66
  6. package/dist/{chunk-LFFLHSQO.js → chunk-CU7RW7XU.js} +63 -6
  7. package/dist/{chunk-H4UNYFUC.js → chunk-DHOQGHKQ.js} +184 -1
  8. package/dist/{chunk-2GP5UFV7.js → chunk-DWRSEC34.js} +5 -3
  9. package/dist/{chunk-O7YAW7G6.js → chunk-FVDBULGZ.js} +9 -11
  10. package/dist/{chunk-G2VMA2QO.js → chunk-LY6NJ7KL.js} +6 -4
  11. package/dist/{chunk-ZB4F75SZ.js → chunk-MXVCP33E.js} +5 -1
  12. package/dist/{chunk-TYAHC25F.js → chunk-QCBB5HFX.js} +1 -1
  13. package/dist/{chunk-IMK4JKTA.js → chunk-RK4ZS3HG.js} +2 -2
  14. package/dist/{chunk-ZU563PQI.js → chunk-ROLYLXJS.js} +2 -2
  15. package/dist/{chunk-OH3EZXYX.js → chunk-UO2U6IKF.js} +1 -1
  16. package/dist/{chunk-K7D2EYBS.js → chunk-URLLSALP.js} +2 -2
  17. package/dist/{chunk-FXF4JWK2.js → chunk-XEDJ5N3M.js} +17 -2
  18. package/dist/{chunk-AXQQMX2U.js → chunk-Y5W4TZM7.js} +2 -2
  19. package/dist/{chunk-ICM2XCXS.js → chunk-YYE2NLWX.js} +2 -2
  20. package/dist/{chunk-DSWT6BCC.js → chunk-Z6NPNLOT.js} +825 -665
  21. package/dist/daemon/server.js +836 -540
  22. package/dist/hook-runtime/daemon/server.js +836 -540
  23. package/dist/hook-runtime/hooks/post-commit.js +836 -540
  24. package/dist/hook-runtime/hooks/post-rewrite.js +836 -540
  25. package/dist/hook-runtime/hooks/post-tool-use.js +1160 -791
  26. package/dist/hook-runtime/hooks/pre-tool-use.js +2060 -1751
  27. package/dist/hook-runtime/hooks/prim-hook.js +1257 -856
  28. package/dist/hook-runtime/hooks/session-end.js +179 -129
  29. package/dist/hook-runtime/hooks/session-start.js +938 -640
  30. package/dist/hook-runtime/index.js +892 -554
  31. package/dist/hooks/post-commit.js +11 -11
  32. package/dist/hooks/post-rewrite.js +10 -10
  33. package/dist/hooks/post-tool-use.js +20 -20
  34. package/dist/hooks/pre-commit.js +4 -4
  35. package/dist/hooks/pre-tool-use.js +29 -17
  36. package/dist/hooks/prim-hook.js +22 -18
  37. package/dist/hooks/session-end.js +11 -5
  38. package/dist/hooks/session-start.js +26 -22
  39. package/dist/index.js +79 -60
  40. package/package.json +1 -1
@@ -12382,7 +12382,6 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
12382
12382
  return errors === 0;
12383
12383
  }
12384
12384
  validate45.evaluated = { "dynamicProps": true, "dynamicItems": false };
12385
- var schema83 = { "anyOf": [{ "type": "object", "properties": { "error": { "type": "string", "const": "Unauthorized" } }, "required": ["error"], "additionalProperties": false }, { "type": "object", "properties": { "error": { "type": "string", "const": "interactive_workos_authority_required" } }, "required": ["error"], "additionalProperties": false }, { "type": "object", "properties": { "error": { "type": "string", "const": "feature_disabled" }, "feature": { "type": "string", "const": "github-connect" } }, "required": ["error", "feature"], "additionalProperties": false }, { "type": "object", "properties": { "error": { "type": "string", "enum": ["github_connect_unavailable", "feature_check_unavailable"] }, "feature": { "type": "string", "const": "github-connect" } }, "required": ["error", "feature"], "additionalProperties": false }, { "type": "object", "properties": { "error": { "type": "string", "const": "WorkOS identity authority is temporarily unavailable" } }, "required": ["error"], "additionalProperties": false }, { "type": "object", "properties": { "error": { "type": "string", "const": "github_install_intent_conflict" } }, "required": ["error"], "additionalProperties": false }, { "type": "object", "properties": { "error": { "type": "string", "const": "github_install_intent_rate_limited" }, "retryAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["error", "retryAt"], "additionalProperties": false }] };
12386
12385
  function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
12387
12386
  ;
12388
12387
  let vErrors = null;
@@ -12532,7 +12531,7 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
12532
12531
  if (errors === _errs12) {
12533
12532
  if (data && typeof data == "object" && !Array.isArray(data)) {
12534
12533
  let missing2;
12535
- if (data.error === void 0 && (missing2 = "error") || data.feature === void 0 && (missing2 = "feature")) {
12534
+ if (data.error === void 0 && (missing2 = "error")) {
12536
12535
  const err10 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/2/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" };
12537
12536
  if (vErrors === null) {
12538
12537
  vErrors = [err10];
@@ -12543,7 +12542,7 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
12543
12542
  } else {
12544
12543
  const _errs14 = errors;
12545
12544
  for (const key2 in data) {
12546
- if (!(key2 === "error" || key2 === "feature")) {
12545
+ if (!(key2 === "error")) {
12547
12546
  const err11 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/2/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
12548
12547
  if (vErrors === null) {
12549
12548
  vErrors = [err11];
@@ -12557,7 +12556,6 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
12557
12556
  if (_errs14 === errors) {
12558
12557
  if (data.error !== void 0) {
12559
12558
  let data2 = data.error;
12560
- const _errs15 = errors;
12561
12559
  if (typeof data2 !== "string") {
12562
12560
  const err12 = { instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/2/properties/error/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12563
12561
  if (vErrors === null) {
@@ -12567,8 +12565,8 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
12567
12565
  }
12568
12566
  errors++;
12569
12567
  }
12570
- if ("feature_disabled" !== data2) {
12571
- const err13 = { instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/2/properties/error/const", keyword: "const", params: { allowedValue: "feature_disabled" }, message: "must be equal to constant" };
12568
+ if ("github_connect_unavailable" !== data2) {
12569
+ const err13 = { instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/2/properties/error/const", keyword: "const", params: { allowedValue: "github_connect_unavailable" }, message: "must be equal to constant" };
12572
12570
  if (vErrors === null) {
12573
12571
  vErrors = [err13];
12574
12572
  } else {
@@ -12576,45 +12574,15 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
12576
12574
  }
12577
12575
  errors++;
12578
12576
  }
12579
- var valid4 = _errs15 === errors;
12580
- } else {
12581
- var valid4 = true;
12582
- }
12583
- if (valid4) {
12584
- if (data.feature !== void 0) {
12585
- let data3 = data.feature;
12586
- const _errs17 = errors;
12587
- if (typeof data3 !== "string") {
12588
- const err14 = { instancePath: instancePath + "/feature", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/2/properties/feature/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12589
- if (vErrors === null) {
12590
- vErrors = [err14];
12591
- } else {
12592
- vErrors.push(err14);
12593
- }
12594
- errors++;
12595
- }
12596
- if ("github-connect" !== data3) {
12597
- const err15 = { instancePath: instancePath + "/feature", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/2/properties/feature/const", keyword: "const", params: { allowedValue: "github-connect" }, message: "must be equal to constant" };
12598
- if (vErrors === null) {
12599
- vErrors = [err15];
12600
- } else {
12601
- vErrors.push(err15);
12602
- }
12603
- errors++;
12604
- }
12605
- var valid4 = _errs17 === errors;
12606
- } else {
12607
- var valid4 = true;
12608
- }
12609
12577
  }
12610
12578
  }
12611
12579
  }
12612
12580
  } else {
12613
- const err16 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
12581
+ const err14 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
12614
12582
  if (vErrors === null) {
12615
- vErrors = [err16];
12583
+ vErrors = [err14];
12616
12584
  } else {
12617
- vErrors.push(err16);
12585
+ vErrors.push(err14);
12618
12586
  }
12619
12587
  errors++;
12620
12588
  }
@@ -12626,148 +12594,117 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
12626
12594
  props0 = true;
12627
12595
  }
12628
12596
  }
12629
- const _errs19 = errors;
12630
- if (errors === _errs19) {
12597
+ const _errs17 = errors;
12598
+ if (errors === _errs17) {
12631
12599
  if (data && typeof data == "object" && !Array.isArray(data)) {
12632
12600
  let missing3;
12633
- if (data.error === void 0 && (missing3 = "error") || data.feature === void 0 && (missing3 = "feature")) {
12634
- const err17 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/3/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" };
12601
+ if (data.error === void 0 && (missing3 = "error")) {
12602
+ const err15 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/3/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" };
12635
12603
  if (vErrors === null) {
12636
- vErrors = [err17];
12604
+ vErrors = [err15];
12637
12605
  } else {
12638
- vErrors.push(err17);
12606
+ vErrors.push(err15);
12639
12607
  }
12640
12608
  errors++;
12641
12609
  } else {
12642
- const _errs21 = errors;
12610
+ const _errs19 = errors;
12643
12611
  for (const key3 in data) {
12644
- if (!(key3 === "error" || key3 === "feature")) {
12645
- const err18 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
12612
+ if (!(key3 === "error")) {
12613
+ const err16 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
12646
12614
  if (vErrors === null) {
12647
- vErrors = [err18];
12615
+ vErrors = [err16];
12648
12616
  } else {
12649
- vErrors.push(err18);
12617
+ vErrors.push(err16);
12650
12618
  }
12651
12619
  errors++;
12652
12620
  break;
12653
12621
  }
12654
12622
  }
12655
- if (_errs21 === errors) {
12623
+ if (_errs19 === errors) {
12656
12624
  if (data.error !== void 0) {
12657
- let data4 = data.error;
12658
- const _errs22 = errors;
12659
- if (typeof data4 !== "string") {
12660
- const err19 = { instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/3/properties/error/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12625
+ let data3 = data.error;
12626
+ if (typeof data3 !== "string") {
12627
+ const err17 = { instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/3/properties/error/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12661
12628
  if (vErrors === null) {
12662
- vErrors = [err19];
12629
+ vErrors = [err17];
12663
12630
  } else {
12664
- vErrors.push(err19);
12631
+ vErrors.push(err17);
12665
12632
  }
12666
12633
  errors++;
12667
12634
  }
12668
- if (!(data4 === "github_connect_unavailable" || data4 === "feature_check_unavailable")) {
12669
- const err20 = { instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/3/properties/error/enum", keyword: "enum", params: { allowedValues: schema83.anyOf[3].properties.error.enum }, message: "must be equal to one of the allowed values" };
12635
+ if ("WorkOS identity authority is temporarily unavailable" !== data3) {
12636
+ const err18 = { instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/3/properties/error/const", keyword: "const", params: { allowedValue: "WorkOS identity authority is temporarily unavailable" }, message: "must be equal to constant" };
12670
12637
  if (vErrors === null) {
12671
- vErrors = [err20];
12638
+ vErrors = [err18];
12672
12639
  } else {
12673
- vErrors.push(err20);
12640
+ vErrors.push(err18);
12674
12641
  }
12675
12642
  errors++;
12676
12643
  }
12677
- var valid5 = _errs22 === errors;
12678
- } else {
12679
- var valid5 = true;
12680
- }
12681
- if (valid5) {
12682
- if (data.feature !== void 0) {
12683
- let data5 = data.feature;
12684
- const _errs24 = errors;
12685
- if (typeof data5 !== "string") {
12686
- const err21 = { instancePath: instancePath + "/feature", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/3/properties/feature/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12687
- if (vErrors === null) {
12688
- vErrors = [err21];
12689
- } else {
12690
- vErrors.push(err21);
12691
- }
12692
- errors++;
12693
- }
12694
- if ("github-connect" !== data5) {
12695
- const err22 = { instancePath: instancePath + "/feature", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/3/properties/feature/const", keyword: "const", params: { allowedValue: "github-connect" }, message: "must be equal to constant" };
12696
- if (vErrors === null) {
12697
- vErrors = [err22];
12698
- } else {
12699
- vErrors.push(err22);
12700
- }
12701
- errors++;
12702
- }
12703
- var valid5 = _errs24 === errors;
12704
- } else {
12705
- var valid5 = true;
12706
- }
12707
12644
  }
12708
12645
  }
12709
12646
  }
12710
12647
  } else {
12711
- const err23 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/3/type", keyword: "type", params: { type: "object" }, message: "must be object" };
12648
+ const err19 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/3/type", keyword: "type", params: { type: "object" }, message: "must be object" };
12712
12649
  if (vErrors === null) {
12713
- vErrors = [err23];
12650
+ vErrors = [err19];
12714
12651
  } else {
12715
- vErrors.push(err23);
12652
+ vErrors.push(err19);
12716
12653
  }
12717
12654
  errors++;
12718
12655
  }
12719
12656
  }
12720
- var _valid0 = _errs19 === errors;
12657
+ var _valid0 = _errs17 === errors;
12721
12658
  valid1 = valid1 || _valid0;
12722
12659
  if (_valid0) {
12723
12660
  if (props0 !== true) {
12724
12661
  props0 = true;
12725
12662
  }
12726
12663
  }
12727
- const _errs26 = errors;
12728
- if (errors === _errs26) {
12664
+ const _errs22 = errors;
12665
+ if (errors === _errs22) {
12729
12666
  if (data && typeof data == "object" && !Array.isArray(data)) {
12730
12667
  let missing4;
12731
12668
  if (data.error === void 0 && (missing4 = "error")) {
12732
- const err24 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/4/required", keyword: "required", params: { missingProperty: missing4 }, message: "must have required property '" + missing4 + "'" };
12669
+ const err20 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/4/required", keyword: "required", params: { missingProperty: missing4 }, message: "must have required property '" + missing4 + "'" };
12733
12670
  if (vErrors === null) {
12734
- vErrors = [err24];
12671
+ vErrors = [err20];
12735
12672
  } else {
12736
- vErrors.push(err24);
12673
+ vErrors.push(err20);
12737
12674
  }
12738
12675
  errors++;
12739
12676
  } else {
12740
- const _errs28 = errors;
12677
+ const _errs24 = errors;
12741
12678
  for (const key4 in data) {
12742
12679
  if (!(key4 === "error")) {
12743
- const err25 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/4/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" };
12680
+ const err21 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/4/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" };
12744
12681
  if (vErrors === null) {
12745
- vErrors = [err25];
12682
+ vErrors = [err21];
12746
12683
  } else {
12747
- vErrors.push(err25);
12684
+ vErrors.push(err21);
12748
12685
  }
12749
12686
  errors++;
12750
12687
  break;
12751
12688
  }
12752
12689
  }
12753
- if (_errs28 === errors) {
12690
+ if (_errs24 === errors) {
12754
12691
  if (data.error !== void 0) {
12755
- let data6 = data.error;
12756
- if (typeof data6 !== "string") {
12757
- const err26 = { instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/4/properties/error/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12692
+ let data4 = data.error;
12693
+ if (typeof data4 !== "string") {
12694
+ const err22 = { instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/4/properties/error/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12758
12695
  if (vErrors === null) {
12759
- vErrors = [err26];
12696
+ vErrors = [err22];
12760
12697
  } else {
12761
- vErrors.push(err26);
12698
+ vErrors.push(err22);
12762
12699
  }
12763
12700
  errors++;
12764
12701
  }
12765
- if ("WorkOS identity authority is temporarily unavailable" !== data6) {
12766
- const err27 = { instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/4/properties/error/const", keyword: "const", params: { allowedValue: "WorkOS identity authority is temporarily unavailable" }, message: "must be equal to constant" };
12702
+ if ("github_install_intent_conflict" !== data4) {
12703
+ const err23 = { instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/4/properties/error/const", keyword: "const", params: { allowedValue: "github_install_intent_conflict" }, message: "must be equal to constant" };
12767
12704
  if (vErrors === null) {
12768
- vErrors = [err27];
12705
+ vErrors = [err23];
12769
12706
  } else {
12770
- vErrors.push(err27);
12707
+ vErrors.push(err23);
12771
12708
  }
12772
12709
  errors++;
12773
12710
  }
@@ -12775,195 +12712,128 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
12775
12712
  }
12776
12713
  }
12777
12714
  } else {
12778
- const err28 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/4/type", keyword: "type", params: { type: "object" }, message: "must be object" };
12715
+ const err24 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/4/type", keyword: "type", params: { type: "object" }, message: "must be object" };
12779
12716
  if (vErrors === null) {
12780
- vErrors = [err28];
12717
+ vErrors = [err24];
12781
12718
  } else {
12782
- vErrors.push(err28);
12719
+ vErrors.push(err24);
12783
12720
  }
12784
12721
  errors++;
12785
12722
  }
12786
12723
  }
12787
- var _valid0 = _errs26 === errors;
12724
+ var _valid0 = _errs22 === errors;
12788
12725
  valid1 = valid1 || _valid0;
12789
12726
  if (_valid0) {
12790
12727
  if (props0 !== true) {
12791
12728
  props0 = true;
12792
12729
  }
12793
12730
  }
12794
- const _errs31 = errors;
12795
- if (errors === _errs31) {
12731
+ const _errs27 = errors;
12732
+ if (errors === _errs27) {
12796
12733
  if (data && typeof data == "object" && !Array.isArray(data)) {
12797
12734
  let missing5;
12798
- if (data.error === void 0 && (missing5 = "error")) {
12799
- const err29 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/5/required", keyword: "required", params: { missingProperty: missing5 }, message: "must have required property '" + missing5 + "'" };
12735
+ if (data.error === void 0 && (missing5 = "error") || data.retryAt === void 0 && (missing5 = "retryAt")) {
12736
+ const err25 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/5/required", keyword: "required", params: { missingProperty: missing5 }, message: "must have required property '" + missing5 + "'" };
12800
12737
  if (vErrors === null) {
12801
- vErrors = [err29];
12738
+ vErrors = [err25];
12802
12739
  } else {
12803
- vErrors.push(err29);
12740
+ vErrors.push(err25);
12804
12741
  }
12805
12742
  errors++;
12806
12743
  } else {
12807
- const _errs33 = errors;
12744
+ const _errs29 = errors;
12808
12745
  for (const key5 in data) {
12809
- if (!(key5 === "error")) {
12810
- const err30 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/5/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" };
12811
- if (vErrors === null) {
12812
- vErrors = [err30];
12813
- } else {
12814
- vErrors.push(err30);
12815
- }
12816
- errors++;
12817
- break;
12818
- }
12819
- }
12820
- if (_errs33 === errors) {
12821
- if (data.error !== void 0) {
12822
- let data7 = data.error;
12823
- if (typeof data7 !== "string") {
12824
- const err31 = { instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/5/properties/error/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12825
- if (vErrors === null) {
12826
- vErrors = [err31];
12827
- } else {
12828
- vErrors.push(err31);
12829
- }
12830
- errors++;
12831
- }
12832
- if ("github_install_intent_conflict" !== data7) {
12833
- const err32 = { instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/5/properties/error/const", keyword: "const", params: { allowedValue: "github_install_intent_conflict" }, message: "must be equal to constant" };
12834
- if (vErrors === null) {
12835
- vErrors = [err32];
12836
- } else {
12837
- vErrors.push(err32);
12838
- }
12839
- errors++;
12840
- }
12841
- }
12842
- }
12843
- }
12844
- } else {
12845
- const err33 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/5/type", keyword: "type", params: { type: "object" }, message: "must be object" };
12846
- if (vErrors === null) {
12847
- vErrors = [err33];
12848
- } else {
12849
- vErrors.push(err33);
12850
- }
12851
- errors++;
12852
- }
12853
- }
12854
- var _valid0 = _errs31 === errors;
12855
- valid1 = valid1 || _valid0;
12856
- if (_valid0) {
12857
- if (props0 !== true) {
12858
- props0 = true;
12859
- }
12860
- }
12861
- const _errs36 = errors;
12862
- if (errors === _errs36) {
12863
- if (data && typeof data == "object" && !Array.isArray(data)) {
12864
- let missing6;
12865
- if (data.error === void 0 && (missing6 = "error") || data.retryAt === void 0 && (missing6 = "retryAt")) {
12866
- const err34 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/6/required", keyword: "required", params: { missingProperty: missing6 }, message: "must have required property '" + missing6 + "'" };
12867
- if (vErrors === null) {
12868
- vErrors = [err34];
12869
- } else {
12870
- vErrors.push(err34);
12871
- }
12872
- errors++;
12873
- } else {
12874
- const _errs38 = errors;
12875
- for (const key6 in data) {
12876
- if (!(key6 === "error" || key6 === "retryAt")) {
12877
- const err35 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/6/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key6 }, message: "must NOT have additional properties" };
12746
+ if (!(key5 === "error" || key5 === "retryAt")) {
12747
+ const err26 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/5/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" };
12878
12748
  if (vErrors === null) {
12879
- vErrors = [err35];
12749
+ vErrors = [err26];
12880
12750
  } else {
12881
- vErrors.push(err35);
12751
+ vErrors.push(err26);
12882
12752
  }
12883
12753
  errors++;
12884
12754
  break;
12885
12755
  }
12886
12756
  }
12887
- if (_errs38 === errors) {
12757
+ if (_errs29 === errors) {
12888
12758
  if (data.error !== void 0) {
12889
- let data8 = data.error;
12890
- const _errs39 = errors;
12891
- if (typeof data8 !== "string") {
12892
- const err36 = { instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/6/properties/error/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12759
+ let data5 = data.error;
12760
+ const _errs30 = errors;
12761
+ if (typeof data5 !== "string") {
12762
+ const err27 = { instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/5/properties/error/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12893
12763
  if (vErrors === null) {
12894
- vErrors = [err36];
12764
+ vErrors = [err27];
12895
12765
  } else {
12896
- vErrors.push(err36);
12766
+ vErrors.push(err27);
12897
12767
  }
12898
12768
  errors++;
12899
12769
  }
12900
- if ("github_install_intent_rate_limited" !== data8) {
12901
- const err37 = { instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/6/properties/error/const", keyword: "const", params: { allowedValue: "github_install_intent_rate_limited" }, message: "must be equal to constant" };
12770
+ if ("github_install_intent_rate_limited" !== data5) {
12771
+ const err28 = { instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/5/properties/error/const", keyword: "const", params: { allowedValue: "github_install_intent_rate_limited" }, message: "must be equal to constant" };
12902
12772
  if (vErrors === null) {
12903
- vErrors = [err37];
12773
+ vErrors = [err28];
12904
12774
  } else {
12905
- vErrors.push(err37);
12775
+ vErrors.push(err28);
12906
12776
  }
12907
12777
  errors++;
12908
12778
  }
12909
- var valid8 = _errs39 === errors;
12779
+ var valid7 = _errs30 === errors;
12910
12780
  } else {
12911
- var valid8 = true;
12781
+ var valid7 = true;
12912
12782
  }
12913
- if (valid8) {
12783
+ if (valid7) {
12914
12784
  if (data.retryAt !== void 0) {
12915
- let data9 = data.retryAt;
12916
- const _errs41 = errors;
12917
- if (!(typeof data9 == "number" && (!(data9 % 1) && !isNaN(data9)) && isFinite(data9))) {
12918
- const err38 = { instancePath: instancePath + "/retryAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/6/properties/retryAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
12785
+ let data6 = data.retryAt;
12786
+ const _errs32 = errors;
12787
+ if (!(typeof data6 == "number" && (!(data6 % 1) && !isNaN(data6)) && isFinite(data6))) {
12788
+ const err29 = { instancePath: instancePath + "/retryAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/5/properties/retryAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
12919
12789
  if (vErrors === null) {
12920
- vErrors = [err38];
12790
+ vErrors = [err29];
12921
12791
  } else {
12922
- vErrors.push(err38);
12792
+ vErrors.push(err29);
12923
12793
  }
12924
12794
  errors++;
12925
12795
  }
12926
- if (errors === _errs41) {
12927
- if (typeof data9 == "number" && isFinite(data9)) {
12928
- if (data9 > 9007199254740991 || isNaN(data9)) {
12929
- const err39 = { instancePath: instancePath + "/retryAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/6/properties/retryAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
12796
+ if (errors === _errs32) {
12797
+ if (typeof data6 == "number" && isFinite(data6)) {
12798
+ if (data6 > 9007199254740991 || isNaN(data6)) {
12799
+ const err30 = { instancePath: instancePath + "/retryAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/5/properties/retryAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
12930
12800
  if (vErrors === null) {
12931
- vErrors = [err39];
12801
+ vErrors = [err30];
12932
12802
  } else {
12933
- vErrors.push(err39);
12803
+ vErrors.push(err30);
12934
12804
  }
12935
12805
  errors++;
12936
12806
  } else {
12937
- if (data9 < 0 || isNaN(data9)) {
12938
- const err40 = { instancePath: instancePath + "/retryAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/6/properties/retryAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
12807
+ if (data6 < 0 || isNaN(data6)) {
12808
+ const err31 = { instancePath: instancePath + "/retryAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/5/properties/retryAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
12939
12809
  if (vErrors === null) {
12940
- vErrors = [err40];
12810
+ vErrors = [err31];
12941
12811
  } else {
12942
- vErrors.push(err40);
12812
+ vErrors.push(err31);
12943
12813
  }
12944
12814
  errors++;
12945
12815
  }
12946
12816
  }
12947
12817
  }
12948
12818
  }
12949
- var valid8 = _errs41 === errors;
12819
+ var valid7 = _errs32 === errors;
12950
12820
  } else {
12951
- var valid8 = true;
12821
+ var valid7 = true;
12952
12822
  }
12953
12823
  }
12954
12824
  }
12955
12825
  }
12956
12826
  } else {
12957
- const err41 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/6/type", keyword: "type", params: { type: "object" }, message: "must be object" };
12827
+ const err32 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf/5/type", keyword: "type", params: { type: "object" }, message: "must be object" };
12958
12828
  if (vErrors === null) {
12959
- vErrors = [err41];
12829
+ vErrors = [err32];
12960
12830
  } else {
12961
- vErrors.push(err41);
12831
+ vErrors.push(err32);
12962
12832
  }
12963
12833
  errors++;
12964
12834
  }
12965
12835
  }
12966
- var _valid0 = _errs36 === errors;
12836
+ var _valid0 = _errs27 === errors;
12967
12837
  valid1 = valid1 || _valid0;
12968
12838
  if (_valid0) {
12969
12839
  if (props0 !== true) {
@@ -12971,11 +12841,11 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
12971
12841
  }
12972
12842
  }
12973
12843
  if (!valid1) {
12974
- const err42 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
12844
+ const err33 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartErrorResponse/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
12975
12845
  if (vErrors === null) {
12976
- vErrors = [err42];
12846
+ vErrors = [err33];
12977
12847
  } else {
12978
- vErrors.push(err42);
12848
+ vErrors.push(err33);
12979
12849
  }
12980
12850
  errors++;
12981
12851
  validate46.errors = vErrors;
@@ -15078,7 +14948,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
15078
14948
  }
15079
14949
  validate50.evaluated = { "dynamicProps": true, "dynamicItems": false };
15080
14950
  var isMoveIngestRequest = validate51;
15081
- var schema93 = { "type": "object", "properties": { "batch": { "type": "array", "items": { "anyOf": [{ "type": "object", "properties": { "moveId": { "type": "string" }, "capturedAt": { "type": "number" }, "sessionId": { "type": "string" }, "invocationId": { "type": "string" }, "eventType": { "type": "string" }, "payload": {}, "env": {}, "capturedOrganizationId": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$" }, "captureAuthorityKind": { "type": "string", "enum": ["workos", "service_token"] }, "decisionLifecycleProtocolVersion": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }, "producer": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] }, "toolOutcome": { "type": "string", "enum": ["succeeded", "returned", "failed", "interrupted", "prevented", "unknown"] }, "envelopeVersion": { "type": "number", "const": 4 } }, "required": ["moveId", "capturedAt", "sessionId", "eventType", "capturedOrganizationId", "captureAuthorityKind", "decisionLifecycleProtocolVersion", "envelopeVersion"], "additionalProperties": {} }, { "type": "object", "properties": { "moveId": { "type": "string" }, "capturedAt": { "type": "number" }, "sessionId": { "type": "string" }, "invocationId": { "type": "string" }, "eventType": { "type": "string" }, "payload": {}, "env": {}, "capturedOrganizationId": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$" }, "captureAuthorityKind": { "type": "string", "enum": ["workos", "service_token"] }, "decisionLifecycleProtocolVersion": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }, "producer": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] }, "toolOutcome": { "type": "string", "enum": ["succeeded", "returned", "failed", "interrupted", "prevented", "unknown"] }, "envelopeVersion": { "type": "number", "exclusiveMaximum": 4 } }, "required": ["moveId", "capturedAt", "sessionId", "eventType"], "additionalProperties": {} }] } } }, "required": ["batch"], "additionalProperties": {} };
14951
+ var schema93 = { "type": "object", "properties": { "batch": { "type": "array", "items": { "anyOf": [{ "type": "object", "properties": { "moveId": { "type": "string" }, "capturedAt": { "type": "number" }, "sessionId": { "type": "string" }, "invocationId": { "type": "string" }, "eventType": { "type": "string" }, "payload": {}, "env": {}, "repositoryContext": { "oneOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "repository_bound" }, "repoSyncId": { "type": "string", "minLength": 1, "maxLength": 128 } }, "required": ["kind", "repoSyncId"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "non_repository" } }, "required": ["kind"], "additionalProperties": false }] }, "capturedOrganizationId": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$" }, "captureAuthorityKind": { "type": "string", "enum": ["workos", "service_token"] }, "decisionLifecycleProtocolVersion": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }, "producer": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] }, "toolOutcome": { "type": "string", "enum": ["succeeded", "returned", "failed", "interrupted", "prevented", "unknown"] }, "envelopeVersion": { "type": "number", "const": 4 } }, "required": ["moveId", "capturedAt", "sessionId", "eventType", "capturedOrganizationId", "captureAuthorityKind", "decisionLifecycleProtocolVersion", "envelopeVersion"], "additionalProperties": {} }, { "type": "object", "properties": { "moveId": { "type": "string" }, "capturedAt": { "type": "number" }, "sessionId": { "type": "string" }, "invocationId": { "type": "string" }, "eventType": { "type": "string" }, "payload": {}, "env": {}, "repositoryContext": { "oneOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "repository_bound" }, "repoSyncId": { "type": "string", "minLength": 1, "maxLength": 128 } }, "required": ["kind", "repoSyncId"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "non_repository" } }, "required": ["kind"], "additionalProperties": false }] }, "capturedOrganizationId": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$" }, "captureAuthorityKind": { "type": "string", "enum": ["workos", "service_token"] }, "decisionLifecycleProtocolVersion": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }, "producer": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] }, "toolOutcome": { "type": "string", "enum": ["succeeded", "returned", "failed", "interrupted", "prevented", "unknown"] }, "envelopeVersion": { "type": "number", "exclusiveMaximum": 4 } }, "required": ["moveId", "capturedAt", "sessionId", "eventType"], "additionalProperties": {} }] } } }, "required": ["batch"], "additionalProperties": {} };
15082
14952
  var pattern8 = new RegExp("^[A-Za-z0-9_-]+$", "u");
15083
14953
  function validate51(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
15084
14954
  ;
@@ -15205,13 +15075,18 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
15205
15075
  var valid4 = true;
15206
15076
  }
15207
15077
  if (valid4) {
15208
- if (data1.capturedOrganizationId !== void 0) {
15209
- let data7 = data1.capturedOrganizationId;
15078
+ if (data1.repositoryContext !== void 0) {
15079
+ let data7 = data1.repositoryContext;
15210
15080
  const _errs20 = errors;
15211
- if (errors === _errs20) {
15212
- if (typeof data7 === "string") {
15213
- if (func1(data7) > 128) {
15214
- const err6 = { instancePath: instancePath + "/batch/" + i0 + "/capturedOrganizationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/capturedOrganizationId/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
15081
+ const _errs21 = errors;
15082
+ let valid5 = false;
15083
+ let passing0 = null;
15084
+ const _errs22 = errors;
15085
+ if (errors === _errs22) {
15086
+ if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
15087
+ let missing2;
15088
+ if (data7.kind === void 0 && (missing2 = "kind") || data7.repoSyncId === void 0 && (missing2 = "repoSyncId")) {
15089
+ const err6 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/repositoryContext/oneOf/0/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" };
15215
15090
  if (vErrors === null) {
15216
15091
  vErrors = [err6];
15217
15092
  } else {
@@ -15219,184 +15094,392 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
15219
15094
  }
15220
15095
  errors++;
15221
15096
  } else {
15222
- if (func1(data7) < 1) {
15223
- const err7 = { instancePath: instancePath + "/batch/" + i0 + "/capturedOrganizationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/capturedOrganizationId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
15224
- if (vErrors === null) {
15225
- vErrors = [err7];
15226
- } else {
15227
- vErrors.push(err7);
15228
- }
15229
- errors++;
15230
- } else {
15231
- if (!pattern8.test(data7)) {
15232
- const err8 = { instancePath: instancePath + "/batch/" + i0 + "/capturedOrganizationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/capturedOrganizationId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9_-]+$" }, message: 'must match pattern "^[A-Za-z0-9_-]+$"' };
15097
+ const _errs24 = errors;
15098
+ for (const key0 in data7) {
15099
+ if (!(key0 === "kind" || key0 === "repoSyncId")) {
15100
+ const err7 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/repositoryContext/oneOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
15233
15101
  if (vErrors === null) {
15234
- vErrors = [err8];
15102
+ vErrors = [err7];
15235
15103
  } else {
15236
- vErrors.push(err8);
15104
+ vErrors.push(err7);
15237
15105
  }
15238
15106
  errors++;
15107
+ break;
15108
+ }
15109
+ }
15110
+ if (_errs24 === errors) {
15111
+ if (data7.kind !== void 0) {
15112
+ let data8 = data7.kind;
15113
+ const _errs25 = errors;
15114
+ if (typeof data8 !== "string") {
15115
+ const err8 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/repositoryContext/oneOf/0/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15116
+ if (vErrors === null) {
15117
+ vErrors = [err8];
15118
+ } else {
15119
+ vErrors.push(err8);
15120
+ }
15121
+ errors++;
15122
+ }
15123
+ if ("repository_bound" !== data8) {
15124
+ const err9 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/repositoryContext/oneOf/0/properties/kind/const", keyword: "const", params: { allowedValue: "repository_bound" }, message: "must be equal to constant" };
15125
+ if (vErrors === null) {
15126
+ vErrors = [err9];
15127
+ } else {
15128
+ vErrors.push(err9);
15129
+ }
15130
+ errors++;
15131
+ }
15132
+ var valid6 = _errs25 === errors;
15133
+ } else {
15134
+ var valid6 = true;
15135
+ }
15136
+ if (valid6) {
15137
+ if (data7.repoSyncId !== void 0) {
15138
+ let data9 = data7.repoSyncId;
15139
+ const _errs27 = errors;
15140
+ if (errors === _errs27) {
15141
+ if (typeof data9 === "string") {
15142
+ if (func1(data9) > 128) {
15143
+ const err10 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext/repoSyncId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/repositoryContext/oneOf/0/properties/repoSyncId/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
15144
+ if (vErrors === null) {
15145
+ vErrors = [err10];
15146
+ } else {
15147
+ vErrors.push(err10);
15148
+ }
15149
+ errors++;
15150
+ } else {
15151
+ if (func1(data9) < 1) {
15152
+ const err11 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext/repoSyncId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/repositoryContext/oneOf/0/properties/repoSyncId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
15153
+ if (vErrors === null) {
15154
+ vErrors = [err11];
15155
+ } else {
15156
+ vErrors.push(err11);
15157
+ }
15158
+ errors++;
15159
+ }
15160
+ }
15161
+ } else {
15162
+ const err12 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext/repoSyncId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/repositoryContext/oneOf/0/properties/repoSyncId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15163
+ if (vErrors === null) {
15164
+ vErrors = [err12];
15165
+ } else {
15166
+ vErrors.push(err12);
15167
+ }
15168
+ errors++;
15169
+ }
15170
+ }
15171
+ var valid6 = _errs27 === errors;
15172
+ } else {
15173
+ var valid6 = true;
15174
+ }
15239
15175
  }
15240
15176
  }
15241
15177
  }
15242
15178
  } else {
15243
- const err9 = { instancePath: instancePath + "/batch/" + i0 + "/capturedOrganizationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/capturedOrganizationId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15179
+ const err13 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/repositoryContext/oneOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
15244
15180
  if (vErrors === null) {
15245
- vErrors = [err9];
15181
+ vErrors = [err13];
15246
15182
  } else {
15247
- vErrors.push(err9);
15183
+ vErrors.push(err13);
15248
15184
  }
15249
15185
  errors++;
15250
15186
  }
15251
15187
  }
15252
- var valid4 = _errs20 === errors;
15253
- } else {
15254
- var valid4 = true;
15255
- }
15256
- if (valid4) {
15257
- if (data1.captureAuthorityKind !== void 0) {
15258
- let data8 = data1.captureAuthorityKind;
15259
- const _errs22 = errors;
15260
- if (typeof data8 !== "string") {
15261
- const err10 = { instancePath: instancePath + "/batch/" + i0 + "/captureAuthorityKind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/captureAuthorityKind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15262
- if (vErrors === null) {
15263
- vErrors = [err10];
15264
- } else {
15265
- vErrors.push(err10);
15266
- }
15267
- errors++;
15268
- }
15269
- if (!(data8 === "workos" || data8 === "service_token")) {
15270
- const err11 = { instancePath: instancePath + "/batch/" + i0 + "/captureAuthorityKind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/captureAuthorityKind/enum", keyword: "enum", params: { allowedValues: schema93.properties.batch.items.anyOf[0].properties.captureAuthorityKind.enum }, message: "must be equal to one of the allowed values" };
15271
- if (vErrors === null) {
15272
- vErrors = [err11];
15273
- } else {
15274
- vErrors.push(err11);
15275
- }
15276
- errors++;
15277
- }
15278
- var valid4 = _errs22 === errors;
15279
- } else {
15280
- var valid4 = true;
15188
+ var _valid1 = _errs22 === errors;
15189
+ if (_valid1) {
15190
+ valid5 = true;
15191
+ passing0 = 0;
15192
+ var props0 = true;
15281
15193
  }
15282
- if (valid4) {
15283
- if (data1.decisionLifecycleProtocolVersion !== void 0) {
15284
- let data9 = data1.decisionLifecycleProtocolVersion;
15285
- const _errs24 = errors;
15286
- if (!(typeof data9 == "number" && (!(data9 % 1) && !isNaN(data9)) && isFinite(data9))) {
15287
- const err12 = { instancePath: instancePath + "/batch/" + i0 + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/decisionLifecycleProtocolVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
15194
+ const _errs29 = errors;
15195
+ if (errors === _errs29) {
15196
+ if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
15197
+ let missing3;
15198
+ if (data7.kind === void 0 && (missing3 = "kind")) {
15199
+ const err14 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/repositoryContext/oneOf/1/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" };
15288
15200
  if (vErrors === null) {
15289
- vErrors = [err12];
15201
+ vErrors = [err14];
15290
15202
  } else {
15291
- vErrors.push(err12);
15203
+ vErrors.push(err14);
15292
15204
  }
15293
15205
  errors++;
15294
- }
15295
- if (errors === _errs24) {
15296
- if (typeof data9 == "number" && isFinite(data9)) {
15297
- if (data9 > 9007199254740991 || isNaN(data9)) {
15298
- const err13 = { instancePath: instancePath + "/batch/" + i0 + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/decisionLifecycleProtocolVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
15206
+ } else {
15207
+ const _errs31 = errors;
15208
+ for (const key1 in data7) {
15209
+ if (!(key1 === "kind")) {
15210
+ const err15 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/repositoryContext/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
15299
15211
  if (vErrors === null) {
15300
- vErrors = [err13];
15212
+ vErrors = [err15];
15301
15213
  } else {
15302
- vErrors.push(err13);
15214
+ vErrors.push(err15);
15303
15215
  }
15304
15216
  errors++;
15305
- } else {
15306
- if (data9 < 1 || isNaN(data9)) {
15307
- const err14 = { instancePath: instancePath + "/batch/" + i0 + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/decisionLifecycleProtocolVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
15217
+ break;
15218
+ }
15219
+ }
15220
+ if (_errs31 === errors) {
15221
+ if (data7.kind !== void 0) {
15222
+ let data10 = data7.kind;
15223
+ if (typeof data10 !== "string") {
15224
+ const err16 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/repositoryContext/oneOf/1/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15225
+ if (vErrors === null) {
15226
+ vErrors = [err16];
15227
+ } else {
15228
+ vErrors.push(err16);
15229
+ }
15230
+ errors++;
15231
+ }
15232
+ if ("non_repository" !== data10) {
15233
+ const err17 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/repositoryContext/oneOf/1/properties/kind/const", keyword: "const", params: { allowedValue: "non_repository" }, message: "must be equal to constant" };
15308
15234
  if (vErrors === null) {
15309
- vErrors = [err14];
15235
+ vErrors = [err17];
15310
15236
  } else {
15311
- vErrors.push(err14);
15237
+ vErrors.push(err17);
15312
15238
  }
15313
15239
  errors++;
15314
15240
  }
15315
15241
  }
15316
15242
  }
15317
15243
  }
15318
- var valid4 = _errs24 === errors;
15319
15244
  } else {
15320
- var valid4 = true;
15321
- }
15322
- if (valid4) {
15323
- if (data1.producer !== void 0) {
15324
- let data10 = data1.producer;
15325
- const _errs26 = errors;
15326
- if (typeof data10 !== "string") {
15327
- const err15 = { instancePath: instancePath + "/batch/" + i0 + "/producer", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/producer/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15328
- if (vErrors === null) {
15329
- vErrors = [err15];
15330
- } else {
15331
- vErrors.push(err15);
15332
- }
15333
- errors++;
15334
- }
15335
- if (!(data10 === "claude_code" || data10 === "codex" || data10 === "cursor" || data10 === "hermes")) {
15336
- const err16 = { instancePath: instancePath + "/batch/" + i0 + "/producer", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/producer/enum", keyword: "enum", params: { allowedValues: schema93.properties.batch.items.anyOf[0].properties.producer.enum }, message: "must be equal to one of the allowed values" };
15337
- if (vErrors === null) {
15338
- vErrors = [err16];
15339
- } else {
15340
- vErrors.push(err16);
15341
- }
15342
- errors++;
15343
- }
15344
- var valid4 = _errs26 === errors;
15245
+ const err18 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/repositoryContext/oneOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
15246
+ if (vErrors === null) {
15247
+ vErrors = [err18];
15345
15248
  } else {
15346
- var valid4 = true;
15249
+ vErrors.push(err18);
15347
15250
  }
15348
- if (valid4) {
15349
- if (data1.toolOutcome !== void 0) {
15350
- let data11 = data1.toolOutcome;
15351
- const _errs28 = errors;
15352
- if (typeof data11 !== "string") {
15353
- const err17 = { instancePath: instancePath + "/batch/" + i0 + "/toolOutcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/toolOutcome/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15354
- if (vErrors === null) {
15355
- vErrors = [err17];
15356
- } else {
15357
- vErrors.push(err17);
15251
+ errors++;
15252
+ }
15253
+ }
15254
+ var _valid1 = _errs29 === errors;
15255
+ if (_valid1 && valid5) {
15256
+ valid5 = false;
15257
+ passing0 = [passing0, 1];
15258
+ } else {
15259
+ if (_valid1) {
15260
+ valid5 = true;
15261
+ passing0 = 1;
15262
+ if (props0 !== true) {
15263
+ props0 = true;
15264
+ }
15265
+ }
15266
+ }
15267
+ if (!valid5) {
15268
+ const err19 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/repositoryContext/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
15269
+ if (vErrors === null) {
15270
+ vErrors = [err19];
15271
+ } else {
15272
+ vErrors.push(err19);
15273
+ }
15274
+ errors++;
15275
+ } else {
15276
+ errors = _errs21;
15277
+ if (vErrors !== null) {
15278
+ if (_errs21) {
15279
+ vErrors.length = _errs21;
15280
+ } else {
15281
+ vErrors = null;
15282
+ }
15283
+ }
15284
+ }
15285
+ var valid4 = _errs20 === errors;
15286
+ } else {
15287
+ var valid4 = true;
15288
+ }
15289
+ if (valid4) {
15290
+ if (data1.capturedOrganizationId !== void 0) {
15291
+ let data11 = data1.capturedOrganizationId;
15292
+ const _errs34 = errors;
15293
+ if (errors === _errs34) {
15294
+ if (typeof data11 === "string") {
15295
+ if (func1(data11) > 128) {
15296
+ const err20 = { instancePath: instancePath + "/batch/" + i0 + "/capturedOrganizationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/capturedOrganizationId/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
15297
+ if (vErrors === null) {
15298
+ vErrors = [err20];
15299
+ } else {
15300
+ vErrors.push(err20);
15301
+ }
15302
+ errors++;
15303
+ } else {
15304
+ if (func1(data11) < 1) {
15305
+ const err21 = { instancePath: instancePath + "/batch/" + i0 + "/capturedOrganizationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/capturedOrganizationId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
15306
+ if (vErrors === null) {
15307
+ vErrors = [err21];
15308
+ } else {
15309
+ vErrors.push(err21);
15310
+ }
15311
+ errors++;
15312
+ } else {
15313
+ if (!pattern8.test(data11)) {
15314
+ const err22 = { instancePath: instancePath + "/batch/" + i0 + "/capturedOrganizationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/capturedOrganizationId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9_-]+$" }, message: 'must match pattern "^[A-Za-z0-9_-]+$"' };
15315
+ if (vErrors === null) {
15316
+ vErrors = [err22];
15317
+ } else {
15318
+ vErrors.push(err22);
15319
+ }
15320
+ errors++;
15321
+ }
15322
+ }
15323
+ }
15324
+ } else {
15325
+ const err23 = { instancePath: instancePath + "/batch/" + i0 + "/capturedOrganizationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/capturedOrganizationId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15326
+ if (vErrors === null) {
15327
+ vErrors = [err23];
15328
+ } else {
15329
+ vErrors.push(err23);
15330
+ }
15331
+ errors++;
15332
+ }
15333
+ }
15334
+ var valid4 = _errs34 === errors;
15335
+ } else {
15336
+ var valid4 = true;
15337
+ }
15338
+ if (valid4) {
15339
+ if (data1.captureAuthorityKind !== void 0) {
15340
+ let data12 = data1.captureAuthorityKind;
15341
+ const _errs36 = errors;
15342
+ if (typeof data12 !== "string") {
15343
+ const err24 = { instancePath: instancePath + "/batch/" + i0 + "/captureAuthorityKind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/captureAuthorityKind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15344
+ if (vErrors === null) {
15345
+ vErrors = [err24];
15346
+ } else {
15347
+ vErrors.push(err24);
15348
+ }
15349
+ errors++;
15350
+ }
15351
+ if (!(data12 === "workos" || data12 === "service_token")) {
15352
+ const err25 = { instancePath: instancePath + "/batch/" + i0 + "/captureAuthorityKind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/captureAuthorityKind/enum", keyword: "enum", params: { allowedValues: schema93.properties.batch.items.anyOf[0].properties.captureAuthorityKind.enum }, message: "must be equal to one of the allowed values" };
15353
+ if (vErrors === null) {
15354
+ vErrors = [err25];
15355
+ } else {
15356
+ vErrors.push(err25);
15357
+ }
15358
+ errors++;
15359
+ }
15360
+ var valid4 = _errs36 === errors;
15361
+ } else {
15362
+ var valid4 = true;
15363
+ }
15364
+ if (valid4) {
15365
+ if (data1.decisionLifecycleProtocolVersion !== void 0) {
15366
+ let data13 = data1.decisionLifecycleProtocolVersion;
15367
+ const _errs38 = errors;
15368
+ if (!(typeof data13 == "number" && (!(data13 % 1) && !isNaN(data13)) && isFinite(data13))) {
15369
+ const err26 = { instancePath: instancePath + "/batch/" + i0 + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/decisionLifecycleProtocolVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
15370
+ if (vErrors === null) {
15371
+ vErrors = [err26];
15372
+ } else {
15373
+ vErrors.push(err26);
15374
+ }
15375
+ errors++;
15376
+ }
15377
+ if (errors === _errs38) {
15378
+ if (typeof data13 == "number" && isFinite(data13)) {
15379
+ if (data13 > 9007199254740991 || isNaN(data13)) {
15380
+ const err27 = { instancePath: instancePath + "/batch/" + i0 + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/decisionLifecycleProtocolVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
15381
+ if (vErrors === null) {
15382
+ vErrors = [err27];
15383
+ } else {
15384
+ vErrors.push(err27);
15385
+ }
15386
+ errors++;
15387
+ } else {
15388
+ if (data13 < 1 || isNaN(data13)) {
15389
+ const err28 = { instancePath: instancePath + "/batch/" + i0 + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/decisionLifecycleProtocolVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
15390
+ if (vErrors === null) {
15391
+ vErrors = [err28];
15392
+ } else {
15393
+ vErrors.push(err28);
15394
+ }
15395
+ errors++;
15396
+ }
15397
+ }
15398
+ }
15399
+ }
15400
+ var valid4 = _errs38 === errors;
15401
+ } else {
15402
+ var valid4 = true;
15403
+ }
15404
+ if (valid4) {
15405
+ if (data1.producer !== void 0) {
15406
+ let data14 = data1.producer;
15407
+ const _errs40 = errors;
15408
+ if (typeof data14 !== "string") {
15409
+ const err29 = { instancePath: instancePath + "/batch/" + i0 + "/producer", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/producer/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15410
+ if (vErrors === null) {
15411
+ vErrors = [err29];
15412
+ } else {
15413
+ vErrors.push(err29);
15358
15414
  }
15359
15415
  errors++;
15360
15416
  }
15361
- if (!(data11 === "succeeded" || data11 === "returned" || data11 === "failed" || data11 === "interrupted" || data11 === "prevented" || data11 === "unknown")) {
15362
- const err18 = { instancePath: instancePath + "/batch/" + i0 + "/toolOutcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/toolOutcome/enum", keyword: "enum", params: { allowedValues: schema93.properties.batch.items.anyOf[0].properties.toolOutcome.enum }, message: "must be equal to one of the allowed values" };
15417
+ if (!(data14 === "claude_code" || data14 === "codex" || data14 === "cursor" || data14 === "hermes")) {
15418
+ const err30 = { instancePath: instancePath + "/batch/" + i0 + "/producer", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/producer/enum", keyword: "enum", params: { allowedValues: schema93.properties.batch.items.anyOf[0].properties.producer.enum }, message: "must be equal to one of the allowed values" };
15363
15419
  if (vErrors === null) {
15364
- vErrors = [err18];
15420
+ vErrors = [err30];
15365
15421
  } else {
15366
- vErrors.push(err18);
15422
+ vErrors.push(err30);
15367
15423
  }
15368
15424
  errors++;
15369
15425
  }
15370
- var valid4 = _errs28 === errors;
15426
+ var valid4 = _errs40 === errors;
15371
15427
  } else {
15372
15428
  var valid4 = true;
15373
15429
  }
15374
15430
  if (valid4) {
15375
- if (data1.envelopeVersion !== void 0) {
15376
- let data12 = data1.envelopeVersion;
15377
- const _errs30 = errors;
15378
- if (!(typeof data12 == "number" && isFinite(data12))) {
15379
- const err19 = { instancePath: instancePath + "/batch/" + i0 + "/envelopeVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/envelopeVersion/type", keyword: "type", params: { type: "number" }, message: "must be number" };
15431
+ if (data1.toolOutcome !== void 0) {
15432
+ let data15 = data1.toolOutcome;
15433
+ const _errs42 = errors;
15434
+ if (typeof data15 !== "string") {
15435
+ const err31 = { instancePath: instancePath + "/batch/" + i0 + "/toolOutcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/toolOutcome/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15380
15436
  if (vErrors === null) {
15381
- vErrors = [err19];
15437
+ vErrors = [err31];
15382
15438
  } else {
15383
- vErrors.push(err19);
15439
+ vErrors.push(err31);
15384
15440
  }
15385
15441
  errors++;
15386
15442
  }
15387
- if (4 !== data12) {
15388
- const err20 = { instancePath: instancePath + "/batch/" + i0 + "/envelopeVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/envelopeVersion/const", keyword: "const", params: { allowedValue: 4 }, message: "must be equal to constant" };
15443
+ if (!(data15 === "succeeded" || data15 === "returned" || data15 === "failed" || data15 === "interrupted" || data15 === "prevented" || data15 === "unknown")) {
15444
+ const err32 = { instancePath: instancePath + "/batch/" + i0 + "/toolOutcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/toolOutcome/enum", keyword: "enum", params: { allowedValues: schema93.properties.batch.items.anyOf[0].properties.toolOutcome.enum }, message: "must be equal to one of the allowed values" };
15389
15445
  if (vErrors === null) {
15390
- vErrors = [err20];
15446
+ vErrors = [err32];
15391
15447
  } else {
15392
- vErrors.push(err20);
15448
+ vErrors.push(err32);
15393
15449
  }
15394
15450
  errors++;
15395
15451
  }
15396
- var valid4 = _errs30 === errors;
15452
+ var valid4 = _errs42 === errors;
15397
15453
  } else {
15398
15454
  var valid4 = true;
15399
15455
  }
15456
+ if (valid4) {
15457
+ if (data1.envelopeVersion !== void 0) {
15458
+ let data16 = data1.envelopeVersion;
15459
+ const _errs44 = errors;
15460
+ if (!(typeof data16 == "number" && isFinite(data16))) {
15461
+ const err33 = { instancePath: instancePath + "/batch/" + i0 + "/envelopeVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/envelopeVersion/type", keyword: "type", params: { type: "number" }, message: "must be number" };
15462
+ if (vErrors === null) {
15463
+ vErrors = [err33];
15464
+ } else {
15465
+ vErrors.push(err33);
15466
+ }
15467
+ errors++;
15468
+ }
15469
+ if (4 !== data16) {
15470
+ const err34 = { instancePath: instancePath + "/batch/" + i0 + "/envelopeVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/properties/envelopeVersion/const", keyword: "const", params: { allowedValue: 4 }, message: "must be equal to constant" };
15471
+ if (vErrors === null) {
15472
+ vErrors = [err34];
15473
+ } else {
15474
+ vErrors.push(err34);
15475
+ }
15476
+ errors++;
15477
+ }
15478
+ var valid4 = _errs44 === errors;
15479
+ } else {
15480
+ var valid4 = true;
15481
+ }
15482
+ }
15400
15483
  }
15401
15484
  }
15402
15485
  }
@@ -15409,11 +15492,11 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
15409
15492
  }
15410
15493
  }
15411
15494
  } else {
15412
- const err21 = { instancePath: instancePath + "/batch/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
15495
+ const err35 = { instancePath: instancePath + "/batch/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
15413
15496
  if (vErrors === null) {
15414
- vErrors = [err21];
15497
+ vErrors = [err35];
15415
15498
  } else {
15416
- vErrors.push(err21);
15499
+ vErrors.push(err35);
15417
15500
  }
15418
15501
  errors++;
15419
15502
  }
@@ -15421,296 +15504,509 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
15421
15504
  var _valid0 = _errs7 === errors;
15422
15505
  valid3 = valid3 || _valid0;
15423
15506
  if (_valid0) {
15424
- var props0 = true;
15507
+ var props1 = true;
15425
15508
  }
15426
- const _errs32 = errors;
15427
- if (errors === _errs32) {
15509
+ const _errs46 = errors;
15510
+ if (errors === _errs46) {
15428
15511
  if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
15429
- let missing2;
15430
- if (data1.moveId === void 0 && (missing2 = "moveId") || data1.capturedAt === void 0 && (missing2 = "capturedAt") || data1.sessionId === void 0 && (missing2 = "sessionId") || data1.eventType === void 0 && (missing2 = "eventType")) {
15431
- const err22 = { instancePath: instancePath + "/batch/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" };
15512
+ let missing4;
15513
+ if (data1.moveId === void 0 && (missing4 = "moveId") || data1.capturedAt === void 0 && (missing4 = "capturedAt") || data1.sessionId === void 0 && (missing4 = "sessionId") || data1.eventType === void 0 && (missing4 = "eventType")) {
15514
+ const err36 = { instancePath: instancePath + "/batch/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/required", keyword: "required", params: { missingProperty: missing4 }, message: "must have required property '" + missing4 + "'" };
15432
15515
  if (vErrors === null) {
15433
- vErrors = [err22];
15516
+ vErrors = [err36];
15434
15517
  } else {
15435
- vErrors.push(err22);
15518
+ vErrors.push(err36);
15436
15519
  }
15437
15520
  errors++;
15438
15521
  } else {
15439
15522
  if (data1.moveId !== void 0) {
15440
- const _errs35 = errors;
15523
+ const _errs49 = errors;
15441
15524
  if (typeof data1.moveId !== "string") {
15442
- const err23 = { instancePath: instancePath + "/batch/" + i0 + "/moveId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/moveId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15525
+ const err37 = { instancePath: instancePath + "/batch/" + i0 + "/moveId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/moveId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15443
15526
  if (vErrors === null) {
15444
- vErrors = [err23];
15527
+ vErrors = [err37];
15445
15528
  } else {
15446
- vErrors.push(err23);
15529
+ vErrors.push(err37);
15447
15530
  }
15448
15531
  errors++;
15449
15532
  }
15450
- var valid5 = _errs35 === errors;
15533
+ var valid8 = _errs49 === errors;
15451
15534
  } else {
15452
- var valid5 = true;
15535
+ var valid8 = true;
15453
15536
  }
15454
- if (valid5) {
15537
+ if (valid8) {
15455
15538
  if (data1.capturedAt !== void 0) {
15456
- let data14 = data1.capturedAt;
15457
- const _errs37 = errors;
15458
- if (!(typeof data14 == "number" && isFinite(data14))) {
15459
- const err24 = { instancePath: instancePath + "/batch/" + i0 + "/capturedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/capturedAt/type", keyword: "type", params: { type: "number" }, message: "must be number" };
15539
+ let data18 = data1.capturedAt;
15540
+ const _errs51 = errors;
15541
+ if (!(typeof data18 == "number" && isFinite(data18))) {
15542
+ const err38 = { instancePath: instancePath + "/batch/" + i0 + "/capturedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/capturedAt/type", keyword: "type", params: { type: "number" }, message: "must be number" };
15460
15543
  if (vErrors === null) {
15461
- vErrors = [err24];
15544
+ vErrors = [err38];
15462
15545
  } else {
15463
- vErrors.push(err24);
15546
+ vErrors.push(err38);
15464
15547
  }
15465
15548
  errors++;
15466
15549
  }
15467
- var valid5 = _errs37 === errors;
15550
+ var valid8 = _errs51 === errors;
15468
15551
  } else {
15469
- var valid5 = true;
15552
+ var valid8 = true;
15470
15553
  }
15471
- if (valid5) {
15554
+ if (valid8) {
15472
15555
  if (data1.sessionId !== void 0) {
15473
- const _errs39 = errors;
15556
+ const _errs53 = errors;
15474
15557
  if (typeof data1.sessionId !== "string") {
15475
- const err25 = { instancePath: instancePath + "/batch/" + i0 + "/sessionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/sessionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15558
+ const err39 = { instancePath: instancePath + "/batch/" + i0 + "/sessionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/sessionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15476
15559
  if (vErrors === null) {
15477
- vErrors = [err25];
15560
+ vErrors = [err39];
15478
15561
  } else {
15479
- vErrors.push(err25);
15562
+ vErrors.push(err39);
15480
15563
  }
15481
15564
  errors++;
15482
15565
  }
15483
- var valid5 = _errs39 === errors;
15566
+ var valid8 = _errs53 === errors;
15484
15567
  } else {
15485
- var valid5 = true;
15568
+ var valid8 = true;
15486
15569
  }
15487
- if (valid5) {
15570
+ if (valid8) {
15488
15571
  if (data1.invocationId !== void 0) {
15489
- const _errs41 = errors;
15572
+ const _errs55 = errors;
15490
15573
  if (typeof data1.invocationId !== "string") {
15491
- const err26 = { instancePath: instancePath + "/batch/" + i0 + "/invocationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/invocationId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15574
+ const err40 = { instancePath: instancePath + "/batch/" + i0 + "/invocationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/invocationId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15492
15575
  if (vErrors === null) {
15493
- vErrors = [err26];
15576
+ vErrors = [err40];
15494
15577
  } else {
15495
- vErrors.push(err26);
15578
+ vErrors.push(err40);
15496
15579
  }
15497
15580
  errors++;
15498
15581
  }
15499
- var valid5 = _errs41 === errors;
15582
+ var valid8 = _errs55 === errors;
15500
15583
  } else {
15501
- var valid5 = true;
15584
+ var valid8 = true;
15502
15585
  }
15503
- if (valid5) {
15586
+ if (valid8) {
15504
15587
  if (data1.eventType !== void 0) {
15505
- const _errs43 = errors;
15588
+ const _errs57 = errors;
15506
15589
  if (typeof data1.eventType !== "string") {
15507
- const err27 = { instancePath: instancePath + "/batch/" + i0 + "/eventType", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/eventType/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15590
+ const err41 = { instancePath: instancePath + "/batch/" + i0 + "/eventType", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/eventType/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15508
15591
  if (vErrors === null) {
15509
- vErrors = [err27];
15592
+ vErrors = [err41];
15510
15593
  } else {
15511
- vErrors.push(err27);
15594
+ vErrors.push(err41);
15512
15595
  }
15513
15596
  errors++;
15514
15597
  }
15515
- var valid5 = _errs43 === errors;
15598
+ var valid8 = _errs57 === errors;
15516
15599
  } else {
15517
- var valid5 = true;
15600
+ var valid8 = true;
15518
15601
  }
15519
- if (valid5) {
15520
- if (data1.capturedOrganizationId !== void 0) {
15521
- let data18 = data1.capturedOrganizationId;
15522
- const _errs45 = errors;
15523
- if (errors === _errs45) {
15524
- if (typeof data18 === "string") {
15525
- if (func1(data18) > 128) {
15526
- const err28 = { instancePath: instancePath + "/batch/" + i0 + "/capturedOrganizationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/capturedOrganizationId/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
15602
+ if (valid8) {
15603
+ if (data1.repositoryContext !== void 0) {
15604
+ let data22 = data1.repositoryContext;
15605
+ const _errs59 = errors;
15606
+ const _errs60 = errors;
15607
+ let valid9 = false;
15608
+ let passing1 = null;
15609
+ const _errs61 = errors;
15610
+ if (errors === _errs61) {
15611
+ if (data22 && typeof data22 == "object" && !Array.isArray(data22)) {
15612
+ let missing5;
15613
+ if (data22.kind === void 0 && (missing5 = "kind") || data22.repoSyncId === void 0 && (missing5 = "repoSyncId")) {
15614
+ const err42 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/repositoryContext/oneOf/0/required", keyword: "required", params: { missingProperty: missing5 }, message: "must have required property '" + missing5 + "'" };
15527
15615
  if (vErrors === null) {
15528
- vErrors = [err28];
15616
+ vErrors = [err42];
15529
15617
  } else {
15530
- vErrors.push(err28);
15618
+ vErrors.push(err42);
15531
15619
  }
15532
15620
  errors++;
15533
15621
  } else {
15534
- if (func1(data18) < 1) {
15535
- const err29 = { instancePath: instancePath + "/batch/" + i0 + "/capturedOrganizationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/capturedOrganizationId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
15536
- if (vErrors === null) {
15537
- vErrors = [err29];
15538
- } else {
15539
- vErrors.push(err29);
15540
- }
15541
- errors++;
15542
- } else {
15543
- if (!pattern8.test(data18)) {
15544
- const err30 = { instancePath: instancePath + "/batch/" + i0 + "/capturedOrganizationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/capturedOrganizationId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9_-]+$" }, message: 'must match pattern "^[A-Za-z0-9_-]+$"' };
15622
+ const _errs63 = errors;
15623
+ for (const key2 in data22) {
15624
+ if (!(key2 === "kind" || key2 === "repoSyncId")) {
15625
+ const err43 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/repositoryContext/oneOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
15545
15626
  if (vErrors === null) {
15546
- vErrors = [err30];
15627
+ vErrors = [err43];
15547
15628
  } else {
15548
- vErrors.push(err30);
15629
+ vErrors.push(err43);
15549
15630
  }
15550
15631
  errors++;
15632
+ break;
15633
+ }
15634
+ }
15635
+ if (_errs63 === errors) {
15636
+ if (data22.kind !== void 0) {
15637
+ let data23 = data22.kind;
15638
+ const _errs64 = errors;
15639
+ if (typeof data23 !== "string") {
15640
+ const err44 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/repositoryContext/oneOf/0/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15641
+ if (vErrors === null) {
15642
+ vErrors = [err44];
15643
+ } else {
15644
+ vErrors.push(err44);
15645
+ }
15646
+ errors++;
15647
+ }
15648
+ if ("repository_bound" !== data23) {
15649
+ const err45 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/repositoryContext/oneOf/0/properties/kind/const", keyword: "const", params: { allowedValue: "repository_bound" }, message: "must be equal to constant" };
15650
+ if (vErrors === null) {
15651
+ vErrors = [err45];
15652
+ } else {
15653
+ vErrors.push(err45);
15654
+ }
15655
+ errors++;
15656
+ }
15657
+ var valid10 = _errs64 === errors;
15658
+ } else {
15659
+ var valid10 = true;
15660
+ }
15661
+ if (valid10) {
15662
+ if (data22.repoSyncId !== void 0) {
15663
+ let data24 = data22.repoSyncId;
15664
+ const _errs66 = errors;
15665
+ if (errors === _errs66) {
15666
+ if (typeof data24 === "string") {
15667
+ if (func1(data24) > 128) {
15668
+ const err46 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext/repoSyncId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/repositoryContext/oneOf/0/properties/repoSyncId/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
15669
+ if (vErrors === null) {
15670
+ vErrors = [err46];
15671
+ } else {
15672
+ vErrors.push(err46);
15673
+ }
15674
+ errors++;
15675
+ } else {
15676
+ if (func1(data24) < 1) {
15677
+ const err47 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext/repoSyncId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/repositoryContext/oneOf/0/properties/repoSyncId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
15678
+ if (vErrors === null) {
15679
+ vErrors = [err47];
15680
+ } else {
15681
+ vErrors.push(err47);
15682
+ }
15683
+ errors++;
15684
+ }
15685
+ }
15686
+ } else {
15687
+ const err48 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext/repoSyncId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/repositoryContext/oneOf/0/properties/repoSyncId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15688
+ if (vErrors === null) {
15689
+ vErrors = [err48];
15690
+ } else {
15691
+ vErrors.push(err48);
15692
+ }
15693
+ errors++;
15694
+ }
15695
+ }
15696
+ var valid10 = _errs66 === errors;
15697
+ } else {
15698
+ var valid10 = true;
15699
+ }
15551
15700
  }
15552
15701
  }
15553
15702
  }
15554
15703
  } else {
15555
- const err31 = { instancePath: instancePath + "/batch/" + i0 + "/capturedOrganizationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/capturedOrganizationId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15704
+ const err49 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/repositoryContext/oneOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
15556
15705
  if (vErrors === null) {
15557
- vErrors = [err31];
15706
+ vErrors = [err49];
15558
15707
  } else {
15559
- vErrors.push(err31);
15708
+ vErrors.push(err49);
15560
15709
  }
15561
15710
  errors++;
15562
15711
  }
15563
15712
  }
15564
- var valid5 = _errs45 === errors;
15565
- } else {
15566
- var valid5 = true;
15567
- }
15568
- if (valid5) {
15569
- if (data1.captureAuthorityKind !== void 0) {
15570
- let data19 = data1.captureAuthorityKind;
15571
- const _errs47 = errors;
15572
- if (typeof data19 !== "string") {
15573
- const err32 = { instancePath: instancePath + "/batch/" + i0 + "/captureAuthorityKind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/captureAuthorityKind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15574
- if (vErrors === null) {
15575
- vErrors = [err32];
15713
+ var _valid2 = _errs61 === errors;
15714
+ if (_valid2) {
15715
+ valid9 = true;
15716
+ passing1 = 0;
15717
+ var props2 = true;
15718
+ }
15719
+ const _errs68 = errors;
15720
+ if (errors === _errs68) {
15721
+ if (data22 && typeof data22 == "object" && !Array.isArray(data22)) {
15722
+ let missing6;
15723
+ if (data22.kind === void 0 && (missing6 = "kind")) {
15724
+ const err50 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/repositoryContext/oneOf/1/required", keyword: "required", params: { missingProperty: missing6 }, message: "must have required property '" + missing6 + "'" };
15725
+ if (vErrors === null) {
15726
+ vErrors = [err50];
15727
+ } else {
15728
+ vErrors.push(err50);
15729
+ }
15730
+ errors++;
15576
15731
  } else {
15577
- vErrors.push(err32);
15732
+ const _errs70 = errors;
15733
+ for (const key3 in data22) {
15734
+ if (!(key3 === "kind")) {
15735
+ const err51 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/repositoryContext/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
15736
+ if (vErrors === null) {
15737
+ vErrors = [err51];
15738
+ } else {
15739
+ vErrors.push(err51);
15740
+ }
15741
+ errors++;
15742
+ break;
15743
+ }
15744
+ }
15745
+ if (_errs70 === errors) {
15746
+ if (data22.kind !== void 0) {
15747
+ let data25 = data22.kind;
15748
+ if (typeof data25 !== "string") {
15749
+ const err52 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/repositoryContext/oneOf/1/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15750
+ if (vErrors === null) {
15751
+ vErrors = [err52];
15752
+ } else {
15753
+ vErrors.push(err52);
15754
+ }
15755
+ errors++;
15756
+ }
15757
+ if ("non_repository" !== data25) {
15758
+ const err53 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/repositoryContext/oneOf/1/properties/kind/const", keyword: "const", params: { allowedValue: "non_repository" }, message: "must be equal to constant" };
15759
+ if (vErrors === null) {
15760
+ vErrors = [err53];
15761
+ } else {
15762
+ vErrors.push(err53);
15763
+ }
15764
+ errors++;
15765
+ }
15766
+ }
15767
+ }
15578
15768
  }
15579
- errors++;
15580
- }
15581
- if (!(data19 === "workos" || data19 === "service_token")) {
15582
- const err33 = { instancePath: instancePath + "/batch/" + i0 + "/captureAuthorityKind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/captureAuthorityKind/enum", keyword: "enum", params: { allowedValues: schema93.properties.batch.items.anyOf[1].properties.captureAuthorityKind.enum }, message: "must be equal to one of the allowed values" };
15769
+ } else {
15770
+ const err54 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/repositoryContext/oneOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
15583
15771
  if (vErrors === null) {
15584
- vErrors = [err33];
15772
+ vErrors = [err54];
15585
15773
  } else {
15586
- vErrors.push(err33);
15774
+ vErrors.push(err54);
15587
15775
  }
15588
15776
  errors++;
15589
15777
  }
15590
- var valid5 = _errs47 === errors;
15778
+ }
15779
+ var _valid2 = _errs68 === errors;
15780
+ if (_valid2 && valid9) {
15781
+ valid9 = false;
15782
+ passing1 = [passing1, 1];
15591
15783
  } else {
15592
- var valid5 = true;
15784
+ if (_valid2) {
15785
+ valid9 = true;
15786
+ passing1 = 1;
15787
+ if (props2 !== true) {
15788
+ props2 = true;
15789
+ }
15790
+ }
15593
15791
  }
15594
- if (valid5) {
15595
- if (data1.decisionLifecycleProtocolVersion !== void 0) {
15596
- let data20 = data1.decisionLifecycleProtocolVersion;
15597
- const _errs49 = errors;
15598
- if (!(typeof data20 == "number" && (!(data20 % 1) && !isNaN(data20)) && isFinite(data20))) {
15599
- const err34 = { instancePath: instancePath + "/batch/" + i0 + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/decisionLifecycleProtocolVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
15600
- if (vErrors === null) {
15601
- vErrors = [err34];
15602
- } else {
15603
- vErrors.push(err34);
15604
- }
15605
- errors++;
15792
+ if (!valid9) {
15793
+ const err55 = { instancePath: instancePath + "/batch/" + i0 + "/repositoryContext", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/repositoryContext/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
15794
+ if (vErrors === null) {
15795
+ vErrors = [err55];
15796
+ } else {
15797
+ vErrors.push(err55);
15798
+ }
15799
+ errors++;
15800
+ } else {
15801
+ errors = _errs60;
15802
+ if (vErrors !== null) {
15803
+ if (_errs60) {
15804
+ vErrors.length = _errs60;
15805
+ } else {
15806
+ vErrors = null;
15606
15807
  }
15607
- if (errors === _errs49) {
15608
- if (typeof data20 == "number" && isFinite(data20)) {
15609
- if (data20 > 9007199254740991 || isNaN(data20)) {
15610
- const err35 = { instancePath: instancePath + "/batch/" + i0 + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/decisionLifecycleProtocolVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
15808
+ }
15809
+ }
15810
+ var valid8 = _errs59 === errors;
15811
+ } else {
15812
+ var valid8 = true;
15813
+ }
15814
+ if (valid8) {
15815
+ if (data1.capturedOrganizationId !== void 0) {
15816
+ let data26 = data1.capturedOrganizationId;
15817
+ const _errs73 = errors;
15818
+ if (errors === _errs73) {
15819
+ if (typeof data26 === "string") {
15820
+ if (func1(data26) > 128) {
15821
+ const err56 = { instancePath: instancePath + "/batch/" + i0 + "/capturedOrganizationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/capturedOrganizationId/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" };
15822
+ if (vErrors === null) {
15823
+ vErrors = [err56];
15824
+ } else {
15825
+ vErrors.push(err56);
15826
+ }
15827
+ errors++;
15828
+ } else {
15829
+ if (func1(data26) < 1) {
15830
+ const err57 = { instancePath: instancePath + "/batch/" + i0 + "/capturedOrganizationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/capturedOrganizationId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
15611
15831
  if (vErrors === null) {
15612
- vErrors = [err35];
15832
+ vErrors = [err57];
15613
15833
  } else {
15614
- vErrors.push(err35);
15834
+ vErrors.push(err57);
15615
15835
  }
15616
15836
  errors++;
15617
15837
  } else {
15618
- if (data20 < 1 || isNaN(data20)) {
15619
- const err36 = { instancePath: instancePath + "/batch/" + i0 + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/decisionLifecycleProtocolVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
15838
+ if (!pattern8.test(data26)) {
15839
+ const err58 = { instancePath: instancePath + "/batch/" + i0 + "/capturedOrganizationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/capturedOrganizationId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9_-]+$" }, message: 'must match pattern "^[A-Za-z0-9_-]+$"' };
15620
15840
  if (vErrors === null) {
15621
- vErrors = [err36];
15841
+ vErrors = [err58];
15622
15842
  } else {
15623
- vErrors.push(err36);
15843
+ vErrors.push(err58);
15624
15844
  }
15625
15845
  errors++;
15626
15846
  }
15627
15847
  }
15628
15848
  }
15849
+ } else {
15850
+ const err59 = { instancePath: instancePath + "/batch/" + i0 + "/capturedOrganizationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/capturedOrganizationId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15851
+ if (vErrors === null) {
15852
+ vErrors = [err59];
15853
+ } else {
15854
+ vErrors.push(err59);
15855
+ }
15856
+ errors++;
15857
+ }
15858
+ }
15859
+ var valid8 = _errs73 === errors;
15860
+ } else {
15861
+ var valid8 = true;
15862
+ }
15863
+ if (valid8) {
15864
+ if (data1.captureAuthorityKind !== void 0) {
15865
+ let data27 = data1.captureAuthorityKind;
15866
+ const _errs75 = errors;
15867
+ if (typeof data27 !== "string") {
15868
+ const err60 = { instancePath: instancePath + "/batch/" + i0 + "/captureAuthorityKind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/captureAuthorityKind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15869
+ if (vErrors === null) {
15870
+ vErrors = [err60];
15871
+ } else {
15872
+ vErrors.push(err60);
15873
+ }
15874
+ errors++;
15629
15875
  }
15630
- var valid5 = _errs49 === errors;
15876
+ if (!(data27 === "workos" || data27 === "service_token")) {
15877
+ const err61 = { instancePath: instancePath + "/batch/" + i0 + "/captureAuthorityKind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/captureAuthorityKind/enum", keyword: "enum", params: { allowedValues: schema93.properties.batch.items.anyOf[1].properties.captureAuthorityKind.enum }, message: "must be equal to one of the allowed values" };
15878
+ if (vErrors === null) {
15879
+ vErrors = [err61];
15880
+ } else {
15881
+ vErrors.push(err61);
15882
+ }
15883
+ errors++;
15884
+ }
15885
+ var valid8 = _errs75 === errors;
15631
15886
  } else {
15632
- var valid5 = true;
15887
+ var valid8 = true;
15633
15888
  }
15634
- if (valid5) {
15635
- if (data1.producer !== void 0) {
15636
- let data21 = data1.producer;
15637
- const _errs51 = errors;
15638
- if (typeof data21 !== "string") {
15639
- const err37 = { instancePath: instancePath + "/batch/" + i0 + "/producer", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/producer/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15889
+ if (valid8) {
15890
+ if (data1.decisionLifecycleProtocolVersion !== void 0) {
15891
+ let data28 = data1.decisionLifecycleProtocolVersion;
15892
+ const _errs77 = errors;
15893
+ if (!(typeof data28 == "number" && (!(data28 % 1) && !isNaN(data28)) && isFinite(data28))) {
15894
+ const err62 = { instancePath: instancePath + "/batch/" + i0 + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/decisionLifecycleProtocolVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
15640
15895
  if (vErrors === null) {
15641
- vErrors = [err37];
15896
+ vErrors = [err62];
15642
15897
  } else {
15643
- vErrors.push(err37);
15898
+ vErrors.push(err62);
15644
15899
  }
15645
15900
  errors++;
15646
15901
  }
15647
- if (!(data21 === "claude_code" || data21 === "codex" || data21 === "cursor" || data21 === "hermes")) {
15648
- const err38 = { instancePath: instancePath + "/batch/" + i0 + "/producer", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/producer/enum", keyword: "enum", params: { allowedValues: schema93.properties.batch.items.anyOf[1].properties.producer.enum }, message: "must be equal to one of the allowed values" };
15649
- if (vErrors === null) {
15650
- vErrors = [err38];
15651
- } else {
15652
- vErrors.push(err38);
15902
+ if (errors === _errs77) {
15903
+ if (typeof data28 == "number" && isFinite(data28)) {
15904
+ if (data28 > 9007199254740991 || isNaN(data28)) {
15905
+ const err63 = { instancePath: instancePath + "/batch/" + i0 + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/decisionLifecycleProtocolVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
15906
+ if (vErrors === null) {
15907
+ vErrors = [err63];
15908
+ } else {
15909
+ vErrors.push(err63);
15910
+ }
15911
+ errors++;
15912
+ } else {
15913
+ if (data28 < 1 || isNaN(data28)) {
15914
+ const err64 = { instancePath: instancePath + "/batch/" + i0 + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/decisionLifecycleProtocolVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
15915
+ if (vErrors === null) {
15916
+ vErrors = [err64];
15917
+ } else {
15918
+ vErrors.push(err64);
15919
+ }
15920
+ errors++;
15921
+ }
15922
+ }
15653
15923
  }
15654
- errors++;
15655
15924
  }
15656
- var valid5 = _errs51 === errors;
15925
+ var valid8 = _errs77 === errors;
15657
15926
  } else {
15658
- var valid5 = true;
15927
+ var valid8 = true;
15659
15928
  }
15660
- if (valid5) {
15661
- if (data1.toolOutcome !== void 0) {
15662
- let data22 = data1.toolOutcome;
15663
- const _errs53 = errors;
15664
- if (typeof data22 !== "string") {
15665
- const err39 = { instancePath: instancePath + "/batch/" + i0 + "/toolOutcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/toolOutcome/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15929
+ if (valid8) {
15930
+ if (data1.producer !== void 0) {
15931
+ let data29 = data1.producer;
15932
+ const _errs79 = errors;
15933
+ if (typeof data29 !== "string") {
15934
+ const err65 = { instancePath: instancePath + "/batch/" + i0 + "/producer", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/producer/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15666
15935
  if (vErrors === null) {
15667
- vErrors = [err39];
15936
+ vErrors = [err65];
15668
15937
  } else {
15669
- vErrors.push(err39);
15938
+ vErrors.push(err65);
15670
15939
  }
15671
15940
  errors++;
15672
15941
  }
15673
- if (!(data22 === "succeeded" || data22 === "returned" || data22 === "failed" || data22 === "interrupted" || data22 === "prevented" || data22 === "unknown")) {
15674
- const err40 = { instancePath: instancePath + "/batch/" + i0 + "/toolOutcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/toolOutcome/enum", keyword: "enum", params: { allowedValues: schema93.properties.batch.items.anyOf[1].properties.toolOutcome.enum }, message: "must be equal to one of the allowed values" };
15942
+ if (!(data29 === "claude_code" || data29 === "codex" || data29 === "cursor" || data29 === "hermes")) {
15943
+ const err66 = { instancePath: instancePath + "/batch/" + i0 + "/producer", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/producer/enum", keyword: "enum", params: { allowedValues: schema93.properties.batch.items.anyOf[1].properties.producer.enum }, message: "must be equal to one of the allowed values" };
15675
15944
  if (vErrors === null) {
15676
- vErrors = [err40];
15945
+ vErrors = [err66];
15677
15946
  } else {
15678
- vErrors.push(err40);
15947
+ vErrors.push(err66);
15679
15948
  }
15680
15949
  errors++;
15681
15950
  }
15682
- var valid5 = _errs53 === errors;
15951
+ var valid8 = _errs79 === errors;
15683
15952
  } else {
15684
- var valid5 = true;
15953
+ var valid8 = true;
15685
15954
  }
15686
- if (valid5) {
15687
- if (data1.envelopeVersion !== void 0) {
15688
- let data23 = data1.envelopeVersion;
15689
- const _errs55 = errors;
15690
- if (errors === _errs55) {
15691
- if (typeof data23 == "number" && isFinite(data23)) {
15692
- if (data23 >= 4 || isNaN(data23)) {
15693
- const err41 = { instancePath: instancePath + "/batch/" + i0 + "/envelopeVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/envelopeVersion/exclusiveMaximum", keyword: "exclusiveMaximum", params: { comparison: "<", limit: 4 }, message: "must be < 4" };
15955
+ if (valid8) {
15956
+ if (data1.toolOutcome !== void 0) {
15957
+ let data30 = data1.toolOutcome;
15958
+ const _errs81 = errors;
15959
+ if (typeof data30 !== "string") {
15960
+ const err67 = { instancePath: instancePath + "/batch/" + i0 + "/toolOutcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/toolOutcome/type", keyword: "type", params: { type: "string" }, message: "must be string" };
15961
+ if (vErrors === null) {
15962
+ vErrors = [err67];
15963
+ } else {
15964
+ vErrors.push(err67);
15965
+ }
15966
+ errors++;
15967
+ }
15968
+ if (!(data30 === "succeeded" || data30 === "returned" || data30 === "failed" || data30 === "interrupted" || data30 === "prevented" || data30 === "unknown")) {
15969
+ const err68 = { instancePath: instancePath + "/batch/" + i0 + "/toolOutcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/toolOutcome/enum", keyword: "enum", params: { allowedValues: schema93.properties.batch.items.anyOf[1].properties.toolOutcome.enum }, message: "must be equal to one of the allowed values" };
15970
+ if (vErrors === null) {
15971
+ vErrors = [err68];
15972
+ } else {
15973
+ vErrors.push(err68);
15974
+ }
15975
+ errors++;
15976
+ }
15977
+ var valid8 = _errs81 === errors;
15978
+ } else {
15979
+ var valid8 = true;
15980
+ }
15981
+ if (valid8) {
15982
+ if (data1.envelopeVersion !== void 0) {
15983
+ let data31 = data1.envelopeVersion;
15984
+ const _errs83 = errors;
15985
+ if (errors === _errs83) {
15986
+ if (typeof data31 == "number" && isFinite(data31)) {
15987
+ if (data31 >= 4 || isNaN(data31)) {
15988
+ const err69 = { instancePath: instancePath + "/batch/" + i0 + "/envelopeVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/envelopeVersion/exclusiveMaximum", keyword: "exclusiveMaximum", params: { comparison: "<", limit: 4 }, message: "must be < 4" };
15989
+ if (vErrors === null) {
15990
+ vErrors = [err69];
15991
+ } else {
15992
+ vErrors.push(err69);
15993
+ }
15994
+ errors++;
15995
+ }
15996
+ } else {
15997
+ const err70 = { instancePath: instancePath + "/batch/" + i0 + "/envelopeVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/envelopeVersion/type", keyword: "type", params: { type: "number" }, message: "must be number" };
15694
15998
  if (vErrors === null) {
15695
- vErrors = [err41];
15999
+ vErrors = [err70];
15696
16000
  } else {
15697
- vErrors.push(err41);
16001
+ vErrors.push(err70);
15698
16002
  }
15699
16003
  errors++;
15700
16004
  }
15701
- } else {
15702
- const err42 = { instancePath: instancePath + "/batch/" + i0 + "/envelopeVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/properties/envelopeVersion/type", keyword: "type", params: { type: "number" }, message: "must be number" };
15703
- if (vErrors === null) {
15704
- vErrors = [err42];
15705
- } else {
15706
- vErrors.push(err42);
15707
- }
15708
- errors++;
15709
16005
  }
16006
+ var valid8 = _errs83 === errors;
16007
+ } else {
16008
+ var valid8 = true;
15710
16009
  }
15711
- var valid5 = _errs55 === errors;
15712
- } else {
15713
- var valid5 = true;
15714
16010
  }
15715
16011
  }
15716
16012
  }
@@ -15724,28 +16020,28 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
15724
16020
  }
15725
16021
  }
15726
16022
  } else {
15727
- const err43 = { instancePath: instancePath + "/batch/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
16023
+ const err71 = { instancePath: instancePath + "/batch/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
15728
16024
  if (vErrors === null) {
15729
- vErrors = [err43];
16025
+ vErrors = [err71];
15730
16026
  } else {
15731
- vErrors.push(err43);
16027
+ vErrors.push(err71);
15732
16028
  }
15733
16029
  errors++;
15734
16030
  }
15735
16031
  }
15736
- var _valid0 = _errs32 === errors;
16032
+ var _valid0 = _errs46 === errors;
15737
16033
  valid3 = valid3 || _valid0;
15738
16034
  if (_valid0) {
15739
- if (props0 !== true) {
15740
- props0 = true;
16035
+ if (props1 !== true) {
16036
+ props1 = true;
15741
16037
  }
15742
16038
  }
15743
16039
  if (!valid3) {
15744
- const err44 = { instancePath: instancePath + "/batch/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
16040
+ const err72 = { instancePath: instancePath + "/batch/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/items/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
15745
16041
  if (vErrors === null) {
15746
- vErrors = [err44];
16042
+ vErrors = [err72];
15747
16043
  } else {
15748
- vErrors.push(err44);
16044
+ vErrors.push(err72);
15749
16045
  }
15750
16046
  errors++;
15751
16047
  validate51.errors = vErrors;