agent-contracts 0.19.5 → 0.21.0

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.
package/dist/index.js CHANGED
@@ -40456,9 +40456,9 @@ var require_errors = __commonJS({
40456
40456
  }
40457
40457
  });
40458
40458
 
40459
- // node_modules/ajv-formats/dist/formats.js
40459
+ // node_modules/@stoplight/spectral-core/node_modules/ajv-formats/dist/formats.js
40460
40460
  var require_formats2 = __commonJS({
40461
- "node_modules/ajv-formats/dist/formats.js"(exports) {
40461
+ "node_modules/@stoplight/spectral-core/node_modules/ajv-formats/dist/formats.js"(exports) {
40462
40462
  "use strict";
40463
40463
  Object.defineProperty(exports, "__esModule", { value: true });
40464
40464
  exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
@@ -40623,9 +40623,9 @@ var require_formats2 = __commonJS({
40623
40623
  }
40624
40624
  });
40625
40625
 
40626
- // node_modules/ajv-formats/dist/limit.js
40626
+ // node_modules/@stoplight/spectral-core/node_modules/ajv-formats/dist/limit.js
40627
40627
  var require_limit = __commonJS({
40628
- "node_modules/ajv-formats/dist/limit.js"(exports) {
40628
+ "node_modules/@stoplight/spectral-core/node_modules/ajv-formats/dist/limit.js"(exports) {
40629
40629
  "use strict";
40630
40630
  Object.defineProperty(exports, "__esModule", { value: true });
40631
40631
  exports.formatLimitDefinition = void 0;
@@ -40695,9 +40695,9 @@ var require_limit = __commonJS({
40695
40695
  }
40696
40696
  });
40697
40697
 
40698
- // node_modules/ajv-formats/dist/index.js
40698
+ // node_modules/@stoplight/spectral-core/node_modules/ajv-formats/dist/index.js
40699
40699
  var require_dist7 = __commonJS({
40700
- "node_modules/ajv-formats/dist/index.js"(exports, module) {
40700
+ "node_modules/@stoplight/spectral-core/node_modules/ajv-formats/dist/index.js"(exports, module) {
40701
40701
  "use strict";
40702
40702
  Object.defineProperty(exports, "__esModule", { value: true });
40703
40703
  var formats_1 = require_formats2();
@@ -48100,6 +48100,287 @@ var require_dist12 = __commonJS({
48100
48100
  }
48101
48101
  });
48102
48102
 
48103
+ // node_modules/@stoplight/spectral-functions/node_modules/ajv-formats/dist/formats.js
48104
+ var require_formats3 = __commonJS({
48105
+ "node_modules/@stoplight/spectral-functions/node_modules/ajv-formats/dist/formats.js"(exports) {
48106
+ "use strict";
48107
+ Object.defineProperty(exports, "__esModule", { value: true });
48108
+ exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
48109
+ function fmtDef(validate, compare) {
48110
+ return { validate, compare };
48111
+ }
48112
+ exports.fullFormats = {
48113
+ // date: http://tools.ietf.org/html/rfc3339#section-5.6
48114
+ date: fmtDef(date, compareDate),
48115
+ // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
48116
+ time: fmtDef(time, compareTime),
48117
+ "date-time": fmtDef(date_time, compareDateTime),
48118
+ // duration: https://tools.ietf.org/html/rfc3339#appendix-A
48119
+ duration: /^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,
48120
+ uri,
48121
+ "uri-reference": /^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,
48122
+ // uri-template: https://tools.ietf.org/html/rfc6570
48123
+ "uri-template": /^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,
48124
+ // For the source: https://gist.github.com/dperini/729294
48125
+ // For test cases: https://mathiasbynens.be/demo/url-regex
48126
+ url: /^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,
48127
+ email: /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,
48128
+ hostname: /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,
48129
+ // optimized https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9780596802837/ch07s16.html
48130
+ ipv4: /^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,
48131
+ ipv6: /^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,
48132
+ regex,
48133
+ // uuid: http://tools.ietf.org/html/rfc4122
48134
+ uuid: /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,
48135
+ // JSON-pointer: https://tools.ietf.org/html/rfc6901
48136
+ // uri fragment: https://tools.ietf.org/html/rfc3986#appendix-A
48137
+ "json-pointer": /^(?:\/(?:[^~/]|~0|~1)*)*$/,
48138
+ "json-pointer-uri-fragment": /^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,
48139
+ // relative JSON-pointer: http://tools.ietf.org/html/draft-luff-relative-json-pointer-00
48140
+ "relative-json-pointer": /^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,
48141
+ // the following formats are used by the openapi specification: https://spec.openapis.org/oas/v3.0.0#data-types
48142
+ // byte: https://github.com/miguelmota/is-base64
48143
+ byte,
48144
+ // signed 32 bit integer
48145
+ int32: { type: "number", validate: validateInt32 },
48146
+ // signed 64 bit integer
48147
+ int64: { type: "number", validate: validateInt64 },
48148
+ // C-type float
48149
+ float: { type: "number", validate: validateNumber },
48150
+ // C-type double
48151
+ double: { type: "number", validate: validateNumber },
48152
+ // hint to the UI to hide input strings
48153
+ password: true,
48154
+ // unchecked string payload
48155
+ binary: true
48156
+ };
48157
+ exports.fastFormats = {
48158
+ ...exports.fullFormats,
48159
+ date: fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, compareDate),
48160
+ time: fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i, compareTime),
48161
+ "date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareDateTime),
48162
+ // uri: https://github.com/mafintosh/is-my-json-valid/blob/master/formats.js
48163
+ uri: /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,
48164
+ "uri-reference": /^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,
48165
+ // email (sources from jsen validator):
48166
+ // http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address#answer-8829363
48167
+ // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')
48168
+ email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i
48169
+ };
48170
+ exports.formatNames = Object.keys(exports.fullFormats);
48171
+ function isLeapYear(year) {
48172
+ return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
48173
+ }
48174
+ var DATE = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
48175
+ var DAYS = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
48176
+ function date(str) {
48177
+ const matches = DATE.exec(str);
48178
+ if (!matches)
48179
+ return false;
48180
+ const year = +matches[1];
48181
+ const month = +matches[2];
48182
+ const day = +matches[3];
48183
+ return month >= 1 && month <= 12 && day >= 1 && day <= (month === 2 && isLeapYear(year) ? 29 : DAYS[month]);
48184
+ }
48185
+ function compareDate(d1, d2) {
48186
+ if (!(d1 && d2))
48187
+ return void 0;
48188
+ if (d1 > d2)
48189
+ return 1;
48190
+ if (d1 < d2)
48191
+ return -1;
48192
+ return 0;
48193
+ }
48194
+ var TIME = /^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;
48195
+ function time(str, withTimeZone) {
48196
+ const matches = TIME.exec(str);
48197
+ if (!matches)
48198
+ return false;
48199
+ const hour = +matches[1];
48200
+ const minute = +matches[2];
48201
+ const second = +matches[3];
48202
+ const timeZone = matches[5];
48203
+ return (hour <= 23 && minute <= 59 && second <= 59 || hour === 23 && minute === 59 && second === 60) && (!withTimeZone || timeZone !== "");
48204
+ }
48205
+ function compareTime(t1, t22) {
48206
+ if (!(t1 && t22))
48207
+ return void 0;
48208
+ const a1 = TIME.exec(t1);
48209
+ const a22 = TIME.exec(t22);
48210
+ if (!(a1 && a22))
48211
+ return void 0;
48212
+ t1 = a1[1] + a1[2] + a1[3] + (a1[4] || "");
48213
+ t22 = a22[1] + a22[2] + a22[3] + (a22[4] || "");
48214
+ if (t1 > t22)
48215
+ return 1;
48216
+ if (t1 < t22)
48217
+ return -1;
48218
+ return 0;
48219
+ }
48220
+ var DATE_TIME_SEPARATOR = /t|\s/i;
48221
+ function date_time(str) {
48222
+ const dateTime = str.split(DATE_TIME_SEPARATOR);
48223
+ return dateTime.length === 2 && date(dateTime[0]) && time(dateTime[1], true);
48224
+ }
48225
+ function compareDateTime(dt1, dt2) {
48226
+ if (!(dt1 && dt2))
48227
+ return void 0;
48228
+ const [d1, t1] = dt1.split(DATE_TIME_SEPARATOR);
48229
+ const [d2, t22] = dt2.split(DATE_TIME_SEPARATOR);
48230
+ const res = compareDate(d1, d2);
48231
+ if (res === void 0)
48232
+ return void 0;
48233
+ return res || compareTime(t1, t22);
48234
+ }
48235
+ var NOT_URI_FRAGMENT = /\/|:/;
48236
+ var URI = /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;
48237
+ function uri(str) {
48238
+ return NOT_URI_FRAGMENT.test(str) && URI.test(str);
48239
+ }
48240
+ var BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;
48241
+ function byte(str) {
48242
+ BYTE.lastIndex = 0;
48243
+ return BYTE.test(str);
48244
+ }
48245
+ var MIN_INT32 = -(2 ** 31);
48246
+ var MAX_INT32 = 2 ** 31 - 1;
48247
+ function validateInt32(value) {
48248
+ return Number.isInteger(value) && value <= MAX_INT32 && value >= MIN_INT32;
48249
+ }
48250
+ function validateInt64(value) {
48251
+ return Number.isInteger(value);
48252
+ }
48253
+ function validateNumber() {
48254
+ return true;
48255
+ }
48256
+ var Z_ANCHOR = /[^\\]\\Z/;
48257
+ function regex(str) {
48258
+ if (Z_ANCHOR.test(str))
48259
+ return false;
48260
+ try {
48261
+ new RegExp(str);
48262
+ return true;
48263
+ } catch (e3) {
48264
+ return false;
48265
+ }
48266
+ }
48267
+ }
48268
+ });
48269
+
48270
+ // node_modules/@stoplight/spectral-functions/node_modules/ajv-formats/dist/limit.js
48271
+ var require_limit2 = __commonJS({
48272
+ "node_modules/@stoplight/spectral-functions/node_modules/ajv-formats/dist/limit.js"(exports) {
48273
+ "use strict";
48274
+ Object.defineProperty(exports, "__esModule", { value: true });
48275
+ exports.formatLimitDefinition = void 0;
48276
+ var ajv_1 = __require("ajv");
48277
+ var codegen_1 = __require("ajv/dist/compile/codegen");
48278
+ var ops = codegen_1.operators;
48279
+ var KWDs = {
48280
+ formatMaximum: { okStr: "<=", ok: ops.LTE, fail: ops.GT },
48281
+ formatMinimum: { okStr: ">=", ok: ops.GTE, fail: ops.LT },
48282
+ formatExclusiveMaximum: { okStr: "<", ok: ops.LT, fail: ops.GTE },
48283
+ formatExclusiveMinimum: { okStr: ">", ok: ops.GT, fail: ops.LTE }
48284
+ };
48285
+ var error = {
48286
+ message: ({ keyword, schemaCode }) => codegen_1.str`should be ${KWDs[keyword].okStr} ${schemaCode}`,
48287
+ params: ({ keyword, schemaCode }) => codegen_1._`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`
48288
+ };
48289
+ exports.formatLimitDefinition = {
48290
+ keyword: Object.keys(KWDs),
48291
+ type: "string",
48292
+ schemaType: "string",
48293
+ $data: true,
48294
+ error,
48295
+ code(cxt) {
48296
+ const { gen, data, schemaCode, keyword, it } = cxt;
48297
+ const { opts, self: self2 } = it;
48298
+ if (!opts.validateFormats)
48299
+ return;
48300
+ const fCxt = new ajv_1.KeywordCxt(it, self2.RULES.all.format.definition, "format");
48301
+ if (fCxt.$data)
48302
+ validate$DataFormat();
48303
+ else
48304
+ validateFormat();
48305
+ function validate$DataFormat() {
48306
+ const fmts = gen.scopeValue("formats", {
48307
+ ref: self2.formats,
48308
+ code: opts.code.formats
48309
+ });
48310
+ const fmt = gen.const("fmt", codegen_1._`${fmts}[${fCxt.schemaCode}]`);
48311
+ cxt.fail$data(codegen_1.or(codegen_1._`typeof ${fmt} != "object"`, codegen_1._`${fmt} instanceof RegExp`, codegen_1._`typeof ${fmt}.compare != "function"`, compareCode(fmt)));
48312
+ }
48313
+ function validateFormat() {
48314
+ const format2 = fCxt.schema;
48315
+ const fmtDef = self2.formats[format2];
48316
+ if (!fmtDef || fmtDef === true)
48317
+ return;
48318
+ if (typeof fmtDef != "object" || fmtDef instanceof RegExp || typeof fmtDef.compare != "function") {
48319
+ throw new Error(`"${keyword}": format "${format2}" does not define "compare" function`);
48320
+ }
48321
+ const fmt = gen.scopeValue("formats", {
48322
+ key: format2,
48323
+ ref: fmtDef,
48324
+ code: opts.code.formats ? codegen_1._`${opts.code.formats}${codegen_1.getProperty(format2)}` : void 0
48325
+ });
48326
+ cxt.fail$data(compareCode(fmt));
48327
+ }
48328
+ function compareCode(fmt) {
48329
+ return codegen_1._`${fmt}.compare(${data}, ${schemaCode}) ${KWDs[keyword].fail} 0`;
48330
+ }
48331
+ },
48332
+ dependencies: ["format"]
48333
+ };
48334
+ var formatLimitPlugin = (ajv2) => {
48335
+ ajv2.addKeyword(exports.formatLimitDefinition);
48336
+ return ajv2;
48337
+ };
48338
+ exports.default = formatLimitPlugin;
48339
+ }
48340
+ });
48341
+
48342
+ // node_modules/@stoplight/spectral-functions/node_modules/ajv-formats/dist/index.js
48343
+ var require_dist13 = __commonJS({
48344
+ "node_modules/@stoplight/spectral-functions/node_modules/ajv-formats/dist/index.js"(exports, module) {
48345
+ "use strict";
48346
+ Object.defineProperty(exports, "__esModule", { value: true });
48347
+ var formats_1 = require_formats3();
48348
+ var limit_1 = require_limit2();
48349
+ var codegen_1 = __require("ajv/dist/compile/codegen");
48350
+ var fullName = new codegen_1.Name("fullFormats");
48351
+ var fastName = new codegen_1.Name("fastFormats");
48352
+ var formatsPlugin = (ajv2, opts = { keywords: true }) => {
48353
+ if (Array.isArray(opts)) {
48354
+ addFormats(ajv2, opts, formats_1.fullFormats, fullName);
48355
+ return ajv2;
48356
+ }
48357
+ const [formats, exportName] = opts.mode === "fast" ? [formats_1.fastFormats, fastName] : [formats_1.fullFormats, fullName];
48358
+ const list = opts.formats || formats_1.formatNames;
48359
+ addFormats(ajv2, list, formats, exportName);
48360
+ if (opts.keywords)
48361
+ limit_1.default(ajv2);
48362
+ return ajv2;
48363
+ };
48364
+ formatsPlugin.get = (name, mode = "full") => {
48365
+ const formats = mode === "fast" ? formats_1.fastFormats : formats_1.fullFormats;
48366
+ const f2 = formats[name];
48367
+ if (!f2)
48368
+ throw new Error(`Unknown format "${name}"`);
48369
+ return f2;
48370
+ };
48371
+ function addFormats(ajv2, list, fs, exportName) {
48372
+ var _a;
48373
+ var _b;
48374
+ (_a = (_b = ajv2.opts.code).formats) !== null && _a !== void 0 ? _a : _b.formats = codegen_1._`require("ajv-formats/dist/formats").${exportName}`;
48375
+ for (const f2 of list)
48376
+ ajv2.addFormat(f2, fs[f2]);
48377
+ }
48378
+ module.exports = exports = formatsPlugin;
48379
+ Object.defineProperty(exports, "__esModule", { value: true });
48380
+ exports.default = formatsPlugin;
48381
+ }
48382
+ });
48383
+
48103
48384
  // node_modules/@stoplight/spectral-functions/dist/schema/draft4.json
48104
48385
  var require_draft42 = __commonJS({
48105
48386
  "node_modules/@stoplight/spectral-functions/dist/schema/draft4.json"(exports, module) {
@@ -48254,7 +48535,7 @@ var require_ajv2 = __commonJS({
48254
48535
  var _2019_1 = (0, tslib_1.__importDefault)(__require("ajv/dist/2019"));
48255
48536
  var _2020_1 = (0, tslib_1.__importDefault)(__require("ajv/dist/2020"));
48256
48537
  var ajv_draft_04_1 = (0, tslib_1.__importDefault)(require_dist12());
48257
- var ajv_formats_1 = (0, tslib_1.__importDefault)(require_dist7());
48538
+ var ajv_formats_1 = (0, tslib_1.__importDefault)(require_dist13());
48258
48539
  var ajv_errors_1 = (0, tslib_1.__importDefault)(require_dist8());
48259
48540
  var draft6MetaSchema = (0, tslib_1.__importStar)(__require("ajv/dist/refs/json-schema-draft-06.json"));
48260
48541
  var draft4MetaSchema = (0, tslib_1.__importStar)(require_draft42());
@@ -48545,7 +48826,7 @@ var require_or = __commonJS({
48545
48826
  });
48546
48827
 
48547
48828
  // node_modules/@stoplight/spectral-functions/dist/index.js
48548
- var require_dist13 = __commonJS({
48829
+ var require_dist14 = __commonJS({
48549
48830
  "node_modules/@stoplight/spectral-functions/dist/index.js"(exports) {
48550
48831
  "use strict";
48551
48832
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -51665,7 +51946,7 @@ function lint(dsl, rules = builtinRules) {
51665
51946
  var import_spectral_core7 = __toESM(require_dist9(), 1);
51666
51947
 
51667
51948
  // src/linter/spectral/ruleset.ts
51668
- var import_spectral_functions = __toESM(require_dist13(), 1);
51949
+ var import_spectral_functions = __toESM(require_dist14(), 1);
51669
51950
 
51670
51951
  // src/linter/spectral/functions/ref-exists.ts
51671
51952
  var import_spectral_core = __toESM(require_dist9(), 1);