/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { expiringAccessTokensCreate } from "../funcs/expiringAccessTokensCreate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class ExpiringAccessTokens extends ClientSDK { /** * Create Expiring Access Token * * @remarks * ``` * 🚫 Alert * This API is still under development and can change at any time. * ``` * * This endpoint is for creating expiring access tokens which can be used for some iframe embeds. * * ## Requires api token with one of the following permissions * ``` * Read, update & delete anything * ``` */ async create( request?: operations.PostExpiringTokenRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(expiringAccessTokensCreate( this, request, options, )); } }