/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { customerSessionsCreate } from "../funcs/customerSessionsCreate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import { CustomerSession } from "../models/components/customersession.js"; import { CustomerSessionsCreateCustomerSessionCreate } from "../models/operations/customersessionscreate.js"; import { unwrapAsync } from "../types/fp.js"; export class CustomerSessions extends ClientSDK { /** * Create Customer Session * * @remarks * Create a customer session. * * For organizations with `member_model_enabled`, this will automatically * create a member session for the owner member of the customer. * * **Scopes**: `customer_sessions:write` */ async create( request: CustomerSessionsCreateCustomerSessionCreate, options?: RequestOptions, ): Promise { return unwrapAsync(customerSessionsCreate( this, request, options, )); } }