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

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.
@@ -11494,8 +11494,9 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
11494
11494
  }
11495
11495
  validate43.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
11496
11496
  var isDemoStatusResponse = validate44;
11497
- var schema79 = { "type": "object", "properties": { "scenarioVersion": { "type": "number", "const": 1 }, "fictional": { "type": "boolean", "const": true }, "evaluation": { "type": "string", "const": "live" }, "runId": { "type": "string", "pattern": "^[a-zA-Z0-9]{1,64}$" }, "revision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "stage": { "type": "string", "enum": ["ready", "checking", "blocked", "approved", "completed", "skipped", "expired"] }, "authorName": { "type": "string", "maxLength": 200 }, "email": { "type": "string", "enum": ["not_queued", "queued", "accepted", "failed", "suppressed"] }, "verdict": { "type": "string", "enum": ["block", "pass", "pending"] }, "reasonCode": { "type": "string", "maxLength": 100 }, "choice": { "type": "string", "enum": ["adhere", "supersede"] }, "reason": { "type": "string", "maxLength": 500 }, "approvedDigest": { "type": "string", "pattern": "^[a-f0-9]{64}$" } }, "required": ["scenarioVersion", "fictional", "evaluation", "runId", "revision", "stage", "authorName", "email"], "additionalProperties": false };
11497
+ 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 };
11498
11498
  var func34 = Object.prototype.hasOwnProperty;
11499
+ 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");
11499
11500
  function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
11500
11501
  ;
11501
11502
  let vErrors = null;
@@ -11511,7 +11512,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
11511
11512
  if (errors === _errs0) {
11512
11513
  if (data && typeof data == "object" && !Array.isArray(data)) {
11513
11514
  let missing0;
11514
- if (data.scenarioVersion === void 0 && (missing0 = "scenarioVersion") || data.fictional === void 0 && (missing0 = "fictional") || data.evaluation === void 0 && (missing0 = "evaluation") || data.runId === void 0 && (missing0 = "runId") || data.revision === void 0 && (missing0 = "revision") || data.stage === void 0 && (missing0 = "stage") || data.authorName === void 0 && (missing0 = "authorName") || data.email === void 0 && (missing0 = "email")) {
11515
+ if (data.scenarioVersion === void 0 && (missing0 = "scenarioVersion") || data.fictional === void 0 && (missing0 = "fictional") || data.evaluation === void 0 && (missing0 = "evaluation") || data.runId === void 0 && (missing0 = "runId") || data.revision === void 0 && (missing0 = "revision") || data.stage === void 0 && (missing0 = "stage") || data.authorName === void 0 && (missing0 = "authorName") || data.story === void 0 && (missing0 = "story") || data.email === void 0 && (missing0 = "email")) {
11515
11516
  validate44.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
11516
11517
  return false;
11517
11518
  } else {
@@ -11651,110 +11652,202 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
11651
11652
  var valid1 = true;
11652
11653
  }
11653
11654
  if (valid1) {
11654
- if (data.email !== void 0) {
11655
- let data7 = data.email;
11655
+ if (data.story !== void 0) {
11656
+ let data7 = data.story;
11656
11657
  const _errs17 = errors;
11657
- if (typeof data7 !== "string") {
11658
- validate44.errors = [{ instancePath: instancePath + "/email", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/email/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11659
- return false;
11660
- }
11661
- if (!(data7 === "not_queued" || data7 === "queued" || data7 === "accepted" || data7 === "failed" || data7 === "suppressed")) {
11662
- validate44.errors = [{ instancePath: instancePath + "/email", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/email/enum", keyword: "enum", params: { allowedValues: schema79.properties.email.enum }, message: "must be equal to one of the allowed values" }];
11663
- return false;
11658
+ if (errors === _errs17) {
11659
+ if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
11660
+ let missing1;
11661
+ if (data7.orgName === void 0 && (missing1 = "orgName") || data7.recipient === void 0 && (missing1 = "recipient") || data7.decisionDate === void 0 && (missing1 = "decisionDate")) {
11662
+ validate44.errors = [{ instancePath: instancePath + "/story", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/required", keyword: "required", params: { missingProperty: missing1 }, message: "must have required property '" + missing1 + "'" }];
11663
+ return false;
11664
+ } else {
11665
+ const _errs19 = errors;
11666
+ for (const key1 in data7) {
11667
+ if (!(key1 === "orgName" || key1 === "recipient" || key1 === "decisionDate")) {
11668
+ validate44.errors = [{ instancePath: instancePath + "/story", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/additionalProperties", keyword: "additionalProperties", params: { additionalProperty: key1 }, message: "must NOT have additional properties" }];
11669
+ return false;
11670
+ break;
11671
+ }
11672
+ }
11673
+ if (_errs19 === errors) {
11674
+ if (data7.orgName !== void 0) {
11675
+ let data8 = data7.orgName;
11676
+ const _errs20 = errors;
11677
+ if (errors === _errs20) {
11678
+ if (typeof data8 === "string") {
11679
+ if (func1(data8) > 200) {
11680
+ validate44.errors = [{ instancePath: instancePath + "/story/orgName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/properties/orgName/maxLength", keyword: "maxLength", params: { limit: 200 }, message: "must NOT have more than 200 characters" }];
11681
+ return false;
11682
+ }
11683
+ } else {
11684
+ validate44.errors = [{ instancePath: instancePath + "/story/orgName", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/properties/orgName/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11685
+ return false;
11686
+ }
11687
+ }
11688
+ var valid2 = _errs20 === errors;
11689
+ } else {
11690
+ var valid2 = true;
11691
+ }
11692
+ if (valid2) {
11693
+ if (data7.recipient !== void 0) {
11694
+ let data9 = data7.recipient;
11695
+ const _errs22 = errors;
11696
+ if (errors === _errs22) {
11697
+ if (errors === _errs22) {
11698
+ if (typeof data9 === "string") {
11699
+ if (!pattern12.test(data9)) {
11700
+ 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,}$"` }];
11701
+ return false;
11702
+ }
11703
+ } else {
11704
+ validate44.errors = [{ instancePath: instancePath + "/story/recipient", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/properties/recipient/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11705
+ return false;
11706
+ }
11707
+ }
11708
+ }
11709
+ var valid2 = _errs22 === errors;
11710
+ } else {
11711
+ var valid2 = true;
11712
+ }
11713
+ if (valid2) {
11714
+ if (data7.decisionDate !== void 0) {
11715
+ let data10 = data7.decisionDate;
11716
+ const _errs24 = errors;
11717
+ if (errors === _errs24) {
11718
+ if (typeof data10 === "string") {
11719
+ if (func1(data10) > 100) {
11720
+ validate44.errors = [{ instancePath: instancePath + "/story/decisionDate", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/properties/decisionDate/maxLength", keyword: "maxLength", params: { limit: 100 }, message: "must NOT have more than 100 characters" }];
11721
+ return false;
11722
+ }
11723
+ } else {
11724
+ validate44.errors = [{ instancePath: instancePath + "/story/decisionDate", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/properties/decisionDate/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11725
+ return false;
11726
+ }
11727
+ }
11728
+ var valid2 = _errs24 === errors;
11729
+ } else {
11730
+ var valid2 = true;
11731
+ }
11732
+ }
11733
+ }
11734
+ }
11735
+ }
11736
+ } else {
11737
+ validate44.errors = [{ instancePath: instancePath + "/story", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/type", keyword: "type", params: { type: "object" }, message: "must be object" }];
11738
+ return false;
11739
+ }
11664
11740
  }
11665
11741
  var valid1 = _errs17 === errors;
11666
11742
  } else {
11667
11743
  var valid1 = true;
11668
11744
  }
11669
11745
  if (valid1) {
11670
- if (data.verdict !== void 0) {
11671
- let data8 = data.verdict;
11672
- const _errs19 = errors;
11673
- if (typeof data8 !== "string") {
11674
- validate44.errors = [{ instancePath: instancePath + "/verdict", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/verdict/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11746
+ if (data.email !== void 0) {
11747
+ let data11 = data.email;
11748
+ const _errs26 = errors;
11749
+ if (typeof data11 !== "string") {
11750
+ validate44.errors = [{ instancePath: instancePath + "/email", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/email/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11675
11751
  return false;
11676
11752
  }
11677
- if (!(data8 === "block" || data8 === "pass" || data8 === "pending")) {
11678
- validate44.errors = [{ instancePath: instancePath + "/verdict", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/verdict/enum", keyword: "enum", params: { allowedValues: schema79.properties.verdict.enum }, message: "must be equal to one of the allowed values" }];
11753
+ if (!(data11 === "not_queued" || data11 === "queued" || data11 === "accepted" || data11 === "failed" || data11 === "suppressed")) {
11754
+ validate44.errors = [{ instancePath: instancePath + "/email", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/email/enum", keyword: "enum", params: { allowedValues: schema79.properties.email.enum }, message: "must be equal to one of the allowed values" }];
11679
11755
  return false;
11680
11756
  }
11681
- var valid1 = _errs19 === errors;
11757
+ var valid1 = _errs26 === errors;
11682
11758
  } else {
11683
11759
  var valid1 = true;
11684
11760
  }
11685
11761
  if (valid1) {
11686
- if (data.reasonCode !== void 0) {
11687
- let data9 = data.reasonCode;
11688
- const _errs21 = errors;
11689
- if (errors === _errs21) {
11690
- if (typeof data9 === "string") {
11691
- if (func1(data9) > 100) {
11692
- validate44.errors = [{ instancePath: instancePath + "/reasonCode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reasonCode/maxLength", keyword: "maxLength", params: { limit: 100 }, message: "must NOT have more than 100 characters" }];
11693
- return false;
11694
- }
11695
- } else {
11696
- validate44.errors = [{ instancePath: instancePath + "/reasonCode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reasonCode/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11697
- return false;
11698
- }
11762
+ if (data.verdict !== void 0) {
11763
+ let data12 = data.verdict;
11764
+ const _errs28 = errors;
11765
+ if (typeof data12 !== "string") {
11766
+ validate44.errors = [{ instancePath: instancePath + "/verdict", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/verdict/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11767
+ return false;
11699
11768
  }
11700
- var valid1 = _errs21 === errors;
11769
+ if (!(data12 === "block" || data12 === "pass" || data12 === "pending")) {
11770
+ validate44.errors = [{ instancePath: instancePath + "/verdict", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/verdict/enum", keyword: "enum", params: { allowedValues: schema79.properties.verdict.enum }, message: "must be equal to one of the allowed values" }];
11771
+ return false;
11772
+ }
11773
+ var valid1 = _errs28 === errors;
11701
11774
  } else {
11702
11775
  var valid1 = true;
11703
11776
  }
11704
11777
  if (valid1) {
11705
- if (data.choice !== void 0) {
11706
- let data10 = data.choice;
11707
- const _errs23 = errors;
11708
- if (typeof data10 !== "string") {
11709
- validate44.errors = [{ instancePath: instancePath + "/choice", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/choice/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11710
- return false;
11711
- }
11712
- if (!(data10 === "adhere" || data10 === "supersede")) {
11713
- validate44.errors = [{ instancePath: instancePath + "/choice", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/choice/enum", keyword: "enum", params: { allowedValues: schema79.properties.choice.enum }, message: "must be equal to one of the allowed values" }];
11714
- return false;
11778
+ if (data.reasonCode !== void 0) {
11779
+ let data13 = data.reasonCode;
11780
+ const _errs30 = errors;
11781
+ if (errors === _errs30) {
11782
+ if (typeof data13 === "string") {
11783
+ if (func1(data13) > 100) {
11784
+ validate44.errors = [{ instancePath: instancePath + "/reasonCode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reasonCode/maxLength", keyword: "maxLength", params: { limit: 100 }, message: "must NOT have more than 100 characters" }];
11785
+ return false;
11786
+ }
11787
+ } else {
11788
+ validate44.errors = [{ instancePath: instancePath + "/reasonCode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reasonCode/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11789
+ return false;
11790
+ }
11715
11791
  }
11716
- var valid1 = _errs23 === errors;
11792
+ var valid1 = _errs30 === errors;
11717
11793
  } else {
11718
11794
  var valid1 = true;
11719
11795
  }
11720
11796
  if (valid1) {
11721
- if (data.reason !== void 0) {
11722
- let data11 = data.reason;
11723
- const _errs25 = errors;
11724
- if (errors === _errs25) {
11725
- if (typeof data11 === "string") {
11726
- if (func1(data11) > 500) {
11727
- validate44.errors = [{ instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reason/maxLength", keyword: "maxLength", params: { limit: 500 }, message: "must NOT have more than 500 characters" }];
11728
- return false;
11729
- }
11730
- } else {
11731
- validate44.errors = [{ instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reason/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11732
- return false;
11733
- }
11797
+ if (data.choice !== void 0) {
11798
+ let data14 = data.choice;
11799
+ const _errs32 = errors;
11800
+ if (typeof data14 !== "string") {
11801
+ validate44.errors = [{ instancePath: instancePath + "/choice", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/choice/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11802
+ return false;
11803
+ }
11804
+ if (!(data14 === "adhere" || data14 === "supersede")) {
11805
+ validate44.errors = [{ instancePath: instancePath + "/choice", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/choice/enum", keyword: "enum", params: { allowedValues: schema79.properties.choice.enum }, message: "must be equal to one of the allowed values" }];
11806
+ return false;
11734
11807
  }
11735
- var valid1 = _errs25 === errors;
11808
+ var valid1 = _errs32 === errors;
11736
11809
  } else {
11737
11810
  var valid1 = true;
11738
11811
  }
11739
11812
  if (valid1) {
11740
- if (data.approvedDigest !== void 0) {
11741
- let data12 = data.approvedDigest;
11742
- const _errs27 = errors;
11743
- if (errors === _errs27) {
11744
- if (typeof data12 === "string") {
11745
- if (!pattern5.test(data12)) {
11746
- 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}$"' }];
11813
+ if (data.reason !== void 0) {
11814
+ let data15 = data.reason;
11815
+ const _errs34 = errors;
11816
+ if (errors === _errs34) {
11817
+ if (typeof data15 === "string") {
11818
+ if (func1(data15) > 500) {
11819
+ validate44.errors = [{ instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reason/maxLength", keyword: "maxLength", params: { limit: 500 }, message: "must NOT have more than 500 characters" }];
11747
11820
  return false;
11748
11821
  }
11749
11822
  } else {
11750
- validate44.errors = [{ instancePath: instancePath + "/approvedDigest", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/approvedDigest/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11823
+ validate44.errors = [{ instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reason/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11751
11824
  return false;
11752
11825
  }
11753
11826
  }
11754
- var valid1 = _errs27 === errors;
11827
+ var valid1 = _errs34 === errors;
11755
11828
  } else {
11756
11829
  var valid1 = true;
11757
11830
  }
11831
+ if (valid1) {
11832
+ if (data.approvedDigest !== void 0) {
11833
+ let data16 = data.approvedDigest;
11834
+ const _errs36 = errors;
11835
+ if (errors === _errs36) {
11836
+ if (typeof data16 === "string") {
11837
+ if (!pattern5.test(data16)) {
11838
+ 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}$"' }];
11839
+ return false;
11840
+ }
11841
+ } else {
11842
+ validate44.errors = [{ instancePath: instancePath + "/approvedDigest", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/approvedDigest/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
11843
+ return false;
11844
+ }
11845
+ }
11846
+ var valid1 = _errs36 === errors;
11847
+ } else {
11848
+ var valid1 = true;
11849
+ }
11850
+ }
11758
11851
  }
11759
11852
  }
11760
11853
  }
@@ -12645,7 +12738,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
12645
12738
  }
12646
12739
  validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12647
12740
  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"] };
12648
- var pattern13 = new RegExp("^[0-9a-f]{8}$", "u");
12741
+ var pattern14 = new RegExp("^[0-9a-f]{8}$", "u");
12649
12742
  function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
12650
12743
  ;
12651
12744
  let vErrors = null;
@@ -12984,7 +13077,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
12984
13077
  const _errs27 = errors;
12985
13078
  if (errors === _errs27) {
12986
13079
  if (typeof data9 === "string") {
12987
- if (!pattern13.test(data9)) {
13080
+ if (!pattern14.test(data9)) {
12988
13081
  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}$"' };
12989
13082
  if (vErrors === null) {
12990
13083
  vErrors = [err24];
@@ -14040,8 +14133,8 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
14040
14133
  return errors === 0;
14041
14134
  }
14042
14135
  validate51.evaluated = { "dynamicProps": true, "dynamicItems": false };
14043
- var pattern14 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
14044
- var pattern15 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
14136
+ var pattern15 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
14137
+ var pattern16 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
14045
14138
  function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
14046
14139
  ;
14047
14140
  let vErrors = null;
@@ -14123,7 +14216,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
14123
14216
  const _errs9 = errors;
14124
14217
  if (errors === _errs9) {
14125
14218
  if (typeof data3 === "string") {
14126
- if (!pattern14.test(data3)) {
14219
+ if (!pattern15.test(data3)) {
14127
14220
  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}$"' }];
14128
14221
  return false;
14129
14222
  }
@@ -14142,7 +14235,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
14142
14235
  const _errs11 = errors;
14143
14236
  if (errors === _errs11) {
14144
14237
  if (typeof data4 === "string") {
14145
- if (!pattern15.test(data4)) {
14238
+ if (!pattern16.test(data4)) {
14146
14239
  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}$"' }];
14147
14240
  return false;
14148
14241
  }
@@ -14550,7 +14643,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
14550
14643
  const _errs3 = errors;
14551
14644
  if (errors === _errs3) {
14552
14645
  if (typeof data0 === "string") {
14553
- if (!pattern14.test(data0)) {
14646
+ if (!pattern15.test(data0)) {
14554
14647
  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}$"' }];
14555
14648
  return false;
14556
14649
  }
@@ -16122,7 +16215,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
16122
16215
  }
16123
16216
  validate55.evaluated = { "dynamicProps": true, "dynamicItems": false };
16124
16217
  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": {} };
16125
- var pattern17 = new RegExp("^[A-Za-z0-9_-]+$", "u");
16218
+ var pattern18 = new RegExp("^[A-Za-z0-9_-]+$", "u");
16126
16219
  function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
16127
16220
  ;
16128
16221
  let vErrors = null;
@@ -16483,7 +16576,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
16483
16576
  }
16484
16577
  errors++;
16485
16578
  } else {
16486
- if (!pattern17.test(data11)) {
16579
+ if (!pattern18.test(data11)) {
16487
16580
  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_-]+$"' };
16488
16581
  if (vErrors === null) {
16489
16582
  vErrors = [err22];
@@ -17008,7 +17101,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
17008
17101
  }
17009
17102
  errors++;
17010
17103
  } else {
17011
- if (!pattern17.test(data26)) {
17104
+ if (!pattern18.test(data26)) {
17012
17105
  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_-]+$"' };
17013
17106
  if (vErrors === null) {
17014
17107
  vErrors = [err58];
@@ -17251,10 +17344,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
17251
17344
  }
17252
17345
  validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
17253
17346
  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"] };
17254
- var pattern19 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
17255
- var pattern21 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
17256
- var pattern22 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
17257
- var pattern23 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
17347
+ var pattern20 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
17348
+ var pattern22 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
17349
+ var pattern23 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
17350
+ var pattern24 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
17258
17351
  function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17259
17352
  ;
17260
17353
  let vErrors = null;
@@ -17320,7 +17413,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
17320
17413
  const _errs8 = errors;
17321
17414
  if (errors === _errs8) {
17322
17415
  if (typeof data2 === "string") {
17323
- if (!pattern19.test(data2)) {
17416
+ if (!pattern20.test(data2)) {
17324
17417
  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}$"' }];
17325
17418
  return false;
17326
17419
  }
@@ -17339,7 +17432,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
17339
17432
  const _errs10 = errors;
17340
17433
  if (errors === _errs10) {
17341
17434
  if (typeof data3 === "string") {
17342
- if (!pattern19.test(data3)) {
17435
+ if (!pattern20.test(data3)) {
17343
17436
  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}$"' }];
17344
17437
  return false;
17345
17438
  }
@@ -17358,7 +17451,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
17358
17451
  const _errs12 = errors;
17359
17452
  if (errors === _errs12) {
17360
17453
  if (typeof data4 === "string") {
17361
- if (!pattern21.test(data4)) {
17454
+ if (!pattern22.test(data4)) {
17362
17455
  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}$"' }];
17363
17456
  return false;
17364
17457
  }
@@ -17430,7 +17523,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
17430
17523
  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" }];
17431
17524
  return false;
17432
17525
  } else {
17433
- if (!pattern22.test(data8)) {
17526
+ if (!pattern23.test(data8)) {
17434
17527
  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(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$"' }];
17435
17528
  return false;
17436
17529
  }
@@ -17470,7 +17563,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
17470
17563
  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" }];
17471
17564
  return false;
17472
17565
  } else {
17473
- if (!pattern23.test(data10)) {
17566
+ if (!pattern24.test(data10)) {
17474
17567
  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._+-]*$"' }];
17475
17568
  return false;
17476
17569
  }
@@ -17557,7 +17650,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17557
17650
  const _errs5 = errors;
17558
17651
  if (errors === _errs5) {
17559
17652
  if (typeof data1 === "string") {
17560
- if (!pattern19.test(data1)) {
17653
+ if (!pattern20.test(data1)) {
17561
17654
  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}$"' }];
17562
17655
  return false;
17563
17656
  }
@@ -17854,8 +17947,8 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17854
17947
  return errors === 0;
17855
17948
  }
17856
17949
  validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
17857
- var pattern25 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
17858
- var pattern26 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
17950
+ var pattern26 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
17951
+ var pattern27 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
17859
17952
  function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17860
17953
  ;
17861
17954
  let vErrors = null;
@@ -17880,7 +17973,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
17880
17973
  const _errs3 = errors;
17881
17974
  if (errors === _errs3) {
17882
17975
  if (typeof data0 === "string") {
17883
- if (!pattern25.test(data0)) {
17976
+ if (!pattern26.test(data0)) {
17884
17977
  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}$"' }];
17885
17978
  return false;
17886
17979
  }
@@ -17899,7 +17992,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
17899
17992
  const _errs5 = errors;
17900
17993
  if (errors === _errs5) {
17901
17994
  if (typeof data1 === "string") {
17902
- if (!pattern26.test(data1)) {
17995
+ if (!pattern27.test(data1)) {
17903
17996
  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}$"' }];
17904
17997
  return false;
17905
17998
  }
@@ -18562,7 +18655,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
18562
18655
  return errors === 0;
18563
18656
  }
18564
18657
  validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18565
- var pattern27 = new RegExp("^(?![A-Za-z0-9-]*--)[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?\\/[A-Za-z0-9._-]{1,100}$", "u");
18658
+ 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");
18566
18659
  function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18567
18660
  ;
18568
18661
  let vErrors = null;
@@ -18596,7 +18689,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
18596
18689
  const _errs3 = errors;
18597
18690
  if (errors === _errs3) {
18598
18691
  if (typeof data0 === "string") {
18599
- if (!pattern27.test(data0)) {
18692
+ if (!pattern28.test(data0)) {
18600
18693
  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}$"' }];
18601
18694
  return false;
18602
18695
  }
@@ -18661,7 +18754,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
18661
18754
  return errors === 0;
18662
18755
  }
18663
18756
  validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18664
- var pattern29 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
18757
+ var pattern30 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
18665
18758
  function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18666
18759
  ;
18667
18760
  let vErrors = null;
@@ -18747,7 +18840,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
18747
18840
  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" }];
18748
18841
  return false;
18749
18842
  } else {
18750
- if (!pattern29.test(data2)) {
18843
+ if (!pattern30.test(data2)) {
18751
18844
  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_-]+$"' }];
18752
18845
  return false;
18753
18846
  }
@@ -18775,9 +18868,9 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
18775
18868
  return errors === 0;
18776
18869
  }
18777
18870
  validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18778
- var pattern31 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
18779
- var pattern32 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
18780
- var pattern33 = new RegExp("^[\\x21-\\x7e]+$", "u");
18871
+ var pattern32 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
18872
+ var pattern33 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
18873
+ var pattern34 = new RegExp("^[\\x21-\\x7e]+$", "u");
18781
18874
  function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18782
18875
  ;
18783
18876
  let vErrors = null;
@@ -18849,7 +18942,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
18849
18942
  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" }];
18850
18943
  return false;
18851
18944
  } else {
18852
- if (!pattern29.test(data2)) {
18945
+ if (!pattern30.test(data2)) {
18853
18946
  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_-]+$"' }];
18854
18947
  return false;
18855
18948
  }
@@ -18878,7 +18971,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
18878
18971
  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" }];
18879
18972
  return false;
18880
18973
  } else {
18881
- if (!pattern31.test(data3)) {
18974
+ if (!pattern32.test(data3)) {
18882
18975
  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])?$"' }];
18883
18976
  return false;
18884
18977
  }
@@ -18907,7 +19000,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
18907
19000
  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" }];
18908
19001
  return false;
18909
19002
  } else {
18910
- if (!pattern32.test(data4)) {
19003
+ if (!pattern33.test(data4)) {
18911
19004
  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]+$"' }];
18912
19005
  return false;
18913
19006
  }
@@ -18947,7 +19040,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
18947
19040
  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" }];
18948
19041
  return false;
18949
19042
  } else {
18950
- if (!pattern33.test(data6)) {
19043
+ if (!pattern34.test(data6)) {
18951
19044
  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]+$"' }];
18952
19045
  return false;
18953
19046
  }
@@ -19233,7 +19326,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
19233
19326
  }
19234
19327
  errors++;
19235
19328
  } else {
19236
- if (!pattern29.test(data11)) {
19329
+ if (!pattern30.test(data11)) {
19237
19330
  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_-]+$"' };
19238
19331
  if (vErrors === null) {
19239
19332
  vErrors = [err12];
@@ -19345,7 +19438,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
19345
19438
  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" }];
19346
19439
  return false;
19347
19440
  } else {
19348
- if (!pattern29.test(data0)) {
19441
+ if (!pattern30.test(data0)) {
19349
19442
  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_-]+$"' }];
19350
19443
  return false;
19351
19444
  }
@@ -19374,7 +19467,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
19374
19467
  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" }];
19375
19468
  return false;
19376
19469
  } else {
19377
- if (!pattern31.test(data1)) {
19470
+ if (!pattern32.test(data1)) {
19378
19471
  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])?$"' }];
19379
19472
  return false;
19380
19473
  }
@@ -19403,7 +19496,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
19403
19496
  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" }];
19404
19497
  return false;
19405
19498
  } else {
19406
- if (!pattern32.test(data2)) {
19499
+ if (!pattern33.test(data2)) {
19407
19500
  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]+$"' }];
19408
19501
  return false;
19409
19502
  }
@@ -19443,7 +19536,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
19443
19536
  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" }];
19444
19537
  return false;
19445
19538
  } else {
19446
- if (!pattern33.test(data4)) {
19539
+ if (!pattern34.test(data4)) {
19447
19540
  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]+$"' }];
19448
19541
  return false;
19449
19542
  }
@@ -19751,7 +19844,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
19751
19844
  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" }];
19752
19845
  return false;
19753
19846
  } else {
19754
- if (!pattern31.test(data1)) {
19847
+ if (!pattern32.test(data1)) {
19755
19848
  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])?$"' }];
19756
19849
  return false;
19757
19850
  }
@@ -19804,7 +19897,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
19804
19897
  return errors === 0;
19805
19898
  }
19806
19899
  validate68.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19807
- var pattern45 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
19900
+ var pattern46 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
19808
19901
  function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19809
19902
  ;
19810
19903
  let vErrors = null;
@@ -19865,7 +19958,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19865
19958
  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" }];
19866
19959
  return false;
19867
19960
  } else {
19868
- if (!pattern29.test(data1)) {
19961
+ if (!pattern30.test(data1)) {
19869
19962
  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_-]+$"' }];
19870
19963
  return false;
19871
19964
  }
@@ -19894,7 +19987,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19894
19987
  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" }];
19895
19988
  return false;
19896
19989
  } else {
19897
- if (!pattern31.test(data2)) {
19990
+ if (!pattern32.test(data2)) {
19898
19991
  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])?$"' }];
19899
19992
  return false;
19900
19993
  }
@@ -19923,7 +20016,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19923
20016
  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" }];
19924
20017
  return false;
19925
20018
  } else {
19926
- if (!pattern32.test(data3)) {
20019
+ if (!pattern33.test(data3)) {
19927
20020
  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]+$"' }];
19928
20021
  return false;
19929
20022
  }
@@ -19963,7 +20056,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19963
20056
  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" }];
19964
20057
  return false;
19965
20058
  } else {
19966
- if (!pattern33.test(data5)) {
20059
+ if (!pattern34.test(data5)) {
19967
20060
  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]+$"' }];
19968
20061
  return false;
19969
20062
  }
@@ -20225,7 +20318,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
20225
20318
  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" }];
20226
20319
  return false;
20227
20320
  } else {
20228
- if (!pattern45.test(data10)) {
20321
+ if (!pattern46.test(data10)) {
20229
20322
  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]+)*$"' }];
20230
20323
  return false;
20231
20324
  }
@@ -20347,7 +20440,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
20347
20440
  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" }];
20348
20441
  return false;
20349
20442
  } else {
20350
- if (!pattern29.test(data0)) {
20443
+ if (!pattern30.test(data0)) {
20351
20444
  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_-]+$"' }];
20352
20445
  return false;
20353
20446
  }
@@ -20611,7 +20704,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
20611
20704
  }
20612
20705
  validate73.evaluated = { "dynamicProps": true, "dynamicItems": false };
20613
20706
  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"] };
20614
- var pattern48 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
20707
+ var pattern49 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
20615
20708
  function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20616
20709
  ;
20617
20710
  let vErrors = null;
@@ -20680,7 +20773,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
20680
20773
  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" }];
20681
20774
  return false;
20682
20775
  } else {
20683
- if (!pattern48.test(data2)) {
20776
+ if (!pattern49.test(data2)) {
20684
20777
  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_-]+$"' }];
20685
20778
  return false;
20686
20779
  }