@ondewo/nlu-client-typescript 6.0.0 → 6.2.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/api/google/protobuf/any_pb.js +2 -2
- package/api/google/protobuf/field_mask_pb.js +1 -1
- package/api/google/protobuf/struct_pb.js +8 -8
- package/api/google/protobuf/timestamp_pb.js +2 -2
- package/api/google/rpc/status_pb.js +3 -3
- package/api/google/type/latlng_pb.js +2 -2
- package/api/ondewo/nlu/agent_grpc_web_pb.d.ts +12 -0
- package/api/ondewo/nlu/agent_grpc_web_pb.js +61 -0
- package/api/ondewo/nlu/agent_pb.d.ts +59 -0
- package/api/ondewo/nlu/agent_pb.js +702 -322
- package/api/ondewo/nlu/aiservices_grpc_web_pb.js +2 -0
- package/api/ondewo/nlu/aiservices_pb.d.ts +111 -0
- package/api/ondewo/nlu/aiservices_pb.js +637 -125
- package/api/ondewo/nlu/ccai_project_pb.d.ts +56 -0
- package/api/ondewo/nlu/ccai_project_pb.js +292 -71
- package/api/ondewo/nlu/common_pb.js +53 -53
- package/api/ondewo/nlu/context_pb.js +27 -27
- package/api/ondewo/nlu/entity_type_pb.js +81 -81
- package/api/ondewo/nlu/intent_pb.js +244 -244
- package/api/ondewo/nlu/operation_metadata_pb.js +22 -22
- package/api/ondewo/nlu/operations_grpc_web_pb.js +2 -0
- package/api/ondewo/nlu/operations_pb.d.ts +23 -0
- package/api/ondewo/nlu/operations_pb.js +125 -21
- package/api/ondewo/nlu/project_role_pb.d.ts +22 -0
- package/api/ondewo/nlu/project_role_pb.js +127 -25
- package/api/ondewo/nlu/project_statistics_pb.js +7 -7
- package/api/ondewo/nlu/server_statistics_pb.js +1 -1
- package/api/ondewo/nlu/session_pb.d.ts +198 -0
- package/api/ondewo/nlu/session_pb.js +1312 -394
- package/api/ondewo/nlu/user_pb.d.ts +83 -0
- package/api/ondewo/nlu/user_pb.js +479 -71
- package/api/ondewo/nlu/utility_pb.js +79 -79
- package/api/ondewo/nlu/webhook_pb.js +31 -31
- package/api/ondewo/qa/qa_pb.js +24 -24
- package/package.json +3 -3
|
@@ -75,8 +75,8 @@ proto.google.protobuf.Any.prototype.toObject = function(opt_includeInstance) {
|
|
|
75
75
|
*/
|
|
76
76
|
proto.google.protobuf.Any.toObject = function(includeInstance, msg) {
|
|
77
77
|
var f, obj = {
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
typeUrl: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
79
|
+
value: msg.getValue_asB64()
|
|
80
80
|
};
|
|
81
81
|
|
|
82
82
|
if (includeInstance) {
|
|
@@ -82,7 +82,7 @@ proto.google.protobuf.FieldMask.prototype.toObject = function(opt_includeInstanc
|
|
|
82
82
|
*/
|
|
83
83
|
proto.google.protobuf.FieldMask.toObject = function(includeInstance, msg) {
|
|
84
84
|
var f, obj = {
|
|
85
|
-
|
|
85
|
+
pathsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
if (includeInstance) {
|
|
@@ -121,7 +121,7 @@ proto.google.protobuf.Struct.prototype.toObject = function(opt_includeInstance)
|
|
|
121
121
|
*/
|
|
122
122
|
proto.google.protobuf.Struct.toObject = function(includeInstance, msg) {
|
|
123
123
|
var f, obj = {
|
|
124
|
-
|
|
124
|
+
fieldsMap: (f = msg.getFieldsMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : []
|
|
125
125
|
};
|
|
126
126
|
|
|
127
127
|
if (includeInstance) {
|
|
@@ -285,12 +285,12 @@ proto.google.protobuf.Value.prototype.toObject = function(opt_includeInstance) {
|
|
|
285
285
|
*/
|
|
286
286
|
proto.google.protobuf.Value.toObject = function(includeInstance, msg) {
|
|
287
287
|
var f, obj = {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
288
|
+
nullValue: (f = jspb.Message.getField(msg, 1)) == null ? undefined : f,
|
|
289
|
+
numberValue: (f = jspb.Message.getOptionalFloatingPointField(msg, 2)) == null ? undefined : f,
|
|
290
|
+
stringValue: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f,
|
|
291
|
+
boolValue: (f = jspb.Message.getBooleanField(msg, 4)) == null ? undefined : f,
|
|
292
|
+
structValue: (f = msg.getStructValue()) && proto.google.protobuf.Struct.toObject(includeInstance, f),
|
|
293
|
+
listValue: (f = msg.getListValue()) && proto.google.protobuf.ListValue.toObject(includeInstance, f)
|
|
294
294
|
};
|
|
295
295
|
|
|
296
296
|
if (includeInstance) {
|
|
@@ -686,7 +686,7 @@ proto.google.protobuf.ListValue.prototype.toObject = function(opt_includeInstanc
|
|
|
686
686
|
*/
|
|
687
687
|
proto.google.protobuf.ListValue.toObject = function(includeInstance, msg) {
|
|
688
688
|
var f, obj = {
|
|
689
|
-
|
|
689
|
+
valuesList: jspb.Message.toObjectList(msg.getValuesList(),
|
|
690
690
|
proto.google.protobuf.Value.toObject, includeInstance)
|
|
691
691
|
};
|
|
692
692
|
|
|
@@ -75,8 +75,8 @@ proto.google.protobuf.Timestamp.prototype.toObject = function(opt_includeInstanc
|
|
|
75
75
|
*/
|
|
76
76
|
proto.google.protobuf.Timestamp.toObject = function(includeInstance, msg) {
|
|
77
77
|
var f, obj = {
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
seconds: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
79
|
+
nanos: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
80
80
|
};
|
|
81
81
|
|
|
82
82
|
if (includeInstance) {
|
|
@@ -84,9 +84,9 @@ proto.google.rpc.Status.prototype.toObject = function(opt_includeInstance) {
|
|
|
84
84
|
*/
|
|
85
85
|
proto.google.rpc.Status.toObject = function(includeInstance, msg) {
|
|
86
86
|
var f, obj = {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
code: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
88
|
+
message: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
89
|
+
detailsList: jspb.Message.toObjectList(msg.getDetailsList(),
|
|
90
90
|
google_protobuf_any_pb.Any.toObject, includeInstance)
|
|
91
91
|
};
|
|
92
92
|
|
|
@@ -75,8 +75,8 @@ proto.google.type.LatLng.prototype.toObject = function(opt_includeInstance) {
|
|
|
75
75
|
*/
|
|
76
76
|
proto.google.type.LatLng.toObject = function(includeInstance, msg) {
|
|
77
77
|
var f, obj = {
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
latitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
79
|
+
longitude: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0)
|
|
80
80
|
};
|
|
81
81
|
|
|
82
82
|
if (includeInstance) {
|
|
@@ -136,6 +136,13 @@ export class AgentsClient {
|
|
|
136
136
|
response: ondewo_nlu_operations_pb.Operation) => void
|
|
137
137
|
): grpcWeb.ClientReadableStream<ondewo_nlu_operations_pb.Operation>;
|
|
138
138
|
|
|
139
|
+
migrateAgent(
|
|
140
|
+
request: ondewo_nlu_agent_pb.MigrateAgentRequest,
|
|
141
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
142
|
+
callback: (err: grpcWeb.RpcError,
|
|
143
|
+
response: ondewo_nlu_operations_pb.Operation) => void
|
|
144
|
+
): grpcWeb.ClientReadableStream<ondewo_nlu_operations_pb.Operation>;
|
|
145
|
+
|
|
139
146
|
optimizeRankingMatch(
|
|
140
147
|
request: ondewo_nlu_agent_pb.OptimizeRankingMatchRequest,
|
|
141
148
|
metadata: grpcWeb.Metadata | undefined,
|
|
@@ -387,6 +394,11 @@ export class AgentsPromiseClient {
|
|
|
387
394
|
metadata?: grpcWeb.Metadata
|
|
388
395
|
): Promise<ondewo_nlu_operations_pb.Operation>;
|
|
389
396
|
|
|
397
|
+
migrateAgent(
|
|
398
|
+
request: ondewo_nlu_agent_pb.MigrateAgentRequest,
|
|
399
|
+
metadata?: grpcWeb.Metadata
|
|
400
|
+
): Promise<ondewo_nlu_operations_pb.Operation>;
|
|
401
|
+
|
|
390
402
|
optimizeRankingMatch(
|
|
391
403
|
request: ondewo_nlu_agent_pb.OptimizeRankingMatchRequest,
|
|
392
404
|
metadata?: grpcWeb.Metadata
|
|
@@ -1195,6 +1195,67 @@ proto.ondewo.nlu.AgentsPromiseClient.prototype.importAgent =
|
|
|
1195
1195
|
};
|
|
1196
1196
|
|
|
1197
1197
|
|
|
1198
|
+
/**
|
|
1199
|
+
* @const
|
|
1200
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
1201
|
+
* !proto.ondewo.nlu.MigrateAgentRequest,
|
|
1202
|
+
* !proto.ondewo.nlu.Operation>}
|
|
1203
|
+
*/
|
|
1204
|
+
const methodDescriptor_Agents_MigrateAgent = new grpc.web.MethodDescriptor(
|
|
1205
|
+
'/ondewo.nlu.Agents/MigrateAgent',
|
|
1206
|
+
grpc.web.MethodType.UNARY,
|
|
1207
|
+
proto.ondewo.nlu.MigrateAgentRequest,
|
|
1208
|
+
ondewo_nlu_operations_pb.Operation,
|
|
1209
|
+
/**
|
|
1210
|
+
* @param {!proto.ondewo.nlu.MigrateAgentRequest} request
|
|
1211
|
+
* @return {!Uint8Array}
|
|
1212
|
+
*/
|
|
1213
|
+
function(request) {
|
|
1214
|
+
return request.serializeBinary();
|
|
1215
|
+
},
|
|
1216
|
+
ondewo_nlu_operations_pb.Operation.deserializeBinary
|
|
1217
|
+
);
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* @param {!proto.ondewo.nlu.MigrateAgentRequest} request The
|
|
1222
|
+
* request proto
|
|
1223
|
+
* @param {?Object<string, string>} metadata User defined
|
|
1224
|
+
* call metadata
|
|
1225
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.Operation)}
|
|
1226
|
+
* callback The callback function(error, response)
|
|
1227
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.Operation>|undefined}
|
|
1228
|
+
* The XHR Node Readable Stream
|
|
1229
|
+
*/
|
|
1230
|
+
proto.ondewo.nlu.AgentsClient.prototype.migrateAgent =
|
|
1231
|
+
function(request, metadata, callback) {
|
|
1232
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
1233
|
+
'/ondewo.nlu.Agents/MigrateAgent',
|
|
1234
|
+
request,
|
|
1235
|
+
metadata || {},
|
|
1236
|
+
methodDescriptor_Agents_MigrateAgent,
|
|
1237
|
+
callback);
|
|
1238
|
+
};
|
|
1239
|
+
|
|
1240
|
+
|
|
1241
|
+
/**
|
|
1242
|
+
* @param {!proto.ondewo.nlu.MigrateAgentRequest} request The
|
|
1243
|
+
* request proto
|
|
1244
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
1245
|
+
* call metadata
|
|
1246
|
+
* @return {!Promise<!proto.ondewo.nlu.Operation>}
|
|
1247
|
+
* Promise that resolves to the response
|
|
1248
|
+
*/
|
|
1249
|
+
proto.ondewo.nlu.AgentsPromiseClient.prototype.migrateAgent =
|
|
1250
|
+
function(request, metadata) {
|
|
1251
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
1252
|
+
'/ondewo.nlu.Agents/MigrateAgent',
|
|
1253
|
+
request,
|
|
1254
|
+
metadata || {},
|
|
1255
|
+
methodDescriptor_Agents_MigrateAgent);
|
|
1256
|
+
};
|
|
1257
|
+
|
|
1258
|
+
|
|
1198
1259
|
/**
|
|
1199
1260
|
* @const
|
|
1200
1261
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -222,6 +222,11 @@ export class GetAgentRequest extends jspb.Message {
|
|
|
222
222
|
getAgentView(): AgentView;
|
|
223
223
|
setAgentView(value: AgentView): GetAgentRequest;
|
|
224
224
|
|
|
225
|
+
getFieldMask(): google_protobuf_field_mask_pb.FieldMask | undefined;
|
|
226
|
+
setFieldMask(value?: google_protobuf_field_mask_pb.FieldMask): GetAgentRequest;
|
|
227
|
+
hasFieldMask(): boolean;
|
|
228
|
+
clearFieldMask(): GetAgentRequest;
|
|
229
|
+
|
|
225
230
|
serializeBinary(): Uint8Array;
|
|
226
231
|
toObject(includeInstance?: boolean): GetAgentRequest.AsObject;
|
|
227
232
|
static toObject(includeInstance: boolean, msg: GetAgentRequest): GetAgentRequest.AsObject;
|
|
@@ -234,6 +239,7 @@ export namespace GetAgentRequest {
|
|
|
234
239
|
export type AsObject = {
|
|
235
240
|
parent: string,
|
|
236
241
|
agentView: AgentView,
|
|
242
|
+
fieldMask?: google_protobuf_field_mask_pb.FieldMask.AsObject,
|
|
237
243
|
}
|
|
238
244
|
}
|
|
239
245
|
|
|
@@ -249,6 +255,11 @@ export class ListAgentsRequest extends jspb.Message {
|
|
|
249
255
|
hasSortByField(): boolean;
|
|
250
256
|
clearSortByField(): ListAgentsRequest;
|
|
251
257
|
|
|
258
|
+
getFieldMask(): google_protobuf_field_mask_pb.FieldMask | undefined;
|
|
259
|
+
setFieldMask(value?: google_protobuf_field_mask_pb.FieldMask): ListAgentsRequest;
|
|
260
|
+
hasFieldMask(): boolean;
|
|
261
|
+
clearFieldMask(): ListAgentsRequest;
|
|
262
|
+
|
|
252
263
|
serializeBinary(): Uint8Array;
|
|
253
264
|
toObject(includeInstance?: boolean): ListAgentsRequest.AsObject;
|
|
254
265
|
static toObject(includeInstance: boolean, msg: ListAgentsRequest): ListAgentsRequest.AsObject;
|
|
@@ -262,6 +273,12 @@ export namespace ListAgentsRequest {
|
|
|
262
273
|
agentView: AgentView,
|
|
263
274
|
pageToken: string,
|
|
264
275
|
sortByField?: AgentSorting.AsObject,
|
|
276
|
+
fieldMask?: google_protobuf_field_mask_pb.FieldMask.AsObject,
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export enum FieldMaskCase {
|
|
280
|
+
_FIELD_MASK_NOT_SET = 0,
|
|
281
|
+
FIELD_MASK = 4,
|
|
265
282
|
}
|
|
266
283
|
}
|
|
267
284
|
|
|
@@ -641,6 +658,26 @@ export namespace RestoreAgentRequest {
|
|
|
641
658
|
}
|
|
642
659
|
}
|
|
643
660
|
|
|
661
|
+
export class MigrateAgentRequest extends jspb.Message {
|
|
662
|
+
getAgentContent(): Uint8Array | string;
|
|
663
|
+
getAgentContent_asU8(): Uint8Array;
|
|
664
|
+
getAgentContent_asB64(): string;
|
|
665
|
+
setAgentContent(value: Uint8Array | string): MigrateAgentRequest;
|
|
666
|
+
|
|
667
|
+
serializeBinary(): Uint8Array;
|
|
668
|
+
toObject(includeInstance?: boolean): MigrateAgentRequest.AsObject;
|
|
669
|
+
static toObject(includeInstance: boolean, msg: MigrateAgentRequest): MigrateAgentRequest.AsObject;
|
|
670
|
+
static serializeBinaryToWriter(message: MigrateAgentRequest, writer: jspb.BinaryWriter): void;
|
|
671
|
+
static deserializeBinary(bytes: Uint8Array): MigrateAgentRequest;
|
|
672
|
+
static deserializeBinaryFromReader(message: MigrateAgentRequest, reader: jspb.BinaryReader): MigrateAgentRequest;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
export namespace MigrateAgentRequest {
|
|
676
|
+
export type AsObject = {
|
|
677
|
+
agentContent: Uint8Array | string,
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
|
|
644
681
|
export class GetAgentStatisticsRequest extends jspb.Message {
|
|
645
682
|
getParent(): string;
|
|
646
683
|
setParent(value: string): GetAgentStatisticsRequest;
|
|
@@ -846,6 +883,11 @@ export class ListUsersInProjectRequest extends jspb.Message {
|
|
|
846
883
|
getPageToken(): string;
|
|
847
884
|
setPageToken(value: string): ListUsersInProjectRequest;
|
|
848
885
|
|
|
886
|
+
getFieldMask(): google_protobuf_field_mask_pb.FieldMask | undefined;
|
|
887
|
+
setFieldMask(value?: google_protobuf_field_mask_pb.FieldMask): ListUsersInProjectRequest;
|
|
888
|
+
hasFieldMask(): boolean;
|
|
889
|
+
clearFieldMask(): ListUsersInProjectRequest;
|
|
890
|
+
|
|
849
891
|
serializeBinary(): Uint8Array;
|
|
850
892
|
toObject(includeInstance?: boolean): ListUsersInProjectRequest.AsObject;
|
|
851
893
|
static toObject(includeInstance: boolean, msg: ListUsersInProjectRequest): ListUsersInProjectRequest.AsObject;
|
|
@@ -858,6 +900,12 @@ export namespace ListUsersInProjectRequest {
|
|
|
858
900
|
export type AsObject = {
|
|
859
901
|
parent: string,
|
|
860
902
|
pageToken: string,
|
|
903
|
+
fieldMask?: google_protobuf_field_mask_pb.FieldMask.AsObject,
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
export enum FieldMaskCase {
|
|
907
|
+
_FIELD_MASK_NOT_SET = 0,
|
|
908
|
+
FIELD_MASK = 3,
|
|
861
909
|
}
|
|
862
910
|
}
|
|
863
911
|
|
|
@@ -939,6 +987,11 @@ export class ListProjectPermissionsRequest extends jspb.Message {
|
|
|
939
987
|
getPageToken(): string;
|
|
940
988
|
setPageToken(value: string): ListProjectPermissionsRequest;
|
|
941
989
|
|
|
990
|
+
getFieldMask(): google_protobuf_field_mask_pb.FieldMask | undefined;
|
|
991
|
+
setFieldMask(value?: google_protobuf_field_mask_pb.FieldMask): ListProjectPermissionsRequest;
|
|
992
|
+
hasFieldMask(): boolean;
|
|
993
|
+
clearFieldMask(): ListProjectPermissionsRequest;
|
|
994
|
+
|
|
942
995
|
serializeBinary(): Uint8Array;
|
|
943
996
|
toObject(includeInstance?: boolean): ListProjectPermissionsRequest.AsObject;
|
|
944
997
|
static toObject(includeInstance: boolean, msg: ListProjectPermissionsRequest): ListProjectPermissionsRequest.AsObject;
|
|
@@ -950,6 +1003,12 @@ export class ListProjectPermissionsRequest extends jspb.Message {
|
|
|
950
1003
|
export namespace ListProjectPermissionsRequest {
|
|
951
1004
|
export type AsObject = {
|
|
952
1005
|
pageToken: string,
|
|
1006
|
+
fieldMask?: google_protobuf_field_mask_pb.FieldMask.AsObject,
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
export enum FieldMaskCase {
|
|
1010
|
+
_FIELD_MASK_NOT_SET = 0,
|
|
1011
|
+
FIELD_MASK = 2,
|
|
953
1012
|
}
|
|
954
1013
|
}
|
|
955
1014
|
|