/** * @api.video/nodejs-client * api.video is an API that encodes on the go to facilitate immediate playback, enhancing viewer streaming experiences across multiple devices and platforms. You can stream live or on-demand online videos within minutes. * * The version of the OpenAPI document: 1 * * * NOTE: This class is auto generated. * Do not edit the class manually. */ import HttpClient, { ApiResponseHeaders } from '../HttpClient'; import TokenCreationPayload from '../model/TokenCreationPayload'; import TokenListResponse from '../model/TokenListResponse'; import UploadToken from '../model/UploadToken'; /** * no description */ export default class UploadTokensApi { private httpClient; constructor(httpClient: HttpClient); /** * Generates an upload token that can be used to replace the API Key. More information can be found [here](https://docs.api.video/vod/delegated-upload-tokens) * Generate an upload token * @param tokenCreationPayload */ createToken(tokenCreationPayload?: TokenCreationPayload): Promise; /** * Generates an upload token that can be used to replace the API Key. More information can be found [here](https://docs.api.video/vod/delegated-upload-tokens) * Generate an upload token * @param tokenCreationPayload */ createTokenWithResponseHeaders(tokenCreationPayload?: TokenCreationPayload): Promise<{ headers: ApiResponseHeaders; body: UploadToken; }>; /** * Retrieve details about a specific upload token by id. * Retrieve upload token * @param uploadToken The unique identifier for the token you want information about. */ getToken(uploadToken: string): Promise; /** * Retrieve details about a specific upload token by id. * Retrieve upload token * @param uploadToken The unique identifier for the token you want information about. */ getTokenWithResponseHeaders(uploadToken: string): Promise<{ headers: ApiResponseHeaders; body: UploadToken; }>; /** * Delete an existing upload token. This is especially useful for tokens you may have created that do not expire. * Delete an upload token * @param uploadToken The unique identifier for the upload token you want to delete. Deleting a token will make it so the token can no longer be used for authentication. */ deleteToken(uploadToken: string): Promise; /** * Delete an existing upload token. This is especially useful for tokens you may have created that do not expire. * Delete an upload token * @param uploadToken The unique identifier for the upload token you want to delete. Deleting a token will make it so the token can no longer be used for authentication. */ deleteTokenWithResponseHeaders(uploadToken: string): Promise<{ headers: ApiResponseHeaders; body: void; }>; /** * Retrieve a list of all currently active delegated tokens. * List all active upload tokens * @param {Object} searchParams * @param { 'createdAt' | 'ttl' } searchParams.sortBy Allowed: createdAt, ttl. You can use these to sort by when a token was created, or how much longer the token will be active (ttl - time to live). Date and time is presented in ATOM UTC format. * @param { 'asc' | 'desc' } searchParams.sortOrder Allowed: asc, desc. Ascending is 0-9 or A-Z. Descending is 9-0 or Z-A. * @param { number } searchParams.currentPage Choose the number of search results to return per page. Minimum value: 1 * @param { number } searchParams.pageSize Results per page. Allowed values 1-100, default is 25. */ list(args?: { sortBy?: 'createdAt' | 'ttl'; sortOrder?: 'asc' | 'desc'; currentPage?: number; pageSize?: number; }): Promise; /** * Retrieve a list of all currently active delegated tokens. * List all active upload tokens * @param {Object} searchParams * @param { 'createdAt' | 'ttl' } searchParams.sortBy Allowed: createdAt, ttl. You can use these to sort by when a token was created, or how much longer the token will be active (ttl - time to live). Date and time is presented in ATOM UTC format. * @param { 'asc' | 'desc' } searchParams.sortOrder Allowed: asc, desc. Ascending is 0-9 or A-Z. Descending is 9-0 or Z-A. * @param { number } searchParams.currentPage Choose the number of search results to return per page. Minimum value: 1 * @param { number } searchParams.pageSize Results per page. Allowed values 1-100, default is 25. */ listWithResponseHeaders({ sortBy, sortOrder, currentPage, pageSize, }?: { sortBy?: 'createdAt' | 'ttl'; sortOrder?: 'asc' | 'desc'; currentPage?: number; pageSize?: number; }): Promise<{ headers: ApiResponseHeaders; body: TokenListResponse; }>; }