@supacloud/admin 0.6.0 → 0.7.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 +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26515,8 +26515,9 @@ Actions: routes, upsert_route, update_route, delete_route, config, get_certifica
|
|
|
26515
26515
|
ref: optional(Type.String(), projectRef ? "可选:覆盖自动关联的项目 ref" : "项目 ref"),
|
|
26516
26516
|
route_id: optional(Type.String(), "[upsert_route/update_route/delete_route] 路由 ID(字母/数字/_/-,1-64)"),
|
|
26517
26517
|
hosts: withDescription(stringArray, "[upsert_route/update_route] 主机名列表,逗号分隔或 JSON 数组(1-20)"),
|
|
26518
|
-
paths: withDescription(stringArray, "[upsert_route/update_route] 路径列表,逗号分隔或 JSON 数组(1-
|
|
26518
|
+
paths: withDescription(stringArray, "[upsert_route/update_route] 路径列表,逗号分隔或 JSON 数组(1-32)"),
|
|
26519
26519
|
upstream: optional(Type.String(), "[upsert_route/update_route] 反代上游 host:port 或 http(s)://host[:port]"),
|
|
26520
|
+
managed_upstream: optional(stringEnum(["edge-functions"]), "[upsert_route/update_route] 托管上游(同步 Edge Function)"),
|
|
26520
26521
|
upstream_tls_insecure_skip_verify: optional(Type.Boolean(), "[upsert_route/update_route] 上游 TLS 跳过校验"),
|
|
26521
26522
|
static_root: optional(Type.String(), "[upsert_route/update_route] 静态站点根目录"),
|
|
26522
26523
|
protocol: optional(stringEnum(["http", "https"]), "[upsert_route/update_route] 可选请求协议匹配"),
|
|
@@ -26562,6 +26563,7 @@ Actions: routes, upsert_route, update_route, delete_route, config, get_certifica
|
|
|
26562
26563
|
hosts,
|
|
26563
26564
|
paths,
|
|
26564
26565
|
upstream,
|
|
26566
|
+
managed_upstream,
|
|
26565
26567
|
upstream_tls_insecure_skip_verify,
|
|
26566
26568
|
static_root,
|
|
26567
26569
|
protocol,
|
|
@@ -26607,6 +26609,8 @@ Actions: routes, upsert_route, update_route, delete_route, config, get_certifica
|
|
|
26607
26609
|
};
|
|
26608
26610
|
if (upstream !== undefined)
|
|
26609
26611
|
body.upstream = upstream;
|
|
26612
|
+
if (managed_upstream !== undefined)
|
|
26613
|
+
body.managed_upstream = managed_upstream;
|
|
26610
26614
|
if (upstream_tls_insecure_skip_verify !== undefined)
|
|
26611
26615
|
body.upstream_tls_insecure_skip_verify = upstream_tls_insecure_skip_verify;
|
|
26612
26616
|
if (static_root !== undefined)
|
|
@@ -26642,6 +26646,8 @@ Actions: routes, upsert_route, update_route, delete_route, config, get_certifica
|
|
|
26642
26646
|
};
|
|
26643
26647
|
if (upstream !== undefined)
|
|
26644
26648
|
body.upstream = upstream;
|
|
26649
|
+
if (managed_upstream !== undefined)
|
|
26650
|
+
body.managed_upstream = managed_upstream;
|
|
26645
26651
|
if (upstream_tls_insecure_skip_verify !== undefined)
|
|
26646
26652
|
body.upstream_tls_insecure_skip_verify = upstream_tls_insecure_skip_verify;
|
|
26647
26653
|
if (static_root !== undefined)
|