@voiceflow/sdk-runtime 1.3.0 → 1.3.1
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
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.3.1](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.3.0...@voiceflow/sdk-runtime@1.3.1) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* more lenient typing for sample use case (CT-1046) ([861de03](https://github.com/voiceflow/adapters/commit/861de03c9e05d56c0e1439c5355bb057e7f7381b))
|
|
11
|
+
|
|
6
12
|
# [1.3.0](https://github.com/voiceflow/adapters/compare/@voiceflow/sdk-runtime@1.2.1...@voiceflow/sdk-runtime@1.3.0) (2022-10-03)
|
|
7
13
|
|
|
8
14
|
### Features
|
|
@@ -6,7 +6,7 @@ const isAuthRuntimeOptions = (options) => {
|
|
|
6
6
|
};
|
|
7
7
|
exports.isAuthRuntimeOptions = isAuthRuntimeOptions;
|
|
8
8
|
const isPublicRuntimeOptions = (options) => {
|
|
9
|
-
return
|
|
9
|
+
return typeof options?.verify?.projectID === 'string';
|
|
10
10
|
};
|
|
11
11
|
exports.isPublicRuntimeOptions = isPublicRuntimeOptions;
|
|
12
12
|
exports.RuntimeActionTypeSet = new Set(['launch', 'intent', 'text', '...etc']);
|
|
@@ -2,7 +2,7 @@ export const isAuthRuntimeOptions = (options) => {
|
|
|
2
2
|
return !!options?.verify?.authorization;
|
|
3
3
|
};
|
|
4
4
|
export const isPublicRuntimeOptions = (options) => {
|
|
5
|
-
return
|
|
5
|
+
return typeof options?.verify?.projectID === 'string';
|
|
6
6
|
};
|
|
7
7
|
export const RuntimeActionTypeSet = new Set(['launch', 'intent', 'text', '...etc']);
|
|
8
8
|
export const isRuntimeActionType = (value) => typeof value === 'string' && RuntimeActionTypeSet.has(value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceflow/sdk-runtime",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"import": "./build/esm/main.js",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "6f122cb59f0427fdf466508f1472ca973f181d6e"
|
|
45
45
|
}
|
|
@@ -29,7 +29,7 @@ export const isAuthRuntimeOptions = (
|
|
|
29
29
|
export const isPublicRuntimeOptions = (
|
|
30
30
|
options: RuntimeOptions<Partial<AuthVerify & PublicVerify>>
|
|
31
31
|
): options is RuntimeOptions<PublicVerify> => {
|
|
32
|
-
return
|
|
32
|
+
return typeof options?.verify?.projectID === 'string';
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
export interface RuntimeInteractRequest {
|