svector-sdk
Version:
Official JavaScript and TypeScript SDK for accessing SVECTOR APIs.
14 lines (13 loc) • 420 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Knowledge = void 0;
class Knowledge {
constructor(client) {
this.client = client;
}
async addFile(knowledgeId, fileId, options) {
const body = { file_id: fileId };
return this.client.request('POST', `/api/v1/knowledge/${knowledgeId}/file/add`, body, options);
}
}
exports.Knowledge = Knowledge;