@unkey/api
Version:
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@unkey/api* API.
21 lines • 912 B
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type V2PortalCreateSessionResponseData = {
/**
* The short-lived session token ID. Valid for 15 minutes and can be exchanged once for a browser session.
*
* @remarks
*/
sessionId: string;
/**
* The full portal URL with the session parameter. Redirect the end user to this URL.
*
* @remarks
*/
url: string;
};
/** @internal */
export declare const V2PortalCreateSessionResponseData$inboundSchema: z.ZodType<V2PortalCreateSessionResponseData, z.ZodTypeDef, unknown>;
export declare function v2PortalCreateSessionResponseDataFromJSON(jsonString: string): SafeParseResult<V2PortalCreateSessionResponseData, SDKValidationError>;
//# sourceMappingURL=v2portalcreatesessionresponsedata.d.ts.map