@fonoster/sdk 0.9.16 → 0.9.19

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.
@@ -665,6 +665,50 @@ export namespace VerifyCodeRequest {
665
665
  }
666
666
  }
667
667
 
668
+ export class SendResetPasswordCodeRequest extends jspb.Message {
669
+ getUsername(): string;
670
+ setUsername(value: string): SendResetPasswordCodeRequest;
671
+
672
+ serializeBinary(): Uint8Array;
673
+ toObject(includeInstance?: boolean): SendResetPasswordCodeRequest.AsObject;
674
+ static toObject(includeInstance: boolean, msg: SendResetPasswordCodeRequest): SendResetPasswordCodeRequest.AsObject;
675
+ static serializeBinaryToWriter(message: SendResetPasswordCodeRequest, writer: jspb.BinaryWriter): void;
676
+ static deserializeBinary(bytes: Uint8Array): SendResetPasswordCodeRequest;
677
+ static deserializeBinaryFromReader(message: SendResetPasswordCodeRequest, reader: jspb.BinaryReader): SendResetPasswordCodeRequest;
678
+ }
679
+
680
+ export namespace SendResetPasswordCodeRequest {
681
+ export type AsObject = {
682
+ username: string,
683
+ }
684
+ }
685
+
686
+ export class ResetPasswordRequest extends jspb.Message {
687
+ getUsername(): string;
688
+ setUsername(value: string): ResetPasswordRequest;
689
+
690
+ getPassword(): string;
691
+ setPassword(value: string): ResetPasswordRequest;
692
+
693
+ getVerificationCode(): string;
694
+ setVerificationCode(value: string): ResetPasswordRequest;
695
+
696
+ serializeBinary(): Uint8Array;
697
+ toObject(includeInstance?: boolean): ResetPasswordRequest.AsObject;
698
+ static toObject(includeInstance: boolean, msg: ResetPasswordRequest): ResetPasswordRequest.AsObject;
699
+ static serializeBinaryToWriter(message: ResetPasswordRequest, writer: jspb.BinaryWriter): void;
700
+ static deserializeBinary(bytes: Uint8Array): ResetPasswordRequest;
701
+ static deserializeBinaryFromReader(message: ResetPasswordRequest, reader: jspb.BinaryReader): ResetPasswordRequest;
702
+ }
703
+
704
+ export namespace ResetPasswordRequest {
705
+ export type AsObject = {
706
+ username: string,
707
+ password: string,
708
+ verificationCode: string,
709
+ }
710
+ }
711
+
668
712
  export class CreateApiKeyRequest extends jspb.Message {
669
713
  getRole(): string;
670
714
  setRole(value: string): CreateApiKeyRequest;
@@ -63,8 +63,10 @@ goog.exportSymbol('proto.fonoster.identity.v1beta2.RemoveUserFromWorkspaceReques
63
63
  goog.exportSymbol('proto.fonoster.identity.v1beta2.RemoveUserFromWorkspaceResponse', null, global);
64
64
  goog.exportSymbol('proto.fonoster.identity.v1beta2.ResendWorkspaceMembershipInvitationRequest', null, global);
65
65
  goog.exportSymbol('proto.fonoster.identity.v1beta2.ResendWorkspaceMembershipInvitationResponse', null, global);
66
+ goog.exportSymbol('proto.fonoster.identity.v1beta2.ResetPasswordRequest', null, global);
66
67
  goog.exportSymbol('proto.fonoster.identity.v1beta2.RevokeTokenRequest', null, global);
67
68
  goog.exportSymbol('proto.fonoster.identity.v1beta2.RevokeTokenResponse', null, global);
69
+ goog.exportSymbol('proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest', null, global);
68
70
  goog.exportSymbol('proto.fonoster.identity.v1beta2.SendVerificationCodeRequest', null, global);
69
71
  goog.exportSymbol('proto.fonoster.identity.v1beta2.UpdateUserRequest', null, global);
70
72
  goog.exportSymbol('proto.fonoster.identity.v1beta2.UpdateUserResponse', null, global);
@@ -683,6 +685,48 @@ if (goog.DEBUG && !COMPILED) {
683
685
  */
684
686
  proto.fonoster.identity.v1beta2.VerifyCodeRequest.displayName = 'proto.fonoster.identity.v1beta2.VerifyCodeRequest';
685
687
  }
688
+ /**
689
+ * Generated by JsPbCodeGenerator.
690
+ * @param {Array=} opt_data Optional initial data array, typically from a
691
+ * server response, or constructed directly in Javascript. The array is used
692
+ * in place and becomes part of the constructed object. It is not cloned.
693
+ * If no data is provided, the constructed object will be empty, but still
694
+ * valid.
695
+ * @extends {jspb.Message}
696
+ * @constructor
697
+ */
698
+ proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest = function(opt_data) {
699
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
700
+ };
701
+ goog.inherits(proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest, jspb.Message);
702
+ if (goog.DEBUG && !COMPILED) {
703
+ /**
704
+ * @public
705
+ * @override
706
+ */
707
+ proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest.displayName = 'proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest';
708
+ }
709
+ /**
710
+ * Generated by JsPbCodeGenerator.
711
+ * @param {Array=} opt_data Optional initial data array, typically from a
712
+ * server response, or constructed directly in Javascript. The array is used
713
+ * in place and becomes part of the constructed object. It is not cloned.
714
+ * If no data is provided, the constructed object will be empty, but still
715
+ * valid.
716
+ * @extends {jspb.Message}
717
+ * @constructor
718
+ */
719
+ proto.fonoster.identity.v1beta2.ResetPasswordRequest = function(opt_data) {
720
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
721
+ };
722
+ goog.inherits(proto.fonoster.identity.v1beta2.ResetPasswordRequest, jspb.Message);
723
+ if (goog.DEBUG && !COMPILED) {
724
+ /**
725
+ * @public
726
+ * @override
727
+ */
728
+ proto.fonoster.identity.v1beta2.ResetPasswordRequest.displayName = 'proto.fonoster.identity.v1beta2.ResetPasswordRequest';
729
+ }
686
730
  /**
687
731
  * Generated by JsPbCodeGenerator.
688
732
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -5956,6 +6000,326 @@ proto.fonoster.identity.v1beta2.VerifyCodeRequest.prototype.setVerificationCode
5956
6000
 
5957
6001
 
5958
6002
 
6003
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6004
+ /**
6005
+ * Creates an object representation of this proto.
6006
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6007
+ * Optional fields that are not set will be set to undefined.
6008
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6009
+ * For the list of reserved names please see:
6010
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6011
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6012
+ * JSPB instance for transitional soy proto support:
6013
+ * http://goto/soy-param-migration
6014
+ * @return {!Object}
6015
+ */
6016
+ proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest.prototype.toObject = function(opt_includeInstance) {
6017
+ return proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest.toObject(opt_includeInstance, this);
6018
+ };
6019
+
6020
+
6021
+ /**
6022
+ * Static version of the {@see toObject} method.
6023
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6024
+ * the JSPB instance for transitional soy proto support:
6025
+ * http://goto/soy-param-migration
6026
+ * @param {!proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest} msg The msg instance to transform.
6027
+ * @return {!Object}
6028
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6029
+ */
6030
+ proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest.toObject = function(includeInstance, msg) {
6031
+ var f, obj = {
6032
+ username: jspb.Message.getFieldWithDefault(msg, 1, "")
6033
+ };
6034
+
6035
+ if (includeInstance) {
6036
+ obj.$jspbMessageInstance = msg;
6037
+ }
6038
+ return obj;
6039
+ };
6040
+ }
6041
+
6042
+
6043
+ /**
6044
+ * Deserializes binary data (in protobuf wire format).
6045
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6046
+ * @return {!proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest}
6047
+ */
6048
+ proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest.deserializeBinary = function(bytes) {
6049
+ var reader = new jspb.BinaryReader(bytes);
6050
+ var msg = new proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest;
6051
+ return proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest.deserializeBinaryFromReader(msg, reader);
6052
+ };
6053
+
6054
+
6055
+ /**
6056
+ * Deserializes binary data (in protobuf wire format) from the
6057
+ * given reader into the given message object.
6058
+ * @param {!proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest} msg The message object to deserialize into.
6059
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6060
+ * @return {!proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest}
6061
+ */
6062
+ proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest.deserializeBinaryFromReader = function(msg, reader) {
6063
+ while (reader.nextField()) {
6064
+ if (reader.isEndGroup()) {
6065
+ break;
6066
+ }
6067
+ var field = reader.getFieldNumber();
6068
+ switch (field) {
6069
+ case 1:
6070
+ var value = /** @type {string} */ (reader.readString());
6071
+ msg.setUsername(value);
6072
+ break;
6073
+ default:
6074
+ reader.skipField();
6075
+ break;
6076
+ }
6077
+ }
6078
+ return msg;
6079
+ };
6080
+
6081
+
6082
+ /**
6083
+ * Serializes the message to binary data (in protobuf wire format).
6084
+ * @return {!Uint8Array}
6085
+ */
6086
+ proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest.prototype.serializeBinary = function() {
6087
+ var writer = new jspb.BinaryWriter();
6088
+ proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest.serializeBinaryToWriter(this, writer);
6089
+ return writer.getResultBuffer();
6090
+ };
6091
+
6092
+
6093
+ /**
6094
+ * Serializes the given message to binary data (in protobuf wire
6095
+ * format), writing to the given BinaryWriter.
6096
+ * @param {!proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest} message
6097
+ * @param {!jspb.BinaryWriter} writer
6098
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6099
+ */
6100
+ proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest.serializeBinaryToWriter = function(message, writer) {
6101
+ var f = undefined;
6102
+ f = message.getUsername();
6103
+ if (f.length > 0) {
6104
+ writer.writeString(
6105
+ 1,
6106
+ f
6107
+ );
6108
+ }
6109
+ };
6110
+
6111
+
6112
+ /**
6113
+ * optional string username = 1;
6114
+ * @return {string}
6115
+ */
6116
+ proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest.prototype.getUsername = function() {
6117
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6118
+ };
6119
+
6120
+
6121
+ /**
6122
+ * @param {string} value
6123
+ * @return {!proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest} returns this
6124
+ */
6125
+ proto.fonoster.identity.v1beta2.SendResetPasswordCodeRequest.prototype.setUsername = function(value) {
6126
+ return jspb.Message.setProto3StringField(this, 1, value);
6127
+ };
6128
+
6129
+
6130
+
6131
+
6132
+
6133
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6134
+ /**
6135
+ * Creates an object representation of this proto.
6136
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6137
+ * Optional fields that are not set will be set to undefined.
6138
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6139
+ * For the list of reserved names please see:
6140
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6141
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6142
+ * JSPB instance for transitional soy proto support:
6143
+ * http://goto/soy-param-migration
6144
+ * @return {!Object}
6145
+ */
6146
+ proto.fonoster.identity.v1beta2.ResetPasswordRequest.prototype.toObject = function(opt_includeInstance) {
6147
+ return proto.fonoster.identity.v1beta2.ResetPasswordRequest.toObject(opt_includeInstance, this);
6148
+ };
6149
+
6150
+
6151
+ /**
6152
+ * Static version of the {@see toObject} method.
6153
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6154
+ * the JSPB instance for transitional soy proto support:
6155
+ * http://goto/soy-param-migration
6156
+ * @param {!proto.fonoster.identity.v1beta2.ResetPasswordRequest} msg The msg instance to transform.
6157
+ * @return {!Object}
6158
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6159
+ */
6160
+ proto.fonoster.identity.v1beta2.ResetPasswordRequest.toObject = function(includeInstance, msg) {
6161
+ var f, obj = {
6162
+ username: jspb.Message.getFieldWithDefault(msg, 1, ""),
6163
+ password: jspb.Message.getFieldWithDefault(msg, 2, ""),
6164
+ verificationCode: jspb.Message.getFieldWithDefault(msg, 3, "")
6165
+ };
6166
+
6167
+ if (includeInstance) {
6168
+ obj.$jspbMessageInstance = msg;
6169
+ }
6170
+ return obj;
6171
+ };
6172
+ }
6173
+
6174
+
6175
+ /**
6176
+ * Deserializes binary data (in protobuf wire format).
6177
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6178
+ * @return {!proto.fonoster.identity.v1beta2.ResetPasswordRequest}
6179
+ */
6180
+ proto.fonoster.identity.v1beta2.ResetPasswordRequest.deserializeBinary = function(bytes) {
6181
+ var reader = new jspb.BinaryReader(bytes);
6182
+ var msg = new proto.fonoster.identity.v1beta2.ResetPasswordRequest;
6183
+ return proto.fonoster.identity.v1beta2.ResetPasswordRequest.deserializeBinaryFromReader(msg, reader);
6184
+ };
6185
+
6186
+
6187
+ /**
6188
+ * Deserializes binary data (in protobuf wire format) from the
6189
+ * given reader into the given message object.
6190
+ * @param {!proto.fonoster.identity.v1beta2.ResetPasswordRequest} msg The message object to deserialize into.
6191
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6192
+ * @return {!proto.fonoster.identity.v1beta2.ResetPasswordRequest}
6193
+ */
6194
+ proto.fonoster.identity.v1beta2.ResetPasswordRequest.deserializeBinaryFromReader = function(msg, reader) {
6195
+ while (reader.nextField()) {
6196
+ if (reader.isEndGroup()) {
6197
+ break;
6198
+ }
6199
+ var field = reader.getFieldNumber();
6200
+ switch (field) {
6201
+ case 1:
6202
+ var value = /** @type {string} */ (reader.readString());
6203
+ msg.setUsername(value);
6204
+ break;
6205
+ case 2:
6206
+ var value = /** @type {string} */ (reader.readString());
6207
+ msg.setPassword(value);
6208
+ break;
6209
+ case 3:
6210
+ var value = /** @type {string} */ (reader.readString());
6211
+ msg.setVerificationCode(value);
6212
+ break;
6213
+ default:
6214
+ reader.skipField();
6215
+ break;
6216
+ }
6217
+ }
6218
+ return msg;
6219
+ };
6220
+
6221
+
6222
+ /**
6223
+ * Serializes the message to binary data (in protobuf wire format).
6224
+ * @return {!Uint8Array}
6225
+ */
6226
+ proto.fonoster.identity.v1beta2.ResetPasswordRequest.prototype.serializeBinary = function() {
6227
+ var writer = new jspb.BinaryWriter();
6228
+ proto.fonoster.identity.v1beta2.ResetPasswordRequest.serializeBinaryToWriter(this, writer);
6229
+ return writer.getResultBuffer();
6230
+ };
6231
+
6232
+
6233
+ /**
6234
+ * Serializes the given message to binary data (in protobuf wire
6235
+ * format), writing to the given BinaryWriter.
6236
+ * @param {!proto.fonoster.identity.v1beta2.ResetPasswordRequest} message
6237
+ * @param {!jspb.BinaryWriter} writer
6238
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6239
+ */
6240
+ proto.fonoster.identity.v1beta2.ResetPasswordRequest.serializeBinaryToWriter = function(message, writer) {
6241
+ var f = undefined;
6242
+ f = message.getUsername();
6243
+ if (f.length > 0) {
6244
+ writer.writeString(
6245
+ 1,
6246
+ f
6247
+ );
6248
+ }
6249
+ f = message.getPassword();
6250
+ if (f.length > 0) {
6251
+ writer.writeString(
6252
+ 2,
6253
+ f
6254
+ );
6255
+ }
6256
+ f = message.getVerificationCode();
6257
+ if (f.length > 0) {
6258
+ writer.writeString(
6259
+ 3,
6260
+ f
6261
+ );
6262
+ }
6263
+ };
6264
+
6265
+
6266
+ /**
6267
+ * optional string username = 1;
6268
+ * @return {string}
6269
+ */
6270
+ proto.fonoster.identity.v1beta2.ResetPasswordRequest.prototype.getUsername = function() {
6271
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6272
+ };
6273
+
6274
+
6275
+ /**
6276
+ * @param {string} value
6277
+ * @return {!proto.fonoster.identity.v1beta2.ResetPasswordRequest} returns this
6278
+ */
6279
+ proto.fonoster.identity.v1beta2.ResetPasswordRequest.prototype.setUsername = function(value) {
6280
+ return jspb.Message.setProto3StringField(this, 1, value);
6281
+ };
6282
+
6283
+
6284
+ /**
6285
+ * optional string password = 2;
6286
+ * @return {string}
6287
+ */
6288
+ proto.fonoster.identity.v1beta2.ResetPasswordRequest.prototype.getPassword = function() {
6289
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
6290
+ };
6291
+
6292
+
6293
+ /**
6294
+ * @param {string} value
6295
+ * @return {!proto.fonoster.identity.v1beta2.ResetPasswordRequest} returns this
6296
+ */
6297
+ proto.fonoster.identity.v1beta2.ResetPasswordRequest.prototype.setPassword = function(value) {
6298
+ return jspb.Message.setProto3StringField(this, 2, value);
6299
+ };
6300
+
6301
+
6302
+ /**
6303
+ * optional string verification_code = 3;
6304
+ * @return {string}
6305
+ */
6306
+ proto.fonoster.identity.v1beta2.ResetPasswordRequest.prototype.getVerificationCode = function() {
6307
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6308
+ };
6309
+
6310
+
6311
+ /**
6312
+ * @param {string} value
6313
+ * @return {!proto.fonoster.identity.v1beta2.ResetPasswordRequest} returns this
6314
+ */
6315
+ proto.fonoster.identity.v1beta2.ResetPasswordRequest.prototype.setVerificationCode = function(value) {
6316
+ return jspb.Message.setProto3StringField(this, 3, value);
6317
+ };
6318
+
6319
+
6320
+
6321
+
6322
+
5959
6323
  if (jspb.Message.GENERATE_TO_OBJECT) {
5960
6324
  /**
5961
6325
  * Creates an object representation of this proto.