@distilled.cloud/vercel 1.0.0-rc.7 → 1.0.0-rc.9
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/LICENSE +201 -0
- package/lib/services/access_groups.d.ts +1 -1
- package/lib/services/access_groups.d.ts.map +1 -1
- package/lib/services/access_groups.js +1 -1
- package/lib/services/access_groups.js.map +1 -1
- package/lib/services/ai_gateway.js +1 -1
- package/lib/services/ai_gateway.js.map +1 -1
- package/lib/services/aliases.d.ts +3 -3
- package/lib/services/aliases.d.ts.map +1 -1
- package/lib/services/aliases.js +4 -4
- package/lib/services/aliases.js.map +1 -1
- package/lib/services/api_ai_gateway.d.ts +275 -0
- package/lib/services/api_ai_gateway.d.ts.map +1 -0
- package/lib/services/api_ai_gateway.js +229 -0
- package/lib/services/api_ai_gateway.js.map +1 -0
- package/lib/services/artifacts.d.ts +1 -1
- package/lib/services/artifacts.d.ts.map +1 -1
- package/lib/services/artifacts.js +12 -12
- package/lib/services/artifacts.js.map +1 -1
- package/lib/services/authentication.js +1 -1
- package/lib/services/authentication.js.map +1 -1
- package/lib/services/billing.d.ts +145 -7
- package/lib/services/billing.d.ts.map +1 -1
- package/lib/services/billing.js +121 -5
- package/lib/services/billing.js.map +1 -1
- package/lib/services/bulk_redirects.d.ts +4 -4
- package/lib/services/bulk_redirects.d.ts.map +1 -1
- package/lib/services/bulk_redirects.js +4 -4
- package/lib/services/bulk_redirects.js.map +1 -1
- package/lib/services/certs.d.ts +9 -9
- package/lib/services/certs.d.ts.map +1 -1
- package/lib/services/certs.js +10 -12
- package/lib/services/certs.js.map +1 -1
- package/lib/services/checks_v2.d.ts +5 -0
- package/lib/services/checks_v2.d.ts.map +1 -1
- package/lib/services/checks_v2.js +6 -1
- package/lib/services/checks_v2.js.map +1 -1
- package/lib/services/connect.d.ts +1721 -527
- package/lib/services/connect.d.ts.map +1 -1
- package/lib/services/connect.js +1034 -414
- package/lib/services/connect.js.map +1 -1
- package/lib/services/deployments.d.ts +338 -30
- package/lib/services/deployments.d.ts.map +1 -1
- package/lib/services/deployments.js +335 -11
- package/lib/services/deployments.js.map +1 -1
- package/lib/services/dns.d.ts +13 -13
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +13 -14
- package/lib/services/dns.js.map +1 -1
- package/lib/services/domains.d.ts +55 -27
- package/lib/services/domains.d.ts.map +1 -1
- package/lib/services/domains.js +38 -25
- package/lib/services/domains.js.map +1 -1
- package/lib/services/domains_registrar.d.ts.map +1 -1
- package/lib/services/domains_registrar.js +1 -1
- package/lib/services/domains_registrar.js.map +1 -1
- package/lib/services/drains.d.ts +8 -8
- package/lib/services/drains.d.ts.map +1 -1
- package/lib/services/drains.js +1 -1
- package/lib/services/drains.js.map +1 -1
- package/lib/services/edge_cache.js +1 -1
- package/lib/services/edge_cache.js.map +1 -1
- package/lib/services/environment.d.ts +39 -39
- package/lib/services/environment.d.ts.map +1 -1
- package/lib/services/environment.js +35 -37
- package/lib/services/environment.js.map +1 -1
- package/lib/services/feature_flags.d.ts +93 -309
- package/lib/services/feature_flags.d.ts.map +1 -1
- package/lib/services/feature_flags.js +93 -303
- package/lib/services/feature_flags.js.map +1 -1
- package/lib/services/global_config.d.ts +40 -40
- package/lib/services/global_config.d.ts.map +1 -1
- package/lib/services/global_config.js +16 -14
- package/lib/services/global_config.js.map +1 -1
- package/lib/services/index.d.ts +3 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -1
- package/lib/services/integrations.d.ts +44 -17
- package/lib/services/integrations.d.ts.map +1 -1
- package/lib/services/integrations.js +32 -7
- package/lib/services/integrations.js.map +1 -1
- package/lib/services/kms.d.ts +1095 -0
- package/lib/services/kms.d.ts.map +1 -0
- package/lib/services/kms.js +982 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/log_drains.d.ts +4 -4
- package/lib/services/log_drains.d.ts.map +1 -1
- package/lib/services/log_drains.js +1 -1
- package/lib/services/log_drains.js.map +1 -1
- package/lib/services/logs.js +1 -1
- package/lib/services/logs.js.map +1 -1
- package/lib/services/marketplace.d.ts +95 -33
- package/lib/services/marketplace.d.ts.map +1 -1
- package/lib/services/marketplace.js +123 -31
- package/lib/services/marketplace.js.map +1 -1
- package/lib/services/microfrontends.d.ts +290 -250
- package/lib/services/microfrontends.d.ts.map +1 -1
- package/lib/services/microfrontends.js +281 -244
- package/lib/services/microfrontends.js.map +1 -1
- package/lib/services/misc.d.ts +192 -0
- package/lib/services/misc.d.ts.map +1 -0
- package/lib/services/misc.js +125 -0
- package/lib/services/misc.js.map +1 -0
- package/lib/services/networking.d.ts +123 -2
- package/lib/services/networking.d.ts.map +1 -1
- package/lib/services/networking.js +132 -2
- package/lib/services/networking.js.map +1 -1
- package/lib/services/observability.js +1 -1
- package/lib/services/observability.js.map +1 -1
- package/lib/services/project_members.js +1 -1
- package/lib/services/project_members.js.map +1 -1
- package/lib/services/project_routes.d.ts.map +1 -1
- package/lib/services/project_routes.js +1 -1
- package/lib/services/project_routes.js.map +1 -1
- package/lib/services/projects.d.ts +356 -116
- package/lib/services/projects.d.ts.map +1 -1
- package/lib/services/projects.js +260 -64
- package/lib/services/projects.js.map +1 -1
- package/lib/services/rolling_release.d.ts +2 -2
- package/lib/services/rolling_release.d.ts.map +1 -1
- package/lib/services/rolling_release.js +1 -1
- package/lib/services/rolling_release.js.map +1 -1
- package/lib/services/sandboxes.d.ts +1007 -410
- package/lib/services/sandboxes.d.ts.map +1 -1
- package/lib/services/sandboxes.js +732 -293
- package/lib/services/sandboxes.js.map +1 -1
- package/lib/services/security.d.ts +590 -275
- package/lib/services/security.d.ts.map +1 -1
- package/lib/services/security.js +562 -208
- package/lib/services/security.js.map +1 -1
- package/lib/services/storage.d.ts +69 -69
- package/lib/services/storage.d.ts.map +1 -1
- package/lib/services/storage.js +59 -59
- package/lib/services/storage.js.map +1 -1
- package/lib/services/teams.d.ts +351 -328
- package/lib/services/teams.d.ts.map +1 -1
- package/lib/services/teams.js +299 -284
- package/lib/services/teams.js.map +1 -1
- package/lib/services/user.d.ts +4237 -3650
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +3426 -2935
- package/lib/services/user.js.map +1 -1
- package/lib/services/vcr.d.ts +80 -122
- package/lib/services/vcr.d.ts.map +1 -1
- package/lib/services/vcr.js +89 -144
- package/lib/services/vcr.js.map +1 -1
- package/lib/services/web_analytics.d.ts +42 -10
- package/lib/services/web_analytics.d.ts.map +1 -1
- package/lib/services/web_analytics.js +39 -9
- package/lib/services/web_analytics.js.map +1 -1
- package/lib/services/webhooks.d.ts +13 -1
- package/lib/services/webhooks.d.ts.map +1 -1
- package/lib/services/webhooks.js +11 -1
- package/lib/services/webhooks.js.map +1 -1
- package/package.json +6 -5
- package/src/services/access_groups.ts +5 -2
- package/src/services/ai_gateway.ts +1 -1
- package/src/services/aliases.ts +9 -8
- package/src/services/api_ai_gateway.ts +607 -0
- package/src/services/artifacts.ts +13 -13
- package/src/services/authentication.ts +1 -1
- package/src/services/billing.ts +358 -26
- package/src/services/bulk_redirects.ts +10 -10
- package/src/services/certs.ts +20 -26
- package/src/services/checks_v2.ts +11 -1
- package/src/services/connect.ts +3330 -1121
- package/src/services/deployments.ts +1513 -429
- package/src/services/dns.ts +26 -27
- package/src/services/domains.ts +119 -63
- package/src/services/domains_registrar.ts +37 -37
- package/src/services/drains.ts +35 -18
- package/src/services/edge_cache.ts +1 -1
- package/src/services/environment.ts +99 -95
- package/src/services/feature_flags.ts +332 -884
- package/src/services/global_config.ts +59 -57
- package/src/services/index.ts +3 -0
- package/src/services/integrations.ts +870 -668
- package/src/services/kms.ts +2631 -0
- package/src/services/log_drains.ts +73 -41
- package/src/services/logs.ts +1 -1
- package/src/services/marketplace.ts +324 -96
- package/src/services/microfrontends.ts +1582 -1306
- package/src/services/misc.ts +364 -0
- package/src/services/networking.ts +339 -4
- package/src/services/observability.ts +1 -1
- package/src/services/project_members.ts +1 -1
- package/src/services/project_routes.ts +25 -16
- package/src/services/projects.ts +1987 -691
- package/src/services/rolling_release.ts +100 -96
- package/src/services/sandboxes.ts +3013 -1268
- package/src/services/security.ts +3433 -1845
- package/src/services/storage.ts +145 -141
- package/src/services/teams.ts +1061 -986
- package/src/services/user.ts +8490 -6901
- package/src/services/vcr.ts +349 -443
- package/src/services/web_analytics.ts +83 -13
- package/src/services/webhooks.ts +32 -1
|
@@ -64,236 +64,244 @@ declare const UnprocessableEntity_base: S.Class<UnprocessableEntity, S.TaggedStr
|
|
|
64
64
|
export declare class UnprocessableEntity extends /*@__PURE__*/ UnprocessableEntity_base {
|
|
65
65
|
}
|
|
66
66
|
/** The network access policy mode. Use \"allow-all\" to permit all outbound traffic. Use \"deny-all\" to block all outbound traffic. Use \"custom\" to specify explicit allow/deny rules. */
|
|
67
|
-
export type
|
|
68
|
-
export declare const
|
|
67
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase0Mode = "allow-all" | "deny-all" | "custom" | "default-allow" | "default-deny";
|
|
68
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase0Mode: any;
|
|
69
69
|
/** List of domain names the sandbox is allowed to connect to. Only applies when mode is \"custom\". Supports wildcard patterns (e.g., \"*.example.com\" matches all subdomains). */
|
|
70
|
-
export type
|
|
71
|
-
export declare const
|
|
70
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase0AllowedDomainsList = Array<string>;
|
|
71
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase0AllowedDomainsList: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0AllowedDomainsList>;
|
|
72
72
|
/** List of IP address ranges (in CIDR notation) the sandbox is allowed to connect to. Traffic to these addresses bypasses domain-based restrictions. */
|
|
73
|
-
export type
|
|
74
|
-
export declare const
|
|
73
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase0AllowedCIDRsList = Array<string>;
|
|
74
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase0AllowedCIDRsList: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0AllowedCIDRsList>;
|
|
75
75
|
/** List of IP address ranges (in CIDR notation) the sandbox is blocked from connecting to. These rules take precedence over all allowed rules. */
|
|
76
|
-
export type
|
|
77
|
-
export declare const
|
|
76
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase0DeniedCIDRsList = Array<string>;
|
|
77
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase0DeniedCIDRsList: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0DeniedCIDRsList>;
|
|
78
78
|
/** HTTP headers to inject into requests for this domain. Existing headers with the same name will be overridden. */
|
|
79
|
-
export type
|
|
79
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemHeadersMap = {
|
|
80
80
|
[key: string]: string | undefined;
|
|
81
81
|
};
|
|
82
|
-
export declare const
|
|
82
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemHeadersMap: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemHeadersMap>;
|
|
83
83
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
84
|
-
export interface
|
|
84
|
+
export interface CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath {
|
|
85
85
|
/** Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys. */
|
|
86
86
|
exact?: string;
|
|
87
87
|
/** Match values that start with the given prefix. */
|
|
88
88
|
startsWith?: string;
|
|
89
89
|
}
|
|
90
|
-
export declare const
|
|
90
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
91
91
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
92
|
-
export type
|
|
93
|
-
export declare const
|
|
92
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList = Array<string>;
|
|
93
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList>;
|
|
94
94
|
/** Matcher for the entry key (header name or query key). */
|
|
95
|
-
export type
|
|
96
|
-
export declare const
|
|
95
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
96
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
97
97
|
/** Matcher for the entry value. */
|
|
98
|
-
export type
|
|
99
|
-
export declare const
|
|
100
|
-
export interface
|
|
98
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
99
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
100
|
+
export interface CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem {
|
|
101
101
|
/** Matcher for the entry key (header name or query key). */
|
|
102
|
-
key?:
|
|
102
|
+
key?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
103
103
|
/** Matcher for the entry value. */
|
|
104
|
-
value?:
|
|
104
|
+
value?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
105
105
|
}
|
|
106
|
-
export declare const
|
|
106
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
107
107
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
108
|
-
export type
|
|
109
|
-
export declare const
|
|
108
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
109
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList>;
|
|
110
110
|
/** Matcher for the entry key (header name or query key). */
|
|
111
|
-
export type
|
|
112
|
-
export declare const
|
|
111
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
112
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
113
113
|
/** Matcher for the entry value. */
|
|
114
|
-
export type
|
|
115
|
-
export declare const
|
|
116
|
-
export type
|
|
117
|
-
export declare const
|
|
114
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
115
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
116
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
117
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
118
118
|
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
119
|
-
export type
|
|
120
|
-
export declare const
|
|
119
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
120
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList>;
|
|
121
121
|
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
122
|
-
export interface
|
|
122
|
+
export interface CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatch {
|
|
123
123
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
124
|
-
path?:
|
|
124
|
+
path?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
125
125
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
126
|
-
method?:
|
|
126
|
+
method?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList;
|
|
127
127
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
128
|
-
queryString?:
|
|
128
|
+
queryString?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList;
|
|
129
129
|
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
130
|
-
headers?:
|
|
130
|
+
headers?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList;
|
|
131
131
|
}
|
|
132
|
-
export declare const
|
|
133
|
-
export interface
|
|
132
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatch: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatch>;
|
|
133
|
+
export interface CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItem {
|
|
134
134
|
/** The domain (or pattern) of requests to add headers for. Supports wildcards like *.example.com. */
|
|
135
135
|
domain: string;
|
|
136
136
|
/** HTTP headers to inject into requests for this domain. Existing headers with the same name will be overridden. */
|
|
137
|
-
headers:
|
|
137
|
+
headers: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemHeadersMap;
|
|
138
138
|
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
139
|
-
match?:
|
|
139
|
+
match?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatch;
|
|
140
140
|
}
|
|
141
|
-
export declare const
|
|
141
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItem>;
|
|
142
142
|
/** HTTP header injection rules for outgoing requests matching specific domains. Traffic to matching domains will be intercepted instead of proxied through encrypted connections. */
|
|
143
|
-
export type
|
|
144
|
-
export declare const
|
|
143
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItem>;
|
|
144
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesList: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesList>;
|
|
145
145
|
/** Network access policy for the sandbox.\n Controls which external hosts the sandbox can communicate with.\n Use \"allow-all\" mode to allow all traffic, \"deny-all\" to block all traffic or \"custom\" to provide specific rules. */
|
|
146
|
-
export interface
|
|
146
|
+
export interface CreateSandboxesByNameForkV2RequestNetworkPolicyCase0 {
|
|
147
147
|
/** The network access policy mode. Use \"allow-all\" to permit all outbound traffic. Use \"deny-all\" to block all outbound traffic. Use \"custom\" to specify explicit allow/deny rules. */
|
|
148
|
-
mode:
|
|
148
|
+
mode: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0Mode | (string & {});
|
|
149
149
|
/** List of domain names the sandbox is allowed to connect to. Only applies when mode is \"custom\". Supports wildcard patterns (e.g., \"*.example.com\" matches all subdomains). */
|
|
150
|
-
allowedDomains?:
|
|
150
|
+
allowedDomains?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0AllowedDomainsList;
|
|
151
151
|
/** List of IP address ranges (in CIDR notation) the sandbox is allowed to connect to. Traffic to these addresses bypasses domain-based restrictions. */
|
|
152
|
-
allowedCIDRs?:
|
|
152
|
+
allowedCIDRs?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0AllowedCIDRsList;
|
|
153
153
|
/** List of IP address ranges (in CIDR notation) the sandbox is blocked from connecting to. These rules take precedence over all allowed rules. */
|
|
154
|
-
deniedCIDRs?:
|
|
154
|
+
deniedCIDRs?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0DeniedCIDRsList;
|
|
155
155
|
/** HTTP header injection rules for outgoing requests matching specific domains. Traffic to matching domains will be intercepted instead of proxied through encrypted connections. */
|
|
156
|
-
injectionRules?:
|
|
156
|
+
injectionRules?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesList;
|
|
157
157
|
}
|
|
158
|
-
export declare const
|
|
159
|
-
export type
|
|
160
|
-
export declare const
|
|
158
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase0: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0>;
|
|
159
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase0List = Array<string>;
|
|
160
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase0List: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase0List>;
|
|
161
161
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
162
|
-
export type
|
|
163
|
-
export declare const
|
|
162
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchPath = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
163
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchPath: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
164
164
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
165
|
-
export type
|
|
166
|
-
export declare const
|
|
165
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList = Array<string>;
|
|
166
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList>;
|
|
167
167
|
/** Matcher for the entry key (header name or query key). */
|
|
168
|
-
export type
|
|
169
|
-
export declare const
|
|
168
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
169
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
170
170
|
/** Matcher for the entry value. */
|
|
171
|
-
export type
|
|
172
|
-
export declare const
|
|
173
|
-
export type
|
|
174
|
-
export declare const
|
|
171
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
172
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
173
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
174
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
175
175
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
176
|
-
export type
|
|
177
|
-
export declare const
|
|
176
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
177
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList>;
|
|
178
178
|
/** Matcher for the entry key (header name or query key). */
|
|
179
|
-
export type
|
|
180
|
-
export declare const
|
|
179
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
180
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
181
181
|
/** Matcher for the entry value. */
|
|
182
|
-
export type
|
|
183
|
-
export declare const
|
|
184
|
-
export type
|
|
185
|
-
export declare const
|
|
182
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
183
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
184
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
185
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
186
186
|
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
187
|
-
export type
|
|
188
|
-
export declare const
|
|
187
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
188
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList>;
|
|
189
189
|
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
190
|
-
export interface
|
|
190
|
+
export interface CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatch {
|
|
191
191
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
192
|
-
path?:
|
|
192
|
+
path?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
193
193
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
194
|
-
method?:
|
|
194
|
+
method?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList;
|
|
195
195
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
196
|
-
queryString?:
|
|
196
|
+
queryString?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList;
|
|
197
197
|
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
198
|
-
headers?:
|
|
198
|
+
headers?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList;
|
|
199
199
|
}
|
|
200
|
-
export declare const
|
|
201
|
-
export type
|
|
200
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatch: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatch>;
|
|
201
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemTransformItemHeadersMap = {
|
|
202
202
|
[key: string]: string | undefined;
|
|
203
203
|
};
|
|
204
|
-
export declare const
|
|
205
|
-
export interface
|
|
206
|
-
headers?:
|
|
207
|
-
}
|
|
208
|
-
export declare const
|
|
209
|
-
export type
|
|
210
|
-
export declare const
|
|
211
|
-
export interface
|
|
204
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemTransformItemHeadersMap: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemTransformItemHeadersMap>;
|
|
205
|
+
export interface CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemTransformItem {
|
|
206
|
+
headers?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemTransformItemHeadersMap;
|
|
207
|
+
}
|
|
208
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemTransformItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemTransformItem>;
|
|
209
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemTransformList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemTransformItem>;
|
|
210
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemTransformList: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemTransformList>;
|
|
211
|
+
export interface CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItem {
|
|
212
212
|
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
213
|
-
match?:
|
|
214
|
-
transform?:
|
|
215
|
-
/** HTTP/1.1 proxy URL to forward traffic to. Must not include query string or fragment. */
|
|
213
|
+
match?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemMatch;
|
|
214
|
+
transform?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItemTransformList;
|
|
215
|
+
/** HTTP/1.1 proxy URL to forward traffic to. Must not include username, password, query string, or fragment. */
|
|
216
216
|
forwardURL?: string;
|
|
217
217
|
}
|
|
218
|
-
export declare const
|
|
219
|
-
export type
|
|
220
|
-
export declare const
|
|
218
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItem>;
|
|
219
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueItem>;
|
|
220
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueList: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueList>;
|
|
221
221
|
/** A rule applied to requests matching a domain in the network policy. Only one of `transform` or `forwardURL` can be specified per rule. */
|
|
222
|
-
export type
|
|
223
|
-
[key: string]:
|
|
222
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1Map = {
|
|
223
|
+
[key: string]: CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1ValueList | undefined;
|
|
224
224
|
};
|
|
225
|
-
export declare const
|
|
226
|
-
export type
|
|
227
|
-
export declare const
|
|
228
|
-
export type
|
|
229
|
-
export declare const
|
|
230
|
-
export type
|
|
231
|
-
export declare const
|
|
232
|
-
export interface
|
|
233
|
-
allow?:
|
|
234
|
-
deny?:
|
|
235
|
-
}
|
|
236
|
-
export declare const
|
|
237
|
-
export interface
|
|
238
|
-
allow?:
|
|
239
|
-
subnets?:
|
|
240
|
-
}
|
|
241
|
-
export declare const
|
|
242
|
-
export type
|
|
243
|
-
export declare const
|
|
225
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1Map: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1Map>;
|
|
226
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase1Allow = CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase0List | CreateSandboxesByNameForkV2RequestNetworkPolicyCase1AllowCase1Map;
|
|
227
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1Allow: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase1Allow>;
|
|
228
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase1SubnetsAllowList = Array<string>;
|
|
229
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1SubnetsAllowList: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase1SubnetsAllowList>;
|
|
230
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicyCase1SubnetsDenyList = Array<string>;
|
|
231
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1SubnetsDenyList: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase1SubnetsDenyList>;
|
|
232
|
+
export interface CreateSandboxesByNameForkV2RequestNetworkPolicyCase1Subnets {
|
|
233
|
+
allow?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase1SubnetsAllowList;
|
|
234
|
+
deny?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase1SubnetsDenyList;
|
|
235
|
+
}
|
|
236
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1Subnets: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase1Subnets>;
|
|
237
|
+
export interface CreateSandboxesByNameForkV2RequestNetworkPolicyCase1 {
|
|
238
|
+
allow?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase1Allow;
|
|
239
|
+
subnets?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase1Subnets;
|
|
240
|
+
}
|
|
241
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicyCase1: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase1>;
|
|
242
|
+
export type CreateSandboxesByNameForkV2RequestNetworkPolicy = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0 | CreateSandboxesByNameForkV2RequestNetworkPolicyCase1;
|
|
243
|
+
export declare const CreateSandboxesByNameForkV2RequestNetworkPolicy: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicy>;
|
|
244
244
|
/** Resources to define the VM */
|
|
245
|
-
export interface
|
|
245
|
+
export interface CreateSandboxesByNameForkV2RequestResources {
|
|
246
246
|
/** The number of virtual CPUs to allocate to the sandbox. Must be 1, or an even number. */
|
|
247
247
|
vcpus?: number;
|
|
248
248
|
/** The amount of memory in megabytes to allocate to the sandbox. Must equal vcpus * 2048. */
|
|
249
249
|
memory?: number;
|
|
250
250
|
}
|
|
251
|
-
export declare const
|
|
251
|
+
export declare const CreateSandboxesByNameForkV2RequestResources: S.Schema<CreateSandboxesByNameForkV2RequestResources>;
|
|
252
252
|
/** List of ports to expose from the sandbox. Each port will be accessible via a unique URL. Maximum of 15 ports can be exposed. */
|
|
253
|
-
export type
|
|
254
|
-
export declare const
|
|
253
|
+
export type CreateSandboxesByNameForkV2RequestPortsList = Array<number>;
|
|
254
|
+
export declare const CreateSandboxesByNameForkV2RequestPortsList: S.Schema<CreateSandboxesByNameForkV2RequestPortsList>;
|
|
255
255
|
/** Default environment variables for the sandbox. These are inherited by all commands unless overridden. */
|
|
256
|
-
export type
|
|
256
|
+
export type CreateSandboxesByNameForkV2RequestEnvMap = {
|
|
257
257
|
[key: string]: string | undefined;
|
|
258
258
|
};
|
|
259
|
-
export declare const
|
|
259
|
+
export declare const CreateSandboxesByNameForkV2RequestEnvMap: S.Schema<CreateSandboxesByNameForkV2RequestEnvMap>;
|
|
260
260
|
/** Mount the drive read-only or read-write. */
|
|
261
|
-
export type
|
|
262
|
-
export declare const
|
|
263
|
-
export interface
|
|
261
|
+
export type CreateSandboxesByNameForkV2RequestMountsValueMode = "read-only" | "read-write";
|
|
262
|
+
export declare const CreateSandboxesByNameForkV2RequestMountsValueMode: any;
|
|
263
|
+
export interface CreateSandboxesByNameForkV2RequestMountsValue {
|
|
264
264
|
/** Name of the drive to mount. The drive must already exist. */
|
|
265
265
|
drive: string;
|
|
266
266
|
/** Mount the drive read-only or read-write. */
|
|
267
|
-
mode?:
|
|
267
|
+
mode?: CreateSandboxesByNameForkV2RequestMountsValueMode | (string & {});
|
|
268
268
|
}
|
|
269
|
-
export declare const
|
|
269
|
+
export declare const CreateSandboxesByNameForkV2RequestMountsValue: S.Schema<CreateSandboxesByNameForkV2RequestMountsValue>;
|
|
270
270
|
/** List of drives to mount to the sandbox at the provided path. */
|
|
271
|
-
export type
|
|
272
|
-
[key: string]:
|
|
271
|
+
export type CreateSandboxesByNameForkV2RequestMountsMap = {
|
|
272
|
+
[key: string]: CreateSandboxesByNameForkV2RequestMountsValue | undefined;
|
|
273
273
|
};
|
|
274
|
-
export declare const
|
|
274
|
+
export declare const CreateSandboxesByNameForkV2RequestMountsMap: S.Schema<CreateSandboxesByNameForkV2RequestMountsMap>;
|
|
275
|
+
/** The Vercel region in which to create the sandbox. */
|
|
276
|
+
export type CreateSandboxesByNameForkV2RequestRegion = "iad1" | "sfo1" | "cle1" | "cdg1" | "fra1" | "arn1" | "sin1" | "pdx1" | "lhr1" | "icn1" | "bom1" | "cpt1" | "dub1" | "gru1" | "hkg1" | "syd1" | "yul1" | "hnd1" | "kix1";
|
|
277
|
+
export declare const CreateSandboxesByNameForkV2RequestRegion: any;
|
|
278
|
+
export type CreateSandboxesByNameForkV2RequestFailoverRegionsItem = "iad1" | "sfo1" | "cle1" | "cdg1" | "fra1" | "arn1" | "sin1" | "pdx1" | "lhr1" | "icn1" | "bom1" | "cpt1" | "dub1" | "gru1" | "hkg1" | "syd1" | "yul1" | "hnd1" | "kix1";
|
|
279
|
+
export declare const CreateSandboxesByNameForkV2RequestFailoverRegionsItem: any;
|
|
280
|
+
/** The regions the sandbox falls back to when it cannot be created in `region`. */
|
|
281
|
+
export type CreateSandboxesByNameForkV2RequestFailoverRegionsList = Array<CreateSandboxesByNameForkV2RequestFailoverRegionsItem | (string & {})>;
|
|
282
|
+
export declare const CreateSandboxesByNameForkV2RequestFailoverRegionsList: S.Schema<CreateSandboxesByNameForkV2RequestFailoverRegionsList>;
|
|
275
283
|
/** Default snapshot expiration time in milliseconds. Set to 0 to disable expiration. When set, this value is used as the default expiration for all snapshots created for this sandbox. */
|
|
276
|
-
export type
|
|
277
|
-
export declare const
|
|
284
|
+
export type CreateSandboxesByNameForkV2RequestSnapshotExpiration = unknown | number;
|
|
285
|
+
export declare const CreateSandboxesByNameForkV2RequestSnapshotExpiration: S.Schema<CreateSandboxesByNameForkV2RequestSnapshotExpiration>;
|
|
278
286
|
/** Expiration time in milliseconds for kept snapshots. Falls back to snapshotExpiration. */
|
|
279
|
-
export type
|
|
280
|
-
export declare const
|
|
287
|
+
export type CreateSandboxesByNameForkV2RequestKeepLastSnapshotsExpiration = unknown | number;
|
|
288
|
+
export declare const CreateSandboxesByNameForkV2RequestKeepLastSnapshotsExpiration: S.Schema<CreateSandboxesByNameForkV2RequestKeepLastSnapshotsExpiration>;
|
|
281
289
|
/** Protect the N most recent snapshots with different expiration/deletion behavior. */
|
|
282
|
-
export interface
|
|
290
|
+
export interface CreateSandboxesByNameForkV2RequestKeepLastSnapshots {
|
|
283
291
|
/** Number of most recent snapshots to keep. */
|
|
284
292
|
count: number;
|
|
285
293
|
/** Expiration time in milliseconds for kept snapshots. Falls back to snapshotExpiration. */
|
|
286
|
-
expiration?:
|
|
294
|
+
expiration?: CreateSandboxesByNameForkV2RequestKeepLastSnapshotsExpiration;
|
|
287
295
|
/** Whether to immediately delete evicted snapshots. Defaults to true. */
|
|
288
296
|
deleteEvicted?: boolean;
|
|
289
297
|
}
|
|
290
|
-
export declare const
|
|
298
|
+
export declare const CreateSandboxesByNameForkV2RequestKeepLastSnapshots: S.Schema<CreateSandboxesByNameForkV2RequestKeepLastSnapshots>;
|
|
291
299
|
/** Key-value tags to associate with the sandbox. Maximum 5 tags. */
|
|
292
|
-
export type
|
|
300
|
+
export type CreateSandboxesByNameForkV2RequestTagsMap = {
|
|
293
301
|
[key: string]: string | undefined;
|
|
294
302
|
};
|
|
295
|
-
export declare const
|
|
296
|
-
export interface
|
|
303
|
+
export declare const CreateSandboxesByNameForkV2RequestTagsMap: S.Schema<CreateSandboxesByNameForkV2RequestTagsMap>;
|
|
304
|
+
export interface CreateSandboxesByNameForkV2Request {
|
|
297
305
|
/** Name of the source sandbox to fork. */
|
|
298
306
|
name: string;
|
|
299
307
|
/** The ID of the project the source sandbox belongs to. Required unless authenticating with an OIDC token. */
|
|
@@ -302,32 +310,42 @@ export interface CreateSandboxesByNameForkRequest {
|
|
|
302
310
|
teamId?: string;
|
|
303
311
|
/** The Team slug to perform the request on behalf of. */
|
|
304
312
|
slug?: string;
|
|
305
|
-
networkPolicy?:
|
|
313
|
+
networkPolicy?: CreateSandboxesByNameForkV2RequestNetworkPolicy;
|
|
306
314
|
/** Resources to define the VM */
|
|
307
|
-
resources?:
|
|
315
|
+
resources?: CreateSandboxesByNameForkV2RequestResources;
|
|
308
316
|
/** List of ports to expose from the sandbox. Each port will be accessible via a unique URL. Maximum of 15 ports can be exposed. */
|
|
309
|
-
ports?:
|
|
317
|
+
ports?: CreateSandboxesByNameForkV2RequestPortsList;
|
|
310
318
|
/** Image to use for the sandbox. */
|
|
311
319
|
image?: string;
|
|
312
320
|
/** Maximum duration in milliseconds that the sandbox can run before being automatically stopped. */
|
|
313
321
|
timeout?: number;
|
|
314
322
|
/** Default environment variables for the sandbox. These are inherited by all commands unless overridden. */
|
|
315
|
-
env?:
|
|
323
|
+
env?: CreateSandboxesByNameForkV2RequestEnvMap;
|
|
316
324
|
/** List of drives to mount to the sandbox at the provided path. */
|
|
317
|
-
mounts?:
|
|
325
|
+
mounts?: CreateSandboxesByNameForkV2RequestMountsMap;
|
|
326
|
+
/** The Vercel region in which to create the sandbox. */
|
|
327
|
+
region?: CreateSandboxesByNameForkV2RequestRegion | (string & {});
|
|
328
|
+
/** The regions the sandbox falls back to when it cannot be created in `region`. */
|
|
329
|
+
failoverRegions?: CreateSandboxesByNameForkV2RequestFailoverRegionsList;
|
|
318
330
|
/** Whether the sandbox persists its state across restarts via automatic snapshots. Defaults to the source sandbox setting. */
|
|
319
331
|
persistent?: boolean;
|
|
320
332
|
/** Default snapshot expiration time in milliseconds. Set to 0 to disable expiration. When set, this value is used as the default expiration for all snapshots created for this sandbox. */
|
|
321
|
-
snapshotExpiration?:
|
|
333
|
+
snapshotExpiration?: CreateSandboxesByNameForkV2RequestSnapshotExpiration;
|
|
322
334
|
/** Protect the N most recent snapshots with different expiration/deletion behavior. */
|
|
323
|
-
keepLastSnapshots?:
|
|
335
|
+
keepLastSnapshots?: CreateSandboxesByNameForkV2RequestKeepLastSnapshots;
|
|
324
336
|
/** Key-value tags to associate with the sandbox. Maximum 5 tags. */
|
|
325
|
-
tags?:
|
|
337
|
+
tags?: CreateSandboxesByNameForkV2RequestTagsMap;
|
|
326
338
|
}
|
|
327
|
-
export declare const
|
|
339
|
+
export declare const CreateSandboxesByNameForkV2Request: S.Schema<CreateSandboxesByNameForkV2Request>;
|
|
328
340
|
/** The status of the current sandbox. */
|
|
329
341
|
export type NamedSandboxStatus = "running" | "stopped" | "stopping";
|
|
330
342
|
export declare const NamedSandboxStatus: any;
|
|
343
|
+
/** The regions the sandbox fails over to. Empty when it does not fail over. */
|
|
344
|
+
export type NamedSandboxFailoverRegionsItem = "arn1" | "bom1" | "cdg1" | "cle1" | "cpt1" | "dub1" | "fra1" | "gru1" | "hkg1" | "hnd1" | "iad1" | "icn1" | "kix1" | "lhr1" | "pdx1" | "sfo1" | "sin1" | "syd1" | "yul1";
|
|
345
|
+
export declare const NamedSandboxFailoverRegionsItem: any;
|
|
346
|
+
/** The regions the sandbox fails over to. Empty when it does not fail over. */
|
|
347
|
+
export type NamedSandboxFailoverRegionsList = Array<NamedSandboxFailoverRegionsItem>;
|
|
348
|
+
export declare const NamedSandboxFailoverRegionsList: S.Schema<NamedSandboxFailoverRegionsList>;
|
|
331
349
|
/** Keep-last snapshot configuration. */
|
|
332
350
|
export interface NamedSandboxKeepLastSnapshots {
|
|
333
351
|
/** Number of most recent snapshots to keep. */
|
|
@@ -352,6 +370,7 @@ export interface NamedSandboxNetworkPolicy {
|
|
|
352
370
|
allowedDomains?: NamedSandboxNetworkPolicyAllowedDomainsList;
|
|
353
371
|
allowedCIDRs?: NamedSandboxNetworkPolicyAllowedCIDRsList;
|
|
354
372
|
deniedCIDRs?: NamedSandboxNetworkPolicyDeniedCIDRsList;
|
|
373
|
+
s3Key?: string;
|
|
355
374
|
}
|
|
356
375
|
export declare const NamedSandboxNetworkPolicy: S.Schema<NamedSandboxNetworkPolicy>;
|
|
357
376
|
/** Key-value tags attached to the named sandbox. */
|
|
@@ -386,8 +405,10 @@ export interface NamedSandbox {
|
|
|
386
405
|
statusUpdatedAt: number;
|
|
387
406
|
/** Whether the sandbox persists its state across restarts via automatic snapshots. */
|
|
388
407
|
persistent: boolean;
|
|
389
|
-
/** The region the sandbox is
|
|
408
|
+
/** The region the sandbox is pinned to: the region stored on the sandbox, otherwise the platform default. Where a running session actually landed is reported by `session.region`. */
|
|
390
409
|
region?: string;
|
|
410
|
+
/** The regions the sandbox fails over to. Empty when it does not fail over. */
|
|
411
|
+
failoverRegions?: NamedSandboxFailoverRegionsList;
|
|
391
412
|
/** Number of virtual CPUs allocated. */
|
|
392
413
|
vcpus?: number;
|
|
393
414
|
/** Memory allocated in MB. */
|
|
@@ -536,14 +557,358 @@ export interface SandboxPublicRoute {
|
|
|
536
557
|
system?: boolean;
|
|
537
558
|
}
|
|
538
559
|
export declare const SandboxPublicRoute: S.Schema<SandboxPublicRoute>;
|
|
539
|
-
export type
|
|
540
|
-
export declare const
|
|
541
|
-
export interface
|
|
560
|
+
export type CreateSandboxesByNameForkV2ResponseRoutesList = Array<SandboxPublicRoute>;
|
|
561
|
+
export declare const CreateSandboxesByNameForkV2ResponseRoutesList: S.Schema<CreateSandboxesByNameForkV2ResponseRoutesList>;
|
|
562
|
+
export interface CreateSandboxesByNameForkV2Response {
|
|
542
563
|
sandbox: NamedSandbox;
|
|
543
564
|
session: Session;
|
|
544
|
-
routes:
|
|
565
|
+
routes: CreateSandboxesByNameForkV2ResponseRoutesList;
|
|
545
566
|
}
|
|
546
|
-
export declare const
|
|
567
|
+
export declare const CreateSandboxesByNameForkV2Response: S.Schema<CreateSandboxesByNameForkV2Response>;
|
|
568
|
+
/** The network access policy mode. Use \"allow-all\" to permit all outbound traffic. Use \"deny-all\" to block all outbound traffic. Use \"custom\" to specify explicit allow/deny rules. */
|
|
569
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase0Mode = "allow-all" | "deny-all" | "custom" | "default-allow" | "default-deny";
|
|
570
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase0Mode: any;
|
|
571
|
+
/** List of domain names the sandbox is allowed to connect to. Only applies when mode is \"custom\". Supports wildcard patterns (e.g., \"*.example.com\" matches all subdomains). */
|
|
572
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase0AllowedDomainsList = Array<string>;
|
|
573
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase0AllowedDomainsList: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase0AllowedDomainsList>;
|
|
574
|
+
/** List of IP address ranges (in CIDR notation) the sandbox is allowed to connect to. Traffic to these addresses bypasses domain-based restrictions. */
|
|
575
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase0AllowedCIDRsList = Array<string>;
|
|
576
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase0AllowedCIDRsList: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase0AllowedCIDRsList>;
|
|
577
|
+
/** List of IP address ranges (in CIDR notation) the sandbox is blocked from connecting to. These rules take precedence over all allowed rules. */
|
|
578
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase0DeniedCIDRsList = Array<string>;
|
|
579
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase0DeniedCIDRsList: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase0DeniedCIDRsList>;
|
|
580
|
+
/** HTTP headers to inject into requests for this domain. Existing headers with the same name will be overridden. */
|
|
581
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemHeadersMap = {
|
|
582
|
+
[key: string]: string | undefined;
|
|
583
|
+
};
|
|
584
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemHeadersMap: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemHeadersMap>;
|
|
585
|
+
/** Match on the request path. Comparison is case-sensitive. */
|
|
586
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchPath = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
587
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchPath: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
588
|
+
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
589
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList = Array<string>;
|
|
590
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList>;
|
|
591
|
+
/** Matcher for the entry key (header name or query key). */
|
|
592
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
593
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
594
|
+
/** Matcher for the entry value. */
|
|
595
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
596
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
597
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
598
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
599
|
+
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
600
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
601
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList>;
|
|
602
|
+
/** Matcher for the entry key (header name or query key). */
|
|
603
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
604
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
605
|
+
/** Matcher for the entry value. */
|
|
606
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
607
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
608
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
609
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
610
|
+
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
611
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
612
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList>;
|
|
613
|
+
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
614
|
+
export interface CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatch {
|
|
615
|
+
/** Match on the request path. Comparison is case-sensitive. */
|
|
616
|
+
path?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
617
|
+
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
618
|
+
method?: CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList;
|
|
619
|
+
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
620
|
+
queryString?: CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList;
|
|
621
|
+
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
622
|
+
headers?: CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList;
|
|
623
|
+
}
|
|
624
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatch: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatch>;
|
|
625
|
+
export interface CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItem {
|
|
626
|
+
/** The domain (or pattern) of requests to add headers for. Supports wildcards like *.example.com. */
|
|
627
|
+
domain: string;
|
|
628
|
+
/** HTTP headers to inject into requests for this domain. Existing headers with the same name will be overridden. */
|
|
629
|
+
headers: CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemHeadersMap;
|
|
630
|
+
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
631
|
+
match?: CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItemMatch;
|
|
632
|
+
}
|
|
633
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItem: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItem>;
|
|
634
|
+
/** HTTP header injection rules for outgoing requests matching specific domains. Traffic to matching domains will be intercepted instead of proxied through encrypted connections. */
|
|
635
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesList = Array<CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesItem>;
|
|
636
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesList: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesList>;
|
|
637
|
+
/** Network access policy for the sandbox.\n Controls which external hosts the sandbox can communicate with.\n Use \"allow-all\" mode to allow all traffic, \"deny-all\" to block all traffic or \"custom\" to provide specific rules. */
|
|
638
|
+
export interface CreateSandboxesByNameForkV3RequestNetworkPolicyCase0 {
|
|
639
|
+
/** The network access policy mode. Use \"allow-all\" to permit all outbound traffic. Use \"deny-all\" to block all outbound traffic. Use \"custom\" to specify explicit allow/deny rules. */
|
|
640
|
+
mode: CreateSandboxesByNameForkV3RequestNetworkPolicyCase0Mode | (string & {});
|
|
641
|
+
/** List of domain names the sandbox is allowed to connect to. Only applies when mode is \"custom\". Supports wildcard patterns (e.g., \"*.example.com\" matches all subdomains). */
|
|
642
|
+
allowedDomains?: CreateSandboxesByNameForkV3RequestNetworkPolicyCase0AllowedDomainsList;
|
|
643
|
+
/** List of IP address ranges (in CIDR notation) the sandbox is allowed to connect to. Traffic to these addresses bypasses domain-based restrictions. */
|
|
644
|
+
allowedCIDRs?: CreateSandboxesByNameForkV3RequestNetworkPolicyCase0AllowedCIDRsList;
|
|
645
|
+
/** List of IP address ranges (in CIDR notation) the sandbox is blocked from connecting to. These rules take precedence over all allowed rules. */
|
|
646
|
+
deniedCIDRs?: CreateSandboxesByNameForkV3RequestNetworkPolicyCase0DeniedCIDRsList;
|
|
647
|
+
/** HTTP header injection rules for outgoing requests matching specific domains. Traffic to matching domains will be intercepted instead of proxied through encrypted connections. */
|
|
648
|
+
injectionRules?: CreateSandboxesByNameForkV3RequestNetworkPolicyCase0InjectionRulesList;
|
|
649
|
+
}
|
|
650
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase0: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase0>;
|
|
651
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase0List = Array<string>;
|
|
652
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase0List: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase0List>;
|
|
653
|
+
/** Match on the request path. Comparison is case-sensitive. */
|
|
654
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchPath = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
655
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchPath: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
656
|
+
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
657
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList = Array<string>;
|
|
658
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList>;
|
|
659
|
+
/** Matcher for the entry key (header name or query key). */
|
|
660
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
661
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
662
|
+
/** Matcher for the entry value. */
|
|
663
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
664
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
665
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
666
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
667
|
+
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
668
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
669
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList>;
|
|
670
|
+
/** Matcher for the entry key (header name or query key). */
|
|
671
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
672
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
673
|
+
/** Matcher for the entry value. */
|
|
674
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
675
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
676
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
677
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
678
|
+
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
679
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
680
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList>;
|
|
681
|
+
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
682
|
+
export interface CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatch {
|
|
683
|
+
/** Match on the request path. Comparison is case-sensitive. */
|
|
684
|
+
path?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
685
|
+
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
686
|
+
method?: CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList;
|
|
687
|
+
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
688
|
+
queryString?: CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList;
|
|
689
|
+
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
690
|
+
headers?: CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList;
|
|
691
|
+
}
|
|
692
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatch: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatch>;
|
|
693
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemTransformItemHeadersMap = {
|
|
694
|
+
[key: string]: string | undefined;
|
|
695
|
+
};
|
|
696
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemTransformItemHeadersMap: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemTransformItemHeadersMap>;
|
|
697
|
+
export interface CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemTransformItem {
|
|
698
|
+
headers?: CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemTransformItemHeadersMap;
|
|
699
|
+
}
|
|
700
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemTransformItem: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemTransformItem>;
|
|
701
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemTransformList = Array<CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemTransformItem>;
|
|
702
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemTransformList: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemTransformList>;
|
|
703
|
+
export interface CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItem {
|
|
704
|
+
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
705
|
+
match?: CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemMatch;
|
|
706
|
+
transform?: CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItemTransformList;
|
|
707
|
+
/** HTTP/1.1 proxy URL to forward traffic to. Must not include username, password, query string, or fragment. */
|
|
708
|
+
forwardURL?: string;
|
|
709
|
+
}
|
|
710
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItem: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItem>;
|
|
711
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueList = Array<CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueItem>;
|
|
712
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueList: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueList>;
|
|
713
|
+
/** A rule applied to requests matching a domain in the network policy. Only one of `transform` or `forwardURL` can be specified per rule. */
|
|
714
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1Map = {
|
|
715
|
+
[key: string]: CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1ValueList | undefined;
|
|
716
|
+
};
|
|
717
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1Map: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1Map>;
|
|
718
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase1Allow = CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase0List | CreateSandboxesByNameForkV3RequestNetworkPolicyCase1AllowCase1Map;
|
|
719
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1Allow: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase1Allow>;
|
|
720
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase1SubnetsAllowList = Array<string>;
|
|
721
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1SubnetsAllowList: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase1SubnetsAllowList>;
|
|
722
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicyCase1SubnetsDenyList = Array<string>;
|
|
723
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1SubnetsDenyList: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase1SubnetsDenyList>;
|
|
724
|
+
export interface CreateSandboxesByNameForkV3RequestNetworkPolicyCase1Subnets {
|
|
725
|
+
allow?: CreateSandboxesByNameForkV3RequestNetworkPolicyCase1SubnetsAllowList;
|
|
726
|
+
deny?: CreateSandboxesByNameForkV3RequestNetworkPolicyCase1SubnetsDenyList;
|
|
727
|
+
}
|
|
728
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1Subnets: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase1Subnets>;
|
|
729
|
+
export interface CreateSandboxesByNameForkV3RequestNetworkPolicyCase1 {
|
|
730
|
+
allow?: CreateSandboxesByNameForkV3RequestNetworkPolicyCase1Allow;
|
|
731
|
+
subnets?: CreateSandboxesByNameForkV3RequestNetworkPolicyCase1Subnets;
|
|
732
|
+
}
|
|
733
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicyCase1: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicyCase1>;
|
|
734
|
+
export type CreateSandboxesByNameForkV3RequestNetworkPolicy = CreateSandboxesByNameForkV3RequestNetworkPolicyCase0 | CreateSandboxesByNameForkV3RequestNetworkPolicyCase1;
|
|
735
|
+
export declare const CreateSandboxesByNameForkV3RequestNetworkPolicy: S.Schema<CreateSandboxesByNameForkV3RequestNetworkPolicy>;
|
|
736
|
+
/** Resources to define the VM */
|
|
737
|
+
export type CreateSandboxesByNameForkV3RequestResources = CreateSandboxesByNameForkV2RequestResources;
|
|
738
|
+
export declare const CreateSandboxesByNameForkV3RequestResources: S.Schema<CreateSandboxesByNameForkV2RequestResources>;
|
|
739
|
+
/** List of ports to expose from the sandbox. Each port will be accessible via a unique URL. Maximum of 15 ports can be exposed. */
|
|
740
|
+
export type CreateSandboxesByNameForkV3RequestPortsList = Array<number>;
|
|
741
|
+
export declare const CreateSandboxesByNameForkV3RequestPortsList: S.Schema<CreateSandboxesByNameForkV3RequestPortsList>;
|
|
742
|
+
/** Default environment variables for the sandbox. These are inherited by all commands unless overridden. */
|
|
743
|
+
export type CreateSandboxesByNameForkV3RequestEnvMap = {
|
|
744
|
+
[key: string]: string | undefined;
|
|
745
|
+
};
|
|
746
|
+
export declare const CreateSandboxesByNameForkV3RequestEnvMap: S.Schema<CreateSandboxesByNameForkV3RequestEnvMap>;
|
|
747
|
+
/** Mount the drive read-only or read-write. */
|
|
748
|
+
export type CreateSandboxesByNameForkV3RequestMountsValueMode = "read-only" | "read-write";
|
|
749
|
+
export declare const CreateSandboxesByNameForkV3RequestMountsValueMode: any;
|
|
750
|
+
export interface CreateSandboxesByNameForkV3RequestMountsValue {
|
|
751
|
+
/** Name of the drive to mount. The drive must already exist. */
|
|
752
|
+
drive: string;
|
|
753
|
+
/** Mount the drive read-only or read-write. */
|
|
754
|
+
mode?: CreateSandboxesByNameForkV3RequestMountsValueMode | (string & {});
|
|
755
|
+
}
|
|
756
|
+
export declare const CreateSandboxesByNameForkV3RequestMountsValue: S.Schema<CreateSandboxesByNameForkV3RequestMountsValue>;
|
|
757
|
+
/** List of drives to mount to the sandbox at the provided path. */
|
|
758
|
+
export type CreateSandboxesByNameForkV3RequestMountsMap = {
|
|
759
|
+
[key: string]: CreateSandboxesByNameForkV3RequestMountsValue | undefined;
|
|
760
|
+
};
|
|
761
|
+
export declare const CreateSandboxesByNameForkV3RequestMountsMap: S.Schema<CreateSandboxesByNameForkV3RequestMountsMap>;
|
|
762
|
+
/** The Vercel region in which to create the sandbox. */
|
|
763
|
+
export type CreateSandboxesByNameForkV3RequestRegion = "iad1" | "sfo1" | "cle1" | "cdg1" | "fra1" | "arn1" | "sin1" | "pdx1" | "lhr1" | "icn1" | "bom1" | "cpt1" | "dub1" | "gru1" | "hkg1" | "syd1" | "yul1" | "hnd1" | "kix1";
|
|
764
|
+
export declare const CreateSandboxesByNameForkV3RequestRegion: any;
|
|
765
|
+
export type CreateSandboxesByNameForkV3RequestFailoverRegionsItem = "iad1" | "sfo1" | "cle1" | "cdg1" | "fra1" | "arn1" | "sin1" | "pdx1" | "lhr1" | "icn1" | "bom1" | "cpt1" | "dub1" | "gru1" | "hkg1" | "syd1" | "yul1" | "hnd1" | "kix1";
|
|
766
|
+
export declare const CreateSandboxesByNameForkV3RequestFailoverRegionsItem: any;
|
|
767
|
+
/** The regions the sandbox falls back to when it cannot be created in `region`. */
|
|
768
|
+
export type CreateSandboxesByNameForkV3RequestFailoverRegionsList = Array<CreateSandboxesByNameForkV3RequestFailoverRegionsItem | (string & {})>;
|
|
769
|
+
export declare const CreateSandboxesByNameForkV3RequestFailoverRegionsList: S.Schema<CreateSandboxesByNameForkV3RequestFailoverRegionsList>;
|
|
770
|
+
/** Default snapshot expiration time in milliseconds. Defaults to 7 days. Set to 0 to disable expiration. When set, this value is used as the default expiration for all snapshots created for this sandbox. */
|
|
771
|
+
export type CreateSandboxesByNameForkV3RequestSnapshotExpiration = unknown | number;
|
|
772
|
+
export declare const CreateSandboxesByNameForkV3RequestSnapshotExpiration: S.Schema<CreateSandboxesByNameForkV3RequestSnapshotExpiration>;
|
|
773
|
+
/** Expiration time in milliseconds for kept snapshots. Falls back to snapshotExpiration. */
|
|
774
|
+
export type CreateSandboxesByNameForkV3RequestKeepLastSnapshotsCase1Expiration = unknown | number;
|
|
775
|
+
export declare const CreateSandboxesByNameForkV3RequestKeepLastSnapshotsCase1Expiration: S.Schema<CreateSandboxesByNameForkV3RequestKeepLastSnapshotsCase1Expiration>;
|
|
776
|
+
export interface CreateSandboxesByNameForkV3RequestKeepLastSnapshotsCase1 {
|
|
777
|
+
/** Number of most recent snapshots to keep. */
|
|
778
|
+
count: number;
|
|
779
|
+
/** Expiration time in milliseconds for kept snapshots. Falls back to snapshotExpiration. */
|
|
780
|
+
expiration?: CreateSandboxesByNameForkV3RequestKeepLastSnapshotsCase1Expiration;
|
|
781
|
+
/** Whether to immediately delete evicted snapshots. Defaults to true. */
|
|
782
|
+
deleteEvicted?: boolean;
|
|
783
|
+
}
|
|
784
|
+
export declare const CreateSandboxesByNameForkV3RequestKeepLastSnapshotsCase1: S.Schema<CreateSandboxesByNameForkV3RequestKeepLastSnapshotsCase1>;
|
|
785
|
+
/** Protect the N most recent snapshots with different expiration/deletion behavior. Persistent sandboxes default to keeping only the last snapshot (evicted snapshots are deleted). Set to null to disable the limit. */
|
|
786
|
+
export type CreateSandboxesByNameForkV3RequestKeepLastSnapshots = string | CreateSandboxesByNameForkV3RequestKeepLastSnapshotsCase1;
|
|
787
|
+
export declare const CreateSandboxesByNameForkV3RequestKeepLastSnapshots: S.Schema<CreateSandboxesByNameForkV3RequestKeepLastSnapshots>;
|
|
788
|
+
/** Key-value tags to associate with the sandbox. Maximum 5 tags. */
|
|
789
|
+
export type CreateSandboxesByNameForkV3RequestTagsMap = {
|
|
790
|
+
[key: string]: string | undefined;
|
|
791
|
+
};
|
|
792
|
+
export declare const CreateSandboxesByNameForkV3RequestTagsMap: S.Schema<CreateSandboxesByNameForkV3RequestTagsMap>;
|
|
793
|
+
export interface CreateSandboxesByNameForkV3Request {
|
|
794
|
+
/** Name of the source sandbox to fork. */
|
|
795
|
+
name: string;
|
|
796
|
+
/** The ID of the project the source sandbox belongs to. Required unless authenticating with an OIDC token. */
|
|
797
|
+
projectId?: string;
|
|
798
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
799
|
+
teamId?: string;
|
|
800
|
+
/** The Team slug to perform the request on behalf of. */
|
|
801
|
+
slug?: string;
|
|
802
|
+
networkPolicy?: CreateSandboxesByNameForkV3RequestNetworkPolicy;
|
|
803
|
+
/** Resources to define the VM */
|
|
804
|
+
resources?: CreateSandboxesByNameForkV2RequestResources;
|
|
805
|
+
/** List of ports to expose from the sandbox. Each port will be accessible via a unique URL. Maximum of 15 ports can be exposed. */
|
|
806
|
+
ports?: CreateSandboxesByNameForkV3RequestPortsList;
|
|
807
|
+
/** Image to use for the sandbox. */
|
|
808
|
+
image?: string;
|
|
809
|
+
/** Maximum duration in milliseconds that the sandbox can run before being automatically stopped. */
|
|
810
|
+
timeout?: number;
|
|
811
|
+
/** Default environment variables for the sandbox. These are inherited by all commands unless overridden. */
|
|
812
|
+
env?: CreateSandboxesByNameForkV3RequestEnvMap;
|
|
813
|
+
/** List of drives to mount to the sandbox at the provided path. */
|
|
814
|
+
mounts?: CreateSandboxesByNameForkV3RequestMountsMap;
|
|
815
|
+
/** The Vercel region in which to create the sandbox. */
|
|
816
|
+
region?: CreateSandboxesByNameForkV3RequestRegion | (string & {});
|
|
817
|
+
/** The regions the sandbox falls back to when it cannot be created in `region`. */
|
|
818
|
+
failoverRegions?: CreateSandboxesByNameForkV3RequestFailoverRegionsList;
|
|
819
|
+
/** Whether the sandbox persists its state across restarts via automatic snapshots. Defaults to the source sandbox setting. */
|
|
820
|
+
persistent?: boolean;
|
|
821
|
+
/** Default snapshot expiration time in milliseconds. Defaults to 7 days. Set to 0 to disable expiration. When set, this value is used as the default expiration for all snapshots created for this sandbox. */
|
|
822
|
+
snapshotExpiration?: CreateSandboxesByNameForkV3RequestSnapshotExpiration;
|
|
823
|
+
/** Protect the N most recent snapshots with different expiration/deletion behavior. Persistent sandboxes default to keeping only the last snapshot (evicted snapshots are deleted). Set to null to disable the limit. */
|
|
824
|
+
keepLastSnapshots?: CreateSandboxesByNameForkV3RequestKeepLastSnapshots;
|
|
825
|
+
/** Key-value tags to associate with the sandbox. Maximum 5 tags. */
|
|
826
|
+
tags?: CreateSandboxesByNameForkV3RequestTagsMap;
|
|
827
|
+
}
|
|
828
|
+
export declare const CreateSandboxesByNameForkV3Request: S.Schema<CreateSandboxesByNameForkV3Request>;
|
|
829
|
+
export type CreateSandboxesByNameForkV3ResponseRoutesList = Array<SandboxPublicRoute>;
|
|
830
|
+
export declare const CreateSandboxesByNameForkV3ResponseRoutesList: S.Schema<CreateSandboxesByNameForkV3ResponseRoutesList>;
|
|
831
|
+
export interface CreateSandboxesByNameForkV3Response {
|
|
832
|
+
sandbox: NamedSandbox;
|
|
833
|
+
session: Session;
|
|
834
|
+
routes: CreateSandboxesByNameForkV3ResponseRoutesList;
|
|
835
|
+
}
|
|
836
|
+
export declare const CreateSandboxesByNameForkV3Response: S.Schema<CreateSandboxesByNameForkV3Response>;
|
|
837
|
+
/** The number of milliseconds after which the snapshot will expire and be deleted. Use 0 for no expiration. */
|
|
838
|
+
export type CreateSandboxesSessionsBySessionIdSnapshotV2RequestExpiration = unknown | number;
|
|
839
|
+
export declare const CreateSandboxesSessionsBySessionIdSnapshotV2RequestExpiration: S.Schema<CreateSandboxesSessionsBySessionIdSnapshotV2RequestExpiration>;
|
|
840
|
+
export interface CreateSandboxesSessionsBySessionIdSnapshotV2Request {
|
|
841
|
+
/** The unique identifier of the session to snapshot. */
|
|
842
|
+
sessionId: string;
|
|
843
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
844
|
+
teamId?: string;
|
|
845
|
+
/** The Team slug to perform the request on behalf of. */
|
|
846
|
+
slug?: string;
|
|
847
|
+
/** The number of milliseconds after which the snapshot will expire and be deleted. Use 0 for no expiration. */
|
|
848
|
+
expiration?: CreateSandboxesSessionsBySessionIdSnapshotV2RequestExpiration;
|
|
849
|
+
}
|
|
850
|
+
export declare const CreateSandboxesSessionsBySessionIdSnapshotV2Request: S.Schema<CreateSandboxesSessionsBySessionIdSnapshotV2Request>;
|
|
851
|
+
/** The regions where the snapshot is available. */
|
|
852
|
+
export type SnapshotRegionsList = Array<string>;
|
|
853
|
+
export declare const SnapshotRegionsList: S.Schema<SnapshotRegionsList>;
|
|
854
|
+
/** The status of the snapshot. */
|
|
855
|
+
export type SnapshotStatus = "created" | "deleted" | "failed";
|
|
856
|
+
export declare const SnapshotStatus: any;
|
|
857
|
+
/** The method used to create the snapshot. */
|
|
858
|
+
export type SnapshotCreationMethod = "automatic" | "manual";
|
|
859
|
+
export declare const SnapshotCreationMethod: any;
|
|
860
|
+
/** This object contains information related to a Snapshot of a Vercel Sandbox session (v2 API). */
|
|
861
|
+
export interface Snapshot {
|
|
862
|
+
/** The unique identifier of the snapshot. */
|
|
863
|
+
id: string;
|
|
864
|
+
/** The unique identifier of the session from which the snapshot was created. */
|
|
865
|
+
sourceSessionId: string;
|
|
866
|
+
/** The region where the snapshot is stored. */
|
|
867
|
+
region?: string;
|
|
868
|
+
/** The regions where the snapshot is available. */
|
|
869
|
+
regions?: SnapshotRegionsList;
|
|
870
|
+
/** The status of the snapshot. */
|
|
871
|
+
status: SnapshotStatus;
|
|
872
|
+
/** The size of the snapshot in bytes. */
|
|
873
|
+
sizeBytes: number;
|
|
874
|
+
/** The time when the snapshot will expire, in milliseconds since the epoch. If not set, the snapshot does not have any expiration. */
|
|
875
|
+
expiresAt?: number;
|
|
876
|
+
/** The time when the snapshot was created, in milliseconds since the epoch. */
|
|
877
|
+
createdAt: number;
|
|
878
|
+
/** The last time the snapshot was updated, in milliseconds since the epoch. */
|
|
879
|
+
updatedAt: number;
|
|
880
|
+
/** The last time the snapshot was used (e.g. to resume or create a sandbox), in milliseconds since the epoch. Falls back to `createdAt` for older snapshots that predate this field. */
|
|
881
|
+
lastUsedAt: number;
|
|
882
|
+
/** The method used to create the snapshot. */
|
|
883
|
+
creationMethod?: SnapshotCreationMethod;
|
|
884
|
+
/** The unique identifier of the parent snapshot, if this snapshot was created from another snapshot. */
|
|
885
|
+
parentId?: string;
|
|
886
|
+
}
|
|
887
|
+
export declare const Snapshot: S.Schema<Snapshot>;
|
|
888
|
+
export interface CreateSandboxesSessionsBySessionIdSnapshotV2Response {
|
|
889
|
+
snapshot: Snapshot;
|
|
890
|
+
session: Session;
|
|
891
|
+
}
|
|
892
|
+
export declare const CreateSandboxesSessionsBySessionIdSnapshotV2Response: S.Schema<CreateSandboxesSessionsBySessionIdSnapshotV2Response>;
|
|
893
|
+
/** The number of milliseconds after which the snapshot will expire and be deleted. Defaults to 7 days when neither this field nor the sandbox configuration specifies an expiration. Use 0 for no expiration. */
|
|
894
|
+
export type CreateSandboxesSessionsBySessionIdSnapshotV3RequestExpiration = unknown | number;
|
|
895
|
+
export declare const CreateSandboxesSessionsBySessionIdSnapshotV3RequestExpiration: S.Schema<CreateSandboxesSessionsBySessionIdSnapshotV3RequestExpiration>;
|
|
896
|
+
export interface CreateSandboxesSessionsBySessionIdSnapshotV3Request {
|
|
897
|
+
/** The unique identifier of the session to snapshot. */
|
|
898
|
+
sessionId: string;
|
|
899
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
900
|
+
teamId?: string;
|
|
901
|
+
/** The Team slug to perform the request on behalf of. */
|
|
902
|
+
slug?: string;
|
|
903
|
+
/** The number of milliseconds after which the snapshot will expire and be deleted. Defaults to 7 days when neither this field nor the sandbox configuration specifies an expiration. Use 0 for no expiration. */
|
|
904
|
+
expiration?: CreateSandboxesSessionsBySessionIdSnapshotV3RequestExpiration;
|
|
905
|
+
}
|
|
906
|
+
export declare const CreateSandboxesSessionsBySessionIdSnapshotV3Request: S.Schema<CreateSandboxesSessionsBySessionIdSnapshotV3Request>;
|
|
907
|
+
export interface CreateSandboxesSessionsBySessionIdSnapshotV3Response {
|
|
908
|
+
snapshot: Snapshot;
|
|
909
|
+
session: Session;
|
|
910
|
+
}
|
|
911
|
+
export declare const CreateSandboxesSessionsBySessionIdSnapshotV3Response: S.Schema<CreateSandboxesSessionsBySessionIdSnapshotV3Response>;
|
|
547
912
|
/** The network access policy mode. Use \"allow-all\" to permit all outbound traffic. Use \"deny-all\" to block all outbound traffic. Use \"custom\" to specify explicit allow/deny rules. */
|
|
548
913
|
export type CreateSandboxesV2RequestNetworkPolicyCase0Mode = "allow-all" | "deny-all" | "custom" | "default-allow" | "default-deny";
|
|
549
914
|
export declare const CreateSandboxesV2RequestNetworkPolicyCase0Mode: any;
|
|
@@ -562,37 +927,37 @@ export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemHeadersM
|
|
|
562
927
|
};
|
|
563
928
|
export declare const CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemHeadersMap: S.Schema<CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemHeadersMap>;
|
|
564
929
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
565
|
-
export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath =
|
|
566
|
-
export declare const CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath: S.Schema<
|
|
930
|
+
export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
931
|
+
export declare const CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
567
932
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
568
933
|
export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList = Array<string>;
|
|
569
934
|
export declare const CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList: S.Schema<CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList>;
|
|
570
935
|
/** Matcher for the entry key (header name or query key). */
|
|
571
|
-
export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemKey =
|
|
572
|
-
export declare const CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemKey: S.Schema<
|
|
936
|
+
export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
937
|
+
export declare const CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
573
938
|
/** Matcher for the entry value. */
|
|
574
|
-
export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemValue =
|
|
575
|
-
export declare const CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemValue: S.Schema<
|
|
576
|
-
export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem =
|
|
577
|
-
export declare const CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem: S.Schema<
|
|
939
|
+
export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
940
|
+
export declare const CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
941
|
+
export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
942
|
+
export declare const CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
578
943
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
579
|
-
export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList = Array<
|
|
944
|
+
export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
580
945
|
export declare const CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList: S.Schema<CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList>;
|
|
581
946
|
/** Matcher for the entry key (header name or query key). */
|
|
582
|
-
export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemKey =
|
|
583
|
-
export declare const CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemKey: S.Schema<
|
|
947
|
+
export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
948
|
+
export declare const CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
584
949
|
/** Matcher for the entry value. */
|
|
585
|
-
export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemValue =
|
|
586
|
-
export declare const CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemValue: S.Schema<
|
|
587
|
-
export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItem =
|
|
588
|
-
export declare const CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItem: S.Schema<
|
|
950
|
+
export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
951
|
+
export declare const CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
952
|
+
export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
953
|
+
export declare const CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
589
954
|
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
590
|
-
export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList = Array<
|
|
955
|
+
export type CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
591
956
|
export declare const CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList: S.Schema<CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList>;
|
|
592
957
|
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
593
958
|
export interface CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatch {
|
|
594
959
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
595
|
-
path?:
|
|
960
|
+
path?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
596
961
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
597
962
|
method?: CreateSandboxesV2RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList;
|
|
598
963
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
@@ -630,37 +995,37 @@ export declare const CreateSandboxesV2RequestNetworkPolicyCase0: S.Schema<Create
|
|
|
630
995
|
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase0List = Array<string>;
|
|
631
996
|
export declare const CreateSandboxesV2RequestNetworkPolicyCase1AllowCase0List: S.Schema<CreateSandboxesV2RequestNetworkPolicyCase1AllowCase0List>;
|
|
632
997
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
633
|
-
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchPath =
|
|
634
|
-
export declare const CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchPath: S.Schema<
|
|
998
|
+
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchPath = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
999
|
+
export declare const CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchPath: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
635
1000
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
636
1001
|
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList = Array<string>;
|
|
637
1002
|
export declare const CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList: S.Schema<CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList>;
|
|
638
1003
|
/** Matcher for the entry key (header name or query key). */
|
|
639
|
-
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemKey =
|
|
640
|
-
export declare const CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemKey: S.Schema<
|
|
1004
|
+
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1005
|
+
export declare const CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
641
1006
|
/** Matcher for the entry value. */
|
|
642
|
-
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemValue =
|
|
643
|
-
export declare const CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemValue: S.Schema<
|
|
644
|
-
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItem =
|
|
645
|
-
export declare const CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItem: S.Schema<
|
|
1007
|
+
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1008
|
+
export declare const CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1009
|
+
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
1010
|
+
export declare const CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
646
1011
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
647
|
-
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList = Array<
|
|
1012
|
+
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
648
1013
|
export declare const CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList: S.Schema<CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList>;
|
|
649
1014
|
/** Matcher for the entry key (header name or query key). */
|
|
650
|
-
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemKey =
|
|
651
|
-
export declare const CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemKey: S.Schema<
|
|
1015
|
+
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1016
|
+
export declare const CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
652
1017
|
/** Matcher for the entry value. */
|
|
653
|
-
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemValue =
|
|
654
|
-
export declare const CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemValue: S.Schema<
|
|
655
|
-
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItem =
|
|
656
|
-
export declare const CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItem: S.Schema<
|
|
1018
|
+
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1019
|
+
export declare const CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1020
|
+
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
1021
|
+
export declare const CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
657
1022
|
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
658
|
-
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList = Array<
|
|
1023
|
+
export type CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
659
1024
|
export declare const CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList: S.Schema<CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList>;
|
|
660
1025
|
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
661
1026
|
export interface CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatch {
|
|
662
1027
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
663
|
-
path?:
|
|
1028
|
+
path?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
664
1029
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
665
1030
|
method?: CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList;
|
|
666
1031
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
@@ -683,7 +1048,7 @@ export interface CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItem {
|
|
|
683
1048
|
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
684
1049
|
match?: CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemMatch;
|
|
685
1050
|
transform?: CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItemTransformList;
|
|
686
|
-
/** HTTP/1.1 proxy URL to forward traffic to. Must not include query string or fragment. */
|
|
1051
|
+
/** HTTP/1.1 proxy URL to forward traffic to. Must not include username, password, query string, or fragment. */
|
|
687
1052
|
forwardURL?: string;
|
|
688
1053
|
}
|
|
689
1054
|
export declare const CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItem: S.Schema<CreateSandboxesV2RequestNetworkPolicyCase1AllowCase1ValueItem>;
|
|
@@ -716,8 +1081,8 @@ export declare const CreateSandboxesV2RequestNetworkPolicy: S.Schema<CreateSandb
|
|
|
716
1081
|
export type CreateSandboxesV2RequestRuntime = "node22" | "node24" | "node26" | "python3.13";
|
|
717
1082
|
export declare const CreateSandboxesV2RequestRuntime: any;
|
|
718
1083
|
/** Resources to define the VM */
|
|
719
|
-
export type CreateSandboxesV2RequestResources =
|
|
720
|
-
export declare const CreateSandboxesV2RequestResources: S.Schema<
|
|
1084
|
+
export type CreateSandboxesV2RequestResources = CreateSandboxesByNameForkV2RequestResources;
|
|
1085
|
+
export declare const CreateSandboxesV2RequestResources: S.Schema<CreateSandboxesByNameForkV2RequestResources>;
|
|
721
1086
|
/** Clone a Git repository into the sandbox. */
|
|
722
1087
|
export interface CreateSandboxesV2RequestSourceCase0 {
|
|
723
1088
|
/** Indicates the source is a Git repository. */
|
|
@@ -776,6 +1141,14 @@ export type CreateSandboxesV2RequestMountsMap = {
|
|
|
776
1141
|
[key: string]: CreateSandboxesV2RequestMountsValue | undefined;
|
|
777
1142
|
};
|
|
778
1143
|
export declare const CreateSandboxesV2RequestMountsMap: S.Schema<CreateSandboxesV2RequestMountsMap>;
|
|
1144
|
+
/** The Vercel region in which to create the sandbox. */
|
|
1145
|
+
export type CreateSandboxesV2RequestRegion = "iad1" | "sfo1" | "cle1" | "cdg1" | "fra1" | "arn1" | "sin1" | "pdx1" | "lhr1" | "icn1" | "bom1" | "cpt1" | "dub1" | "gru1" | "hkg1" | "syd1" | "yul1" | "hnd1" | "kix1";
|
|
1146
|
+
export declare const CreateSandboxesV2RequestRegion: any;
|
|
1147
|
+
export type CreateSandboxesV2RequestFailoverRegionsItem = "iad1" | "sfo1" | "cle1" | "cdg1" | "fra1" | "arn1" | "sin1" | "pdx1" | "lhr1" | "icn1" | "bom1" | "cpt1" | "dub1" | "gru1" | "hkg1" | "syd1" | "yul1" | "hnd1" | "kix1";
|
|
1148
|
+
export declare const CreateSandboxesV2RequestFailoverRegionsItem: any;
|
|
1149
|
+
/** The regions the sandbox falls back to when it cannot be created in `region`. */
|
|
1150
|
+
export type CreateSandboxesV2RequestFailoverRegionsList = Array<CreateSandboxesV2RequestFailoverRegionsItem | (string & {})>;
|
|
1151
|
+
export declare const CreateSandboxesV2RequestFailoverRegionsList: S.Schema<CreateSandboxesV2RequestFailoverRegionsList>;
|
|
779
1152
|
/** Default snapshot expiration time in milliseconds. Set to 0 to disable expiration. When set, this value is used as the default expiration for all snapshots created for this sandbox. */
|
|
780
1153
|
export type CreateSandboxesV2RequestSnapshotExpiration = unknown | number;
|
|
781
1154
|
export declare const CreateSandboxesV2RequestSnapshotExpiration: S.Schema<CreateSandboxesV2RequestSnapshotExpiration>;
|
|
@@ -806,7 +1179,7 @@ export interface CreateSandboxesV2Request {
|
|
|
806
1179
|
/** The runtime environment for the sandbox. Determines the pre-installed language runtimes and tools available. */
|
|
807
1180
|
runtime?: CreateSandboxesV2RequestRuntime | (string & {});
|
|
808
1181
|
/** Resources to define the VM */
|
|
809
|
-
resources?:
|
|
1182
|
+
resources?: CreateSandboxesByNameForkV2RequestResources;
|
|
810
1183
|
/** The source from which to initialize the sandbox filesystem. Can be a Git repository, a tarball URL, or an existing snapshot. */
|
|
811
1184
|
source?: CreateSandboxesV2RequestSource;
|
|
812
1185
|
/** The target project slug or ID in which the sandbox will be assigned to. */
|
|
@@ -821,6 +1194,10 @@ export interface CreateSandboxesV2Request {
|
|
|
821
1194
|
env?: CreateSandboxesV2RequestEnvMap;
|
|
822
1195
|
/** List of drives to mount to the sandbox at the provided path. */
|
|
823
1196
|
mounts?: CreateSandboxesV2RequestMountsMap;
|
|
1197
|
+
/** The Vercel region in which to create the sandbox. */
|
|
1198
|
+
region?: CreateSandboxesV2RequestRegion | (string & {});
|
|
1199
|
+
/** The regions the sandbox falls back to when it cannot be created in `region`. */
|
|
1200
|
+
failoverRegions?: CreateSandboxesV2RequestFailoverRegionsList;
|
|
824
1201
|
/** Name for the sandbox. Must be unique per project and URL-safe (alphanumeric, hyphens, underscores). */
|
|
825
1202
|
name?: string;
|
|
826
1203
|
/** Whether the sandbox persists its state across restarts via automatic snapshots. Defaults to true. */
|
|
@@ -859,37 +1236,37 @@ export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemHeadersM
|
|
|
859
1236
|
};
|
|
860
1237
|
export declare const CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemHeadersMap: S.Schema<CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemHeadersMap>;
|
|
861
1238
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
862
|
-
export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchPath =
|
|
863
|
-
export declare const CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchPath: S.Schema<
|
|
1239
|
+
export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchPath = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1240
|
+
export declare const CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchPath: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
864
1241
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
865
1242
|
export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList = Array<string>;
|
|
866
1243
|
export declare const CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList: S.Schema<CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList>;
|
|
867
1244
|
/** Matcher for the entry key (header name or query key). */
|
|
868
|
-
export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemKey =
|
|
869
|
-
export declare const CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemKey: S.Schema<
|
|
1245
|
+
export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1246
|
+
export declare const CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
870
1247
|
/** Matcher for the entry value. */
|
|
871
|
-
export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemValue =
|
|
872
|
-
export declare const CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemValue: S.Schema<
|
|
873
|
-
export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem =
|
|
874
|
-
export declare const CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem: S.Schema<
|
|
1248
|
+
export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1249
|
+
export declare const CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1250
|
+
export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
1251
|
+
export declare const CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
875
1252
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
876
|
-
export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList = Array<
|
|
1253
|
+
export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
877
1254
|
export declare const CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList: S.Schema<CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList>;
|
|
878
1255
|
/** Matcher for the entry key (header name or query key). */
|
|
879
|
-
export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemKey =
|
|
880
|
-
export declare const CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemKey: S.Schema<
|
|
1256
|
+
export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1257
|
+
export declare const CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
881
1258
|
/** Matcher for the entry value. */
|
|
882
|
-
export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemValue =
|
|
883
|
-
export declare const CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemValue: S.Schema<
|
|
884
|
-
export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItem =
|
|
885
|
-
export declare const CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItem: S.Schema<
|
|
1259
|
+
export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1260
|
+
export declare const CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1261
|
+
export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
1262
|
+
export declare const CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
886
1263
|
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
887
|
-
export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList = Array<
|
|
1264
|
+
export type CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
888
1265
|
export declare const CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList: S.Schema<CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList>;
|
|
889
1266
|
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
890
1267
|
export interface CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatch {
|
|
891
1268
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
892
|
-
path?:
|
|
1269
|
+
path?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
893
1270
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
894
1271
|
method?: CreateSandboxesV3RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList;
|
|
895
1272
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
@@ -927,37 +1304,37 @@ export declare const CreateSandboxesV3RequestNetworkPolicyCase0: S.Schema<Create
|
|
|
927
1304
|
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase0List = Array<string>;
|
|
928
1305
|
export declare const CreateSandboxesV3RequestNetworkPolicyCase1AllowCase0List: S.Schema<CreateSandboxesV3RequestNetworkPolicyCase1AllowCase0List>;
|
|
929
1306
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
930
|
-
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchPath =
|
|
931
|
-
export declare const CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchPath: S.Schema<
|
|
1307
|
+
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchPath = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1308
|
+
export declare const CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchPath: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
932
1309
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
933
1310
|
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList = Array<string>;
|
|
934
1311
|
export declare const CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList: S.Schema<CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList>;
|
|
935
1312
|
/** Matcher for the entry key (header name or query key). */
|
|
936
|
-
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemKey =
|
|
937
|
-
export declare const CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemKey: S.Schema<
|
|
1313
|
+
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1314
|
+
export declare const CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
938
1315
|
/** Matcher for the entry value. */
|
|
939
|
-
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemValue =
|
|
940
|
-
export declare const CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemValue: S.Schema<
|
|
941
|
-
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItem =
|
|
942
|
-
export declare const CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItem: S.Schema<
|
|
1316
|
+
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1317
|
+
export declare const CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1318
|
+
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
1319
|
+
export declare const CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
943
1320
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
944
|
-
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList = Array<
|
|
1321
|
+
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
945
1322
|
export declare const CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList: S.Schema<CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList>;
|
|
946
1323
|
/** Matcher for the entry key (header name or query key). */
|
|
947
|
-
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemKey =
|
|
948
|
-
export declare const CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemKey: S.Schema<
|
|
1324
|
+
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1325
|
+
export declare const CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
949
1326
|
/** Matcher for the entry value. */
|
|
950
|
-
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemValue =
|
|
951
|
-
export declare const CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemValue: S.Schema<
|
|
952
|
-
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItem =
|
|
953
|
-
export declare const CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItem: S.Schema<
|
|
1327
|
+
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1328
|
+
export declare const CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1329
|
+
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
1330
|
+
export declare const CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
954
1331
|
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
955
|
-
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList = Array<
|
|
1332
|
+
export type CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
956
1333
|
export declare const CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList: S.Schema<CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList>;
|
|
957
1334
|
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
958
1335
|
export interface CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatch {
|
|
959
1336
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
960
|
-
path?:
|
|
1337
|
+
path?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
961
1338
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
962
1339
|
method?: CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList;
|
|
963
1340
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
@@ -980,7 +1357,7 @@ export interface CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItem {
|
|
|
980
1357
|
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
981
1358
|
match?: CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemMatch;
|
|
982
1359
|
transform?: CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItemTransformList;
|
|
983
|
-
/** HTTP/1.1 proxy URL to forward traffic to. Must not include query string or fragment. */
|
|
1360
|
+
/** HTTP/1.1 proxy URL to forward traffic to. Must not include username, password, query string, or fragment. */
|
|
984
1361
|
forwardURL?: string;
|
|
985
1362
|
}
|
|
986
1363
|
export declare const CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItem: S.Schema<CreateSandboxesV3RequestNetworkPolicyCase1AllowCase1ValueItem>;
|
|
@@ -1010,8 +1387,8 @@ export declare const CreateSandboxesV3RequestNetworkPolicyCase1: S.Schema<Create
|
|
|
1010
1387
|
export type CreateSandboxesV3RequestNetworkPolicy = CreateSandboxesV3RequestNetworkPolicyCase0 | CreateSandboxesV3RequestNetworkPolicyCase1;
|
|
1011
1388
|
export declare const CreateSandboxesV3RequestNetworkPolicy: S.Schema<CreateSandboxesV3RequestNetworkPolicy>;
|
|
1012
1389
|
/** Resources to define the VM */
|
|
1013
|
-
export type CreateSandboxesV3RequestResources =
|
|
1014
|
-
export declare const CreateSandboxesV3RequestResources: S.Schema<
|
|
1390
|
+
export type CreateSandboxesV3RequestResources = CreateSandboxesByNameForkV2RequestResources;
|
|
1391
|
+
export declare const CreateSandboxesV3RequestResources: S.Schema<CreateSandboxesByNameForkV2RequestResources>;
|
|
1015
1392
|
/** Clone a Git repository into the sandbox. */
|
|
1016
1393
|
export type CreateSandboxesV3RequestSourceCase0 = CreateSandboxesV2RequestSourceCase0;
|
|
1017
1394
|
export declare const CreateSandboxesV3RequestSourceCase0: S.Schema<CreateSandboxesV2RequestSourceCase0>;
|
|
@@ -1047,6 +1424,14 @@ export type CreateSandboxesV3RequestMountsMap = {
|
|
|
1047
1424
|
[key: string]: CreateSandboxesV3RequestMountsValue | undefined;
|
|
1048
1425
|
};
|
|
1049
1426
|
export declare const CreateSandboxesV3RequestMountsMap: S.Schema<CreateSandboxesV3RequestMountsMap>;
|
|
1427
|
+
/** The Vercel region in which to create the sandbox. */
|
|
1428
|
+
export type CreateSandboxesV3RequestRegion = "iad1" | "sfo1" | "cle1" | "cdg1" | "fra1" | "arn1" | "sin1" | "pdx1" | "lhr1" | "icn1" | "bom1" | "cpt1" | "dub1" | "gru1" | "hkg1" | "syd1" | "yul1" | "hnd1" | "kix1";
|
|
1429
|
+
export declare const CreateSandboxesV3RequestRegion: any;
|
|
1430
|
+
export type CreateSandboxesV3RequestFailoverRegionsItem = "iad1" | "sfo1" | "cle1" | "cdg1" | "fra1" | "arn1" | "sin1" | "pdx1" | "lhr1" | "icn1" | "bom1" | "cpt1" | "dub1" | "gru1" | "hkg1" | "syd1" | "yul1" | "hnd1" | "kix1";
|
|
1431
|
+
export declare const CreateSandboxesV3RequestFailoverRegionsItem: any;
|
|
1432
|
+
/** The regions the sandbox falls back to when it cannot be created in `region`. */
|
|
1433
|
+
export type CreateSandboxesV3RequestFailoverRegionsList = Array<CreateSandboxesV3RequestFailoverRegionsItem | (string & {})>;
|
|
1434
|
+
export declare const CreateSandboxesV3RequestFailoverRegionsList: S.Schema<CreateSandboxesV3RequestFailoverRegionsList>;
|
|
1050
1435
|
/** Default snapshot expiration time in milliseconds. Set to 0 to disable expiration. When set, this value is used as the default expiration for all snapshots created for this sandbox. */
|
|
1051
1436
|
export type CreateSandboxesV3RequestSnapshotExpiration = unknown | number;
|
|
1052
1437
|
export declare const CreateSandboxesV3RequestSnapshotExpiration: S.Schema<CreateSandboxesV3RequestSnapshotExpiration>;
|
|
@@ -1075,7 +1460,7 @@ export interface CreateSandboxesV3Request {
|
|
|
1075
1460
|
slug?: string;
|
|
1076
1461
|
networkPolicy?: CreateSandboxesV3RequestNetworkPolicy;
|
|
1077
1462
|
/** Resources to define the VM */
|
|
1078
|
-
resources?:
|
|
1463
|
+
resources?: CreateSandboxesByNameForkV2RequestResources;
|
|
1079
1464
|
/** The source from which to initialize the sandbox filesystem. Can be a Git repository, a tarball URL, or an existing snapshot. */
|
|
1080
1465
|
source?: CreateSandboxesV3RequestSource;
|
|
1081
1466
|
/** The target project slug or ID in which the sandbox will be assigned to. */
|
|
@@ -1090,6 +1475,10 @@ export interface CreateSandboxesV3Request {
|
|
|
1090
1475
|
env?: CreateSandboxesV3RequestEnvMap;
|
|
1091
1476
|
/** List of drives to mount to the sandbox at the provided path. */
|
|
1092
1477
|
mounts?: CreateSandboxesV3RequestMountsMap;
|
|
1478
|
+
/** The Vercel region in which to create the sandbox. */
|
|
1479
|
+
region?: CreateSandboxesV3RequestRegion | (string & {});
|
|
1480
|
+
/** The regions the sandbox falls back to when it cannot be created in `region`. */
|
|
1481
|
+
failoverRegions?: CreateSandboxesV3RequestFailoverRegionsList;
|
|
1093
1482
|
/** Name for the sandbox. Must be unique per project and URL-safe (alphanumeric, hyphens, underscores). */
|
|
1094
1483
|
name?: string;
|
|
1095
1484
|
/** Whether the sandbox persists its state across restarts via automatic snapshots. Defaults to true. */
|
|
@@ -1110,6 +1499,289 @@ export interface CreateSandboxesV3Response {
|
|
|
1110
1499
|
routes: CreateSandboxesV3ResponseRoutesList;
|
|
1111
1500
|
}
|
|
1112
1501
|
export declare const CreateSandboxesV3Response: S.Schema<CreateSandboxesV3Response>;
|
|
1502
|
+
/** The network access policy mode. Use \"allow-all\" to permit all outbound traffic. Use \"deny-all\" to block all outbound traffic. Use \"custom\" to specify explicit allow/deny rules. */
|
|
1503
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase0Mode = "allow-all" | "deny-all" | "custom" | "default-allow" | "default-deny";
|
|
1504
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase0Mode: any;
|
|
1505
|
+
/** List of domain names the sandbox is allowed to connect to. Only applies when mode is \"custom\". Supports wildcard patterns (e.g., \"*.example.com\" matches all subdomains). */
|
|
1506
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase0AllowedDomainsList = Array<string>;
|
|
1507
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase0AllowedDomainsList: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase0AllowedDomainsList>;
|
|
1508
|
+
/** List of IP address ranges (in CIDR notation) the sandbox is allowed to connect to. Traffic to these addresses bypasses domain-based restrictions. */
|
|
1509
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase0AllowedCIDRsList = Array<string>;
|
|
1510
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase0AllowedCIDRsList: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase0AllowedCIDRsList>;
|
|
1511
|
+
/** List of IP address ranges (in CIDR notation) the sandbox is blocked from connecting to. These rules take precedence over all allowed rules. */
|
|
1512
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase0DeniedCIDRsList = Array<string>;
|
|
1513
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase0DeniedCIDRsList: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase0DeniedCIDRsList>;
|
|
1514
|
+
/** HTTP headers to inject into requests for this domain. Existing headers with the same name will be overridden. */
|
|
1515
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemHeadersMap = {
|
|
1516
|
+
[key: string]: string | undefined;
|
|
1517
|
+
};
|
|
1518
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemHeadersMap: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemHeadersMap>;
|
|
1519
|
+
/** Match on the request path. Comparison is case-sensitive. */
|
|
1520
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchPath = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1521
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchPath: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1522
|
+
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
1523
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList = Array<string>;
|
|
1524
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList>;
|
|
1525
|
+
/** Matcher for the entry key (header name or query key). */
|
|
1526
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1527
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1528
|
+
/** Matcher for the entry value. */
|
|
1529
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1530
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1531
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
1532
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1533
|
+
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
1534
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1535
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList>;
|
|
1536
|
+
/** Matcher for the entry key (header name or query key). */
|
|
1537
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1538
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1539
|
+
/** Matcher for the entry value. */
|
|
1540
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1541
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1542
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
1543
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1544
|
+
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
1545
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1546
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList>;
|
|
1547
|
+
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
1548
|
+
export interface CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatch {
|
|
1549
|
+
/** Match on the request path. Comparison is case-sensitive. */
|
|
1550
|
+
path?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1551
|
+
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
1552
|
+
method?: CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchMethodList;
|
|
1553
|
+
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
1554
|
+
queryString?: CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList;
|
|
1555
|
+
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
1556
|
+
headers?: CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList;
|
|
1557
|
+
}
|
|
1558
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatch: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatch>;
|
|
1559
|
+
export interface CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItem {
|
|
1560
|
+
/** The domain (or pattern) of requests to add headers for. Supports wildcards like *.example.com. */
|
|
1561
|
+
domain: string;
|
|
1562
|
+
/** HTTP headers to inject into requests for this domain. Existing headers with the same name will be overridden. */
|
|
1563
|
+
headers: CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemHeadersMap;
|
|
1564
|
+
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
1565
|
+
match?: CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItemMatch;
|
|
1566
|
+
}
|
|
1567
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItem: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItem>;
|
|
1568
|
+
/** HTTP header injection rules for outgoing requests matching specific domains. Traffic to matching domains will be intercepted instead of proxied through encrypted connections. */
|
|
1569
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesList = Array<CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesItem>;
|
|
1570
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesList: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesList>;
|
|
1571
|
+
/** Network access policy for the sandbox.\n Controls which external hosts the sandbox can communicate with.\n Use \"allow-all\" mode to allow all traffic, \"deny-all\" to block all traffic or \"custom\" to provide specific rules. */
|
|
1572
|
+
export interface CreateSandboxesV4RequestNetworkPolicyCase0 {
|
|
1573
|
+
/** The network access policy mode. Use \"allow-all\" to permit all outbound traffic. Use \"deny-all\" to block all outbound traffic. Use \"custom\" to specify explicit allow/deny rules. */
|
|
1574
|
+
mode: CreateSandboxesV4RequestNetworkPolicyCase0Mode | (string & {});
|
|
1575
|
+
/** List of domain names the sandbox is allowed to connect to. Only applies when mode is \"custom\". Supports wildcard patterns (e.g., \"*.example.com\" matches all subdomains). */
|
|
1576
|
+
allowedDomains?: CreateSandboxesV4RequestNetworkPolicyCase0AllowedDomainsList;
|
|
1577
|
+
/** List of IP address ranges (in CIDR notation) the sandbox is allowed to connect to. Traffic to these addresses bypasses domain-based restrictions. */
|
|
1578
|
+
allowedCIDRs?: CreateSandboxesV4RequestNetworkPolicyCase0AllowedCIDRsList;
|
|
1579
|
+
/** List of IP address ranges (in CIDR notation) the sandbox is blocked from connecting to. These rules take precedence over all allowed rules. */
|
|
1580
|
+
deniedCIDRs?: CreateSandboxesV4RequestNetworkPolicyCase0DeniedCIDRsList;
|
|
1581
|
+
/** HTTP header injection rules for outgoing requests matching specific domains. Traffic to matching domains will be intercepted instead of proxied through encrypted connections. */
|
|
1582
|
+
injectionRules?: CreateSandboxesV4RequestNetworkPolicyCase0InjectionRulesList;
|
|
1583
|
+
}
|
|
1584
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase0: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase0>;
|
|
1585
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase1AllowCase0List = Array<string>;
|
|
1586
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1AllowCase0List: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase1AllowCase0List>;
|
|
1587
|
+
/** Match on the request path. Comparison is case-sensitive. */
|
|
1588
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchPath = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1589
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchPath: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1590
|
+
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
1591
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList = Array<string>;
|
|
1592
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList>;
|
|
1593
|
+
/** Matcher for the entry key (header name or query key). */
|
|
1594
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1595
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1596
|
+
/** Matcher for the entry value. */
|
|
1597
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1598
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1599
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
1600
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1601
|
+
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
1602
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1603
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList>;
|
|
1604
|
+
/** Matcher for the entry key (header name or query key). */
|
|
1605
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1606
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1607
|
+
/** Matcher for the entry value. */
|
|
1608
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1609
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1610
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
1611
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1612
|
+
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
1613
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1614
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList>;
|
|
1615
|
+
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
1616
|
+
export interface CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatch {
|
|
1617
|
+
/** Match on the request path. Comparison is case-sensitive. */
|
|
1618
|
+
path?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1619
|
+
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
1620
|
+
method?: CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList;
|
|
1621
|
+
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
1622
|
+
queryString?: CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList;
|
|
1623
|
+
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
1624
|
+
headers?: CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList;
|
|
1625
|
+
}
|
|
1626
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatch: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatch>;
|
|
1627
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemTransformItemHeadersMap = {
|
|
1628
|
+
[key: string]: string | undefined;
|
|
1629
|
+
};
|
|
1630
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemTransformItemHeadersMap: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemTransformItemHeadersMap>;
|
|
1631
|
+
export interface CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemTransformItem {
|
|
1632
|
+
headers?: CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemTransformItemHeadersMap;
|
|
1633
|
+
}
|
|
1634
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemTransformItem: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemTransformItem>;
|
|
1635
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemTransformList = Array<CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemTransformItem>;
|
|
1636
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemTransformList: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemTransformList>;
|
|
1637
|
+
export interface CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItem {
|
|
1638
|
+
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
1639
|
+
match?: CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemMatch;
|
|
1640
|
+
transform?: CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItemTransformList;
|
|
1641
|
+
/** HTTP/1.1 proxy URL to forward traffic to. Must not include username, password, query string, or fragment. */
|
|
1642
|
+
forwardURL?: string;
|
|
1643
|
+
}
|
|
1644
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItem: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItem>;
|
|
1645
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueList = Array<CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueItem>;
|
|
1646
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueList: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueList>;
|
|
1647
|
+
/** A rule applied to requests matching a domain in the network policy. Only one of `transform` or `forwardURL` can be specified per rule. */
|
|
1648
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1Map = {
|
|
1649
|
+
[key: string]: CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1ValueList | undefined;
|
|
1650
|
+
};
|
|
1651
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1Map: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1Map>;
|
|
1652
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase1Allow = CreateSandboxesV4RequestNetworkPolicyCase1AllowCase0List | CreateSandboxesV4RequestNetworkPolicyCase1AllowCase1Map;
|
|
1653
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1Allow: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase1Allow>;
|
|
1654
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase1SubnetsAllowList = Array<string>;
|
|
1655
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1SubnetsAllowList: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase1SubnetsAllowList>;
|
|
1656
|
+
export type CreateSandboxesV4RequestNetworkPolicyCase1SubnetsDenyList = Array<string>;
|
|
1657
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1SubnetsDenyList: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase1SubnetsDenyList>;
|
|
1658
|
+
export interface CreateSandboxesV4RequestNetworkPolicyCase1Subnets {
|
|
1659
|
+
allow?: CreateSandboxesV4RequestNetworkPolicyCase1SubnetsAllowList;
|
|
1660
|
+
deny?: CreateSandboxesV4RequestNetworkPolicyCase1SubnetsDenyList;
|
|
1661
|
+
}
|
|
1662
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1Subnets: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase1Subnets>;
|
|
1663
|
+
export interface CreateSandboxesV4RequestNetworkPolicyCase1 {
|
|
1664
|
+
allow?: CreateSandboxesV4RequestNetworkPolicyCase1Allow;
|
|
1665
|
+
subnets?: CreateSandboxesV4RequestNetworkPolicyCase1Subnets;
|
|
1666
|
+
}
|
|
1667
|
+
export declare const CreateSandboxesV4RequestNetworkPolicyCase1: S.Schema<CreateSandboxesV4RequestNetworkPolicyCase1>;
|
|
1668
|
+
export type CreateSandboxesV4RequestNetworkPolicy = CreateSandboxesV4RequestNetworkPolicyCase0 | CreateSandboxesV4RequestNetworkPolicyCase1;
|
|
1669
|
+
export declare const CreateSandboxesV4RequestNetworkPolicy: S.Schema<CreateSandboxesV4RequestNetworkPolicy>;
|
|
1670
|
+
/** Resources to define the VM */
|
|
1671
|
+
export type CreateSandboxesV4RequestResources = CreateSandboxesByNameForkV2RequestResources;
|
|
1672
|
+
export declare const CreateSandboxesV4RequestResources: S.Schema<CreateSandboxesByNameForkV2RequestResources>;
|
|
1673
|
+
/** Clone a Git repository into the sandbox. */
|
|
1674
|
+
export type CreateSandboxesV4RequestSourceCase0 = CreateSandboxesV2RequestSourceCase0;
|
|
1675
|
+
export declare const CreateSandboxesV4RequestSourceCase0: S.Schema<CreateSandboxesV2RequestSourceCase0>;
|
|
1676
|
+
/** Download and extract a gzipped tarball into the sandbox. */
|
|
1677
|
+
export type CreateSandboxesV4RequestSourceCase1 = CreateSandboxesV2RequestSourceCase1;
|
|
1678
|
+
export declare const CreateSandboxesV4RequestSourceCase1: S.Schema<CreateSandboxesV2RequestSourceCase1>;
|
|
1679
|
+
/** Restore the sandbox filesystem from an existing snapshot. */
|
|
1680
|
+
export type CreateSandboxesV4RequestSourceCase2 = CreateSandboxesV2RequestSourceCase2;
|
|
1681
|
+
export declare const CreateSandboxesV4RequestSourceCase2: S.Schema<CreateSandboxesV2RequestSourceCase2>;
|
|
1682
|
+
/** The source from which to initialize the sandbox filesystem. Can be a Git repository, a tarball URL, or an existing snapshot. */
|
|
1683
|
+
export type CreateSandboxesV4RequestSource = CreateSandboxesV2RequestSourceCase0 | CreateSandboxesV2RequestSourceCase1 | CreateSandboxesV2RequestSourceCase2;
|
|
1684
|
+
export declare const CreateSandboxesV4RequestSource: S.Schema<CreateSandboxesV4RequestSource>;
|
|
1685
|
+
/** List of ports to expose from the sandbox. Each port will be accessible via a unique URL. Maximum of 15 ports can be exposed. */
|
|
1686
|
+
export type CreateSandboxesV4RequestPortsList = Array<number>;
|
|
1687
|
+
export declare const CreateSandboxesV4RequestPortsList: S.Schema<CreateSandboxesV4RequestPortsList>;
|
|
1688
|
+
/** Default environment variables for the sandbox. These are inherited by all commands unless overridden. */
|
|
1689
|
+
export type CreateSandboxesV4RequestEnvMap = {
|
|
1690
|
+
[key: string]: string | undefined;
|
|
1691
|
+
};
|
|
1692
|
+
export declare const CreateSandboxesV4RequestEnvMap: S.Schema<CreateSandboxesV4RequestEnvMap>;
|
|
1693
|
+
/** Mount the drive read-only or read-write. */
|
|
1694
|
+
export type CreateSandboxesV4RequestMountsValueMode = "read-only" | "read-write";
|
|
1695
|
+
export declare const CreateSandboxesV4RequestMountsValueMode: any;
|
|
1696
|
+
export interface CreateSandboxesV4RequestMountsValue {
|
|
1697
|
+
/** Name of the drive to mount. The drive must already exist. */
|
|
1698
|
+
drive: string;
|
|
1699
|
+
/** Mount the drive read-only or read-write. */
|
|
1700
|
+
mode?: CreateSandboxesV4RequestMountsValueMode | (string & {});
|
|
1701
|
+
}
|
|
1702
|
+
export declare const CreateSandboxesV4RequestMountsValue: S.Schema<CreateSandboxesV4RequestMountsValue>;
|
|
1703
|
+
/** List of drives to mount to the sandbox at the provided path. */
|
|
1704
|
+
export type CreateSandboxesV4RequestMountsMap = {
|
|
1705
|
+
[key: string]: CreateSandboxesV4RequestMountsValue | undefined;
|
|
1706
|
+
};
|
|
1707
|
+
export declare const CreateSandboxesV4RequestMountsMap: S.Schema<CreateSandboxesV4RequestMountsMap>;
|
|
1708
|
+
/** The Vercel region in which to create the sandbox. */
|
|
1709
|
+
export type CreateSandboxesV4RequestRegion = "iad1" | "sfo1" | "cle1" | "cdg1" | "fra1" | "arn1" | "sin1" | "pdx1" | "lhr1" | "icn1" | "bom1" | "cpt1" | "dub1" | "gru1" | "hkg1" | "syd1" | "yul1" | "hnd1" | "kix1";
|
|
1710
|
+
export declare const CreateSandboxesV4RequestRegion: any;
|
|
1711
|
+
export type CreateSandboxesV4RequestFailoverRegionsItem = "iad1" | "sfo1" | "cle1" | "cdg1" | "fra1" | "arn1" | "sin1" | "pdx1" | "lhr1" | "icn1" | "bom1" | "cpt1" | "dub1" | "gru1" | "hkg1" | "syd1" | "yul1" | "hnd1" | "kix1";
|
|
1712
|
+
export declare const CreateSandboxesV4RequestFailoverRegionsItem: any;
|
|
1713
|
+
/** The regions the sandbox falls back to when it cannot be created in `region`. */
|
|
1714
|
+
export type CreateSandboxesV4RequestFailoverRegionsList = Array<CreateSandboxesV4RequestFailoverRegionsItem | (string & {})>;
|
|
1715
|
+
export declare const CreateSandboxesV4RequestFailoverRegionsList: S.Schema<CreateSandboxesV4RequestFailoverRegionsList>;
|
|
1716
|
+
/** Default snapshot expiration time in milliseconds. Defaults to 7 days. Set to 0 to disable expiration. When set, this value is used as the default expiration for all snapshots created for this sandbox. */
|
|
1717
|
+
export type CreateSandboxesV4RequestSnapshotExpiration = unknown | number;
|
|
1718
|
+
export declare const CreateSandboxesV4RequestSnapshotExpiration: S.Schema<CreateSandboxesV4RequestSnapshotExpiration>;
|
|
1719
|
+
/** Expiration time in milliseconds for kept snapshots. Falls back to snapshotExpiration. */
|
|
1720
|
+
export type CreateSandboxesV4RequestKeepLastSnapshotsCase1Expiration = unknown | number;
|
|
1721
|
+
export declare const CreateSandboxesV4RequestKeepLastSnapshotsCase1Expiration: S.Schema<CreateSandboxesV4RequestKeepLastSnapshotsCase1Expiration>;
|
|
1722
|
+
export interface CreateSandboxesV4RequestKeepLastSnapshotsCase1 {
|
|
1723
|
+
/** Number of most recent snapshots to keep. */
|
|
1724
|
+
count: number;
|
|
1725
|
+
/** Expiration time in milliseconds for kept snapshots. Falls back to snapshotExpiration. */
|
|
1726
|
+
expiration?: CreateSandboxesV4RequestKeepLastSnapshotsCase1Expiration;
|
|
1727
|
+
/** Whether to immediately delete evicted snapshots. Defaults to true. */
|
|
1728
|
+
deleteEvicted?: boolean;
|
|
1729
|
+
}
|
|
1730
|
+
export declare const CreateSandboxesV4RequestKeepLastSnapshotsCase1: S.Schema<CreateSandboxesV4RequestKeepLastSnapshotsCase1>;
|
|
1731
|
+
/** Protect the N most recent snapshots with different expiration/deletion behavior. Persistent sandboxes default to keeping only the last snapshot (evicted snapshots are deleted). Set to null to disable the limit. */
|
|
1732
|
+
export type CreateSandboxesV4RequestKeepLastSnapshots = string | CreateSandboxesV4RequestKeepLastSnapshotsCase1;
|
|
1733
|
+
export declare const CreateSandboxesV4RequestKeepLastSnapshots: S.Schema<CreateSandboxesV4RequestKeepLastSnapshots>;
|
|
1734
|
+
/** Key-value tags to associate with the sandbox. Maximum 5 tags. */
|
|
1735
|
+
export type CreateSandboxesV4RequestTagsMap = {
|
|
1736
|
+
[key: string]: string | undefined;
|
|
1737
|
+
};
|
|
1738
|
+
export declare const CreateSandboxesV4RequestTagsMap: S.Schema<CreateSandboxesV4RequestTagsMap>;
|
|
1739
|
+
export interface CreateSandboxesV4Request {
|
|
1740
|
+
/** The Team identifier to perform the request on behalf of. */
|
|
1741
|
+
teamId?: string;
|
|
1742
|
+
/** The Team slug to perform the request on behalf of. */
|
|
1743
|
+
slug?: string;
|
|
1744
|
+
networkPolicy?: CreateSandboxesV4RequestNetworkPolicy;
|
|
1745
|
+
/** Resources to define the VM */
|
|
1746
|
+
resources?: CreateSandboxesByNameForkV2RequestResources;
|
|
1747
|
+
/** The source from which to initialize the sandbox filesystem. Can be a Git repository, a tarball URL, or an existing snapshot. */
|
|
1748
|
+
source?: CreateSandboxesV4RequestSource;
|
|
1749
|
+
/** The target project slug or ID in which the sandbox will be assigned to. */
|
|
1750
|
+
projectId?: string;
|
|
1751
|
+
/** List of ports to expose from the sandbox. Each port will be accessible via a unique URL. Maximum of 15 ports can be exposed. */
|
|
1752
|
+
ports?: CreateSandboxesV4RequestPortsList;
|
|
1753
|
+
/** Image to use for the sandbox. */
|
|
1754
|
+
image?: string;
|
|
1755
|
+
/** Maximum duration in milliseconds that the sandbox can run before being automatically stopped. */
|
|
1756
|
+
timeout?: number;
|
|
1757
|
+
/** Default environment variables for the sandbox. These are inherited by all commands unless overridden. */
|
|
1758
|
+
env?: CreateSandboxesV4RequestEnvMap;
|
|
1759
|
+
/** List of drives to mount to the sandbox at the provided path. */
|
|
1760
|
+
mounts?: CreateSandboxesV4RequestMountsMap;
|
|
1761
|
+
/** The Vercel region in which to create the sandbox. */
|
|
1762
|
+
region?: CreateSandboxesV4RequestRegion | (string & {});
|
|
1763
|
+
/** The regions the sandbox falls back to when it cannot be created in `region`. */
|
|
1764
|
+
failoverRegions?: CreateSandboxesV4RequestFailoverRegionsList;
|
|
1765
|
+
/** Name for the sandbox. Must be unique per project and URL-safe (alphanumeric, hyphens, underscores). */
|
|
1766
|
+
name?: string;
|
|
1767
|
+
/** Whether the sandbox persists its state across restarts via automatic snapshots. Defaults to true. */
|
|
1768
|
+
persistent?: boolean;
|
|
1769
|
+
/** Default snapshot expiration time in milliseconds. Defaults to 7 days. Set to 0 to disable expiration. When set, this value is used as the default expiration for all snapshots created for this sandbox. */
|
|
1770
|
+
snapshotExpiration?: CreateSandboxesV4RequestSnapshotExpiration;
|
|
1771
|
+
/** Protect the N most recent snapshots with different expiration/deletion behavior. Persistent sandboxes default to keeping only the last snapshot (evicted snapshots are deleted). Set to null to disable the limit. */
|
|
1772
|
+
keepLastSnapshots?: CreateSandboxesV4RequestKeepLastSnapshots;
|
|
1773
|
+
/** Key-value tags to associate with the sandbox. Maximum 5 tags. */
|
|
1774
|
+
tags?: CreateSandboxesV4RequestTagsMap;
|
|
1775
|
+
}
|
|
1776
|
+
export declare const CreateSandboxesV4Request: S.Schema<CreateSandboxesV4Request>;
|
|
1777
|
+
export type CreateSandboxesV4ResponseRoutesList = Array<SandboxPublicRoute>;
|
|
1778
|
+
export declare const CreateSandboxesV4ResponseRoutesList: S.Schema<CreateSandboxesV4ResponseRoutesList>;
|
|
1779
|
+
export interface CreateSandboxesV4Response {
|
|
1780
|
+
sandbox: NamedSandbox;
|
|
1781
|
+
session: Session;
|
|
1782
|
+
routes: CreateSandboxesV4ResponseRoutesList;
|
|
1783
|
+
}
|
|
1784
|
+
export declare const CreateSandboxesV4Response: S.Schema<CreateSandboxesV4Response>;
|
|
1113
1785
|
export interface CreateSessionDirectoryRequest {
|
|
1114
1786
|
/** The unique identifier of the session to create the directory in. */
|
|
1115
1787
|
sessionId: string;
|
|
@@ -1127,57 +1799,6 @@ export interface CreateSessionDirectoryRequest {
|
|
|
1127
1799
|
export declare const CreateSessionDirectoryRequest: S.Schema<CreateSessionDirectoryRequest>;
|
|
1128
1800
|
export type CreateSessionDirectoryResponse = unknown;
|
|
1129
1801
|
export declare const CreateSessionDirectoryResponse: S.Schema<CreateSessionDirectoryResponse>;
|
|
1130
|
-
/** The number of milliseconds after which the snapshot will expire and be deleted. Use 0 for no expiration. */
|
|
1131
|
-
export type CreateSessionSnapshotRequestExpiration = unknown | number;
|
|
1132
|
-
export declare const CreateSessionSnapshotRequestExpiration: S.Schema<CreateSessionSnapshotRequestExpiration>;
|
|
1133
|
-
export interface CreateSessionSnapshotRequest {
|
|
1134
|
-
/** The unique identifier of the session to snapshot. */
|
|
1135
|
-
sessionId: string;
|
|
1136
|
-
/** The Team identifier to perform the request on behalf of. */
|
|
1137
|
-
teamId?: string;
|
|
1138
|
-
/** The Team slug to perform the request on behalf of. */
|
|
1139
|
-
slug?: string;
|
|
1140
|
-
/** The number of milliseconds after which the snapshot will expire and be deleted. Use 0 for no expiration. */
|
|
1141
|
-
expiration?: CreateSessionSnapshotRequestExpiration;
|
|
1142
|
-
}
|
|
1143
|
-
export declare const CreateSessionSnapshotRequest: S.Schema<CreateSessionSnapshotRequest>;
|
|
1144
|
-
/** The status of the snapshot. */
|
|
1145
|
-
export type SnapshotStatus = "created" | "deleted" | "failed";
|
|
1146
|
-
export declare const SnapshotStatus: any;
|
|
1147
|
-
/** The method used to create the snapshot. */
|
|
1148
|
-
export type SnapshotCreationMethod = "automatic" | "manual";
|
|
1149
|
-
export declare const SnapshotCreationMethod: any;
|
|
1150
|
-
/** This object contains information related to a Snapshot of a Vercel Sandbox session (v2 API). */
|
|
1151
|
-
export interface Snapshot {
|
|
1152
|
-
/** The unique identifier of the snapshot. */
|
|
1153
|
-
id: string;
|
|
1154
|
-
/** The unique identifier of the session from which the snapshot was created. */
|
|
1155
|
-
sourceSessionId: string;
|
|
1156
|
-
/** The region where the snapshot is stored. */
|
|
1157
|
-
region?: string;
|
|
1158
|
-
/** The status of the snapshot. */
|
|
1159
|
-
status: SnapshotStatus;
|
|
1160
|
-
/** The size of the snapshot in bytes. */
|
|
1161
|
-
sizeBytes: number;
|
|
1162
|
-
/** The time when the snapshot will expire, in milliseconds since the epoch. If not set, the snapshot does not have any expiration. */
|
|
1163
|
-
expiresAt?: number;
|
|
1164
|
-
/** The time when the snapshot was created, in milliseconds since the epoch. */
|
|
1165
|
-
createdAt: number;
|
|
1166
|
-
/** The last time the snapshot was updated, in milliseconds since the epoch. */
|
|
1167
|
-
updatedAt: number;
|
|
1168
|
-
/** The last time the snapshot was used (e.g. to resume or create a sandbox), in milliseconds since the epoch. Falls back to `createdAt` for older snapshots that predate this field. */
|
|
1169
|
-
lastUsedAt: number;
|
|
1170
|
-
/** The method used to create the snapshot. */
|
|
1171
|
-
creationMethod?: SnapshotCreationMethod;
|
|
1172
|
-
/** The unique identifier of the parent snapshot, if this snapshot was created from another snapshot. */
|
|
1173
|
-
parentId?: string;
|
|
1174
|
-
}
|
|
1175
|
-
export declare const Snapshot: S.Schema<Snapshot>;
|
|
1176
|
-
export interface CreateSessionSnapshotResponse {
|
|
1177
|
-
snapshot: Snapshot;
|
|
1178
|
-
session: Session;
|
|
1179
|
-
}
|
|
1180
|
-
export declare const CreateSessionSnapshotResponse: S.Schema<CreateSessionSnapshotResponse>;
|
|
1181
1802
|
export interface DeleteDriveRequest {
|
|
1182
1803
|
/** Name for the drive. Must be unique per project and URL-safe (alphanumeric, hyphens, underscores). */
|
|
1183
1804
|
name: string;
|
|
@@ -1191,6 +1812,8 @@ export interface DeleteDriveRequest {
|
|
|
1191
1812
|
export declare const DeleteDriveRequest: S.Schema<DeleteDriveRequest>;
|
|
1192
1813
|
/** This object contains information related to a Vercel Sandbox Drive. */
|
|
1193
1814
|
export interface Drive {
|
|
1815
|
+
/** The unique drive ID. */
|
|
1816
|
+
id: string;
|
|
1194
1817
|
/** The unique drive name within the project. */
|
|
1195
1818
|
name: string;
|
|
1196
1819
|
/** The project that owns the drive. */
|
|
@@ -1218,6 +1841,8 @@ export interface DeleteSandboxRequest {
|
|
|
1218
1841
|
name: string;
|
|
1219
1842
|
/** The project ID that owns the named sandbox. When provided, takes precedence over OIDC project context. */
|
|
1220
1843
|
projectId?: string;
|
|
1844
|
+
/** When true, snapshots of the deleted sandbox that are not referenced by any other sandbox are also deleted asynchronously. Defaults to false. */
|
|
1845
|
+
deleteOrphanSnapshots?: boolean;
|
|
1221
1846
|
/** The Team identifier to perform the request on behalf of. */
|
|
1222
1847
|
teamId?: string;
|
|
1223
1848
|
/** The Team slug to perform the request on behalf of. */
|
|
@@ -1279,7 +1904,7 @@ export interface GetNamedSandboxResponse {
|
|
|
1279
1904
|
}
|
|
1280
1905
|
export declare const GetNamedSandboxResponse: S.Schema<GetNamedSandboxResponse>;
|
|
1281
1906
|
/** Region where the drive is stored. Defaults to iad1. */
|
|
1282
|
-
export type GetOrCreateDriveRequestRegion = "iad1" | "sfo1" | "cle1";
|
|
1907
|
+
export type GetOrCreateDriveRequestRegion = "iad1" | "sfo1" | "cle1" | "cdg1" | "fra1" | "arn1" | "sin1" | "pdx1" | "lhr1" | "icn1" | "bom1" | "cpt1" | "dub1" | "gru1" | "hkg1" | "syd1" | "yul1" | "hnd1" | "kix1";
|
|
1283
1908
|
export declare const GetOrCreateDriveRequestRegion: any;
|
|
1284
1909
|
export interface GetOrCreateDriveRequest {
|
|
1285
1910
|
/** Name for the drive. Must be unique per project and URL-safe (alphanumeric, hyphens, underscores). */
|
|
@@ -1440,52 +2065,6 @@ export interface ListDrivesResponse {
|
|
|
1440
2065
|
pagination: ListDrivesResponsePagination;
|
|
1441
2066
|
}
|
|
1442
2067
|
export declare const ListDrivesResponse: S.Schema<ListDrivesResponse>;
|
|
1443
|
-
/** Field to sort by. */
|
|
1444
|
-
export type ListSandboxesRequestSortBy = "createdAt" | "name" | "statusUpdatedAt" | "currentSnapshotId";
|
|
1445
|
-
export declare const ListSandboxesRequestSortBy: any;
|
|
1446
|
-
/** Sort direction. Defaults to desc. */
|
|
1447
|
-
export type ListSandboxesRequestSortOrder = "asc" | "desc";
|
|
1448
|
-
export declare const ListSandboxesRequestSortOrder: any;
|
|
1449
|
-
/** Filter named sandboxes by status. Only valid when sortBy is createdAt. */
|
|
1450
|
-
export type ListSandboxesRequestStatus = "running" | "stopping" | "stopped";
|
|
1451
|
-
export declare const ListSandboxesRequestStatus: any;
|
|
1452
|
-
export type ListSandboxesRequestTagsCase1List = Array<string>;
|
|
1453
|
-
export declare const ListSandboxesRequestTagsCase1List: S.Schema<ListSandboxesRequestTagsCase1List>;
|
|
1454
|
-
/** Filter sandboxes by tag. Format: \"key:value\". Only one tag filter is supported at a time. */
|
|
1455
|
-
export type ListSandboxesRequestTags = string | ListSandboxesRequestTagsCase1List;
|
|
1456
|
-
export declare const ListSandboxesRequestTags: S.Schema<ListSandboxesRequestTags>;
|
|
1457
|
-
export interface ListSandboxesRequest {
|
|
1458
|
-
/** The unique identifier or name of the project to list named sandboxes for. */
|
|
1459
|
-
project?: string;
|
|
1460
|
-
/** Maximum number of named sandboxes to return in the response. Used for pagination. */
|
|
1461
|
-
limit?: number;
|
|
1462
|
-
/** Field to sort by. */
|
|
1463
|
-
sortBy?: ListSandboxesRequestSortBy | (string & {});
|
|
1464
|
-
/** Filter named sandboxes whose name starts with this prefix. Only valid when sortBy=name. */
|
|
1465
|
-
namePrefix?: string;
|
|
1466
|
-
/** Opaque pagination cursor from a previous response. */
|
|
1467
|
-
cursor?: string;
|
|
1468
|
-
/** Sort direction. Defaults to desc. */
|
|
1469
|
-
sortOrder?: ListSandboxesRequestSortOrder | (string & {});
|
|
1470
|
-
/** Filter named sandboxes by status. Only valid when sortBy is createdAt. */
|
|
1471
|
-
status?: ListSandboxesRequestStatus | (string & {});
|
|
1472
|
-
/** Filter sandboxes by tag. Format: \"key:value\". Only one tag filter is supported at a time. */
|
|
1473
|
-
tags?: ListSandboxesRequestTags;
|
|
1474
|
-
/** The Team identifier to perform the request on behalf of. */
|
|
1475
|
-
teamId?: string;
|
|
1476
|
-
/** The Team slug to perform the request on behalf of. */
|
|
1477
|
-
slug?: string;
|
|
1478
|
-
}
|
|
1479
|
-
export declare const ListSandboxesRequest: S.Schema<ListSandboxesRequest>;
|
|
1480
|
-
export type ListSandboxesResponseSandboxesList = Array<NamedSandbox>;
|
|
1481
|
-
export declare const ListSandboxesResponseSandboxesList: S.Schema<ListSandboxesResponseSandboxesList>;
|
|
1482
|
-
export type ListSandboxesResponsePagination = ListDrivesResponsePagination;
|
|
1483
|
-
export declare const ListSandboxesResponsePagination: S.Schema<ListDrivesResponsePagination>;
|
|
1484
|
-
export interface ListSandboxesResponse {
|
|
1485
|
-
sandboxes: ListSandboxesResponseSandboxesList;
|
|
1486
|
-
pagination: ListDrivesResponsePagination;
|
|
1487
|
-
}
|
|
1488
|
-
export declare const ListSandboxesResponse: S.Schema<ListSandboxesResponse>;
|
|
1489
2068
|
export interface ListSessionCommandsRequest {
|
|
1490
2069
|
/** The unique identifier of the session to list commands for. */
|
|
1491
2070
|
sessionId: string;
|
|
@@ -1614,7 +2193,7 @@ export interface RunSessionCommandRequest {
|
|
|
1614
2193
|
wait?: boolean;
|
|
1615
2194
|
/** If true, stream the logs of the command execution in real-time via ND-JSON. This is only applicable if `wait` is also true. */
|
|
1616
2195
|
logs?: boolean;
|
|
1617
|
-
/** Maximum duration in milliseconds the command may run before it is killed with SIGKILL. Enforced at exec time, independently of `wait`. */
|
|
2196
|
+
/** Maximum duration in milliseconds the command may run before it is killed with SIGKILL, up to 5 hours. Enforced at exec time, independently of `wait`. */
|
|
1618
2197
|
timeout?: number;
|
|
1619
2198
|
}
|
|
1620
2199
|
export declare const RunSessionCommandRequest: S.Schema<RunSessionCommandRequest>;
|
|
@@ -1646,8 +2225,8 @@ export declare const StopSessionResponseBody: S.Schema<StopSessionResponseBody>;
|
|
|
1646
2225
|
export type StopSessionResponse = StopSessionResponseBody;
|
|
1647
2226
|
export declare const StopSessionResponse: S.Schema<StopSessionResponse>;
|
|
1648
2227
|
/** Resources to define the VM */
|
|
1649
|
-
export type UpdateSandboxRequestResources =
|
|
1650
|
-
export declare const UpdateSandboxRequestResources: S.Schema<
|
|
2228
|
+
export type UpdateSandboxRequestResources = CreateSandboxesByNameForkV2RequestResources;
|
|
2229
|
+
export declare const UpdateSandboxRequestResources: S.Schema<CreateSandboxesByNameForkV2RequestResources>;
|
|
1651
2230
|
/** The runtime environment for the sandbox. Determines the pre-installed language runtimes and tools available. */
|
|
1652
2231
|
export type UpdateSandboxRequestRuntime = "node22" | "node24" | "node26" | "python3.13";
|
|
1653
2232
|
export declare const UpdateSandboxRequestRuntime: any;
|
|
@@ -1687,37 +2266,37 @@ export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemHeadersMap =
|
|
|
1687
2266
|
};
|
|
1688
2267
|
export declare const UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemHeadersMap: S.Schema<UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemHeadersMap>;
|
|
1689
2268
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
1690
|
-
export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchPath =
|
|
1691
|
-
export declare const UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchPath: S.Schema<
|
|
2269
|
+
export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchPath = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2270
|
+
export declare const UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchPath: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1692
2271
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
1693
2272
|
export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchMethodList = Array<string>;
|
|
1694
2273
|
export declare const UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchMethodList: S.Schema<UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchMethodList>;
|
|
1695
2274
|
/** Matcher for the entry key (header name or query key). */
|
|
1696
|
-
export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemKey =
|
|
1697
|
-
export declare const UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemKey: S.Schema<
|
|
2275
|
+
export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2276
|
+
export declare const UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1698
2277
|
/** Matcher for the entry value. */
|
|
1699
|
-
export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemValue =
|
|
1700
|
-
export declare const UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemValue: S.Schema<
|
|
1701
|
-
export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem =
|
|
1702
|
-
export declare const UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem: S.Schema<
|
|
2278
|
+
export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2279
|
+
export declare const UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
2280
|
+
export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
2281
|
+
export declare const UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1703
2282
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
1704
|
-
export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList = Array<
|
|
2283
|
+
export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1705
2284
|
export declare const UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList: S.Schema<UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringList>;
|
|
1706
2285
|
/** Matcher for the entry key (header name or query key). */
|
|
1707
|
-
export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemKey =
|
|
1708
|
-
export declare const UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemKey: S.Schema<
|
|
2286
|
+
export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2287
|
+
export declare const UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1709
2288
|
/** Matcher for the entry value. */
|
|
1710
|
-
export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemValue =
|
|
1711
|
-
export declare const UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemValue: S.Schema<
|
|
1712
|
-
export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItem =
|
|
1713
|
-
export declare const UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItem: S.Schema<
|
|
2289
|
+
export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2290
|
+
export declare const UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
2291
|
+
export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
2292
|
+
export declare const UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchHeadersItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1714
2293
|
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
1715
|
-
export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList = Array<
|
|
2294
|
+
export type UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1716
2295
|
export declare const UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList: S.Schema<UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchHeadersList>;
|
|
1717
2296
|
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
1718
2297
|
export interface UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatch {
|
|
1719
2298
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
1720
|
-
path?:
|
|
2299
|
+
path?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1721
2300
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
1722
2301
|
method?: UpdateSandboxRequestNetworkPolicyCase0InjectionRulesItemMatchMethodList;
|
|
1723
2302
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
@@ -1755,37 +2334,37 @@ export declare const UpdateSandboxRequestNetworkPolicyCase0: S.Schema<UpdateSand
|
|
|
1755
2334
|
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase0List = Array<string>;
|
|
1756
2335
|
export declare const UpdateSandboxRequestNetworkPolicyCase1AllowCase0List: S.Schema<UpdateSandboxRequestNetworkPolicyCase1AllowCase0List>;
|
|
1757
2336
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
1758
|
-
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchPath =
|
|
1759
|
-
export declare const UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchPath: S.Schema<
|
|
2337
|
+
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchPath = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2338
|
+
export declare const UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchPath: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1760
2339
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
1761
2340
|
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList = Array<string>;
|
|
1762
2341
|
export declare const UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList: S.Schema<UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList>;
|
|
1763
2342
|
/** Matcher for the entry key (header name or query key). */
|
|
1764
|
-
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemKey =
|
|
1765
|
-
export declare const UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemKey: S.Schema<
|
|
2343
|
+
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2344
|
+
export declare const UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1766
2345
|
/** Matcher for the entry value. */
|
|
1767
|
-
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemValue =
|
|
1768
|
-
export declare const UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemValue: S.Schema<
|
|
1769
|
-
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItem =
|
|
1770
|
-
export declare const UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItem: S.Schema<
|
|
2346
|
+
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2347
|
+
export declare const UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
2348
|
+
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
2349
|
+
export declare const UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1771
2350
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
1772
|
-
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList = Array<
|
|
2351
|
+
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1773
2352
|
export declare const UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList: S.Schema<UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchQueryStringList>;
|
|
1774
2353
|
/** Matcher for the entry key (header name or query key). */
|
|
1775
|
-
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemKey =
|
|
1776
|
-
export declare const UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemKey: S.Schema<
|
|
2354
|
+
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2355
|
+
export declare const UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1777
2356
|
/** Matcher for the entry value. */
|
|
1778
|
-
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemValue =
|
|
1779
|
-
export declare const UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemValue: S.Schema<
|
|
1780
|
-
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItem =
|
|
1781
|
-
export declare const UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItem: S.Schema<
|
|
2357
|
+
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2358
|
+
export declare const UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
2359
|
+
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
2360
|
+
export declare const UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1782
2361
|
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
1783
|
-
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList = Array<
|
|
2362
|
+
export type UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1784
2363
|
export declare const UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList: S.Schema<UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchHeadersList>;
|
|
1785
2364
|
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
1786
2365
|
export interface UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatch {
|
|
1787
2366
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
1788
|
-
path?:
|
|
2367
|
+
path?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1789
2368
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
1790
2369
|
method?: UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatchMethodList;
|
|
1791
2370
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
@@ -1808,7 +2387,7 @@ export interface UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItem {
|
|
|
1808
2387
|
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
1809
2388
|
match?: UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemMatch;
|
|
1810
2389
|
transform?: UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItemTransformList;
|
|
1811
|
-
/** HTTP/1.1 proxy URL to forward traffic to. Must not include query string or fragment. */
|
|
2390
|
+
/** HTTP/1.1 proxy URL to forward traffic to. Must not include username, password, query string, or fragment. */
|
|
1812
2391
|
forwardURL?: string;
|
|
1813
2392
|
}
|
|
1814
2393
|
export declare const UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItem: S.Schema<UpdateSandboxRequestNetworkPolicyCase1AllowCase1ValueItem>;
|
|
@@ -1837,6 +2416,14 @@ export interface UpdateSandboxRequestNetworkPolicyCase1 {
|
|
|
1837
2416
|
export declare const UpdateSandboxRequestNetworkPolicyCase1: S.Schema<UpdateSandboxRequestNetworkPolicyCase1>;
|
|
1838
2417
|
export type UpdateSandboxRequestNetworkPolicy = UpdateSandboxRequestNetworkPolicyCase0 | UpdateSandboxRequestNetworkPolicyCase1;
|
|
1839
2418
|
export declare const UpdateSandboxRequestNetworkPolicy: S.Schema<UpdateSandboxRequestNetworkPolicy>;
|
|
2419
|
+
/** The Vercel region in which to create the sandbox. */
|
|
2420
|
+
export type UpdateSandboxRequestRegion = "iad1" | "sfo1" | "cle1" | "cdg1" | "fra1" | "arn1" | "sin1" | "pdx1" | "lhr1" | "icn1" | "bom1" | "cpt1" | "dub1" | "gru1" | "hkg1" | "syd1" | "yul1" | "hnd1" | "kix1";
|
|
2421
|
+
export declare const UpdateSandboxRequestRegion: any;
|
|
2422
|
+
export type UpdateSandboxRequestFailoverRegionsItem = "iad1" | "sfo1" | "cle1" | "cdg1" | "fra1" | "arn1" | "sin1" | "pdx1" | "lhr1" | "icn1" | "bom1" | "cpt1" | "dub1" | "gru1" | "hkg1" | "syd1" | "yul1" | "hnd1" | "kix1";
|
|
2423
|
+
export declare const UpdateSandboxRequestFailoverRegionsItem: any;
|
|
2424
|
+
/** The regions the sandbox falls back to when it cannot be created in `region`. */
|
|
2425
|
+
export type UpdateSandboxRequestFailoverRegionsList = Array<UpdateSandboxRequestFailoverRegionsItem | (string & {})>;
|
|
2426
|
+
export declare const UpdateSandboxRequestFailoverRegionsList: S.Schema<UpdateSandboxRequestFailoverRegionsList>;
|
|
1840
2427
|
/** Default environment variables for the sandbox. Set to empty object to clear. */
|
|
1841
2428
|
export type UpdateSandboxRequestEnvMap = {
|
|
1842
2429
|
[key: string]: string | undefined;
|
|
@@ -1862,7 +2449,7 @@ export interface UpdateSandboxRequest {
|
|
|
1862
2449
|
/** The Team slug to perform the request on behalf of. */
|
|
1863
2450
|
slug?: string;
|
|
1864
2451
|
/** Resources to define the VM */
|
|
1865
|
-
resources?:
|
|
2452
|
+
resources?: CreateSandboxesByNameForkV2RequestResources;
|
|
1866
2453
|
/** The runtime environment for the sandbox. Determines the pre-installed language runtimes and tools available. */
|
|
1867
2454
|
runtime?: UpdateSandboxRequestRuntime | (string & {});
|
|
1868
2455
|
/** Maximum duration in milliseconds that the sandbox can run before being automatically stopped. */
|
|
@@ -1874,6 +2461,10 @@ export interface UpdateSandboxRequest {
|
|
|
1874
2461
|
/** Protect the N most recent snapshots with different expiration/deletion behavior. Set to null to clear. */
|
|
1875
2462
|
keepLastSnapshots?: UpdateSandboxRequestKeepLastSnapshots;
|
|
1876
2463
|
networkPolicy?: UpdateSandboxRequestNetworkPolicy;
|
|
2464
|
+
/** The Vercel region in which to create the sandbox. */
|
|
2465
|
+
region?: UpdateSandboxRequestRegion | (string & {});
|
|
2466
|
+
/** The regions the sandbox falls back to when it cannot be created in `region`. */
|
|
2467
|
+
failoverRegions?: UpdateSandboxRequestFailoverRegionsList;
|
|
1877
2468
|
/** Default environment variables for the sandbox. Set to empty object to clear. */
|
|
1878
2469
|
env?: UpdateSandboxRequestEnvMap;
|
|
1879
2470
|
/** List of ports to expose from the sandbox. Each port will be accessible via a unique URL. Maximum of 15 ports can be exposed. */
|
|
@@ -1922,37 +2513,37 @@ export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemHeadersM
|
|
|
1922
2513
|
};
|
|
1923
2514
|
export declare const UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemHeadersMap: S.Schema<UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemHeadersMap>;
|
|
1924
2515
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
1925
|
-
export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchPath =
|
|
1926
|
-
export declare const UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchPath: S.Schema<
|
|
2516
|
+
export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchPath = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2517
|
+
export declare const UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchPath: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1927
2518
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
1928
2519
|
export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchMethodList = Array<string>;
|
|
1929
2520
|
export declare const UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchMethodList: S.Schema<UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchMethodList>;
|
|
1930
2521
|
/** Matcher for the entry key (header name or query key). */
|
|
1931
|
-
export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchQueryStringItemKey =
|
|
1932
|
-
export declare const UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchQueryStringItemKey: S.Schema<
|
|
2522
|
+
export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchQueryStringItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2523
|
+
export declare const UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchQueryStringItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1933
2524
|
/** Matcher for the entry value. */
|
|
1934
|
-
export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchQueryStringItemValue =
|
|
1935
|
-
export declare const UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchQueryStringItemValue: S.Schema<
|
|
1936
|
-
export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchQueryStringItem =
|
|
1937
|
-
export declare const UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchQueryStringItem: S.Schema<
|
|
2525
|
+
export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchQueryStringItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2526
|
+
export declare const UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchQueryStringItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
2527
|
+
export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchQueryStringItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
2528
|
+
export declare const UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchQueryStringItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1938
2529
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
1939
|
-
export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchQueryStringList = Array<
|
|
2530
|
+
export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchQueryStringList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1940
2531
|
export declare const UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchQueryStringList: S.Schema<UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchQueryStringList>;
|
|
1941
2532
|
/** Matcher for the entry key (header name or query key). */
|
|
1942
|
-
export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchHeadersItemKey =
|
|
1943
|
-
export declare const UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchHeadersItemKey: S.Schema<
|
|
2533
|
+
export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchHeadersItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2534
|
+
export declare const UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchHeadersItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1944
2535
|
/** Matcher for the entry value. */
|
|
1945
|
-
export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchHeadersItemValue =
|
|
1946
|
-
export declare const UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchHeadersItemValue: S.Schema<
|
|
1947
|
-
export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchHeadersItem =
|
|
1948
|
-
export declare const UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchHeadersItem: S.Schema<
|
|
2536
|
+
export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchHeadersItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2537
|
+
export declare const UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchHeadersItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
2538
|
+
export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchHeadersItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
2539
|
+
export declare const UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchHeadersItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1949
2540
|
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
1950
|
-
export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchHeadersList = Array<
|
|
2541
|
+
export type UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchHeadersList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
1951
2542
|
export declare const UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchHeadersList: S.Schema<UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchHeadersList>;
|
|
1952
2543
|
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
1953
2544
|
export interface UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatch {
|
|
1954
2545
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
1955
|
-
path?:
|
|
2546
|
+
path?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
1956
2547
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
1957
2548
|
method?: UpdateSessionNetworkPolicyRequestBodyCase0InjectionRulesItemMatchMethodList;
|
|
1958
2549
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
@@ -1990,37 +2581,37 @@ export declare const UpdateSessionNetworkPolicyRequestBodyCase0: S.Schema<Update
|
|
|
1990
2581
|
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase0List = Array<string>;
|
|
1991
2582
|
export declare const UpdateSessionNetworkPolicyRequestBodyCase1AllowCase0List: S.Schema<UpdateSessionNetworkPolicyRequestBodyCase1AllowCase0List>;
|
|
1992
2583
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
1993
|
-
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchPath =
|
|
1994
|
-
export declare const UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchPath: S.Schema<
|
|
2584
|
+
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchPath = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2585
|
+
export declare const UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchPath: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
1995
2586
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
1996
2587
|
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchMethodList = Array<string>;
|
|
1997
2588
|
export declare const UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchMethodList: S.Schema<UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchMethodList>;
|
|
1998
2589
|
/** Matcher for the entry key (header name or query key). */
|
|
1999
|
-
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchQueryStringItemKey =
|
|
2000
|
-
export declare const UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchQueryStringItemKey: S.Schema<
|
|
2590
|
+
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchQueryStringItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2591
|
+
export declare const UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchQueryStringItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
2001
2592
|
/** Matcher for the entry value. */
|
|
2002
|
-
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchQueryStringItemValue =
|
|
2003
|
-
export declare const UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchQueryStringItemValue: S.Schema<
|
|
2004
|
-
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchQueryStringItem =
|
|
2005
|
-
export declare const UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchQueryStringItem: S.Schema<
|
|
2593
|
+
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchQueryStringItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2594
|
+
export declare const UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchQueryStringItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
2595
|
+
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchQueryStringItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
2596
|
+
export declare const UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchQueryStringItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
2006
2597
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
2007
|
-
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchQueryStringList = Array<
|
|
2598
|
+
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchQueryStringList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
2008
2599
|
export declare const UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchQueryStringList: S.Schema<UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchQueryStringList>;
|
|
2009
2600
|
/** Matcher for the entry key (header name or query key). */
|
|
2010
|
-
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchHeadersItemKey =
|
|
2011
|
-
export declare const UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchHeadersItemKey: S.Schema<
|
|
2601
|
+
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchHeadersItemKey = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2602
|
+
export declare const UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchHeadersItemKey: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
2012
2603
|
/** Matcher for the entry value. */
|
|
2013
|
-
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchHeadersItemValue =
|
|
2014
|
-
export declare const UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchHeadersItemValue: S.Schema<
|
|
2015
|
-
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchHeadersItem =
|
|
2016
|
-
export declare const UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchHeadersItem: S.Schema<
|
|
2604
|
+
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchHeadersItemValue = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2605
|
+
export declare const UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchHeadersItemValue: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath>;
|
|
2606
|
+
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchHeadersItem = CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem;
|
|
2607
|
+
export declare const UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchHeadersItem: S.Schema<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
2017
2608
|
/** Header matchers. Multiple entries are ANDed. Header names are compared case-insensitively (RFC 9110); header values are compared case-sensitively. When a request has multiple values for the same header, any matching value satisfies the matcher. */
|
|
2018
|
-
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchHeadersList = Array<
|
|
2609
|
+
export type UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchHeadersList = Array<CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchQueryStringItem>;
|
|
2019
2610
|
export declare const UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchHeadersList: S.Schema<UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchHeadersList>;
|
|
2020
2611
|
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
2021
2612
|
export interface UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatch {
|
|
2022
2613
|
/** Match on the request path. Comparison is case-sensitive. */
|
|
2023
|
-
path?:
|
|
2614
|
+
path?: CreateSandboxesByNameForkV2RequestNetworkPolicyCase0InjectionRulesItemMatchPath;
|
|
2024
2615
|
/** HTTP methods to match. Any single match succeeds (OR semantics). */
|
|
2025
2616
|
method?: UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatchMethodList;
|
|
2026
2617
|
/** Query-string entry matchers. Multiple entries are ANDed. Query parameter names and values are both compared case-sensitively (RFC 3986). When a request has multiple values for the same key, any matching value satisfies the matcher. */
|
|
@@ -2043,7 +2634,7 @@ export interface UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItem {
|
|
|
2043
2634
|
/** Optional L7 match. When provided, the injection rule only applies to requests that satisfy every specified dimension. When multiple injection rules target the same domain they are evaluated in order and the first match wins; a rule without `match` matches any request and shadows later rules for the same domain. */
|
|
2044
2635
|
match?: UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemMatch;
|
|
2045
2636
|
transform?: UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItemTransformList;
|
|
2046
|
-
/** HTTP/1.1 proxy URL to forward traffic to. Must not include query string or fragment. */
|
|
2637
|
+
/** HTTP/1.1 proxy URL to forward traffic to. Must not include username, password, query string, or fragment. */
|
|
2047
2638
|
forwardURL?: string;
|
|
2048
2639
|
}
|
|
2049
2640
|
export declare const UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItem: S.Schema<UpdateSessionNetworkPolicyRequestBodyCase1AllowCase1ValueItem>;
|
|
@@ -2099,21 +2690,30 @@ export interface WriteSessionFilesRequest {
|
|
|
2099
2690
|
export declare const WriteSessionFilesRequest: S.Schema<WriteSessionFilesRequest>;
|
|
2100
2691
|
export type WriteSessionFilesResponse = unknown;
|
|
2101
2692
|
export declare const WriteSessionFilesResponse: S.Schema<WriteSessionFilesResponse>;
|
|
2102
|
-
export type
|
|
2693
|
+
export type CreateSandboxesByNameForkV2Error = BadRequest | PaymentRequired | Forbidden | NotFound | Conflict | UnprocessableEntity | VercelOpError;
|
|
2103
2694
|
/** Fork a named sandbox Forks a named sandbox, creating a new named sandbox from the source's configuration. Resources, timeout, ports, tags, network policy, mounts, Connect network, image, persistence, snapshot settings and — unlike the SDK-side fork — environment variables are copied from the source automatically (`interactive` is not). When the source has a snapshot the fork starts from it; otherwise it starts from the source's runtime/image. Any field provided in the request body overrides the value copied from the source. */
|
|
2104
|
-
export declare const
|
|
2695
|
+
export declare const createSandboxesByNameForkV2: API.OperationMethod<CreateSandboxesByNameForkV2Request, CreateSandboxesByNameForkV2Response, CreateSandboxesByNameForkV2Error, VercelOpContext>;
|
|
2696
|
+
export type CreateSandboxesByNameForkV3Error = BadRequest | PaymentRequired | Forbidden | NotFound | Conflict | UnprocessableEntity | VercelOpError;
|
|
2697
|
+
/** Fork a named sandbox Forks a named sandbox, creating a new named sandbox from the source's configuration. Resources, timeout, ports, tags, network policy, mounts, Connect network, image, persistence, snapshot settings and — unlike the SDK-side fork — environment variables are copied from the source automatically (`interactive` is not). When the source has a snapshot the fork starts from it; otherwise it starts from the source's runtime/image. Any field provided in the request body overrides the value copied from the source. Unlike v2, when neither the body nor the source provides a value, snapshots expire after 7 days by default and persistent sandboxes keep only their most recent snapshot (`keepLastSnapshots: null` disables the limit). */
|
|
2698
|
+
export declare const createSandboxesByNameForkV3: API.OperationMethod<CreateSandboxesByNameForkV3Request, CreateSandboxesByNameForkV3Response, CreateSandboxesByNameForkV3Error, VercelOpContext>;
|
|
2699
|
+
export type CreateSandboxesSessionsBySessionIdSnapshotV2Error = BadRequest | PaymentRequired | Forbidden | NotFound | UnprocessableEntity | VercelOpError;
|
|
2700
|
+
/** Create a snapshot Creates a point-in-time snapshot of a running session's filesystem. Snapshots can be used to quickly restore a session to a previous state or to create new sessions with pre-configured environments. The session must be running and able to accept commands for a snapshot to be created. The session will be terminated after the snapshot is created. */
|
|
2701
|
+
export declare const createSandboxesSessionsBySessionIdSnapshotV2: API.OperationMethod<CreateSandboxesSessionsBySessionIdSnapshotV2Request, CreateSandboxesSessionsBySessionIdSnapshotV2Response, CreateSandboxesSessionsBySessionIdSnapshotV2Error, VercelOpContext>;
|
|
2702
|
+
export type CreateSandboxesSessionsBySessionIdSnapshotV3Error = BadRequest | PaymentRequired | Forbidden | NotFound | UnprocessableEntity | VercelOpError;
|
|
2703
|
+
/** Create a snapshot Creates a point-in-time snapshot of a running session's filesystem. Snapshots can be used to quickly restore a session to a previous state or to create new sessions with pre-configured environments. The session must be running and able to accept commands for a snapshot to be created. The session will be terminated after the snapshot is created. Unlike v2, snapshots expire after 7 days when neither the request nor the sandbox configuration specifies an expiration. */
|
|
2704
|
+
export declare const createSandboxesSessionsBySessionIdSnapshotV3: API.OperationMethod<CreateSandboxesSessionsBySessionIdSnapshotV3Request, CreateSandboxesSessionsBySessionIdSnapshotV3Response, CreateSandboxesSessionsBySessionIdSnapshotV3Error, VercelOpContext>;
|
|
2105
2705
|
export type CreateSandboxesV2Error = BadRequest | PaymentRequired | Forbidden | NotFound | Conflict | UnprocessableEntity | VercelOpError;
|
|
2106
2706
|
/** Create a named sandbox Creates a named sandbox environment. Named sandboxes have a unique name within a project and support automatic snapshotting on shutdown. */
|
|
2107
2707
|
export declare const createSandboxesV2: API.OperationMethod<CreateSandboxesV2Request, CreateSandboxesV2Response, CreateSandboxesV2Error, VercelOpContext>;
|
|
2108
2708
|
export type CreateSandboxesV3Error = BadRequest | PaymentRequired | Forbidden | NotFound | Conflict | UnprocessableEntity | VercelOpError;
|
|
2109
2709
|
/** Create a named sandbox Creates a named sandbox environment. Named sandboxes have a unique name within a project and support automatic snapshotting on shutdown. Unlike v2, this version has no `runtime` parameter: when no `image` is provided (and the sandbox is not restored from a snapshot), the sandbox is created from the default universal image. */
|
|
2110
2710
|
export declare const createSandboxesV3: API.OperationMethod<CreateSandboxesV3Request, CreateSandboxesV3Response, CreateSandboxesV3Error, VercelOpContext>;
|
|
2711
|
+
export type CreateSandboxesV4Error = BadRequest | PaymentRequired | Forbidden | NotFound | Conflict | UnprocessableEntity | VercelOpError;
|
|
2712
|
+
/** Create a named sandbox Creates a named sandbox environment. Named sandboxes have a unique name within a project and support automatic snapshotting on shutdown. When no `image` is provided (and the sandbox is not restored from a snapshot), the sandbox is created from the default universal image. Unlike v3, snapshots expire after 7 days by default and persistent sandboxes keep only their most recent snapshot unless `keepLastSnapshots` is configured otherwise (or set to `null` to disable the limit). */
|
|
2713
|
+
export declare const createSandboxesV4: API.OperationMethod<CreateSandboxesV4Request, CreateSandboxesV4Response, CreateSandboxesV4Error, VercelOpContext>;
|
|
2111
2714
|
export type CreateSessionDirectoryError = BadRequest | Forbidden | NotFound | UnprocessableEntity | VercelOpError;
|
|
2112
2715
|
/** Create a directory Creates a new directory in a session's filesystem. By default, parent directories are created recursively if they don't exist (similar to `mkdir -p`). */
|
|
2113
2716
|
export declare const createSessionDirectory: API.OperationMethod<CreateSessionDirectoryRequest, CreateSessionDirectoryResponse, CreateSessionDirectoryError, VercelOpContext>;
|
|
2114
|
-
export type CreateSessionSnapshotError = BadRequest | PaymentRequired | Forbidden | NotFound | UnprocessableEntity | VercelOpError;
|
|
2115
|
-
/** Create a snapshot Creates a point-in-time snapshot of a running session's filesystem. Snapshots can be used to quickly restore a session to a previous state or to create new sessions with pre-configured environments. The session must be running and able to accept commands for a snapshot to be created. The session will be terminated after the snapshot is created. */
|
|
2116
|
-
export declare const createSessionSnapshot: API.OperationMethod<CreateSessionSnapshotRequest, CreateSessionSnapshotResponse, CreateSessionSnapshotError, VercelOpContext>;
|
|
2117
2717
|
export type DeleteDriveError = BadRequest | Forbidden | NotFound | Conflict | VercelOpError;
|
|
2118
2718
|
/** Delete a drive Deletes a drive by project and name. Attached drives cannot be deleted. Stop or replace the session currently using the drive before retrying deletion. Drives are in private beta. Register your interest to get access: https://vercel.com/changelog/drives-for-vercel-sandbox-in-private-beta */
|
|
2119
2719
|
export declare const deleteDrive: API.OperationMethod<DeleteDriveRequest, DeleteDriveResponse, DeleteDriveError, VercelOpContext>;
|
|
@@ -2150,9 +2750,6 @@ export declare const killSessionCommand: API.OperationMethod<KillSessionCommandR
|
|
|
2150
2750
|
export type ListDrivesError = BadRequest | Forbidden | NotFound | VercelOpError;
|
|
2151
2751
|
/** List drives Retrieves a paginated list of drives belonging to a specific project. Drives are in private beta. Register your interest to get access: https://vercel.com/changelog/drives-for-vercel-sandbox-in-private-beta */
|
|
2152
2752
|
export declare const listDrives: API.OperationMethod<ListDrivesRequest, ListDrivesResponse, ListDrivesError, VercelOpContext>;
|
|
2153
|
-
export type ListSandboxesError = BadRequest | Forbidden | NotFound | VercelOpError;
|
|
2154
|
-
/** List sandboxes Retrieves a paginated list of named sandboxes belonging to a specific project. Results can be sorted by creation time or name, and optionally filtered by name prefix or status. */
|
|
2155
|
-
export declare const listSandboxes: API.OperationMethod<ListSandboxesRequest, ListSandboxesResponse, ListSandboxesError, VercelOpContext>;
|
|
2156
2753
|
export type ListSessionCommandsError = BadRequest | Forbidden | NotFound | VercelOpError;
|
|
2157
2754
|
/** List commands Retrieves a list of all commands that have been executed in a session, including their current status, exit codes, and execution times, ordered from the most recent to the oldest. */
|
|
2158
2755
|
export declare const listSessionCommands: API.OperationMethod<ListSessionCommandsRequest, ListSessionCommandsResponse, ListSessionCommandsError, VercelOpContext>;
|