@primitive.ai/prim 0.1.0-alpha.107 → 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.
@@ -10966,8 +10966,9 @@ function validate43(data, { instancePath = "", parentData, parentDataProperty, r
10966
10966
  }
10967
10967
  validate43.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
10968
10968
  var isDemoStatusResponse = validate44;
10969
- 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 };
10969
+ 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 };
10970
10970
  var func34 = Object.prototype.hasOwnProperty;
10971
+ 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");
10971
10972
  function validate44(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
10972
10973
  ;
10973
10974
  let vErrors = null;
@@ -10983,7 +10984,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
10983
10984
  if (errors === _errs0) {
10984
10985
  if (data && typeof data == "object" && !Array.isArray(data)) {
10985
10986
  let missing0;
10986
- 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")) {
10987
+ 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")) {
10987
10988
  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 + "'" }];
10988
10989
  return false;
10989
10990
  } else {
@@ -11123,110 +11124,202 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
11123
11124
  var valid1 = true;
11124
11125
  }
11125
11126
  if (valid1) {
11126
- if (data.email !== void 0) {
11127
- let data7 = data.email;
11127
+ if (data.story !== void 0) {
11128
+ let data7 = data.story;
11128
11129
  const _errs17 = errors;
11129
- if (typeof data7 !== "string") {
11130
- 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" }];
11131
- return false;
11132
- }
11133
- if (!(data7 === "not_queued" || data7 === "queued" || data7 === "accepted" || data7 === "failed" || data7 === "suppressed")) {
11134
- 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" }];
11135
- return false;
11130
+ if (errors === _errs17) {
11131
+ if (data7 && typeof data7 == "object" && !Array.isArray(data7)) {
11132
+ let missing1;
11133
+ if (data7.orgName === void 0 && (missing1 = "orgName") || data7.recipient === void 0 && (missing1 = "recipient") || data7.decisionDate === void 0 && (missing1 = "decisionDate")) {
11134
+ 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 + "'" }];
11135
+ return false;
11136
+ } else {
11137
+ const _errs19 = errors;
11138
+ for (const key1 in data7) {
11139
+ if (!(key1 === "orgName" || key1 === "recipient" || key1 === "decisionDate")) {
11140
+ 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" }];
11141
+ return false;
11142
+ break;
11143
+ }
11144
+ }
11145
+ if (_errs19 === errors) {
11146
+ if (data7.orgName !== void 0) {
11147
+ let data8 = data7.orgName;
11148
+ const _errs20 = errors;
11149
+ if (errors === _errs20) {
11150
+ if (typeof data8 === "string") {
11151
+ if (func1(data8) > 200) {
11152
+ 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" }];
11153
+ return false;
11154
+ }
11155
+ } else {
11156
+ 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" }];
11157
+ return false;
11158
+ }
11159
+ }
11160
+ var valid2 = _errs20 === errors;
11161
+ } else {
11162
+ var valid2 = true;
11163
+ }
11164
+ if (valid2) {
11165
+ if (data7.recipient !== void 0) {
11166
+ let data9 = data7.recipient;
11167
+ const _errs22 = errors;
11168
+ if (errors === _errs22) {
11169
+ if (errors === _errs22) {
11170
+ if (typeof data9 === "string") {
11171
+ if (!pattern12.test(data9)) {
11172
+ 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,}$"` }];
11173
+ return false;
11174
+ }
11175
+ } else {
11176
+ 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" }];
11177
+ return false;
11178
+ }
11179
+ }
11180
+ }
11181
+ var valid2 = _errs22 === errors;
11182
+ } else {
11183
+ var valid2 = true;
11184
+ }
11185
+ if (valid2) {
11186
+ if (data7.decisionDate !== void 0) {
11187
+ let data10 = data7.decisionDate;
11188
+ const _errs24 = errors;
11189
+ if (errors === _errs24) {
11190
+ if (typeof data10 === "string") {
11191
+ if (func1(data10) > 100) {
11192
+ 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" }];
11193
+ return false;
11194
+ }
11195
+ } else {
11196
+ 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" }];
11197
+ return false;
11198
+ }
11199
+ }
11200
+ var valid2 = _errs24 === errors;
11201
+ } else {
11202
+ var valid2 = true;
11203
+ }
11204
+ }
11205
+ }
11206
+ }
11207
+ }
11208
+ } else {
11209
+ 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" }];
11210
+ return false;
11211
+ }
11136
11212
  }
11137
11213
  var valid1 = _errs17 === errors;
11138
11214
  } else {
11139
11215
  var valid1 = true;
11140
11216
  }
11141
11217
  if (valid1) {
11142
- if (data.verdict !== void 0) {
11143
- let data8 = data.verdict;
11144
- const _errs19 = errors;
11145
- if (typeof data8 !== "string") {
11146
- 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" }];
11218
+ if (data.email !== void 0) {
11219
+ let data11 = data.email;
11220
+ const _errs26 = errors;
11221
+ if (typeof data11 !== "string") {
11222
+ 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" }];
11147
11223
  return false;
11148
11224
  }
11149
- if (!(data8 === "block" || data8 === "pass" || data8 === "pending")) {
11150
- 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" }];
11225
+ if (!(data11 === "not_queued" || data11 === "queued" || data11 === "accepted" || data11 === "failed" || data11 === "suppressed")) {
11226
+ 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" }];
11151
11227
  return false;
11152
11228
  }
11153
- var valid1 = _errs19 === errors;
11229
+ var valid1 = _errs26 === errors;
11154
11230
  } else {
11155
11231
  var valid1 = true;
11156
11232
  }
11157
11233
  if (valid1) {
11158
- if (data.reasonCode !== void 0) {
11159
- let data9 = data.reasonCode;
11160
- const _errs21 = errors;
11161
- if (errors === _errs21) {
11162
- if (typeof data9 === "string") {
11163
- if (func1(data9) > 100) {
11164
- 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" }];
11165
- return false;
11166
- }
11167
- } else {
11168
- 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" }];
11169
- return false;
11170
- }
11234
+ if (data.verdict !== void 0) {
11235
+ let data12 = data.verdict;
11236
+ const _errs28 = errors;
11237
+ if (typeof data12 !== "string") {
11238
+ 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" }];
11239
+ return false;
11171
11240
  }
11172
- var valid1 = _errs21 === errors;
11241
+ if (!(data12 === "block" || data12 === "pass" || data12 === "pending")) {
11242
+ 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" }];
11243
+ return false;
11244
+ }
11245
+ var valid1 = _errs28 === errors;
11173
11246
  } else {
11174
11247
  var valid1 = true;
11175
11248
  }
11176
11249
  if (valid1) {
11177
- if (data.choice !== void 0) {
11178
- let data10 = data.choice;
11179
- const _errs23 = errors;
11180
- if (typeof data10 !== "string") {
11181
- 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" }];
11182
- return false;
11183
- }
11184
- if (!(data10 === "adhere" || data10 === "supersede")) {
11185
- 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" }];
11186
- return false;
11250
+ if (data.reasonCode !== void 0) {
11251
+ let data13 = data.reasonCode;
11252
+ const _errs30 = errors;
11253
+ if (errors === _errs30) {
11254
+ if (typeof data13 === "string") {
11255
+ if (func1(data13) > 100) {
11256
+ 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" }];
11257
+ return false;
11258
+ }
11259
+ } else {
11260
+ 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" }];
11261
+ return false;
11262
+ }
11187
11263
  }
11188
- var valid1 = _errs23 === errors;
11264
+ var valid1 = _errs30 === errors;
11189
11265
  } else {
11190
11266
  var valid1 = true;
11191
11267
  }
11192
11268
  if (valid1) {
11193
- if (data.reason !== void 0) {
11194
- let data11 = data.reason;
11195
- const _errs25 = errors;
11196
- if (errors === _errs25) {
11197
- if (typeof data11 === "string") {
11198
- if (func1(data11) > 500) {
11199
- 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" }];
11200
- return false;
11201
- }
11202
- } else {
11203
- 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" }];
11204
- return false;
11205
- }
11269
+ if (data.choice !== void 0) {
11270
+ let data14 = data.choice;
11271
+ const _errs32 = errors;
11272
+ if (typeof data14 !== "string") {
11273
+ 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" }];
11274
+ return false;
11275
+ }
11276
+ if (!(data14 === "adhere" || data14 === "supersede")) {
11277
+ 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" }];
11278
+ return false;
11206
11279
  }
11207
- var valid1 = _errs25 === errors;
11280
+ var valid1 = _errs32 === errors;
11208
11281
  } else {
11209
11282
  var valid1 = true;
11210
11283
  }
11211
11284
  if (valid1) {
11212
- if (data.approvedDigest !== void 0) {
11213
- let data12 = data.approvedDigest;
11214
- const _errs27 = errors;
11215
- if (errors === _errs27) {
11216
- if (typeof data12 === "string") {
11217
- if (!pattern5.test(data12)) {
11218
- 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}$"' }];
11285
+ if (data.reason !== void 0) {
11286
+ let data15 = data.reason;
11287
+ const _errs34 = errors;
11288
+ if (errors === _errs34) {
11289
+ if (typeof data15 === "string") {
11290
+ if (func1(data15) > 500) {
11291
+ 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" }];
11219
11292
  return false;
11220
11293
  }
11221
11294
  } else {
11222
- 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" }];
11295
+ 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" }];
11223
11296
  return false;
11224
11297
  }
11225
11298
  }
11226
- var valid1 = _errs27 === errors;
11299
+ var valid1 = _errs34 === errors;
11227
11300
  } else {
11228
11301
  var valid1 = true;
11229
11302
  }
11303
+ if (valid1) {
11304
+ if (data.approvedDigest !== void 0) {
11305
+ let data16 = data.approvedDigest;
11306
+ const _errs36 = errors;
11307
+ if (errors === _errs36) {
11308
+ if (typeof data16 === "string") {
11309
+ if (!pattern5.test(data16)) {
11310
+ 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}$"' }];
11311
+ return false;
11312
+ }
11313
+ } else {
11314
+ 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" }];
11315
+ return false;
11316
+ }
11317
+ }
11318
+ var valid1 = _errs36 === errors;
11319
+ } else {
11320
+ var valid1 = true;
11321
+ }
11322
+ }
11230
11323
  }
11231
11324
  }
11232
11325
  }
@@ -12117,7 +12210,7 @@ function validate48(data, { instancePath = "", parentData, parentDataProperty, r
12117
12210
  }
12118
12211
  validate48.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
12119
12212
  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"] };
12120
- var pattern13 = new RegExp("^[0-9a-f]{8}$", "u");
12213
+ var pattern14 = new RegExp("^[0-9a-f]{8}$", "u");
12121
12214
  function validate49(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
12122
12215
  ;
12123
12216
  let vErrors = null;
@@ -12456,7 +12549,7 @@ function validate49(data, { instancePath = "", parentData, parentDataProperty, r
12456
12549
  const _errs27 = errors;
12457
12550
  if (errors === _errs27) {
12458
12551
  if (typeof data9 === "string") {
12459
- if (!pattern13.test(data9)) {
12552
+ if (!pattern14.test(data9)) {
12460
12553
  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}$"' };
12461
12554
  if (vErrors === null) {
12462
12555
  vErrors = [err24];
@@ -13512,8 +13605,8 @@ function validate51(data, { instancePath = "", parentData, parentDataProperty, r
13512
13605
  return errors === 0;
13513
13606
  }
13514
13607
  validate51.evaluated = { "dynamicProps": true, "dynamicItems": false };
13515
- var pattern14 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
13516
- var pattern15 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
13608
+ var pattern15 = new RegExp("^[A-Za-z0-9]{1,128}$", "u");
13609
+ var pattern16 = new RegExp("^https:\\/\\/github\\.com\\/apps\\/primitive(?:-staging)?\\/installations\\/new\\?state=[0-9a-f]{64}$", "u");
13517
13610
  function validate52(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
13518
13611
  ;
13519
13612
  let vErrors = null;
@@ -13595,7 +13688,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
13595
13688
  const _errs9 = errors;
13596
13689
  if (errors === _errs9) {
13597
13690
  if (typeof data3 === "string") {
13598
- if (!pattern14.test(data3)) {
13691
+ if (!pattern15.test(data3)) {
13599
13692
  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}$"' }];
13600
13693
  return false;
13601
13694
  }
@@ -13614,7 +13707,7 @@ function validate52(data, { instancePath = "", parentData, parentDataProperty, r
13614
13707
  const _errs11 = errors;
13615
13708
  if (errors === _errs11) {
13616
13709
  if (typeof data4 === "string") {
13617
- if (!pattern15.test(data4)) {
13710
+ if (!pattern16.test(data4)) {
13618
13711
  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}$"' }];
13619
13712
  return false;
13620
13713
  }
@@ -14022,7 +14115,7 @@ function validate54(data, { instancePath = "", parentData, parentDataProperty, r
14022
14115
  const _errs3 = errors;
14023
14116
  if (errors === _errs3) {
14024
14117
  if (typeof data0 === "string") {
14025
- if (!pattern14.test(data0)) {
14118
+ if (!pattern15.test(data0)) {
14026
14119
  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}$"' }];
14027
14120
  return false;
14028
14121
  }
@@ -15594,7 +15687,7 @@ function validate55(data, { instancePath = "", parentData, parentDataProperty, r
15594
15687
  }
15595
15688
  validate55.evaluated = { "dynamicProps": true, "dynamicItems": false };
15596
15689
  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": {} };
15597
- var pattern17 = new RegExp("^[A-Za-z0-9_-]+$", "u");
15690
+ var pattern18 = new RegExp("^[A-Za-z0-9_-]+$", "u");
15598
15691
  function validate56(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
15599
15692
  ;
15600
15693
  let vErrors = null;
@@ -15955,7 +16048,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
15955
16048
  }
15956
16049
  errors++;
15957
16050
  } else {
15958
- if (!pattern17.test(data11)) {
16051
+ if (!pattern18.test(data11)) {
15959
16052
  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_-]+$"' };
15960
16053
  if (vErrors === null) {
15961
16054
  vErrors = [err22];
@@ -16480,7 +16573,7 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
16480
16573
  }
16481
16574
  errors++;
16482
16575
  } else {
16483
- if (!pattern17.test(data26)) {
16576
+ if (!pattern18.test(data26)) {
16484
16577
  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_-]+$"' };
16485
16578
  if (vErrors === null) {
16486
16579
  vErrors = [err58];
@@ -16723,10 +16816,10 @@ function validate56(data, { instancePath = "", parentData, parentDataProperty, r
16723
16816
  }
16724
16817
  validate56.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
16725
16818
  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"] };
16726
- var pattern19 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
16727
- var pattern21 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
16728
- var pattern22 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
16729
- var pattern23 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
16819
+ var pattern20 = new RegExp("^[A-Za-z0-9._:-]{1,128}$", "u");
16820
+ var pattern22 = new RegExp("^[A-Za-z0-9]{1,64}$", "u");
16821
+ var pattern23 = new RegExp("^(?!@?$)(?!\\/)(?!.*\\/$)(?!.*\\/\\/)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)[^/]*\\.lock(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$", "u");
16822
+ var pattern24 = new RegExp("^[A-Za-z0-9][A-Za-z0-9._+-]*$", "u");
16730
16823
  function validate57(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
16731
16824
  ;
16732
16825
  let vErrors = null;
@@ -16792,7 +16885,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16792
16885
  const _errs8 = errors;
16793
16886
  if (errors === _errs8) {
16794
16887
  if (typeof data2 === "string") {
16795
- if (!pattern19.test(data2)) {
16888
+ if (!pattern20.test(data2)) {
16796
16889
  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}$"' }];
16797
16890
  return false;
16798
16891
  }
@@ -16811,7 +16904,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16811
16904
  const _errs10 = errors;
16812
16905
  if (errors === _errs10) {
16813
16906
  if (typeof data3 === "string") {
16814
- if (!pattern19.test(data3)) {
16907
+ if (!pattern20.test(data3)) {
16815
16908
  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}$"' }];
16816
16909
  return false;
16817
16910
  }
@@ -16830,7 +16923,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16830
16923
  const _errs12 = errors;
16831
16924
  if (errors === _errs12) {
16832
16925
  if (typeof data4 === "string") {
16833
- if (!pattern21.test(data4)) {
16926
+ if (!pattern22.test(data4)) {
16834
16927
  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}$"' }];
16835
16928
  return false;
16836
16929
  }
@@ -16902,7 +16995,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16902
16995
  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" }];
16903
16996
  return false;
16904
16997
  } else {
16905
- if (!pattern22.test(data8)) {
16998
+ if (!pattern23.test(data8)) {
16906
16999
  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(?:\\/|$))(?!.*\\.\\.)(?!.*@\\{)(?!.*[~^:?*\\\\]).+$"' }];
16907
17000
  return false;
16908
17001
  }
@@ -16942,7 +17035,7 @@ function validate57(data, { instancePath = "", parentData, parentDataProperty, r
16942
17035
  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" }];
16943
17036
  return false;
16944
17037
  } else {
16945
- if (!pattern23.test(data10)) {
17038
+ if (!pattern24.test(data10)) {
16946
17039
  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._+-]*$"' }];
16947
17040
  return false;
16948
17041
  }
@@ -17029,7 +17122,7 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17029
17122
  const _errs5 = errors;
17030
17123
  if (errors === _errs5) {
17031
17124
  if (typeof data1 === "string") {
17032
- if (!pattern19.test(data1)) {
17125
+ if (!pattern20.test(data1)) {
17033
17126
  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}$"' }];
17034
17127
  return false;
17035
17128
  }
@@ -17326,8 +17419,8 @@ function validate58(data, { instancePath = "", parentData, parentDataProperty, r
17326
17419
  return errors === 0;
17327
17420
  }
17328
17421
  validate58.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
17329
- var pattern25 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
17330
- var pattern26 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
17422
+ var pattern26 = new RegExp("^[A-Za-z0-9._-]{1,128}$", "u");
17423
+ var pattern27 = new RegExp("^pci_[A-Za-z0-9_-]{43}$", "u");
17331
17424
  function validate59(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
17332
17425
  ;
17333
17426
  let vErrors = null;
@@ -17352,7 +17445,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
17352
17445
  const _errs3 = errors;
17353
17446
  if (errors === _errs3) {
17354
17447
  if (typeof data0 === "string") {
17355
- if (!pattern25.test(data0)) {
17448
+ if (!pattern26.test(data0)) {
17356
17449
  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}$"' }];
17357
17450
  return false;
17358
17451
  }
@@ -17371,7 +17464,7 @@ function validate59(data, { instancePath = "", parentData, parentDataProperty, r
17371
17464
  const _errs5 = errors;
17372
17465
  if (errors === _errs5) {
17373
17466
  if (typeof data1 === "string") {
17374
- if (!pattern26.test(data1)) {
17467
+ if (!pattern27.test(data1)) {
17375
17468
  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}$"' }];
17376
17469
  return false;
17377
17470
  }
@@ -18034,7 +18127,7 @@ function validate62(data, { instancePath = "", parentData, parentDataProperty, r
18034
18127
  return errors === 0;
18035
18128
  }
18036
18129
  validate62.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18037
- 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");
18130
+ 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");
18038
18131
  function validate63(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18039
18132
  ;
18040
18133
  let vErrors = null;
@@ -18068,7 +18161,7 @@ function validate63(data, { instancePath = "", parentData, parentDataProperty, r
18068
18161
  const _errs3 = errors;
18069
18162
  if (errors === _errs3) {
18070
18163
  if (typeof data0 === "string") {
18071
- if (!pattern27.test(data0)) {
18164
+ if (!pattern28.test(data0)) {
18072
18165
  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}$"' }];
18073
18166
  return false;
18074
18167
  }
@@ -18133,7 +18226,7 @@ function validate64(data, { instancePath = "", parentData, parentDataProperty, r
18133
18226
  return errors === 0;
18134
18227
  }
18135
18228
  validate64.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18136
- var pattern29 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
18229
+ var pattern30 = new RegExp("^api_key_[A-Za-z0-9_-]+$", "u");
18137
18230
  function validate65(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18138
18231
  ;
18139
18232
  let vErrors = null;
@@ -18219,7 +18312,7 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
18219
18312
  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" }];
18220
18313
  return false;
18221
18314
  } else {
18222
- if (!pattern29.test(data2)) {
18315
+ if (!pattern30.test(data2)) {
18223
18316
  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_-]+$"' }];
18224
18317
  return false;
18225
18318
  }
@@ -18247,9 +18340,9 @@ function validate65(data, { instancePath = "", parentData, parentDataProperty, r
18247
18340
  return errors === 0;
18248
18341
  }
18249
18342
  validate65.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
18250
- var pattern31 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
18251
- var pattern32 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
18252
- var pattern33 = new RegExp("^[\\x21-\\x7e]+$", "u");
18343
+ var pattern32 = new RegExp("^[\\x21-\\x7e](?:[\\x20-\\x7e]{0,126}[\\x21-\\x7e])?$", "u");
18344
+ var pattern33 = new RegExp("^[^\\u0000-\\u001f\\u007f-\\u009f\\u2028\\u2029\\u061c\\u200b-\\u200f\\u202a-\\u202e\\u2060\\u2066-\\u2069\\ufeff]+$", "u");
18345
+ var pattern34 = new RegExp("^[\\x21-\\x7e]+$", "u");
18253
18346
  function validate66(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
18254
18347
  ;
18255
18348
  let vErrors = null;
@@ -18321,7 +18414,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
18321
18414
  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" }];
18322
18415
  return false;
18323
18416
  } else {
18324
- if (!pattern29.test(data2)) {
18417
+ if (!pattern30.test(data2)) {
18325
18418
  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_-]+$"' }];
18326
18419
  return false;
18327
18420
  }
@@ -18350,7 +18443,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
18350
18443
  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" }];
18351
18444
  return false;
18352
18445
  } else {
18353
- if (!pattern31.test(data3)) {
18446
+ if (!pattern32.test(data3)) {
18354
18447
  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])?$"' }];
18355
18448
  return false;
18356
18449
  }
@@ -18379,7 +18472,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
18379
18472
  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" }];
18380
18473
  return false;
18381
18474
  } else {
18382
- if (!pattern32.test(data4)) {
18475
+ if (!pattern33.test(data4)) {
18383
18476
  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]+$"' }];
18384
18477
  return false;
18385
18478
  }
@@ -18419,7 +18512,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
18419
18512
  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" }];
18420
18513
  return false;
18421
18514
  } else {
18422
- if (!pattern33.test(data6)) {
18515
+ if (!pattern34.test(data6)) {
18423
18516
  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]+$"' }];
18424
18517
  return false;
18425
18518
  }
@@ -18705,7 +18798,7 @@ function validate66(data, { instancePath = "", parentData, parentDataProperty, r
18705
18798
  }
18706
18799
  errors++;
18707
18800
  } else {
18708
- if (!pattern29.test(data11)) {
18801
+ if (!pattern30.test(data11)) {
18709
18802
  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_-]+$"' };
18710
18803
  if (vErrors === null) {
18711
18804
  vErrors = [err12];
@@ -18817,7 +18910,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
18817
18910
  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" }];
18818
18911
  return false;
18819
18912
  } else {
18820
- if (!pattern29.test(data0)) {
18913
+ if (!pattern30.test(data0)) {
18821
18914
  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_-]+$"' }];
18822
18915
  return false;
18823
18916
  }
@@ -18846,7 +18939,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
18846
18939
  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" }];
18847
18940
  return false;
18848
18941
  } else {
18849
- if (!pattern31.test(data1)) {
18942
+ if (!pattern32.test(data1)) {
18850
18943
  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])?$"' }];
18851
18944
  return false;
18852
18945
  }
@@ -18875,7 +18968,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
18875
18968
  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" }];
18876
18969
  return false;
18877
18970
  } else {
18878
- if (!pattern32.test(data2)) {
18971
+ if (!pattern33.test(data2)) {
18879
18972
  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]+$"' }];
18880
18973
  return false;
18881
18974
  }
@@ -18915,7 +19008,7 @@ function validate67(data, { instancePath = "", parentData, parentDataProperty, r
18915
19008
  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" }];
18916
19009
  return false;
18917
19010
  } else {
18918
- if (!pattern33.test(data4)) {
19011
+ if (!pattern34.test(data4)) {
18919
19012
  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]+$"' }];
18920
19013
  return false;
18921
19014
  }
@@ -19223,7 +19316,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
19223
19316
  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" }];
19224
19317
  return false;
19225
19318
  } else {
19226
- if (!pattern31.test(data1)) {
19319
+ if (!pattern32.test(data1)) {
19227
19320
  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])?$"' }];
19228
19321
  return false;
19229
19322
  }
@@ -19276,7 +19369,7 @@ function validate68(data, { instancePath = "", parentData, parentDataProperty, r
19276
19369
  return errors === 0;
19277
19370
  }
19278
19371
  validate68.evaluated = { "props": true, "dynamicProps": false, "dynamicItems": false };
19279
- var pattern45 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
19372
+ var pattern46 = new RegExp("^sk_[\\x21-\\x7e]+(?: [\\x21-\\x7e]+)*$", "u");
19280
19373
  function validate69(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
19281
19374
  ;
19282
19375
  let vErrors = null;
@@ -19337,7 +19430,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19337
19430
  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" }];
19338
19431
  return false;
19339
19432
  } else {
19340
- if (!pattern29.test(data1)) {
19433
+ if (!pattern30.test(data1)) {
19341
19434
  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_-]+$"' }];
19342
19435
  return false;
19343
19436
  }
@@ -19366,7 +19459,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19366
19459
  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" }];
19367
19460
  return false;
19368
19461
  } else {
19369
- if (!pattern31.test(data2)) {
19462
+ if (!pattern32.test(data2)) {
19370
19463
  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])?$"' }];
19371
19464
  return false;
19372
19465
  }
@@ -19395,7 +19488,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19395
19488
  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" }];
19396
19489
  return false;
19397
19490
  } else {
19398
- if (!pattern32.test(data3)) {
19491
+ if (!pattern33.test(data3)) {
19399
19492
  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]+$"' }];
19400
19493
  return false;
19401
19494
  }
@@ -19435,7 +19528,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19435
19528
  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" }];
19436
19529
  return false;
19437
19530
  } else {
19438
- if (!pattern33.test(data5)) {
19531
+ if (!pattern34.test(data5)) {
19439
19532
  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]+$"' }];
19440
19533
  return false;
19441
19534
  }
@@ -19697,7 +19790,7 @@ function validate69(data, { instancePath = "", parentData, parentDataProperty, r
19697
19790
  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" }];
19698
19791
  return false;
19699
19792
  } else {
19700
- if (!pattern45.test(data10)) {
19793
+ if (!pattern46.test(data10)) {
19701
19794
  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]+)*$"' }];
19702
19795
  return false;
19703
19796
  }
@@ -19819,7 +19912,7 @@ function validate71(data, { instancePath = "", parentData, parentDataProperty, r
19819
19912
  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" }];
19820
19913
  return false;
19821
19914
  } else {
19822
- if (!pattern29.test(data0)) {
19915
+ if (!pattern30.test(data0)) {
19823
19916
  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_-]+$"' }];
19824
19917
  return false;
19825
19918
  }
@@ -20083,7 +20176,7 @@ function validate73(data, { instancePath = "", parentData, parentDataProperty, r
20083
20176
  }
20084
20177
  validate73.evaluated = { "dynamicProps": true, "dynamicItems": false };
20085
20178
  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"] };
20086
- var pattern48 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
20179
+ var pattern49 = new RegExp("^client_[A-Za-z0-9_-]+$", "u");
20087
20180
  function validate74(data, { instancePath = "", parentData, parentDataProperty, rootData = data, dynamicAnchors = {} } = {}) {
20088
20181
  ;
20089
20182
  let vErrors = null;
@@ -20152,7 +20245,7 @@ function validate74(data, { instancePath = "", parentData, parentDataProperty, r
20152
20245
  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" }];
20153
20246
  return false;
20154
20247
  } else {
20155
- if (!pattern48.test(data2)) {
20248
+ if (!pattern49.test(data2)) {
20156
20249
  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_-]+$"' }];
20157
20250
  return false;
20158
20251
  }