@vercel/sdk
Version:
<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>
544 lines • 26.8 kB
TypeScript
import * as z from "zod/v3";
import { ClosedEnum } from "../types/enums.js";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
import { Session } from "./session.js";
/**
* Match on the request path. Comparison is case-sensitive.
*/
export type UpdateSessionNetworkPolicyAllowPath = {
/**
* Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys.
*/
exact?: string | undefined;
/**
* Match values that start with the given prefix.
*/
startsWith?: string | undefined;
};
/**
* Matcher for the entry key (header name or query key).
*/
export type UpdateSessionNetworkPolicyAllowKey = {
/**
* Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys.
*/
exact?: string | undefined;
/**
* Match values that start with the given prefix.
*/
startsWith?: string | undefined;
};
/**
* Matcher for the entry value.
*/
export type UpdateSessionNetworkPolicyAllowValue = {
/**
* Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys.
*/
exact?: string | undefined;
/**
* Match values that start with the given prefix.
*/
startsWith?: string | undefined;
};
export type UpdateSessionNetworkPolicyAllowQueryString = {
/**
* Matcher for the entry key (header name or query key).
*/
key?: UpdateSessionNetworkPolicyAllowKey | undefined;
/**
* Matcher for the entry value.
*/
value?: UpdateSessionNetworkPolicyAllowValue | undefined;
};
/**
* Matcher for the entry key (header name or query key).
*/
export type UpdateSessionNetworkPolicyAllowSandboxesKey = {
/**
* Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys.
*/
exact?: string | undefined;
/**
* Match values that start with the given prefix.
*/
startsWith?: string | undefined;
};
/**
* Matcher for the entry value.
*/
export type UpdateSessionNetworkPolicyAllowSandboxesValue = {
/**
* Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys.
*/
exact?: string | undefined;
/**
* Match values that start with the given prefix.
*/
startsWith?: string | undefined;
};
export type UpdateSessionNetworkPolicyAllowHeaders = {
/**
* Matcher for the entry key (header name or query key).
*/
key?: UpdateSessionNetworkPolicyAllowSandboxesKey | undefined;
/**
* Matcher for the entry value.
*/
value?: UpdateSessionNetworkPolicyAllowSandboxesValue | undefined;
};
/**
* 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.
*/
export type UpdateSessionNetworkPolicyAllowMatch = {
/**
* Match on the request path. Comparison is case-sensitive.
*/
path?: UpdateSessionNetworkPolicyAllowPath | undefined;
/**
* HTTP methods to match. Any single match succeeds (OR semantics).
*/
method?: Array<string> | undefined;
/**
* 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.
*/
queryString?: Array<UpdateSessionNetworkPolicyAllowQueryString> | undefined;
/**
* 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.
*/
headers?: Array<UpdateSessionNetworkPolicyAllowHeaders> | undefined;
};
export type UpdateSessionNetworkPolicyAllowTransform = {
headers?: {
[k: string]: string;
} | undefined;
};
export type UpdateSessionNetworkPolicyAllow2 = {
/**
* 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.
*/
match?: UpdateSessionNetworkPolicyAllowMatch | undefined;
transform?: Array<UpdateSessionNetworkPolicyAllowTransform> | undefined;
/**
* HTTP/1.1 proxy URL to forward traffic to. Must not include query string or fragment.
*/
forwardURL?: string | undefined;
};
export type RequestBodyAllow = Array<string> | {
[k: string]: Array<UpdateSessionNetworkPolicyAllow2>;
};
export type RequestBodySubnets = {
allow?: Array<string> | undefined;
deny?: Array<string> | undefined;
};
export type UpdateSessionNetworkPolicyRequestBody2 = {
allow?: Array<string> | {
[k: string]: Array<UpdateSessionNetworkPolicyAllow2>;
} | undefined;
subnets?: RequestBodySubnets | undefined;
};
/**
* 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.
*/
export declare const RequestBodyMode: {
readonly AllowAll: "allow-all";
readonly DenyAll: "deny-all";
readonly Custom: "custom";
readonly DefaultAllow: "default-allow";
readonly DefaultDeny: "default-deny";
};
/**
* 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.
*/
export type RequestBodyMode = ClosedEnum<typeof RequestBodyMode>;
/**
* Match on the request path. Comparison is case-sensitive.
*/
export type RequestBodyPath = {
/**
* Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys.
*/
exact?: string | undefined;
/**
* Match values that start with the given prefix.
*/
startsWith?: string | undefined;
};
/**
* Matcher for the entry key (header name or query key).
*/
export type RequestBodyKey = {
/**
* Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys.
*/
exact?: string | undefined;
/**
* Match values that start with the given prefix.
*/
startsWith?: string | undefined;
};
/**
* Matcher for the entry value.
*/
export type UpdateSessionNetworkPolicyRequestBodySandboxesValue = {
/**
* Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys.
*/
exact?: string | undefined;
/**
* Match values that start with the given prefix.
*/
startsWith?: string | undefined;
};
export type RequestBodyQueryString = {
/**
* Matcher for the entry key (header name or query key).
*/
key?: RequestBodyKey | undefined;
/**
* Matcher for the entry value.
*/
value?: UpdateSessionNetworkPolicyRequestBodySandboxesValue | undefined;
};
/**
* Matcher for the entry key (header name or query key).
*/
export type UpdateSessionNetworkPolicyRequestBodyKey = {
/**
* Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys.
*/
exact?: string | undefined;
/**
* Match values that start with the given prefix.
*/
startsWith?: string | undefined;
};
/**
* Matcher for the entry value.
*/
export type UpdateSessionNetworkPolicyRequestBodyValue = {
/**
* Match the value exactly. Case-sensitive for paths, header values, and methods; case-insensitive for domains and header keys.
*/
exact?: string | undefined;
/**
* Match values that start with the given prefix.
*/
startsWith?: string | undefined;
};
export type RequestBodyHeaders = {
/**
* Matcher for the entry key (header name or query key).
*/
key?: UpdateSessionNetworkPolicyRequestBodyKey | undefined;
/**
* Matcher for the entry value.
*/
value?: UpdateSessionNetworkPolicyRequestBodyValue | undefined;
};
/**
* 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.
*/
export type RequestBodyMatch = {
/**
* Match on the request path. Comparison is case-sensitive.
*/
path?: RequestBodyPath | undefined;
/**
* HTTP methods to match. Any single match succeeds (OR semantics).
*/
method?: Array<string> | undefined;
/**
* 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.
*/
queryString?: Array<RequestBodyQueryString> | undefined;
/**
* 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.
*/
headers?: Array<RequestBodyHeaders> | undefined;
};
export type RequestBodyInjectionRules = {
/**
* The domain (or pattern) of requests to add headers for. Supports wildcards like *.example.com.
*/
domain: string;
/**
* HTTP headers to inject into requests for this domain. Existing headers with the same name will be overridden.
*/
headers: {
[k: string]: string;
};
/**
* 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.
*/
match?: RequestBodyMatch | undefined;
};
/**
* 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.
*/
export type UpdateSessionNetworkPolicyRequestBody1 = {
/**
* 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.
*/
mode: RequestBodyMode;
/**
* 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).
*/
allowedDomains?: Array<string> | undefined;
/**
* List of IP address ranges (in CIDR notation) the sandbox is allowed to connect to. Traffic to these addresses bypasses domain-based restrictions.
*/
allowedCIDRs?: Array<string> | undefined;
/**
* List of IP address ranges (in CIDR notation) the sandbox is blocked from connecting to. These rules take precedence over all allowed rules.
*/
deniedCIDRs?: Array<string> | undefined;
/**
* HTTP header injection rules for outgoing requests matching specific domains. Traffic to matching domains will be intercepted instead of proxied through encrypted connections.
*/
injectionRules?: Array<RequestBodyInjectionRules> | undefined;
};
export type UpdateSessionNetworkPolicyRequestBody = UpdateSessionNetworkPolicyRequestBody1 | UpdateSessionNetworkPolicyRequestBody2;
export type UpdateSessionNetworkPolicyRequest = {
/**
* The unique identifier of the session to update the network policy for.
*/
sessionId: string;
/**
* The Team identifier to perform the request on behalf of.
*/
teamId?: string | undefined;
/**
* The Team slug to perform the request on behalf of.
*/
slug?: string | undefined;
requestBody?: UpdateSessionNetworkPolicyRequestBody1 | UpdateSessionNetworkPolicyRequestBody2 | undefined;
};
/**
* The session network policy was updated successfully.
*/
export type UpdateSessionNetworkPolicyResponseBody = {
/**
* This object contains information related to a Vercel Sandbox Session. v2 endpoints return "session" instead of "sandbox" as the response wrapper key.
*/
session: Session;
};
/** @internal */
export type UpdateSessionNetworkPolicyAllowPath$Outbound = {
exact?: string | undefined;
startsWith?: string | undefined;
};
/** @internal */
export declare const UpdateSessionNetworkPolicyAllowPath$outboundSchema: z.ZodType<UpdateSessionNetworkPolicyAllowPath$Outbound, z.ZodTypeDef, UpdateSessionNetworkPolicyAllowPath>;
export declare function updateSessionNetworkPolicyAllowPathToJSON(updateSessionNetworkPolicyAllowPath: UpdateSessionNetworkPolicyAllowPath): string;
/** @internal */
export type UpdateSessionNetworkPolicyAllowKey$Outbound = {
exact?: string | undefined;
startsWith?: string | undefined;
};
/** @internal */
export declare const UpdateSessionNetworkPolicyAllowKey$outboundSchema: z.ZodType<UpdateSessionNetworkPolicyAllowKey$Outbound, z.ZodTypeDef, UpdateSessionNetworkPolicyAllowKey>;
export declare function updateSessionNetworkPolicyAllowKeyToJSON(updateSessionNetworkPolicyAllowKey: UpdateSessionNetworkPolicyAllowKey): string;
/** @internal */
export type UpdateSessionNetworkPolicyAllowValue$Outbound = {
exact?: string | undefined;
startsWith?: string | undefined;
};
/** @internal */
export declare const UpdateSessionNetworkPolicyAllowValue$outboundSchema: z.ZodType<UpdateSessionNetworkPolicyAllowValue$Outbound, z.ZodTypeDef, UpdateSessionNetworkPolicyAllowValue>;
export declare function updateSessionNetworkPolicyAllowValueToJSON(updateSessionNetworkPolicyAllowValue: UpdateSessionNetworkPolicyAllowValue): string;
/** @internal */
export type UpdateSessionNetworkPolicyAllowQueryString$Outbound = {
key?: UpdateSessionNetworkPolicyAllowKey$Outbound | undefined;
value?: UpdateSessionNetworkPolicyAllowValue$Outbound | undefined;
};
/** @internal */
export declare const UpdateSessionNetworkPolicyAllowQueryString$outboundSchema: z.ZodType<UpdateSessionNetworkPolicyAllowQueryString$Outbound, z.ZodTypeDef, UpdateSessionNetworkPolicyAllowQueryString>;
export declare function updateSessionNetworkPolicyAllowQueryStringToJSON(updateSessionNetworkPolicyAllowQueryString: UpdateSessionNetworkPolicyAllowQueryString): string;
/** @internal */
export type UpdateSessionNetworkPolicyAllowSandboxesKey$Outbound = {
exact?: string | undefined;
startsWith?: string | undefined;
};
/** @internal */
export declare const UpdateSessionNetworkPolicyAllowSandboxesKey$outboundSchema: z.ZodType<UpdateSessionNetworkPolicyAllowSandboxesKey$Outbound, z.ZodTypeDef, UpdateSessionNetworkPolicyAllowSandboxesKey>;
export declare function updateSessionNetworkPolicyAllowSandboxesKeyToJSON(updateSessionNetworkPolicyAllowSandboxesKey: UpdateSessionNetworkPolicyAllowSandboxesKey): string;
/** @internal */
export type UpdateSessionNetworkPolicyAllowSandboxesValue$Outbound = {
exact?: string | undefined;
startsWith?: string | undefined;
};
/** @internal */
export declare const UpdateSessionNetworkPolicyAllowSandboxesValue$outboundSchema: z.ZodType<UpdateSessionNetworkPolicyAllowSandboxesValue$Outbound, z.ZodTypeDef, UpdateSessionNetworkPolicyAllowSandboxesValue>;
export declare function updateSessionNetworkPolicyAllowSandboxesValueToJSON(updateSessionNetworkPolicyAllowSandboxesValue: UpdateSessionNetworkPolicyAllowSandboxesValue): string;
/** @internal */
export type UpdateSessionNetworkPolicyAllowHeaders$Outbound = {
key?: UpdateSessionNetworkPolicyAllowSandboxesKey$Outbound | undefined;
value?: UpdateSessionNetworkPolicyAllowSandboxesValue$Outbound | undefined;
};
/** @internal */
export declare const UpdateSessionNetworkPolicyAllowHeaders$outboundSchema: z.ZodType<UpdateSessionNetworkPolicyAllowHeaders$Outbound, z.ZodTypeDef, UpdateSessionNetworkPolicyAllowHeaders>;
export declare function updateSessionNetworkPolicyAllowHeadersToJSON(updateSessionNetworkPolicyAllowHeaders: UpdateSessionNetworkPolicyAllowHeaders): string;
/** @internal */
export type UpdateSessionNetworkPolicyAllowMatch$Outbound = {
path?: UpdateSessionNetworkPolicyAllowPath$Outbound | undefined;
method?: Array<string> | undefined;
queryString?: Array<UpdateSessionNetworkPolicyAllowQueryString$Outbound> | undefined;
headers?: Array<UpdateSessionNetworkPolicyAllowHeaders$Outbound> | undefined;
};
/** @internal */
export declare const UpdateSessionNetworkPolicyAllowMatch$outboundSchema: z.ZodType<UpdateSessionNetworkPolicyAllowMatch$Outbound, z.ZodTypeDef, UpdateSessionNetworkPolicyAllowMatch>;
export declare function updateSessionNetworkPolicyAllowMatchToJSON(updateSessionNetworkPolicyAllowMatch: UpdateSessionNetworkPolicyAllowMatch): string;
/** @internal */
export type UpdateSessionNetworkPolicyAllowTransform$Outbound = {
headers?: {
[k: string]: string;
} | undefined;
};
/** @internal */
export declare const UpdateSessionNetworkPolicyAllowTransform$outboundSchema: z.ZodType<UpdateSessionNetworkPolicyAllowTransform$Outbound, z.ZodTypeDef, UpdateSessionNetworkPolicyAllowTransform>;
export declare function updateSessionNetworkPolicyAllowTransformToJSON(updateSessionNetworkPolicyAllowTransform: UpdateSessionNetworkPolicyAllowTransform): string;
/** @internal */
export type UpdateSessionNetworkPolicyAllow2$Outbound = {
match?: UpdateSessionNetworkPolicyAllowMatch$Outbound | undefined;
transform?: Array<UpdateSessionNetworkPolicyAllowTransform$Outbound> | undefined;
forwardURL?: string | undefined;
};
/** @internal */
export declare const UpdateSessionNetworkPolicyAllow2$outboundSchema: z.ZodType<UpdateSessionNetworkPolicyAllow2$Outbound, z.ZodTypeDef, UpdateSessionNetworkPolicyAllow2>;
export declare function updateSessionNetworkPolicyAllow2ToJSON(updateSessionNetworkPolicyAllow2: UpdateSessionNetworkPolicyAllow2): string;
/** @internal */
export type RequestBodyAllow$Outbound = Array<string> | {
[k: string]: Array<UpdateSessionNetworkPolicyAllow2$Outbound>;
};
/** @internal */
export declare const RequestBodyAllow$outboundSchema: z.ZodType<RequestBodyAllow$Outbound, z.ZodTypeDef, RequestBodyAllow>;
export declare function requestBodyAllowToJSON(requestBodyAllow: RequestBodyAllow): string;
/** @internal */
export type RequestBodySubnets$Outbound = {
allow?: Array<string> | undefined;
deny?: Array<string> | undefined;
};
/** @internal */
export declare const RequestBodySubnets$outboundSchema: z.ZodType<RequestBodySubnets$Outbound, z.ZodTypeDef, RequestBodySubnets>;
export declare function requestBodySubnetsToJSON(requestBodySubnets: RequestBodySubnets): string;
/** @internal */
export type UpdateSessionNetworkPolicyRequestBody2$Outbound = {
allow?: Array<string> | {
[k: string]: Array<UpdateSessionNetworkPolicyAllow2$Outbound>;
} | undefined;
subnets?: RequestBodySubnets$Outbound | undefined;
};
/** @internal */
export declare const UpdateSessionNetworkPolicyRequestBody2$outboundSchema: z.ZodType<UpdateSessionNetworkPolicyRequestBody2$Outbound, z.ZodTypeDef, UpdateSessionNetworkPolicyRequestBody2>;
export declare function updateSessionNetworkPolicyRequestBody2ToJSON(updateSessionNetworkPolicyRequestBody2: UpdateSessionNetworkPolicyRequestBody2): string;
/** @internal */
export declare const RequestBodyMode$outboundSchema: z.ZodNativeEnum<typeof RequestBodyMode>;
/** @internal */
export type RequestBodyPath$Outbound = {
exact?: string | undefined;
startsWith?: string | undefined;
};
/** @internal */
export declare const RequestBodyPath$outboundSchema: z.ZodType<RequestBodyPath$Outbound, z.ZodTypeDef, RequestBodyPath>;
export declare function requestBodyPathToJSON(requestBodyPath: RequestBodyPath): string;
/** @internal */
export type RequestBodyKey$Outbound = {
exact?: string | undefined;
startsWith?: string | undefined;
};
/** @internal */
export declare const RequestBodyKey$outboundSchema: z.ZodType<RequestBodyKey$Outbound, z.ZodTypeDef, RequestBodyKey>;
export declare function requestBodyKeyToJSON(requestBodyKey: RequestBodyKey): string;
/** @internal */
export type UpdateSessionNetworkPolicyRequestBodySandboxesValue$Outbound = {
exact?: string | undefined;
startsWith?: string | undefined;
};
/** @internal */
export declare const UpdateSessionNetworkPolicyRequestBodySandboxesValue$outboundSchema: z.ZodType<UpdateSessionNetworkPolicyRequestBodySandboxesValue$Outbound, z.ZodTypeDef, UpdateSessionNetworkPolicyRequestBodySandboxesValue>;
export declare function updateSessionNetworkPolicyRequestBodySandboxesValueToJSON(updateSessionNetworkPolicyRequestBodySandboxesValue: UpdateSessionNetworkPolicyRequestBodySandboxesValue): string;
/** @internal */
export type RequestBodyQueryString$Outbound = {
key?: RequestBodyKey$Outbound | undefined;
value?: UpdateSessionNetworkPolicyRequestBodySandboxesValue$Outbound | undefined;
};
/** @internal */
export declare const RequestBodyQueryString$outboundSchema: z.ZodType<RequestBodyQueryString$Outbound, z.ZodTypeDef, RequestBodyQueryString>;
export declare function requestBodyQueryStringToJSON(requestBodyQueryString: RequestBodyQueryString): string;
/** @internal */
export type UpdateSessionNetworkPolicyRequestBodyKey$Outbound = {
exact?: string | undefined;
startsWith?: string | undefined;
};
/** @internal */
export declare const UpdateSessionNetworkPolicyRequestBodyKey$outboundSchema: z.ZodType<UpdateSessionNetworkPolicyRequestBodyKey$Outbound, z.ZodTypeDef, UpdateSessionNetworkPolicyRequestBodyKey>;
export declare function updateSessionNetworkPolicyRequestBodyKeyToJSON(updateSessionNetworkPolicyRequestBodyKey: UpdateSessionNetworkPolicyRequestBodyKey): string;
/** @internal */
export type UpdateSessionNetworkPolicyRequestBodyValue$Outbound = {
exact?: string | undefined;
startsWith?: string | undefined;
};
/** @internal */
export declare const UpdateSessionNetworkPolicyRequestBodyValue$outboundSchema: z.ZodType<UpdateSessionNetworkPolicyRequestBodyValue$Outbound, z.ZodTypeDef, UpdateSessionNetworkPolicyRequestBodyValue>;
export declare function updateSessionNetworkPolicyRequestBodyValueToJSON(updateSessionNetworkPolicyRequestBodyValue: UpdateSessionNetworkPolicyRequestBodyValue): string;
/** @internal */
export type RequestBodyHeaders$Outbound = {
key?: UpdateSessionNetworkPolicyRequestBodyKey$Outbound | undefined;
value?: UpdateSessionNetworkPolicyRequestBodyValue$Outbound | undefined;
};
/** @internal */
export declare const RequestBodyHeaders$outboundSchema: z.ZodType<RequestBodyHeaders$Outbound, z.ZodTypeDef, RequestBodyHeaders>;
export declare function requestBodyHeadersToJSON(requestBodyHeaders: RequestBodyHeaders): string;
/** @internal */
export type RequestBodyMatch$Outbound = {
path?: RequestBodyPath$Outbound | undefined;
method?: Array<string> | undefined;
queryString?: Array<RequestBodyQueryString$Outbound> | undefined;
headers?: Array<RequestBodyHeaders$Outbound> | undefined;
};
/** @internal */
export declare const RequestBodyMatch$outboundSchema: z.ZodType<RequestBodyMatch$Outbound, z.ZodTypeDef, RequestBodyMatch>;
export declare function requestBodyMatchToJSON(requestBodyMatch: RequestBodyMatch): string;
/** @internal */
export type RequestBodyInjectionRules$Outbound = {
domain: string;
headers: {
[k: string]: string;
};
match?: RequestBodyMatch$Outbound | undefined;
};
/** @internal */
export declare const RequestBodyInjectionRules$outboundSchema: z.ZodType<RequestBodyInjectionRules$Outbound, z.ZodTypeDef, RequestBodyInjectionRules>;
export declare function requestBodyInjectionRulesToJSON(requestBodyInjectionRules: RequestBodyInjectionRules): string;
/** @internal */
export type UpdateSessionNetworkPolicyRequestBody1$Outbound = {
mode: string;
allowedDomains?: Array<string> | undefined;
allowedCIDRs?: Array<string> | undefined;
deniedCIDRs?: Array<string> | undefined;
injectionRules?: Array<RequestBodyInjectionRules$Outbound> | undefined;
};
/** @internal */
export declare const UpdateSessionNetworkPolicyRequestBody1$outboundSchema: z.ZodType<UpdateSessionNetworkPolicyRequestBody1$Outbound, z.ZodTypeDef, UpdateSessionNetworkPolicyRequestBody1>;
export declare function updateSessionNetworkPolicyRequestBody1ToJSON(updateSessionNetworkPolicyRequestBody1: UpdateSessionNetworkPolicyRequestBody1): string;
/** @internal */
export type UpdateSessionNetworkPolicyRequestBody$Outbound = UpdateSessionNetworkPolicyRequestBody1$Outbound | UpdateSessionNetworkPolicyRequestBody2$Outbound;
/** @internal */
export declare const UpdateSessionNetworkPolicyRequestBody$outboundSchema: z.ZodType<UpdateSessionNetworkPolicyRequestBody$Outbound, z.ZodTypeDef, UpdateSessionNetworkPolicyRequestBody>;
export declare function updateSessionNetworkPolicyRequestBodyToJSON(updateSessionNetworkPolicyRequestBody: UpdateSessionNetworkPolicyRequestBody): string;
/** @internal */
export type UpdateSessionNetworkPolicyRequest$Outbound = {
sessionId: string;
teamId?: string | undefined;
slug?: string | undefined;
RequestBody?: UpdateSessionNetworkPolicyRequestBody1$Outbound | UpdateSessionNetworkPolicyRequestBody2$Outbound | undefined;
};
/** @internal */
export declare const UpdateSessionNetworkPolicyRequest$outboundSchema: z.ZodType<UpdateSessionNetworkPolicyRequest$Outbound, z.ZodTypeDef, UpdateSessionNetworkPolicyRequest>;
export declare function updateSessionNetworkPolicyRequestToJSON(updateSessionNetworkPolicyRequest: UpdateSessionNetworkPolicyRequest): string;
/** @internal */
export declare const UpdateSessionNetworkPolicyResponseBody$inboundSchema: z.ZodType<UpdateSessionNetworkPolicyResponseBody, z.ZodTypeDef, unknown>;
export declare function updateSessionNetworkPolicyResponseBodyFromJSON(jsonString: string): SafeParseResult<UpdateSessionNetworkPolicyResponseBody, SDKValidationError>;
//# sourceMappingURL=updatesessionnetworkpolicyop.d.ts.map