la-machina-engine 0.19.1 → 0.19.2
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.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1413,10 +1413,11 @@ var RESERVED_DEFAULT_HEADER_EXACT = /* @__PURE__ */ new Set([
|
|
|
1413
1413
|
"proxy-authorization",
|
|
1414
1414
|
"x-auth-token"
|
|
1415
1415
|
]);
|
|
1416
|
+
var INTEGRATION_BASE_URL_REF_RE = /^\$integration:[a-z][a-z0-9_-]*\.[a-zA-Z_][a-zA-Z0-9_]*$/;
|
|
1416
1417
|
var ApiServiceSchema = import_zod.z.object({
|
|
1417
1418
|
name: import_zod.z.string().min(1),
|
|
1418
1419
|
description: import_zod.z.string().optional(),
|
|
1419
|
-
baseUrl: import_zod.z.string().url(),
|
|
1420
|
+
baseUrl: import_zod.z.union([import_zod.z.string().url(), import_zod.z.string().regex(INTEGRATION_BASE_URL_REF_RE)]),
|
|
1420
1421
|
auth: ApiAuthSchema.optional(),
|
|
1421
1422
|
// Allow both strings and RegExp values via z.union — RegExp is
|
|
1422
1423
|
// serialized as its source when cloned, so we accept both.
|