@xapp/stentor-dialogflow-telephony 1.86.6 → 1.86.7

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.
Files changed (2) hide show
  1. package/README.md +20 -0
  2. package/package.json +9 -9
package/README.md ADDED
@@ -0,0 +1,20 @@
1
+ ## @xapp/stentor-dialogflow-telephony
2
+
3
+ Stentor channel that handles requests coming through Google's Dialogflow Telephony Gateway. It detects webhook requests whose `originalDetectIntentRequest.source` is `GOOGLE_TELEPHONY`, then extends `@xapp/stentor-dialogflow`'s request translator to override the platform, user id (caller phone number), session/locale handling, and launch-request detection for a phone call rather than a Google Assistant device. Responses are sent as `telephonySynthesizeSpeech` SSML, and a response with `system === "TRANSFER_CALL"` adds a `telephonyTransferCall` to `response.data.transferPhoneNumber` (the number must be 11 digits starting with `1`, otherwise the translator throws).
4
+
5
+ ### Usage
6
+
7
+ ```ts
8
+ import { DialogflowTelephony } from "@xapp/stentor-dialogflow-telephony";
9
+
10
+ const channel = DialogflowTelephony();
11
+ // channel.test(body) -> true for Dialogflow Google Telephony webhook payloads
12
+ // channel.request.translate(body) -> normalized Stentor Request
13
+ // channel.response -> translates a Stentor Response back to a Dialogflow webhook response
14
+ ```
15
+
16
+ The channel reports `canSpeak` and `canTransferCall` capabilities, since telephony calls have no screen or web browser.
17
+
18
+ ### Documentation
19
+
20
+ - [Dialogflow ES Telephony Gateway integration](https://cloud.google.com/dialogflow/es/docs/integrations/phone-gateway)
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.86.6",
7
+ "version": "1.86.7",
8
8
  "description": "Stentor Dialogflow Telephony channel for stentor",
9
9
  "types": "lib/index",
10
10
  "main": "lib/index",
@@ -24,19 +24,19 @@
24
24
  "mocha": "11.8.0",
25
25
  "sinon": "21.0.0",
26
26
  "sinon-chai": "3.7.0",
27
- "stentor-constants": "1.74.5",
28
- "stentor-interaction-model": "1.74.9",
29
- "stentor-media": "1.74.10",
30
- "stentor-models": "1.79.0",
31
- "stentor-request": "1.74.9",
32
- "stentor-response": "1.74.10",
33
- "stentor-utils": "1.76.0",
27
+ "stentor-constants": "1.74.7",
28
+ "stentor-interaction-model": "1.74.11",
29
+ "stentor-media": "1.74.14",
30
+ "stentor-models": "1.81.0",
31
+ "stentor-request": "1.74.11",
32
+ "stentor-response": "1.74.14",
33
+ "stentor-utils": "1.76.2",
34
34
  "ts-node": "10.9.2",
35
35
  "typescript": "5.9.3"
36
36
  },
37
37
  "dependencies": {
38
38
  "@xapp/patterns": "2.0.3",
39
- "@xapp/stentor-dialogflow": "1.86.6"
39
+ "@xapp/stentor-dialogflow": "1.86.7"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "stentor-constants": "1.x",