/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { customerPortalCustomerSessionGetAuthenticatedUser } from "../funcs/customerPortalCustomerSessionGetAuthenticatedUser.js"; import { customerPortalCustomerSessionIntrospect } from "../funcs/customerPortalCustomerSessionIntrospect.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import { CustomerCustomerSession } from "../models/components/customercustomersession.js"; import { PortalAuthenticatedUser } from "../models/components/portalauthenticateduser.js"; import { CustomerPortalCustomerSessionGetAuthenticatedUserSecurity } from "../models/operations/customerportalcustomersessiongetauthenticateduser.js"; import { CustomerPortalCustomerSessionIntrospectSecurity } from "../models/operations/customerportalcustomersessionintrospect.js"; import { unwrapAsync } from "../types/fp.js"; export class CustomerSession extends ClientSDK { /** * Introspect Customer Session * * @remarks * Introspect the current session and return its information. * * **Scopes**: `customer_portal:read` `customer_portal:write` */ async introspect( security: CustomerPortalCustomerSessionIntrospectSecurity, options?: RequestOptions, ): Promise { return unwrapAsync(customerPortalCustomerSessionIntrospect( this, security, options, )); } /** * Get Authenticated Portal User * * @remarks * Get information about the currently authenticated portal user. * * **Scopes**: `customer_portal:read` `customer_portal:write` */ async getAuthenticatedUser( security: CustomerPortalCustomerSessionGetAuthenticatedUserSecurity, options?: RequestOptions, ): Promise { return unwrapAsync(customerPortalCustomerSessionGetAuthenticatedUser( this, security, options, )); } }