/** * Channel Access Token API * This document describes Channel Access Token API. * * The version of the OpenAPI document: 0.0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { ChannelAccessTokenKeyIdsResponse } from "../model/channelAccessTokenKeyIdsResponse.js"; import { IssueChannelAccessTokenResponse } from "../model/issueChannelAccessTokenResponse.js"; import { IssueShortLivedChannelAccessTokenResponse } from "../model/issueShortLivedChannelAccessTokenResponse.js"; import { IssueStatelessChannelAccessTokenResponse } from "../model/issueStatelessChannelAccessTokenResponse.js"; import { VerifyChannelAccessTokenResponse } from "../model/verifyChannelAccessTokenResponse.js"; import * as Types from "../../types.js"; interface httpClientConfig { baseURL?: string; } export declare class ChannelAccessTokenClient { private httpClient; constructor(config: httpClientConfig); private parseHTTPResponse; /** * Gets all valid channel access token key IDs. * @param clientAssertionType `urn:ietf:params:oauth:client-assertion-type:jwt-bearer` * @param clientAssertion A JSON Web Token (JWT) (opens new window)the client needs to create and sign with the private key. * * @see Documentation */ getsAllValidChannelAccessTokenKeyIds(clientAssertionType: string, clientAssertion: string): Promise; /** * Gets all valid channel access token key IDs.. * This method includes HttpInfo object to return additional information. * @param clientAssertionType `urn:ietf:params:oauth:client-assertion-type:jwt-bearer` * @param clientAssertion A JSON Web Token (JWT) (opens new window)the client needs to create and sign with the private key. * * @see Documentation */ getsAllValidChannelAccessTokenKeyIdsWithHttpInfo(clientAssertionType: string, clientAssertion: string): Promise>; /** * Issue short-lived channel access token * @param grantType `client_credentials` * @param clientId Channel ID. * @param clientSecret Channel secret. * * @see Documentation */ issueChannelToken(grantType?: string, clientId?: string, clientSecret?: string): Promise; /** * Issue short-lived channel access token. * This method includes HttpInfo object to return additional information. * @param grantType `client_credentials` * @param clientId Channel ID. * @param clientSecret Channel secret. * * @see Documentation */ issueChannelTokenWithHttpInfo(grantType?: string, clientId?: string, clientSecret?: string): Promise>; /** * Issues a channel access token that allows you to specify a desired expiration date. This method lets you use JWT assertion for authentication. * @param grantType client_credentials * @param clientAssertionType urn:ietf:params:oauth:client-assertion-type:jwt-bearer * @param clientAssertion A JSON Web Token the client needs to create and sign with the private key of the Assertion Signing Key. * * @see Documentation */ issueChannelTokenByJWT(grantType?: string, clientAssertionType?: string, clientAssertion?: string): Promise; /** * Issues a channel access token that allows you to specify a desired expiration date. This method lets you use JWT assertion for authentication.. * This method includes HttpInfo object to return additional information. * @param grantType client_credentials * @param clientAssertionType urn:ietf:params:oauth:client-assertion-type:jwt-bearer * @param clientAssertion A JSON Web Token the client needs to create and sign with the private key of the Assertion Signing Key. * * @see Documentation */ issueChannelTokenByJWTWithHttpInfo(grantType?: string, clientAssertionType?: string, clientAssertion?: string): Promise>; /** * Issues a new stateless channel access token, which doesn\'t have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires. * @param grantType `client_credentials` * @param clientAssertionType URL-encoded value of `urn:ietf:params:oauth:client-assertion-type:jwt-bearer` * @param clientAssertion A JSON Web Token the client needs to create and sign with the private key of the Assertion Signing Key. * @param clientId Channel ID. * @param clientSecret Channel secret. * * @see Documentation */ issueStatelessChannelToken(grantType?: string, clientAssertionType?: string, clientAssertion?: string, clientId?: string, clientSecret?: string): Promise; /** * Issues a new stateless channel access token, which doesn\'t have max active token limit unlike the other token types. The newly issued token is only valid for 15 minutes but can not be revoked until it naturally expires. . * This method includes HttpInfo object to return additional information. * @param grantType `client_credentials` * @param clientAssertionType URL-encoded value of `urn:ietf:params:oauth:client-assertion-type:jwt-bearer` * @param clientAssertion A JSON Web Token the client needs to create and sign with the private key of the Assertion Signing Key. * @param clientId Channel ID. * @param clientSecret Channel secret. * * @see Documentation */ issueStatelessChannelTokenWithHttpInfo(grantType?: string, clientAssertionType?: string, clientAssertion?: string, clientId?: string, clientSecret?: string): Promise>; /** * Revoke short-lived or long-lived channel access token * @param accessToken Channel access token * * @see Documentation */ revokeChannelToken(accessToken?: string): Promise; /** * Revoke short-lived or long-lived channel access token. * This method includes HttpInfo object to return additional information. * @param accessToken Channel access token * * @see Documentation */ revokeChannelTokenWithHttpInfo(accessToken?: string): Promise>; /** * Revoke channel access token v2.1 * @param clientId Channel ID * @param clientSecret Channel Secret * @param accessToken Channel access token * * @see Documentation */ revokeChannelTokenByJWT(clientId?: string, clientSecret?: string, accessToken?: string): Promise; /** * Revoke channel access token v2.1. * This method includes HttpInfo object to return additional information. * @param clientId Channel ID * @param clientSecret Channel Secret * @param accessToken Channel access token * * @see Documentation */ revokeChannelTokenByJWTWithHttpInfo(clientId?: string, clientSecret?: string, accessToken?: string): Promise>; /** * Verify the validity of short-lived and long-lived channel access tokens * @param accessToken A short-lived or long-lived channel access token. * * @see Documentation */ verifyChannelToken(accessToken?: string): Promise; /** * Verify the validity of short-lived and long-lived channel access tokens. * This method includes HttpInfo object to return additional information. * @param accessToken A short-lived or long-lived channel access token. * * @see Documentation */ verifyChannelTokenWithHttpInfo(accessToken?: string): Promise>; /** * You can verify whether a Channel access token with a user-specified expiration (Channel Access Token v2.1) is valid. * @param accessToken Channel access token with a user-specified expiration (Channel Access Token v2.1). * * @see Documentation */ verifyChannelTokenByJWT(accessToken: string): Promise; /** * You can verify whether a Channel access token with a user-specified expiration (Channel Access Token v2.1) is valid.. * This method includes HttpInfo object to return additional information. * @param accessToken Channel access token with a user-specified expiration (Channel Access Token v2.1). * * @see Documentation */ verifyChannelTokenByJWTWithHttpInfo(accessToken: string): Promise>; } export {}; //# sourceMappingURL=channelAccessTokenClient.d.ts.map