@headspace/protos-events 1.15.0 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +192 -0
- package/lib/index.js +433 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2492,6 +2492,96 @@ export class SubscriptionPaymentDeclined implements ISubscriptionPaymentDeclined
|
|
|
2492
2492
|
public toJSON(): { [k: string]: any };
|
|
2493
2493
|
}
|
|
2494
2494
|
|
|
2495
|
+
/** Properties of a UserDoubleOptInEmailRequested. */
|
|
2496
|
+
export interface IUserDoubleOptInEmailRequested {
|
|
2497
|
+
|
|
2498
|
+
/** UserDoubleOptInEmailRequested userId */
|
|
2499
|
+
userId?: (string|null);
|
|
2500
|
+
}
|
|
2501
|
+
|
|
2502
|
+
/** Represents a UserDoubleOptInEmailRequested. */
|
|
2503
|
+
export class UserDoubleOptInEmailRequested implements IUserDoubleOptInEmailRequested {
|
|
2504
|
+
|
|
2505
|
+
/**
|
|
2506
|
+
* Constructs a new UserDoubleOptInEmailRequested.
|
|
2507
|
+
* @param [properties] Properties to set
|
|
2508
|
+
*/
|
|
2509
|
+
constructor(properties?: IUserDoubleOptInEmailRequested);
|
|
2510
|
+
|
|
2511
|
+
/** UserDoubleOptInEmailRequested userId. */
|
|
2512
|
+
public userId: string;
|
|
2513
|
+
|
|
2514
|
+
/**
|
|
2515
|
+
* Creates a new UserDoubleOptInEmailRequested instance using the specified properties.
|
|
2516
|
+
* @param [properties] Properties to set
|
|
2517
|
+
* @returns UserDoubleOptInEmailRequested instance
|
|
2518
|
+
*/
|
|
2519
|
+
public static create(properties?: IUserDoubleOptInEmailRequested): UserDoubleOptInEmailRequested;
|
|
2520
|
+
|
|
2521
|
+
/**
|
|
2522
|
+
* Encodes the specified UserDoubleOptInEmailRequested message. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
|
|
2523
|
+
* @param message UserDoubleOptInEmailRequested message or plain object to encode
|
|
2524
|
+
* @param [writer] Writer to encode to
|
|
2525
|
+
* @returns Writer
|
|
2526
|
+
*/
|
|
2527
|
+
public static encode(message: IUserDoubleOptInEmailRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2528
|
+
|
|
2529
|
+
/**
|
|
2530
|
+
* Encodes the specified UserDoubleOptInEmailRequested message, length delimited. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
|
|
2531
|
+
* @param message UserDoubleOptInEmailRequested message or plain object to encode
|
|
2532
|
+
* @param [writer] Writer to encode to
|
|
2533
|
+
* @returns Writer
|
|
2534
|
+
*/
|
|
2535
|
+
public static encodeDelimited(message: IUserDoubleOptInEmailRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2536
|
+
|
|
2537
|
+
/**
|
|
2538
|
+
* Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer.
|
|
2539
|
+
* @param reader Reader or buffer to decode from
|
|
2540
|
+
* @param [length] Message length if known beforehand
|
|
2541
|
+
* @returns UserDoubleOptInEmailRequested
|
|
2542
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2543
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2544
|
+
*/
|
|
2545
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserDoubleOptInEmailRequested;
|
|
2546
|
+
|
|
2547
|
+
/**
|
|
2548
|
+
* Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer, length delimited.
|
|
2549
|
+
* @param reader Reader or buffer to decode from
|
|
2550
|
+
* @returns UserDoubleOptInEmailRequested
|
|
2551
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2552
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2553
|
+
*/
|
|
2554
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserDoubleOptInEmailRequested;
|
|
2555
|
+
|
|
2556
|
+
/**
|
|
2557
|
+
* Verifies a UserDoubleOptInEmailRequested message.
|
|
2558
|
+
* @param message Plain object to verify
|
|
2559
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
2560
|
+
*/
|
|
2561
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
2562
|
+
|
|
2563
|
+
/**
|
|
2564
|
+
* Creates a UserDoubleOptInEmailRequested message from a plain object. Also converts values to their respective internal types.
|
|
2565
|
+
* @param object Plain object
|
|
2566
|
+
* @returns UserDoubleOptInEmailRequested
|
|
2567
|
+
*/
|
|
2568
|
+
public static fromObject(object: { [k: string]: any }): UserDoubleOptInEmailRequested;
|
|
2569
|
+
|
|
2570
|
+
/**
|
|
2571
|
+
* Creates a plain object from a UserDoubleOptInEmailRequested message. Also converts values to other types if specified.
|
|
2572
|
+
* @param message UserDoubleOptInEmailRequested
|
|
2573
|
+
* @param [options] Conversion options
|
|
2574
|
+
* @returns Plain object
|
|
2575
|
+
*/
|
|
2576
|
+
public static toObject(message: UserDoubleOptInEmailRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2577
|
+
|
|
2578
|
+
/**
|
|
2579
|
+
* Converts this UserDoubleOptInEmailRequested to JSON.
|
|
2580
|
+
* @returns JSON object
|
|
2581
|
+
*/
|
|
2582
|
+
public toJSON(): { [k: string]: any };
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2495
2585
|
/** Properties of a UserEmailUpdated. */
|
|
2496
2586
|
export interface IUserEmailUpdated {
|
|
2497
2587
|
|
|
@@ -2702,6 +2792,108 @@ export class UserEmailVerificationRequested implements IUserEmailVerificationReq
|
|
|
2702
2792
|
public toJSON(): { [k: string]: any };
|
|
2703
2793
|
}
|
|
2704
2794
|
|
|
2795
|
+
/** Properties of a UserPasswordResetRequested. */
|
|
2796
|
+
export interface IUserPasswordResetRequested {
|
|
2797
|
+
|
|
2798
|
+
/** UserPasswordResetRequested userId */
|
|
2799
|
+
userId?: (string|null);
|
|
2800
|
+
|
|
2801
|
+
/** UserPasswordResetRequested resetCode */
|
|
2802
|
+
resetCode?: (string|null);
|
|
2803
|
+
|
|
2804
|
+
/** UserPasswordResetRequested timestamp */
|
|
2805
|
+
timestamp?: (number|Long|null);
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
/** Represents a UserPasswordResetRequested. */
|
|
2809
|
+
export class UserPasswordResetRequested implements IUserPasswordResetRequested {
|
|
2810
|
+
|
|
2811
|
+
/**
|
|
2812
|
+
* Constructs a new UserPasswordResetRequested.
|
|
2813
|
+
* @param [properties] Properties to set
|
|
2814
|
+
*/
|
|
2815
|
+
constructor(properties?: IUserPasswordResetRequested);
|
|
2816
|
+
|
|
2817
|
+
/** UserPasswordResetRequested userId. */
|
|
2818
|
+
public userId: string;
|
|
2819
|
+
|
|
2820
|
+
/** UserPasswordResetRequested resetCode. */
|
|
2821
|
+
public resetCode: string;
|
|
2822
|
+
|
|
2823
|
+
/** UserPasswordResetRequested timestamp. */
|
|
2824
|
+
public timestamp: (number|Long);
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* Creates a new UserPasswordResetRequested instance using the specified properties.
|
|
2828
|
+
* @param [properties] Properties to set
|
|
2829
|
+
* @returns UserPasswordResetRequested instance
|
|
2830
|
+
*/
|
|
2831
|
+
public static create(properties?: IUserPasswordResetRequested): UserPasswordResetRequested;
|
|
2832
|
+
|
|
2833
|
+
/**
|
|
2834
|
+
* Encodes the specified UserPasswordResetRequested message. Does not implicitly {@link UserPasswordResetRequested.verify|verify} messages.
|
|
2835
|
+
* @param message UserPasswordResetRequested message or plain object to encode
|
|
2836
|
+
* @param [writer] Writer to encode to
|
|
2837
|
+
* @returns Writer
|
|
2838
|
+
*/
|
|
2839
|
+
public static encode(message: IUserPasswordResetRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2840
|
+
|
|
2841
|
+
/**
|
|
2842
|
+
* Encodes the specified UserPasswordResetRequested message, length delimited. Does not implicitly {@link UserPasswordResetRequested.verify|verify} messages.
|
|
2843
|
+
* @param message UserPasswordResetRequested message or plain object to encode
|
|
2844
|
+
* @param [writer] Writer to encode to
|
|
2845
|
+
* @returns Writer
|
|
2846
|
+
*/
|
|
2847
|
+
public static encodeDelimited(message: IUserPasswordResetRequested, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
2848
|
+
|
|
2849
|
+
/**
|
|
2850
|
+
* Decodes a UserPasswordResetRequested message from the specified reader or buffer.
|
|
2851
|
+
* @param reader Reader or buffer to decode from
|
|
2852
|
+
* @param [length] Message length if known beforehand
|
|
2853
|
+
* @returns UserPasswordResetRequested
|
|
2854
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2855
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2856
|
+
*/
|
|
2857
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserPasswordResetRequested;
|
|
2858
|
+
|
|
2859
|
+
/**
|
|
2860
|
+
* Decodes a UserPasswordResetRequested message from the specified reader or buffer, length delimited.
|
|
2861
|
+
* @param reader Reader or buffer to decode from
|
|
2862
|
+
* @returns UserPasswordResetRequested
|
|
2863
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2864
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2865
|
+
*/
|
|
2866
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserPasswordResetRequested;
|
|
2867
|
+
|
|
2868
|
+
/**
|
|
2869
|
+
* Verifies a UserPasswordResetRequested message.
|
|
2870
|
+
* @param message Plain object to verify
|
|
2871
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
2872
|
+
*/
|
|
2873
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
2874
|
+
|
|
2875
|
+
/**
|
|
2876
|
+
* Creates a UserPasswordResetRequested message from a plain object. Also converts values to their respective internal types.
|
|
2877
|
+
* @param object Plain object
|
|
2878
|
+
* @returns UserPasswordResetRequested
|
|
2879
|
+
*/
|
|
2880
|
+
public static fromObject(object: { [k: string]: any }): UserPasswordResetRequested;
|
|
2881
|
+
|
|
2882
|
+
/**
|
|
2883
|
+
* Creates a plain object from a UserPasswordResetRequested message. Also converts values to other types if specified.
|
|
2884
|
+
* @param message UserPasswordResetRequested
|
|
2885
|
+
* @param [options] Conversion options
|
|
2886
|
+
* @returns Plain object
|
|
2887
|
+
*/
|
|
2888
|
+
public static toObject(message: UserPasswordResetRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
2889
|
+
|
|
2890
|
+
/**
|
|
2891
|
+
* Converts this UserPasswordResetRequested to JSON.
|
|
2892
|
+
* @returns JSON object
|
|
2893
|
+
*/
|
|
2894
|
+
public toJSON(): { [k: string]: any };
|
|
2895
|
+
}
|
|
2896
|
+
|
|
2705
2897
|
/** Properties of a UserPasswordUpdated. */
|
|
2706
2898
|
export interface IUserPasswordUpdated {
|
|
2707
2899
|
|
package/lib/index.js
CHANGED
|
@@ -6061,6 +6061,193 @@ $root.SubscriptionPaymentDeclined = (function() {
|
|
|
6061
6061
|
return SubscriptionPaymentDeclined;
|
|
6062
6062
|
})();
|
|
6063
6063
|
|
|
6064
|
+
$root.UserDoubleOptInEmailRequested = (function() {
|
|
6065
|
+
|
|
6066
|
+
/**
|
|
6067
|
+
* Properties of a UserDoubleOptInEmailRequested.
|
|
6068
|
+
* @exports IUserDoubleOptInEmailRequested
|
|
6069
|
+
* @interface IUserDoubleOptInEmailRequested
|
|
6070
|
+
* @property {string|null} [userId] UserDoubleOptInEmailRequested userId
|
|
6071
|
+
*/
|
|
6072
|
+
|
|
6073
|
+
/**
|
|
6074
|
+
* Constructs a new UserDoubleOptInEmailRequested.
|
|
6075
|
+
* @exports UserDoubleOptInEmailRequested
|
|
6076
|
+
* @classdesc Represents a UserDoubleOptInEmailRequested.
|
|
6077
|
+
* @implements IUserDoubleOptInEmailRequested
|
|
6078
|
+
* @constructor
|
|
6079
|
+
* @param {IUserDoubleOptInEmailRequested=} [properties] Properties to set
|
|
6080
|
+
*/
|
|
6081
|
+
function UserDoubleOptInEmailRequested(properties) {
|
|
6082
|
+
if (properties)
|
|
6083
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6084
|
+
if (properties[keys[i]] != null)
|
|
6085
|
+
this[keys[i]] = properties[keys[i]];
|
|
6086
|
+
}
|
|
6087
|
+
|
|
6088
|
+
/**
|
|
6089
|
+
* UserDoubleOptInEmailRequested userId.
|
|
6090
|
+
* @member {string} userId
|
|
6091
|
+
* @memberof UserDoubleOptInEmailRequested
|
|
6092
|
+
* @instance
|
|
6093
|
+
*/
|
|
6094
|
+
UserDoubleOptInEmailRequested.prototype.userId = "";
|
|
6095
|
+
|
|
6096
|
+
/**
|
|
6097
|
+
* Creates a new UserDoubleOptInEmailRequested instance using the specified properties.
|
|
6098
|
+
* @function create
|
|
6099
|
+
* @memberof UserDoubleOptInEmailRequested
|
|
6100
|
+
* @static
|
|
6101
|
+
* @param {IUserDoubleOptInEmailRequested=} [properties] Properties to set
|
|
6102
|
+
* @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested instance
|
|
6103
|
+
*/
|
|
6104
|
+
UserDoubleOptInEmailRequested.create = function create(properties) {
|
|
6105
|
+
return new UserDoubleOptInEmailRequested(properties);
|
|
6106
|
+
};
|
|
6107
|
+
|
|
6108
|
+
/**
|
|
6109
|
+
* Encodes the specified UserDoubleOptInEmailRequested message. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
|
|
6110
|
+
* @function encode
|
|
6111
|
+
* @memberof UserDoubleOptInEmailRequested
|
|
6112
|
+
* @static
|
|
6113
|
+
* @param {IUserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested message or plain object to encode
|
|
6114
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6115
|
+
* @returns {$protobuf.Writer} Writer
|
|
6116
|
+
*/
|
|
6117
|
+
UserDoubleOptInEmailRequested.encode = function encode(message, writer) {
|
|
6118
|
+
if (!writer)
|
|
6119
|
+
writer = $Writer.create();
|
|
6120
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
6121
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
6122
|
+
return writer;
|
|
6123
|
+
};
|
|
6124
|
+
|
|
6125
|
+
/**
|
|
6126
|
+
* Encodes the specified UserDoubleOptInEmailRequested message, length delimited. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
|
|
6127
|
+
* @function encodeDelimited
|
|
6128
|
+
* @memberof UserDoubleOptInEmailRequested
|
|
6129
|
+
* @static
|
|
6130
|
+
* @param {IUserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested message or plain object to encode
|
|
6131
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6132
|
+
* @returns {$protobuf.Writer} Writer
|
|
6133
|
+
*/
|
|
6134
|
+
UserDoubleOptInEmailRequested.encodeDelimited = function encodeDelimited(message, writer) {
|
|
6135
|
+
return this.encode(message, writer).ldelim();
|
|
6136
|
+
};
|
|
6137
|
+
|
|
6138
|
+
/**
|
|
6139
|
+
* Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer.
|
|
6140
|
+
* @function decode
|
|
6141
|
+
* @memberof UserDoubleOptInEmailRequested
|
|
6142
|
+
* @static
|
|
6143
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6144
|
+
* @param {number} [length] Message length if known beforehand
|
|
6145
|
+
* @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
|
|
6146
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6147
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6148
|
+
*/
|
|
6149
|
+
UserDoubleOptInEmailRequested.decode = function decode(reader, length) {
|
|
6150
|
+
if (!(reader instanceof $Reader))
|
|
6151
|
+
reader = $Reader.create(reader);
|
|
6152
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDoubleOptInEmailRequested();
|
|
6153
|
+
while (reader.pos < end) {
|
|
6154
|
+
var tag = reader.uint32();
|
|
6155
|
+
switch (tag >>> 3) {
|
|
6156
|
+
case 1:
|
|
6157
|
+
message.userId = reader.string();
|
|
6158
|
+
break;
|
|
6159
|
+
default:
|
|
6160
|
+
reader.skipType(tag & 7);
|
|
6161
|
+
break;
|
|
6162
|
+
}
|
|
6163
|
+
}
|
|
6164
|
+
return message;
|
|
6165
|
+
};
|
|
6166
|
+
|
|
6167
|
+
/**
|
|
6168
|
+
* Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer, length delimited.
|
|
6169
|
+
* @function decodeDelimited
|
|
6170
|
+
* @memberof UserDoubleOptInEmailRequested
|
|
6171
|
+
* @static
|
|
6172
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6173
|
+
* @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
|
|
6174
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6175
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6176
|
+
*/
|
|
6177
|
+
UserDoubleOptInEmailRequested.decodeDelimited = function decodeDelimited(reader) {
|
|
6178
|
+
if (!(reader instanceof $Reader))
|
|
6179
|
+
reader = new $Reader(reader);
|
|
6180
|
+
return this.decode(reader, reader.uint32());
|
|
6181
|
+
};
|
|
6182
|
+
|
|
6183
|
+
/**
|
|
6184
|
+
* Verifies a UserDoubleOptInEmailRequested message.
|
|
6185
|
+
* @function verify
|
|
6186
|
+
* @memberof UserDoubleOptInEmailRequested
|
|
6187
|
+
* @static
|
|
6188
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
6189
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
6190
|
+
*/
|
|
6191
|
+
UserDoubleOptInEmailRequested.verify = function verify(message) {
|
|
6192
|
+
if (typeof message !== "object" || message === null)
|
|
6193
|
+
return "object expected";
|
|
6194
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
6195
|
+
if (!$util.isString(message.userId))
|
|
6196
|
+
return "userId: string expected";
|
|
6197
|
+
return null;
|
|
6198
|
+
};
|
|
6199
|
+
|
|
6200
|
+
/**
|
|
6201
|
+
* Creates a UserDoubleOptInEmailRequested message from a plain object. Also converts values to their respective internal types.
|
|
6202
|
+
* @function fromObject
|
|
6203
|
+
* @memberof UserDoubleOptInEmailRequested
|
|
6204
|
+
* @static
|
|
6205
|
+
* @param {Object.<string,*>} object Plain object
|
|
6206
|
+
* @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
|
|
6207
|
+
*/
|
|
6208
|
+
UserDoubleOptInEmailRequested.fromObject = function fromObject(object) {
|
|
6209
|
+
if (object instanceof $root.UserDoubleOptInEmailRequested)
|
|
6210
|
+
return object;
|
|
6211
|
+
var message = new $root.UserDoubleOptInEmailRequested();
|
|
6212
|
+
if (object.userId != null)
|
|
6213
|
+
message.userId = String(object.userId);
|
|
6214
|
+
return message;
|
|
6215
|
+
};
|
|
6216
|
+
|
|
6217
|
+
/**
|
|
6218
|
+
* Creates a plain object from a UserDoubleOptInEmailRequested message. Also converts values to other types if specified.
|
|
6219
|
+
* @function toObject
|
|
6220
|
+
* @memberof UserDoubleOptInEmailRequested
|
|
6221
|
+
* @static
|
|
6222
|
+
* @param {UserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested
|
|
6223
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6224
|
+
* @returns {Object.<string,*>} Plain object
|
|
6225
|
+
*/
|
|
6226
|
+
UserDoubleOptInEmailRequested.toObject = function toObject(message, options) {
|
|
6227
|
+
if (!options)
|
|
6228
|
+
options = {};
|
|
6229
|
+
var object = {};
|
|
6230
|
+
if (options.defaults)
|
|
6231
|
+
object.userId = "";
|
|
6232
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
6233
|
+
object.userId = message.userId;
|
|
6234
|
+
return object;
|
|
6235
|
+
};
|
|
6236
|
+
|
|
6237
|
+
/**
|
|
6238
|
+
* Converts this UserDoubleOptInEmailRequested to JSON.
|
|
6239
|
+
* @function toJSON
|
|
6240
|
+
* @memberof UserDoubleOptInEmailRequested
|
|
6241
|
+
* @instance
|
|
6242
|
+
* @returns {Object.<string,*>} JSON object
|
|
6243
|
+
*/
|
|
6244
|
+
UserDoubleOptInEmailRequested.prototype.toJSON = function toJSON() {
|
|
6245
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6246
|
+
};
|
|
6247
|
+
|
|
6248
|
+
return UserDoubleOptInEmailRequested;
|
|
6249
|
+
})();
|
|
6250
|
+
|
|
6064
6251
|
$root.UserEmailUpdated = (function() {
|
|
6065
6252
|
|
|
6066
6253
|
/**
|
|
@@ -6575,6 +6762,252 @@ $root.UserEmailVerificationRequested = (function() {
|
|
|
6575
6762
|
return UserEmailVerificationRequested;
|
|
6576
6763
|
})();
|
|
6577
6764
|
|
|
6765
|
+
$root.UserPasswordResetRequested = (function() {
|
|
6766
|
+
|
|
6767
|
+
/**
|
|
6768
|
+
* Properties of a UserPasswordResetRequested.
|
|
6769
|
+
* @exports IUserPasswordResetRequested
|
|
6770
|
+
* @interface IUserPasswordResetRequested
|
|
6771
|
+
* @property {string|null} [userId] UserPasswordResetRequested userId
|
|
6772
|
+
* @property {string|null} [resetCode] UserPasswordResetRequested resetCode
|
|
6773
|
+
* @property {number|Long|null} [timestamp] UserPasswordResetRequested timestamp
|
|
6774
|
+
*/
|
|
6775
|
+
|
|
6776
|
+
/**
|
|
6777
|
+
* Constructs a new UserPasswordResetRequested.
|
|
6778
|
+
* @exports UserPasswordResetRequested
|
|
6779
|
+
* @classdesc Represents a UserPasswordResetRequested.
|
|
6780
|
+
* @implements IUserPasswordResetRequested
|
|
6781
|
+
* @constructor
|
|
6782
|
+
* @param {IUserPasswordResetRequested=} [properties] Properties to set
|
|
6783
|
+
*/
|
|
6784
|
+
function UserPasswordResetRequested(properties) {
|
|
6785
|
+
if (properties)
|
|
6786
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6787
|
+
if (properties[keys[i]] != null)
|
|
6788
|
+
this[keys[i]] = properties[keys[i]];
|
|
6789
|
+
}
|
|
6790
|
+
|
|
6791
|
+
/**
|
|
6792
|
+
* UserPasswordResetRequested userId.
|
|
6793
|
+
* @member {string} userId
|
|
6794
|
+
* @memberof UserPasswordResetRequested
|
|
6795
|
+
* @instance
|
|
6796
|
+
*/
|
|
6797
|
+
UserPasswordResetRequested.prototype.userId = "";
|
|
6798
|
+
|
|
6799
|
+
/**
|
|
6800
|
+
* UserPasswordResetRequested resetCode.
|
|
6801
|
+
* @member {string} resetCode
|
|
6802
|
+
* @memberof UserPasswordResetRequested
|
|
6803
|
+
* @instance
|
|
6804
|
+
*/
|
|
6805
|
+
UserPasswordResetRequested.prototype.resetCode = "";
|
|
6806
|
+
|
|
6807
|
+
/**
|
|
6808
|
+
* UserPasswordResetRequested timestamp.
|
|
6809
|
+
* @member {number|Long} timestamp
|
|
6810
|
+
* @memberof UserPasswordResetRequested
|
|
6811
|
+
* @instance
|
|
6812
|
+
*/
|
|
6813
|
+
UserPasswordResetRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
6814
|
+
|
|
6815
|
+
/**
|
|
6816
|
+
* Creates a new UserPasswordResetRequested instance using the specified properties.
|
|
6817
|
+
* @function create
|
|
6818
|
+
* @memberof UserPasswordResetRequested
|
|
6819
|
+
* @static
|
|
6820
|
+
* @param {IUserPasswordResetRequested=} [properties] Properties to set
|
|
6821
|
+
* @returns {UserPasswordResetRequested} UserPasswordResetRequested instance
|
|
6822
|
+
*/
|
|
6823
|
+
UserPasswordResetRequested.create = function create(properties) {
|
|
6824
|
+
return new UserPasswordResetRequested(properties);
|
|
6825
|
+
};
|
|
6826
|
+
|
|
6827
|
+
/**
|
|
6828
|
+
* Encodes the specified UserPasswordResetRequested message. Does not implicitly {@link UserPasswordResetRequested.verify|verify} messages.
|
|
6829
|
+
* @function encode
|
|
6830
|
+
* @memberof UserPasswordResetRequested
|
|
6831
|
+
* @static
|
|
6832
|
+
* @param {IUserPasswordResetRequested} message UserPasswordResetRequested message or plain object to encode
|
|
6833
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6834
|
+
* @returns {$protobuf.Writer} Writer
|
|
6835
|
+
*/
|
|
6836
|
+
UserPasswordResetRequested.encode = function encode(message, writer) {
|
|
6837
|
+
if (!writer)
|
|
6838
|
+
writer = $Writer.create();
|
|
6839
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
6840
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
6841
|
+
if (message.resetCode != null && message.hasOwnProperty("resetCode"))
|
|
6842
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.resetCode);
|
|
6843
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
6844
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
6845
|
+
return writer;
|
|
6846
|
+
};
|
|
6847
|
+
|
|
6848
|
+
/**
|
|
6849
|
+
* Encodes the specified UserPasswordResetRequested message, length delimited. Does not implicitly {@link UserPasswordResetRequested.verify|verify} messages.
|
|
6850
|
+
* @function encodeDelimited
|
|
6851
|
+
* @memberof UserPasswordResetRequested
|
|
6852
|
+
* @static
|
|
6853
|
+
* @param {IUserPasswordResetRequested} message UserPasswordResetRequested message or plain object to encode
|
|
6854
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6855
|
+
* @returns {$protobuf.Writer} Writer
|
|
6856
|
+
*/
|
|
6857
|
+
UserPasswordResetRequested.encodeDelimited = function encodeDelimited(message, writer) {
|
|
6858
|
+
return this.encode(message, writer).ldelim();
|
|
6859
|
+
};
|
|
6860
|
+
|
|
6861
|
+
/**
|
|
6862
|
+
* Decodes a UserPasswordResetRequested message from the specified reader or buffer.
|
|
6863
|
+
* @function decode
|
|
6864
|
+
* @memberof UserPasswordResetRequested
|
|
6865
|
+
* @static
|
|
6866
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6867
|
+
* @param {number} [length] Message length if known beforehand
|
|
6868
|
+
* @returns {UserPasswordResetRequested} UserPasswordResetRequested
|
|
6869
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6870
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6871
|
+
*/
|
|
6872
|
+
UserPasswordResetRequested.decode = function decode(reader, length) {
|
|
6873
|
+
if (!(reader instanceof $Reader))
|
|
6874
|
+
reader = $Reader.create(reader);
|
|
6875
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserPasswordResetRequested();
|
|
6876
|
+
while (reader.pos < end) {
|
|
6877
|
+
var tag = reader.uint32();
|
|
6878
|
+
switch (tag >>> 3) {
|
|
6879
|
+
case 1:
|
|
6880
|
+
message.userId = reader.string();
|
|
6881
|
+
break;
|
|
6882
|
+
case 2:
|
|
6883
|
+
message.resetCode = reader.string();
|
|
6884
|
+
break;
|
|
6885
|
+
case 3:
|
|
6886
|
+
message.timestamp = reader.uint64();
|
|
6887
|
+
break;
|
|
6888
|
+
default:
|
|
6889
|
+
reader.skipType(tag & 7);
|
|
6890
|
+
break;
|
|
6891
|
+
}
|
|
6892
|
+
}
|
|
6893
|
+
return message;
|
|
6894
|
+
};
|
|
6895
|
+
|
|
6896
|
+
/**
|
|
6897
|
+
* Decodes a UserPasswordResetRequested message from the specified reader or buffer, length delimited.
|
|
6898
|
+
* @function decodeDelimited
|
|
6899
|
+
* @memberof UserPasswordResetRequested
|
|
6900
|
+
* @static
|
|
6901
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6902
|
+
* @returns {UserPasswordResetRequested} UserPasswordResetRequested
|
|
6903
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6904
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6905
|
+
*/
|
|
6906
|
+
UserPasswordResetRequested.decodeDelimited = function decodeDelimited(reader) {
|
|
6907
|
+
if (!(reader instanceof $Reader))
|
|
6908
|
+
reader = new $Reader(reader);
|
|
6909
|
+
return this.decode(reader, reader.uint32());
|
|
6910
|
+
};
|
|
6911
|
+
|
|
6912
|
+
/**
|
|
6913
|
+
* Verifies a UserPasswordResetRequested message.
|
|
6914
|
+
* @function verify
|
|
6915
|
+
* @memberof UserPasswordResetRequested
|
|
6916
|
+
* @static
|
|
6917
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
6918
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
6919
|
+
*/
|
|
6920
|
+
UserPasswordResetRequested.verify = function verify(message) {
|
|
6921
|
+
if (typeof message !== "object" || message === null)
|
|
6922
|
+
return "object expected";
|
|
6923
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
6924
|
+
if (!$util.isString(message.userId))
|
|
6925
|
+
return "userId: string expected";
|
|
6926
|
+
if (message.resetCode != null && message.hasOwnProperty("resetCode"))
|
|
6927
|
+
if (!$util.isString(message.resetCode))
|
|
6928
|
+
return "resetCode: string expected";
|
|
6929
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
6930
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
6931
|
+
return "timestamp: integer|Long expected";
|
|
6932
|
+
return null;
|
|
6933
|
+
};
|
|
6934
|
+
|
|
6935
|
+
/**
|
|
6936
|
+
* Creates a UserPasswordResetRequested message from a plain object. Also converts values to their respective internal types.
|
|
6937
|
+
* @function fromObject
|
|
6938
|
+
* @memberof UserPasswordResetRequested
|
|
6939
|
+
* @static
|
|
6940
|
+
* @param {Object.<string,*>} object Plain object
|
|
6941
|
+
* @returns {UserPasswordResetRequested} UserPasswordResetRequested
|
|
6942
|
+
*/
|
|
6943
|
+
UserPasswordResetRequested.fromObject = function fromObject(object) {
|
|
6944
|
+
if (object instanceof $root.UserPasswordResetRequested)
|
|
6945
|
+
return object;
|
|
6946
|
+
var message = new $root.UserPasswordResetRequested();
|
|
6947
|
+
if (object.userId != null)
|
|
6948
|
+
message.userId = String(object.userId);
|
|
6949
|
+
if (object.resetCode != null)
|
|
6950
|
+
message.resetCode = String(object.resetCode);
|
|
6951
|
+
if (object.timestamp != null)
|
|
6952
|
+
if ($util.Long)
|
|
6953
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
6954
|
+
else if (typeof object.timestamp === "string")
|
|
6955
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
6956
|
+
else if (typeof object.timestamp === "number")
|
|
6957
|
+
message.timestamp = object.timestamp;
|
|
6958
|
+
else if (typeof object.timestamp === "object")
|
|
6959
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
6960
|
+
return message;
|
|
6961
|
+
};
|
|
6962
|
+
|
|
6963
|
+
/**
|
|
6964
|
+
* Creates a plain object from a UserPasswordResetRequested message. Also converts values to other types if specified.
|
|
6965
|
+
* @function toObject
|
|
6966
|
+
* @memberof UserPasswordResetRequested
|
|
6967
|
+
* @static
|
|
6968
|
+
* @param {UserPasswordResetRequested} message UserPasswordResetRequested
|
|
6969
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6970
|
+
* @returns {Object.<string,*>} Plain object
|
|
6971
|
+
*/
|
|
6972
|
+
UserPasswordResetRequested.toObject = function toObject(message, options) {
|
|
6973
|
+
if (!options)
|
|
6974
|
+
options = {};
|
|
6975
|
+
var object = {};
|
|
6976
|
+
if (options.defaults) {
|
|
6977
|
+
object.userId = "";
|
|
6978
|
+
object.resetCode = "";
|
|
6979
|
+
if ($util.Long) {
|
|
6980
|
+
var long = new $util.Long(0, 0, true);
|
|
6981
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
6982
|
+
} else
|
|
6983
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
6984
|
+
}
|
|
6985
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
6986
|
+
object.userId = message.userId;
|
|
6987
|
+
if (message.resetCode != null && message.hasOwnProperty("resetCode"))
|
|
6988
|
+
object.resetCode = message.resetCode;
|
|
6989
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
6990
|
+
if (typeof message.timestamp === "number")
|
|
6991
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
6992
|
+
else
|
|
6993
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
6994
|
+
return object;
|
|
6995
|
+
};
|
|
6996
|
+
|
|
6997
|
+
/**
|
|
6998
|
+
* Converts this UserPasswordResetRequested to JSON.
|
|
6999
|
+
* @function toJSON
|
|
7000
|
+
* @memberof UserPasswordResetRequested
|
|
7001
|
+
* @instance
|
|
7002
|
+
* @returns {Object.<string,*>} JSON object
|
|
7003
|
+
*/
|
|
7004
|
+
UserPasswordResetRequested.prototype.toJSON = function toJSON() {
|
|
7005
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7006
|
+
};
|
|
7007
|
+
|
|
7008
|
+
return UserPasswordResetRequested;
|
|
7009
|
+
})();
|
|
7010
|
+
|
|
6578
7011
|
$root.UserPasswordUpdated = (function() {
|
|
6579
7012
|
|
|
6580
7013
|
/**
|
package/package.json
CHANGED