/** * Retool API * The Retool API is in beta. Go to Settings > API to get started. Once you generate an API token, use bearer token authentication to make requests. * * The version of the OpenAPI document: 2.4.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import type { CustomComponentLibrariesGet200Response, CustomComponentLibrariesLibraryIdGet200Response, CustomComponentLibrariesLibraryIdRevisionsGet200Response, CustomComponentLibrariesLibraryIdRevisionsPost200Response, CustomComponentLibrariesLibraryIdRevisionsRevisionIdFilesGet200Response, CustomComponentLibrariesPost200Response, CustomComponentLibrariesPostRequest } from '../models/index'; export interface CustomComponentLibrariesGetRequest { nextToken?: string; } export interface CustomComponentLibrariesLibraryIdGetRequest { libraryId: string; } export interface CustomComponentLibrariesLibraryIdRevisionsGetRequest { libraryId: string; } export interface CustomComponentLibrariesLibraryIdRevisionsPostRequest { libraryId: string; versionBump: CustomComponentLibrariesLibraryIdRevisionsPostVersionBumpEnum; files: Blob; id?: string; version?: string; } export interface CustomComponentLibrariesLibraryIdRevisionsRevisionIdFilesGetRequest { libraryId: string; revisionId: string; } export interface CustomComponentLibrariesPostOperationRequest { customComponentLibrariesPostRequest?: CustomComponentLibrariesPostRequest; } /** * */ export declare class CustomComponentLibraryApi extends runtime.BaseAPI { /** * Available from API version 2.4.0+ and onprem version 3.32.0+. Gets a paginated list of all custom component libraries. The API token must have the \"CustomComponent > Read\" scope. * Get a list of all custom component libraries */ customComponentLibrariesGetRaw(requestParameters: CustomComponentLibrariesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Available from API version 2.4.0+ and onprem version 3.32.0+. Gets a paginated list of all custom component libraries. The API token must have the \"CustomComponent > Read\" scope. * Get a list of all custom component libraries */ customComponentLibrariesGet(requestParameters?: CustomComponentLibrariesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Available from API version 2.4.0+ and onprem version 3.34.0+. Gets a single custom component library. The API token must have the \"CustomComponent > Read\" scope. * Get a single custom component libraries */ customComponentLibrariesLibraryIdGetRaw(requestParameters: CustomComponentLibrariesLibraryIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Available from API version 2.4.0+ and onprem version 3.34.0+. Gets a single custom component library. The API token must have the \"CustomComponent > Read\" scope. * Get a single custom component libraries */ customComponentLibrariesLibraryIdGet(requestParameters: CustomComponentLibrariesLibraryIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Available from API version 2.4.0+ and onprem version 3.34.0+. Gets a list of all the revisions of a custom component library. The API token must have the \"CustomComponent > Read\" scope. * Gets a list of all the revisions of a custom component library */ customComponentLibrariesLibraryIdRevisionsGetRaw(requestParameters: CustomComponentLibrariesLibraryIdRevisionsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Available from API version 2.4.0+ and onprem version 3.34.0+. Gets a list of all the revisions of a custom component library. The API token must have the \"CustomComponent > Read\" scope. * Gets a list of all the revisions of a custom component library */ customComponentLibrariesLibraryIdRevisionsGet(requestParameters: CustomComponentLibrariesLibraryIdRevisionsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Available from API version 2.4.0+ and onprem version 3.32.0+. Creates a new version of a custom component library, the underlying files that describe the component. The API token must have the \"CustomComponent > Write\" scope. * Create a new custom component library revision */ customComponentLibrariesLibraryIdRevisionsPostRaw(requestParameters: CustomComponentLibrariesLibraryIdRevisionsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Available from API version 2.4.0+ and onprem version 3.32.0+. Creates a new version of a custom component library, the underlying files that describe the component. The API token must have the \"CustomComponent > Write\" scope. * Create a new custom component library revision */ customComponentLibrariesLibraryIdRevisionsPost(requestParameters: CustomComponentLibrariesLibraryIdRevisionsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Available from API version 2.4.0+ and onprem version 3.37.0+. Gets all files associated with a custom component library revision. The API token must have the \"CustomComponent > Read\" scope. * Gets all files associated with a custom component library revision. */ customComponentLibrariesLibraryIdRevisionsRevisionIdFilesGetRaw(requestParameters: CustomComponentLibrariesLibraryIdRevisionsRevisionIdFilesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Available from API version 2.4.0+ and onprem version 3.37.0+. Gets all files associated with a custom component library revision. The API token must have the \"CustomComponent > Read\" scope. * Gets all files associated with a custom component library revision. */ customComponentLibrariesLibraryIdRevisionsRevisionIdFilesGet(requestParameters: CustomComponentLibrariesLibraryIdRevisionsRevisionIdFilesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Available from API version 2.4.0+ and onprem version 3.32.0+. Creates a new custom component library The API token must have the \"CustomComponent > Write\" scope. * Create a new custom component library */ customComponentLibrariesPostRaw(requestParameters: CustomComponentLibrariesPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Available from API version 2.4.0+ and onprem version 3.32.0+. Creates a new custom component library The API token must have the \"CustomComponent > Write\" scope. * Create a new custom component library */ customComponentLibrariesPost(requestParameters?: CustomComponentLibrariesPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * @export */ export declare const CustomComponentLibrariesLibraryIdRevisionsPostVersionBumpEnum: { readonly Minor: "minor"; readonly Major: "major"; readonly Dev: "dev"; readonly SpecifyVersion: "specify_version"; }; export type CustomComponentLibrariesLibraryIdRevisionsPostVersionBumpEnum = typeof CustomComponentLibrariesLibraryIdRevisionsPostVersionBumpEnum[keyof typeof CustomComponentLibrariesLibraryIdRevisionsPostVersionBumpEnum];