UNPKG

@visionfi/server-sdk

Version:

Server-side SDK for VisionFI API access using Google Service Account authentication

23 lines (22 loc) 743 B
/** * Document Client - handles document operations for packages in Server SDK * Copyright (c) 2024-2025 VisionFI. All Rights Reserved. */ import { AxiosInstance } from 'axios'; import { AddDocumentsOptions, AddDocumentsResponse, DeleteDocumentResponse } from '@visionfi/core'; export declare class DocumentClient { private apiClient; constructor(apiClient: AxiosInstance); /** * Add documents to a package */ add(packageId: string, options: AddDocumentsOptions): Promise<AddDocumentsResponse>; /** * Delete a document from a package */ delete(packageId: string, documentUuid: string): Promise<DeleteDocumentResponse>; /** * Handle errors consistently */ private handleError; }