From 44e6612fba3d849ed4f28dee774b18bf94a9f2e0 Mon Sep 17 00:00:00 2001 From: GitHub Actions Bot <> Date: Tue, 26 Mar 2024 05:58:28 +0000 Subject: [PATCH] Auto-generated SDK v1.0.0-beta17 --- api.ts | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 79 insertions(+), 5 deletions(-) diff --git a/api.ts b/api.ts index dd4af6f..217d3ac 100644 --- a/api.ts +++ b/api.ts @@ -76,6 +76,55 @@ export interface APIKey { */ signature: string; } +/** + * A freshly created API key with its secret. + * @export + * @interface APIKeyWithSecret + */ +export interface APIKeyWithSecret { + /** + * A label. + * @type {string} + * @memberof APIKeyWithSecret + */ + label: string; + /** + * + * @type {number} + * @memberof APIKeyWithSecret + */ + id: number; + /** + * The time the API key was created. + * @type {string} + * @memberof APIKeyWithSecret + */ + createdAt: string; + /** + * The time the API key was last used. + * @type {string} + * @memberof APIKeyWithSecret + */ + lastUsedAt?: string; + /** + * The ID of the user that created the API key. + * @type {number} + * @memberof APIKeyWithSecret + */ + createdBy: number; + /** + * The signature of the API key. + * @type {string} + * @memberof APIKeyWithSecret + */ + signature: string; + /** + * The secret key of the API key. + * @type {string} + * @memberof APIKeyWithSecret + */ + key: string; +} /** * * @export @@ -1599,10 +1648,10 @@ export interface CreateApiKey200Response { message: string; /** * - * @type {APIKey} + * @type {APIKeyWithSecret} * @memberof CreateApiKey200Response */ - result: APIKey; + result: APIKeyWithSecret; } /** * @@ -2201,6 +2250,31 @@ export interface GasParams { */ gas?: number; } +/** + * + * @export + * @interface GetApiKey200Response + */ +export interface GetApiKey200Response { + /** + * The status code. + * @type {number} + * @memberof GetApiKey200Response + */ + status: number; + /** + * The human-readable status message. + * @type {string} + * @memberof GetApiKey200Response + */ + message: string; + /** + * + * @type {APIKey} + * @memberof GetApiKey200Response + */ + result: APIKey; +} /** * * @export @@ -6037,7 +6111,7 @@ export const AdminApiFp = function (configuration?: Configuration) { async getApiKey( apiKeyID: number, options?: RawAxiosRequestConfig - ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + ): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getApiKey(apiKeyID, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = @@ -6570,7 +6644,7 @@ export const AdminApiFactory = function (configuration?: Configuration, basePath * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getApiKey(apiKeyID: number, options?: any): AxiosPromise { + getApiKey(apiKeyID: number, options?: any): AxiosPromise { return localVarFp.getApiKey(apiKeyID, options).then((request) => request(axios, basePath)); }, /** @@ -6878,7 +6952,7 @@ export interface AdminApiInterface { * @throws {RequiredError} * @memberof AdminApiInterface */ - getApiKey(apiKeyID: number, options?: RawAxiosRequestConfig): AxiosPromise; + getApiKey(apiKeyID: number, options?: RawAxiosRequestConfig): AxiosPromise; /** * Invites a new user.