@voiceflow/sdk-runtime 1.13.1 → 1.14.0-alpha2
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/CHANGELOG.md +354 -0
- package/build/cjs/main.d.ts +3 -1
- package/build/cjs/main.d.ts.map +1 -1
- package/build/cjs/main.js +2 -1
- package/build/cjs/main.js.map +1 -1
- package/build/cjs/v2/interact-state.stream.d.ts +6 -0
- package/build/cjs/v2/interact-state.stream.d.ts.map +1 -0
- package/build/cjs/v2/interact-state.stream.js +18 -0
- package/build/cjs/v2/interact-state.stream.js.map +1 -0
- package/build/cjs/v2/private-runtime.client.d.ts +12 -0
- package/build/cjs/v2/private-runtime.client.d.ts.map +1 -0
- package/build/cjs/v2/private-runtime.client.js +36 -0
- package/build/cjs/v2/private-runtime.client.js.map +1 -0
- package/build/cjs/v2/public-runtime.client.d.ts +10 -0
- package/build/cjs/v2/public-runtime.client.d.ts.map +1 -0
- package/build/cjs/v2/{runtime.client.js → public-runtime.client.js} +7 -17
- package/build/cjs/v2/public-runtime.client.js.map +1 -0
- package/build/cjs/v2/runtime.interface.d.ts +15 -0
- package/build/cjs/v2/runtime.interface.d.ts.map +1 -0
- package/build/cjs/v2/runtime.interface.js +3 -0
- package/build/cjs/v2/runtime.interface.js.map +1 -0
- package/build/esm/main.d.ts +3 -1
- package/build/esm/main.d.ts.map +1 -1
- package/build/esm/main.js +2 -1
- package/build/esm/main.js.map +1 -1
- package/build/esm/v2/interact-state.stream.d.ts +6 -0
- package/build/esm/v2/interact-state.stream.d.ts.map +1 -0
- package/build/esm/v2/interact-state.stream.js +14 -0
- package/build/esm/v2/interact-state.stream.js.map +1 -0
- package/build/esm/v2/private-runtime.client.d.ts +12 -0
- package/build/esm/v2/private-runtime.client.d.ts.map +1 -0
- package/build/esm/v2/private-runtime.client.js +32 -0
- package/build/esm/v2/private-runtime.client.js.map +1 -0
- package/build/esm/v2/public-runtime.client.d.ts +10 -0
- package/build/esm/v2/public-runtime.client.d.ts.map +1 -0
- package/build/esm/v2/{runtime.client.js → public-runtime.client.js} +5 -15
- package/build/esm/v2/public-runtime.client.js.map +1 -0
- package/build/esm/v2/runtime.interface.d.ts +15 -0
- package/build/esm/v2/runtime.interface.d.ts.map +1 -0
- package/build/esm/v2/runtime.interface.js +2 -0
- package/build/esm/v2/runtime.interface.js.map +1 -0
- package/package.json +3 -4
- package/build/cjs/v2/runtime.client.d.ts +0 -27
- package/build/cjs/v2/runtime.client.d.ts.map +0 -1
- package/build/cjs/v2/runtime.client.js.map +0 -1
- package/build/esm/v2/runtime.client.d.ts +0 -27
- package/build/esm/v2/runtime.client.d.ts.map +0 -1
- package/build/esm/v2/runtime.client.js.map +0 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [1.13.1](https://github.com/voiceflow/webchat/compare/@voiceflow/sdk-runtime@1.13.0...@voiceflow/sdk-runtime@1.13.1) (2025-01-21)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* Auto Focus Input + Misc Fixes (DSN-2696) ([#55](https://github.com/voiceflow/webchat/issues/55)) ([543f8e6](https://github.com/voiceflow/webchat/commit/543f8e67fa2943ab5303e6c773275c5d709aa71a))
|
|
11
|
+
|
|
12
|
+
# [1.13.0](https://github.com/voiceflow/webchat/compare/@voiceflow/sdk-runtime@1.12.1...@voiceflow/sdk-runtime@1.13.0) (2025-01-21)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* use private streaming endpoint (COR-4563) ([#39](https://github.com/voiceflow/webchat/issues/39)) ([a07a39f](https://github.com/voiceflow/webchat/commit/a07a39fa0d4ef23eb49e0523ba1fd61e35625cf5))
|
|
17
|
+
|
|
18
|
+
## [1.12.1](https://github.com/voiceflow/webchat/compare/@voiceflow/sdk-runtime@1.12.0...@voiceflow/sdk-runtime@1.12.1) (2025-01-17)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @voiceflow/sdk-runtime
|
|
21
|
+
|
|
22
|
+
# [1.12.0](https://github.com/voiceflow/webchat/compare/@voiceflow/sdk-runtime@1.11.0...@voiceflow/sdk-runtime@1.12.0) (2025-01-13)
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* streaming streamed messages (DSN-2619) ([#11](https://github.com/voiceflow/webchat/issues/11)) ([b6dc135](https://github.com/voiceflow/webchat/commit/b6dc135e079a490d3bdca4d8649e7004428250ac))
|
|
27
|
+
|
|
28
|
+
# [1.11.0](https://github.com/voiceflow/react-chat/compare/@voiceflow/sdk-runtime@1.10.0...@voiceflow/sdk-runtime@1.11.0) (2024-12-03)
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
* use new WidgetSettings object for chat configuration ([#376](https://github.com/voiceflow/react-chat/issues/376)) ([43ebd19](https://github.com/voiceflow/react-chat/commit/43ebd19bf4e8d31fbddd8c39a05335d25056ad31))
|
|
33
|
+
|
|
34
|
+
# [1.10.0](https://github.com/voiceflow/react-chat/compare/@voiceflow/sdk-runtime@1.9.0...@voiceflow/sdk-runtime@1.10.0) (2024-09-24)
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* add audio interface support (COR-000) ([#178](https://github.com/voiceflow/react-chat/issues/178)) ([f1954c1](https://github.com/voiceflow/react-chat/commit/f1954c1d3590814dffe1e99ab5e510334414ee8b))
|
|
39
|
+
|
|
40
|
+
# [1.9.0](https://github.com/voiceflow/react-chat/compare/@voiceflow/sdk-runtime@1.8.2...@voiceflow/sdk-runtime@1.9.0) (2024-09-17)
|
|
41
|
+
|
|
42
|
+
### Features
|
|
43
|
+
|
|
44
|
+
* prototype runtime (COR-000) ([#171](https://github.com/voiceflow/react-chat/issues/171)) ([1ad51a1](https://github.com/voiceflow/react-chat/commit/1ad51a1459fd76e16bc9ea7a796d08663d04cbd3))
|
|
45
|
+
|
|
46
|
+
## [1.8.2](https://github.com/voiceflow/react-chat/compare/@voiceflow/sdk-runtime@1.8.1...@voiceflow/sdk-runtime@1.8.2) (2024-09-17)
|
|
47
|
+
|
|
48
|
+
### Bug Fixes
|
|
49
|
+
|
|
50
|
+
* encode sessionID (DX-2369) ([#173](https://github.com/voiceflow/react-chat/issues/173)) ([4eedf91](https://github.com/voiceflow/react-chat/commit/4eedf91630f64a7af06e3b75634e7b739ab10a7c))
|
|
51
|
+
|
|
52
|
+
## [1.8.1](https://github.com/voiceflow/react-chat/compare/@voiceflow/sdk-runtime@1.8.0...@voiceflow/sdk-runtime@1.8.1) (2024-09-12)
|
|
53
|
+
|
|
54
|
+
### Bug Fixes
|
|
55
|
+
|
|
56
|
+
* use ESM-friendly version of @voiceflow/common (DX-2358) ([#169](https://github.com/voiceflow/react-chat/issues/169)) ([ea7dc8b](https://github.com/voiceflow/react-chat/commit/ea7dc8b042e5dd8e998ea8768da9c3f3d41cff6d))
|
|
57
|
+
|
|
58
|
+
# 1.8.0 (2024-09-11)
|
|
59
|
+
|
|
60
|
+
### Features
|
|
61
|
+
|
|
62
|
+
* ensure package works in ESM context (DX-2058) ([#166](https://github.com/voiceflow/react-chat/issues/166)) ([6919d71](https://github.com/voiceflow/react-chat/commit/6919d711aec66ad284298ac50e4b469e051e2e76))
|
|
63
|
+
|
|
64
|
+
# [1.7.0](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.28...@voiceflow/sdk-runtime@1.7.0) (2023-06-06)
|
|
65
|
+
|
|
66
|
+
### Bug Fixes
|
|
67
|
+
|
|
68
|
+
* **deps:** update dependency @voiceflow/base-types to v2.81.12 (vf-000) ([#87](https://github.com/voiceflow/adapters/issues/87)) ([5b8aa56](https://github.com/voiceflow/adapters/commit/5b8aa56b3269673c8e137a422cc6fd21e2295323))
|
|
69
|
+
* **deps:** update dependency @voiceflow/base-types to v2.81.13 (vf-000) ([#88](https://github.com/voiceflow/adapters/issues/88)) ([381e145](https://github.com/voiceflow/adapters/commit/381e14536e56168f71839cc738d593d43a44968e))
|
|
70
|
+
* **deps:** update dependency @voiceflow/base-types to v2.81.14 (vf-000) ([#89](https://github.com/voiceflow/adapters/issues/89)) ([ceec206](https://github.com/voiceflow/adapters/commit/ceec206fbd6dd0a9dec05b48e840a275b2a7c668))
|
|
71
|
+
* **deps:** update dependency @voiceflow/base-types to v2.81.7 (vf-000) ([#84](https://github.com/voiceflow/adapters/issues/84)) ([9689b5a](https://github.com/voiceflow/adapters/commit/9689b5adf8b02d75123eafa8a1646af89a3164a9))
|
|
72
|
+
* **deps:** update dependency @voiceflow/base-types to v2.81.9 (vf-000) ([#85](https://github.com/voiceflow/adapters/issues/85)) ([309ec41](https://github.com/voiceflow/adapters/commit/309ec4186373e8458b092a762c17692e4633a6f4))
|
|
73
|
+
* **deps:** update dependency @voiceflow/base-types to v2.82.0 (vf-000) ([#90](https://github.com/voiceflow/adapters/issues/90)) ([96d8397](https://github.com/voiceflow/adapters/commit/96d8397ef4423b46581c184cf1bfc4c084425ad3))
|
|
74
|
+
* **deps:** update dependency @voiceflow/base-types to v2.83.1 (vf-000) ([#91](https://github.com/voiceflow/adapters/issues/91)) ([2c72e11](https://github.com/voiceflow/adapters/commit/2c72e11e4e0926092fc6238963596d47109f89e0))
|
|
75
|
+
* **deps:** update dependency @voiceflow/base-types to v2.83.2 (vf-000) ([#92](https://github.com/voiceflow/adapters/issues/92)) ([d6ce499](https://github.com/voiceflow/adapters/commit/d6ce499f892a6bb59f5a1bda914c71ea8751ce78))
|
|
76
|
+
* **deps:** update dependency @voiceflow/base-types to v2.83.3 (vf-000) ([#93](https://github.com/voiceflow/adapters/issues/93)) ([15efa08](https://github.com/voiceflow/adapters/commit/15efa08659aa8cccef10acb9d1966e4f90987cca))
|
|
77
|
+
* **deps:** update dependency @voiceflow/base-types to v2.84.0 (vf-000) ([#94](https://github.com/voiceflow/adapters/issues/94)) ([0cabe66](https://github.com/voiceflow/adapters/commit/0cabe6615d1c3be28ea28461510330101ea0f123))
|
|
78
|
+
* **deps:** update dependency @voiceflow/base-types to v2.84.3 (vf-000) ([#95](https://github.com/voiceflow/adapters/issues/95)) ([83d4914](https://github.com/voiceflow/adapters/commit/83d491413d220b2c8c9ba2ed190c85dff449e334))
|
|
79
|
+
* **deps:** update voiceflow dependencies (automerge) (vf-000) ([#86](https://github.com/voiceflow/adapters/issues/86)) ([727444f](https://github.com/voiceflow/adapters/commit/727444f96430378109dc42ec3c76cec449774a9a))
|
|
80
|
+
|
|
81
|
+
### Features
|
|
82
|
+
|
|
83
|
+
* implement new public feedback endpoint (CT-2052) ([#96](https://github.com/voiceflow/adapters/issues/96)) ([78184e7](https://github.com/voiceflow/adapters/commit/78184e741fa9f8609911f305db065a68162eb8bb))
|
|
84
|
+
|
|
85
|
+
# [1.6.0](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.28...@voiceflow/sdk-runtime@1.6.0) (2023-06-06)
|
|
86
|
+
|
|
87
|
+
### Bug Fixes
|
|
88
|
+
|
|
89
|
+
* **deps:** update dependency @voiceflow/base-types to v2.81.12 (vf-000) ([#87](https://github.com/voiceflow/adapters/issues/87)) ([5b8aa56](https://github.com/voiceflow/adapters/commit/5b8aa56b3269673c8e137a422cc6fd21e2295323))
|
|
90
|
+
* **deps:** update dependency @voiceflow/base-types to v2.81.13 (vf-000) ([#88](https://github.com/voiceflow/adapters/issues/88)) ([381e145](https://github.com/voiceflow/adapters/commit/381e14536e56168f71839cc738d593d43a44968e))
|
|
91
|
+
* **deps:** update dependency @voiceflow/base-types to v2.81.14 (vf-000) ([#89](https://github.com/voiceflow/adapters/issues/89)) ([ceec206](https://github.com/voiceflow/adapters/commit/ceec206fbd6dd0a9dec05b48e840a275b2a7c668))
|
|
92
|
+
* **deps:** update dependency @voiceflow/base-types to v2.81.7 (vf-000) ([#84](https://github.com/voiceflow/adapters/issues/84)) ([9689b5a](https://github.com/voiceflow/adapters/commit/9689b5adf8b02d75123eafa8a1646af89a3164a9))
|
|
93
|
+
* **deps:** update dependency @voiceflow/base-types to v2.81.9 (vf-000) ([#85](https://github.com/voiceflow/adapters/issues/85)) ([309ec41](https://github.com/voiceflow/adapters/commit/309ec4186373e8458b092a762c17692e4633a6f4))
|
|
94
|
+
* **deps:** update dependency @voiceflow/base-types to v2.82.0 (vf-000) ([#90](https://github.com/voiceflow/adapters/issues/90)) ([96d8397](https://github.com/voiceflow/adapters/commit/96d8397ef4423b46581c184cf1bfc4c084425ad3))
|
|
95
|
+
* **deps:** update dependency @voiceflow/base-types to v2.83.1 (vf-000) ([#91](https://github.com/voiceflow/adapters/issues/91)) ([2c72e11](https://github.com/voiceflow/adapters/commit/2c72e11e4e0926092fc6238963596d47109f89e0))
|
|
96
|
+
* **deps:** update dependency @voiceflow/base-types to v2.83.2 (vf-000) ([#92](https://github.com/voiceflow/adapters/issues/92)) ([d6ce499](https://github.com/voiceflow/adapters/commit/d6ce499f892a6bb59f5a1bda914c71ea8751ce78))
|
|
97
|
+
* **deps:** update dependency @voiceflow/base-types to v2.83.3 (vf-000) ([#93](https://github.com/voiceflow/adapters/issues/93)) ([15efa08](https://github.com/voiceflow/adapters/commit/15efa08659aa8cccef10acb9d1966e4f90987cca))
|
|
98
|
+
* **deps:** update dependency @voiceflow/base-types to v2.84.0 (vf-000) ([#94](https://github.com/voiceflow/adapters/issues/94)) ([0cabe66](https://github.com/voiceflow/adapters/commit/0cabe6615d1c3be28ea28461510330101ea0f123))
|
|
99
|
+
* **deps:** update dependency @voiceflow/base-types to v2.84.3 (vf-000) ([#95](https://github.com/voiceflow/adapters/issues/95)) ([83d4914](https://github.com/voiceflow/adapters/commit/83d491413d220b2c8c9ba2ed190c85dff449e334))
|
|
100
|
+
* **deps:** update voiceflow dependencies (automerge) (vf-000) ([#86](https://github.com/voiceflow/adapters/issues/86)) ([727444f](https://github.com/voiceflow/adapters/commit/727444f96430378109dc42ec3c76cec449774a9a))
|
|
101
|
+
|
|
102
|
+
### Features
|
|
103
|
+
|
|
104
|
+
* implement new public feedback endpoint (CT-2052) ([#96](https://github.com/voiceflow/adapters/issues/96)) ([78184e7](https://github.com/voiceflow/adapters/commit/78184e741fa9f8609911f305db065a68162eb8bb))
|
|
105
|
+
|
|
106
|
+
## [1.5.28](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.27...@voiceflow/sdk-runtime@1.5.28) (2023-04-03)
|
|
107
|
+
|
|
108
|
+
### Bug Fixes
|
|
109
|
+
|
|
110
|
+
* **deps:** update dependency @voiceflow/base-types to v2.81.6 (vf-000) ([#83](https://github.com/voiceflow/adapters/issues/83)) ([f370c27](https://github.com/voiceflow/adapters/commit/f370c27e2c67af571f6fe41dac7ee0a4ae5cc3b1))
|
|
111
|
+
|
|
112
|
+
## [1.5.27](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.26...@voiceflow/sdk-runtime@1.5.27) (2023-03-31)
|
|
113
|
+
|
|
114
|
+
### Bug Fixes
|
|
115
|
+
|
|
116
|
+
* **deps:** update dependency @voiceflow/base-types to v2.81.5 (vf-000) ([#82](https://github.com/voiceflow/adapters/issues/82)) ([9b51f1d](https://github.com/voiceflow/adapters/commit/9b51f1d745e44d29708e40e2d9eae2add0351c98))
|
|
117
|
+
|
|
118
|
+
## [1.5.26](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.25...@voiceflow/sdk-runtime@1.5.26) (2023-03-29)
|
|
119
|
+
|
|
120
|
+
### Bug Fixes
|
|
121
|
+
|
|
122
|
+
* **deps:** update dependency @voiceflow/base-types to v2.81.4 (vf-000) ([#81](https://github.com/voiceflow/adapters/issues/81)) ([487ff68](https://github.com/voiceflow/adapters/commit/487ff68af3b2a1afcfc04c4f77b3e8e41d766c96))
|
|
123
|
+
|
|
124
|
+
## [1.5.25](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.24...@voiceflow/sdk-runtime@1.5.25) (2023-03-27)
|
|
125
|
+
|
|
126
|
+
### Bug Fixes
|
|
127
|
+
|
|
128
|
+
* **deps:** update dependency @voiceflow/base-types to v2.81.3 (vf-000) ([#80](https://github.com/voiceflow/adapters/issues/80)) ([391615d](https://github.com/voiceflow/adapters/commit/391615d92bfff98b495997c6ae38ad3af4140174))
|
|
129
|
+
|
|
130
|
+
## [1.5.24](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.23...@voiceflow/sdk-runtime@1.5.24) (2023-03-17)
|
|
131
|
+
|
|
132
|
+
### Bug Fixes
|
|
133
|
+
|
|
134
|
+
* **deps:** update dependency @voiceflow/base-types to v2.81.2 (vf-000) ([#79](https://github.com/voiceflow/adapters/issues/79)) ([d1e8adc](https://github.com/voiceflow/adapters/commit/d1e8adcba1998df89ea668ffe3eae274c2ea8209))
|
|
135
|
+
|
|
136
|
+
## [1.5.23](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.22...@voiceflow/sdk-runtime@1.5.23) (2023-03-16)
|
|
137
|
+
|
|
138
|
+
### Bug Fixes
|
|
139
|
+
|
|
140
|
+
* **deps:** update dependency @voiceflow/base-types to v2.81.1 (vf-000) ([#78](https://github.com/voiceflow/adapters/issues/78)) ([ca38f97](https://github.com/voiceflow/adapters/commit/ca38f975b9437be06878131150bf05c1a5f91f85))
|
|
141
|
+
|
|
142
|
+
## [1.5.22](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.21...@voiceflow/sdk-runtime@1.5.22) (2023-03-06)
|
|
143
|
+
|
|
144
|
+
### Bug Fixes
|
|
145
|
+
|
|
146
|
+
* **deps:** update dependency @voiceflow/base-types to v2.81.0 (vf-000) ([#77](https://github.com/voiceflow/adapters/issues/77)) ([8e7b2bd](https://github.com/voiceflow/adapters/commit/8e7b2bd636da8da926ad2ccceb239ccca8f8d481))
|
|
147
|
+
|
|
148
|
+
## [1.5.21](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.20...@voiceflow/sdk-runtime@1.5.21) (2023-02-16)
|
|
149
|
+
|
|
150
|
+
### Bug Fixes
|
|
151
|
+
|
|
152
|
+
* **deps:** update dependency @voiceflow/base-types to v2.80.3 (vf-000) ([#74](https://github.com/voiceflow/adapters/issues/74)) ([e2eddf6](https://github.com/voiceflow/adapters/commit/e2eddf623b8936f381668ac83eae1f26791b0c21))
|
|
153
|
+
|
|
154
|
+
## [1.5.20](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.19...@voiceflow/sdk-runtime@1.5.20) (2023-02-15)
|
|
155
|
+
|
|
156
|
+
### Bug Fixes
|
|
157
|
+
|
|
158
|
+
* **deps:** update dependency @voiceflow/base-types to v2.80.2 (vf-000) ([#73](https://github.com/voiceflow/adapters/issues/73)) ([f85229f](https://github.com/voiceflow/adapters/commit/f85229f9cebeec8fefe1d92469a332f013d220c4))
|
|
159
|
+
|
|
160
|
+
## [1.5.19](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.18...@voiceflow/sdk-runtime@1.5.19) (2023-02-14)
|
|
161
|
+
|
|
162
|
+
### Bug Fixes
|
|
163
|
+
|
|
164
|
+
* **deps:** update dependency @voiceflow/base-types to v2.80.1 (vf-000) ([#72](https://github.com/voiceflow/adapters/issues/72)) ([52b9b87](https://github.com/voiceflow/adapters/commit/52b9b87f4cee4d8338f38b24e95fd47f1343e0c7))
|
|
165
|
+
|
|
166
|
+
## [1.5.18](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.17...@voiceflow/sdk-runtime@1.5.18) (2023-02-07)
|
|
167
|
+
|
|
168
|
+
### Bug Fixes
|
|
169
|
+
|
|
170
|
+
* **deps:** update dependency @voiceflow/base-types to v2.80.0 (vf-000) ([#71](https://github.com/voiceflow/adapters/issues/71)) ([48c723c](https://github.com/voiceflow/adapters/commit/48c723ca74c8d0829aa8f3c954f5c8de59e3667f))
|
|
171
|
+
|
|
172
|
+
## [1.5.17](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.16...@voiceflow/sdk-runtime@1.5.17) (2023-02-06)
|
|
173
|
+
|
|
174
|
+
### Bug Fixes
|
|
175
|
+
|
|
176
|
+
* **deps:** update dependency @voiceflow/base-types to v2.79.1 (vf-000) ([#70](https://github.com/voiceflow/adapters/issues/70)) ([b8cc525](https://github.com/voiceflow/adapters/commit/b8cc525ab89fac880a0d96b754811c23a880b1ca))
|
|
177
|
+
|
|
178
|
+
## [1.5.16](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.15...@voiceflow/sdk-runtime@1.5.16) (2023-02-06)
|
|
179
|
+
|
|
180
|
+
### Bug Fixes
|
|
181
|
+
|
|
182
|
+
* **deps:** update dependency @voiceflow/base-types to v2.79.0 (vf-000) ([#69](https://github.com/voiceflow/adapters/issues/69)) ([8f290a2](https://github.com/voiceflow/adapters/commit/8f290a2ee0df8a58091eb6bf0a5ea52741f29984))
|
|
183
|
+
|
|
184
|
+
## [1.5.15](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.14...@voiceflow/sdk-runtime@1.5.15) (2023-01-23)
|
|
185
|
+
|
|
186
|
+
### Bug Fixes
|
|
187
|
+
|
|
188
|
+
* **deps:** update dependency @voiceflow/base-types to v2.78.1 (vf-000) ([#67](https://github.com/voiceflow/adapters/issues/67)) ([3d61448](https://github.com/voiceflow/adapters/commit/3d61448e1789f974f3eb9c93a207673289759584))
|
|
189
|
+
|
|
190
|
+
## [1.5.14](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.13...@voiceflow/sdk-runtime@1.5.14) (2023-01-14)
|
|
191
|
+
|
|
192
|
+
### Bug Fixes
|
|
193
|
+
|
|
194
|
+
* **deps:** update dependency @voiceflow/base-types to v2.78.0 (vf-000) ([#66](https://github.com/voiceflow/adapters/issues/66)) ([f3808f9](https://github.com/voiceflow/adapters/commit/f3808f9f95d7b0c8d6881984fcea272ba8d55867))
|
|
195
|
+
|
|
196
|
+
## [1.5.13](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.12...@voiceflow/sdk-runtime@1.5.13) (2023-01-10)
|
|
197
|
+
|
|
198
|
+
### Bug Fixes
|
|
199
|
+
|
|
200
|
+
* **deps:** update dependency @voiceflow/base-types to v2.77.2 (vf-000) ([#65](https://github.com/voiceflow/adapters/issues/65)) ([a12e773](https://github.com/voiceflow/adapters/commit/a12e773c042e84caf68923b41e4eb98b244289c0))
|
|
201
|
+
|
|
202
|
+
## [1.5.12](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.11...@voiceflow/sdk-runtime@1.5.12) (2023-01-02)
|
|
203
|
+
|
|
204
|
+
### Bug Fixes
|
|
205
|
+
|
|
206
|
+
* **deps:** update dependency @voiceflow/base-types to v2.77.1 (vf-000) ([#63](https://github.com/voiceflow/adapters/issues/63)) ([0265cd5](https://github.com/voiceflow/adapters/commit/0265cd57929bdb758eb75f9840590e1c56e0d657))
|
|
207
|
+
|
|
208
|
+
## [1.5.11](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.10...@voiceflow/sdk-runtime@1.5.11) (2022-12-23)
|
|
209
|
+
|
|
210
|
+
### Bug Fixes
|
|
211
|
+
|
|
212
|
+
* **deps:** update dependency @voiceflow/base-types to v2.77.0 (vf-000) ([#62](https://github.com/voiceflow/adapters/issues/62)) ([91f07ed](https://github.com/voiceflow/adapters/commit/91f07edf8b26eb87f6d15c0b3f7a8446b2a5076f))
|
|
213
|
+
|
|
214
|
+
## [1.5.10](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.9...@voiceflow/sdk-runtime@1.5.10) (2022-12-19)
|
|
215
|
+
|
|
216
|
+
### Bug Fixes
|
|
217
|
+
|
|
218
|
+
* **deps:** update dependency @voiceflow/base-types to v2.76.0 (vf-000) ([#61](https://github.com/voiceflow/adapters/issues/61)) ([c3dc448](https://github.com/voiceflow/adapters/commit/c3dc4489d26613f434c441ebbe1a11b76ec0736f))
|
|
219
|
+
|
|
220
|
+
## [1.5.9](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.8...@voiceflow/sdk-runtime@1.5.9) (2022-12-13)
|
|
221
|
+
|
|
222
|
+
### Bug Fixes
|
|
223
|
+
|
|
224
|
+
* **deps:** update dependency @voiceflow/base-types to v2.75.2 (vf-000) ([#60](https://github.com/voiceflow/adapters/issues/60)) ([d59ed33](https://github.com/voiceflow/adapters/commit/d59ed33e445b024562c941c9faa86c740fb01fa8))
|
|
225
|
+
|
|
226
|
+
## [1.5.8](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.7...@voiceflow/sdk-runtime@1.5.8) (2022-12-12)
|
|
227
|
+
|
|
228
|
+
### Bug Fixes
|
|
229
|
+
|
|
230
|
+
* **deps:** update dependency @voiceflow/base-types to v2.75.1 (vf-000) ([#59](https://github.com/voiceflow/adapters/issues/59)) ([9c84bb8](https://github.com/voiceflow/adapters/commit/9c84bb8cb30a0044057d7d1f17443758473e9416))
|
|
231
|
+
|
|
232
|
+
## [1.5.7](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.6...@voiceflow/sdk-runtime@1.5.7) (2022-12-09)
|
|
233
|
+
|
|
234
|
+
### Bug Fixes
|
|
235
|
+
|
|
236
|
+
* **deps:** update dependency @voiceflow/base-types to v2.75.0 (vf-000) ([#58](https://github.com/voiceflow/adapters/issues/58)) ([347fb4d](https://github.com/voiceflow/adapters/commit/347fb4d57d530a38a88e564ef24cfd697aad4fd4))
|
|
237
|
+
|
|
238
|
+
## [1.5.6](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.5...@voiceflow/sdk-runtime@1.5.6) (2022-11-29)
|
|
239
|
+
|
|
240
|
+
### Bug Fixes
|
|
241
|
+
|
|
242
|
+
* **deps:** update dependency @voiceflow/base-types to v2.74.0 (vf-000) ([#57](https://github.com/voiceflow/adapters/issues/57)) ([e17bbe3](https://github.com/voiceflow/adapters/commit/e17bbe3ba9662ca95eb586b71ecb5f7030153740))
|
|
243
|
+
|
|
244
|
+
## [1.5.5](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.4...@voiceflow/sdk-runtime@1.5.5) (2022-11-18)
|
|
245
|
+
|
|
246
|
+
### Bug Fixes
|
|
247
|
+
|
|
248
|
+
* **deps:** update dependency @voiceflow/base-types to v2.73.1 (vf-000) ([#56](https://github.com/voiceflow/adapters/issues/56)) ([09748c8](https://github.com/voiceflow/adapters/commit/09748c8899cef71636c9f808c9cb0efadc0096a3))
|
|
249
|
+
|
|
250
|
+
## [1.5.4](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.3...@voiceflow/sdk-runtime@1.5.4) (2022-11-12)
|
|
251
|
+
|
|
252
|
+
### Bug Fixes
|
|
253
|
+
|
|
254
|
+
* **deps:** update dependency @voiceflow/base-types to v2.72.0 (vf-000) ([#55](https://github.com/voiceflow/adapters/issues/55)) ([feca725](https://github.com/voiceflow/adapters/commit/feca725c5479896c0f33214d328a7aaafcf3e14b))
|
|
255
|
+
|
|
256
|
+
## [1.5.3](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.2...@voiceflow/sdk-runtime@1.5.3) (2022-11-01)
|
|
257
|
+
|
|
258
|
+
### Bug Fixes
|
|
259
|
+
|
|
260
|
+
* transcript users argument (CT-1050) ([#52](https://github.com/voiceflow/adapters/issues/52)) ([6969897](https://github.com/voiceflow/adapters/commit/69698974494263eccfe0f0e83d69fa5ada78a186))
|
|
261
|
+
|
|
262
|
+
## [1.5.2](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.1...@voiceflow/sdk-runtime@1.5.2) (2022-10-29)
|
|
263
|
+
|
|
264
|
+
### Bug Fixes
|
|
265
|
+
|
|
266
|
+
* session id headers (CT-000) ([#51](https://github.com/voiceflow/adapters/issues/51)) ([49923da](https://github.com/voiceflow/adapters/commit/49923da1e022793e6c6a250922e1848cdb3efec7))
|
|
267
|
+
|
|
268
|
+
## [1.5.1](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.5.0...@voiceflow/sdk-runtime@1.5.1) (2022-10-26)
|
|
269
|
+
|
|
270
|
+
### Bug Fixes
|
|
271
|
+
|
|
272
|
+
* **deps:** update dependency @voiceflow/base-types to v2.71.3 (vf-000) ([#49](https://github.com/voiceflow/adapters/issues/49)) ([5c1871b](https://github.com/voiceflow/adapters/commit/5c1871bb04c78cc042250977bda44e88d1512d8c))
|
|
273
|
+
|
|
274
|
+
# [1.5.0](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.4.1...@voiceflow/sdk-runtime@1.5.0) (2022-10-24)
|
|
275
|
+
|
|
276
|
+
### Features
|
|
277
|
+
|
|
278
|
+
* create transcripts (CT-1050) ([#48](https://github.com/voiceflow/adapters/issues/48)) ([457a228](https://github.com/voiceflow/adapters/commit/457a2285328bb75d355ed8a24e746020e5538aa6))
|
|
279
|
+
|
|
280
|
+
## [1.4.1](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.4.0...@voiceflow/sdk-runtime@1.4.1) (2022-10-21)
|
|
281
|
+
|
|
282
|
+
### Bug Fixes
|
|
283
|
+
|
|
284
|
+
* **deps:** update dependency @voiceflow/base-types to v2.71.1 (vf-000) ([#47](https://github.com/voiceflow/adapters/issues/47)) ([e984f2d](https://github.com/voiceflow/adapters/commit/e984f2dac58507a31eda1b2c05f3bdeddf3c9ef9))
|
|
285
|
+
|
|
286
|
+
# [1.4.0](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.3.4...@voiceflow/sdk-runtime@1.4.0) (2022-10-17)
|
|
287
|
+
|
|
288
|
+
### Features
|
|
289
|
+
|
|
290
|
+
* add publishing field (CT-000) ([#45](https://github.com/voiceflow/adapters/issues/45)) ([53e7d89](https://github.com/voiceflow/adapters/commit/53e7d8942c5a511ad29c0b14c3808dc117ae6066))
|
|
291
|
+
|
|
292
|
+
## [1.3.4](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.3.3...@voiceflow/sdk-runtime@1.3.4) (2022-10-06)
|
|
293
|
+
|
|
294
|
+
### Bug Fixes
|
|
295
|
+
|
|
296
|
+
* update trace types (PL-000) ([#44](https://github.com/voiceflow/adapters/issues/44)) ([ce13855](https://github.com/voiceflow/adapters/commit/ce13855668f639e710fe1781bb68f40fabcd558c))
|
|
297
|
+
|
|
298
|
+
## [1.3.3](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.3.2...@voiceflow/sdk-runtime@1.3.3) (2022-10-04)
|
|
299
|
+
|
|
300
|
+
### Bug Fixes
|
|
301
|
+
|
|
302
|
+
* update dependencies (CT-000) ([#43](https://github.com/voiceflow/adapters/issues/43)) ([792f1a0](https://github.com/voiceflow/adapters/commit/792f1a0c905924c9844e3c16cd3008c71c0185fd))
|
|
303
|
+
|
|
304
|
+
## [1.3.2](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.3.1...@voiceflow/sdk-runtime@1.3.2) (2022-10-04)
|
|
305
|
+
|
|
306
|
+
### Bug Fixes
|
|
307
|
+
|
|
308
|
+
* definitive action types (CT-1048) ([#42](https://github.com/voiceflow/adapters/issues/42)) ([8ecfa82](https://github.com/voiceflow/adapters/commit/8ecfa82efddb7652af4af4794224a83484a279c1)), closes [/github.com/voiceflow/creator-app/blob/729ff17e2d558fc43ce7140497ca0716656df33f/packages/creator-app/src/pages/Prototype/components/PrototypeDialog/utils.ts#L52-L60](https://github.com//github.com/voiceflow/creator-app/blob/729ff17e2d558fc43ce7140497ca0716656df33f/packages/creator-app/src/pages/Prototype/components/PrototypeDialog/utils.ts/issues/L52-L60)
|
|
309
|
+
|
|
310
|
+
## [1.3.1](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.3.0...@voiceflow/sdk-runtime@1.3.1) (2022-10-03)
|
|
311
|
+
|
|
312
|
+
### Bug Fixes
|
|
313
|
+
|
|
314
|
+
* more lenient typing for sample use case (CT-1046) ([861de03](https://github.com/voiceflow/adapters/commit/861de03c9e05d56c0e1439c5355bb057e7f7381b))
|
|
315
|
+
|
|
316
|
+
# [1.3.0](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.2.1...@voiceflow/sdk-runtime@1.3.0) (2022-10-03)
|
|
317
|
+
|
|
318
|
+
### Features
|
|
319
|
+
|
|
320
|
+
* public interaction endpoint (CT-1046) ([#41](https://github.com/voiceflow/adapters/issues/41)) ([2f33365](https://github.com/voiceflow/adapters/commit/2f33365796386b4389d0400c9f9d729174e4e2f9))
|
|
321
|
+
|
|
322
|
+
## 1.2.1 (2022-09-06)
|
|
323
|
+
|
|
324
|
+
**Note:** Version bump only for package @voiceflow/sdk-runtime
|
|
325
|
+
|
|
326
|
+
# [1.2.0](https://github.com/voiceflow/adapters/compare/@voiceflow/runtime-sdk@1.1.0...@voiceflow/runtime-sdk@1.2.0) (2022-09-06)
|
|
327
|
+
|
|
328
|
+
### Features
|
|
329
|
+
|
|
330
|
+
* replace undici with global fetch (DX-80) ([#38](https://github.com/voiceflow/adapters/issues/38)) ([eb485d0](https://github.com/voiceflow/adapters/commit/eb485d01534640f9f25518f8395c3daf53d7b064))
|
|
331
|
+
|
|
332
|
+
# 1.1.0 (2022-08-08)
|
|
333
|
+
|
|
334
|
+
### Bug Fixes
|
|
335
|
+
|
|
336
|
+
* add missing export ([9f7e1fb](https://github.com/voiceflow/adapters/commit/9f7e1fbeee74b90a9b2d25275257ee81a8de8b1c))
|
|
337
|
+
* card component ([b458f58](https://github.com/voiceflow/adapters/commit/b458f588a482195c46967d387af3df3b1a15b3d7))
|
|
338
|
+
* card trace handler typings ([cf443ef](https://github.com/voiceflow/adapters/commit/cf443ef5bcbc6093823c12da788d068f0d0bb0b8))
|
|
339
|
+
* choice typings ([6d28cf5](https://github.com/voiceflow/adapters/commit/6d28cf50aac781576c102168f4678205eb5b8536))
|
|
340
|
+
* remove content-type header ([a27552c](https://github.com/voiceflow/adapters/commit/a27552cf0f2aaa484d9a3be78dbc83487bb74319))
|
|
341
|
+
* return meta context (VF-000) ([5d20d37](https://github.com/voiceflow/adapters/commit/5d20d3787ed897d2628cfc7aa2981d005cbf84ea))
|
|
342
|
+
* typings fixes ([17bd78e](https://github.com/voiceflow/adapters/commit/17bd78ebcecd75c09068a5930dd6b26bc61883ad))
|
|
343
|
+
|
|
344
|
+
### Features
|
|
345
|
+
|
|
346
|
+
* add choice step component and choice handler ([6ec0d2d](https://github.com/voiceflow/adapters/commit/6ec0d2da42055d92d7d174c1eb59630911783534))
|
|
347
|
+
* add choice/audio/speak steps for google adapter (VF-3675) ([#13](https://github.com/voiceflow/adapters/issues/13)) ([2e6adad](https://github.com/voiceflow/adapters/commit/2e6adad1c39229aabb03c273482ae4ef095b3e43))
|
|
348
|
+
* add EndComponent to runtime-sdk ([cd60e27](https://github.com/voiceflow/adapters/commit/cd60e2703dffdc7294002b5175b3e8cfb84aa697))
|
|
349
|
+
* add stream step support for google assistant (VF-3675) ([b656436](https://github.com/voiceflow/adapters/commit/b6564360e60c3b18a9b920744de633923dc9ee73))
|
|
350
|
+
* improve steps, fix injection, steps, errors ([#6](https://github.com/voiceflow/adapters/issues/6)) ([067a8b0](https://github.com/voiceflow/adapters/commit/067a8b0c8cc5c7df5cebdcdf0b1c7126a59db4ca))
|
|
351
|
+
* paylaod component ([9e0799e](https://github.com/voiceflow/adapters/commit/9e0799e48fae3750fa8f9f76b8111534a2757d4e))
|
|
352
|
+
* setup repo, patterns (VF-000) ([#3](https://github.com/voiceflow/adapters/issues/3)) ([bbe6ab1](https://github.com/voiceflow/adapters/commit/bbe6ab1f1cac8ac1e4e62220b3ee3d222ee37004)), closes [#2](https://github.com/voiceflow/adapters/issues/2)
|
|
353
|
+
* typebox schemas & validator, route versioning (VF-000) ([#18](https://github.com/voiceflow/adapters/issues/18)) ([fc88193](https://github.com/voiceflow/adapters/commit/fc88193c6d74ab3f9d93c7f1d3ad17cb96e102a3))
|
|
354
|
+
* zod validation pipe (VF-000) ([#11](https://github.com/voiceflow/adapters/issues/11)) ([5374d5f](https://github.com/voiceflow/adapters/commit/5374d5fc997d9215eaf0e5f0affabbe19dfc3c4b))
|
package/build/cjs/main.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './runtime';
|
|
2
2
|
export * from './sdk';
|
|
3
3
|
export * from './trace';
|
|
4
|
-
export * from './v2/runtime.client';
|
|
4
|
+
export * from './v2/private-runtime.client';
|
|
5
|
+
export * from './v2/public-runtime.client';
|
|
6
|
+
export { IRuntimeClient } from './v2/runtime.interface';
|
|
5
7
|
//# sourceMappingURL=main.d.ts.map
|
package/build/cjs/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
|
package/build/cjs/main.js
CHANGED
|
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./runtime"), exports);
|
|
18
18
|
__exportStar(require("./sdk"), exports);
|
|
19
19
|
__exportStar(require("./trace"), exports);
|
|
20
|
-
__exportStar(require("./v2/runtime.client"), exports);
|
|
20
|
+
__exportStar(require("./v2/private-runtime.client"), exports);
|
|
21
|
+
__exportStar(require("./v2/public-runtime.client"), exports);
|
|
21
22
|
//# sourceMappingURL=main.js.map
|
package/build/cjs/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,wCAAsB;AACtB,0CAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,wCAAsB;AACtB,0CAAwB;AACxB,8DAA4C;AAC5C,6DAA2C"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EventSourceMessage } from 'eventsource-parser';
|
|
2
|
+
export declare class InteractStateStream extends TransformStream<EventSourceMessage, EventSourceMessage> {
|
|
3
|
+
private readonly setState;
|
|
4
|
+
constructor(setState: (state: Record<string, any>) => void);
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=interact-state.stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interact-state.stream.d.ts","sourceRoot":"","sources":["../../../src/v2/interact-state.stream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,qBAAa,mBAAoB,SAAQ,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAClF,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI;CAW5E"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InteractStateStream = void 0;
|
|
4
|
+
class InteractStateStream extends TransformStream {
|
|
5
|
+
constructor(setState) {
|
|
6
|
+
super({
|
|
7
|
+
transform: async (chunk, controller) => {
|
|
8
|
+
if (chunk.event === 'state') {
|
|
9
|
+
this.setState(JSON.parse(chunk.data));
|
|
10
|
+
}
|
|
11
|
+
controller.enqueue(chunk);
|
|
12
|
+
},
|
|
13
|
+
});
|
|
14
|
+
this.setState = setState;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.InteractStateStream = InteractStateStream;
|
|
18
|
+
//# sourceMappingURL=interact-state.stream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interact-state.stream.js","sourceRoot":"","sources":["../../../src/v2/interact-state.stream.ts"],"names":[],"mappings":";;;AAEA,MAAa,mBAAoB,SAAQ,eAAuD;IAC9F,YAA6B,QAA8C;QACzE,KAAK,CAAC;YACJ,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;gBACrC,IAAI,KAAK,CAAC,KAAK,KAAK,OAAO,EAAE,CAAC;oBAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;gBACxC,CAAC;gBAED,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC5B,CAAC;SACF,CAAC,CAAC;QATwB,aAAQ,GAAR,QAAQ,CAAsC;IAU3E,CAAC;CACF;AAZD,kDAYC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { InteractStreamRequest, IRuntimeClient, RuntimeClientOptions } from './runtime.interface';
|
|
2
|
+
import { TraceService } from './trace.service';
|
|
3
|
+
export declare class PrivateRuntimeClient<T> implements IRuntimeClient<T> {
|
|
4
|
+
private readonly options;
|
|
5
|
+
private readonly trace;
|
|
6
|
+
private readonly fetch;
|
|
7
|
+
private state;
|
|
8
|
+
constructor(options: RuntimeClientOptions<T>, trace?: TraceService<T>);
|
|
9
|
+
private setState;
|
|
10
|
+
interactStream(createContext: () => T, { projectID, environment, action }: InteractStreamRequest): Promise<ReadableStream<T>>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=private-runtime.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"private-runtime.client.d.ts","sourceRoot":"","sources":["../../../src/v2/private-runtime.client.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,qBAAa,oBAAoB,CAAC,CAAC,CAAE,YAAW,cAAc,CAAC,CAAC,CAAC;IAM7D,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,KAAK;IANxB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAsD;IAE5E,OAAO,CAAC,KAAK,CAAoC;gBAG9B,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC,EAChC,KAAK,kBAA+C;IAGvE,OAAO,CAAC,QAAQ,CAEd;IAEI,cAAc,CAAC,aAAa,EAAE,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,qBAAqB;CAiBvG"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PrivateRuntimeClient = void 0;
|
|
4
|
+
const fetch_1 = require("@voiceflow/fetch");
|
|
5
|
+
const stream_1 = require("eventsource-parser/stream");
|
|
6
|
+
const interact_state_stream_1 = require("./interact-state.stream");
|
|
7
|
+
const interact_trace_stream_1 = require("./interact-trace.stream");
|
|
8
|
+
const trace_service_1 = require("./trace.service");
|
|
9
|
+
class PrivateRuntimeClient {
|
|
10
|
+
constructor(options, trace = new trace_service_1.TraceService({ traces: options.traces })) {
|
|
11
|
+
this.options = options;
|
|
12
|
+
this.trace = trace;
|
|
13
|
+
this.fetch = new fetch_1.FetchClient({ baseURL: this.options.baseURL });
|
|
14
|
+
this.state = null;
|
|
15
|
+
this.setState = (state) => {
|
|
16
|
+
this.state = state;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
async interactStream(createContext, { projectID, environment, action }) {
|
|
20
|
+
const result = await this.fetch.post(`/v2/project/${projectID}/stateless/interact/stream`, {
|
|
21
|
+
json: { action, state: this.state },
|
|
22
|
+
query: new URLSearchParams({ completion_events: String(true), ...(environment && { environment }) }),
|
|
23
|
+
credentials: 'include',
|
|
24
|
+
});
|
|
25
|
+
if (!result.body) {
|
|
26
|
+
throw new Error('interact stream body is empty');
|
|
27
|
+
}
|
|
28
|
+
return result.body
|
|
29
|
+
.pipeThrough(new TextDecoderStream())
|
|
30
|
+
.pipeThrough(new stream_1.EventSourceParserStream())
|
|
31
|
+
.pipeThrough(new interact_state_stream_1.InteractStateStream(this.setState))
|
|
32
|
+
.pipeThrough(new interact_trace_stream_1.InteractTraceStream(createContext, this.trace));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.PrivateRuntimeClient = PrivateRuntimeClient;
|
|
36
|
+
//# sourceMappingURL=private-runtime.client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"private-runtime.client.js","sourceRoot":"","sources":["../../../src/v2/private-runtime.client.ts"],"names":[],"mappings":";;;AAAA,4CAA+C;AAC/C,sDAAoE;AAEpE,mEAA8D;AAC9D,mEAA8D;AAE9D,mDAA+C;AAE/C,MAAa,oBAAoB;IAK/B,YACmB,OAAgC,EAChC,QAAQ,IAAI,4BAAY,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC;QADpD,YAAO,GAAP,OAAO,CAAyB;QAChC,UAAK,GAAL,KAAK,CAA+C;QANtD,UAAK,GAAG,IAAI,mBAAW,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;QAEpE,UAAK,GAA+B,IAAI,CAAC;QAOzC,aAAQ,GAAG,CAAC,KAA0B,EAAE,EAAE;YAChD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACrB,CAAC,CAAC;IAJC,CAAC;IAMJ,KAAK,CAAC,cAAc,CAAC,aAAsB,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAyB;QACpG,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,SAAS,4BAA4B,EAAE;YACzF,IAAI,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;YACnC,KAAK,EAAE,IAAI,eAAe,CAAC,EAAE,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC;YACpG,WAAW,EAAE,SAAS;SACvB,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;QACnD,CAAC;QAED,OAAO,MAAM,CAAC,IAAI;aACf,WAAW,CAAC,IAAI,iBAAiB,EAAE,CAAC;aACpC,WAAW,CAAC,IAAI,gCAAuB,EAAE,CAAC;aAC1C,WAAW,CAAC,IAAI,2CAAmB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aACnD,WAAW,CAAC,IAAI,2CAAmB,CAAC,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;CACF;AA/BD,oDA+BC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { InteractStreamRequest, IRuntimeClient, RuntimeClientOptions } from './runtime.interface';
|
|
2
|
+
import { TraceService } from './trace.service';
|
|
3
|
+
export declare class PublicRuntimeClient<T> implements IRuntimeClient<T> {
|
|
4
|
+
private readonly options;
|
|
5
|
+
private readonly trace;
|
|
6
|
+
private readonly fetch;
|
|
7
|
+
constructor(options: RuntimeClientOptions<T>, trace?: TraceService<T>);
|
|
8
|
+
interactStream(createContext: () => T, { projectID, userID, environment, action }: InteractStreamRequest): Promise<ReadableStream<T>>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=public-runtime.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-runtime.client.d.ts","sourceRoot":"","sources":["../../../src/v2/public-runtime.client.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,qBAAa,mBAAmB,CAAC,CAAC,CAAE,YAAW,cAAc,CAAC,CAAC,CAAC;IAI5D,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJxB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAsD;gBAGzD,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC,EAChC,KAAK,kBAA+C;IAGjE,cAAc,CAAC,aAAa,EAAE,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,qBAAqB;CAkB/G"}
|
|
@@ -1,30 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PublicRuntimeClient = void 0;
|
|
4
4
|
const fetch_1 = require("@voiceflow/fetch");
|
|
5
5
|
const stream_1 = require("eventsource-parser/stream");
|
|
6
6
|
const interact_trace_stream_1 = require("./interact-trace.stream");
|
|
7
7
|
const trace_service_1 = require("./trace.service");
|
|
8
|
-
class
|
|
8
|
+
class PublicRuntimeClient {
|
|
9
9
|
constructor(options, trace = new trace_service_1.TraceService({ traces: options.traces })) {
|
|
10
10
|
this.options = options;
|
|
11
11
|
this.trace = trace;
|
|
12
12
|
this.fetch = new fetch_1.FetchClient({ baseURL: this.options.baseURL });
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return `/v2/public/project/${projectID}/user/${encodeURIComponent(userID)}/interact/stream`;
|
|
17
|
-
}
|
|
18
|
-
return `/v2/project/${projectID}/stateless/interact/stream`;
|
|
19
|
-
}
|
|
20
|
-
async interactStream(createContext, { isPrivate, projectID, userID, environment, action }) {
|
|
21
|
-
const result = await this.fetch.post(this.getStreamingUrl(!!isPrivate, projectID, userID), {
|
|
22
|
-
query: new URLSearchParams({
|
|
23
|
-
completion_events: String(true),
|
|
24
|
-
...(environment && { environment }),
|
|
25
|
-
}),
|
|
14
|
+
async interactStream(createContext, { projectID, userID, environment, action }) {
|
|
15
|
+
const result = await this.fetch.post(`/v2/public/project/${projectID}/user/${encodeURIComponent(userID)}/interact/stream`, {
|
|
26
16
|
json: { action },
|
|
27
|
-
...(
|
|
17
|
+
query: new URLSearchParams({ completion_events: String(true), ...(environment && { environment }) }),
|
|
28
18
|
});
|
|
29
19
|
if (!result.body) {
|
|
30
20
|
throw new Error('interact stream body is empty');
|
|
@@ -35,5 +25,5 @@ class RuntimeClient {
|
|
|
35
25
|
.pipeThrough(new interact_trace_stream_1.InteractTraceStream(createContext, this.trace));
|
|
36
26
|
}
|
|
37
27
|
}
|
|
38
|
-
exports.
|
|
39
|
-
//# sourceMappingURL=runtime.client.js.map
|
|
28
|
+
exports.PublicRuntimeClient = PublicRuntimeClient;
|
|
29
|
+
//# sourceMappingURL=public-runtime.client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-runtime.client.js","sourceRoot":"","sources":["../../../src/v2/public-runtime.client.ts"],"names":[],"mappings":";;;AAAA,4CAA+C;AAC/C,sDAAoE;AAEpE,mEAA8D;AAE9D,mDAA+C;AAE/C,MAAa,mBAAmB;IAG9B,YACmB,OAAgC,EAChC,QAAQ,IAAI,4BAAY,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC;QADpD,YAAO,GAAP,OAAO,CAAyB;QAChC,UAAK,GAAL,KAAK,CAA+C;QAJtD,UAAK,GAAG,IAAI,mBAAW,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAKzE,CAAC;IAEJ,KAAK,CAAC,cAAc,CAAC,aAAsB,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAyB;QAC5G,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAClC,sBAAsB,SAAS,SAAS,kBAAkB,CAAC,MAAM,CAAC,kBAAkB,EACpF;YACE,IAAI,EAAE,EAAE,MAAM,EAAE;YAChB,KAAK,EAAE,IAAI,eAAe,CAAC,EAAE,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC;SACrG,CACF,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;QACnD,CAAC;QAED,OAAO,MAAM,CAAC,IAAI;aACf,WAAW,CAAC,IAAI,iBAAiB,EAAE,CAAC;aACpC,WAAW,CAAC,IAAI,gCAAuB,EAAE,CAAC;aAC1C,WAAW,CAAC,IAAI,2CAAmB,CAAC,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;CACF;AA1BD,kDA0BC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { RuntimeAction } from '../runtime';
|
|
2
|
+
import type { TraceOptions } from '../trace';
|
|
3
|
+
export interface RuntimeClientOptions<T> extends TraceOptions<T> {
|
|
4
|
+
baseURL: string;
|
|
5
|
+
}
|
|
6
|
+
export interface InteractStreamRequest {
|
|
7
|
+
userID: string;
|
|
8
|
+
action: RuntimeAction;
|
|
9
|
+
projectID: string;
|
|
10
|
+
environment?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IRuntimeClient<T> {
|
|
13
|
+
interactStream(createContext: () => T, request: InteractStreamRequest): Promise<ReadableStream<T>>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=runtime.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.interface.d.ts","sourceRoot":"","sources":["../../../src/v2/runtime.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,WAAW,oBAAoB,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,CAAC;IAC9D,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,cAAc,CAAC,aAAa,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;CACpG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.interface.js","sourceRoot":"","sources":["../../../src/v2/runtime.interface.ts"],"names":[],"mappings":""}
|
package/build/esm/main.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './runtime/index.js';
|
|
2
2
|
export * from './sdk/index.js';
|
|
3
3
|
export * from './trace/index.js';
|
|
4
|
-
export * from './v2/runtime.client.js';
|
|
4
|
+
export * from './v2/private-runtime.client.js';
|
|
5
|
+
export * from './v2/public-runtime.client.js';
|
|
6
|
+
export { IRuntimeClient } from './v2/runtime.interface.js';
|
|
5
7
|
//# sourceMappingURL=main.d.ts.map
|
package/build/esm/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC"}
|
package/build/esm/main.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './runtime/index.js';
|
|
2
2
|
export * from './sdk/index.js';
|
|
3
3
|
export * from './trace/index.js';
|
|
4
|
-
export * from './v2/runtime.client.js';
|
|
4
|
+
export * from './v2/private-runtime.client.js';
|
|
5
|
+
export * from './v2/public-runtime.client.js';
|
|
5
6
|
//# sourceMappingURL=main.js.map
|
package/build/esm/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EventSourceMessage } from 'eventsource-parser';
|
|
2
|
+
export declare class InteractStateStream extends TransformStream<EventSourceMessage, EventSourceMessage> {
|
|
3
|
+
private readonly setState;
|
|
4
|
+
constructor(setState: (state: Record<string, any>) => void);
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=interact-state.stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interact-state.stream.d.ts","sourceRoot":"","sources":["../../../src/v2/interact-state.stream.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,qBAAa,mBAAoB,SAAQ,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAClF,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI;CAW5E"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class InteractStateStream extends TransformStream {
|
|
2
|
+
constructor(setState) {
|
|
3
|
+
super({
|
|
4
|
+
transform: async (chunk, controller) => {
|
|
5
|
+
if (chunk.event === 'state') {
|
|
6
|
+
this.setState(JSON.parse(chunk.data));
|
|
7
|
+
}
|
|
8
|
+
controller.enqueue(chunk);
|
|
9
|
+
},
|
|
10
|
+
});
|
|
11
|
+
this.setState = setState;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=interact-state.stream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interact-state.stream.js","sourceRoot":"","sources":["../../../src/v2/interact-state.stream.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,mBAAoB,SAAQ,eAAuD;IAC9F,YAA6B,QAA8C;QACzE,KAAK,CAAC;YACJ,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;gBACrC,IAAI,KAAK,CAAC,KAAK,KAAK,OAAO,EAAE,CAAC;oBAC5B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;gBACxC,CAAC;gBAED,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC5B,CAAC;SACF,CAAC,CAAC;QATwB,aAAQ,GAAR,QAAQ,CAAsC;IAU3E,CAAC;CACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { InteractStreamRequest, IRuntimeClient, RuntimeClientOptions } from './runtime.interface.js';
|
|
2
|
+
import { TraceService } from './trace.service.js';
|
|
3
|
+
export declare class PrivateRuntimeClient<T> implements IRuntimeClient<T> {
|
|
4
|
+
private readonly options;
|
|
5
|
+
private readonly trace;
|
|
6
|
+
private readonly fetch;
|
|
7
|
+
private state;
|
|
8
|
+
constructor(options: RuntimeClientOptions<T>, trace?: TraceService<T>);
|
|
9
|
+
private setState;
|
|
10
|
+
interactStream(createContext: () => T, { projectID, environment, action }: InteractStreamRequest): Promise<ReadableStream<T>>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=private-runtime.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"private-runtime.client.d.ts","sourceRoot":"","sources":["../../../src/v2/private-runtime.client.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,qBAAa,oBAAoB,CAAC,CAAC,CAAE,YAAW,cAAc,CAAC,CAAC,CAAC;IAM7D,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,KAAK;IANxB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAsD;IAE5E,OAAO,CAAC,KAAK,CAAoC;gBAG9B,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC,EAChC,KAAK,kBAA+C;IAGvE,OAAO,CAAC,QAAQ,CAEd;IAEI,cAAc,CAAC,aAAa,EAAE,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,qBAAqB;CAiBvG"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { FetchClient } from '@voiceflow/fetch';
|
|
2
|
+
import { EventSourceParserStream } from 'eventsource-parser/stream';
|
|
3
|
+
import { InteractStateStream } from './interact-state.stream.js';
|
|
4
|
+
import { InteractTraceStream } from './interact-trace.stream.js';
|
|
5
|
+
import { TraceService } from './trace.service.js';
|
|
6
|
+
export class PrivateRuntimeClient {
|
|
7
|
+
constructor(options, trace = new TraceService({ traces: options.traces })) {
|
|
8
|
+
this.options = options;
|
|
9
|
+
this.trace = trace;
|
|
10
|
+
this.fetch = new FetchClient({ baseURL: this.options.baseURL });
|
|
11
|
+
this.state = null;
|
|
12
|
+
this.setState = (state) => {
|
|
13
|
+
this.state = state;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
async interactStream(createContext, { projectID, environment, action }) {
|
|
17
|
+
const result = await this.fetch.post(`/v2/project/${projectID}/stateless/interact/stream`, {
|
|
18
|
+
json: { action, state: this.state },
|
|
19
|
+
query: new URLSearchParams({ completion_events: String(true), ...(environment && { environment }) }),
|
|
20
|
+
credentials: 'include',
|
|
21
|
+
});
|
|
22
|
+
if (!result.body) {
|
|
23
|
+
throw new Error('interact stream body is empty');
|
|
24
|
+
}
|
|
25
|
+
return result.body
|
|
26
|
+
.pipeThrough(new TextDecoderStream())
|
|
27
|
+
.pipeThrough(new EventSourceParserStream())
|
|
28
|
+
.pipeThrough(new InteractStateStream(this.setState))
|
|
29
|
+
.pipeThrough(new InteractTraceStream(createContext, this.trace));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=private-runtime.client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"private-runtime.client.js","sourceRoot":"","sources":["../../../src/v2/private-runtime.client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,OAAO,oBAAoB;IAK/B,YACmB,OAAgC,EAChC,QAAQ,IAAI,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC;QADpD,YAAO,GAAP,OAAO,CAAyB;QAChC,UAAK,GAAL,KAAK,CAA+C;QANtD,UAAK,GAAG,IAAI,WAAW,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;QAEpE,UAAK,GAA+B,IAAI,CAAC;QAOzC,aAAQ,GAAG,CAAC,KAA0B,EAAE,EAAE;YAChD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACrB,CAAC,CAAC;IAJC,CAAC;IAMJ,KAAK,CAAC,cAAc,CAAC,aAAsB,EAAE,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAyB;QACpG,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,eAAe,SAAS,4BAA4B,EAAE;YACzF,IAAI,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;YACnC,KAAK,EAAE,IAAI,eAAe,CAAC,EAAE,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC;YACpG,WAAW,EAAE,SAAS;SACvB,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;QACnD,CAAC;QAED,OAAO,MAAM,CAAC,IAAI;aACf,WAAW,CAAC,IAAI,iBAAiB,EAAE,CAAC;aACpC,WAAW,CAAC,IAAI,uBAAuB,EAAE,CAAC;aAC1C,WAAW,CAAC,IAAI,mBAAmB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aACnD,WAAW,CAAC,IAAI,mBAAmB,CAAC,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { InteractStreamRequest, IRuntimeClient, RuntimeClientOptions } from './runtime.interface.js';
|
|
2
|
+
import { TraceService } from './trace.service.js';
|
|
3
|
+
export declare class PublicRuntimeClient<T> implements IRuntimeClient<T> {
|
|
4
|
+
private readonly options;
|
|
5
|
+
private readonly trace;
|
|
6
|
+
private readonly fetch;
|
|
7
|
+
constructor(options: RuntimeClientOptions<T>, trace?: TraceService<T>);
|
|
8
|
+
interactStream(createContext: () => T, { projectID, userID, environment, action }: InteractStreamRequest): Promise<ReadableStream<T>>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=public-runtime.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-runtime.client.d.ts","sourceRoot":"","sources":["../../../src/v2/public-runtime.client.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACvG,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,qBAAa,mBAAmB,CAAC,CAAC,CAAE,YAAW,cAAc,CAAC,CAAC,CAAC;IAI5D,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJxB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAsD;gBAGzD,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC,EAChC,KAAK,kBAA+C;IAGjE,cAAc,CAAC,aAAa,EAAE,MAAM,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,qBAAqB;CAkB/G"}
|
|
@@ -2,26 +2,16 @@ import { FetchClient } from '@voiceflow/fetch';
|
|
|
2
2
|
import { EventSourceParserStream } from 'eventsource-parser/stream';
|
|
3
3
|
import { InteractTraceStream } from './interact-trace.stream.js';
|
|
4
4
|
import { TraceService } from './trace.service.js';
|
|
5
|
-
export class
|
|
5
|
+
export class PublicRuntimeClient {
|
|
6
6
|
constructor(options, trace = new TraceService({ traces: options.traces })) {
|
|
7
7
|
this.options = options;
|
|
8
8
|
this.trace = trace;
|
|
9
9
|
this.fetch = new FetchClient({ baseURL: this.options.baseURL });
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return `/v2/public/project/${projectID}/user/${encodeURIComponent(userID)}/interact/stream`;
|
|
14
|
-
}
|
|
15
|
-
return `/v2/project/${projectID}/stateless/interact/stream`;
|
|
16
|
-
}
|
|
17
|
-
async interactStream(createContext, { isPrivate, projectID, userID, environment, action }) {
|
|
18
|
-
const result = await this.fetch.post(this.getStreamingUrl(!!isPrivate, projectID, userID), {
|
|
19
|
-
query: new URLSearchParams({
|
|
20
|
-
completion_events: String(true),
|
|
21
|
-
...(environment && { environment }),
|
|
22
|
-
}),
|
|
11
|
+
async interactStream(createContext, { projectID, userID, environment, action }) {
|
|
12
|
+
const result = await this.fetch.post(`/v2/public/project/${projectID}/user/${encodeURIComponent(userID)}/interact/stream`, {
|
|
23
13
|
json: { action },
|
|
24
|
-
...(
|
|
14
|
+
query: new URLSearchParams({ completion_events: String(true), ...(environment && { environment }) }),
|
|
25
15
|
});
|
|
26
16
|
if (!result.body) {
|
|
27
17
|
throw new Error('interact stream body is empty');
|
|
@@ -32,4 +22,4 @@ export class RuntimeClient {
|
|
|
32
22
|
.pipeThrough(new InteractTraceStream(createContext, this.trace));
|
|
33
23
|
}
|
|
34
24
|
}
|
|
35
|
-
//# sourceMappingURL=runtime.client.js.map
|
|
25
|
+
//# sourceMappingURL=public-runtime.client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-runtime.client.js","sourceRoot":"","sources":["../../../src/v2/public-runtime.client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,OAAO,mBAAmB;IAG9B,YACmB,OAAgC,EAChC,QAAQ,IAAI,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC;QADpD,YAAO,GAAP,OAAO,CAAyB;QAChC,UAAK,GAAL,KAAK,CAA+C;QAJtD,UAAK,GAAG,IAAI,WAAW,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAKzE,CAAC;IAEJ,KAAK,CAAC,cAAc,CAAC,aAAsB,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAyB;QAC5G,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAClC,sBAAsB,SAAS,SAAS,kBAAkB,CAAC,MAAM,CAAC,kBAAkB,EACpF;YACE,IAAI,EAAE,EAAE,MAAM,EAAE;YAChB,KAAK,EAAE,IAAI,eAAe,CAAC,EAAE,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC;SACrG,CACF,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;QACnD,CAAC;QAED,OAAO,MAAM,CAAC,IAAI;aACf,WAAW,CAAC,IAAI,iBAAiB,EAAE,CAAC;aACpC,WAAW,CAAC,IAAI,uBAAuB,EAAE,CAAC;aAC1C,WAAW,CAAC,IAAI,mBAAmB,CAAC,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { RuntimeAction } from '../runtime/index.js';
|
|
2
|
+
import type { TraceOptions } from '../trace/index.js';
|
|
3
|
+
export interface RuntimeClientOptions<T> extends TraceOptions<T> {
|
|
4
|
+
baseURL: string;
|
|
5
|
+
}
|
|
6
|
+
export interface InteractStreamRequest {
|
|
7
|
+
userID: string;
|
|
8
|
+
action: RuntimeAction;
|
|
9
|
+
projectID: string;
|
|
10
|
+
environment?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IRuntimeClient<T> {
|
|
13
|
+
interactStream(createContext: () => T, request: InteractStreamRequest): Promise<ReadableStream<T>>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=runtime.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.interface.d.ts","sourceRoot":"","sources":["../../../src/v2/runtime.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,WAAW,oBAAoB,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,CAAC;IAC9D,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,cAAc,CAAC,aAAa,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;CACpG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime.interface.js","sourceRoot":"","sources":["../../../src/v2/runtime.interface.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceflow/sdk-runtime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0-alpha2",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"import": "./build/esm/main.js",
|
|
@@ -38,6 +38,5 @@
|
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { RuntimeAction } from '../runtime';
|
|
2
|
-
import type { TraceOptions } from '../trace';
|
|
3
|
-
import { TraceService } from './trace.service';
|
|
4
|
-
export interface RuntimeClientOptions<T> extends TraceOptions<T> {
|
|
5
|
-
baseURL: string;
|
|
6
|
-
}
|
|
7
|
-
export interface InteractStreamRequest {
|
|
8
|
-
projectID: string;
|
|
9
|
-
userID: string;
|
|
10
|
-
environment?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Should we use the private streaming endpoint.
|
|
13
|
-
* This is for testing the agent so it works when it's still defined
|
|
14
|
-
* as 'private'.
|
|
15
|
-
*/
|
|
16
|
-
isPrivate?: boolean;
|
|
17
|
-
action: RuntimeAction;
|
|
18
|
-
}
|
|
19
|
-
export declare class RuntimeClient<T> {
|
|
20
|
-
private readonly options;
|
|
21
|
-
private readonly trace;
|
|
22
|
-
private readonly fetch;
|
|
23
|
-
constructor(options: RuntimeClientOptions<T>, trace?: TraceService<T>);
|
|
24
|
-
private getStreamingUrl;
|
|
25
|
-
interactStream(createContext: () => T, { isPrivate, projectID, userID, environment, action }: InteractStreamRequest): Promise<ReadableStream<T>>;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=runtime.client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.client.d.ts","sourceRoot":"","sources":["../../../src/v2/runtime.client.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,WAAW,oBAAoB,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,CAAC;IAC9D,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,MAAM,EAAE,aAAa,CAAC;CACvB;AAED,qBAAa,aAAa,CAAC,CAAC;IAIxB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJxB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAsD;gBAGzD,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC,EAChC,KAAK,kBAA+C;IAGvE,OAAO,CAAC,eAAe;IAQjB,cAAc,CAClB,aAAa,EAAE,MAAM,CAAC,EACtB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,qBAAqB;CAoB/E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.client.js","sourceRoot":"","sources":["../../../src/v2/runtime.client.ts"],"names":[],"mappings":";;;AAAA,4CAA+C;AAC/C,sDAAoE;AAKpE,mEAA8D;AAC9D,mDAA+C;AAqB/C,MAAa,aAAa;IAGxB,YACmB,OAAgC,EAChC,QAAQ,IAAI,4BAAY,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC;QADpD,YAAO,GAAP,OAAO,CAAyB;QAChC,UAAK,GAAL,KAAK,CAA+C;QAJtD,UAAK,GAAG,IAAI,mBAAW,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAKzE,CAAC;IAEI,eAAe,CAAC,SAAkB,EAAE,SAAiB,EAAE,MAAc;QAC3E,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,OAAO,sBAAsB,SAAS,SAAS,kBAAkB,CAAC,MAAM,CAAC,kBAAkB,CAAC;QAC9F,CAAC;QAED,OAAO,eAAe,SAAS,4BAA4B,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,aAAsB,EACtB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAyB;QAE5E,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE;YACzF,KAAK,EAAE,IAAI,eAAe,CAAC;gBACzB,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC;gBAC/B,GAAG,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,CAAC;aACpC,CAAC;YACF,IAAI,EAAE,EAAE,MAAM,EAAE;YAChB,GAAG,CAAC,SAAS,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;SAC7C,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;QACnD,CAAC;QAED,OAAO,MAAM,CAAC,IAAI;aACf,WAAW,CAAC,IAAI,iBAAiB,EAAE,CAAC;aACpC,WAAW,CAAC,IAAI,gCAAuB,EAAE,CAAC;aAC1C,WAAW,CAAC,IAAI,2CAAmB,CAAC,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;CACF;AAtCD,sCAsCC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { RuntimeAction } from '../runtime/index.js';
|
|
2
|
-
import type { TraceOptions } from '../trace/index.js';
|
|
3
|
-
import { TraceService } from './trace.service.js';
|
|
4
|
-
export interface RuntimeClientOptions<T> extends TraceOptions<T> {
|
|
5
|
-
baseURL: string;
|
|
6
|
-
}
|
|
7
|
-
export interface InteractStreamRequest {
|
|
8
|
-
projectID: string;
|
|
9
|
-
userID: string;
|
|
10
|
-
environment?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Should we use the private streaming endpoint.
|
|
13
|
-
* This is for testing the agent so it works when it's still defined
|
|
14
|
-
* as 'private'.
|
|
15
|
-
*/
|
|
16
|
-
isPrivate?: boolean;
|
|
17
|
-
action: RuntimeAction;
|
|
18
|
-
}
|
|
19
|
-
export declare class RuntimeClient<T> {
|
|
20
|
-
private readonly options;
|
|
21
|
-
private readonly trace;
|
|
22
|
-
private readonly fetch;
|
|
23
|
-
constructor(options: RuntimeClientOptions<T>, trace?: TraceService<T>);
|
|
24
|
-
private getStreamingUrl;
|
|
25
|
-
interactStream(createContext: () => T, { isPrivate, projectID, userID, environment, action }: InteractStreamRequest): Promise<ReadableStream<T>>;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=runtime.client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.client.d.ts","sourceRoot":"","sources":["../../../src/v2/runtime.client.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,WAAW,oBAAoB,CAAC,CAAC,CAAE,SAAQ,YAAY,CAAC,CAAC,CAAC;IAC9D,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,MAAM,EAAE,aAAa,CAAC;CACvB;AAED,qBAAa,aAAa,CAAC,CAAC;IAIxB,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJxB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAsD;gBAGzD,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC,EAChC,KAAK,kBAA+C;IAGvE,OAAO,CAAC,eAAe;IAQjB,cAAc,CAClB,aAAa,EAAE,MAAM,CAAC,EACtB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,qBAAqB;CAoB/E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.client.js","sourceRoot":"","sources":["../../../src/v2/runtime.client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAKpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAqB/C,MAAM,OAAO,aAAa;IAGxB,YACmB,OAAgC,EAChC,QAAQ,IAAI,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC;QADpD,YAAO,GAAP,OAAO,CAAyB;QAChC,UAAK,GAAL,KAAK,CAA+C;QAJtD,UAAK,GAAG,IAAI,WAAW,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAKzE,CAAC;IAEI,eAAe,CAAC,SAAkB,EAAE,SAAiB,EAAE,MAAc;QAC3E,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,OAAO,sBAAsB,SAAS,SAAS,kBAAkB,CAAC,MAAM,CAAC,kBAAkB,CAAC;QAC9F,CAAC;QAED,OAAO,eAAe,SAAS,4BAA4B,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,aAAsB,EACtB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAyB;QAE5E,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE;YACzF,KAAK,EAAE,IAAI,eAAe,CAAC;gBACzB,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC;gBAC/B,GAAG,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,CAAC;aACpC,CAAC;YACF,IAAI,EAAE,EAAE,MAAM,EAAE;YAChB,GAAG,CAAC,SAAS,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC;SAC7C,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;QACnD,CAAC;QAED,OAAO,MAAM,CAAC,IAAI;aACf,WAAW,CAAC,IAAI,iBAAiB,EAAE,CAAC;aACpC,WAAW,CAAC,IAAI,uBAAuB,EAAE,CAAC;aAC1C,WAAW,CAAC,IAAI,mBAAmB,CAAC,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;CACF"}
|