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