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

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.
@@ -19555,8 +19555,9 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
19555
19555
  return errors === 0;
19556
19556
  }
19557
19557
  validate43.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19558
- var schema79 = { "type": "object", "properties": { "scenarioVersion": { "type": "number", "const": 1 }, "fictional": { "type": "boolean", "const": true }, "evaluation": { "type": "string", "const": "live" }, "runId": { "type": "string", "pattern": "^[a-zA-Z0-9]{1,64}$" }, "revision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "stage": { "type": "string", "enum": ["ready", "checking", "blocked", "approved", "completed", "skipped", "expired"] }, "authorName": { "type": "string", "maxLength": 200 }, "email": { "type": "string", "enum": ["not_queued", "queued", "accepted", "failed", "suppressed"] }, "verdict": { "type": "string", "enum": ["block", "pass", "pending"] }, "reasonCode": { "type": "string", "maxLength": 100 }, "choice": { "type": "string", "enum": ["adhere", "supersede"] }, "reason": { "type": "string", "maxLength": 500 }, "approvedDigest": { "type": "string", "pattern": "^[a-f0-9]{64}$" } }, "required": ["scenarioVersion", "fictional", "evaluation", "runId", "revision", "stage", "authorName", "email"], "additionalProperties": false };
19558
+ var schema79 = { "type": "object", "properties": { "scenarioVersion": { "type": "number", "const": 1 }, "fictional": { "type": "boolean", "const": true }, "evaluation": { "type": "string", "const": "live" }, "runId": { "type": "string", "pattern": "^[a-zA-Z0-9]{1,64}$" }, "revision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "stage": { "type": "string", "enum": ["ready", "checking", "blocked", "approved", "completed", "skipped", "expired"] }, "authorName": { "type": "string", "maxLength": 200 }, "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 };
19559
19559
  var func34 = Object.prototype.hasOwnProperty;
19560
+ 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");
19560
19561
  function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19561
19562
  ;
19562
19563
  let vErrors = null;
@@ -19572,7 +19573,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
19572
19573
  if (errors === _errs0) {
19573
19574
  if (data && typeof data == "object" && !Array.isArray(data)) {
19574
19575
  let missing0;
19575
- if (data.scenarioVersion === void 0 && (missing0 = "scenarioVersion") || data.fictional === void 0 && (missing0 = "fictional") || data.evaluation === void 0 && (missing0 = "evaluation") || data.runId === void 0 && (missing0 = "runId") || data.revision === void 0 && (missing0 = "revision") || data.stage === void 0 && (missing0 = "stage") || data.authorName === void 0 && (missing0 = "authorName") || data.email === void 0 && (missing0 = "email")) {
19576
+ 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")) {
19576
19577
  validate44.errors = [{ instancePath, schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/required", keyword: "required", params: { missingProperty: missing0 }, message: "must have required property '" + missing0 + "'" }];
19577
19578
  return false;
19578
19579
  } else {
@@ -19712,110 +19713,202 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
19712
19713
  var valid1 = true;
19713
19714
  }
19714
19715
  if (valid1) {
19715
- if (data.email !== void 0) {
19716
- let data7 = data.email;
19716
+ if (data.story !== void 0) {
19717
+ let data7 = data.story;
19717
19718
  const _errs17 = errors;
19718
- if (typeof data7 !== "string") {
19719
- validate44.errors = [{ instancePath: instancePath + "/email", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/email/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19720
- return false;
19721
- }
19722
- if (!(data7 === "not_queued" || data7 === "queued" || data7 === "accepted" || data7 === "failed" || data7 === "suppressed")) {
19723
- validate44.errors = [{ instancePath: instancePath + "/email", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/email/enum", keyword: "enum", params: { allowedValues: schema79.properties.email.enum }, message: "must be equal to one of the allowed values" }];
19724
- return false;
19719
+ if (errors === _errs17) {
19720
+ if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
19721
+ let missing1;
19722
+ if (data7.orgName === void 0 && (missing1 = "orgName") || data7.recipient === void 0 && (missing1 = "recipient") || data7.decisionDate === void 0 && (missing1 = "decisionDate")) {
19723
+ 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 + "'" }];
19724
+ return false;
19725
+ } else {
19726
+ const _errs19 = errors;
19727
+ for (const key1 in data7) {
19728
+ if (!(key1 === "orgName" || key1 === "recipient" || key1 === "decisionDate")) {
19729
+ 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" }];
19730
+ return false;
19731
+ break;
19732
+ }
19733
+ }
19734
+ if (_errs19 === errors) {
19735
+ if (data7.orgName !== void 0) {
19736
+ let data8 = data7.orgName;
19737
+ const _errs20 = errors;
19738
+ if (errors === _errs20) {
19739
+ if (typeof data8 === "string") {
19740
+ if (func1(data8) > 200) {
19741
+ 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" }];
19742
+ return false;
19743
+ }
19744
+ } else {
19745
+ 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" }];
19746
+ return false;
19747
+ }
19748
+ }
19749
+ var valid2 = _errs20 === errors;
19750
+ } else {
19751
+ var valid2 = true;
19752
+ }
19753
+ if (valid2) {
19754
+ if (data7.recipient !== void 0) {
19755
+ let data9 = data7.recipient;
19756
+ const _errs22 = errors;
19757
+ if (errors === _errs22) {
19758
+ if (errors === _errs22) {
19759
+ if (typeof data9 === "string") {
19760
+ if (!pattern12.test(data9)) {
19761
+ 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,}$"` }];
19762
+ return false;
19763
+ }
19764
+ } else {
19765
+ 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" }];
19766
+ return false;
19767
+ }
19768
+ }
19769
+ }
19770
+ var valid2 = _errs22 === errors;
19771
+ } else {
19772
+ var valid2 = true;
19773
+ }
19774
+ if (valid2) {
19775
+ if (data7.decisionDate !== void 0) {
19776
+ let data10 = data7.decisionDate;
19777
+ const _errs24 = errors;
19778
+ if (errors === _errs24) {
19779
+ if (typeof data10 === "string") {
19780
+ if (func1(data10) > 100) {
19781
+ 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" }];
19782
+ return false;
19783
+ }
19784
+ } else {
19785
+ 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" }];
19786
+ return false;
19787
+ }
19788
+ }
19789
+ var valid2 = _errs24 === errors;
19790
+ } else {
19791
+ var valid2 = true;
19792
+ }
19793
+ }
19794
+ }
19795
+ }
19796
+ }
19797
+ } else {
19798
+ 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" }];
19799
+ return false;
19800
+ }
19725
19801
  }
19726
19802
  var valid1 = _errs17 === errors;
19727
19803
  } else {
19728
19804
  var valid1 = true;
19729
19805
  }
19730
19806
  if (valid1) {
19731
- if (data.verdict !== void 0) {
19732
- let data8 = data.verdict;
19733
- const _errs19 = errors;
19734
- if (typeof data8 !== "string") {
19735
- validate44.errors = [{ instancePath: instancePath + "/verdict", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/verdict/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19807
+ if (data.email !== void 0) {
19808
+ let data11 = data.email;
19809
+ const _errs26 = errors;
19810
+ if (typeof data11 !== "string") {
19811
+ 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" }];
19736
19812
  return false;
19737
19813
  }
19738
- if (!(data8 === "block" || data8 === "pass" || data8 === "pending")) {
19739
- validate44.errors = [{ instancePath: instancePath + "/verdict", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/verdict/enum", keyword: "enum", params: { allowedValues: schema79.properties.verdict.enum }, message: "must be equal to one of the allowed values" }];
19814
+ if (!(data11 === "not_queued" || data11 === "queued" || data11 === "accepted" || data11 === "failed" || data11 === "suppressed")) {
19815
+ 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" }];
19740
19816
  return false;
19741
19817
  }
19742
- var valid1 = _errs19 === errors;
19818
+ var valid1 = _errs26 === errors;
19743
19819
  } else {
19744
19820
  var valid1 = true;
19745
19821
  }
19746
19822
  if (valid1) {
19747
- if (data.reasonCode !== void 0) {
19748
- let data9 = data.reasonCode;
19749
- const _errs21 = errors;
19750
- if (errors === _errs21) {
19751
- if (typeof data9 === "string") {
19752
- if (func1(data9) > 100) {
19753
- validate44.errors = [{ instancePath: instancePath + "/reasonCode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reasonCode/maxLength", keyword: "maxLength", params: { limit: 100 }, message: "must NOT have more than 100 characters" }];
19754
- return false;
19755
- }
19756
- } else {
19757
- validate44.errors = [{ instancePath: instancePath + "/reasonCode", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reasonCode/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19758
- return false;
19759
- }
19823
+ if (data.verdict !== void 0) {
19824
+ let data12 = data.verdict;
19825
+ const _errs28 = errors;
19826
+ if (typeof data12 !== "string") {
19827
+ 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" }];
19828
+ return false;
19760
19829
  }
19761
- var valid1 = _errs21 === errors;
19830
+ if (!(data12 === "block" || data12 === "pass" || data12 === "pending")) {
19831
+ 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" }];
19832
+ return false;
19833
+ }
19834
+ var valid1 = _errs28 === errors;
19762
19835
  } else {
19763
19836
  var valid1 = true;
19764
19837
  }
19765
19838
  if (valid1) {
19766
- if (data.choice !== void 0) {
19767
- let data10 = data.choice;
19768
- const _errs23 = errors;
19769
- if (typeof data10 !== "string") {
19770
- validate44.errors = [{ instancePath: instancePath + "/choice", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/choice/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19771
- return false;
19772
- }
19773
- if (!(data10 === "adhere" || data10 === "supersede")) {
19774
- validate44.errors = [{ instancePath: instancePath + "/choice", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/choice/enum", keyword: "enum", params: { allowedValues: schema79.properties.choice.enum }, message: "must be equal to one of the allowed values" }];
19775
- return false;
19839
+ if (data.reasonCode !== void 0) {
19840
+ let data13 = data.reasonCode;
19841
+ const _errs30 = errors;
19842
+ if (errors === _errs30) {
19843
+ if (typeof data13 === "string") {
19844
+ if (func1(data13) > 100) {
19845
+ 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" }];
19846
+ return false;
19847
+ }
19848
+ } else {
19849
+ 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" }];
19850
+ return false;
19851
+ }
19776
19852
  }
19777
- var valid1 = _errs23 === errors;
19853
+ var valid1 = _errs30 === errors;
19778
19854
  } else {
19779
19855
  var valid1 = true;
19780
19856
  }
19781
19857
  if (valid1) {
19782
- if (data.reason !== void 0) {
19783
- let data11 = data.reason;
19784
- const _errs25 = errors;
19785
- if (errors === _errs25) {
19786
- if (typeof data11 === "string") {
19787
- if (func1(data11) > 500) {
19788
- validate44.errors = [{ instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reason/maxLength", keyword: "maxLength", params: { limit: 500 }, message: "must NOT have more than 500 characters" }];
19789
- return false;
19790
- }
19791
- } else {
19792
- validate44.errors = [{ instancePath: instancePath + "/reason", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/reason/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19793
- return false;
19794
- }
19858
+ if (data.choice !== void 0) {
19859
+ let data14 = data.choice;
19860
+ const _errs32 = errors;
19861
+ if (typeof data14 !== "string") {
19862
+ 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" }];
19863
+ return false;
19864
+ }
19865
+ if (!(data14 === "adhere" || data14 === "supersede")) {
19866
+ 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" }];
19867
+ return false;
19795
19868
  }
19796
- var valid1 = _errs25 === errors;
19869
+ var valid1 = _errs32 === errors;
19797
19870
  } else {
19798
19871
  var valid1 = true;
19799
19872
  }
19800
19873
  if (valid1) {
19801
- if (data.approvedDigest !== void 0) {
19802
- let data12 = data.approvedDigest;
19803
- const _errs27 = errors;
19804
- if (errors === _errs27) {
19805
- if (typeof data12 === "string") {
19806
- if (!pattern5.test(data12)) {
19807
- validate44.errors = [{ instancePath: instancePath + "/approvedDigest", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/approvedDigest/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
19874
+ if (data.reason !== void 0) {
19875
+ let data15 = data.reason;
19876
+ const _errs34 = errors;
19877
+ if (errors === _errs34) {
19878
+ if (typeof data15 === "string") {
19879
+ if (func1(data15) > 500) {
19880
+ 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" }];
19808
19881
  return false;
19809
19882
  }
19810
19883
  } else {
19811
- validate44.errors = [{ instancePath: instancePath + "/approvedDigest", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/approvedDigest/type", keyword: "type", params: { type: "string" }, message: "must be string" }];
19884
+ 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" }];
19812
19885
  return false;
19813
19886
  }
19814
19887
  }
19815
- var valid1 = _errs27 === errors;
19888
+ var valid1 = _errs34 === errors;
19816
19889
  } else {
19817
19890
  var valid1 = true;
19818
19891
  }
19892
+ if (valid1) {
19893
+ if (data.approvedDigest !== void 0) {
19894
+ let data16 = data.approvedDigest;
19895
+ const _errs36 = errors;
19896
+ if (errors === _errs36) {
19897
+ if (typeof data16 === "string") {
19898
+ if (!pattern5.test(data16)) {
19899
+ 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}$"' }];
19900
+ return false;
19901
+ }
19902
+ } else {
19903
+ 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" }];
19904
+ return false;
19905
+ }
19906
+ }
19907
+ var valid1 = _errs36 === errors;
19908
+ } else {
19909
+ var valid1 = true;
19910
+ }
19911
+ }
19819
19912
  }
19820
19913
  }
19821
19914
  }
@@ -20706,7 +20799,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
20706
20799
  }
20707
20800
  validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
20708
20801
  var schema89 = { "anyOf": [{ "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "empty" }, "hasMore": { "type": "boolean", "const": false } }, "required": ["protocolVersion", "status", "hasMore"], "additionalProperties": {} }, { "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "leased" }, "events": { "minItems": 1, "maxItems": 40, "type": "array", "items": { "type": "object", "properties": { "eventId": { "type": "string", "minLength": 1, "maxLength": 128 }, "leaseVersion": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "decisionId": { "type": "string", "minLength": 1, "maxLength": 128 }, "intent": { "type": "string" }, "webUrl": { "type": "string" }, "kind": { "type": "string", "enum": ["confirm_prompt", "publish_prompt"] } }, "required": ["eventId", "leaseVersion", "shortId", "intent", "webUrl"], "additionalProperties": {} } }, "hasMore": { "type": "boolean" } }, "required": ["protocolVersion", "status", "events", "hasMore"], "additionalProperties": {} }, { "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "unavailable" }, "reason": { "type": "string", "const": "organization_unbound" } }, "required": ["protocolVersion", "status", "reason"], "additionalProperties": {} }], "x-primitive-runtime-refinements": ["feedback_response_version_negotiation", "feedback_publish_prompt_decision_id", "unique_feedback_event_ids"] };
20709
- var pattern13 = new RegExp("^[0-9a-f]{8}$", "u");
20802
+ var pattern14 = new RegExp("^[0-9a-f]{8}$", "u");
20710
20803
  function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20711
20804
  ;
20712
20805
  let vErrors = null;
@@ -21045,7 +21138,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
21045
21138
  const _errs27 = errors;
21046
21139
  if (errors === _errs27) {
21047
21140
  if (typeof data9 === "string") {
21048
- if (!pattern13.test(data9)) {
21141
+ if (!pattern14.test(data9)) {
21049
21142
  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}$"' };
21050
21143
  if (vErrors === null) {
21051
21144
  vErrors = [err24];
@@ -22101,8 +22194,8 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
22101
22194
  return errors === 0;
22102
22195
  }
22103
22196
  validate51.evaluated = { "dynamicProps": true, "dynamicItems": false };
22104
- var pattern14 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
22105
- var pattern15 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
22197
+ var pattern15 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
22198
+ var pattern16 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
22106
22199
  function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
22107
22200
  ;
22108
22201
  let vErrors = null;
@@ -22184,7 +22277,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
22184
22277
  const _errs9 = errors;
22185
22278
  if (errors === _errs9) {
22186
22279
  if (typeof data3 === "string") {
22187
- if (!pattern14.test(data3)) {
22280
+ if (!pattern15.test(data3)) {
22188
22281
  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}$"' }];
22189
22282
  return false;
22190
22283
  }
@@ -22203,7 +22296,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
22203
22296
  const _errs11 = errors;
22204
22297
  if (errors === _errs11) {
22205
22298
  if (typeof data4 === "string") {
22206
- if (!pattern15.test(data4)) {
22299
+ if (!pattern16.test(data4)) {
22207
22300
  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}$"' }];
22208
22301
  return false;
22209
22302
  }
@@ -22611,7 +22704,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
22611
22704
  const _errs3 = errors;
22612
22705
  if (errors === _errs3) {
22613
22706
  if (typeof data0 === "string") {
22614
- if (!pattern14.test(data0)) {
22707
+ if (!pattern15.test(data0)) {
22615
22708
  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}$"' }];
22616
22709
  return false;
22617
22710
  }
@@ -24183,7 +24276,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
24183
24276
  }
24184
24277
  validate55.evaluated = { "dynamicProps": true, "dynamicItems": false };
24185
24278
  var schema103 = { "type": "object", "properties": { "batch": { "type": "array", "items": { "anyOf": [{ "type": "object", "properties": { "moveId": { "type": "string" }, "capturedAt": { "type": "number" }, "sessionId": { "type": "string" }, "invocationId": { "type": "string" }, "eventType": { "type": "string" }, "payload": {}, "env": {}, "repositoryContext": { "oneOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "repository_bound" }, "repoSyncId": { "type": "string", "minLength": 1, "maxLength": 128 } }, "required": ["kind", "repoSyncId"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "non_repository" } }, "required": ["kind"], "additionalProperties": false }] }, "capturedOrganizationId": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$" }, "captureAuthorityKind": { "type": "string", "enum": ["workos", "service_token"] }, "decisionLifecycleProtocolVersion": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }, "producer": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] }, "toolOutcome": { "type": "string", "enum": ["succeeded", "returned", "failed", "interrupted", "prevented", "unknown"] }, "envelopeVersion": { "type": "number", "const": 4 } }, "required": ["moveId", "capturedAt", "sessionId", "eventType", "capturedOrganizationId", "captureAuthorityKind", "decisionLifecycleProtocolVersion", "envelopeVersion"], "additionalProperties": {} }, { "type": "object", "properties": { "moveId": { "type": "string" }, "capturedAt": { "type": "number" }, "sessionId": { "type": "string" }, "invocationId": { "type": "string" }, "eventType": { "type": "string" }, "payload": {}, "env": {}, "repositoryContext": { "oneOf": [{ "type": "object", "properties": { "kind": { "type": "string", "const": "repository_bound" }, "repoSyncId": { "type": "string", "minLength": 1, "maxLength": 128 } }, "required": ["kind", "repoSyncId"], "additionalProperties": false }, { "type": "object", "properties": { "kind": { "type": "string", "const": "non_repository" } }, "required": ["kind"], "additionalProperties": false }] }, "capturedOrganizationId": { "type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9_-]+$" }, "captureAuthorityKind": { "type": "string", "enum": ["workos", "service_token"] }, "decisionLifecycleProtocolVersion": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }, "producer": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] }, "toolOutcome": { "type": "string", "enum": ["succeeded", "returned", "failed", "interrupted", "prevented", "unknown"] }, "envelopeVersion": { "type": "number", "exclusiveMaximum": 4 } }, "required": ["moveId", "capturedAt", "sessionId", "eventType"], "additionalProperties": {} }] } } }, "required": ["batch"], "additionalProperties": {} };
24186
- var pattern17 = new RegExp("^[A-Za-z0-9_-]+$", "u");
24279
+ var pattern18 = new RegExp("^[A-Za-z0-9_-]+$", "u");
24187
24280
  function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
24188
24281
  ;
24189
24282
  let vErrors = null;
@@ -24544,7 +24637,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
24544
24637
  }
24545
24638
  errors++;
24546
24639
  } else {
24547
- if (!pattern17.test(data11)) {
24640
+ if (!pattern18.test(data11)) {
24548
24641
  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_-]+$"' };
24549
24642
  if (vErrors === null) {
24550
24643
  vErrors = [err22];
@@ -25069,7 +25162,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
25069
25162
  }
25070
25163
  errors++;
25071
25164
  } else {
25072
- if (!pattern17.test(data26)) {
25165
+ if (!pattern18.test(data26)) {
25073
25166
  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_-]+$"' };
25074
25167
  if (vErrors === null) {
25075
25168
  vErrors = [err58];
@@ -25312,10 +25405,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
25312
25405
  }
25313
25406
  validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
25314
25407
  var schema105 = { "type": "object", "properties": { "protocolVersion": { "type": "number", "const": 3 }, "agent": { "type": "string", "enum": ["claude_code", "codex", "cursor", "hermes"] }, "sessionId": { "type": "string", "pattern": "^[A-Za-z0-9._:-]{1,128}$" }, "invocationId": { "type": "string", "pattern": "^[A-Za-z0-9._:-]{1,128}$" }, "repoSyncId": { "type": "string", "pattern": "^[A-Za-z0-9]{1,64}$" }, "paths": { "maxItems": 32, "type": "array", "items": { "type": "string" } }, "coverage": { "type": "string", "enum": ["complete", "unverified"] }, "branch": { "type": "string", "maxLength": 255, "pattern": "^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$" }, "clientMode": { "type": "string", "enum": ["block", "warn"] }, "clientVersion": { "type": "string", "maxLength": 32, "pattern": "^[A-Za-z0-9][A-Za-z0-9._+-]*$" }, "proposal": { "type": "string" } }, "required": ["protocolVersion", "agent", "sessionId", "invocationId", "repoSyncId", "paths", "coverage", "proposal"], "additionalProperties": false, "x-primitive-runtime-refinements": ["canonical_repository_paths", "unique_repository_paths", "complete_coverage_requires_path", "proposal_utf8_max_6144", "degrade_invalid_rollout_fields", "degrade_invalid_branch"] };
25315
- var pattern19 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
25316
- var pattern21 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
25317
- var pattern22 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
25318
- var pattern23 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
25408
+ var pattern20 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
25409
+ var pattern22 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
25410
+ var pattern23 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
25411
+ var pattern24 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
25319
25412
  function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
25320
25413
  ;
25321
25414
  let vErrors = null;
@@ -25381,7 +25474,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
25381
25474
  const _errs8 = errors;
25382
25475
  if (errors === _errs8) {
25383
25476
  if (typeof data2 === "string") {
25384
- if (!pattern19.test(data2)) {
25477
+ if (!pattern20.test(data2)) {
25385
25478
  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}$"' }];
25386
25479
  return false;
25387
25480
  }
@@ -25400,7 +25493,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
25400
25493
  const _errs10 = errors;
25401
25494
  if (errors === _errs10) {
25402
25495
  if (typeof data3 === "string") {
25403
- if (!pattern19.test(data3)) {
25496
+ if (!pattern20.test(data3)) {
25404
25497
  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}$"' }];
25405
25498
  return false;
25406
25499
  }
@@ -25419,7 +25512,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
25419
25512
  const _errs12 = errors;
25420
25513
  if (errors === _errs12) {
25421
25514
  if (typeof data4 === "string") {
25422
- if (!pattern21.test(data4)) {
25515
+ if (!pattern22.test(data4)) {
25423
25516
  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}$"' }];
25424
25517
  return false;
25425
25518
  }
@@ -25491,7 +25584,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
25491
25584
  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" }];
25492
25585
  return false;
25493
25586
  } else {
25494
- if (!pattern22.test(data8)) {
25587
+ if (!pattern23.test(data8)) {
25495
25588
  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(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$"' }];
25496
25589
  return false;
25497
25590
  }
@@ -25531,7 +25624,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
25531
25624
  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" }];
25532
25625
  return false;
25533
25626
  } else {
25534
- if (!pattern23.test(data10)) {
25627
+ if (!pattern24.test(data10)) {
25535
25628
  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._+-]*$"' }];
25536
25629
  return false;
25537
25630
  }
@@ -25618,7 +25711,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
25618
25711
  const _errs5 = errors;
25619
25712
  if (errors === _errs5) {
25620
25713
  if (typeof data1 === "string") {
25621
- if (!pattern19.test(data1)) {
25714
+ if (!pattern20.test(data1)) {
25622
25715
  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}$"' }];
25623
25716
  return false;
25624
25717
  }
@@ -25915,8 +26008,8 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
25915
26008
  return errors === 0;
25916
26009
  }
25917
26010
  validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
25918
- var pattern25 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
25919
- var pattern26 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
26011
+ var pattern26 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
26012
+ var pattern27 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
25920
26013
  function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
25921
26014
  ;
25922
26015
  let vErrors = null;
@@ -25941,7 +26034,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
25941
26034
  const _errs3 = errors;
25942
26035
  if (errors === _errs3) {
25943
26036
  if (typeof data0 === "string") {
25944
- if (!pattern25.test(data0)) {
26037
+ if (!pattern26.test(data0)) {
25945
26038
  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}$"' }];
25946
26039
  return false;
25947
26040
  }
@@ -25960,7 +26053,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
25960
26053
  const _errs5 = errors;
25961
26054
  if (errors === _errs5) {
25962
26055
  if (typeof data1 === "string") {
25963
- if (!pattern26.test(data1)) {
26056
+ if (!pattern27.test(data1)) {
25964
26057
  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}$"' }];
25965
26058
  return false;
25966
26059
  }
@@ -26623,7 +26716,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
26623
26716
  return errors === 0;
26624
26717
  }
26625
26718
  validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
26626
- var pattern27 = new RegExp("^(?![A-Za-z0-9-]*--)[A-Za-z0-9](?:[A-Za-z0-9-]{0,37}[A-Za-z0-9])?\\/[A-Za-z0-9._-]{1,100}$", "u");
26719
+ 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");
26627
26720
  function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
26628
26721
  ;
26629
26722
  let vErrors = null;
@@ -26657,7 +26750,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
26657
26750
  const _errs3 = errors;
26658
26751
  if (errors === _errs3) {
26659
26752
  if (typeof data0 === "string") {
26660
- if (!pattern27.test(data0)) {
26753
+ if (!pattern28.test(data0)) {
26661
26754
  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}$"' }];
26662
26755
  return false;
26663
26756
  }
@@ -26722,7 +26815,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
26722
26815
  return errors === 0;
26723
26816
  }
26724
26817
  validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
26725
- var pattern29 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
26818
+ var pattern30 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
26726
26819
  function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
26727
26820
  ;
26728
26821
  let vErrors = null;
@@ -26808,7 +26901,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
26808
26901
  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" }];
26809
26902
  return false;
26810
26903
  } else {
26811
- if (!pattern29.test(data2)) {
26904
+ if (!pattern30.test(data2)) {
26812
26905
  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_-]+$"' }];
26813
26906
  return false;
26814
26907
  }
@@ -26836,9 +26929,9 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
26836
26929
  return errors === 0;
26837
26930
  }
26838
26931
  validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
26839
- var pattern31 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
26840
- var pattern32 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
26841
- var pattern33 = new RegExp("^[\\x21-\\x7e]+$", "u");
26932
+ var pattern32 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
26933
+ var pattern33 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
26934
+ var pattern34 = new RegExp("^[\\x21-\\x7e]+$", "u");
26842
26935
  function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
26843
26936
  ;
26844
26937
  let vErrors = null;
@@ -26910,7 +27003,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
26910
27003
  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" }];
26911
27004
  return false;
26912
27005
  } else {
26913
- if (!pattern29.test(data2)) {
27006
+ if (!pattern30.test(data2)) {
26914
27007
  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_-]+$"' }];
26915
27008
  return false;
26916
27009
  }
@@ -26939,7 +27032,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
26939
27032
  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" }];
26940
27033
  return false;
26941
27034
  } else {
26942
- if (!pattern31.test(data3)) {
27035
+ if (!pattern32.test(data3)) {
26943
27036
  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])?$"' }];
26944
27037
  return false;
26945
27038
  }
@@ -26968,7 +27061,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
26968
27061
  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" }];
26969
27062
  return false;
26970
27063
  } else {
26971
- if (!pattern32.test(data4)) {
27064
+ if (!pattern33.test(data4)) {
26972
27065
  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]+$"' }];
26973
27066
  return false;
26974
27067
  }
@@ -27008,7 +27101,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
27008
27101
  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" }];
27009
27102
  return false;
27010
27103
  } else {
27011
- if (!pattern33.test(data6)) {
27104
+ if (!pattern34.test(data6)) {
27012
27105
  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]+$"' }];
27013
27106
  return false;
27014
27107
  }
@@ -27294,7 +27387,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
27294
27387
  }
27295
27388
  errors++;
27296
27389
  } else {
27297
- if (!pattern29.test(data11)) {
27390
+ if (!pattern30.test(data11)) {
27298
27391
  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_-]+$"' };
27299
27392
  if (vErrors === null) {
27300
27393
  vErrors = [err12];
@@ -27406,7 +27499,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
27406
27499
  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" }];
27407
27500
  return false;
27408
27501
  } else {
27409
- if (!pattern29.test(data0)) {
27502
+ if (!pattern30.test(data0)) {
27410
27503
  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_-]+$"' }];
27411
27504
  return false;
27412
27505
  }
@@ -27435,7 +27528,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
27435
27528
  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" }];
27436
27529
  return false;
27437
27530
  } else {
27438
- if (!pattern31.test(data1)) {
27531
+ if (!pattern32.test(data1)) {
27439
27532
  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])?$"' }];
27440
27533
  return false;
27441
27534
  }
@@ -27464,7 +27557,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
27464
27557
  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" }];
27465
27558
  return false;
27466
27559
  } else {
27467
- if (!pattern32.test(data2)) {
27560
+ if (!pattern33.test(data2)) {
27468
27561
  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]+$"' }];
27469
27562
  return false;
27470
27563
  }
@@ -27504,7 +27597,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
27504
27597
  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" }];
27505
27598
  return false;
27506
27599
  } else {
27507
- if (!pattern33.test(data4)) {
27600
+ if (!pattern34.test(data4)) {
27508
27601
  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]+$"' }];
27509
27602
  return false;
27510
27603
  }
@@ -27812,7 +27905,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
27812
27905
  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" }];
27813
27906
  return false;
27814
27907
  } else {
27815
- if (!pattern31.test(data1)) {
27908
+ if (!pattern32.test(data1)) {
27816
27909
  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])?$"' }];
27817
27910
  return false;
27818
27911
  }
@@ -27865,7 +27958,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
27865
27958
  return errors === 0;
27866
27959
  }
27867
27960
  validate68.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
27868
- var pattern45 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
27961
+ var pattern46 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
27869
27962
  function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
27870
27963
  ;
27871
27964
  let vErrors = null;
@@ -27926,7 +28019,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
27926
28019
  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" }];
27927
28020
  return false;
27928
28021
  } else {
27929
- if (!pattern29.test(data1)) {
28022
+ if (!pattern30.test(data1)) {
27930
28023
  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_-]+$"' }];
27931
28024
  return false;
27932
28025
  }
@@ -27955,7 +28048,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
27955
28048
  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" }];
27956
28049
  return false;
27957
28050
  } else {
27958
- if (!pattern31.test(data2)) {
28051
+ if (!pattern32.test(data2)) {
27959
28052
  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])?$"' }];
27960
28053
  return false;
27961
28054
  }
@@ -27984,7 +28077,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
27984
28077
  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" }];
27985
28078
  return false;
27986
28079
  } else {
27987
- if (!pattern32.test(data3)) {
28080
+ if (!pattern33.test(data3)) {
27988
28081
  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]+$"' }];
27989
28082
  return false;
27990
28083
  }
@@ -28024,7 +28117,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
28024
28117
  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" }];
28025
28118
  return false;
28026
28119
  } else {
28027
- if (!pattern33.test(data5)) {
28120
+ if (!pattern34.test(data5)) {
28028
28121
  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]+$"' }];
28029
28122
  return false;
28030
28123
  }
@@ -28286,7 +28379,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
28286
28379
  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" }];
28287
28380
  return false;
28288
28381
  } else {
28289
- if (!pattern45.test(data10)) {
28382
+ if (!pattern46.test(data10)) {
28290
28383
  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]+)*$"' }];
28291
28384
  return false;
28292
28385
  }
@@ -28408,7 +28501,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
28408
28501
  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" }];
28409
28502
  return false;
28410
28503
  } else {
28411
- if (!pattern29.test(data0)) {
28504
+ if (!pattern30.test(data0)) {
28412
28505
  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_-]+$"' }];
28413
28506
  return false;
28414
28507
  }
@@ -28672,7 +28765,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
28672
28765
  }
28673
28766
  validate73.evaluated = { "dynamicProps": true, "dynamicItems": false };
28674
28767
  var schema139 = { "type": "object", "properties": { "protocol_version": { "type": "number", "const": 1 }, "issuer": { "type": "string", "format": "uri" }, "client_id": { "type": "string", "maxLength": 256, "pattern": "^client_[A-Za-z0-9_-]+$" }, "default_scopes": { "minItems": 4, "maxItems": 4, "type": "array", "items": { "type": "string", "enum": ["openid", "profile", "email", "offline_access"] } } }, "required": ["protocol_version", "issuer", "client_id", "default_scopes"], "additionalProperties": false, "x-primitive-runtime-refinements": ["canonical_https_origin", "exact_workos_connect_device_scopes"] };
28675
- var pattern48 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
28768
+ var pattern49 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
28676
28769
  function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
28677
28770
  ;
28678
28771
  let vErrors = null;
@@ -28741,7 +28834,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
28741
28834
  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" }];
28742
28835
  return false;
28743
28836
  } else {
28744
- if (!pattern48.test(data2)) {
28837
+ if (!pattern49.test(data2)) {
28745
28838
  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_-]+$"' }];
28746
28839
  return false;
28747
28840
  }