UNPKG

@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>

48 lines 2.06 kB
import * as z from "zod/v3"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type CreateTraceSessionRequestBody = { /** * The project ID the deployment belongs to. */ projectId: string; /** * The deployment hostname to scope the trace session to. */ hostname: string; }; export type CreateTraceSessionRequest = { /** * 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?: CreateTraceSessionRequestBody | undefined; }; export type CreateTraceSessionResponseBody = { token: string; }; /** @internal */ export type CreateTraceSessionRequestBody$Outbound = { projectId: string; hostname: string; }; /** @internal */ export declare const CreateTraceSessionRequestBody$outboundSchema: z.ZodType<CreateTraceSessionRequestBody$Outbound, z.ZodTypeDef, CreateTraceSessionRequestBody>; export declare function createTraceSessionRequestBodyToJSON(createTraceSessionRequestBody: CreateTraceSessionRequestBody): string; /** @internal */ export type CreateTraceSessionRequest$Outbound = { teamId?: string | undefined; slug?: string | undefined; RequestBody?: CreateTraceSessionRequestBody$Outbound | undefined; }; /** @internal */ export declare const CreateTraceSessionRequest$outboundSchema: z.ZodType<CreateTraceSessionRequest$Outbound, z.ZodTypeDef, CreateTraceSessionRequest>; export declare function createTraceSessionRequestToJSON(createTraceSessionRequest: CreateTraceSessionRequest): string; /** @internal */ export declare const CreateTraceSessionResponseBody$inboundSchema: z.ZodType<CreateTraceSessionResponseBody, z.ZodTypeDef, unknown>; export declare function createTraceSessionResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateTraceSessionResponseBody, SDKValidationError>; //# sourceMappingURL=createtracesessionop.d.ts.map