@jambonz/sdk 0.10.1 → 0.12.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/client/index.cjs +4 -0
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.d.cts +4 -2
- package/dist/client/index.d.ts +4 -2
- package/dist/client/index.js +4 -0
- package/dist/client/index.js.map +1 -1
- package/dist/index.cjs +38 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +38 -0
- package/dist/index.js.map +1 -1
- package/dist/{rest-xZDo1JK7.d.cts → rest-0m9Hgjmn.d.cts} +29 -2
- package/dist/{rest-vYKAkq-I.d.ts → rest-CqS2POQv.d.ts} +29 -2
- package/dist/types/index.d.cts +163 -3
- package/dist/types/index.d.ts +163 -3
- package/dist/{verb-builder-QI7NMTys.d.ts → verb-builder-C1id83_f.d.cts} +4 -1
- package/dist/{verb-builder-B4MYgXyR.d.cts → verb-builder-YFevoXCs.d.ts} +4 -1
- package/dist/{verbs-DXiMUUe9.d.cts → verbs-DQ6zJ0bn.d.cts} +41 -2
- package/dist/{verbs-DXiMUUe9.d.ts → verbs-DQ6zJ0bn.d.ts} +41 -2
- package/dist/webhook/index.cjs +9 -0
- package/dist/webhook/index.cjs.map +1 -1
- package/dist/webhook/index.d.cts +2 -2
- package/dist/webhook/index.d.ts +2 -2
- package/dist/webhook/index.js +9 -0
- package/dist/webhook/index.js.map +1 -1
- package/dist/websocket/index.cjs +34 -0
- package/dist/websocket/index.cjs.map +1 -1
- package/dist/websocket/index.d.cts +14 -3
- package/dist/websocket/index.d.ts +14 -3
- package/dist/websocket/index.js +34 -0
- package/dist/websocket/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/session-DKaSRkIo.d.cts +0 -160
- package/dist/session-DKaSRkIo.d.ts +0 -160
package/dist/index.js
CHANGED
|
@@ -142,6 +142,15 @@ var VerbBuilder = class {
|
|
|
142
142
|
qwen_s2s(opts) {
|
|
143
143
|
return this.addVerb({ verb: "qwen_s2s", ...opts });
|
|
144
144
|
}
|
|
145
|
+
gptlive_s2s(opts) {
|
|
146
|
+
return this.addVerb({ verb: "gptlive_s2s", ...opts });
|
|
147
|
+
}
|
|
148
|
+
nova_s2s(opts) {
|
|
149
|
+
return this.addVerb({ verb: "nova_s2s", ...opts });
|
|
150
|
+
}
|
|
151
|
+
voicelive_s2s(opts) {
|
|
152
|
+
return this.addVerb({ verb: "voicelive_s2s", ...opts });
|
|
153
|
+
}
|
|
145
154
|
/** Shortcut for s2s with vendor='google'. */
|
|
146
155
|
google_s2s(opts) {
|
|
147
156
|
return this.addVerb({ verb: "google_s2s", ...opts });
|
|
@@ -466,6 +475,18 @@ var Session = class extends EventEmitter {
|
|
|
466
475
|
this.builder.qwen_s2s(opts);
|
|
467
476
|
return this;
|
|
468
477
|
}
|
|
478
|
+
gptlive_s2s(opts) {
|
|
479
|
+
this.builder.gptlive_s2s(opts);
|
|
480
|
+
return this;
|
|
481
|
+
}
|
|
482
|
+
nova_s2s(opts) {
|
|
483
|
+
this.builder.nova_s2s(opts);
|
|
484
|
+
return this;
|
|
485
|
+
}
|
|
486
|
+
voicelive_s2s(opts) {
|
|
487
|
+
this.builder.voicelive_s2s(opts);
|
|
488
|
+
return this;
|
|
489
|
+
}
|
|
469
490
|
/** Shortcut for s2s with vendor='google'. */
|
|
470
491
|
google_s2s(opts) {
|
|
471
492
|
this.builder.google_s2s(opts);
|
|
@@ -780,6 +801,19 @@ var Session = class extends EventEmitter {
|
|
|
780
801
|
data
|
|
781
802
|
});
|
|
782
803
|
}
|
|
804
|
+
/**
|
|
805
|
+
* Send input into a running Dialogflow CES session mid-call.
|
|
806
|
+
* CES only. Variables and dtmf go at once; an event or text is held by
|
|
807
|
+
* jambonz until the agent's current turn ends, because CES drops one sent
|
|
808
|
+
* mid-reply.
|
|
809
|
+
*/
|
|
810
|
+
updateDialogflow(data) {
|
|
811
|
+
this.wsSend({
|
|
812
|
+
type: "command",
|
|
813
|
+
command: "dialogflow:update",
|
|
814
|
+
data
|
|
815
|
+
});
|
|
816
|
+
}
|
|
783
817
|
/**
|
|
784
818
|
* Reconfigure STT (speech-to-text) settings mid-call.
|
|
785
819
|
* Currently supports updating language hints for Deepgram Flux Multilingual.
|
|
@@ -1384,6 +1418,10 @@ var CallsResource = class {
|
|
|
1384
1418
|
async updateAgent(callSid, data) {
|
|
1385
1419
|
return this.update(callSid, { agent_update: data });
|
|
1386
1420
|
}
|
|
1421
|
+
/** Send input into a running Dialogflow CES session. */
|
|
1422
|
+
async updateDialogflow(callSid, data) {
|
|
1423
|
+
return this.update(callSid, { dialogflow_update: data });
|
|
1424
|
+
}
|
|
1387
1425
|
/** Redirect the in-progress call to a packaged transfer (blind or warm). */
|
|
1388
1426
|
async transfer(callSid, opts) {
|
|
1389
1427
|
return this.update(callSid, { transfer: opts });
|