@xapp/stentor-service-dialogflow 1.43.23 → 1.43.38
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/lib/DialogflowV2Service.d.ts +4 -4
- package/package.json +11 -11
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { App, Entity, Intent, NLUQueryResponse, NLUService } from "stentor-models";
|
|
2
2
|
import { FetchService, Service } from "@xapp/stentor-service";
|
|
3
3
|
import { Agent as DialogflowAgent, Credentials as DialogflowCredentials, EntityType as DialogflowEntityType, Intent as DialogflowIntent, gax, longrunning } from "dialogflow";
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type CredentialsRetriever = Retriever<DialogflowCredentials>;
|
|
5
|
+
export type Credentials = DialogflowCredentials | CredentialsRetriever;
|
|
6
6
|
export interface UpdateModelSummary {
|
|
7
7
|
entitiesUpdated: number;
|
|
8
8
|
entitiesDeleted: number;
|
|
@@ -167,8 +167,8 @@ export declare class DialogflowV2Service extends FetchService implements NLUServ
|
|
|
167
167
|
/**
|
|
168
168
|
* The dialogflow client is wrong in it's return. This attempts to resolve it.
|
|
169
169
|
*/
|
|
170
|
-
export
|
|
171
|
-
export
|
|
170
|
+
export type Operation = Pick<gax.Operation, "longrunningDescriptor" | "backoffSettings"> & longrunning.BaseOperation;
|
|
171
|
+
export type Retriever<T> = () => T | Promise<T>;
|
|
172
172
|
export declare class AsyncRetriever<T> {
|
|
173
173
|
private readonly retriever;
|
|
174
174
|
private readonly shouldCache;
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"version": "1.43.
|
|
7
|
+
"version": "1.43.38",
|
|
8
8
|
"description": "Dialogflow service for stentor",
|
|
9
9
|
"types": "lib/index",
|
|
10
10
|
"main": "lib/index",
|
|
@@ -18,19 +18,19 @@
|
|
|
18
18
|
"@types/chai": "4.3.4",
|
|
19
19
|
"@xapp/config": "0.2.3",
|
|
20
20
|
"chai": "4.3.7",
|
|
21
|
-
"mocha": "10.
|
|
22
|
-
"stentor-constants": "1.57.
|
|
23
|
-
"stentor-logger": "1.57.
|
|
24
|
-
"stentor-models": "1.57.
|
|
25
|
-
"stentor-request": "1.57.
|
|
26
|
-
"stentor-utils": "1.57.
|
|
21
|
+
"mocha": "10.2.0",
|
|
22
|
+
"stentor-constants": "1.57.39",
|
|
23
|
+
"stentor-logger": "1.57.39",
|
|
24
|
+
"stentor-models": "1.57.39",
|
|
25
|
+
"stentor-request": "1.57.39",
|
|
26
|
+
"stentor-utils": "1.57.39",
|
|
27
27
|
"ts-node": "10.9.1",
|
|
28
|
-
"typescript": "4.
|
|
28
|
+
"typescript": "4.9.4"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@types/dialogflow": "1.0.0",
|
|
32
|
-
"@xapp/stentor-dialogflow": "1.43.
|
|
33
|
-
"@xapp/stentor-service": "1.43.
|
|
32
|
+
"@xapp/stentor-dialogflow": "1.43.38",
|
|
33
|
+
"@xapp/stentor-service": "1.43.38",
|
|
34
34
|
"actions-on-google": "2.14.0",
|
|
35
35
|
"dialogflow": "1.2.0"
|
|
36
36
|
},
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"clean": "rm -rf ./lib/*",
|
|
47
47
|
"test": "mocha --recursive -r ts-node/register \"./src/**/*.test.ts\""
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "20cf1f5889cc4a3ac7531b91178bc1ba63e1decd"
|
|
50
50
|
}
|