/** * User Service API * Solomon AI User Service API - Manages user profiles and authentication * * The version of the OpenAPI document: 1.0 * Contact: yoanyomba@solomon-ai.co * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /// import http from 'http'; import { WorkspaceservicehttpFileUploadResponse } from '../model/workspaceservicehttpFileUploadResponse'; import { WorkspaceservicehttpTusResponse } from '../model/workspaceservicehttpTusResponse'; import { Authentication, Interceptor } from '../model/models'; import { ApiKeyAuth } from '../model/models'; import { RequestFile } from './apis'; export declare enum WorkspaceServiceRestApiApiKeys { ApiKeyAuth = 0, Bearer = 1 } export declare class WorkspaceServiceRestApi { protected _basePath: string; protected _defaultHeaders: any; protected _useQuerystring: boolean; protected authentications: { default: Authentication; ApiKeyAuth: ApiKeyAuth; Bearer: ApiKeyAuth; }; protected interceptors: Interceptor[]; constructor(basePath?: string); set useQuerystring(value: boolean); set basePath(basePath: string); set defaultHeaders(defaultHeaders: any); get defaultHeaders(): any; get basePath(): string; setDefaultAuthentication(auth: Authentication): void; setApiKey(key: WorkspaceServiceRestApiApiKeys, value: string): void; addInterceptor(interceptor: Interceptor): void; /** * * @summary Delete an incomplete or completed file upload * @param tusResumable TUS protocol version (must be 1.0.0) * @param grpcMetadataXOrganizationID Unique identifier for the organization making the request * @param grpcMetadataXTenantID Unique identifier for the tenant within the organization * @param grpcMetadataXUserID Unique identifier for the user performing the upload * @param grpcMetadataXWorkspaceID Unique identifier for the workspace where the file will be stored * @param grpcMetadataXFolderID Unique identifier for the folder within the workspace * @param uploadMetadata Base64 encoded metadata (e.g., workspaceId,folderId,filename,userId) * @param id Upload ID */ workspaceMicroserviceRestApiV1FileResumableIdDelete(tusResumable: string, grpcMetadataXOrganizationID: string, grpcMetadataXTenantID: string, grpcMetadataXUserID: string, grpcMetadataXWorkspaceID: string, grpcMetadataXFolderID: string, uploadMetadata: string, id: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: WorkspaceservicehttpTusResponse; }>; /** * * @summary Upload chunks to an existing file upload using the TUS protocol * @param tusResumable TUS protocol version (must be 1.0.0) * @param grpcMetadataXOrganizationID Unique identifier for the organization making the request * @param grpcMetadataXTenantID Unique identifier for the tenant within the organization * @param grpcMetadataXUserID Unique identifier for the user performing the upload * @param grpcMetadataXWorkspaceID Unique identifier for the workspace where the file will be stored * @param grpcMetadataXFolderID Unique identifier for the folder within the workspace * @param uploadOffset Current byte offset for the upload * @param contentLength Length of the chunk being uploaded * @param uploadMetadata Base64 encoded metadata (e.g., workspaceId,folderId,filename,userId) * @param id Upload ID * @param uploadChecksum Checksum of the current chunk */ workspaceMicroserviceRestApiV1FileResumableIdPatch(tusResumable: string, grpcMetadataXOrganizationID: string, grpcMetadataXTenantID: string, grpcMetadataXUserID: string, grpcMetadataXWorkspaceID: string, grpcMetadataXFolderID: string, uploadOffset: number, contentLength: number, uploadMetadata: string, id: string, uploadChecksum?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: WorkspaceservicehttpTusResponse; }>; /** * * @summary Upload a file to the workspace using the TUS protocol * @param tusResumable TUS protocol version (must be 1.0.0) * @param grpcMetadataXOrganizationID Unique identifier for the organization making the request * @param grpcMetadataXTenantID Unique identifier for the tenant within the organization * @param grpcMetadataXUserID Unique identifier for the user performing the upload * @param grpcMetadataXWorkspaceID Unique identifier for the workspace where the file will be stored * @param grpcMetadataXFolderID Unique identifier for the folder within the workspace * @param uploadMetadata Base64 encoded metadata (e.g., workspaceId,folderId,filename,userId) * @param contentLength Length of the body in bytes (must be 0 for creation; required for `Creation With Upload`) * @param uploadLength Total size of the file in bytes (required for POST requests) * @param uploadDeferLength Set to 1 if Upload-Length is not known at creation * @param uploadOffset Current byte offset for resuming upload (required for PATCH requests) * @param uploadContentType Must be application/offset+octet-stream for PATCH requests * @param uploadChecksum Checksum of the current chunk in specified algorithm * @param uploadConcat Indicates concatenation mode for multiple uploads (partial or final) */ workspaceMicroserviceRestApiV1FileResumablePost(tusResumable: string, grpcMetadataXOrganizationID: string, grpcMetadataXTenantID: string, grpcMetadataXUserID: string, grpcMetadataXWorkspaceID: string, grpcMetadataXFolderID: string, uploadMetadata: string, contentLength?: number, uploadLength?: number, uploadDeferLength?: 1, uploadOffset?: number, uploadContentType?: string, uploadChecksum?: string, uploadConcat?: 'final' | 'partial', options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: WorkspaceservicehttpTusResponse; }>; /** * This endpoint allows for the uploading of a file to the server. Upon successful upload, * @summary Uploads a file to the server * @param workspaceId Identifier of the workspace where the file will be uploaded * @param folderId Identifier of the folder within the workspace where the file will be stored * @param userId Identifier of the user uploading the file * @param attachment The file to be uploaded * @param filename The name of the file to be saved (optional) */ workspaceMicroserviceRestApiV1FileUploadPost(workspaceId: string, folderId: string, userId: string, attachment: RequestFile, filename?: string, options?: { headers: { [name: string]: string; }; }): Promise<{ response: http.IncomingMessage; body: WorkspaceservicehttpFileUploadResponse; }>; }