/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { authApiKeyGetJwtFromKey } from "../funcs/authApiKeyGetJwtFromKey.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class ApiKey extends ClientSDK { /** * Exchange API key for a JWT token * * @remarks * Exchange an API key for a JWT token * * @deprecated method: Use auth.apiKeys.exchangeToken() instead. This method will be removed in a future release.. Use exchangeToken instead. */ async getJwtFromKey( request: operations.GetJwtFromKeyRequest, options?: RequestOptions, ): Promise { return unwrapAsync(authApiKeyGetJwtFromKey( this, request, options, )); } }