@sinch/functions-runtime 0.5.22 → 0.6.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/voice/v2.js CHANGED
@@ -14,21 +14,34 @@ import {
14
14
  MenuItemBuilder,
15
15
  PromptBuilder,
16
16
  REDACTED,
17
+ bridgeTo,
17
18
  buildTransferCommands,
18
19
  commands,
19
20
  connectAgent,
20
21
  createClient,
22
+ dial,
23
+ dialAgent,
21
24
  dialPhone,
22
25
  dialRelay,
23
26
  dialSip,
24
27
  dialStream,
28
+ endpointNumber,
29
+ menu,
30
+ onCall,
31
+ play,
32
+ realtimeAgent,
25
33
  redactCredentials,
26
34
  resolveHandlerKey,
27
35
  resolveWebhookName,
36
+ say,
28
37
  stringify,
29
- toCallRequest,
30
- toWebhookResponse
31
- } from "../chunk-JP6PANB3.js";
38
+ toCallBody,
39
+ toCallEvent,
40
+ toWebhookBody,
41
+ toWebhookRequest,
42
+ tool,
43
+ voiceRelay
44
+ } from "../chunk-TOTJB6SW.js";
32
45
  export {
33
46
  Client,
34
47
  CommandBuilder,
@@ -41,19 +54,32 @@ export {
41
54
  MenuItemBuilder,
42
55
  PromptBuilder,
43
56
  REDACTED,
57
+ bridgeTo,
44
58
  buildTransferCommands,
45
59
  commands,
46
60
  connectAgent,
47
61
  createClient,
62
+ dial,
63
+ dialAgent,
48
64
  dialPhone,
49
65
  dialRelay,
50
66
  dialSip,
51
67
  dialStream,
68
+ endpointNumber,
69
+ menu,
70
+ onCall,
71
+ play,
72
+ realtimeAgent,
52
73
  redactCredentials,
53
74
  resolveHandlerKey,
54
75
  resolveWebhookName,
76
+ say,
55
77
  stringify as stringifyOrdered,
56
- toCallRequest,
57
- toWebhookResponse
78
+ toCallBody,
79
+ toCallEvent,
80
+ toWebhookBody,
81
+ toWebhookRequest,
82
+ tool,
83
+ voiceRelay
58
84
  };
59
85
  //# sourceMappingURL=v2.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinch/functions-runtime",
3
- "version": "0.5.22",
3
+ "version": "0.6.0",
4
4
  "description": "Node.js SDK and local development runtime for Sinch Functions: voice, messaging and HTTP serverless functions",
5
5
  "type": "module",
6
6
  "exports": {
@@ -9,6 +9,11 @@
9
9
  "import": "./dist/index.js",
10
10
  "default": "./dist/index.js"
11
11
  },
12
+ "./voice": {
13
+ "types": "./dist/voice/v2.d.ts",
14
+ "import": "./dist/voice/v2.js",
15
+ "default": "./dist/voice/v2.js"
16
+ },
12
17
  "./voice/v2": {
13
18
  "types": "./dist/voice/v2.d.ts",
14
19
  "import": "./dist/voice/v2.js",