@headspace/protos-events 1.503.0 → 1.504.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 CHANGED
@@ -39975,6 +39975,102 @@ export namespace ModerationActionPerformed {
39975
39975
  }
39976
39976
  }
39977
39977
 
39978
+ /** Properties of a UserOnboardingTopicResponses. */
39979
+ export interface IUserOnboardingTopicResponses {
39980
+
39981
+ /** UserOnboardingTopicResponses userId */
39982
+ userId?: (string|null);
39983
+
39984
+ /** UserOnboardingTopicResponses onboardTopics */
39985
+ onboardTopics?: (string[]|null);
39986
+ }
39987
+
39988
+ /** Represents a UserOnboardingTopicResponses. */
39989
+ export class UserOnboardingTopicResponses implements IUserOnboardingTopicResponses {
39990
+
39991
+ /**
39992
+ * Constructs a new UserOnboardingTopicResponses.
39993
+ * @param [properties] Properties to set
39994
+ */
39995
+ constructor(properties?: IUserOnboardingTopicResponses);
39996
+
39997
+ /** UserOnboardingTopicResponses userId. */
39998
+ public userId: string;
39999
+
40000
+ /** UserOnboardingTopicResponses onboardTopics. */
40001
+ public onboardTopics: string[];
40002
+
40003
+ /**
40004
+ * Creates a new UserOnboardingTopicResponses instance using the specified properties.
40005
+ * @param [properties] Properties to set
40006
+ * @returns UserOnboardingTopicResponses instance
40007
+ */
40008
+ public static create(properties?: IUserOnboardingTopicResponses): UserOnboardingTopicResponses;
40009
+
40010
+ /**
40011
+ * Encodes the specified UserOnboardingTopicResponses message. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
40012
+ * @param message UserOnboardingTopicResponses message or plain object to encode
40013
+ * @param [writer] Writer to encode to
40014
+ * @returns Writer
40015
+ */
40016
+ public static encode(message: IUserOnboardingTopicResponses, writer?: $protobuf.Writer): $protobuf.Writer;
40017
+
40018
+ /**
40019
+ * Encodes the specified UserOnboardingTopicResponses message, length delimited. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
40020
+ * @param message UserOnboardingTopicResponses message or plain object to encode
40021
+ * @param [writer] Writer to encode to
40022
+ * @returns Writer
40023
+ */
40024
+ public static encodeDelimited(message: IUserOnboardingTopicResponses, writer?: $protobuf.Writer): $protobuf.Writer;
40025
+
40026
+ /**
40027
+ * Decodes a UserOnboardingTopicResponses message from the specified reader or buffer.
40028
+ * @param reader Reader or buffer to decode from
40029
+ * @param [length] Message length if known beforehand
40030
+ * @returns UserOnboardingTopicResponses
40031
+ * @throws {Error} If the payload is not a reader or valid buffer
40032
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40033
+ */
40034
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserOnboardingTopicResponses;
40035
+
40036
+ /**
40037
+ * Decodes a UserOnboardingTopicResponses message from the specified reader or buffer, length delimited.
40038
+ * @param reader Reader or buffer to decode from
40039
+ * @returns UserOnboardingTopicResponses
40040
+ * @throws {Error} If the payload is not a reader or valid buffer
40041
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40042
+ */
40043
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserOnboardingTopicResponses;
40044
+
40045
+ /**
40046
+ * Verifies a UserOnboardingTopicResponses message.
40047
+ * @param message Plain object to verify
40048
+ * @returns `null` if valid, otherwise the reason why it is not
40049
+ */
40050
+ public static verify(message: { [k: string]: any }): (string|null);
40051
+
40052
+ /**
40053
+ * Creates a UserOnboardingTopicResponses message from a plain object. Also converts values to their respective internal types.
40054
+ * @param object Plain object
40055
+ * @returns UserOnboardingTopicResponses
40056
+ */
40057
+ public static fromObject(object: { [k: string]: any }): UserOnboardingTopicResponses;
40058
+
40059
+ /**
40060
+ * Creates a plain object from a UserOnboardingTopicResponses message. Also converts values to other types if specified.
40061
+ * @param message UserOnboardingTopicResponses
40062
+ * @param [options] Conversion options
40063
+ * @returns Plain object
40064
+ */
40065
+ public static toObject(message: UserOnboardingTopicResponses, options?: $protobuf.IConversionOptions): { [k: string]: any };
40066
+
40067
+ /**
40068
+ * Converts this UserOnboardingTopicResponses to JSON.
40069
+ * @returns JSON object
40070
+ */
40071
+ public toJSON(): { [k: string]: any };
40072
+ }
40073
+
39978
40074
  /** Properties of a WakeupPlaylistCreated. */
39979
40075
  export interface IWakeupPlaylistCreated {
39980
40076
 
package/lib/index.js CHANGED
@@ -112777,6 +112777,232 @@ $root.ModerationActionPerformed = (function() {
112777
112777
  return ModerationActionPerformed;
112778
112778
  })();
112779
112779
 
112780
+ $root.UserOnboardingTopicResponses = (function() {
112781
+
112782
+ /**
112783
+ * Properties of a UserOnboardingTopicResponses.
112784
+ * @name IUserOnboardingTopicResponses
112785
+ * @interface IUserOnboardingTopicResponses
112786
+ * @property {string|null} [userId] UserOnboardingTopicResponses userId
112787
+ * @property {Array.<string>|null} [onboardTopics] UserOnboardingTopicResponses onboardTopics
112788
+ */
112789
+
112790
+ /**
112791
+ * Constructs a new UserOnboardingTopicResponses.
112792
+ * @name UserOnboardingTopicResponses
112793
+ * @classdesc Represents a UserOnboardingTopicResponses.
112794
+ * @implements IUserOnboardingTopicResponses
112795
+ * @constructor
112796
+ * @param {IUserOnboardingTopicResponses=} [properties] Properties to set
112797
+ */
112798
+ function UserOnboardingTopicResponses(properties) {
112799
+ this.onboardTopics = [];
112800
+ if (properties)
112801
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
112802
+ if (properties[keys[i]] != null)
112803
+ this[keys[i]] = properties[keys[i]];
112804
+ }
112805
+
112806
+ /**
112807
+ * UserOnboardingTopicResponses userId.
112808
+ * @member {string} userId
112809
+ * @memberof UserOnboardingTopicResponses
112810
+ * @instance
112811
+ */
112812
+ UserOnboardingTopicResponses.prototype.userId = "";
112813
+
112814
+ /**
112815
+ * UserOnboardingTopicResponses onboardTopics.
112816
+ * @member {Array.<string>} onboardTopics
112817
+ * @memberof UserOnboardingTopicResponses
112818
+ * @instance
112819
+ */
112820
+ UserOnboardingTopicResponses.prototype.onboardTopics = $util.emptyArray;
112821
+
112822
+ /**
112823
+ * Creates a new UserOnboardingTopicResponses instance using the specified properties.
112824
+ * @function create
112825
+ * @memberof UserOnboardingTopicResponses
112826
+ * @static
112827
+ * @param {IUserOnboardingTopicResponses=} [properties] Properties to set
112828
+ * @returns {UserOnboardingTopicResponses} UserOnboardingTopicResponses instance
112829
+ */
112830
+ UserOnboardingTopicResponses.create = function create(properties) {
112831
+ return new UserOnboardingTopicResponses(properties);
112832
+ };
112833
+
112834
+ /**
112835
+ * Encodes the specified UserOnboardingTopicResponses message. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
112836
+ * @function encode
112837
+ * @memberof UserOnboardingTopicResponses
112838
+ * @static
112839
+ * @param {IUserOnboardingTopicResponses} message UserOnboardingTopicResponses message or plain object to encode
112840
+ * @param {$protobuf.Writer} [writer] Writer to encode to
112841
+ * @returns {$protobuf.Writer} Writer
112842
+ */
112843
+ UserOnboardingTopicResponses.encode = function encode(message, writer) {
112844
+ if (!writer)
112845
+ writer = $Writer.create();
112846
+ if (message.userId != null && message.hasOwnProperty("userId"))
112847
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
112848
+ if (message.onboardTopics != null && message.onboardTopics.length)
112849
+ for (var i = 0; i < message.onboardTopics.length; ++i)
112850
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.onboardTopics[i]);
112851
+ return writer;
112852
+ };
112853
+
112854
+ /**
112855
+ * Encodes the specified UserOnboardingTopicResponses message, length delimited. Does not implicitly {@link UserOnboardingTopicResponses.verify|verify} messages.
112856
+ * @function encodeDelimited
112857
+ * @memberof UserOnboardingTopicResponses
112858
+ * @static
112859
+ * @param {IUserOnboardingTopicResponses} message UserOnboardingTopicResponses message or plain object to encode
112860
+ * @param {$protobuf.Writer} [writer] Writer to encode to
112861
+ * @returns {$protobuf.Writer} Writer
112862
+ */
112863
+ UserOnboardingTopicResponses.encodeDelimited = function encodeDelimited(message, writer) {
112864
+ return this.encode(message, writer).ldelim();
112865
+ };
112866
+
112867
+ /**
112868
+ * Decodes a UserOnboardingTopicResponses message from the specified reader or buffer.
112869
+ * @function decode
112870
+ * @memberof UserOnboardingTopicResponses
112871
+ * @static
112872
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
112873
+ * @param {number} [length] Message length if known beforehand
112874
+ * @returns {UserOnboardingTopicResponses} UserOnboardingTopicResponses
112875
+ * @throws {Error} If the payload is not a reader or valid buffer
112876
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
112877
+ */
112878
+ UserOnboardingTopicResponses.decode = function decode(reader, length) {
112879
+ if (!(reader instanceof $Reader))
112880
+ reader = $Reader.create(reader);
112881
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserOnboardingTopicResponses();
112882
+ while (reader.pos < end) {
112883
+ var tag = reader.uint32();
112884
+ switch (tag >>> 3) {
112885
+ case 1:
112886
+ message.userId = reader.string();
112887
+ break;
112888
+ case 2:
112889
+ if (!(message.onboardTopics && message.onboardTopics.length))
112890
+ message.onboardTopics = [];
112891
+ message.onboardTopics.push(reader.string());
112892
+ break;
112893
+ default:
112894
+ reader.skipType(tag & 7);
112895
+ break;
112896
+ }
112897
+ }
112898
+ return message;
112899
+ };
112900
+
112901
+ /**
112902
+ * Decodes a UserOnboardingTopicResponses message from the specified reader or buffer, length delimited.
112903
+ * @function decodeDelimited
112904
+ * @memberof UserOnboardingTopicResponses
112905
+ * @static
112906
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
112907
+ * @returns {UserOnboardingTopicResponses} UserOnboardingTopicResponses
112908
+ * @throws {Error} If the payload is not a reader or valid buffer
112909
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
112910
+ */
112911
+ UserOnboardingTopicResponses.decodeDelimited = function decodeDelimited(reader) {
112912
+ if (!(reader instanceof $Reader))
112913
+ reader = new $Reader(reader);
112914
+ return this.decode(reader, reader.uint32());
112915
+ };
112916
+
112917
+ /**
112918
+ * Verifies a UserOnboardingTopicResponses message.
112919
+ * @function verify
112920
+ * @memberof UserOnboardingTopicResponses
112921
+ * @static
112922
+ * @param {Object.<string,*>} message Plain object to verify
112923
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
112924
+ */
112925
+ UserOnboardingTopicResponses.verify = function verify(message) {
112926
+ if (typeof message !== "object" || message === null)
112927
+ return "object expected";
112928
+ if (message.userId != null && message.hasOwnProperty("userId"))
112929
+ if (!$util.isString(message.userId))
112930
+ return "userId: string expected";
112931
+ if (message.onboardTopics != null && message.hasOwnProperty("onboardTopics")) {
112932
+ if (!Array.isArray(message.onboardTopics))
112933
+ return "onboardTopics: array expected";
112934
+ for (var i = 0; i < message.onboardTopics.length; ++i)
112935
+ if (!$util.isString(message.onboardTopics[i]))
112936
+ return "onboardTopics: string[] expected";
112937
+ }
112938
+ return null;
112939
+ };
112940
+
112941
+ /**
112942
+ * Creates a UserOnboardingTopicResponses message from a plain object. Also converts values to their respective internal types.
112943
+ * @function fromObject
112944
+ * @memberof UserOnboardingTopicResponses
112945
+ * @static
112946
+ * @param {Object.<string,*>} object Plain object
112947
+ * @returns {UserOnboardingTopicResponses} UserOnboardingTopicResponses
112948
+ */
112949
+ UserOnboardingTopicResponses.fromObject = function fromObject(object) {
112950
+ if (object instanceof $root.UserOnboardingTopicResponses)
112951
+ return object;
112952
+ var message = new $root.UserOnboardingTopicResponses();
112953
+ if (object.userId != null)
112954
+ message.userId = String(object.userId);
112955
+ if (object.onboardTopics) {
112956
+ if (!Array.isArray(object.onboardTopics))
112957
+ throw TypeError(".UserOnboardingTopicResponses.onboardTopics: array expected");
112958
+ message.onboardTopics = [];
112959
+ for (var i = 0; i < object.onboardTopics.length; ++i)
112960
+ message.onboardTopics[i] = String(object.onboardTopics[i]);
112961
+ }
112962
+ return message;
112963
+ };
112964
+
112965
+ /**
112966
+ * Creates a plain object from a UserOnboardingTopicResponses message. Also converts values to other types if specified.
112967
+ * @function toObject
112968
+ * @memberof UserOnboardingTopicResponses
112969
+ * @static
112970
+ * @param {UserOnboardingTopicResponses} message UserOnboardingTopicResponses
112971
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
112972
+ * @returns {Object.<string,*>} Plain object
112973
+ */
112974
+ UserOnboardingTopicResponses.toObject = function toObject(message, options) {
112975
+ if (!options)
112976
+ options = {};
112977
+ var object = {};
112978
+ if (options.arrays || options.defaults)
112979
+ object.onboardTopics = [];
112980
+ if (options.defaults)
112981
+ object.userId = "";
112982
+ if (message.userId != null && message.hasOwnProperty("userId"))
112983
+ object.userId = message.userId;
112984
+ if (message.onboardTopics && message.onboardTopics.length) {
112985
+ object.onboardTopics = [];
112986
+ for (var j = 0; j < message.onboardTopics.length; ++j)
112987
+ object.onboardTopics[j] = message.onboardTopics[j];
112988
+ }
112989
+ return object;
112990
+ };
112991
+
112992
+ /**
112993
+ * Converts this UserOnboardingTopicResponses to JSON.
112994
+ * @function toJSON
112995
+ * @memberof UserOnboardingTopicResponses
112996
+ * @instance
112997
+ * @returns {Object.<string,*>} JSON object
112998
+ */
112999
+ UserOnboardingTopicResponses.prototype.toJSON = function toJSON() {
113000
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
113001
+ };
113002
+
113003
+ return UserOnboardingTopicResponses;
113004
+ })();
113005
+
112780
113006
  $root.WakeupPlaylistCreated = (function() {
112781
113007
 
112782
113008
  /**
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.503.0"
19
+ "version": "1.504.0"
20
20
  }