@ondewo/nlu-client-typescript 4.6.0 → 4.8.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.
Files changed (37) hide show
  1. package/api/ondewo/nlu/agent_grpc_web_pb.d.ts +61 -0
  2. package/api/ondewo/nlu/agent_grpc_web_pb.js +308 -1
  3. package/api/ondewo/nlu/agent_pb.d.ts +222 -1
  4. package/api/ondewo/nlu/agent_pb.js +1814 -30
  5. package/api/ondewo/nlu/ccai_project_grpc_web_pb.d.ts +79 -0
  6. package/api/ondewo/nlu/ccai_project_grpc_web_pb.js +388 -0
  7. package/api/ondewo/nlu/ccai_project_pb.d.ts +582 -0
  8. package/api/ondewo/nlu/ccai_project_pb.js +4137 -0
  9. package/api/ondewo/nlu/common_pb.d.ts +456 -0
  10. package/api/ondewo/nlu/common_pb.js +3523 -4
  11. package/api/ondewo/nlu/context_grpc_web_pb.js +2 -0
  12. package/api/ondewo/nlu/context_pb.d.ts +41 -0
  13. package/api/ondewo/nlu/context_pb.js +328 -2
  14. package/api/ondewo/nlu/entity_type_grpc_web_pb.js +2 -0
  15. package/api/ondewo/nlu/entity_type_pb.d.ts +41 -0
  16. package/api/ondewo/nlu/entity_type_pb.js +328 -2
  17. package/api/ondewo/nlu/intent_pb.d.ts +120 -0
  18. package/api/ondewo/nlu/intent_pb.js +1058 -86
  19. package/api/ondewo/nlu/operation_metadata_pb.d.ts +21 -0
  20. package/api/ondewo/nlu/operation_metadata_pb.js +165 -2
  21. package/api/ondewo/nlu/project_role_grpc_web_pb.js +3 -1
  22. package/api/ondewo/nlu/project_role_pb.d.ts +22 -1
  23. package/api/ondewo/nlu/project_role_pb.js +167 -3
  24. package/api/ondewo/nlu/session_grpc_web_pb.d.ts +109 -0
  25. package/api/ondewo/nlu/session_grpc_web_pb.js +553 -0
  26. package/api/ondewo/nlu/session_pb.d.ts +637 -0
  27. package/api/ondewo/nlu/session_pb.js +10508 -5294
  28. package/api/ondewo/nlu/user_grpc_web_pb.d.ts +85 -0
  29. package/api/ondewo/nlu/user_grpc_web_pb.js +431 -0
  30. package/api/ondewo/nlu/user_pb.d.ts +284 -0
  31. package/api/ondewo/nlu/user_pb.js +3418 -1024
  32. package/api/ondewo/nlu/webhook_grpc_web_pb.d.ts +37 -0
  33. package/api/ondewo/nlu/webhook_grpc_web_pb.js +191 -2
  34. package/api/ondewo/nlu/webhook_pb.d.ts +188 -5
  35. package/api/ondewo/nlu/webhook_pb.js +1530 -34
  36. package/package.json +1 -1
  37. package/public-api.d.ts +27 -25
@@ -0,0 +1,79 @@
1
+ import * as grpcWeb from 'grpc-web';
2
+
3
+ import * as ondewo_nlu_ccai_project_pb from '../../ondewo/nlu/ccai_project_pb';
4
+
5
+
6
+ export class CcaiProjectsClient {
7
+ constructor (hostname: string,
8
+ credentials?: null | { [index: string]: string; },
9
+ options?: null | { [index: string]: any; });
10
+
11
+ getCcaiProject(
12
+ request: ondewo_nlu_ccai_project_pb.GetCcaiProjectRequest,
13
+ metadata: grpcWeb.Metadata | undefined,
14
+ callback: (err: grpcWeb.RpcError,
15
+ response: ondewo_nlu_ccai_project_pb.CcaiProject) => void
16
+ ): grpcWeb.ClientReadableStream<ondewo_nlu_ccai_project_pb.CcaiProject>;
17
+
18
+ createCcaiProject(
19
+ request: ondewo_nlu_ccai_project_pb.CreateCcaiProjectRequest,
20
+ metadata: grpcWeb.Metadata | undefined,
21
+ callback: (err: grpcWeb.RpcError,
22
+ response: ondewo_nlu_ccai_project_pb.CreateCcaiProjectResponse) => void
23
+ ): grpcWeb.ClientReadableStream<ondewo_nlu_ccai_project_pb.CreateCcaiProjectResponse>;
24
+
25
+ deleteCcaiProject(
26
+ request: ondewo_nlu_ccai_project_pb.DeleteCcaiProjectRequest,
27
+ metadata: grpcWeb.Metadata | undefined,
28
+ callback: (err: grpcWeb.RpcError,
29
+ response: ondewo_nlu_ccai_project_pb.DeleteCcaiProjectResponse) => void
30
+ ): grpcWeb.ClientReadableStream<ondewo_nlu_ccai_project_pb.DeleteCcaiProjectResponse>;
31
+
32
+ listCcaiProjects(
33
+ request: ondewo_nlu_ccai_project_pb.ListCcaiProjectsRequest,
34
+ metadata: grpcWeb.Metadata | undefined,
35
+ callback: (err: grpcWeb.RpcError,
36
+ response: ondewo_nlu_ccai_project_pb.ListCcaiProjectsResponse) => void
37
+ ): grpcWeb.ClientReadableStream<ondewo_nlu_ccai_project_pb.ListCcaiProjectsResponse>;
38
+
39
+ updateCcaiProject(
40
+ request: ondewo_nlu_ccai_project_pb.UpdateCcaiProjectRequest,
41
+ metadata: grpcWeb.Metadata | undefined,
42
+ callback: (err: grpcWeb.RpcError,
43
+ response: ondewo_nlu_ccai_project_pb.UpdateCcaiProjectResponse) => void
44
+ ): grpcWeb.ClientReadableStream<ondewo_nlu_ccai_project_pb.UpdateCcaiProjectResponse>;
45
+
46
+ }
47
+
48
+ export class CcaiProjectsPromiseClient {
49
+ constructor (hostname: string,
50
+ credentials?: null | { [index: string]: string; },
51
+ options?: null | { [index: string]: any; });
52
+
53
+ getCcaiProject(
54
+ request: ondewo_nlu_ccai_project_pb.GetCcaiProjectRequest,
55
+ metadata?: grpcWeb.Metadata
56
+ ): Promise<ondewo_nlu_ccai_project_pb.CcaiProject>;
57
+
58
+ createCcaiProject(
59
+ request: ondewo_nlu_ccai_project_pb.CreateCcaiProjectRequest,
60
+ metadata?: grpcWeb.Metadata
61
+ ): Promise<ondewo_nlu_ccai_project_pb.CreateCcaiProjectResponse>;
62
+
63
+ deleteCcaiProject(
64
+ request: ondewo_nlu_ccai_project_pb.DeleteCcaiProjectRequest,
65
+ metadata?: grpcWeb.Metadata
66
+ ): Promise<ondewo_nlu_ccai_project_pb.DeleteCcaiProjectResponse>;
67
+
68
+ listCcaiProjects(
69
+ request: ondewo_nlu_ccai_project_pb.ListCcaiProjectsRequest,
70
+ metadata?: grpcWeb.Metadata
71
+ ): Promise<ondewo_nlu_ccai_project_pb.ListCcaiProjectsResponse>;
72
+
73
+ updateCcaiProject(
74
+ request: ondewo_nlu_ccai_project_pb.UpdateCcaiProjectRequest,
75
+ metadata?: grpcWeb.Metadata
76
+ ): Promise<ondewo_nlu_ccai_project_pb.UpdateCcaiProjectResponse>;
77
+
78
+ }
79
+
@@ -0,0 +1,388 @@
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_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js')
20
+
21
+ var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js')
22
+
23
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js')
24
+
25
+ var ondewo_nlu_common_pb = require('../../ondewo/nlu/common_pb.js')
26
+ const proto = {};
27
+ proto.ondewo = {};
28
+ proto.ondewo.nlu = require('./ccai_project_pb.js');
29
+
30
+ /**
31
+ * @param {string} hostname
32
+ * @param {?Object} credentials
33
+ * @param {?grpc.web.ClientOptions} options
34
+ * @constructor
35
+ * @struct
36
+ * @final
37
+ */
38
+ proto.ondewo.nlu.CcaiProjectsClient =
39
+ function(hostname, credentials, options) {
40
+ if (!options) options = {};
41
+ options.format = 'binary';
42
+
43
+ /**
44
+ * @private @const {!grpc.web.GrpcWebClientBase} The client
45
+ */
46
+ this.client_ = new grpc.web.GrpcWebClientBase(options);
47
+
48
+ /**
49
+ * @private @const {string} The hostname
50
+ */
51
+ this.hostname_ = hostname;
52
+
53
+ };
54
+
55
+
56
+ /**
57
+ * @param {string} hostname
58
+ * @param {?Object} credentials
59
+ * @param {?grpc.web.ClientOptions} options
60
+ * @constructor
61
+ * @struct
62
+ * @final
63
+ */
64
+ proto.ondewo.nlu.CcaiProjectsPromiseClient =
65
+ function(hostname, credentials, options) {
66
+ if (!options) options = {};
67
+ options.format = 'binary';
68
+
69
+ /**
70
+ * @private @const {!grpc.web.GrpcWebClientBase} The client
71
+ */
72
+ this.client_ = new grpc.web.GrpcWebClientBase(options);
73
+
74
+ /**
75
+ * @private @const {string} The hostname
76
+ */
77
+ this.hostname_ = hostname;
78
+
79
+ };
80
+
81
+
82
+ /**
83
+ * @const
84
+ * @type {!grpc.web.MethodDescriptor<
85
+ * !proto.ondewo.nlu.GetCcaiProjectRequest,
86
+ * !proto.ondewo.nlu.CcaiProject>}
87
+ */
88
+ const methodDescriptor_CcaiProjects_GetCcaiProject = new grpc.web.MethodDescriptor(
89
+ '/ondewo.nlu.CcaiProjects/GetCcaiProject',
90
+ grpc.web.MethodType.UNARY,
91
+ proto.ondewo.nlu.GetCcaiProjectRequest,
92
+ proto.ondewo.nlu.CcaiProject,
93
+ /**
94
+ * @param {!proto.ondewo.nlu.GetCcaiProjectRequest} request
95
+ * @return {!Uint8Array}
96
+ */
97
+ function(request) {
98
+ return request.serializeBinary();
99
+ },
100
+ proto.ondewo.nlu.CcaiProject.deserializeBinary
101
+ );
102
+
103
+
104
+ /**
105
+ * @param {!proto.ondewo.nlu.GetCcaiProjectRequest} request The
106
+ * request proto
107
+ * @param {?Object<string, string>} metadata User defined
108
+ * call metadata
109
+ * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.CcaiProject)}
110
+ * callback The callback function(error, response)
111
+ * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.CcaiProject>|undefined}
112
+ * The XHR Node Readable Stream
113
+ */
114
+ proto.ondewo.nlu.CcaiProjectsClient.prototype.getCcaiProject =
115
+ function(request, metadata, callback) {
116
+ return this.client_.rpcCall(this.hostname_ +
117
+ '/ondewo.nlu.CcaiProjects/GetCcaiProject',
118
+ request,
119
+ metadata || {},
120
+ methodDescriptor_CcaiProjects_GetCcaiProject,
121
+ callback);
122
+ };
123
+
124
+
125
+ /**
126
+ * @param {!proto.ondewo.nlu.GetCcaiProjectRequest} request The
127
+ * request proto
128
+ * @param {?Object<string, string>=} metadata User defined
129
+ * call metadata
130
+ * @return {!Promise<!proto.ondewo.nlu.CcaiProject>}
131
+ * Promise that resolves to the response
132
+ */
133
+ proto.ondewo.nlu.CcaiProjectsPromiseClient.prototype.getCcaiProject =
134
+ function(request, metadata) {
135
+ return this.client_.unaryCall(this.hostname_ +
136
+ '/ondewo.nlu.CcaiProjects/GetCcaiProject',
137
+ request,
138
+ metadata || {},
139
+ methodDescriptor_CcaiProjects_GetCcaiProject);
140
+ };
141
+
142
+
143
+ /**
144
+ * @const
145
+ * @type {!grpc.web.MethodDescriptor<
146
+ * !proto.ondewo.nlu.CreateCcaiProjectRequest,
147
+ * !proto.ondewo.nlu.CreateCcaiProjectResponse>}
148
+ */
149
+ const methodDescriptor_CcaiProjects_CreateCcaiProject = new grpc.web.MethodDescriptor(
150
+ '/ondewo.nlu.CcaiProjects/CreateCcaiProject',
151
+ grpc.web.MethodType.UNARY,
152
+ proto.ondewo.nlu.CreateCcaiProjectRequest,
153
+ proto.ondewo.nlu.CreateCcaiProjectResponse,
154
+ /**
155
+ * @param {!proto.ondewo.nlu.CreateCcaiProjectRequest} request
156
+ * @return {!Uint8Array}
157
+ */
158
+ function(request) {
159
+ return request.serializeBinary();
160
+ },
161
+ proto.ondewo.nlu.CreateCcaiProjectResponse.deserializeBinary
162
+ );
163
+
164
+
165
+ /**
166
+ * @param {!proto.ondewo.nlu.CreateCcaiProjectRequest} request The
167
+ * request proto
168
+ * @param {?Object<string, string>} metadata User defined
169
+ * call metadata
170
+ * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.CreateCcaiProjectResponse)}
171
+ * callback The callback function(error, response)
172
+ * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.CreateCcaiProjectResponse>|undefined}
173
+ * The XHR Node Readable Stream
174
+ */
175
+ proto.ondewo.nlu.CcaiProjectsClient.prototype.createCcaiProject =
176
+ function(request, metadata, callback) {
177
+ return this.client_.rpcCall(this.hostname_ +
178
+ '/ondewo.nlu.CcaiProjects/CreateCcaiProject',
179
+ request,
180
+ metadata || {},
181
+ methodDescriptor_CcaiProjects_CreateCcaiProject,
182
+ callback);
183
+ };
184
+
185
+
186
+ /**
187
+ * @param {!proto.ondewo.nlu.CreateCcaiProjectRequest} request The
188
+ * request proto
189
+ * @param {?Object<string, string>=} metadata User defined
190
+ * call metadata
191
+ * @return {!Promise<!proto.ondewo.nlu.CreateCcaiProjectResponse>}
192
+ * Promise that resolves to the response
193
+ */
194
+ proto.ondewo.nlu.CcaiProjectsPromiseClient.prototype.createCcaiProject =
195
+ function(request, metadata) {
196
+ return this.client_.unaryCall(this.hostname_ +
197
+ '/ondewo.nlu.CcaiProjects/CreateCcaiProject',
198
+ request,
199
+ metadata || {},
200
+ methodDescriptor_CcaiProjects_CreateCcaiProject);
201
+ };
202
+
203
+
204
+ /**
205
+ * @const
206
+ * @type {!grpc.web.MethodDescriptor<
207
+ * !proto.ondewo.nlu.DeleteCcaiProjectRequest,
208
+ * !proto.ondewo.nlu.DeleteCcaiProjectResponse>}
209
+ */
210
+ const methodDescriptor_CcaiProjects_DeleteCcaiProject = new grpc.web.MethodDescriptor(
211
+ '/ondewo.nlu.CcaiProjects/DeleteCcaiProject',
212
+ grpc.web.MethodType.UNARY,
213
+ proto.ondewo.nlu.DeleteCcaiProjectRequest,
214
+ proto.ondewo.nlu.DeleteCcaiProjectResponse,
215
+ /**
216
+ * @param {!proto.ondewo.nlu.DeleteCcaiProjectRequest} request
217
+ * @return {!Uint8Array}
218
+ */
219
+ function(request) {
220
+ return request.serializeBinary();
221
+ },
222
+ proto.ondewo.nlu.DeleteCcaiProjectResponse.deserializeBinary
223
+ );
224
+
225
+
226
+ /**
227
+ * @param {!proto.ondewo.nlu.DeleteCcaiProjectRequest} request The
228
+ * request proto
229
+ * @param {?Object<string, string>} metadata User defined
230
+ * call metadata
231
+ * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.DeleteCcaiProjectResponse)}
232
+ * callback The callback function(error, response)
233
+ * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.DeleteCcaiProjectResponse>|undefined}
234
+ * The XHR Node Readable Stream
235
+ */
236
+ proto.ondewo.nlu.CcaiProjectsClient.prototype.deleteCcaiProject =
237
+ function(request, metadata, callback) {
238
+ return this.client_.rpcCall(this.hostname_ +
239
+ '/ondewo.nlu.CcaiProjects/DeleteCcaiProject',
240
+ request,
241
+ metadata || {},
242
+ methodDescriptor_CcaiProjects_DeleteCcaiProject,
243
+ callback);
244
+ };
245
+
246
+
247
+ /**
248
+ * @param {!proto.ondewo.nlu.DeleteCcaiProjectRequest} request The
249
+ * request proto
250
+ * @param {?Object<string, string>=} metadata User defined
251
+ * call metadata
252
+ * @return {!Promise<!proto.ondewo.nlu.DeleteCcaiProjectResponse>}
253
+ * Promise that resolves to the response
254
+ */
255
+ proto.ondewo.nlu.CcaiProjectsPromiseClient.prototype.deleteCcaiProject =
256
+ function(request, metadata) {
257
+ return this.client_.unaryCall(this.hostname_ +
258
+ '/ondewo.nlu.CcaiProjects/DeleteCcaiProject',
259
+ request,
260
+ metadata || {},
261
+ methodDescriptor_CcaiProjects_DeleteCcaiProject);
262
+ };
263
+
264
+
265
+ /**
266
+ * @const
267
+ * @type {!grpc.web.MethodDescriptor<
268
+ * !proto.ondewo.nlu.ListCcaiProjectsRequest,
269
+ * !proto.ondewo.nlu.ListCcaiProjectsResponse>}
270
+ */
271
+ const methodDescriptor_CcaiProjects_ListCcaiProjects = new grpc.web.MethodDescriptor(
272
+ '/ondewo.nlu.CcaiProjects/ListCcaiProjects',
273
+ grpc.web.MethodType.UNARY,
274
+ proto.ondewo.nlu.ListCcaiProjectsRequest,
275
+ proto.ondewo.nlu.ListCcaiProjectsResponse,
276
+ /**
277
+ * @param {!proto.ondewo.nlu.ListCcaiProjectsRequest} request
278
+ * @return {!Uint8Array}
279
+ */
280
+ function(request) {
281
+ return request.serializeBinary();
282
+ },
283
+ proto.ondewo.nlu.ListCcaiProjectsResponse.deserializeBinary
284
+ );
285
+
286
+
287
+ /**
288
+ * @param {!proto.ondewo.nlu.ListCcaiProjectsRequest} request The
289
+ * request proto
290
+ * @param {?Object<string, string>} metadata User defined
291
+ * call metadata
292
+ * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.ListCcaiProjectsResponse)}
293
+ * callback The callback function(error, response)
294
+ * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.ListCcaiProjectsResponse>|undefined}
295
+ * The XHR Node Readable Stream
296
+ */
297
+ proto.ondewo.nlu.CcaiProjectsClient.prototype.listCcaiProjects =
298
+ function(request, metadata, callback) {
299
+ return this.client_.rpcCall(this.hostname_ +
300
+ '/ondewo.nlu.CcaiProjects/ListCcaiProjects',
301
+ request,
302
+ metadata || {},
303
+ methodDescriptor_CcaiProjects_ListCcaiProjects,
304
+ callback);
305
+ };
306
+
307
+
308
+ /**
309
+ * @param {!proto.ondewo.nlu.ListCcaiProjectsRequest} request The
310
+ * request proto
311
+ * @param {?Object<string, string>=} metadata User defined
312
+ * call metadata
313
+ * @return {!Promise<!proto.ondewo.nlu.ListCcaiProjectsResponse>}
314
+ * Promise that resolves to the response
315
+ */
316
+ proto.ondewo.nlu.CcaiProjectsPromiseClient.prototype.listCcaiProjects =
317
+ function(request, metadata) {
318
+ return this.client_.unaryCall(this.hostname_ +
319
+ '/ondewo.nlu.CcaiProjects/ListCcaiProjects',
320
+ request,
321
+ metadata || {},
322
+ methodDescriptor_CcaiProjects_ListCcaiProjects);
323
+ };
324
+
325
+
326
+ /**
327
+ * @const
328
+ * @type {!grpc.web.MethodDescriptor<
329
+ * !proto.ondewo.nlu.UpdateCcaiProjectRequest,
330
+ * !proto.ondewo.nlu.UpdateCcaiProjectResponse>}
331
+ */
332
+ const methodDescriptor_CcaiProjects_UpdateCcaiProject = new grpc.web.MethodDescriptor(
333
+ '/ondewo.nlu.CcaiProjects/UpdateCcaiProject',
334
+ grpc.web.MethodType.UNARY,
335
+ proto.ondewo.nlu.UpdateCcaiProjectRequest,
336
+ proto.ondewo.nlu.UpdateCcaiProjectResponse,
337
+ /**
338
+ * @param {!proto.ondewo.nlu.UpdateCcaiProjectRequest} request
339
+ * @return {!Uint8Array}
340
+ */
341
+ function(request) {
342
+ return request.serializeBinary();
343
+ },
344
+ proto.ondewo.nlu.UpdateCcaiProjectResponse.deserializeBinary
345
+ );
346
+
347
+
348
+ /**
349
+ * @param {!proto.ondewo.nlu.UpdateCcaiProjectRequest} request The
350
+ * request proto
351
+ * @param {?Object<string, string>} metadata User defined
352
+ * call metadata
353
+ * @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.UpdateCcaiProjectResponse)}
354
+ * callback The callback function(error, response)
355
+ * @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.UpdateCcaiProjectResponse>|undefined}
356
+ * The XHR Node Readable Stream
357
+ */
358
+ proto.ondewo.nlu.CcaiProjectsClient.prototype.updateCcaiProject =
359
+ function(request, metadata, callback) {
360
+ return this.client_.rpcCall(this.hostname_ +
361
+ '/ondewo.nlu.CcaiProjects/UpdateCcaiProject',
362
+ request,
363
+ metadata || {},
364
+ methodDescriptor_CcaiProjects_UpdateCcaiProject,
365
+ callback);
366
+ };
367
+
368
+
369
+ /**
370
+ * @param {!proto.ondewo.nlu.UpdateCcaiProjectRequest} request The
371
+ * request proto
372
+ * @param {?Object<string, string>=} metadata User defined
373
+ * call metadata
374
+ * @return {!Promise<!proto.ondewo.nlu.UpdateCcaiProjectResponse>}
375
+ * Promise that resolves to the response
376
+ */
377
+ proto.ondewo.nlu.CcaiProjectsPromiseClient.prototype.updateCcaiProject =
378
+ function(request, metadata) {
379
+ return this.client_.unaryCall(this.hostname_ +
380
+ '/ondewo.nlu.CcaiProjects/UpdateCcaiProject',
381
+ request,
382
+ metadata || {},
383
+ methodDescriptor_CcaiProjects_UpdateCcaiProject);
384
+ };
385
+
386
+
387
+ module.exports = proto.ondewo.nlu;
388
+