@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.
@@ -10795,8 +10795,9 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
10795
10795
  return errors === 0;
10796
10796
  }
10797
10797
  validate43.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
10798
- 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 };
10798
+ var schema79 = { "type": "object", "properties": { "scenarioVersion": { "type": "number", "const": 1 }, "fictional": { "type": "boolean", "const": true }, "evaluation": { "type": "string", "const": "live" }, "runId": { "type": "string", "pattern": "^[a-zA-Z0-9]{1,64}$" }, "revision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "stage": { "type": "string", "enum": ["ready", "checking", "blocked", "approved", "completed", "skipped", "expired"] }, "authorName": { "type": "string", "maxLength": 200 }, "story": { "type": "object", "properties": { "orgName": { "type": "string", "maxLength": 200 }, "recipient": { "type": "string", "format": "email", "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" }, "decisionDate": { "type": "string", "maxLength": 100 } }, "required": ["orgName", "recipient", "decisionDate"], "additionalProperties": false }, "email": { "type": "string", "enum": ["not_queued", "queued", "accepted", "failed", "suppressed"] }, "verdict": { "type": "string", "enum": ["block", "pass", "pending"] }, "reasonCode": { "type": "string", "maxLength": 100 }, "choice": { "type": "string", "enum": ["adhere", "supersede"] }, "reason": { "type": "string", "maxLength": 500 }, "approvedDigest": { "type": "string", "pattern": "^[a-f0-9]{64}$" } }, "required": ["scenarioVersion", "fictional", "evaluation", "runId", "revision", "stage", "authorName", "story", "email"], "additionalProperties": false };
10799
10799
  var func34 = Object.prototype.hasOwnProperty;
10800
+ var pattern12 = new RegExp("^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$", "u");
10800
10801
  function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
10801
10802
  ;
10802
10803
  let vErrors = null;
@@ -10812,7 +10813,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
10812
10813
  if (errors === _errs0) {
10813
10814
  if (data && typeof data == "object" && !Array.isArray(data)) {
10814
10815
  let missing0;
10815
- 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")) {
10816
+ 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")) {
10816
10817
  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 + "'" }];
10817
10818
  return false;
10818
10819
  } else {
@@ -10952,110 +10953,202 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
10952
10953
  var valid1 = true;
10953
10954
  }
10954
10955
  if (valid1) {
10955
- if (data.email !== void 0) {
10956
- let data7 = data.email;
10956
+ if (data.story !== void 0) {
10957
+ let data7 = data.story;
10957
10958
  const _errs17 = errors;
10958
- if (typeof data7 !== "string") {
10959
- 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" }];
10960
- return false;
10961
- }
10962
- if (!(data7 === "not_queued" || data7 === "queued" || data7 === "accepted" || data7 === "failed" || data7 === "suppressed")) {
10963
- 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" }];
10964
- return false;
10959
+ if (errors === _errs17) {
10960
+ if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
10961
+ let missing1;
10962
+ if (data7.orgName === void 0 && (missing1 = "orgName") || data7.recipient === void 0 && (missing1 = "recipient") || data7.decisionDate === void 0 && (missing1 = "decisionDate")) {
10963
+ 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 + "'" }];
10964
+ return false;
10965
+ } else {
10966
+ const _errs19 = errors;
10967
+ for (const key1 in data7) {
10968
+ if (!(key1 === "orgName" || key1 === "recipient" || key1 === "decisionDate")) {
10969
+ 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" }];
10970
+ return false;
10971
+ break;
10972
+ }
10973
+ }
10974
+ if (_errs19 === errors) {
10975
+ if (data7.orgName !== void 0) {
10976
+ let data8 = data7.orgName;
10977
+ const _errs20 = errors;
10978
+ if (errors === _errs20) {
10979
+ if (typeof data8 === "string") {
10980
+ if (func1(data8) > 200) {
10981
+ 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" }];
10982
+ return false;
10983
+ }
10984
+ } else {
10985
+ 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" }];
10986
+ return false;
10987
+ }
10988
+ }
10989
+ var valid2 = _errs20 === errors;
10990
+ } else {
10991
+ var valid2 = true;
10992
+ }
10993
+ if (valid2) {
10994
+ if (data7.recipient !== void 0) {
10995
+ let data9 = data7.recipient;
10996
+ const _errs22 = errors;
10997
+ if (errors === _errs22) {
10998
+ if (errors === _errs22) {
10999
+ if (typeof data9 === "string") {
11000
+ if (!pattern12.test(data9)) {
11001
+ validate44.errors = [{ instancePath: instancePath + "/story/recipient", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/story/properties/recipient/pattern", keyword: "pattern", params: { pattern: "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" }, message: `must match pattern "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"` }];
11002
+ return false;
11003
+ }
11004
+ } else {
11005
+ 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" }];
11006
+ return false;
11007
+ }
11008
+ }
11009
+ }
11010
+ var valid2 = _errs22 === errors;
11011
+ } else {
11012
+ var valid2 = true;
11013
+ }
11014
+ if (valid2) {
11015
+ if (data7.decisionDate !== void 0) {
11016
+ let data10 = data7.decisionDate;
11017
+ const _errs24 = errors;
11018
+ if (errors === _errs24) {
11019
+ if (typeof data10 === "string") {
11020
+ if (func1(data10) > 100) {
11021
+ 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" }];
11022
+ return false;
11023
+ }
11024
+ } else {
11025
+ 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" }];
11026
+ return false;
11027
+ }
11028
+ }
11029
+ var valid2 = _errs24 === errors;
11030
+ } else {
11031
+ var valid2 = true;
11032
+ }
11033
+ }
11034
+ }
11035
+ }
11036
+ }
11037
+ } else {
11038
+ 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" }];
11039
+ return false;
11040
+ }
10965
11041
  }
10966
11042
  var valid1 = _errs17 === errors;
10967
11043
  } else {
10968
11044
  var valid1 = true;
10969
11045
  }
10970
11046
  if (valid1) {
10971
- if (data.verdict !== void 0) {
10972
- let data8 = data.verdict;
10973
- const _errs19 = errors;
10974
- if (typeof data8 !== "string") {
10975
- 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" }];
11047
+ if (data.email !== void 0) {
11048
+ let data11 = data.email;
11049
+ const _errs26 = errors;
11050
+ if (typeof data11 !== "string") {
11051
+ 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" }];
10976
11052
  return false;
10977
11053
  }
10978
- if (!(data8 === "block" || data8 === "pass" || data8 === "pending")) {
10979
- 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" }];
11054
+ if (!(data11 === "not_queued" || data11 === "queued" || data11 === "accepted" || data11 === "failed" || data11 === "suppressed")) {
11055
+ 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" }];
10980
11056
  return false;
10981
11057
  }
10982
- var valid1 = _errs19 === errors;
11058
+ var valid1 = _errs26 === errors;
10983
11059
  } else {
10984
11060
  var valid1 = true;
10985
11061
  }
10986
11062
  if (valid1) {
10987
- if (data.reasonCode !== void 0) {
10988
- let data9 = data.reasonCode;
10989
- const _errs21 = errors;
10990
- if (errors === _errs21) {
10991
- if (typeof data9 === "string") {
10992
- if (func1(data9) > 100) {
10993
- 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" }];
10994
- return false;
10995
- }
10996
- } else {
10997
- 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" }];
10998
- return false;
10999
- }
11063
+ if (data.verdict !== void 0) {
11064
+ let data12 = data.verdict;
11065
+ const _errs28 = errors;
11066
+ if (typeof data12 !== "string") {
11067
+ 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" }];
11068
+ return false;
11000
11069
  }
11001
- var valid1 = _errs21 === errors;
11070
+ if (!(data12 === "block" || data12 === "pass" || data12 === "pending")) {
11071
+ 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" }];
11072
+ return false;
11073
+ }
11074
+ var valid1 = _errs28 === errors;
11002
11075
  } else {
11003
11076
  var valid1 = true;
11004
11077
  }
11005
11078
  if (valid1) {
11006
- if (data.choice !== void 0) {
11007
- let data10 = data.choice;
11008
- const _errs23 = errors;
11009
- if (typeof data10 !== "string") {
11010
- 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" }];
11011
- return false;
11012
- }
11013
- if (!(data10 === "adhere" || data10 === "supersede")) {
11014
- 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" }];
11015
- return false;
11079
+ if (data.reasonCode !== void 0) {
11080
+ let data13 = data.reasonCode;
11081
+ const _errs30 = errors;
11082
+ if (errors === _errs30) {
11083
+ if (typeof data13 === "string") {
11084
+ if (func1(data13) > 100) {
11085
+ 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" }];
11086
+ return false;
11087
+ }
11088
+ } else {
11089
+ 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" }];
11090
+ return false;
11091
+ }
11016
11092
  }
11017
- var valid1 = _errs23 === errors;
11093
+ var valid1 = _errs30 === errors;
11018
11094
  } else {
11019
11095
  var valid1 = true;
11020
11096
  }
11021
11097
  if (valid1) {
11022
- if (data.reason !== void 0) {
11023
- let data11 = data.reason;
11024
- const _errs25 = errors;
11025
- if (errors === _errs25) {
11026
- if (typeof data11 === "string") {
11027
- if (func1(data11) > 500) {
11028
- 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" }];
11029
- return false;
11030
- }
11031
- } else {
11032
- 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" }];
11033
- return false;
11034
- }
11098
+ if (data.choice !== void 0) {
11099
+ let data14 = data.choice;
11100
+ const _errs32 = errors;
11101
+ if (typeof data14 !== "string") {
11102
+ 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" }];
11103
+ return false;
11104
+ }
11105
+ if (!(data14 === "adhere" || data14 === "supersede")) {
11106
+ 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" }];
11107
+ return false;
11035
11108
  }
11036
- var valid1 = _errs25 === errors;
11109
+ var valid1 = _errs32 === errors;
11037
11110
  } else {
11038
11111
  var valid1 = true;
11039
11112
  }
11040
11113
  if (valid1) {
11041
- if (data.approvedDigest !== void 0) {
11042
- let data12 = data.approvedDigest;
11043
- const _errs27 = errors;
11044
- if (errors === _errs27) {
11045
- if (typeof data12 === "string") {
11046
- if (!pattern5.test(data12)) {
11047
- 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}$"' }];
11114
+ if (data.reason !== void 0) {
11115
+ let data15 = data.reason;
11116
+ const _errs34 = errors;
11117
+ if (errors === _errs34) {
11118
+ if (typeof data15 === "string") {
11119
+ if (func1(data15) > 500) {
11120
+ 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" }];
11048
11121
  return false;
11049
11122
  }
11050
11123
  } else {
11051
- 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" }];
11124
+ 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" }];
11052
11125
  return false;
11053
11126
  }
11054
11127
  }
11055
- var valid1 = _errs27 === errors;
11128
+ var valid1 = _errs34 === errors;
11056
11129
  } else {
11057
11130
  var valid1 = true;
11058
11131
  }
11132
+ if (valid1) {
11133
+ if (data.approvedDigest !== void 0) {
11134
+ let data16 = data.approvedDigest;
11135
+ const _errs36 = errors;
11136
+ if (errors === _errs36) {
11137
+ if (typeof data16 === "string") {
11138
+ if (!pattern5.test(data16)) {
11139
+ validate44.errors = [{ instancePath: instancePath + "/approvedDigest", schemaPath: "https://api.getprimitive.ai/contracts/cli-http-v1.schema.json#/$defs/DemoStatusResponse/properties/approvedDigest/pattern", keyword: "pattern", params: { pattern: "^[a-f0-9]{64}$" }, message: 'must match pattern "^[a-f0-9]{64}$"' }];
11140
+ return false;
11141
+ }
11142
+ } else {
11143
+ 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" }];
11144
+ return false;
11145
+ }
11146
+ }
11147
+ var valid1 = _errs36 === errors;
11148
+ } else {
11149
+ var valid1 = true;
11150
+ }
11151
+ }
11059
11152
  }
11060
11153
  }
11061
11154
  }
@@ -11946,7 +12039,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
11946
12039
  }
11947
12040
  validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
11948
12041
  var schema89 = { "anyOf": [{ "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "empty" }, "hasMore": { "type": "boolean", "const": false } }, "required": ["protocolVersion", "status", "hasMore"], "additionalProperties": {} }, { "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "leased" }, "events": { "minItems": 1, "maxItems": 40, "type": "array", "items": { "type": "object", "properties": { "eventId": { "type": "string", "minLength": 1, "maxLength": 128 }, "leaseVersion": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }, "shortId": { "type": "string", "pattern": "^[0-9a-f]{8}$" }, "decisionId": { "type": "string", "minLength": 1, "maxLength": 128 }, "intent": { "type": "string" }, "webUrl": { "type": "string" }, "kind": { "type": "string", "enum": ["confirm_prompt", "publish_prompt"] } }, "required": ["eventId", "leaseVersion", "shortId", "intent", "webUrl"], "additionalProperties": {} } }, "hasMore": { "type": "boolean" } }, "required": ["protocolVersion", "status", "events", "hasMore"], "additionalProperties": {} }, { "type": "object", "properties": { "protocolVersion": { "type": "integer", "minimum": 1, "maximum": 2 }, "status": { "type": "string", "const": "unavailable" }, "reason": { "type": "string", "const": "organization_unbound" } }, "required": ["protocolVersion", "status", "reason"], "additionalProperties": {} }], "x-primitive-runtime-refinements": ["feedback_response_version_negotiation", "feedback_publish_prompt_decision_id", "unique_feedback_event_ids"] };
11949
- var pattern13 = new RegExp("^[0-9a-f]{8}$", "u");
12042
+ var pattern14 = new RegExp("^[0-9a-f]{8}$", "u");
11950
12043
  function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
11951
12044
  ;
11952
12045
  let vErrors = null;
@@ -12285,7 +12378,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
12285
12378
  const _errs27 = errors;
12286
12379
  if (errors === _errs27) {
12287
12380
  if (typeof data9 === "string") {
12288
- if (!pattern13.test(data9)) {
12381
+ if (!pattern14.test(data9)) {
12289
12382
  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}$"' };
12290
12383
  if (vErrors === null) {
12291
12384
  vErrors = [err24];
@@ -13341,8 +13434,8 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
13341
13434
  return errors === 0;
13342
13435
  }
13343
13436
  validate51.evaluated = { "dynamicProps": true, "dynamicItems": false };
13344
- var pattern14 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
13345
- var pattern15 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
13437
+ var pattern15 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
13438
+ var pattern16 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
13346
13439
  function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
13347
13440
  ;
13348
13441
  let vErrors = null;
@@ -13424,7 +13517,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
13424
13517
  const _errs9 = errors;
13425
13518
  if (errors === _errs9) {
13426
13519
  if (typeof data3 === "string") {
13427
- if (!pattern14.test(data3)) {
13520
+ if (!pattern15.test(data3)) {
13428
13521
  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}$"' }];
13429
13522
  return false;
13430
13523
  }
@@ -13443,7 +13536,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
13443
13536
  const _errs11 = errors;
13444
13537
  if (errors === _errs11) {
13445
13538
  if (typeof data4 === "string") {
13446
- if (!pattern15.test(data4)) {
13539
+ if (!pattern16.test(data4)) {
13447
13540
  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}$"' }];
13448
13541
  return false;
13449
13542
  }
@@ -13851,7 +13944,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
13851
13944
  const _errs3 = errors;
13852
13945
  if (errors === _errs3) {
13853
13946
  if (typeof data0 === "string") {
13854
- if (!pattern14.test(data0)) {
13947
+ if (!pattern15.test(data0)) {
13855
13948
  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}$"' }];
13856
13949
  return false;
13857
13950
  }
@@ -15423,7 +15516,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
15423
15516
  }
15424
15517
  validate55.evaluated = { "dynamicProps": true, "dynamicItems": false };
15425
15518
  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": {} };
15426
- var pattern17 = new RegExp("^[A-Za-z0-9_-]+$", "u");
15519
+ var pattern18 = new RegExp("^[A-Za-z0-9_-]+$", "u");
15427
15520
  function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
15428
15521
  ;
15429
15522
  let vErrors = null;
@@ -15784,7 +15877,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
15784
15877
  }
15785
15878
  errors++;
15786
15879
  } else {
15787
- if (!pattern17.test(data11)) {
15880
+ if (!pattern18.test(data11)) {
15788
15881
  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_-]+$"' };
15789
15882
  if (vErrors === null) {
15790
15883
  vErrors = [err22];
@@ -16309,7 +16402,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
16309
16402
  }
16310
16403
  errors++;
16311
16404
  } else {
16312
- if (!pattern17.test(data26)) {
16405
+ if (!pattern18.test(data26)) {
16313
16406
  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_-]+$"' };
16314
16407
  if (vErrors === null) {
16315
16408
  vErrors = [err58];
@@ -16552,10 +16645,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
16552
16645
  }
16553
16646
  validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
16554
16647
  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"] };
16555
- var pattern19 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
16556
- var pattern21 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
16557
- var pattern22 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
16558
- var pattern23 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
16648
+ var pattern20 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
16649
+ var pattern22 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
16650
+ var pattern23 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
16651
+ var pattern24 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
16559
16652
  function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
16560
16653
  ;
16561
16654
  let vErrors = null;
@@ -16621,7 +16714,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16621
16714
  const _errs8 = errors;
16622
16715
  if (errors === _errs8) {
16623
16716
  if (typeof data2 === "string") {
16624
- if (!pattern19.test(data2)) {
16717
+ if (!pattern20.test(data2)) {
16625
16718
  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}$"' }];
16626
16719
  return false;
16627
16720
  }
@@ -16640,7 +16733,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16640
16733
  const _errs10 = errors;
16641
16734
  if (errors === _errs10) {
16642
16735
  if (typeof data3 === "string") {
16643
- if (!pattern19.test(data3)) {
16736
+ if (!pattern20.test(data3)) {
16644
16737
  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}$"' }];
16645
16738
  return false;
16646
16739
  }
@@ -16659,7 +16752,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16659
16752
  const _errs12 = errors;
16660
16753
  if (errors === _errs12) {
16661
16754
  if (typeof data4 === "string") {
16662
- if (!pattern21.test(data4)) {
16755
+ if (!pattern22.test(data4)) {
16663
16756
  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}$"' }];
16664
16757
  return false;
16665
16758
  }
@@ -16731,7 +16824,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16731
16824
  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" }];
16732
16825
  return false;
16733
16826
  } else {
16734
- if (!pattern22.test(data8)) {
16827
+ if (!pattern23.test(data8)) {
16735
16828
  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(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$"' }];
16736
16829
  return false;
16737
16830
  }
@@ -16771,7 +16864,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16771
16864
  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" }];
16772
16865
  return false;
16773
16866
  } else {
16774
- if (!pattern23.test(data10)) {
16867
+ if (!pattern24.test(data10)) {
16775
16868
  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._+-]*$"' }];
16776
16869
  return false;
16777
16870
  }
@@ -16858,7 +16951,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
16858
16951
  const _errs5 = errors;
16859
16952
  if (errors === _errs5) {
16860
16953
  if (typeof data1 === "string") {
16861
- if (!pattern19.test(data1)) {
16954
+ if (!pattern20.test(data1)) {
16862
16955
  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}$"' }];
16863
16956
  return false;
16864
16957
  }
@@ -17155,8 +17248,8 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17155
17248
  return errors === 0;
17156
17249
  }
17157
17250
  validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
17158
- var pattern25 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
17159
- var pattern26 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
17251
+ var pattern26 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
17252
+ var pattern27 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
17160
17253
  function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17161
17254
  ;
17162
17255
  let vErrors = null;
@@ -17181,7 +17274,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
17181
17274
  const _errs3 = errors;
17182
17275
  if (errors === _errs3) {
17183
17276
  if (typeof data0 === "string") {
17184
- if (!pattern25.test(data0)) {
17277
+ if (!pattern26.test(data0)) {
17185
17278
  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}$"' }];
17186
17279
  return false;
17187
17280
  }
@@ -17200,7 +17293,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
17200
17293
  const _errs5 = errors;
17201
17294
  if (errors === _errs5) {
17202
17295
  if (typeof data1 === "string") {
17203
- if (!pattern26.test(data1)) {
17296
+ if (!pattern27.test(data1)) {
17204
17297
  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}$"' }];
17205
17298
  return false;
17206
17299
  }
@@ -17863,7 +17956,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
17863
17956
  return errors === 0;
17864
17957
  }
17865
17958
  validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
17866
- 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");
17959
+ 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");
17867
17960
  function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17868
17961
  ;
17869
17962
  let vErrors = null;
@@ -17897,7 +17990,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
17897
17990
  const _errs3 = errors;
17898
17991
  if (errors === _errs3) {
17899
17992
  if (typeof data0 === "string") {
17900
- if (!pattern27.test(data0)) {
17993
+ if (!pattern28.test(data0)) {
17901
17994
  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}$"' }];
17902
17995
  return false;
17903
17996
  }
@@ -17962,7 +18055,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
17962
18055
  return errors === 0;
17963
18056
  }
17964
18057
  validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
17965
- var pattern29 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
18058
+ var pattern30 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
17966
18059
  function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17967
18060
  ;
17968
18061
  let vErrors = null;
@@ -18048,7 +18141,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
18048
18141
  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" }];
18049
18142
  return false;
18050
18143
  } else {
18051
- if (!pattern29.test(data2)) {
18144
+ if (!pattern30.test(data2)) {
18052
18145
  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_-]+$"' }];
18053
18146
  return false;
18054
18147
  }
@@ -18076,9 +18169,9 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
18076
18169
  return errors === 0;
18077
18170
  }
18078
18171
  validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18079
- var pattern31 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
18080
- var pattern32 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
18081
- var pattern33 = new RegExp("^[\\x21-\\x7e]+$", "u");
18172
+ var pattern32 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
18173
+ var pattern33 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
18174
+ var pattern34 = new RegExp("^[\\x21-\\x7e]+$", "u");
18082
18175
  function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18083
18176
  ;
18084
18177
  let vErrors = null;
@@ -18150,7 +18243,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
18150
18243
  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" }];
18151
18244
  return false;
18152
18245
  } else {
18153
- if (!pattern29.test(data2)) {
18246
+ if (!pattern30.test(data2)) {
18154
18247
  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_-]+$"' }];
18155
18248
  return false;
18156
18249
  }
@@ -18179,7 +18272,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
18179
18272
  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" }];
18180
18273
  return false;
18181
18274
  } else {
18182
- if (!pattern31.test(data3)) {
18275
+ if (!pattern32.test(data3)) {
18183
18276
  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])?$"' }];
18184
18277
  return false;
18185
18278
  }
@@ -18208,7 +18301,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
18208
18301
  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" }];
18209
18302
  return false;
18210
18303
  } else {
18211
- if (!pattern32.test(data4)) {
18304
+ if (!pattern33.test(data4)) {
18212
18305
  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]+$"' }];
18213
18306
  return false;
18214
18307
  }
@@ -18248,7 +18341,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
18248
18341
  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" }];
18249
18342
  return false;
18250
18343
  } else {
18251
- if (!pattern33.test(data6)) {
18344
+ if (!pattern34.test(data6)) {
18252
18345
  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]+$"' }];
18253
18346
  return false;
18254
18347
  }
@@ -18534,7 +18627,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
18534
18627
  }
18535
18628
  errors++;
18536
18629
  } else {
18537
- if (!pattern29.test(data11)) {
18630
+ if (!pattern30.test(data11)) {
18538
18631
  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_-]+$"' };
18539
18632
  if (vErrors === null) {
18540
18633
  vErrors = [err12];
@@ -18646,7 +18739,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
18646
18739
  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" }];
18647
18740
  return false;
18648
18741
  } else {
18649
- if (!pattern29.test(data0)) {
18742
+ if (!pattern30.test(data0)) {
18650
18743
  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_-]+$"' }];
18651
18744
  return false;
18652
18745
  }
@@ -18675,7 +18768,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
18675
18768
  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" }];
18676
18769
  return false;
18677
18770
  } else {
18678
- if (!pattern31.test(data1)) {
18771
+ if (!pattern32.test(data1)) {
18679
18772
  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])?$"' }];
18680
18773
  return false;
18681
18774
  }
@@ -18704,7 +18797,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
18704
18797
  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" }];
18705
18798
  return false;
18706
18799
  } else {
18707
- if (!pattern32.test(data2)) {
18800
+ if (!pattern33.test(data2)) {
18708
18801
  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]+$"' }];
18709
18802
  return false;
18710
18803
  }
@@ -18744,7 +18837,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
18744
18837
  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" }];
18745
18838
  return false;
18746
18839
  } else {
18747
- if (!pattern33.test(data4)) {
18840
+ if (!pattern34.test(data4)) {
18748
18841
  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]+$"' }];
18749
18842
  return false;
18750
18843
  }
@@ -19052,7 +19145,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
19052
19145
  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" }];
19053
19146
  return false;
19054
19147
  } else {
19055
- if (!pattern31.test(data1)) {
19148
+ if (!pattern32.test(data1)) {
19056
19149
  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])?$"' }];
19057
19150
  return false;
19058
19151
  }
@@ -19105,7 +19198,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
19105
19198
  return errors === 0;
19106
19199
  }
19107
19200
  validate68.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19108
- var pattern45 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
19201
+ var pattern46 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
19109
19202
  function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19110
19203
  ;
19111
19204
  let vErrors = null;
@@ -19166,7 +19259,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19166
19259
  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" }];
19167
19260
  return false;
19168
19261
  } else {
19169
- if (!pattern29.test(data1)) {
19262
+ if (!pattern30.test(data1)) {
19170
19263
  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_-]+$"' }];
19171
19264
  return false;
19172
19265
  }
@@ -19195,7 +19288,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19195
19288
  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" }];
19196
19289
  return false;
19197
19290
  } else {
19198
- if (!pattern31.test(data2)) {
19291
+ if (!pattern32.test(data2)) {
19199
19292
  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])?$"' }];
19200
19293
  return false;
19201
19294
  }
@@ -19224,7 +19317,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19224
19317
  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" }];
19225
19318
  return false;
19226
19319
  } else {
19227
- if (!pattern32.test(data3)) {
19320
+ if (!pattern33.test(data3)) {
19228
19321
  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]+$"' }];
19229
19322
  return false;
19230
19323
  }
@@ -19264,7 +19357,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19264
19357
  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" }];
19265
19358
  return false;
19266
19359
  } else {
19267
- if (!pattern33.test(data5)) {
19360
+ if (!pattern34.test(data5)) {
19268
19361
  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]+$"' }];
19269
19362
  return false;
19270
19363
  }
@@ -19526,7 +19619,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19526
19619
  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" }];
19527
19620
  return false;
19528
19621
  } else {
19529
- if (!pattern45.test(data10)) {
19622
+ if (!pattern46.test(data10)) {
19530
19623
  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]+)*$"' }];
19531
19624
  return false;
19532
19625
  }
@@ -19648,7 +19741,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
19648
19741
  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" }];
19649
19742
  return false;
19650
19743
  } else {
19651
- if (!pattern29.test(data0)) {
19744
+ if (!pattern30.test(data0)) {
19652
19745
  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_-]+$"' }];
19653
19746
  return false;
19654
19747
  }
@@ -19912,7 +20005,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
19912
20005
  }
19913
20006
  validate73.evaluated = { "dynamicProps": true, "dynamicItems": false };
19914
20007
  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"] };
19915
- var pattern48 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
20008
+ var pattern49 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
19916
20009
  function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19917
20010
  ;
19918
20011
  let vErrors = null;
@@ -19981,7 +20074,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
19981
20074
  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" }];
19982
20075
  return false;
19983
20076
  } else {
19984
- if (!pattern48.test(data2)) {
20077
+ if (!pattern49.test(data2)) {
19985
20078
  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_-]+$"' }];
19986
20079
  return false;
19987
20080
  }