@ondewo/nlu-client-typescript 6.0.0 → 6.1.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 +20 -0
- package/api/ondewo/nlu/agent_pb.js +498 -322
- package/api/ondewo/nlu/aiservices_pb.js +124 -124
- package/api/ondewo/nlu/ccai_project_pb.d.ts +11 -0
- package/api/ondewo/nlu/ccai_project_pb.js +81 -70
- 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_pb.js +21 -21
- package/api/ondewo/nlu/project_role_pb.js +25 -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.js +366 -366
- package/api/ondewo/nlu/user_pb.d.ts +6 -0
- package/api/ondewo/nlu/user_pb.js +122 -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 +1 -1
|
@@ -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<
|
|
@@ -641,6 +641,26 @@ export namespace RestoreAgentRequest {
|
|
|
641
641
|
}
|
|
642
642
|
}
|
|
643
643
|
|
|
644
|
+
export class MigrateAgentRequest extends jspb.Message {
|
|
645
|
+
getAgentContent(): Uint8Array | string;
|
|
646
|
+
getAgentContent_asU8(): Uint8Array;
|
|
647
|
+
getAgentContent_asB64(): string;
|
|
648
|
+
setAgentContent(value: Uint8Array | string): MigrateAgentRequest;
|
|
649
|
+
|
|
650
|
+
serializeBinary(): Uint8Array;
|
|
651
|
+
toObject(includeInstance?: boolean): MigrateAgentRequest.AsObject;
|
|
652
|
+
static toObject(includeInstance: boolean, msg: MigrateAgentRequest): MigrateAgentRequest.AsObject;
|
|
653
|
+
static serializeBinaryToWriter(message: MigrateAgentRequest, writer: jspb.BinaryWriter): void;
|
|
654
|
+
static deserializeBinary(bytes: Uint8Array): MigrateAgentRequest;
|
|
655
|
+
static deserializeBinaryFromReader(message: MigrateAgentRequest, reader: jspb.BinaryReader): MigrateAgentRequest;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
export namespace MigrateAgentRequest {
|
|
659
|
+
export type AsObject = {
|
|
660
|
+
agentContent: Uint8Array | string,
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
|
|
644
664
|
export class GetAgentStatisticsRequest extends jspb.Message {
|
|
645
665
|
getParent(): string;
|
|
646
666
|
setParent(value: string): GetAgentStatisticsRequest;
|