Repository navigation
v0.3.0
Breaking: the storage resources move to the Knowledge Bases API, as the Prisme.ai platform retires the /v1/vector_stores and /v1/files storage routes they used. The README has a "Migrating from 0.2" section with the method mapping.
client.storage.vectorStoresis replaced byclient.storage.knowledgeBases, withdocuments,accessandwebSources. Existing vector store ids (vs_...) are valid knowledge base ids.client.storage.filesuses the storage workspace's files API: upload a file, then attach it withknowledgeBases.documents.add(kbId, { native_file_id }). An upload from a path keeps the file's name; aBlobkeeps its own type or takescontentType.files.deletedeletes a file the caller uploaded and no document uses (409 while one does).files.listis removed.- Storage calls act on behalf of a user and need a
bearerToken. - Deletes return the server's body: a document or file delete says whether the uploaded file went with it (
file_purged,purge_reason); a knowledge base delete runs in the background. access.list,webSources.listanddocuments.chunkstakepageandlimit;documents.listtakesmetadata.*filters;documents.sourceUrlresolves a link to a document's source.- Fix:
require()resolves to the built CommonJS bundle. - Fix: the paginator no longer overwrites a caller's
pageandlimit, and keeps paging past a server-cappedlimitwhile the response reports more.