@maximem/synap-js-sdk 0.8.0 → 0.8.1
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/dist/{chunk-RKKTOLXP.js → chunk-MI636P2I.js} +30 -4
- package/dist/chunk-MI636P2I.js.map +1 -0
- package/dist/{chunk-SAKMZI7G.cjs → chunk-ZIMMNSVB.cjs} +41 -15
- package/dist/chunk-ZIMMNSVB.cjs.map +1 -0
- package/dist/grpc/index.cjs +3 -3
- package/dist/grpc/index.js +2 -2
- package/dist/index.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/{stream-client-7A2DQ3H3.js → stream-client-3VPWCEWU.js} +2 -2
- package/dist/stream-client-BGMZW2WP.cjs +22 -0
- package/dist/{stream-client-H2ES74FF.cjs.map → stream-client-BGMZW2WP.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/chunk-RKKTOLXP.js.map +0 -1
- package/dist/chunk-SAKMZI7G.cjs.map +0 -1
- package/dist/stream-client-H2ES74FF.cjs +0 -22
- /package/dist/{stream-client-7A2DQ3H3.js.map → stream-client-3VPWCEWU.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -2436,7 +2436,7 @@ declare class SynapClient {
|
|
|
2436
2436
|
* build when the two disagree, which is the only thing that makes a manual
|
|
2437
2437
|
* publish safe.
|
|
2438
2438
|
*/
|
|
2439
|
-
declare const SDK_VERSION = "0.8.
|
|
2439
|
+
declare const SDK_VERSION = "0.8.1";
|
|
2440
2440
|
|
|
2441
2441
|
/**
|
|
2442
2442
|
* `response_shape: "ranked"`: one list in the order the server ranked it.
|
package/dist/index.d.ts
CHANGED
|
@@ -2436,7 +2436,7 @@ declare class SynapClient {
|
|
|
2436
2436
|
* build when the two disagree, which is the only thing that makes a manual
|
|
2437
2437
|
* publish safe.
|
|
2438
2438
|
*/
|
|
2439
|
-
declare const SDK_VERSION = "0.8.
|
|
2439
|
+
declare const SDK_VERSION = "0.8.1";
|
|
2440
2440
|
|
|
2441
2441
|
/**
|
|
2442
2442
|
* `response_shape: "ranked"`: one list in the order the server ranked it.
|
package/dist/index.js
CHANGED
|
@@ -3146,7 +3146,7 @@ function createInstanceNamespace(credentials, cache, onTurn, fetchOrAgentModel,
|
|
|
3146
3146
|
onListen?.();
|
|
3147
3147
|
} catch {
|
|
3148
3148
|
}
|
|
3149
|
-
const { GrpcStreamClient } = await import("./stream-client-
|
|
3149
|
+
const { GrpcStreamClient } = await import("./stream-client-3VPWCEWU.js");
|
|
3150
3150
|
const onContext = options.on_context ?? options.onContext;
|
|
3151
3151
|
const onDisconnect = options.on_disconnect ?? options.onDisconnect;
|
|
3152
3152
|
const onReconnect = options.on_reconnect ?? options.onReconnect;
|
|
@@ -3325,6 +3325,12 @@ function createInstanceNamespace(credentials, cache, onTurn, fetchOrAgentModel,
|
|
|
3325
3325
|
});
|
|
3326
3326
|
},
|
|
3327
3327
|
async record_thinking(options) {
|
|
3328
|
+
if (hasCustomerIdCheck) {
|
|
3329
|
+
await checkCustomerId3(
|
|
3330
|
+
options.customer_id ?? options.customerId,
|
|
3331
|
+
"InstanceInterface.record_thinking"
|
|
3332
|
+
);
|
|
3333
|
+
}
|
|
3328
3334
|
if (client === null) throw new ListeningNotActiveError("Listening is not active");
|
|
3329
3335
|
const conversationId = options.conversation_id ?? options.conversationId ?? "";
|
|
3330
3336
|
ensureSession(
|
|
@@ -3363,7 +3369,7 @@ function createInstanceNamespace(credentials, cache, onTurn, fetchOrAgentModel,
|
|
|
3363
3369
|
}
|
|
3364
3370
|
|
|
3365
3371
|
// src/version.ts
|
|
3366
|
-
var SDK_VERSION = "0.8.
|
|
3372
|
+
var SDK_VERSION = "0.8.1";
|
|
3367
3373
|
|
|
3368
3374
|
// src/registry.ts
|
|
3369
3375
|
var instances = /* @__PURE__ */ new Map();
|