@ondewo/nlu-client-typescript 3.3.0 → 3.5.2
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/README.md +80 -13
- package/api/ondewo/nlu/agent_pb.d.ts +36 -0
- package/api/ondewo/nlu/agent_pb.js +372 -36
- package/api/ondewo/nlu/session_grpc_web_pb.d.ts +16 -4
- package/api/ondewo/nlu/session_grpc_web_pb.js +74 -13
- package/api/ondewo/nlu/session_pb.d.ts +37 -21
- package/api/ondewo/nlu/session_pb.js +248 -100
- package/package.json +1 -1
- package/public-api.d.ts +27 -27
|
@@ -58,6 +58,13 @@ export class SessionsClient {
|
|
|
58
58
|
response: ondewo_nlu_session_pb.ListSessionLabelsResponse) => void
|
|
59
59
|
): grpcWeb.ClientReadableStream<ondewo_nlu_session_pb.ListSessionLabelsResponse>;
|
|
60
60
|
|
|
61
|
+
listSessionLabelsOfAllSessions(
|
|
62
|
+
request: ondewo_nlu_session_pb.ListSessionLabelsOfAllSessionsRequest,
|
|
63
|
+
metadata: grpcWeb.Metadata | undefined,
|
|
64
|
+
callback: (err: grpcWeb.RpcError,
|
|
65
|
+
response: ondewo_nlu_session_pb.ListSessionLabelsResponse) => void
|
|
66
|
+
): grpcWeb.ClientReadableStream<ondewo_nlu_session_pb.ListSessionLabelsResponse>;
|
|
67
|
+
|
|
61
68
|
addSessionLabels(
|
|
62
69
|
request: ondewo_nlu_session_pb.AddSessionLabelsRequest,
|
|
63
70
|
metadata: grpcWeb.Metadata | undefined,
|
|
@@ -65,8 +72,8 @@ export class SessionsClient {
|
|
|
65
72
|
response: ondewo_nlu_session_pb.Session) => void
|
|
66
73
|
): grpcWeb.ClientReadableStream<ondewo_nlu_session_pb.Session>;
|
|
67
74
|
|
|
68
|
-
|
|
69
|
-
request: ondewo_nlu_session_pb.
|
|
75
|
+
deleteSessionLabels(
|
|
76
|
+
request: ondewo_nlu_session_pb.DeleteSessionLabelsRequest,
|
|
70
77
|
metadata: grpcWeb.Metadata | undefined,
|
|
71
78
|
callback: (err: grpcWeb.RpcError,
|
|
72
79
|
response: ondewo_nlu_session_pb.Session) => void
|
|
@@ -142,13 +149,18 @@ export class SessionsPromiseClient {
|
|
|
142
149
|
metadata?: grpcWeb.Metadata
|
|
143
150
|
): Promise<ondewo_nlu_session_pb.ListSessionLabelsResponse>;
|
|
144
151
|
|
|
152
|
+
listSessionLabelsOfAllSessions(
|
|
153
|
+
request: ondewo_nlu_session_pb.ListSessionLabelsOfAllSessionsRequest,
|
|
154
|
+
metadata?: grpcWeb.Metadata
|
|
155
|
+
): Promise<ondewo_nlu_session_pb.ListSessionLabelsResponse>;
|
|
156
|
+
|
|
145
157
|
addSessionLabels(
|
|
146
158
|
request: ondewo_nlu_session_pb.AddSessionLabelsRequest,
|
|
147
159
|
metadata?: grpcWeb.Metadata
|
|
148
160
|
): Promise<ondewo_nlu_session_pb.Session>;
|
|
149
161
|
|
|
150
|
-
|
|
151
|
-
request: ondewo_nlu_session_pb.
|
|
162
|
+
deleteSessionLabels(
|
|
163
|
+
request: ondewo_nlu_session_pb.DeleteSessionLabelsRequest,
|
|
152
164
|
metadata?: grpcWeb.Metadata
|
|
153
165
|
): Promise<ondewo_nlu_session_pb.Session>;
|
|
154
166
|
|
|
@@ -514,6 +514,67 @@ proto.ondewo.nlu.SessionsPromiseClient.prototype.listSessionLabels =
|
|
|
514
514
|
};
|
|
515
515
|
|
|
516
516
|
|
|
517
|
+
/**
|
|
518
|
+
* @const
|
|
519
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
520
|
+
* !proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest,
|
|
521
|
+
* !proto.ondewo.nlu.ListSessionLabelsResponse>}
|
|
522
|
+
*/
|
|
523
|
+
const methodDescriptor_Sessions_ListSessionLabelsOfAllSessions = new grpc.web.MethodDescriptor(
|
|
524
|
+
'/ondewo.nlu.Sessions/ListSessionLabelsOfAllSessions',
|
|
525
|
+
grpc.web.MethodType.UNARY,
|
|
526
|
+
proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest,
|
|
527
|
+
proto.ondewo.nlu.ListSessionLabelsResponse,
|
|
528
|
+
/**
|
|
529
|
+
* @param {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest} request
|
|
530
|
+
* @return {!Uint8Array}
|
|
531
|
+
*/
|
|
532
|
+
function(request) {
|
|
533
|
+
return request.serializeBinary();
|
|
534
|
+
},
|
|
535
|
+
proto.ondewo.nlu.ListSessionLabelsResponse.deserializeBinary
|
|
536
|
+
);
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* @param {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest} request The
|
|
541
|
+
* request proto
|
|
542
|
+
* @param {?Object<string, string>} metadata User defined
|
|
543
|
+
* call metadata
|
|
544
|
+
* @param {function(?grpc.web.RpcError, ?proto.ondewo.nlu.ListSessionLabelsResponse)}
|
|
545
|
+
* callback The callback function(error, response)
|
|
546
|
+
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.ListSessionLabelsResponse>|undefined}
|
|
547
|
+
* The XHR Node Readable Stream
|
|
548
|
+
*/
|
|
549
|
+
proto.ondewo.nlu.SessionsClient.prototype.listSessionLabelsOfAllSessions =
|
|
550
|
+
function(request, metadata, callback) {
|
|
551
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
552
|
+
'/ondewo.nlu.Sessions/ListSessionLabelsOfAllSessions',
|
|
553
|
+
request,
|
|
554
|
+
metadata || {},
|
|
555
|
+
methodDescriptor_Sessions_ListSessionLabelsOfAllSessions,
|
|
556
|
+
callback);
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* @param {!proto.ondewo.nlu.ListSessionLabelsOfAllSessionsRequest} request The
|
|
562
|
+
* request proto
|
|
563
|
+
* @param {?Object<string, string>=} metadata User defined
|
|
564
|
+
* call metadata
|
|
565
|
+
* @return {!Promise<!proto.ondewo.nlu.ListSessionLabelsResponse>}
|
|
566
|
+
* Promise that resolves to the response
|
|
567
|
+
*/
|
|
568
|
+
proto.ondewo.nlu.SessionsPromiseClient.prototype.listSessionLabelsOfAllSessions =
|
|
569
|
+
function(request, metadata) {
|
|
570
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
571
|
+
'/ondewo.nlu.Sessions/ListSessionLabelsOfAllSessions',
|
|
572
|
+
request,
|
|
573
|
+
metadata || {},
|
|
574
|
+
methodDescriptor_Sessions_ListSessionLabelsOfAllSessions);
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
|
|
517
578
|
/**
|
|
518
579
|
* @const
|
|
519
580
|
* @type {!grpc.web.MethodDescriptor<
|
|
@@ -578,16 +639,16 @@ proto.ondewo.nlu.SessionsPromiseClient.prototype.addSessionLabels =
|
|
|
578
639
|
/**
|
|
579
640
|
* @const
|
|
580
641
|
* @type {!grpc.web.MethodDescriptor<
|
|
581
|
-
* !proto.ondewo.nlu.
|
|
642
|
+
* !proto.ondewo.nlu.DeleteSessionLabelsRequest,
|
|
582
643
|
* !proto.ondewo.nlu.Session>}
|
|
583
644
|
*/
|
|
584
|
-
const
|
|
585
|
-
'/ondewo.nlu.Sessions/
|
|
645
|
+
const methodDescriptor_Sessions_DeleteSessionLabels = new grpc.web.MethodDescriptor(
|
|
646
|
+
'/ondewo.nlu.Sessions/DeleteSessionLabels',
|
|
586
647
|
grpc.web.MethodType.UNARY,
|
|
587
|
-
proto.ondewo.nlu.
|
|
648
|
+
proto.ondewo.nlu.DeleteSessionLabelsRequest,
|
|
588
649
|
proto.ondewo.nlu.Session,
|
|
589
650
|
/**
|
|
590
|
-
* @param {!proto.ondewo.nlu.
|
|
651
|
+
* @param {!proto.ondewo.nlu.DeleteSessionLabelsRequest} request
|
|
591
652
|
* @return {!Uint8Array}
|
|
592
653
|
*/
|
|
593
654
|
function(request) {
|
|
@@ -598,7 +659,7 @@ const methodDescriptor_Sessions_RemoveSessionLabels = new grpc.web.MethodDescrip
|
|
|
598
659
|
|
|
599
660
|
|
|
600
661
|
/**
|
|
601
|
-
* @param {!proto.ondewo.nlu.
|
|
662
|
+
* @param {!proto.ondewo.nlu.DeleteSessionLabelsRequest} request The
|
|
602
663
|
* request proto
|
|
603
664
|
* @param {?Object<string, string>} metadata User defined
|
|
604
665
|
* call metadata
|
|
@@ -607,32 +668,32 @@ const methodDescriptor_Sessions_RemoveSessionLabels = new grpc.web.MethodDescrip
|
|
|
607
668
|
* @return {!grpc.web.ClientReadableStream<!proto.ondewo.nlu.Session>|undefined}
|
|
608
669
|
* The XHR Node Readable Stream
|
|
609
670
|
*/
|
|
610
|
-
proto.ondewo.nlu.SessionsClient.prototype.
|
|
671
|
+
proto.ondewo.nlu.SessionsClient.prototype.deleteSessionLabels =
|
|
611
672
|
function(request, metadata, callback) {
|
|
612
673
|
return this.client_.rpcCall(this.hostname_ +
|
|
613
|
-
'/ondewo.nlu.Sessions/
|
|
674
|
+
'/ondewo.nlu.Sessions/DeleteSessionLabels',
|
|
614
675
|
request,
|
|
615
676
|
metadata || {},
|
|
616
|
-
|
|
677
|
+
methodDescriptor_Sessions_DeleteSessionLabels,
|
|
617
678
|
callback);
|
|
618
679
|
};
|
|
619
680
|
|
|
620
681
|
|
|
621
682
|
/**
|
|
622
|
-
* @param {!proto.ondewo.nlu.
|
|
683
|
+
* @param {!proto.ondewo.nlu.DeleteSessionLabelsRequest} request The
|
|
623
684
|
* request proto
|
|
624
685
|
* @param {?Object<string, string>=} metadata User defined
|
|
625
686
|
* call metadata
|
|
626
687
|
* @return {!Promise<!proto.ondewo.nlu.Session>}
|
|
627
688
|
* Promise that resolves to the response
|
|
628
689
|
*/
|
|
629
|
-
proto.ondewo.nlu.SessionsPromiseClient.prototype.
|
|
690
|
+
proto.ondewo.nlu.SessionsPromiseClient.prototype.deleteSessionLabels =
|
|
630
691
|
function(request, metadata) {
|
|
631
692
|
return this.client_.unaryCall(this.hostname_ +
|
|
632
|
-
'/ondewo.nlu.Sessions/
|
|
693
|
+
'/ondewo.nlu.Sessions/DeleteSessionLabels',
|
|
633
694
|
request,
|
|
634
695
|
metadata || {},
|
|
635
|
-
|
|
696
|
+
methodDescriptor_Sessions_DeleteSessionLabels);
|
|
636
697
|
};
|
|
637
698
|
|
|
638
699
|
|
|
@@ -817,6 +817,11 @@ export class CreateSessionRequest extends jspb.Message {
|
|
|
817
817
|
getSessionUuid(): string;
|
|
818
818
|
setSessionUuid(value: string): CreateSessionRequest;
|
|
819
819
|
|
|
820
|
+
getLabelsList(): Array<string>;
|
|
821
|
+
setLabelsList(value: Array<string>): CreateSessionRequest;
|
|
822
|
+
clearLabelsList(): CreateSessionRequest;
|
|
823
|
+
addLabels(value: string, index?: number): CreateSessionRequest;
|
|
824
|
+
|
|
820
825
|
serializeBinary(): Uint8Array;
|
|
821
826
|
toObject(includeInstance?: boolean): CreateSessionRequest.AsObject;
|
|
822
827
|
static toObject(includeInstance: boolean, msg: CreateSessionRequest): CreateSessionRequest.AsObject;
|
|
@@ -829,6 +834,7 @@ export namespace CreateSessionRequest {
|
|
|
829
834
|
export type AsObject = {
|
|
830
835
|
parent: string,
|
|
831
836
|
sessionUuid: string,
|
|
837
|
+
labelsList: Array<string>,
|
|
832
838
|
}
|
|
833
839
|
}
|
|
834
840
|
|
|
@@ -993,8 +999,8 @@ export namespace DetectedIntent {
|
|
|
993
999
|
}
|
|
994
1000
|
|
|
995
1001
|
export class ListSessionLabelsRequest extends jspb.Message {
|
|
996
|
-
|
|
997
|
-
|
|
1002
|
+
getSessionId(): string;
|
|
1003
|
+
setSessionId(value: string): ListSessionLabelsRequest;
|
|
998
1004
|
|
|
999
1005
|
serializeBinary(): Uint8Array;
|
|
1000
1006
|
toObject(includeInstance?: boolean): ListSessionLabelsRequest.AsObject;
|
|
@@ -1005,6 +1011,24 @@ export class ListSessionLabelsRequest extends jspb.Message {
|
|
|
1005
1011
|
}
|
|
1006
1012
|
|
|
1007
1013
|
export namespace ListSessionLabelsRequest {
|
|
1014
|
+
export type AsObject = {
|
|
1015
|
+
sessionId: string,
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
export class ListSessionLabelsOfAllSessionsRequest extends jspb.Message {
|
|
1020
|
+
getParent(): string;
|
|
1021
|
+
setParent(value: string): ListSessionLabelsOfAllSessionsRequest;
|
|
1022
|
+
|
|
1023
|
+
serializeBinary(): Uint8Array;
|
|
1024
|
+
toObject(includeInstance?: boolean): ListSessionLabelsOfAllSessionsRequest.AsObject;
|
|
1025
|
+
static toObject(includeInstance: boolean, msg: ListSessionLabelsOfAllSessionsRequest): ListSessionLabelsOfAllSessionsRequest.AsObject;
|
|
1026
|
+
static serializeBinaryToWriter(message: ListSessionLabelsOfAllSessionsRequest, writer: jspb.BinaryWriter): void;
|
|
1027
|
+
static deserializeBinary(bytes: Uint8Array): ListSessionLabelsOfAllSessionsRequest;
|
|
1028
|
+
static deserializeBinaryFromReader(message: ListSessionLabelsOfAllSessionsRequest, reader: jspb.BinaryReader): ListSessionLabelsOfAllSessionsRequest;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
export namespace ListSessionLabelsOfAllSessionsRequest {
|
|
1008
1032
|
export type AsObject = {
|
|
1009
1033
|
parent: string,
|
|
1010
1034
|
}
|
|
@@ -1039,9 +1063,6 @@ export class AddSessionLabelsRequest extends jspb.Message {
|
|
|
1039
1063
|
clearLabelsList(): AddSessionLabelsRequest;
|
|
1040
1064
|
addLabels(value: string, index?: number): AddSessionLabelsRequest;
|
|
1041
1065
|
|
|
1042
|
-
getSessionView(): Session.View;
|
|
1043
|
-
setSessionView(value: Session.View): AddSessionLabelsRequest;
|
|
1044
|
-
|
|
1045
1066
|
serializeBinary(): Uint8Array;
|
|
1046
1067
|
toObject(includeInstance?: boolean): AddSessionLabelsRequest.AsObject;
|
|
1047
1068
|
static toObject(includeInstance: boolean, msg: AddSessionLabelsRequest): AddSessionLabelsRequest.AsObject;
|
|
@@ -1054,35 +1075,30 @@ export namespace AddSessionLabelsRequest {
|
|
|
1054
1075
|
export type AsObject = {
|
|
1055
1076
|
sessionId: string,
|
|
1056
1077
|
labelsList: Array<string>,
|
|
1057
|
-
sessionView: Session.View,
|
|
1058
1078
|
}
|
|
1059
1079
|
}
|
|
1060
1080
|
|
|
1061
|
-
export class
|
|
1081
|
+
export class DeleteSessionLabelsRequest extends jspb.Message {
|
|
1062
1082
|
getSessionId(): string;
|
|
1063
|
-
setSessionId(value: string):
|
|
1083
|
+
setSessionId(value: string): DeleteSessionLabelsRequest;
|
|
1064
1084
|
|
|
1065
1085
|
getLabelsList(): Array<string>;
|
|
1066
|
-
setLabelsList(value: Array<string>):
|
|
1067
|
-
clearLabelsList():
|
|
1068
|
-
addLabels(value: string, index?: number):
|
|
1069
|
-
|
|
1070
|
-
getSessionView(): Session.View;
|
|
1071
|
-
setSessionView(value: Session.View): RemoveSessionLabelsRequest;
|
|
1086
|
+
setLabelsList(value: Array<string>): DeleteSessionLabelsRequest;
|
|
1087
|
+
clearLabelsList(): DeleteSessionLabelsRequest;
|
|
1088
|
+
addLabels(value: string, index?: number): DeleteSessionLabelsRequest;
|
|
1072
1089
|
|
|
1073
1090
|
serializeBinary(): Uint8Array;
|
|
1074
|
-
toObject(includeInstance?: boolean):
|
|
1075
|
-
static toObject(includeInstance: boolean, msg:
|
|
1076
|
-
static serializeBinaryToWriter(message:
|
|
1077
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
1078
|
-
static deserializeBinaryFromReader(message:
|
|
1091
|
+
toObject(includeInstance?: boolean): DeleteSessionLabelsRequest.AsObject;
|
|
1092
|
+
static toObject(includeInstance: boolean, msg: DeleteSessionLabelsRequest): DeleteSessionLabelsRequest.AsObject;
|
|
1093
|
+
static serializeBinaryToWriter(message: DeleteSessionLabelsRequest, writer: jspb.BinaryWriter): void;
|
|
1094
|
+
static deserializeBinary(bytes: Uint8Array): DeleteSessionLabelsRequest;
|
|
1095
|
+
static deserializeBinaryFromReader(message: DeleteSessionLabelsRequest, reader: jspb.BinaryReader): DeleteSessionLabelsRequest;
|
|
1079
1096
|
}
|
|
1080
1097
|
|
|
1081
|
-
export namespace
|
|
1098
|
+
export namespace DeleteSessionLabelsRequest {
|
|
1082
1099
|
export type AsObject = {
|
|
1083
1100
|
sessionId: string,
|
|
1084
1101
|
labelsList: Array<string>,
|
|
1085
|
-
sessionView: Session.View,
|
|
1086
1102
|
}
|
|
1087
1103
|
}
|
|
1088
1104
|
|