@fonoster/sdk 0.9.55 → 0.9.57
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/README.md +6 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1007,6 +1007,7 @@ Creates a new Call in the Workspace.
|
|
|
1007
1007
|
| request.to | <code>string</code> | The number that received the call |
|
|
1008
1008
|
| request.appRef | <code>string</code> | The reference of the App that will handle the call |
|
|
1009
1009
|
| request.timeout | <code>number</code> | The time in seconds to wait for the call to be answered. Default is 60 seconds |
|
|
1010
|
+
| request.metadata | <code>Record.<string, string></code> | Optional metadata to be sent to the App. For Autopilot applications, this is added to the context of the conversation. |
|
|
1010
1011
|
|
|
1011
1012
|
**Example**
|
|
1012
1013
|
```js
|
|
@@ -1016,7 +1017,11 @@ const request = {
|
|
|
1016
1017
|
from: "+18287854037",
|
|
1017
1018
|
to: "+17853178070",
|
|
1018
1019
|
appRef: "00000000-0000-0000-0000-000000000000",
|
|
1019
|
-
timeout: 30
|
|
1020
|
+
timeout: 30,
|
|
1021
|
+
metadata: {
|
|
1022
|
+
"name": "John Doe",
|
|
1023
|
+
"preferredLanguage": "en-US"
|
|
1024
|
+
}
|
|
1020
1025
|
};
|
|
1021
1026
|
|
|
1022
1027
|
const response = await calls.createCall(request);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/sdk",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.57",
|
|
4
4
|
"description": "Web and Node.js SDK for Fonoster",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/fonoster#readme",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"fonoster"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@fonoster/common": "^0.9.
|
|
30
|
-
"@fonoster/types": "^0.9.
|
|
29
|
+
"@fonoster/common": "^0.9.56",
|
|
30
|
+
"@fonoster/types": "^0.9.56",
|
|
31
31
|
"@grpc/grpc-js": "~1.10.6",
|
|
32
32
|
"@grpc/proto-loader": "^0.7.12",
|
|
33
33
|
"google-protobuf": "^3.21.2",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"rollup": "^4.18.0",
|
|
63
63
|
"serve": "^14.2.3"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "2378e52ed22cea4d55fedf0ebaf7cc961f389e56"
|
|
66
66
|
}
|