la-machina-engine 0.19.1 → 0.19.3
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 +9 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -2
- 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.
|
|
@@ -1648,7 +1649,13 @@ function deepMerge(base, override) {
|
|
|
1648
1649
|
}
|
|
1649
1650
|
return result;
|
|
1650
1651
|
}
|
|
1651
|
-
var API_RUNTIME_KEYS = [
|
|
1652
|
+
var API_RUNTIME_KEYS = [
|
|
1653
|
+
"env",
|
|
1654
|
+
"resolveAuth",
|
|
1655
|
+
"resolveBaseUrl",
|
|
1656
|
+
"onRequest",
|
|
1657
|
+
"onResponse"
|
|
1658
|
+
];
|
|
1652
1659
|
function splitApiRuntime(user) {
|
|
1653
1660
|
const api = user.api;
|
|
1654
1661
|
if (api === void 0) return { stripped: user, runtime: {} };
|