/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { projectAuthSessionsCreateResult } from "../funcs/projectAuthSessionsCreateResult.js"; import { projectAuthSessionsCreateStart } from "../funcs/projectAuthSessionsCreateStart.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Create extends ClientSDK { /** * Create Auth Session - Start * * @remarks * Starts creation process of an authentication session for a project with the authentication session creation setting enabled. */ async start( projectName: string, requestBody: operations.CreateOrUpdateAuthSessionStartRequestBody, options?: RequestOptions, ): Promise { return unwrapAsync(projectAuthSessionsCreateStart( this, projectName, requestBody, options, )); } /** * Create Auth Session - Result * * @remarks * Gets authentication session creation operation result. */ async result( projectName: string, operationId: string, options?: RequestOptions, ): Promise { return unwrapAsync(projectAuthSessionsCreateResult( this, projectName, operationId, options, )); } }