@primitive.ai/prim 0.1.0-alpha.105 → 0.1.0-alpha.106

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.
@@ -10891,6 +10891,8 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
10891
10891
  return errors === 0;
10892
10892
  }
10893
10893
  validate39.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
10894
+ var pattern4 = new RegExp("^[a-zA-Z0-9]{1,64}$", "u");
10895
+ var pattern5 = new RegExp("^[a-f0-9]{64}$", "u");
10894
10896
  function validate40(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
10895
10897
  ;
10896
10898
  let vErrors = null;
@@ -10903,17 +10905,943 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
10903
10905
  evaluated0.items = void 0;
10904
10906
  }
10905
10907
  const _errs0 = errors;
10908
+ if (errors === _errs0) {
10909
+ if (data && typeof data == "object" && !Array.isArray(data)) {
10910
+ let missing0;
10911
+ if (data.runId === void 0 && (missing0 = "runId") || data.revision === void 0 && (missing0 = "revision") || data.appliedDigest === void 0 && (missing0 = "appliedDigest")) {
10912
+ validate40.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
10913
+ return false;
10914
+ } else {
10915
+ const _errs2 = errors;
10916
+ for (const key0 in data) {
10917
+ if (!(key0 === "runId" || key0 === "revision" || key0 === "appliedDigest")) {
10918
+ validate40.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
10919
+ return false;
10920
+ break;
10921
+ }
10922
+ }
10923
+ if (_errs2 === errors) {
10924
+ if (data.runId !== void 0) {
10925
+ let data0 = data.runId;
10926
+ const _errs3 = errors;
10927
+ if (errors === _errs3) {
10928
+ if (typeof data0 === "string") {
10929
+ if (!pattern4.test(data0)) {
10930
+ validate40.errors = [{ instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/properties/runId/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9]{1,64}$" }, message: 'must match pattern "^[a-zA-Z0-9]{1,64}$"' }];
10931
+ return false;
10932
+ }
10933
+ } else {
10934
+ validate40.errors = [{ instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/properties/runId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
10935
+ return false;
10936
+ }
10937
+ }
10938
+ var valid1 = _errs3 === errors;
10939
+ } else {
10940
+ var valid1 = true;
10941
+ }
10942
+ if (valid1) {
10943
+ if (data.revision !== void 0) {
10944
+ let data1 = data.revision;
10945
+ const _errs5 = errors;
10946
+ if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
10947
+ validate40.errors = [{ instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/properties/revision/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
10948
+ return false;
10949
+ }
10950
+ if (errors === _errs5) {
10951
+ if (typeof data1 == "number" && isFinite(data1)) {
10952
+ if (data1 > 9007199254740991 || isNaN(data1)) {
10953
+ validate40.errors = [{ instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/properties/revision/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
10954
+ return false;
10955
+ } else {
10956
+ if (data1 < 0 || isNaN(data1)) {
10957
+ validate40.errors = [{ instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/properties/revision/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
10958
+ return false;
10959
+ }
10960
+ }
10961
+ }
10962
+ }
10963
+ var valid1 = _errs5 === errors;
10964
+ } else {
10965
+ var valid1 = true;
10966
+ }
10967
+ if (valid1) {
10968
+ if (data.appliedDigest !== void 0) {
10969
+ let data2 = data.appliedDigest;
10970
+ const _errs7 = errors;
10971
+ if (errors === _errs7) {
10972
+ if (typeof data2 === "string") {
10973
+ if (!pattern5.test(data2)) {
10974
+ validate40.errors = [{ instancePath: instancePath + "/appliedDigest", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/properties/appliedDigest/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
10975
+ return false;
10976
+ }
10977
+ } else {
10978
+ validate40.errors = [{ instancePath: instancePath + "/appliedDigest", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/properties/appliedDigest/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
10979
+ return false;
10980
+ }
10981
+ }
10982
+ var valid1 = _errs7 === errors;
10983
+ } else {
10984
+ var valid1 = true;
10985
+ }
10986
+ }
10987
+ }
10988
+ }
10989
+ }
10990
+ } else {
10991
+ validate40.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoCompleteRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
10992
+ return false;
10993
+ }
10994
+ }
10995
+ validate40.errors = vErrors;
10996
+ return errors === 0;
10997
+ }
10998
+ validate40.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
10999
+ var pattern8 = new RegExp("\\S", "u");
11000
+ function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
11001
+ ;
11002
+ let vErrors = null;
11003
+ let errors = 0;
11004
+ const evaluated0 = validate41.evaluated;
11005
+ if (evaluated0.dynamicProps) {
11006
+ evaluated0.props = void 0;
11007
+ }
11008
+ if (evaluated0.dynamicItems) {
11009
+ evaluated0.items = void 0;
11010
+ }
11011
+ const _errs1 = errors;
11012
+ let valid1 = false;
11013
+ let passing0 = null;
11014
+ const _errs2 = errors;
11015
+ if (errors === _errs2) {
11016
+ if (data && typeof data == "object" && !Array.isArray(data)) {
11017
+ let missing0;
11018
+ if (data.runId === void 0 && (missing0 = "runId") || data.revision === void 0 && (missing0 = "revision") || data.choice === void 0 && (missing0 = "choice")) {
11019
+ const err0 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" };
11020
+ if (vErrors === null) {
11021
+ vErrors = [err0];
11022
+ } else {
11023
+ vErrors.push(err0);
11024
+ }
11025
+ errors++;
11026
+ } else {
11027
+ const _errs4 = errors;
11028
+ for (const key0 in data) {
11029
+ if (!(key0 === "runId" || key0 === "revision" || key0 === "choice")) {
11030
+ const err1 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
11031
+ if (vErrors === null) {
11032
+ vErrors = [err1];
11033
+ } else {
11034
+ vErrors.push(err1);
11035
+ }
11036
+ errors++;
11037
+ break;
11038
+ }
11039
+ }
11040
+ if (_errs4 === errors) {
11041
+ if (data.runId !== void 0) {
11042
+ let data0 = data.runId;
11043
+ const _errs5 = errors;
11044
+ if (errors === _errs5) {
11045
+ if (typeof data0 === "string") {
11046
+ if (!pattern4.test(data0)) {
11047
+ const err2 = { instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/properties/runId/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9]{1,64}$" }, message: 'must match pattern "^[a-zA-Z0-9]{1,64}$"' };
11048
+ if (vErrors === null) {
11049
+ vErrors = [err2];
11050
+ } else {
11051
+ vErrors.push(err2);
11052
+ }
11053
+ errors++;
11054
+ }
11055
+ } else {
11056
+ const err3 = { instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/properties/runId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
11057
+ if (vErrors === null) {
11058
+ vErrors = [err3];
11059
+ } else {
11060
+ vErrors.push(err3);
11061
+ }
11062
+ errors++;
11063
+ }
11064
+ }
11065
+ var valid2 = _errs5 === errors;
11066
+ } else {
11067
+ var valid2 = true;
11068
+ }
11069
+ if (valid2) {
11070
+ if (data.revision !== void 0) {
11071
+ let data1 = data.revision;
11072
+ const _errs7 = errors;
11073
+ if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
11074
+ const err4 = { instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/properties/revision/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
11075
+ if (vErrors === null) {
11076
+ vErrors = [err4];
11077
+ } else {
11078
+ vErrors.push(err4);
11079
+ }
11080
+ errors++;
11081
+ }
11082
+ if (errors === _errs7) {
11083
+ if (typeof data1 == "number" && isFinite(data1)) {
11084
+ if (data1 > 9007199254740991 || isNaN(data1)) {
11085
+ const err5 = { instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/properties/revision/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
11086
+ if (vErrors === null) {
11087
+ vErrors = [err5];
11088
+ } else {
11089
+ vErrors.push(err5);
11090
+ }
11091
+ errors++;
11092
+ } else {
11093
+ if (data1 < 0 || isNaN(data1)) {
11094
+ const err6 = { instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/properties/revision/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
11095
+ if (vErrors === null) {
11096
+ vErrors = [err6];
11097
+ } else {
11098
+ vErrors.push(err6);
11099
+ }
11100
+ errors++;
11101
+ }
11102
+ }
11103
+ }
11104
+ }
11105
+ var valid2 = _errs7 === errors;
11106
+ } else {
11107
+ var valid2 = true;
11108
+ }
11109
+ if (valid2) {
11110
+ if (data.choice !== void 0) {
11111
+ let data2 = data.choice;
11112
+ const _errs9 = errors;
11113
+ if (typeof data2 !== "string") {
11114
+ const err7 = { instancePath: instancePath + "/choice", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/properties/choice/type", keyword: "type", params: { type: "string" }, message: "must be string" };
11115
+ if (vErrors === null) {
11116
+ vErrors = [err7];
11117
+ } else {
11118
+ vErrors.push(err7);
11119
+ }
11120
+ errors++;
11121
+ }
11122
+ if ("adhere" !== data2) {
11123
+ const err8 = { instancePath: instancePath + "/choice", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/properties/choice/const", keyword: "const", params: { allowedValue: "adhere" }, message: "must be equal to constant" };
11124
+ if (vErrors === null) {
11125
+ vErrors = [err8];
11126
+ } else {
11127
+ vErrors.push(err8);
11128
+ }
11129
+ errors++;
11130
+ }
11131
+ var valid2 = _errs9 === errors;
11132
+ } else {
11133
+ var valid2 = true;
11134
+ }
11135
+ }
11136
+ }
11137
+ }
11138
+ }
11139
+ } else {
11140
+ const err9 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
11141
+ if (vErrors === null) {
11142
+ vErrors = [err9];
11143
+ } else {
11144
+ vErrors.push(err9);
11145
+ }
11146
+ errors++;
11147
+ }
11148
+ }
11149
+ var _valid0 = _errs2 === errors;
11150
+ if (_valid0) {
11151
+ valid1 = true;
11152
+ passing0 = 0;
11153
+ var props0 = true;
11154
+ }
11155
+ const _errs11 = errors;
11156
+ if (errors === _errs11) {
11157
+ if (data && typeof data == "object" && !Array.isArray(data)) {
11158
+ let missing1;
11159
+ if (data.runId === void 0 && (missing1 = "runId") || data.revision === void 0 && (missing1 = "revision") || data.choice === void 0 && (missing1 = "choice") || data.reason === void 0 && (missing1 = "reason")) {
11160
+ const err10 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" };
11161
+ if (vErrors === null) {
11162
+ vErrors = [err10];
11163
+ } else {
11164
+ vErrors.push(err10);
11165
+ }
11166
+ errors++;
11167
+ } else {
11168
+ const _errs13 = errors;
11169
+ for (const key1 in data) {
11170
+ if (!(key1 === "runId" || key1 === "revision" || key1 === "choice" || key1 === "reason")) {
11171
+ const err11 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
11172
+ if (vErrors === null) {
11173
+ vErrors = [err11];
11174
+ } else {
11175
+ vErrors.push(err11);
11176
+ }
11177
+ errors++;
11178
+ break;
11179
+ }
11180
+ }
11181
+ if (_errs13 === errors) {
11182
+ if (data.runId !== void 0) {
11183
+ let data3 = data.runId;
11184
+ const _errs14 = errors;
11185
+ if (errors === _errs14) {
11186
+ if (typeof data3 === "string") {
11187
+ if (!pattern4.test(data3)) {
11188
+ const err12 = { instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/runId/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9]{1,64}$" }, message: 'must match pattern "^[a-zA-Z0-9]{1,64}$"' };
11189
+ if (vErrors === null) {
11190
+ vErrors = [err12];
11191
+ } else {
11192
+ vErrors.push(err12);
11193
+ }
11194
+ errors++;
11195
+ }
11196
+ } else {
11197
+ const err13 = { instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/runId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
11198
+ if (vErrors === null) {
11199
+ vErrors = [err13];
11200
+ } else {
11201
+ vErrors.push(err13);
11202
+ }
11203
+ errors++;
11204
+ }
11205
+ }
11206
+ var valid3 = _errs14 === errors;
11207
+ } else {
11208
+ var valid3 = true;
11209
+ }
11210
+ if (valid3) {
11211
+ if (data.revision !== void 0) {
11212
+ let data4 = data.revision;
11213
+ const _errs16 = errors;
11214
+ if (!(typeof data4 == "number" && (!(data4 % 1) && !isNaN(data4)) && isFinite(data4))) {
11215
+ const err14 = { instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/revision/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
11216
+ if (vErrors === null) {
11217
+ vErrors = [err14];
11218
+ } else {
11219
+ vErrors.push(err14);
11220
+ }
11221
+ errors++;
11222
+ }
11223
+ if (errors === _errs16) {
11224
+ if (typeof data4 == "number" && isFinite(data4)) {
11225
+ if (data4 > 9007199254740991 || isNaN(data4)) {
11226
+ const err15 = { instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/revision/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
11227
+ if (vErrors === null) {
11228
+ vErrors = [err15];
11229
+ } else {
11230
+ vErrors.push(err15);
11231
+ }
11232
+ errors++;
11233
+ } else {
11234
+ if (data4 < 0 || isNaN(data4)) {
11235
+ const err16 = { instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/revision/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" };
11236
+ if (vErrors === null) {
11237
+ vErrors = [err16];
11238
+ } else {
11239
+ vErrors.push(err16);
11240
+ }
11241
+ errors++;
11242
+ }
11243
+ }
11244
+ }
11245
+ }
11246
+ var valid3 = _errs16 === errors;
11247
+ } else {
11248
+ var valid3 = true;
11249
+ }
11250
+ if (valid3) {
11251
+ if (data.choice !== void 0) {
11252
+ let data5 = data.choice;
11253
+ const _errs18 = errors;
11254
+ if (typeof data5 !== "string") {
11255
+ const err17 = { instancePath: instancePath + "/choice", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/choice/type", keyword: "type", params: { type: "string" }, message: "must be string" };
11256
+ if (vErrors === null) {
11257
+ vErrors = [err17];
11258
+ } else {
11259
+ vErrors.push(err17);
11260
+ }
11261
+ errors++;
11262
+ }
11263
+ if ("supersede" !== data5) {
11264
+ const err18 = { instancePath: instancePath + "/choice", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/choice/const", keyword: "const", params: { allowedValue: "supersede" }, message: "must be equal to constant" };
11265
+ if (vErrors === null) {
11266
+ vErrors = [err18];
11267
+ } else {
11268
+ vErrors.push(err18);
11269
+ }
11270
+ errors++;
11271
+ }
11272
+ var valid3 = _errs18 === errors;
11273
+ } else {
11274
+ var valid3 = true;
11275
+ }
11276
+ if (valid3) {
11277
+ if (data.reason !== void 0) {
11278
+ let data6 = data.reason;
11279
+ const _errs20 = errors;
11280
+ if (errors === _errs20) {
11281
+ if (typeof data6 === "string") {
11282
+ if (func1(data6) > 500) {
11283
+ const err19 = { instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/reason/maxLength", keyword: "maxLength", params: { limit: 500 }, message: "must NOT have more than 500 characters" };
11284
+ if (vErrors === null) {
11285
+ vErrors = [err19];
11286
+ } else {
11287
+ vErrors.push(err19);
11288
+ }
11289
+ errors++;
11290
+ } else {
11291
+ if (func1(data6) < 1) {
11292
+ const err20 = { instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/reason/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
11293
+ if (vErrors === null) {
11294
+ vErrors = [err20];
11295
+ } else {
11296
+ vErrors.push(err20);
11297
+ }
11298
+ errors++;
11299
+ } else {
11300
+ if (!pattern8.test(data6)) {
11301
+ const err21 = { instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/reason/pattern", keyword: "pattern", params: { pattern: "\\S" }, message: 'must match pattern "\\S"' };
11302
+ if (vErrors === null) {
11303
+ vErrors = [err21];
11304
+ } else {
11305
+ vErrors.push(err21);
11306
+ }
11307
+ errors++;
11308
+ }
11309
+ }
11310
+ }
11311
+ } else {
11312
+ const err22 = { instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/properties/reason/type", keyword: "type", params: { type: "string" }, message: "must be string" };
11313
+ if (vErrors === null) {
11314
+ vErrors = [err22];
11315
+ } else {
11316
+ vErrors.push(err22);
11317
+ }
11318
+ errors++;
11319
+ }
11320
+ }
11321
+ var valid3 = _errs20 === errors;
11322
+ } else {
11323
+ var valid3 = true;
11324
+ }
11325
+ }
11326
+ }
11327
+ }
11328
+ }
11329
+ }
11330
+ } else {
11331
+ const err23 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
11332
+ if (vErrors === null) {
11333
+ vErrors = [err23];
11334
+ } else {
11335
+ vErrors.push(err23);
11336
+ }
11337
+ errors++;
11338
+ }
11339
+ }
11340
+ var _valid0 = _errs11 === errors;
11341
+ if (_valid0 && valid1) {
11342
+ valid1 = false;
11343
+ passing0 = [passing0, 1];
11344
+ } else {
11345
+ if (_valid0) {
11346
+ valid1 = true;
11347
+ passing0 = 1;
11348
+ if (props0 !== true) {
11349
+ props0 = true;
11350
+ }
11351
+ }
11352
+ }
11353
+ if (!valid1) {
11354
+ const err24 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoResolveRequest/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
11355
+ if (vErrors === null) {
11356
+ vErrors = [err24];
11357
+ } else {
11358
+ vErrors.push(err24);
11359
+ }
11360
+ errors++;
11361
+ validate41.errors = vErrors;
11362
+ return false;
11363
+ } else {
11364
+ errors = _errs1;
11365
+ if (vErrors !== null) {
11366
+ if (_errs1) {
11367
+ vErrors.length = _errs1;
11368
+ } else {
11369
+ vErrors = null;
11370
+ }
11371
+ }
11372
+ }
11373
+ validate41.errors = vErrors;
11374
+ evaluated0.props = props0;
11375
+ return errors === 0;
11376
+ }
11377
+ validate41.evaluated = { "dynamicProps": true, "dynamicItems": false };
11378
+ function validate42(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
11379
+ ;
11380
+ let vErrors = null;
11381
+ let errors = 0;
11382
+ const evaluated0 = validate42.evaluated;
11383
+ if (evaluated0.dynamicProps) {
11384
+ evaluated0.props = void 0;
11385
+ }
11386
+ if (evaluated0.dynamicItems) {
11387
+ evaluated0.items = void 0;
11388
+ }
11389
+ const _errs0 = errors;
11390
+ if (errors === _errs0) {
11391
+ if (data && typeof data == "object" && !Array.isArray(data)) {
11392
+ let missing0;
11393
+ if (data.runId === void 0 && (missing0 = "runId") || data.revision === void 0 && (missing0 = "revision")) {
11394
+ validate42.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoRunRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
11395
+ return false;
11396
+ } else {
11397
+ const _errs2 = errors;
11398
+ for (const key0 in data) {
11399
+ if (!(key0 === "runId" || key0 === "revision")) {
11400
+ validate42.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoRunRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
11401
+ return false;
11402
+ break;
11403
+ }
11404
+ }
11405
+ if (_errs2 === errors) {
11406
+ if (data.runId !== void 0) {
11407
+ let data0 = data.runId;
11408
+ const _errs3 = errors;
11409
+ if (errors === _errs3) {
11410
+ if (typeof data0 === "string") {
11411
+ if (!pattern4.test(data0)) {
11412
+ validate42.errors = [{ instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoRunRequest/properties/runId/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9]{1,64}$" }, message: 'must match pattern "^[a-zA-Z0-9]{1,64}$"' }];
11413
+ return false;
11414
+ }
11415
+ } else {
11416
+ validate42.errors = [{ instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoRunRequest/properties/runId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11417
+ return false;
11418
+ }
11419
+ }
11420
+ var valid1 = _errs3 === errors;
11421
+ } else {
11422
+ var valid1 = true;
11423
+ }
11424
+ if (valid1) {
11425
+ if (data.revision !== void 0) {
11426
+ let data1 = data.revision;
11427
+ const _errs5 = errors;
11428
+ if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
11429
+ validate42.errors = [{ instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoRunRequest/properties/revision/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
11430
+ return false;
11431
+ }
11432
+ if (errors === _errs5) {
11433
+ if (typeof data1 == "number" && isFinite(data1)) {
11434
+ if (data1 > 9007199254740991 || isNaN(data1)) {
11435
+ validate42.errors = [{ instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoRunRequest/properties/revision/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
11436
+ return false;
11437
+ } else {
11438
+ if (data1 < 0 || isNaN(data1)) {
11439
+ validate42.errors = [{ instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoRunRequest/properties/revision/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
11440
+ return false;
11441
+ }
11442
+ }
11443
+ }
11444
+ }
11445
+ var valid1 = _errs5 === errors;
11446
+ } else {
11447
+ var valid1 = true;
11448
+ }
11449
+ }
11450
+ }
11451
+ }
11452
+ } else {
11453
+ validate42.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoRunRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11454
+ return false;
11455
+ }
11456
+ }
11457
+ validate42.errors = vErrors;
11458
+ return errors === 0;
11459
+ }
11460
+ validate42.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
11461
+ var pattern10 = new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$", "u");
11462
+ function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
11463
+ ;
11464
+ let vErrors = null;
11465
+ let errors = 0;
11466
+ const evaluated0 = validate43.evaluated;
11467
+ if (evaluated0.dynamicProps) {
11468
+ evaluated0.props = void 0;
11469
+ }
11470
+ if (evaluated0.dynamicItems) {
11471
+ evaluated0.items = void 0;
11472
+ }
11473
+ const _errs0 = errors;
11474
+ if (errors === _errs0) {
11475
+ if (data && typeof data == "object" && !Array.isArray(data)) {
11476
+ let missing0;
11477
+ if (data.scenarioVersion === void 0 && (missing0 = "scenarioVersion") || data.localRunId === void 0 && (missing0 = "localRunId")) {
11478
+ validate43.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStartRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
11479
+ return false;
11480
+ } else {
11481
+ const _errs2 = errors;
11482
+ for (const key0 in data) {
11483
+ if (!(key0 === "scenarioVersion" || key0 === "localRunId")) {
11484
+ validate43.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStartRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
11485
+ return false;
11486
+ break;
11487
+ }
11488
+ }
11489
+ if (_errs2 === errors) {
11490
+ if (data.scenarioVersion !== void 0) {
11491
+ let data0 = data.scenarioVersion;
11492
+ const _errs3 = errors;
11493
+ if (!(typeof data0 == "number" && isFinite(data0))) {
11494
+ validate43.errors = [{ instancePath: instancePath + "/scenarioVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStartRequest/properties/scenarioVersion/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
11495
+ return false;
11496
+ }
11497
+ if (1 !== data0) {
11498
+ validate43.errors = [{ instancePath: instancePath + "/scenarioVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStartRequest/properties/scenarioVersion/const", keyword: "const", params: { allowedValue: 1 }, message: "must be equal to constant" }];
11499
+ return false;
11500
+ }
11501
+ var valid1 = _errs3 === errors;
11502
+ } else {
11503
+ var valid1 = true;
11504
+ }
11505
+ if (valid1) {
11506
+ if (data.localRunId !== void 0) {
11507
+ let data1 = data.localRunId;
11508
+ const _errs5 = errors;
11509
+ if (errors === _errs5) {
11510
+ if (errors === _errs5) {
11511
+ if (typeof data1 === "string") {
11512
+ if (!pattern10.test(data1)) {
11513
+ validate43.errors = [{ instancePath: instancePath + "/localRunId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStartRequest/properties/localRunId/pattern", keyword: "pattern", params: { pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" }, message: 'must match pattern "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"' }];
11514
+ return false;
11515
+ }
11516
+ } else {
11517
+ validate43.errors = [{ instancePath: instancePath + "/localRunId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStartRequest/properties/localRunId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11518
+ return false;
11519
+ }
11520
+ }
11521
+ }
11522
+ var valid1 = _errs5 === errors;
11523
+ } else {
11524
+ var valid1 = true;
11525
+ }
11526
+ }
11527
+ }
11528
+ }
11529
+ } else {
11530
+ validate43.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStartRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11531
+ return false;
11532
+ }
11533
+ }
11534
+ validate43.errors = vErrors;
11535
+ return errors === 0;
11536
+ }
11537
+ validate43.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
11538
+ var schema79 = { "type": "object", "properties": { "scenarioVersion": { "type": "number", "const": 1 }, "fictional": { "type": "boolean", "const": true }, "evaluation": { "type": "string", "const": "live" }, "runId": { "type": "string", "pattern": "^[a-zA-Z0-9]{1,64}$" }, "revision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "stage": { "type": "string", "enum": ["ready", "checking", "blocked", "approved", "completed", "skipped", "expired"] }, "authorName": { "type": "string", "maxLength": 200 }, "email": { "type": "string", "enum": ["not_queued", "queued", "accepted", "failed", "suppressed"] }, "verdict": { "type": "string", "enum": ["block", "pass", "pending"] }, "reasonCode": { "type": "string", "maxLength": 100 }, "choice": { "type": "string", "enum": ["adhere", "supersede"] }, "reason": { "type": "string", "maxLength": 500 }, "approvedDigest": { "type": "string", "pattern": "^[a-f0-9]{64}$" } }, "required": ["scenarioVersion", "fictional", "evaluation", "runId", "revision", "stage", "authorName", "email"], "additionalProperties": false };
11539
+ var func34 = Object.prototype.hasOwnProperty;
11540
+ function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
11541
+ ;
11542
+ let vErrors = null;
11543
+ let errors = 0;
11544
+ const evaluated0 = validate44.evaluated;
11545
+ if (evaluated0.dynamicProps) {
11546
+ evaluated0.props = void 0;
11547
+ }
11548
+ if (evaluated0.dynamicItems) {
11549
+ evaluated0.items = void 0;
11550
+ }
11551
+ const _errs0 = errors;
11552
+ if (errors === _errs0) {
11553
+ if (data && typeof data == "object" && !Array.isArray(data)) {
11554
+ let missing0;
11555
+ if (data.scenarioVersion === void 0 && (missing0 = "scenarioVersion") || data.fictional === void 0 && (missing0 = "fictional") || data.evaluation === void 0 && (missing0 = "evaluation") || data.runId === void 0 && (missing0 = "runId") || data.revision === void 0 && (missing0 = "revision") || data.stage === void 0 && (missing0 = "stage") || data.authorName === void 0 && (missing0 = "authorName") || data.email === void 0 && (missing0 = "email")) {
11556
+ validate44.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
11557
+ return false;
11558
+ } else {
11559
+ const _errs2 = errors;
11560
+ for (const key0 in data) {
11561
+ if (!func34.call(schema79.properties, key0)) {
11562
+ validate44.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
11563
+ return false;
11564
+ break;
11565
+ }
11566
+ }
11567
+ if (_errs2 === errors) {
11568
+ if (data.scenarioVersion !== void 0) {
11569
+ let data0 = data.scenarioVersion;
11570
+ const _errs3 = errors;
11571
+ if (!(typeof data0 == "number" && isFinite(data0))) {
11572
+ validate44.errors = [{ instancePath: instancePath + "/scenarioVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/scenarioVersion/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
11573
+ return false;
11574
+ }
11575
+ if (1 !== data0) {
11576
+ validate44.errors = [{ instancePath: instancePath + "/scenarioVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/scenarioVersion/const", keyword: "const", params: { allowedValue: 1 }, message: "must be equal to constant" }];
11577
+ return false;
11578
+ }
11579
+ var valid1 = _errs3 === errors;
11580
+ } else {
11581
+ var valid1 = true;
11582
+ }
11583
+ if (valid1) {
11584
+ if (data.fictional !== void 0) {
11585
+ let data1 = data.fictional;
11586
+ const _errs5 = errors;
11587
+ if (typeof data1 !== "boolean") {
11588
+ validate44.errors = [{ instancePath: instancePath + "/fictional", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/fictional/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
11589
+ return false;
11590
+ }
11591
+ if (true !== data1) {
11592
+ validate44.errors = [{ instancePath: instancePath + "/fictional", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/fictional/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
11593
+ return false;
11594
+ }
11595
+ var valid1 = _errs5 === errors;
11596
+ } else {
11597
+ var valid1 = true;
11598
+ }
11599
+ if (valid1) {
11600
+ if (data.evaluation !== void 0) {
11601
+ let data2 = data.evaluation;
11602
+ const _errs7 = errors;
11603
+ if (typeof data2 !== "string") {
11604
+ validate44.errors = [{ instancePath: instancePath + "/evaluation", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/evaluation/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11605
+ return false;
11606
+ }
11607
+ if ("live" !== data2) {
11608
+ validate44.errors = [{ instancePath: instancePath + "/evaluation", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/evaluation/const", keyword: "const", params: { allowedValue: "live" }, message: "must be equal to constant" }];
11609
+ return false;
11610
+ }
11611
+ var valid1 = _errs7 === errors;
11612
+ } else {
11613
+ var valid1 = true;
11614
+ }
11615
+ if (valid1) {
11616
+ if (data.runId !== void 0) {
11617
+ let data3 = data.runId;
11618
+ const _errs9 = errors;
11619
+ if (errors === _errs9) {
11620
+ if (typeof data3 === "string") {
11621
+ if (!pattern4.test(data3)) {
11622
+ validate44.errors = [{ instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/runId/pattern", keyword: "pattern", params: { pattern: "^[a-zA-Z0-9]{1,64}$" }, message: 'must match pattern "^[a-zA-Z0-9]{1,64}$"' }];
11623
+ return false;
11624
+ }
11625
+ } else {
11626
+ validate44.errors = [{ instancePath: instancePath + "/runId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/runId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11627
+ return false;
11628
+ }
11629
+ }
11630
+ var valid1 = _errs9 === errors;
11631
+ } else {
11632
+ var valid1 = true;
11633
+ }
11634
+ if (valid1) {
11635
+ if (data.revision !== void 0) {
11636
+ let data4 = data.revision;
11637
+ const _errs11 = errors;
11638
+ if (!(typeof data4 == "number" && (!(data4 % 1) && !isNaN(data4)) && isFinite(data4))) {
11639
+ validate44.errors = [{ instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/revision/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
11640
+ return false;
11641
+ }
11642
+ if (errors === _errs11) {
11643
+ if (typeof data4 == "number" && isFinite(data4)) {
11644
+ if (data4 > 9007199254740991 || isNaN(data4)) {
11645
+ validate44.errors = [{ instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/revision/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
11646
+ return false;
11647
+ } else {
11648
+ if (data4 < 0 || isNaN(data4)) {
11649
+ validate44.errors = [{ instancePath: instancePath + "/revision", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/revision/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
11650
+ return false;
11651
+ }
11652
+ }
11653
+ }
11654
+ }
11655
+ var valid1 = _errs11 === errors;
11656
+ } else {
11657
+ var valid1 = true;
11658
+ }
11659
+ if (valid1) {
11660
+ if (data.stage !== void 0) {
11661
+ let data5 = data.stage;
11662
+ const _errs13 = errors;
11663
+ if (typeof data5 !== "string") {
11664
+ validate44.errors = [{ instancePath: instancePath + "/stage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/stage/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11665
+ return false;
11666
+ }
11667
+ if (!(data5 === "ready" || data5 === "checking" || data5 === "blocked" || data5 === "approved" || data5 === "completed" || data5 === "skipped" || data5 === "expired")) {
11668
+ validate44.errors = [{ instancePath: instancePath + "/stage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/stage/enum", keyword: "enum", params: { allowedValues: schema79.properties.stage.enum }, message: "must be equal to one of the allowed values" }];
11669
+ return false;
11670
+ }
11671
+ var valid1 = _errs13 === errors;
11672
+ } else {
11673
+ var valid1 = true;
11674
+ }
11675
+ if (valid1) {
11676
+ if (data.authorName !== void 0) {
11677
+ let data6 = data.authorName;
11678
+ const _errs15 = errors;
11679
+ if (errors === _errs15) {
11680
+ if (typeof data6 === "string") {
11681
+ if (func1(data6) > 200) {
11682
+ validate44.errors = [{ instancePath: instancePath + "/authorName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/authorName/maxLength", keyword: "maxLength", params: { limit: 200 }, message: "must NOT have more than 200 characters" }];
11683
+ return false;
11684
+ }
11685
+ } else {
11686
+ validate44.errors = [{ instancePath: instancePath + "/authorName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/authorName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11687
+ return false;
11688
+ }
11689
+ }
11690
+ var valid1 = _errs15 === errors;
11691
+ } else {
11692
+ var valid1 = true;
11693
+ }
11694
+ if (valid1) {
11695
+ if (data.email !== void 0) {
11696
+ let data7 = data.email;
11697
+ const _errs17 = errors;
11698
+ if (typeof data7 !== "string") {
11699
+ validate44.errors = [{ instancePath: instancePath + "/email", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/email/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11700
+ return false;
11701
+ }
11702
+ if (!(data7 === "not_queued" || data7 === "queued" || data7 === "accepted" || data7 === "failed" || data7 === "suppressed")) {
11703
+ validate44.errors = [{ instancePath: instancePath + "/email", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/email/enum", keyword: "enum", params: { allowedValues: schema79.properties.email.enum }, message: "must be equal to one of the allowed values" }];
11704
+ return false;
11705
+ }
11706
+ var valid1 = _errs17 === errors;
11707
+ } else {
11708
+ var valid1 = true;
11709
+ }
11710
+ if (valid1) {
11711
+ if (data.verdict !== void 0) {
11712
+ let data8 = data.verdict;
11713
+ const _errs19 = errors;
11714
+ if (typeof data8 !== "string") {
11715
+ validate44.errors = [{ instancePath: instancePath + "/verdict", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/verdict/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11716
+ return false;
11717
+ }
11718
+ if (!(data8 === "block" || data8 === "pass" || data8 === "pending")) {
11719
+ validate44.errors = [{ instancePath: instancePath + "/verdict", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/verdict/enum", keyword: "enum", params: { allowedValues: schema79.properties.verdict.enum }, message: "must be equal to one of the allowed values" }];
11720
+ return false;
11721
+ }
11722
+ var valid1 = _errs19 === errors;
11723
+ } else {
11724
+ var valid1 = true;
11725
+ }
11726
+ if (valid1) {
11727
+ if (data.reasonCode !== void 0) {
11728
+ let data9 = data.reasonCode;
11729
+ const _errs21 = errors;
11730
+ if (errors === _errs21) {
11731
+ if (typeof data9 === "string") {
11732
+ if (func1(data9) > 100) {
11733
+ validate44.errors = [{ instancePath: instancePath + "/reasonCode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reasonCode/maxLength", keyword: "maxLength", params: { limit: 100 }, message: "must NOT have more than 100 characters" }];
11734
+ return false;
11735
+ }
11736
+ } else {
11737
+ validate44.errors = [{ instancePath: instancePath + "/reasonCode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reasonCode/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11738
+ return false;
11739
+ }
11740
+ }
11741
+ var valid1 = _errs21 === errors;
11742
+ } else {
11743
+ var valid1 = true;
11744
+ }
11745
+ if (valid1) {
11746
+ if (data.choice !== void 0) {
11747
+ let data10 = data.choice;
11748
+ const _errs23 = errors;
11749
+ if (typeof data10 !== "string") {
11750
+ validate44.errors = [{ instancePath: instancePath + "/choice", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/choice/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11751
+ return false;
11752
+ }
11753
+ if (!(data10 === "adhere" || data10 === "supersede")) {
11754
+ validate44.errors = [{ instancePath: instancePath + "/choice", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/choice/enum", keyword: "enum", params: { allowedValues: schema79.properties.choice.enum }, message: "must be equal to one of the allowed values" }];
11755
+ return false;
11756
+ }
11757
+ var valid1 = _errs23 === errors;
11758
+ } else {
11759
+ var valid1 = true;
11760
+ }
11761
+ if (valid1) {
11762
+ if (data.reason !== void 0) {
11763
+ let data11 = data.reason;
11764
+ const _errs25 = errors;
11765
+ if (errors === _errs25) {
11766
+ if (typeof data11 === "string") {
11767
+ if (func1(data11) > 500) {
11768
+ validate44.errors = [{ instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reason/maxLength", keyword: "maxLength", params: { limit: 500 }, message: "must NOT have more than 500 characters" }];
11769
+ return false;
11770
+ }
11771
+ } else {
11772
+ validate44.errors = [{ instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reason/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11773
+ return false;
11774
+ }
11775
+ }
11776
+ var valid1 = _errs25 === errors;
11777
+ } else {
11778
+ var valid1 = true;
11779
+ }
11780
+ if (valid1) {
11781
+ if (data.approvedDigest !== void 0) {
11782
+ let data12 = data.approvedDigest;
11783
+ const _errs27 = errors;
11784
+ if (errors === _errs27) {
11785
+ if (typeof data12 === "string") {
11786
+ if (!pattern5.test(data12)) {
11787
+ validate44.errors = [{ instancePath: instancePath + "/approvedDigest", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/approvedDigest/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
11788
+ return false;
11789
+ }
11790
+ } else {
11791
+ validate44.errors = [{ instancePath: instancePath + "/approvedDigest", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/approvedDigest/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11792
+ return false;
11793
+ }
11794
+ }
11795
+ var valid1 = _errs27 === errors;
11796
+ } else {
11797
+ var valid1 = true;
11798
+ }
11799
+ }
11800
+ }
11801
+ }
11802
+ }
11803
+ }
11804
+ }
11805
+ }
11806
+ }
11807
+ }
11808
+ }
11809
+ }
11810
+ }
11811
+ }
11812
+ }
11813
+ } else {
11814
+ validate44.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11815
+ return false;
11816
+ }
11817
+ }
11818
+ validate44.errors = vErrors;
11819
+ return errors === 0;
11820
+ }
11821
+ validate44.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
11822
+ function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
11823
+ ;
11824
+ let vErrors = null;
11825
+ let errors = 0;
11826
+ const evaluated0 = validate45.evaluated;
11827
+ if (evaluated0.dynamicProps) {
11828
+ evaluated0.props = void 0;
11829
+ }
11830
+ if (evaluated0.dynamicItems) {
11831
+ evaluated0.items = void 0;
11832
+ }
11833
+ const _errs0 = errors;
10906
11834
  if (errors === _errs0) {
10907
11835
  if (data && typeof data == "object" && !Array.isArray(data)) {
10908
11836
  let missing0;
10909
11837
  if (data.disposition === void 0 && (missing0 = "disposition") || data.acknowledged === void 0 && (missing0 = "acknowledged") || data.accepted === void 0 && (missing0 = "accepted") || data.verdictFooter === void 0 && (missing0 = "verdictFooter")) {
10910
- validate40.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
11838
+ validate45.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
10911
11839
  return false;
10912
11840
  } else {
10913
11841
  const _errs2 = errors;
10914
11842
  for (const key0 in data) {
10915
11843
  if (!(key0 === "disposition" || key0 === "acknowledged" || key0 === "accepted" || key0 === "verdictFooter" || key0 === "collectScopeVersion")) {
10916
- validate40.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
11844
+ validate45.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
10917
11845
  return false;
10918
11846
  break;
10919
11847
  }
@@ -10923,11 +11851,11 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
10923
11851
  let data0 = data.disposition;
10924
11852
  const _errs3 = errors;
10925
11853
  if (typeof data0 !== "string") {
10926
- validate40.errors = [{ instancePath: instancePath + "/disposition", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/disposition/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11854
+ validate45.errors = [{ instancePath: instancePath + "/disposition", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/disposition/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
10927
11855
  return false;
10928
11856
  }
10929
11857
  if ("persisted" !== data0) {
10930
- validate40.errors = [{ instancePath: instancePath + "/disposition", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/disposition/const", keyword: "const", params: { allowedValue: "persisted" }, message: "must be equal to constant" }];
11858
+ validate45.errors = [{ instancePath: instancePath + "/disposition", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/disposition/const", keyword: "const", params: { allowedValue: "persisted" }, message: "must be equal to constant" }];
10931
11859
  return false;
10932
11860
  }
10933
11861
  var valid1 = _errs3 === errors;
@@ -10939,7 +11867,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
10939
11867
  let data1 = data.acknowledged;
10940
11868
  const _errs5 = errors;
10941
11869
  if (!(typeof data1 == "number" && isFinite(data1))) {
10942
- validate40.errors = [{ instancePath: instancePath + "/acknowledged", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/acknowledged/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
11870
+ validate45.errors = [{ instancePath: instancePath + "/acknowledged", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/acknowledged/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
10943
11871
  return false;
10944
11872
  }
10945
11873
  var valid1 = _errs5 === errors;
@@ -10951,7 +11879,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
10951
11879
  let data2 = data.accepted;
10952
11880
  const _errs7 = errors;
10953
11881
  if (!(typeof data2 == "number" && isFinite(data2))) {
10954
- validate40.errors = [{ instancePath: instancePath + "/accepted", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/accepted/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
11882
+ validate45.errors = [{ instancePath: instancePath + "/accepted", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/accepted/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
10955
11883
  return false;
10956
11884
  }
10957
11885
  var valid1 = _errs7 === errors;
@@ -11126,7 +12054,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
11126
12054
  vErrors.push(err10);
11127
12055
  }
11128
12056
  errors++;
11129
- validate40.errors = vErrors;
12057
+ validate45.errors = vErrors;
11130
12058
  return false;
11131
12059
  } else {
11132
12060
  errors = _errs10;
@@ -11147,17 +12075,17 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
11147
12075
  let data10 = data.collectScopeVersion;
11148
12076
  const _errs28 = errors;
11149
12077
  if (!(typeof data10 == "number" && (!(data10 % 1) && !isNaN(data10)) && isFinite(data10))) {
11150
- validate40.errors = [{ instancePath: instancePath + "/collectScopeVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/collectScopeVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
12078
+ validate45.errors = [{ instancePath: instancePath + "/collectScopeVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/collectScopeVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
11151
12079
  return false;
11152
12080
  }
11153
12081
  if (errors === _errs28) {
11154
12082
  if (typeof data10 == "number" && isFinite(data10)) {
11155
12083
  if (data10 > 9007199254740991 || isNaN(data10)) {
11156
- validate40.errors = [{ instancePath: instancePath + "/collectScopeVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/collectScopeVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
12084
+ validate45.errors = [{ instancePath: instancePath + "/collectScopeVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/collectScopeVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
11157
12085
  return false;
11158
12086
  } else {
11159
12087
  if (data10 < 0 || isNaN(data10)) {
11160
- validate40.errors = [{ instancePath: instancePath + "/collectScopeVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/collectScopeVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
12088
+ validate45.errors = [{ instancePath: instancePath + "/collectScopeVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/collectScopeVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
11161
12089
  return false;
11162
12090
  }
11163
12091
  }
@@ -11174,19 +12102,19 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
11174
12102
  }
11175
12103
  }
11176
12104
  } else {
11177
- validate40.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12105
+ validate45.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11178
12106
  return false;
11179
12107
  }
11180
12108
  }
11181
- validate40.errors = vErrors;
12109
+ validate45.errors = vErrors;
11182
12110
  return errors === 0;
11183
12111
  }
11184
- validate40.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
11185
- function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
12112
+ validate45.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12113
+ function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
11186
12114
  ;
11187
12115
  let vErrors = null;
11188
12116
  let errors = 0;
11189
- const evaluated0 = validate41.evaluated;
12117
+ const evaluated0 = validate46.evaluated;
11190
12118
  if (evaluated0.dynamicProps) {
11191
12119
  evaluated0.props = void 0;
11192
12120
  }
@@ -11198,13 +12126,13 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
11198
12126
  if (data && typeof data == "object" && !Array.isArray(data)) {
11199
12127
  let missing0;
11200
12128
  if (data.protocolVersion === void 0 && (missing0 = "protocolVersion") || data.workspaceId === void 0 && (missing0 = "workspaceId") || data.deliveries === void 0 && (missing0 = "deliveries")) {
11201
- validate41.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
12129
+ validate46.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
11202
12130
  return false;
11203
12131
  } else {
11204
12132
  const _errs3 = errors;
11205
12133
  for (const key0 in data) {
11206
12134
  if (!(key0 === "protocolVersion" || key0 === "workspaceId" || key0 === "deliveries")) {
11207
- validate41.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
12135
+ validate46.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
11208
12136
  return false;
11209
12137
  break;
11210
12138
  }
@@ -11214,17 +12142,17 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
11214
12142
  let data0 = data.protocolVersion;
11215
12143
  const _errs4 = errors;
11216
12144
  if (!(typeof data0 == "number" && (!(data0 % 1) && !isNaN(data0)) && isFinite(data0))) {
11217
- validate41.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/protocolVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
12145
+ validate46.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/protocolVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
11218
12146
  return false;
11219
12147
  }
11220
12148
  if (errors === _errs4) {
11221
12149
  if (typeof data0 == "number" && isFinite(data0)) {
11222
12150
  if (data0 > 2 || isNaN(data0)) {
11223
- validate41.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/protocolVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 2 }, message: "must be <= 2" }];
12151
+ validate46.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/protocolVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 2 }, message: "must be <= 2" }];
11224
12152
  return false;
11225
12153
  } else {
11226
12154
  if (data0 < 1 || isNaN(data0)) {
11227
- validate41.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/protocolVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
12155
+ validate46.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/protocolVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
11228
12156
  return false;
11229
12157
  }
11230
12158
  }
@@ -11238,7 +12166,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
11238
12166
  if (data.workspaceId !== void 0) {
11239
12167
  const _errs6 = errors;
11240
12168
  if (typeof data.workspaceId !== "string") {
11241
- validate41.errors = [{ instancePath: instancePath + "/workspaceId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/workspaceId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12169
+ validate46.errors = [{ instancePath: instancePath + "/workspaceId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/workspaceId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11242
12170
  return false;
11243
12171
  }
11244
12172
  var valid1 = _errs6 === errors;
@@ -11252,11 +12180,11 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
11252
12180
  if (errors === _errs8) {
11253
12181
  if (Array.isArray(data2)) {
11254
12182
  if (data2.length > 40) {
11255
- validate41.errors = [{ instancePath: instancePath + "/deliveries", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/maxItems", keyword: "maxItems", params: { limit: 40 }, message: "must NOT have more than 40 items" }];
12183
+ validate46.errors = [{ instancePath: instancePath + "/deliveries", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/maxItems", keyword: "maxItems", params: { limit: 40 }, message: "must NOT have more than 40 items" }];
11256
12184
  return false;
11257
12185
  } else {
11258
12186
  if (data2.length < 1) {
11259
- validate41.errors = [{ instancePath: instancePath + "/deliveries", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
12187
+ validate46.errors = [{ instancePath: instancePath + "/deliveries", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
11260
12188
  return false;
11261
12189
  } else {
11262
12190
  var valid2 = true;
@@ -11268,13 +12196,13 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
11268
12196
  if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
11269
12197
  let missing1;
11270
12198
  if (data3.eventId === void 0 && (missing1 = "eventId") || data3.leaseVersion === void 0 && (missing1 = "leaseVersion")) {
11271
- validate41.errors = [{ instancePath: instancePath + "/deliveries/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
12199
+ validate46.errors = [{ instancePath: instancePath + "/deliveries/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
11272
12200
  return false;
11273
12201
  } else {
11274
12202
  const _errs12 = errors;
11275
12203
  for (const key1 in data3) {
11276
12204
  if (!(key1 === "eventId" || key1 === "leaseVersion")) {
11277
- validate41.errors = [{ instancePath: instancePath + "/deliveries/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
12205
+ validate46.errors = [{ instancePath: instancePath + "/deliveries/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
11278
12206
  return false;
11279
12207
  break;
11280
12208
  }
@@ -11286,16 +12214,16 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
11286
12214
  if (errors === _errs13) {
11287
12215
  if (typeof data4 === "string") {
11288
12216
  if (func1(data4) > 128) {
11289
- validate41.errors = [{ instancePath: instancePath + "/deliveries/" + i0 + "/eventId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/properties/eventId/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
12217
+ validate46.errors = [{ instancePath: instancePath + "/deliveries/" + i0 + "/eventId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/properties/eventId/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
11290
12218
  return false;
11291
12219
  } else {
11292
12220
  if (func1(data4) < 1) {
11293
- validate41.errors = [{ instancePath: instancePath + "/deliveries/" + i0 + "/eventId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/properties/eventId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
12221
+ validate46.errors = [{ instancePath: instancePath + "/deliveries/" + i0 + "/eventId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/properties/eventId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
11294
12222
  return false;
11295
12223
  }
11296
12224
  }
11297
12225
  } else {
11298
- validate41.errors = [{ instancePath: instancePath + "/deliveries/" + i0 + "/eventId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/properties/eventId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12226
+ validate46.errors = [{ instancePath: instancePath + "/deliveries/" + i0 + "/eventId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/properties/eventId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11299
12227
  return false;
11300
12228
  }
11301
12229
  }
@@ -11308,17 +12236,17 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
11308
12236
  let data5 = data3.leaseVersion;
11309
12237
  const _errs15 = errors;
11310
12238
  if (!(typeof data5 == "number" && (!(data5 % 1) && !isNaN(data5)) && isFinite(data5))) {
11311
- validate41.errors = [{ instancePath: instancePath + "/deliveries/" + i0 + "/leaseVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/properties/leaseVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
12239
+ validate46.errors = [{ instancePath: instancePath + "/deliveries/" + i0 + "/leaseVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/properties/leaseVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
11312
12240
  return false;
11313
12241
  }
11314
12242
  if (errors === _errs15) {
11315
12243
  if (typeof data5 == "number" && isFinite(data5)) {
11316
12244
  if (data5 > 9007199254740991 || isNaN(data5)) {
11317
- validate41.errors = [{ instancePath: instancePath + "/deliveries/" + i0 + "/leaseVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/properties/leaseVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
12245
+ validate46.errors = [{ instancePath: instancePath + "/deliveries/" + i0 + "/leaseVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/properties/leaseVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
11318
12246
  return false;
11319
12247
  } else {
11320
12248
  if (data5 < 1 || isNaN(data5)) {
11321
- validate41.errors = [{ instancePath: instancePath + "/deliveries/" + i0 + "/leaseVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/properties/leaseVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
12249
+ validate46.errors = [{ instancePath: instancePath + "/deliveries/" + i0 + "/leaseVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/properties/leaseVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
11322
12250
  return false;
11323
12251
  }
11324
12252
  }
@@ -11332,7 +12260,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
11332
12260
  }
11333
12261
  }
11334
12262
  } else {
11335
- validate41.errors = [{ instancePath: instancePath + "/deliveries/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12263
+ validate46.errors = [{ instancePath: instancePath + "/deliveries/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11336
12264
  return false;
11337
12265
  }
11338
12266
  }
@@ -11344,7 +12272,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
11344
12272
  }
11345
12273
  }
11346
12274
  } else {
11347
- validate41.errors = [{ instancePath: instancePath + "/deliveries", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
12275
+ validate46.errors = [{ instancePath: instancePath + "/deliveries", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/properties/deliveries/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
11348
12276
  return false;
11349
12277
  }
11350
12278
  }
@@ -11357,19 +12285,19 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
11357
12285
  }
11358
12286
  }
11359
12287
  } else {
11360
- validate41.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12288
+ validate46.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackAckRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11361
12289
  return false;
11362
12290
  }
11363
12291
  }
11364
- validate41.errors = vErrors;
12292
+ validate46.errors = vErrors;
11365
12293
  return errors === 0;
11366
12294
  }
11367
- validate41.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
11368
- function validate42(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
12295
+ validate46.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12296
+ function validate47(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
11369
12297
  ;
11370
12298
  let vErrors = null;
11371
12299
  let errors = 0;
11372
- const evaluated0 = validate42.evaluated;
12300
+ const evaluated0 = validate47.evaluated;
11373
12301
  if (evaluated0.dynamicProps) {
11374
12302
  evaluated0.props = void 0;
11375
12303
  }
@@ -11653,7 +12581,7 @@ function validate42(data, { instancePath = "", parentData, parentDataProperty, r
11653
12581
  vErrors.push(err19);
11654
12582
  }
11655
12583
  errors++;
11656
- validate42.errors = vErrors;
12584
+ validate47.errors = vErrors;
11657
12585
  return false;
11658
12586
  } else {
11659
12587
  errors = _errs1;
@@ -11665,16 +12593,16 @@ function validate42(data, { instancePath = "", parentData, parentDataProperty, r
11665
12593
  }
11666
12594
  }
11667
12595
  }
11668
- validate42.errors = vErrors;
12596
+ validate47.errors = vErrors;
11669
12597
  evaluated0.props = props0;
11670
12598
  return errors === 0;
11671
12599
  }
11672
- validate42.evaluated = { "dynamicProps": true, "dynamicItems": false };
11673
- function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
12600
+ validate47.evaluated = { "dynamicProps": true, "dynamicItems": false };
12601
+ function validate48(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
11674
12602
  ;
11675
12603
  let vErrors = null;
11676
12604
  let errors = 0;
11677
- const evaluated0 = validate43.evaluated;
12605
+ const evaluated0 = validate48.evaluated;
11678
12606
  if (evaluated0.dynamicProps) {
11679
12607
  evaluated0.props = void 0;
11680
12608
  }
@@ -11686,13 +12614,13 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
11686
12614
  if (data && typeof data == "object" && !Array.isArray(data)) {
11687
12615
  let missing0;
11688
12616
  if (data.protocolVersion === void 0 && (missing0 = "protocolVersion") || data.workspaceId === void 0 && (missing0 = "workspaceId") || data.currentSessionId === void 0 && (missing0 = "currentSessionId")) {
11689
- validate43.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
12617
+ validate48.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
11690
12618
  return false;
11691
12619
  } else {
11692
12620
  const _errs3 = errors;
11693
12621
  for (const key0 in data) {
11694
12622
  if (!(key0 === "protocolVersion" || key0 === "workspaceId" || key0 === "currentSessionId")) {
11695
- validate43.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
12623
+ validate48.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
11696
12624
  return false;
11697
12625
  break;
11698
12626
  }
@@ -11702,17 +12630,17 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
11702
12630
  let data0 = data.protocolVersion;
11703
12631
  const _errs4 = errors;
11704
12632
  if (!(typeof data0 == "number" && (!(data0 % 1) && !isNaN(data0)) && isFinite(data0))) {
11705
- validate43.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/properties/protocolVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
12633
+ validate48.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/properties/protocolVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
11706
12634
  return false;
11707
12635
  }
11708
12636
  if (errors === _errs4) {
11709
12637
  if (typeof data0 == "number" && isFinite(data0)) {
11710
12638
  if (data0 > 2 || isNaN(data0)) {
11711
- validate43.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/properties/protocolVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 2 }, message: "must be <= 2" }];
12639
+ validate48.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/properties/protocolVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 2 }, message: "must be <= 2" }];
11712
12640
  return false;
11713
12641
  } else {
11714
12642
  if (data0 < 1 || isNaN(data0)) {
11715
- validate43.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/properties/protocolVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
12643
+ validate48.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/properties/protocolVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
11716
12644
  return false;
11717
12645
  }
11718
12646
  }
@@ -11726,7 +12654,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
11726
12654
  if (data.workspaceId !== void 0) {
11727
12655
  const _errs6 = errors;
11728
12656
  if (typeof data.workspaceId !== "string") {
11729
- validate43.errors = [{ instancePath: instancePath + "/workspaceId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/properties/workspaceId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12657
+ validate48.errors = [{ instancePath: instancePath + "/workspaceId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/properties/workspaceId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11730
12658
  return false;
11731
12659
  }
11732
12660
  var valid1 = _errs6 === errors;
@@ -11737,7 +12665,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
11737
12665
  if (data.currentSessionId !== void 0) {
11738
12666
  const _errs8 = errors;
11739
12667
  if (typeof data.currentSessionId !== "string") {
11740
- validate43.errors = [{ instancePath: instancePath + "/currentSessionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/properties/currentSessionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
12668
+ validate48.errors = [{ instancePath: instancePath + "/currentSessionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/properties/currentSessionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11741
12669
  return false;
11742
12670
  }
11743
12671
  var valid1 = _errs8 === errors;
@@ -11749,21 +12677,21 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
11749
12677
  }
11750
12678
  }
11751
12679
  } else {
11752
- validate43.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
12680
+ validate48.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11753
12681
  return false;
11754
12682
  }
11755
12683
  }
11756
- validate43.errors = vErrors;
12684
+ validate48.errors = vErrors;
11757
12685
  return errors === 0;
11758
12686
  }
11759
- validate43.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
11760
- var schema79 = { "anyOf": [{ "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "empty" }, "hasMore": { "type": "boolean", "const": false } }, "required": ["protocolVersion", "status", "hasMore"], "additionalProperties": {} }, { "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "leased" }, "events": { "minItems": 1, "maxItems": 40, "type": "array", "items": { "type": "object", "properties": { "eventId": { "type": "string", "minLength": 1, "maxLength": 128 }, "leaseVersion": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "decisionId": { "type": "string", "minLength": 1, "maxLength": 128 }, "intent": { "type": "string" }, "webUrl": { "type": "string" }, "kind": { "type": "string", "enum": ["confirm_prompt", "publish_prompt"] } }, "required": ["eventId", "leaseVersion", "shortId", "intent", "webUrl"], "additionalProperties": {} } }, "hasMore": { "type": "boolean" } }, "required": ["protocolVersion", "status", "events", "hasMore"], "additionalProperties": {} }, { "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "unavailable" }, "reason": { "type": "string", "const": "organization_unbound" } }, "required": ["protocolVersion", "status", "reason"], "additionalProperties": {} }], "x-primitive-runtime-refinements": ["feedback_response_version_negotiation", "feedback_publish_prompt_decision_id", "unique_feedback_event_ids"] };
11761
- var pattern4 = new RegExp("^[0-9a-f]{8}$", "u");
11762
- function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
12687
+ validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12688
+ var schema89 = { "anyOf": [{ "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "empty" }, "hasMore": { "type": "boolean", "const": false } }, "required": ["protocolVersion", "status", "hasMore"], "additionalProperties": {} }, { "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "leased" }, "events": { "minItems": 1, "maxItems": 40, "type": "array", "items": { "type": "object", "properties": { "eventId": { "type": "string", "minLength": 1, "maxLength": 128 }, "leaseVersion": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "decisionId": { "type": "string", "minLength": 1, "maxLength": 128 }, "intent": { "type": "string" }, "webUrl": { "type": "string" }, "kind": { "type": "string", "enum": ["confirm_prompt", "publish_prompt"] } }, "required": ["eventId", "leaseVersion", "shortId", "intent", "webUrl"], "additionalProperties": {} } }, "hasMore": { "type": "boolean" } }, "required": ["protocolVersion", "status", "events", "hasMore"], "additionalProperties": {} }, { "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "unavailable" }, "reason": { "type": "string", "const": "organization_unbound" } }, "required": ["protocolVersion", "status", "reason"], "additionalProperties": {} }], "x-primitive-runtime-refinements": ["feedback_response_version_negotiation", "feedback_publish_prompt_decision_id", "unique_feedback_event_ids"] };
12689
+ var pattern13 = new RegExp("^[0-9a-f]{8}$", "u");
12690
+ function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
11763
12691
  ;
11764
12692
  let vErrors = null;
11765
12693
  let errors = 0;
11766
- const evaluated0 = validate44.evaluated;
12694
+ const evaluated0 = validate49.evaluated;
11767
12695
  if (evaluated0.dynamicProps) {
11768
12696
  evaluated0.props = void 0;
11769
12697
  }
@@ -12097,7 +13025,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
12097
13025
  const _errs27 = errors;
12098
13026
  if (errors === _errs27) {
12099
13027
  if (typeof data9 === "string") {
12100
- if (!pattern4.test(data9)) {
13028
+ if (!pattern13.test(data9)) {
12101
13029
  const err24 = { instancePath: instancePath + "/events/" + i0 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' };
12102
13030
  if (vErrors === null) {
12103
13031
  vErrors = [err24];
@@ -12205,7 +13133,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
12205
13133
  errors++;
12206
13134
  }
12207
13135
  if (!(data13 === "confirm_prompt" || data13 === "publish_prompt")) {
12208
- const err32 = { instancePath: instancePath + "/events/" + i0 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/properties/kind/enum", keyword: "enum", params: { allowedValues: schema79.anyOf[1].properties.events.items.properties.kind.enum }, message: "must be equal to one of the allowed values" };
13136
+ const err32 = { instancePath: instancePath + "/events/" + i0 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/properties/kind/enum", keyword: "enum", params: { allowedValues: schema89.anyOf[1].properties.events.items.properties.kind.enum }, message: "must be equal to one of the allowed values" };
12209
13137
  if (vErrors === null) {
12210
13138
  vErrors = [err32];
12211
13139
  } else {
@@ -12424,7 +13352,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
12424
13352
  vErrors.push(err46);
12425
13353
  }
12426
13354
  errors++;
12427
- validate44.errors = vErrors;
13355
+ validate49.errors = vErrors;
12428
13356
  return false;
12429
13357
  } else {
12430
13358
  errors = _errs1;
@@ -12436,16 +13364,16 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
12436
13364
  }
12437
13365
  }
12438
13366
  }
12439
- validate44.errors = vErrors;
13367
+ validate49.errors = vErrors;
12440
13368
  evaluated0.props = props0;
12441
13369
  return errors === 0;
12442
13370
  }
12443
- validate44.evaluated = { "dynamicProps": true, "dynamicItems": false };
12444
- function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
13371
+ validate49.evaluated = { "dynamicProps": true, "dynamicItems": false };
13372
+ function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
12445
13373
  ;
12446
13374
  let vErrors = null;
12447
13375
  let errors = 0;
12448
- const evaluated0 = validate45.evaluated;
13376
+ const evaluated0 = validate50.evaluated;
12449
13377
  if (evaluated0.dynamicProps) {
12450
13378
  evaluated0.props = void 0;
12451
13379
  }
@@ -12653,7 +13581,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
12653
13581
  vErrors.push(err14);
12654
13582
  }
12655
13583
  errors++;
12656
- validate45.errors = vErrors;
13584
+ validate50.errors = vErrors;
12657
13585
  return false;
12658
13586
  } else {
12659
13587
  errors = _errs1;
@@ -12665,16 +13593,16 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
12665
13593
  }
12666
13594
  }
12667
13595
  }
12668
- validate45.errors = vErrors;
13596
+ validate50.errors = vErrors;
12669
13597
  evaluated0.props = props0;
12670
13598
  return errors === 0;
12671
13599
  }
12672
- validate45.evaluated = { "dynamicProps": true, "dynamicItems": false };
12673
- function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
13600
+ validate50.evaluated = { "dynamicProps": true, "dynamicItems": false };
13601
+ function validate51(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
12674
13602
  ;
12675
13603
  let vErrors = null;
12676
13604
  let errors = 0;
12677
- const evaluated0 = validate46.evaluated;
13605
+ const evaluated0 = validate51.evaluated;
12678
13606
  if (evaluated0.dynamicProps) {
12679
13607
  evaluated0.props = void 0;
12680
13608
  }
@@ -13136,7 +14064,7 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
13136
14064
  vErrors.push(err33);
13137
14065
  }
13138
14066
  errors++;
13139
- validate46.errors = vErrors;
14067
+ validate51.errors = vErrors;
13140
14068
  return false;
13141
14069
  } else {
13142
14070
  errors = _errs1;
@@ -13148,18 +14076,18 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
13148
14076
  }
13149
14077
  }
13150
14078
  }
13151
- validate46.errors = vErrors;
14079
+ validate51.errors = vErrors;
13152
14080
  evaluated0.props = props0;
13153
14081
  return errors === 0;
13154
14082
  }
13155
- validate46.evaluated = { "dynamicProps": true, "dynamicItems": false };
13156
- var pattern5 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
13157
- var pattern6 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
13158
- function validate47(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
14083
+ validate51.evaluated = { "dynamicProps": true, "dynamicItems": false };
14084
+ var pattern14 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
14085
+ var pattern15 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
14086
+ function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
13159
14087
  ;
13160
14088
  let vErrors = null;
13161
14089
  let errors = 0;
13162
- const evaluated0 = validate47.evaluated;
14090
+ const evaluated0 = validate52.evaluated;
13163
14091
  if (evaluated0.dynamicProps) {
13164
14092
  evaluated0.props = void 0;
13165
14093
  }
@@ -13171,13 +14099,13 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
13171
14099
  if (data && typeof data == "object" && !Array.isArray(data)) {
13172
14100
  let missing0;
13173
14101
  if (data.protocolVersion === void 0 && (missing0 = "protocolVersion") || data.mode === void 0 && (missing0 = "mode") || data.status === void 0 && (missing0 = "status") || data.intentId === void 0 && (missing0 = "intentId") || data.browserUrl === void 0 && (missing0 = "browserUrl") || data.expiresAt === void 0 && (missing0 = "expiresAt") || data.pollAfterMs === void 0 && (missing0 = "pollAfterMs")) {
13174
- validate47.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
14102
+ validate52.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
13175
14103
  return false;
13176
14104
  } else {
13177
14105
  const _errs2 = errors;
13178
14106
  for (const key0 in data) {
13179
14107
  if (!(key0 === "protocolVersion" || key0 === "mode" || key0 === "status" || key0 === "intentId" || key0 === "browserUrl" || key0 === "expiresAt" || key0 === "pollAfterMs")) {
13180
- validate47.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
14108
+ validate52.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
13181
14109
  return false;
13182
14110
  break;
13183
14111
  }
@@ -13187,11 +14115,11 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
13187
14115
  let data0 = data.protocolVersion;
13188
14116
  const _errs3 = errors;
13189
14117
  if (!(typeof data0 == "number" && isFinite(data0))) {
13190
- validate47.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/protocolVersion/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
14118
+ validate52.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/protocolVersion/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
13191
14119
  return false;
13192
14120
  }
13193
14121
  if (1 !== data0) {
13194
- validate47.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/protocolVersion/const", keyword: "const", params: { allowedValue: 1 }, message: "must be equal to constant" }];
14122
+ validate52.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/protocolVersion/const", keyword: "const", params: { allowedValue: 1 }, message: "must be equal to constant" }];
13195
14123
  return false;
13196
14124
  }
13197
14125
  var valid1 = _errs3 === errors;
@@ -13203,11 +14131,11 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
13203
14131
  let data1 = data.mode;
13204
14132
  const _errs5 = errors;
13205
14133
  if (typeof data1 !== "string") {
13206
- validate47.errors = [{ instancePath: instancePath + "/mode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/mode/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
14134
+ validate52.errors = [{ instancePath: instancePath + "/mode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/mode/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13207
14135
  return false;
13208
14136
  }
13209
14137
  if ("install_intent_v1" !== data1) {
13210
- validate47.errors = [{ instancePath: instancePath + "/mode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/mode/const", keyword: "const", params: { allowedValue: "install_intent_v1" }, message: "must be equal to constant" }];
14138
+ validate52.errors = [{ instancePath: instancePath + "/mode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/mode/const", keyword: "const", params: { allowedValue: "install_intent_v1" }, message: "must be equal to constant" }];
13211
14139
  return false;
13212
14140
  }
13213
14141
  var valid1 = _errs5 === errors;
@@ -13219,11 +14147,11 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
13219
14147
  let data2 = data.status;
13220
14148
  const _errs7 = errors;
13221
14149
  if (typeof data2 !== "string") {
13222
- validate47.errors = [{ instancePath: instancePath + "/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/status/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
14150
+ validate52.errors = [{ instancePath: instancePath + "/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/status/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13223
14151
  return false;
13224
14152
  }
13225
14153
  if ("pending" !== data2) {
13226
- validate47.errors = [{ instancePath: instancePath + "/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/status/const", keyword: "const", params: { allowedValue: "pending" }, message: "must be equal to constant" }];
14154
+ validate52.errors = [{ instancePath: instancePath + "/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/status/const", keyword: "const", params: { allowedValue: "pending" }, message: "must be equal to constant" }];
13227
14155
  return false;
13228
14156
  }
13229
14157
  var valid1 = _errs7 === errors;
@@ -13236,12 +14164,12 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
13236
14164
  const _errs9 = errors;
13237
14165
  if (errors === _errs9) {
13238
14166
  if (typeof data3 === "string") {
13239
- if (!pattern5.test(data3)) {
13240
- validate47.errors = [{ instancePath: instancePath + "/intentId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/intentId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9]{1,128}$" }, message: 'must match pattern "^[A-Za-z0-9]{1,128}$"' }];
14167
+ if (!pattern14.test(data3)) {
14168
+ validate52.errors = [{ instancePath: instancePath + "/intentId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/intentId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9]{1,128}$" }, message: 'must match pattern "^[A-Za-z0-9]{1,128}$"' }];
13241
14169
  return false;
13242
14170
  }
13243
14171
  } else {
13244
- validate47.errors = [{ instancePath: instancePath + "/intentId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/intentId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
14172
+ validate52.errors = [{ instancePath: instancePath + "/intentId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/intentId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13245
14173
  return false;
13246
14174
  }
13247
14175
  }
@@ -13255,12 +14183,12 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
13255
14183
  const _errs11 = errors;
13256
14184
  if (errors === _errs11) {
13257
14185
  if (typeof data4 === "string") {
13258
- if (!pattern6.test(data4)) {
13259
- validate47.errors = [{ instancePath: instancePath + "/browserUrl", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/browserUrl/pattern", keyword: "pattern", params: { pattern: "^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$" }, message: 'must match pattern "^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$"' }];
14186
+ if (!pattern15.test(data4)) {
14187
+ validate52.errors = [{ instancePath: instancePath + "/browserUrl", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/browserUrl/pattern", keyword: "pattern", params: { pattern: "^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$" }, message: 'must match pattern "^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$"' }];
13260
14188
  return false;
13261
14189
  }
13262
14190
  } else {
13263
- validate47.errors = [{ instancePath: instancePath + "/browserUrl", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/browserUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
14191
+ validate52.errors = [{ instancePath: instancePath + "/browserUrl", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/browserUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13264
14192
  return false;
13265
14193
  }
13266
14194
  }
@@ -13273,17 +14201,17 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
13273
14201
  let data5 = data.expiresAt;
13274
14202
  const _errs13 = errors;
13275
14203
  if (!(typeof data5 == "number" && (!(data5 % 1) && !isNaN(data5)) && isFinite(data5))) {
13276
- validate47.errors = [{ instancePath: instancePath + "/expiresAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/expiresAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
14204
+ validate52.errors = [{ instancePath: instancePath + "/expiresAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/expiresAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
13277
14205
  return false;
13278
14206
  }
13279
14207
  if (errors === _errs13) {
13280
14208
  if (typeof data5 == "number" && isFinite(data5)) {
13281
14209
  if (data5 > 9007199254740991 || isNaN(data5)) {
13282
- validate47.errors = [{ instancePath: instancePath + "/expiresAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/expiresAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
14210
+ validate52.errors = [{ instancePath: instancePath + "/expiresAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/expiresAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
13283
14211
  return false;
13284
14212
  } else {
13285
14213
  if (data5 < 0 || isNaN(data5)) {
13286
- validate47.errors = [{ instancePath: instancePath + "/expiresAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/expiresAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
14214
+ validate52.errors = [{ instancePath: instancePath + "/expiresAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/expiresAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
13287
14215
  return false;
13288
14216
  }
13289
14217
  }
@@ -13298,11 +14226,11 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
13298
14226
  let data6 = data.pollAfterMs;
13299
14227
  const _errs15 = errors;
13300
14228
  if (!(typeof data6 == "number" && isFinite(data6))) {
13301
- validate47.errors = [{ instancePath: instancePath + "/pollAfterMs", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/pollAfterMs/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
14229
+ validate52.errors = [{ instancePath: instancePath + "/pollAfterMs", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/pollAfterMs/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
13302
14230
  return false;
13303
14231
  }
13304
14232
  if (1e3 !== data6) {
13305
- validate47.errors = [{ instancePath: instancePath + "/pollAfterMs", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/pollAfterMs/const", keyword: "const", params: { allowedValue: 1e3 }, message: "must be equal to constant" }];
14233
+ validate52.errors = [{ instancePath: instancePath + "/pollAfterMs", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/properties/pollAfterMs/const", keyword: "const", params: { allowedValue: 1e3 }, message: "must be equal to constant" }];
13306
14234
  return false;
13307
14235
  }
13308
14236
  var valid1 = _errs15 === errors;
@@ -13318,19 +14246,19 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
13318
14246
  }
13319
14247
  }
13320
14248
  } else {
13321
- validate47.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
14249
+ validate52.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStartResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
13322
14250
  return false;
13323
14251
  }
13324
14252
  }
13325
- validate47.errors = vErrors;
14253
+ validate52.errors = vErrors;
13326
14254
  return errors === 0;
13327
14255
  }
13328
- validate47.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
13329
- function validate48(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
14256
+ validate52.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
14257
+ function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
13330
14258
  ;
13331
14259
  let vErrors = null;
13332
14260
  let errors = 0;
13333
- const evaluated0 = validate48.evaluated;
14261
+ const evaluated0 = validate53.evaluated;
13334
14262
  if (evaluated0.dynamicProps) {
13335
14263
  evaluated0.props = void 0;
13336
14264
  }
@@ -13613,7 +14541,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
13613
14541
  vErrors.push(err20);
13614
14542
  }
13615
14543
  errors++;
13616
- validate48.errors = vErrors;
14544
+ validate53.errors = vErrors;
13617
14545
  return false;
13618
14546
  } else {
13619
14547
  errors = _errs1;
@@ -13625,16 +14553,16 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
13625
14553
  }
13626
14554
  }
13627
14555
  }
13628
- validate48.errors = vErrors;
14556
+ validate53.errors = vErrors;
13629
14557
  evaluated0.props = props0;
13630
14558
  return errors === 0;
13631
14559
  }
13632
- validate48.evaluated = { "dynamicProps": true, "dynamicItems": false };
13633
- function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
14560
+ validate53.evaluated = { "dynamicProps": true, "dynamicItems": false };
14561
+ function validate54(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
13634
14562
  ;
13635
14563
  let vErrors = null;
13636
14564
  let errors = 0;
13637
- const evaluated0 = validate49.evaluated;
14565
+ const evaluated0 = validate54.evaluated;
13638
14566
  if (evaluated0.dynamicProps) {
13639
14567
  evaluated0.props = void 0;
13640
14568
  }
@@ -13646,13 +14574,13 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
13646
14574
  if (data && typeof data == "object" && !Array.isArray(data)) {
13647
14575
  let missing0;
13648
14576
  if (data.intentId === void 0 && (missing0 = "intentId")) {
13649
- validate49.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
14577
+ validate54.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
13650
14578
  return false;
13651
14579
  } else {
13652
14580
  const _errs2 = errors;
13653
14581
  for (const key0 in data) {
13654
14582
  if (!(key0 === "intentId")) {
13655
- validate49.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
14583
+ validate54.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
13656
14584
  return false;
13657
14585
  break;
13658
14586
  }
@@ -13663,12 +14591,12 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
13663
14591
  const _errs3 = errors;
13664
14592
  if (errors === _errs3) {
13665
14593
  if (typeof data0 === "string") {
13666
- if (!pattern5.test(data0)) {
13667
- validate49.errors = [{ instancePath: instancePath + "/intentId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusRequest/properties/intentId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9]{1,128}$" }, message: 'must match pattern "^[A-Za-z0-9]{1,128}$"' }];
14594
+ if (!pattern14.test(data0)) {
14595
+ validate54.errors = [{ instancePath: instancePath + "/intentId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusRequest/properties/intentId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9]{1,128}$" }, message: 'must match pattern "^[A-Za-z0-9]{1,128}$"' }];
13668
14596
  return false;
13669
14597
  }
13670
14598
  } else {
13671
- validate49.errors = [{ instancePath: instancePath + "/intentId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusRequest/properties/intentId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
14599
+ validate54.errors = [{ instancePath: instancePath + "/intentId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusRequest/properties/intentId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
13672
14600
  return false;
13673
14601
  }
13674
14602
  }
@@ -13676,21 +14604,20 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
13676
14604
  }
13677
14605
  }
13678
14606
  } else {
13679
- validate49.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
14607
+ validate54.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
13680
14608
  return false;
13681
14609
  }
13682
14610
  }
13683
- validate49.errors = vErrors;
14611
+ validate54.errors = vErrors;
13684
14612
  return errors === 0;
13685
14613
  }
13686
- validate49.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
13687
- var schema91 = { "anyOf": [{ "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 1 }, "mode": { "type": "string", "const": "install_intent_v1" }, "found": { "type": "boolean", "const": true }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "const": "pending" } }, "required": ["protocolVersion", "mode", "found", "expiresAt", "status"], "additionalProperties": false }, { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 1 }, "mode": { "type": "string", "const": "install_intent_v1" }, "found": { "type": "boolean", "const": true }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "const": "claimed" }, "leaseExpiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["protocolVersion", "mode", "found", "expiresAt", "status", "leaseExpiresAt"], "additionalProperties": false, "x-primitive-runtime-refinements": ["claim_lease_within_intent_ttl"] }, { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 1 }, "mode": { "type": "string", "const": "install_intent_v1" }, "found": { "type": "boolean", "const": true }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "const": "consumed" }, "completedAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "repositoryCount": { "type": "integer", "minimum": 1, "maximum": 256 }, "adminRepositoryCount": { "type": "integer", "minimum": 1, "maximum": 128 }, "nonAdminRepositoryCount": { "type": "integer", "minimum": 0, "maximum": 256 } }, "required": ["protocolVersion", "mode", "found", "expiresAt", "status", "completedAt", "repositoryCount", "adminRepositoryCount", "nonAdminRepositoryCount"], "additionalProperties": false, "x-primitive-runtime-refinements": ["repository_count_partition", "completion_within_intent_ttl"] }, { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 1 }, "mode": { "type": "string", "const": "install_intent_v1" }, "found": { "type": "boolean", "const": true }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "const": "expired" }, "closedAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["protocolVersion", "mode", "found", "expiresAt", "status", "closedAt"], "additionalProperties": false, "x-primitive-runtime-refinements": ["expiry_not_before_intent_ttl"] }, { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 1 }, "mode": { "type": "string", "const": "install_intent_v1" }, "found": { "type": "boolean", "const": true }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "const": "cancelled" }, "closedAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["protocolVersion", "mode", "found", "expiresAt", "status", "closedAt"], "additionalProperties": false, "x-primitive-runtime-refinements": ["cancellation_within_intent_ttl"] }, { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 1 }, "mode": { "type": "string", "const": "install_intent_v1" }, "found": { "type": "boolean", "const": true }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "const": "failed_terminal" }, "closedAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "failureCode": { "type": "string", "enum": ["claim_lease_expired", "authority_changed", "oauth_exchange_failed", "installation_not_administered", "repository_enumeration_failed", "repository_bound_exceeded", "installation_changed", "repository_identity_migration_required", "proof_commit_failed"] } }, "required": ["protocolVersion", "mode", "found", "expiresAt", "status", "closedAt", "failureCode"], "additionalProperties": false, "x-primitive-runtime-refinements": ["terminal_failure_within_intent_ttl_except_claim_lease_expired"] }] };
13688
- var func40 = Object.prototype.hasOwnProperty;
13689
- function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
14614
+ validate54.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
14615
+ var schema101 = { "anyOf": [{ "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 1 }, "mode": { "type": "string", "const": "install_intent_v1" }, "found": { "type": "boolean", "const": true }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "const": "pending" } }, "required": ["protocolVersion", "mode", "found", "expiresAt", "status"], "additionalProperties": false }, { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 1 }, "mode": { "type": "string", "const": "install_intent_v1" }, "found": { "type": "boolean", "const": true }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "const": "claimed" }, "leaseExpiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["protocolVersion", "mode", "found", "expiresAt", "status", "leaseExpiresAt"], "additionalProperties": false, "x-primitive-runtime-refinements": ["claim_lease_within_intent_ttl"] }, { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 1 }, "mode": { "type": "string", "const": "install_intent_v1" }, "found": { "type": "boolean", "const": true }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "const": "consumed" }, "completedAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "repositoryCount": { "type": "integer", "minimum": 1, "maximum": 256 }, "adminRepositoryCount": { "type": "integer", "minimum": 1, "maximum": 128 }, "nonAdminRepositoryCount": { "type": "integer", "minimum": 0, "maximum": 256 } }, "required": ["protocolVersion", "mode", "found", "expiresAt", "status", "completedAt", "repositoryCount", "adminRepositoryCount", "nonAdminRepositoryCount"], "additionalProperties": false, "x-primitive-runtime-refinements": ["repository_count_partition", "completion_within_intent_ttl"] }, { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 1 }, "mode": { "type": "string", "const": "install_intent_v1" }, "found": { "type": "boolean", "const": true }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "const": "expired" }, "closedAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["protocolVersion", "mode", "found", "expiresAt", "status", "closedAt"], "additionalProperties": false, "x-primitive-runtime-refinements": ["expiry_not_before_intent_ttl"] }, { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 1 }, "mode": { "type": "string", "const": "install_intent_v1" }, "found": { "type": "boolean", "const": true }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "const": "cancelled" }, "closedAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["protocolVersion", "mode", "found", "expiresAt", "status", "closedAt"], "additionalProperties": false, "x-primitive-runtime-refinements": ["cancellation_within_intent_ttl"] }, { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 1 }, "mode": { "type": "string", "const": "install_intent_v1" }, "found": { "type": "boolean", "const": true }, "expiresAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "const": "failed_terminal" }, "closedAt": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "failureCode": { "type": "string", "enum": ["claim_lease_expired", "authority_changed", "oauth_exchange_failed", "installation_not_administered", "repository_enumeration_failed", "repository_bound_exceeded", "installation_changed", "repository_identity_migration_required", "proof_commit_failed"] } }, "required": ["protocolVersion", "mode", "found", "expiresAt", "status", "closedAt", "failureCode"], "additionalProperties": false, "x-primitive-runtime-refinements": ["terminal_failure_within_intent_ttl_except_claim_lease_expired"] }] };
14616
+ function validate55(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
13690
14617
  ;
13691
14618
  let vErrors = null;
13692
14619
  let errors = 0;
13693
- const evaluated0 = validate50.evaluated;
14620
+ const evaluated0 = validate55.evaluated;
13694
14621
  if (evaluated0.dynamicProps) {
13695
14622
  evaluated0.props = void 0;
13696
14623
  }
@@ -14139,7 +15066,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
14139
15066
  } else {
14140
15067
  const _errs34 = errors;
14141
15068
  for (const key2 in data) {
14142
- if (!func40.call(schema91.anyOf[2].properties, key2)) {
15069
+ if (!func34.call(schema101.anyOf[2].properties, key2)) {
14143
15070
  const err32 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusResponse/anyOf/2/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
14144
15071
  if (vErrors === null) {
14145
15072
  vErrors = [err32];
@@ -15173,7 +16100,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
15173
16100
  errors++;
15174
16101
  }
15175
16102
  if (!(data38 === "claim_lease_expired" || data38 === "authority_changed" || data38 === "oauth_exchange_failed" || data38 === "installation_not_administered" || data38 === "repository_enumeration_failed" || data38 === "repository_bound_exceeded" || data38 === "installation_changed" || data38 === "repository_identity_migration_required" || data38 === "proof_commit_failed")) {
15176
- const err108 = { instancePath: instancePath + "/failureCode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusResponse/anyOf/5/properties/failureCode/enum", keyword: "enum", params: { allowedValues: schema91.anyOf[5].properties.failureCode.enum }, message: "must be equal to one of the allowed values" };
16103
+ const err108 = { instancePath: instancePath + "/failureCode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/GitHubInstallIntentStatusResponse/anyOf/5/properties/failureCode/enum", keyword: "enum", params: { allowedValues: schema101.anyOf[5].properties.failureCode.enum }, message: "must be equal to one of the allowed values" };
15177
16104
  if (vErrors === null) {
15178
16105
  vErrors = [err108];
15179
16106
  } else {
@@ -15218,7 +16145,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
15218
16145
  vErrors.push(err110);
15219
16146
  }
15220
16147
  errors++;
15221
- validate50.errors = vErrors;
16148
+ validate55.errors = vErrors;
15222
16149
  return false;
15223
16150
  } else {
15224
16151
  errors = _errs1;
@@ -15230,19 +16157,19 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
15230
16157
  }
15231
16158
  }
15232
16159
  }
15233
- validate50.errors = vErrors;
16160
+ validate55.errors = vErrors;
15234
16161
  evaluated0.props = props0;
15235
16162
  return errors === 0;
15236
16163
  }
15237
- validate50.evaluated = { "dynamicProps": true, "dynamicItems": false };
15238
- var isMoveIngestRequest = validate51;
15239
- 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": {} };
15240
- var pattern8 = new RegExp("^[A-Za-z0-9_-]+$", "u");
15241
- function validate51(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
16164
+ validate55.evaluated = { "dynamicProps": true, "dynamicItems": false };
16165
+ var isMoveIngestRequest = validate56;
16166
+ var schema103 = { "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": {} };
16167
+ var pattern17 = new RegExp("^[A-Za-z0-9_-]+$", "u");
16168
+ function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
15242
16169
  ;
15243
16170
  let vErrors = null;
15244
16171
  let errors = 0;
15245
- const evaluated0 = validate51.evaluated;
16172
+ const evaluated0 = validate56.evaluated;
15246
16173
  if (evaluated0.dynamicProps) {
15247
16174
  evaluated0.props = void 0;
15248
16175
  }
@@ -15254,7 +16181,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
15254
16181
  if (data && typeof data == "object" && !Array.isArray(data)) {
15255
16182
  let missing0;
15256
16183
  if (data.batch === void 0 && (missing0 = "batch")) {
15257
- validate51.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
16184
+ validate56.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
15258
16185
  return false;
15259
16186
  } else {
15260
16187
  if (data.batch !== void 0) {
@@ -15598,7 +16525,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
15598
16525
  }
15599
16526
  errors++;
15600
16527
  } else {
15601
- if (!pattern8.test(data11)) {
16528
+ if (!pattern17.test(data11)) {
15602
16529
  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_-]+$"' };
15603
16530
  if (vErrors === null) {
15604
16531
  vErrors = [err22];
@@ -15637,7 +16564,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
15637
16564
  errors++;
15638
16565
  }
15639
16566
  if (!(data12 === "workos" || data12 === "service_token")) {
15640
- 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" };
16567
+ 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: schema103.properties.batch.items.anyOf[0].properties.captureAuthorityKind.enum }, message: "must be equal to one of the allowed values" };
15641
16568
  if (vErrors === null) {
15642
16569
  vErrors = [err25];
15643
16570
  } else {
@@ -15703,7 +16630,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
15703
16630
  errors++;
15704
16631
  }
15705
16632
  if (!(data14 === "claude_code" || data14 === "codex" || data14 === "cursor" || data14 === "hermes")) {
15706
- 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" };
16633
+ 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: schema103.properties.batch.items.anyOf[0].properties.producer.enum }, message: "must be equal to one of the allowed values" };
15707
16634
  if (vErrors === null) {
15708
16635
  vErrors = [err30];
15709
16636
  } else {
@@ -15729,7 +16656,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
15729
16656
  errors++;
15730
16657
  }
15731
16658
  if (!(data15 === "succeeded" || data15 === "returned" || data15 === "failed" || data15 === "interrupted" || data15 === "prevented" || data15 === "unknown")) {
15732
- 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" };
16659
+ 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: schema103.properties.batch.items.anyOf[0].properties.toolOutcome.enum }, message: "must be equal to one of the allowed values" };
15733
16660
  if (vErrors === null) {
15734
16661
  vErrors = [err32];
15735
16662
  } else {
@@ -16123,7 +17050,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
16123
17050
  }
16124
17051
  errors++;
16125
17052
  } else {
16126
- if (!pattern8.test(data26)) {
17053
+ if (!pattern17.test(data26)) {
16127
17054
  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_-]+$"' };
16128
17055
  if (vErrors === null) {
16129
17056
  vErrors = [err58];
@@ -16162,7 +17089,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
16162
17089
  errors++;
16163
17090
  }
16164
17091
  if (!(data27 === "workos" || data27 === "service_token")) {
16165
- 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" };
17092
+ 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: schema103.properties.batch.items.anyOf[1].properties.captureAuthorityKind.enum }, message: "must be equal to one of the allowed values" };
16166
17093
  if (vErrors === null) {
16167
17094
  vErrors = [err61];
16168
17095
  } else {
@@ -16228,7 +17155,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
16228
17155
  errors++;
16229
17156
  }
16230
17157
  if (!(data29 === "claude_code" || data29 === "codex" || data29 === "cursor" || data29 === "hermes")) {
16231
- 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" };
17158
+ 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: schema103.properties.batch.items.anyOf[1].properties.producer.enum }, message: "must be equal to one of the allowed values" };
16232
17159
  if (vErrors === null) {
16233
17160
  vErrors = [err66];
16234
17161
  } else {
@@ -16254,7 +17181,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
16254
17181
  errors++;
16255
17182
  }
16256
17183
  if (!(data30 === "succeeded" || data30 === "returned" || data30 === "failed" || data30 === "interrupted" || data30 === "prevented" || data30 === "unknown")) {
16257
- 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" };
17184
+ 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: schema103.properties.batch.items.anyOf[1].properties.toolOutcome.enum }, message: "must be equal to one of the allowed values" };
16258
17185
  if (vErrors === null) {
16259
17186
  vErrors = [err68];
16260
17187
  } else {
@@ -16332,7 +17259,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
16332
17259
  vErrors.push(err72);
16333
17260
  }
16334
17261
  errors++;
16335
- validate51.errors = vErrors;
17262
+ validate56.errors = vErrors;
16336
17263
  return false;
16337
17264
  } else {
16338
17265
  errors = _errs6;
@@ -16350,31 +17277,31 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
16350
17277
  }
16351
17278
  }
16352
17279
  } else {
16353
- validate51.errors = [{ instancePath: instancePath + "/batch", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
17280
+ validate56.errors = [{ instancePath: instancePath + "/batch", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/properties/batch/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
16354
17281
  return false;
16355
17282
  }
16356
17283
  }
16357
17284
  }
16358
17285
  }
16359
17286
  } else {
16360
- validate51.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
17287
+ validate56.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/MoveIngestRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
16361
17288
  return false;
16362
17289
  }
16363
17290
  }
16364
- validate51.errors = vErrors;
17291
+ validate56.errors = vErrors;
16365
17292
  return errors === 0;
16366
17293
  }
16367
- validate51.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
16368
- var schema95 = { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 3 }, "agent": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] }, "sessionId": { "type": "string", "pattern": "^[A-Za-z0-9._:-]{1,128}$" }, "invocationId": { "type": "string", "pattern": "^[A-Za-z0-9._:-]{1,128}$" }, "repoSyncId": { "type": "string", "pattern": "^[A-Za-z0-9]{1,64}$" }, "paths": { "maxItems": 32, "type": "array", "items": { "type": "string" } }, "coverage": { "type": "string", "enum": ["complete", "unverified"] }, "branch": { "type": "string", "maxLength": 255, "pattern": "^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$" }, "clientMode": { "type": "string", "enum": ["block", "warn"] }, "clientVersion": { "type": "string", "maxLength": 32, "pattern": "^[A-Za-z0-9][A-Za-z0-9._+-]*$" }, "proposal": { "type": "string" } }, "required": ["protocolVersion", "agent", "sessionId", "invocationId", "repoSyncId", "paths", "coverage", "proposal"], "additionalProperties": false, "x-primitive-runtime-refinements": ["canonical_repository_paths", "unique_repository_paths", "complete_coverage_requires_path", "proposal_utf8_max_6144", "degrade_invalid_rollout_fields", "degrade_invalid_branch"] };
16369
- var pattern10 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
16370
- var pattern12 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
16371
- var pattern13 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
16372
- var pattern14 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
16373
- function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17294
+ validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
17295
+ var schema105 = { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 3 }, "agent": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] }, "sessionId": { "type": "string", "pattern": "^[A-Za-z0-9._:-]{1,128}$" }, "invocationId": { "type": "string", "pattern": "^[A-Za-z0-9._:-]{1,128}$" }, "repoSyncId": { "type": "string", "pattern": "^[A-Za-z0-9]{1,64}$" }, "paths": { "maxItems": 32, "type": "array", "items": { "type": "string" } }, "coverage": { "type": "string", "enum": ["complete", "unverified"] }, "branch": { "type": "string", "maxLength": 255, "pattern": "^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$" }, "clientMode": { "type": "string", "enum": ["block", "warn"] }, "clientVersion": { "type": "string", "maxLength": 32, "pattern": "^[A-Za-z0-9][A-Za-z0-9._+-]*$" }, "proposal": { "type": "string" } }, "required": ["protocolVersion", "agent", "sessionId", "invocationId", "repoSyncId", "paths", "coverage", "proposal"], "additionalProperties": false, "x-primitive-runtime-refinements": ["canonical_repository_paths", "unique_repository_paths", "complete_coverage_requires_path", "proposal_utf8_max_6144", "degrade_invalid_rollout_fields", "degrade_invalid_branch"] };
17296
+ var pattern19 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
17297
+ var pattern21 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
17298
+ var pattern22 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
17299
+ var pattern23 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
17300
+ function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
16374
17301
  ;
16375
17302
  let vErrors = null;
16376
17303
  let errors = 0;
16377
- const evaluated0 = validate52.evaluated;
17304
+ const evaluated0 = validate57.evaluated;
16378
17305
  if (evaluated0.dynamicProps) {
16379
17306
  evaluated0.props = void 0;
16380
17307
  }
@@ -16386,13 +17313,13 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
16386
17313
  if (data && typeof data == "object" && !Array.isArray(data)) {
16387
17314
  let missing0;
16388
17315
  if (data.protocolVersion === void 0 && (missing0 = "protocolVersion") || data.agent === void 0 && (missing0 = "agent") || data.sessionId === void 0 && (missing0 = "sessionId") || data.invocationId === void 0 && (missing0 = "invocationId") || data.repoSyncId === void 0 && (missing0 = "repoSyncId") || data.paths === void 0 && (missing0 = "paths") || data.coverage === void 0 && (missing0 = "coverage") || data.proposal === void 0 && (missing0 = "proposal")) {
16389
- validate52.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
17316
+ validate57.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
16390
17317
  return false;
16391
17318
  } else {
16392
17319
  const _errs3 = errors;
16393
17320
  for (const key0 in data) {
16394
- if (!func40.call(schema95.properties, key0)) {
16395
- validate52.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
17321
+ if (!func34.call(schema105.properties, key0)) {
17322
+ validate57.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
16396
17323
  return false;
16397
17324
  break;
16398
17325
  }
@@ -16402,11 +17329,11 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
16402
17329
  let data0 = data.protocolVersion;
16403
17330
  const _errs4 = errors;
16404
17331
  if (!(typeof data0 == "number" && isFinite(data0))) {
16405
- validate52.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/protocolVersion/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
17332
+ validate57.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/protocolVersion/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
16406
17333
  return false;
16407
17334
  }
16408
17335
  if (3 !== data0) {
16409
- validate52.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/protocolVersion/const", keyword: "const", params: { allowedValue: 3 }, message: "must be equal to constant" }];
17336
+ validate57.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/protocolVersion/const", keyword: "const", params: { allowedValue: 3 }, message: "must be equal to constant" }];
16410
17337
  return false;
16411
17338
  }
16412
17339
  var valid1 = _errs4 === errors;
@@ -16418,11 +17345,11 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
16418
17345
  let data1 = data.agent;
16419
17346
  const _errs6 = errors;
16420
17347
  if (typeof data1 !== "string") {
16421
- validate52.errors = [{ instancePath: instancePath + "/agent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/agent/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17348
+ validate57.errors = [{ instancePath: instancePath + "/agent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/agent/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16422
17349
  return false;
16423
17350
  }
16424
17351
  if (!(data1 === "claude_code" || data1 === "codex" || data1 === "cursor" || data1 === "hermes")) {
16425
- validate52.errors = [{ instancePath: instancePath + "/agent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/agent/enum", keyword: "enum", params: { allowedValues: schema95.properties.agent.enum }, message: "must be equal to one of the allowed values" }];
17352
+ validate57.errors = [{ instancePath: instancePath + "/agent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/agent/enum", keyword: "enum", params: { allowedValues: schema105.properties.agent.enum }, message: "must be equal to one of the allowed values" }];
16426
17353
  return false;
16427
17354
  }
16428
17355
  var valid1 = _errs6 === errors;
@@ -16435,12 +17362,12 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
16435
17362
  const _errs8 = errors;
16436
17363
  if (errors === _errs8) {
16437
17364
  if (typeof data2 === "string") {
16438
- if (!pattern10.test(data2)) {
16439
- validate52.errors = [{ instancePath: instancePath + "/sessionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/sessionId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9._:-]{1,128}$" }, message: 'must match pattern "^[A-Za-z0-9._:-]{1,128}$"' }];
17365
+ if (!pattern19.test(data2)) {
17366
+ validate57.errors = [{ instancePath: instancePath + "/sessionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/sessionId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9._:-]{1,128}$" }, message: 'must match pattern "^[A-Za-z0-9._:-]{1,128}$"' }];
16440
17367
  return false;
16441
17368
  }
16442
17369
  } else {
16443
- validate52.errors = [{ instancePath: instancePath + "/sessionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/sessionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17370
+ validate57.errors = [{ instancePath: instancePath + "/sessionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/sessionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16444
17371
  return false;
16445
17372
  }
16446
17373
  }
@@ -16454,12 +17381,12 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
16454
17381
  const _errs10 = errors;
16455
17382
  if (errors === _errs10) {
16456
17383
  if (typeof data3 === "string") {
16457
- if (!pattern10.test(data3)) {
16458
- validate52.errors = [{ instancePath: instancePath + "/invocationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/invocationId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9._:-]{1,128}$" }, message: 'must match pattern "^[A-Za-z0-9._:-]{1,128}$"' }];
17384
+ if (!pattern19.test(data3)) {
17385
+ validate57.errors = [{ instancePath: instancePath + "/invocationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/invocationId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9._:-]{1,128}$" }, message: 'must match pattern "^[A-Za-z0-9._:-]{1,128}$"' }];
16459
17386
  return false;
16460
17387
  }
16461
17388
  } else {
16462
- validate52.errors = [{ instancePath: instancePath + "/invocationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/invocationId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17389
+ validate57.errors = [{ instancePath: instancePath + "/invocationId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/invocationId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16463
17390
  return false;
16464
17391
  }
16465
17392
  }
@@ -16473,12 +17400,12 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
16473
17400
  const _errs12 = errors;
16474
17401
  if (errors === _errs12) {
16475
17402
  if (typeof data4 === "string") {
16476
- if (!pattern12.test(data4)) {
16477
- validate52.errors = [{ instancePath: instancePath + "/repoSyncId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/repoSyncId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9]{1,64}$" }, message: 'must match pattern "^[A-Za-z0-9]{1,64}$"' }];
17403
+ if (!pattern21.test(data4)) {
17404
+ validate57.errors = [{ instancePath: instancePath + "/repoSyncId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/repoSyncId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9]{1,64}$" }, message: 'must match pattern "^[A-Za-z0-9]{1,64}$"' }];
16478
17405
  return false;
16479
17406
  }
16480
17407
  } else {
16481
- validate52.errors = [{ instancePath: instancePath + "/repoSyncId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/repoSyncId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17408
+ validate57.errors = [{ instancePath: instancePath + "/repoSyncId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/repoSyncId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16482
17409
  return false;
16483
17410
  }
16484
17411
  }
@@ -16493,7 +17420,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
16493
17420
  if (errors === _errs14) {
16494
17421
  if (Array.isArray(data5)) {
16495
17422
  if (data5.length > 32) {
16496
- validate52.errors = [{ instancePath: instancePath + "/paths", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/paths/maxItems", keyword: "maxItems", params: { limit: 32 }, message: "must NOT have more than 32 items" }];
17423
+ validate57.errors = [{ instancePath: instancePath + "/paths", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/paths/maxItems", keyword: "maxItems", params: { limit: 32 }, message: "must NOT have more than 32 items" }];
16497
17424
  return false;
16498
17425
  } else {
16499
17426
  var valid2 = true;
@@ -16501,7 +17428,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
16501
17428
  for (let i0 = 0; i0 < len0; i0++) {
16502
17429
  const _errs16 = errors;
16503
17430
  if (typeof data5[i0] !== "string") {
16504
- validate52.errors = [{ instancePath: instancePath + "/paths/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/paths/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17431
+ validate57.errors = [{ instancePath: instancePath + "/paths/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/paths/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16505
17432
  return false;
16506
17433
  }
16507
17434
  var valid2 = _errs16 === errors;
@@ -16511,7 +17438,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
16511
17438
  }
16512
17439
  }
16513
17440
  } else {
16514
- validate52.errors = [{ instancePath: instancePath + "/paths", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/paths/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
17441
+ validate57.errors = [{ instancePath: instancePath + "/paths", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/paths/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
16515
17442
  return false;
16516
17443
  }
16517
17444
  }
@@ -16524,11 +17451,11 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
16524
17451
  let data7 = data.coverage;
16525
17452
  const _errs18 = errors;
16526
17453
  if (typeof data7 !== "string") {
16527
- validate52.errors = [{ instancePath: instancePath + "/coverage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/coverage/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17454
+ validate57.errors = [{ instancePath: instancePath + "/coverage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/coverage/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16528
17455
  return false;
16529
17456
  }
16530
17457
  if (!(data7 === "complete" || data7 === "unverified")) {
16531
- validate52.errors = [{ instancePath: instancePath + "/coverage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/coverage/enum", keyword: "enum", params: { allowedValues: schema95.properties.coverage.enum }, message: "must be equal to one of the allowed values" }];
17458
+ validate57.errors = [{ instancePath: instancePath + "/coverage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/coverage/enum", keyword: "enum", params: { allowedValues: schema105.properties.coverage.enum }, message: "must be equal to one of the allowed values" }];
16532
17459
  return false;
16533
17460
  }
16534
17461
  var valid1 = _errs18 === errors;
@@ -16542,16 +17469,16 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
16542
17469
  if (errors === _errs20) {
16543
17470
  if (typeof data8 === "string") {
16544
17471
  if (func1(data8) > 255) {
16545
- validate52.errors = [{ instancePath: instancePath + "/branch", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/branch/maxLength", keyword: "maxLength", params: { limit: 255 }, message: "must NOT have more than 255 characters" }];
17472
+ validate57.errors = [{ instancePath: instancePath + "/branch", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/branch/maxLength", keyword: "maxLength", params: { limit: 255 }, message: "must NOT have more than 255 characters" }];
16546
17473
  return false;
16547
17474
  } else {
16548
- if (!pattern13.test(data8)) {
16549
- validate52.errors = [{ instancePath: instancePath + "/branch", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/branch/pattern", keyword: "pattern", params: { pattern: "^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$" }, message: 'must match pattern "^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$"' }];
17475
+ if (!pattern22.test(data8)) {
17476
+ validate57.errors = [{ instancePath: instancePath + "/branch", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/branch/pattern", keyword: "pattern", params: { pattern: "^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$" }, message: 'must match pattern "^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$"' }];
16550
17477
  return false;
16551
17478
  }
16552
17479
  }
16553
17480
  } else {
16554
- validate52.errors = [{ instancePath: instancePath + "/branch", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/branch/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17481
+ validate57.errors = [{ instancePath: instancePath + "/branch", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/branch/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16555
17482
  return false;
16556
17483
  }
16557
17484
  }
@@ -16564,11 +17491,11 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
16564
17491
  let data9 = data.clientMode;
16565
17492
  const _errs22 = errors;
16566
17493
  if (typeof data9 !== "string") {
16567
- validate52.errors = [{ instancePath: instancePath + "/clientMode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/clientMode/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17494
+ validate57.errors = [{ instancePath: instancePath + "/clientMode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/clientMode/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16568
17495
  return false;
16569
17496
  }
16570
17497
  if (!(data9 === "block" || data9 === "warn")) {
16571
- validate52.errors = [{ instancePath: instancePath + "/clientMode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/clientMode/enum", keyword: "enum", params: { allowedValues: schema95.properties.clientMode.enum }, message: "must be equal to one of the allowed values" }];
17498
+ validate57.errors = [{ instancePath: instancePath + "/clientMode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/clientMode/enum", keyword: "enum", params: { allowedValues: schema105.properties.clientMode.enum }, message: "must be equal to one of the allowed values" }];
16572
17499
  return false;
16573
17500
  }
16574
17501
  var valid1 = _errs22 === errors;
@@ -16582,16 +17509,16 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
16582
17509
  if (errors === _errs24) {
16583
17510
  if (typeof data10 === "string") {
16584
17511
  if (func1(data10) > 32) {
16585
- validate52.errors = [{ instancePath: instancePath + "/clientVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/clientVersion/maxLength", keyword: "maxLength", params: { limit: 32 }, message: "must NOT have more than 32 characters" }];
17512
+ validate57.errors = [{ instancePath: instancePath + "/clientVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/clientVersion/maxLength", keyword: "maxLength", params: { limit: 32 }, message: "must NOT have more than 32 characters" }];
16586
17513
  return false;
16587
17514
  } else {
16588
- if (!pattern14.test(data10)) {
16589
- validate52.errors = [{ instancePath: instancePath + "/clientVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/clientVersion/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9][A-Za-z0-9._+-]*$" }, message: 'must match pattern "^[A-Za-z0-9][A-Za-z0-9._+-]*$"' }];
17515
+ if (!pattern23.test(data10)) {
17516
+ validate57.errors = [{ instancePath: instancePath + "/clientVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/clientVersion/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9][A-Za-z0-9._+-]*$" }, message: 'must match pattern "^[A-Za-z0-9][A-Za-z0-9._+-]*$"' }];
16590
17517
  return false;
16591
17518
  }
16592
17519
  }
16593
17520
  } else {
16594
- validate52.errors = [{ instancePath: instancePath + "/clientVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/clientVersion/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17521
+ validate57.errors = [{ instancePath: instancePath + "/clientVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/clientVersion/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16595
17522
  return false;
16596
17523
  }
16597
17524
  }
@@ -16603,7 +17530,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
16603
17530
  if (data.proposal !== void 0) {
16604
17531
  const _errs26 = errors;
16605
17532
  if (typeof data.proposal !== "string") {
16606
- validate52.errors = [{ instancePath: instancePath + "/proposal", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/proposal/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17533
+ validate57.errors = [{ instancePath: instancePath + "/proposal", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/properties/proposal/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16607
17534
  return false;
16608
17535
  }
16609
17536
  var valid1 = _errs26 === errors;
@@ -16623,20 +17550,20 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
16623
17550
  }
16624
17551
  }
16625
17552
  } else {
16626
- validate52.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
17553
+ validate57.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightRequestV3/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
16627
17554
  return false;
16628
17555
  }
16629
17556
  }
16630
- validate52.errors = vErrors;
17557
+ validate57.errors = vErrors;
16631
17558
  return errors === 0;
16632
17559
  }
16633
- validate52.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
16634
- var schema97 = { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 3 }, "checkId": { "type": "string", "pattern": "^[A-Za-z0-9._:-]{1,128}$" }, "verdict": { "type": "string", "enum": ["allow", "warn", "ask", "block", "unavailable"] }, "reasonCode": { "type": "string" }, "message": { "type": "string" }, "conflicts": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "shortId": { "type": "string" } }, "required": ["decisionId"], "additionalProperties": {} } }, "bypassed": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "bypassId": { "type": "string" }, "shortId": { "type": "string" } }, "required": ["decisionId"], "additionalProperties": {} } }, "decisionDisclosures": { "minItems": 1, "maxItems": 16, "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "shortId": { "type": "string" }, "participation": { "type": "string", "enum": ["candidate", "reconcile_bypass"] } }, "required": ["decisionId", "shortId", "participation"], "additionalProperties": false } } }, "required": ["protocolVersion", "verdict", "reasonCode", "message", "conflicts", "bypassed"], "additionalProperties": {} };
16635
- function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17560
+ validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
17561
+ var schema107 = { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 3 }, "checkId": { "type": "string", "pattern": "^[A-Za-z0-9._:-]{1,128}$" }, "verdict": { "type": "string", "enum": ["allow", "warn", "ask", "block", "unavailable"] }, "reasonCode": { "type": "string" }, "message": { "type": "string" }, "conflicts": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "shortId": { "type": "string" } }, "required": ["decisionId"], "additionalProperties": {} } }, "bypassed": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "bypassId": { "type": "string" }, "shortId": { "type": "string" } }, "required": ["decisionId"], "additionalProperties": {} } }, "decisionDisclosures": { "minItems": 1, "maxItems": 16, "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "shortId": { "type": "string" }, "participation": { "type": "string", "enum": ["candidate", "reconcile_bypass"] } }, "required": ["decisionId", "shortId", "participation"], "additionalProperties": false } } }, "required": ["protocolVersion", "verdict", "reasonCode", "message", "conflicts", "bypassed"], "additionalProperties": {} };
17562
+ function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
16636
17563
  ;
16637
17564
  let vErrors = null;
16638
17565
  let errors = 0;
16639
- const evaluated0 = validate53.evaluated;
17566
+ const evaluated0 = validate58.evaluated;
16640
17567
  if (evaluated0.dynamicProps) {
16641
17568
  evaluated0.props = void 0;
16642
17569
  }
@@ -16648,18 +17575,18 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16648
17575
  if (data && typeof data == "object" && !Array.isArray(data)) {
16649
17576
  let missing0;
16650
17577
  if (data.protocolVersion === void 0 && (missing0 = "protocolVersion") || data.verdict === void 0 && (missing0 = "verdict") || data.reasonCode === void 0 && (missing0 = "reasonCode") || data.message === void 0 && (missing0 = "message") || data.conflicts === void 0 && (missing0 = "conflicts") || data.bypassed === void 0 && (missing0 = "bypassed")) {
16651
- validate53.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
17578
+ validate58.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
16652
17579
  return false;
16653
17580
  } else {
16654
17581
  if (data.protocolVersion !== void 0) {
16655
17582
  let data0 = data.protocolVersion;
16656
17583
  const _errs3 = errors;
16657
17584
  if (!(typeof data0 == "number" && isFinite(data0))) {
16658
- validate53.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/protocolVersion/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
17585
+ validate58.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/protocolVersion/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
16659
17586
  return false;
16660
17587
  }
16661
17588
  if (3 !== data0) {
16662
- validate53.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/protocolVersion/const", keyword: "const", params: { allowedValue: 3 }, message: "must be equal to constant" }];
17589
+ validate58.errors = [{ instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/protocolVersion/const", keyword: "const", params: { allowedValue: 3 }, message: "must be equal to constant" }];
16663
17590
  return false;
16664
17591
  }
16665
17592
  var valid1 = _errs3 === errors;
@@ -16672,12 +17599,12 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16672
17599
  const _errs5 = errors;
16673
17600
  if (errors === _errs5) {
16674
17601
  if (typeof data1 === "string") {
16675
- if (!pattern10.test(data1)) {
16676
- validate53.errors = [{ instancePath: instancePath + "/checkId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/checkId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9._:-]{1,128}$" }, message: 'must match pattern "^[A-Za-z0-9._:-]{1,128}$"' }];
17602
+ if (!pattern19.test(data1)) {
17603
+ validate58.errors = [{ instancePath: instancePath + "/checkId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/checkId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9._:-]{1,128}$" }, message: 'must match pattern "^[A-Za-z0-9._:-]{1,128}$"' }];
16677
17604
  return false;
16678
17605
  }
16679
17606
  } else {
16680
- validate53.errors = [{ instancePath: instancePath + "/checkId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/checkId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17607
+ validate58.errors = [{ instancePath: instancePath + "/checkId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/checkId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16681
17608
  return false;
16682
17609
  }
16683
17610
  }
@@ -16690,11 +17617,11 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16690
17617
  let data2 = data.verdict;
16691
17618
  const _errs7 = errors;
16692
17619
  if (typeof data2 !== "string") {
16693
- validate53.errors = [{ instancePath: instancePath + "/verdict", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/verdict/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17620
+ validate58.errors = [{ instancePath: instancePath + "/verdict", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/verdict/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16694
17621
  return false;
16695
17622
  }
16696
17623
  if (!(data2 === "allow" || data2 === "warn" || data2 === "ask" || data2 === "block" || data2 === "unavailable")) {
16697
- validate53.errors = [{ instancePath: instancePath + "/verdict", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/verdict/enum", keyword: "enum", params: { allowedValues: schema97.properties.verdict.enum }, message: "must be equal to one of the allowed values" }];
17624
+ validate58.errors = [{ instancePath: instancePath + "/verdict", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/verdict/enum", keyword: "enum", params: { allowedValues: schema107.properties.verdict.enum }, message: "must be equal to one of the allowed values" }];
16698
17625
  return false;
16699
17626
  }
16700
17627
  var valid1 = _errs7 === errors;
@@ -16705,7 +17632,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16705
17632
  if (data.reasonCode !== void 0) {
16706
17633
  const _errs9 = errors;
16707
17634
  if (typeof data.reasonCode !== "string") {
16708
- validate53.errors = [{ instancePath: instancePath + "/reasonCode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/reasonCode/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17635
+ validate58.errors = [{ instancePath: instancePath + "/reasonCode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/reasonCode/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16709
17636
  return false;
16710
17637
  }
16711
17638
  var valid1 = _errs9 === errors;
@@ -16716,7 +17643,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16716
17643
  if (data.message !== void 0) {
16717
17644
  const _errs11 = errors;
16718
17645
  if (typeof data.message !== "string") {
16719
- validate53.errors = [{ instancePath: instancePath + "/message", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/message/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17646
+ validate58.errors = [{ instancePath: instancePath + "/message", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/message/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16720
17647
  return false;
16721
17648
  }
16722
17649
  var valid1 = _errs11 === errors;
@@ -16738,13 +17665,13 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16738
17665
  if (data6 && typeof data6 == "object" && !Array.isArray(data6)) {
16739
17666
  let missing1;
16740
17667
  if (data6.decisionId === void 0 && (missing1 = "decisionId")) {
16741
- validate53.errors = [{ instancePath: instancePath + "/conflicts/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/items/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
17668
+ validate58.errors = [{ instancePath: instancePath + "/conflicts/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/items/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
16742
17669
  return false;
16743
17670
  } else {
16744
17671
  if (data6.decisionId !== void 0) {
16745
17672
  const _errs18 = errors;
16746
17673
  if (typeof data6.decisionId !== "string") {
16747
- validate53.errors = [{ instancePath: instancePath + "/conflicts/" + i0 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17674
+ validate58.errors = [{ instancePath: instancePath + "/conflicts/" + i0 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16748
17675
  return false;
16749
17676
  }
16750
17677
  var valid3 = _errs18 === errors;
@@ -16755,7 +17682,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16755
17682
  if (data6.shortId !== void 0) {
16756
17683
  const _errs20 = errors;
16757
17684
  if (typeof data6.shortId !== "string") {
16758
- validate53.errors = [{ instancePath: instancePath + "/conflicts/" + i0 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17685
+ validate58.errors = [{ instancePath: instancePath + "/conflicts/" + i0 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16759
17686
  return false;
16760
17687
  }
16761
17688
  var valid3 = _errs20 === errors;
@@ -16765,7 +17692,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16765
17692
  }
16766
17693
  }
16767
17694
  } else {
16768
- validate53.errors = [{ instancePath: instancePath + "/conflicts/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
17695
+ validate58.errors = [{ instancePath: instancePath + "/conflicts/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
16769
17696
  return false;
16770
17697
  }
16771
17698
  }
@@ -16775,7 +17702,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16775
17702
  }
16776
17703
  }
16777
17704
  } else {
16778
- validate53.errors = [{ instancePath: instancePath + "/conflicts", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
17705
+ validate58.errors = [{ instancePath: instancePath + "/conflicts", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/conflicts/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
16779
17706
  return false;
16780
17707
  }
16781
17708
  }
@@ -16798,13 +17725,13 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16798
17725
  if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
16799
17726
  let missing2;
16800
17727
  if (data10.decisionId === void 0 && (missing2 = "decisionId")) {
16801
- validate53.errors = [{ instancePath: instancePath + "/bypassed/" + i1, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
17728
+ validate58.errors = [{ instancePath: instancePath + "/bypassed/" + i1, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" }];
16802
17729
  return false;
16803
17730
  } else {
16804
17731
  if (data10.decisionId !== void 0) {
16805
17732
  const _errs27 = errors;
16806
17733
  if (typeof data10.decisionId !== "string") {
16807
- validate53.errors = [{ instancePath: instancePath + "/bypassed/" + i1 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17734
+ validate58.errors = [{ instancePath: instancePath + "/bypassed/" + i1 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16808
17735
  return false;
16809
17736
  }
16810
17737
  var valid5 = _errs27 === errors;
@@ -16815,7 +17742,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16815
17742
  if (data10.bypassId !== void 0) {
16816
17743
  const _errs29 = errors;
16817
17744
  if (typeof data10.bypassId !== "string") {
16818
- validate53.errors = [{ instancePath: instancePath + "/bypassed/" + i1 + "/bypassId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/properties/bypassId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17745
+ validate58.errors = [{ instancePath: instancePath + "/bypassed/" + i1 + "/bypassId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/properties/bypassId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16819
17746
  return false;
16820
17747
  }
16821
17748
  var valid5 = _errs29 === errors;
@@ -16826,7 +17753,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16826
17753
  if (data10.shortId !== void 0) {
16827
17754
  const _errs31 = errors;
16828
17755
  if (typeof data10.shortId !== "string") {
16829
- validate53.errors = [{ instancePath: instancePath + "/bypassed/" + i1 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17756
+ validate58.errors = [{ instancePath: instancePath + "/bypassed/" + i1 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16830
17757
  return false;
16831
17758
  }
16832
17759
  var valid5 = _errs31 === errors;
@@ -16837,7 +17764,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16837
17764
  }
16838
17765
  }
16839
17766
  } else {
16840
- validate53.errors = [{ instancePath: instancePath + "/bypassed/" + i1, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
17767
+ validate58.errors = [{ instancePath: instancePath + "/bypassed/" + i1, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
16841
17768
  return false;
16842
17769
  }
16843
17770
  }
@@ -16847,7 +17774,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16847
17774
  }
16848
17775
  }
16849
17776
  } else {
16850
- validate53.errors = [{ instancePath: instancePath + "/bypassed", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
17777
+ validate58.errors = [{ instancePath: instancePath + "/bypassed", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/bypassed/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
16851
17778
  return false;
16852
17779
  }
16853
17780
  }
@@ -16862,11 +17789,11 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16862
17789
  if (errors === _errs33) {
16863
17790
  if (Array.isArray(data14)) {
16864
17791
  if (data14.length > 16) {
16865
- validate53.errors = [{ instancePath: instancePath + "/decisionDisclosures", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/maxItems", keyword: "maxItems", params: { limit: 16 }, message: "must NOT have more than 16 items" }];
17792
+ validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/maxItems", keyword: "maxItems", params: { limit: 16 }, message: "must NOT have more than 16 items" }];
16866
17793
  return false;
16867
17794
  } else {
16868
17795
  if (data14.length < 1) {
16869
- validate53.errors = [{ instancePath: instancePath + "/decisionDisclosures", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
17796
+ validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/minItems", keyword: "minItems", params: { limit: 1 }, message: "must NOT have fewer than 1 items" }];
16870
17797
  return false;
16871
17798
  } else {
16872
17799
  var valid6 = true;
@@ -16878,13 +17805,13 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16878
17805
  if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
16879
17806
  let missing3;
16880
17807
  if (data15.decisionId === void 0 && (missing3 = "decisionId") || data15.shortId === void 0 && (missing3 = "shortId") || data15.participation === void 0 && (missing3 = "participation")) {
16881
- validate53.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
17808
+ validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" }];
16882
17809
  return false;
16883
17810
  } else {
16884
17811
  const _errs37 = errors;
16885
17812
  for (const key0 in data15) {
16886
17813
  if (!(key0 === "decisionId" || key0 === "shortId" || key0 === "participation")) {
16887
- validate53.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
17814
+ validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
16888
17815
  return false;
16889
17816
  break;
16890
17817
  }
@@ -16893,7 +17820,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16893
17820
  if (data15.decisionId !== void 0) {
16894
17821
  const _errs38 = errors;
16895
17822
  if (typeof data15.decisionId !== "string") {
16896
- validate53.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17823
+ validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16897
17824
  return false;
16898
17825
  }
16899
17826
  var valid7 = _errs38 === errors;
@@ -16904,7 +17831,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16904
17831
  if (data15.shortId !== void 0) {
16905
17832
  const _errs40 = errors;
16906
17833
  if (typeof data15.shortId !== "string") {
16907
- validate53.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17834
+ validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16908
17835
  return false;
16909
17836
  }
16910
17837
  var valid7 = _errs40 === errors;
@@ -16916,11 +17843,11 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16916
17843
  let data18 = data15.participation;
16917
17844
  const _errs42 = errors;
16918
17845
  if (typeof data18 !== "string") {
16919
- validate53.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2 + "/participation", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/participation/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17846
+ validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2 + "/participation", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/participation/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
16920
17847
  return false;
16921
17848
  }
16922
17849
  if (!(data18 === "candidate" || data18 === "reconcile_bypass")) {
16923
- validate53.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2 + "/participation", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/participation/enum", keyword: "enum", params: { allowedValues: schema97.properties.decisionDisclosures.items.properties.participation.enum }, message: "must be equal to one of the allowed values" }];
17850
+ validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2 + "/participation", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/participation/enum", keyword: "enum", params: { allowedValues: schema107.properties.decisionDisclosures.items.properties.participation.enum }, message: "must be equal to one of the allowed values" }];
16924
17851
  return false;
16925
17852
  }
16926
17853
  var valid7 = _errs42 === errors;
@@ -16932,7 +17859,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16932
17859
  }
16933
17860
  }
16934
17861
  } else {
16935
- validate53.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
17862
+ validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i2, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
16936
17863
  return false;
16937
17864
  }
16938
17865
  }
@@ -16944,7 +17871,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16944
17871
  }
16945
17872
  }
16946
17873
  } else {
16947
- validate53.errors = [{ instancePath: instancePath + "/decisionDisclosures", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
17874
+ validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
16948
17875
  return false;
16949
17876
  }
16950
17877
  }
@@ -16961,22 +17888,22 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
16961
17888
  }
16962
17889
  }
16963
17890
  } else {
16964
- validate53.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
17891
+ validate58.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
16965
17892
  return false;
16966
17893
  }
16967
17894
  }
16968
- validate53.errors = vErrors;
17895
+ validate58.errors = vErrors;
16969
17896
  return errors === 0;
16970
17897
  }
16971
- validate53.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
16972
- var isPresenceHeartbeatRequest = validate54;
16973
- var pattern16 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
16974
- var pattern17 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
16975
- function validate54(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17898
+ validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
17899
+ var isPresenceHeartbeatRequest = validate59;
17900
+ var pattern25 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
17901
+ var pattern26 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
17902
+ function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
16976
17903
  ;
16977
17904
  let vErrors = null;
16978
17905
  let errors = 0;
16979
- const evaluated0 = validate54.evaluated;
17906
+ const evaluated0 = validate59.evaluated;
16980
17907
  if (evaluated0.dynamicProps) {
16981
17908
  evaluated0.props = void 0;
16982
17909
  }
@@ -16988,7 +17915,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
16988
17915
  if (data && typeof data == "object" && !Array.isArray(data)) {
16989
17916
  let missing0;
16990
17917
  if (data.sessionId === void 0 && (missing0 = "sessionId")) {
16991
- validate54.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
17918
+ validate59.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
16992
17919
  return false;
16993
17920
  } else {
16994
17921
  if (data.sessionId !== void 0) {
@@ -16996,12 +17923,12 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
16996
17923
  const _errs3 = errors;
16997
17924
  if (errors === _errs3) {
16998
17925
  if (typeof data0 === "string") {
16999
- if (!pattern16.test(data0)) {
17000
- validate54.errors = [{ instancePath: instancePath + "/sessionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/sessionId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9._-]{1,128}$" }, message: 'must match pattern "^[A-Za-z0-9._-]{1,128}$"' }];
17926
+ if (!pattern25.test(data0)) {
17927
+ validate59.errors = [{ instancePath: instancePath + "/sessionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/sessionId/pattern", keyword: "pattern", params: { pattern: "^[A-Za-z0-9._-]{1,128}$" }, message: 'must match pattern "^[A-Za-z0-9._-]{1,128}$"' }];
17001
17928
  return false;
17002
17929
  }
17003
17930
  } else {
17004
- validate54.errors = [{ instancePath: instancePath + "/sessionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/sessionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17931
+ validate59.errors = [{ instancePath: instancePath + "/sessionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/sessionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17005
17932
  return false;
17006
17933
  }
17007
17934
  }
@@ -17015,12 +17942,12 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
17015
17942
  const _errs5 = errors;
17016
17943
  if (errors === _errs5) {
17017
17944
  if (typeof data1 === "string") {
17018
- if (!pattern17.test(data1)) {
17019
- validate54.errors = [{ instancePath: instancePath + "/clientInstanceId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/clientInstanceId/pattern", keyword: "pattern", params: { pattern: "^pci_[A-Za-z0-9_-]{43}$" }, message: 'must match pattern "^pci_[A-Za-z0-9_-]{43}$"' }];
17945
+ if (!pattern26.test(data1)) {
17946
+ validate59.errors = [{ instancePath: instancePath + "/clientInstanceId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/clientInstanceId/pattern", keyword: "pattern", params: { pattern: "^pci_[A-Za-z0-9_-]{43}$" }, message: 'must match pattern "^pci_[A-Za-z0-9_-]{43}$"' }];
17020
17947
  return false;
17021
17948
  }
17022
17949
  } else {
17023
- validate54.errors = [{ instancePath: instancePath + "/clientInstanceId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/clientInstanceId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17950
+ validate59.errors = [{ instancePath: instancePath + "/clientInstanceId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/clientInstanceId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17024
17951
  return false;
17025
17952
  }
17026
17953
  }
@@ -17033,17 +17960,17 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
17033
17960
  let data2 = data.decisionLifecycleProtocolVersion;
17034
17961
  const _errs7 = errors;
17035
17962
  if (!(typeof data2 == "number" && (!(data2 % 1) && !isNaN(data2)) && isFinite(data2))) {
17036
- validate54.errors = [{ instancePath: instancePath + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/decisionLifecycleProtocolVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
17963
+ validate59.errors = [{ instancePath: instancePath + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/decisionLifecycleProtocolVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
17037
17964
  return false;
17038
17965
  }
17039
17966
  if (errors === _errs7) {
17040
17967
  if (typeof data2 == "number" && isFinite(data2)) {
17041
17968
  if (data2 > 9007199254740991 || isNaN(data2)) {
17042
- validate54.errors = [{ instancePath: instancePath + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/decisionLifecycleProtocolVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
17969
+ validate59.errors = [{ instancePath: instancePath + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/decisionLifecycleProtocolVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
17043
17970
  return false;
17044
17971
  } else {
17045
17972
  if (data2 < 1 || isNaN(data2)) {
17046
- validate54.errors = [{ instancePath: instancePath + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/decisionLifecycleProtocolVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
17973
+ validate59.errors = [{ instancePath: instancePath + "/decisionLifecycleProtocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/properties/decisionLifecycleProtocolVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
17047
17974
  return false;
17048
17975
  }
17049
17976
  }
@@ -17057,20 +17984,20 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
17057
17984
  }
17058
17985
  }
17059
17986
  } else {
17060
- validate54.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
17987
+ validate59.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PresenceHeartbeatRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
17061
17988
  return false;
17062
17989
  }
17063
17990
  }
17064
- validate54.errors = vErrors;
17991
+ validate59.errors = vErrors;
17065
17992
  return errors === 0;
17066
17993
  }
17067
- validate54.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
17068
- var isPresenceHeartbeatResponse = validate55;
17069
- function validate55(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17994
+ validate59.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
17995
+ var isPresenceHeartbeatResponse = validate60;
17996
+ function validate60(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17070
17997
  ;
17071
17998
  let vErrors = null;
17072
17999
  let errors = 0;
17073
- const evaluated0 = validate55.evaluated;
18000
+ const evaluated0 = validate60.evaluated;
17074
18001
  if (evaluated0.dynamicProps) {
17075
18002
  evaluated0.props = void 0;
17076
18003
  }
@@ -17436,7 +18363,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
17436
18363
  vErrors.push(err22);
17437
18364
  }
17438
18365
  errors++;
17439
- validate55.errors = vErrors;
18366
+ validate60.errors = vErrors;
17440
18367
  return false;
17441
18368
  } else {
17442
18369
  errors = _errs1;
@@ -17448,17 +18375,17 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
17448
18375
  }
17449
18376
  }
17450
18377
  }
17451
- validate55.errors = vErrors;
18378
+ validate60.errors = vErrors;
17452
18379
  evaluated0.props = props0;
17453
18380
  return errors === 0;
17454
18381
  }
17455
- validate55.evaluated = { "dynamicProps": true, "dynamicItems": false };
17456
- var schema103 = { "type": "object", "properties": { "idOrShortId": { "type": "string", "minLength": 1, "maxLength": 128 }, "checkId": { "type": "string", "minLength": 1, "maxLength": 128 }, "outcome": { "type": "string", "enum": ["followed", "superseded"] } }, "required": ["idOrShortId", "checkId", "outcome"], "additionalProperties": false };
17457
- function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18382
+ validate60.evaluated = { "dynamicProps": true, "dynamicItems": false };
18383
+ var schema113 = { "type": "object", "properties": { "idOrShortId": { "type": "string", "minLength": 1, "maxLength": 128 }, "checkId": { "type": "string", "minLength": 1, "maxLength": 128 }, "outcome": { "type": "string", "enum": ["followed", "superseded"] } }, "required": ["idOrShortId", "checkId", "outcome"], "additionalProperties": false };
18384
+ function validate61(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17458
18385
  ;
17459
18386
  let vErrors = null;
17460
18387
  let errors = 0;
17461
- const evaluated0 = validate56.evaluated;
18388
+ const evaluated0 = validate61.evaluated;
17462
18389
  if (evaluated0.dynamicProps) {
17463
18390
  evaluated0.props = void 0;
17464
18391
  }
@@ -17470,13 +18397,13 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
17470
18397
  if (data && typeof data == "object" && !Array.isArray(data)) {
17471
18398
  let missing0;
17472
18399
  if (data.idOrShortId === void 0 && (missing0 = "idOrShortId") || data.checkId === void 0 && (missing0 = "checkId") || data.outcome === void 0 && (missing0 = "outcome")) {
17473
- validate56.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
18400
+ validate61.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
17474
18401
  return false;
17475
18402
  } else {
17476
18403
  const _errs2 = errors;
17477
18404
  for (const key0 in data) {
17478
18405
  if (!(key0 === "idOrShortId" || key0 === "checkId" || key0 === "outcome")) {
17479
- validate56.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
18406
+ validate61.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
17480
18407
  return false;
17481
18408
  break;
17482
18409
  }
@@ -17488,16 +18415,16 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
17488
18415
  if (errors === _errs3) {
17489
18416
  if (typeof data0 === "string") {
17490
18417
  if (func1(data0) > 128) {
17491
- validate56.errors = [{ instancePath: instancePath + "/idOrShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/idOrShortId/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
18418
+ validate61.errors = [{ instancePath: instancePath + "/idOrShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/idOrShortId/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
17492
18419
  return false;
17493
18420
  } else {
17494
18421
  if (func1(data0) < 1) {
17495
- validate56.errors = [{ instancePath: instancePath + "/idOrShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/idOrShortId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
18422
+ validate61.errors = [{ instancePath: instancePath + "/idOrShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/idOrShortId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
17496
18423
  return false;
17497
18424
  }
17498
18425
  }
17499
18426
  } else {
17500
- validate56.errors = [{ instancePath: instancePath + "/idOrShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/idOrShortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18427
+ validate61.errors = [{ instancePath: instancePath + "/idOrShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/idOrShortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17501
18428
  return false;
17502
18429
  }
17503
18430
  }
@@ -17512,16 +18439,16 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
17512
18439
  if (errors === _errs5) {
17513
18440
  if (typeof data1 === "string") {
17514
18441
  if (func1(data1) > 128) {
17515
- validate56.errors = [{ instancePath: instancePath + "/checkId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/checkId/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
18442
+ validate61.errors = [{ instancePath: instancePath + "/checkId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/checkId/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
17516
18443
  return false;
17517
18444
  } else {
17518
18445
  if (func1(data1) < 1) {
17519
- validate56.errors = [{ instancePath: instancePath + "/checkId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/checkId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
18446
+ validate61.errors = [{ instancePath: instancePath + "/checkId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/checkId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
17520
18447
  return false;
17521
18448
  }
17522
18449
  }
17523
18450
  } else {
17524
- validate56.errors = [{ instancePath: instancePath + "/checkId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/checkId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18451
+ validate61.errors = [{ instancePath: instancePath + "/checkId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/checkId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17525
18452
  return false;
17526
18453
  }
17527
18454
  }
@@ -17534,11 +18461,11 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
17534
18461
  let data2 = data.outcome;
17535
18462
  const _errs7 = errors;
17536
18463
  if (typeof data2 !== "string") {
17537
- validate56.errors = [{ instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/outcome/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18464
+ validate61.errors = [{ instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/outcome/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17538
18465
  return false;
17539
18466
  }
17540
18467
  if (!(data2 === "followed" || data2 === "superseded")) {
17541
- validate56.errors = [{ instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/outcome/enum", keyword: "enum", params: { allowedValues: schema103.properties.outcome.enum }, message: "must be equal to one of the allowed values" }];
18468
+ validate61.errors = [{ instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/properties/outcome/enum", keyword: "enum", params: { allowedValues: schema113.properties.outcome.enum }, message: "must be equal to one of the allowed values" }];
17542
18469
  return false;
17543
18470
  }
17544
18471
  var valid1 = _errs7 === errors;
@@ -17550,20 +18477,20 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
17550
18477
  }
17551
18478
  }
17552
18479
  } else {
17553
- validate56.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
18480
+ validate61.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
17554
18481
  return false;
17555
18482
  }
17556
18483
  }
17557
- validate56.errors = vErrors;
18484
+ validate61.errors = vErrors;
17558
18485
  return errors === 0;
17559
18486
  }
17560
- validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
17561
- var schema105 = { "type": "object", "properties": { "ok": { "type": "boolean", "const": true }, "checkId": { "type": "string" }, "decisionId": { "type": "string" }, "outcome": { "type": "string", "enum": ["followed", "superseded"] }, "recordedAt": { "type": "number" }, "duplicate": { "type": "boolean" } }, "required": ["ok", "checkId", "decisionId", "outcome", "recordedAt", "duplicate"], "additionalProperties": false };
17562
- function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18487
+ validate61.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18488
+ var schema115 = { "type": "object", "properties": { "ok": { "type": "boolean", "const": true }, "checkId": { "type": "string" }, "decisionId": { "type": "string" }, "outcome": { "type": "string", "enum": ["followed", "superseded"] }, "recordedAt": { "type": "number" }, "duplicate": { "type": "boolean" } }, "required": ["ok", "checkId", "decisionId", "outcome", "recordedAt", "duplicate"], "additionalProperties": false };
18489
+ function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17563
18490
  ;
17564
18491
  let vErrors = null;
17565
18492
  let errors = 0;
17566
- const evaluated0 = validate57.evaluated;
18493
+ const evaluated0 = validate62.evaluated;
17567
18494
  if (evaluated0.dynamicProps) {
17568
18495
  evaluated0.props = void 0;
17569
18496
  }
@@ -17575,13 +18502,13 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
17575
18502
  if (data && typeof data == "object" && !Array.isArray(data)) {
17576
18503
  let missing0;
17577
18504
  if (data.ok === void 0 && (missing0 = "ok") || data.checkId === void 0 && (missing0 = "checkId") || data.decisionId === void 0 && (missing0 = "decisionId") || data.outcome === void 0 && (missing0 = "outcome") || data.recordedAt === void 0 && (missing0 = "recordedAt") || data.duplicate === void 0 && (missing0 = "duplicate")) {
17578
- validate57.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
18505
+ validate62.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
17579
18506
  return false;
17580
18507
  } else {
17581
18508
  const _errs2 = errors;
17582
18509
  for (const key0 in data) {
17583
18510
  if (!(key0 === "ok" || key0 === "checkId" || key0 === "decisionId" || key0 === "outcome" || key0 === "recordedAt" || key0 === "duplicate")) {
17584
- validate57.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
18511
+ validate62.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
17585
18512
  return false;
17586
18513
  break;
17587
18514
  }
@@ -17591,11 +18518,11 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
17591
18518
  let data0 = data.ok;
17592
18519
  const _errs3 = errors;
17593
18520
  if (typeof data0 !== "boolean") {
17594
- validate57.errors = [{ instancePath: instancePath + "/ok", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/ok/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
18521
+ validate62.errors = [{ instancePath: instancePath + "/ok", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/ok/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
17595
18522
  return false;
17596
18523
  }
17597
18524
  if (true !== data0) {
17598
- validate57.errors = [{ instancePath: instancePath + "/ok", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/ok/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
18525
+ validate62.errors = [{ instancePath: instancePath + "/ok", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/ok/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
17599
18526
  return false;
17600
18527
  }
17601
18528
  var valid1 = _errs3 === errors;
@@ -17606,7 +18533,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
17606
18533
  if (data.checkId !== void 0) {
17607
18534
  const _errs5 = errors;
17608
18535
  if (typeof data.checkId !== "string") {
17609
- validate57.errors = [{ instancePath: instancePath + "/checkId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/checkId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18536
+ validate62.errors = [{ instancePath: instancePath + "/checkId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/checkId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17610
18537
  return false;
17611
18538
  }
17612
18539
  var valid1 = _errs5 === errors;
@@ -17617,7 +18544,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
17617
18544
  if (data.decisionId !== void 0) {
17618
18545
  const _errs7 = errors;
17619
18546
  if (typeof data.decisionId !== "string") {
17620
- validate57.errors = [{ instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18547
+ validate62.errors = [{ instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17621
18548
  return false;
17622
18549
  }
17623
18550
  var valid1 = _errs7 === errors;
@@ -17629,11 +18556,11 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
17629
18556
  let data3 = data.outcome;
17630
18557
  const _errs9 = errors;
17631
18558
  if (typeof data3 !== "string") {
17632
- validate57.errors = [{ instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/outcome/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18559
+ validate62.errors = [{ instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/outcome/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17633
18560
  return false;
17634
18561
  }
17635
18562
  if (!(data3 === "followed" || data3 === "superseded")) {
17636
- validate57.errors = [{ instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/outcome/enum", keyword: "enum", params: { allowedValues: schema105.properties.outcome.enum }, message: "must be equal to one of the allowed values" }];
18563
+ validate62.errors = [{ instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/outcome/enum", keyword: "enum", params: { allowedValues: schema115.properties.outcome.enum }, message: "must be equal to one of the allowed values" }];
17637
18564
  return false;
17638
18565
  }
17639
18566
  var valid1 = _errs9 === errors;
@@ -17645,7 +18572,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
17645
18572
  let data4 = data.recordedAt;
17646
18573
  const _errs11 = errors;
17647
18574
  if (!(typeof data4 == "number" && isFinite(data4))) {
17648
- validate57.errors = [{ instancePath: instancePath + "/recordedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/recordedAt/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
18575
+ validate62.errors = [{ instancePath: instancePath + "/recordedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/recordedAt/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
17649
18576
  return false;
17650
18577
  }
17651
18578
  var valid1 = _errs11 === errors;
@@ -17656,7 +18583,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
17656
18583
  if (data.duplicate !== void 0) {
17657
18584
  const _errs13 = errors;
17658
18585
  if (typeof data.duplicate !== "boolean") {
17659
- validate57.errors = [{ instancePath: instancePath + "/duplicate", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/duplicate/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
18586
+ validate62.errors = [{ instancePath: instancePath + "/duplicate", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/duplicate/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
17660
18587
  return false;
17661
18588
  }
17662
18589
  var valid1 = _errs13 === errors;
@@ -17671,20 +18598,20 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
17671
18598
  }
17672
18599
  }
17673
18600
  } else {
17674
- validate57.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
18601
+ validate62.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
17675
18602
  return false;
17676
18603
  }
17677
18604
  }
17678
- validate57.errors = vErrors;
18605
+ validate62.errors = vErrors;
17679
18606
  return errors === 0;
17680
18607
  }
17681
- validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
17682
- var pattern18 = new RegExp("^(?![A-Za-z0-9-]*--)[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?\\/[A-Za-z0-9._-]{1,100}$", "u");
17683
- function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18608
+ validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18609
+ var pattern27 = new RegExp("^(?![A-Za-z0-9-]*--)[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?\\/[A-Za-z0-9._-]{1,100}$", "u");
18610
+ function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17684
18611
  ;
17685
18612
  let vErrors = null;
17686
18613
  let errors = 0;
17687
- const evaluated0 = validate58.evaluated;
18614
+ const evaluated0 = validate63.evaluated;
17688
18615
  if (evaluated0.dynamicProps) {
17689
18616
  evaluated0.props = void 0;
17690
18617
  }
@@ -17696,13 +18623,13 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17696
18623
  if (data && typeof data == "object" && !Array.isArray(data)) {
17697
18624
  let missing0;
17698
18625
  if (data.repositoryFullName === void 0 && (missing0 = "repositoryFullName")) {
17699
- validate58.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
18626
+ validate63.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
17700
18627
  return false;
17701
18628
  } else {
17702
18629
  const _errs2 = errors;
17703
18630
  for (const key0 in data) {
17704
18631
  if (!(key0 === "repositoryFullName")) {
17705
- validate58.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
18632
+ validate63.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
17706
18633
  return false;
17707
18634
  break;
17708
18635
  }
@@ -17713,12 +18640,12 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17713
18640
  const _errs3 = errors;
17714
18641
  if (errors === _errs3) {
17715
18642
  if (typeof data0 === "string") {
17716
- if (!pattern18.test(data0)) {
17717
- validate58.errors = [{ instancePath: instancePath + "/repositoryFullName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindRequest/properties/repositoryFullName/pattern", keyword: "pattern", params: { pattern: "^(?![A-Za-z0-9-]*--)[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?\\/[A-Za-z0-9._-]{1,100}$" }, message: 'must match pattern "^(?![A-Za-z0-9-]*--)[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?\\/[A-Za-z0-9._-]{1,100}$"' }];
18643
+ if (!pattern27.test(data0)) {
18644
+ validate63.errors = [{ instancePath: instancePath + "/repositoryFullName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindRequest/properties/repositoryFullName/pattern", keyword: "pattern", params: { pattern: "^(?![A-Za-z0-9-]*--)[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?\\/[A-Za-z0-9._-]{1,100}$" }, message: 'must match pattern "^(?![A-Za-z0-9-]*--)[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?\\/[A-Za-z0-9._-]{1,100}$"' }];
17718
18645
  return false;
17719
18646
  }
17720
18647
  } else {
17721
- validate58.errors = [{ instancePath: instancePath + "/repositoryFullName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindRequest/properties/repositoryFullName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18648
+ validate63.errors = [{ instancePath: instancePath + "/repositoryFullName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindRequest/properties/repositoryFullName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17722
18649
  return false;
17723
18650
  }
17724
18651
  }
@@ -17726,19 +18653,19 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17726
18653
  }
17727
18654
  }
17728
18655
  } else {
17729
- validate58.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
18656
+ validate63.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
17730
18657
  return false;
17731
18658
  }
17732
18659
  }
17733
- validate58.errors = vErrors;
18660
+ validate63.errors = vErrors;
17734
18661
  return errors === 0;
17735
18662
  }
17736
- validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
17737
- function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18663
+ validate63.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18664
+ function validate64(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17738
18665
  ;
17739
18666
  let vErrors = null;
17740
18667
  let errors = 0;
17741
- const evaluated0 = validate59.evaluated;
18668
+ const evaluated0 = validate64.evaluated;
17742
18669
  if (evaluated0.dynamicProps) {
17743
18670
  evaluated0.props = void 0;
17744
18671
  }
@@ -17750,7 +18677,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
17750
18677
  if (data && typeof data == "object" && !Array.isArray(data)) {
17751
18678
  let missing0;
17752
18679
  if (data.repoSyncId === void 0 && (missing0 = "repoSyncId")) {
17753
- validate59.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
18680
+ validate64.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
17754
18681
  return false;
17755
18682
  } else {
17756
18683
  if (data.repoSyncId !== void 0) {
@@ -17759,32 +18686,31 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
17759
18686
  if (errors === _errs3) {
17760
18687
  if (typeof data0 === "string") {
17761
18688
  if (func1(data0) < 1) {
17762
- validate59.errors = [{ instancePath: instancePath + "/repoSyncId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindResponse/properties/repoSyncId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
18689
+ validate64.errors = [{ instancePath: instancePath + "/repoSyncId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindResponse/properties/repoSyncId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
17763
18690
  return false;
17764
18691
  }
17765
18692
  } else {
17766
- validate59.errors = [{ instancePath: instancePath + "/repoSyncId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindResponse/properties/repoSyncId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18693
+ validate64.errors = [{ instancePath: instancePath + "/repoSyncId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindResponse/properties/repoSyncId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17767
18694
  return false;
17768
18695
  }
17769
18696
  }
17770
18697
  }
17771
18698
  }
17772
18699
  } else {
17773
- validate59.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
18700
+ validate64.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/RepositoryBindResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
17774
18701
  return false;
17775
18702
  }
17776
18703
  }
17777
- validate59.errors = vErrors;
18704
+ validate64.errors = vErrors;
17778
18705
  return errors === 0;
17779
18706
  }
17780
- validate59.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
17781
- var pattern19 = new RegExp("^[a-f0-9]{64}$", "u");
17782
- var pattern20 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
17783
- function validate60(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18707
+ validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18708
+ var pattern29 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
18709
+ function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17784
18710
  ;
17785
18711
  let vErrors = null;
17786
18712
  let errors = 0;
17787
- const evaluated0 = validate60.evaluated;
18713
+ const evaluated0 = validate65.evaluated;
17788
18714
  if (evaluated0.dynamicProps) {
17789
18715
  evaluated0.props = void 0;
17790
18716
  }
@@ -17796,13 +18722,13 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
17796
18722
  if (data && typeof data == "object" && !Array.isArray(data)) {
17797
18723
  let missing0;
17798
18724
  if (data.requestId === void 0 && (missing0 = "requestId") || data.limit === void 0 && (missing0 = "limit")) {
17799
- validate60.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
18725
+ validate65.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
17800
18726
  return false;
17801
18727
  } else {
17802
18728
  const _errs2 = errors;
17803
18729
  for (const key0 in data) {
17804
18730
  if (!(key0 === "requestId" || key0 === "limit" || key0 === "after")) {
17805
- validate60.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
18731
+ validate65.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
17806
18732
  return false;
17807
18733
  break;
17808
18734
  }
@@ -17813,12 +18739,12 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
17813
18739
  const _errs3 = errors;
17814
18740
  if (errors === _errs3) {
17815
18741
  if (typeof data0 === "string") {
17816
- if (!pattern19.test(data0)) {
17817
- validate60.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/requestId/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
18742
+ if (!pattern5.test(data0)) {
18743
+ validate65.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/requestId/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
17818
18744
  return false;
17819
18745
  }
17820
18746
  } else {
17821
- validate60.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/requestId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18747
+ validate65.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/requestId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17822
18748
  return false;
17823
18749
  }
17824
18750
  }
@@ -17831,17 +18757,17 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
17831
18757
  let data1 = data.limit;
17832
18758
  const _errs5 = errors;
17833
18759
  if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
17834
- validate60.errors = [{ instancePath: instancePath + "/limit", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/limit/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
18760
+ validate65.errors = [{ instancePath: instancePath + "/limit", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/limit/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
17835
18761
  return false;
17836
18762
  }
17837
18763
  if (errors === _errs5) {
17838
18764
  if (typeof data1 == "number" && isFinite(data1)) {
17839
18765
  if (data1 > 100 || isNaN(data1)) {
17840
- validate60.errors = [{ instancePath: instancePath + "/limit", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/limit/maximum", keyword: "maximum", params: { comparison: "<=", limit: 100 }, message: "must be <= 100" }];
18766
+ validate65.errors = [{ instancePath: instancePath + "/limit", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/limit/maximum", keyword: "maximum", params: { comparison: "<=", limit: 100 }, message: "must be <= 100" }];
17841
18767
  return false;
17842
18768
  } else {
17843
18769
  if (data1 < 1 || isNaN(data1)) {
17844
- validate60.errors = [{ instancePath: instancePath + "/limit", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/limit/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
18770
+ validate65.errors = [{ instancePath: instancePath + "/limit", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/limit/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" }];
17845
18771
  return false;
17846
18772
  }
17847
18773
  }
@@ -17858,21 +18784,21 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
17858
18784
  if (errors === _errs7) {
17859
18785
  if (typeof data2 === "string") {
17860
18786
  if (func1(data2) > 256) {
17861
- validate60.errors = [{ instancePath: instancePath + "/after", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/after/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
18787
+ validate65.errors = [{ instancePath: instancePath + "/after", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/after/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
17862
18788
  return false;
17863
18789
  } else {
17864
18790
  if (func1(data2) < 9) {
17865
- validate60.errors = [{ instancePath: instancePath + "/after", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/after/minLength", keyword: "minLength", params: { limit: 9 }, message: "must NOT have fewer than 9 characters" }];
18791
+ validate65.errors = [{ instancePath: instancePath + "/after", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/after/minLength", keyword: "minLength", params: { limit: 9 }, message: "must NOT have fewer than 9 characters" }];
17866
18792
  return false;
17867
18793
  } else {
17868
- if (!pattern20.test(data2)) {
17869
- validate60.errors = [{ instancePath: instancePath + "/after", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/after/pattern", keyword: "pattern", params: { pattern: "^api_key_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^api_key_[A-Za-z0-9_-]+$"' }];
18794
+ if (!pattern29.test(data2)) {
18795
+ validate65.errors = [{ instancePath: instancePath + "/after", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/after/pattern", keyword: "pattern", params: { pattern: "^api_key_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^api_key_[A-Za-z0-9_-]+$"' }];
17870
18796
  return false;
17871
18797
  }
17872
18798
  }
17873
18799
  }
17874
18800
  } else {
17875
- validate60.errors = [{ instancePath: instancePath + "/after", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/after/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18801
+ validate65.errors = [{ instancePath: instancePath + "/after", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/properties/after/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17876
18802
  return false;
17877
18803
  }
17878
18804
  }
@@ -17885,22 +18811,22 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
17885
18811
  }
17886
18812
  }
17887
18813
  } else {
17888
- validate60.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
18814
+ validate65.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
17889
18815
  return false;
17890
18816
  }
17891
18817
  }
17892
- validate60.errors = vErrors;
18818
+ validate65.errors = vErrors;
17893
18819
  return errors === 0;
17894
18820
  }
17895
- validate60.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
17896
- var pattern22 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
17897
- var pattern23 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
17898
- var pattern24 = new RegExp("^[\\x21-\\x7e]+$", "u");
17899
- function validate61(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18821
+ validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18822
+ var pattern31 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
18823
+ var pattern32 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
18824
+ var pattern33 = new RegExp("^[\\x21-\\x7e]+$", "u");
18825
+ function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17900
18826
  ;
17901
18827
  let vErrors = null;
17902
18828
  let errors = 0;
17903
- const evaluated0 = validate61.evaluated;
18829
+ const evaluated0 = validate66.evaluated;
17904
18830
  if (evaluated0.dynamicProps) {
17905
18831
  evaluated0.props = void 0;
17906
18832
  }
@@ -17912,13 +18838,13 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
17912
18838
  if (data && typeof data == "object" && !Array.isArray(data)) {
17913
18839
  let missing0;
17914
18840
  if (data.apiKeys === void 0 && (missing0 = "apiKeys") || data.nextCursor === void 0 && (missing0 = "nextCursor")) {
17915
- validate61.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
18841
+ validate66.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
17916
18842
  return false;
17917
18843
  } else {
17918
18844
  const _errs2 = errors;
17919
18845
  for (const key0 in data) {
17920
18846
  if (!(key0 === "apiKeys" || key0 === "nextCursor")) {
17921
- validate61.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
18847
+ validate66.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
17922
18848
  return false;
17923
18849
  break;
17924
18850
  }
@@ -17930,7 +18856,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
17930
18856
  if (errors === _errs3) {
17931
18857
  if (Array.isArray(data0)) {
17932
18858
  if (data0.length > 100) {
17933
- validate61.errors = [{ instancePath: instancePath + "/apiKeys", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/maxItems", keyword: "maxItems", params: { limit: 100 }, message: "must NOT have more than 100 items" }];
18859
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/maxItems", keyword: "maxItems", params: { limit: 100 }, message: "must NOT have more than 100 items" }];
17934
18860
  return false;
17935
18861
  } else {
17936
18862
  var valid2 = true;
@@ -17942,13 +18868,13 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
17942
18868
  if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
17943
18869
  let missing1;
17944
18870
  if (data1.id === void 0 && (missing1 = "id") || data1.name === void 0 && (missing1 = "name") || data1.obfuscatedValue === void 0 && (missing1 = "obfuscatedValue") || data1.permissions === void 0 && (missing1 = "permissions") || data1.lastUsedAt === void 0 && (missing1 = "lastUsedAt") || data1.expiresAt === void 0 && (missing1 = "expiresAt") || data1.createdAt === void 0 && (missing1 = "createdAt") || data1.updatedAt === void 0 && (missing1 = "updatedAt")) {
17945
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
18871
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
17946
18872
  return false;
17947
18873
  } else {
17948
18874
  const _errs7 = errors;
17949
18875
  for (const key1 in data1) {
17950
18876
  if (!(key1 === "id" || key1 === "name" || key1 === "obfuscatedValue" || key1 === "permissions" || key1 === "lastUsedAt" || key1 === "expiresAt" || key1 === "createdAt" || key1 === "updatedAt")) {
17951
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
18877
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
17952
18878
  return false;
17953
18879
  break;
17954
18880
  }
@@ -17960,21 +18886,21 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
17960
18886
  if (errors === _errs8) {
17961
18887
  if (typeof data2 === "string") {
17962
18888
  if (func1(data2) > 256) {
17963
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/id/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
18889
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/id/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
17964
18890
  return false;
17965
18891
  } else {
17966
18892
  if (func1(data2) < 9) {
17967
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/id/minLength", keyword: "minLength", params: { limit: 9 }, message: "must NOT have fewer than 9 characters" }];
18893
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/id/minLength", keyword: "minLength", params: { limit: 9 }, message: "must NOT have fewer than 9 characters" }];
17968
18894
  return false;
17969
18895
  } else {
17970
- if (!pattern20.test(data2)) {
17971
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/id/pattern", keyword: "pattern", params: { pattern: "^api_key_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^api_key_[A-Za-z0-9_-]+$"' }];
18896
+ if (!pattern29.test(data2)) {
18897
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/id/pattern", keyword: "pattern", params: { pattern: "^api_key_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^api_key_[A-Za-z0-9_-]+$"' }];
17972
18898
  return false;
17973
18899
  }
17974
18900
  }
17975
18901
  }
17976
18902
  } else {
17977
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18903
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17978
18904
  return false;
17979
18905
  }
17980
18906
  }
@@ -17989,21 +18915,21 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
17989
18915
  if (errors === _errs10) {
17990
18916
  if (typeof data3 === "string") {
17991
18917
  if (func1(data3) > 128) {
17992
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/name/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
18918
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/name/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
17993
18919
  return false;
17994
18920
  } else {
17995
18921
  if (func1(data3) < 1) {
17996
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/name/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
18922
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/name/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
17997
18923
  return false;
17998
18924
  } else {
17999
- if (!pattern22.test(data3)) {
18000
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/name/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$" }, message: 'must match pattern "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$"' }];
18925
+ if (!pattern31.test(data3)) {
18926
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/name/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$" }, message: 'must match pattern "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$"' }];
18001
18927
  return false;
18002
18928
  }
18003
18929
  }
18004
18930
  }
18005
18931
  } else {
18006
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18932
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18007
18933
  return false;
18008
18934
  }
18009
18935
  }
@@ -18018,21 +18944,21 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
18018
18944
  if (errors === _errs12) {
18019
18945
  if (typeof data4 === "string") {
18020
18946
  if (func1(data4) > 256) {
18021
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/obfuscatedValue/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
18947
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/obfuscatedValue/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
18022
18948
  return false;
18023
18949
  } else {
18024
18950
  if (func1(data4) < 1) {
18025
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/obfuscatedValue/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
18951
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/obfuscatedValue/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
18026
18952
  return false;
18027
18953
  } else {
18028
- if (!pattern23.test(data4)) {
18029
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/obfuscatedValue/pattern", keyword: "pattern", params: { pattern: "^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$" }, message: 'must match pattern "^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$"' }];
18954
+ if (!pattern32.test(data4)) {
18955
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/obfuscatedValue/pattern", keyword: "pattern", params: { pattern: "^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$" }, message: 'must match pattern "^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$"' }];
18030
18956
  return false;
18031
18957
  }
18032
18958
  }
18033
18959
  }
18034
18960
  } else {
18035
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/obfuscatedValue/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18961
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/obfuscatedValue/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18036
18962
  return false;
18037
18963
  }
18038
18964
  }
@@ -18047,7 +18973,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
18047
18973
  if (errors === _errs14) {
18048
18974
  if (Array.isArray(data5)) {
18049
18975
  if (data5.length > 100) {
18050
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/permissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/permissions/maxItems", keyword: "maxItems", params: { limit: 100 }, message: "must NOT have more than 100 items" }];
18976
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/permissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/permissions/maxItems", keyword: "maxItems", params: { limit: 100 }, message: "must NOT have more than 100 items" }];
18051
18977
  return false;
18052
18978
  } else {
18053
18979
  var valid4 = true;
@@ -18058,21 +18984,21 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
18058
18984
  if (errors === _errs16) {
18059
18985
  if (typeof data6 === "string") {
18060
18986
  if (func1(data6) > 128) {
18061
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/permissions/" + i1, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/permissions/items/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
18987
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/permissions/" + i1, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/permissions/items/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
18062
18988
  return false;
18063
18989
  } else {
18064
18990
  if (func1(data6) < 1) {
18065
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/permissions/" + i1, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/permissions/items/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
18991
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/permissions/" + i1, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/permissions/items/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
18066
18992
  return false;
18067
18993
  } else {
18068
- if (!pattern24.test(data6)) {
18069
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/permissions/" + i1, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/permissions/items/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e]+$" }, message: 'must match pattern "^[\\x21-\\x7e]+$"' }];
18994
+ if (!pattern33.test(data6)) {
18995
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/permissions/" + i1, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/permissions/items/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e]+$" }, message: 'must match pattern "^[\\x21-\\x7e]+$"' }];
18070
18996
  return false;
18071
18997
  }
18072
18998
  }
18073
18999
  }
18074
19000
  } else {
18075
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/permissions/" + i1, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/permissions/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19001
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/permissions/" + i1, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/permissions/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18076
19002
  return false;
18077
19003
  }
18078
19004
  }
@@ -18083,7 +19009,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
18083
19009
  }
18084
19010
  }
18085
19011
  } else {
18086
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/permissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/permissions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
19012
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/permissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/permissions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
18087
19013
  return false;
18088
19014
  }
18089
19015
  }
@@ -18152,7 +19078,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
18152
19078
  vErrors.push(err4);
18153
19079
  }
18154
19080
  errors++;
18155
- validate61.errors = vErrors;
19081
+ validate66.errors = vErrors;
18156
19082
  return false;
18157
19083
  } else {
18158
19084
  errors = _errs19;
@@ -18229,7 +19155,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
18229
19155
  vErrors.push(err9);
18230
19156
  }
18231
19157
  errors++;
18232
- validate61.errors = vErrors;
19158
+ validate66.errors = vErrors;
18233
19159
  return false;
18234
19160
  } else {
18235
19161
  errors = _errs25;
@@ -18250,17 +19176,17 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
18250
19176
  let data9 = data1.createdAt;
18251
19177
  const _errs30 = errors;
18252
19178
  if (!(typeof data9 == "number" && (!(data9 % 1) && !isNaN(data9)) && isFinite(data9))) {
18253
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/createdAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
19179
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/createdAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
18254
19180
  return false;
18255
19181
  }
18256
19182
  if (errors === _errs30) {
18257
19183
  if (typeof data9 == "number" && isFinite(data9)) {
18258
19184
  if (data9 > 9007199254740991 || isNaN(data9)) {
18259
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/createdAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
19185
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/createdAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
18260
19186
  return false;
18261
19187
  } else {
18262
19188
  if (data9 < 0 || isNaN(data9)) {
18263
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/createdAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
19189
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/createdAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
18264
19190
  return false;
18265
19191
  }
18266
19192
  }
@@ -18275,17 +19201,17 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
18275
19201
  let data10 = data1.updatedAt;
18276
19202
  const _errs32 = errors;
18277
19203
  if (!(typeof data10 == "number" && (!(data10 % 1) && !isNaN(data10)) && isFinite(data10))) {
18278
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/updatedAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
19204
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/updatedAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
18279
19205
  return false;
18280
19206
  }
18281
19207
  if (errors === _errs32) {
18282
19208
  if (typeof data10 == "number" && isFinite(data10)) {
18283
19209
  if (data10 > 9007199254740991 || isNaN(data10)) {
18284
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/updatedAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
19210
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/updatedAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
18285
19211
  return false;
18286
19212
  } else {
18287
19213
  if (data10 < 0 || isNaN(data10)) {
18288
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/updatedAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
19214
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0 + "/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/properties/updatedAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
18289
19215
  return false;
18290
19216
  }
18291
19217
  }
@@ -18305,7 +19231,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
18305
19231
  }
18306
19232
  }
18307
19233
  } else {
18308
- validate61.errors = [{ instancePath: instancePath + "/apiKeys/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
19234
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/items/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
18309
19235
  return false;
18310
19236
  }
18311
19237
  }
@@ -18316,7 +19242,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
18316
19242
  }
18317
19243
  }
18318
19244
  } else {
18319
- validate61.errors = [{ instancePath: instancePath + "/apiKeys", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
19245
+ validate66.errors = [{ instancePath: instancePath + "/apiKeys", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/apiKeys/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
18320
19246
  return false;
18321
19247
  }
18322
19248
  }
@@ -18351,7 +19277,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
18351
19277
  }
18352
19278
  errors++;
18353
19279
  } else {
18354
- if (!pattern20.test(data11)) {
19280
+ if (!pattern29.test(data11)) {
18355
19281
  const err12 = { instancePath: instancePath + "/nextCursor", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/properties/nextCursor/anyOf/0/pattern", keyword: "pattern", params: { pattern: "^api_key_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^api_key_[A-Za-z0-9_-]+$"' };
18356
19282
  if (vErrors === null) {
18357
19283
  vErrors = [err12];
@@ -18394,7 +19320,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
18394
19320
  vErrors.push(err15);
18395
19321
  }
18396
19322
  errors++;
18397
- validate61.errors = vErrors;
19323
+ validate66.errors = vErrors;
18398
19324
  return false;
18399
19325
  } else {
18400
19326
  errors = _errs35;
@@ -18414,19 +19340,19 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
18414
19340
  }
18415
19341
  }
18416
19342
  } else {
18417
- validate61.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
19343
+ validate66.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyListResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
18418
19344
  return false;
18419
19345
  }
18420
19346
  }
18421
- validate61.errors = vErrors;
19347
+ validate66.errors = vErrors;
18422
19348
  return errors === 0;
18423
19349
  }
18424
- validate61.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18425
- function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19350
+ validate66.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19351
+ function validate67(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18426
19352
  ;
18427
19353
  let vErrors = null;
18428
19354
  let errors = 0;
18429
- const evaluated0 = validate62.evaluated;
19355
+ const evaluated0 = validate67.evaluated;
18430
19356
  if (evaluated0.dynamicProps) {
18431
19357
  evaluated0.props = void 0;
18432
19358
  }
@@ -18438,13 +19364,13 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
18438
19364
  if (data && typeof data == "object" && !Array.isArray(data)) {
18439
19365
  let missing0;
18440
19366
  if (data.id === void 0 && (missing0 = "id") || data.name === void 0 && (missing0 = "name") || data.obfuscatedValue === void 0 && (missing0 = "obfuscatedValue") || data.permissions === void 0 && (missing0 = "permissions") || data.lastUsedAt === void 0 && (missing0 = "lastUsedAt") || data.expiresAt === void 0 && (missing0 = "expiresAt") || data.createdAt === void 0 && (missing0 = "createdAt") || data.updatedAt === void 0 && (missing0 = "updatedAt")) {
18441
- validate62.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
19367
+ validate67.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
18442
19368
  return false;
18443
19369
  } else {
18444
19370
  const _errs2 = errors;
18445
19371
  for (const key0 in data) {
18446
19372
  if (!(key0 === "id" || key0 === "name" || key0 === "obfuscatedValue" || key0 === "permissions" || key0 === "lastUsedAt" || key0 === "expiresAt" || key0 === "createdAt" || key0 === "updatedAt")) {
18447
- validate62.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
19373
+ validate67.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
18448
19374
  return false;
18449
19375
  break;
18450
19376
  }
@@ -18456,21 +19382,21 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
18456
19382
  if (errors === _errs3) {
18457
19383
  if (typeof data0 === "string") {
18458
19384
  if (func1(data0) > 256) {
18459
- validate62.errors = [{ instancePath: instancePath + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/id/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
19385
+ validate67.errors = [{ instancePath: instancePath + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/id/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
18460
19386
  return false;
18461
19387
  } else {
18462
19388
  if (func1(data0) < 9) {
18463
- validate62.errors = [{ instancePath: instancePath + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/id/minLength", keyword: "minLength", params: { limit: 9 }, message: "must NOT have fewer than 9 characters" }];
19389
+ validate67.errors = [{ instancePath: instancePath + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/id/minLength", keyword: "minLength", params: { limit: 9 }, message: "must NOT have fewer than 9 characters" }];
18464
19390
  return false;
18465
19391
  } else {
18466
- if (!pattern20.test(data0)) {
18467
- validate62.errors = [{ instancePath: instancePath + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/id/pattern", keyword: "pattern", params: { pattern: "^api_key_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^api_key_[A-Za-z0-9_-]+$"' }];
19392
+ if (!pattern29.test(data0)) {
19393
+ validate67.errors = [{ instancePath: instancePath + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/id/pattern", keyword: "pattern", params: { pattern: "^api_key_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^api_key_[A-Za-z0-9_-]+$"' }];
18468
19394
  return false;
18469
19395
  }
18470
19396
  }
18471
19397
  }
18472
19398
  } else {
18473
- validate62.errors = [{ instancePath: instancePath + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19399
+ validate67.errors = [{ instancePath: instancePath + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18474
19400
  return false;
18475
19401
  }
18476
19402
  }
@@ -18485,21 +19411,21 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
18485
19411
  if (errors === _errs5) {
18486
19412
  if (typeof data1 === "string") {
18487
19413
  if (func1(data1) > 128) {
18488
- validate62.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/name/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
19414
+ validate67.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/name/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
18489
19415
  return false;
18490
19416
  } else {
18491
19417
  if (func1(data1) < 1) {
18492
- validate62.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/name/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
19418
+ validate67.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/name/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
18493
19419
  return false;
18494
19420
  } else {
18495
- if (!pattern22.test(data1)) {
18496
- validate62.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/name/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$" }, message: 'must match pattern "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$"' }];
19421
+ if (!pattern31.test(data1)) {
19422
+ validate67.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/name/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$" }, message: 'must match pattern "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$"' }];
18497
19423
  return false;
18498
19424
  }
18499
19425
  }
18500
19426
  }
18501
19427
  } else {
18502
- validate62.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19428
+ validate67.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18503
19429
  return false;
18504
19430
  }
18505
19431
  }
@@ -18514,21 +19440,21 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
18514
19440
  if (errors === _errs7) {
18515
19441
  if (typeof data2 === "string") {
18516
19442
  if (func1(data2) > 256) {
18517
- validate62.errors = [{ instancePath: instancePath + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/obfuscatedValue/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
19443
+ validate67.errors = [{ instancePath: instancePath + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/obfuscatedValue/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
18518
19444
  return false;
18519
19445
  } else {
18520
19446
  if (func1(data2) < 1) {
18521
- validate62.errors = [{ instancePath: instancePath + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/obfuscatedValue/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
19447
+ validate67.errors = [{ instancePath: instancePath + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/obfuscatedValue/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
18522
19448
  return false;
18523
19449
  } else {
18524
- if (!pattern23.test(data2)) {
18525
- validate62.errors = [{ instancePath: instancePath + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/obfuscatedValue/pattern", keyword: "pattern", params: { pattern: "^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$" }, message: 'must match pattern "^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$"' }];
19450
+ if (!pattern32.test(data2)) {
19451
+ validate67.errors = [{ instancePath: instancePath + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/obfuscatedValue/pattern", keyword: "pattern", params: { pattern: "^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$" }, message: 'must match pattern "^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$"' }];
18526
19452
  return false;
18527
19453
  }
18528
19454
  }
18529
19455
  }
18530
19456
  } else {
18531
- validate62.errors = [{ instancePath: instancePath + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/obfuscatedValue/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19457
+ validate67.errors = [{ instancePath: instancePath + "/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/obfuscatedValue/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18532
19458
  return false;
18533
19459
  }
18534
19460
  }
@@ -18543,7 +19469,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
18543
19469
  if (errors === _errs9) {
18544
19470
  if (Array.isArray(data3)) {
18545
19471
  if (data3.length > 100) {
18546
- validate62.errors = [{ instancePath: instancePath + "/permissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/permissions/maxItems", keyword: "maxItems", params: { limit: 100 }, message: "must NOT have more than 100 items" }];
19472
+ validate67.errors = [{ instancePath: instancePath + "/permissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/permissions/maxItems", keyword: "maxItems", params: { limit: 100 }, message: "must NOT have more than 100 items" }];
18547
19473
  return false;
18548
19474
  } else {
18549
19475
  var valid2 = true;
@@ -18554,21 +19480,21 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
18554
19480
  if (errors === _errs11) {
18555
19481
  if (typeof data4 === "string") {
18556
19482
  if (func1(data4) > 128) {
18557
- validate62.errors = [{ instancePath: instancePath + "/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/permissions/items/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
19483
+ validate67.errors = [{ instancePath: instancePath + "/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/permissions/items/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
18558
19484
  return false;
18559
19485
  } else {
18560
19486
  if (func1(data4) < 1) {
18561
- validate62.errors = [{ instancePath: instancePath + "/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/permissions/items/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
19487
+ validate67.errors = [{ instancePath: instancePath + "/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/permissions/items/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
18562
19488
  return false;
18563
19489
  } else {
18564
- if (!pattern24.test(data4)) {
18565
- validate62.errors = [{ instancePath: instancePath + "/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/permissions/items/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e]+$" }, message: 'must match pattern "^[\\x21-\\x7e]+$"' }];
19490
+ if (!pattern33.test(data4)) {
19491
+ validate67.errors = [{ instancePath: instancePath + "/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/permissions/items/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e]+$" }, message: 'must match pattern "^[\\x21-\\x7e]+$"' }];
18566
19492
  return false;
18567
19493
  }
18568
19494
  }
18569
19495
  }
18570
19496
  } else {
18571
- validate62.errors = [{ instancePath: instancePath + "/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/permissions/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19497
+ validate67.errors = [{ instancePath: instancePath + "/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/permissions/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18572
19498
  return false;
18573
19499
  }
18574
19500
  }
@@ -18579,7 +19505,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
18579
19505
  }
18580
19506
  }
18581
19507
  } else {
18582
- validate62.errors = [{ instancePath: instancePath + "/permissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/permissions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
19508
+ validate67.errors = [{ instancePath: instancePath + "/permissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/permissions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
18583
19509
  return false;
18584
19510
  }
18585
19511
  }
@@ -18648,7 +19574,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
18648
19574
  vErrors.push(err4);
18649
19575
  }
18650
19576
  errors++;
18651
- validate62.errors = vErrors;
19577
+ validate67.errors = vErrors;
18652
19578
  return false;
18653
19579
  } else {
18654
19580
  errors = _errs14;
@@ -18725,7 +19651,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
18725
19651
  vErrors.push(err9);
18726
19652
  }
18727
19653
  errors++;
18728
- validate62.errors = vErrors;
19654
+ validate67.errors = vErrors;
18729
19655
  return false;
18730
19656
  } else {
18731
19657
  errors = _errs20;
@@ -18746,17 +19672,17 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
18746
19672
  let data7 = data.createdAt;
18747
19673
  const _errs25 = errors;
18748
19674
  if (!(typeof data7 == "number" && (!(data7 % 1) && !isNaN(data7)) && isFinite(data7))) {
18749
- validate62.errors = [{ instancePath: instancePath + "/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/createdAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
19675
+ validate67.errors = [{ instancePath: instancePath + "/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/createdAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
18750
19676
  return false;
18751
19677
  }
18752
19678
  if (errors === _errs25) {
18753
19679
  if (typeof data7 == "number" && isFinite(data7)) {
18754
19680
  if (data7 > 9007199254740991 || isNaN(data7)) {
18755
- validate62.errors = [{ instancePath: instancePath + "/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/createdAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
19681
+ validate67.errors = [{ instancePath: instancePath + "/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/createdAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
18756
19682
  return false;
18757
19683
  } else {
18758
19684
  if (data7 < 0 || isNaN(data7)) {
18759
- validate62.errors = [{ instancePath: instancePath + "/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/createdAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
19685
+ validate67.errors = [{ instancePath: instancePath + "/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/createdAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
18760
19686
  return false;
18761
19687
  }
18762
19688
  }
@@ -18771,17 +19697,17 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
18771
19697
  let data8 = data.updatedAt;
18772
19698
  const _errs27 = errors;
18773
19699
  if (!(typeof data8 == "number" && (!(data8 % 1) && !isNaN(data8)) && isFinite(data8))) {
18774
- validate62.errors = [{ instancePath: instancePath + "/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/updatedAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
19700
+ validate67.errors = [{ instancePath: instancePath + "/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/updatedAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
18775
19701
  return false;
18776
19702
  }
18777
19703
  if (errors === _errs27) {
18778
19704
  if (typeof data8 == "number" && isFinite(data8)) {
18779
19705
  if (data8 > 9007199254740991 || isNaN(data8)) {
18780
- validate62.errors = [{ instancePath: instancePath + "/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/updatedAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
19706
+ validate67.errors = [{ instancePath: instancePath + "/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/updatedAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
18781
19707
  return false;
18782
19708
  } else {
18783
19709
  if (data8 < 0 || isNaN(data8)) {
18784
- validate62.errors = [{ instancePath: instancePath + "/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/updatedAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
19710
+ validate67.errors = [{ instancePath: instancePath + "/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/properties/updatedAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
18785
19711
  return false;
18786
19712
  }
18787
19713
  }
@@ -18801,19 +19727,19 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
18801
19727
  }
18802
19728
  }
18803
19729
  } else {
18804
- validate62.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
19730
+ validate67.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMetadata/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
18805
19731
  return false;
18806
19732
  }
18807
19733
  }
18808
- validate62.errors = vErrors;
19734
+ validate67.errors = vErrors;
18809
19735
  return errors === 0;
18810
19736
  }
18811
- validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18812
- function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19737
+ validate67.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19738
+ function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18813
19739
  ;
18814
19740
  let vErrors = null;
18815
19741
  let errors = 0;
18816
- const evaluated0 = validate63.evaluated;
19742
+ const evaluated0 = validate68.evaluated;
18817
19743
  if (evaluated0.dynamicProps) {
18818
19744
  evaluated0.props = void 0;
18819
19745
  }
@@ -18825,13 +19751,13 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
18825
19751
  if (data && typeof data == "object" && !Array.isArray(data)) {
18826
19752
  let missing0;
18827
19753
  if (data.requestId === void 0 && (missing0 = "requestId") || data.name === void 0 && (missing0 = "name")) {
18828
- validate63.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
19754
+ validate68.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
18829
19755
  return false;
18830
19756
  } else {
18831
19757
  const _errs2 = errors;
18832
19758
  for (const key0 in data) {
18833
19759
  if (!(key0 === "requestId" || key0 === "name" || key0 === "expiresAt")) {
18834
- validate63.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
19760
+ validate68.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
18835
19761
  return false;
18836
19762
  break;
18837
19763
  }
@@ -18842,12 +19768,12 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
18842
19768
  const _errs3 = errors;
18843
19769
  if (errors === _errs3) {
18844
19770
  if (typeof data0 === "string") {
18845
- if (!pattern19.test(data0)) {
18846
- validate63.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/requestId/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
19771
+ if (!pattern5.test(data0)) {
19772
+ validate68.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/requestId/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
18847
19773
  return false;
18848
19774
  }
18849
19775
  } else {
18850
- validate63.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/requestId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19776
+ validate68.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/requestId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18851
19777
  return false;
18852
19778
  }
18853
19779
  }
@@ -18862,21 +19788,21 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
18862
19788
  if (errors === _errs5) {
18863
19789
  if (typeof data1 === "string") {
18864
19790
  if (func1(data1) > 128) {
18865
- validate63.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/name/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
19791
+ validate68.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/name/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
18866
19792
  return false;
18867
19793
  } else {
18868
19794
  if (func1(data1) < 1) {
18869
- validate63.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/name/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
19795
+ validate68.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/name/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
18870
19796
  return false;
18871
19797
  } else {
18872
- if (!pattern22.test(data1)) {
18873
- validate63.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/name/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$" }, message: 'must match pattern "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$"' }];
19798
+ if (!pattern31.test(data1)) {
19799
+ validate68.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/name/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$" }, message: 'must match pattern "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$"' }];
18874
19800
  return false;
18875
19801
  }
18876
19802
  }
18877
19803
  }
18878
19804
  } else {
18879
- validate63.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19805
+ validate68.errors = [{ instancePath: instancePath + "/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18880
19806
  return false;
18881
19807
  }
18882
19808
  }
@@ -18889,17 +19815,17 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
18889
19815
  let data2 = data.expiresAt;
18890
19816
  const _errs7 = errors;
18891
19817
  if (!(typeof data2 == "number" && (!(data2 % 1) && !isNaN(data2)) && isFinite(data2))) {
18892
- validate63.errors = [{ instancePath: instancePath + "/expiresAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/expiresAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
19818
+ validate68.errors = [{ instancePath: instancePath + "/expiresAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/expiresAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
18893
19819
  return false;
18894
19820
  }
18895
19821
  if (errors === _errs7) {
18896
19822
  if (typeof data2 == "number" && isFinite(data2)) {
18897
19823
  if (data2 > 9007199254740991 || isNaN(data2)) {
18898
- validate63.errors = [{ instancePath: instancePath + "/expiresAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/expiresAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
19824
+ validate68.errors = [{ instancePath: instancePath + "/expiresAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/expiresAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
18899
19825
  return false;
18900
19826
  } else {
18901
19827
  if (data2 < 0 || isNaN(data2)) {
18902
- validate63.errors = [{ instancePath: instancePath + "/expiresAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/expiresAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
19828
+ validate68.errors = [{ instancePath: instancePath + "/expiresAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/properties/expiresAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
18903
19829
  return false;
18904
19830
  }
18905
19831
  }
@@ -18914,20 +19840,20 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
18914
19840
  }
18915
19841
  }
18916
19842
  } else {
18917
- validate63.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
19843
+ validate68.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
18918
19844
  return false;
18919
19845
  }
18920
19846
  }
18921
- validate63.errors = vErrors;
19847
+ validate68.errors = vErrors;
18922
19848
  return errors === 0;
18923
19849
  }
18924
- validate63.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18925
- var pattern36 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
18926
- function validate64(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19850
+ validate68.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19851
+ var pattern45 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
19852
+ function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18927
19853
  ;
18928
19854
  let vErrors = null;
18929
19855
  let errors = 0;
18930
- const evaluated0 = validate64.evaluated;
19856
+ const evaluated0 = validate69.evaluated;
18931
19857
  if (evaluated0.dynamicProps) {
18932
19858
  evaluated0.props = void 0;
18933
19859
  }
@@ -18939,13 +19865,13 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
18939
19865
  if (data && typeof data == "object" && !Array.isArray(data)) {
18940
19866
  let missing0;
18941
19867
  if (data.apiKey === void 0 && (missing0 = "apiKey") || data.secret === void 0 && (missing0 = "secret")) {
18942
- validate64.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
19868
+ validate69.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
18943
19869
  return false;
18944
19870
  } else {
18945
19871
  const _errs2 = errors;
18946
19872
  for (const key0 in data) {
18947
19873
  if (!(key0 === "apiKey" || key0 === "secret")) {
18948
- validate64.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
19874
+ validate69.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
18949
19875
  return false;
18950
19876
  break;
18951
19877
  }
@@ -18958,13 +19884,13 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
18958
19884
  if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
18959
19885
  let missing1;
18960
19886
  if (data0.id === void 0 && (missing1 = "id") || data0.name === void 0 && (missing1 = "name") || data0.obfuscatedValue === void 0 && (missing1 = "obfuscatedValue") || data0.permissions === void 0 && (missing1 = "permissions") || data0.lastUsedAt === void 0 && (missing1 = "lastUsedAt") || data0.expiresAt === void 0 && (missing1 = "expiresAt") || data0.createdAt === void 0 && (missing1 = "createdAt") || data0.updatedAt === void 0 && (missing1 = "updatedAt")) {
18961
- validate64.errors = [{ instancePath: instancePath + "/apiKey", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
19887
+ validate69.errors = [{ instancePath: instancePath + "/apiKey", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
18962
19888
  return false;
18963
19889
  } else {
18964
19890
  const _errs5 = errors;
18965
19891
  for (const key1 in data0) {
18966
19892
  if (!(key1 === "id" || key1 === "name" || key1 === "obfuscatedValue" || key1 === "permissions" || key1 === "lastUsedAt" || key1 === "expiresAt" || key1 === "createdAt" || key1 === "updatedAt")) {
18967
- validate64.errors = [{ instancePath: instancePath + "/apiKey", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
19893
+ validate69.errors = [{ instancePath: instancePath + "/apiKey", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
18968
19894
  return false;
18969
19895
  break;
18970
19896
  }
@@ -18976,21 +19902,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
18976
19902
  if (errors === _errs6) {
18977
19903
  if (typeof data1 === "string") {
18978
19904
  if (func1(data1) > 256) {
18979
- validate64.errors = [{ instancePath: instancePath + "/apiKey/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/id/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
19905
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/id/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
18980
19906
  return false;
18981
19907
  } else {
18982
19908
  if (func1(data1) < 9) {
18983
- validate64.errors = [{ instancePath: instancePath + "/apiKey/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/id/minLength", keyword: "minLength", params: { limit: 9 }, message: "must NOT have fewer than 9 characters" }];
19909
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/id/minLength", keyword: "minLength", params: { limit: 9 }, message: "must NOT have fewer than 9 characters" }];
18984
19910
  return false;
18985
19911
  } else {
18986
- if (!pattern20.test(data1)) {
18987
- validate64.errors = [{ instancePath: instancePath + "/apiKey/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/id/pattern", keyword: "pattern", params: { pattern: "^api_key_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^api_key_[A-Za-z0-9_-]+$"' }];
19912
+ if (!pattern29.test(data1)) {
19913
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/id/pattern", keyword: "pattern", params: { pattern: "^api_key_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^api_key_[A-Za-z0-9_-]+$"' }];
18988
19914
  return false;
18989
19915
  }
18990
19916
  }
18991
19917
  }
18992
19918
  } else {
18993
- validate64.errors = [{ instancePath: instancePath + "/apiKey/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19919
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
18994
19920
  return false;
18995
19921
  }
18996
19922
  }
@@ -19005,21 +19931,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
19005
19931
  if (errors === _errs8) {
19006
19932
  if (typeof data2 === "string") {
19007
19933
  if (func1(data2) > 128) {
19008
- validate64.errors = [{ instancePath: instancePath + "/apiKey/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/name/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
19934
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/name/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
19009
19935
  return false;
19010
19936
  } else {
19011
19937
  if (func1(data2) < 1) {
19012
- validate64.errors = [{ instancePath: instancePath + "/apiKey/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/name/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
19938
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/name/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
19013
19939
  return false;
19014
19940
  } else {
19015
- if (!pattern22.test(data2)) {
19016
- validate64.errors = [{ instancePath: instancePath + "/apiKey/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/name/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$" }, message: 'must match pattern "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$"' }];
19941
+ if (!pattern31.test(data2)) {
19942
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/name/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$" }, message: 'must match pattern "^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$"' }];
19017
19943
  return false;
19018
19944
  }
19019
19945
  }
19020
19946
  }
19021
19947
  } else {
19022
- validate64.errors = [{ instancePath: instancePath + "/apiKey/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19948
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/name", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/name/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19023
19949
  return false;
19024
19950
  }
19025
19951
  }
@@ -19034,21 +19960,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
19034
19960
  if (errors === _errs10) {
19035
19961
  if (typeof data3 === "string") {
19036
19962
  if (func1(data3) > 256) {
19037
- validate64.errors = [{ instancePath: instancePath + "/apiKey/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/obfuscatedValue/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
19963
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/obfuscatedValue/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
19038
19964
  return false;
19039
19965
  } else {
19040
19966
  if (func1(data3) < 1) {
19041
- validate64.errors = [{ instancePath: instancePath + "/apiKey/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/obfuscatedValue/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
19967
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/obfuscatedValue/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
19042
19968
  return false;
19043
19969
  } else {
19044
- if (!pattern23.test(data3)) {
19045
- validate64.errors = [{ instancePath: instancePath + "/apiKey/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/obfuscatedValue/pattern", keyword: "pattern", params: { pattern: "^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$" }, message: 'must match pattern "^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$"' }];
19970
+ if (!pattern32.test(data3)) {
19971
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/obfuscatedValue/pattern", keyword: "pattern", params: { pattern: "^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$" }, message: 'must match pattern "^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$"' }];
19046
19972
  return false;
19047
19973
  }
19048
19974
  }
19049
19975
  }
19050
19976
  } else {
19051
- validate64.errors = [{ instancePath: instancePath + "/apiKey/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/obfuscatedValue/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19977
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/obfuscatedValue", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/obfuscatedValue/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19052
19978
  return false;
19053
19979
  }
19054
19980
  }
@@ -19063,7 +19989,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
19063
19989
  if (errors === _errs12) {
19064
19990
  if (Array.isArray(data4)) {
19065
19991
  if (data4.length > 100) {
19066
- validate64.errors = [{ instancePath: instancePath + "/apiKey/permissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/permissions/maxItems", keyword: "maxItems", params: { limit: 100 }, message: "must NOT have more than 100 items" }];
19992
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/permissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/permissions/maxItems", keyword: "maxItems", params: { limit: 100 }, message: "must NOT have more than 100 items" }];
19067
19993
  return false;
19068
19994
  } else {
19069
19995
  var valid3 = true;
@@ -19074,21 +20000,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
19074
20000
  if (errors === _errs14) {
19075
20001
  if (typeof data5 === "string") {
19076
20002
  if (func1(data5) > 128) {
19077
- validate64.errors = [{ instancePath: instancePath + "/apiKey/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/permissions/items/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
20003
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/permissions/items/maxLength", keyword: "maxLength", params: { limit: 128 }, message: "must NOT have more than 128 characters" }];
19078
20004
  return false;
19079
20005
  } else {
19080
20006
  if (func1(data5) < 1) {
19081
- validate64.errors = [{ instancePath: instancePath + "/apiKey/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/permissions/items/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
20007
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/permissions/items/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
19082
20008
  return false;
19083
20009
  } else {
19084
- if (!pattern24.test(data5)) {
19085
- validate64.errors = [{ instancePath: instancePath + "/apiKey/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/permissions/items/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e]+$" }, message: 'must match pattern "^[\\x21-\\x7e]+$"' }];
20010
+ if (!pattern33.test(data5)) {
20011
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/permissions/items/pattern", keyword: "pattern", params: { pattern: "^[\\x21-\\x7e]+$" }, message: 'must match pattern "^[\\x21-\\x7e]+$"' }];
19086
20012
  return false;
19087
20013
  }
19088
20014
  }
19089
20015
  }
19090
20016
  } else {
19091
- validate64.errors = [{ instancePath: instancePath + "/apiKey/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/permissions/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
20017
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/permissions/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/permissions/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19092
20018
  return false;
19093
20019
  }
19094
20020
  }
@@ -19099,7 +20025,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
19099
20025
  }
19100
20026
  }
19101
20027
  } else {
19102
- validate64.errors = [{ instancePath: instancePath + "/apiKey/permissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/permissions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
20028
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/permissions", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/permissions/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
19103
20029
  return false;
19104
20030
  }
19105
20031
  }
@@ -19168,7 +20094,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
19168
20094
  vErrors.push(err4);
19169
20095
  }
19170
20096
  errors++;
19171
- validate64.errors = vErrors;
20097
+ validate69.errors = vErrors;
19172
20098
  return false;
19173
20099
  } else {
19174
20100
  errors = _errs17;
@@ -19245,7 +20171,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
19245
20171
  vErrors.push(err9);
19246
20172
  }
19247
20173
  errors++;
19248
- validate64.errors = vErrors;
20174
+ validate69.errors = vErrors;
19249
20175
  return false;
19250
20176
  } else {
19251
20177
  errors = _errs23;
@@ -19266,17 +20192,17 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
19266
20192
  let data8 = data0.createdAt;
19267
20193
  const _errs28 = errors;
19268
20194
  if (!(typeof data8 == "number" && (!(data8 % 1) && !isNaN(data8)) && isFinite(data8))) {
19269
- validate64.errors = [{ instancePath: instancePath + "/apiKey/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/createdAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
20195
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/createdAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
19270
20196
  return false;
19271
20197
  }
19272
20198
  if (errors === _errs28) {
19273
20199
  if (typeof data8 == "number" && isFinite(data8)) {
19274
20200
  if (data8 > 9007199254740991 || isNaN(data8)) {
19275
- validate64.errors = [{ instancePath: instancePath + "/apiKey/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/createdAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
20201
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/createdAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
19276
20202
  return false;
19277
20203
  } else {
19278
20204
  if (data8 < 0 || isNaN(data8)) {
19279
- validate64.errors = [{ instancePath: instancePath + "/apiKey/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/createdAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
20205
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/createdAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/createdAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
19280
20206
  return false;
19281
20207
  }
19282
20208
  }
@@ -19291,17 +20217,17 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
19291
20217
  let data9 = data0.updatedAt;
19292
20218
  const _errs30 = errors;
19293
20219
  if (!(typeof data9 == "number" && (!(data9 % 1) && !isNaN(data9)) && isFinite(data9))) {
19294
- validate64.errors = [{ instancePath: instancePath + "/apiKey/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/updatedAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
20220
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/updatedAt/type", keyword: "type", params: { type: "integer" }, message: "must be integer" }];
19295
20221
  return false;
19296
20222
  }
19297
20223
  if (errors === _errs30) {
19298
20224
  if (typeof data9 == "number" && isFinite(data9)) {
19299
20225
  if (data9 > 9007199254740991 || isNaN(data9)) {
19300
- validate64.errors = [{ instancePath: instancePath + "/apiKey/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/updatedAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
20226
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/updatedAt/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" }];
19301
20227
  return false;
19302
20228
  } else {
19303
20229
  if (data9 < 0 || isNaN(data9)) {
19304
- validate64.errors = [{ instancePath: instancePath + "/apiKey/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/updatedAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
20230
+ validate69.errors = [{ instancePath: instancePath + "/apiKey/updatedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/properties/updatedAt/minimum", keyword: "minimum", params: { comparison: ">=", limit: 0 }, message: "must be >= 0" }];
19305
20231
  return false;
19306
20232
  }
19307
20233
  }
@@ -19321,7 +20247,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
19321
20247
  }
19322
20248
  }
19323
20249
  } else {
19324
- validate64.errors = [{ instancePath: instancePath + "/apiKey", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
20250
+ validate69.errors = [{ instancePath: instancePath + "/apiKey", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/apiKey/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
19325
20251
  return false;
19326
20252
  }
19327
20253
  }
@@ -19336,21 +20262,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
19336
20262
  if (errors === _errs32) {
19337
20263
  if (typeof data10 === "string") {
19338
20264
  if (func1(data10) > 4096) {
19339
- validate64.errors = [{ instancePath: instancePath + "/secret", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/secret/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" }];
20265
+ validate69.errors = [{ instancePath: instancePath + "/secret", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/secret/maxLength", keyword: "maxLength", params: { limit: 4096 }, message: "must NOT have more than 4096 characters" }];
19340
20266
  return false;
19341
20267
  } else {
19342
20268
  if (func1(data10) < 4) {
19343
- validate64.errors = [{ instancePath: instancePath + "/secret", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/secret/minLength", keyword: "minLength", params: { limit: 4 }, message: "must NOT have fewer than 4 characters" }];
20269
+ validate69.errors = [{ instancePath: instancePath + "/secret", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/secret/minLength", keyword: "minLength", params: { limit: 4 }, message: "must NOT have fewer than 4 characters" }];
19344
20270
  return false;
19345
20271
  } else {
19346
- if (!pattern36.test(data10)) {
19347
- validate64.errors = [{ instancePath: instancePath + "/secret", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/secret/pattern", keyword: "pattern", params: { pattern: "^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$" }, message: 'must match pattern "^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$"' }];
20272
+ if (!pattern45.test(data10)) {
20273
+ validate69.errors = [{ instancePath: instancePath + "/secret", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/secret/pattern", keyword: "pattern", params: { pattern: "^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$" }, message: 'must match pattern "^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$"' }];
19348
20274
  return false;
19349
20275
  }
19350
20276
  }
19351
20277
  }
19352
20278
  } else {
19353
- validate64.errors = [{ instancePath: instancePath + "/secret", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/secret/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
20279
+ validate69.errors = [{ instancePath: instancePath + "/secret", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/properties/secret/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19354
20280
  return false;
19355
20281
  }
19356
20282
  }
@@ -19362,19 +20288,19 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
19362
20288
  }
19363
20289
  }
19364
20290
  } else {
19365
- validate64.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
20291
+ validate69.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyMintResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
19366
20292
  return false;
19367
20293
  }
19368
20294
  }
19369
- validate64.errors = vErrors;
20295
+ validate69.errors = vErrors;
19370
20296
  return errors === 0;
19371
20297
  }
19372
- validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19373
- function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20298
+ validate69.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
20299
+ function validate70(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19374
20300
  ;
19375
20301
  let vErrors = null;
19376
20302
  let errors = 0;
19377
- const evaluated0 = validate65.evaluated;
20303
+ const evaluated0 = validate70.evaluated;
19378
20304
  if (evaluated0.dynamicProps) {
19379
20305
  evaluated0.props = void 0;
19380
20306
  }
@@ -19386,13 +20312,13 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
19386
20312
  if (data && typeof data == "object" && !Array.isArray(data)) {
19387
20313
  let missing0;
19388
20314
  if (data.requestId === void 0 && (missing0 = "requestId")) {
19389
- validate65.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
20315
+ validate70.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeRequest/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
19390
20316
  return false;
19391
20317
  } else {
19392
20318
  const _errs2 = errors;
19393
20319
  for (const key0 in data) {
19394
20320
  if (!(key0 === "requestId")) {
19395
- validate65.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
20321
+ validate70.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeRequest/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
19396
20322
  return false;
19397
20323
  break;
19398
20324
  }
@@ -19403,12 +20329,12 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
19403
20329
  const _errs3 = errors;
19404
20330
  if (errors === _errs3) {
19405
20331
  if (typeof data0 === "string") {
19406
- if (!pattern19.test(data0)) {
19407
- validate65.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeRequest/properties/requestId/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
20332
+ if (!pattern5.test(data0)) {
20333
+ validate70.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeRequest/properties/requestId/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
19408
20334
  return false;
19409
20335
  }
19410
20336
  } else {
19411
- validate65.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeRequest/properties/requestId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
20337
+ validate70.errors = [{ instancePath: instancePath + "/requestId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeRequest/properties/requestId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19412
20338
  return false;
19413
20339
  }
19414
20340
  }
@@ -19416,19 +20342,19 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
19416
20342
  }
19417
20343
  }
19418
20344
  } else {
19419
- validate65.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
20345
+ validate70.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeRequest/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
19420
20346
  return false;
19421
20347
  }
19422
20348
  }
19423
- validate65.errors = vErrors;
20349
+ validate70.errors = vErrors;
19424
20350
  return errors === 0;
19425
20351
  }
19426
- validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19427
- function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20352
+ validate70.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
20353
+ function validate71(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19428
20354
  ;
19429
20355
  let vErrors = null;
19430
20356
  let errors = 0;
19431
- const evaluated0 = validate66.evaluated;
20357
+ const evaluated0 = validate71.evaluated;
19432
20358
  if (evaluated0.dynamicProps) {
19433
20359
  evaluated0.props = void 0;
19434
20360
  }
@@ -19440,13 +20366,13 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
19440
20366
  if (data && typeof data == "object" && !Array.isArray(data)) {
19441
20367
  let missing0;
19442
20368
  if (data.apiKeyId === void 0 && (missing0 = "apiKeyId") || data.revoked === void 0 && (missing0 = "revoked")) {
19443
- validate66.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
20369
+ validate71.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
19444
20370
  return false;
19445
20371
  } else {
19446
20372
  const _errs2 = errors;
19447
20373
  for (const key0 in data) {
19448
20374
  if (!(key0 === "apiKeyId" || key0 === "revoked")) {
19449
- validate66.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
20375
+ validate71.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
19450
20376
  return false;
19451
20377
  break;
19452
20378
  }
@@ -19458,21 +20384,21 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
19458
20384
  if (errors === _errs3) {
19459
20385
  if (typeof data0 === "string") {
19460
20386
  if (func1(data0) > 256) {
19461
- validate66.errors = [{ instancePath: instancePath + "/apiKeyId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/properties/apiKeyId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
20387
+ validate71.errors = [{ instancePath: instancePath + "/apiKeyId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/properties/apiKeyId/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
19462
20388
  return false;
19463
20389
  } else {
19464
20390
  if (func1(data0) < 9) {
19465
- validate66.errors = [{ instancePath: instancePath + "/apiKeyId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/properties/apiKeyId/minLength", keyword: "minLength", params: { limit: 9 }, message: "must NOT have fewer than 9 characters" }];
20391
+ validate71.errors = [{ instancePath: instancePath + "/apiKeyId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/properties/apiKeyId/minLength", keyword: "minLength", params: { limit: 9 }, message: "must NOT have fewer than 9 characters" }];
19466
20392
  return false;
19467
20393
  } else {
19468
- if (!pattern20.test(data0)) {
19469
- validate66.errors = [{ instancePath: instancePath + "/apiKeyId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/properties/apiKeyId/pattern", keyword: "pattern", params: { pattern: "^api_key_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^api_key_[A-Za-z0-9_-]+$"' }];
20394
+ if (!pattern29.test(data0)) {
20395
+ validate71.errors = [{ instancePath: instancePath + "/apiKeyId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/properties/apiKeyId/pattern", keyword: "pattern", params: { pattern: "^api_key_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^api_key_[A-Za-z0-9_-]+$"' }];
19470
20396
  return false;
19471
20397
  }
19472
20398
  }
19473
20399
  }
19474
20400
  } else {
19475
- validate66.errors = [{ instancePath: instancePath + "/apiKeyId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/properties/apiKeyId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
20401
+ validate71.errors = [{ instancePath: instancePath + "/apiKeyId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/properties/apiKeyId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19476
20402
  return false;
19477
20403
  }
19478
20404
  }
@@ -19485,11 +20411,11 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
19485
20411
  let data1 = data.revoked;
19486
20412
  const _errs5 = errors;
19487
20413
  if (typeof data1 !== "boolean") {
19488
- validate66.errors = [{ instancePath: instancePath + "/revoked", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/properties/revoked/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
20414
+ validate71.errors = [{ instancePath: instancePath + "/revoked", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/properties/revoked/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" }];
19489
20415
  return false;
19490
20416
  }
19491
20417
  if (true !== data1) {
19492
- validate66.errors = [{ instancePath: instancePath + "/revoked", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/properties/revoked/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
20418
+ validate71.errors = [{ instancePath: instancePath + "/revoked", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/properties/revoked/const", keyword: "const", params: { allowedValue: true }, message: "must be equal to constant" }];
19493
20419
  return false;
19494
20420
  }
19495
20421
  var valid1 = _errs5 === errors;
@@ -19500,19 +20426,19 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
19500
20426
  }
19501
20427
  }
19502
20428
  } else {
19503
- validate66.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
20429
+ validate71.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/UserApiKeyRevokeResponse/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
19504
20430
  return false;
19505
20431
  }
19506
20432
  }
19507
- validate66.errors = vErrors;
20433
+ validate71.errors = vErrors;
19508
20434
  return errors === 0;
19509
20435
  }
19510
- validate66.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19511
- function validate67(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20436
+ validate71.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
20437
+ function validate72(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19512
20438
  ;
19513
20439
  let vErrors = null;
19514
20440
  let errors = 0;
19515
- const evaluated0 = validate67.evaluated;
20441
+ const evaluated0 = validate72.evaluated;
19516
20442
  if (evaluated0.dynamicProps) {
19517
20443
  evaluated0.props = void 0;
19518
20444
  }
@@ -19524,13 +20450,13 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
19524
20450
  if (data && typeof data == "object" && !Array.isArray(data)) {
19525
20451
  let missing0;
19526
20452
  if (data.error === void 0 && (missing0 = "error")) {
19527
- validate67.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationDisabled/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
20453
+ validate72.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationDisabled/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
19528
20454
  return false;
19529
20455
  } else {
19530
20456
  const _errs2 = errors;
19531
20457
  for (const key0 in data) {
19532
20458
  if (!(key0 === "error")) {
19533
- validate67.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationDisabled/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
20459
+ validate72.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationDisabled/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
19534
20460
  return false;
19535
20461
  break;
19536
20462
  }
@@ -19539,30 +20465,30 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
19539
20465
  if (data.error !== void 0) {
19540
20466
  let data0 = data.error;
19541
20467
  if (typeof data0 !== "string") {
19542
- validate67.errors = [{ instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationDisabled/properties/error/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
20468
+ validate72.errors = [{ instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationDisabled/properties/error/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19543
20469
  return false;
19544
20470
  }
19545
20471
  if ("Not found" !== data0) {
19546
- validate67.errors = [{ instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationDisabled/properties/error/const", keyword: "const", params: { allowedValue: "Not found" }, message: "must be equal to constant" }];
20472
+ validate72.errors = [{ instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationDisabled/properties/error/const", keyword: "const", params: { allowedValue: "Not found" }, message: "must be equal to constant" }];
19547
20473
  return false;
19548
20474
  }
19549
20475
  }
19550
20476
  }
19551
20477
  }
19552
20478
  } else {
19553
- validate67.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationDisabled/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
20479
+ validate72.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationDisabled/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
19554
20480
  return false;
19555
20481
  }
19556
20482
  }
19557
- validate67.errors = vErrors;
20483
+ validate72.errors = vErrors;
19558
20484
  return errors === 0;
19559
20485
  }
19560
- validate67.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19561
- function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20486
+ validate72.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
20487
+ function validate73(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19562
20488
  ;
19563
20489
  let vErrors = null;
19564
20490
  let errors = 0;
19565
- const evaluated0 = validate68.evaluated;
20491
+ const evaluated0 = validate73.evaluated;
19566
20492
  if (evaluated0.dynamicProps) {
19567
20493
  evaluated0.props = void 0;
19568
20494
  }
@@ -19711,7 +20637,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
19711
20637
  vErrors.push(err10);
19712
20638
  }
19713
20639
  errors++;
19714
- validate68.errors = vErrors;
20640
+ validate73.errors = vErrors;
19715
20641
  return false;
19716
20642
  } else {
19717
20643
  errors = _errs1;
@@ -19723,18 +20649,18 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
19723
20649
  }
19724
20650
  }
19725
20651
  }
19726
- validate68.errors = vErrors;
20652
+ validate73.errors = vErrors;
19727
20653
  evaluated0.props = props0;
19728
20654
  return errors === 0;
19729
20655
  }
19730
- validate68.evaluated = { "dynamicProps": true, "dynamicItems": false };
19731
- var schema129 = { "type": "object", "properties": { "protocol_version": { "type": "number", "const": 1 }, "issuer": { "type": "string", "format": "uri" }, "client_id": { "type": "string", "maxLength": 256, "pattern": "^client_[A-Za-z0-9_-]+$" }, "default_scopes": { "minItems": 4, "maxItems": 4, "type": "array", "items": { "type": "string", "enum": ["openid", "profile", "email", "offline_access"] } } }, "required": ["protocol_version", "issuer", "client_id", "default_scopes"], "additionalProperties": false, "x-primitive-runtime-refinements": ["canonical_https_origin", "exact_workos_connect_device_scopes"] };
19732
- var pattern39 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
19733
- function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20656
+ validate73.evaluated = { "dynamicProps": true, "dynamicItems": false };
20657
+ var schema139 = { "type": "object", "properties": { "protocol_version": { "type": "number", "const": 1 }, "issuer": { "type": "string", "format": "uri" }, "client_id": { "type": "string", "maxLength": 256, "pattern": "^client_[A-Za-z0-9_-]+$" }, "default_scopes": { "minItems": 4, "maxItems": 4, "type": "array", "items": { "type": "string", "enum": ["openid", "profile", "email", "offline_access"] } } }, "required": ["protocol_version", "issuer", "client_id", "default_scopes"], "additionalProperties": false, "x-primitive-runtime-refinements": ["canonical_https_origin", "exact_workos_connect_device_scopes"] };
20658
+ var pattern48 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
20659
+ function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19734
20660
  ;
19735
20661
  let vErrors = null;
19736
20662
  let errors = 0;
19737
- const evaluated0 = validate69.evaluated;
20663
+ const evaluated0 = validate74.evaluated;
19738
20664
  if (evaluated0.dynamicProps) {
19739
20665
  evaluated0.props = void 0;
19740
20666
  }
@@ -19746,13 +20672,13 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19746
20672
  if (data && typeof data == "object" && !Array.isArray(data)) {
19747
20673
  let missing0;
19748
20674
  if (data.protocol_version === void 0 && (missing0 = "protocol_version") || data.issuer === void 0 && (missing0 = "issuer") || data.client_id === void 0 && (missing0 = "client_id") || data.default_scopes === void 0 && (missing0 = "default_scopes")) {
19749
- validate69.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
20675
+ validate74.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
19750
20676
  return false;
19751
20677
  } else {
19752
20678
  const _errs3 = errors;
19753
20679
  for (const key0 in data) {
19754
20680
  if (!(key0 === "protocol_version" || key0 === "issuer" || key0 === "client_id" || key0 === "default_scopes")) {
19755
- validate69.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
20681
+ validate74.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
19756
20682
  return false;
19757
20683
  break;
19758
20684
  }
@@ -19762,11 +20688,11 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19762
20688
  let data0 = data.protocol_version;
19763
20689
  const _errs4 = errors;
19764
20690
  if (!(typeof data0 == "number" && isFinite(data0))) {
19765
- validate69.errors = [{ instancePath: instancePath + "/protocol_version", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/protocol_version/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
20691
+ validate74.errors = [{ instancePath: instancePath + "/protocol_version", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/protocol_version/type", keyword: "type", params: { type: "number" }, message: "must be number" }];
19766
20692
  return false;
19767
20693
  }
19768
20694
  if (1 !== data0) {
19769
- validate69.errors = [{ instancePath: instancePath + "/protocol_version", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/protocol_version/const", keyword: "const", params: { allowedValue: 1 }, message: "must be equal to constant" }];
20695
+ validate74.errors = [{ instancePath: instancePath + "/protocol_version", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/protocol_version/const", keyword: "const", params: { allowedValue: 1 }, message: "must be equal to constant" }];
19770
20696
  return false;
19771
20697
  }
19772
20698
  var valid1 = _errs4 === errors;
@@ -19779,7 +20705,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19779
20705
  if (errors === _errs6) {
19780
20706
  if (errors === _errs6) {
19781
20707
  if (!(typeof data.issuer === "string")) {
19782
- validate69.errors = [{ instancePath: instancePath + "/issuer", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/issuer/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
20708
+ validate74.errors = [{ instancePath: instancePath + "/issuer", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/issuer/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19783
20709
  return false;
19784
20710
  }
19785
20711
  }
@@ -19795,16 +20721,16 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19795
20721
  if (errors === _errs8) {
19796
20722
  if (typeof data2 === "string") {
19797
20723
  if (func1(data2) > 256) {
19798
- validate69.errors = [{ instancePath: instancePath + "/client_id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/client_id/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
20724
+ validate74.errors = [{ instancePath: instancePath + "/client_id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/client_id/maxLength", keyword: "maxLength", params: { limit: 256 }, message: "must NOT have more than 256 characters" }];
19799
20725
  return false;
19800
20726
  } else {
19801
- if (!pattern39.test(data2)) {
19802
- validate69.errors = [{ instancePath: instancePath + "/client_id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/client_id/pattern", keyword: "pattern", params: { pattern: "^client_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^client_[A-Za-z0-9_-]+$"' }];
20727
+ if (!pattern48.test(data2)) {
20728
+ validate74.errors = [{ instancePath: instancePath + "/client_id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/client_id/pattern", keyword: "pattern", params: { pattern: "^client_[A-Za-z0-9_-]+$" }, message: 'must match pattern "^client_[A-Za-z0-9_-]+$"' }];
19803
20729
  return false;
19804
20730
  }
19805
20731
  }
19806
20732
  } else {
19807
- validate69.errors = [{ instancePath: instancePath + "/client_id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/client_id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
20733
+ validate74.errors = [{ instancePath: instancePath + "/client_id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/client_id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19808
20734
  return false;
19809
20735
  }
19810
20736
  }
@@ -19819,11 +20745,11 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19819
20745
  if (errors === _errs10) {
19820
20746
  if (Array.isArray(data3)) {
19821
20747
  if (data3.length > 4) {
19822
- validate69.errors = [{ instancePath: instancePath + "/default_scopes", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/default_scopes/maxItems", keyword: "maxItems", params: { limit: 4 }, message: "must NOT have more than 4 items" }];
20748
+ validate74.errors = [{ instancePath: instancePath + "/default_scopes", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/default_scopes/maxItems", keyword: "maxItems", params: { limit: 4 }, message: "must NOT have more than 4 items" }];
19823
20749
  return false;
19824
20750
  } else {
19825
20751
  if (data3.length < 4) {
19826
- validate69.errors = [{ instancePath: instancePath + "/default_scopes", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/default_scopes/minItems", keyword: "minItems", params: { limit: 4 }, message: "must NOT have fewer than 4 items" }];
20752
+ validate74.errors = [{ instancePath: instancePath + "/default_scopes", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/default_scopes/minItems", keyword: "minItems", params: { limit: 4 }, message: "must NOT have fewer than 4 items" }];
19827
20753
  return false;
19828
20754
  } else {
19829
20755
  var valid2 = true;
@@ -19832,11 +20758,11 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19832
20758
  let data4 = data3[i0];
19833
20759
  const _errs12 = errors;
19834
20760
  if (typeof data4 !== "string") {
19835
- validate69.errors = [{ instancePath: instancePath + "/default_scopes/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/default_scopes/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
20761
+ validate74.errors = [{ instancePath: instancePath + "/default_scopes/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/default_scopes/items/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19836
20762
  return false;
19837
20763
  }
19838
20764
  if (!(data4 === "openid" || data4 === "profile" || data4 === "email" || data4 === "offline_access")) {
19839
- validate69.errors = [{ instancePath: instancePath + "/default_scopes/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/default_scopes/items/enum", keyword: "enum", params: { allowedValues: schema129.properties.default_scopes.items.enum }, message: "must be equal to one of the allowed values" }];
20765
+ validate74.errors = [{ instancePath: instancePath + "/default_scopes/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/default_scopes/items/enum", keyword: "enum", params: { allowedValues: schema139.properties.default_scopes.items.enum }, message: "must be equal to one of the allowed values" }];
19840
20766
  return false;
19841
20767
  }
19842
20768
  var valid2 = _errs12 === errors;
@@ -19847,7 +20773,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19847
20773
  }
19848
20774
  }
19849
20775
  } else {
19850
- validate69.errors = [{ instancePath: instancePath + "/default_scopes", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/default_scopes/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
20776
+ validate74.errors = [{ instancePath: instancePath + "/default_scopes", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/properties/default_scopes/type", keyword: "type", params: { type: "array" }, message: "must be array" }];
19851
20777
  return false;
19852
20778
  }
19853
20779
  }
@@ -19861,19 +20787,19 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19861
20787
  }
19862
20788
  }
19863
20789
  } else {
19864
- validate69.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
20790
+ validate74.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationSuccess/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
19865
20791
  return false;
19866
20792
  }
19867
20793
  }
19868
- validate69.errors = vErrors;
20794
+ validate74.errors = vErrors;
19869
20795
  return errors === 0;
19870
20796
  }
19871
- validate69.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19872
- function validate70(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20797
+ validate74.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
20798
+ function validate75(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19873
20799
  ;
19874
20800
  let vErrors = null;
19875
20801
  let errors = 0;
19876
- const evaluated0 = validate70.evaluated;
20802
+ const evaluated0 = validate75.evaluated;
19877
20803
  if (evaluated0.dynamicProps) {
19878
20804
  evaluated0.props = void 0;
19879
20805
  }
@@ -19885,13 +20811,13 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
19885
20811
  if (data && typeof data == "object" && !Array.isArray(data)) {
19886
20812
  let missing0;
19887
20813
  if (data.error === void 0 && (missing0 = "error")) {
19888
- validate70.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationUnavailable/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
20814
+ validate75.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationUnavailable/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
19889
20815
  return false;
19890
20816
  } else {
19891
20817
  const _errs2 = errors;
19892
20818
  for (const key0 in data) {
19893
20819
  if (!(key0 === "error")) {
19894
- validate70.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationUnavailable/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
20820
+ validate75.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationUnavailable/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" }];
19895
20821
  return false;
19896
20822
  break;
19897
20823
  }
@@ -19900,25 +20826,25 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
19900
20826
  if (data.error !== void 0) {
19901
20827
  let data0 = data.error;
19902
20828
  if (typeof data0 !== "string") {
19903
- validate70.errors = [{ instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationUnavailable/properties/error/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
20829
+ validate75.errors = [{ instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationUnavailable/properties/error/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19904
20830
  return false;
19905
20831
  }
19906
20832
  if ("connect_device_auth_unavailable" !== data0) {
19907
- validate70.errors = [{ instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationUnavailable/properties/error/const", keyword: "const", params: { allowedValue: "connect_device_auth_unavailable" }, message: "must be equal to constant" }];
20833
+ validate75.errors = [{ instancePath: instancePath + "/error", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationUnavailable/properties/error/const", keyword: "const", params: { allowedValue: "connect_device_auth_unavailable" }, message: "must be equal to constant" }];
19908
20834
  return false;
19909
20835
  }
19910
20836
  }
19911
20837
  }
19912
20838
  }
19913
20839
  } else {
19914
- validate70.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationUnavailable/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
20840
+ validate75.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/WorkosConnectDeviceConfigurationUnavailable/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
19915
20841
  return false;
19916
20842
  }
19917
20843
  }
19918
- validate70.errors = vErrors;
20844
+ validate75.errors = vErrors;
19919
20845
  return errors === 0;
19920
20846
  }
19921
- validate70.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
20847
+ validate75.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19922
20848
 
19923
20849
  // src/lib/activation.ts
19924
20850
  import { execFileSync as execFileSync2 } from "child_process";