New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

trieve-ts-sdk

Package Overview
Dependencies
Maintainers
0
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trieve-ts-sdk - npm Package Compare versions

Comparing version 0.0.25 to 0.0.26

2

dist/fetch-client.d.ts

@@ -34,2 +34,3 @@ import type { $OpenApiTs } from "./types.gen";

debug?: boolean;
organizationId?: string;
}

@@ -40,2 +41,3 @@ export declare class TrieveFetchClient {

debug: boolean;
organizationId?: string;
constructor(opts: TrieveOpts);

@@ -42,0 +44,0 @@ fetch<EJECT extends EjectOption = false, URQ = EJECT extends "eject" ? EjectedRequestBase<any> : never, URE = EJECT extends "eject" ? unknown : never, P extends Paths = Paths, M extends EJECT extends false ? MethodsForPath<P> & HttpMethod : any = MethodsForPath<P> & HttpMethod>(path: P, method: EJECT extends false ? M : HttpMethod, params?: EJECT extends false ? RequestParams<P, M> : URQ, signal?: AbortSignal): Promise<EJECT extends false ? ResponseBody<P, M> : URE>;

16

dist/functions/chunks/index.d.ts

@@ -6,3 +6,3 @@ /**

*/
import { AutocompleteReqPayload, ChunkHtmlContentReqPayload, CountChunksReqPayload, CreateChunkReqPayloadEnum, DeleteChunkByTrackingIdData, DeleteChunkData, GenerateOffChunksReqPayload, GetChunkByIdData, GetChunkByTrackingIdData, GetChunksData, GetTrackingChunksData, RecommendChunksRequest, RecommendChunksResponseBody, ScrollChunksReqPayload, SearchChunksReqPayload, SearchResponseBody, SuggestedQueriesReqPayload, UpdateChunkByTrackingIdData, UpdateChunkReqPayload } from "../../fetch-client";
import { AutocompleteReqPayload, CountChunksReqPayload, CreateChunkReqPayloadEnum, DeleteChunkByTrackingIdData, DeleteChunkData, GenerateOffChunksReqPayload, GetChunkByIdData, GetChunkByTrackingIdData, GetChunksData, GetTrackingChunksData, RecommendChunksRequest, RecommendChunksResponseBody, ScrollChunksReqPayload, SearchChunksReqPayload, SearchResponseBody, SuggestedQueriesReqPayload, UpdateChunkByTrackingIdData, UpdateChunkReqPayload } from "../../fetch-client";
import { TrieveSDK } from "../../sdk";

@@ -292,16 +292,2 @@ /**

this: TrieveSDK, props: GetTrackingChunksData, signal?: AbortSignal): Promise<import("../../types.gen").ChunkReturnTypes[]>;
/**
* Function that splits an html string into chunks.
* The html string will be split into chunks based on the number of characters in the string and header tags.
*
* Example:
* ```js
*const data = await trieve.splitChunkHtml({
* chunk_html: "<p>Some HTML content</p>",
*});
* ```
*/
export declare function splitChunkHtml(
/** @hidden */
this: TrieveSDK, props: ChunkHtmlContentReqPayload, signal?: AbortSignal): Promise<import("../../types.gen").SplitHtmlResponse>;
//# sourceMappingURL=index.d.ts.map

@@ -100,5 +100,4 @@ declare const _default: {

getChunksByTrackingIds(this: import("..").TrieveSDK, props: import("..").GetTrackingChunksData, signal?: AbortSignal): Promise<import("..").ChunkReturnTypes[]>;
splitChunkHtml(this: import("..").TrieveSDK, props: import("..").ChunkHtmlContentReqPayload, signal?: AbortSignal): Promise<import("..").SplitHtmlResponse>;
};
export default _default;
//# sourceMappingURL=index.d.ts.map

@@ -24,2 +24,3 @@ var __defProp = Object.defineProperty;

debug = false;
organizationId;
constructor(opts) {

@@ -29,2 +30,3 @@ this.apiKey = opts.apiKey;

this.debug = opts.debug || false;
this.organizationId = opts.organizationId;
}

@@ -57,2 +59,5 @@ async fetch(path, method, params, signal) {

}
if (!headers["TR-Organization"] && this.organizationId) {
headers["TR-Organization"] = this.organizationId;
}
}

@@ -109,3 +114,2 @@ const updatedPath = replacePathParams(path, pathParams);

search: () => search,
splitChunkHtml: () => splitChunkHtml,
suggestedQueries: () => suggestedQueries,

@@ -333,12 +337,2 @@ updateChunk: () => updateChunk,

}
async function splitChunkHtml(props, signal) {
return this.trieve.fetch(
"/api/chunk/split",
"post",
{
data: props
},
signal
);
}

@@ -1156,3 +1150,4 @@ // src/functions/groups/index.ts

baseUrl,
debug
debug,
organizationId
});

@@ -1159,0 +1154,0 @@ this.datasetId = datasetId;

@@ -9,3 +9,3 @@ {

],
"version": "0.0.25",
"version": "0.0.26",
"license": "MIT",

@@ -20,4 +20,3 @@ "scripts": {

"test": "vitest",
"build:docs": "typedoc",
"publish": "yarn build && npm publish --access public"
"build:docs": "typedoc"
},

@@ -24,0 +23,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc