@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
@@ -11786,7 +11786,6 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
11786
11786
  return errors === 0;
11787
11787
  }
11788
11788
  validate45.evaluated = { "dynamicProps": true, "dynamicItems": false };
11789
- 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 }] };
11790
11789
  function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
11791
11790
  ;
11792
11791
  let vErrors = null;
@@ -11936,7 +11935,7 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
11936
11935
  if (errors === _errs12) {
11937
11936
  if (data && typeof data == "object" && !Array.isArray(data)) {
11938
11937
  let missing2;
11939
- if (data.error === void 0 && (missing2 = "error") || data.feature === void 0 && (missing2 = "feature")) {
11938
+ if (data.error === void 0 && (missing2 = "error")) {
11940
11939
  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 + "'" };
11941
11940
  if (vErrors === null) {
11942
11941
  vErrors = [err10];
@@ -11947,7 +11946,7 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
11947
11946
  } else {
11948
11947
  const _errs14 = errors;
11949
11948
  for (const key2 in data) {
11950
- if (!(key2 === "error" || key2 === "feature")) {
11949
+ if (!(key2 === "error")) {
11951
11950
  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" };
11952
11951
  if (vErrors === null) {
11953
11952
  vErrors = [err11];
@@ -11961,7 +11960,6 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
11961
11960
  if (_errs14 === errors) {
11962
11961
  if (data.error !== void 0) {
11963
11962
  let data2 = data.error;
11964
- const _errs15 = errors;
11965
11963
  if (typeof data2 !== "string") {
11966
11964
  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" };
11967
11965
  if (vErrors === null) {
@@ -11971,8 +11969,8 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
11971
11969
  }
11972
11970
  errors++;
11973
11971
  }
11974
- if ("feature_disabled" !== data2) {
11975
- 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" };
11972
+ if ("github_connect_unavailable" !== data2) {
11973
+ 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" };
11976
11974
  if (vErrors === null) {
11977
11975
  vErrors = [err13];
11978
11976
  } else {
@@ -11980,45 +11978,15 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
11980
11978
  }
11981
11979
  errors++;
11982
11980
  }
11983
- var valid4 = _errs15 === errors;
11984
- } else {
11985
- var valid4 = true;
11986
- }
11987
- if (valid4) {
11988
- if (data.feature !== void 0) {
11989
- let data3 = data.feature;
11990
- const _errs17 = errors;
11991
- if (typeof data3 !== "string") {
11992
- 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" };
11993
- if (vErrors === null) {
11994
- vErrors = [err14];
11995
- } else {
11996
- vErrors.push(err14);
11997
- }
11998
- errors++;
11999
- }
12000
- if ("github-connect" !== data3) {
12001
- 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" };
12002
- if (vErrors === null) {
12003
- vErrors = [err15];
12004
- } else {
12005
- vErrors.push(err15);
12006
- }
12007
- errors++;
12008
- }
12009
- var valid4 = _errs17 === errors;
12010
- } else {
12011
- var valid4 = true;
12012
- }
12013
11981
  }
12014
11982
  }
12015
11983
  }
12016
11984
  } else {
12017
- 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" };
11985
+ 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" };
12018
11986
  if (vErrors === null) {
12019
- vErrors = [err16];
11987
+ vErrors = [err14];
12020
11988
  } else {
12021
- vErrors.push(err16);
11989
+ vErrors.push(err14);
12022
11990
  }
12023
11991
  errors++;
12024
11992
  }
@@ -12030,148 +11998,117 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
12030
11998
  props0 = true;
12031
11999
  }
12032
12000
  }
12033
- const _errs19 = errors;
12034
- if (errors === _errs19) {
12001
+ const _errs17 = errors;
12002
+ if (errors === _errs17) {
12035
12003
  if (data && typeof data == "object" && !Array.isArray(data)) {
12036
12004
  let missing3;
12037
- if (data.error === void 0 && (missing3 = "error") || data.feature === void 0 && (missing3 = "feature")) {
12038
- 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 + "'" };
12005
+ if (data.error === void 0 && (missing3 = "error")) {
12006
+ 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 + "'" };
12039
12007
  if (vErrors === null) {
12040
- vErrors = [err17];
12008
+ vErrors = [err15];
12041
12009
  } else {
12042
- vErrors.push(err17);
12010
+ vErrors.push(err15);
12043
12011
  }
12044
12012
  errors++;
12045
12013
  } else {
12046
- const _errs21 = errors;
12014
+ const _errs19 = errors;
12047
12015
  for (const key3 in data) {
12048
- if (!(key3 === "error" || key3 === "feature")) {
12049
- 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" };
12016
+ if (!(key3 === "error")) {
12017
+ 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" };
12050
12018
  if (vErrors === null) {
12051
- vErrors = [err18];
12019
+ vErrors = [err16];
12052
12020
  } else {
12053
- vErrors.push(err18);
12021
+ vErrors.push(err16);
12054
12022
  }
12055
12023
  errors++;
12056
12024
  break;
12057
12025
  }
12058
12026
  }
12059
- if (_errs21 === errors) {
12027
+ if (_errs19 === errors) {
12060
12028
  if (data.error !== void 0) {
12061
- let data4 = data.error;
12062
- const _errs22 = errors;
12063
- if (typeof data4 !== "string") {
12064
- 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" };
12029
+ let data3 = data.error;
12030
+ if (typeof data3 !== "string") {
12031
+ 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" };
12065
12032
  if (vErrors === null) {
12066
- vErrors = [err19];
12033
+ vErrors = [err17];
12067
12034
  } else {
12068
- vErrors.push(err19);
12035
+ vErrors.push(err17);
12069
12036
  }
12070
12037
  errors++;
12071
12038
  }
12072
- if (!(data4 === "github_connect_unavailable" || data4 === "feature_check_unavailable")) {
12073
- 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" };
12039
+ if ("WorkOS identity authority is temporarily unavailable" !== data3) {
12040
+ 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" };
12074
12041
  if (vErrors === null) {
12075
- vErrors = [err20];
12042
+ vErrors = [err18];
12076
12043
  } else {
12077
- vErrors.push(err20);
12044
+ vErrors.push(err18);
12078
12045
  }
12079
12046
  errors++;
12080
12047
  }
12081
- var valid5 = _errs22 === errors;
12082
- } else {
12083
- var valid5 = true;
12084
- }
12085
- if (valid5) {
12086
- if (data.feature !== void 0) {
12087
- let data5 = data.feature;
12088
- const _errs24 = errors;
12089
- if (typeof data5 !== "string") {
12090
- 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" };
12091
- if (vErrors === null) {
12092
- vErrors = [err21];
12093
- } else {
12094
- vErrors.push(err21);
12095
- }
12096
- errors++;
12097
- }
12098
- if ("github-connect" !== data5) {
12099
- 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" };
12100
- if (vErrors === null) {
12101
- vErrors = [err22];
12102
- } else {
12103
- vErrors.push(err22);
12104
- }
12105
- errors++;
12106
- }
12107
- var valid5 = _errs24 === errors;
12108
- } else {
12109
- var valid5 = true;
12110
- }
12111
12048
  }
12112
12049
  }
12113
12050
  }
12114
12051
  } else {
12115
- 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" };
12052
+ 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" };
12116
12053
  if (vErrors === null) {
12117
- vErrors = [err23];
12054
+ vErrors = [err19];
12118
12055
  } else {
12119
- vErrors.push(err23);
12056
+ vErrors.push(err19);
12120
12057
  }
12121
12058
  errors++;
12122
12059
  }
12123
12060
  }
12124
- var _valid0 = _errs19 === errors;
12061
+ var _valid0 = _errs17 === errors;
12125
12062
  valid1 = valid1 || _valid0;
12126
12063
  if (_valid0) {
12127
12064
  if (props0 !== true) {
12128
12065
  props0 = true;
12129
12066
  }
12130
12067
  }
12131
- const _errs26 = errors;
12132
- if (errors === _errs26) {
12068
+ const _errs22 = errors;
12069
+ if (errors === _errs22) {
12133
12070
  if (data && typeof data == "object" && !Array.isArray(data)) {
12134
12071
  let missing4;
12135
12072
  if (data.error === void 0 && (missing4 = "error")) {
12136
- 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 + "'" };
12073
+ 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 + "'" };
12137
12074
  if (vErrors === null) {
12138
- vErrors = [err24];
12075
+ vErrors = [err20];
12139
12076
  } else {
12140
- vErrors.push(err24);
12077
+ vErrors.push(err20);
12141
12078
  }
12142
12079
  errors++;
12143
12080
  } else {
12144
- const _errs28 = errors;
12081
+ const _errs24 = errors;
12145
12082
  for (const key4 in data) {
12146
12083
  if (!(key4 === "error")) {
12147
- 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" };
12084
+ 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" };
12148
12085
  if (vErrors === null) {
12149
- vErrors = [err25];
12086
+ vErrors = [err21];
12150
12087
  } else {
12151
- vErrors.push(err25);
12088
+ vErrors.push(err21);
12152
12089
  }
12153
12090
  errors++;
12154
12091
  break;
12155
12092
  }
12156
12093
  }
12157
- if (_errs28 === errors) {
12094
+ if (_errs24 === errors) {
12158
12095
  if (data.error !== void 0) {
12159
- let data6 = data.error;
12160
- if (typeof data6 !== "string") {
12161
- 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" };
12096
+ let data4 = data.error;
12097
+ if (typeof data4 !== "string") {
12098
+ 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" };
12162
12099
  if (vErrors === null) {
12163
- vErrors = [err26];
12100
+ vErrors = [err22];
12164
12101
  } else {
12165
- vErrors.push(err26);
12102
+ vErrors.push(err22);
12166
12103
  }
12167
12104
  errors++;
12168
12105
  }
12169
- if ("WorkOS identity authority is temporarily unavailable" !== data6) {
12170
- 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" };
12106
+ if ("github_install_intent_conflict" !== data4) {
12107
+ 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" };
12171
12108
  if (vErrors === null) {
12172
- vErrors = [err27];
12109
+ vErrors = [err23];
12173
12110
  } else {
12174
- vErrors.push(err27);
12111
+ vErrors.push(err23);
12175
12112
  }
12176
12113
  errors++;
12177
12114
  }
@@ -12179,195 +12116,128 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
12179
12116
  }
12180
12117
  }
12181
12118
  } else {
12182
- 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" };
12119
+ 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" };
12183
12120
  if (vErrors === null) {
12184
- vErrors = [err28];
12121
+ vErrors = [err24];
12185
12122
  } else {
12186
- vErrors.push(err28);
12123
+ vErrors.push(err24);
12187
12124
  }
12188
12125
  errors++;
12189
12126
  }
12190
12127
  }
12191
- var _valid0 = _errs26 === errors;
12128
+ var _valid0 = _errs22 === errors;
12192
12129
  valid1 = valid1 || _valid0;
12193
12130
  if (_valid0) {
12194
12131
  if (props0 !== true) {
12195
12132
  props0 = true;
12196
12133
  }
12197
12134
  }
12198
- const _errs31 = errors;
12199
- if (errors === _errs31) {
12135
+ const _errs27 = errors;
12136
+ if (errors === _errs27) {
12200
12137
  if (data && typeof data == "object" && !Array.isArray(data)) {
12201
12138
  let missing5;
12202
- if (data.error === void 0 && (missing5 = "error")) {
12203
- 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 + "'" };
12139
+ if (data.error === void 0 && (missing5 = "error") || data.retryAt === void 0 && (missing5 = "retryAt")) {
12140
+ 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 + "'" };
12204
12141
  if (vErrors === null) {
12205
- vErrors = [err29];
12142
+ vErrors = [err25];
12206
12143
  } else {
12207
- vErrors.push(err29);
12144
+ vErrors.push(err25);
12208
12145
  }
12209
12146
  errors++;
12210
12147
  } else {
12211
- const _errs33 = errors;
12148
+ const _errs29 = errors;
12212
12149
  for (const key5 in data) {
12213
- if (!(key5 === "error")) {
12214
- 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" };
12215
- if (vErrors === null) {
12216
- vErrors = [err30];
12217
- } else {
12218
- vErrors.push(err30);
12219
- }
12220
- errors++;
12221
- break;
12222
- }
12223
- }
12224
- if (_errs33 === errors) {
12225
- if (data.error !== void 0) {
12226
- let data7 = data.error;
12227
- if (typeof data7 !== "string") {
12228
- 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" };
12229
- if (vErrors === null) {
12230
- vErrors = [err31];
12231
- } else {
12232
- vErrors.push(err31);
12233
- }
12234
- errors++;
12235
- }
12236
- if ("github_install_intent_conflict" !== data7) {
12237
- 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" };
12238
- if (vErrors === null) {
12239
- vErrors = [err32];
12240
- } else {
12241
- vErrors.push(err32);
12242
- }
12243
- errors++;
12244
- }
12245
- }
12246
- }
12247
- }
12248
- } else {
12249
- 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" };
12250
- if (vErrors === null) {
12251
- vErrors = [err33];
12252
- } else {
12253
- vErrors.push(err33);
12254
- }
12255
- errors++;
12256
- }
12257
- }
12258
- var _valid0 = _errs31 === errors;
12259
- valid1 = valid1 || _valid0;
12260
- if (_valid0) {
12261
- if (props0 !== true) {
12262
- props0 = true;
12263
- }
12264
- }
12265
- const _errs36 = errors;
12266
- if (errors === _errs36) {
12267
- if (data && typeof data == "object" && !Array.isArray(data)) {
12268
- let missing6;
12269
- if (data.error === void 0 && (missing6 = "error") || data.retryAt === void 0 && (missing6 = "retryAt")) {
12270
- 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 + "'" };
12271
- if (vErrors === null) {
12272
- vErrors = [err34];
12273
- } else {
12274
- vErrors.push(err34);
12275
- }
12276
- errors++;
12277
- } else {
12278
- const _errs38 = errors;
12279
- for (const key6 in data) {
12280
- if (!(key6 === "error" || key6 === "retryAt")) {
12281
- 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" };
12150
+ if (!(key5 === "error" || key5 === "retryAt")) {
12151
+ 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" };
12282
12152
  if (vErrors === null) {
12283
- vErrors = [err35];
12153
+ vErrors = [err26];
12284
12154
  } else {
12285
- vErrors.push(err35);
12155
+ vErrors.push(err26);
12286
12156
  }
12287
12157
  errors++;
12288
12158
  break;
12289
12159
  }
12290
12160
  }
12291
- if (_errs38 === errors) {
12161
+ if (_errs29 === errors) {
12292
12162
  if (data.error !== void 0) {
12293
- let data8 = data.error;
12294
- const _errs39 = errors;
12295
- if (typeof data8 !== "string") {
12296
- 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" };
12163
+ let data5 = data.error;
12164
+ const _errs30 = errors;
12165
+ if (typeof data5 !== "string") {
12166
+ 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" };
12297
12167
  if (vErrors === null) {
12298
- vErrors = [err36];
12168
+ vErrors = [err27];
12299
12169
  } else {
12300
- vErrors.push(err36);
12170
+ vErrors.push(err27);
12301
12171
  }
12302
12172
  errors++;
12303
12173
  }
12304
- if ("github_install_intent_rate_limited" !== data8) {
12305
- 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" };
12174
+ if ("github_install_intent_rate_limited" !== data5) {
12175
+ 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" };
12306
12176
  if (vErrors === null) {
12307
- vErrors = [err37];
12177
+ vErrors = [err28];
12308
12178
  } else {
12309
- vErrors.push(err37);
12179
+ vErrors.push(err28);
12310
12180
  }
12311
12181
  errors++;
12312
12182
  }
12313
- var valid8 = _errs39 === errors;
12183
+ var valid7 = _errs30 === errors;
12314
12184
  } else {
12315
- var valid8 = true;
12185
+ var valid7 = true;
12316
12186
  }
12317
- if (valid8) {
12187
+ if (valid7) {
12318
12188
  if (data.retryAt !== void 0) {
12319
- let data9 = data.retryAt;
12320
- const _errs41 = errors;
12321
- if (!(typeof data9 == "number" && (!(data9 % 1) && !isNaN(data9)) && isFinite(data9))) {
12322
- 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" };
12189
+ let data6 = data.retryAt;
12190
+ const _errs32 = errors;
12191
+ if (!(typeof data6 == "number" && (!(data6 % 1) && !isNaN(data6)) && isFinite(data6))) {
12192
+ 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" };
12323
12193
  if (vErrors === null) {
12324
- vErrors = [err38];
12194
+ vErrors = [err29];
12325
12195
  } else {
12326
- vErrors.push(err38);
12196
+ vErrors.push(err29);
12327
12197
  }
12328
12198
  errors++;
12329
12199
  }
12330
- if (errors === _errs41) {
12331
- if (typeof data9 == "number" && isFinite(data9)) {
12332
- if (data9 > 9007199254740991 || isNaN(data9)) {
12333
- 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" };
12200
+ if (errors === _errs32) {
12201
+ if (typeof data6 == "number" && isFinite(data6)) {
12202
+ if (data6 > 9007199254740991 || isNaN(data6)) {
12203
+ 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" };
12334
12204
  if (vErrors === null) {
12335
- vErrors = [err39];
12205
+ vErrors = [err30];
12336
12206
  } else {
12337
- vErrors.push(err39);
12207
+ vErrors.push(err30);
12338
12208
  }
12339
12209
  errors++;
12340
12210
  } else {
12341
- if (data9 < 0 || isNaN(data9)) {
12342
- 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" };
12211
+ if (data6 < 0 || isNaN(data6)) {
12212
+ 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" };
12343
12213
  if (vErrors === null) {
12344
- vErrors = [err40];
12214
+ vErrors = [err31];
12345
12215
  } else {
12346
- vErrors.push(err40);
12216
+ vErrors.push(err31);
12347
12217
  }
12348
12218
  errors++;
12349
12219
  }
12350
12220
  }
12351
12221
  }
12352
12222
  }
12353
- var valid8 = _errs41 === errors;
12223
+ var valid7 = _errs32 === errors;
12354
12224
  } else {
12355
- var valid8 = true;
12225
+ var valid7 = true;
12356
12226
  }
12357
12227
  }
12358
12228
  }
12359
12229
  }
12360
12230
  } else {
12361
- 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" };
12231
+ 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" };
12362
12232
  if (vErrors === null) {
12363
- vErrors = [err41];
12233
+ vErrors = [err32];
12364
12234
  } else {
12365
- vErrors.push(err41);
12235
+ vErrors.push(err32);
12366
12236
  }
12367
12237
  errors++;
12368
12238
  }
12369
12239
  }
12370
- var _valid0 = _errs36 === errors;
12240
+ var _valid0 = _errs27 === errors;
12371
12241
  valid1 = valid1 || _valid0;
12372
12242
  if (_valid0) {
12373
12243
  if (props0 !== true) {
@@ -12375,11 +12245,11 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
12375
12245
  }
12376
12246
  }
12377
12247
  if (!valid1) {
12378
- 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" };
12248
+ 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" };
12379
12249
  if (vErrors === null) {
12380
- vErrors = [err42];
12250
+ vErrors = [err33];
12381
12251
  } else {
12382
- vErrors.push(err42);
12252
+ vErrors.push(err33);
12383
12253
  }
12384
12254
  errors++;
12385
12255
  validate46.errors = vErrors;
@@ -14481,7 +14351,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
14481
14351
  return errors === 0;
14482
14352
  }
14483
14353
  validate50.evaluated = { "dynamicProps": true, "dynamicItems": false };
14484
- 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": {} };
14354
+ 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": {} };
14485
14355
  var pattern8 = new RegExp("^[A-Za-z0-9_-]+$", "u");
14486
14356
  function validate51(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
14487
14357
  ;
@@ -14608,13 +14478,18 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
14608
14478
  var valid4 = true;
14609
14479
  }
14610
14480
  if (valid4) {
14611
- if (data1.capturedOrganizationId !== void 0) {
14612
- let data7 = data1.capturedOrganizationId;
14481
+ if (data1.repositoryContext !== void 0) {
14482
+ let data7 = data1.repositoryContext;
14613
14483
  const _errs20 = errors;
14614
- if (errors === _errs20) {
14615
- if (typeof data7 === "string") {
14616
- if (func1(data7) > 128) {
14617
- 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" };
14484
+ const _errs21 = errors;
14485
+ let valid5 = false;
14486
+ let passing0 = null;
14487
+ const _errs22 = errors;
14488
+ if (errors === _errs22) {
14489
+ if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
14490
+ let missing2;
14491
+ if (data7.kind === void 0 && (missing2 = "kind") || data7.repoSyncId === void 0 && (missing2 = "repoSyncId")) {
14492
+ 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 + "'" };
14618
14493
  if (vErrors === null) {
14619
14494
  vErrors = [err6];
14620
14495
  } else {
@@ -14622,184 +14497,392 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
14622
14497
  }
14623
14498
  errors++;
14624
14499
  } else {
14625
- if (func1(data7) < 1) {
14626
- 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" };
14627
- if (vErrors === null) {
14628
- vErrors = [err7];
14629
- } else {
14630
- vErrors.push(err7);
14631
- }
14632
- errors++;
14633
- } else {
14634
- if (!pattern8.test(data7)) {
14635
- 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_-]+$"' };
14500
+ const _errs24 = errors;
14501
+ for (const key0 in data7) {
14502
+ if (!(key0 === "kind" || key0 === "repoSyncId")) {
14503
+ 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" };
14636
14504
  if (vErrors === null) {
14637
- vErrors = [err8];
14505
+ vErrors = [err7];
14638
14506
  } else {
14639
- vErrors.push(err8);
14507
+ vErrors.push(err7);
14640
14508
  }
14641
14509
  errors++;
14510
+ break;
14511
+ }
14512
+ }
14513
+ if (_errs24 === errors) {
14514
+ if (data7.kind !== void 0) {
14515
+ let data8 = data7.kind;
14516
+ const _errs25 = errors;
14517
+ if (typeof data8 !== "string") {
14518
+ 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" };
14519
+ if (vErrors === null) {
14520
+ vErrors = [err8];
14521
+ } else {
14522
+ vErrors.push(err8);
14523
+ }
14524
+ errors++;
14525
+ }
14526
+ if ("repository_bound" !== data8) {
14527
+ 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" };
14528
+ if (vErrors === null) {
14529
+ vErrors = [err9];
14530
+ } else {
14531
+ vErrors.push(err9);
14532
+ }
14533
+ errors++;
14534
+ }
14535
+ var valid6 = _errs25 === errors;
14536
+ } else {
14537
+ var valid6 = true;
14538
+ }
14539
+ if (valid6) {
14540
+ if (data7.repoSyncId !== void 0) {
14541
+ let data9 = data7.repoSyncId;
14542
+ const _errs27 = errors;
14543
+ if (errors === _errs27) {
14544
+ if (typeof data9 === "string") {
14545
+ if (func1(data9) > 128) {
14546
+ 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" };
14547
+ if (vErrors === null) {
14548
+ vErrors = [err10];
14549
+ } else {
14550
+ vErrors.push(err10);
14551
+ }
14552
+ errors++;
14553
+ } else {
14554
+ if (func1(data9) < 1) {
14555
+ 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" };
14556
+ if (vErrors === null) {
14557
+ vErrors = [err11];
14558
+ } else {
14559
+ vErrors.push(err11);
14560
+ }
14561
+ errors++;
14562
+ }
14563
+ }
14564
+ } else {
14565
+ 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" };
14566
+ if (vErrors === null) {
14567
+ vErrors = [err12];
14568
+ } else {
14569
+ vErrors.push(err12);
14570
+ }
14571
+ errors++;
14572
+ }
14573
+ }
14574
+ var valid6 = _errs27 === errors;
14575
+ } else {
14576
+ var valid6 = true;
14577
+ }
14642
14578
  }
14643
14579
  }
14644
14580
  }
14645
14581
  } else {
14646
- 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" };
14582
+ 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" };
14647
14583
  if (vErrors === null) {
14648
- vErrors = [err9];
14584
+ vErrors = [err13];
14649
14585
  } else {
14650
- vErrors.push(err9);
14586
+ vErrors.push(err13);
14651
14587
  }
14652
14588
  errors++;
14653
14589
  }
14654
14590
  }
14655
- var valid4 = _errs20 === errors;
14656
- } else {
14657
- var valid4 = true;
14658
- }
14659
- if (valid4) {
14660
- if (data1.captureAuthorityKind !== void 0) {
14661
- let data8 = data1.captureAuthorityKind;
14662
- const _errs22 = errors;
14663
- if (typeof data8 !== "string") {
14664
- 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" };
14665
- if (vErrors === null) {
14666
- vErrors = [err10];
14667
- } else {
14668
- vErrors.push(err10);
14669
- }
14670
- errors++;
14671
- }
14672
- if (!(data8 === "workos" || data8 === "service_token")) {
14673
- 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" };
14674
- if (vErrors === null) {
14675
- vErrors = [err11];
14676
- } else {
14677
- vErrors.push(err11);
14678
- }
14679
- errors++;
14680
- }
14681
- var valid4 = _errs22 === errors;
14682
- } else {
14683
- var valid4 = true;
14591
+ var _valid1 = _errs22 === errors;
14592
+ if (_valid1) {
14593
+ valid5 = true;
14594
+ passing0 = 0;
14595
+ var props0 = true;
14684
14596
  }
14685
- if (valid4) {
14686
- if (data1.decisionLifecycleProtocolVersion !== void 0) {
14687
- let data9 = data1.decisionLifecycleProtocolVersion;
14688
- const _errs24 = errors;
14689
- if (!(typeof data9 == "number" && (!(data9 % 1) && !isNaN(data9)) && isFinite(data9))) {
14690
- 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" };
14597
+ const _errs29 = errors;
14598
+ if (errors === _errs29) {
14599
+ if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
14600
+ let missing3;
14601
+ if (data7.kind === void 0 && (missing3 = "kind")) {
14602
+ 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 + "'" };
14691
14603
  if (vErrors === null) {
14692
- vErrors = [err12];
14604
+ vErrors = [err14];
14693
14605
  } else {
14694
- vErrors.push(err12);
14606
+ vErrors.push(err14);
14695
14607
  }
14696
14608
  errors++;
14697
- }
14698
- if (errors === _errs24) {
14699
- if (typeof data9 == "number" && isFinite(data9)) {
14700
- if (data9 > 9007199254740991 || isNaN(data9)) {
14701
- 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" };
14609
+ } else {
14610
+ const _errs31 = errors;
14611
+ for (const key1 in data7) {
14612
+ if (!(key1 === "kind")) {
14613
+ 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" };
14702
14614
  if (vErrors === null) {
14703
- vErrors = [err13];
14615
+ vErrors = [err15];
14704
14616
  } else {
14705
- vErrors.push(err13);
14617
+ vErrors.push(err15);
14706
14618
  }
14707
14619
  errors++;
14708
- } else {
14709
- if (data9 < 1 || isNaN(data9)) {
14710
- 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" };
14620
+ break;
14621
+ }
14622
+ }
14623
+ if (_errs31 === errors) {
14624
+ if (data7.kind !== void 0) {
14625
+ let data10 = data7.kind;
14626
+ if (typeof data10 !== "string") {
14627
+ 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" };
14628
+ if (vErrors === null) {
14629
+ vErrors = [err16];
14630
+ } else {
14631
+ vErrors.push(err16);
14632
+ }
14633
+ errors++;
14634
+ }
14635
+ if ("non_repository" !== data10) {
14636
+ 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" };
14711
14637
  if (vErrors === null) {
14712
- vErrors = [err14];
14638
+ vErrors = [err17];
14713
14639
  } else {
14714
- vErrors.push(err14);
14640
+ vErrors.push(err17);
14715
14641
  }
14716
14642
  errors++;
14717
14643
  }
14718
14644
  }
14719
14645
  }
14720
14646
  }
14721
- var valid4 = _errs24 === errors;
14722
14647
  } else {
14723
- var valid4 = true;
14724
- }
14725
- if (valid4) {
14726
- if (data1.producer !== void 0) {
14727
- let data10 = data1.producer;
14728
- const _errs26 = errors;
14729
- if (typeof data10 !== "string") {
14730
- 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" };
14731
- if (vErrors === null) {
14732
- vErrors = [err15];
14733
- } else {
14734
- vErrors.push(err15);
14735
- }
14736
- errors++;
14737
- }
14738
- if (!(data10 === "claude_code" || data10 === "codex" || data10 === "cursor" || data10 === "hermes")) {
14739
- 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" };
14740
- if (vErrors === null) {
14741
- vErrors = [err16];
14742
- } else {
14743
- vErrors.push(err16);
14744
- }
14745
- errors++;
14746
- }
14747
- var valid4 = _errs26 === errors;
14648
+ 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" };
14649
+ if (vErrors === null) {
14650
+ vErrors = [err18];
14748
14651
  } else {
14749
- var valid4 = true;
14652
+ vErrors.push(err18);
14750
14653
  }
14751
- if (valid4) {
14752
- if (data1.toolOutcome !== void 0) {
14753
- let data11 = data1.toolOutcome;
14754
- const _errs28 = errors;
14755
- if (typeof data11 !== "string") {
14756
- 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" };
14757
- if (vErrors === null) {
14758
- vErrors = [err17];
14759
- } else {
14760
- vErrors.push(err17);
14654
+ errors++;
14655
+ }
14656
+ }
14657
+ var _valid1 = _errs29 === errors;
14658
+ if (_valid1 && valid5) {
14659
+ valid5 = false;
14660
+ passing0 = [passing0, 1];
14661
+ } else {
14662
+ if (_valid1) {
14663
+ valid5 = true;
14664
+ passing0 = 1;
14665
+ if (props0 !== true) {
14666
+ props0 = true;
14667
+ }
14668
+ }
14669
+ }
14670
+ if (!valid5) {
14671
+ 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" };
14672
+ if (vErrors === null) {
14673
+ vErrors = [err19];
14674
+ } else {
14675
+ vErrors.push(err19);
14676
+ }
14677
+ errors++;
14678
+ } else {
14679
+ errors = _errs21;
14680
+ if (vErrors !== null) {
14681
+ if (_errs21) {
14682
+ vErrors.length = _errs21;
14683
+ } else {
14684
+ vErrors = null;
14685
+ }
14686
+ }
14687
+ }
14688
+ var valid4 = _errs20 === errors;
14689
+ } else {
14690
+ var valid4 = true;
14691
+ }
14692
+ if (valid4) {
14693
+ if (data1.capturedOrganizationId !== void 0) {
14694
+ let data11 = data1.capturedOrganizationId;
14695
+ const _errs34 = errors;
14696
+ if (errors === _errs34) {
14697
+ if (typeof data11 === "string") {
14698
+ if (func1(data11) > 128) {
14699
+ 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" };
14700
+ if (vErrors === null) {
14701
+ vErrors = [err20];
14702
+ } else {
14703
+ vErrors.push(err20);
14704
+ }
14705
+ errors++;
14706
+ } else {
14707
+ if (func1(data11) < 1) {
14708
+ 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" };
14709
+ if (vErrors === null) {
14710
+ vErrors = [err21];
14711
+ } else {
14712
+ vErrors.push(err21);
14713
+ }
14714
+ errors++;
14715
+ } else {
14716
+ if (!pattern8.test(data11)) {
14717
+ 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_-]+$"' };
14718
+ if (vErrors === null) {
14719
+ vErrors = [err22];
14720
+ } else {
14721
+ vErrors.push(err22);
14722
+ }
14723
+ errors++;
14724
+ }
14725
+ }
14726
+ }
14727
+ } else {
14728
+ 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" };
14729
+ if (vErrors === null) {
14730
+ vErrors = [err23];
14731
+ } else {
14732
+ vErrors.push(err23);
14733
+ }
14734
+ errors++;
14735
+ }
14736
+ }
14737
+ var valid4 = _errs34 === errors;
14738
+ } else {
14739
+ var valid4 = true;
14740
+ }
14741
+ if (valid4) {
14742
+ if (data1.captureAuthorityKind !== void 0) {
14743
+ let data12 = data1.captureAuthorityKind;
14744
+ const _errs36 = errors;
14745
+ if (typeof data12 !== "string") {
14746
+ 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" };
14747
+ if (vErrors === null) {
14748
+ vErrors = [err24];
14749
+ } else {
14750
+ vErrors.push(err24);
14751
+ }
14752
+ errors++;
14753
+ }
14754
+ if (!(data12 === "workos" || data12 === "service_token")) {
14755
+ 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" };
14756
+ if (vErrors === null) {
14757
+ vErrors = [err25];
14758
+ } else {
14759
+ vErrors.push(err25);
14760
+ }
14761
+ errors++;
14762
+ }
14763
+ var valid4 = _errs36 === errors;
14764
+ } else {
14765
+ var valid4 = true;
14766
+ }
14767
+ if (valid4) {
14768
+ if (data1.decisionLifecycleProtocolVersion !== void 0) {
14769
+ let data13 = data1.decisionLifecycleProtocolVersion;
14770
+ const _errs38 = errors;
14771
+ if (!(typeof data13 == "number" && (!(data13 % 1) && !isNaN(data13)) && isFinite(data13))) {
14772
+ 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" };
14773
+ if (vErrors === null) {
14774
+ vErrors = [err26];
14775
+ } else {
14776
+ vErrors.push(err26);
14777
+ }
14778
+ errors++;
14779
+ }
14780
+ if (errors === _errs38) {
14781
+ if (typeof data13 == "number" && isFinite(data13)) {
14782
+ if (data13 > 9007199254740991 || isNaN(data13)) {
14783
+ 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" };
14784
+ if (vErrors === null) {
14785
+ vErrors = [err27];
14786
+ } else {
14787
+ vErrors.push(err27);
14788
+ }
14789
+ errors++;
14790
+ } else {
14791
+ if (data13 < 1 || isNaN(data13)) {
14792
+ 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" };
14793
+ if (vErrors === null) {
14794
+ vErrors = [err28];
14795
+ } else {
14796
+ vErrors.push(err28);
14797
+ }
14798
+ errors++;
14799
+ }
14800
+ }
14801
+ }
14802
+ }
14803
+ var valid4 = _errs38 === errors;
14804
+ } else {
14805
+ var valid4 = true;
14806
+ }
14807
+ if (valid4) {
14808
+ if (data1.producer !== void 0) {
14809
+ let data14 = data1.producer;
14810
+ const _errs40 = errors;
14811
+ if (typeof data14 !== "string") {
14812
+ 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" };
14813
+ if (vErrors === null) {
14814
+ vErrors = [err29];
14815
+ } else {
14816
+ vErrors.push(err29);
14761
14817
  }
14762
14818
  errors++;
14763
14819
  }
14764
- if (!(data11 === "succeeded" || data11 === "returned" || data11 === "failed" || data11 === "interrupted" || data11 === "prevented" || data11 === "unknown")) {
14765
- 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" };
14820
+ if (!(data14 === "claude_code" || data14 === "codex" || data14 === "cursor" || data14 === "hermes")) {
14821
+ 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" };
14766
14822
  if (vErrors === null) {
14767
- vErrors = [err18];
14823
+ vErrors = [err30];
14768
14824
  } else {
14769
- vErrors.push(err18);
14825
+ vErrors.push(err30);
14770
14826
  }
14771
14827
  errors++;
14772
14828
  }
14773
- var valid4 = _errs28 === errors;
14829
+ var valid4 = _errs40 === errors;
14774
14830
  } else {
14775
14831
  var valid4 = true;
14776
14832
  }
14777
14833
  if (valid4) {
14778
- if (data1.envelopeVersion !== void 0) {
14779
- let data12 = data1.envelopeVersion;
14780
- const _errs30 = errors;
14781
- if (!(typeof data12 == "number" && isFinite(data12))) {
14782
- 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" };
14834
+ if (data1.toolOutcome !== void 0) {
14835
+ let data15 = data1.toolOutcome;
14836
+ const _errs42 = errors;
14837
+ if (typeof data15 !== "string") {
14838
+ 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" };
14783
14839
  if (vErrors === null) {
14784
- vErrors = [err19];
14840
+ vErrors = [err31];
14785
14841
  } else {
14786
- vErrors.push(err19);
14842
+ vErrors.push(err31);
14787
14843
  }
14788
14844
  errors++;
14789
14845
  }
14790
- if (4 !== data12) {
14791
- 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" };
14846
+ if (!(data15 === "succeeded" || data15 === "returned" || data15 === "failed" || data15 === "interrupted" || data15 === "prevented" || data15 === "unknown")) {
14847
+ 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" };
14792
14848
  if (vErrors === null) {
14793
- vErrors = [err20];
14849
+ vErrors = [err32];
14794
14850
  } else {
14795
- vErrors.push(err20);
14851
+ vErrors.push(err32);
14796
14852
  }
14797
14853
  errors++;
14798
14854
  }
14799
- var valid4 = _errs30 === errors;
14855
+ var valid4 = _errs42 === errors;
14800
14856
  } else {
14801
14857
  var valid4 = true;
14802
14858
  }
14859
+ if (valid4) {
14860
+ if (data1.envelopeVersion !== void 0) {
14861
+ let data16 = data1.envelopeVersion;
14862
+ const _errs44 = errors;
14863
+ if (!(typeof data16 == "number" && isFinite(data16))) {
14864
+ 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" };
14865
+ if (vErrors === null) {
14866
+ vErrors = [err33];
14867
+ } else {
14868
+ vErrors.push(err33);
14869
+ }
14870
+ errors++;
14871
+ }
14872
+ if (4 !== data16) {
14873
+ 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" };
14874
+ if (vErrors === null) {
14875
+ vErrors = [err34];
14876
+ } else {
14877
+ vErrors.push(err34);
14878
+ }
14879
+ errors++;
14880
+ }
14881
+ var valid4 = _errs44 === errors;
14882
+ } else {
14883
+ var valid4 = true;
14884
+ }
14885
+ }
14803
14886
  }
14804
14887
  }
14805
14888
  }
@@ -14812,11 +14895,11 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
14812
14895
  }
14813
14896
  }
14814
14897
  } else {
14815
- 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" };
14898
+ 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" };
14816
14899
  if (vErrors === null) {
14817
- vErrors = [err21];
14900
+ vErrors = [err35];
14818
14901
  } else {
14819
- vErrors.push(err21);
14902
+ vErrors.push(err35);
14820
14903
  }
14821
14904
  errors++;
14822
14905
  }
@@ -14824,296 +14907,509 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
14824
14907
  var _valid0 = _errs7 === errors;
14825
14908
  valid3 = valid3 || _valid0;
14826
14909
  if (_valid0) {
14827
- var props0 = true;
14910
+ var props1 = true;
14828
14911
  }
14829
- const _errs32 = errors;
14830
- if (errors === _errs32) {
14912
+ const _errs46 = errors;
14913
+ if (errors === _errs46) {
14831
14914
  if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
14832
- let missing2;
14833
- 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")) {
14834
- 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 + "'" };
14915
+ let missing4;
14916
+ 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")) {
14917
+ 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 + "'" };
14835
14918
  if (vErrors === null) {
14836
- vErrors = [err22];
14919
+ vErrors = [err36];
14837
14920
  } else {
14838
- vErrors.push(err22);
14921
+ vErrors.push(err36);
14839
14922
  }
14840
14923
  errors++;
14841
14924
  } else {
14842
14925
  if (data1.moveId !== void 0) {
14843
- const _errs35 = errors;
14926
+ const _errs49 = errors;
14844
14927
  if (typeof data1.moveId !== "string") {
14845
- 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" };
14928
+ 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" };
14846
14929
  if (vErrors === null) {
14847
- vErrors = [err23];
14930
+ vErrors = [err37];
14848
14931
  } else {
14849
- vErrors.push(err23);
14932
+ vErrors.push(err37);
14850
14933
  }
14851
14934
  errors++;
14852
14935
  }
14853
- var valid5 = _errs35 === errors;
14936
+ var valid8 = _errs49 === errors;
14854
14937
  } else {
14855
- var valid5 = true;
14938
+ var valid8 = true;
14856
14939
  }
14857
- if (valid5) {
14940
+ if (valid8) {
14858
14941
  if (data1.capturedAt !== void 0) {
14859
- let data14 = data1.capturedAt;
14860
- const _errs37 = errors;
14861
- if (!(typeof data14 == "number" && isFinite(data14))) {
14862
- 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" };
14942
+ let data18 = data1.capturedAt;
14943
+ const _errs51 = errors;
14944
+ if (!(typeof data18 == "number" && isFinite(data18))) {
14945
+ 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" };
14863
14946
  if (vErrors === null) {
14864
- vErrors = [err24];
14947
+ vErrors = [err38];
14865
14948
  } else {
14866
- vErrors.push(err24);
14949
+ vErrors.push(err38);
14867
14950
  }
14868
14951
  errors++;
14869
14952
  }
14870
- var valid5 = _errs37 === errors;
14953
+ var valid8 = _errs51 === errors;
14871
14954
  } else {
14872
- var valid5 = true;
14955
+ var valid8 = true;
14873
14956
  }
14874
- if (valid5) {
14957
+ if (valid8) {
14875
14958
  if (data1.sessionId !== void 0) {
14876
- const _errs39 = errors;
14959
+ const _errs53 = errors;
14877
14960
  if (typeof data1.sessionId !== "string") {
14878
- 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" };
14961
+ 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" };
14879
14962
  if (vErrors === null) {
14880
- vErrors = [err25];
14963
+ vErrors = [err39];
14881
14964
  } else {
14882
- vErrors.push(err25);
14965
+ vErrors.push(err39);
14883
14966
  }
14884
14967
  errors++;
14885
14968
  }
14886
- var valid5 = _errs39 === errors;
14969
+ var valid8 = _errs53 === errors;
14887
14970
  } else {
14888
- var valid5 = true;
14971
+ var valid8 = true;
14889
14972
  }
14890
- if (valid5) {
14973
+ if (valid8) {
14891
14974
  if (data1.invocationId !== void 0) {
14892
- const _errs41 = errors;
14975
+ const _errs55 = errors;
14893
14976
  if (typeof data1.invocationId !== "string") {
14894
- 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" };
14977
+ 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" };
14895
14978
  if (vErrors === null) {
14896
- vErrors = [err26];
14979
+ vErrors = [err40];
14897
14980
  } else {
14898
- vErrors.push(err26);
14981
+ vErrors.push(err40);
14899
14982
  }
14900
14983
  errors++;
14901
14984
  }
14902
- var valid5 = _errs41 === errors;
14985
+ var valid8 = _errs55 === errors;
14903
14986
  } else {
14904
- var valid5 = true;
14987
+ var valid8 = true;
14905
14988
  }
14906
- if (valid5) {
14989
+ if (valid8) {
14907
14990
  if (data1.eventType !== void 0) {
14908
- const _errs43 = errors;
14991
+ const _errs57 = errors;
14909
14992
  if (typeof data1.eventType !== "string") {
14910
- 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" };
14993
+ 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" };
14911
14994
  if (vErrors === null) {
14912
- vErrors = [err27];
14995
+ vErrors = [err41];
14913
14996
  } else {
14914
- vErrors.push(err27);
14997
+ vErrors.push(err41);
14915
14998
  }
14916
14999
  errors++;
14917
15000
  }
14918
- var valid5 = _errs43 === errors;
15001
+ var valid8 = _errs57 === errors;
14919
15002
  } else {
14920
- var valid5 = true;
15003
+ var valid8 = true;
14921
15004
  }
14922
- if (valid5) {
14923
- if (data1.capturedOrganizationId !== void 0) {
14924
- let data18 = data1.capturedOrganizationId;
14925
- const _errs45 = errors;
14926
- if (errors === _errs45) {
14927
- if (typeof data18 === "string") {
14928
- if (func1(data18) > 128) {
14929
- 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" };
15005
+ if (valid8) {
15006
+ if (data1.repositoryContext !== void 0) {
15007
+ let data22 = data1.repositoryContext;
15008
+ const _errs59 = errors;
15009
+ const _errs60 = errors;
15010
+ let valid9 = false;
15011
+ let passing1 = null;
15012
+ const _errs61 = errors;
15013
+ if (errors === _errs61) {
15014
+ if (data22 && typeof data22 == "object" && !Array.isArray(data22)) {
15015
+ let missing5;
15016
+ if (data22.kind === void 0 && (missing5 = "kind") || data22.repoSyncId === void 0 && (missing5 = "repoSyncId")) {
15017
+ 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 + "'" };
14930
15018
  if (vErrors === null) {
14931
- vErrors = [err28];
15019
+ vErrors = [err42];
14932
15020
  } else {
14933
- vErrors.push(err28);
15021
+ vErrors.push(err42);
14934
15022
  }
14935
15023
  errors++;
14936
15024
  } else {
14937
- if (func1(data18) < 1) {
14938
- 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" };
14939
- if (vErrors === null) {
14940
- vErrors = [err29];
14941
- } else {
14942
- vErrors.push(err29);
14943
- }
14944
- errors++;
14945
- } else {
14946
- if (!pattern8.test(data18)) {
14947
- 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_-]+$"' };
15025
+ const _errs63 = errors;
15026
+ for (const key2 in data22) {
15027
+ if (!(key2 === "kind" || key2 === "repoSyncId")) {
15028
+ 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" };
14948
15029
  if (vErrors === null) {
14949
- vErrors = [err30];
15030
+ vErrors = [err43];
14950
15031
  } else {
14951
- vErrors.push(err30);
15032
+ vErrors.push(err43);
14952
15033
  }
14953
15034
  errors++;
15035
+ break;
15036
+ }
15037
+ }
15038
+ if (_errs63 === errors) {
15039
+ if (data22.kind !== void 0) {
15040
+ let data23 = data22.kind;
15041
+ const _errs64 = errors;
15042
+ if (typeof data23 !== "string") {
15043
+ 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" };
15044
+ if (vErrors === null) {
15045
+ vErrors = [err44];
15046
+ } else {
15047
+ vErrors.push(err44);
15048
+ }
15049
+ errors++;
15050
+ }
15051
+ if ("repository_bound" !== data23) {
15052
+ 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" };
15053
+ if (vErrors === null) {
15054
+ vErrors = [err45];
15055
+ } else {
15056
+ vErrors.push(err45);
15057
+ }
15058
+ errors++;
15059
+ }
15060
+ var valid10 = _errs64 === errors;
15061
+ } else {
15062
+ var valid10 = true;
15063
+ }
15064
+ if (valid10) {
15065
+ if (data22.repoSyncId !== void 0) {
15066
+ let data24 = data22.repoSyncId;
15067
+ const _errs66 = errors;
15068
+ if (errors === _errs66) {
15069
+ if (typeof data24 === "string") {
15070
+ if (func1(data24) > 128) {
15071
+ 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" };
15072
+ if (vErrors === null) {
15073
+ vErrors = [err46];
15074
+ } else {
15075
+ vErrors.push(err46);
15076
+ }
15077
+ errors++;
15078
+ } else {
15079
+ if (func1(data24) < 1) {
15080
+ 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" };
15081
+ if (vErrors === null) {
15082
+ vErrors = [err47];
15083
+ } else {
15084
+ vErrors.push(err47);
15085
+ }
15086
+ errors++;
15087
+ }
15088
+ }
15089
+ } else {
15090
+ 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" };
15091
+ if (vErrors === null) {
15092
+ vErrors = [err48];
15093
+ } else {
15094
+ vErrors.push(err48);
15095
+ }
15096
+ errors++;
15097
+ }
15098
+ }
15099
+ var valid10 = _errs66 === errors;
15100
+ } else {
15101
+ var valid10 = true;
15102
+ }
14954
15103
  }
14955
15104
  }
14956
15105
  }
14957
15106
  } else {
14958
- 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" };
15107
+ 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" };
14959
15108
  if (vErrors === null) {
14960
- vErrors = [err31];
15109
+ vErrors = [err49];
14961
15110
  } else {
14962
- vErrors.push(err31);
15111
+ vErrors.push(err49);
14963
15112
  }
14964
15113
  errors++;
14965
15114
  }
14966
15115
  }
14967
- var valid5 = _errs45 === errors;
14968
- } else {
14969
- var valid5 = true;
14970
- }
14971
- if (valid5) {
14972
- if (data1.captureAuthorityKind !== void 0) {
14973
- let data19 = data1.captureAuthorityKind;
14974
- const _errs47 = errors;
14975
- if (typeof data19 !== "string") {
14976
- 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" };
14977
- if (vErrors === null) {
14978
- vErrors = [err32];
15116
+ var _valid2 = _errs61 === errors;
15117
+ if (_valid2) {
15118
+ valid9 = true;
15119
+ passing1 = 0;
15120
+ var props2 = true;
15121
+ }
15122
+ const _errs68 = errors;
15123
+ if (errors === _errs68) {
15124
+ if (data22 && typeof data22 == "object" && !Array.isArray(data22)) {
15125
+ let missing6;
15126
+ if (data22.kind === void 0 && (missing6 = "kind")) {
15127
+ 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 + "'" };
15128
+ if (vErrors === null) {
15129
+ vErrors = [err50];
15130
+ } else {
15131
+ vErrors.push(err50);
15132
+ }
15133
+ errors++;
14979
15134
  } else {
14980
- vErrors.push(err32);
15135
+ const _errs70 = errors;
15136
+ for (const key3 in data22) {
15137
+ if (!(key3 === "kind")) {
15138
+ 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" };
15139
+ if (vErrors === null) {
15140
+ vErrors = [err51];
15141
+ } else {
15142
+ vErrors.push(err51);
15143
+ }
15144
+ errors++;
15145
+ break;
15146
+ }
15147
+ }
15148
+ if (_errs70 === errors) {
15149
+ if (data22.kind !== void 0) {
15150
+ let data25 = data22.kind;
15151
+ if (typeof data25 !== "string") {
15152
+ 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" };
15153
+ if (vErrors === null) {
15154
+ vErrors = [err52];
15155
+ } else {
15156
+ vErrors.push(err52);
15157
+ }
15158
+ errors++;
15159
+ }
15160
+ if ("non_repository" !== data25) {
15161
+ 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" };
15162
+ if (vErrors === null) {
15163
+ vErrors = [err53];
15164
+ } else {
15165
+ vErrors.push(err53);
15166
+ }
15167
+ errors++;
15168
+ }
15169
+ }
15170
+ }
14981
15171
  }
14982
- errors++;
14983
- }
14984
- if (!(data19 === "workos" || data19 === "service_token")) {
14985
- 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" };
15172
+ } else {
15173
+ 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" };
14986
15174
  if (vErrors === null) {
14987
- vErrors = [err33];
15175
+ vErrors = [err54];
14988
15176
  } else {
14989
- vErrors.push(err33);
15177
+ vErrors.push(err54);
14990
15178
  }
14991
15179
  errors++;
14992
15180
  }
14993
- var valid5 = _errs47 === errors;
15181
+ }
15182
+ var _valid2 = _errs68 === errors;
15183
+ if (_valid2 && valid9) {
15184
+ valid9 = false;
15185
+ passing1 = [passing1, 1];
14994
15186
  } else {
14995
- var valid5 = true;
15187
+ if (_valid2) {
15188
+ valid9 = true;
15189
+ passing1 = 1;
15190
+ if (props2 !== true) {
15191
+ props2 = true;
15192
+ }
15193
+ }
14996
15194
  }
14997
- if (valid5) {
14998
- if (data1.decisionLifecycleProtocolVersion !== void 0) {
14999
- let data20 = data1.decisionLifecycleProtocolVersion;
15000
- const _errs49 = errors;
15001
- if (!(typeof data20 == "number" && (!(data20 % 1) && !isNaN(data20)) && isFinite(data20))) {
15002
- 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" };
15003
- if (vErrors === null) {
15004
- vErrors = [err34];
15005
- } else {
15006
- vErrors.push(err34);
15007
- }
15008
- errors++;
15195
+ if (!valid9) {
15196
+ 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" };
15197
+ if (vErrors === null) {
15198
+ vErrors = [err55];
15199
+ } else {
15200
+ vErrors.push(err55);
15201
+ }
15202
+ errors++;
15203
+ } else {
15204
+ errors = _errs60;
15205
+ if (vErrors !== null) {
15206
+ if (_errs60) {
15207
+ vErrors.length = _errs60;
15208
+ } else {
15209
+ vErrors = null;
15009
15210
  }
15010
- if (errors === _errs49) {
15011
- if (typeof data20 == "number" && isFinite(data20)) {
15012
- if (data20 > 9007199254740991 || isNaN(data20)) {
15013
- 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" };
15211
+ }
15212
+ }
15213
+ var valid8 = _errs59 === errors;
15214
+ } else {
15215
+ var valid8 = true;
15216
+ }
15217
+ if (valid8) {
15218
+ if (data1.capturedOrganizationId !== void 0) {
15219
+ let data26 = data1.capturedOrganizationId;
15220
+ const _errs73 = errors;
15221
+ if (errors === _errs73) {
15222
+ if (typeof data26 === "string") {
15223
+ if (func1(data26) > 128) {
15224
+ 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" };
15225
+ if (vErrors === null) {
15226
+ vErrors = [err56];
15227
+ } else {
15228
+ vErrors.push(err56);
15229
+ }
15230
+ errors++;
15231
+ } else {
15232
+ if (func1(data26) < 1) {
15233
+ 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" };
15014
15234
  if (vErrors === null) {
15015
- vErrors = [err35];
15235
+ vErrors = [err57];
15016
15236
  } else {
15017
- vErrors.push(err35);
15237
+ vErrors.push(err57);
15018
15238
  }
15019
15239
  errors++;
15020
15240
  } else {
15021
- if (data20 < 1 || isNaN(data20)) {
15022
- 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" };
15241
+ if (!pattern8.test(data26)) {
15242
+ 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_-]+$"' };
15023
15243
  if (vErrors === null) {
15024
- vErrors = [err36];
15244
+ vErrors = [err58];
15025
15245
  } else {
15026
- vErrors.push(err36);
15246
+ vErrors.push(err58);
15027
15247
  }
15028
15248
  errors++;
15029
15249
  }
15030
15250
  }
15031
15251
  }
15252
+ } else {
15253
+ 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" };
15254
+ if (vErrors === null) {
15255
+ vErrors = [err59];
15256
+ } else {
15257
+ vErrors.push(err59);
15258
+ }
15259
+ errors++;
15260
+ }
15261
+ }
15262
+ var valid8 = _errs73 === errors;
15263
+ } else {
15264
+ var valid8 = true;
15265
+ }
15266
+ if (valid8) {
15267
+ if (data1.captureAuthorityKind !== void 0) {
15268
+ let data27 = data1.captureAuthorityKind;
15269
+ const _errs75 = errors;
15270
+ if (typeof data27 !== "string") {
15271
+ 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" };
15272
+ if (vErrors === null) {
15273
+ vErrors = [err60];
15274
+ } else {
15275
+ vErrors.push(err60);
15276
+ }
15277
+ errors++;
15032
15278
  }
15033
- var valid5 = _errs49 === errors;
15279
+ if (!(data27 === "workos" || data27 === "service_token")) {
15280
+ 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" };
15281
+ if (vErrors === null) {
15282
+ vErrors = [err61];
15283
+ } else {
15284
+ vErrors.push(err61);
15285
+ }
15286
+ errors++;
15287
+ }
15288
+ var valid8 = _errs75 === errors;
15034
15289
  } else {
15035
- var valid5 = true;
15290
+ var valid8 = true;
15036
15291
  }
15037
- if (valid5) {
15038
- if (data1.producer !== void 0) {
15039
- let data21 = data1.producer;
15040
- const _errs51 = errors;
15041
- if (typeof data21 !== "string") {
15042
- 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" };
15292
+ if (valid8) {
15293
+ if (data1.decisionLifecycleProtocolVersion !== void 0) {
15294
+ let data28 = data1.decisionLifecycleProtocolVersion;
15295
+ const _errs77 = errors;
15296
+ if (!(typeof data28 == "number" && (!(data28 % 1) && !isNaN(data28)) && isFinite(data28))) {
15297
+ 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" };
15043
15298
  if (vErrors === null) {
15044
- vErrors = [err37];
15299
+ vErrors = [err62];
15045
15300
  } else {
15046
- vErrors.push(err37);
15301
+ vErrors.push(err62);
15047
15302
  }
15048
15303
  errors++;
15049
15304
  }
15050
- if (!(data21 === "claude_code" || data21 === "codex" || data21 === "cursor" || data21 === "hermes")) {
15051
- 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" };
15052
- if (vErrors === null) {
15053
- vErrors = [err38];
15054
- } else {
15055
- vErrors.push(err38);
15305
+ if (errors === _errs77) {
15306
+ if (typeof data28 == "number" && isFinite(data28)) {
15307
+ if (data28 > 9007199254740991 || isNaN(data28)) {
15308
+ 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" };
15309
+ if (vErrors === null) {
15310
+ vErrors = [err63];
15311
+ } else {
15312
+ vErrors.push(err63);
15313
+ }
15314
+ errors++;
15315
+ } else {
15316
+ if (data28 < 1 || isNaN(data28)) {
15317
+ 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" };
15318
+ if (vErrors === null) {
15319
+ vErrors = [err64];
15320
+ } else {
15321
+ vErrors.push(err64);
15322
+ }
15323
+ errors++;
15324
+ }
15325
+ }
15056
15326
  }
15057
- errors++;
15058
15327
  }
15059
- var valid5 = _errs51 === errors;
15328
+ var valid8 = _errs77 === errors;
15060
15329
  } else {
15061
- var valid5 = true;
15330
+ var valid8 = true;
15062
15331
  }
15063
- if (valid5) {
15064
- if (data1.toolOutcome !== void 0) {
15065
- let data22 = data1.toolOutcome;
15066
- const _errs53 = errors;
15067
- if (typeof data22 !== "string") {
15068
- 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" };
15332
+ if (valid8) {
15333
+ if (data1.producer !== void 0) {
15334
+ let data29 = data1.producer;
15335
+ const _errs79 = errors;
15336
+ if (typeof data29 !== "string") {
15337
+ 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" };
15069
15338
  if (vErrors === null) {
15070
- vErrors = [err39];
15339
+ vErrors = [err65];
15071
15340
  } else {
15072
- vErrors.push(err39);
15341
+ vErrors.push(err65);
15073
15342
  }
15074
15343
  errors++;
15075
15344
  }
15076
- if (!(data22 === "succeeded" || data22 === "returned" || data22 === "failed" || data22 === "interrupted" || data22 === "prevented" || data22 === "unknown")) {
15077
- 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" };
15345
+ if (!(data29 === "claude_code" || data29 === "codex" || data29 === "cursor" || data29 === "hermes")) {
15346
+ 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" };
15078
15347
  if (vErrors === null) {
15079
- vErrors = [err40];
15348
+ vErrors = [err66];
15080
15349
  } else {
15081
- vErrors.push(err40);
15350
+ vErrors.push(err66);
15082
15351
  }
15083
15352
  errors++;
15084
15353
  }
15085
- var valid5 = _errs53 === errors;
15354
+ var valid8 = _errs79 === errors;
15086
15355
  } else {
15087
- var valid5 = true;
15356
+ var valid8 = true;
15088
15357
  }
15089
- if (valid5) {
15090
- if (data1.envelopeVersion !== void 0) {
15091
- let data23 = data1.envelopeVersion;
15092
- const _errs55 = errors;
15093
- if (errors === _errs55) {
15094
- if (typeof data23 == "number" && isFinite(data23)) {
15095
- if (data23 >= 4 || isNaN(data23)) {
15096
- 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" };
15358
+ if (valid8) {
15359
+ if (data1.toolOutcome !== void 0) {
15360
+ let data30 = data1.toolOutcome;
15361
+ const _errs81 = errors;
15362
+ if (typeof data30 !== "string") {
15363
+ 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" };
15364
+ if (vErrors === null) {
15365
+ vErrors = [err67];
15366
+ } else {
15367
+ vErrors.push(err67);
15368
+ }
15369
+ errors++;
15370
+ }
15371
+ if (!(data30 === "succeeded" || data30 === "returned" || data30 === "failed" || data30 === "interrupted" || data30 === "prevented" || data30 === "unknown")) {
15372
+ 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" };
15373
+ if (vErrors === null) {
15374
+ vErrors = [err68];
15375
+ } else {
15376
+ vErrors.push(err68);
15377
+ }
15378
+ errors++;
15379
+ }
15380
+ var valid8 = _errs81 === errors;
15381
+ } else {
15382
+ var valid8 = true;
15383
+ }
15384
+ if (valid8) {
15385
+ if (data1.envelopeVersion !== void 0) {
15386
+ let data31 = data1.envelopeVersion;
15387
+ const _errs83 = errors;
15388
+ if (errors === _errs83) {
15389
+ if (typeof data31 == "number" && isFinite(data31)) {
15390
+ if (data31 >= 4 || isNaN(data31)) {
15391
+ 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" };
15392
+ if (vErrors === null) {
15393
+ vErrors = [err69];
15394
+ } else {
15395
+ vErrors.push(err69);
15396
+ }
15397
+ errors++;
15398
+ }
15399
+ } else {
15400
+ 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" };
15097
15401
  if (vErrors === null) {
15098
- vErrors = [err41];
15402
+ vErrors = [err70];
15099
15403
  } else {
15100
- vErrors.push(err41);
15404
+ vErrors.push(err70);
15101
15405
  }
15102
15406
  errors++;
15103
15407
  }
15104
- } else {
15105
- 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" };
15106
- if (vErrors === null) {
15107
- vErrors = [err42];
15108
- } else {
15109
- vErrors.push(err42);
15110
- }
15111
- errors++;
15112
15408
  }
15409
+ var valid8 = _errs83 === errors;
15410
+ } else {
15411
+ var valid8 = true;
15113
15412
  }
15114
- var valid5 = _errs55 === errors;
15115
- } else {
15116
- var valid5 = true;
15117
15413
  }
15118
15414
  }
15119
15415
  }
@@ -15127,28 +15423,28 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
15127
15423
  }
15128
15424
  }
15129
15425
  } else {
15130
- 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" };
15426
+ 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" };
15131
15427
  if (vErrors === null) {
15132
- vErrors = [err43];
15428
+ vErrors = [err71];
15133
15429
  } else {
15134
- vErrors.push(err43);
15430
+ vErrors.push(err71);
15135
15431
  }
15136
15432
  errors++;
15137
15433
  }
15138
15434
  }
15139
- var _valid0 = _errs32 === errors;
15435
+ var _valid0 = _errs46 === errors;
15140
15436
  valid3 = valid3 || _valid0;
15141
15437
  if (_valid0) {
15142
- if (props0 !== true) {
15143
- props0 = true;
15438
+ if (props1 !== true) {
15439
+ props1 = true;
15144
15440
  }
15145
15441
  }
15146
15442
  if (!valid3) {
15147
- 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" };
15443
+ 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" };
15148
15444
  if (vErrors === null) {
15149
- vErrors = [err44];
15445
+ vErrors = [err72];
15150
15446
  } else {
15151
- vErrors.push(err44);
15447
+ vErrors.push(err72);
15152
15448
  }
15153
15449
  errors++;
15154
15450
  validate51.errors = vErrors;