@sellout/models 0.0.23 → 0.0.26

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.
@@ -61868,1682 +61868,6 @@ $root.TaskService = (function() {
61868
61868
  return TaskService;
61869
61869
  })();
61870
61870
 
61871
- $root.RegisterTwilioUserRequest = (function() {
61872
-
61873
- /**
61874
- * Properties of a RegisterTwilioUserRequest.
61875
- * @exports IRegisterTwilioUserRequest
61876
- * @interface IRegisterTwilioUserRequest
61877
- * @property {string|null} [spanContext] RegisterTwilioUserRequest spanContext
61878
- * @property {string|null} [email] RegisterTwilioUserRequest email
61879
- * @property {string|null} [phoneNumber] RegisterTwilioUserRequest phoneNumber
61880
- */
61881
-
61882
- /**
61883
- * Constructs a new RegisterTwilioUserRequest.
61884
- * @exports RegisterTwilioUserRequest
61885
- * @classdesc Represents a RegisterTwilioUserRequest.
61886
- * @implements IRegisterTwilioUserRequest
61887
- * @constructor
61888
- * @param {IRegisterTwilioUserRequest=} [properties] Properties to set
61889
- */
61890
- function RegisterTwilioUserRequest(properties) {
61891
- if (properties)
61892
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
61893
- if (properties[keys[i]] != null)
61894
- this[keys[i]] = properties[keys[i]];
61895
- }
61896
-
61897
- /**
61898
- * RegisterTwilioUserRequest spanContext.
61899
- * @member {string} spanContext
61900
- * @memberof RegisterTwilioUserRequest
61901
- * @instance
61902
- */
61903
- RegisterTwilioUserRequest.prototype.spanContext = "";
61904
-
61905
- /**
61906
- * RegisterTwilioUserRequest email.
61907
- * @member {string} email
61908
- * @memberof RegisterTwilioUserRequest
61909
- * @instance
61910
- */
61911
- RegisterTwilioUserRequest.prototype.email = "";
61912
-
61913
- /**
61914
- * RegisterTwilioUserRequest phoneNumber.
61915
- * @member {string} phoneNumber
61916
- * @memberof RegisterTwilioUserRequest
61917
- * @instance
61918
- */
61919
- RegisterTwilioUserRequest.prototype.phoneNumber = "";
61920
-
61921
- /**
61922
- * Creates a new RegisterTwilioUserRequest instance using the specified properties.
61923
- * @function create
61924
- * @memberof RegisterTwilioUserRequest
61925
- * @static
61926
- * @param {IRegisterTwilioUserRequest=} [properties] Properties to set
61927
- * @returns {RegisterTwilioUserRequest} RegisterTwilioUserRequest instance
61928
- */
61929
- RegisterTwilioUserRequest.create = function create(properties) {
61930
- return new RegisterTwilioUserRequest(properties);
61931
- };
61932
-
61933
- /**
61934
- * Encodes the specified RegisterTwilioUserRequest message. Does not implicitly {@link RegisterTwilioUserRequest.verify|verify} messages.
61935
- * @function encode
61936
- * @memberof RegisterTwilioUserRequest
61937
- * @static
61938
- * @param {IRegisterTwilioUserRequest} message RegisterTwilioUserRequest message or plain object to encode
61939
- * @param {$protobuf.Writer} [writer] Writer to encode to
61940
- * @returns {$protobuf.Writer} Writer
61941
- */
61942
- RegisterTwilioUserRequest.encode = function encode(message, writer) {
61943
- if (!writer)
61944
- writer = $Writer.create();
61945
- if (message.spanContext != null && message.hasOwnProperty("spanContext"))
61946
- writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
61947
- if (message.email != null && message.hasOwnProperty("email"))
61948
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.email);
61949
- if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
61950
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.phoneNumber);
61951
- return writer;
61952
- };
61953
-
61954
- /**
61955
- * Encodes the specified RegisterTwilioUserRequest message, length delimited. Does not implicitly {@link RegisterTwilioUserRequest.verify|verify} messages.
61956
- * @function encodeDelimited
61957
- * @memberof RegisterTwilioUserRequest
61958
- * @static
61959
- * @param {IRegisterTwilioUserRequest} message RegisterTwilioUserRequest message or plain object to encode
61960
- * @param {$protobuf.Writer} [writer] Writer to encode to
61961
- * @returns {$protobuf.Writer} Writer
61962
- */
61963
- RegisterTwilioUserRequest.encodeDelimited = function encodeDelimited(message, writer) {
61964
- return this.encode(message, writer).ldelim();
61965
- };
61966
-
61967
- /**
61968
- * Decodes a RegisterTwilioUserRequest message from the specified reader or buffer.
61969
- * @function decode
61970
- * @memberof RegisterTwilioUserRequest
61971
- * @static
61972
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
61973
- * @param {number} [length] Message length if known beforehand
61974
- * @returns {RegisterTwilioUserRequest} RegisterTwilioUserRequest
61975
- * @throws {Error} If the payload is not a reader or valid buffer
61976
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
61977
- */
61978
- RegisterTwilioUserRequest.decode = function decode(reader, length) {
61979
- if (!(reader instanceof $Reader))
61980
- reader = $Reader.create(reader);
61981
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.RegisterTwilioUserRequest();
61982
- while (reader.pos < end) {
61983
- var tag = reader.uint32();
61984
- switch (tag >>> 3) {
61985
- case 0:
61986
- message.spanContext = reader.string();
61987
- break;
61988
- case 1:
61989
- message.email = reader.string();
61990
- break;
61991
- case 2:
61992
- message.phoneNumber = reader.string();
61993
- break;
61994
- default:
61995
- reader.skipType(tag & 7);
61996
- break;
61997
- }
61998
- }
61999
- return message;
62000
- };
62001
-
62002
- /**
62003
- * Decodes a RegisterTwilioUserRequest message from the specified reader or buffer, length delimited.
62004
- * @function decodeDelimited
62005
- * @memberof RegisterTwilioUserRequest
62006
- * @static
62007
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
62008
- * @returns {RegisterTwilioUserRequest} RegisterTwilioUserRequest
62009
- * @throws {Error} If the payload is not a reader or valid buffer
62010
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
62011
- */
62012
- RegisterTwilioUserRequest.decodeDelimited = function decodeDelimited(reader) {
62013
- if (!(reader instanceof $Reader))
62014
- reader = new $Reader(reader);
62015
- return this.decode(reader, reader.uint32());
62016
- };
62017
-
62018
- /**
62019
- * Verifies a RegisterTwilioUserRequest message.
62020
- * @function verify
62021
- * @memberof RegisterTwilioUserRequest
62022
- * @static
62023
- * @param {Object.<string,*>} message Plain object to verify
62024
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
62025
- */
62026
- RegisterTwilioUserRequest.verify = function verify(message) {
62027
- if (typeof message !== "object" || message === null)
62028
- return "object expected";
62029
- if (message.spanContext != null && message.hasOwnProperty("spanContext"))
62030
- if (!$util.isString(message.spanContext))
62031
- return "spanContext: string expected";
62032
- if (message.email != null && message.hasOwnProperty("email"))
62033
- if (!$util.isString(message.email))
62034
- return "email: string expected";
62035
- if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
62036
- if (!$util.isString(message.phoneNumber))
62037
- return "phoneNumber: string expected";
62038
- return null;
62039
- };
62040
-
62041
- /**
62042
- * Creates a RegisterTwilioUserRequest message from a plain object. Also converts values to their respective internal types.
62043
- * @function fromObject
62044
- * @memberof RegisterTwilioUserRequest
62045
- * @static
62046
- * @param {Object.<string,*>} object Plain object
62047
- * @returns {RegisterTwilioUserRequest} RegisterTwilioUserRequest
62048
- */
62049
- RegisterTwilioUserRequest.fromObject = function fromObject(object) {
62050
- if (object instanceof $root.RegisterTwilioUserRequest)
62051
- return object;
62052
- var message = new $root.RegisterTwilioUserRequest();
62053
- if (object.spanContext != null)
62054
- message.spanContext = String(object.spanContext);
62055
- if (object.email != null)
62056
- message.email = String(object.email);
62057
- if (object.phoneNumber != null)
62058
- message.phoneNumber = String(object.phoneNumber);
62059
- return message;
62060
- };
62061
-
62062
- /**
62063
- * Creates a plain object from a RegisterTwilioUserRequest message. Also converts values to other types if specified.
62064
- * @function toObject
62065
- * @memberof RegisterTwilioUserRequest
62066
- * @static
62067
- * @param {RegisterTwilioUserRequest} message RegisterTwilioUserRequest
62068
- * @param {$protobuf.IConversionOptions} [options] Conversion options
62069
- * @returns {Object.<string,*>} Plain object
62070
- */
62071
- RegisterTwilioUserRequest.toObject = function toObject(message, options) {
62072
- if (!options)
62073
- options = {};
62074
- var object = {};
62075
- if (options.defaults) {
62076
- object.spanContext = "";
62077
- object.email = "";
62078
- object.phoneNumber = "";
62079
- }
62080
- if (message.spanContext != null && message.hasOwnProperty("spanContext"))
62081
- object.spanContext = message.spanContext;
62082
- if (message.email != null && message.hasOwnProperty("email"))
62083
- object.email = message.email;
62084
- if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
62085
- object.phoneNumber = message.phoneNumber;
62086
- return object;
62087
- };
62088
-
62089
- /**
62090
- * Converts this RegisterTwilioUserRequest to JSON.
62091
- * @function toJSON
62092
- * @memberof RegisterTwilioUserRequest
62093
- * @instance
62094
- * @returns {Object.<string,*>} JSON object
62095
- */
62096
- RegisterTwilioUserRequest.prototype.toJSON = function toJSON() {
62097
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
62098
- };
62099
-
62100
- return RegisterTwilioUserRequest;
62101
- })();
62102
-
62103
- $root.RegisterTwilioUserResponse = (function() {
62104
-
62105
- /**
62106
- * Properties of a RegisterTwilioUserResponse.
62107
- * @exports IRegisterTwilioUserResponse
62108
- * @interface IRegisterTwilioUserResponse
62109
- * @property {StatusCode|null} [status] RegisterTwilioUserResponse status
62110
- * @property {Array.<IError>|null} [errors] RegisterTwilioUserResponse errors
62111
- * @property {string|null} [authyId] RegisterTwilioUserResponse authyId
62112
- */
62113
-
62114
- /**
62115
- * Constructs a new RegisterTwilioUserResponse.
62116
- * @exports RegisterTwilioUserResponse
62117
- * @classdesc Represents a RegisterTwilioUserResponse.
62118
- * @implements IRegisterTwilioUserResponse
62119
- * @constructor
62120
- * @param {IRegisterTwilioUserResponse=} [properties] Properties to set
62121
- */
62122
- function RegisterTwilioUserResponse(properties) {
62123
- this.errors = [];
62124
- if (properties)
62125
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
62126
- if (properties[keys[i]] != null)
62127
- this[keys[i]] = properties[keys[i]];
62128
- }
62129
-
62130
- /**
62131
- * RegisterTwilioUserResponse status.
62132
- * @member {StatusCode} status
62133
- * @memberof RegisterTwilioUserResponse
62134
- * @instance
62135
- */
62136
- RegisterTwilioUserResponse.prototype.status = 0;
62137
-
62138
- /**
62139
- * RegisterTwilioUserResponse errors.
62140
- * @member {Array.<IError>} errors
62141
- * @memberof RegisterTwilioUserResponse
62142
- * @instance
62143
- */
62144
- RegisterTwilioUserResponse.prototype.errors = $util.emptyArray;
62145
-
62146
- /**
62147
- * RegisterTwilioUserResponse authyId.
62148
- * @member {string} authyId
62149
- * @memberof RegisterTwilioUserResponse
62150
- * @instance
62151
- */
62152
- RegisterTwilioUserResponse.prototype.authyId = "";
62153
-
62154
- /**
62155
- * Creates a new RegisterTwilioUserResponse instance using the specified properties.
62156
- * @function create
62157
- * @memberof RegisterTwilioUserResponse
62158
- * @static
62159
- * @param {IRegisterTwilioUserResponse=} [properties] Properties to set
62160
- * @returns {RegisterTwilioUserResponse} RegisterTwilioUserResponse instance
62161
- */
62162
- RegisterTwilioUserResponse.create = function create(properties) {
62163
- return new RegisterTwilioUserResponse(properties);
62164
- };
62165
-
62166
- /**
62167
- * Encodes the specified RegisterTwilioUserResponse message. Does not implicitly {@link RegisterTwilioUserResponse.verify|verify} messages.
62168
- * @function encode
62169
- * @memberof RegisterTwilioUserResponse
62170
- * @static
62171
- * @param {IRegisterTwilioUserResponse} message RegisterTwilioUserResponse message or plain object to encode
62172
- * @param {$protobuf.Writer} [writer] Writer to encode to
62173
- * @returns {$protobuf.Writer} Writer
62174
- */
62175
- RegisterTwilioUserResponse.encode = function encode(message, writer) {
62176
- if (!writer)
62177
- writer = $Writer.create();
62178
- if (message.status != null && message.hasOwnProperty("status"))
62179
- writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
62180
- if (message.errors != null && message.errors.length)
62181
- for (var i = 0; i < message.errors.length; ++i)
62182
- $root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
62183
- if (message.authyId != null && message.hasOwnProperty("authyId"))
62184
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.authyId);
62185
- return writer;
62186
- };
62187
-
62188
- /**
62189
- * Encodes the specified RegisterTwilioUserResponse message, length delimited. Does not implicitly {@link RegisterTwilioUserResponse.verify|verify} messages.
62190
- * @function encodeDelimited
62191
- * @memberof RegisterTwilioUserResponse
62192
- * @static
62193
- * @param {IRegisterTwilioUserResponse} message RegisterTwilioUserResponse message or plain object to encode
62194
- * @param {$protobuf.Writer} [writer] Writer to encode to
62195
- * @returns {$protobuf.Writer} Writer
62196
- */
62197
- RegisterTwilioUserResponse.encodeDelimited = function encodeDelimited(message, writer) {
62198
- return this.encode(message, writer).ldelim();
62199
- };
62200
-
62201
- /**
62202
- * Decodes a RegisterTwilioUserResponse message from the specified reader or buffer.
62203
- * @function decode
62204
- * @memberof RegisterTwilioUserResponse
62205
- * @static
62206
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
62207
- * @param {number} [length] Message length if known beforehand
62208
- * @returns {RegisterTwilioUserResponse} RegisterTwilioUserResponse
62209
- * @throws {Error} If the payload is not a reader or valid buffer
62210
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
62211
- */
62212
- RegisterTwilioUserResponse.decode = function decode(reader, length) {
62213
- if (!(reader instanceof $Reader))
62214
- reader = $Reader.create(reader);
62215
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.RegisterTwilioUserResponse();
62216
- while (reader.pos < end) {
62217
- var tag = reader.uint32();
62218
- switch (tag >>> 3) {
62219
- case 0:
62220
- message.status = reader.int32();
62221
- break;
62222
- case 1:
62223
- if (!(message.errors && message.errors.length))
62224
- message.errors = [];
62225
- message.errors.push($root.Error.decode(reader, reader.uint32()));
62226
- break;
62227
- case 2:
62228
- message.authyId = reader.string();
62229
- break;
62230
- default:
62231
- reader.skipType(tag & 7);
62232
- break;
62233
- }
62234
- }
62235
- return message;
62236
- };
62237
-
62238
- /**
62239
- * Decodes a RegisterTwilioUserResponse message from the specified reader or buffer, length delimited.
62240
- * @function decodeDelimited
62241
- * @memberof RegisterTwilioUserResponse
62242
- * @static
62243
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
62244
- * @returns {RegisterTwilioUserResponse} RegisterTwilioUserResponse
62245
- * @throws {Error} If the payload is not a reader or valid buffer
62246
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
62247
- */
62248
- RegisterTwilioUserResponse.decodeDelimited = function decodeDelimited(reader) {
62249
- if (!(reader instanceof $Reader))
62250
- reader = new $Reader(reader);
62251
- return this.decode(reader, reader.uint32());
62252
- };
62253
-
62254
- /**
62255
- * Verifies a RegisterTwilioUserResponse message.
62256
- * @function verify
62257
- * @memberof RegisterTwilioUserResponse
62258
- * @static
62259
- * @param {Object.<string,*>} message Plain object to verify
62260
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
62261
- */
62262
- RegisterTwilioUserResponse.verify = function verify(message) {
62263
- if (typeof message !== "object" || message === null)
62264
- return "object expected";
62265
- if (message.status != null && message.hasOwnProperty("status"))
62266
- switch (message.status) {
62267
- default:
62268
- return "status: enum value expected";
62269
- case 0:
62270
- case 200:
62271
- case 400:
62272
- case 401:
62273
- case 403:
62274
- case 422:
62275
- case 500:
62276
- case 504:
62277
- break;
62278
- }
62279
- if (message.errors != null && message.hasOwnProperty("errors")) {
62280
- if (!Array.isArray(message.errors))
62281
- return "errors: array expected";
62282
- for (var i = 0; i < message.errors.length; ++i) {
62283
- var error = $root.Error.verify(message.errors[i]);
62284
- if (error)
62285
- return "errors." + error;
62286
- }
62287
- }
62288
- if (message.authyId != null && message.hasOwnProperty("authyId"))
62289
- if (!$util.isString(message.authyId))
62290
- return "authyId: string expected";
62291
- return null;
62292
- };
62293
-
62294
- /**
62295
- * Creates a RegisterTwilioUserResponse message from a plain object. Also converts values to their respective internal types.
62296
- * @function fromObject
62297
- * @memberof RegisterTwilioUserResponse
62298
- * @static
62299
- * @param {Object.<string,*>} object Plain object
62300
- * @returns {RegisterTwilioUserResponse} RegisterTwilioUserResponse
62301
- */
62302
- RegisterTwilioUserResponse.fromObject = function fromObject(object) {
62303
- if (object instanceof $root.RegisterTwilioUserResponse)
62304
- return object;
62305
- var message = new $root.RegisterTwilioUserResponse();
62306
- switch (object.status) {
62307
- case "UNKNOWN_CODE":
62308
- case 0:
62309
- message.status = 0;
62310
- break;
62311
- case "OK":
62312
- case 200:
62313
- message.status = 200;
62314
- break;
62315
- case "BAD_REQUEST":
62316
- case 400:
62317
- message.status = 400;
62318
- break;
62319
- case "UNAUTHORIZED":
62320
- case 401:
62321
- message.status = 401;
62322
- break;
62323
- case "FORBIDDEN":
62324
- case 403:
62325
- message.status = 403;
62326
- break;
62327
- case "UNPROCESSABLE_ENTITY":
62328
- case 422:
62329
- message.status = 422;
62330
- break;
62331
- case "INTERNAL_SERVER_ERROR":
62332
- case 500:
62333
- message.status = 500;
62334
- break;
62335
- case "GATEWAY_TIMEOUT":
62336
- case 504:
62337
- message.status = 504;
62338
- break;
62339
- }
62340
- if (object.errors) {
62341
- if (!Array.isArray(object.errors))
62342
- throw TypeError(".RegisterTwilioUserResponse.errors: array expected");
62343
- message.errors = [];
62344
- for (var i = 0; i < object.errors.length; ++i) {
62345
- if (typeof object.errors[i] !== "object")
62346
- throw TypeError(".RegisterTwilioUserResponse.errors: object expected");
62347
- message.errors[i] = $root.Error.fromObject(object.errors[i]);
62348
- }
62349
- }
62350
- if (object.authyId != null)
62351
- message.authyId = String(object.authyId);
62352
- return message;
62353
- };
62354
-
62355
- /**
62356
- * Creates a plain object from a RegisterTwilioUserResponse message. Also converts values to other types if specified.
62357
- * @function toObject
62358
- * @memberof RegisterTwilioUserResponse
62359
- * @static
62360
- * @param {RegisterTwilioUserResponse} message RegisterTwilioUserResponse
62361
- * @param {$protobuf.IConversionOptions} [options] Conversion options
62362
- * @returns {Object.<string,*>} Plain object
62363
- */
62364
- RegisterTwilioUserResponse.toObject = function toObject(message, options) {
62365
- if (!options)
62366
- options = {};
62367
- var object = {};
62368
- if (options.arrays || options.defaults)
62369
- object.errors = [];
62370
- if (options.defaults) {
62371
- object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
62372
- object.authyId = "";
62373
- }
62374
- if (message.status != null && message.hasOwnProperty("status"))
62375
- object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
62376
- if (message.errors && message.errors.length) {
62377
- object.errors = [];
62378
- for (var j = 0; j < message.errors.length; ++j)
62379
- object.errors[j] = $root.Error.toObject(message.errors[j], options);
62380
- }
62381
- if (message.authyId != null && message.hasOwnProperty("authyId"))
62382
- object.authyId = message.authyId;
62383
- return object;
62384
- };
62385
-
62386
- /**
62387
- * Converts this RegisterTwilioUserResponse to JSON.
62388
- * @function toJSON
62389
- * @memberof RegisterTwilioUserResponse
62390
- * @instance
62391
- * @returns {Object.<string,*>} JSON object
62392
- */
62393
- RegisterTwilioUserResponse.prototype.toJSON = function toJSON() {
62394
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
62395
- };
62396
-
62397
- return RegisterTwilioUserResponse;
62398
- })();
62399
-
62400
- $root.SendTwilioVerificationRequest = (function() {
62401
-
62402
- /**
62403
- * Properties of a SendTwilioVerificationRequest.
62404
- * @exports ISendTwilioVerificationRequest
62405
- * @interface ISendTwilioVerificationRequest
62406
- * @property {string|null} [spanContext] SendTwilioVerificationRequest spanContext
62407
- * @property {string|null} [phoneNumber] SendTwilioVerificationRequest phoneNumber
62408
- */
62409
-
62410
- /**
62411
- * Constructs a new SendTwilioVerificationRequest.
62412
- * @exports SendTwilioVerificationRequest
62413
- * @classdesc Represents a SendTwilioVerificationRequest.
62414
- * @implements ISendTwilioVerificationRequest
62415
- * @constructor
62416
- * @param {ISendTwilioVerificationRequest=} [properties] Properties to set
62417
- */
62418
- function SendTwilioVerificationRequest(properties) {
62419
- if (properties)
62420
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
62421
- if (properties[keys[i]] != null)
62422
- this[keys[i]] = properties[keys[i]];
62423
- }
62424
-
62425
- /**
62426
- * SendTwilioVerificationRequest spanContext.
62427
- * @member {string} spanContext
62428
- * @memberof SendTwilioVerificationRequest
62429
- * @instance
62430
- */
62431
- SendTwilioVerificationRequest.prototype.spanContext = "";
62432
-
62433
- /**
62434
- * SendTwilioVerificationRequest phoneNumber.
62435
- * @member {string} phoneNumber
62436
- * @memberof SendTwilioVerificationRequest
62437
- * @instance
62438
- */
62439
- SendTwilioVerificationRequest.prototype.phoneNumber = "";
62440
-
62441
- /**
62442
- * Creates a new SendTwilioVerificationRequest instance using the specified properties.
62443
- * @function create
62444
- * @memberof SendTwilioVerificationRequest
62445
- * @static
62446
- * @param {ISendTwilioVerificationRequest=} [properties] Properties to set
62447
- * @returns {SendTwilioVerificationRequest} SendTwilioVerificationRequest instance
62448
- */
62449
- SendTwilioVerificationRequest.create = function create(properties) {
62450
- return new SendTwilioVerificationRequest(properties);
62451
- };
62452
-
62453
- /**
62454
- * Encodes the specified SendTwilioVerificationRequest message. Does not implicitly {@link SendTwilioVerificationRequest.verify|verify} messages.
62455
- * @function encode
62456
- * @memberof SendTwilioVerificationRequest
62457
- * @static
62458
- * @param {ISendTwilioVerificationRequest} message SendTwilioVerificationRequest message or plain object to encode
62459
- * @param {$protobuf.Writer} [writer] Writer to encode to
62460
- * @returns {$protobuf.Writer} Writer
62461
- */
62462
- SendTwilioVerificationRequest.encode = function encode(message, writer) {
62463
- if (!writer)
62464
- writer = $Writer.create();
62465
- if (message.spanContext != null && message.hasOwnProperty("spanContext"))
62466
- writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
62467
- if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
62468
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.phoneNumber);
62469
- return writer;
62470
- };
62471
-
62472
- /**
62473
- * Encodes the specified SendTwilioVerificationRequest message, length delimited. Does not implicitly {@link SendTwilioVerificationRequest.verify|verify} messages.
62474
- * @function encodeDelimited
62475
- * @memberof SendTwilioVerificationRequest
62476
- * @static
62477
- * @param {ISendTwilioVerificationRequest} message SendTwilioVerificationRequest message or plain object to encode
62478
- * @param {$protobuf.Writer} [writer] Writer to encode to
62479
- * @returns {$protobuf.Writer} Writer
62480
- */
62481
- SendTwilioVerificationRequest.encodeDelimited = function encodeDelimited(message, writer) {
62482
- return this.encode(message, writer).ldelim();
62483
- };
62484
-
62485
- /**
62486
- * Decodes a SendTwilioVerificationRequest message from the specified reader or buffer.
62487
- * @function decode
62488
- * @memberof SendTwilioVerificationRequest
62489
- * @static
62490
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
62491
- * @param {number} [length] Message length if known beforehand
62492
- * @returns {SendTwilioVerificationRequest} SendTwilioVerificationRequest
62493
- * @throws {Error} If the payload is not a reader or valid buffer
62494
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
62495
- */
62496
- SendTwilioVerificationRequest.decode = function decode(reader, length) {
62497
- if (!(reader instanceof $Reader))
62498
- reader = $Reader.create(reader);
62499
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SendTwilioVerificationRequest();
62500
- while (reader.pos < end) {
62501
- var tag = reader.uint32();
62502
- switch (tag >>> 3) {
62503
- case 0:
62504
- message.spanContext = reader.string();
62505
- break;
62506
- case 1:
62507
- message.phoneNumber = reader.string();
62508
- break;
62509
- default:
62510
- reader.skipType(tag & 7);
62511
- break;
62512
- }
62513
- }
62514
- return message;
62515
- };
62516
-
62517
- /**
62518
- * Decodes a SendTwilioVerificationRequest message from the specified reader or buffer, length delimited.
62519
- * @function decodeDelimited
62520
- * @memberof SendTwilioVerificationRequest
62521
- * @static
62522
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
62523
- * @returns {SendTwilioVerificationRequest} SendTwilioVerificationRequest
62524
- * @throws {Error} If the payload is not a reader or valid buffer
62525
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
62526
- */
62527
- SendTwilioVerificationRequest.decodeDelimited = function decodeDelimited(reader) {
62528
- if (!(reader instanceof $Reader))
62529
- reader = new $Reader(reader);
62530
- return this.decode(reader, reader.uint32());
62531
- };
62532
-
62533
- /**
62534
- * Verifies a SendTwilioVerificationRequest message.
62535
- * @function verify
62536
- * @memberof SendTwilioVerificationRequest
62537
- * @static
62538
- * @param {Object.<string,*>} message Plain object to verify
62539
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
62540
- */
62541
- SendTwilioVerificationRequest.verify = function verify(message) {
62542
- if (typeof message !== "object" || message === null)
62543
- return "object expected";
62544
- if (message.spanContext != null && message.hasOwnProperty("spanContext"))
62545
- if (!$util.isString(message.spanContext))
62546
- return "spanContext: string expected";
62547
- if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
62548
- if (!$util.isString(message.phoneNumber))
62549
- return "phoneNumber: string expected";
62550
- return null;
62551
- };
62552
-
62553
- /**
62554
- * Creates a SendTwilioVerificationRequest message from a plain object. Also converts values to their respective internal types.
62555
- * @function fromObject
62556
- * @memberof SendTwilioVerificationRequest
62557
- * @static
62558
- * @param {Object.<string,*>} object Plain object
62559
- * @returns {SendTwilioVerificationRequest} SendTwilioVerificationRequest
62560
- */
62561
- SendTwilioVerificationRequest.fromObject = function fromObject(object) {
62562
- if (object instanceof $root.SendTwilioVerificationRequest)
62563
- return object;
62564
- var message = new $root.SendTwilioVerificationRequest();
62565
- if (object.spanContext != null)
62566
- message.spanContext = String(object.spanContext);
62567
- if (object.phoneNumber != null)
62568
- message.phoneNumber = String(object.phoneNumber);
62569
- return message;
62570
- };
62571
-
62572
- /**
62573
- * Creates a plain object from a SendTwilioVerificationRequest message. Also converts values to other types if specified.
62574
- * @function toObject
62575
- * @memberof SendTwilioVerificationRequest
62576
- * @static
62577
- * @param {SendTwilioVerificationRequest} message SendTwilioVerificationRequest
62578
- * @param {$protobuf.IConversionOptions} [options] Conversion options
62579
- * @returns {Object.<string,*>} Plain object
62580
- */
62581
- SendTwilioVerificationRequest.toObject = function toObject(message, options) {
62582
- if (!options)
62583
- options = {};
62584
- var object = {};
62585
- if (options.defaults) {
62586
- object.spanContext = "";
62587
- object.phoneNumber = "";
62588
- }
62589
- if (message.spanContext != null && message.hasOwnProperty("spanContext"))
62590
- object.spanContext = message.spanContext;
62591
- if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
62592
- object.phoneNumber = message.phoneNumber;
62593
- return object;
62594
- };
62595
-
62596
- /**
62597
- * Converts this SendTwilioVerificationRequest to JSON.
62598
- * @function toJSON
62599
- * @memberof SendTwilioVerificationRequest
62600
- * @instance
62601
- * @returns {Object.<string,*>} JSON object
62602
- */
62603
- SendTwilioVerificationRequest.prototype.toJSON = function toJSON() {
62604
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
62605
- };
62606
-
62607
- return SendTwilioVerificationRequest;
62608
- })();
62609
-
62610
- $root.SendTwilioVerificationResponse = (function() {
62611
-
62612
- /**
62613
- * Properties of a SendTwilioVerificationResponse.
62614
- * @exports ISendTwilioVerificationResponse
62615
- * @interface ISendTwilioVerificationResponse
62616
- * @property {StatusCode|null} [status] SendTwilioVerificationResponse status
62617
- * @property {Array.<IError>|null} [errors] SendTwilioVerificationResponse errors
62618
- */
62619
-
62620
- /**
62621
- * Constructs a new SendTwilioVerificationResponse.
62622
- * @exports SendTwilioVerificationResponse
62623
- * @classdesc Represents a SendTwilioVerificationResponse.
62624
- * @implements ISendTwilioVerificationResponse
62625
- * @constructor
62626
- * @param {ISendTwilioVerificationResponse=} [properties] Properties to set
62627
- */
62628
- function SendTwilioVerificationResponse(properties) {
62629
- this.errors = [];
62630
- if (properties)
62631
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
62632
- if (properties[keys[i]] != null)
62633
- this[keys[i]] = properties[keys[i]];
62634
- }
62635
-
62636
- /**
62637
- * SendTwilioVerificationResponse status.
62638
- * @member {StatusCode} status
62639
- * @memberof SendTwilioVerificationResponse
62640
- * @instance
62641
- */
62642
- SendTwilioVerificationResponse.prototype.status = 0;
62643
-
62644
- /**
62645
- * SendTwilioVerificationResponse errors.
62646
- * @member {Array.<IError>} errors
62647
- * @memberof SendTwilioVerificationResponse
62648
- * @instance
62649
- */
62650
- SendTwilioVerificationResponse.prototype.errors = $util.emptyArray;
62651
-
62652
- /**
62653
- * Creates a new SendTwilioVerificationResponse instance using the specified properties.
62654
- * @function create
62655
- * @memberof SendTwilioVerificationResponse
62656
- * @static
62657
- * @param {ISendTwilioVerificationResponse=} [properties] Properties to set
62658
- * @returns {SendTwilioVerificationResponse} SendTwilioVerificationResponse instance
62659
- */
62660
- SendTwilioVerificationResponse.create = function create(properties) {
62661
- return new SendTwilioVerificationResponse(properties);
62662
- };
62663
-
62664
- /**
62665
- * Encodes the specified SendTwilioVerificationResponse message. Does not implicitly {@link SendTwilioVerificationResponse.verify|verify} messages.
62666
- * @function encode
62667
- * @memberof SendTwilioVerificationResponse
62668
- * @static
62669
- * @param {ISendTwilioVerificationResponse} message SendTwilioVerificationResponse message or plain object to encode
62670
- * @param {$protobuf.Writer} [writer] Writer to encode to
62671
- * @returns {$protobuf.Writer} Writer
62672
- */
62673
- SendTwilioVerificationResponse.encode = function encode(message, writer) {
62674
- if (!writer)
62675
- writer = $Writer.create();
62676
- if (message.status != null && message.hasOwnProperty("status"))
62677
- writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
62678
- if (message.errors != null && message.errors.length)
62679
- for (var i = 0; i < message.errors.length; ++i)
62680
- $root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
62681
- return writer;
62682
- };
62683
-
62684
- /**
62685
- * Encodes the specified SendTwilioVerificationResponse message, length delimited. Does not implicitly {@link SendTwilioVerificationResponse.verify|verify} messages.
62686
- * @function encodeDelimited
62687
- * @memberof SendTwilioVerificationResponse
62688
- * @static
62689
- * @param {ISendTwilioVerificationResponse} message SendTwilioVerificationResponse message or plain object to encode
62690
- * @param {$protobuf.Writer} [writer] Writer to encode to
62691
- * @returns {$protobuf.Writer} Writer
62692
- */
62693
- SendTwilioVerificationResponse.encodeDelimited = function encodeDelimited(message, writer) {
62694
- return this.encode(message, writer).ldelim();
62695
- };
62696
-
62697
- /**
62698
- * Decodes a SendTwilioVerificationResponse message from the specified reader or buffer.
62699
- * @function decode
62700
- * @memberof SendTwilioVerificationResponse
62701
- * @static
62702
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
62703
- * @param {number} [length] Message length if known beforehand
62704
- * @returns {SendTwilioVerificationResponse} SendTwilioVerificationResponse
62705
- * @throws {Error} If the payload is not a reader or valid buffer
62706
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
62707
- */
62708
- SendTwilioVerificationResponse.decode = function decode(reader, length) {
62709
- if (!(reader instanceof $Reader))
62710
- reader = $Reader.create(reader);
62711
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SendTwilioVerificationResponse();
62712
- while (reader.pos < end) {
62713
- var tag = reader.uint32();
62714
- switch (tag >>> 3) {
62715
- case 0:
62716
- message.status = reader.int32();
62717
- break;
62718
- case 1:
62719
- if (!(message.errors && message.errors.length))
62720
- message.errors = [];
62721
- message.errors.push($root.Error.decode(reader, reader.uint32()));
62722
- break;
62723
- default:
62724
- reader.skipType(tag & 7);
62725
- break;
62726
- }
62727
- }
62728
- return message;
62729
- };
62730
-
62731
- /**
62732
- * Decodes a SendTwilioVerificationResponse message from the specified reader or buffer, length delimited.
62733
- * @function decodeDelimited
62734
- * @memberof SendTwilioVerificationResponse
62735
- * @static
62736
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
62737
- * @returns {SendTwilioVerificationResponse} SendTwilioVerificationResponse
62738
- * @throws {Error} If the payload is not a reader or valid buffer
62739
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
62740
- */
62741
- SendTwilioVerificationResponse.decodeDelimited = function decodeDelimited(reader) {
62742
- if (!(reader instanceof $Reader))
62743
- reader = new $Reader(reader);
62744
- return this.decode(reader, reader.uint32());
62745
- };
62746
-
62747
- /**
62748
- * Verifies a SendTwilioVerificationResponse message.
62749
- * @function verify
62750
- * @memberof SendTwilioVerificationResponse
62751
- * @static
62752
- * @param {Object.<string,*>} message Plain object to verify
62753
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
62754
- */
62755
- SendTwilioVerificationResponse.verify = function verify(message) {
62756
- if (typeof message !== "object" || message === null)
62757
- return "object expected";
62758
- if (message.status != null && message.hasOwnProperty("status"))
62759
- switch (message.status) {
62760
- default:
62761
- return "status: enum value expected";
62762
- case 0:
62763
- case 200:
62764
- case 400:
62765
- case 401:
62766
- case 403:
62767
- case 422:
62768
- case 500:
62769
- case 504:
62770
- break;
62771
- }
62772
- if (message.errors != null && message.hasOwnProperty("errors")) {
62773
- if (!Array.isArray(message.errors))
62774
- return "errors: array expected";
62775
- for (var i = 0; i < message.errors.length; ++i) {
62776
- var error = $root.Error.verify(message.errors[i]);
62777
- if (error)
62778
- return "errors." + error;
62779
- }
62780
- }
62781
- return null;
62782
- };
62783
-
62784
- /**
62785
- * Creates a SendTwilioVerificationResponse message from a plain object. Also converts values to their respective internal types.
62786
- * @function fromObject
62787
- * @memberof SendTwilioVerificationResponse
62788
- * @static
62789
- * @param {Object.<string,*>} object Plain object
62790
- * @returns {SendTwilioVerificationResponse} SendTwilioVerificationResponse
62791
- */
62792
- SendTwilioVerificationResponse.fromObject = function fromObject(object) {
62793
- if (object instanceof $root.SendTwilioVerificationResponse)
62794
- return object;
62795
- var message = new $root.SendTwilioVerificationResponse();
62796
- switch (object.status) {
62797
- case "UNKNOWN_CODE":
62798
- case 0:
62799
- message.status = 0;
62800
- break;
62801
- case "OK":
62802
- case 200:
62803
- message.status = 200;
62804
- break;
62805
- case "BAD_REQUEST":
62806
- case 400:
62807
- message.status = 400;
62808
- break;
62809
- case "UNAUTHORIZED":
62810
- case 401:
62811
- message.status = 401;
62812
- break;
62813
- case "FORBIDDEN":
62814
- case 403:
62815
- message.status = 403;
62816
- break;
62817
- case "UNPROCESSABLE_ENTITY":
62818
- case 422:
62819
- message.status = 422;
62820
- break;
62821
- case "INTERNAL_SERVER_ERROR":
62822
- case 500:
62823
- message.status = 500;
62824
- break;
62825
- case "GATEWAY_TIMEOUT":
62826
- case 504:
62827
- message.status = 504;
62828
- break;
62829
- }
62830
- if (object.errors) {
62831
- if (!Array.isArray(object.errors))
62832
- throw TypeError(".SendTwilioVerificationResponse.errors: array expected");
62833
- message.errors = [];
62834
- for (var i = 0; i < object.errors.length; ++i) {
62835
- if (typeof object.errors[i] !== "object")
62836
- throw TypeError(".SendTwilioVerificationResponse.errors: object expected");
62837
- message.errors[i] = $root.Error.fromObject(object.errors[i]);
62838
- }
62839
- }
62840
- return message;
62841
- };
62842
-
62843
- /**
62844
- * Creates a plain object from a SendTwilioVerificationResponse message. Also converts values to other types if specified.
62845
- * @function toObject
62846
- * @memberof SendTwilioVerificationResponse
62847
- * @static
62848
- * @param {SendTwilioVerificationResponse} message SendTwilioVerificationResponse
62849
- * @param {$protobuf.IConversionOptions} [options] Conversion options
62850
- * @returns {Object.<string,*>} Plain object
62851
- */
62852
- SendTwilioVerificationResponse.toObject = function toObject(message, options) {
62853
- if (!options)
62854
- options = {};
62855
- var object = {};
62856
- if (options.arrays || options.defaults)
62857
- object.errors = [];
62858
- if (options.defaults)
62859
- object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
62860
- if (message.status != null && message.hasOwnProperty("status"))
62861
- object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
62862
- if (message.errors && message.errors.length) {
62863
- object.errors = [];
62864
- for (var j = 0; j < message.errors.length; ++j)
62865
- object.errors[j] = $root.Error.toObject(message.errors[j], options);
62866
- }
62867
- return object;
62868
- };
62869
-
62870
- /**
62871
- * Converts this SendTwilioVerificationResponse to JSON.
62872
- * @function toJSON
62873
- * @memberof SendTwilioVerificationResponse
62874
- * @instance
62875
- * @returns {Object.<string,*>} JSON object
62876
- */
62877
- SendTwilioVerificationResponse.prototype.toJSON = function toJSON() {
62878
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
62879
- };
62880
-
62881
- return SendTwilioVerificationResponse;
62882
- })();
62883
-
62884
- $root.VerifyTwilioTokenRequest = (function() {
62885
-
62886
- /**
62887
- * Properties of a VerifyTwilioTokenRequest.
62888
- * @exports IVerifyTwilioTokenRequest
62889
- * @interface IVerifyTwilioTokenRequest
62890
- * @property {string|null} [spanContext] VerifyTwilioTokenRequest spanContext
62891
- * @property {string|null} [phoneNumber] VerifyTwilioTokenRequest phoneNumber
62892
- * @property {string|null} [token] VerifyTwilioTokenRequest token
62893
- */
62894
-
62895
- /**
62896
- * Constructs a new VerifyTwilioTokenRequest.
62897
- * @exports VerifyTwilioTokenRequest
62898
- * @classdesc Represents a VerifyTwilioTokenRequest.
62899
- * @implements IVerifyTwilioTokenRequest
62900
- * @constructor
62901
- * @param {IVerifyTwilioTokenRequest=} [properties] Properties to set
62902
- */
62903
- function VerifyTwilioTokenRequest(properties) {
62904
- if (properties)
62905
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
62906
- if (properties[keys[i]] != null)
62907
- this[keys[i]] = properties[keys[i]];
62908
- }
62909
-
62910
- /**
62911
- * VerifyTwilioTokenRequest spanContext.
62912
- * @member {string} spanContext
62913
- * @memberof VerifyTwilioTokenRequest
62914
- * @instance
62915
- */
62916
- VerifyTwilioTokenRequest.prototype.spanContext = "";
62917
-
62918
- /**
62919
- * VerifyTwilioTokenRequest phoneNumber.
62920
- * @member {string} phoneNumber
62921
- * @memberof VerifyTwilioTokenRequest
62922
- * @instance
62923
- */
62924
- VerifyTwilioTokenRequest.prototype.phoneNumber = "";
62925
-
62926
- /**
62927
- * VerifyTwilioTokenRequest token.
62928
- * @member {string} token
62929
- * @memberof VerifyTwilioTokenRequest
62930
- * @instance
62931
- */
62932
- VerifyTwilioTokenRequest.prototype.token = "";
62933
-
62934
- /**
62935
- * Creates a new VerifyTwilioTokenRequest instance using the specified properties.
62936
- * @function create
62937
- * @memberof VerifyTwilioTokenRequest
62938
- * @static
62939
- * @param {IVerifyTwilioTokenRequest=} [properties] Properties to set
62940
- * @returns {VerifyTwilioTokenRequest} VerifyTwilioTokenRequest instance
62941
- */
62942
- VerifyTwilioTokenRequest.create = function create(properties) {
62943
- return new VerifyTwilioTokenRequest(properties);
62944
- };
62945
-
62946
- /**
62947
- * Encodes the specified VerifyTwilioTokenRequest message. Does not implicitly {@link VerifyTwilioTokenRequest.verify|verify} messages.
62948
- * @function encode
62949
- * @memberof VerifyTwilioTokenRequest
62950
- * @static
62951
- * @param {IVerifyTwilioTokenRequest} message VerifyTwilioTokenRequest message or plain object to encode
62952
- * @param {$protobuf.Writer} [writer] Writer to encode to
62953
- * @returns {$protobuf.Writer} Writer
62954
- */
62955
- VerifyTwilioTokenRequest.encode = function encode(message, writer) {
62956
- if (!writer)
62957
- writer = $Writer.create();
62958
- if (message.spanContext != null && message.hasOwnProperty("spanContext"))
62959
- writer.uint32(/* id 0, wireType 2 =*/2).string(message.spanContext);
62960
- if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
62961
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.phoneNumber);
62962
- if (message.token != null && message.hasOwnProperty("token"))
62963
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.token);
62964
- return writer;
62965
- };
62966
-
62967
- /**
62968
- * Encodes the specified VerifyTwilioTokenRequest message, length delimited. Does not implicitly {@link VerifyTwilioTokenRequest.verify|verify} messages.
62969
- * @function encodeDelimited
62970
- * @memberof VerifyTwilioTokenRequest
62971
- * @static
62972
- * @param {IVerifyTwilioTokenRequest} message VerifyTwilioTokenRequest message or plain object to encode
62973
- * @param {$protobuf.Writer} [writer] Writer to encode to
62974
- * @returns {$protobuf.Writer} Writer
62975
- */
62976
- VerifyTwilioTokenRequest.encodeDelimited = function encodeDelimited(message, writer) {
62977
- return this.encode(message, writer).ldelim();
62978
- };
62979
-
62980
- /**
62981
- * Decodes a VerifyTwilioTokenRequest message from the specified reader or buffer.
62982
- * @function decode
62983
- * @memberof VerifyTwilioTokenRequest
62984
- * @static
62985
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
62986
- * @param {number} [length] Message length if known beforehand
62987
- * @returns {VerifyTwilioTokenRequest} VerifyTwilioTokenRequest
62988
- * @throws {Error} If the payload is not a reader or valid buffer
62989
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
62990
- */
62991
- VerifyTwilioTokenRequest.decode = function decode(reader, length) {
62992
- if (!(reader instanceof $Reader))
62993
- reader = $Reader.create(reader);
62994
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.VerifyTwilioTokenRequest();
62995
- while (reader.pos < end) {
62996
- var tag = reader.uint32();
62997
- switch (tag >>> 3) {
62998
- case 0:
62999
- message.spanContext = reader.string();
63000
- break;
63001
- case 1:
63002
- message.phoneNumber = reader.string();
63003
- break;
63004
- case 2:
63005
- message.token = reader.string();
63006
- break;
63007
- default:
63008
- reader.skipType(tag & 7);
63009
- break;
63010
- }
63011
- }
63012
- return message;
63013
- };
63014
-
63015
- /**
63016
- * Decodes a VerifyTwilioTokenRequest message from the specified reader or buffer, length delimited.
63017
- * @function decodeDelimited
63018
- * @memberof VerifyTwilioTokenRequest
63019
- * @static
63020
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
63021
- * @returns {VerifyTwilioTokenRequest} VerifyTwilioTokenRequest
63022
- * @throws {Error} If the payload is not a reader or valid buffer
63023
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
63024
- */
63025
- VerifyTwilioTokenRequest.decodeDelimited = function decodeDelimited(reader) {
63026
- if (!(reader instanceof $Reader))
63027
- reader = new $Reader(reader);
63028
- return this.decode(reader, reader.uint32());
63029
- };
63030
-
63031
- /**
63032
- * Verifies a VerifyTwilioTokenRequest message.
63033
- * @function verify
63034
- * @memberof VerifyTwilioTokenRequest
63035
- * @static
63036
- * @param {Object.<string,*>} message Plain object to verify
63037
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
63038
- */
63039
- VerifyTwilioTokenRequest.verify = function verify(message) {
63040
- if (typeof message !== "object" || message === null)
63041
- return "object expected";
63042
- if (message.spanContext != null && message.hasOwnProperty("spanContext"))
63043
- if (!$util.isString(message.spanContext))
63044
- return "spanContext: string expected";
63045
- if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
63046
- if (!$util.isString(message.phoneNumber))
63047
- return "phoneNumber: string expected";
63048
- if (message.token != null && message.hasOwnProperty("token"))
63049
- if (!$util.isString(message.token))
63050
- return "token: string expected";
63051
- return null;
63052
- };
63053
-
63054
- /**
63055
- * Creates a VerifyTwilioTokenRequest message from a plain object. Also converts values to their respective internal types.
63056
- * @function fromObject
63057
- * @memberof VerifyTwilioTokenRequest
63058
- * @static
63059
- * @param {Object.<string,*>} object Plain object
63060
- * @returns {VerifyTwilioTokenRequest} VerifyTwilioTokenRequest
63061
- */
63062
- VerifyTwilioTokenRequest.fromObject = function fromObject(object) {
63063
- if (object instanceof $root.VerifyTwilioTokenRequest)
63064
- return object;
63065
- var message = new $root.VerifyTwilioTokenRequest();
63066
- if (object.spanContext != null)
63067
- message.spanContext = String(object.spanContext);
63068
- if (object.phoneNumber != null)
63069
- message.phoneNumber = String(object.phoneNumber);
63070
- if (object.token != null)
63071
- message.token = String(object.token);
63072
- return message;
63073
- };
63074
-
63075
- /**
63076
- * Creates a plain object from a VerifyTwilioTokenRequest message. Also converts values to other types if specified.
63077
- * @function toObject
63078
- * @memberof VerifyTwilioTokenRequest
63079
- * @static
63080
- * @param {VerifyTwilioTokenRequest} message VerifyTwilioTokenRequest
63081
- * @param {$protobuf.IConversionOptions} [options] Conversion options
63082
- * @returns {Object.<string,*>} Plain object
63083
- */
63084
- VerifyTwilioTokenRequest.toObject = function toObject(message, options) {
63085
- if (!options)
63086
- options = {};
63087
- var object = {};
63088
- if (options.defaults) {
63089
- object.spanContext = "";
63090
- object.phoneNumber = "";
63091
- object.token = "";
63092
- }
63093
- if (message.spanContext != null && message.hasOwnProperty("spanContext"))
63094
- object.spanContext = message.spanContext;
63095
- if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber"))
63096
- object.phoneNumber = message.phoneNumber;
63097
- if (message.token != null && message.hasOwnProperty("token"))
63098
- object.token = message.token;
63099
- return object;
63100
- };
63101
-
63102
- /**
63103
- * Converts this VerifyTwilioTokenRequest to JSON.
63104
- * @function toJSON
63105
- * @memberof VerifyTwilioTokenRequest
63106
- * @instance
63107
- * @returns {Object.<string,*>} JSON object
63108
- */
63109
- VerifyTwilioTokenRequest.prototype.toJSON = function toJSON() {
63110
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
63111
- };
63112
-
63113
- return VerifyTwilioTokenRequest;
63114
- })();
63115
-
63116
- $root.VerifyTwilioTokenResponse = (function() {
63117
-
63118
- /**
63119
- * Properties of a VerifyTwilioTokenResponse.
63120
- * @exports IVerifyTwilioTokenResponse
63121
- * @interface IVerifyTwilioTokenResponse
63122
- * @property {StatusCode|null} [status] VerifyTwilioTokenResponse status
63123
- * @property {Array.<IError>|null} [errors] VerifyTwilioTokenResponse errors
63124
- * @property {boolean|null} [phoneVerified] VerifyTwilioTokenResponse phoneVerified
63125
- */
63126
-
63127
- /**
63128
- * Constructs a new VerifyTwilioTokenResponse.
63129
- * @exports VerifyTwilioTokenResponse
63130
- * @classdesc Represents a VerifyTwilioTokenResponse.
63131
- * @implements IVerifyTwilioTokenResponse
63132
- * @constructor
63133
- * @param {IVerifyTwilioTokenResponse=} [properties] Properties to set
63134
- */
63135
- function VerifyTwilioTokenResponse(properties) {
63136
- this.errors = [];
63137
- if (properties)
63138
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
63139
- if (properties[keys[i]] != null)
63140
- this[keys[i]] = properties[keys[i]];
63141
- }
63142
-
63143
- /**
63144
- * VerifyTwilioTokenResponse status.
63145
- * @member {StatusCode} status
63146
- * @memberof VerifyTwilioTokenResponse
63147
- * @instance
63148
- */
63149
- VerifyTwilioTokenResponse.prototype.status = 0;
63150
-
63151
- /**
63152
- * VerifyTwilioTokenResponse errors.
63153
- * @member {Array.<IError>} errors
63154
- * @memberof VerifyTwilioTokenResponse
63155
- * @instance
63156
- */
63157
- VerifyTwilioTokenResponse.prototype.errors = $util.emptyArray;
63158
-
63159
- /**
63160
- * VerifyTwilioTokenResponse phoneVerified.
63161
- * @member {boolean} phoneVerified
63162
- * @memberof VerifyTwilioTokenResponse
63163
- * @instance
63164
- */
63165
- VerifyTwilioTokenResponse.prototype.phoneVerified = false;
63166
-
63167
- /**
63168
- * Creates a new VerifyTwilioTokenResponse instance using the specified properties.
63169
- * @function create
63170
- * @memberof VerifyTwilioTokenResponse
63171
- * @static
63172
- * @param {IVerifyTwilioTokenResponse=} [properties] Properties to set
63173
- * @returns {VerifyTwilioTokenResponse} VerifyTwilioTokenResponse instance
63174
- */
63175
- VerifyTwilioTokenResponse.create = function create(properties) {
63176
- return new VerifyTwilioTokenResponse(properties);
63177
- };
63178
-
63179
- /**
63180
- * Encodes the specified VerifyTwilioTokenResponse message. Does not implicitly {@link VerifyTwilioTokenResponse.verify|verify} messages.
63181
- * @function encode
63182
- * @memberof VerifyTwilioTokenResponse
63183
- * @static
63184
- * @param {IVerifyTwilioTokenResponse} message VerifyTwilioTokenResponse message or plain object to encode
63185
- * @param {$protobuf.Writer} [writer] Writer to encode to
63186
- * @returns {$protobuf.Writer} Writer
63187
- */
63188
- VerifyTwilioTokenResponse.encode = function encode(message, writer) {
63189
- if (!writer)
63190
- writer = $Writer.create();
63191
- if (message.status != null && message.hasOwnProperty("status"))
63192
- writer.uint32(/* id 0, wireType 0 =*/0).int32(message.status);
63193
- if (message.errors != null && message.errors.length)
63194
- for (var i = 0; i < message.errors.length; ++i)
63195
- $root.Error.encode(message.errors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
63196
- if (message.phoneVerified != null && message.hasOwnProperty("phoneVerified"))
63197
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.phoneVerified);
63198
- return writer;
63199
- };
63200
-
63201
- /**
63202
- * Encodes the specified VerifyTwilioTokenResponse message, length delimited. Does not implicitly {@link VerifyTwilioTokenResponse.verify|verify} messages.
63203
- * @function encodeDelimited
63204
- * @memberof VerifyTwilioTokenResponse
63205
- * @static
63206
- * @param {IVerifyTwilioTokenResponse} message VerifyTwilioTokenResponse message or plain object to encode
63207
- * @param {$protobuf.Writer} [writer] Writer to encode to
63208
- * @returns {$protobuf.Writer} Writer
63209
- */
63210
- VerifyTwilioTokenResponse.encodeDelimited = function encodeDelimited(message, writer) {
63211
- return this.encode(message, writer).ldelim();
63212
- };
63213
-
63214
- /**
63215
- * Decodes a VerifyTwilioTokenResponse message from the specified reader or buffer.
63216
- * @function decode
63217
- * @memberof VerifyTwilioTokenResponse
63218
- * @static
63219
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
63220
- * @param {number} [length] Message length if known beforehand
63221
- * @returns {VerifyTwilioTokenResponse} VerifyTwilioTokenResponse
63222
- * @throws {Error} If the payload is not a reader or valid buffer
63223
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
63224
- */
63225
- VerifyTwilioTokenResponse.decode = function decode(reader, length) {
63226
- if (!(reader instanceof $Reader))
63227
- reader = $Reader.create(reader);
63228
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.VerifyTwilioTokenResponse();
63229
- while (reader.pos < end) {
63230
- var tag = reader.uint32();
63231
- switch (tag >>> 3) {
63232
- case 0:
63233
- message.status = reader.int32();
63234
- break;
63235
- case 1:
63236
- if (!(message.errors && message.errors.length))
63237
- message.errors = [];
63238
- message.errors.push($root.Error.decode(reader, reader.uint32()));
63239
- break;
63240
- case 2:
63241
- message.phoneVerified = reader.bool();
63242
- break;
63243
- default:
63244
- reader.skipType(tag & 7);
63245
- break;
63246
- }
63247
- }
63248
- return message;
63249
- };
63250
-
63251
- /**
63252
- * Decodes a VerifyTwilioTokenResponse message from the specified reader or buffer, length delimited.
63253
- * @function decodeDelimited
63254
- * @memberof VerifyTwilioTokenResponse
63255
- * @static
63256
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
63257
- * @returns {VerifyTwilioTokenResponse} VerifyTwilioTokenResponse
63258
- * @throws {Error} If the payload is not a reader or valid buffer
63259
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
63260
- */
63261
- VerifyTwilioTokenResponse.decodeDelimited = function decodeDelimited(reader) {
63262
- if (!(reader instanceof $Reader))
63263
- reader = new $Reader(reader);
63264
- return this.decode(reader, reader.uint32());
63265
- };
63266
-
63267
- /**
63268
- * Verifies a VerifyTwilioTokenResponse message.
63269
- * @function verify
63270
- * @memberof VerifyTwilioTokenResponse
63271
- * @static
63272
- * @param {Object.<string,*>} message Plain object to verify
63273
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
63274
- */
63275
- VerifyTwilioTokenResponse.verify = function verify(message) {
63276
- if (typeof message !== "object" || message === null)
63277
- return "object expected";
63278
- if (message.status != null && message.hasOwnProperty("status"))
63279
- switch (message.status) {
63280
- default:
63281
- return "status: enum value expected";
63282
- case 0:
63283
- case 200:
63284
- case 400:
63285
- case 401:
63286
- case 403:
63287
- case 422:
63288
- case 500:
63289
- case 504:
63290
- break;
63291
- }
63292
- if (message.errors != null && message.hasOwnProperty("errors")) {
63293
- if (!Array.isArray(message.errors))
63294
- return "errors: array expected";
63295
- for (var i = 0; i < message.errors.length; ++i) {
63296
- var error = $root.Error.verify(message.errors[i]);
63297
- if (error)
63298
- return "errors." + error;
63299
- }
63300
- }
63301
- if (message.phoneVerified != null && message.hasOwnProperty("phoneVerified"))
63302
- if (typeof message.phoneVerified !== "boolean")
63303
- return "phoneVerified: boolean expected";
63304
- return null;
63305
- };
63306
-
63307
- /**
63308
- * Creates a VerifyTwilioTokenResponse message from a plain object. Also converts values to their respective internal types.
63309
- * @function fromObject
63310
- * @memberof VerifyTwilioTokenResponse
63311
- * @static
63312
- * @param {Object.<string,*>} object Plain object
63313
- * @returns {VerifyTwilioTokenResponse} VerifyTwilioTokenResponse
63314
- */
63315
- VerifyTwilioTokenResponse.fromObject = function fromObject(object) {
63316
- if (object instanceof $root.VerifyTwilioTokenResponse)
63317
- return object;
63318
- var message = new $root.VerifyTwilioTokenResponse();
63319
- switch (object.status) {
63320
- case "UNKNOWN_CODE":
63321
- case 0:
63322
- message.status = 0;
63323
- break;
63324
- case "OK":
63325
- case 200:
63326
- message.status = 200;
63327
- break;
63328
- case "BAD_REQUEST":
63329
- case 400:
63330
- message.status = 400;
63331
- break;
63332
- case "UNAUTHORIZED":
63333
- case 401:
63334
- message.status = 401;
63335
- break;
63336
- case "FORBIDDEN":
63337
- case 403:
63338
- message.status = 403;
63339
- break;
63340
- case "UNPROCESSABLE_ENTITY":
63341
- case 422:
63342
- message.status = 422;
63343
- break;
63344
- case "INTERNAL_SERVER_ERROR":
63345
- case 500:
63346
- message.status = 500;
63347
- break;
63348
- case "GATEWAY_TIMEOUT":
63349
- case 504:
63350
- message.status = 504;
63351
- break;
63352
- }
63353
- if (object.errors) {
63354
- if (!Array.isArray(object.errors))
63355
- throw TypeError(".VerifyTwilioTokenResponse.errors: array expected");
63356
- message.errors = [];
63357
- for (var i = 0; i < object.errors.length; ++i) {
63358
- if (typeof object.errors[i] !== "object")
63359
- throw TypeError(".VerifyTwilioTokenResponse.errors: object expected");
63360
- message.errors[i] = $root.Error.fromObject(object.errors[i]);
63361
- }
63362
- }
63363
- if (object.phoneVerified != null)
63364
- message.phoneVerified = Boolean(object.phoneVerified);
63365
- return message;
63366
- };
63367
-
63368
- /**
63369
- * Creates a plain object from a VerifyTwilioTokenResponse message. Also converts values to other types if specified.
63370
- * @function toObject
63371
- * @memberof VerifyTwilioTokenResponse
63372
- * @static
63373
- * @param {VerifyTwilioTokenResponse} message VerifyTwilioTokenResponse
63374
- * @param {$protobuf.IConversionOptions} [options] Conversion options
63375
- * @returns {Object.<string,*>} Plain object
63376
- */
63377
- VerifyTwilioTokenResponse.toObject = function toObject(message, options) {
63378
- if (!options)
63379
- options = {};
63380
- var object = {};
63381
- if (options.arrays || options.defaults)
63382
- object.errors = [];
63383
- if (options.defaults) {
63384
- object.status = options.enums === String ? "UNKNOWN_CODE" : 0;
63385
- object.phoneVerified = false;
63386
- }
63387
- if (message.status != null && message.hasOwnProperty("status"))
63388
- object.status = options.enums === String ? $root.StatusCode[message.status] : message.status;
63389
- if (message.errors && message.errors.length) {
63390
- object.errors = [];
63391
- for (var j = 0; j < message.errors.length; ++j)
63392
- object.errors[j] = $root.Error.toObject(message.errors[j], options);
63393
- }
63394
- if (message.phoneVerified != null && message.hasOwnProperty("phoneVerified"))
63395
- object.phoneVerified = message.phoneVerified;
63396
- return object;
63397
- };
63398
-
63399
- /**
63400
- * Converts this VerifyTwilioTokenResponse to JSON.
63401
- * @function toJSON
63402
- * @memberof VerifyTwilioTokenResponse
63403
- * @instance
63404
- * @returns {Object.<string,*>} JSON object
63405
- */
63406
- VerifyTwilioTokenResponse.prototype.toJSON = function toJSON() {
63407
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
63408
- };
63409
-
63410
- return VerifyTwilioTokenResponse;
63411
- })();
63412
-
63413
- $root.TwilioService = (function() {
63414
-
63415
- /**
63416
- * Constructs a new TwilioService service.
63417
- * @exports TwilioService
63418
- * @classdesc Represents a TwilioService
63419
- * @extends $protobuf.rpc.Service
63420
- * @constructor
63421
- * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
63422
- * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
63423
- * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
63424
- */
63425
- function TwilioService(rpcImpl, requestDelimited, responseDelimited) {
63426
- $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
63427
- }
63428
-
63429
- (TwilioService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = TwilioService;
63430
-
63431
- /**
63432
- * Creates new TwilioService service using the specified rpc implementation.
63433
- * @function create
63434
- * @memberof TwilioService
63435
- * @static
63436
- * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
63437
- * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
63438
- * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
63439
- * @returns {TwilioService} RPC service. Useful where requests and/or responses are streamed.
63440
- */
63441
- TwilioService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
63442
- return new this(rpcImpl, requestDelimited, responseDelimited);
63443
- };
63444
-
63445
- /**
63446
- * Callback as used by {@link TwilioService#registerTwilioUser}.
63447
- * @memberof TwilioService
63448
- * @typedef registerTwilioUserCallback
63449
- * @type {function}
63450
- * @param {Error|null} error Error, if any
63451
- * @param {RegisterTwilioUserResponse} [response] RegisterTwilioUserResponse
63452
- */
63453
-
63454
- /**
63455
- * Calls registerTwilioUser.
63456
- * @function registerTwilioUser
63457
- * @memberof TwilioService
63458
- * @instance
63459
- * @param {IRegisterTwilioUserRequest} request RegisterTwilioUserRequest message or plain object
63460
- * @param {TwilioService.registerTwilioUserCallback} callback Node-style callback called with the error, if any, and RegisterTwilioUserResponse
63461
- * @returns {undefined}
63462
- * @variation 1
63463
- */
63464
- Object.defineProperty(TwilioService.prototype.registerTwilioUser = function registerTwilioUser(request, callback) {
63465
- return this.rpcCall(registerTwilioUser, $root.RegisterTwilioUserRequest, $root.RegisterTwilioUserResponse, request, callback);
63466
- }, "name", { value: "registerTwilioUser" });
63467
-
63468
- /**
63469
- * Calls registerTwilioUser.
63470
- * @function registerTwilioUser
63471
- * @memberof TwilioService
63472
- * @instance
63473
- * @param {IRegisterTwilioUserRequest} request RegisterTwilioUserRequest message or plain object
63474
- * @returns {Promise<RegisterTwilioUserResponse>} Promise
63475
- * @variation 2
63476
- */
63477
-
63478
- /**
63479
- * Callback as used by {@link TwilioService#sendTwilioVerification}.
63480
- * @memberof TwilioService
63481
- * @typedef sendTwilioVerificationCallback
63482
- * @type {function}
63483
- * @param {Error|null} error Error, if any
63484
- * @param {SendTwilioVerificationResponse} [response] SendTwilioVerificationResponse
63485
- */
63486
-
63487
- /**
63488
- * Calls sendTwilioVerification.
63489
- * @function sendTwilioVerification
63490
- * @memberof TwilioService
63491
- * @instance
63492
- * @param {ISendTwilioVerificationRequest} request SendTwilioVerificationRequest message or plain object
63493
- * @param {TwilioService.sendTwilioVerificationCallback} callback Node-style callback called with the error, if any, and SendTwilioVerificationResponse
63494
- * @returns {undefined}
63495
- * @variation 1
63496
- */
63497
- Object.defineProperty(TwilioService.prototype.sendTwilioVerification = function sendTwilioVerification(request, callback) {
63498
- return this.rpcCall(sendTwilioVerification, $root.SendTwilioVerificationRequest, $root.SendTwilioVerificationResponse, request, callback);
63499
- }, "name", { value: "sendTwilioVerification" });
63500
-
63501
- /**
63502
- * Calls sendTwilioVerification.
63503
- * @function sendTwilioVerification
63504
- * @memberof TwilioService
63505
- * @instance
63506
- * @param {ISendTwilioVerificationRequest} request SendTwilioVerificationRequest message or plain object
63507
- * @returns {Promise<SendTwilioVerificationResponse>} Promise
63508
- * @variation 2
63509
- */
63510
-
63511
- /**
63512
- * Callback as used by {@link TwilioService#verifyTwilioToken}.
63513
- * @memberof TwilioService
63514
- * @typedef verifyTwilioTokenCallback
63515
- * @type {function}
63516
- * @param {Error|null} error Error, if any
63517
- * @param {VerifyTwilioTokenResponse} [response] VerifyTwilioTokenResponse
63518
- */
63519
-
63520
- /**
63521
- * Calls verifyTwilioToken.
63522
- * @function verifyTwilioToken
63523
- * @memberof TwilioService
63524
- * @instance
63525
- * @param {IVerifyTwilioTokenRequest} request VerifyTwilioTokenRequest message or plain object
63526
- * @param {TwilioService.verifyTwilioTokenCallback} callback Node-style callback called with the error, if any, and VerifyTwilioTokenResponse
63527
- * @returns {undefined}
63528
- * @variation 1
63529
- */
63530
- Object.defineProperty(TwilioService.prototype.verifyTwilioToken = function verifyTwilioToken(request, callback) {
63531
- return this.rpcCall(verifyTwilioToken, $root.VerifyTwilioTokenRequest, $root.VerifyTwilioTokenResponse, request, callback);
63532
- }, "name", { value: "verifyTwilioToken" });
63533
-
63534
- /**
63535
- * Calls verifyTwilioToken.
63536
- * @function verifyTwilioToken
63537
- * @memberof TwilioService
63538
- * @instance
63539
- * @param {IVerifyTwilioTokenRequest} request VerifyTwilioTokenRequest message or plain object
63540
- * @returns {Promise<VerifyTwilioTokenResponse>} Promise
63541
- * @variation 2
63542
- */
63543
-
63544
- return TwilioService;
63545
- })();
63546
-
63547
61871
  $root.UserProfile = (function() {
63548
61872
 
63549
61873
  /**
@@ -67531,6 +65855,9 @@ $root.User = (function() {
67531
65855
  * @property {string|null} [phoneNumberWaitingForVerify] User phoneNumberWaitingForVerify
67532
65856
  * @property {string|null} [emailWaitingForVerify] User emailWaitingForVerify
67533
65857
  * @property {string|null} [preferredLogin] User preferredLogin
65858
+ * @property {string|null} [phoneVerifyCode] User phoneVerifyCode
65859
+ * @property {number|null} [authTimeOut] User authTimeOut
65860
+ * @property {number|null} [authAttempts] User authAttempts
67534
65861
  */
67535
65862
 
67536
65863
  /**
@@ -67692,6 +66019,30 @@ $root.User = (function() {
67692
66019
  */
67693
66020
  User.prototype.preferredLogin = "";
67694
66021
 
66022
+ /**
66023
+ * User phoneVerifyCode.
66024
+ * @member {string} phoneVerifyCode
66025
+ * @memberof User
66026
+ * @instance
66027
+ */
66028
+ User.prototype.phoneVerifyCode = "";
66029
+
66030
+ /**
66031
+ * User authTimeOut.
66032
+ * @member {number} authTimeOut
66033
+ * @memberof User
66034
+ * @instance
66035
+ */
66036
+ User.prototype.authTimeOut = 0;
66037
+
66038
+ /**
66039
+ * User authAttempts.
66040
+ * @member {number} authAttempts
66041
+ * @memberof User
66042
+ * @instance
66043
+ */
66044
+ User.prototype.authAttempts = 0;
66045
+
67695
66046
  /**
67696
66047
  * Creates a new User instance using the specified properties.
67697
66048
  * @function create
@@ -67752,6 +66103,12 @@ $root.User = (function() {
67752
66103
  writer.uint32(/* id 17, wireType 2 =*/138).string(message.emailWaitingForVerify);
67753
66104
  if (message.preferredLogin != null && message.hasOwnProperty("preferredLogin"))
67754
66105
  writer.uint32(/* id 18, wireType 2 =*/146).string(message.preferredLogin);
66106
+ if (message.phoneVerifyCode != null && message.hasOwnProperty("phoneVerifyCode"))
66107
+ writer.uint32(/* id 19, wireType 2 =*/154).string(message.phoneVerifyCode);
66108
+ if (message.authTimeOut != null && message.hasOwnProperty("authTimeOut"))
66109
+ writer.uint32(/* id 20, wireType 0 =*/160).int32(message.authTimeOut);
66110
+ if (message.authAttempts != null && message.hasOwnProperty("authAttempts"))
66111
+ writer.uint32(/* id 21, wireType 0 =*/168).int32(message.authAttempts);
67755
66112
  return writer;
67756
66113
  };
67757
66114
 
@@ -67840,6 +66197,15 @@ $root.User = (function() {
67840
66197
  case 18:
67841
66198
  message.preferredLogin = reader.string();
67842
66199
  break;
66200
+ case 19:
66201
+ message.phoneVerifyCode = reader.string();
66202
+ break;
66203
+ case 20:
66204
+ message.authTimeOut = reader.int32();
66205
+ break;
66206
+ case 21:
66207
+ message.authAttempts = reader.int32();
66208
+ break;
67843
66209
  default:
67844
66210
  reader.skipType(tag & 7);
67845
66211
  break;
@@ -67929,6 +66295,15 @@ $root.User = (function() {
67929
66295
  if (message.preferredLogin != null && message.hasOwnProperty("preferredLogin"))
67930
66296
  if (!$util.isString(message.preferredLogin))
67931
66297
  return "preferredLogin: string expected";
66298
+ if (message.phoneVerifyCode != null && message.hasOwnProperty("phoneVerifyCode"))
66299
+ if (!$util.isString(message.phoneVerifyCode))
66300
+ return "phoneVerifyCode: string expected";
66301
+ if (message.authTimeOut != null && message.hasOwnProperty("authTimeOut"))
66302
+ if (!$util.isInteger(message.authTimeOut))
66303
+ return "authTimeOut: integer expected";
66304
+ if (message.authAttempts != null && message.hasOwnProperty("authAttempts"))
66305
+ if (!$util.isInteger(message.authAttempts))
66306
+ return "authAttempts: integer expected";
67932
66307
  return null;
67933
66308
  };
67934
66309
 
@@ -67980,6 +66355,12 @@ $root.User = (function() {
67980
66355
  message.emailWaitingForVerify = String(object.emailWaitingForVerify);
67981
66356
  if (object.preferredLogin != null)
67982
66357
  message.preferredLogin = String(object.preferredLogin);
66358
+ if (object.phoneVerifyCode != null)
66359
+ message.phoneVerifyCode = String(object.phoneVerifyCode);
66360
+ if (object.authTimeOut != null)
66361
+ message.authTimeOut = object.authTimeOut | 0;
66362
+ if (object.authAttempts != null)
66363
+ message.authAttempts = object.authAttempts | 0;
67983
66364
  return message;
67984
66365
  };
67985
66366
 
@@ -68015,6 +66396,9 @@ $root.User = (function() {
68015
66396
  object.phoneNumberWaitingForVerify = "";
68016
66397
  object.emailWaitingForVerify = "";
68017
66398
  object.preferredLogin = "";
66399
+ object.phoneVerifyCode = "";
66400
+ object.authTimeOut = 0;
66401
+ object.authAttempts = 0;
68018
66402
  }
68019
66403
  if (message._id != null && message.hasOwnProperty("_id"))
68020
66404
  object._id = message._id;
@@ -68052,6 +66436,12 @@ $root.User = (function() {
68052
66436
  object.emailWaitingForVerify = message.emailWaitingForVerify;
68053
66437
  if (message.preferredLogin != null && message.hasOwnProperty("preferredLogin"))
68054
66438
  object.preferredLogin = message.preferredLogin;
66439
+ if (message.phoneVerifyCode != null && message.hasOwnProperty("phoneVerifyCode"))
66440
+ object.phoneVerifyCode = message.phoneVerifyCode;
66441
+ if (message.authTimeOut != null && message.hasOwnProperty("authTimeOut"))
66442
+ object.authTimeOut = message.authTimeOut;
66443
+ if (message.authAttempts != null && message.hasOwnProperty("authAttempts"))
66444
+ object.authAttempts = message.authAttempts;
68055
66445
  return object;
68056
66446
  };
68057
66447