@primitive.ai/prim 0.1.0-alpha.110 → 0.1.0-alpha.112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +11 -1
  2. package/SKILL.md +12 -2
  3. package/dist/{chunk-KQ4WBK5R.js → chunk-3KKEV7VI.js} +2 -2
  4. package/dist/{chunk-2IRLFOEL.js → chunk-6JHKKLA2.js} +79 -1
  5. package/dist/{chunk-IQZA65NV.js → chunk-7DVEH7FO.js} +1 -1
  6. package/dist/{chunk-W4ZEPZLK.js → chunk-BXLH4LDU.js} +1 -1
  7. package/dist/{chunk-GA2RXPJL.js → chunk-DWAXFXDG.js} +2 -2
  8. package/dist/{chunk-7VIMU2HR.js → chunk-FTW4ZCBA.js} +2 -2
  9. package/dist/{chunk-JJI7FU24.js → chunk-HMD5K6W7.js} +1 -1
  10. package/dist/{chunk-HTRFPXMD.js → chunk-IW5HCCOW.js} +3 -3
  11. package/dist/{chunk-UDBBJWQH.js → chunk-IZXLH3R5.js} +930 -582
  12. package/dist/{chunk-5LRKJTLA.js → chunk-J5HBSRAV.js} +7 -5
  13. package/dist/{chunk-5BLGBSDM.js → chunk-JDIAPBY7.js} +1 -1
  14. package/dist/{chunk-2Q3OGSTV.js → chunk-NEQI2VLM.js} +2 -2
  15. package/dist/{chunk-AOJ254C2.js → chunk-PJW6JZMH.js} +4 -4
  16. package/dist/{chunk-43ZKL27W.js → chunk-RTULPLS7.js} +1 -1
  17. package/dist/{chunk-CTRAJCPN.js → chunk-XV6C5ZV2.js} +1 -1
  18. package/dist/daemon/server.js +1184 -754
  19. package/dist/hook-runtime/daemon/server.js +1184 -754
  20. package/dist/hook-runtime/hooks/post-commit.js +929 -581
  21. package/dist/hook-runtime/hooks/post-rewrite.js +929 -581
  22. package/dist/hook-runtime/hooks/post-tool-use.js +1015 -588
  23. package/dist/hook-runtime/hooks/pre-commit.js +85 -6
  24. package/dist/hook-runtime/hooks/pre-tool-use.js +1018 -592
  25. package/dist/hook-runtime/hooks/prim-hook.js +1016 -589
  26. package/dist/hook-runtime/hooks/session-end.js +14 -12
  27. package/dist/hook-runtime/hooks/session-start.js +1016 -589
  28. package/dist/hook-runtime/index.js +1211 -791
  29. package/dist/hook-runtime/statusline-main.js +7 -5
  30. package/dist/hooks/post-commit.js +5 -5
  31. package/dist/hooks/post-rewrite.js +5 -5
  32. package/dist/hooks/post-tool-use.js +12 -12
  33. package/dist/hooks/pre-commit.js +3 -3
  34. package/dist/hooks/pre-tool-use.js +11 -12
  35. package/dist/hooks/prim-hook.js +12 -12
  36. package/dist/hooks/session-end.js +1 -1
  37. package/dist/hooks/session-start.js +7 -7
  38. package/dist/index.js +177 -183
  39. package/dist/statusline-main.js +7 -5
  40. package/package.json +2 -1
@@ -968,7 +968,9 @@ function validate22(data, { instancePath = "", parentData, parentDataProperty, r
968
968
  return errors === 0;
969
969
  }
970
970
  validate22.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
971
- var schema37 = { "type": "object", "properties": { "decision": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "intent": { "type": "string" }, "area": { "type": "string" }, "authorName": { "type": "string" }, "classifiedAt": { "type": "number" }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] } }, "required": ["id", "intent", "authorName", "classifiedAt", "status"], "additionalProperties": {} }, "rationale": { "type": "string" }, "reversibility": { "type": "string", "enum": ["high", "low"] }, "fanOut": { "type": "number" }, "upstream": { "type": "object", "properties": { "files": { "type": "array", "items": { "type": "string" } } }, "required": ["files"], "additionalProperties": {} }, "downstream": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "intent": { "type": "string" }, "area": { "type": "string" }, "authorName": { "type": "string" }, "classifiedAt": { "type": "number" }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] } }, "required": ["id", "intent", "authorName", "classifiedAt", "status"], "additionalProperties": {} } }, "trigger": { "anyOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["file_edit", "supersession", "invalidation", "confirmation_request"] }, "file": { "type": "string" }, "contextName": { "type": "string" }, "flaggedAt": { "type": "number" }, "authorName": { "type": "string" }, "reason": { "type": "string" } }, "required": ["type", "flaggedAt"], "additionalProperties": {} }, { "type": "null" }] }, "truncated": { "type": "boolean" } }, "required": ["decision", "fanOut", "upstream", "downstream", "trigger", "truncated"], "additionalProperties": {} };
971
+ var schema37 = { "type": "object", "properties": { "decision": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "intent": { "type": "string" }, "area": { "type": "string" }, "authorName": { "type": "string" }, "classifiedAt": { "type": "number" }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] } }, "required": ["id", "intent", "authorName", "classifiedAt", "status"], "additionalProperties": {} }, "rationale": { "type": "string" }, "reversibility": { "type": "string", "enum": ["high", "low"] }, "fanOut": { "type": "number" }, "upstream": { "type": "object", "properties": { "files": { "type": "array", "items": { "type": "string" } } }, "required": ["files"], "additionalProperties": {} }, "downstream": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "intent": { "type": "string" }, "area": { "type": "string" }, "authorName": { "type": "string" }, "classifiedAt": { "type": "number" }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] } }, "required": ["id", "intent", "authorName", "classifiedAt", "status"], "additionalProperties": {} } }, "trigger": { "anyOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["file_edit", "supersession", "invalidation", "confirmation_request"] }, "file": { "type": "string" }, "contextName": { "type": "string" }, "flaggedAt": { "type": "number" }, "authorName": { "type": "string" }, "reason": { "type": "string" } }, "required": ["type", "flaggedAt"], "additionalProperties": {} }, { "type": "null" }] }, "truncated": { "type": "boolean" } }, "required": ["decision", "fanOut", "upstream", "downstream", "trigger", "truncated"], "additionalProperties": {} };
972
+ var pattern4 = new RegExp("^dec_[0-9a-f]{8}$", "u");
973
+ var pattern5 = new RegExp("^[0-9a-f]{8}$", "u");
972
974
  function validate23(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
973
975
  ;
974
976
  let vErrors = null;
@@ -1006,6 +1008,11 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
1006
1008
  if (func1(data1) < 1) {
1007
1009
  validate23.errors = [{ instancePath: instancePath + "/decision/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/decision/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
1008
1010
  return false;
1011
+ } else {
1012
+ if (!pattern4.test(data1)) {
1013
+ validate23.errors = [{ instancePath: instancePath + "/decision/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/decision/properties/id/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
1014
+ return false;
1015
+ }
1009
1016
  }
1010
1017
  } else {
1011
1018
  validate23.errors = [{ instancePath: instancePath + "/decision/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/decision/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
@@ -1018,10 +1025,18 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
1018
1025
  }
1019
1026
  if (valid2) {
1020
1027
  if (data0.shortId !== void 0) {
1028
+ let data2 = data0.shortId;
1021
1029
  const _errs8 = errors;
1022
- if (typeof data0.shortId !== "string") {
1023
- validate23.errors = [{ instancePath: instancePath + "/decision/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/decision/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
1024
- return false;
1030
+ if (errors === _errs8) {
1031
+ if (typeof data2 === "string") {
1032
+ if (!pattern5.test(data2)) {
1033
+ validate23.errors = [{ instancePath: instancePath + "/decision/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/decision/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
1034
+ return false;
1035
+ }
1036
+ } else {
1037
+ validate23.errors = [{ instancePath: instancePath + "/decision/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/decision/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
1038
+ return false;
1039
+ }
1025
1040
  }
1026
1041
  var valid2 = _errs8 === errors;
1027
1042
  } else {
@@ -1214,6 +1229,11 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
1214
1229
  if (func1(data16) < 1) {
1215
1230
  validate23.errors = [{ instancePath: instancePath + "/downstream/" + i1 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/downstream/items/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
1216
1231
  return false;
1232
+ } else {
1233
+ if (!pattern4.test(data16)) {
1234
+ validate23.errors = [{ instancePath: instancePath + "/downstream/" + i1 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/downstream/items/properties/id/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
1235
+ return false;
1236
+ }
1217
1237
  }
1218
1238
  } else {
1219
1239
  validate23.errors = [{ instancePath: instancePath + "/downstream/" + i1 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/downstream/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
@@ -1226,10 +1246,18 @@ function validate23(data, { instancePath = "", parentData, parentDataProperty, r
1226
1246
  }
1227
1247
  if (valid6) {
1228
1248
  if (data15.shortId !== void 0) {
1249
+ let data17 = data15.shortId;
1229
1250
  const _errs40 = errors;
1230
- if (typeof data15.shortId !== "string") {
1231
- validate23.errors = [{ instancePath: instancePath + "/downstream/" + i1 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/downstream/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
1232
- return false;
1251
+ if (errors === _errs40) {
1252
+ if (typeof data17 === "string") {
1253
+ if (!pattern5.test(data17)) {
1254
+ validate23.errors = [{ instancePath: instancePath + "/downstream/" + i1 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/downstream/items/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
1255
+ return false;
1256
+ }
1257
+ } else {
1258
+ validate23.errors = [{ instancePath: instancePath + "/downstream/" + i1 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCascadeResponse/properties/downstream/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
1259
+ return false;
1260
+ }
1233
1261
  }
1234
1262
  var valid6 = _errs40 === errors;
1235
1263
  } else {
@@ -2468,7 +2496,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
2468
2496
  return errors === 0;
2469
2497
  }
2470
2498
  validate25.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
2471
- var schema43 = { "anyOf": [{ "type": "object", "properties": { "decisionId": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "outcome": { "type": "string", "enum": ["stale", "confirmed", "corrected"] } }, "required": ["decisionId", "outcome"], "additionalProperties": {} }, { "type": "object", "properties": { "decisionId": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "outcome": { "type": "string", "const": "already_responded" }, "confirmed": { "type": "boolean" }, "respondedAt": { "type": "number" } }, "required": ["decisionId", "outcome", "respondedAt"], "additionalProperties": {} }, { "type": "object", "properties": { "decisionId": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "outcome": { "type": "string", "const": "no_pending_prompt" } }, "required": ["decisionId", "outcome"], "additionalProperties": {} }] };
2499
+ var schema43 = { "anyOf": [{ "type": "object", "properties": { "decisionId": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "outcome": { "type": "string", "enum": ["stale", "confirmed", "corrected"] } }, "required": ["decisionId", "outcome"], "additionalProperties": {} }, { "type": "object", "properties": { "decisionId": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "outcome": { "type": "string", "const": "already_responded" }, "confirmed": { "type": "boolean" }, "respondedAt": { "type": "number" } }, "required": ["decisionId", "outcome", "respondedAt"], "additionalProperties": {} }, { "type": "object", "properties": { "decisionId": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "outcome": { "type": "string", "const": "no_pending_prompt" } }, "required": ["decisionId", "outcome"], "additionalProperties": {} }] };
2472
2500
  function validate26(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
2473
2501
  ;
2474
2502
  let vErrors = null;
@@ -2508,13 +2536,23 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
2508
2536
  vErrors.push(err1);
2509
2537
  }
2510
2538
  errors++;
2539
+ } else {
2540
+ if (!pattern4.test(data0)) {
2541
+ const err2 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/0/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' };
2542
+ if (vErrors === null) {
2543
+ vErrors = [err2];
2544
+ } else {
2545
+ vErrors.push(err2);
2546
+ }
2547
+ errors++;
2548
+ }
2511
2549
  }
2512
2550
  } else {
2513
- const err2 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/0/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2551
+ const err3 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/0/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2514
2552
  if (vErrors === null) {
2515
- vErrors = [err2];
2553
+ vErrors = [err3];
2516
2554
  } else {
2517
- vErrors.push(err2);
2555
+ vErrors.push(err3);
2518
2556
  }
2519
2557
  errors++;
2520
2558
  }
@@ -2525,15 +2563,28 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
2525
2563
  }
2526
2564
  if (valid2) {
2527
2565
  if (data.shortId !== void 0) {
2566
+ let data1 = data.shortId;
2528
2567
  const _errs7 = errors;
2529
- if (typeof data.shortId !== "string") {
2530
- const err3 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/0/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2531
- if (vErrors === null) {
2532
- vErrors = [err3];
2568
+ if (errors === _errs7) {
2569
+ if (typeof data1 === "string") {
2570
+ if (!pattern5.test(data1)) {
2571
+ const err4 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/0/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' };
2572
+ if (vErrors === null) {
2573
+ vErrors = [err4];
2574
+ } else {
2575
+ vErrors.push(err4);
2576
+ }
2577
+ errors++;
2578
+ }
2533
2579
  } else {
2534
- vErrors.push(err3);
2580
+ const err5 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/0/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2581
+ if (vErrors === null) {
2582
+ vErrors = [err5];
2583
+ } else {
2584
+ vErrors.push(err5);
2585
+ }
2586
+ errors++;
2535
2587
  }
2536
- errors++;
2537
2588
  }
2538
2589
  var valid2 = _errs7 === errors;
2539
2590
  } else {
@@ -2544,20 +2595,20 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
2544
2595
  let data2 = data.outcome;
2545
2596
  const _errs9 = errors;
2546
2597
  if (typeof data2 !== "string") {
2547
- const err4 = { instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/0/properties/outcome/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2598
+ const err6 = { instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/0/properties/outcome/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2548
2599
  if (vErrors === null) {
2549
- vErrors = [err4];
2600
+ vErrors = [err6];
2550
2601
  } else {
2551
- vErrors.push(err4);
2602
+ vErrors.push(err6);
2552
2603
  }
2553
2604
  errors++;
2554
2605
  }
2555
2606
  if (!(data2 === "stale" || data2 === "confirmed" || data2 === "corrected")) {
2556
- const err5 = { instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/0/properties/outcome/enum", keyword: "enum", params: { allowedValues: schema43.anyOf[0].properties.outcome.enum }, message: "must be equal to one of the allowed values" };
2607
+ const err7 = { instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/0/properties/outcome/enum", keyword: "enum", params: { allowedValues: schema43.anyOf[0].properties.outcome.enum }, message: "must be equal to one of the allowed values" };
2557
2608
  if (vErrors === null) {
2558
- vErrors = [err5];
2609
+ vErrors = [err7];
2559
2610
  } else {
2560
- vErrors.push(err5);
2611
+ vErrors.push(err7);
2561
2612
  }
2562
2613
  errors++;
2563
2614
  }
@@ -2569,11 +2620,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
2569
2620
  }
2570
2621
  }
2571
2622
  } else {
2572
- const err6 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2623
+ const err8 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2573
2624
  if (vErrors === null) {
2574
- vErrors = [err6];
2625
+ vErrors = [err8];
2575
2626
  } else {
2576
- vErrors.push(err6);
2627
+ vErrors.push(err8);
2577
2628
  }
2578
2629
  errors++;
2579
2630
  }
@@ -2588,11 +2639,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
2588
2639
  if (data && typeof data == "object" && !Array.isArray(data)) {
2589
2640
  let missing1;
2590
2641
  if (data.decisionId === void 0 && (missing1 = "decisionId") || data.outcome === void 0 && (missing1 = "outcome") || data.respondedAt === void 0 && (missing1 = "respondedAt")) {
2591
- const err7 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" };
2642
+ const err9 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" };
2592
2643
  if (vErrors === null) {
2593
- vErrors = [err7];
2644
+ vErrors = [err9];
2594
2645
  } else {
2595
- vErrors.push(err7);
2646
+ vErrors.push(err9);
2596
2647
  }
2597
2648
  errors++;
2598
2649
  } else {
@@ -2602,20 +2653,30 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
2602
2653
  if (errors === _errs14) {
2603
2654
  if (typeof data3 === "string") {
2604
2655
  if (func1(data3) < 1) {
2605
- const err8 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/decisionId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
2656
+ const err10 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/decisionId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
2606
2657
  if (vErrors === null) {
2607
- vErrors = [err8];
2658
+ vErrors = [err10];
2608
2659
  } else {
2609
- vErrors.push(err8);
2660
+ vErrors.push(err10);
2610
2661
  }
2611
2662
  errors++;
2663
+ } else {
2664
+ if (!pattern4.test(data3)) {
2665
+ const err11 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' };
2666
+ if (vErrors === null) {
2667
+ vErrors = [err11];
2668
+ } else {
2669
+ vErrors.push(err11);
2670
+ }
2671
+ errors++;
2672
+ }
2612
2673
  }
2613
2674
  } else {
2614
- const err9 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2675
+ const err12 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2615
2676
  if (vErrors === null) {
2616
- vErrors = [err9];
2677
+ vErrors = [err12];
2617
2678
  } else {
2618
- vErrors.push(err9);
2679
+ vErrors.push(err12);
2619
2680
  }
2620
2681
  errors++;
2621
2682
  }
@@ -2626,15 +2687,28 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
2626
2687
  }
2627
2688
  if (valid3) {
2628
2689
  if (data.shortId !== void 0) {
2690
+ let data4 = data.shortId;
2629
2691
  const _errs16 = errors;
2630
- if (typeof data.shortId !== "string") {
2631
- const err10 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2632
- if (vErrors === null) {
2633
- vErrors = [err10];
2692
+ if (errors === _errs16) {
2693
+ if (typeof data4 === "string") {
2694
+ if (!pattern5.test(data4)) {
2695
+ const err13 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' };
2696
+ if (vErrors === null) {
2697
+ vErrors = [err13];
2698
+ } else {
2699
+ vErrors.push(err13);
2700
+ }
2701
+ errors++;
2702
+ }
2634
2703
  } else {
2635
- vErrors.push(err10);
2704
+ const err14 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2705
+ if (vErrors === null) {
2706
+ vErrors = [err14];
2707
+ } else {
2708
+ vErrors.push(err14);
2709
+ }
2710
+ errors++;
2636
2711
  }
2637
- errors++;
2638
2712
  }
2639
2713
  var valid3 = _errs16 === errors;
2640
2714
  } else {
@@ -2645,20 +2719,20 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
2645
2719
  let data5 = data.outcome;
2646
2720
  const _errs18 = errors;
2647
2721
  if (typeof data5 !== "string") {
2648
- const err11 = { instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/outcome/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2722
+ const err15 = { instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/outcome/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2649
2723
  if (vErrors === null) {
2650
- vErrors = [err11];
2724
+ vErrors = [err15];
2651
2725
  } else {
2652
- vErrors.push(err11);
2726
+ vErrors.push(err15);
2653
2727
  }
2654
2728
  errors++;
2655
2729
  }
2656
2730
  if ("already_responded" !== data5) {
2657
- const err12 = { instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/outcome/const", keyword: "const", params: { allowedValue: "already_responded" }, message: "must be equal to constant" };
2731
+ const err16 = { instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/outcome/const", keyword: "const", params: { allowedValue: "already_responded" }, message: "must be equal to constant" };
2658
2732
  if (vErrors === null) {
2659
- vErrors = [err12];
2733
+ vErrors = [err16];
2660
2734
  } else {
2661
- vErrors.push(err12);
2735
+ vErrors.push(err16);
2662
2736
  }
2663
2737
  errors++;
2664
2738
  }
@@ -2670,11 +2744,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
2670
2744
  if (data.confirmed !== void 0) {
2671
2745
  const _errs20 = errors;
2672
2746
  if (typeof data.confirmed !== "boolean") {
2673
- const err13 = { instancePath: instancePath + "/confirmed", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/confirmed/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
2747
+ const err17 = { instancePath: instancePath + "/confirmed", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/confirmed/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
2674
2748
  if (vErrors === null) {
2675
- vErrors = [err13];
2749
+ vErrors = [err17];
2676
2750
  } else {
2677
- vErrors.push(err13);
2751
+ vErrors.push(err17);
2678
2752
  }
2679
2753
  errors++;
2680
2754
  }
@@ -2687,11 +2761,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
2687
2761
  let data7 = data.respondedAt;
2688
2762
  const _errs22 = errors;
2689
2763
  if (!(typeof data7 == "number" && isFinite(data7))) {
2690
- const err14 = { instancePath: instancePath + "/respondedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/respondedAt/type", keyword: "type", params: { type: "number" }, message: "must be number" };
2764
+ const err18 = { instancePath: instancePath + "/respondedAt", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/properties/respondedAt/type", keyword: "type", params: { type: "number" }, message: "must be number" };
2691
2765
  if (vErrors === null) {
2692
- vErrors = [err14];
2766
+ vErrors = [err18];
2693
2767
  } else {
2694
- vErrors.push(err14);
2768
+ vErrors.push(err18);
2695
2769
  }
2696
2770
  errors++;
2697
2771
  }
@@ -2705,11 +2779,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
2705
2779
  }
2706
2780
  }
2707
2781
  } else {
2708
- const err15 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2782
+ const err19 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2709
2783
  if (vErrors === null) {
2710
- vErrors = [err15];
2784
+ vErrors = [err19];
2711
2785
  } else {
2712
- vErrors.push(err15);
2786
+ vErrors.push(err19);
2713
2787
  }
2714
2788
  errors++;
2715
2789
  }
@@ -2726,11 +2800,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
2726
2800
  if (data && typeof data == "object" && !Array.isArray(data)) {
2727
2801
  let missing2;
2728
2802
  if (data.decisionId === void 0 && (missing2 = "decisionId") || data.outcome === void 0 && (missing2 = "outcome")) {
2729
- const err16 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" };
2803
+ const err20 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/required", keyword: "required", params: { missingProperty: missing2 }, message: "must have required property '" + missing2 + "'" };
2730
2804
  if (vErrors === null) {
2731
- vErrors = [err16];
2805
+ vErrors = [err20];
2732
2806
  } else {
2733
- vErrors.push(err16);
2807
+ vErrors.push(err20);
2734
2808
  }
2735
2809
  errors++;
2736
2810
  } else {
@@ -2740,20 +2814,30 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
2740
2814
  if (errors === _errs27) {
2741
2815
  if (typeof data8 === "string") {
2742
2816
  if (func1(data8) < 1) {
2743
- const err17 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/properties/decisionId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
2817
+ const err21 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/properties/decisionId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
2744
2818
  if (vErrors === null) {
2745
- vErrors = [err17];
2819
+ vErrors = [err21];
2746
2820
  } else {
2747
- vErrors.push(err17);
2821
+ vErrors.push(err21);
2748
2822
  }
2749
2823
  errors++;
2824
+ } else {
2825
+ if (!pattern4.test(data8)) {
2826
+ const err22 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' };
2827
+ if (vErrors === null) {
2828
+ vErrors = [err22];
2829
+ } else {
2830
+ vErrors.push(err22);
2831
+ }
2832
+ errors++;
2833
+ }
2750
2834
  }
2751
2835
  } else {
2752
- const err18 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2836
+ const err23 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2753
2837
  if (vErrors === null) {
2754
- vErrors = [err18];
2838
+ vErrors = [err23];
2755
2839
  } else {
2756
- vErrors.push(err18);
2840
+ vErrors.push(err23);
2757
2841
  }
2758
2842
  errors++;
2759
2843
  }
@@ -2764,15 +2848,28 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
2764
2848
  }
2765
2849
  if (valid4) {
2766
2850
  if (data.shortId !== void 0) {
2851
+ let data9 = data.shortId;
2767
2852
  const _errs29 = errors;
2768
- if (typeof data.shortId !== "string") {
2769
- const err19 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2770
- if (vErrors === null) {
2771
- vErrors = [err19];
2853
+ if (errors === _errs29) {
2854
+ if (typeof data9 === "string") {
2855
+ if (!pattern5.test(data9)) {
2856
+ const err24 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' };
2857
+ if (vErrors === null) {
2858
+ vErrors = [err24];
2859
+ } else {
2860
+ vErrors.push(err24);
2861
+ }
2862
+ errors++;
2863
+ }
2772
2864
  } else {
2773
- vErrors.push(err19);
2865
+ const err25 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2866
+ if (vErrors === null) {
2867
+ vErrors = [err25];
2868
+ } else {
2869
+ vErrors.push(err25);
2870
+ }
2871
+ errors++;
2774
2872
  }
2775
- errors++;
2776
2873
  }
2777
2874
  var valid4 = _errs29 === errors;
2778
2875
  } else {
@@ -2783,20 +2880,20 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
2783
2880
  let data10 = data.outcome;
2784
2881
  const _errs31 = errors;
2785
2882
  if (typeof data10 !== "string") {
2786
- const err20 = { instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/properties/outcome/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2883
+ const err26 = { instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/properties/outcome/type", keyword: "type", params: { type: "string" }, message: "must be string" };
2787
2884
  if (vErrors === null) {
2788
- vErrors = [err20];
2885
+ vErrors = [err26];
2789
2886
  } else {
2790
- vErrors.push(err20);
2887
+ vErrors.push(err26);
2791
2888
  }
2792
2889
  errors++;
2793
2890
  }
2794
2891
  if ("no_pending_prompt" !== data10) {
2795
- const err21 = { instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/properties/outcome/const", keyword: "const", params: { allowedValue: "no_pending_prompt" }, message: "must be equal to constant" };
2892
+ const err27 = { instancePath: instancePath + "/outcome", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/properties/outcome/const", keyword: "const", params: { allowedValue: "no_pending_prompt" }, message: "must be equal to constant" };
2796
2893
  if (vErrors === null) {
2797
- vErrors = [err21];
2894
+ vErrors = [err27];
2798
2895
  } else {
2799
- vErrors.push(err21);
2896
+ vErrors.push(err27);
2800
2897
  }
2801
2898
  errors++;
2802
2899
  }
@@ -2808,11 +2905,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
2808
2905
  }
2809
2906
  }
2810
2907
  } else {
2811
- const err22 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2908
+ const err28 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
2812
2909
  if (vErrors === null) {
2813
- vErrors = [err22];
2910
+ vErrors = [err28];
2814
2911
  } else {
2815
- vErrors.push(err22);
2912
+ vErrors.push(err28);
2816
2913
  }
2817
2914
  errors++;
2818
2915
  }
@@ -2825,11 +2922,11 @@ function validate26(data, { instancePath = "", parentData, parentDataProperty, r
2825
2922
  }
2826
2923
  }
2827
2924
  if (!valid1) {
2828
- const err23 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2925
+ const err29 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionConfirmSuccessResponse/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
2829
2926
  if (vErrors === null) {
2830
- vErrors = [err23];
2927
+ vErrors = [err29];
2831
2928
  } else {
2832
- vErrors.push(err23);
2929
+ vErrors.push(err29);
2833
2930
  }
2834
2931
  errors++;
2835
2932
  validate26.errors = vErrors;
@@ -3798,7 +3895,7 @@ function validate27(data, { instancePath = "", parentData, parentDataProperty, r
3798
3895
  return errors === 0;
3799
3896
  }
3800
3897
  validate27.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
3801
- var schema47 = { "type": "object", "properties": { "decisionId": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "createdAt": { "type": "number" }, "scope": { "type": "object", "properties": { "location": { "type": "object", "properties": { "mode": { "type": "string", "enum": ["inherited", "explicit"] }, "repository": { "type": "boolean" }, "directories": { "type": "array", "items": { "type": "string" } }, "globs": { "type": "array", "items": { "type": "string" } }, "branches": { "type": "array", "items": { "type": "string" } } }, "required": ["repository", "directories", "globs", "branches"], "additionalProperties": {} }, "time": { "type": "object", "properties": { "effectiveFrom": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "effectiveUntil": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "additionalProperties": {} }, "users": { "type": "array", "items": { "oneOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "user" }, "userId": { "type": "string", "minLength": 1 } }, "required": ["kind", "userId"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "role" }, "role": { "type": "string", "enum": ["owner", "admin", "member"] } }, "required": ["kind", "role"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "agent" }, "agent": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] } }, "required": ["kind", "agent"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "credential" }, "credential": { "type": "string", "enum": ["workos_jwt", "workos_api_key", "service_token"] } }, "required": ["kind", "credential"], "additionalProperties": false }] } } }, "required": ["location", "time", "users"], "additionalProperties": {} }, "scopeWarnings": { "type": "array", "items": { "type": "string" } } }, "required": ["decisionId", "shortId", "createdAt"], "additionalProperties": {} };
3898
+ var schema47 = { "type": "object", "properties": { "decisionId": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "createdAt": { "type": "number" }, "scope": { "type": "object", "properties": { "location": { "type": "object", "properties": { "mode": { "type": "string", "enum": ["inherited", "explicit"] }, "repository": { "type": "boolean" }, "directories": { "type": "array", "items": { "type": "string" } }, "globs": { "type": "array", "items": { "type": "string" } }, "branches": { "type": "array", "items": { "type": "string" } } }, "required": ["repository", "directories", "globs", "branches"], "additionalProperties": {} }, "time": { "type": "object", "properties": { "effectiveFrom": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "effectiveUntil": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "additionalProperties": {} }, "users": { "type": "array", "items": { "oneOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "user" }, "userId": { "type": "string", "minLength": 1 } }, "required": ["kind", "userId"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "role" }, "role": { "type": "string", "enum": ["owner", "admin", "member"] } }, "required": ["kind", "role"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "agent" }, "agent": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] } }, "required": ["kind", "agent"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "credential" }, "credential": { "type": "string", "enum": ["workos_jwt", "workos_api_key", "service_token"] } }, "required": ["kind", "credential"], "additionalProperties": false }] } } }, "required": ["location", "time", "users"], "additionalProperties": {} }, "scopeWarnings": { "type": "array", "items": { "type": "string" } } }, "required": ["decisionId", "shortId", "createdAt"], "additionalProperties": {} };
3802
3899
  function validate28(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
3803
3900
  ;
3804
3901
  let vErrors = null;
@@ -3826,6 +3923,11 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
3826
3923
  if (func1(data0) < 1) {
3827
3924
  validate28.errors = [{ instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCreateResponse/properties/decisionId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
3828
3925
  return false;
3926
+ } else {
3927
+ if (!pattern4.test(data0)) {
3928
+ validate28.errors = [{ instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCreateResponse/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
3929
+ return false;
3930
+ }
3829
3931
  }
3830
3932
  } else {
3831
3933
  validate28.errors = [{ instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCreateResponse/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
@@ -3838,10 +3940,18 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
3838
3940
  }
3839
3941
  if (valid1) {
3840
3942
  if (data.shortId !== void 0) {
3943
+ let data1 = data.shortId;
3841
3944
  const _errs5 = errors;
3842
- if (typeof data.shortId !== "string") {
3843
- validate28.errors = [{ instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCreateResponse/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
3844
- return false;
3945
+ if (errors === _errs5) {
3946
+ if (typeof data1 === "string") {
3947
+ if (!pattern5.test(data1)) {
3948
+ validate28.errors = [{ instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCreateResponse/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
3949
+ return false;
3950
+ }
3951
+ } else {
3952
+ validate28.errors = [{ instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionCreateResponse/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
3953
+ return false;
3954
+ }
3845
3955
  }
3846
3956
  var valid1 = _errs5 === errors;
3847
3957
  } else {
@@ -4583,7 +4693,7 @@ function validate28(data, { instancePath = "", parentData, parentDataProperty, r
4583
4693
  return errors === 0;
4584
4694
  }
4585
4695
  validate28.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
4586
- var schema49 = { "type": "object", "properties": { "decision": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "intent": { "type": "string" }, "intentKind": { "type": "string", "enum": ["change", "exploration", "task_execution", "unclear"] }, "rationale": { "type": "string" }, "decided": { "type": "array", "items": { "type": "string" } }, "alternatives": { "type": "array", "items": { "type": "string" } }, "area": { "type": "string" }, "producerKind": { "type": "string" }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] }, "supersededBy": { "anyOf": [{ "type": "string", "minLength": 1 }, { "type": "null" }] }, "confidence": { "type": "string", "enum": ["high", "medium", "low"] }, "reversibility": { "type": "string", "enum": ["high", "low"] }, "confirmed": { "type": "boolean" }, "respondedAt": { "type": "number" }, "fanOut": { "type": "number" }, "classifiedAt": { "type": "number" }, "authorName": { "type": "string" } }, "required": ["id", "intent", "intentKind", "alternatives", "stage", "status", "supersededBy", "confidence", "classifiedAt", "authorName"], "additionalProperties": {} }, "files": { "type": "array", "items": { "type": "string" } }, "flags": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "enum": ["file_edit", "supersession", "invalidation", "confirmation_request"] }, "file": { "type": "string" }, "flaggedAt": { "type": "number" }, "acknowledgedAt": { "type": "number" }, "gateVerdict": { "type": "string" }, "reason": { "type": "string" } }, "required": ["type", "flaggedAt"], "additionalProperties": {} } }, "dependsOn": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "intent": { "type": "string" }, "area": { "type": "string" }, "authorName": { "type": "string" }, "classifiedAt": { "type": "number" }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] } }, "required": ["id", "intent", "authorName", "classifiedAt", "status"], "additionalProperties": {} } }, "dependents": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "intent": { "type": "string" }, "area": { "type": "string" }, "authorName": { "type": "string" }, "classifiedAt": { "type": "number" }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] } }, "required": ["id", "intent", "authorName", "classifiedAt", "status"], "additionalProperties": {} } }, "scope": { "type": "object", "properties": { "location": { "type": "object", "properties": { "mode": { "type": "string", "enum": ["inherited", "explicit"] }, "repository": { "type": "boolean" }, "directories": { "type": "array", "items": { "type": "string" } }, "globs": { "type": "array", "items": { "type": "string" } }, "branches": { "type": "array", "items": { "type": "string" } } }, "required": ["repository", "directories", "globs", "branches"], "additionalProperties": {} }, "time": { "type": "object", "properties": { "effectiveFrom": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "effectiveUntil": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "additionalProperties": {} }, "users": { "type": "array", "items": { "oneOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "user" }, "userId": { "type": "string", "minLength": 1 }, "displayName": { "type": "string" } }, "required": ["kind", "userId", "displayName"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "role" }, "role": { "type": "string", "enum": ["owner", "admin", "member"] } }, "required": ["kind", "role"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "agent" }, "agent": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] } }, "required": ["kind", "agent"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "credential" }, "credential": { "type": "string", "enum": ["workos_jwt", "workos_api_key", "service_token"] } }, "required": ["kind", "credential"], "additionalProperties": false }] } } }, "required": ["location", "time", "users"], "additionalProperties": {} }, "truncated": { "type": "boolean" } }, "required": ["decision", "files", "flags", "dependsOn", "dependents", "scope", "truncated"], "additionalProperties": {} };
4696
+ var schema49 = { "type": "object", "properties": { "decision": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "intent": { "type": "string" }, "intentKind": { "type": "string", "enum": ["change", "exploration", "task_execution", "unclear"] }, "rationale": { "type": "string" }, "decided": { "type": "array", "items": { "type": "string" } }, "alternatives": { "type": "array", "items": { "type": "string" } }, "area": { "type": "string" }, "producerKind": { "type": "string" }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] }, "supersededBy": { "anyOf": [{ "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$" }, { "type": "null" }], "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "confidence": { "type": "string", "enum": ["high", "medium", "low"] }, "reversibility": { "type": "string", "enum": ["high", "low"] }, "confirmed": { "type": "boolean" }, "respondedAt": { "type": "number" }, "fanOut": { "type": "number" }, "classifiedAt": { "type": "number" }, "authorName": { "type": "string" } }, "required": ["id", "intent", "intentKind", "alternatives", "stage", "status", "supersededBy", "confidence", "classifiedAt", "authorName"], "additionalProperties": {} }, "files": { "type": "array", "items": { "type": "string" } }, "flags": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "enum": ["file_edit", "supersession", "invalidation", "confirmation_request"] }, "file": { "type": "string" }, "flaggedAt": { "type": "number" }, "acknowledgedAt": { "type": "number" }, "gateVerdict": { "type": "string" }, "reason": { "type": "string" } }, "required": ["type", "flaggedAt"], "additionalProperties": {} } }, "dependsOn": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "intent": { "type": "string" }, "area": { "type": "string" }, "authorName": { "type": "string" }, "classifiedAt": { "type": "number" }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] } }, "required": ["id", "intent", "authorName", "classifiedAt", "status"], "additionalProperties": {} } }, "dependents": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "intent": { "type": "string" }, "area": { "type": "string" }, "authorName": { "type": "string" }, "classifiedAt": { "type": "number" }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] } }, "required": ["id", "intent", "authorName", "classifiedAt", "status"], "additionalProperties": {} } }, "scope": { "type": "object", "properties": { "location": { "type": "object", "properties": { "mode": { "type": "string", "enum": ["inherited", "explicit"] }, "repository": { "type": "boolean" }, "directories": { "type": "array", "items": { "type": "string" } }, "globs": { "type": "array", "items": { "type": "string" } }, "branches": { "type": "array", "items": { "type": "string" } } }, "required": ["repository", "directories", "globs", "branches"], "additionalProperties": {} }, "time": { "type": "object", "properties": { "effectiveFrom": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "effectiveUntil": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "additionalProperties": {} }, "users": { "type": "array", "items": { "oneOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "user" }, "userId": { "type": "string", "minLength": 1 }, "displayName": { "type": "string" } }, "required": ["kind", "userId", "displayName"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "role" }, "role": { "type": "string", "enum": ["owner", "admin", "member"] } }, "required": ["kind", "role"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "agent" }, "agent": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] } }, "required": ["kind", "agent"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "credential" }, "credential": { "type": "string", "enum": ["workos_jwt", "workos_api_key", "service_token"] } }, "required": ["kind", "credential"], "additionalProperties": false }] } } }, "required": ["location", "time", "users"], "additionalProperties": {} }, "truncated": { "type": "boolean" } }, "required": ["decision", "files", "flags", "dependsOn", "dependents", "scope", "truncated"], "additionalProperties": {} };
4587
4697
  function validate29(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
4588
4698
  ;
4589
4699
  let vErrors = null;
@@ -4621,6 +4731,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4621
4731
  if (func1(data1) < 1) {
4622
4732
  validate29.errors = [{ instancePath: instancePath + "/decision/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
4623
4733
  return false;
4734
+ } else {
4735
+ if (!pattern4.test(data1)) {
4736
+ validate29.errors = [{ instancePath: instancePath + "/decision/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/id/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
4737
+ return false;
4738
+ }
4624
4739
  }
4625
4740
  } else {
4626
4741
  validate29.errors = [{ instancePath: instancePath + "/decision/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
@@ -4633,10 +4748,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4633
4748
  }
4634
4749
  if (valid2) {
4635
4750
  if (data0.shortId !== void 0) {
4751
+ let data2 = data0.shortId;
4636
4752
  const _errs8 = errors;
4637
- if (typeof data0.shortId !== "string") {
4638
- validate29.errors = [{ instancePath: instancePath + "/decision/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
4639
- return false;
4753
+ if (errors === _errs8) {
4754
+ if (typeof data2 === "string") {
4755
+ if (!pattern5.test(data2)) {
4756
+ validate29.errors = [{ instancePath: instancePath + "/decision/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
4757
+ return false;
4758
+ }
4759
+ } else {
4760
+ validate29.errors = [{ instancePath: instancePath + "/decision/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
4761
+ return false;
4762
+ }
4640
4763
  }
4641
4764
  var valid2 = _errs8 === errors;
4642
4765
  } else {
@@ -4807,13 +4930,23 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4807
4930
  vErrors.push(err0);
4808
4931
  }
4809
4932
  errors++;
4933
+ } else {
4934
+ if (!pattern4.test(data14)) {
4935
+ const err1 = { instancePath: instancePath + "/decision/supersededBy", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/supersededBy/anyOf/0/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' };
4936
+ if (vErrors === null) {
4937
+ vErrors = [err1];
4938
+ } else {
4939
+ vErrors.push(err1);
4940
+ }
4941
+ errors++;
4942
+ }
4810
4943
  }
4811
4944
  } else {
4812
- const err1 = { instancePath: instancePath + "/decision/supersededBy", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/supersededBy/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
4945
+ const err2 = { instancePath: instancePath + "/decision/supersededBy", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/supersededBy/anyOf/0/type", keyword: "type", params: { type: "string" }, message: "must be string" };
4813
4946
  if (vErrors === null) {
4814
- vErrors = [err1];
4947
+ vErrors = [err2];
4815
4948
  } else {
4816
- vErrors.push(err1);
4949
+ vErrors.push(err2);
4817
4950
  }
4818
4951
  errors++;
4819
4952
  }
@@ -4822,22 +4955,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
4822
4955
  valid5 = valid5 || _valid0;
4823
4956
  const _errs36 = errors;
4824
4957
  if (data14 !== null) {
4825
- const err2 = { instancePath: instancePath + "/decision/supersededBy", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/supersededBy/anyOf/1/type", keyword: "type", params: { type: "null" }, message: "must be null" };
4958
+ const err3 = { instancePath: instancePath + "/decision/supersededBy", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/supersededBy/anyOf/1/type", keyword: "type", params: { type: "null" }, message: "must be null" };
4826
4959
  if (vErrors === null) {
4827
- vErrors = [err2];
4960
+ vErrors = [err3];
4828
4961
  } else {
4829
- vErrors.push(err2);
4962
+ vErrors.push(err3);
4830
4963
  }
4831
4964
  errors++;
4832
4965
  }
4833
4966
  var _valid0 = _errs36 === errors;
4834
4967
  valid5 = valid5 || _valid0;
4835
4968
  if (!valid5) {
4836
- const err3 = { instancePath: instancePath + "/decision/supersededBy", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/supersededBy/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
4969
+ const err4 = { instancePath: instancePath + "/decision/supersededBy", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/decision/properties/supersededBy/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
4837
4970
  if (vErrors === null) {
4838
- vErrors = [err3];
4971
+ vErrors = [err4];
4839
4972
  } else {
4840
- vErrors.push(err3);
4973
+ vErrors.push(err4);
4841
4974
  }
4842
4975
  errors++;
4843
4976
  validate29.errors = vErrors;
@@ -5143,6 +5276,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5143
5276
  if (func1(data34) < 1) {
5144
5277
  validate29.errors = [{ instancePath: instancePath + "/dependsOn/" + i4 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependsOn/items/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
5145
5278
  return false;
5279
+ } else {
5280
+ if (!pattern4.test(data34)) {
5281
+ validate29.errors = [{ instancePath: instancePath + "/dependsOn/" + i4 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependsOn/items/properties/id/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
5282
+ return false;
5283
+ }
5146
5284
  }
5147
5285
  } else {
5148
5286
  validate29.errors = [{ instancePath: instancePath + "/dependsOn/" + i4 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependsOn/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
@@ -5155,10 +5293,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5155
5293
  }
5156
5294
  if (valid10) {
5157
5295
  if (data33.shortId !== void 0) {
5296
+ let data35 = data33.shortId;
5158
5297
  const _errs80 = errors;
5159
- if (typeof data33.shortId !== "string") {
5160
- validate29.errors = [{ instancePath: instancePath + "/dependsOn/" + i4 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependsOn/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5161
- return false;
5298
+ if (errors === _errs80) {
5299
+ if (typeof data35 === "string") {
5300
+ if (!pattern5.test(data35)) {
5301
+ validate29.errors = [{ instancePath: instancePath + "/dependsOn/" + i4 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependsOn/items/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
5302
+ return false;
5303
+ }
5304
+ } else {
5305
+ validate29.errors = [{ instancePath: instancePath + "/dependsOn/" + i4 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependsOn/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5306
+ return false;
5307
+ }
5162
5308
  }
5163
5309
  var valid10 = _errs80 === errors;
5164
5310
  } else {
@@ -5277,6 +5423,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5277
5423
  if (func1(data43) < 1) {
5278
5424
  validate29.errors = [{ instancePath: instancePath + "/dependents/" + i5 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependents/items/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
5279
5425
  return false;
5426
+ } else {
5427
+ if (!pattern4.test(data43)) {
5428
+ validate29.errors = [{ instancePath: instancePath + "/dependents/" + i5 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependents/items/properties/id/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
5429
+ return false;
5430
+ }
5280
5431
  }
5281
5432
  } else {
5282
5433
  validate29.errors = [{ instancePath: instancePath + "/dependents/" + i5 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependents/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
@@ -5289,10 +5440,18 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5289
5440
  }
5290
5441
  if (valid12) {
5291
5442
  if (data42.shortId !== void 0) {
5443
+ let data44 = data42.shortId;
5292
5444
  const _errs99 = errors;
5293
- if (typeof data42.shortId !== "string") {
5294
- validate29.errors = [{ instancePath: instancePath + "/dependents/" + i5 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependents/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5295
- return false;
5445
+ if (errors === _errs99) {
5446
+ if (typeof data44 === "string") {
5447
+ if (!pattern5.test(data44)) {
5448
+ validate29.errors = [{ instancePath: instancePath + "/dependents/" + i5 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependents/items/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
5449
+ return false;
5450
+ }
5451
+ } else {
5452
+ validate29.errors = [{ instancePath: instancePath + "/dependents/" + i5 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/dependents/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
5453
+ return false;
5454
+ }
5296
5455
  }
5297
5456
  var valid12 = _errs99 === errors;
5298
5457
  } else {
@@ -5614,22 +5773,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5614
5773
  if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
5615
5774
  let missing7;
5616
5775
  if (data64.kind === void 0 && (missing7 = "kind") || data64.userId === void 0 && (missing7 = "userId") || data64.displayName === void 0 && (missing7 = "displayName")) {
5617
- const err4 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/required", keyword: "required", params: { missingProperty: missing7 }, message: "must have required property '" + missing7 + "'" };
5776
+ const err5 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/required", keyword: "required", params: { missingProperty: missing7 }, message: "must have required property '" + missing7 + "'" };
5618
5777
  if (vErrors === null) {
5619
- vErrors = [err4];
5778
+ vErrors = [err5];
5620
5779
  } else {
5621
- vErrors.push(err4);
5780
+ vErrors.push(err5);
5622
5781
  }
5623
5782
  errors++;
5624
5783
  } else {
5625
5784
  const _errs146 = errors;
5626
5785
  for (const key0 in data64) {
5627
5786
  if (!(key0 === "kind" || key0 === "userId" || key0 === "displayName")) {
5628
- const err5 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
5787
+ const err6 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key0 }, message: "must NOT have additional properties" };
5629
5788
  if (vErrors === null) {
5630
- vErrors = [err5];
5789
+ vErrors = [err6];
5631
5790
  } else {
5632
- vErrors.push(err5);
5791
+ vErrors.push(err6);
5633
5792
  }
5634
5793
  errors++;
5635
5794
  break;
@@ -5640,20 +5799,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5640
5799
  let data65 = data64.kind;
5641
5800
  const _errs147 = errors;
5642
5801
  if (typeof data65 !== "string") {
5643
- const err6 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5802
+ const err7 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5644
5803
  if (vErrors === null) {
5645
- vErrors = [err6];
5804
+ vErrors = [err7];
5646
5805
  } else {
5647
- vErrors.push(err6);
5806
+ vErrors.push(err7);
5648
5807
  }
5649
5808
  errors++;
5650
5809
  }
5651
5810
  if ("user" !== data65) {
5652
- const err7 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/properties/kind/const", keyword: "const", params: { allowedValue: "user" }, message: "must be equal to constant" };
5811
+ const err8 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/properties/kind/const", keyword: "const", params: { allowedValue: "user" }, message: "must be equal to constant" };
5653
5812
  if (vErrors === null) {
5654
- vErrors = [err7];
5813
+ vErrors = [err8];
5655
5814
  } else {
5656
- vErrors.push(err7);
5815
+ vErrors.push(err8);
5657
5816
  }
5658
5817
  errors++;
5659
5818
  }
@@ -5668,20 +5827,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5668
5827
  if (errors === _errs149) {
5669
5828
  if (typeof data66 === "string") {
5670
5829
  if (func1(data66) < 1) {
5671
- const err8 = { instancePath: instancePath + "/scope/users/" + i9 + "/userId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/properties/userId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
5830
+ const err9 = { instancePath: instancePath + "/scope/users/" + i9 + "/userId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/properties/userId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
5672
5831
  if (vErrors === null) {
5673
- vErrors = [err8];
5832
+ vErrors = [err9];
5674
5833
  } else {
5675
- vErrors.push(err8);
5834
+ vErrors.push(err9);
5676
5835
  }
5677
5836
  errors++;
5678
5837
  }
5679
5838
  } else {
5680
- const err9 = { instancePath: instancePath + "/scope/users/" + i9 + "/userId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/properties/userId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5839
+ const err10 = { instancePath: instancePath + "/scope/users/" + i9 + "/userId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/properties/userId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5681
5840
  if (vErrors === null) {
5682
- vErrors = [err9];
5841
+ vErrors = [err10];
5683
5842
  } else {
5684
- vErrors.push(err9);
5843
+ vErrors.push(err10);
5685
5844
  }
5686
5845
  errors++;
5687
5846
  }
@@ -5694,11 +5853,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5694
5853
  if (data64.displayName !== void 0) {
5695
5854
  const _errs151 = errors;
5696
5855
  if (typeof data64.displayName !== "string") {
5697
- const err10 = { instancePath: instancePath + "/scope/users/" + i9 + "/displayName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/properties/displayName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5856
+ const err11 = { instancePath: instancePath + "/scope/users/" + i9 + "/displayName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/properties/displayName/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5698
5857
  if (vErrors === null) {
5699
- vErrors = [err10];
5858
+ vErrors = [err11];
5700
5859
  } else {
5701
- vErrors.push(err10);
5860
+ vErrors.push(err11);
5702
5861
  }
5703
5862
  errors++;
5704
5863
  }
@@ -5711,11 +5870,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5711
5870
  }
5712
5871
  }
5713
5872
  } else {
5714
- const err11 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
5873
+ const err12 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
5715
5874
  if (vErrors === null) {
5716
- vErrors = [err11];
5875
+ vErrors = [err12];
5717
5876
  } else {
5718
- vErrors.push(err11);
5877
+ vErrors.push(err12);
5719
5878
  }
5720
5879
  errors++;
5721
5880
  }
@@ -5731,22 +5890,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5731
5890
  if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
5732
5891
  let missing8;
5733
5892
  if (data64.kind === void 0 && (missing8 = "kind") || data64.role === void 0 && (missing8 = "role")) {
5734
- const err12 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/required", keyword: "required", params: { missingProperty: missing8 }, message: "must have required property '" + missing8 + "'" };
5893
+ const err13 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/required", keyword: "required", params: { missingProperty: missing8 }, message: "must have required property '" + missing8 + "'" };
5735
5894
  if (vErrors === null) {
5736
- vErrors = [err12];
5895
+ vErrors = [err13];
5737
5896
  } else {
5738
- vErrors.push(err12);
5897
+ vErrors.push(err13);
5739
5898
  }
5740
5899
  errors++;
5741
5900
  } else {
5742
5901
  const _errs155 = errors;
5743
5902
  for (const key1 in data64) {
5744
5903
  if (!(key1 === "kind" || key1 === "role")) {
5745
- const err13 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
5904
+ const err14 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" };
5746
5905
  if (vErrors === null) {
5747
- vErrors = [err13];
5906
+ vErrors = [err14];
5748
5907
  } else {
5749
- vErrors.push(err13);
5908
+ vErrors.push(err14);
5750
5909
  }
5751
5910
  errors++;
5752
5911
  break;
@@ -5757,20 +5916,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5757
5916
  let data68 = data64.kind;
5758
5917
  const _errs156 = errors;
5759
5918
  if (typeof data68 !== "string") {
5760
- const err14 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5919
+ const err15 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5761
5920
  if (vErrors === null) {
5762
- vErrors = [err14];
5921
+ vErrors = [err15];
5763
5922
  } else {
5764
- vErrors.push(err14);
5923
+ vErrors.push(err15);
5765
5924
  }
5766
5925
  errors++;
5767
5926
  }
5768
5927
  if ("role" !== data68) {
5769
- const err15 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/properties/kind/const", keyword: "const", params: { allowedValue: "role" }, message: "must be equal to constant" };
5928
+ const err16 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/properties/kind/const", keyword: "const", params: { allowedValue: "role" }, message: "must be equal to constant" };
5770
5929
  if (vErrors === null) {
5771
- vErrors = [err15];
5930
+ vErrors = [err16];
5772
5931
  } else {
5773
- vErrors.push(err15);
5932
+ vErrors.push(err16);
5774
5933
  }
5775
5934
  errors++;
5776
5935
  }
@@ -5783,20 +5942,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5783
5942
  let data69 = data64.role;
5784
5943
  const _errs158 = errors;
5785
5944
  if (typeof data69 !== "string") {
5786
- const err16 = { instancePath: instancePath + "/scope/users/" + i9 + "/role", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/properties/role/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5945
+ const err17 = { instancePath: instancePath + "/scope/users/" + i9 + "/role", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/properties/role/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5787
5946
  if (vErrors === null) {
5788
- vErrors = [err16];
5947
+ vErrors = [err17];
5789
5948
  } else {
5790
- vErrors.push(err16);
5949
+ vErrors.push(err17);
5791
5950
  }
5792
5951
  errors++;
5793
5952
  }
5794
5953
  if (!(data69 === "owner" || data69 === "admin" || data69 === "member")) {
5795
- const err17 = { instancePath: instancePath + "/scope/users/" + i9 + "/role", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/properties/role/enum", keyword: "enum", params: { allowedValues: schema49.properties.scope.properties.users.items.oneOf[1].properties.role.enum }, message: "must be equal to one of the allowed values" };
5954
+ const err18 = { instancePath: instancePath + "/scope/users/" + i9 + "/role", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/properties/role/enum", keyword: "enum", params: { allowedValues: schema49.properties.scope.properties.users.items.oneOf[1].properties.role.enum }, message: "must be equal to one of the allowed values" };
5796
5955
  if (vErrors === null) {
5797
- vErrors = [err17];
5956
+ vErrors = [err18];
5798
5957
  } else {
5799
- vErrors.push(err17);
5958
+ vErrors.push(err18);
5800
5959
  }
5801
5960
  errors++;
5802
5961
  }
@@ -5808,11 +5967,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5808
5967
  }
5809
5968
  }
5810
5969
  } else {
5811
- const err18 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
5970
+ const err19 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
5812
5971
  if (vErrors === null) {
5813
- vErrors = [err18];
5972
+ vErrors = [err19];
5814
5973
  } else {
5815
- vErrors.push(err18);
5974
+ vErrors.push(err19);
5816
5975
  }
5817
5976
  errors++;
5818
5977
  }
@@ -5834,22 +5993,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5834
5993
  if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
5835
5994
  let missing9;
5836
5995
  if (data64.kind === void 0 && (missing9 = "kind") || data64.agent === void 0 && (missing9 = "agent")) {
5837
- const err19 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/required", keyword: "required", params: { missingProperty: missing9 }, message: "must have required property '" + missing9 + "'" };
5996
+ const err20 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/required", keyword: "required", params: { missingProperty: missing9 }, message: "must have required property '" + missing9 + "'" };
5838
5997
  if (vErrors === null) {
5839
- vErrors = [err19];
5998
+ vErrors = [err20];
5840
5999
  } else {
5841
- vErrors.push(err19);
6000
+ vErrors.push(err20);
5842
6001
  }
5843
6002
  errors++;
5844
6003
  } else {
5845
6004
  const _errs162 = errors;
5846
6005
  for (const key2 in data64) {
5847
6006
  if (!(key2 === "kind" || key2 === "agent")) {
5848
- const err20 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
6007
+ const err21 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key2 }, message: "must NOT have additional properties" };
5849
6008
  if (vErrors === null) {
5850
- vErrors = [err20];
6009
+ vErrors = [err21];
5851
6010
  } else {
5852
- vErrors.push(err20);
6011
+ vErrors.push(err21);
5853
6012
  }
5854
6013
  errors++;
5855
6014
  break;
@@ -5860,20 +6019,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5860
6019
  let data70 = data64.kind;
5861
6020
  const _errs163 = errors;
5862
6021
  if (typeof data70 !== "string") {
5863
- const err21 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6022
+ const err22 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5864
6023
  if (vErrors === null) {
5865
- vErrors = [err21];
6024
+ vErrors = [err22];
5866
6025
  } else {
5867
- vErrors.push(err21);
6026
+ vErrors.push(err22);
5868
6027
  }
5869
6028
  errors++;
5870
6029
  }
5871
6030
  if ("agent" !== data70) {
5872
- const err22 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/properties/kind/const", keyword: "const", params: { allowedValue: "agent" }, message: "must be equal to constant" };
6031
+ const err23 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/properties/kind/const", keyword: "const", params: { allowedValue: "agent" }, message: "must be equal to constant" };
5873
6032
  if (vErrors === null) {
5874
- vErrors = [err22];
6033
+ vErrors = [err23];
5875
6034
  } else {
5876
- vErrors.push(err22);
6035
+ vErrors.push(err23);
5877
6036
  }
5878
6037
  errors++;
5879
6038
  }
@@ -5886,20 +6045,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5886
6045
  let data71 = data64.agent;
5887
6046
  const _errs165 = errors;
5888
6047
  if (typeof data71 !== "string") {
5889
- const err23 = { instancePath: instancePath + "/scope/users/" + i9 + "/agent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/properties/agent/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6048
+ const err24 = { instancePath: instancePath + "/scope/users/" + i9 + "/agent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/properties/agent/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5890
6049
  if (vErrors === null) {
5891
- vErrors = [err23];
6050
+ vErrors = [err24];
5892
6051
  } else {
5893
- vErrors.push(err23);
6052
+ vErrors.push(err24);
5894
6053
  }
5895
6054
  errors++;
5896
6055
  }
5897
6056
  if (!(data71 === "claude_code" || data71 === "codex" || data71 === "cursor" || data71 === "hermes")) {
5898
- const err24 = { instancePath: instancePath + "/scope/users/" + i9 + "/agent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/properties/agent/enum", keyword: "enum", params: { allowedValues: schema49.properties.scope.properties.users.items.oneOf[2].properties.agent.enum }, message: "must be equal to one of the allowed values" };
6057
+ const err25 = { instancePath: instancePath + "/scope/users/" + i9 + "/agent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/properties/agent/enum", keyword: "enum", params: { allowedValues: schema49.properties.scope.properties.users.items.oneOf[2].properties.agent.enum }, message: "must be equal to one of the allowed values" };
5899
6058
  if (vErrors === null) {
5900
- vErrors = [err24];
6059
+ vErrors = [err25];
5901
6060
  } else {
5902
- vErrors.push(err24);
6061
+ vErrors.push(err25);
5903
6062
  }
5904
6063
  errors++;
5905
6064
  }
@@ -5911,11 +6070,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5911
6070
  }
5912
6071
  }
5913
6072
  } else {
5914
- const err25 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
6073
+ const err26 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
5915
6074
  if (vErrors === null) {
5916
- vErrors = [err25];
6075
+ vErrors = [err26];
5917
6076
  } else {
5918
- vErrors.push(err25);
6077
+ vErrors.push(err26);
5919
6078
  }
5920
6079
  errors++;
5921
6080
  }
@@ -5937,22 +6096,22 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5937
6096
  if (data64 && typeof data64 == "object" && !Array.isArray(data64)) {
5938
6097
  let missing10;
5939
6098
  if (data64.kind === void 0 && (missing10 = "kind") || data64.credential === void 0 && (missing10 = "credential")) {
5940
- const err26 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/required", keyword: "required", params: { missingProperty: missing10 }, message: "must have required property '" + missing10 + "'" };
6099
+ const err27 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/required", keyword: "required", params: { missingProperty: missing10 }, message: "must have required property '" + missing10 + "'" };
5941
6100
  if (vErrors === null) {
5942
- vErrors = [err26];
6101
+ vErrors = [err27];
5943
6102
  } else {
5944
- vErrors.push(err26);
6103
+ vErrors.push(err27);
5945
6104
  }
5946
6105
  errors++;
5947
6106
  } else {
5948
6107
  const _errs169 = errors;
5949
6108
  for (const key3 in data64) {
5950
6109
  if (!(key3 === "kind" || key3 === "credential")) {
5951
- const err27 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
6110
+ const err28 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key3 }, message: "must NOT have additional properties" };
5952
6111
  if (vErrors === null) {
5953
- vErrors = [err27];
6112
+ vErrors = [err28];
5954
6113
  } else {
5955
- vErrors.push(err27);
6114
+ vErrors.push(err28);
5956
6115
  }
5957
6116
  errors++;
5958
6117
  break;
@@ -5963,20 +6122,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5963
6122
  let data72 = data64.kind;
5964
6123
  const _errs170 = errors;
5965
6124
  if (typeof data72 !== "string") {
5966
- const err28 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6125
+ const err29 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5967
6126
  if (vErrors === null) {
5968
- vErrors = [err28];
6127
+ vErrors = [err29];
5969
6128
  } else {
5970
- vErrors.push(err28);
6129
+ vErrors.push(err29);
5971
6130
  }
5972
6131
  errors++;
5973
6132
  }
5974
6133
  if ("credential" !== data72) {
5975
- const err29 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/properties/kind/const", keyword: "const", params: { allowedValue: "credential" }, message: "must be equal to constant" };
6134
+ const err30 = { instancePath: instancePath + "/scope/users/" + i9 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/properties/kind/const", keyword: "const", params: { allowedValue: "credential" }, message: "must be equal to constant" };
5976
6135
  if (vErrors === null) {
5977
- vErrors = [err29];
6136
+ vErrors = [err30];
5978
6137
  } else {
5979
- vErrors.push(err29);
6138
+ vErrors.push(err30);
5980
6139
  }
5981
6140
  errors++;
5982
6141
  }
@@ -5989,20 +6148,20 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
5989
6148
  let data73 = data64.credential;
5990
6149
  const _errs172 = errors;
5991
6150
  if (typeof data73 !== "string") {
5992
- const err30 = { instancePath: instancePath + "/scope/users/" + i9 + "/credential", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/properties/credential/type", keyword: "type", params: { type: "string" }, message: "must be string" };
6151
+ const err31 = { instancePath: instancePath + "/scope/users/" + i9 + "/credential", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/properties/credential/type", keyword: "type", params: { type: "string" }, message: "must be string" };
5993
6152
  if (vErrors === null) {
5994
- vErrors = [err30];
6153
+ vErrors = [err31];
5995
6154
  } else {
5996
- vErrors.push(err30);
6155
+ vErrors.push(err31);
5997
6156
  }
5998
6157
  errors++;
5999
6158
  }
6000
6159
  if (!(data73 === "workos_jwt" || data73 === "workos_api_key" || data73 === "service_token")) {
6001
- const err31 = { instancePath: instancePath + "/scope/users/" + i9 + "/credential", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/properties/credential/enum", keyword: "enum", params: { allowedValues: schema49.properties.scope.properties.users.items.oneOf[3].properties.credential.enum }, message: "must be equal to one of the allowed values" };
6160
+ const err32 = { instancePath: instancePath + "/scope/users/" + i9 + "/credential", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/properties/credential/enum", keyword: "enum", params: { allowedValues: schema49.properties.scope.properties.users.items.oneOf[3].properties.credential.enum }, message: "must be equal to one of the allowed values" };
6002
6161
  if (vErrors === null) {
6003
- vErrors = [err31];
6162
+ vErrors = [err32];
6004
6163
  } else {
6005
- vErrors.push(err31);
6164
+ vErrors.push(err32);
6006
6165
  }
6007
6166
  errors++;
6008
6167
  }
@@ -6014,11 +6173,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6014
6173
  }
6015
6174
  }
6016
6175
  } else {
6017
- const err32 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/type", keyword: "type", params: { type: "object" }, message: "must be object" };
6176
+ const err33 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf/3/type", keyword: "type", params: { type: "object" }, message: "must be object" };
6018
6177
  if (vErrors === null) {
6019
- vErrors = [err32];
6178
+ vErrors = [err33];
6020
6179
  } else {
6021
- vErrors.push(err32);
6180
+ vErrors.push(err33);
6022
6181
  }
6023
6182
  errors++;
6024
6183
  }
@@ -6039,11 +6198,11 @@ function validate29(data, { instancePath = "", parentData, parentDataProperty, r
6039
6198
  }
6040
6199
  }
6041
6200
  if (!valid20) {
6042
- const err33 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
6201
+ const err34 = { instancePath: instancePath + "/scope/users/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionDetailResponse/properties/scope/properties/users/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing0 }, message: "must match exactly one schema in oneOf" };
6043
6202
  if (vErrors === null) {
6044
- vErrors = [err33];
6203
+ vErrors = [err34];
6045
6204
  } else {
6046
- vErrors.push(err33);
6205
+ vErrors.push(err34);
6047
6206
  }
6048
6207
  errors++;
6049
6208
  validate29.errors = vErrors;
@@ -6346,7 +6505,7 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
6346
6505
  return errors === 0;
6347
6506
  }
6348
6507
  validate32.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
6349
- var schema57 = { "type": "object", "properties": { "outcome": { "type": "string", "enum": ["linked", "already_linked", "unlinked", "not_linked"] }, "childId": { "type": "string", "minLength": 1 }, "childShortId": { "type": "string" }, "parentId": { "type": "string", "minLength": 1 }, "parentShortId": { "type": "string" } }, "required": ["outcome", "childId", "parentId"], "additionalProperties": {} };
6508
+ var schema57 = { "type": "object", "properties": { "outcome": { "type": "string", "enum": ["linked", "already_linked", "unlinked", "not_linked"] }, "childId": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "childShortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "parentId": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "parentShortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" } }, "required": ["outcome", "childId", "parentId"], "additionalProperties": {} };
6350
6509
  function validate33(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
6351
6510
  ;
6352
6511
  let vErrors = null;
@@ -6390,6 +6549,11 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
6390
6549
  if (func1(data1) < 1) {
6391
6550
  validate33.errors = [{ instancePath: instancePath + "/childId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/childId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
6392
6551
  return false;
6552
+ } else {
6553
+ if (!pattern4.test(data1)) {
6554
+ validate33.errors = [{ instancePath: instancePath + "/childId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/childId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
6555
+ return false;
6556
+ }
6393
6557
  }
6394
6558
  } else {
6395
6559
  validate33.errors = [{ instancePath: instancePath + "/childId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/childId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
@@ -6402,10 +6566,18 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
6402
6566
  }
6403
6567
  if (valid1) {
6404
6568
  if (data.childShortId !== void 0) {
6569
+ let data2 = data.childShortId;
6405
6570
  const _errs7 = errors;
6406
- if (typeof data.childShortId !== "string") {
6407
- validate33.errors = [{ instancePath: instancePath + "/childShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/childShortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6408
- return false;
6571
+ if (errors === _errs7) {
6572
+ if (typeof data2 === "string") {
6573
+ if (!pattern5.test(data2)) {
6574
+ validate33.errors = [{ instancePath: instancePath + "/childShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/childShortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
6575
+ return false;
6576
+ }
6577
+ } else {
6578
+ validate33.errors = [{ instancePath: instancePath + "/childShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/childShortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6579
+ return false;
6580
+ }
6409
6581
  }
6410
6582
  var valid1 = _errs7 === errors;
6411
6583
  } else {
@@ -6420,6 +6592,11 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
6420
6592
  if (func1(data3) < 1) {
6421
6593
  validate33.errors = [{ instancePath: instancePath + "/parentId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/parentId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
6422
6594
  return false;
6595
+ } else {
6596
+ if (!pattern4.test(data3)) {
6597
+ validate33.errors = [{ instancePath: instancePath + "/parentId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/parentId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
6598
+ return false;
6599
+ }
6423
6600
  }
6424
6601
  } else {
6425
6602
  validate33.errors = [{ instancePath: instancePath + "/parentId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/parentId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
@@ -6432,10 +6609,18 @@ function validate33(data, { instancePath = "", parentData, parentDataProperty, r
6432
6609
  }
6433
6610
  if (valid1) {
6434
6611
  if (data.parentShortId !== void 0) {
6612
+ let data4 = data.parentShortId;
6435
6613
  const _errs11 = errors;
6436
- if (typeof data.parentShortId !== "string") {
6437
- validate33.errors = [{ instancePath: instancePath + "/parentShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/parentShortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6438
- return false;
6614
+ if (errors === _errs11) {
6615
+ if (typeof data4 === "string") {
6616
+ if (!pattern5.test(data4)) {
6617
+ validate33.errors = [{ instancePath: instancePath + "/parentShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/parentShortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
6618
+ return false;
6619
+ }
6620
+ } else {
6621
+ validate33.errors = [{ instancePath: instancePath + "/parentShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRelateSuccessResponse/properties/parentShortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
6622
+ return false;
6623
+ }
6439
6624
  }
6440
6625
  var valid1 = _errs11 === errors;
6441
6626
  } else {
@@ -7351,7 +7536,7 @@ function validate34(data, { instancePath = "", parentData, parentDataProperty, r
7351
7536
  return errors === 0;
7352
7537
  }
7353
7538
  validate34.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
7354
- var schema61 = { "anyOf": [{ "type": "object", "properties": { "outcome": { "type": "string", "const": "no_op" }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] }, "scope": { "type": "object", "properties": { "location": { "type": "object", "properties": { "mode": { "type": "string", "enum": ["inherited", "explicit"] }, "repository": { "type": "boolean" }, "directories": { "type": "array", "items": { "type": "string" } }, "globs": { "type": "array", "items": { "type": "string" } }, "branches": { "type": "array", "items": { "type": "string" } } }, "required": ["repository", "directories", "globs", "branches"], "additionalProperties": {} }, "time": { "type": "object", "properties": { "effectiveFrom": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "effectiveUntil": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "additionalProperties": {} }, "users": { "type": "array", "items": { "oneOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "user" }, "userId": { "type": "string", "minLength": 1 } }, "required": ["kind", "userId"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "role" }, "role": { "type": "string", "enum": ["owner", "admin", "member"] } }, "required": ["kind", "role"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "agent" }, "agent": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] } }, "required": ["kind", "agent"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "credential" }, "credential": { "type": "string", "enum": ["workos_jwt", "workos_api_key", "service_token"] } }, "required": ["kind", "credential"], "additionalProperties": false }] } } }, "required": ["location", "time", "users"], "additionalProperties": {} }, "scopeWarnings": { "type": "array", "items": { "type": "string" } } }, "required": ["outcome", "stage", "scope"], "additionalProperties": {} }, { "type": "object", "properties": { "outcome": { "type": "string", "const": "ok" }, "decisionId": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] }, "scope": { "type": "object", "properties": { "location": { "type": "object", "properties": { "mode": { "type": "string", "enum": ["inherited", "explicit"] }, "repository": { "type": "boolean" }, "directories": { "type": "array", "items": { "type": "string" } }, "globs": { "type": "array", "items": { "type": "string" } }, "branches": { "type": "array", "items": { "type": "string" } } }, "required": ["repository", "directories", "globs", "branches"], "additionalProperties": {} }, "time": { "type": "object", "properties": { "effectiveFrom": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "effectiveUntil": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "additionalProperties": {} }, "users": { "type": "array", "items": { "oneOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "user" }, "userId": { "type": "string", "minLength": 1 } }, "required": ["kind", "userId"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "role" }, "role": { "type": "string", "enum": ["owner", "admin", "member"] } }, "required": ["kind", "role"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "agent" }, "agent": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] } }, "required": ["kind", "agent"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "credential" }, "credential": { "type": "string", "enum": ["workos_jwt", "workos_api_key", "service_token"] } }, "required": ["kind", "credential"], "additionalProperties": false }] } } }, "required": ["location", "time", "users"], "additionalProperties": {} }, "scopeWarnings": { "type": "array", "items": { "type": "string" } } }, "required": ["outcome", "decisionId", "stage", "scope"], "additionalProperties": {} }] };
7539
+ var schema61 = { "anyOf": [{ "type": "object", "properties": { "outcome": { "type": "string", "const": "no_op" }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] }, "scope": { "type": "object", "properties": { "location": { "type": "object", "properties": { "mode": { "type": "string", "enum": ["inherited", "explicit"] }, "repository": { "type": "boolean" }, "directories": { "type": "array", "items": { "type": "string" } }, "globs": { "type": "array", "items": { "type": "string" } }, "branches": { "type": "array", "items": { "type": "string" } } }, "required": ["repository", "directories", "globs", "branches"], "additionalProperties": {} }, "time": { "type": "object", "properties": { "effectiveFrom": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "effectiveUntil": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "additionalProperties": {} }, "users": { "type": "array", "items": { "oneOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "user" }, "userId": { "type": "string", "minLength": 1 } }, "required": ["kind", "userId"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "role" }, "role": { "type": "string", "enum": ["owner", "admin", "member"] } }, "required": ["kind", "role"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "agent" }, "agent": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] } }, "required": ["kind", "agent"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "credential" }, "credential": { "type": "string", "enum": ["workos_jwt", "workos_api_key", "service_token"] } }, "required": ["kind", "credential"], "additionalProperties": false }] } } }, "required": ["location", "time", "users"], "additionalProperties": {} }, "scopeWarnings": { "type": "array", "items": { "type": "string" } } }, "required": ["outcome", "stage", "scope"], "additionalProperties": {} }, { "type": "object", "properties": { "outcome": { "type": "string", "const": "ok" }, "decisionId": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] }, "scope": { "type": "object", "properties": { "location": { "type": "object", "properties": { "mode": { "type": "string", "enum": ["inherited", "explicit"] }, "repository": { "type": "boolean" }, "directories": { "type": "array", "items": { "type": "string" } }, "globs": { "type": "array", "items": { "type": "string" } }, "branches": { "type": "array", "items": { "type": "string" } } }, "required": ["repository", "directories", "globs", "branches"], "additionalProperties": {} }, "time": { "type": "object", "properties": { "effectiveFrom": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "effectiveUntil": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "additionalProperties": {} }, "users": { "type": "array", "items": { "oneOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "user" }, "userId": { "type": "string", "minLength": 1 } }, "required": ["kind", "userId"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "role" }, "role": { "type": "string", "enum": ["owner", "admin", "member"] } }, "required": ["kind", "role"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "agent" }, "agent": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] } }, "required": ["kind", "agent"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "credential" }, "credential": { "type": "string", "enum": ["workos_jwt", "workos_api_key", "service_token"] } }, "required": ["kind", "credential"], "additionalProperties": false }] } } }, "required": ["location", "time", "users"], "additionalProperties": {} }, "scopeWarnings": { "type": "array", "items": { "type": "string" } } }, "required": ["outcome", "decisionId", "stage", "scope"], "additionalProperties": {} }] };
7355
7540
  function validate35(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
7356
7541
  ;
7357
7542
  let vErrors = null;
@@ -8323,13 +8508,23 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8323
8508
  vErrors.push(err61);
8324
8509
  }
8325
8510
  errors++;
8511
+ } else {
8512
+ if (!pattern4.test(data28)) {
8513
+ const err62 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' };
8514
+ if (vErrors === null) {
8515
+ vErrors = [err62];
8516
+ } else {
8517
+ vErrors.push(err62);
8518
+ }
8519
+ errors++;
8520
+ }
8326
8521
  }
8327
8522
  } else {
8328
- const err62 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8523
+ const err63 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8329
8524
  if (vErrors === null) {
8330
- vErrors = [err62];
8525
+ vErrors = [err63];
8331
8526
  } else {
8332
- vErrors.push(err62);
8527
+ vErrors.push(err63);
8333
8528
  }
8334
8529
  errors++;
8335
8530
  }
@@ -8340,15 +8535,28 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8340
8535
  }
8341
8536
  if (valid16) {
8342
8537
  if (data.shortId !== void 0) {
8538
+ let data29 = data.shortId;
8343
8539
  const _errs81 = errors;
8344
- if (typeof data.shortId !== "string") {
8345
- const err63 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8346
- if (vErrors === null) {
8347
- vErrors = [err63];
8540
+ if (errors === _errs81) {
8541
+ if (typeof data29 === "string") {
8542
+ if (!pattern5.test(data29)) {
8543
+ const err64 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' };
8544
+ if (vErrors === null) {
8545
+ vErrors = [err64];
8546
+ } else {
8547
+ vErrors.push(err64);
8548
+ }
8549
+ errors++;
8550
+ }
8348
8551
  } else {
8349
- vErrors.push(err63);
8552
+ const err65 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8553
+ if (vErrors === null) {
8554
+ vErrors = [err65];
8555
+ } else {
8556
+ vErrors.push(err65);
8557
+ }
8558
+ errors++;
8350
8559
  }
8351
- errors++;
8352
8560
  }
8353
8561
  var valid16 = _errs81 === errors;
8354
8562
  } else {
@@ -8359,20 +8567,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8359
8567
  let data30 = data.stage;
8360
8568
  const _errs83 = errors;
8361
8569
  if (typeof data30 !== "string") {
8362
- const err64 = { instancePath: instancePath + "/stage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/stage/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8570
+ const err66 = { instancePath: instancePath + "/stage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/stage/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8363
8571
  if (vErrors === null) {
8364
- vErrors = [err64];
8572
+ vErrors = [err66];
8365
8573
  } else {
8366
- vErrors.push(err64);
8574
+ vErrors.push(err66);
8367
8575
  }
8368
8576
  errors++;
8369
8577
  }
8370
8578
  if (!(data30 === "draft" || data30 === "provisional" || data30 === "adopted" || data30 === "superseded" || data30 === "abandoned")) {
8371
- const err65 = { instancePath: instancePath + "/stage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/stage/enum", keyword: "enum", params: { allowedValues: schema61.anyOf[1].properties.stage.enum }, message: "must be equal to one of the allowed values" };
8579
+ const err67 = { instancePath: instancePath + "/stage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/stage/enum", keyword: "enum", params: { allowedValues: schema61.anyOf[1].properties.stage.enum }, message: "must be equal to one of the allowed values" };
8372
8580
  if (vErrors === null) {
8373
- vErrors = [err65];
8581
+ vErrors = [err67];
8374
8582
  } else {
8375
- vErrors.push(err65);
8583
+ vErrors.push(err67);
8376
8584
  }
8377
8585
  errors++;
8378
8586
  }
@@ -8388,11 +8596,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8388
8596
  if (data31 && typeof data31 == "object" && !Array.isArray(data31)) {
8389
8597
  let missing8;
8390
8598
  if (data31.location === void 0 && (missing8 = "location") || data31.time === void 0 && (missing8 = "time") || data31.users === void 0 && (missing8 = "users")) {
8391
- const err66 = { instancePath: instancePath + "/scope", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/required", keyword: "required", params: { missingProperty: missing8 }, message: "must have required property '" + missing8 + "'" };
8599
+ const err68 = { instancePath: instancePath + "/scope", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/required", keyword: "required", params: { missingProperty: missing8 }, message: "must have required property '" + missing8 + "'" };
8392
8600
  if (vErrors === null) {
8393
- vErrors = [err66];
8601
+ vErrors = [err68];
8394
8602
  } else {
8395
- vErrors.push(err66);
8603
+ vErrors.push(err68);
8396
8604
  }
8397
8605
  errors++;
8398
8606
  } else {
@@ -8403,11 +8611,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8403
8611
  if (data32 && typeof data32 == "object" && !Array.isArray(data32)) {
8404
8612
  let missing9;
8405
8613
  if (data32.repository === void 0 && (missing9 = "repository") || data32.directories === void 0 && (missing9 = "directories") || data32.globs === void 0 && (missing9 = "globs") || data32.branches === void 0 && (missing9 = "branches")) {
8406
- const err67 = { instancePath: instancePath + "/scope/location", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/required", keyword: "required", params: { missingProperty: missing9 }, message: "must have required property '" + missing9 + "'" };
8614
+ const err69 = { instancePath: instancePath + "/scope/location", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/required", keyword: "required", params: { missingProperty: missing9 }, message: "must have required property '" + missing9 + "'" };
8407
8615
  if (vErrors === null) {
8408
- vErrors = [err67];
8616
+ vErrors = [err69];
8409
8617
  } else {
8410
- vErrors.push(err67);
8618
+ vErrors.push(err69);
8411
8619
  }
8412
8620
  errors++;
8413
8621
  } else {
@@ -8415,20 +8623,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8415
8623
  let data33 = data32.mode;
8416
8624
  const _errs91 = errors;
8417
8625
  if (typeof data33 !== "string") {
8418
- const err68 = { instancePath: instancePath + "/scope/location/mode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/mode/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8626
+ const err70 = { instancePath: instancePath + "/scope/location/mode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/mode/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8419
8627
  if (vErrors === null) {
8420
- vErrors = [err68];
8628
+ vErrors = [err70];
8421
8629
  } else {
8422
- vErrors.push(err68);
8630
+ vErrors.push(err70);
8423
8631
  }
8424
8632
  errors++;
8425
8633
  }
8426
8634
  if (!(data33 === "inherited" || data33 === "explicit")) {
8427
- const err69 = { instancePath: instancePath + "/scope/location/mode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/mode/enum", keyword: "enum", params: { allowedValues: schema61.anyOf[1].properties.scope.properties.location.properties.mode.enum }, message: "must be equal to one of the allowed values" };
8635
+ const err71 = { instancePath: instancePath + "/scope/location/mode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/mode/enum", keyword: "enum", params: { allowedValues: schema61.anyOf[1].properties.scope.properties.location.properties.mode.enum }, message: "must be equal to one of the allowed values" };
8428
8636
  if (vErrors === null) {
8429
- vErrors = [err69];
8637
+ vErrors = [err71];
8430
8638
  } else {
8431
- vErrors.push(err69);
8639
+ vErrors.push(err71);
8432
8640
  }
8433
8641
  errors++;
8434
8642
  }
@@ -8440,11 +8648,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8440
8648
  if (data32.repository !== void 0) {
8441
8649
  const _errs93 = errors;
8442
8650
  if (typeof data32.repository !== "boolean") {
8443
- const err70 = { instancePath: instancePath + "/scope/location/repository", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/repository/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
8651
+ const err72 = { instancePath: instancePath + "/scope/location/repository", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/repository/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
8444
8652
  if (vErrors === null) {
8445
- vErrors = [err70];
8653
+ vErrors = [err72];
8446
8654
  } else {
8447
- vErrors.push(err70);
8655
+ vErrors.push(err72);
8448
8656
  }
8449
8657
  errors++;
8450
8658
  }
@@ -8463,11 +8671,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8463
8671
  for (let i5 = 0; i5 < len5; i5++) {
8464
8672
  const _errs97 = errors;
8465
8673
  if (typeof data35[i5] !== "string") {
8466
- const err71 = { instancePath: instancePath + "/scope/location/directories/" + i5, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/directories/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8674
+ const err73 = { instancePath: instancePath + "/scope/location/directories/" + i5, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/directories/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8467
8675
  if (vErrors === null) {
8468
- vErrors = [err71];
8676
+ vErrors = [err73];
8469
8677
  } else {
8470
- vErrors.push(err71);
8678
+ vErrors.push(err73);
8471
8679
  }
8472
8680
  errors++;
8473
8681
  }
@@ -8477,11 +8685,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8477
8685
  }
8478
8686
  }
8479
8687
  } else {
8480
- const err72 = { instancePath: instancePath + "/scope/location/directories", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/directories/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8688
+ const err74 = { instancePath: instancePath + "/scope/location/directories", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/directories/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8481
8689
  if (vErrors === null) {
8482
- vErrors = [err72];
8690
+ vErrors = [err74];
8483
8691
  } else {
8484
- vErrors.push(err72);
8692
+ vErrors.push(err74);
8485
8693
  }
8486
8694
  errors++;
8487
8695
  }
@@ -8501,11 +8709,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8501
8709
  for (let i6 = 0; i6 < len6; i6++) {
8502
8710
  const _errs101 = errors;
8503
8711
  if (typeof data37[i6] !== "string") {
8504
- const err73 = { instancePath: instancePath + "/scope/location/globs/" + i6, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/globs/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8712
+ const err75 = { instancePath: instancePath + "/scope/location/globs/" + i6, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/globs/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8505
8713
  if (vErrors === null) {
8506
- vErrors = [err73];
8714
+ vErrors = [err75];
8507
8715
  } else {
8508
- vErrors.push(err73);
8716
+ vErrors.push(err75);
8509
8717
  }
8510
8718
  errors++;
8511
8719
  }
@@ -8515,11 +8723,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8515
8723
  }
8516
8724
  }
8517
8725
  } else {
8518
- const err74 = { instancePath: instancePath + "/scope/location/globs", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/globs/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8726
+ const err76 = { instancePath: instancePath + "/scope/location/globs", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/globs/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8519
8727
  if (vErrors === null) {
8520
- vErrors = [err74];
8728
+ vErrors = [err76];
8521
8729
  } else {
8522
- vErrors.push(err74);
8730
+ vErrors.push(err76);
8523
8731
  }
8524
8732
  errors++;
8525
8733
  }
@@ -8539,11 +8747,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8539
8747
  for (let i7 = 0; i7 < len7; i7++) {
8540
8748
  const _errs105 = errors;
8541
8749
  if (typeof data39[i7] !== "string") {
8542
- const err75 = { instancePath: instancePath + "/scope/location/branches/" + i7, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/branches/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8750
+ const err77 = { instancePath: instancePath + "/scope/location/branches/" + i7, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/branches/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8543
8751
  if (vErrors === null) {
8544
- vErrors = [err75];
8752
+ vErrors = [err77];
8545
8753
  } else {
8546
- vErrors.push(err75);
8754
+ vErrors.push(err77);
8547
8755
  }
8548
8756
  errors++;
8549
8757
  }
@@ -8553,11 +8761,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8553
8761
  }
8554
8762
  }
8555
8763
  } else {
8556
- const err76 = { instancePath: instancePath + "/scope/location/branches", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/branches/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8764
+ const err78 = { instancePath: instancePath + "/scope/location/branches", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/properties/branches/type", keyword: "type", params: { type: "array" }, message: "must be array" };
8557
8765
  if (vErrors === null) {
8558
- vErrors = [err76];
8766
+ vErrors = [err78];
8559
8767
  } else {
8560
- vErrors.push(err76);
8768
+ vErrors.push(err78);
8561
8769
  }
8562
8770
  errors++;
8563
8771
  }
@@ -8572,11 +8780,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8572
8780
  }
8573
8781
  }
8574
8782
  } else {
8575
- const err77 = { instancePath: instancePath + "/scope/location", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8783
+ const err79 = { instancePath: instancePath + "/scope/location", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/location/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8576
8784
  if (vErrors === null) {
8577
- vErrors = [err77];
8785
+ vErrors = [err79];
8578
8786
  } else {
8579
- vErrors.push(err77);
8787
+ vErrors.push(err79);
8580
8788
  }
8581
8789
  errors++;
8582
8790
  }
@@ -8595,31 +8803,31 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8595
8803
  let data42 = data41.effectiveFrom;
8596
8804
  const _errs110 = errors;
8597
8805
  if (!(typeof data42 == "number" && (!(data42 % 1) && !isNaN(data42)) && isFinite(data42))) {
8598
- const err78 = { instancePath: instancePath + "/scope/time/effectiveFrom", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/properties/effectiveFrom/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
8806
+ const err80 = { instancePath: instancePath + "/scope/time/effectiveFrom", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/properties/effectiveFrom/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
8599
8807
  if (vErrors === null) {
8600
- vErrors = [err78];
8808
+ vErrors = [err80];
8601
8809
  } else {
8602
- vErrors.push(err78);
8810
+ vErrors.push(err80);
8603
8811
  }
8604
8812
  errors++;
8605
8813
  }
8606
8814
  if (errors === _errs110) {
8607
8815
  if (typeof data42 == "number" && isFinite(data42)) {
8608
8816
  if (data42 > 9007199254740991 || isNaN(data42)) {
8609
- const err79 = { instancePath: instancePath + "/scope/time/effectiveFrom", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/properties/effectiveFrom/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
8817
+ const err81 = { instancePath: instancePath + "/scope/time/effectiveFrom", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/properties/effectiveFrom/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
8610
8818
  if (vErrors === null) {
8611
- vErrors = [err79];
8819
+ vErrors = [err81];
8612
8820
  } else {
8613
- vErrors.push(err79);
8821
+ vErrors.push(err81);
8614
8822
  }
8615
8823
  errors++;
8616
8824
  } else {
8617
8825
  if (data42 < -9007199254740991 || isNaN(data42)) {
8618
- const err80 = { instancePath: instancePath + "/scope/time/effectiveFrom", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/properties/effectiveFrom/minimum", keyword: "minimum", params: { comparison: ">=", limit: -9007199254740991 }, message: "must be >= -9007199254740991" };
8826
+ const err82 = { instancePath: instancePath + "/scope/time/effectiveFrom", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/properties/effectiveFrom/minimum", keyword: "minimum", params: { comparison: ">=", limit: -9007199254740991 }, message: "must be >= -9007199254740991" };
8619
8827
  if (vErrors === null) {
8620
- vErrors = [err80];
8828
+ vErrors = [err82];
8621
8829
  } else {
8622
- vErrors.push(err80);
8830
+ vErrors.push(err82);
8623
8831
  }
8624
8832
  errors++;
8625
8833
  }
@@ -8635,31 +8843,31 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8635
8843
  let data43 = data41.effectiveUntil;
8636
8844
  const _errs112 = errors;
8637
8845
  if (!(typeof data43 == "number" && (!(data43 % 1) && !isNaN(data43)) && isFinite(data43))) {
8638
- const err81 = { instancePath: instancePath + "/scope/time/effectiveUntil", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/properties/effectiveUntil/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
8846
+ const err83 = { instancePath: instancePath + "/scope/time/effectiveUntil", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/properties/effectiveUntil/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
8639
8847
  if (vErrors === null) {
8640
- vErrors = [err81];
8848
+ vErrors = [err83];
8641
8849
  } else {
8642
- vErrors.push(err81);
8850
+ vErrors.push(err83);
8643
8851
  }
8644
8852
  errors++;
8645
8853
  }
8646
8854
  if (errors === _errs112) {
8647
8855
  if (typeof data43 == "number" && isFinite(data43)) {
8648
8856
  if (data43 > 9007199254740991 || isNaN(data43)) {
8649
- const err82 = { instancePath: instancePath + "/scope/time/effectiveUntil", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/properties/effectiveUntil/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
8857
+ const err84 = { instancePath: instancePath + "/scope/time/effectiveUntil", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/properties/effectiveUntil/maximum", keyword: "maximum", params: { comparison: "<=", limit: 9007199254740991 }, message: "must be <= 9007199254740991" };
8650
8858
  if (vErrors === null) {
8651
- vErrors = [err82];
8859
+ vErrors = [err84];
8652
8860
  } else {
8653
- vErrors.push(err82);
8861
+ vErrors.push(err84);
8654
8862
  }
8655
8863
  errors++;
8656
8864
  } else {
8657
8865
  if (data43 < -9007199254740991 || isNaN(data43)) {
8658
- const err83 = { instancePath: instancePath + "/scope/time/effectiveUntil", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/properties/effectiveUntil/minimum", keyword: "minimum", params: { comparison: ">=", limit: -9007199254740991 }, message: "must be >= -9007199254740991" };
8866
+ const err85 = { instancePath: instancePath + "/scope/time/effectiveUntil", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/properties/effectiveUntil/minimum", keyword: "minimum", params: { comparison: ">=", limit: -9007199254740991 }, message: "must be >= -9007199254740991" };
8659
8867
  if (vErrors === null) {
8660
- vErrors = [err83];
8868
+ vErrors = [err85];
8661
8869
  } else {
8662
- vErrors.push(err83);
8870
+ vErrors.push(err85);
8663
8871
  }
8664
8872
  errors++;
8665
8873
  }
@@ -8672,11 +8880,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8672
8880
  }
8673
8881
  }
8674
8882
  } else {
8675
- const err84 = { instancePath: instancePath + "/scope/time", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8883
+ const err86 = { instancePath: instancePath + "/scope/time", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/time/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8676
8884
  if (vErrors === null) {
8677
- vErrors = [err84];
8885
+ vErrors = [err86];
8678
8886
  } else {
8679
- vErrors.push(err84);
8887
+ vErrors.push(err86);
8680
8888
  }
8681
8889
  errors++;
8682
8890
  }
@@ -8704,22 +8912,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8704
8912
  if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
8705
8913
  let missing10;
8706
8914
  if (data45.kind === void 0 && (missing10 = "kind") || data45.userId === void 0 && (missing10 = "userId")) {
8707
- const err85 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/required", keyword: "required", params: { missingProperty: missing10 }, message: "must have required property '" + missing10 + "'" };
8915
+ const err87 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/required", keyword: "required", params: { missingProperty: missing10 }, message: "must have required property '" + missing10 + "'" };
8708
8916
  if (vErrors === null) {
8709
- vErrors = [err85];
8917
+ vErrors = [err87];
8710
8918
  } else {
8711
- vErrors.push(err85);
8919
+ vErrors.push(err87);
8712
8920
  }
8713
8921
  errors++;
8714
8922
  } else {
8715
8923
  const _errs120 = errors;
8716
8924
  for (const key4 in data45) {
8717
8925
  if (!(key4 === "kind" || key4 === "userId")) {
8718
- const err86 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" };
8926
+ const err88 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key4 }, message: "must NOT have additional properties" };
8719
8927
  if (vErrors === null) {
8720
- vErrors = [err86];
8928
+ vErrors = [err88];
8721
8929
  } else {
8722
- vErrors.push(err86);
8930
+ vErrors.push(err88);
8723
8931
  }
8724
8932
  errors++;
8725
8933
  break;
@@ -8730,20 +8938,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8730
8938
  let data46 = data45.kind;
8731
8939
  const _errs121 = errors;
8732
8940
  if (typeof data46 !== "string") {
8733
- const err87 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8941
+ const err89 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8734
8942
  if (vErrors === null) {
8735
- vErrors = [err87];
8943
+ vErrors = [err89];
8736
8944
  } else {
8737
- vErrors.push(err87);
8945
+ vErrors.push(err89);
8738
8946
  }
8739
8947
  errors++;
8740
8948
  }
8741
8949
  if ("user" !== data46) {
8742
- const err88 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/properties/kind/const", keyword: "const", params: { allowedValue: "user" }, message: "must be equal to constant" };
8950
+ const err90 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/properties/kind/const", keyword: "const", params: { allowedValue: "user" }, message: "must be equal to constant" };
8743
8951
  if (vErrors === null) {
8744
- vErrors = [err88];
8952
+ vErrors = [err90];
8745
8953
  } else {
8746
- vErrors.push(err88);
8954
+ vErrors.push(err90);
8747
8955
  }
8748
8956
  errors++;
8749
8957
  }
@@ -8758,20 +8966,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8758
8966
  if (errors === _errs123) {
8759
8967
  if (typeof data47 === "string") {
8760
8968
  if (func1(data47) < 1) {
8761
- const err89 = { instancePath: instancePath + "/scope/users/" + i8 + "/userId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/properties/userId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
8969
+ const err91 = { instancePath: instancePath + "/scope/users/" + i8 + "/userId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/properties/userId/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
8762
8970
  if (vErrors === null) {
8763
- vErrors = [err89];
8971
+ vErrors = [err91];
8764
8972
  } else {
8765
- vErrors.push(err89);
8973
+ vErrors.push(err91);
8766
8974
  }
8767
8975
  errors++;
8768
8976
  }
8769
8977
  } else {
8770
- const err90 = { instancePath: instancePath + "/scope/users/" + i8 + "/userId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/properties/userId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8978
+ const err92 = { instancePath: instancePath + "/scope/users/" + i8 + "/userId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/properties/userId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8771
8979
  if (vErrors === null) {
8772
- vErrors = [err90];
8980
+ vErrors = [err92];
8773
8981
  } else {
8774
- vErrors.push(err90);
8982
+ vErrors.push(err92);
8775
8983
  }
8776
8984
  errors++;
8777
8985
  }
@@ -8784,11 +8992,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8784
8992
  }
8785
8993
  }
8786
8994
  } else {
8787
- const err91 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8995
+ const err93 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8788
8996
  if (vErrors === null) {
8789
- vErrors = [err91];
8997
+ vErrors = [err93];
8790
8998
  } else {
8791
- vErrors.push(err91);
8999
+ vErrors.push(err93);
8792
9000
  }
8793
9001
  errors++;
8794
9002
  }
@@ -8804,22 +9012,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8804
9012
  if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
8805
9013
  let missing11;
8806
9014
  if (data45.kind === void 0 && (missing11 = "kind") || data45.role === void 0 && (missing11 = "role")) {
8807
- const err92 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/required", keyword: "required", params: { missingProperty: missing11 }, message: "must have required property '" + missing11 + "'" };
9015
+ const err94 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/required", keyword: "required", params: { missingProperty: missing11 }, message: "must have required property '" + missing11 + "'" };
8808
9016
  if (vErrors === null) {
8809
- vErrors = [err92];
9017
+ vErrors = [err94];
8810
9018
  } else {
8811
- vErrors.push(err92);
9019
+ vErrors.push(err94);
8812
9020
  }
8813
9021
  errors++;
8814
9022
  } else {
8815
9023
  const _errs127 = errors;
8816
9024
  for (const key5 in data45) {
8817
9025
  if (!(key5 === "kind" || key5 === "role")) {
8818
- const err93 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" };
9026
+ const err95 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key5 }, message: "must NOT have additional properties" };
8819
9027
  if (vErrors === null) {
8820
- vErrors = [err93];
9028
+ vErrors = [err95];
8821
9029
  } else {
8822
- vErrors.push(err93);
9030
+ vErrors.push(err95);
8823
9031
  }
8824
9032
  errors++;
8825
9033
  break;
@@ -8830,20 +9038,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8830
9038
  let data48 = data45.kind;
8831
9039
  const _errs128 = errors;
8832
9040
  if (typeof data48 !== "string") {
8833
- const err94 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
9041
+ const err96 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8834
9042
  if (vErrors === null) {
8835
- vErrors = [err94];
9043
+ vErrors = [err96];
8836
9044
  } else {
8837
- vErrors.push(err94);
9045
+ vErrors.push(err96);
8838
9046
  }
8839
9047
  errors++;
8840
9048
  }
8841
9049
  if ("role" !== data48) {
8842
- const err95 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/properties/kind/const", keyword: "const", params: { allowedValue: "role" }, message: "must be equal to constant" };
9050
+ const err97 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/properties/kind/const", keyword: "const", params: { allowedValue: "role" }, message: "must be equal to constant" };
8843
9051
  if (vErrors === null) {
8844
- vErrors = [err95];
9052
+ vErrors = [err97];
8845
9053
  } else {
8846
- vErrors.push(err95);
9054
+ vErrors.push(err97);
8847
9055
  }
8848
9056
  errors++;
8849
9057
  }
@@ -8856,20 +9064,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8856
9064
  let data49 = data45.role;
8857
9065
  const _errs130 = errors;
8858
9066
  if (typeof data49 !== "string") {
8859
- const err96 = { instancePath: instancePath + "/scope/users/" + i8 + "/role", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/properties/role/type", keyword: "type", params: { type: "string" }, message: "must be string" };
9067
+ const err98 = { instancePath: instancePath + "/scope/users/" + i8 + "/role", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/properties/role/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8860
9068
  if (vErrors === null) {
8861
- vErrors = [err96];
9069
+ vErrors = [err98];
8862
9070
  } else {
8863
- vErrors.push(err96);
9071
+ vErrors.push(err98);
8864
9072
  }
8865
9073
  errors++;
8866
9074
  }
8867
9075
  if (!(data49 === "owner" || data49 === "admin" || data49 === "member")) {
8868
- const err97 = { instancePath: instancePath + "/scope/users/" + i8 + "/role", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/properties/role/enum", keyword: "enum", params: { allowedValues: schema61.anyOf[1].properties.scope.properties.users.items.oneOf[1].properties.role.enum }, message: "must be equal to one of the allowed values" };
9076
+ const err99 = { instancePath: instancePath + "/scope/users/" + i8 + "/role", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/properties/role/enum", keyword: "enum", params: { allowedValues: schema61.anyOf[1].properties.scope.properties.users.items.oneOf[1].properties.role.enum }, message: "must be equal to one of the allowed values" };
8869
9077
  if (vErrors === null) {
8870
- vErrors = [err97];
9078
+ vErrors = [err99];
8871
9079
  } else {
8872
- vErrors.push(err97);
9080
+ vErrors.push(err99);
8873
9081
  }
8874
9082
  errors++;
8875
9083
  }
@@ -8881,11 +9089,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8881
9089
  }
8882
9090
  }
8883
9091
  } else {
8884
- const err98 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
9092
+ const err100 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8885
9093
  if (vErrors === null) {
8886
- vErrors = [err98];
9094
+ vErrors = [err100];
8887
9095
  } else {
8888
- vErrors.push(err98);
9096
+ vErrors.push(err100);
8889
9097
  }
8890
9098
  errors++;
8891
9099
  }
@@ -8907,22 +9115,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8907
9115
  if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
8908
9116
  let missing12;
8909
9117
  if (data45.kind === void 0 && (missing12 = "kind") || data45.agent === void 0 && (missing12 = "agent")) {
8910
- const err99 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/required", keyword: "required", params: { missingProperty: missing12 }, message: "must have required property '" + missing12 + "'" };
9118
+ const err101 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/required", keyword: "required", params: { missingProperty: missing12 }, message: "must have required property '" + missing12 + "'" };
8911
9119
  if (vErrors === null) {
8912
- vErrors = [err99];
9120
+ vErrors = [err101];
8913
9121
  } else {
8914
- vErrors.push(err99);
9122
+ vErrors.push(err101);
8915
9123
  }
8916
9124
  errors++;
8917
9125
  } else {
8918
9126
  const _errs134 = errors;
8919
9127
  for (const key6 in data45) {
8920
9128
  if (!(key6 === "kind" || key6 === "agent")) {
8921
- const err100 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key6 }, message: "must NOT have additional properties" };
9129
+ const err102 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key6 }, message: "must NOT have additional properties" };
8922
9130
  if (vErrors === null) {
8923
- vErrors = [err100];
9131
+ vErrors = [err102];
8924
9132
  } else {
8925
- vErrors.push(err100);
9133
+ vErrors.push(err102);
8926
9134
  }
8927
9135
  errors++;
8928
9136
  break;
@@ -8933,20 +9141,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8933
9141
  let data50 = data45.kind;
8934
9142
  const _errs135 = errors;
8935
9143
  if (typeof data50 !== "string") {
8936
- const err101 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
9144
+ const err103 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8937
9145
  if (vErrors === null) {
8938
- vErrors = [err101];
9146
+ vErrors = [err103];
8939
9147
  } else {
8940
- vErrors.push(err101);
9148
+ vErrors.push(err103);
8941
9149
  }
8942
9150
  errors++;
8943
9151
  }
8944
9152
  if ("agent" !== data50) {
8945
- const err102 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/properties/kind/const", keyword: "const", params: { allowedValue: "agent" }, message: "must be equal to constant" };
9153
+ const err104 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/properties/kind/const", keyword: "const", params: { allowedValue: "agent" }, message: "must be equal to constant" };
8946
9154
  if (vErrors === null) {
8947
- vErrors = [err102];
9155
+ vErrors = [err104];
8948
9156
  } else {
8949
- vErrors.push(err102);
9157
+ vErrors.push(err104);
8950
9158
  }
8951
9159
  errors++;
8952
9160
  }
@@ -8959,20 +9167,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8959
9167
  let data51 = data45.agent;
8960
9168
  const _errs137 = errors;
8961
9169
  if (typeof data51 !== "string") {
8962
- const err103 = { instancePath: instancePath + "/scope/users/" + i8 + "/agent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/properties/agent/type", keyword: "type", params: { type: "string" }, message: "must be string" };
9170
+ const err105 = { instancePath: instancePath + "/scope/users/" + i8 + "/agent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/properties/agent/type", keyword: "type", params: { type: "string" }, message: "must be string" };
8963
9171
  if (vErrors === null) {
8964
- vErrors = [err103];
9172
+ vErrors = [err105];
8965
9173
  } else {
8966
- vErrors.push(err103);
9174
+ vErrors.push(err105);
8967
9175
  }
8968
9176
  errors++;
8969
9177
  }
8970
9178
  if (!(data51 === "claude_code" || data51 === "codex" || data51 === "cursor" || data51 === "hermes")) {
8971
- const err104 = { instancePath: instancePath + "/scope/users/" + i8 + "/agent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/properties/agent/enum", keyword: "enum", params: { allowedValues: schema61.anyOf[1].properties.scope.properties.users.items.oneOf[2].properties.agent.enum }, message: "must be equal to one of the allowed values" };
9179
+ const err106 = { instancePath: instancePath + "/scope/users/" + i8 + "/agent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/properties/agent/enum", keyword: "enum", params: { allowedValues: schema61.anyOf[1].properties.scope.properties.users.items.oneOf[2].properties.agent.enum }, message: "must be equal to one of the allowed values" };
8972
9180
  if (vErrors === null) {
8973
- vErrors = [err104];
9181
+ vErrors = [err106];
8974
9182
  } else {
8975
- vErrors.push(err104);
9183
+ vErrors.push(err106);
8976
9184
  }
8977
9185
  errors++;
8978
9186
  }
@@ -8984,11 +9192,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
8984
9192
  }
8985
9193
  }
8986
9194
  } else {
8987
- const err105 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
9195
+ const err107 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
8988
9196
  if (vErrors === null) {
8989
- vErrors = [err105];
9197
+ vErrors = [err107];
8990
9198
  } else {
8991
- vErrors.push(err105);
9199
+ vErrors.push(err107);
8992
9200
  }
8993
9201
  errors++;
8994
9202
  }
@@ -9010,22 +9218,22 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
9010
9218
  if (data45 && typeof data45 == "object" && !Array.isArray(data45)) {
9011
9219
  let missing13;
9012
9220
  if (data45.kind === void 0 && (missing13 = "kind") || data45.credential === void 0 && (missing13 = "credential")) {
9013
- const err106 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/required", keyword: "required", params: { missingProperty: missing13 }, message: "must have required property '" + missing13 + "'" };
9221
+ const err108 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/required", keyword: "required", params: { missingProperty: missing13 }, message: "must have required property '" + missing13 + "'" };
9014
9222
  if (vErrors === null) {
9015
- vErrors = [err106];
9223
+ vErrors = [err108];
9016
9224
  } else {
9017
- vErrors.push(err106);
9225
+ vErrors.push(err108);
9018
9226
  }
9019
9227
  errors++;
9020
9228
  } else {
9021
9229
  const _errs141 = errors;
9022
9230
  for (const key7 in data45) {
9023
9231
  if (!(key7 === "kind" || key7 === "credential")) {
9024
- const err107 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key7 }, message: "must NOT have additional properties" };
9232
+ const err109 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key7 }, message: "must NOT have additional properties" };
9025
9233
  if (vErrors === null) {
9026
- vErrors = [err107];
9234
+ vErrors = [err109];
9027
9235
  } else {
9028
- vErrors.push(err107);
9236
+ vErrors.push(err109);
9029
9237
  }
9030
9238
  errors++;
9031
9239
  break;
@@ -9036,20 +9244,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
9036
9244
  let data52 = data45.kind;
9037
9245
  const _errs142 = errors;
9038
9246
  if (typeof data52 !== "string") {
9039
- const err108 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
9247
+ const err110 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/properties/kind/type", keyword: "type", params: { type: "string" }, message: "must be string" };
9040
9248
  if (vErrors === null) {
9041
- vErrors = [err108];
9249
+ vErrors = [err110];
9042
9250
  } else {
9043
- vErrors.push(err108);
9251
+ vErrors.push(err110);
9044
9252
  }
9045
9253
  errors++;
9046
9254
  }
9047
9255
  if ("credential" !== data52) {
9048
- const err109 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/properties/kind/const", keyword: "const", params: { allowedValue: "credential" }, message: "must be equal to constant" };
9256
+ const err111 = { instancePath: instancePath + "/scope/users/" + i8 + "/kind", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/properties/kind/const", keyword: "const", params: { allowedValue: "credential" }, message: "must be equal to constant" };
9049
9257
  if (vErrors === null) {
9050
- vErrors = [err109];
9258
+ vErrors = [err111];
9051
9259
  } else {
9052
- vErrors.push(err109);
9260
+ vErrors.push(err111);
9053
9261
  }
9054
9262
  errors++;
9055
9263
  }
@@ -9062,20 +9270,20 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
9062
9270
  let data53 = data45.credential;
9063
9271
  const _errs144 = errors;
9064
9272
  if (typeof data53 !== "string") {
9065
- const err110 = { instancePath: instancePath + "/scope/users/" + i8 + "/credential", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/properties/credential/type", keyword: "type", params: { type: "string" }, message: "must be string" };
9273
+ const err112 = { instancePath: instancePath + "/scope/users/" + i8 + "/credential", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/properties/credential/type", keyword: "type", params: { type: "string" }, message: "must be string" };
9066
9274
  if (vErrors === null) {
9067
- vErrors = [err110];
9275
+ vErrors = [err112];
9068
9276
  } else {
9069
- vErrors.push(err110);
9277
+ vErrors.push(err112);
9070
9278
  }
9071
9279
  errors++;
9072
9280
  }
9073
9281
  if (!(data53 === "workos_jwt" || data53 === "workos_api_key" || data53 === "service_token")) {
9074
- const err111 = { instancePath: instancePath + "/scope/users/" + i8 + "/credential", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/properties/credential/enum", keyword: "enum", params: { allowedValues: schema61.anyOf[1].properties.scope.properties.users.items.oneOf[3].properties.credential.enum }, message: "must be equal to one of the allowed values" };
9282
+ const err113 = { instancePath: instancePath + "/scope/users/" + i8 + "/credential", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/properties/credential/enum", keyword: "enum", params: { allowedValues: schema61.anyOf[1].properties.scope.properties.users.items.oneOf[3].properties.credential.enum }, message: "must be equal to one of the allowed values" };
9075
9283
  if (vErrors === null) {
9076
- vErrors = [err111];
9284
+ vErrors = [err113];
9077
9285
  } else {
9078
- vErrors.push(err111);
9286
+ vErrors.push(err113);
9079
9287
  }
9080
9288
  errors++;
9081
9289
  }
@@ -9087,11 +9295,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
9087
9295
  }
9088
9296
  }
9089
9297
  } else {
9090
- const err112 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/type", keyword: "type", params: { type: "object" }, message: "must be object" };
9298
+ const err114 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf/3/type", keyword: "type", params: { type: "object" }, message: "must be object" };
9091
9299
  if (vErrors === null) {
9092
- vErrors = [err112];
9300
+ vErrors = [err114];
9093
9301
  } else {
9094
- vErrors.push(err112);
9302
+ vErrors.push(err114);
9095
9303
  }
9096
9304
  errors++;
9097
9305
  }
@@ -9112,11 +9320,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
9112
9320
  }
9113
9321
  }
9114
9322
  if (!valid24) {
9115
- const err113 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
9323
+ const err115 = { instancePath: instancePath + "/scope/users/" + i8, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/items/oneOf", keyword: "oneOf", params: { passingSchemas: passing1 }, message: "must match exactly one schema in oneOf" };
9116
9324
  if (vErrors === null) {
9117
- vErrors = [err113];
9325
+ vErrors = [err115];
9118
9326
  } else {
9119
- vErrors.push(err113);
9327
+ vErrors.push(err115);
9120
9328
  }
9121
9329
  errors++;
9122
9330
  } else {
@@ -9135,11 +9343,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
9135
9343
  }
9136
9344
  }
9137
9345
  } else {
9138
- const err114 = { instancePath: instancePath + "/scope/users", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/type", keyword: "type", params: { type: "array" }, message: "must be array" };
9346
+ const err116 = { instancePath: instancePath + "/scope/users", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/properties/users/type", keyword: "type", params: { type: "array" }, message: "must be array" };
9139
9347
  if (vErrors === null) {
9140
- vErrors = [err114];
9348
+ vErrors = [err116];
9141
9349
  } else {
9142
- vErrors.push(err114);
9350
+ vErrors.push(err116);
9143
9351
  }
9144
9352
  errors++;
9145
9353
  }
@@ -9152,11 +9360,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
9152
9360
  }
9153
9361
  }
9154
9362
  } else {
9155
- const err115 = { instancePath: instancePath + "/scope", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/type", keyword: "type", params: { type: "object" }, message: "must be object" };
9363
+ const err117 = { instancePath: instancePath + "/scope", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scope/type", keyword: "type", params: { type: "object" }, message: "must be object" };
9156
9364
  if (vErrors === null) {
9157
- vErrors = [err115];
9365
+ vErrors = [err117];
9158
9366
  } else {
9159
- vErrors.push(err115);
9367
+ vErrors.push(err117);
9160
9368
  }
9161
9369
  errors++;
9162
9370
  }
@@ -9176,11 +9384,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
9176
9384
  for (let i9 = 0; i9 < len9; i9++) {
9177
9385
  const _errs148 = errors;
9178
9386
  if (typeof data54[i9] !== "string") {
9179
- const err116 = { instancePath: instancePath + "/scopeWarnings/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scopeWarnings/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
9387
+ const err118 = { instancePath: instancePath + "/scopeWarnings/" + i9, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scopeWarnings/items/type", keyword: "type", params: { type: "string" }, message: "must be string" };
9180
9388
  if (vErrors === null) {
9181
- vErrors = [err116];
9389
+ vErrors = [err118];
9182
9390
  } else {
9183
- vErrors.push(err116);
9391
+ vErrors.push(err118);
9184
9392
  }
9185
9393
  errors++;
9186
9394
  }
@@ -9190,11 +9398,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
9190
9398
  }
9191
9399
  }
9192
9400
  } else {
9193
- const err117 = { instancePath: instancePath + "/scopeWarnings", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scopeWarnings/type", keyword: "type", params: { type: "array" }, message: "must be array" };
9401
+ const err119 = { instancePath: instancePath + "/scopeWarnings", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/properties/scopeWarnings/type", keyword: "type", params: { type: "array" }, message: "must be array" };
9194
9402
  if (vErrors === null) {
9195
- vErrors = [err117];
9403
+ vErrors = [err119];
9196
9404
  } else {
9197
- vErrors.push(err117);
9405
+ vErrors.push(err119);
9198
9406
  }
9199
9407
  errors++;
9200
9408
  }
@@ -9210,11 +9418,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
9210
9418
  }
9211
9419
  }
9212
9420
  } else {
9213
- const err118 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
9421
+ const err120 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
9214
9422
  if (vErrors === null) {
9215
- vErrors = [err118];
9423
+ vErrors = [err120];
9216
9424
  } else {
9217
- vErrors.push(err118);
9425
+ vErrors.push(err120);
9218
9426
  }
9219
9427
  errors++;
9220
9428
  }
@@ -9227,11 +9435,11 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
9227
9435
  }
9228
9436
  }
9229
9437
  if (!valid1) {
9230
- const err119 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
9438
+ const err121 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionRescopeResponse/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
9231
9439
  if (vErrors === null) {
9232
- vErrors = [err119];
9440
+ vErrors = [err121];
9233
9441
  } else {
9234
- vErrors.push(err119);
9442
+ vErrors.push(err121);
9235
9443
  }
9236
9444
  errors++;
9237
9445
  validate35.errors = vErrors;
@@ -9251,7 +9459,7 @@ function validate35(data, { instancePath = "", parentData, parentDataProperty, r
9251
9459
  return errors === 0;
9252
9460
  }
9253
9461
  validate35.evaluated = { "dynamicProps": true, "dynamicItems": false };
9254
- var schema63 = { "anyOf": [{ "type": "object", "properties": { "outcome": { "type": "string", "const": "no_op" }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] } }, "required": ["outcome", "stage"], "additionalProperties": {} }, { "type": "object", "properties": { "outcome": { "type": "string", "const": "ok" }, "decisionId": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] } }, "required": ["outcome", "decisionId", "stage"], "additionalProperties": {} }] };
9462
+ var schema63 = { "anyOf": [{ "type": "object", "properties": { "outcome": { "type": "string", "const": "no_op" }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] } }, "required": ["outcome", "stage"], "additionalProperties": {} }, { "type": "object", "properties": { "outcome": { "type": "string", "const": "ok" }, "decisionId": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] } }, "required": ["outcome", "decisionId", "stage"], "additionalProperties": {} }] };
9255
9463
  function validate36(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
9256
9464
  ;
9257
9465
  let vErrors = null;
@@ -9398,13 +9606,23 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
9398
9606
  vErrors.push(err9);
9399
9607
  }
9400
9608
  errors++;
9609
+ } else {
9610
+ if (!pattern4.test(data3)) {
9611
+ const err10 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf/1/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' };
9612
+ if (vErrors === null) {
9613
+ vErrors = [err10];
9614
+ } else {
9615
+ vErrors.push(err10);
9616
+ }
9617
+ errors++;
9618
+ }
9401
9619
  }
9402
9620
  } else {
9403
- const err10 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf/1/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
9621
+ const err11 = { instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf/1/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
9404
9622
  if (vErrors === null) {
9405
- vErrors = [err10];
9623
+ vErrors = [err11];
9406
9624
  } else {
9407
- vErrors.push(err10);
9625
+ vErrors.push(err11);
9408
9626
  }
9409
9627
  errors++;
9410
9628
  }
@@ -9415,15 +9633,28 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
9415
9633
  }
9416
9634
  if (valid3) {
9417
9635
  if (data.shortId !== void 0) {
9636
+ let data4 = data.shortId;
9418
9637
  const _errs16 = errors;
9419
- if (typeof data.shortId !== "string") {
9420
- const err11 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf/1/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
9421
- if (vErrors === null) {
9422
- vErrors = [err11];
9638
+ if (errors === _errs16) {
9639
+ if (typeof data4 === "string") {
9640
+ if (!pattern5.test(data4)) {
9641
+ const err12 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf/1/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' };
9642
+ if (vErrors === null) {
9643
+ vErrors = [err12];
9644
+ } else {
9645
+ vErrors.push(err12);
9646
+ }
9647
+ errors++;
9648
+ }
9423
9649
  } else {
9424
- vErrors.push(err11);
9650
+ const err13 = { instancePath: instancePath + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf/1/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
9651
+ if (vErrors === null) {
9652
+ vErrors = [err13];
9653
+ } else {
9654
+ vErrors.push(err13);
9655
+ }
9656
+ errors++;
9425
9657
  }
9426
- errors++;
9427
9658
  }
9428
9659
  var valid3 = _errs16 === errors;
9429
9660
  } else {
@@ -9434,20 +9665,20 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
9434
9665
  let data5 = data.stage;
9435
9666
  const _errs18 = errors;
9436
9667
  if (typeof data5 !== "string") {
9437
- const err12 = { instancePath: instancePath + "/stage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf/1/properties/stage/type", keyword: "type", params: { type: "string" }, message: "must be string" };
9668
+ const err14 = { instancePath: instancePath + "/stage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf/1/properties/stage/type", keyword: "type", params: { type: "string" }, message: "must be string" };
9438
9669
  if (vErrors === null) {
9439
- vErrors = [err12];
9670
+ vErrors = [err14];
9440
9671
  } else {
9441
- vErrors.push(err12);
9672
+ vErrors.push(err14);
9442
9673
  }
9443
9674
  errors++;
9444
9675
  }
9445
9676
  if (!(data5 === "draft" || data5 === "provisional" || data5 === "adopted" || data5 === "superseded" || data5 === "abandoned")) {
9446
- const err13 = { instancePath: instancePath + "/stage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf/1/properties/stage/enum", keyword: "enum", params: { allowedValues: schema63.anyOf[1].properties.stage.enum }, message: "must be equal to one of the allowed values" };
9677
+ const err15 = { instancePath: instancePath + "/stage", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf/1/properties/stage/enum", keyword: "enum", params: { allowedValues: schema63.anyOf[1].properties.stage.enum }, message: "must be equal to one of the allowed values" };
9447
9678
  if (vErrors === null) {
9448
- vErrors = [err13];
9679
+ vErrors = [err15];
9449
9680
  } else {
9450
- vErrors.push(err13);
9681
+ vErrors.push(err15);
9451
9682
  }
9452
9683
  errors++;
9453
9684
  }
@@ -9460,11 +9691,11 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
9460
9691
  }
9461
9692
  }
9462
9693
  } else {
9463
- const err14 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
9694
+ const err16 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
9464
9695
  if (vErrors === null) {
9465
- vErrors = [err14];
9696
+ vErrors = [err16];
9466
9697
  } else {
9467
- vErrors.push(err14);
9698
+ vErrors.push(err16);
9468
9699
  }
9469
9700
  errors++;
9470
9701
  }
@@ -9477,11 +9708,11 @@ function validate36(data, { instancePath = "", parentData, parentDataProperty, r
9477
9708
  }
9478
9709
  }
9479
9710
  if (!valid1) {
9480
- const err15 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
9711
+ const err17 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionStageSuccessResponse/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
9481
9712
  if (vErrors === null) {
9482
- vErrors = [err15];
9713
+ vErrors = [err17];
9483
9714
  } else {
9484
- vErrors.push(err15);
9715
+ vErrors.push(err17);
9485
9716
  }
9486
9717
  errors++;
9487
9718
  validate36.errors = vErrors;
@@ -9552,7 +9783,7 @@ function validate37(data, { instancePath = "", parentData, parentDataProperty, r
9552
9783
  return errors === 0;
9553
9784
  }
9554
9785
  validate37.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
9555
- var schema67 = { "type": "object", "properties": { "decisions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1 }, "intent": { "type": "string" }, "rationale": { "type": "string" }, "status": { "type": "string", "enum": ["active", "under_review"] }, "classifiedAt": { "type": "number" }, "matchedFiles": { "type": "array", "items": { "type": "string" } } }, "required": ["id", "intent", "status", "classifiedAt", "matchedFiles"], "additionalProperties": {} } }, "truncated": { "type": "boolean" }, "repoSyncId": { "type": "string" }, "unavailable": { "type": "string" } }, "required": ["decisions", "truncated"], "additionalProperties": {} };
9786
+ var schema67 = { "type": "object", "properties": { "decisions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "intent": { "type": "string" }, "rationale": { "type": "string" }, "status": { "type": "string", "enum": ["active", "under_review"] }, "classifiedAt": { "type": "number" }, "matchedFiles": { "type": "array", "items": { "type": "string" } } }, "required": ["id", "intent", "status", "classifiedAt", "matchedFiles"], "additionalProperties": {} } }, "truncated": { "type": "boolean" }, "repoSyncId": { "type": "string" }, "unavailable": { "type": "string" } }, "required": ["decisions", "truncated"], "additionalProperties": {} };
9556
9787
  function validate38(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
9557
9788
  ;
9558
9789
  let vErrors = null;
@@ -9597,6 +9828,11 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
9597
9828
  if (func1(data2) < 1) {
9598
9829
  validate38.errors = [{ instancePath: instancePath + "/decisions/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionsAffectingResponse/properties/decisions/items/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
9599
9830
  return false;
9831
+ } else {
9832
+ if (!pattern4.test(data2)) {
9833
+ validate38.errors = [{ instancePath: instancePath + "/decisions/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionsAffectingResponse/properties/decisions/items/properties/id/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
9834
+ return false;
9835
+ }
9600
9836
  }
9601
9837
  } else {
9602
9838
  validate38.errors = [{ instancePath: instancePath + "/decisions/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionsAffectingResponse/properties/decisions/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
@@ -9756,7 +9992,7 @@ function validate38(data, { instancePath = "", parentData, parentDataProperty, r
9756
9992
  return errors === 0;
9757
9993
  }
9758
9994
  validate38.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
9759
- var schema69 = { "type": "object", "properties": { "decisions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1 }, "shortId": { "type": "string" }, "intent": { "type": "string" }, "rationale": { "type": "string" }, "area": { "type": "string" }, "producerKind": { "type": "string" }, "isDecision": { "type": "boolean" }, "userId": { "type": "string" }, "authorName": { "type": "string" }, "authorIsSelf": { "type": "boolean" }, "classifiedAt": { "type": "number" }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] } }, "required": ["id", "intent", "userId", "authorName", "authorIsSelf", "classifiedAt", "status", "stage"], "additionalProperties": {} } }, "viewerHasDecisions": { "type": "boolean" }, "author": { "type": "object", "properties": { "userId": { "type": "string" }, "name": { "type": "string" } }, "required": ["userId", "name"], "additionalProperties": {} }, "authorHasDecisions": { "type": "boolean" }, "windowTotal": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "windowTotalCapped": { "type": "boolean" }, "continueCursor": { "type": "string", "minLength": 1, "maxLength": 4096 }, "isDone": { "type": "boolean" }, "unavailable": { "type": "string" } }, "required": ["decisions"], "additionalProperties": {}, "x-primitive-runtime-refinements": ["recent_response_variant"] };
9995
+ var schema69 = { "type": "object", "properties": { "decisions": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "intent": { "type": "string" }, "rationale": { "type": "string" }, "area": { "type": "string" }, "producerKind": { "type": "string" }, "isDecision": { "type": "boolean" }, "userId": { "type": "string" }, "authorName": { "type": "string" }, "authorIsSelf": { "type": "boolean" }, "classifiedAt": { "type": "number" }, "status": { "type": "string", "enum": ["active", "superseded", "under_review"] }, "stage": { "type": "string", "enum": ["draft", "provisional", "adopted", "superseded", "abandoned"] } }, "required": ["id", "intent", "userId", "authorName", "authorIsSelf", "classifiedAt", "status", "stage"], "additionalProperties": {} } }, "viewerHasDecisions": { "type": "boolean" }, "author": { "type": "object", "properties": { "userId": { "type": "string" }, "name": { "type": "string" } }, "required": ["userId", "name"], "additionalProperties": {} }, "authorHasDecisions": { "type": "boolean" }, "windowTotal": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "windowTotalCapped": { "type": "boolean" }, "continueCursor": { "type": "string", "minLength": 1, "maxLength": 4096 }, "isDone": { "type": "boolean" }, "unavailable": { "type": "string" } }, "required": ["decisions"], "additionalProperties": {}, "x-primitive-runtime-refinements": ["recent_response_variant"] };
9760
9996
  function validate39(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
9761
9997
  ;
9762
9998
  let vErrors = null;
@@ -9801,6 +10037,11 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
9801
10037
  if (func1(data2) < 1) {
9802
10038
  validate39.errors = [{ instancePath: instancePath + "/decisions/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionsRecentResponse/properties/decisions/items/properties/id/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" }];
9803
10039
  return false;
10040
+ } else {
10041
+ if (!pattern4.test(data2)) {
10042
+ validate39.errors = [{ instancePath: instancePath + "/decisions/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionsRecentResponse/properties/decisions/items/properties/id/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
10043
+ return false;
10044
+ }
9804
10045
  }
9805
10046
  } else {
9806
10047
  validate39.errors = [{ instancePath: instancePath + "/decisions/" + i0 + "/id", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionsRecentResponse/properties/decisions/items/properties/id/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
@@ -9813,10 +10054,18 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
9813
10054
  }
9814
10055
  if (valid3) {
9815
10056
  if (data1.shortId !== void 0) {
10057
+ let data3 = data1.shortId;
9816
10058
  const _errs11 = errors;
9817
- if (typeof data1.shortId !== "string") {
9818
- validate39.errors = [{ instancePath: instancePath + "/decisions/" + i0 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionsRecentResponse/properties/decisions/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
9819
- return false;
10059
+ if (errors === _errs11) {
10060
+ if (typeof data3 === "string") {
10061
+ if (!pattern5.test(data3)) {
10062
+ validate39.errors = [{ instancePath: instancePath + "/decisions/" + i0 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionsRecentResponse/properties/decisions/items/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
10063
+ return false;
10064
+ }
10065
+ } else {
10066
+ validate39.errors = [{ instancePath: instancePath + "/decisions/" + i0 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DecisionsRecentResponse/properties/decisions/items/properties/shortId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
10067
+ return false;
10068
+ }
9820
10069
  }
9821
10070
  var valid3 = _errs11 === errors;
9822
10071
  } else {
@@ -10151,8 +10400,8 @@ function validate39(data, { instancePath = "", parentData, parentDataProperty, r
10151
10400
  return errors === 0;
10152
10401
  }
10153
10402
  validate39.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
10154
- var pattern4 = new RegExp("^[a-zA-Z0-9]{1,64}$", "u");
10155
- var pattern5 = new RegExp("^[a-f0-9]{64}$", "u");
10403
+ var pattern34 = new RegExp("^[a-zA-Z0-9]{1,64}$", "u");
10404
+ var pattern35 = new RegExp("^[a-f0-9]{64}$", "u");
10156
10405
  function validate40(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
10157
10406
  ;
10158
10407
  let vErrors = null;
@@ -10186,7 +10435,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
10186
10435
  const _errs3 = errors;
10187
10436
  if (errors === _errs3) {
10188
10437
  if (typeof data0 === "string") {
10189
- if (!pattern4.test(data0)) {
10438
+ if (!pattern34.test(data0)) {
10190
10439
  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}$"' }];
10191
10440
  return false;
10192
10441
  }
@@ -10230,7 +10479,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
10230
10479
  const _errs7 = errors;
10231
10480
  if (errors === _errs7) {
10232
10481
  if (typeof data2 === "string") {
10233
- if (!pattern5.test(data2)) {
10482
+ if (!pattern35.test(data2)) {
10234
10483
  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}$"' }];
10235
10484
  return false;
10236
10485
  }
@@ -10256,7 +10505,7 @@ function validate40(data, { instancePath = "", parentData, parentDataProperty, r
10256
10505
  return errors === 0;
10257
10506
  }
10258
10507
  validate40.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
10259
- var pattern8 = new RegExp("\\S", "u");
10508
+ var pattern38 = new RegExp("\\S", "u");
10260
10509
  function validate41(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
10261
10510
  ;
10262
10511
  let vErrors = null;
@@ -10303,7 +10552,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
10303
10552
  const _errs5 = errors;
10304
10553
  if (errors === _errs5) {
10305
10554
  if (typeof data0 === "string") {
10306
- if (!pattern4.test(data0)) {
10555
+ if (!pattern34.test(data0)) {
10307
10556
  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}$"' };
10308
10557
  if (vErrors === null) {
10309
10558
  vErrors = [err2];
@@ -10444,7 +10693,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
10444
10693
  const _errs14 = errors;
10445
10694
  if (errors === _errs14) {
10446
10695
  if (typeof data3 === "string") {
10447
- if (!pattern4.test(data3)) {
10696
+ if (!pattern34.test(data3)) {
10448
10697
  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}$"' };
10449
10698
  if (vErrors === null) {
10450
10699
  vErrors = [err12];
@@ -10557,7 +10806,7 @@ function validate41(data, { instancePath = "", parentData, parentDataProperty, r
10557
10806
  }
10558
10807
  errors++;
10559
10808
  } else {
10560
- if (!pattern8.test(data6)) {
10809
+ if (!pattern38.test(data6)) {
10561
10810
  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"' };
10562
10811
  if (vErrors === null) {
10563
10812
  vErrors = [err21];
@@ -10668,7 +10917,7 @@ function validate42(data, { instancePath = "", parentData, parentDataProperty, r
10668
10917
  const _errs3 = errors;
10669
10918
  if (errors === _errs3) {
10670
10919
  if (typeof data0 === "string") {
10671
- if (!pattern4.test(data0)) {
10920
+ if (!pattern34.test(data0)) {
10672
10921
  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}$"' }];
10673
10922
  return false;
10674
10923
  }
@@ -10718,7 +10967,7 @@ function validate42(data, { instancePath = "", parentData, parentDataProperty, r
10718
10967
  return errors === 0;
10719
10968
  }
10720
10969
  validate42.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
10721
- 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");
10970
+ var pattern40 = 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");
10722
10971
  function validate43(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
10723
10972
  ;
10724
10973
  let vErrors = null;
@@ -10769,7 +11018,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
10769
11018
  if (errors === _errs5) {
10770
11019
  if (errors === _errs5) {
10771
11020
  if (typeof data1 === "string") {
10772
- if (!pattern10.test(data1)) {
11021
+ if (!pattern40.test(data1)) {
10773
11022
  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)$"' }];
10774
11023
  return false;
10775
11024
  }
@@ -10797,7 +11046,7 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
10797
11046
  validate43.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
10798
11047
  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 }, "story": { "type": "object", "properties": { "orgName": { "type": "string", "maxLength": 200 }, "recipient": { "type": "string", "format": "email", "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" }, "decisionDate": { "type": "string", "maxLength": 100 } }, "required": ["orgName", "recipient", "decisionDate"], "additionalProperties": false }, "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", "story", "email"], "additionalProperties": false };
10799
11048
  var func34 = Object.prototype.hasOwnProperty;
10800
- var pattern12 = new RegExp("^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", "u");
11049
+ var pattern42 = new RegExp("^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", "u");
10801
11050
  function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
10802
11051
  ;
10803
11052
  let vErrors = null;
@@ -10879,7 +11128,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
10879
11128
  const _errs9 = errors;
10880
11129
  if (errors === _errs9) {
10881
11130
  if (typeof data3 === "string") {
10882
- if (!pattern4.test(data3)) {
11131
+ if (!pattern34.test(data3)) {
10883
11132
  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}$"' }];
10884
11133
  return false;
10885
11134
  }
@@ -10997,7 +11246,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
10997
11246
  if (errors === _errs22) {
10998
11247
  if (errors === _errs22) {
10999
11248
  if (typeof data9 === "string") {
11000
- if (!pattern12.test(data9)) {
11249
+ if (!pattern42.test(data9)) {
11001
11250
  validate44.errors = [{ instancePath: instancePath + "/story/recipient", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/properties/recipient/pattern", keyword: "pattern", params: { pattern: "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" }, message: `must match pattern "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"` }];
11002
11251
  return false;
11003
11252
  }
@@ -11135,7 +11384,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
11135
11384
  const _errs36 = errors;
11136
11385
  if (errors === _errs36) {
11137
11386
  if (typeof data16 === "string") {
11138
- if (!pattern5.test(data16)) {
11387
+ if (!pattern35.test(data16)) {
11139
11388
  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}$"' }];
11140
11389
  return false;
11141
11390
  }
@@ -11338,15 +11587,28 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
11338
11587
  }
11339
11588
  if (valid3) {
11340
11589
  if (data3.decisionId !== void 0) {
11590
+ let data8 = data3.decisionId;
11341
11591
  const _errs22 = errors;
11342
- if (typeof data3.decisionId !== "string") {
11343
- const err6 = { instancePath: instancePath + "/verdictFooter/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/verdictFooter/anyOf/0/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
11344
- if (vErrors === null) {
11345
- vErrors = [err6];
11592
+ if (errors === _errs22) {
11593
+ if (typeof data8 === "string") {
11594
+ if (!pattern4.test(data8)) {
11595
+ const err6 = { instancePath: instancePath + "/verdictFooter/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/verdictFooter/anyOf/0/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' };
11596
+ if (vErrors === null) {
11597
+ vErrors = [err6];
11598
+ } else {
11599
+ vErrors.push(err6);
11600
+ }
11601
+ errors++;
11602
+ }
11346
11603
  } else {
11347
- vErrors.push(err6);
11604
+ const err7 = { instancePath: instancePath + "/verdictFooter/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/verdictFooter/anyOf/0/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
11605
+ if (vErrors === null) {
11606
+ vErrors = [err7];
11607
+ } else {
11608
+ vErrors.push(err7);
11609
+ }
11610
+ errors++;
11348
11611
  }
11349
- errors++;
11350
11612
  }
11351
11613
  var valid3 = _errs22 === errors;
11352
11614
  } else {
@@ -11354,15 +11616,28 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
11354
11616
  }
11355
11617
  if (valid3) {
11356
11618
  if (data3.decisionShortId !== void 0) {
11619
+ let data9 = data3.decisionShortId;
11357
11620
  const _errs24 = errors;
11358
- if (typeof data3.decisionShortId !== "string") {
11359
- const err7 = { instancePath: instancePath + "/verdictFooter/decisionShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/verdictFooter/anyOf/0/properties/decisionShortId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
11360
- if (vErrors === null) {
11361
- vErrors = [err7];
11621
+ if (errors === _errs24) {
11622
+ if (typeof data9 === "string") {
11623
+ if (!pattern5.test(data9)) {
11624
+ const err8 = { instancePath: instancePath + "/verdictFooter/decisionShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/verdictFooter/anyOf/0/properties/decisionShortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' };
11625
+ if (vErrors === null) {
11626
+ vErrors = [err8];
11627
+ } else {
11628
+ vErrors.push(err8);
11629
+ }
11630
+ errors++;
11631
+ }
11362
11632
  } else {
11363
- vErrors.push(err7);
11633
+ const err9 = { instancePath: instancePath + "/verdictFooter/decisionShortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/verdictFooter/anyOf/0/properties/decisionShortId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
11634
+ if (vErrors === null) {
11635
+ vErrors = [err9];
11636
+ } else {
11637
+ vErrors.push(err9);
11638
+ }
11639
+ errors++;
11364
11640
  }
11365
- errors++;
11366
11641
  }
11367
11642
  var valid3 = _errs24 === errors;
11368
11643
  } else {
@@ -11376,11 +11651,11 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
11376
11651
  }
11377
11652
  }
11378
11653
  } else {
11379
- const err8 = { instancePath: instancePath + "/verdictFooter", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/verdictFooter/anyOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
11654
+ const err10 = { instancePath: instancePath + "/verdictFooter", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/verdictFooter/anyOf/0/type", keyword: "type", params: { type: "object" }, message: "must be object" };
11380
11655
  if (vErrors === null) {
11381
- vErrors = [err8];
11656
+ vErrors = [err10];
11382
11657
  } else {
11383
- vErrors.push(err8);
11658
+ vErrors.push(err10);
11384
11659
  }
11385
11660
  errors++;
11386
11661
  }
@@ -11389,22 +11664,22 @@ function validate45(data, { instancePath = "", parentData, parentDataProperty, r
11389
11664
  valid2 = valid2 || _valid0;
11390
11665
  const _errs26 = errors;
11391
11666
  if (data3 !== null) {
11392
- const err9 = { instancePath: instancePath + "/verdictFooter", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/verdictFooter/anyOf/1/type", keyword: "type", params: { type: "null" }, message: "must be null" };
11667
+ const err11 = { instancePath: instancePath + "/verdictFooter", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/verdictFooter/anyOf/1/type", keyword: "type", params: { type: "null" }, message: "must be null" };
11393
11668
  if (vErrors === null) {
11394
- vErrors = [err9];
11669
+ vErrors = [err11];
11395
11670
  } else {
11396
- vErrors.push(err9);
11671
+ vErrors.push(err11);
11397
11672
  }
11398
11673
  errors++;
11399
11674
  }
11400
11675
  var _valid0 = _errs26 === errors;
11401
11676
  valid2 = valid2 || _valid0;
11402
11677
  if (!valid2) {
11403
- const err10 = { instancePath: instancePath + "/verdictFooter", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/verdictFooter/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
11678
+ const err12 = { instancePath: instancePath + "/verdictFooter", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DurableMoveIngestResponse/properties/verdictFooter/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
11404
11679
  if (vErrors === null) {
11405
- vErrors = [err10];
11680
+ vErrors = [err12];
11406
11681
  } else {
11407
- vErrors.push(err10);
11682
+ vErrors.push(err12);
11408
11683
  }
11409
11684
  errors++;
11410
11685
  validate45.errors = vErrors;
@@ -12038,8 +12313,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
12038
12313
  return errors === 0;
12039
12314
  }
12040
12315
  validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12041
- 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"] };
12042
- var pattern14 = new RegExp("^[0-9a-f]{8}$", "u");
12316
+ 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, "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "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"] };
12043
12317
  function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
12044
12318
  ;
12045
12319
  let vErrors = null;
@@ -12378,7 +12652,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
12378
12652
  const _errs27 = errors;
12379
12653
  if (errors === _errs27) {
12380
12654
  if (typeof data9 === "string") {
12381
- if (!pattern14.test(data9)) {
12655
+ if (!pattern5.test(data9)) {
12382
12656
  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}$"' };
12383
12657
  if (vErrors === null) {
12384
12658
  vErrors = [err24];
@@ -12424,14 +12698,24 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
12424
12698
  vErrors.push(err27);
12425
12699
  }
12426
12700
  errors++;
12701
+ } else {
12702
+ if (!pattern4.test(data10)) {
12703
+ const err28 = { instancePath: instancePath + "/events/" + i0 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' };
12704
+ if (vErrors === null) {
12705
+ vErrors = [err28];
12706
+ } else {
12707
+ vErrors.push(err28);
12708
+ }
12709
+ errors++;
12710
+ }
12427
12711
  }
12428
12712
  }
12429
12713
  } else {
12430
- const err28 = { instancePath: instancePath + "/events/" + i0 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12714
+ const err29 = { instancePath: instancePath + "/events/" + i0 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12431
12715
  if (vErrors === null) {
12432
- vErrors = [err28];
12716
+ vErrors = [err29];
12433
12717
  } else {
12434
- vErrors.push(err28);
12718
+ vErrors.push(err29);
12435
12719
  }
12436
12720
  errors++;
12437
12721
  }
@@ -12444,11 +12728,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
12444
12728
  if (data6.intent !== void 0) {
12445
12729
  const _errs31 = errors;
12446
12730
  if (typeof data6.intent !== "string") {
12447
- const err29 = { instancePath: instancePath + "/events/" + i0 + "/intent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/properties/intent/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12731
+ const err30 = { instancePath: instancePath + "/events/" + i0 + "/intent", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/properties/intent/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12448
12732
  if (vErrors === null) {
12449
- vErrors = [err29];
12733
+ vErrors = [err30];
12450
12734
  } else {
12451
- vErrors.push(err29);
12735
+ vErrors.push(err30);
12452
12736
  }
12453
12737
  errors++;
12454
12738
  }
@@ -12460,11 +12744,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
12460
12744
  if (data6.webUrl !== void 0) {
12461
12745
  const _errs33 = errors;
12462
12746
  if (typeof data6.webUrl !== "string") {
12463
- const err30 = { instancePath: instancePath + "/events/" + i0 + "/webUrl", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/properties/webUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12747
+ const err31 = { instancePath: instancePath + "/events/" + i0 + "/webUrl", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/properties/webUrl/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12464
12748
  if (vErrors === null) {
12465
- vErrors = [err30];
12749
+ vErrors = [err31];
12466
12750
  } else {
12467
- vErrors.push(err30);
12751
+ vErrors.push(err31);
12468
12752
  }
12469
12753
  errors++;
12470
12754
  }
@@ -12477,20 +12761,20 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
12477
12761
  let data13 = data6.kind;
12478
12762
  const _errs35 = errors;
12479
12763
  if (typeof data13 !== "string") {
12480
- const err31 = { 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/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12764
+ 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/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12481
12765
  if (vErrors === null) {
12482
- vErrors = [err31];
12766
+ vErrors = [err32];
12483
12767
  } else {
12484
- vErrors.push(err31);
12768
+ vErrors.push(err32);
12485
12769
  }
12486
12770
  errors++;
12487
12771
  }
12488
12772
  if (!(data13 === "confirm_prompt" || data13 === "publish_prompt")) {
12489
- 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" };
12773
+ const err33 = { 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" };
12490
12774
  if (vErrors === null) {
12491
- vErrors = [err32];
12775
+ vErrors = [err33];
12492
12776
  } else {
12493
- vErrors.push(err32);
12777
+ vErrors.push(err33);
12494
12778
  }
12495
12779
  errors++;
12496
12780
  }
@@ -12506,11 +12790,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
12506
12790
  }
12507
12791
  }
12508
12792
  } else {
12509
- const err33 = { instancePath: instancePath + "/events/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
12793
+ const err34 = { instancePath: instancePath + "/events/" + i0, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/items/type", keyword: "type", params: { type: "object" }, message: "must be object" };
12510
12794
  if (vErrors === null) {
12511
- vErrors = [err33];
12795
+ vErrors = [err34];
12512
12796
  } else {
12513
- vErrors.push(err33);
12797
+ vErrors.push(err34);
12514
12798
  }
12515
12799
  errors++;
12516
12800
  }
@@ -12523,11 +12807,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
12523
12807
  }
12524
12808
  }
12525
12809
  } else {
12526
- const err34 = { instancePath: instancePath + "/events", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/type", keyword: "type", params: { type: "array" }, message: "must be array" };
12810
+ const err35 = { instancePath: instancePath + "/events", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/events/type", keyword: "type", params: { type: "array" }, message: "must be array" };
12527
12811
  if (vErrors === null) {
12528
- vErrors = [err34];
12812
+ vErrors = [err35];
12529
12813
  } else {
12530
- vErrors.push(err34);
12814
+ vErrors.push(err35);
12531
12815
  }
12532
12816
  errors++;
12533
12817
  }
@@ -12540,11 +12824,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
12540
12824
  if (data.hasMore !== void 0) {
12541
12825
  const _errs37 = errors;
12542
12826
  if (typeof data.hasMore !== "boolean") {
12543
- const err35 = { instancePath: instancePath + "/hasMore", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/hasMore/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
12827
+ const err36 = { instancePath: instancePath + "/hasMore", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/properties/hasMore/type", keyword: "type", params: { type: "boolean" }, message: "must be boolean" };
12544
12828
  if (vErrors === null) {
12545
- vErrors = [err35];
12829
+ vErrors = [err36];
12546
12830
  } else {
12547
- vErrors.push(err35);
12831
+ vErrors.push(err36);
12548
12832
  }
12549
12833
  errors++;
12550
12834
  }
@@ -12557,11 +12841,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
12557
12841
  }
12558
12842
  }
12559
12843
  } else {
12560
- const err36 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
12844
+ const err37 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/1/type", keyword: "type", params: { type: "object" }, message: "must be object" };
12561
12845
  if (vErrors === null) {
12562
- vErrors = [err36];
12846
+ vErrors = [err37];
12563
12847
  } else {
12564
- vErrors.push(err36);
12848
+ vErrors.push(err37);
12565
12849
  }
12566
12850
  errors++;
12567
12851
  }
@@ -12578,11 +12862,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
12578
12862
  if (data && typeof data == "object" && !Array.isArray(data)) {
12579
12863
  let missing3;
12580
12864
  if (data.protocolVersion === void 0 && (missing3 = "protocolVersion") || data.status === void 0 && (missing3 = "status") || data.reason === void 0 && (missing3 = "reason")) {
12581
- const err37 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" };
12865
+ const err38 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/required", keyword: "required", params: { missingProperty: missing3 }, message: "must have required property '" + missing3 + "'" };
12582
12866
  if (vErrors === null) {
12583
- vErrors = [err37];
12867
+ vErrors = [err38];
12584
12868
  } else {
12585
- vErrors.push(err37);
12869
+ vErrors.push(err38);
12586
12870
  }
12587
12871
  errors++;
12588
12872
  } else {
@@ -12590,31 +12874,31 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
12590
12874
  let data15 = data.protocolVersion;
12591
12875
  const _errs42 = errors;
12592
12876
  if (!(typeof data15 == "number" && (!(data15 % 1) && !isNaN(data15)) && isFinite(data15))) {
12593
- const err38 = { instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/protocolVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
12877
+ const err39 = { instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/protocolVersion/type", keyword: "type", params: { type: "integer" }, message: "must be integer" };
12594
12878
  if (vErrors === null) {
12595
- vErrors = [err38];
12879
+ vErrors = [err39];
12596
12880
  } else {
12597
- vErrors.push(err38);
12881
+ vErrors.push(err39);
12598
12882
  }
12599
12883
  errors++;
12600
12884
  }
12601
12885
  if (errors === _errs42) {
12602
12886
  if (typeof data15 == "number" && isFinite(data15)) {
12603
12887
  if (data15 > 2 || isNaN(data15)) {
12604
- const err39 = { instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/protocolVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 2 }, message: "must be <= 2" };
12888
+ const err40 = { instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/protocolVersion/maximum", keyword: "maximum", params: { comparison: "<=", limit: 2 }, message: "must be <= 2" };
12605
12889
  if (vErrors === null) {
12606
- vErrors = [err39];
12890
+ vErrors = [err40];
12607
12891
  } else {
12608
- vErrors.push(err39);
12892
+ vErrors.push(err40);
12609
12893
  }
12610
12894
  errors++;
12611
12895
  } else {
12612
12896
  if (data15 < 1 || isNaN(data15)) {
12613
- const err40 = { instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/protocolVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
12897
+ const err41 = { instancePath: instancePath + "/protocolVersion", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/protocolVersion/minimum", keyword: "minimum", params: { comparison: ">=", limit: 1 }, message: "must be >= 1" };
12614
12898
  if (vErrors === null) {
12615
- vErrors = [err40];
12899
+ vErrors = [err41];
12616
12900
  } else {
12617
- vErrors.push(err40);
12901
+ vErrors.push(err41);
12618
12902
  }
12619
12903
  errors++;
12620
12904
  }
@@ -12630,20 +12914,20 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
12630
12914
  let data16 = data.status;
12631
12915
  const _errs44 = errors;
12632
12916
  if (typeof data16 !== "string") {
12633
- const err41 = { instancePath: instancePath + "/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/status/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12917
+ const err42 = { instancePath: instancePath + "/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/status/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12634
12918
  if (vErrors === null) {
12635
- vErrors = [err41];
12919
+ vErrors = [err42];
12636
12920
  } else {
12637
- vErrors.push(err41);
12921
+ vErrors.push(err42);
12638
12922
  }
12639
12923
  errors++;
12640
12924
  }
12641
12925
  if ("unavailable" !== data16) {
12642
- const err42 = { instancePath: instancePath + "/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/status/const", keyword: "const", params: { allowedValue: "unavailable" }, message: "must be equal to constant" };
12926
+ const err43 = { instancePath: instancePath + "/status", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/status/const", keyword: "const", params: { allowedValue: "unavailable" }, message: "must be equal to constant" };
12643
12927
  if (vErrors === null) {
12644
- vErrors = [err42];
12928
+ vErrors = [err43];
12645
12929
  } else {
12646
- vErrors.push(err42);
12930
+ vErrors.push(err43);
12647
12931
  }
12648
12932
  errors++;
12649
12933
  }
@@ -12656,20 +12940,20 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
12656
12940
  let data17 = data.reason;
12657
12941
  const _errs46 = errors;
12658
12942
  if (typeof data17 !== "string") {
12659
- const err43 = { instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/reason/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12943
+ const err44 = { instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/reason/type", keyword: "type", params: { type: "string" }, message: "must be string" };
12660
12944
  if (vErrors === null) {
12661
- vErrors = [err43];
12945
+ vErrors = [err44];
12662
12946
  } else {
12663
- vErrors.push(err43);
12947
+ vErrors.push(err44);
12664
12948
  }
12665
12949
  errors++;
12666
12950
  }
12667
12951
  if ("organization_unbound" !== data17) {
12668
- const err44 = { instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/reason/const", keyword: "const", params: { allowedValue: "organization_unbound" }, message: "must be equal to constant" };
12952
+ const err45 = { instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/properties/reason/const", keyword: "const", params: { allowedValue: "organization_unbound" }, message: "must be equal to constant" };
12669
12953
  if (vErrors === null) {
12670
- vErrors = [err44];
12954
+ vErrors = [err45];
12671
12955
  } else {
12672
- vErrors.push(err44);
12956
+ vErrors.push(err45);
12673
12957
  }
12674
12958
  errors++;
12675
12959
  }
@@ -12681,11 +12965,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
12681
12965
  }
12682
12966
  }
12683
12967
  } else {
12684
- const err45 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
12968
+ const err46 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf/2/type", keyword: "type", params: { type: "object" }, message: "must be object" };
12685
12969
  if (vErrors === null) {
12686
- vErrors = [err45];
12970
+ vErrors = [err46];
12687
12971
  } else {
12688
- vErrors.push(err45);
12972
+ vErrors.push(err46);
12689
12973
  }
12690
12974
  errors++;
12691
12975
  }
@@ -12698,11 +12982,11 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
12698
12982
  }
12699
12983
  }
12700
12984
  if (!valid1) {
12701
- const err46 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
12985
+ const err47 = { instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/FeedbackLeaseResponse/anyOf", keyword: "anyOf", params: {}, message: "must match a schema in anyOf" };
12702
12986
  if (vErrors === null) {
12703
- vErrors = [err46];
12987
+ vErrors = [err47];
12704
12988
  } else {
12705
- vErrors.push(err46);
12989
+ vErrors.push(err47);
12706
12990
  }
12707
12991
  errors++;
12708
12992
  validate49.errors = vErrors;
@@ -13434,8 +13718,8 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
13434
13718
  return errors === 0;
13435
13719
  }
13436
13720
  validate51.evaluated = { "dynamicProps": true, "dynamicItems": false };
13437
- var pattern15 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
13438
- var pattern16 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
13721
+ var pattern48 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
13722
+ var pattern49 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
13439
13723
  function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
13440
13724
  ;
13441
13725
  let vErrors = null;
@@ -13517,7 +13801,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
13517
13801
  const _errs9 = errors;
13518
13802
  if (errors === _errs9) {
13519
13803
  if (typeof data3 === "string") {
13520
- if (!pattern15.test(data3)) {
13804
+ if (!pattern48.test(data3)) {
13521
13805
  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}$"' }];
13522
13806
  return false;
13523
13807
  }
@@ -13536,7 +13820,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
13536
13820
  const _errs11 = errors;
13537
13821
  if (errors === _errs11) {
13538
13822
  if (typeof data4 === "string") {
13539
- if (!pattern16.test(data4)) {
13823
+ if (!pattern49.test(data4)) {
13540
13824
  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}$"' }];
13541
13825
  return false;
13542
13826
  }
@@ -13944,7 +14228,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
13944
14228
  const _errs3 = errors;
13945
14229
  if (errors === _errs3) {
13946
14230
  if (typeof data0 === "string") {
13947
- if (!pattern15.test(data0)) {
14231
+ if (!pattern48.test(data0)) {
13948
14232
  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}$"' }];
13949
14233
  return false;
13950
14234
  }
@@ -15516,7 +15800,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
15516
15800
  }
15517
15801
  validate55.evaluated = { "dynamicProps": true, "dynamicItems": false };
15518
15802
  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": {} };
15519
- var pattern18 = new RegExp("^[A-Za-z0-9_-]+$", "u");
15803
+ var pattern51 = new RegExp("^[A-Za-z0-9_-]+$", "u");
15520
15804
  function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
15521
15805
  ;
15522
15806
  let vErrors = null;
@@ -15877,7 +16161,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
15877
16161
  }
15878
16162
  errors++;
15879
16163
  } else {
15880
- if (!pattern18.test(data11)) {
16164
+ if (!pattern51.test(data11)) {
15881
16165
  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_-]+$"' };
15882
16166
  if (vErrors === null) {
15883
16167
  vErrors = [err22];
@@ -16402,7 +16686,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
16402
16686
  }
16403
16687
  errors++;
16404
16688
  } else {
16405
- if (!pattern18.test(data26)) {
16689
+ if (!pattern51.test(data26)) {
16406
16690
  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_-]+$"' };
16407
16691
  if (vErrors === null) {
16408
16692
  vErrors = [err58];
@@ -16645,10 +16929,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
16645
16929
  }
16646
16930
  validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
16647
16931
  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"] };
16648
- var pattern20 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
16649
- var pattern22 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
16650
- var pattern23 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
16651
- var pattern24 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
16932
+ var pattern53 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
16933
+ var pattern55 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
16934
+ var pattern56 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
16935
+ var pattern57 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
16652
16936
  function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
16653
16937
  ;
16654
16938
  let vErrors = null;
@@ -16714,7 +16998,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16714
16998
  const _errs8 = errors;
16715
16999
  if (errors === _errs8) {
16716
17000
  if (typeof data2 === "string") {
16717
- if (!pattern20.test(data2)) {
17001
+ if (!pattern53.test(data2)) {
16718
17002
  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}$"' }];
16719
17003
  return false;
16720
17004
  }
@@ -16733,7 +17017,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16733
17017
  const _errs10 = errors;
16734
17018
  if (errors === _errs10) {
16735
17019
  if (typeof data3 === "string") {
16736
- if (!pattern20.test(data3)) {
17020
+ if (!pattern53.test(data3)) {
16737
17021
  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}$"' }];
16738
17022
  return false;
16739
17023
  }
@@ -16752,7 +17036,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16752
17036
  const _errs12 = errors;
16753
17037
  if (errors === _errs12) {
16754
17038
  if (typeof data4 === "string") {
16755
- if (!pattern22.test(data4)) {
17039
+ if (!pattern55.test(data4)) {
16756
17040
  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}$"' }];
16757
17041
  return false;
16758
17042
  }
@@ -16824,7 +17108,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16824
17108
  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" }];
16825
17109
  return false;
16826
17110
  } else {
16827
- if (!pattern23.test(data8)) {
17111
+ if (!pattern56.test(data8)) {
16828
17112
  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(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$"' }];
16829
17113
  return false;
16830
17114
  }
@@ -16864,7 +17148,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16864
17148
  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" }];
16865
17149
  return false;
16866
17150
  } else {
16867
- if (!pattern24.test(data10)) {
17151
+ if (!pattern57.test(data10)) {
16868
17152
  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._+-]*$"' }];
16869
17153
  return false;
16870
17154
  }
@@ -16910,7 +17194,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16910
17194
  return errors === 0;
16911
17195
  }
16912
17196
  validate57.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
16913
- 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" }, "title": { "type": "string" } }, "required": ["decisionId"], "additionalProperties": {} } }, "bypassed": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "bypassId": { "type": "string" }, "shortId": { "type": "string" } }, "required": ["decisionId"], "additionalProperties": {} } }, "evaluationCoverage": { "type": "object", "properties": { "candidateCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "submittedCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "evaluatedCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "enum": ["completed", "partial", "unavailable", "not_run", "unknown"] }, "semanticBatchCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "completedSemanticBatchCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "selectionOmissions": { "type": "array", "items": { "type": "object", "properties": { "source": { "type": "string", "enum": ["exact_scope", "location_scope", "organization_scope", "candidate_scan", "candidate_limit", "bypass_scan"] }, "reason": { "type": "string", "enum": ["scan_limit", "candidate_limit", "bucket_limit"] }, "omittedCountLowerBound": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["source", "reason", "omittedCountLowerBound"], "additionalProperties": false } }, "evidenceOmissions": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string" }, "reason": { "type": "string", "enum": ["prompt_budget", "batch_limit", "evaluation_failed", "evaluation_deadline"] } }, "required": ["decisionId", "reason"], "additionalProperties": false } } }, "required": ["candidateCount", "submittedCount", "evaluatedCount", "status", "semanticBatchCount", "completedSemanticBatchCount", "selectionOmissions", "evidenceOmissions"], "additionalProperties": false }, "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": {} };
17197
+ 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", "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "title": { "type": "string" } }, "required": ["decisionId"], "additionalProperties": {} } }, "bypassed": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string", "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "bypassId": { "type": "string" }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" } }, "required": ["decisionId"], "additionalProperties": {} } }, "evaluationCoverage": { "type": "object", "properties": { "candidateCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "submittedCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "evaluatedCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "status": { "type": "string", "enum": ["completed", "partial", "unavailable", "not_run", "unknown"] }, "semanticBatchCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "completedSemanticBatchCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "selectionOmissions": { "type": "array", "items": { "type": "object", "properties": { "source": { "type": "string", "enum": ["exact_scope", "location_scope", "organization_scope", "candidate_scan", "candidate_limit", "bypass_scan"] }, "reason": { "type": "string", "enum": ["scan_limit", "candidate_limit", "bucket_limit"] }, "omittedCountLowerBound": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["source", "reason", "omittedCountLowerBound"], "additionalProperties": false } }, "evidenceOmissions": { "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string", "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "reason": { "type": "string", "enum": ["prompt_budget", "batch_limit", "evaluation_failed", "evaluation_deadline"] } }, "required": ["decisionId", "reason"], "additionalProperties": false } } }, "required": ["candidateCount", "submittedCount", "evaluatedCount", "status", "semanticBatchCount", "completedSemanticBatchCount", "selectionOmissions", "evidenceOmissions"], "additionalProperties": false }, "decisionDisclosures": { "minItems": 1, "maxItems": 16, "type": "array", "items": { "type": "object", "properties": { "decisionId": { "type": "string", "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "participation": { "type": "string", "enum": ["candidate", "reconcile_bypass"] } }, "required": ["decisionId", "shortId", "participation"], "additionalProperties": false } } }, "required": ["protocolVersion", "verdict", "reasonCode", "message", "conflicts", "bypassed"], "additionalProperties": {} };
16914
17198
  function validate58(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
16915
17199
  ;
16916
17200
  let vErrors = null;
@@ -16951,7 +17235,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
16951
17235
  const _errs5 = errors;
16952
17236
  if (errors === _errs5) {
16953
17237
  if (typeof data1 === "string") {
16954
- if (!pattern20.test(data1)) {
17238
+ if (!pattern53.test(data1)) {
16955
17239
  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}$"' }];
16956
17240
  return false;
16957
17241
  }
@@ -17021,10 +17305,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17021
17305
  return false;
17022
17306
  } else {
17023
17307
  if (data6.decisionId !== void 0) {
17308
+ let data7 = data6.decisionId;
17024
17309
  const _errs18 = errors;
17025
- if (typeof data6.decisionId !== "string") {
17026
- 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" }];
17027
- return false;
17310
+ if (errors === _errs18) {
17311
+ if (typeof data7 === "string") {
17312
+ if (!pattern4.test(data7)) {
17313
+ 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/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
17314
+ return false;
17315
+ }
17316
+ } else {
17317
+ 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" }];
17318
+ return false;
17319
+ }
17028
17320
  }
17029
17321
  var valid3 = _errs18 === errors;
17030
17322
  } else {
@@ -17032,10 +17324,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17032
17324
  }
17033
17325
  if (valid3) {
17034
17326
  if (data6.shortId !== void 0) {
17327
+ let data8 = data6.shortId;
17035
17328
  const _errs20 = errors;
17036
- if (typeof data6.shortId !== "string") {
17037
- 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" }];
17038
- return false;
17329
+ if (errors === _errs20) {
17330
+ if (typeof data8 === "string") {
17331
+ if (!pattern5.test(data8)) {
17332
+ 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/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
17333
+ return false;
17334
+ }
17335
+ } else {
17336
+ 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" }];
17337
+ return false;
17338
+ }
17039
17339
  }
17040
17340
  var valid3 = _errs20 === errors;
17041
17341
  } else {
@@ -17093,10 +17393,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17093
17393
  return false;
17094
17394
  } else {
17095
17395
  if (data11.decisionId !== void 0) {
17396
+ let data12 = data11.decisionId;
17096
17397
  const _errs29 = errors;
17097
- if (typeof data11.decisionId !== "string") {
17098
- 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" }];
17099
- return false;
17398
+ if (errors === _errs29) {
17399
+ if (typeof data12 === "string") {
17400
+ if (!pattern4.test(data12)) {
17401
+ 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/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
17402
+ return false;
17403
+ }
17404
+ } else {
17405
+ 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" }];
17406
+ return false;
17407
+ }
17100
17408
  }
17101
17409
  var valid5 = _errs29 === errors;
17102
17410
  } else {
@@ -17115,10 +17423,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17115
17423
  }
17116
17424
  if (valid5) {
17117
17425
  if (data11.shortId !== void 0) {
17426
+ let data14 = data11.shortId;
17118
17427
  const _errs33 = errors;
17119
- if (typeof data11.shortId !== "string") {
17120
- 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" }];
17121
- return false;
17428
+ if (errors === _errs33) {
17429
+ if (typeof data14 === "string") {
17430
+ if (!pattern5.test(data14)) {
17431
+ 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/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
17432
+ return false;
17433
+ }
17434
+ } else {
17435
+ 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" }];
17436
+ return false;
17437
+ }
17122
17438
  }
17123
17439
  var valid5 = _errs33 === errors;
17124
17440
  } else {
@@ -17440,10 +17756,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17440
17756
  }
17441
17757
  if (_errs65 === errors) {
17442
17758
  if (data28.decisionId !== void 0) {
17759
+ let data29 = data28.decisionId;
17443
17760
  const _errs66 = errors;
17444
- if (typeof data28.decisionId !== "string") {
17445
- validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/evidenceOmissions/" + i3 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/evidenceOmissions/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17446
- return false;
17761
+ if (errors === _errs66) {
17762
+ if (typeof data29 === "string") {
17763
+ if (!pattern4.test(data29)) {
17764
+ validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/evidenceOmissions/" + i3 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/evidenceOmissions/items/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
17765
+ return false;
17766
+ }
17767
+ } else {
17768
+ validate58.errors = [{ instancePath: instancePath + "/evaluationCoverage/evidenceOmissions/" + i3 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/evaluationCoverage/properties/evidenceOmissions/items/properties/decisionId/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
17769
+ return false;
17770
+ }
17447
17771
  }
17448
17772
  var valid10 = _errs66 === errors;
17449
17773
  } else {
@@ -17541,10 +17865,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17541
17865
  }
17542
17866
  if (_errs74 === errors) {
17543
17867
  if (data32.decisionId !== void 0) {
17868
+ let data33 = data32.decisionId;
17544
17869
  const _errs75 = errors;
17545
- if (typeof data32.decisionId !== "string") {
17546
- validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i4 + "/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" }];
17547
- return false;
17870
+ if (errors === _errs75) {
17871
+ if (typeof data33 === "string") {
17872
+ if (!pattern4.test(data33)) {
17873
+ validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i4 + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
17874
+ return false;
17875
+ }
17876
+ } else {
17877
+ validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i4 + "/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" }];
17878
+ return false;
17879
+ }
17548
17880
  }
17549
17881
  var valid12 = _errs75 === errors;
17550
17882
  } else {
@@ -17552,10 +17884,18 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17552
17884
  }
17553
17885
  if (valid12) {
17554
17886
  if (data32.shortId !== void 0) {
17887
+ let data34 = data32.shortId;
17555
17888
  const _errs77 = errors;
17556
- if (typeof data32.shortId !== "string") {
17557
- validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i4 + "/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" }];
17558
- return false;
17889
+ if (errors === _errs77) {
17890
+ if (typeof data34 === "string") {
17891
+ if (!pattern5.test(data34)) {
17892
+ validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i4 + "/shortId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/PreflightResponseV3/properties/decisionDisclosures/items/properties/shortId/pattern", keyword: "pattern", params: { pattern: "^[0-9a-f]{8}$" }, message: 'must match pattern "^[0-9a-f]{8}$"' }];
17893
+ return false;
17894
+ }
17895
+ } else {
17896
+ validate58.errors = [{ instancePath: instancePath + "/decisionDisclosures/" + i4 + "/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" }];
17897
+ return false;
17898
+ }
17559
17899
  }
17560
17900
  var valid12 = _errs77 === errors;
17561
17901
  } else {
@@ -17620,8 +17960,8 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17620
17960
  return errors === 0;
17621
17961
  }
17622
17962
  validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
17623
- var pattern26 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
17624
- var pattern27 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
17963
+ var pattern66 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
17964
+ var pattern67 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
17625
17965
  function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17626
17966
  ;
17627
17967
  let vErrors = null;
@@ -17646,7 +17986,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
17646
17986
  const _errs3 = errors;
17647
17987
  if (errors === _errs3) {
17648
17988
  if (typeof data0 === "string") {
17649
- if (!pattern26.test(data0)) {
17989
+ if (!pattern66.test(data0)) {
17650
17990
  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}$"' }];
17651
17991
  return false;
17652
17992
  }
@@ -17665,7 +18005,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
17665
18005
  const _errs5 = errors;
17666
18006
  if (errors === _errs5) {
17667
18007
  if (typeof data1 === "string") {
17668
- if (!pattern27.test(data1)) {
18008
+ if (!pattern67.test(data1)) {
17669
18009
  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}$"' }];
17670
18010
  return false;
17671
18011
  }
@@ -18207,7 +18547,7 @@ function validate61(data, { instancePath = "", parentData, parentDataProperty, r
18207
18547
  return errors === 0;
18208
18548
  }
18209
18549
  validate61.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18210
- 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 };
18550
+ var schema115 = { "type": "object", "properties": { "ok": { "type": "boolean", "const": true }, "checkId": { "type": "string" }, "decisionId": { "type": "string", "pattern": "^dec_[0-9a-f]{8}$", "description": "Canonical public Decision ID; internal Convex IDs are accepted only as legacy inputs." }, "outcome": { "type": "string", "enum": ["followed", "superseded"] }, "recordedAt": { "type": "number" }, "duplicate": { "type": "boolean" } }, "required": ["ok", "checkId", "decisionId", "outcome", "recordedAt", "duplicate"], "additionalProperties": false };
18211
18551
  function validate62(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18212
18552
  ;
18213
18553
  let vErrors = null;
@@ -18264,10 +18604,18 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
18264
18604
  }
18265
18605
  if (valid1) {
18266
18606
  if (data.decisionId !== void 0) {
18607
+ let data2 = data.decisionId;
18267
18608
  const _errs7 = errors;
18268
- if (typeof data.decisionId !== "string") {
18269
- 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" }];
18270
- return false;
18609
+ if (errors === _errs7) {
18610
+ if (typeof data2 === "string") {
18611
+ if (!pattern4.test(data2)) {
18612
+ validate62.errors = [{ instancePath: instancePath + "/decisionId", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/ReconcileResolutionResponse/properties/decisionId/pattern", keyword: "pattern", params: { pattern: "^dec_[0-9a-f]{8}$" }, message: 'must match pattern "^dec_[0-9a-f]{8}$"' }];
18613
+ return false;
18614
+ }
18615
+ } else {
18616
+ 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" }];
18617
+ return false;
18618
+ }
18271
18619
  }
18272
18620
  var valid1 = _errs7 === errors;
18273
18621
  } else {
@@ -18328,7 +18676,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
18328
18676
  return errors === 0;
18329
18677
  }
18330
18678
  validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18331
- var pattern28 = 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");
18679
+ var pattern69 = 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");
18332
18680
  function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18333
18681
  ;
18334
18682
  let vErrors = null;
@@ -18362,7 +18710,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
18362
18710
  const _errs3 = errors;
18363
18711
  if (errors === _errs3) {
18364
18712
  if (typeof data0 === "string") {
18365
- if (!pattern28.test(data0)) {
18713
+ if (!pattern69.test(data0)) {
18366
18714
  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}$"' }];
18367
18715
  return false;
18368
18716
  }
@@ -18427,7 +18775,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
18427
18775
  return errors === 0;
18428
18776
  }
18429
18777
  validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18430
- var pattern30 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
18778
+ var pattern71 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
18431
18779
  function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18432
18780
  ;
18433
18781
  let vErrors = null;
@@ -18461,7 +18809,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
18461
18809
  const _errs3 = errors;
18462
18810
  if (errors === _errs3) {
18463
18811
  if (typeof data0 === "string") {
18464
- if (!pattern5.test(data0)) {
18812
+ if (!pattern35.test(data0)) {
18465
18813
  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}$"' }];
18466
18814
  return false;
18467
18815
  }
@@ -18513,7 +18861,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
18513
18861
  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" }];
18514
18862
  return false;
18515
18863
  } else {
18516
- if (!pattern30.test(data2)) {
18864
+ if (!pattern71.test(data2)) {
18517
18865
  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_-]+$"' }];
18518
18866
  return false;
18519
18867
  }
@@ -18541,9 +18889,9 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
18541
18889
  return errors === 0;
18542
18890
  }
18543
18891
  validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18544
- var pattern32 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
18545
- var pattern33 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
18546
- var pattern34 = new RegExp("^[\\x21-\\x7e]+$", "u");
18892
+ var pattern73 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
18893
+ var pattern74 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
18894
+ var pattern75 = new RegExp("^[\\x21-\\x7e]+$", "u");
18547
18895
  function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18548
18896
  ;
18549
18897
  let vErrors = null;
@@ -18615,7 +18963,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
18615
18963
  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" }];
18616
18964
  return false;
18617
18965
  } else {
18618
- if (!pattern30.test(data2)) {
18966
+ if (!pattern71.test(data2)) {
18619
18967
  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_-]+$"' }];
18620
18968
  return false;
18621
18969
  }
@@ -18644,7 +18992,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
18644
18992
  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" }];
18645
18993
  return false;
18646
18994
  } else {
18647
- if (!pattern32.test(data3)) {
18995
+ if (!pattern73.test(data3)) {
18648
18996
  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])?$"' }];
18649
18997
  return false;
18650
18998
  }
@@ -18673,7 +19021,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
18673
19021
  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" }];
18674
19022
  return false;
18675
19023
  } else {
18676
- if (!pattern33.test(data4)) {
19024
+ if (!pattern74.test(data4)) {
18677
19025
  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]+$"' }];
18678
19026
  return false;
18679
19027
  }
@@ -18713,7 +19061,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
18713
19061
  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" }];
18714
19062
  return false;
18715
19063
  } else {
18716
- if (!pattern34.test(data6)) {
19064
+ if (!pattern75.test(data6)) {
18717
19065
  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]+$"' }];
18718
19066
  return false;
18719
19067
  }
@@ -18999,7 +19347,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
18999
19347
  }
19000
19348
  errors++;
19001
19349
  } else {
19002
- if (!pattern30.test(data11)) {
19350
+ if (!pattern71.test(data11)) {
19003
19351
  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_-]+$"' };
19004
19352
  if (vErrors === null) {
19005
19353
  vErrors = [err12];
@@ -19111,7 +19459,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
19111
19459
  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" }];
19112
19460
  return false;
19113
19461
  } else {
19114
- if (!pattern30.test(data0)) {
19462
+ if (!pattern71.test(data0)) {
19115
19463
  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_-]+$"' }];
19116
19464
  return false;
19117
19465
  }
@@ -19140,7 +19488,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
19140
19488
  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" }];
19141
19489
  return false;
19142
19490
  } else {
19143
- if (!pattern32.test(data1)) {
19491
+ if (!pattern73.test(data1)) {
19144
19492
  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])?$"' }];
19145
19493
  return false;
19146
19494
  }
@@ -19169,7 +19517,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
19169
19517
  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" }];
19170
19518
  return false;
19171
19519
  } else {
19172
- if (!pattern33.test(data2)) {
19520
+ if (!pattern74.test(data2)) {
19173
19521
  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]+$"' }];
19174
19522
  return false;
19175
19523
  }
@@ -19209,7 +19557,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
19209
19557
  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" }];
19210
19558
  return false;
19211
19559
  } else {
19212
- if (!pattern34.test(data4)) {
19560
+ if (!pattern75.test(data4)) {
19213
19561
  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]+$"' }];
19214
19562
  return false;
19215
19563
  }
@@ -19490,7 +19838,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
19490
19838
  const _errs3 = errors;
19491
19839
  if (errors === _errs3) {
19492
19840
  if (typeof data0 === "string") {
19493
- if (!pattern5.test(data0)) {
19841
+ if (!pattern35.test(data0)) {
19494
19842
  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}$"' }];
19495
19843
  return false;
19496
19844
  }
@@ -19517,7 +19865,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
19517
19865
  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" }];
19518
19866
  return false;
19519
19867
  } else {
19520
- if (!pattern32.test(data1)) {
19868
+ if (!pattern73.test(data1)) {
19521
19869
  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])?$"' }];
19522
19870
  return false;
19523
19871
  }
@@ -19570,7 +19918,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
19570
19918
  return errors === 0;
19571
19919
  }
19572
19920
  validate68.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19573
- var pattern46 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
19921
+ var pattern87 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
19574
19922
  function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19575
19923
  ;
19576
19924
  let vErrors = null;
@@ -19631,7 +19979,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19631
19979
  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" }];
19632
19980
  return false;
19633
19981
  } else {
19634
- if (!pattern30.test(data1)) {
19982
+ if (!pattern71.test(data1)) {
19635
19983
  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_-]+$"' }];
19636
19984
  return false;
19637
19985
  }
@@ -19660,7 +20008,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19660
20008
  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" }];
19661
20009
  return false;
19662
20010
  } else {
19663
- if (!pattern32.test(data2)) {
20011
+ if (!pattern73.test(data2)) {
19664
20012
  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])?$"' }];
19665
20013
  return false;
19666
20014
  }
@@ -19689,7 +20037,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19689
20037
  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" }];
19690
20038
  return false;
19691
20039
  } else {
19692
- if (!pattern33.test(data3)) {
20040
+ if (!pattern74.test(data3)) {
19693
20041
  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]+$"' }];
19694
20042
  return false;
19695
20043
  }
@@ -19729,7 +20077,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19729
20077
  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" }];
19730
20078
  return false;
19731
20079
  } else {
19732
- if (!pattern34.test(data5)) {
20080
+ if (!pattern75.test(data5)) {
19733
20081
  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]+$"' }];
19734
20082
  return false;
19735
20083
  }
@@ -19991,7 +20339,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19991
20339
  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" }];
19992
20340
  return false;
19993
20341
  } else {
19994
- if (!pattern46.test(data10)) {
20342
+ if (!pattern87.test(data10)) {
19995
20343
  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]+)*$"' }];
19996
20344
  return false;
19997
20345
  }
@@ -20051,7 +20399,7 @@ function validate70(data, { instancePath = "", parentData, parentDataProperty, r
20051
20399
  const _errs3 = errors;
20052
20400
  if (errors === _errs3) {
20053
20401
  if (typeof data0 === "string") {
20054
- if (!pattern5.test(data0)) {
20402
+ if (!pattern35.test(data0)) {
20055
20403
  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}$"' }];
20056
20404
  return false;
20057
20405
  }
@@ -20113,7 +20461,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
20113
20461
  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" }];
20114
20462
  return false;
20115
20463
  } else {
20116
- if (!pattern30.test(data0)) {
20464
+ if (!pattern71.test(data0)) {
20117
20465
  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_-]+$"' }];
20118
20466
  return false;
20119
20467
  }
@@ -20377,7 +20725,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
20377
20725
  }
20378
20726
  validate73.evaluated = { "dynamicProps": true, "dynamicItems": false };
20379
20727
  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"] };
20380
- var pattern49 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
20728
+ var pattern90 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
20381
20729
  function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20382
20730
  ;
20383
20731
  let vErrors = null;
@@ -20446,7 +20794,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
20446
20794
  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" }];
20447
20795
  return false;
20448
20796
  } else {
20449
- if (!pattern49.test(data2)) {
20797
+ if (!pattern90.test(data2)) {
20450
20798
  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_-]+$"' }];
20451
20799
  return false;
20452
20800
  }