@aceplus/smartace-api 2.13.0-alpha.20 → 2.13.0-alpha.22

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.
@@ -87,6 +87,7 @@ export namespace AuthnProto {
87
87
  ACCOUNT_EXPIRED: 1;
88
88
  MFA_REGISTRATION_REQUIRED: 2;
89
89
  MFA_VERIFICATION_FAILED: 3;
90
+ INVALID_CLIENT_HEADER: 4;
90
91
  }
91
92
 
92
93
  export const AuthnError: AuthnErrorMap;
package/auth.authn_pb.js CHANGED
@@ -237,7 +237,8 @@ proto.Auth.AuthnProto.AuthnError = {
237
237
  ACCOUNT_DISABLED: 0,
238
238
  ACCOUNT_EXPIRED: 1,
239
239
  MFA_REGISTRATION_REQUIRED: 2,
240
- MFA_VERIFICATION_FAILED: 3
240
+ MFA_VERIFICATION_FAILED: 3,
241
+ INVALID_CLIENT_HEADER: 4
241
242
  };
242
243
 
243
244
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "grpc-web": "^1.4.2",
6
6
  "ts-protoc-gen": "^0.15.0"
7
7
  },
8
- "version": "2.13.0-alpha.20",
8
+ "version": "2.13.0-alpha.22",
9
9
  "description": "Generated proto files.",
10
10
  "author": "TKF",
11
11
  "files": [
@@ -91,6 +91,45 @@ export namespace LocalAccountProto {
91
91
  clientName: string,
92
92
  }
93
93
 
94
+ export class RetrieveRequest extends jspb.Message {
95
+ hasId(): boolean;
96
+ clearId(): void;
97
+ getId(): number;
98
+ setId(value: number): void;
99
+
100
+ hasAuthId(): boolean;
101
+ clearAuthId(): void;
102
+ getAuthId(): number;
103
+ setAuthId(value: number): void;
104
+
105
+ getClientId(): number;
106
+ setClientId(value: number): void;
107
+
108
+ getSearchCase(): RetrieveRequest.SearchCase;
109
+ serializeBinary(): Uint8Array;
110
+ toObject(includeInstance?: boolean): RetrieveRequest.AsObject;
111
+ static toObject(includeInstance: boolean, msg: RetrieveRequest): RetrieveRequest.AsObject;
112
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
113
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
114
+ static serializeBinaryToWriter(message: RetrieveRequest, writer: jspb.BinaryWriter): void;
115
+ static deserializeBinary(bytes: Uint8Array): RetrieveRequest;
116
+ static deserializeBinaryFromReader(message: RetrieveRequest, reader: jspb.BinaryReader): RetrieveRequest;
117
+ }
118
+
119
+ export namespace RetrieveRequest {
120
+ export type AsObject = {
121
+ id: number,
122
+ authId: number,
123
+ clientId: number,
124
+ }
125
+
126
+ export enum SearchCase {
127
+ SEARCH_NOT_SET = 0,
128
+ ID = 1,
129
+ AUTH_ID = 2,
130
+ }
131
+ }
132
+
94
133
  export class CreateAdminRequest extends jspb.Message {
95
134
  getEmail(): string;
96
135
  setEmail(value: string): void;
@@ -38,6 +38,8 @@ goog.exportSymbol('proto.Platform.LocalAccountProto.CreateAppRequest', null, glo
38
38
  goog.exportSymbol('proto.Platform.LocalAccountProto.DisableAccount', null, global);
39
39
  goog.exportSymbol('proto.Platform.LocalAccountProto.EnableAccount', null, global);
40
40
  goog.exportSymbol('proto.Platform.LocalAccountProto.ResendInvitationRequest', null, global);
41
+ goog.exportSymbol('proto.Platform.LocalAccountProto.RetrieveRequest', null, global);
42
+ goog.exportSymbol('proto.Platform.LocalAccountProto.RetrieveRequest.SearchCase', null, global);
41
43
  goog.exportSymbol('proto.Platform.LocalAccountProto.SearchReply', null, global);
42
44
  goog.exportSymbol('proto.Platform.LocalAccountProto.SearchRequest', null, global);
43
45
  goog.exportSymbol('proto.Platform.LocalAccountProto.SetClientRequest', null, global);
@@ -64,6 +66,27 @@ if (goog.DEBUG && !COMPILED) {
64
66
  */
65
67
  proto.Platform.LocalAccountProto.displayName = 'proto.Platform.LocalAccountProto';
66
68
  }
69
+ /**
70
+ * Generated by JsPbCodeGenerator.
71
+ * @param {Array=} opt_data Optional initial data array, typically from a
72
+ * server response, or constructed directly in Javascript. The array is used
73
+ * in place and becomes part of the constructed object. It is not cloned.
74
+ * If no data is provided, the constructed object will be empty, but still
75
+ * valid.
76
+ * @extends {jspb.Message}
77
+ * @constructor
78
+ */
79
+ proto.Platform.LocalAccountProto.RetrieveRequest = function(opt_data) {
80
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.Platform.LocalAccountProto.RetrieveRequest.oneofGroups_);
81
+ };
82
+ goog.inherits(proto.Platform.LocalAccountProto.RetrieveRequest, jspb.Message);
83
+ if (goog.DEBUG && !COMPILED) {
84
+ /**
85
+ * @public
86
+ * @override
87
+ */
88
+ proto.Platform.LocalAccountProto.RetrieveRequest.displayName = 'proto.Platform.LocalAccountProto.RetrieveRequest';
89
+ }
67
90
  /**
68
91
  * Generated by JsPbCodeGenerator.
69
92
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -586,6 +609,258 @@ proto.Platform.LocalAccountProto.AccountTypes = {
586
609
  };
587
610
 
588
611
 
612
+ /**
613
+ * Oneof group definitions for this message. Each group defines the field
614
+ * numbers belonging to that group. When of these fields' value is set, all
615
+ * other fields in the group are cleared. During deserialization, if multiple
616
+ * fields are encountered for a group, only the last value seen will be kept.
617
+ * @private {!Array<!Array<number>>}
618
+ * @const
619
+ */
620
+ proto.Platform.LocalAccountProto.RetrieveRequest.oneofGroups_ = [[1,2]];
621
+
622
+ /**
623
+ * @enum {number}
624
+ */
625
+ proto.Platform.LocalAccountProto.RetrieveRequest.SearchCase = {
626
+ SEARCH_NOT_SET: 0,
627
+ ID: 1,
628
+ AUTH_ID: 2
629
+ };
630
+
631
+ /**
632
+ * @return {proto.Platform.LocalAccountProto.RetrieveRequest.SearchCase}
633
+ */
634
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.getSearchCase = function() {
635
+ return /** @type {proto.Platform.LocalAccountProto.RetrieveRequest.SearchCase} */(jspb.Message.computeOneofCase(this, proto.Platform.LocalAccountProto.RetrieveRequest.oneofGroups_[0]));
636
+ };
637
+
638
+
639
+
640
+ if (jspb.Message.GENERATE_TO_OBJECT) {
641
+ /**
642
+ * Creates an object representation of this proto.
643
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
644
+ * Optional fields that are not set will be set to undefined.
645
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
646
+ * For the list of reserved names please see:
647
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
648
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
649
+ * JSPB instance for transitional soy proto support:
650
+ * http://goto/soy-param-migration
651
+ * @return {!Object}
652
+ */
653
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.toObject = function(opt_includeInstance) {
654
+ return proto.Platform.LocalAccountProto.RetrieveRequest.toObject(opt_includeInstance, this);
655
+ };
656
+
657
+
658
+ /**
659
+ * Static version of the {@see toObject} method.
660
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
661
+ * the JSPB instance for transitional soy proto support:
662
+ * http://goto/soy-param-migration
663
+ * @param {!proto.Platform.LocalAccountProto.RetrieveRequest} msg The msg instance to transform.
664
+ * @return {!Object}
665
+ * @suppress {unusedLocalVariables} f is only used for nested messages
666
+ */
667
+ proto.Platform.LocalAccountProto.RetrieveRequest.toObject = function(includeInstance, msg) {
668
+ var f, obj = {
669
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
670
+ authId: jspb.Message.getFieldWithDefault(msg, 2, 0),
671
+ clientId: jspb.Message.getFieldWithDefault(msg, 3, 0)
672
+ };
673
+
674
+ if (includeInstance) {
675
+ obj.$jspbMessageInstance = msg;
676
+ }
677
+ return obj;
678
+ };
679
+ }
680
+
681
+
682
+ /**
683
+ * Deserializes binary data (in protobuf wire format).
684
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
685
+ * @return {!proto.Platform.LocalAccountProto.RetrieveRequest}
686
+ */
687
+ proto.Platform.LocalAccountProto.RetrieveRequest.deserializeBinary = function(bytes) {
688
+ var reader = new jspb.BinaryReader(bytes);
689
+ var msg = new proto.Platform.LocalAccountProto.RetrieveRequest;
690
+ return proto.Platform.LocalAccountProto.RetrieveRequest.deserializeBinaryFromReader(msg, reader);
691
+ };
692
+
693
+
694
+ /**
695
+ * Deserializes binary data (in protobuf wire format) from the
696
+ * given reader into the given message object.
697
+ * @param {!proto.Platform.LocalAccountProto.RetrieveRequest} msg The message object to deserialize into.
698
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
699
+ * @return {!proto.Platform.LocalAccountProto.RetrieveRequest}
700
+ */
701
+ proto.Platform.LocalAccountProto.RetrieveRequest.deserializeBinaryFromReader = function(msg, reader) {
702
+ while (reader.nextField()) {
703
+ if (reader.isEndGroup()) {
704
+ break;
705
+ }
706
+ var field = reader.getFieldNumber();
707
+ switch (field) {
708
+ case 1:
709
+ var value = /** @type {number} */ (reader.readInt64());
710
+ msg.setId(value);
711
+ break;
712
+ case 2:
713
+ var value = /** @type {number} */ (reader.readInt64());
714
+ msg.setAuthId(value);
715
+ break;
716
+ case 3:
717
+ var value = /** @type {number} */ (reader.readInt64());
718
+ msg.setClientId(value);
719
+ break;
720
+ default:
721
+ reader.skipField();
722
+ break;
723
+ }
724
+ }
725
+ return msg;
726
+ };
727
+
728
+
729
+ /**
730
+ * Serializes the message to binary data (in protobuf wire format).
731
+ * @return {!Uint8Array}
732
+ */
733
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.serializeBinary = function() {
734
+ var writer = new jspb.BinaryWriter();
735
+ proto.Platform.LocalAccountProto.RetrieveRequest.serializeBinaryToWriter(this, writer);
736
+ return writer.getResultBuffer();
737
+ };
738
+
739
+
740
+ /**
741
+ * Serializes the given message to binary data (in protobuf wire
742
+ * format), writing to the given BinaryWriter.
743
+ * @param {!proto.Platform.LocalAccountProto.RetrieveRequest} message
744
+ * @param {!jspb.BinaryWriter} writer
745
+ * @suppress {unusedLocalVariables} f is only used for nested messages
746
+ */
747
+ proto.Platform.LocalAccountProto.RetrieveRequest.serializeBinaryToWriter = function(message, writer) {
748
+ var f = undefined;
749
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
750
+ if (f != null) {
751
+ writer.writeInt64(
752
+ 1,
753
+ f
754
+ );
755
+ }
756
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
757
+ if (f != null) {
758
+ writer.writeInt64(
759
+ 2,
760
+ f
761
+ );
762
+ }
763
+ f = message.getClientId();
764
+ if (f !== 0) {
765
+ writer.writeInt64(
766
+ 3,
767
+ f
768
+ );
769
+ }
770
+ };
771
+
772
+
773
+ /**
774
+ * optional int64 id = 1;
775
+ * @return {number}
776
+ */
777
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.getId = function() {
778
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
779
+ };
780
+
781
+
782
+ /**
783
+ * @param {number} value
784
+ * @return {!proto.Platform.LocalAccountProto.RetrieveRequest} returns this
785
+ */
786
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.setId = function(value) {
787
+ return jspb.Message.setOneofField(this, 1, proto.Platform.LocalAccountProto.RetrieveRequest.oneofGroups_[0], value);
788
+ };
789
+
790
+
791
+ /**
792
+ * Clears the field making it undefined.
793
+ * @return {!proto.Platform.LocalAccountProto.RetrieveRequest} returns this
794
+ */
795
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.clearId = function() {
796
+ return jspb.Message.setOneofField(this, 1, proto.Platform.LocalAccountProto.RetrieveRequest.oneofGroups_[0], undefined);
797
+ };
798
+
799
+
800
+ /**
801
+ * Returns whether this field is set.
802
+ * @return {boolean}
803
+ */
804
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.hasId = function() {
805
+ return jspb.Message.getField(this, 1) != null;
806
+ };
807
+
808
+
809
+ /**
810
+ * optional int64 auth_id = 2;
811
+ * @return {number}
812
+ */
813
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.getAuthId = function() {
814
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
815
+ };
816
+
817
+
818
+ /**
819
+ * @param {number} value
820
+ * @return {!proto.Platform.LocalAccountProto.RetrieveRequest} returns this
821
+ */
822
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.setAuthId = function(value) {
823
+ return jspb.Message.setOneofField(this, 2, proto.Platform.LocalAccountProto.RetrieveRequest.oneofGroups_[0], value);
824
+ };
825
+
826
+
827
+ /**
828
+ * Clears the field making it undefined.
829
+ * @return {!proto.Platform.LocalAccountProto.RetrieveRequest} returns this
830
+ */
831
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.clearAuthId = function() {
832
+ return jspb.Message.setOneofField(this, 2, proto.Platform.LocalAccountProto.RetrieveRequest.oneofGroups_[0], undefined);
833
+ };
834
+
835
+
836
+ /**
837
+ * Returns whether this field is set.
838
+ * @return {boolean}
839
+ */
840
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.hasAuthId = function() {
841
+ return jspb.Message.getField(this, 2) != null;
842
+ };
843
+
844
+
845
+ /**
846
+ * optional int64 client_id = 3;
847
+ * @return {number}
848
+ */
849
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.getClientId = function() {
850
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
851
+ };
852
+
853
+
854
+ /**
855
+ * @param {number} value
856
+ * @return {!proto.Platform.LocalAccountProto.RetrieveRequest} returns this
857
+ */
858
+ proto.Platform.LocalAccountProto.RetrieveRequest.prototype.setClientId = function(value) {
859
+ return jspb.Message.setProto3IntField(this, 3, value);
860
+ };
861
+
862
+
863
+
589
864
  /**
590
865
  * List of repeated fields within this message type.
591
866
  * @private {!Array<number>}
@@ -29,7 +29,7 @@ type LocalAccountGRPCRetrieve = {
29
29
  readonly service: typeof LocalAccountGRPC;
30
30
  readonly requestStream: false;
31
31
  readonly responseStream: false;
32
- readonly requestType: typeof auth_account_pb.AccountProto.RetrieveRequest;
32
+ readonly requestType: typeof platform_local_account_pb.LocalAccountProto.RetrieveRequest;
33
33
  readonly responseType: typeof platform_local_account_pb.LocalAccountProto;
34
34
  };
35
35
 
@@ -211,12 +211,12 @@ export class LocalAccountGRPCClient {
211
211
  callback: (error: ServiceError|null, responseMessage: platform_local_account_pb.LocalAccountProto|null) => void
212
212
  ): UnaryResponse;
213
213
  retrieve(
214
- requestMessage: auth_account_pb.AccountProto.RetrieveRequest,
214
+ requestMessage: platform_local_account_pb.LocalAccountProto.RetrieveRequest,
215
215
  metadata: grpc.Metadata,
216
216
  callback: (error: ServiceError|null, responseMessage: platform_local_account_pb.LocalAccountProto|null) => void
217
217
  ): UnaryResponse;
218
218
  retrieve(
219
- requestMessage: auth_account_pb.AccountProto.RetrieveRequest,
219
+ requestMessage: platform_local_account_pb.LocalAccountProto.RetrieveRequest,
220
220
  callback: (error: ServiceError|null, responseMessage: platform_local_account_pb.LocalAccountProto|null) => void
221
221
  ): UnaryResponse;
222
222
  update(
@@ -35,7 +35,7 @@ LocalAccountGRPC.Retrieve = {
35
35
  service: LocalAccountGRPC,
36
36
  requestStream: false,
37
37
  responseStream: false,
38
- requestType: auth_account_pb.AccountProto.RetrieveRequest,
38
+ requestType: platform_local_account_pb.LocalAccountProto.RetrieveRequest,
39
39
  responseType: platform_local_account_pb.LocalAccountProto
40
40
  };
41
41