@ondewo/nlu-client-typescript 3.0.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/LICENSE +191 -0
- package/README.md +27 -0
- package/api/google/api/annotations_pb.d.ts +6 -0
- package/api/google/api/annotations_pb.js +48 -0
- package/api/google/protobuf/any_pb.d.ts +28 -0
- package/api/google/protobuf/any_pb.js +275 -0
- package/api/google/protobuf/empty_pb.d.ts +18 -0
- package/api/google/protobuf/empty_pb.js +141 -0
- package/api/google/protobuf/field_mask_pb.d.ts +24 -0
- package/api/google/protobuf/field_mask_pb.js +196 -0
- package/api/google/protobuf/struct_pb.d.ts +99 -0
- package/api/google/protobuf/struct_pb.js +948 -0
- package/api/google/protobuf/timestamp_pb.d.ts +26 -0
- package/api/google/protobuf/timestamp_pb.js +236 -0
- package/api/google/rpc/status_pb.d.ts +33 -0
- package/api/google/rpc/status_pb.js +262 -0
- package/api/google/type/latlng_pb.d.ts +26 -0
- package/api/google/type/latlng_pb.js +200 -0
- package/api/ondewo/nlu/agent_grpc_web_pb.d.ts +489 -0
- package/api/ondewo/nlu/agent_grpc_web_pb.js +2476 -0
- package/api/ondewo/nlu/agent_pb.d.ts +2079 -0
- package/api/ondewo/nlu/agent_pb.js +16648 -0
- package/api/ondewo/nlu/aiservices_grpc_web_pb.d.ts +115 -0
- package/api/ondewo/nlu/aiservices_grpc_web_pb.js +569 -0
- package/api/ondewo/nlu/aiservices_pb.d.ts +933 -0
- package/api/ondewo/nlu/aiservices_pb.js +7601 -0
- package/api/ondewo/nlu/common_pb.d.ts +26 -0
- package/api/ondewo/nlu/common_pb.js +179 -0
- package/api/ondewo/nlu/context_grpc_web_pb.d.ts +92 -0
- package/api/ondewo/nlu/context_grpc_web_pb.js +447 -0
- package/api/ondewo/nlu/context_pb.d.ts +218 -0
- package/api/ondewo/nlu/context_pb.js +1788 -0
- package/api/ondewo/nlu/entity_type_grpc_web_pb.d.ts +165 -0
- package/api/ondewo/nlu/entity_type_grpc_web_pb.js +817 -0
- package/api/ondewo/nlu/entity_type_pb.d.ts +756 -0
- package/api/ondewo/nlu/entity_type_pb.js +5970 -0
- package/api/ondewo/nlu/intent_grpc_web_pb.d.ts +345 -0
- package/api/ondewo/nlu/intent_grpc_web_pb.js +1738 -0
- package/api/ondewo/nlu/intent_pb.d.ts +2344 -0
- package/api/ondewo/nlu/intent_pb.js +18784 -0
- package/api/ondewo/nlu/operation_metadata_pb.d.ts +112 -0
- package/api/ondewo/nlu/operation_metadata_pb.js +740 -0
- package/api/ondewo/nlu/operations_grpc_web_pb.d.ts +68 -0
- package/api/ondewo/nlu/operations_grpc_web_pb.js +331 -0
- package/api/ondewo/nlu/operations_pb.d.ts +236 -0
- package/api/ondewo/nlu/operations_pb.js +1826 -0
- package/api/ondewo/nlu/project_role_grpc_web_pb.d.ts +80 -0
- package/api/ondewo/nlu/project_role_grpc_web_pb.js +386 -0
- package/api/ondewo/nlu/project_role_pb.d.ts +220 -0
- package/api/ondewo/nlu/project_role_pb.js +1713 -0
- package/api/ondewo/nlu/project_statistics_grpc_web_pb.d.ts +116 -0
- package/api/ondewo/nlu/project_statistics_grpc_web_pb.js +571 -0
- package/api/ondewo/nlu/project_statistics_pb.d.ts +92 -0
- package/api/ondewo/nlu/project_statistics_pb.js +724 -0
- package/api/ondewo/nlu/server_statistics_grpc_web_pb.d.ts +57 -0
- package/api/ondewo/nlu/server_statistics_grpc_web_pb.js +264 -0
- package/api/ondewo/nlu/server_statistics_pb.d.ts +25 -0
- package/api/ondewo/nlu/server_statistics_pb.js +176 -0
- package/api/ondewo/nlu/session_grpc_web_pb.d.ts +176 -0
- package/api/ondewo/nlu/session_grpc_web_pb.js +884 -0
- package/api/ondewo/nlu/session_pb.d.ts +1192 -0
- package/api/ondewo/nlu/session_pb.js +9762 -0
- package/api/ondewo/nlu/user_grpc_web_pb.d.ts +200 -0
- package/api/ondewo/nlu/user_grpc_web_pb.js +998 -0
- package/api/ondewo/nlu/user_pb.d.ts +489 -0
- package/api/ondewo/nlu/user_pb.js +4057 -0
- package/api/ondewo/nlu/utility_grpc_web_pb.d.ts +115 -0
- package/api/ondewo/nlu/utility_grpc_web_pb.js +567 -0
- package/api/ondewo/nlu/utility_pb.d.ts +708 -0
- package/api/ondewo/nlu/utility_pb.js +5914 -0
- package/api/ondewo/nlu/webhook_grpc_web_pb.d.ts +55 -0
- package/api/ondewo/nlu/webhook_grpc_web_pb.js +268 -0
- package/api/ondewo/nlu/webhook_pb.d.ts +155 -0
- package/api/ondewo/nlu/webhook_pb.js +1267 -0
- package/api/ondewo/qa/qa_grpc_web_pb.d.ts +104 -0
- package/api/ondewo/qa/qa_grpc_web_pb.js +508 -0
- package/api/ondewo/qa/qa_pb.d.ts +304 -0
- package/api/ondewo/qa/qa_pb.js +2553 -0
- package/package.json +18 -0
- package/public-api.d.ts +38 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import * as grpcWeb from 'grpc-web';
|
|
2
|
+
|
|
3
|
+
import * as ondewo_nlu_aiservices_pb from '../../ondewo/nlu/aiservices_pb';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class AiServicesClient {
|
|
7
|
+
constructor (hostname: string,
|
|
8
|
+
credentials?: null | { [index: string]: string; },
|
|
9
|
+
options?: null | { [index: string]: any; });
|
|
10
|
+
|
|
11
|
+
extractEntities(
|
|
12
|
+
request: ondewo_nlu_aiservices_pb.ExtractEntitiesRequest,
|
|
13
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
14
|
+
callback: (err: grpcWeb.RpcError,
|
|
15
|
+
response: ondewo_nlu_aiservices_pb.ExtractEntitiesResponse) => void
|
|
16
|
+
): grpcWeb.ClientReadableStream<ondewo_nlu_aiservices_pb.ExtractEntitiesResponse>;
|
|
17
|
+
|
|
18
|
+
generateUserSays(
|
|
19
|
+
request: ondewo_nlu_aiservices_pb.GenerateUserSaysRequest,
|
|
20
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
21
|
+
callback: (err: grpcWeb.RpcError,
|
|
22
|
+
response: ondewo_nlu_aiservices_pb.GenerateUserSaysResponse) => void
|
|
23
|
+
): grpcWeb.ClientReadableStream<ondewo_nlu_aiservices_pb.GenerateUserSaysResponse>;
|
|
24
|
+
|
|
25
|
+
generateResponses(
|
|
26
|
+
request: ondewo_nlu_aiservices_pb.GenerateResponsesRequest,
|
|
27
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
28
|
+
callback: (err: grpcWeb.RpcError,
|
|
29
|
+
response: ondewo_nlu_aiservices_pb.GenerateResponsesResponse) => void
|
|
30
|
+
): grpcWeb.ClientReadableStream<ondewo_nlu_aiservices_pb.GenerateResponsesResponse>;
|
|
31
|
+
|
|
32
|
+
getAlternativeSentences(
|
|
33
|
+
request: ondewo_nlu_aiservices_pb.GetAlternativeSentencesRequest,
|
|
34
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
35
|
+
callback: (err: grpcWeb.RpcError,
|
|
36
|
+
response: ondewo_nlu_aiservices_pb.GetAlternativeSentencesResponse) => void
|
|
37
|
+
): grpcWeb.ClientReadableStream<ondewo_nlu_aiservices_pb.GetAlternativeSentencesResponse>;
|
|
38
|
+
|
|
39
|
+
getAlternativeTrainingPhrases(
|
|
40
|
+
request: ondewo_nlu_aiservices_pb.GetAlternativeTrainingPhrasesRequest,
|
|
41
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
42
|
+
callback: (err: grpcWeb.RpcError,
|
|
43
|
+
response: ondewo_nlu_aiservices_pb.GetAlternativeTrainingPhrasesResponse) => void
|
|
44
|
+
): grpcWeb.ClientReadableStream<ondewo_nlu_aiservices_pb.GetAlternativeTrainingPhrasesResponse>;
|
|
45
|
+
|
|
46
|
+
getSynonyms(
|
|
47
|
+
request: ondewo_nlu_aiservices_pb.GetSynonymsRequest,
|
|
48
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
49
|
+
callback: (err: grpcWeb.RpcError,
|
|
50
|
+
response: ondewo_nlu_aiservices_pb.GetSynonymsResponse) => void
|
|
51
|
+
): grpcWeb.ClientReadableStream<ondewo_nlu_aiservices_pb.GetSynonymsResponse>;
|
|
52
|
+
|
|
53
|
+
classifyIntents(
|
|
54
|
+
request: ondewo_nlu_aiservices_pb.ClassifyIntentsRequest,
|
|
55
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
56
|
+
callback: (err: grpcWeb.RpcError,
|
|
57
|
+
response: ondewo_nlu_aiservices_pb.ClassifyIntentsResponse) => void
|
|
58
|
+
): grpcWeb.ClientReadableStream<ondewo_nlu_aiservices_pb.ClassifyIntentsResponse>;
|
|
59
|
+
|
|
60
|
+
extractEntitiesFuzzy(
|
|
61
|
+
request: ondewo_nlu_aiservices_pb.ExtractEntitiesFuzzyRequest,
|
|
62
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
63
|
+
callback: (err: grpcWeb.RpcError,
|
|
64
|
+
response: ondewo_nlu_aiservices_pb.ExtractEntitiesResponse) => void
|
|
65
|
+
): grpcWeb.ClientReadableStream<ondewo_nlu_aiservices_pb.ExtractEntitiesResponse>;
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export class AiServicesPromiseClient {
|
|
70
|
+
constructor (hostname: string,
|
|
71
|
+
credentials?: null | { [index: string]: string; },
|
|
72
|
+
options?: null | { [index: string]: any; });
|
|
73
|
+
|
|
74
|
+
extractEntities(
|
|
75
|
+
request: ondewo_nlu_aiservices_pb.ExtractEntitiesRequest,
|
|
76
|
+
metadata?: grpcWeb.Metadata
|
|
77
|
+
): Promise<ondewo_nlu_aiservices_pb.ExtractEntitiesResponse>;
|
|
78
|
+
|
|
79
|
+
generateUserSays(
|
|
80
|
+
request: ondewo_nlu_aiservices_pb.GenerateUserSaysRequest,
|
|
81
|
+
metadata?: grpcWeb.Metadata
|
|
82
|
+
): Promise<ondewo_nlu_aiservices_pb.GenerateUserSaysResponse>;
|
|
83
|
+
|
|
84
|
+
generateResponses(
|
|
85
|
+
request: ondewo_nlu_aiservices_pb.GenerateResponsesRequest,
|
|
86
|
+
metadata?: grpcWeb.Metadata
|
|
87
|
+
): Promise<ondewo_nlu_aiservices_pb.GenerateResponsesResponse>;
|
|
88
|
+
|
|
89
|
+
getAlternativeSentences(
|
|
90
|
+
request: ondewo_nlu_aiservices_pb.GetAlternativeSentencesRequest,
|
|
91
|
+
metadata?: grpcWeb.Metadata
|
|
92
|
+
): Promise<ondewo_nlu_aiservices_pb.GetAlternativeSentencesResponse>;
|
|
93
|
+
|
|
94
|
+
getAlternativeTrainingPhrases(
|
|
95
|
+
request: ondewo_nlu_aiservices_pb.GetAlternativeTrainingPhrasesRequest,
|
|
96
|
+
metadata?: grpcWeb.Metadata
|
|
97
|
+
): Promise<ondewo_nlu_aiservices_pb.GetAlternativeTrainingPhrasesResponse>;
|
|
98
|
+
|
|
99
|
+
getSynonyms(
|
|
100
|
+
request: ondewo_nlu_aiservices_pb.GetSynonymsRequest,
|
|
101
|
+
metadata?: grpcWeb.Metadata
|
|
102
|
+
): Promise<ondewo_nlu_aiservices_pb.GetSynonymsResponse>;
|
|
103
|
+
|
|
104
|
+
classifyIntents(
|
|
105
|
+
request: ondewo_nlu_aiservices_pb.ClassifyIntentsRequest,
|
|
106
|
+
metadata?: grpcWeb.Metadata
|
|
107
|
+
): Promise<ondewo_nlu_aiservices_pb.ClassifyIntentsResponse>;
|
|
108
|
+
|
|
109
|
+
extractEntitiesFuzzy(
|
|
110
|
+
request: ondewo_nlu_aiservices_pb.ExtractEntitiesFuzzyRequest,
|
|
111
|
+
metadata?: grpcWeb.Metadata
|
|
112
|
+
): Promise<ondewo_nlu_aiservices_pb.ExtractEntitiesResponse>;
|
|
113
|
+
|
|
114
|
+
}
|
|
115
|
+
|
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview gRPC-Web generated client stub for ondewo.nlu
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
// @ts-nocheck
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
const grpc = {};
|
|
16
|
+
grpc.web = require('grpc-web');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
var google_api_annotations_pb = require('../../google/api/annotations_pb.js')
|
|
20
|
+
|
|
21
|
+
var ondewo_nlu_intent_pb = require('../../ondewo/nlu/intent_pb.js')
|
|
22
|
+
|
|
23
|
+
var ondewo_nlu_entity_type_pb = require('../../ondewo/nlu/entity_type_pb.js')
|
|
24
|
+
const proto = {};
|
|
25
|
+
proto.ondewo = {};
|
|
26
|
+
proto.ondewo.nlu = require('./aiservices_pb.js');
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @param {string} hostname
|
|
30
|
+
* @param {?Object} credentials
|
|
31
|
+
* @param {?grpc.web.ClientOptions} options
|
|
32
|
+
* @constructor
|
|
33
|
+
* @struct
|
|
34
|
+
* @final
|
|
35
|
+
*/
|
|
36
|
+
proto.ondewo.nlu.AiServicesClient =
|
|
37
|
+
function(hostname, credentials, options) {
|
|
38
|
+
if (!options) options = {};
|
|
39
|
+
options.format = 'binary';
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
43
|
+
*/
|
|
44
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @private @const {string} The hostname
|
|
48
|
+
*/
|
|
49
|
+
this.hostname_ = hostname;
|
|
50
|
+
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @param {string} hostname
|
|
56
|
+
* @param {?Object} credentials
|
|
57
|
+
* @param {?grpc.web.ClientOptions} options
|
|
58
|
+
* @constructor
|
|
59
|
+
* @struct
|
|
60
|
+
* @final
|
|
61
|
+
*/
|
|
62
|
+
proto.ondewo.nlu.AiServicesPromiseClient =
|
|
63
|
+
function(hostname, credentials, options) {
|
|
64
|
+
if (!options) options = {};
|
|
65
|
+
options.format = 'binary';
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
69
|
+
*/
|
|
70
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @private @const {string} The hostname
|
|
74
|
+
*/
|
|
75
|
+
this.hostname_ = hostname;
|
|
76
|
+
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @const
|
|
82
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
83
|
+
* !proto.ondewo.nlu.ExtractEntitiesRequest,
|
|
84
|
+
* !proto.ondewo.nlu.ExtractEntitiesResponse>}
|
|
85
|
+
*/
|
|
86
|
+
const methodDescriptor_AiServices_ExtractEntities = new grpc.web.MethodDescriptor(
|
|
87
|
+
'/ondewo.nlu.AiServices/ExtractEntities',
|
|
88
|
+
grpc.web.MethodType.UNARY,
|
|
89
|
+
proto.ondewo.nlu.ExtractEntitiesRequest,
|
|
90
|
+
proto.ondewo.nlu.ExtractEntitiesResponse,
|
|
91
|
+
/**
|
|
92
|
+
* @param {!proto.ondewo.nlu.ExtractEntitiesRequest} request
|
|
93
|
+
* @return {!Uint8Array}
|
|
94
|
+
*/
|
|
95
|
+
function(request) {
|
|
96
|
+
return request.serializeBinary();
|
|
97
|
+
},
|
|
98
|
+
proto.ondewo.nlu.ExtractEntitiesResponse.deserializeBinary
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @param {!proto.ondewo.nlu.ExtractEntitiesRequest} request The
|
|
104
|
+
* request proto
|
|
105
|
+
* @param {?Object<string, string>} metadata User defined
|
|
106
|
+
* call metadata
|
|
107
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.ExtractEntitiesResponse)}
|
|
108
|
+
* callback The callback function(error, response)
|
|
109
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.ExtractEntitiesResponse>|undefined}
|
|
110
|
+
* The XHR Node Readable Stream
|
|
111
|
+
*/
|
|
112
|
+
proto.ondewo.nlu.AiServicesClient.prototype.extractEntities =
|
|
113
|
+
function(request, metadata, callback) {
|
|
114
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
115
|
+
'/ondewo.nlu.AiServices/ExtractEntities',
|
|
116
|
+
request,
|
|
117
|
+
metadata || {},
|
|
118
|
+
methodDescriptor_AiServices_ExtractEntities,
|
|
119
|
+
callback);
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @param {!proto.ondewo.nlu.ExtractEntitiesRequest} request The
|
|
125
|
+
* request proto
|
|
126
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
127
|
+
* call metadata
|
|
128
|
+
* @return {!Promise<!proto.ondewo.nlu.ExtractEntitiesResponse>}
|
|
129
|
+
* Promise that resolves to the response
|
|
130
|
+
*/
|
|
131
|
+
proto.ondewo.nlu.AiServicesPromiseClient.prototype.extractEntities =
|
|
132
|
+
function(request, metadata) {
|
|
133
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
134
|
+
'/ondewo.nlu.AiServices/ExtractEntities',
|
|
135
|
+
request,
|
|
136
|
+
metadata || {},
|
|
137
|
+
methodDescriptor_AiServices_ExtractEntities);
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @const
|
|
143
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
144
|
+
* !proto.ondewo.nlu.GenerateUserSaysRequest,
|
|
145
|
+
* !proto.ondewo.nlu.GenerateUserSaysResponse>}
|
|
146
|
+
*/
|
|
147
|
+
const methodDescriptor_AiServices_GenerateUserSays = new grpc.web.MethodDescriptor(
|
|
148
|
+
'/ondewo.nlu.AiServices/GenerateUserSays',
|
|
149
|
+
grpc.web.MethodType.UNARY,
|
|
150
|
+
proto.ondewo.nlu.GenerateUserSaysRequest,
|
|
151
|
+
proto.ondewo.nlu.GenerateUserSaysResponse,
|
|
152
|
+
/**
|
|
153
|
+
* @param {!proto.ondewo.nlu.GenerateUserSaysRequest} request
|
|
154
|
+
* @return {!Uint8Array}
|
|
155
|
+
*/
|
|
156
|
+
function(request) {
|
|
157
|
+
return request.serializeBinary();
|
|
158
|
+
},
|
|
159
|
+
proto.ondewo.nlu.GenerateUserSaysResponse.deserializeBinary
|
|
160
|
+
);
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @param {!proto.ondewo.nlu.GenerateUserSaysRequest} request The
|
|
165
|
+
* request proto
|
|
166
|
+
* @param {?Object<string, string>} metadata User defined
|
|
167
|
+
* call metadata
|
|
168
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.GenerateUserSaysResponse)}
|
|
169
|
+
* callback The callback function(error, response)
|
|
170
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.GenerateUserSaysResponse>|undefined}
|
|
171
|
+
* The XHR Node Readable Stream
|
|
172
|
+
*/
|
|
173
|
+
proto.ondewo.nlu.AiServicesClient.prototype.generateUserSays =
|
|
174
|
+
function(request, metadata, callback) {
|
|
175
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
176
|
+
'/ondewo.nlu.AiServices/GenerateUserSays',
|
|
177
|
+
request,
|
|
178
|
+
metadata || {},
|
|
179
|
+
methodDescriptor_AiServices_GenerateUserSays,
|
|
180
|
+
callback);
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* @param {!proto.ondewo.nlu.GenerateUserSaysRequest} request The
|
|
186
|
+
* request proto
|
|
187
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
188
|
+
* call metadata
|
|
189
|
+
* @return {!Promise<!proto.ondewo.nlu.GenerateUserSaysResponse>}
|
|
190
|
+
* Promise that resolves to the response
|
|
191
|
+
*/
|
|
192
|
+
proto.ondewo.nlu.AiServicesPromiseClient.prototype.generateUserSays =
|
|
193
|
+
function(request, metadata) {
|
|
194
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
195
|
+
'/ondewo.nlu.AiServices/GenerateUserSays',
|
|
196
|
+
request,
|
|
197
|
+
metadata || {},
|
|
198
|
+
methodDescriptor_AiServices_GenerateUserSays);
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @const
|
|
204
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
205
|
+
* !proto.ondewo.nlu.GenerateResponsesRequest,
|
|
206
|
+
* !proto.ondewo.nlu.GenerateResponsesResponse>}
|
|
207
|
+
*/
|
|
208
|
+
const methodDescriptor_AiServices_GenerateResponses = new grpc.web.MethodDescriptor(
|
|
209
|
+
'/ondewo.nlu.AiServices/GenerateResponses',
|
|
210
|
+
grpc.web.MethodType.UNARY,
|
|
211
|
+
proto.ondewo.nlu.GenerateResponsesRequest,
|
|
212
|
+
proto.ondewo.nlu.GenerateResponsesResponse,
|
|
213
|
+
/**
|
|
214
|
+
* @param {!proto.ondewo.nlu.GenerateResponsesRequest} request
|
|
215
|
+
* @return {!Uint8Array}
|
|
216
|
+
*/
|
|
217
|
+
function(request) {
|
|
218
|
+
return request.serializeBinary();
|
|
219
|
+
},
|
|
220
|
+
proto.ondewo.nlu.GenerateResponsesResponse.deserializeBinary
|
|
221
|
+
);
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @param {!proto.ondewo.nlu.GenerateResponsesRequest} request The
|
|
226
|
+
* request proto
|
|
227
|
+
* @param {?Object<string, string>} metadata User defined
|
|
228
|
+
* call metadata
|
|
229
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.GenerateResponsesResponse)}
|
|
230
|
+
* callback The callback function(error, response)
|
|
231
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.GenerateResponsesResponse>|undefined}
|
|
232
|
+
* The XHR Node Readable Stream
|
|
233
|
+
*/
|
|
234
|
+
proto.ondewo.nlu.AiServicesClient.prototype.generateResponses =
|
|
235
|
+
function(request, metadata, callback) {
|
|
236
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
237
|
+
'/ondewo.nlu.AiServices/GenerateResponses',
|
|
238
|
+
request,
|
|
239
|
+
metadata || {},
|
|
240
|
+
methodDescriptor_AiServices_GenerateResponses,
|
|
241
|
+
callback);
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @param {!proto.ondewo.nlu.GenerateResponsesRequest} request The
|
|
247
|
+
* request proto
|
|
248
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
249
|
+
* call metadata
|
|
250
|
+
* @return {!Promise<!proto.ondewo.nlu.GenerateResponsesResponse>}
|
|
251
|
+
* Promise that resolves to the response
|
|
252
|
+
*/
|
|
253
|
+
proto.ondewo.nlu.AiServicesPromiseClient.prototype.generateResponses =
|
|
254
|
+
function(request, metadata) {
|
|
255
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
256
|
+
'/ondewo.nlu.AiServices/GenerateResponses',
|
|
257
|
+
request,
|
|
258
|
+
metadata || {},
|
|
259
|
+
methodDescriptor_AiServices_GenerateResponses);
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* @const
|
|
265
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
266
|
+
* !proto.ondewo.nlu.GetAlternativeSentencesRequest,
|
|
267
|
+
* !proto.ondewo.nlu.GetAlternativeSentencesResponse>}
|
|
268
|
+
*/
|
|
269
|
+
const methodDescriptor_AiServices_GetAlternativeSentences = new grpc.web.MethodDescriptor(
|
|
270
|
+
'/ondewo.nlu.AiServices/GetAlternativeSentences',
|
|
271
|
+
grpc.web.MethodType.UNARY,
|
|
272
|
+
proto.ondewo.nlu.GetAlternativeSentencesRequest,
|
|
273
|
+
proto.ondewo.nlu.GetAlternativeSentencesResponse,
|
|
274
|
+
/**
|
|
275
|
+
* @param {!proto.ondewo.nlu.GetAlternativeSentencesRequest} request
|
|
276
|
+
* @return {!Uint8Array}
|
|
277
|
+
*/
|
|
278
|
+
function(request) {
|
|
279
|
+
return request.serializeBinary();
|
|
280
|
+
},
|
|
281
|
+
proto.ondewo.nlu.GetAlternativeSentencesResponse.deserializeBinary
|
|
282
|
+
);
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* @param {!proto.ondewo.nlu.GetAlternativeSentencesRequest} request The
|
|
287
|
+
* request proto
|
|
288
|
+
* @param {?Object<string, string>} metadata User defined
|
|
289
|
+
* call metadata
|
|
290
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.GetAlternativeSentencesResponse)}
|
|
291
|
+
* callback The callback function(error, response)
|
|
292
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.GetAlternativeSentencesResponse>|undefined}
|
|
293
|
+
* The XHR Node Readable Stream
|
|
294
|
+
*/
|
|
295
|
+
proto.ondewo.nlu.AiServicesClient.prototype.getAlternativeSentences =
|
|
296
|
+
function(request, metadata, callback) {
|
|
297
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
298
|
+
'/ondewo.nlu.AiServices/GetAlternativeSentences',
|
|
299
|
+
request,
|
|
300
|
+
metadata || {},
|
|
301
|
+
methodDescriptor_AiServices_GetAlternativeSentences,
|
|
302
|
+
callback);
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* @param {!proto.ondewo.nlu.GetAlternativeSentencesRequest} request The
|
|
308
|
+
* request proto
|
|
309
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
310
|
+
* call metadata
|
|
311
|
+
* @return {!Promise<!proto.ondewo.nlu.GetAlternativeSentencesResponse>}
|
|
312
|
+
* Promise that resolves to the response
|
|
313
|
+
*/
|
|
314
|
+
proto.ondewo.nlu.AiServicesPromiseClient.prototype.getAlternativeSentences =
|
|
315
|
+
function(request, metadata) {
|
|
316
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
317
|
+
'/ondewo.nlu.AiServices/GetAlternativeSentences',
|
|
318
|
+
request,
|
|
319
|
+
metadata || {},
|
|
320
|
+
methodDescriptor_AiServices_GetAlternativeSentences);
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* @const
|
|
326
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
327
|
+
* !proto.ondewo.nlu.GetAlternativeTrainingPhrasesRequest,
|
|
328
|
+
* !proto.ondewo.nlu.GetAlternativeTrainingPhrasesResponse>}
|
|
329
|
+
*/
|
|
330
|
+
const methodDescriptor_AiServices_GetAlternativeTrainingPhrases = new grpc.web.MethodDescriptor(
|
|
331
|
+
'/ondewo.nlu.AiServices/GetAlternativeTrainingPhrases',
|
|
332
|
+
grpc.web.MethodType.UNARY,
|
|
333
|
+
proto.ondewo.nlu.GetAlternativeTrainingPhrasesRequest,
|
|
334
|
+
proto.ondewo.nlu.GetAlternativeTrainingPhrasesResponse,
|
|
335
|
+
/**
|
|
336
|
+
* @param {!proto.ondewo.nlu.GetAlternativeTrainingPhrasesRequest} request
|
|
337
|
+
* @return {!Uint8Array}
|
|
338
|
+
*/
|
|
339
|
+
function(request) {
|
|
340
|
+
return request.serializeBinary();
|
|
341
|
+
},
|
|
342
|
+
proto.ondewo.nlu.GetAlternativeTrainingPhrasesResponse.deserializeBinary
|
|
343
|
+
);
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* @param {!proto.ondewo.nlu.GetAlternativeTrainingPhrasesRequest} request The
|
|
348
|
+
* request proto
|
|
349
|
+
* @param {?Object<string, string>} metadata User defined
|
|
350
|
+
* call metadata
|
|
351
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.GetAlternativeTrainingPhrasesResponse)}
|
|
352
|
+
* callback The callback function(error, response)
|
|
353
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.GetAlternativeTrainingPhrasesResponse>|undefined}
|
|
354
|
+
* The XHR Node Readable Stream
|
|
355
|
+
*/
|
|
356
|
+
proto.ondewo.nlu.AiServicesClient.prototype.getAlternativeTrainingPhrases =
|
|
357
|
+
function(request, metadata, callback) {
|
|
358
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
359
|
+
'/ondewo.nlu.AiServices/GetAlternativeTrainingPhrases',
|
|
360
|
+
request,
|
|
361
|
+
metadata || {},
|
|
362
|
+
methodDescriptor_AiServices_GetAlternativeTrainingPhrases,
|
|
363
|
+
callback);
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* @param {!proto.ondewo.nlu.GetAlternativeTrainingPhrasesRequest} request The
|
|
369
|
+
* request proto
|
|
370
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
371
|
+
* call metadata
|
|
372
|
+
* @return {!Promise<!proto.ondewo.nlu.GetAlternativeTrainingPhrasesResponse>}
|
|
373
|
+
* Promise that resolves to the response
|
|
374
|
+
*/
|
|
375
|
+
proto.ondewo.nlu.AiServicesPromiseClient.prototype.getAlternativeTrainingPhrases =
|
|
376
|
+
function(request, metadata) {
|
|
377
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
378
|
+
'/ondewo.nlu.AiServices/GetAlternativeTrainingPhrases',
|
|
379
|
+
request,
|
|
380
|
+
metadata || {},
|
|
381
|
+
methodDescriptor_AiServices_GetAlternativeTrainingPhrases);
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* @const
|
|
387
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
388
|
+
* !proto.ondewo.nlu.GetSynonymsRequest,
|
|
389
|
+
* !proto.ondewo.nlu.GetSynonymsResponse>}
|
|
390
|
+
*/
|
|
391
|
+
const methodDescriptor_AiServices_GetSynonyms = new grpc.web.MethodDescriptor(
|
|
392
|
+
'/ondewo.nlu.AiServices/GetSynonyms',
|
|
393
|
+
grpc.web.MethodType.UNARY,
|
|
394
|
+
proto.ondewo.nlu.GetSynonymsRequest,
|
|
395
|
+
proto.ondewo.nlu.GetSynonymsResponse,
|
|
396
|
+
/**
|
|
397
|
+
* @param {!proto.ondewo.nlu.GetSynonymsRequest} request
|
|
398
|
+
* @return {!Uint8Array}
|
|
399
|
+
*/
|
|
400
|
+
function(request) {
|
|
401
|
+
return request.serializeBinary();
|
|
402
|
+
},
|
|
403
|
+
proto.ondewo.nlu.GetSynonymsResponse.deserializeBinary
|
|
404
|
+
);
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* @param {!proto.ondewo.nlu.GetSynonymsRequest} request The
|
|
409
|
+
* request proto
|
|
410
|
+
* @param {?Object<string, string>} metadata User defined
|
|
411
|
+
* call metadata
|
|
412
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.GetSynonymsResponse)}
|
|
413
|
+
* callback The callback function(error, response)
|
|
414
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.GetSynonymsResponse>|undefined}
|
|
415
|
+
* The XHR Node Readable Stream
|
|
416
|
+
*/
|
|
417
|
+
proto.ondewo.nlu.AiServicesClient.prototype.getSynonyms =
|
|
418
|
+
function(request, metadata, callback) {
|
|
419
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
420
|
+
'/ondewo.nlu.AiServices/GetSynonyms',
|
|
421
|
+
request,
|
|
422
|
+
metadata || {},
|
|
423
|
+
methodDescriptor_AiServices_GetSynonyms,
|
|
424
|
+
callback);
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* @param {!proto.ondewo.nlu.GetSynonymsRequest} request The
|
|
430
|
+
* request proto
|
|
431
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
432
|
+
* call metadata
|
|
433
|
+
* @return {!Promise<!proto.ondewo.nlu.GetSynonymsResponse>}
|
|
434
|
+
* Promise that resolves to the response
|
|
435
|
+
*/
|
|
436
|
+
proto.ondewo.nlu.AiServicesPromiseClient.prototype.getSynonyms =
|
|
437
|
+
function(request, metadata) {
|
|
438
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
439
|
+
'/ondewo.nlu.AiServices/GetSynonyms',
|
|
440
|
+
request,
|
|
441
|
+
metadata || {},
|
|
442
|
+
methodDescriptor_AiServices_GetSynonyms);
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* @const
|
|
448
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
449
|
+
* !proto.ondewo.nlu.ClassifyIntentsRequest,
|
|
450
|
+
* !proto.ondewo.nlu.ClassifyIntentsResponse>}
|
|
451
|
+
*/
|
|
452
|
+
const methodDescriptor_AiServices_ClassifyIntents = new grpc.web.MethodDescriptor(
|
|
453
|
+
'/ondewo.nlu.AiServices/ClassifyIntents',
|
|
454
|
+
grpc.web.MethodType.UNARY,
|
|
455
|
+
proto.ondewo.nlu.ClassifyIntentsRequest,
|
|
456
|
+
proto.ondewo.nlu.ClassifyIntentsResponse,
|
|
457
|
+
/**
|
|
458
|
+
* @param {!proto.ondewo.nlu.ClassifyIntentsRequest} request
|
|
459
|
+
* @return {!Uint8Array}
|
|
460
|
+
*/
|
|
461
|
+
function(request) {
|
|
462
|
+
return request.serializeBinary();
|
|
463
|
+
},
|
|
464
|
+
proto.ondewo.nlu.ClassifyIntentsResponse.deserializeBinary
|
|
465
|
+
);
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* @param {!proto.ondewo.nlu.ClassifyIntentsRequest} request The
|
|
470
|
+
* request proto
|
|
471
|
+
* @param {?Object<string, string>} metadata User defined
|
|
472
|
+
* call metadata
|
|
473
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.ClassifyIntentsResponse)}
|
|
474
|
+
* callback The callback function(error, response)
|
|
475
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.ClassifyIntentsResponse>|undefined}
|
|
476
|
+
* The XHR Node Readable Stream
|
|
477
|
+
*/
|
|
478
|
+
proto.ondewo.nlu.AiServicesClient.prototype.classifyIntents =
|
|
479
|
+
function(request, metadata, callback) {
|
|
480
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
481
|
+
'/ondewo.nlu.AiServices/ClassifyIntents',
|
|
482
|
+
request,
|
|
483
|
+
metadata || {},
|
|
484
|
+
methodDescriptor_AiServices_ClassifyIntents,
|
|
485
|
+
callback);
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* @param {!proto.ondewo.nlu.ClassifyIntentsRequest} request The
|
|
491
|
+
* request proto
|
|
492
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
493
|
+
* call metadata
|
|
494
|
+
* @return {!Promise<!proto.ondewo.nlu.ClassifyIntentsResponse>}
|
|
495
|
+
* Promise that resolves to the response
|
|
496
|
+
*/
|
|
497
|
+
proto.ondewo.nlu.AiServicesPromiseClient.prototype.classifyIntents =
|
|
498
|
+
function(request, metadata) {
|
|
499
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
500
|
+
'/ondewo.nlu.AiServices/ClassifyIntents',
|
|
501
|
+
request,
|
|
502
|
+
metadata || {},
|
|
503
|
+
methodDescriptor_AiServices_ClassifyIntents);
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* @const
|
|
509
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
510
|
+
* !proto.ondewo.nlu.ExtractEntitiesFuzzyRequest,
|
|
511
|
+
* !proto.ondewo.nlu.ExtractEntitiesResponse>}
|
|
512
|
+
*/
|
|
513
|
+
const methodDescriptor_AiServices_ExtractEntitiesFuzzy = new grpc.web.MethodDescriptor(
|
|
514
|
+
'/ondewo.nlu.AiServices/ExtractEntitiesFuzzy',
|
|
515
|
+
grpc.web.MethodType.UNARY,
|
|
516
|
+
proto.ondewo.nlu.ExtractEntitiesFuzzyRequest,
|
|
517
|
+
proto.ondewo.nlu.ExtractEntitiesResponse,
|
|
518
|
+
/**
|
|
519
|
+
* @param {!proto.ondewo.nlu.ExtractEntitiesFuzzyRequest} request
|
|
520
|
+
* @return {!Uint8Array}
|
|
521
|
+
*/
|
|
522
|
+
function(request) {
|
|
523
|
+
return request.serializeBinary();
|
|
524
|
+
},
|
|
525
|
+
proto.ondewo.nlu.ExtractEntitiesResponse.deserializeBinary
|
|
526
|
+
);
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* @param {!proto.ondewo.nlu.ExtractEntitiesFuzzyRequest} request The
|
|
531
|
+
* request proto
|
|
532
|
+
* @param {?Object<string, string>} metadata User defined
|
|
533
|
+
* call metadata
|
|
534
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.ExtractEntitiesResponse)}
|
|
535
|
+
* callback The callback function(error, response)
|
|
536
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.ExtractEntitiesResponse>|undefined}
|
|
537
|
+
* The XHR Node Readable Stream
|
|
538
|
+
*/
|
|
539
|
+
proto.ondewo.nlu.AiServicesClient.prototype.extractEntitiesFuzzy =
|
|
540
|
+
function(request, metadata, callback) {
|
|
541
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
542
|
+
'/ondewo.nlu.AiServices/ExtractEntitiesFuzzy',
|
|
543
|
+
request,
|
|
544
|
+
metadata || {},
|
|
545
|
+
methodDescriptor_AiServices_ExtractEntitiesFuzzy,
|
|
546
|
+
callback);
|
|
547
|
+
};
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* @param {!proto.ondewo.nlu.ExtractEntitiesFuzzyRequest} request The
|
|
552
|
+
* request proto
|
|
553
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
554
|
+
* call metadata
|
|
555
|
+
* @return {!Promise<!proto.ondewo.nlu.ExtractEntitiesResponse>}
|
|
556
|
+
* Promise that resolves to the response
|
|
557
|
+
*/
|
|
558
|
+
proto.ondewo.nlu.AiServicesPromiseClient.prototype.extractEntitiesFuzzy =
|
|
559
|
+
function(request, metadata) {
|
|
560
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
561
|
+
'/ondewo.nlu.AiServices/ExtractEntitiesFuzzy',
|
|
562
|
+
request,
|
|
563
|
+
metadata || {},
|
|
564
|
+
methodDescriptor_AiServices_ExtractEntitiesFuzzy);
|
|
565
|
+
};
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
module.exports = proto.ondewo.nlu;
|
|
569
|
+
|