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

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.
@@ -18911,6 +18911,8 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
18911
18911
  return errors === 0;
18912
18912
  }
18913
18913
  validate39.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18914
+ var pattern4 = new RegExp("^[a-zA-Z0-9]{1,64}$", "u");
18915
+ var pattern5 = new RegExp("^[a-f0-9]{64}$", "u");
18914
18916
  function validate40(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18915
18917
  ;
18916
18918
  let vErrors = null;
@@ -18923,17 +18925,943 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
18923
18925
  evaluated0.items = void 0;
18924
18926
  }
18925
18927
  const _errs0 = errors;
18928
+ if (errors === _errs0) {
18929
+ if (data && typeof data == "object" && !Array.isArray(data)) {
18930
+ let missing0;
18931
+ if (data.runId === void 0 && (missing0 = "runId") || data.revision === void 0 && (missing0 = "revision") || data.appliedDigest === void 0 && (missing0 = "appliedDigest")) {
18932
+ 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 + "'" }];
18933
+ return false;
18934
+ } else {
18935
+ const _errs2 = errors;
18936
+ for (const key0 in data) {
18937
+ if (!(key0 === "runId" || key0 === "revision" || key0 === "appliedDigest")) {
18938
+ 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" }];
18939
+ return false;
18940
+ break;
18941
+ }
18942
+ }
18943
+ if (_errs2 === errors) {
18944
+ if (data.runId !== void 0) {
18945
+ let data0 = data.runId;
18946
+ const _errs3 = errors;
18947
+ if (errors === _errs3) {
18948
+ if (typeof data0 === "string") {
18949
+ if (!pattern4.test(data0)) {
18950
+ 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}$"' }];
18951
+ return false;
18952
+ }
18953
+ } else {
18954
+ 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" }];
18955
+ return false;
18956
+ }
18957
+ }
18958
+ var valid1 = _errs3 === errors;
18959
+ } else {
18960
+ var valid1 = true;
18961
+ }
18962
+ if (valid1) {
18963
+ if (data.revision !== void 0) {
18964
+ let data1 = data.revision;
18965
+ const _errs5 = errors;
18966
+ if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
18967
+ 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" }];
18968
+ return false;
18969
+ }
18970
+ if (errors === _errs5) {
18971
+ if (typeof data1 == "number" && isFinite(data1)) {
18972
+ if (data1 > 9007199254740991 || isNaN(data1)) {
18973
+ 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" }];
18974
+ return false;
18975
+ } else {
18976
+ if (data1 < 0 || isNaN(data1)) {
18977
+ 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" }];
18978
+ return false;
18979
+ }
18980
+ }
18981
+ }
18982
+ }
18983
+ var valid1 = _errs5 === errors;
18984
+ } else {
18985
+ var valid1 = true;
18986
+ }
18987
+ if (valid1) {
18988
+ if (data.appliedDigest !== void 0) {
18989
+ let data2 = data.appliedDigest;
18990
+ const _errs7 = errors;
18991
+ if (errors === _errs7) {
18992
+ if (typeof data2 === "string") {
18993
+ if (!pattern5.test(data2)) {
18994
+ 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}$"' }];
18995
+ return false;
18996
+ }
18997
+ } else {
18998
+ 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" }];
18999
+ return false;
19000
+ }
19001
+ }
19002
+ var valid1 = _errs7 === errors;
19003
+ } else {
19004
+ var valid1 = true;
19005
+ }
19006
+ }
19007
+ }
19008
+ }
19009
+ }
19010
+ } else {
19011
+ 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" }];
19012
+ return false;
19013
+ }
19014
+ }
19015
+ validate40.errors = vErrors;
19016
+ return errors === 0;
19017
+ }
19018
+ validate40.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19019
+ var pattern8 = new RegExp("\\S", "u");
19020
+ function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19021
+ ;
19022
+ let vErrors = null;
19023
+ let errors = 0;
19024
+ const evaluated0 = validate41.evaluated;
19025
+ if (evaluated0.dynamicProps) {
19026
+ evaluated0.props = void 0;
19027
+ }
19028
+ if (evaluated0.dynamicItems) {
19029
+ evaluated0.items = void 0;
19030
+ }
19031
+ const _errs1 = errors;
19032
+ let valid1 = false;
19033
+ let passing0 = null;
19034
+ const _errs2 = errors;
19035
+ if (errors === _errs2) {
19036
+ if (data && typeof data == "object" && !Array.isArray(data)) {
19037
+ let missing0;
19038
+ if (data.runId === void 0 && (missing0 = "runId") || data.revision === void 0 && (missing0 = "revision") || data.choice === void 0 && (missing0 = "choice")) {
19039
+ 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 + "'" };
19040
+ if (vErrors === null) {
19041
+ vErrors = [err0];
19042
+ } else {
19043
+ vErrors.push(err0);
19044
+ }
19045
+ errors++;
19046
+ } else {
19047
+ const _errs4 = errors;
19048
+ for (const key0 in data) {
19049
+ if (!(key0 === "runId" || key0 === "revision" || key0 === "choice")) {
19050
+ 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" };
19051
+ if (vErrors === null) {
19052
+ vErrors = [err1];
19053
+ } else {
19054
+ vErrors.push(err1);
19055
+ }
19056
+ errors++;
19057
+ break;
19058
+ }
19059
+ }
19060
+ if (_errs4 === errors) {
19061
+ if (data.runId !== void 0) {
19062
+ let data0 = data.runId;
19063
+ const _errs5 = errors;
19064
+ if (errors === _errs5) {
19065
+ if (typeof data0 === "string") {
19066
+ if (!pattern4.test(data0)) {
19067
+ 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}$"' };
19068
+ if (vErrors === null) {
19069
+ vErrors = [err2];
19070
+ } else {
19071
+ vErrors.push(err2);
19072
+ }
19073
+ errors++;
19074
+ }
19075
+ } else {
19076
+ 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" };
19077
+ if (vErrors === null) {
19078
+ vErrors = [err3];
19079
+ } else {
19080
+ vErrors.push(err3);
19081
+ }
19082
+ errors++;
19083
+ }
19084
+ }
19085
+ var valid2 = _errs5 === errors;
19086
+ } else {
19087
+ var valid2 = true;
19088
+ }
19089
+ if (valid2) {
19090
+ if (data.revision !== void 0) {
19091
+ let data1 = data.revision;
19092
+ const _errs7 = errors;
19093
+ if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
19094
+ 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" };
19095
+ if (vErrors === null) {
19096
+ vErrors = [err4];
19097
+ } else {
19098
+ vErrors.push(err4);
19099
+ }
19100
+ errors++;
19101
+ }
19102
+ if (errors === _errs7) {
19103
+ if (typeof data1 == "number" && isFinite(data1)) {
19104
+ if (data1 > 9007199254740991 || isNaN(data1)) {
19105
+ 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" };
19106
+ if (vErrors === null) {
19107
+ vErrors = [err5];
19108
+ } else {
19109
+ vErrors.push(err5);
19110
+ }
19111
+ errors++;
19112
+ } else {
19113
+ if (data1 < 0 || isNaN(data1)) {
19114
+ 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" };
19115
+ if (vErrors === null) {
19116
+ vErrors = [err6];
19117
+ } else {
19118
+ vErrors.push(err6);
19119
+ }
19120
+ errors++;
19121
+ }
19122
+ }
19123
+ }
19124
+ }
19125
+ var valid2 = _errs7 === errors;
19126
+ } else {
19127
+ var valid2 = true;
19128
+ }
19129
+ if (valid2) {
19130
+ if (data.choice !== void 0) {
19131
+ let data2 = data.choice;
19132
+ const _errs9 = errors;
19133
+ if (typeof data2 !== "string") {
19134
+ 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" };
19135
+ if (vErrors === null) {
19136
+ vErrors = [err7];
19137
+ } else {
19138
+ vErrors.push(err7);
19139
+ }
19140
+ errors++;
19141
+ }
19142
+ if ("adhere" !== data2) {
19143
+ 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" };
19144
+ if (vErrors === null) {
19145
+ vErrors = [err8];
19146
+ } else {
19147
+ vErrors.push(err8);
19148
+ }
19149
+ errors++;
19150
+ }
19151
+ var valid2 = _errs9 === errors;
19152
+ } else {
19153
+ var valid2 = true;
19154
+ }
19155
+ }
19156
+ }
19157
+ }
19158
+ }
19159
+ } else {
19160
+ 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" };
19161
+ if (vErrors === null) {
19162
+ vErrors = [err9];
19163
+ } else {
19164
+ vErrors.push(err9);
19165
+ }
19166
+ errors++;
19167
+ }
19168
+ }
19169
+ var _valid0 = _errs2 === errors;
19170
+ if (_valid0) {
19171
+ valid1 = true;
19172
+ passing0 = 0;
19173
+ var props0 = true;
19174
+ }
19175
+ const _errs11 = errors;
19176
+ if (errors === _errs11) {
19177
+ if (data && typeof data == "object" && !Array.isArray(data)) {
19178
+ let missing1;
19179
+ 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")) {
19180
+ 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 + "'" };
19181
+ if (vErrors === null) {
19182
+ vErrors = [err10];
19183
+ } else {
19184
+ vErrors.push(err10);
19185
+ }
19186
+ errors++;
19187
+ } else {
19188
+ const _errs13 = errors;
19189
+ for (const key1 in data) {
19190
+ if (!(key1 === "runId" || key1 === "revision" || key1 === "choice" || key1 === "reason")) {
19191
+ 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" };
19192
+ if (vErrors === null) {
19193
+ vErrors = [err11];
19194
+ } else {
19195
+ vErrors.push(err11);
19196
+ }
19197
+ errors++;
19198
+ break;
19199
+ }
19200
+ }
19201
+ if (_errs13 === errors) {
19202
+ if (data.runId !== void 0) {
19203
+ let data3 = data.runId;
19204
+ const _errs14 = errors;
19205
+ if (errors === _errs14) {
19206
+ if (typeof data3 === "string") {
19207
+ if (!pattern4.test(data3)) {
19208
+ 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}$"' };
19209
+ if (vErrors === null) {
19210
+ vErrors = [err12];
19211
+ } else {
19212
+ vErrors.push(err12);
19213
+ }
19214
+ errors++;
19215
+ }
19216
+ } else {
19217
+ 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" };
19218
+ if (vErrors === null) {
19219
+ vErrors = [err13];
19220
+ } else {
19221
+ vErrors.push(err13);
19222
+ }
19223
+ errors++;
19224
+ }
19225
+ }
19226
+ var valid3 = _errs14 === errors;
19227
+ } else {
19228
+ var valid3 = true;
19229
+ }
19230
+ if (valid3) {
19231
+ if (data.revision !== void 0) {
19232
+ let data4 = data.revision;
19233
+ const _errs16 = errors;
19234
+ if (!(typeof data4 == "number" && (!(data4 % 1) && !isNaN(data4)) && isFinite(data4))) {
19235
+ 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" };
19236
+ if (vErrors === null) {
19237
+ vErrors = [err14];
19238
+ } else {
19239
+ vErrors.push(err14);
19240
+ }
19241
+ errors++;
19242
+ }
19243
+ if (errors === _errs16) {
19244
+ if (typeof data4 == "number" && isFinite(data4)) {
19245
+ if (data4 > 9007199254740991 || isNaN(data4)) {
19246
+ 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" };
19247
+ if (vErrors === null) {
19248
+ vErrors = [err15];
19249
+ } else {
19250
+ vErrors.push(err15);
19251
+ }
19252
+ errors++;
19253
+ } else {
19254
+ if (data4 < 0 || isNaN(data4)) {
19255
+ 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" };
19256
+ if (vErrors === null) {
19257
+ vErrors = [err16];
19258
+ } else {
19259
+ vErrors.push(err16);
19260
+ }
19261
+ errors++;
19262
+ }
19263
+ }
19264
+ }
19265
+ }
19266
+ var valid3 = _errs16 === errors;
19267
+ } else {
19268
+ var valid3 = true;
19269
+ }
19270
+ if (valid3) {
19271
+ if (data.choice !== void 0) {
19272
+ let data5 = data.choice;
19273
+ const _errs18 = errors;
19274
+ if (typeof data5 !== "string") {
19275
+ 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" };
19276
+ if (vErrors === null) {
19277
+ vErrors = [err17];
19278
+ } else {
19279
+ vErrors.push(err17);
19280
+ }
19281
+ errors++;
19282
+ }
19283
+ if ("supersede" !== data5) {
19284
+ 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" };
19285
+ if (vErrors === null) {
19286
+ vErrors = [err18];
19287
+ } else {
19288
+ vErrors.push(err18);
19289
+ }
19290
+ errors++;
19291
+ }
19292
+ var valid3 = _errs18 === errors;
19293
+ } else {
19294
+ var valid3 = true;
19295
+ }
19296
+ if (valid3) {
19297
+ if (data.reason !== void 0) {
19298
+ let data6 = data.reason;
19299
+ const _errs20 = errors;
19300
+ if (errors === _errs20) {
19301
+ if (typeof data6 === "string") {
19302
+ if (func1(data6) > 500) {
19303
+ 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" };
19304
+ if (vErrors === null) {
19305
+ vErrors = [err19];
19306
+ } else {
19307
+ vErrors.push(err19);
19308
+ }
19309
+ errors++;
19310
+ } else {
19311
+ if (func1(data6) < 1) {
19312
+ 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" };
19313
+ if (vErrors === null) {
19314
+ vErrors = [err20];
19315
+ } else {
19316
+ vErrors.push(err20);
19317
+ }
19318
+ errors++;
19319
+ } else {
19320
+ if (!pattern8.test(data6)) {
19321
+ 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"' };
19322
+ if (vErrors === null) {
19323
+ vErrors = [err21];
19324
+ } else {
19325
+ vErrors.push(err21);
19326
+ }
19327
+ errors++;
19328
+ }
19329
+ }
19330
+ }
19331
+ } else {
19332
+ 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" };
19333
+ if (vErrors === null) {
19334
+ vErrors = [err22];
19335
+ } else {
19336
+ vErrors.push(err22);
19337
+ }
19338
+ errors++;
19339
+ }
19340
+ }
19341
+ var valid3 = _errs20 === errors;
19342
+ } else {
19343
+ var valid3 = true;
19344
+ }
19345
+ }
19346
+ }
19347
+ }
19348
+ }
19349
+ }
19350
+ } else {
19351
+ 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" };
19352
+ if (vErrors === null) {
19353
+ vErrors = [err23];
19354
+ } else {
19355
+ vErrors.push(err23);
19356
+ }
19357
+ errors++;
19358
+ }
19359
+ }
19360
+ var _valid0 = _errs11 === errors;
19361
+ if (_valid0 && valid1) {
19362
+ valid1 = false;
19363
+ passing0 = [passing0, 1];
19364
+ } else {
19365
+ if (_valid0) {
19366
+ valid1 = true;
19367
+ passing0 = 1;
19368
+ if (props0 !== true) {
19369
+ props0 = true;
19370
+ }
19371
+ }
19372
+ }
19373
+ if (!valid1) {
19374
+ 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" };
19375
+ if (vErrors === null) {
19376
+ vErrors = [err24];
19377
+ } else {
19378
+ vErrors.push(err24);
19379
+ }
19380
+ errors++;
19381
+ validate41.errors = vErrors;
19382
+ return false;
19383
+ } else {
19384
+ errors = _errs1;
19385
+ if (vErrors !== null) {
19386
+ if (_errs1) {
19387
+ vErrors.length = _errs1;
19388
+ } else {
19389
+ vErrors = null;
19390
+ }
19391
+ }
19392
+ }
19393
+ validate41.errors = vErrors;
19394
+ evaluated0.props = props0;
19395
+ return errors === 0;
19396
+ }
19397
+ validate41.evaluated = { "dynamicProps": true, "dynamicItems": false };
19398
+ function validate42(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19399
+ ;
19400
+ let vErrors = null;
19401
+ let errors = 0;
19402
+ const evaluated0 = validate42.evaluated;
19403
+ if (evaluated0.dynamicProps) {
19404
+ evaluated0.props = void 0;
19405
+ }
19406
+ if (evaluated0.dynamicItems) {
19407
+ evaluated0.items = void 0;
19408
+ }
19409
+ const _errs0 = errors;
19410
+ if (errors === _errs0) {
19411
+ if (data && typeof data == "object" && !Array.isArray(data)) {
19412
+ let missing0;
19413
+ if (data.runId === void 0 && (missing0 = "runId") || data.revision === void 0 && (missing0 = "revision")) {
19414
+ 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 + "'" }];
19415
+ return false;
19416
+ } else {
19417
+ const _errs2 = errors;
19418
+ for (const key0 in data) {
19419
+ if (!(key0 === "runId" || key0 === "revision")) {
19420
+ 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" }];
19421
+ return false;
19422
+ break;
19423
+ }
19424
+ }
19425
+ if (_errs2 === errors) {
19426
+ if (data.runId !== void 0) {
19427
+ let data0 = data.runId;
19428
+ const _errs3 = errors;
19429
+ if (errors === _errs3) {
19430
+ if (typeof data0 === "string") {
19431
+ if (!pattern4.test(data0)) {
19432
+ 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}$"' }];
19433
+ return false;
19434
+ }
19435
+ } else {
19436
+ 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" }];
19437
+ return false;
19438
+ }
19439
+ }
19440
+ var valid1 = _errs3 === errors;
19441
+ } else {
19442
+ var valid1 = true;
19443
+ }
19444
+ if (valid1) {
19445
+ if (data.revision !== void 0) {
19446
+ let data1 = data.revision;
19447
+ const _errs5 = errors;
19448
+ if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
19449
+ 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" }];
19450
+ return false;
19451
+ }
19452
+ if (errors === _errs5) {
19453
+ if (typeof data1 == "number" && isFinite(data1)) {
19454
+ if (data1 > 9007199254740991 || isNaN(data1)) {
19455
+ 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" }];
19456
+ return false;
19457
+ } else {
19458
+ if (data1 < 0 || isNaN(data1)) {
19459
+ 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" }];
19460
+ return false;
19461
+ }
19462
+ }
19463
+ }
19464
+ }
19465
+ var valid1 = _errs5 === errors;
19466
+ } else {
19467
+ var valid1 = true;
19468
+ }
19469
+ }
19470
+ }
19471
+ }
19472
+ } else {
19473
+ 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" }];
19474
+ return false;
19475
+ }
19476
+ }
19477
+ validate42.errors = vErrors;
19478
+ return errors === 0;
19479
+ }
19480
+ validate42.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19481
+ 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");
19482
+ function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19483
+ ;
19484
+ let vErrors = null;
19485
+ let errors = 0;
19486
+ const evaluated0 = validate43.evaluated;
19487
+ if (evaluated0.dynamicProps) {
19488
+ evaluated0.props = void 0;
19489
+ }
19490
+ if (evaluated0.dynamicItems) {
19491
+ evaluated0.items = void 0;
19492
+ }
19493
+ const _errs0 = errors;
19494
+ if (errors === _errs0) {
19495
+ if (data && typeof data == "object" && !Array.isArray(data)) {
19496
+ let missing0;
19497
+ if (data.scenarioVersion === void 0 && (missing0 = "scenarioVersion") || data.localRunId === void 0 && (missing0 = "localRunId")) {
19498
+ 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 + "'" }];
19499
+ return false;
19500
+ } else {
19501
+ const _errs2 = errors;
19502
+ for (const key0 in data) {
19503
+ if (!(key0 === "scenarioVersion" || key0 === "localRunId")) {
19504
+ 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" }];
19505
+ return false;
19506
+ break;
19507
+ }
19508
+ }
19509
+ if (_errs2 === errors) {
19510
+ if (data.scenarioVersion !== void 0) {
19511
+ let data0 = data.scenarioVersion;
19512
+ const _errs3 = errors;
19513
+ if (!(typeof data0 == "number" && isFinite(data0))) {
19514
+ 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" }];
19515
+ return false;
19516
+ }
19517
+ if (1 !== data0) {
19518
+ 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" }];
19519
+ return false;
19520
+ }
19521
+ var valid1 = _errs3 === errors;
19522
+ } else {
19523
+ var valid1 = true;
19524
+ }
19525
+ if (valid1) {
19526
+ if (data.localRunId !== void 0) {
19527
+ let data1 = data.localRunId;
19528
+ const _errs5 = errors;
19529
+ if (errors === _errs5) {
19530
+ if (errors === _errs5) {
19531
+ if (typeof data1 === "string") {
19532
+ if (!pattern10.test(data1)) {
19533
+ 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)$"' }];
19534
+ return false;
19535
+ }
19536
+ } else {
19537
+ 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" }];
19538
+ return false;
19539
+ }
19540
+ }
19541
+ }
19542
+ var valid1 = _errs5 === errors;
19543
+ } else {
19544
+ var valid1 = true;
19545
+ }
19546
+ }
19547
+ }
19548
+ }
19549
+ } else {
19550
+ 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" }];
19551
+ return false;
19552
+ }
19553
+ }
19554
+ validate43.errors = vErrors;
19555
+ return errors === 0;
19556
+ }
19557
+ validate43.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19558
+ 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 };
19559
+ var func34 = Object.prototype.hasOwnProperty;
19560
+ function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19561
+ ;
19562
+ let vErrors = null;
19563
+ let errors = 0;
19564
+ const evaluated0 = validate44.evaluated;
19565
+ if (evaluated0.dynamicProps) {
19566
+ evaluated0.props = void 0;
19567
+ }
19568
+ if (evaluated0.dynamicItems) {
19569
+ evaluated0.items = void 0;
19570
+ }
19571
+ const _errs0 = errors;
19572
+ if (errors === _errs0) {
19573
+ if (data && typeof data == "object" && !Array.isArray(data)) {
19574
+ let missing0;
19575
+ 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")) {
19576
+ 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 + "'" }];
19577
+ return false;
19578
+ } else {
19579
+ const _errs2 = errors;
19580
+ for (const key0 in data) {
19581
+ if (!func34.call(schema79.properties, key0)) {
19582
+ 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" }];
19583
+ return false;
19584
+ break;
19585
+ }
19586
+ }
19587
+ if (_errs2 === errors) {
19588
+ if (data.scenarioVersion !== void 0) {
19589
+ let data0 = data.scenarioVersion;
19590
+ const _errs3 = errors;
19591
+ if (!(typeof data0 == "number" && isFinite(data0))) {
19592
+ 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" }];
19593
+ return false;
19594
+ }
19595
+ if (1 !== data0) {
19596
+ 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" }];
19597
+ return false;
19598
+ }
19599
+ var valid1 = _errs3 === errors;
19600
+ } else {
19601
+ var valid1 = true;
19602
+ }
19603
+ if (valid1) {
19604
+ if (data.fictional !== void 0) {
19605
+ let data1 = data.fictional;
19606
+ const _errs5 = errors;
19607
+ if (typeof data1 !== "boolean") {
19608
+ 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" }];
19609
+ return false;
19610
+ }
19611
+ if (true !== data1) {
19612
+ 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" }];
19613
+ return false;
19614
+ }
19615
+ var valid1 = _errs5 === errors;
19616
+ } else {
19617
+ var valid1 = true;
19618
+ }
19619
+ if (valid1) {
19620
+ if (data.evaluation !== void 0) {
19621
+ let data2 = data.evaluation;
19622
+ const _errs7 = errors;
19623
+ if (typeof data2 !== "string") {
19624
+ 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" }];
19625
+ return false;
19626
+ }
19627
+ if ("live" !== data2) {
19628
+ 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" }];
19629
+ return false;
19630
+ }
19631
+ var valid1 = _errs7 === errors;
19632
+ } else {
19633
+ var valid1 = true;
19634
+ }
19635
+ if (valid1) {
19636
+ if (data.runId !== void 0) {
19637
+ let data3 = data.runId;
19638
+ const _errs9 = errors;
19639
+ if (errors === _errs9) {
19640
+ if (typeof data3 === "string") {
19641
+ if (!pattern4.test(data3)) {
19642
+ 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}$"' }];
19643
+ return false;
19644
+ }
19645
+ } else {
19646
+ 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" }];
19647
+ return false;
19648
+ }
19649
+ }
19650
+ var valid1 = _errs9 === errors;
19651
+ } else {
19652
+ var valid1 = true;
19653
+ }
19654
+ if (valid1) {
19655
+ if (data.revision !== void 0) {
19656
+ let data4 = data.revision;
19657
+ const _errs11 = errors;
19658
+ if (!(typeof data4 == "number" && (!(data4 % 1) && !isNaN(data4)) && isFinite(data4))) {
19659
+ 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" }];
19660
+ return false;
19661
+ }
19662
+ if (errors === _errs11) {
19663
+ if (typeof data4 == "number" && isFinite(data4)) {
19664
+ if (data4 > 9007199254740991 || isNaN(data4)) {
19665
+ 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" }];
19666
+ return false;
19667
+ } else {
19668
+ if (data4 < 0 || isNaN(data4)) {
19669
+ 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" }];
19670
+ return false;
19671
+ }
19672
+ }
19673
+ }
19674
+ }
19675
+ var valid1 = _errs11 === errors;
19676
+ } else {
19677
+ var valid1 = true;
19678
+ }
19679
+ if (valid1) {
19680
+ if (data.stage !== void 0) {
19681
+ let data5 = data.stage;
19682
+ const _errs13 = errors;
19683
+ if (typeof data5 !== "string") {
19684
+ 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" }];
19685
+ return false;
19686
+ }
19687
+ if (!(data5 === "ready" || data5 === "checking" || data5 === "blocked" || data5 === "approved" || data5 === "completed" || data5 === "skipped" || data5 === "expired")) {
19688
+ 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" }];
19689
+ return false;
19690
+ }
19691
+ var valid1 = _errs13 === errors;
19692
+ } else {
19693
+ var valid1 = true;
19694
+ }
19695
+ if (valid1) {
19696
+ if (data.authorName !== void 0) {
19697
+ let data6 = data.authorName;
19698
+ const _errs15 = errors;
19699
+ if (errors === _errs15) {
19700
+ if (typeof data6 === "string") {
19701
+ if (func1(data6) > 200) {
19702
+ 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" }];
19703
+ return false;
19704
+ }
19705
+ } else {
19706
+ 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" }];
19707
+ return false;
19708
+ }
19709
+ }
19710
+ var valid1 = _errs15 === errors;
19711
+ } else {
19712
+ var valid1 = true;
19713
+ }
19714
+ if (valid1) {
19715
+ if (data.email !== void 0) {
19716
+ let data7 = data.email;
19717
+ const _errs17 = errors;
19718
+ if (typeof data7 !== "string") {
19719
+ 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" }];
19720
+ return false;
19721
+ }
19722
+ if (!(data7 === "not_queued" || data7 === "queued" || data7 === "accepted" || data7 === "failed" || data7 === "suppressed")) {
19723
+ 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" }];
19724
+ return false;
19725
+ }
19726
+ var valid1 = _errs17 === errors;
19727
+ } else {
19728
+ var valid1 = true;
19729
+ }
19730
+ if (valid1) {
19731
+ if (data.verdict !== void 0) {
19732
+ let data8 = data.verdict;
19733
+ const _errs19 = errors;
19734
+ if (typeof data8 !== "string") {
19735
+ 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" }];
19736
+ return false;
19737
+ }
19738
+ if (!(data8 === "block" || data8 === "pass" || data8 === "pending")) {
19739
+ 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" }];
19740
+ return false;
19741
+ }
19742
+ var valid1 = _errs19 === errors;
19743
+ } else {
19744
+ var valid1 = true;
19745
+ }
19746
+ if (valid1) {
19747
+ if (data.reasonCode !== void 0) {
19748
+ let data9 = data.reasonCode;
19749
+ const _errs21 = errors;
19750
+ if (errors === _errs21) {
19751
+ if (typeof data9 === "string") {
19752
+ if (func1(data9) > 100) {
19753
+ 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" }];
19754
+ return false;
19755
+ }
19756
+ } else {
19757
+ 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" }];
19758
+ return false;
19759
+ }
19760
+ }
19761
+ var valid1 = _errs21 === errors;
19762
+ } else {
19763
+ var valid1 = true;
19764
+ }
19765
+ if (valid1) {
19766
+ if (data.choice !== void 0) {
19767
+ let data10 = data.choice;
19768
+ const _errs23 = errors;
19769
+ if (typeof data10 !== "string") {
19770
+ 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" }];
19771
+ return false;
19772
+ }
19773
+ if (!(data10 === "adhere" || data10 === "supersede")) {
19774
+ 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" }];
19775
+ return false;
19776
+ }
19777
+ var valid1 = _errs23 === errors;
19778
+ } else {
19779
+ var valid1 = true;
19780
+ }
19781
+ if (valid1) {
19782
+ if (data.reason !== void 0) {
19783
+ let data11 = data.reason;
19784
+ const _errs25 = errors;
19785
+ if (errors === _errs25) {
19786
+ if (typeof data11 === "string") {
19787
+ if (func1(data11) > 500) {
19788
+ 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" }];
19789
+ return false;
19790
+ }
19791
+ } else {
19792
+ 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" }];
19793
+ return false;
19794
+ }
19795
+ }
19796
+ var valid1 = _errs25 === errors;
19797
+ } else {
19798
+ var valid1 = true;
19799
+ }
19800
+ if (valid1) {
19801
+ if (data.approvedDigest !== void 0) {
19802
+ let data12 = data.approvedDigest;
19803
+ const _errs27 = errors;
19804
+ if (errors === _errs27) {
19805
+ if (typeof data12 === "string") {
19806
+ if (!pattern5.test(data12)) {
19807
+ 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}$"' }];
19808
+ return false;
19809
+ }
19810
+ } else {
19811
+ 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" }];
19812
+ return false;
19813
+ }
19814
+ }
19815
+ var valid1 = _errs27 === errors;
19816
+ } else {
19817
+ var valid1 = true;
19818
+ }
19819
+ }
19820
+ }
19821
+ }
19822
+ }
19823
+ }
19824
+ }
19825
+ }
19826
+ }
19827
+ }
19828
+ }
19829
+ }
19830
+ }
19831
+ }
19832
+ }
19833
+ } else {
19834
+ 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" }];
19835
+ return false;
19836
+ }
19837
+ }
19838
+ validate44.errors = vErrors;
19839
+ return errors === 0;
19840
+ }
19841
+ validate44.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19842
+ function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19843
+ ;
19844
+ let vErrors = null;
19845
+ let errors = 0;
19846
+ const evaluated0 = validate45.evaluated;
19847
+ if (evaluated0.dynamicProps) {
19848
+ evaluated0.props = void 0;
19849
+ }
19850
+ if (evaluated0.dynamicItems) {
19851
+ evaluated0.items = void 0;
19852
+ }
19853
+ const _errs0 = errors;
18926
19854
  if (errors === _errs0) {
18927
19855
  if (data && typeof data == "object" && !Array.isArray(data)) {
18928
19856
  let missing0;
18929
19857
  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")) {
18930
- 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 + "'" }];
19858
+ 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 + "'" }];
18931
19859
  return false;
18932
19860
  } else {
18933
19861
  const _errs2 = errors;
18934
19862
  for (const key0 in data) {
18935
19863
  if (!(key0 === "disposition" || key0 === "acknowledged" || key0 === "accepted" || key0 === "verdictFooter" || key0 === "collectScopeVersion")) {
18936
- 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" }];
19864
+ 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" }];
18937
19865
  return false;
18938
19866
  break;
18939
19867
  }
@@ -18943,11 +19871,11 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
18943
19871
  let data0 = data.disposition;
18944
19872
  const _errs3 = errors;
18945
19873
  if (typeof data0 !== "string") {
18946
- 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" }];
19874
+ 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" }];
18947
19875
  return false;
18948
19876
  }
18949
19877
  if ("persisted" !== data0) {
18950
- 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" }];
19878
+ 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" }];
18951
19879
  return false;
18952
19880
  }
18953
19881
  var valid1 = _errs3 === errors;
@@ -18959,7 +19887,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
18959
19887
  let data1 = data.acknowledged;
18960
19888
  const _errs5 = errors;
18961
19889
  if (!(typeof data1 == "number" && isFinite(data1))) {
18962
- 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" }];
19890
+ 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" }];
18963
19891
  return false;
18964
19892
  }
18965
19893
  var valid1 = _errs5 === errors;
@@ -18971,7 +19899,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
18971
19899
  let data2 = data.accepted;
18972
19900
  const _errs7 = errors;
18973
19901
  if (!(typeof data2 == "number" && isFinite(data2))) {
18974
- 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" }];
19902
+ 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" }];
18975
19903
  return false;
18976
19904
  }
18977
19905
  var valid1 = _errs7 === errors;
@@ -19146,7 +20074,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
19146
20074
  vErrors.push(err10);
19147
20075
  }
19148
20076
  errors++;
19149
- validate40.errors = vErrors;
20077
+ validate45.errors = vErrors;
19150
20078
  return false;
19151
20079
  } else {
19152
20080
  errors = _errs10;
@@ -19167,17 +20095,17 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
19167
20095
  let data10 = data.collectScopeVersion;
19168
20096
  const _errs28 = errors;
19169
20097
  if (!(typeof data10 == "number" && (!(data10 % 1) && !isNaN(data10)) && isFinite(data10))) {
19170
- 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" }];
20098
+ 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" }];
19171
20099
  return false;
19172
20100
  }
19173
20101
  if (errors === _errs28) {
19174
20102
  if (typeof data10 == "number" && isFinite(data10)) {
19175
20103
  if (data10 > 9007199254740991 || isNaN(data10)) {
19176
- 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" }];
20104
+ 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" }];
19177
20105
  return false;
19178
20106
  } else {
19179
20107
  if (data10 < 0 || isNaN(data10)) {
19180
- 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" }];
20108
+ 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" }];
19181
20109
  return false;
19182
20110
  }
19183
20111
  }
@@ -19194,19 +20122,19 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
19194
20122
  }
19195
20123
  }
19196
20124
  } else {
19197
- 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" }];
20125
+ 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" }];
19198
20126
  return false;
19199
20127
  }
19200
20128
  }
19201
- validate40.errors = vErrors;
20129
+ validate45.errors = vErrors;
19202
20130
  return errors === 0;
19203
20131
  }
19204
- validate40.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19205
- function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20132
+ validate45.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
20133
+ function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19206
20134
  ;
19207
20135
  let vErrors = null;
19208
20136
  let errors = 0;
19209
- const evaluated0 = validate41.evaluated;
20137
+ const evaluated0 = validate46.evaluated;
19210
20138
  if (evaluated0.dynamicProps) {
19211
20139
  evaluated0.props = void 0;
19212
20140
  }
@@ -19218,13 +20146,13 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
19218
20146
  if (data && typeof data == "object" && !Array.isArray(data)) {
19219
20147
  let missing0;
19220
20148
  if (data.protocolVersion === void 0 && (missing0 = "protocolVersion") || data.workspaceId === void 0 && (missing0 = "workspaceId") || data.deliveries === void 0 && (missing0 = "deliveries")) {
19221
- 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 + "'" }];
20149
+ 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 + "'" }];
19222
20150
  return false;
19223
20151
  } else {
19224
20152
  const _errs3 = errors;
19225
20153
  for (const key0 in data) {
19226
20154
  if (!(key0 === "protocolVersion" || key0 === "workspaceId" || key0 === "deliveries")) {
19227
- 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" }];
20155
+ 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" }];
19228
20156
  return false;
19229
20157
  break;
19230
20158
  }
@@ -19234,17 +20162,17 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
19234
20162
  let data0 = data.protocolVersion;
19235
20163
  const _errs4 = errors;
19236
20164
  if (!(typeof data0 == "number" && (!(data0 % 1) && !isNaN(data0)) && isFinite(data0))) {
19237
- 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" }];
20165
+ 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" }];
19238
20166
  return false;
19239
20167
  }
19240
20168
  if (errors === _errs4) {
19241
20169
  if (typeof data0 == "number" && isFinite(data0)) {
19242
20170
  if (data0 > 2 || isNaN(data0)) {
19243
- 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" }];
20171
+ 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" }];
19244
20172
  return false;
19245
20173
  } else {
19246
20174
  if (data0 < 1 || isNaN(data0)) {
19247
- 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" }];
20175
+ 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" }];
19248
20176
  return false;
19249
20177
  }
19250
20178
  }
@@ -19258,7 +20186,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
19258
20186
  if (data.workspaceId !== void 0) {
19259
20187
  const _errs6 = errors;
19260
20188
  if (typeof data.workspaceId !== "string") {
19261
- 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" }];
20189
+ 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" }];
19262
20190
  return false;
19263
20191
  }
19264
20192
  var valid1 = _errs6 === errors;
@@ -19272,11 +20200,11 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
19272
20200
  if (errors === _errs8) {
19273
20201
  if (Array.isArray(data2)) {
19274
20202
  if (data2.length > 40) {
19275
- 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" }];
20203
+ 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" }];
19276
20204
  return false;
19277
20205
  } else {
19278
20206
  if (data2.length < 1) {
19279
- 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" }];
20207
+ 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" }];
19280
20208
  return false;
19281
20209
  } else {
19282
20210
  var valid2 = true;
@@ -19288,13 +20216,13 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
19288
20216
  if (data3 && typeof data3 == "object" && !Array.isArray(data3)) {
19289
20217
  let missing1;
19290
20218
  if (data3.eventId === void 0 && (missing1 = "eventId") || data3.leaseVersion === void 0 && (missing1 = "leaseVersion")) {
19291
- 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 + "'" }];
20219
+ 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 + "'" }];
19292
20220
  return false;
19293
20221
  } else {
19294
20222
  const _errs12 = errors;
19295
20223
  for (const key1 in data3) {
19296
20224
  if (!(key1 === "eventId" || key1 === "leaseVersion")) {
19297
- 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" }];
20225
+ 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" }];
19298
20226
  return false;
19299
20227
  break;
19300
20228
  }
@@ -19306,16 +20234,16 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
19306
20234
  if (errors === _errs13) {
19307
20235
  if (typeof data4 === "string") {
19308
20236
  if (func1(data4) > 128) {
19309
- 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" }];
20237
+ 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" }];
19310
20238
  return false;
19311
20239
  } else {
19312
20240
  if (func1(data4) < 1) {
19313
- 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" }];
20241
+ 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" }];
19314
20242
  return false;
19315
20243
  }
19316
20244
  }
19317
20245
  } else {
19318
- 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" }];
20246
+ 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" }];
19319
20247
  return false;
19320
20248
  }
19321
20249
  }
@@ -19328,17 +20256,17 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
19328
20256
  let data5 = data3.leaseVersion;
19329
20257
  const _errs15 = errors;
19330
20258
  if (!(typeof data5 == "number" && (!(data5 % 1) && !isNaN(data5)) && isFinite(data5))) {
19331
- 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" }];
20259
+ 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" }];
19332
20260
  return false;
19333
20261
  }
19334
20262
  if (errors === _errs15) {
19335
20263
  if (typeof data5 == "number" && isFinite(data5)) {
19336
20264
  if (data5 > 9007199254740991 || isNaN(data5)) {
19337
- 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" }];
20265
+ 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" }];
19338
20266
  return false;
19339
20267
  } else {
19340
20268
  if (data5 < 1 || isNaN(data5)) {
19341
- 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" }];
20269
+ 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" }];
19342
20270
  return false;
19343
20271
  }
19344
20272
  }
@@ -19352,7 +20280,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
19352
20280
  }
19353
20281
  }
19354
20282
  } else {
19355
- 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" }];
20283
+ 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" }];
19356
20284
  return false;
19357
20285
  }
19358
20286
  }
@@ -19364,7 +20292,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
19364
20292
  }
19365
20293
  }
19366
20294
  } else {
19367
- 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" }];
20295
+ 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" }];
19368
20296
  return false;
19369
20297
  }
19370
20298
  }
@@ -19377,19 +20305,19 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
19377
20305
  }
19378
20306
  }
19379
20307
  } else {
19380
- 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" }];
20308
+ 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" }];
19381
20309
  return false;
19382
20310
  }
19383
20311
  }
19384
- validate41.errors = vErrors;
20312
+ validate46.errors = vErrors;
19385
20313
  return errors === 0;
19386
20314
  }
19387
- validate41.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19388
- function validate42(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20315
+ validate46.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
20316
+ function validate47(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19389
20317
  ;
19390
20318
  let vErrors = null;
19391
20319
  let errors = 0;
19392
- const evaluated0 = validate42.evaluated;
20320
+ const evaluated0 = validate47.evaluated;
19393
20321
  if (evaluated0.dynamicProps) {
19394
20322
  evaluated0.props = void 0;
19395
20323
  }
@@ -19673,7 +20601,7 @@ function validate42(data, { instancePath = "", parentData, parentDataProperty, r
19673
20601
  vErrors.push(err19);
19674
20602
  }
19675
20603
  errors++;
19676
- validate42.errors = vErrors;
20604
+ validate47.errors = vErrors;
19677
20605
  return false;
19678
20606
  } else {
19679
20607
  errors = _errs1;
@@ -19685,16 +20613,16 @@ function validate42(data, { instancePath = "", parentData, parentDataProperty, r
19685
20613
  }
19686
20614
  }
19687
20615
  }
19688
- validate42.errors = vErrors;
20616
+ validate47.errors = vErrors;
19689
20617
  evaluated0.props = props0;
19690
20618
  return errors === 0;
19691
20619
  }
19692
- validate42.evaluated = { "dynamicProps": true, "dynamicItems": false };
19693
- function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20620
+ validate47.evaluated = { "dynamicProps": true, "dynamicItems": false };
20621
+ function validate48(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19694
20622
  ;
19695
20623
  let vErrors = null;
19696
20624
  let errors = 0;
19697
- const evaluated0 = validate43.evaluated;
20625
+ const evaluated0 = validate48.evaluated;
19698
20626
  if (evaluated0.dynamicProps) {
19699
20627
  evaluated0.props = void 0;
19700
20628
  }
@@ -19706,13 +20634,13 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
19706
20634
  if (data && typeof data == "object" && !Array.isArray(data)) {
19707
20635
  let missing0;
19708
20636
  if (data.protocolVersion === void 0 && (missing0 = "protocolVersion") || data.workspaceId === void 0 && (missing0 = "workspaceId") || data.currentSessionId === void 0 && (missing0 = "currentSessionId")) {
19709
- 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 + "'" }];
20637
+ 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 + "'" }];
19710
20638
  return false;
19711
20639
  } else {
19712
20640
  const _errs3 = errors;
19713
20641
  for (const key0 in data) {
19714
20642
  if (!(key0 === "protocolVersion" || key0 === "workspaceId" || key0 === "currentSessionId")) {
19715
- 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" }];
20643
+ 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" }];
19716
20644
  return false;
19717
20645
  break;
19718
20646
  }
@@ -19722,17 +20650,17 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
19722
20650
  let data0 = data.protocolVersion;
19723
20651
  const _errs4 = errors;
19724
20652
  if (!(typeof data0 == "number" && (!(data0 % 1) && !isNaN(data0)) && isFinite(data0))) {
19725
- 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" }];
20653
+ 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" }];
19726
20654
  return false;
19727
20655
  }
19728
20656
  if (errors === _errs4) {
19729
20657
  if (typeof data0 == "number" && isFinite(data0)) {
19730
20658
  if (data0 > 2 || isNaN(data0)) {
19731
- 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" }];
20659
+ 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" }];
19732
20660
  return false;
19733
20661
  } else {
19734
20662
  if (data0 < 1 || isNaN(data0)) {
19735
- 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" }];
20663
+ 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" }];
19736
20664
  return false;
19737
20665
  }
19738
20666
  }
@@ -19746,7 +20674,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
19746
20674
  if (data.workspaceId !== void 0) {
19747
20675
  const _errs6 = errors;
19748
20676
  if (typeof data.workspaceId !== "string") {
19749
- 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" }];
20677
+ 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" }];
19750
20678
  return false;
19751
20679
  }
19752
20680
  var valid1 = _errs6 === errors;
@@ -19757,7 +20685,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
19757
20685
  if (data.currentSessionId !== void 0) {
19758
20686
  const _errs8 = errors;
19759
20687
  if (typeof data.currentSessionId !== "string") {
19760
- 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" }];
20688
+ 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" }];
19761
20689
  return false;
19762
20690
  }
19763
20691
  var valid1 = _errs8 === errors;
@@ -19769,21 +20697,21 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
19769
20697
  }
19770
20698
  }
19771
20699
  } else {
19772
- 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" }];
20700
+ 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" }];
19773
20701
  return false;
19774
20702
  }
19775
20703
  }
19776
- validate43.errors = vErrors;
20704
+ validate48.errors = vErrors;
19777
20705
  return errors === 0;
19778
20706
  }
19779
- validate43.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19780
- 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"] };
19781
- var pattern4 = new RegExp("^[0-9a-f]{8}$", "u");
19782
- function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20707
+ validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
20708
+ 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"] };
20709
+ var pattern13 = new RegExp("^[0-9a-f]{8}$", "u");
20710
+ function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19783
20711
  ;
19784
20712
  let vErrors = null;
19785
20713
  let errors = 0;
19786
- const evaluated0 = validate44.evaluated;
20714
+ const evaluated0 = validate49.evaluated;
19787
20715
  if (evaluated0.dynamicProps) {
19788
20716
  evaluated0.props = void 0;
19789
20717
  }
@@ -20117,7 +21045,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
20117
21045
  const _errs27 = errors;
20118
21046
  if (errors === _errs27) {
20119
21047
  if (typeof data9 === "string") {
20120
- if (!pattern4.test(data9)) {
21048
+ if (!pattern13.test(data9)) {
20121
21049
  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}$"' };
20122
21050
  if (vErrors === null) {
20123
21051
  vErrors = [err24];
@@ -20225,7 +21153,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
20225
21153
  errors++;
20226
21154
  }
20227
21155
  if (!(data13 === "confirm_prompt" || data13 === "publish_prompt")) {
20228
- 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" };
21156
+ 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" };
20229
21157
  if (vErrors === null) {
20230
21158
  vErrors = [err32];
20231
21159
  } else {
@@ -20444,7 +21372,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
20444
21372
  vErrors.push(err46);
20445
21373
  }
20446
21374
  errors++;
20447
- validate44.errors = vErrors;
21375
+ validate49.errors = vErrors;
20448
21376
  return false;
20449
21377
  } else {
20450
21378
  errors = _errs1;
@@ -20456,16 +21384,16 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
20456
21384
  }
20457
21385
  }
20458
21386
  }
20459
- validate44.errors = vErrors;
21387
+ validate49.errors = vErrors;
20460
21388
  evaluated0.props = props0;
20461
21389
  return errors === 0;
20462
21390
  }
20463
- validate44.evaluated = { "dynamicProps": true, "dynamicItems": false };
20464
- function validate45(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
21391
+ validate49.evaluated = { "dynamicProps": true, "dynamicItems": false };
21392
+ function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20465
21393
  ;
20466
21394
  let vErrors = null;
20467
21395
  let errors = 0;
20468
- const evaluated0 = validate45.evaluated;
21396
+ const evaluated0 = validate50.evaluated;
20469
21397
  if (evaluated0.dynamicProps) {
20470
21398
  evaluated0.props = void 0;
20471
21399
  }
@@ -20673,7 +21601,7 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
20673
21601
  vErrors.push(err14);
20674
21602
  }
20675
21603
  errors++;
20676
- validate45.errors = vErrors;
21604
+ validate50.errors = vErrors;
20677
21605
  return false;
20678
21606
  } else {
20679
21607
  errors = _errs1;
@@ -20685,16 +21613,16 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
20685
21613
  }
20686
21614
  }
20687
21615
  }
20688
- validate45.errors = vErrors;
21616
+ validate50.errors = vErrors;
20689
21617
  evaluated0.props = props0;
20690
21618
  return errors === 0;
20691
21619
  }
20692
- validate45.evaluated = { "dynamicProps": true, "dynamicItems": false };
20693
- function validate46(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
21620
+ validate50.evaluated = { "dynamicProps": true, "dynamicItems": false };
21621
+ function validate51(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20694
21622
  ;
20695
21623
  let vErrors = null;
20696
21624
  let errors = 0;
20697
- const evaluated0 = validate46.evaluated;
21625
+ const evaluated0 = validate51.evaluated;
20698
21626
  if (evaluated0.dynamicProps) {
20699
21627
  evaluated0.props = void 0;
20700
21628
  }
@@ -21156,7 +22084,7 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
21156
22084
  vErrors.push(err33);
21157
22085
  }
21158
22086
  errors++;
21159
- validate46.errors = vErrors;
22087
+ validate51.errors = vErrors;
21160
22088
  return false;
21161
22089
  } else {
21162
22090
  errors = _errs1;
@@ -21168,18 +22096,18 @@ function validate46(data, { instancePath = "", parentData, parentDataProperty, r
21168
22096
  }
21169
22097
  }
21170
22098
  }
21171
- validate46.errors = vErrors;
22099
+ validate51.errors = vErrors;
21172
22100
  evaluated0.props = props0;
21173
22101
  return errors === 0;
21174
22102
  }
21175
- validate46.evaluated = { "dynamicProps": true, "dynamicItems": false };
21176
- var pattern5 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
21177
- var pattern6 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
21178
- function validate47(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22103
+ validate51.evaluated = { "dynamicProps": true, "dynamicItems": false };
22104
+ var pattern14 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
22105
+ var pattern15 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
22106
+ function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
21179
22107
  ;
21180
22108
  let vErrors = null;
21181
22109
  let errors = 0;
21182
- const evaluated0 = validate47.evaluated;
22110
+ const evaluated0 = validate52.evaluated;
21183
22111
  if (evaluated0.dynamicProps) {
21184
22112
  evaluated0.props = void 0;
21185
22113
  }
@@ -21191,13 +22119,13 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
21191
22119
  if (data && typeof data == "object" && !Array.isArray(data)) {
21192
22120
  let missing0;
21193
22121
  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")) {
21194
- 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 + "'" }];
22122
+ 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 + "'" }];
21195
22123
  return false;
21196
22124
  } else {
21197
22125
  const _errs2 = errors;
21198
22126
  for (const key0 in data) {
21199
22127
  if (!(key0 === "protocolVersion" || key0 === "mode" || key0 === "status" || key0 === "intentId" || key0 === "browserUrl" || key0 === "expiresAt" || key0 === "pollAfterMs")) {
21200
- 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" }];
22128
+ 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" }];
21201
22129
  return false;
21202
22130
  break;
21203
22131
  }
@@ -21207,11 +22135,11 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
21207
22135
  let data0 = data.protocolVersion;
21208
22136
  const _errs3 = errors;
21209
22137
  if (!(typeof data0 == "number" && isFinite(data0))) {
21210
- 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" }];
22138
+ 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" }];
21211
22139
  return false;
21212
22140
  }
21213
22141
  if (1 !== data0) {
21214
- 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" }];
22142
+ 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" }];
21215
22143
  return false;
21216
22144
  }
21217
22145
  var valid1 = _errs3 === errors;
@@ -21223,11 +22151,11 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
21223
22151
  let data1 = data.mode;
21224
22152
  const _errs5 = errors;
21225
22153
  if (typeof data1 !== "string") {
21226
- 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" }];
22154
+ 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" }];
21227
22155
  return false;
21228
22156
  }
21229
22157
  if ("install_intent_v1" !== data1) {
21230
- 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" }];
22158
+ 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" }];
21231
22159
  return false;
21232
22160
  }
21233
22161
  var valid1 = _errs5 === errors;
@@ -21239,11 +22167,11 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
21239
22167
  let data2 = data.status;
21240
22168
  const _errs7 = errors;
21241
22169
  if (typeof data2 !== "string") {
21242
- 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" }];
22170
+ 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" }];
21243
22171
  return false;
21244
22172
  }
21245
22173
  if ("pending" !== data2) {
21246
- 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" }];
22174
+ 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" }];
21247
22175
  return false;
21248
22176
  }
21249
22177
  var valid1 = _errs7 === errors;
@@ -21256,12 +22184,12 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
21256
22184
  const _errs9 = errors;
21257
22185
  if (errors === _errs9) {
21258
22186
  if (typeof data3 === "string") {
21259
- if (!pattern5.test(data3)) {
21260
- 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}$"' }];
22187
+ if (!pattern14.test(data3)) {
22188
+ 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}$"' }];
21261
22189
  return false;
21262
22190
  }
21263
22191
  } else {
21264
- 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" }];
22192
+ 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" }];
21265
22193
  return false;
21266
22194
  }
21267
22195
  }
@@ -21275,12 +22203,12 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
21275
22203
  const _errs11 = errors;
21276
22204
  if (errors === _errs11) {
21277
22205
  if (typeof data4 === "string") {
21278
- if (!pattern6.test(data4)) {
21279
- 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}$"' }];
22206
+ if (!pattern15.test(data4)) {
22207
+ 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}$"' }];
21280
22208
  return false;
21281
22209
  }
21282
22210
  } else {
21283
- 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" }];
22211
+ 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" }];
21284
22212
  return false;
21285
22213
  }
21286
22214
  }
@@ -21293,17 +22221,17 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
21293
22221
  let data5 = data.expiresAt;
21294
22222
  const _errs13 = errors;
21295
22223
  if (!(typeof data5 == "number" && (!(data5 % 1) && !isNaN(data5)) && isFinite(data5))) {
21296
- 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" }];
22224
+ 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" }];
21297
22225
  return false;
21298
22226
  }
21299
22227
  if (errors === _errs13) {
21300
22228
  if (typeof data5 == "number" && isFinite(data5)) {
21301
22229
  if (data5 > 9007199254740991 || isNaN(data5)) {
21302
- 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" }];
22230
+ 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" }];
21303
22231
  return false;
21304
22232
  } else {
21305
22233
  if (data5 < 0 || isNaN(data5)) {
21306
- 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" }];
22234
+ 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" }];
21307
22235
  return false;
21308
22236
  }
21309
22237
  }
@@ -21318,11 +22246,11 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
21318
22246
  let data6 = data.pollAfterMs;
21319
22247
  const _errs15 = errors;
21320
22248
  if (!(typeof data6 == "number" && isFinite(data6))) {
21321
- 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" }];
22249
+ 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" }];
21322
22250
  return false;
21323
22251
  }
21324
22252
  if (1e3 !== data6) {
21325
- 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" }];
22253
+ 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" }];
21326
22254
  return false;
21327
22255
  }
21328
22256
  var valid1 = _errs15 === errors;
@@ -21338,19 +22266,19 @@ function validate47(data, { instancePath = "", parentData, parentDataProperty, r
21338
22266
  }
21339
22267
  }
21340
22268
  } else {
21341
- 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" }];
22269
+ 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" }];
21342
22270
  return false;
21343
22271
  }
21344
22272
  }
21345
- validate47.errors = vErrors;
22273
+ validate52.errors = vErrors;
21346
22274
  return errors === 0;
21347
22275
  }
21348
- validate47.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
21349
- function validate48(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22276
+ validate52.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
22277
+ function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
21350
22278
  ;
21351
22279
  let vErrors = null;
21352
22280
  let errors = 0;
21353
- const evaluated0 = validate48.evaluated;
22281
+ const evaluated0 = validate53.evaluated;
21354
22282
  if (evaluated0.dynamicProps) {
21355
22283
  evaluated0.props = void 0;
21356
22284
  }
@@ -21633,7 +22561,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
21633
22561
  vErrors.push(err20);
21634
22562
  }
21635
22563
  errors++;
21636
- validate48.errors = vErrors;
22564
+ validate53.errors = vErrors;
21637
22565
  return false;
21638
22566
  } else {
21639
22567
  errors = _errs1;
@@ -21645,16 +22573,16 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
21645
22573
  }
21646
22574
  }
21647
22575
  }
21648
- validate48.errors = vErrors;
22576
+ validate53.errors = vErrors;
21649
22577
  evaluated0.props = props0;
21650
22578
  return errors === 0;
21651
22579
  }
21652
- validate48.evaluated = { "dynamicProps": true, "dynamicItems": false };
21653
- function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22580
+ validate53.evaluated = { "dynamicProps": true, "dynamicItems": false };
22581
+ function validate54(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
21654
22582
  ;
21655
22583
  let vErrors = null;
21656
22584
  let errors = 0;
21657
- const evaluated0 = validate49.evaluated;
22585
+ const evaluated0 = validate54.evaluated;
21658
22586
  if (evaluated0.dynamicProps) {
21659
22587
  evaluated0.props = void 0;
21660
22588
  }
@@ -21666,13 +22594,13 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
21666
22594
  if (data && typeof data == "object" && !Array.isArray(data)) {
21667
22595
  let missing0;
21668
22596
  if (data.intentId === void 0 && (missing0 = "intentId")) {
21669
- 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 + "'" }];
22597
+ 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 + "'" }];
21670
22598
  return false;
21671
22599
  } else {
21672
22600
  const _errs2 = errors;
21673
22601
  for (const key0 in data) {
21674
22602
  if (!(key0 === "intentId")) {
21675
- 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" }];
22603
+ 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" }];
21676
22604
  return false;
21677
22605
  break;
21678
22606
  }
@@ -21683,12 +22611,12 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
21683
22611
  const _errs3 = errors;
21684
22612
  if (errors === _errs3) {
21685
22613
  if (typeof data0 === "string") {
21686
- if (!pattern5.test(data0)) {
21687
- 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}$"' }];
22614
+ if (!pattern14.test(data0)) {
22615
+ 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}$"' }];
21688
22616
  return false;
21689
22617
  }
21690
22618
  } else {
21691
- 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" }];
22619
+ 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" }];
21692
22620
  return false;
21693
22621
  }
21694
22622
  }
@@ -21696,21 +22624,20 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
21696
22624
  }
21697
22625
  }
21698
22626
  } else {
21699
- 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" }];
22627
+ 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" }];
21700
22628
  return false;
21701
22629
  }
21702
22630
  }
21703
- validate49.errors = vErrors;
22631
+ validate54.errors = vErrors;
21704
22632
  return errors === 0;
21705
22633
  }
21706
- validate49.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
21707
- 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"] }] };
21708
- var func40 = Object.prototype.hasOwnProperty;
21709
- function validate50(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22634
+ validate54.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
22635
+ 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"] }] };
22636
+ function validate55(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
21710
22637
  ;
21711
22638
  let vErrors = null;
21712
22639
  let errors = 0;
21713
- const evaluated0 = validate50.evaluated;
22640
+ const evaluated0 = validate55.evaluated;
21714
22641
  if (evaluated0.dynamicProps) {
21715
22642
  evaluated0.props = void 0;
21716
22643
  }
@@ -22159,7 +23086,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
22159
23086
  } else {
22160
23087
  const _errs34 = errors;
22161
23088
  for (const key2 in data) {
22162
- if (!func40.call(schema91.anyOf[2].properties, key2)) {
23089
+ if (!func34.call(schema101.anyOf[2].properties, key2)) {
22163
23090
  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" };
22164
23091
  if (vErrors === null) {
22165
23092
  vErrors = [err32];
@@ -23193,7 +24120,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
23193
24120
  errors++;
23194
24121
  }
23195
24122
  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")) {
23196
- 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" };
24123
+ 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" };
23197
24124
  if (vErrors === null) {
23198
24125
  vErrors = [err108];
23199
24126
  } else {
@@ -23238,7 +24165,7 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
23238
24165
  vErrors.push(err110);
23239
24166
  }
23240
24167
  errors++;
23241
- validate50.errors = vErrors;
24168
+ validate55.errors = vErrors;
23242
24169
  return false;
23243
24170
  } else {
23244
24171
  errors = _errs1;
@@ -23250,18 +24177,18 @@ function validate50(data, { instancePath = "", parentData, parentDataProperty, r
23250
24177
  }
23251
24178
  }
23252
24179
  }
23253
- validate50.errors = vErrors;
24180
+ validate55.errors = vErrors;
23254
24181
  evaluated0.props = props0;
23255
24182
  return errors === 0;
23256
24183
  }
23257
- validate50.evaluated = { "dynamicProps": true, "dynamicItems": false };
23258
- 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": {} };
23259
- var pattern8 = new RegExp("^[A-Za-z0-9_-]+$", "u");
23260
- function validate51(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
24184
+ validate55.evaluated = { "dynamicProps": true, "dynamicItems": false };
24185
+ 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": {} };
24186
+ var pattern17 = new RegExp("^[A-Za-z0-9_-]+$", "u");
24187
+ function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
23261
24188
  ;
23262
24189
  let vErrors = null;
23263
24190
  let errors = 0;
23264
- const evaluated0 = validate51.evaluated;
24191
+ const evaluated0 = validate56.evaluated;
23265
24192
  if (evaluated0.dynamicProps) {
23266
24193
  evaluated0.props = void 0;
23267
24194
  }
@@ -23273,7 +24200,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
23273
24200
  if (data && typeof data == "object" && !Array.isArray(data)) {
23274
24201
  let missing0;
23275
24202
  if (data.batch === void 0 && (missing0 = "batch")) {
23276
- 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 + "'" }];
24203
+ 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 + "'" }];
23277
24204
  return false;
23278
24205
  } else {
23279
24206
  if (data.batch !== void 0) {
@@ -23617,7 +24544,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
23617
24544
  }
23618
24545
  errors++;
23619
24546
  } else {
23620
- if (!pattern8.test(data11)) {
24547
+ if (!pattern17.test(data11)) {
23621
24548
  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_-]+$"' };
23622
24549
  if (vErrors === null) {
23623
24550
  vErrors = [err22];
@@ -23656,7 +24583,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
23656
24583
  errors++;
23657
24584
  }
23658
24585
  if (!(data12 === "workos" || data12 === "service_token")) {
23659
- 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" };
24586
+ 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" };
23660
24587
  if (vErrors === null) {
23661
24588
  vErrors = [err25];
23662
24589
  } else {
@@ -23722,7 +24649,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
23722
24649
  errors++;
23723
24650
  }
23724
24651
  if (!(data14 === "claude_code" || data14 === "codex" || data14 === "cursor" || data14 === "hermes")) {
23725
- 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" };
24652
+ 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" };
23726
24653
  if (vErrors === null) {
23727
24654
  vErrors = [err30];
23728
24655
  } else {
@@ -23748,7 +24675,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
23748
24675
  errors++;
23749
24676
  }
23750
24677
  if (!(data15 === "succeeded" || data15 === "returned" || data15 === "failed" || data15 === "interrupted" || data15 === "prevented" || data15 === "unknown")) {
23751
- 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" };
24678
+ 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" };
23752
24679
  if (vErrors === null) {
23753
24680
  vErrors = [err32];
23754
24681
  } else {
@@ -24142,7 +25069,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
24142
25069
  }
24143
25070
  errors++;
24144
25071
  } else {
24145
- if (!pattern8.test(data26)) {
25072
+ if (!pattern17.test(data26)) {
24146
25073
  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_-]+$"' };
24147
25074
  if (vErrors === null) {
24148
25075
  vErrors = [err58];
@@ -24181,7 +25108,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
24181
25108
  errors++;
24182
25109
  }
24183
25110
  if (!(data27 === "workos" || data27 === "service_token")) {
24184
- 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" };
25111
+ 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" };
24185
25112
  if (vErrors === null) {
24186
25113
  vErrors = [err61];
24187
25114
  } else {
@@ -24247,7 +25174,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
24247
25174
  errors++;
24248
25175
  }
24249
25176
  if (!(data29 === "claude_code" || data29 === "codex" || data29 === "cursor" || data29 === "hermes")) {
24250
- 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" };
25177
+ 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" };
24251
25178
  if (vErrors === null) {
24252
25179
  vErrors = [err66];
24253
25180
  } else {
@@ -24273,7 +25200,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
24273
25200
  errors++;
24274
25201
  }
24275
25202
  if (!(data30 === "succeeded" || data30 === "returned" || data30 === "failed" || data30 === "interrupted" || data30 === "prevented" || data30 === "unknown")) {
24276
- 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" };
25203
+ 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" };
24277
25204
  if (vErrors === null) {
24278
25205
  vErrors = [err68];
24279
25206
  } else {
@@ -24351,7 +25278,7 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
24351
25278
  vErrors.push(err72);
24352
25279
  }
24353
25280
  errors++;
24354
- validate51.errors = vErrors;
25281
+ validate56.errors = vErrors;
24355
25282
  return false;
24356
25283
  } else {
24357
25284
  errors = _errs6;
@@ -24369,31 +25296,31 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
24369
25296
  }
24370
25297
  }
24371
25298
  } else {
24372
- 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" }];
25299
+ 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" }];
24373
25300
  return false;
24374
25301
  }
24375
25302
  }
24376
25303
  }
24377
25304
  }
24378
25305
  } else {
24379
- 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" }];
25306
+ 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" }];
24380
25307
  return false;
24381
25308
  }
24382
25309
  }
24383
- validate51.errors = vErrors;
25310
+ validate56.errors = vErrors;
24384
25311
  return errors === 0;
24385
25312
  }
24386
- validate51.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
24387
- 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"] };
24388
- var pattern10 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
24389
- var pattern12 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
24390
- var pattern13 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
24391
- var pattern14 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
24392
- function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
25313
+ validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
25314
+ 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"] };
25315
+ var pattern19 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
25316
+ var pattern21 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
25317
+ var pattern22 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
25318
+ var pattern23 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
25319
+ function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
24393
25320
  ;
24394
25321
  let vErrors = null;
24395
25322
  let errors = 0;
24396
- const evaluated0 = validate52.evaluated;
25323
+ const evaluated0 = validate57.evaluated;
24397
25324
  if (evaluated0.dynamicProps) {
24398
25325
  evaluated0.props = void 0;
24399
25326
  }
@@ -24405,13 +25332,13 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
24405
25332
  if (data && typeof data == "object" && !Array.isArray(data)) {
24406
25333
  let missing0;
24407
25334
  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")) {
24408
- 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 + "'" }];
25335
+ 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 + "'" }];
24409
25336
  return false;
24410
25337
  } else {
24411
25338
  const _errs3 = errors;
24412
25339
  for (const key0 in data) {
24413
- if (!func40.call(schema95.properties, key0)) {
24414
- 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" }];
25340
+ if (!func34.call(schema105.properties, key0)) {
25341
+ 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" }];
24415
25342
  return false;
24416
25343
  break;
24417
25344
  }
@@ -24421,11 +25348,11 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
24421
25348
  let data0 = data.protocolVersion;
24422
25349
  const _errs4 = errors;
24423
25350
  if (!(typeof data0 == "number" && isFinite(data0))) {
24424
- 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" }];
25351
+ 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" }];
24425
25352
  return false;
24426
25353
  }
24427
25354
  if (3 !== data0) {
24428
- 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" }];
25355
+ 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" }];
24429
25356
  return false;
24430
25357
  }
24431
25358
  var valid1 = _errs4 === errors;
@@ -24437,11 +25364,11 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
24437
25364
  let data1 = data.agent;
24438
25365
  const _errs6 = errors;
24439
25366
  if (typeof data1 !== "string") {
24440
- 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" }];
25367
+ 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" }];
24441
25368
  return false;
24442
25369
  }
24443
25370
  if (!(data1 === "claude_code" || data1 === "codex" || data1 === "cursor" || data1 === "hermes")) {
24444
- 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" }];
25371
+ 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" }];
24445
25372
  return false;
24446
25373
  }
24447
25374
  var valid1 = _errs6 === errors;
@@ -24454,12 +25381,12 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
24454
25381
  const _errs8 = errors;
24455
25382
  if (errors === _errs8) {
24456
25383
  if (typeof data2 === "string") {
24457
- if (!pattern10.test(data2)) {
24458
- 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}$"' }];
25384
+ if (!pattern19.test(data2)) {
25385
+ 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}$"' }];
24459
25386
  return false;
24460
25387
  }
24461
25388
  } else {
24462
- 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" }];
25389
+ 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" }];
24463
25390
  return false;
24464
25391
  }
24465
25392
  }
@@ -24473,12 +25400,12 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
24473
25400
  const _errs10 = errors;
24474
25401
  if (errors === _errs10) {
24475
25402
  if (typeof data3 === "string") {
24476
- if (!pattern10.test(data3)) {
24477
- 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}$"' }];
25403
+ if (!pattern19.test(data3)) {
25404
+ 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}$"' }];
24478
25405
  return false;
24479
25406
  }
24480
25407
  } else {
24481
- 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" }];
25408
+ 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" }];
24482
25409
  return false;
24483
25410
  }
24484
25411
  }
@@ -24492,12 +25419,12 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
24492
25419
  const _errs12 = errors;
24493
25420
  if (errors === _errs12) {
24494
25421
  if (typeof data4 === "string") {
24495
- if (!pattern12.test(data4)) {
24496
- 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}$"' }];
25422
+ if (!pattern21.test(data4)) {
25423
+ 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}$"' }];
24497
25424
  return false;
24498
25425
  }
24499
25426
  } else {
24500
- 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" }];
25427
+ 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" }];
24501
25428
  return false;
24502
25429
  }
24503
25430
  }
@@ -24512,7 +25439,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
24512
25439
  if (errors === _errs14) {
24513
25440
  if (Array.isArray(data5)) {
24514
25441
  if (data5.length > 32) {
24515
- 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" }];
25442
+ 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" }];
24516
25443
  return false;
24517
25444
  } else {
24518
25445
  var valid2 = true;
@@ -24520,7 +25447,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
24520
25447
  for (let i0 = 0; i0 < len0; i0++) {
24521
25448
  const _errs16 = errors;
24522
25449
  if (typeof data5[i0] !== "string") {
24523
- 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" }];
25450
+ 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" }];
24524
25451
  return false;
24525
25452
  }
24526
25453
  var valid2 = _errs16 === errors;
@@ -24530,7 +25457,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
24530
25457
  }
24531
25458
  }
24532
25459
  } else {
24533
- 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" }];
25460
+ 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" }];
24534
25461
  return false;
24535
25462
  }
24536
25463
  }
@@ -24543,11 +25470,11 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
24543
25470
  let data7 = data.coverage;
24544
25471
  const _errs18 = errors;
24545
25472
  if (typeof data7 !== "string") {
24546
- 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" }];
25473
+ 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" }];
24547
25474
  return false;
24548
25475
  }
24549
25476
  if (!(data7 === "complete" || data7 === "unverified")) {
24550
- 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" }];
25477
+ 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" }];
24551
25478
  return false;
24552
25479
  }
24553
25480
  var valid1 = _errs18 === errors;
@@ -24561,16 +25488,16 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
24561
25488
  if (errors === _errs20) {
24562
25489
  if (typeof data8 === "string") {
24563
25490
  if (func1(data8) > 255) {
24564
- 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" }];
25491
+ 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" }];
24565
25492
  return false;
24566
25493
  } else {
24567
- if (!pattern13.test(data8)) {
24568
- 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(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$"' }];
25494
+ if (!pattern22.test(data8)) {
25495
+ 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(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$"' }];
24569
25496
  return false;
24570
25497
  }
24571
25498
  }
24572
25499
  } else {
24573
- 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" }];
25500
+ 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" }];
24574
25501
  return false;
24575
25502
  }
24576
25503
  }
@@ -24583,11 +25510,11 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
24583
25510
  let data9 = data.clientMode;
24584
25511
  const _errs22 = errors;
24585
25512
  if (typeof data9 !== "string") {
24586
- 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" }];
25513
+ 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" }];
24587
25514
  return false;
24588
25515
  }
24589
25516
  if (!(data9 === "block" || data9 === "warn")) {
24590
- 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" }];
25517
+ 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" }];
24591
25518
  return false;
24592
25519
  }
24593
25520
  var valid1 = _errs22 === errors;
@@ -24601,16 +25528,16 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
24601
25528
  if (errors === _errs24) {
24602
25529
  if (typeof data10 === "string") {
24603
25530
  if (func1(data10) > 32) {
24604
- 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" }];
25531
+ 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" }];
24605
25532
  return false;
24606
25533
  } else {
24607
- if (!pattern14.test(data10)) {
24608
- 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._+-]*$"' }];
25534
+ if (!pattern23.test(data10)) {
25535
+ 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._+-]*$"' }];
24609
25536
  return false;
24610
25537
  }
24611
25538
  }
24612
25539
  } else {
24613
- 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" }];
25540
+ 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" }];
24614
25541
  return false;
24615
25542
  }
24616
25543
  }
@@ -24622,7 +25549,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
24622
25549
  if (data.proposal !== void 0) {
24623
25550
  const _errs26 = errors;
24624
25551
  if (typeof data.proposal !== "string") {
24625
- 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" }];
25552
+ 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" }];
24626
25553
  return false;
24627
25554
  }
24628
25555
  var valid1 = _errs26 === errors;
@@ -24642,20 +25569,20 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
24642
25569
  }
24643
25570
  }
24644
25571
  } else {
24645
- 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" }];
25572
+ 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" }];
24646
25573
  return false;
24647
25574
  }
24648
25575
  }
24649
- validate52.errors = vErrors;
25576
+ validate57.errors = vErrors;
24650
25577
  return errors === 0;
24651
25578
  }
24652
- validate52.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
24653
- 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": {} };
24654
- function validate53(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
25579
+ validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
25580
+ 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": {} };
25581
+ function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
24655
25582
  ;
24656
25583
  let vErrors = null;
24657
25584
  let errors = 0;
24658
- const evaluated0 = validate53.evaluated;
25585
+ const evaluated0 = validate58.evaluated;
24659
25586
  if (evaluated0.dynamicProps) {
24660
25587
  evaluated0.props = void 0;
24661
25588
  }
@@ -24667,18 +25594,18 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24667
25594
  if (data && typeof data == "object" && !Array.isArray(data)) {
24668
25595
  let missing0;
24669
25596
  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")) {
24670
- 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 + "'" }];
25597
+ 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 + "'" }];
24671
25598
  return false;
24672
25599
  } else {
24673
25600
  if (data.protocolVersion !== void 0) {
24674
25601
  let data0 = data.protocolVersion;
24675
25602
  const _errs3 = errors;
24676
25603
  if (!(typeof data0 == "number" && isFinite(data0))) {
24677
- 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" }];
25604
+ 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" }];
24678
25605
  return false;
24679
25606
  }
24680
25607
  if (3 !== data0) {
24681
- 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" }];
25608
+ 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" }];
24682
25609
  return false;
24683
25610
  }
24684
25611
  var valid1 = _errs3 === errors;
@@ -24691,12 +25618,12 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24691
25618
  const _errs5 = errors;
24692
25619
  if (errors === _errs5) {
24693
25620
  if (typeof data1 === "string") {
24694
- if (!pattern10.test(data1)) {
24695
- 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}$"' }];
25621
+ if (!pattern19.test(data1)) {
25622
+ 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}$"' }];
24696
25623
  return false;
24697
25624
  }
24698
25625
  } else {
24699
- 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" }];
25626
+ 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" }];
24700
25627
  return false;
24701
25628
  }
24702
25629
  }
@@ -24709,11 +25636,11 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24709
25636
  let data2 = data.verdict;
24710
25637
  const _errs7 = errors;
24711
25638
  if (typeof data2 !== "string") {
24712
- 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" }];
25639
+ 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" }];
24713
25640
  return false;
24714
25641
  }
24715
25642
  if (!(data2 === "allow" || data2 === "warn" || data2 === "ask" || data2 === "block" || data2 === "unavailable")) {
24716
- 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" }];
25643
+ 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" }];
24717
25644
  return false;
24718
25645
  }
24719
25646
  var valid1 = _errs7 === errors;
@@ -24724,7 +25651,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24724
25651
  if (data.reasonCode !== void 0) {
24725
25652
  const _errs9 = errors;
24726
25653
  if (typeof data.reasonCode !== "string") {
24727
- 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" }];
25654
+ 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" }];
24728
25655
  return false;
24729
25656
  }
24730
25657
  var valid1 = _errs9 === errors;
@@ -24735,7 +25662,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24735
25662
  if (data.message !== void 0) {
24736
25663
  const _errs11 = errors;
24737
25664
  if (typeof data.message !== "string") {
24738
- 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" }];
25665
+ 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" }];
24739
25666
  return false;
24740
25667
  }
24741
25668
  var valid1 = _errs11 === errors;
@@ -24757,13 +25684,13 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24757
25684
  if (data6 && typeof data6 == "object" && !Array.isArray(data6)) {
24758
25685
  let missing1;
24759
25686
  if (data6.decisionId === void 0 && (missing1 = "decisionId")) {
24760
- 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 + "'" }];
25687
+ 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 + "'" }];
24761
25688
  return false;
24762
25689
  } else {
24763
25690
  if (data6.decisionId !== void 0) {
24764
25691
  const _errs18 = errors;
24765
25692
  if (typeof data6.decisionId !== "string") {
24766
- 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" }];
25693
+ 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" }];
24767
25694
  return false;
24768
25695
  }
24769
25696
  var valid3 = _errs18 === errors;
@@ -24774,7 +25701,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24774
25701
  if (data6.shortId !== void 0) {
24775
25702
  const _errs20 = errors;
24776
25703
  if (typeof data6.shortId !== "string") {
24777
- 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" }];
25704
+ 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" }];
24778
25705
  return false;
24779
25706
  }
24780
25707
  var valid3 = _errs20 === errors;
@@ -24784,7 +25711,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24784
25711
  }
24785
25712
  }
24786
25713
  } else {
24787
- 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" }];
25714
+ 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" }];
24788
25715
  return false;
24789
25716
  }
24790
25717
  }
@@ -24794,7 +25721,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24794
25721
  }
24795
25722
  }
24796
25723
  } else {
24797
- 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" }];
25724
+ 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" }];
24798
25725
  return false;
24799
25726
  }
24800
25727
  }
@@ -24817,13 +25744,13 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24817
25744
  if (data10 && typeof data10 == "object" && !Array.isArray(data10)) {
24818
25745
  let missing2;
24819
25746
  if (data10.decisionId === void 0 && (missing2 = "decisionId")) {
24820
- 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 + "'" }];
25747
+ 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 + "'" }];
24821
25748
  return false;
24822
25749
  } else {
24823
25750
  if (data10.decisionId !== void 0) {
24824
25751
  const _errs27 = errors;
24825
25752
  if (typeof data10.decisionId !== "string") {
24826
- 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" }];
25753
+ 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" }];
24827
25754
  return false;
24828
25755
  }
24829
25756
  var valid5 = _errs27 === errors;
@@ -24834,7 +25761,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24834
25761
  if (data10.bypassId !== void 0) {
24835
25762
  const _errs29 = errors;
24836
25763
  if (typeof data10.bypassId !== "string") {
24837
- 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" }];
25764
+ 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" }];
24838
25765
  return false;
24839
25766
  }
24840
25767
  var valid5 = _errs29 === errors;
@@ -24845,7 +25772,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24845
25772
  if (data10.shortId !== void 0) {
24846
25773
  const _errs31 = errors;
24847
25774
  if (typeof data10.shortId !== "string") {
24848
- 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" }];
25775
+ 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" }];
24849
25776
  return false;
24850
25777
  }
24851
25778
  var valid5 = _errs31 === errors;
@@ -24856,7 +25783,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24856
25783
  }
24857
25784
  }
24858
25785
  } else {
24859
- 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" }];
25786
+ 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" }];
24860
25787
  return false;
24861
25788
  }
24862
25789
  }
@@ -24866,7 +25793,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24866
25793
  }
24867
25794
  }
24868
25795
  } else {
24869
- 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" }];
25796
+ 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" }];
24870
25797
  return false;
24871
25798
  }
24872
25799
  }
@@ -24881,11 +25808,11 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24881
25808
  if (errors === _errs33) {
24882
25809
  if (Array.isArray(data14)) {
24883
25810
  if (data14.length > 16) {
24884
- 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" }];
25811
+ 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" }];
24885
25812
  return false;
24886
25813
  } else {
24887
25814
  if (data14.length < 1) {
24888
- 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" }];
25815
+ 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" }];
24889
25816
  return false;
24890
25817
  } else {
24891
25818
  var valid6 = true;
@@ -24897,13 +25824,13 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24897
25824
  if (data15 && typeof data15 == "object" && !Array.isArray(data15)) {
24898
25825
  let missing3;
24899
25826
  if (data15.decisionId === void 0 && (missing3 = "decisionId") || data15.shortId === void 0 && (missing3 = "shortId") || data15.participation === void 0 && (missing3 = "participation")) {
24900
- 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 + "'" }];
25827
+ 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 + "'" }];
24901
25828
  return false;
24902
25829
  } else {
24903
25830
  const _errs37 = errors;
24904
25831
  for (const key0 in data15) {
24905
25832
  if (!(key0 === "decisionId" || key0 === "shortId" || key0 === "participation")) {
24906
- 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" }];
25833
+ 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" }];
24907
25834
  return false;
24908
25835
  break;
24909
25836
  }
@@ -24912,7 +25839,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24912
25839
  if (data15.decisionId !== void 0) {
24913
25840
  const _errs38 = errors;
24914
25841
  if (typeof data15.decisionId !== "string") {
24915
- 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" }];
25842
+ 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" }];
24916
25843
  return false;
24917
25844
  }
24918
25845
  var valid7 = _errs38 === errors;
@@ -24923,7 +25850,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24923
25850
  if (data15.shortId !== void 0) {
24924
25851
  const _errs40 = errors;
24925
25852
  if (typeof data15.shortId !== "string") {
24926
- 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" }];
25853
+ 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" }];
24927
25854
  return false;
24928
25855
  }
24929
25856
  var valid7 = _errs40 === errors;
@@ -24935,11 +25862,11 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24935
25862
  let data18 = data15.participation;
24936
25863
  const _errs42 = errors;
24937
25864
  if (typeof data18 !== "string") {
24938
- 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" }];
25865
+ 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" }];
24939
25866
  return false;
24940
25867
  }
24941
25868
  if (!(data18 === "candidate" || data18 === "reconcile_bypass")) {
24942
- 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" }];
25869
+ 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" }];
24943
25870
  return false;
24944
25871
  }
24945
25872
  var valid7 = _errs42 === errors;
@@ -24951,7 +25878,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24951
25878
  }
24952
25879
  }
24953
25880
  } else {
24954
- 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" }];
25881
+ 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" }];
24955
25882
  return false;
24956
25883
  }
24957
25884
  }
@@ -24963,7 +25890,7 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24963
25890
  }
24964
25891
  }
24965
25892
  } else {
24966
- 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" }];
25893
+ 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" }];
24967
25894
  return false;
24968
25895
  }
24969
25896
  }
@@ -24980,21 +25907,21 @@ function validate53(data, { instancePath = "", parentData, parentDataProperty, r
24980
25907
  }
24981
25908
  }
24982
25909
  } else {
24983
- 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" }];
25910
+ 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" }];
24984
25911
  return false;
24985
25912
  }
24986
25913
  }
24987
- validate53.errors = vErrors;
25914
+ validate58.errors = vErrors;
24988
25915
  return errors === 0;
24989
25916
  }
24990
- validate53.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
24991
- var pattern16 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
24992
- var pattern17 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
24993
- function validate54(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
25917
+ validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
25918
+ var pattern25 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
25919
+ var pattern26 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
25920
+ function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
24994
25921
  ;
24995
25922
  let vErrors = null;
24996
25923
  let errors = 0;
24997
- const evaluated0 = validate54.evaluated;
25924
+ const evaluated0 = validate59.evaluated;
24998
25925
  if (evaluated0.dynamicProps) {
24999
25926
  evaluated0.props = void 0;
25000
25927
  }
@@ -25006,7 +25933,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
25006
25933
  if (data && typeof data == "object" && !Array.isArray(data)) {
25007
25934
  let missing0;
25008
25935
  if (data.sessionId === void 0 && (missing0 = "sessionId")) {
25009
- 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 + "'" }];
25936
+ 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 + "'" }];
25010
25937
  return false;
25011
25938
  } else {
25012
25939
  if (data.sessionId !== void 0) {
@@ -25014,12 +25941,12 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
25014
25941
  const _errs3 = errors;
25015
25942
  if (errors === _errs3) {
25016
25943
  if (typeof data0 === "string") {
25017
- if (!pattern16.test(data0)) {
25018
- 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}$"' }];
25944
+ if (!pattern25.test(data0)) {
25945
+ 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}$"' }];
25019
25946
  return false;
25020
25947
  }
25021
25948
  } else {
25022
- 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" }];
25949
+ 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" }];
25023
25950
  return false;
25024
25951
  }
25025
25952
  }
@@ -25033,12 +25960,12 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
25033
25960
  const _errs5 = errors;
25034
25961
  if (errors === _errs5) {
25035
25962
  if (typeof data1 === "string") {
25036
- if (!pattern17.test(data1)) {
25037
- 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}$"' }];
25963
+ if (!pattern26.test(data1)) {
25964
+ 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}$"' }];
25038
25965
  return false;
25039
25966
  }
25040
25967
  } else {
25041
- 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" }];
25968
+ 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" }];
25042
25969
  return false;
25043
25970
  }
25044
25971
  }
@@ -25051,17 +25978,17 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
25051
25978
  let data2 = data.decisionLifecycleProtocolVersion;
25052
25979
  const _errs7 = errors;
25053
25980
  if (!(typeof data2 == "number" && (!(data2 % 1) && !isNaN(data2)) && isFinite(data2))) {
25054
- 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" }];
25981
+ 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" }];
25055
25982
  return false;
25056
25983
  }
25057
25984
  if (errors === _errs7) {
25058
25985
  if (typeof data2 == "number" && isFinite(data2)) {
25059
25986
  if (data2 > 9007199254740991 || isNaN(data2)) {
25060
- 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" }];
25987
+ 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" }];
25061
25988
  return false;
25062
25989
  } else {
25063
25990
  if (data2 < 1 || isNaN(data2)) {
25064
- 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" }];
25991
+ 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" }];
25065
25992
  return false;
25066
25993
  }
25067
25994
  }
@@ -25075,19 +26002,19 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
25075
26002
  }
25076
26003
  }
25077
26004
  } else {
25078
- 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" }];
26005
+ 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" }];
25079
26006
  return false;
25080
26007
  }
25081
26008
  }
25082
- validate54.errors = vErrors;
26009
+ validate59.errors = vErrors;
25083
26010
  return errors === 0;
25084
26011
  }
25085
- validate54.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
25086
- function validate55(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
26012
+ validate59.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
26013
+ function validate60(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
25087
26014
  ;
25088
26015
  let vErrors = null;
25089
26016
  let errors = 0;
25090
- const evaluated0 = validate55.evaluated;
26017
+ const evaluated0 = validate60.evaluated;
25091
26018
  if (evaluated0.dynamicProps) {
25092
26019
  evaluated0.props = void 0;
25093
26020
  }
@@ -25453,7 +26380,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
25453
26380
  vErrors.push(err22);
25454
26381
  }
25455
26382
  errors++;
25456
- validate55.errors = vErrors;
26383
+ validate60.errors = vErrors;
25457
26384
  return false;
25458
26385
  } else {
25459
26386
  errors = _errs1;
@@ -25465,17 +26392,17 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
25465
26392
  }
25466
26393
  }
25467
26394
  }
25468
- validate55.errors = vErrors;
26395
+ validate60.errors = vErrors;
25469
26396
  evaluated0.props = props0;
25470
26397
  return errors === 0;
25471
26398
  }
25472
- validate55.evaluated = { "dynamicProps": true, "dynamicItems": false };
25473
- 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 };
25474
- function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
26399
+ validate60.evaluated = { "dynamicProps": true, "dynamicItems": false };
26400
+ 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 };
26401
+ function validate61(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
25475
26402
  ;
25476
26403
  let vErrors = null;
25477
26404
  let errors = 0;
25478
- const evaluated0 = validate56.evaluated;
26405
+ const evaluated0 = validate61.evaluated;
25479
26406
  if (evaluated0.dynamicProps) {
25480
26407
  evaluated0.props = void 0;
25481
26408
  }
@@ -25487,13 +26414,13 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
25487
26414
  if (data && typeof data == "object" && !Array.isArray(data)) {
25488
26415
  let missing0;
25489
26416
  if (data.idOrShortId === void 0 && (missing0 = "idOrShortId") || data.checkId === void 0 && (missing0 = "checkId") || data.outcome === void 0 && (missing0 = "outcome")) {
25490
- 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 + "'" }];
26417
+ 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 + "'" }];
25491
26418
  return false;
25492
26419
  } else {
25493
26420
  const _errs2 = errors;
25494
26421
  for (const key0 in data) {
25495
26422
  if (!(key0 === "idOrShortId" || key0 === "checkId" || key0 === "outcome")) {
25496
- 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" }];
26423
+ 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" }];
25497
26424
  return false;
25498
26425
  break;
25499
26426
  }
@@ -25505,16 +26432,16 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
25505
26432
  if (errors === _errs3) {
25506
26433
  if (typeof data0 === "string") {
25507
26434
  if (func1(data0) > 128) {
25508
- 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" }];
26435
+ 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" }];
25509
26436
  return false;
25510
26437
  } else {
25511
26438
  if (func1(data0) < 1) {
25512
- 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" }];
26439
+ 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" }];
25513
26440
  return false;
25514
26441
  }
25515
26442
  }
25516
26443
  } else {
25517
- 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" }];
26444
+ 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" }];
25518
26445
  return false;
25519
26446
  }
25520
26447
  }
@@ -25529,16 +26456,16 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
25529
26456
  if (errors === _errs5) {
25530
26457
  if (typeof data1 === "string") {
25531
26458
  if (func1(data1) > 128) {
25532
- 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" }];
26459
+ 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" }];
25533
26460
  return false;
25534
26461
  } else {
25535
26462
  if (func1(data1) < 1) {
25536
- 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" }];
26463
+ 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" }];
25537
26464
  return false;
25538
26465
  }
25539
26466
  }
25540
26467
  } else {
25541
- 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" }];
26468
+ 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" }];
25542
26469
  return false;
25543
26470
  }
25544
26471
  }
@@ -25551,11 +26478,11 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
25551
26478
  let data2 = data.outcome;
25552
26479
  const _errs7 = errors;
25553
26480
  if (typeof data2 !== "string") {
25554
- 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" }];
26481
+ 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" }];
25555
26482
  return false;
25556
26483
  }
25557
26484
  if (!(data2 === "followed" || data2 === "superseded")) {
25558
- 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" }];
26485
+ 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" }];
25559
26486
  return false;
25560
26487
  }
25561
26488
  var valid1 = _errs7 === errors;
@@ -25567,20 +26494,20 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
25567
26494
  }
25568
26495
  }
25569
26496
  } else {
25570
- 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" }];
26497
+ 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" }];
25571
26498
  return false;
25572
26499
  }
25573
26500
  }
25574
- validate56.errors = vErrors;
26501
+ validate61.errors = vErrors;
25575
26502
  return errors === 0;
25576
26503
  }
25577
- validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
25578
- 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 };
25579
- function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
26504
+ validate61.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
26505
+ 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 };
26506
+ function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
25580
26507
  ;
25581
26508
  let vErrors = null;
25582
26509
  let errors = 0;
25583
- const evaluated0 = validate57.evaluated;
26510
+ const evaluated0 = validate62.evaluated;
25584
26511
  if (evaluated0.dynamicProps) {
25585
26512
  evaluated0.props = void 0;
25586
26513
  }
@@ -25592,13 +26519,13 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
25592
26519
  if (data && typeof data == "object" && !Array.isArray(data)) {
25593
26520
  let missing0;
25594
26521
  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")) {
25595
- 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 + "'" }];
26522
+ 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 + "'" }];
25596
26523
  return false;
25597
26524
  } else {
25598
26525
  const _errs2 = errors;
25599
26526
  for (const key0 in data) {
25600
26527
  if (!(key0 === "ok" || key0 === "checkId" || key0 === "decisionId" || key0 === "outcome" || key0 === "recordedAt" || key0 === "duplicate")) {
25601
- 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" }];
26528
+ 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" }];
25602
26529
  return false;
25603
26530
  break;
25604
26531
  }
@@ -25608,11 +26535,11 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
25608
26535
  let data0 = data.ok;
25609
26536
  const _errs3 = errors;
25610
26537
  if (typeof data0 !== "boolean") {
25611
- 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" }];
26538
+ 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" }];
25612
26539
  return false;
25613
26540
  }
25614
26541
  if (true !== data0) {
25615
- 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" }];
26542
+ 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" }];
25616
26543
  return false;
25617
26544
  }
25618
26545
  var valid1 = _errs3 === errors;
@@ -25623,7 +26550,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
25623
26550
  if (data.checkId !== void 0) {
25624
26551
  const _errs5 = errors;
25625
26552
  if (typeof data.checkId !== "string") {
25626
- 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" }];
26553
+ 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" }];
25627
26554
  return false;
25628
26555
  }
25629
26556
  var valid1 = _errs5 === errors;
@@ -25634,7 +26561,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
25634
26561
  if (data.decisionId !== void 0) {
25635
26562
  const _errs7 = errors;
25636
26563
  if (typeof data.decisionId !== "string") {
25637
- 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" }];
26564
+ 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" }];
25638
26565
  return false;
25639
26566
  }
25640
26567
  var valid1 = _errs7 === errors;
@@ -25646,11 +26573,11 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
25646
26573
  let data3 = data.outcome;
25647
26574
  const _errs9 = errors;
25648
26575
  if (typeof data3 !== "string") {
25649
- 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" }];
26576
+ 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" }];
25650
26577
  return false;
25651
26578
  }
25652
26579
  if (!(data3 === "followed" || data3 === "superseded")) {
25653
- 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" }];
26580
+ 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" }];
25654
26581
  return false;
25655
26582
  }
25656
26583
  var valid1 = _errs9 === errors;
@@ -25662,7 +26589,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
25662
26589
  let data4 = data.recordedAt;
25663
26590
  const _errs11 = errors;
25664
26591
  if (!(typeof data4 == "number" && isFinite(data4))) {
25665
- 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" }];
26592
+ 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" }];
25666
26593
  return false;
25667
26594
  }
25668
26595
  var valid1 = _errs11 === errors;
@@ -25673,7 +26600,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
25673
26600
  if (data.duplicate !== void 0) {
25674
26601
  const _errs13 = errors;
25675
26602
  if (typeof data.duplicate !== "boolean") {
25676
- 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" }];
26603
+ 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" }];
25677
26604
  return false;
25678
26605
  }
25679
26606
  var valid1 = _errs13 === errors;
@@ -25688,20 +26615,20 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
25688
26615
  }
25689
26616
  }
25690
26617
  } else {
25691
- 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" }];
26618
+ 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" }];
25692
26619
  return false;
25693
26620
  }
25694
26621
  }
25695
- validate57.errors = vErrors;
26622
+ validate62.errors = vErrors;
25696
26623
  return errors === 0;
25697
26624
  }
25698
- validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
25699
- 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");
25700
- function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
26625
+ validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
26626
+ 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");
26627
+ function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
25701
26628
  ;
25702
26629
  let vErrors = null;
25703
26630
  let errors = 0;
25704
- const evaluated0 = validate58.evaluated;
26631
+ const evaluated0 = validate63.evaluated;
25705
26632
  if (evaluated0.dynamicProps) {
25706
26633
  evaluated0.props = void 0;
25707
26634
  }
@@ -25713,13 +26640,13 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
25713
26640
  if (data && typeof data == "object" && !Array.isArray(data)) {
25714
26641
  let missing0;
25715
26642
  if (data.repositoryFullName === void 0 && (missing0 = "repositoryFullName")) {
25716
- 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 + "'" }];
26643
+ 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 + "'" }];
25717
26644
  return false;
25718
26645
  } else {
25719
26646
  const _errs2 = errors;
25720
26647
  for (const key0 in data) {
25721
26648
  if (!(key0 === "repositoryFullName")) {
25722
- 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" }];
26649
+ 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" }];
25723
26650
  return false;
25724
26651
  break;
25725
26652
  }
@@ -25730,12 +26657,12 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
25730
26657
  const _errs3 = errors;
25731
26658
  if (errors === _errs3) {
25732
26659
  if (typeof data0 === "string") {
25733
- if (!pattern18.test(data0)) {
25734
- 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}$"' }];
26660
+ if (!pattern27.test(data0)) {
26661
+ 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}$"' }];
25735
26662
  return false;
25736
26663
  }
25737
26664
  } else {
25738
- 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" }];
26665
+ 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" }];
25739
26666
  return false;
25740
26667
  }
25741
26668
  }
@@ -25743,19 +26670,19 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
25743
26670
  }
25744
26671
  }
25745
26672
  } else {
25746
- 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" }];
26673
+ 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" }];
25747
26674
  return false;
25748
26675
  }
25749
26676
  }
25750
- validate58.errors = vErrors;
26677
+ validate63.errors = vErrors;
25751
26678
  return errors === 0;
25752
26679
  }
25753
- validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
25754
- function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
26680
+ validate63.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
26681
+ function validate64(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
25755
26682
  ;
25756
26683
  let vErrors = null;
25757
26684
  let errors = 0;
25758
- const evaluated0 = validate59.evaluated;
26685
+ const evaluated0 = validate64.evaluated;
25759
26686
  if (evaluated0.dynamicProps) {
25760
26687
  evaluated0.props = void 0;
25761
26688
  }
@@ -25767,7 +26694,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
25767
26694
  if (data && typeof data == "object" && !Array.isArray(data)) {
25768
26695
  let missing0;
25769
26696
  if (data.repoSyncId === void 0 && (missing0 = "repoSyncId")) {
25770
- 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 + "'" }];
26697
+ 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 + "'" }];
25771
26698
  return false;
25772
26699
  } else {
25773
26700
  if (data.repoSyncId !== void 0) {
@@ -25776,32 +26703,31 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
25776
26703
  if (errors === _errs3) {
25777
26704
  if (typeof data0 === "string") {
25778
26705
  if (func1(data0) < 1) {
25779
- 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" }];
26706
+ 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" }];
25780
26707
  return false;
25781
26708
  }
25782
26709
  } else {
25783
- 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" }];
26710
+ 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" }];
25784
26711
  return false;
25785
26712
  }
25786
26713
  }
25787
26714
  }
25788
26715
  }
25789
26716
  } else {
25790
- 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" }];
26717
+ 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" }];
25791
26718
  return false;
25792
26719
  }
25793
26720
  }
25794
- validate59.errors = vErrors;
26721
+ validate64.errors = vErrors;
25795
26722
  return errors === 0;
25796
26723
  }
25797
- validate59.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
25798
- var pattern19 = new RegExp("^[a-f0-9]{64}$", "u");
25799
- var pattern20 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
25800
- function validate60(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
26724
+ validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
26725
+ var pattern29 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
26726
+ function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
25801
26727
  ;
25802
26728
  let vErrors = null;
25803
26729
  let errors = 0;
25804
- const evaluated0 = validate60.evaluated;
26730
+ const evaluated0 = validate65.evaluated;
25805
26731
  if (evaluated0.dynamicProps) {
25806
26732
  evaluated0.props = void 0;
25807
26733
  }
@@ -25813,13 +26739,13 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
25813
26739
  if (data && typeof data == "object" && !Array.isArray(data)) {
25814
26740
  let missing0;
25815
26741
  if (data.requestId === void 0 && (missing0 = "requestId") || data.limit === void 0 && (missing0 = "limit")) {
25816
- 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 + "'" }];
26742
+ 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 + "'" }];
25817
26743
  return false;
25818
26744
  } else {
25819
26745
  const _errs2 = errors;
25820
26746
  for (const key0 in data) {
25821
26747
  if (!(key0 === "requestId" || key0 === "limit" || key0 === "after")) {
25822
- 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" }];
26748
+ 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" }];
25823
26749
  return false;
25824
26750
  break;
25825
26751
  }
@@ -25830,12 +26756,12 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
25830
26756
  const _errs3 = errors;
25831
26757
  if (errors === _errs3) {
25832
26758
  if (typeof data0 === "string") {
25833
- if (!pattern19.test(data0)) {
25834
- 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}$"' }];
26759
+ if (!pattern5.test(data0)) {
26760
+ 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}$"' }];
25835
26761
  return false;
25836
26762
  }
25837
26763
  } else {
25838
- 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" }];
26764
+ 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" }];
25839
26765
  return false;
25840
26766
  }
25841
26767
  }
@@ -25848,17 +26774,17 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
25848
26774
  let data1 = data.limit;
25849
26775
  const _errs5 = errors;
25850
26776
  if (!(typeof data1 == "number" && (!(data1 % 1) && !isNaN(data1)) && isFinite(data1))) {
25851
- 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" }];
26777
+ 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" }];
25852
26778
  return false;
25853
26779
  }
25854
26780
  if (errors === _errs5) {
25855
26781
  if (typeof data1 == "number" && isFinite(data1)) {
25856
26782
  if (data1 > 100 || isNaN(data1)) {
25857
- 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" }];
26783
+ 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" }];
25858
26784
  return false;
25859
26785
  } else {
25860
26786
  if (data1 < 1 || isNaN(data1)) {
25861
- 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" }];
26787
+ 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" }];
25862
26788
  return false;
25863
26789
  }
25864
26790
  }
@@ -25875,21 +26801,21 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
25875
26801
  if (errors === _errs7) {
25876
26802
  if (typeof data2 === "string") {
25877
26803
  if (func1(data2) > 256) {
25878
- 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" }];
26804
+ 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" }];
25879
26805
  return false;
25880
26806
  } else {
25881
26807
  if (func1(data2) < 9) {
25882
- 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" }];
26808
+ 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" }];
25883
26809
  return false;
25884
26810
  } else {
25885
- if (!pattern20.test(data2)) {
25886
- 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_-]+$"' }];
26811
+ if (!pattern29.test(data2)) {
26812
+ 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_-]+$"' }];
25887
26813
  return false;
25888
26814
  }
25889
26815
  }
25890
26816
  }
25891
26817
  } else {
25892
- 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" }];
26818
+ 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" }];
25893
26819
  return false;
25894
26820
  }
25895
26821
  }
@@ -25902,22 +26828,22 @@ function validate60(data, { instancePath = "", parentData, parentDataProperty, r
25902
26828
  }
25903
26829
  }
25904
26830
  } else {
25905
- 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" }];
26831
+ 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" }];
25906
26832
  return false;
25907
26833
  }
25908
26834
  }
25909
- validate60.errors = vErrors;
26835
+ validate65.errors = vErrors;
25910
26836
  return errors === 0;
25911
26837
  }
25912
- validate60.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
25913
- var pattern22 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
25914
- var pattern23 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
25915
- var pattern24 = new RegExp("^[\\x21-\\x7e]+$", "u");
25916
- function validate61(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
26838
+ validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
26839
+ var pattern31 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
26840
+ var pattern32 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
26841
+ var pattern33 = new RegExp("^[\\x21-\\x7e]+$", "u");
26842
+ function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
25917
26843
  ;
25918
26844
  let vErrors = null;
25919
26845
  let errors = 0;
25920
- const evaluated0 = validate61.evaluated;
26846
+ const evaluated0 = validate66.evaluated;
25921
26847
  if (evaluated0.dynamicProps) {
25922
26848
  evaluated0.props = void 0;
25923
26849
  }
@@ -25929,13 +26855,13 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
25929
26855
  if (data && typeof data == "object" && !Array.isArray(data)) {
25930
26856
  let missing0;
25931
26857
  if (data.apiKeys === void 0 && (missing0 = "apiKeys") || data.nextCursor === void 0 && (missing0 = "nextCursor")) {
25932
- 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 + "'" }];
26858
+ 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 + "'" }];
25933
26859
  return false;
25934
26860
  } else {
25935
26861
  const _errs2 = errors;
25936
26862
  for (const key0 in data) {
25937
26863
  if (!(key0 === "apiKeys" || key0 === "nextCursor")) {
25938
- 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" }];
26864
+ 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" }];
25939
26865
  return false;
25940
26866
  break;
25941
26867
  }
@@ -25947,7 +26873,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
25947
26873
  if (errors === _errs3) {
25948
26874
  if (Array.isArray(data0)) {
25949
26875
  if (data0.length > 100) {
25950
- 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" }];
26876
+ 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" }];
25951
26877
  return false;
25952
26878
  } else {
25953
26879
  var valid2 = true;
@@ -25959,13 +26885,13 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
25959
26885
  if (data1 && typeof data1 == "object" && !Array.isArray(data1)) {
25960
26886
  let missing1;
25961
26887
  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")) {
25962
- 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 + "'" }];
26888
+ 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 + "'" }];
25963
26889
  return false;
25964
26890
  } else {
25965
26891
  const _errs7 = errors;
25966
26892
  for (const key1 in data1) {
25967
26893
  if (!(key1 === "id" || key1 === "name" || key1 === "obfuscatedValue" || key1 === "permissions" || key1 === "lastUsedAt" || key1 === "expiresAt" || key1 === "createdAt" || key1 === "updatedAt")) {
25968
- 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" }];
26894
+ 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" }];
25969
26895
  return false;
25970
26896
  break;
25971
26897
  }
@@ -25977,21 +26903,21 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
25977
26903
  if (errors === _errs8) {
25978
26904
  if (typeof data2 === "string") {
25979
26905
  if (func1(data2) > 256) {
25980
- 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" }];
26906
+ 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" }];
25981
26907
  return false;
25982
26908
  } else {
25983
26909
  if (func1(data2) < 9) {
25984
- 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" }];
26910
+ 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" }];
25985
26911
  return false;
25986
26912
  } else {
25987
- if (!pattern20.test(data2)) {
25988
- 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_-]+$"' }];
26913
+ if (!pattern29.test(data2)) {
26914
+ 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_-]+$"' }];
25989
26915
  return false;
25990
26916
  }
25991
26917
  }
25992
26918
  }
25993
26919
  } else {
25994
- 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" }];
26920
+ 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" }];
25995
26921
  return false;
25996
26922
  }
25997
26923
  }
@@ -26006,21 +26932,21 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
26006
26932
  if (errors === _errs10) {
26007
26933
  if (typeof data3 === "string") {
26008
26934
  if (func1(data3) > 128) {
26009
- 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" }];
26935
+ 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" }];
26010
26936
  return false;
26011
26937
  } else {
26012
26938
  if (func1(data3) < 1) {
26013
- 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" }];
26939
+ 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" }];
26014
26940
  return false;
26015
26941
  } else {
26016
- if (!pattern22.test(data3)) {
26017
- 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])?$"' }];
26942
+ if (!pattern31.test(data3)) {
26943
+ 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])?$"' }];
26018
26944
  return false;
26019
26945
  }
26020
26946
  }
26021
26947
  }
26022
26948
  } else {
26023
- 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" }];
26949
+ 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" }];
26024
26950
  return false;
26025
26951
  }
26026
26952
  }
@@ -26035,21 +26961,21 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
26035
26961
  if (errors === _errs12) {
26036
26962
  if (typeof data4 === "string") {
26037
26963
  if (func1(data4) > 256) {
26038
- 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" }];
26964
+ 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" }];
26039
26965
  return false;
26040
26966
  } else {
26041
26967
  if (func1(data4) < 1) {
26042
- 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" }];
26968
+ 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" }];
26043
26969
  return false;
26044
26970
  } else {
26045
- if (!pattern23.test(data4)) {
26046
- 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]+$"' }];
26971
+ if (!pattern32.test(data4)) {
26972
+ 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]+$"' }];
26047
26973
  return false;
26048
26974
  }
26049
26975
  }
26050
26976
  }
26051
26977
  } else {
26052
- 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" }];
26978
+ 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" }];
26053
26979
  return false;
26054
26980
  }
26055
26981
  }
@@ -26064,7 +26990,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
26064
26990
  if (errors === _errs14) {
26065
26991
  if (Array.isArray(data5)) {
26066
26992
  if (data5.length > 100) {
26067
- 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" }];
26993
+ 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" }];
26068
26994
  return false;
26069
26995
  } else {
26070
26996
  var valid4 = true;
@@ -26075,21 +27001,21 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
26075
27001
  if (errors === _errs16) {
26076
27002
  if (typeof data6 === "string") {
26077
27003
  if (func1(data6) > 128) {
26078
- 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" }];
27004
+ 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" }];
26079
27005
  return false;
26080
27006
  } else {
26081
27007
  if (func1(data6) < 1) {
26082
- 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" }];
27008
+ 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" }];
26083
27009
  return false;
26084
27010
  } else {
26085
- if (!pattern24.test(data6)) {
26086
- 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]+$"' }];
27011
+ if (!pattern33.test(data6)) {
27012
+ 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]+$"' }];
26087
27013
  return false;
26088
27014
  }
26089
27015
  }
26090
27016
  }
26091
27017
  } else {
26092
- 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" }];
27018
+ 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" }];
26093
27019
  return false;
26094
27020
  }
26095
27021
  }
@@ -26100,7 +27026,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
26100
27026
  }
26101
27027
  }
26102
27028
  } else {
26103
- 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" }];
27029
+ 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" }];
26104
27030
  return false;
26105
27031
  }
26106
27032
  }
@@ -26169,7 +27095,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
26169
27095
  vErrors.push(err4);
26170
27096
  }
26171
27097
  errors++;
26172
- validate61.errors = vErrors;
27098
+ validate66.errors = vErrors;
26173
27099
  return false;
26174
27100
  } else {
26175
27101
  errors = _errs19;
@@ -26246,7 +27172,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
26246
27172
  vErrors.push(err9);
26247
27173
  }
26248
27174
  errors++;
26249
- validate61.errors = vErrors;
27175
+ validate66.errors = vErrors;
26250
27176
  return false;
26251
27177
  } else {
26252
27178
  errors = _errs25;
@@ -26267,17 +27193,17 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
26267
27193
  let data9 = data1.createdAt;
26268
27194
  const _errs30 = errors;
26269
27195
  if (!(typeof data9 == "number" && (!(data9 % 1) && !isNaN(data9)) && isFinite(data9))) {
26270
- 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" }];
27196
+ 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" }];
26271
27197
  return false;
26272
27198
  }
26273
27199
  if (errors === _errs30) {
26274
27200
  if (typeof data9 == "number" && isFinite(data9)) {
26275
27201
  if (data9 > 9007199254740991 || isNaN(data9)) {
26276
- 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" }];
27202
+ 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" }];
26277
27203
  return false;
26278
27204
  } else {
26279
27205
  if (data9 < 0 || isNaN(data9)) {
26280
- 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" }];
27206
+ 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" }];
26281
27207
  return false;
26282
27208
  }
26283
27209
  }
@@ -26292,17 +27218,17 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
26292
27218
  let data10 = data1.updatedAt;
26293
27219
  const _errs32 = errors;
26294
27220
  if (!(typeof data10 == "number" && (!(data10 % 1) && !isNaN(data10)) && isFinite(data10))) {
26295
- 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" }];
27221
+ 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" }];
26296
27222
  return false;
26297
27223
  }
26298
27224
  if (errors === _errs32) {
26299
27225
  if (typeof data10 == "number" && isFinite(data10)) {
26300
27226
  if (data10 > 9007199254740991 || isNaN(data10)) {
26301
- 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" }];
27227
+ 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" }];
26302
27228
  return false;
26303
27229
  } else {
26304
27230
  if (data10 < 0 || isNaN(data10)) {
26305
- 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" }];
27231
+ 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" }];
26306
27232
  return false;
26307
27233
  }
26308
27234
  }
@@ -26322,7 +27248,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
26322
27248
  }
26323
27249
  }
26324
27250
  } else {
26325
- 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" }];
27251
+ 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" }];
26326
27252
  return false;
26327
27253
  }
26328
27254
  }
@@ -26333,7 +27259,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
26333
27259
  }
26334
27260
  }
26335
27261
  } else {
26336
- 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" }];
27262
+ 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" }];
26337
27263
  return false;
26338
27264
  }
26339
27265
  }
@@ -26368,7 +27294,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
26368
27294
  }
26369
27295
  errors++;
26370
27296
  } else {
26371
- if (!pattern20.test(data11)) {
27297
+ if (!pattern29.test(data11)) {
26372
27298
  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_-]+$"' };
26373
27299
  if (vErrors === null) {
26374
27300
  vErrors = [err12];
@@ -26411,7 +27337,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
26411
27337
  vErrors.push(err15);
26412
27338
  }
26413
27339
  errors++;
26414
- validate61.errors = vErrors;
27340
+ validate66.errors = vErrors;
26415
27341
  return false;
26416
27342
  } else {
26417
27343
  errors = _errs35;
@@ -26431,19 +27357,19 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
26431
27357
  }
26432
27358
  }
26433
27359
  } else {
26434
- 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" }];
27360
+ 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" }];
26435
27361
  return false;
26436
27362
  }
26437
27363
  }
26438
- validate61.errors = vErrors;
27364
+ validate66.errors = vErrors;
26439
27365
  return errors === 0;
26440
27366
  }
26441
- validate61.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
26442
- function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
27367
+ validate66.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
27368
+ function validate67(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
26443
27369
  ;
26444
27370
  let vErrors = null;
26445
27371
  let errors = 0;
26446
- const evaluated0 = validate62.evaluated;
27372
+ const evaluated0 = validate67.evaluated;
26447
27373
  if (evaluated0.dynamicProps) {
26448
27374
  evaluated0.props = void 0;
26449
27375
  }
@@ -26455,13 +27381,13 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
26455
27381
  if (data && typeof data == "object" && !Array.isArray(data)) {
26456
27382
  let missing0;
26457
27383
  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")) {
26458
- 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 + "'" }];
27384
+ 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 + "'" }];
26459
27385
  return false;
26460
27386
  } else {
26461
27387
  const _errs2 = errors;
26462
27388
  for (const key0 in data) {
26463
27389
  if (!(key0 === "id" || key0 === "name" || key0 === "obfuscatedValue" || key0 === "permissions" || key0 === "lastUsedAt" || key0 === "expiresAt" || key0 === "createdAt" || key0 === "updatedAt")) {
26464
- 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" }];
27390
+ 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" }];
26465
27391
  return false;
26466
27392
  break;
26467
27393
  }
@@ -26473,21 +27399,21 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
26473
27399
  if (errors === _errs3) {
26474
27400
  if (typeof data0 === "string") {
26475
27401
  if (func1(data0) > 256) {
26476
- 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" }];
27402
+ 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" }];
26477
27403
  return false;
26478
27404
  } else {
26479
27405
  if (func1(data0) < 9) {
26480
- 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" }];
27406
+ 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" }];
26481
27407
  return false;
26482
27408
  } else {
26483
- if (!pattern20.test(data0)) {
26484
- 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_-]+$"' }];
27409
+ if (!pattern29.test(data0)) {
27410
+ 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_-]+$"' }];
26485
27411
  return false;
26486
27412
  }
26487
27413
  }
26488
27414
  }
26489
27415
  } else {
26490
- 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" }];
27416
+ 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" }];
26491
27417
  return false;
26492
27418
  }
26493
27419
  }
@@ -26502,21 +27428,21 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
26502
27428
  if (errors === _errs5) {
26503
27429
  if (typeof data1 === "string") {
26504
27430
  if (func1(data1) > 128) {
26505
- 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" }];
27431
+ 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" }];
26506
27432
  return false;
26507
27433
  } else {
26508
27434
  if (func1(data1) < 1) {
26509
- 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" }];
27435
+ 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" }];
26510
27436
  return false;
26511
27437
  } else {
26512
- if (!pattern22.test(data1)) {
26513
- 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])?$"' }];
27438
+ if (!pattern31.test(data1)) {
27439
+ 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])?$"' }];
26514
27440
  return false;
26515
27441
  }
26516
27442
  }
26517
27443
  }
26518
27444
  } else {
26519
- 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" }];
27445
+ 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" }];
26520
27446
  return false;
26521
27447
  }
26522
27448
  }
@@ -26531,21 +27457,21 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
26531
27457
  if (errors === _errs7) {
26532
27458
  if (typeof data2 === "string") {
26533
27459
  if (func1(data2) > 256) {
26534
- 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" }];
27460
+ 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" }];
26535
27461
  return false;
26536
27462
  } else {
26537
27463
  if (func1(data2) < 1) {
26538
- 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" }];
27464
+ 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" }];
26539
27465
  return false;
26540
27466
  } else {
26541
- if (!pattern23.test(data2)) {
26542
- 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]+$"' }];
27467
+ if (!pattern32.test(data2)) {
27468
+ 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]+$"' }];
26543
27469
  return false;
26544
27470
  }
26545
27471
  }
26546
27472
  }
26547
27473
  } else {
26548
- 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" }];
27474
+ 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" }];
26549
27475
  return false;
26550
27476
  }
26551
27477
  }
@@ -26560,7 +27486,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
26560
27486
  if (errors === _errs9) {
26561
27487
  if (Array.isArray(data3)) {
26562
27488
  if (data3.length > 100) {
26563
- 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" }];
27489
+ 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" }];
26564
27490
  return false;
26565
27491
  } else {
26566
27492
  var valid2 = true;
@@ -26571,21 +27497,21 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
26571
27497
  if (errors === _errs11) {
26572
27498
  if (typeof data4 === "string") {
26573
27499
  if (func1(data4) > 128) {
26574
- 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" }];
27500
+ 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" }];
26575
27501
  return false;
26576
27502
  } else {
26577
27503
  if (func1(data4) < 1) {
26578
- 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" }];
27504
+ 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" }];
26579
27505
  return false;
26580
27506
  } else {
26581
- if (!pattern24.test(data4)) {
26582
- 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]+$"' }];
27507
+ if (!pattern33.test(data4)) {
27508
+ 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]+$"' }];
26583
27509
  return false;
26584
27510
  }
26585
27511
  }
26586
27512
  }
26587
27513
  } else {
26588
- 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" }];
27514
+ 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" }];
26589
27515
  return false;
26590
27516
  }
26591
27517
  }
@@ -26596,7 +27522,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
26596
27522
  }
26597
27523
  }
26598
27524
  } else {
26599
- 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" }];
27525
+ 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" }];
26600
27526
  return false;
26601
27527
  }
26602
27528
  }
@@ -26665,7 +27591,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
26665
27591
  vErrors.push(err4);
26666
27592
  }
26667
27593
  errors++;
26668
- validate62.errors = vErrors;
27594
+ validate67.errors = vErrors;
26669
27595
  return false;
26670
27596
  } else {
26671
27597
  errors = _errs14;
@@ -26742,7 +27668,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
26742
27668
  vErrors.push(err9);
26743
27669
  }
26744
27670
  errors++;
26745
- validate62.errors = vErrors;
27671
+ validate67.errors = vErrors;
26746
27672
  return false;
26747
27673
  } else {
26748
27674
  errors = _errs20;
@@ -26763,17 +27689,17 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
26763
27689
  let data7 = data.createdAt;
26764
27690
  const _errs25 = errors;
26765
27691
  if (!(typeof data7 == "number" && (!(data7 % 1) && !isNaN(data7)) && isFinite(data7))) {
26766
- 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" }];
27692
+ 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" }];
26767
27693
  return false;
26768
27694
  }
26769
27695
  if (errors === _errs25) {
26770
27696
  if (typeof data7 == "number" && isFinite(data7)) {
26771
27697
  if (data7 > 9007199254740991 || isNaN(data7)) {
26772
- 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" }];
27698
+ 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" }];
26773
27699
  return false;
26774
27700
  } else {
26775
27701
  if (data7 < 0 || isNaN(data7)) {
26776
- 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" }];
27702
+ 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" }];
26777
27703
  return false;
26778
27704
  }
26779
27705
  }
@@ -26788,17 +27714,17 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
26788
27714
  let data8 = data.updatedAt;
26789
27715
  const _errs27 = errors;
26790
27716
  if (!(typeof data8 == "number" && (!(data8 % 1) && !isNaN(data8)) && isFinite(data8))) {
26791
- 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" }];
27717
+ 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" }];
26792
27718
  return false;
26793
27719
  }
26794
27720
  if (errors === _errs27) {
26795
27721
  if (typeof data8 == "number" && isFinite(data8)) {
26796
27722
  if (data8 > 9007199254740991 || isNaN(data8)) {
26797
- 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" }];
27723
+ 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" }];
26798
27724
  return false;
26799
27725
  } else {
26800
27726
  if (data8 < 0 || isNaN(data8)) {
26801
- 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" }];
27727
+ 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" }];
26802
27728
  return false;
26803
27729
  }
26804
27730
  }
@@ -26818,19 +27744,19 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
26818
27744
  }
26819
27745
  }
26820
27746
  } else {
26821
- 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" }];
27747
+ 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" }];
26822
27748
  return false;
26823
27749
  }
26824
27750
  }
26825
- validate62.errors = vErrors;
27751
+ validate67.errors = vErrors;
26826
27752
  return errors === 0;
26827
27753
  }
26828
- validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
26829
- function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
27754
+ validate67.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
27755
+ function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
26830
27756
  ;
26831
27757
  let vErrors = null;
26832
27758
  let errors = 0;
26833
- const evaluated0 = validate63.evaluated;
27759
+ const evaluated0 = validate68.evaluated;
26834
27760
  if (evaluated0.dynamicProps) {
26835
27761
  evaluated0.props = void 0;
26836
27762
  }
@@ -26842,13 +27768,13 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
26842
27768
  if (data && typeof data == "object" && !Array.isArray(data)) {
26843
27769
  let missing0;
26844
27770
  if (data.requestId === void 0 && (missing0 = "requestId") || data.name === void 0 && (missing0 = "name")) {
26845
- 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 + "'" }];
27771
+ 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 + "'" }];
26846
27772
  return false;
26847
27773
  } else {
26848
27774
  const _errs2 = errors;
26849
27775
  for (const key0 in data) {
26850
27776
  if (!(key0 === "requestId" || key0 === "name" || key0 === "expiresAt")) {
26851
- 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" }];
27777
+ 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" }];
26852
27778
  return false;
26853
27779
  break;
26854
27780
  }
@@ -26859,12 +27785,12 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
26859
27785
  const _errs3 = errors;
26860
27786
  if (errors === _errs3) {
26861
27787
  if (typeof data0 === "string") {
26862
- if (!pattern19.test(data0)) {
26863
- 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}$"' }];
27788
+ if (!pattern5.test(data0)) {
27789
+ 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}$"' }];
26864
27790
  return false;
26865
27791
  }
26866
27792
  } else {
26867
- 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" }];
27793
+ 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" }];
26868
27794
  return false;
26869
27795
  }
26870
27796
  }
@@ -26879,21 +27805,21 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
26879
27805
  if (errors === _errs5) {
26880
27806
  if (typeof data1 === "string") {
26881
27807
  if (func1(data1) > 128) {
26882
- 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" }];
27808
+ 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" }];
26883
27809
  return false;
26884
27810
  } else {
26885
27811
  if (func1(data1) < 1) {
26886
- 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" }];
27812
+ 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" }];
26887
27813
  return false;
26888
27814
  } else {
26889
- if (!pattern22.test(data1)) {
26890
- 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])?$"' }];
27815
+ if (!pattern31.test(data1)) {
27816
+ 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])?$"' }];
26891
27817
  return false;
26892
27818
  }
26893
27819
  }
26894
27820
  }
26895
27821
  } else {
26896
- 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" }];
27822
+ 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" }];
26897
27823
  return false;
26898
27824
  }
26899
27825
  }
@@ -26906,17 +27832,17 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
26906
27832
  let data2 = data.expiresAt;
26907
27833
  const _errs7 = errors;
26908
27834
  if (!(typeof data2 == "number" && (!(data2 % 1) && !isNaN(data2)) && isFinite(data2))) {
26909
- 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" }];
27835
+ 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" }];
26910
27836
  return false;
26911
27837
  }
26912
27838
  if (errors === _errs7) {
26913
27839
  if (typeof data2 == "number" && isFinite(data2)) {
26914
27840
  if (data2 > 9007199254740991 || isNaN(data2)) {
26915
- 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" }];
27841
+ 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" }];
26916
27842
  return false;
26917
27843
  } else {
26918
27844
  if (data2 < 0 || isNaN(data2)) {
26919
- 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" }];
27845
+ 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" }];
26920
27846
  return false;
26921
27847
  }
26922
27848
  }
@@ -26931,20 +27857,20 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
26931
27857
  }
26932
27858
  }
26933
27859
  } else {
26934
- 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" }];
27860
+ 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" }];
26935
27861
  return false;
26936
27862
  }
26937
27863
  }
26938
- validate63.errors = vErrors;
27864
+ validate68.errors = vErrors;
26939
27865
  return errors === 0;
26940
27866
  }
26941
- validate63.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
26942
- var pattern36 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
26943
- function validate64(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
27867
+ validate68.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
27868
+ var pattern45 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
27869
+ function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
26944
27870
  ;
26945
27871
  let vErrors = null;
26946
27872
  let errors = 0;
26947
- const evaluated0 = validate64.evaluated;
27873
+ const evaluated0 = validate69.evaluated;
26948
27874
  if (evaluated0.dynamicProps) {
26949
27875
  evaluated0.props = void 0;
26950
27876
  }
@@ -26956,13 +27882,13 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
26956
27882
  if (data && typeof data == "object" && !Array.isArray(data)) {
26957
27883
  let missing0;
26958
27884
  if (data.apiKey === void 0 && (missing0 = "apiKey") || data.secret === void 0 && (missing0 = "secret")) {
26959
- 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 + "'" }];
27885
+ 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 + "'" }];
26960
27886
  return false;
26961
27887
  } else {
26962
27888
  const _errs2 = errors;
26963
27889
  for (const key0 in data) {
26964
27890
  if (!(key0 === "apiKey" || key0 === "secret")) {
26965
- 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" }];
27891
+ 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" }];
26966
27892
  return false;
26967
27893
  break;
26968
27894
  }
@@ -26975,13 +27901,13 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
26975
27901
  if (data0 && typeof data0 == "object" && !Array.isArray(data0)) {
26976
27902
  let missing1;
26977
27903
  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")) {
26978
- 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 + "'" }];
27904
+ 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 + "'" }];
26979
27905
  return false;
26980
27906
  } else {
26981
27907
  const _errs5 = errors;
26982
27908
  for (const key1 in data0) {
26983
27909
  if (!(key1 === "id" || key1 === "name" || key1 === "obfuscatedValue" || key1 === "permissions" || key1 === "lastUsedAt" || key1 === "expiresAt" || key1 === "createdAt" || key1 === "updatedAt")) {
26984
- 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" }];
27910
+ 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" }];
26985
27911
  return false;
26986
27912
  break;
26987
27913
  }
@@ -26993,21 +27919,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
26993
27919
  if (errors === _errs6) {
26994
27920
  if (typeof data1 === "string") {
26995
27921
  if (func1(data1) > 256) {
26996
- 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" }];
27922
+ 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" }];
26997
27923
  return false;
26998
27924
  } else {
26999
27925
  if (func1(data1) < 9) {
27000
- 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" }];
27926
+ 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" }];
27001
27927
  return false;
27002
27928
  } else {
27003
- if (!pattern20.test(data1)) {
27004
- 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_-]+$"' }];
27929
+ if (!pattern29.test(data1)) {
27930
+ 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_-]+$"' }];
27005
27931
  return false;
27006
27932
  }
27007
27933
  }
27008
27934
  }
27009
27935
  } else {
27010
- 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" }];
27936
+ 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" }];
27011
27937
  return false;
27012
27938
  }
27013
27939
  }
@@ -27022,21 +27948,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
27022
27948
  if (errors === _errs8) {
27023
27949
  if (typeof data2 === "string") {
27024
27950
  if (func1(data2) > 128) {
27025
- 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" }];
27951
+ 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" }];
27026
27952
  return false;
27027
27953
  } else {
27028
27954
  if (func1(data2) < 1) {
27029
- 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" }];
27955
+ 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" }];
27030
27956
  return false;
27031
27957
  } else {
27032
- if (!pattern22.test(data2)) {
27033
- 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])?$"' }];
27958
+ if (!pattern31.test(data2)) {
27959
+ 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])?$"' }];
27034
27960
  return false;
27035
27961
  }
27036
27962
  }
27037
27963
  }
27038
27964
  } else {
27039
- 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" }];
27965
+ 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" }];
27040
27966
  return false;
27041
27967
  }
27042
27968
  }
@@ -27051,21 +27977,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
27051
27977
  if (errors === _errs10) {
27052
27978
  if (typeof data3 === "string") {
27053
27979
  if (func1(data3) > 256) {
27054
- 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" }];
27980
+ 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" }];
27055
27981
  return false;
27056
27982
  } else {
27057
27983
  if (func1(data3) < 1) {
27058
- 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" }];
27984
+ 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" }];
27059
27985
  return false;
27060
27986
  } else {
27061
- if (!pattern23.test(data3)) {
27062
- 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]+$"' }];
27987
+ if (!pattern32.test(data3)) {
27988
+ 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]+$"' }];
27063
27989
  return false;
27064
27990
  }
27065
27991
  }
27066
27992
  }
27067
27993
  } else {
27068
- 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" }];
27994
+ 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" }];
27069
27995
  return false;
27070
27996
  }
27071
27997
  }
@@ -27080,7 +28006,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
27080
28006
  if (errors === _errs12) {
27081
28007
  if (Array.isArray(data4)) {
27082
28008
  if (data4.length > 100) {
27083
- 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" }];
28009
+ 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" }];
27084
28010
  return false;
27085
28011
  } else {
27086
28012
  var valid3 = true;
@@ -27091,21 +28017,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
27091
28017
  if (errors === _errs14) {
27092
28018
  if (typeof data5 === "string") {
27093
28019
  if (func1(data5) > 128) {
27094
- 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" }];
28020
+ 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" }];
27095
28021
  return false;
27096
28022
  } else {
27097
28023
  if (func1(data5) < 1) {
27098
- 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" }];
28024
+ 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" }];
27099
28025
  return false;
27100
28026
  } else {
27101
- if (!pattern24.test(data5)) {
27102
- 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]+$"' }];
28027
+ if (!pattern33.test(data5)) {
28028
+ 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]+$"' }];
27103
28029
  return false;
27104
28030
  }
27105
28031
  }
27106
28032
  }
27107
28033
  } else {
27108
- 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" }];
28034
+ 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" }];
27109
28035
  return false;
27110
28036
  }
27111
28037
  }
@@ -27116,7 +28042,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
27116
28042
  }
27117
28043
  }
27118
28044
  } else {
27119
- 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" }];
28045
+ 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" }];
27120
28046
  return false;
27121
28047
  }
27122
28048
  }
@@ -27185,7 +28111,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
27185
28111
  vErrors.push(err4);
27186
28112
  }
27187
28113
  errors++;
27188
- validate64.errors = vErrors;
28114
+ validate69.errors = vErrors;
27189
28115
  return false;
27190
28116
  } else {
27191
28117
  errors = _errs17;
@@ -27262,7 +28188,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
27262
28188
  vErrors.push(err9);
27263
28189
  }
27264
28190
  errors++;
27265
- validate64.errors = vErrors;
28191
+ validate69.errors = vErrors;
27266
28192
  return false;
27267
28193
  } else {
27268
28194
  errors = _errs23;
@@ -27283,17 +28209,17 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
27283
28209
  let data8 = data0.createdAt;
27284
28210
  const _errs28 = errors;
27285
28211
  if (!(typeof data8 == "number" && (!(data8 % 1) && !isNaN(data8)) && isFinite(data8))) {
27286
- 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" }];
28212
+ 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" }];
27287
28213
  return false;
27288
28214
  }
27289
28215
  if (errors === _errs28) {
27290
28216
  if (typeof data8 == "number" && isFinite(data8)) {
27291
28217
  if (data8 > 9007199254740991 || isNaN(data8)) {
27292
- 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" }];
28218
+ 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" }];
27293
28219
  return false;
27294
28220
  } else {
27295
28221
  if (data8 < 0 || isNaN(data8)) {
27296
- 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" }];
28222
+ 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" }];
27297
28223
  return false;
27298
28224
  }
27299
28225
  }
@@ -27308,17 +28234,17 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
27308
28234
  let data9 = data0.updatedAt;
27309
28235
  const _errs30 = errors;
27310
28236
  if (!(typeof data9 == "number" && (!(data9 % 1) && !isNaN(data9)) && isFinite(data9))) {
27311
- 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" }];
28237
+ 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" }];
27312
28238
  return false;
27313
28239
  }
27314
28240
  if (errors === _errs30) {
27315
28241
  if (typeof data9 == "number" && isFinite(data9)) {
27316
28242
  if (data9 > 9007199254740991 || isNaN(data9)) {
27317
- 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" }];
28243
+ 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" }];
27318
28244
  return false;
27319
28245
  } else {
27320
28246
  if (data9 < 0 || isNaN(data9)) {
27321
- 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" }];
28247
+ 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" }];
27322
28248
  return false;
27323
28249
  }
27324
28250
  }
@@ -27338,7 +28264,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
27338
28264
  }
27339
28265
  }
27340
28266
  } else {
27341
- 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" }];
28267
+ 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" }];
27342
28268
  return false;
27343
28269
  }
27344
28270
  }
@@ -27353,21 +28279,21 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
27353
28279
  if (errors === _errs32) {
27354
28280
  if (typeof data10 === "string") {
27355
28281
  if (func1(data10) > 4096) {
27356
- 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" }];
28282
+ 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" }];
27357
28283
  return false;
27358
28284
  } else {
27359
28285
  if (func1(data10) < 4) {
27360
- 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" }];
28286
+ 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" }];
27361
28287
  return false;
27362
28288
  } else {
27363
- if (!pattern36.test(data10)) {
27364
- 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]+)*$"' }];
28289
+ if (!pattern45.test(data10)) {
28290
+ 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]+)*$"' }];
27365
28291
  return false;
27366
28292
  }
27367
28293
  }
27368
28294
  }
27369
28295
  } else {
27370
- 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" }];
28296
+ 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" }];
27371
28297
  return false;
27372
28298
  }
27373
28299
  }
@@ -27379,19 +28305,19 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
27379
28305
  }
27380
28306
  }
27381
28307
  } else {
27382
- 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" }];
28308
+ 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" }];
27383
28309
  return false;
27384
28310
  }
27385
28311
  }
27386
- validate64.errors = vErrors;
28312
+ validate69.errors = vErrors;
27387
28313
  return errors === 0;
27388
28314
  }
27389
- validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
27390
- function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
28315
+ validate69.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
28316
+ function validate70(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
27391
28317
  ;
27392
28318
  let vErrors = null;
27393
28319
  let errors = 0;
27394
- const evaluated0 = validate65.evaluated;
28320
+ const evaluated0 = validate70.evaluated;
27395
28321
  if (evaluated0.dynamicProps) {
27396
28322
  evaluated0.props = void 0;
27397
28323
  }
@@ -27403,13 +28329,13 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
27403
28329
  if (data && typeof data == "object" && !Array.isArray(data)) {
27404
28330
  let missing0;
27405
28331
  if (data.requestId === void 0 && (missing0 = "requestId")) {
27406
- 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 + "'" }];
28332
+ 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 + "'" }];
27407
28333
  return false;
27408
28334
  } else {
27409
28335
  const _errs2 = errors;
27410
28336
  for (const key0 in data) {
27411
28337
  if (!(key0 === "requestId")) {
27412
- 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" }];
28338
+ 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" }];
27413
28339
  return false;
27414
28340
  break;
27415
28341
  }
@@ -27420,12 +28346,12 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
27420
28346
  const _errs3 = errors;
27421
28347
  if (errors === _errs3) {
27422
28348
  if (typeof data0 === "string") {
27423
- if (!pattern19.test(data0)) {
27424
- 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}$"' }];
28349
+ if (!pattern5.test(data0)) {
28350
+ 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}$"' }];
27425
28351
  return false;
27426
28352
  }
27427
28353
  } else {
27428
- 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" }];
28354
+ 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" }];
27429
28355
  return false;
27430
28356
  }
27431
28357
  }
@@ -27433,19 +28359,19 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
27433
28359
  }
27434
28360
  }
27435
28361
  } else {
27436
- 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" }];
28362
+ 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" }];
27437
28363
  return false;
27438
28364
  }
27439
28365
  }
27440
- validate65.errors = vErrors;
28366
+ validate70.errors = vErrors;
27441
28367
  return errors === 0;
27442
28368
  }
27443
- validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
27444
- function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
28369
+ validate70.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
28370
+ function validate71(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
27445
28371
  ;
27446
28372
  let vErrors = null;
27447
28373
  let errors = 0;
27448
- const evaluated0 = validate66.evaluated;
28374
+ const evaluated0 = validate71.evaluated;
27449
28375
  if (evaluated0.dynamicProps) {
27450
28376
  evaluated0.props = void 0;
27451
28377
  }
@@ -27457,13 +28383,13 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
27457
28383
  if (data && typeof data == "object" && !Array.isArray(data)) {
27458
28384
  let missing0;
27459
28385
  if (data.apiKeyId === void 0 && (missing0 = "apiKeyId") || data.revoked === void 0 && (missing0 = "revoked")) {
27460
- 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 + "'" }];
28386
+ 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 + "'" }];
27461
28387
  return false;
27462
28388
  } else {
27463
28389
  const _errs2 = errors;
27464
28390
  for (const key0 in data) {
27465
28391
  if (!(key0 === "apiKeyId" || key0 === "revoked")) {
27466
- 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" }];
28392
+ 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" }];
27467
28393
  return false;
27468
28394
  break;
27469
28395
  }
@@ -27475,21 +28401,21 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
27475
28401
  if (errors === _errs3) {
27476
28402
  if (typeof data0 === "string") {
27477
28403
  if (func1(data0) > 256) {
27478
- 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" }];
28404
+ 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" }];
27479
28405
  return false;
27480
28406
  } else {
27481
28407
  if (func1(data0) < 9) {
27482
- 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" }];
28408
+ 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" }];
27483
28409
  return false;
27484
28410
  } else {
27485
- if (!pattern20.test(data0)) {
27486
- 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_-]+$"' }];
28411
+ if (!pattern29.test(data0)) {
28412
+ 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_-]+$"' }];
27487
28413
  return false;
27488
28414
  }
27489
28415
  }
27490
28416
  }
27491
28417
  } else {
27492
- 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" }];
28418
+ 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" }];
27493
28419
  return false;
27494
28420
  }
27495
28421
  }
@@ -27502,11 +28428,11 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
27502
28428
  let data1 = data.revoked;
27503
28429
  const _errs5 = errors;
27504
28430
  if (typeof data1 !== "boolean") {
27505
- 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" }];
28431
+ 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" }];
27506
28432
  return false;
27507
28433
  }
27508
28434
  if (true !== data1) {
27509
- 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" }];
28435
+ 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" }];
27510
28436
  return false;
27511
28437
  }
27512
28438
  var valid1 = _errs5 === errors;
@@ -27517,19 +28443,19 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
27517
28443
  }
27518
28444
  }
27519
28445
  } else {
27520
- 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" }];
28446
+ 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" }];
27521
28447
  return false;
27522
28448
  }
27523
28449
  }
27524
- validate66.errors = vErrors;
28450
+ validate71.errors = vErrors;
27525
28451
  return errors === 0;
27526
28452
  }
27527
- validate66.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
27528
- function validate67(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
28453
+ validate71.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
28454
+ function validate72(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
27529
28455
  ;
27530
28456
  let vErrors = null;
27531
28457
  let errors = 0;
27532
- const evaluated0 = validate67.evaluated;
28458
+ const evaluated0 = validate72.evaluated;
27533
28459
  if (evaluated0.dynamicProps) {
27534
28460
  evaluated0.props = void 0;
27535
28461
  }
@@ -27541,13 +28467,13 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
27541
28467
  if (data && typeof data == "object" && !Array.isArray(data)) {
27542
28468
  let missing0;
27543
28469
  if (data.error === void 0 && (missing0 = "error")) {
27544
- 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 + "'" }];
28470
+ 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 + "'" }];
27545
28471
  return false;
27546
28472
  } else {
27547
28473
  const _errs2 = errors;
27548
28474
  for (const key0 in data) {
27549
28475
  if (!(key0 === "error")) {
27550
- 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" }];
28476
+ 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" }];
27551
28477
  return false;
27552
28478
  break;
27553
28479
  }
@@ -27556,30 +28482,30 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
27556
28482
  if (data.error !== void 0) {
27557
28483
  let data0 = data.error;
27558
28484
  if (typeof data0 !== "string") {
27559
- 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" }];
28485
+ 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" }];
27560
28486
  return false;
27561
28487
  }
27562
28488
  if ("Not found" !== data0) {
27563
- 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" }];
28489
+ 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" }];
27564
28490
  return false;
27565
28491
  }
27566
28492
  }
27567
28493
  }
27568
28494
  }
27569
28495
  } else {
27570
- 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" }];
28496
+ 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" }];
27571
28497
  return false;
27572
28498
  }
27573
28499
  }
27574
- validate67.errors = vErrors;
28500
+ validate72.errors = vErrors;
27575
28501
  return errors === 0;
27576
28502
  }
27577
- validate67.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
27578
- function validate68(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
28503
+ validate72.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
28504
+ function validate73(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
27579
28505
  ;
27580
28506
  let vErrors = null;
27581
28507
  let errors = 0;
27582
- const evaluated0 = validate68.evaluated;
28508
+ const evaluated0 = validate73.evaluated;
27583
28509
  if (evaluated0.dynamicProps) {
27584
28510
  evaluated0.props = void 0;
27585
28511
  }
@@ -27728,7 +28654,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
27728
28654
  vErrors.push(err10);
27729
28655
  }
27730
28656
  errors++;
27731
- validate68.errors = vErrors;
28657
+ validate73.errors = vErrors;
27732
28658
  return false;
27733
28659
  } else {
27734
28660
  errors = _errs1;
@@ -27740,18 +28666,18 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
27740
28666
  }
27741
28667
  }
27742
28668
  }
27743
- validate68.errors = vErrors;
28669
+ validate73.errors = vErrors;
27744
28670
  evaluated0.props = props0;
27745
28671
  return errors === 0;
27746
28672
  }
27747
- validate68.evaluated = { "dynamicProps": true, "dynamicItems": false };
27748
- 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"] };
27749
- var pattern39 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
27750
- function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
28673
+ validate73.evaluated = { "dynamicProps": true, "dynamicItems": false };
28674
+ 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"] };
28675
+ var pattern48 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
28676
+ function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
27751
28677
  ;
27752
28678
  let vErrors = null;
27753
28679
  let errors = 0;
27754
- const evaluated0 = validate69.evaluated;
28680
+ const evaluated0 = validate74.evaluated;
27755
28681
  if (evaluated0.dynamicProps) {
27756
28682
  evaluated0.props = void 0;
27757
28683
  }
@@ -27763,13 +28689,13 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
27763
28689
  if (data && typeof data == "object" && !Array.isArray(data)) {
27764
28690
  let missing0;
27765
28691
  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")) {
27766
- 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 + "'" }];
28692
+ 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 + "'" }];
27767
28693
  return false;
27768
28694
  } else {
27769
28695
  const _errs3 = errors;
27770
28696
  for (const key0 in data) {
27771
28697
  if (!(key0 === "protocol_version" || key0 === "issuer" || key0 === "client_id" || key0 === "default_scopes")) {
27772
- 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" }];
28698
+ 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" }];
27773
28699
  return false;
27774
28700
  break;
27775
28701
  }
@@ -27779,11 +28705,11 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
27779
28705
  let data0 = data.protocol_version;
27780
28706
  const _errs4 = errors;
27781
28707
  if (!(typeof data0 == "number" && isFinite(data0))) {
27782
- 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" }];
28708
+ 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" }];
27783
28709
  return false;
27784
28710
  }
27785
28711
  if (1 !== data0) {
27786
- 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" }];
28712
+ 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" }];
27787
28713
  return false;
27788
28714
  }
27789
28715
  var valid1 = _errs4 === errors;
@@ -27796,7 +28722,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
27796
28722
  if (errors === _errs6) {
27797
28723
  if (errors === _errs6) {
27798
28724
  if (!(typeof data.issuer === "string")) {
27799
- 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" }];
28725
+ 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" }];
27800
28726
  return false;
27801
28727
  }
27802
28728
  }
@@ -27812,16 +28738,16 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
27812
28738
  if (errors === _errs8) {
27813
28739
  if (typeof data2 === "string") {
27814
28740
  if (func1(data2) > 256) {
27815
- 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" }];
28741
+ 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" }];
27816
28742
  return false;
27817
28743
  } else {
27818
- if (!pattern39.test(data2)) {
27819
- 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_-]+$"' }];
28744
+ if (!pattern48.test(data2)) {
28745
+ 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_-]+$"' }];
27820
28746
  return false;
27821
28747
  }
27822
28748
  }
27823
28749
  } else {
27824
- 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" }];
28750
+ 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" }];
27825
28751
  return false;
27826
28752
  }
27827
28753
  }
@@ -27836,11 +28762,11 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
27836
28762
  if (errors === _errs10) {
27837
28763
  if (Array.isArray(data3)) {
27838
28764
  if (data3.length > 4) {
27839
- 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" }];
28765
+ 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" }];
27840
28766
  return false;
27841
28767
  } else {
27842
28768
  if (data3.length < 4) {
27843
- 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" }];
28769
+ 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" }];
27844
28770
  return false;
27845
28771
  } else {
27846
28772
  var valid2 = true;
@@ -27849,11 +28775,11 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
27849
28775
  let data4 = data3[i0];
27850
28776
  const _errs12 = errors;
27851
28777
  if (typeof data4 !== "string") {
27852
- 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" }];
28778
+ 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" }];
27853
28779
  return false;
27854
28780
  }
27855
28781
  if (!(data4 === "openid" || data4 === "profile" || data4 === "email" || data4 === "offline_access")) {
27856
- 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" }];
28782
+ 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" }];
27857
28783
  return false;
27858
28784
  }
27859
28785
  var valid2 = _errs12 === errors;
@@ -27864,7 +28790,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
27864
28790
  }
27865
28791
  }
27866
28792
  } else {
27867
- 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" }];
28793
+ 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" }];
27868
28794
  return false;
27869
28795
  }
27870
28796
  }
@@ -27878,19 +28804,19 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
27878
28804
  }
27879
28805
  }
27880
28806
  } else {
27881
- 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" }];
28807
+ 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" }];
27882
28808
  return false;
27883
28809
  }
27884
28810
  }
27885
- validate69.errors = vErrors;
28811
+ validate74.errors = vErrors;
27886
28812
  return errors === 0;
27887
28813
  }
27888
- validate69.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
27889
- function validate70(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
28814
+ validate74.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
28815
+ function validate75(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
27890
28816
  ;
27891
28817
  let vErrors = null;
27892
28818
  let errors = 0;
27893
- const evaluated0 = validate70.evaluated;
28819
+ const evaluated0 = validate75.evaluated;
27894
28820
  if (evaluated0.dynamicProps) {
27895
28821
  evaluated0.props = void 0;
27896
28822
  }
@@ -27902,13 +28828,13 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
27902
28828
  if (data && typeof data == "object" && !Array.isArray(data)) {
27903
28829
  let missing0;
27904
28830
  if (data.error === void 0 && (missing0 = "error")) {
27905
- 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 + "'" }];
28831
+ 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 + "'" }];
27906
28832
  return false;
27907
28833
  } else {
27908
28834
  const _errs2 = errors;
27909
28835
  for (const key0 in data) {
27910
28836
  if (!(key0 === "error")) {
27911
- 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" }];
28837
+ 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" }];
27912
28838
  return false;
27913
28839
  break;
27914
28840
  }
@@ -27917,25 +28843,25 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
27917
28843
  if (data.error !== void 0) {
27918
28844
  let data0 = data.error;
27919
28845
  if (typeof data0 !== "string") {
27920
- 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" }];
28846
+ 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" }];
27921
28847
  return false;
27922
28848
  }
27923
28849
  if ("connect_device_auth_unavailable" !== data0) {
27924
- 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" }];
28850
+ 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" }];
27925
28851
  return false;
27926
28852
  }
27927
28853
  }
27928
28854
  }
27929
28855
  }
27930
28856
  } else {
27931
- 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" }];
28857
+ 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" }];
27932
28858
  return false;
27933
28859
  }
27934
28860
  }
27935
- validate70.errors = vErrors;
28861
+ validate75.errors = vErrors;
27936
28862
  return errors === 0;
27937
28863
  }
27938
- validate70.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
28864
+ validate75.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
27939
28865
 
27940
28866
  // src/lib/collect-scope.ts
27941
28867
  var PRIM_COLLECT_SCOPE_KEY = "prim.collectScope";