@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/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.0";
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.0";
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-7A2DQ3H3.js");
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.0";
3372
+ var SDK_VERSION = "0.8.1";
3367
3373
 
3368
3374
  // src/registry.ts
3369
3375
  var instances = /* @__PURE__ */ new Map();