@craftedxp/sdk-node 0.8.0 → 0.9.0

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.mts CHANGED
@@ -330,6 +330,20 @@ interface CallTokenMintResult {
330
330
  agentId: string;
331
331
  expiresAt: number;
332
332
  allowedOrigins?: string[];
333
+ /**
334
+ * Transport the agent is configured for. Forward this to the client
335
+ * SDK's `fetchToken` (rich return form) so it can dispatch correctly
336
+ * without a second round-trip. Always present in the response;
337
+ * defaults to `'ws'` for legacy agent docs missing the field.
338
+ */
339
+ transport?: 'ws' | 'webrtc';
340
+ /**
341
+ * Signaling gateway base URL when `transport === 'webrtc'` AND the
342
+ * server has `WEBRTC_GATEWAY_BASE` configured. Forward alongside
343
+ * `transport` so the client SDK reaches the gateway directly instead
344
+ * of falling back to the Phase-1 routes on the API base (local dev).
345
+ */
346
+ webrtcGatewayBase?: string;
333
347
  }
334
348
  interface CallTokenSummary {
335
349
  tokenId: string;
package/dist/index.d.ts CHANGED
@@ -330,6 +330,20 @@ interface CallTokenMintResult {
330
330
  agentId: string;
331
331
  expiresAt: number;
332
332
  allowedOrigins?: string[];
333
+ /**
334
+ * Transport the agent is configured for. Forward this to the client
335
+ * SDK's `fetchToken` (rich return form) so it can dispatch correctly
336
+ * without a second round-trip. Always present in the response;
337
+ * defaults to `'ws'` for legacy agent docs missing the field.
338
+ */
339
+ transport?: 'ws' | 'webrtc';
340
+ /**
341
+ * Signaling gateway base URL when `transport === 'webrtc'` AND the
342
+ * server has `WEBRTC_GATEWAY_BASE` configured. Forward alongside
343
+ * `transport` so the client SDK reaches the gateway directly instead
344
+ * of falling back to the Phase-1 routes on the API base (local dev).
345
+ */
346
+ webrtcGatewayBase?: string;
333
347
  }
334
348
  interface CallTokenSummary {
335
349
  tokenId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@craftedxp/sdk-node",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Node.js / TypeScript SDK for the voice agent platform. Server-side API client — mint call tokens, manage agents, query calls, upload knowledge-base docs.",
5
5
  "author": "Crafted XP",
6
6
  "license": "MIT",