@ondewo/nlu-client-typescript 3.5.2 → 4.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.
@@ -2,6 +2,7 @@ import * as jspb from 'google-protobuf'
2
2
 
3
3
  import * as google_api_annotations_pb from '../../google/api/annotations_pb';
4
4
  import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
5
+ import * as google_protobuf_field_mask_pb from 'google-protobuf/google/protobuf/field_mask_pb';
5
6
  import * as google_protobuf_struct_pb from 'google-protobuf/google/protobuf/struct_pb';
6
7
  import * as google_rpc_status_pb from '../../google/rpc/status_pb';
7
8
  import * as google_type_latlng_pb from '../../google/type/latlng_pb';
@@ -98,6 +99,11 @@ export class QueryParameters extends jspb.Message {
98
99
  hasPayload(): boolean;
99
100
  clearPayload(): QueryParameters;
100
101
 
102
+ getLabelsList(): Array<string>;
103
+ setLabelsList(value: Array<string>): QueryParameters;
104
+ clearLabelsList(): QueryParameters;
105
+ addLabels(value: string, index?: number): QueryParameters;
106
+
101
107
  serializeBinary(): Uint8Array;
102
108
  toObject(includeInstance?: boolean): QueryParameters.AsObject;
103
109
  static toObject(includeInstance: boolean, msg: QueryParameters): QueryParameters.AsObject;
@@ -113,6 +119,7 @@ export namespace QueryParameters {
113
119
  contextsList: Array<ondewo_nlu_context_pb.Context.AsObject>,
114
120
  resetContexts: boolean,
115
121
  payload?: google_protobuf_struct_pb.Struct.AsObject,
122
+ labelsList: Array<string>,
116
123
  }
117
124
  }
118
125
 
@@ -434,8 +441,8 @@ export namespace EventInput {
434
441
  }
435
442
 
436
443
  export class Session extends jspb.Message {
437
- getSessionId(): string;
438
- setSessionId(value: string): Session;
444
+ getName(): string;
445
+ setName(value: string): Session;
439
446
 
440
447
  getSessionStepsList(): Array<SessionStep>;
441
448
  setSessionStepsList(value: Array<SessionStep>): Session;
@@ -457,7 +464,7 @@ export class Session extends jspb.Message {
457
464
 
458
465
  export namespace Session {
459
466
  export type AsObject = {
460
- sessionId: string,
467
+ name: string,
461
468
  sessionStepsList: Array<SessionStep.AsObject>,
462
469
  sessionInfo?: SessionInfo.AsObject,
463
470
  }
@@ -470,6 +477,9 @@ export namespace Session {
470
477
  }
471
478
 
472
479
  export class SessionStep extends jspb.Message {
480
+ getName(): string;
481
+ setName(value: string): SessionStep;
482
+
473
483
  getDetectIntentRequest(): DetectIntentRequest | undefined;
474
484
  setDetectIntentRequest(value?: DetectIntentRequest): SessionStep;
475
485
  hasDetectIntentRequest(): boolean;
@@ -495,6 +505,7 @@ export class SessionStep extends jspb.Message {
495
505
 
496
506
  export namespace SessionStep {
497
507
  export type AsObject = {
508
+ name: string,
498
509
  detectIntentRequest?: DetectIntentRequest.AsObject,
499
510
  detectIntentResponse?: DetectIntentResponse.AsObject,
500
511
  contextsList: Array<ondewo_nlu_context_pb.Context.AsObject>,
@@ -544,6 +555,11 @@ export class ListSessionsRequest extends jspb.Message {
544
555
  hasSessionFilter(): boolean;
545
556
  clearSessionFilter(): ListSessionsRequest;
546
557
 
558
+ getFieldMask(): google_protobuf_field_mask_pb.FieldMask | undefined;
559
+ setFieldMask(value?: google_protobuf_field_mask_pb.FieldMask): ListSessionsRequest;
560
+ hasFieldMask(): boolean;
561
+ clearFieldMask(): ListSessionsRequest;
562
+
547
563
  serializeBinary(): Uint8Array;
548
564
  toObject(includeInstance?: boolean): ListSessionsRequest.AsObject;
549
565
  static toObject(includeInstance: boolean, msg: ListSessionsRequest): ListSessionsRequest.AsObject;
@@ -558,6 +574,37 @@ export namespace ListSessionsRequest {
558
574
  sessionView: Session.View,
559
575
  pageToken: string,
560
576
  sessionFilter?: SessionFilter.AsObject,
577
+ fieldMask?: google_protobuf_field_mask_pb.FieldMask.AsObject,
578
+ }
579
+ }
580
+
581
+ export class ContextFilter extends jspb.Message {
582
+ getContextName(): string;
583
+ setContextName(value: string): ContextFilter;
584
+
585
+ getKey(): string;
586
+ setKey(value: string): ContextFilter;
587
+
588
+ getValue(): string;
589
+ setValue(value: string): ContextFilter;
590
+
591
+ getOperator(): ComparisonOperator;
592
+ setOperator(value: ComparisonOperator): ContextFilter;
593
+
594
+ serializeBinary(): Uint8Array;
595
+ toObject(includeInstance?: boolean): ContextFilter.AsObject;
596
+ static toObject(includeInstance: boolean, msg: ContextFilter): ContextFilter.AsObject;
597
+ static serializeBinaryToWriter(message: ContextFilter, writer: jspb.BinaryWriter): void;
598
+ static deserializeBinary(bytes: Uint8Array): ContextFilter;
599
+ static deserializeBinaryFromReader(message: ContextFilter, reader: jspb.BinaryReader): ContextFilter;
600
+ }
601
+
602
+ export namespace ContextFilter {
603
+ export type AsObject = {
604
+ contextName: string,
605
+ key: string,
606
+ value: string,
607
+ operator: ComparisonOperator,
561
608
  }
562
609
  }
563
610
 
@@ -631,6 +678,78 @@ export class SessionFilter extends jspb.Message {
631
678
  clearOutputContextsList(): SessionFilter;
632
679
  addOutputContexts(value?: ondewo_nlu_context_pb.Context, index?: number): ondewo_nlu_context_pb.Context;
633
680
 
681
+ getDurationInSMin(): number;
682
+ setDurationInSMin(value: number): SessionFilter;
683
+
684
+ getDurationInSMax(): number;
685
+ setDurationInSMax(value: number): SessionFilter;
686
+
687
+ getDurationInMMin(): number;
688
+ setDurationInMMin(value: number): SessionFilter;
689
+
690
+ getDurationInMMax(): number;
691
+ setDurationInMMax(value: number): SessionFilter;
692
+
693
+ getDurationInMRoundedMin(): number;
694
+ setDurationInMRoundedMin(value: number): SessionFilter;
695
+
696
+ getDurationInMRoundedMax(): number;
697
+ setDurationInMRoundedMax(value: number): SessionFilter;
698
+
699
+ getDurationInterval15sRoundedMin(): number;
700
+ setDurationInterval15sRoundedMin(value: number): SessionFilter;
701
+
702
+ getDurationInterval15sRoundedMax(): number;
703
+ setDurationInterval15sRoundedMax(value: number): SessionFilter;
704
+
705
+ getDurationInterval30sRoundedMin(): number;
706
+ setDurationInterval30sRoundedMin(value: number): SessionFilter;
707
+
708
+ getDurationInterval30sRoundedMax(): number;
709
+ setDurationInterval30sRoundedMax(value: number): SessionFilter;
710
+
711
+ getDurationInterval45sRoundedMin(): number;
712
+ setDurationInterval45sRoundedMin(value: number): SessionFilter;
713
+
714
+ getDurationInterval45sRoundedMax(): number;
715
+ setDurationInterval45sRoundedMax(value: number): SessionFilter;
716
+
717
+ getStartedTimeSlotPerHourMin(): string;
718
+ setStartedTimeSlotPerHourMin(value: string): SessionFilter;
719
+
720
+ getStartedTimeSlotPerHourMax(): string;
721
+ setStartedTimeSlotPerHourMax(value: string): SessionFilter;
722
+
723
+ getStartedTimeSlotPerQuarterHourMin(): string;
724
+ setStartedTimeSlotPerQuarterHourMin(value: string): SessionFilter;
725
+
726
+ getStartedTimeSlotPerQuarterHourMax(): string;
727
+ setStartedTimeSlotPerQuarterHourMax(value: string): SessionFilter;
728
+
729
+ getStartedTimeSlotPerHalfHourMin(): string;
730
+ setStartedTimeSlotPerHalfHourMin(value: string): SessionFilter;
731
+
732
+ getStartedTimeSlotPerHalfHourMax(): string;
733
+ setStartedTimeSlotPerHalfHourMax(value: string): SessionFilter;
734
+
735
+ getStartedTimeSlotPerDayPhaseMin(): string;
736
+ setStartedTimeSlotPerDayPhaseMin(value: string): SessionFilter;
737
+
738
+ getStartedTimeSlotPerDayPhaseMax(): string;
739
+ setStartedTimeSlotPerDayPhaseMax(value: string): SessionFilter;
740
+
741
+ getStartedTimeSlotPerMinuteMin(): string;
742
+ setStartedTimeSlotPerMinuteMin(value: string): SessionFilter;
743
+
744
+ getStartedTimeSlotPerMinuteMax(): string;
745
+ setStartedTimeSlotPerMinuteMax(value: string): SessionFilter;
746
+
747
+ getDurationInSRoundedMin(): number;
748
+ setDurationInSRoundedMin(value: number): SessionFilter;
749
+
750
+ getDurationInSRoundedMax(): number;
751
+ setDurationInSRoundedMax(value: number): SessionFilter;
752
+
634
753
  serializeBinary(): Uint8Array;
635
754
  toObject(includeInstance?: boolean): SessionFilter.AsObject;
636
755
  static toObject(includeInstance: boolean, msg: SessionFilter): SessionFilter.AsObject;
@@ -658,6 +777,30 @@ export namespace SessionFilter {
658
777
  sessionIdsList: Array<string>,
659
778
  inputContextsList: Array<ondewo_nlu_context_pb.Context.AsObject>,
660
779
  outputContextsList: Array<ondewo_nlu_context_pb.Context.AsObject>,
780
+ durationInSMin: number,
781
+ durationInSMax: number,
782
+ durationInMMin: number,
783
+ durationInMMax: number,
784
+ durationInMRoundedMin: number,
785
+ durationInMRoundedMax: number,
786
+ durationInterval15sRoundedMin: number,
787
+ durationInterval15sRoundedMax: number,
788
+ durationInterval30sRoundedMin: number,
789
+ durationInterval30sRoundedMax: number,
790
+ durationInterval45sRoundedMin: number,
791
+ durationInterval45sRoundedMax: number,
792
+ startedTimeSlotPerHourMin: string,
793
+ startedTimeSlotPerHourMax: string,
794
+ startedTimeSlotPerQuarterHourMin: string,
795
+ startedTimeSlotPerQuarterHourMax: string,
796
+ startedTimeSlotPerHalfHourMin: string,
797
+ startedTimeSlotPerHalfHourMax: string,
798
+ startedTimeSlotPerDayPhaseMin: string,
799
+ startedTimeSlotPerDayPhaseMax: string,
800
+ startedTimeSlotPerMinuteMin: string,
801
+ startedTimeSlotPerMinuteMax: string,
802
+ durationInSRoundedMin: number,
803
+ durationInSRoundedMax: number,
661
804
  }
662
805
  }
663
806
 
@@ -717,6 +860,42 @@ export class SessionInfo extends jspb.Message {
717
860
  clearOutputContextStepsList(): SessionInfo;
718
861
  addOutputContextSteps(value?: SessionInfo.ContextSteps, index?: number): SessionInfo.ContextSteps;
719
862
 
863
+ getDurationInS(): number;
864
+ setDurationInS(value: number): SessionInfo;
865
+
866
+ getDurationInM(): number;
867
+ setDurationInM(value: number): SessionInfo;
868
+
869
+ getDurationInMRounded(): number;
870
+ setDurationInMRounded(value: number): SessionInfo;
871
+
872
+ getDurationInterval15sRounded(): number;
873
+ setDurationInterval15sRounded(value: number): SessionInfo;
874
+
875
+ getDurationInterval30sRounded(): number;
876
+ setDurationInterval30sRounded(value: number): SessionInfo;
877
+
878
+ getDurationInterval45sRounded(): number;
879
+ setDurationInterval45sRounded(value: number): SessionInfo;
880
+
881
+ getStartedTimeSlotPerHour(): string;
882
+ setStartedTimeSlotPerHour(value: string): SessionInfo;
883
+
884
+ getStartedTimeSlotPerQuarterHour(): string;
885
+ setStartedTimeSlotPerQuarterHour(value: string): SessionInfo;
886
+
887
+ getStartedTimeSlotPerHalfHour(): string;
888
+ setStartedTimeSlotPerHalfHour(value: string): SessionInfo;
889
+
890
+ getStartedTimeSlotPerDayPhase(): string;
891
+ setStartedTimeSlotPerDayPhase(value: string): SessionInfo;
892
+
893
+ getStartedTimeSlotPerMinute(): string;
894
+ setStartedTimeSlotPerMinute(value: string): SessionInfo;
895
+
896
+ getDurationInSRounded(): number;
897
+ setDurationInSRounded(value: number): SessionInfo;
898
+
720
899
  serializeBinary(): Uint8Array;
721
900
  toObject(includeInstance?: boolean): SessionInfo.AsObject;
722
901
  static toObject(includeInstance: boolean, msg: SessionInfo): SessionInfo.AsObject;
@@ -740,6 +919,18 @@ export namespace SessionInfo {
740
919
  intentTagsList: Array<string>,
741
920
  inputContextStepsList: Array<SessionInfo.ContextSteps.AsObject>,
742
921
  outputContextStepsList: Array<SessionInfo.ContextSteps.AsObject>,
922
+ durationInS: number,
923
+ durationInM: number,
924
+ durationInMRounded: number,
925
+ durationInterval15sRounded: number,
926
+ durationInterval30sRounded: number,
927
+ durationInterval45sRounded: number,
928
+ startedTimeSlotPerHour: string,
929
+ startedTimeSlotPerQuarterHour: string,
930
+ startedTimeSlotPerHalfHour: string,
931
+ startedTimeSlotPerDayPhase: string,
932
+ startedTimeSlotPerMinute: string,
933
+ durationInSRounded: number,
743
934
  }
744
935
 
745
936
  export class ContextSteps extends jspb.Message {
@@ -795,6 +986,11 @@ export class GetSessionRequest extends jspb.Message {
795
986
  getSessionView(): Session.View;
796
987
  setSessionView(value: Session.View): GetSessionRequest;
797
988
 
989
+ getFieldMask(): google_protobuf_field_mask_pb.FieldMask | undefined;
990
+ setFieldMask(value?: google_protobuf_field_mask_pb.FieldMask): GetSessionRequest;
991
+ hasFieldMask(): boolean;
992
+ clearFieldMask(): GetSessionRequest;
993
+
798
994
  serializeBinary(): Uint8Array;
799
995
  toObject(includeInstance?: boolean): GetSessionRequest.AsObject;
800
996
  static toObject(includeInstance: boolean, msg: GetSessionRequest): GetSessionRequest.AsObject;
@@ -807,6 +1003,7 @@ export namespace GetSessionRequest {
807
1003
  export type AsObject = {
808
1004
  sessionId: string,
809
1005
  sessionView: Session.View,
1006
+ fieldMask?: google_protobuf_field_mask_pb.FieldMask.AsObject,
810
1007
  }
811
1008
  }
812
1009
 
@@ -889,8 +1086,8 @@ export namespace CreateSessionReviewRequest {
889
1086
  }
890
1087
 
891
1088
  export class SessionReview extends jspb.Message {
892
- getSessionReviewId(): string;
893
- setSessionReviewId(value: string): SessionReview;
1089
+ getName(): string;
1090
+ setName(value: string): SessionReview;
894
1091
 
895
1092
  getSessionReviewStepsList(): Array<SessionReviewStep>;
896
1093
  setSessionReviewStepsList(value: Array<SessionReviewStep>): SessionReview;
@@ -907,7 +1104,7 @@ export class SessionReview extends jspb.Message {
907
1104
 
908
1105
  export namespace SessionReview {
909
1106
  export type AsObject = {
910
- sessionReviewId: string,
1107
+ name: string,
911
1108
  sessionReviewStepsList: Array<SessionReviewStep.AsObject>,
912
1109
  }
913
1110
 
@@ -919,6 +1116,9 @@ export namespace SessionReview {
919
1116
  }
920
1117
 
921
1118
  export class SessionReviewStep extends jspb.Message {
1119
+ getName(): string;
1120
+ setName(value: string): SessionReviewStep;
1121
+
922
1122
  getAnnotatedUsersays(): ondewo_nlu_intent_pb.Intent.TrainingPhrase | undefined;
923
1123
  setAnnotatedUsersays(value?: ondewo_nlu_intent_pb.Intent.TrainingPhrase): SessionReviewStep;
924
1124
  hasAnnotatedUsersays(): boolean;
@@ -952,6 +1152,7 @@ export class SessionReviewStep extends jspb.Message {
952
1152
 
953
1153
  export namespace SessionReviewStep {
954
1154
  export type AsObject = {
1155
+ name: string,
955
1156
  annotatedUsersays?: ondewo_nlu_intent_pb.Intent.TrainingPhrase.AsObject,
956
1157
  languageCode: string,
957
1158
  detectedIntentsList: Array<DetectedIntent.AsObject>,
@@ -1206,3 +1407,12 @@ export enum AudioEncoding {
1206
1407
  AUDIO_ENCODING_OGG_OPUS = 6,
1207
1408
  AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7,
1208
1409
  }
1410
+ export enum ComparisonOperator {
1411
+ EQUAL = 0,
1412
+ GREATER = 1,
1413
+ GREATER_OR_EQUAL = 2,
1414
+ LESS_OR_EQUAL = 3,
1415
+ CONTAINS = 4,
1416
+ STARTS_WITH = 5,
1417
+ ENDS_WITH = 6,
1418
+ }