@maximem/synap-js-sdk 0.6.0 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/anticipation-cache-LPNKMRBH.cjs.map +1 -1
- package/dist/chunk-2VJV4HCF.cjs.map +1 -1
- package/dist/chunk-7IZHVYO2.cjs.map +1 -1
- package/dist/chunk-ICUFS3B5.cjs.map +1 -1
- package/dist/chunk-ZKOJDUN4.cjs.map +1 -1
- package/dist/env-55ULHNJZ.cjs.map +1 -1
- package/dist/grpc/index.cjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/onnx-encoder-4RSL6ID4.cjs.map +1 -1
- package/dist/stream-client-SZIYGVVJ.cjs.map +1 -1
- package/package.json +7 -3
package/dist/index.d.cts
CHANGED
|
@@ -240,7 +240,11 @@ interface KeepAliveOptions {
|
|
|
240
240
|
|
|
241
241
|
declare const DEFAULT_BASE_URL = "https://synap-cloud-prod.maximem.ai";
|
|
242
242
|
interface TimeoutConfig {
|
|
243
|
-
/**
|
|
243
|
+
/**
|
|
244
|
+
* Seconds. Same fields as TimeoutConfig in the Python SDK, but only `read`
|
|
245
|
+
* is applied here: it limits the whole request. `connect` and `write` are
|
|
246
|
+
* accepted so a config round-trips between the SDKs, and have no effect.
|
|
247
|
+
*/
|
|
244
248
|
connect: number;
|
|
245
249
|
read: number;
|
|
246
250
|
write: number;
|
|
@@ -1224,7 +1228,10 @@ interface LedgerOptions {
|
|
|
1224
1228
|
}
|
|
1225
1229
|
|
|
1226
1230
|
/**
|
|
1227
|
-
* Cache namespace.
|
|
1231
|
+
* Cache namespace. Same method names as `CacheInterface` in the Python SDK,
|
|
1232
|
+
* but it covers only the in-memory cache of prefetched context: `stats()`
|
|
1233
|
+
* returns `{ bundles, items }`, not Python's `enabled`, `total_entries`,
|
|
1234
|
+
* `total_bytes` and `backends`. There is no on-disk cache in JS.
|
|
1228
1235
|
*
|
|
1229
1236
|
* This is a deliberately narrow facade over the AnticipationCache rather than
|
|
1230
1237
|
* the cache object itself. Exposing the instance directly leaked internals
|
|
@@ -1900,7 +1907,7 @@ declare class SynapClient {
|
|
|
1900
1907
|
* build when the two disagree, which is the only thing that makes a manual
|
|
1901
1908
|
* publish safe.
|
|
1902
1909
|
*/
|
|
1903
|
-
declare const SDK_VERSION = "0.6.
|
|
1910
|
+
declare const SDK_VERSION = "0.6.1";
|
|
1904
1911
|
|
|
1905
1912
|
/**
|
|
1906
1913
|
* `response_shape: "ranked"`: one list in the order the server ranked it.
|
package/dist/index.d.ts
CHANGED
|
@@ -240,7 +240,11 @@ interface KeepAliveOptions {
|
|
|
240
240
|
|
|
241
241
|
declare const DEFAULT_BASE_URL = "https://synap-cloud-prod.maximem.ai";
|
|
242
242
|
interface TimeoutConfig {
|
|
243
|
-
/**
|
|
243
|
+
/**
|
|
244
|
+
* Seconds. Same fields as TimeoutConfig in the Python SDK, but only `read`
|
|
245
|
+
* is applied here: it limits the whole request. `connect` and `write` are
|
|
246
|
+
* accepted so a config round-trips between the SDKs, and have no effect.
|
|
247
|
+
*/
|
|
244
248
|
connect: number;
|
|
245
249
|
read: number;
|
|
246
250
|
write: number;
|
|
@@ -1224,7 +1228,10 @@ interface LedgerOptions {
|
|
|
1224
1228
|
}
|
|
1225
1229
|
|
|
1226
1230
|
/**
|
|
1227
|
-
* Cache namespace.
|
|
1231
|
+
* Cache namespace. Same method names as `CacheInterface` in the Python SDK,
|
|
1232
|
+
* but it covers only the in-memory cache of prefetched context: `stats()`
|
|
1233
|
+
* returns `{ bundles, items }`, not Python's `enabled`, `total_entries`,
|
|
1234
|
+
* `total_bytes` and `backends`. There is no on-disk cache in JS.
|
|
1228
1235
|
*
|
|
1229
1236
|
* This is a deliberately narrow facade over the AnticipationCache rather than
|
|
1230
1237
|
* the cache object itself. Exposing the instance directly leaked internals
|
|
@@ -1900,7 +1907,7 @@ declare class SynapClient {
|
|
|
1900
1907
|
* build when the two disagree, which is the only thing that makes a manual
|
|
1901
1908
|
* publish safe.
|
|
1902
1909
|
*/
|
|
1903
|
-
declare const SDK_VERSION = "0.6.
|
|
1910
|
+
declare const SDK_VERSION = "0.6.1";
|
|
1904
1911
|
|
|
1905
1912
|
/**
|
|
1906
1913
|
* `response_shape: "ranked"`: one list in the order the server ranked it.
|
package/dist/index.js
CHANGED
|
@@ -2151,7 +2151,7 @@ function createInstanceNamespace(credentials, cache, onTurn, agentModel = () =>
|
|
|
2151
2151
|
}
|
|
2152
2152
|
|
|
2153
2153
|
// src/version.ts
|
|
2154
|
-
var SDK_VERSION = "0.6.
|
|
2154
|
+
var SDK_VERSION = "0.6.1";
|
|
2155
2155
|
|
|
2156
2156
|
// src/registry.ts
|
|
2157
2157
|
var instances = /* @__PURE__ */ new Map();
|