@headspace/protos-events 1.389.0 → 1.391.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
@@ -104,14 +104,15 @@ export namespace auth {
104
104
  AUTH_CLIENT_PLATFORM_ANDROID = 3,
105
105
  AUTH_CLIENT_PLATFORM_ALEXA = 4,
106
106
  AUTH_CLIENT_PLATFORM_GOOGLE_ASSISTANT = 5,
107
- AUTH_CLIENT_PLATFORM_IOS_WATCH = 6
107
+ AUTH_CLIENT_PLATFORM_IOS_WATCH = 6,
108
+ AUTH_CLIENT_PLATFORM_API = 7
108
109
  }
109
110
 
110
- /** AuthClientApp enum. */
111
- enum AuthClientApp {
112
- AUTH_CLIENT_APP_UNKNOWN = 0,
113
- AUTH_CLIENT_APP_HEADSPACE = 1,
114
- AUTH_CLIENT_APP_GINGER = 2
111
+ /** AuthClientProductArea enum. */
112
+ enum AuthClientProductArea {
113
+ AUTH_CLIENT_PA_UNKNOWN = 0,
114
+ AUTH_CLIENT_PA_HEADSPACE = 1,
115
+ AUTH_CLIENT_PA_GINGER = 2
115
116
  }
116
117
 
117
118
  /** AuthLoginTag enum. */
@@ -30076,7 +30077,7 @@ export interface IAuthLoggedIn {
30076
30077
  timestamp?: (number|Long|null);
30077
30078
 
30078
30079
  /** client application (e.g. headspace, ginger) */
30079
- app?: (auth.AuthClientApp|null);
30080
+ productArea?: (auth.AuthClientProductArea|null);
30080
30081
 
30081
30082
  /** client platform (e.g. ios, android, web) */
30082
30083
  platform?: (auth.AuthClientPlatform|null);
@@ -30101,7 +30102,7 @@ export class AuthLoggedIn implements IAuthLoggedIn {
30101
30102
  public timestamp: (number|Long);
30102
30103
 
30103
30104
  /** client application (e.g. headspace, ginger) */
30104
- public app: auth.AuthClientApp;
30105
+ public productArea: auth.AuthClientProductArea;
30105
30106
 
30106
30107
  /** client platform (e.g. ios, android, web) */
30107
30108
  public platform: auth.AuthClientPlatform;
package/lib/index.js CHANGED
@@ -242,6 +242,7 @@ $root.auth = (function() {
242
242
  * @property {number} AUTH_CLIENT_PLATFORM_ALEXA=4 AUTH_CLIENT_PLATFORM_ALEXA value
243
243
  * @property {number} AUTH_CLIENT_PLATFORM_GOOGLE_ASSISTANT=5 AUTH_CLIENT_PLATFORM_GOOGLE_ASSISTANT value
244
244
  * @property {number} AUTH_CLIENT_PLATFORM_IOS_WATCH=6 AUTH_CLIENT_PLATFORM_IOS_WATCH value
245
+ * @property {number} AUTH_CLIENT_PLATFORM_API=7 AUTH_CLIENT_PLATFORM_API value
245
246
  */
246
247
  auth.AuthClientPlatform = (function() {
247
248
  var valuesById = {}, values = Object.create(valuesById);
@@ -252,22 +253,23 @@ $root.auth = (function() {
252
253
  values[valuesById[4] = "AUTH_CLIENT_PLATFORM_ALEXA"] = 4;
253
254
  values[valuesById[5] = "AUTH_CLIENT_PLATFORM_GOOGLE_ASSISTANT"] = 5;
254
255
  values[valuesById[6] = "AUTH_CLIENT_PLATFORM_IOS_WATCH"] = 6;
256
+ values[valuesById[7] = "AUTH_CLIENT_PLATFORM_API"] = 7;
255
257
  return values;
256
258
  })();
257
259
 
258
260
  /**
259
- * AuthClientApp enum.
260
- * @name auth.AuthClientApp
261
+ * AuthClientProductArea enum.
262
+ * @name auth.AuthClientProductArea
261
263
  * @enum {string}
262
- * @property {number} AUTH_CLIENT_APP_UNKNOWN=0 AUTH_CLIENT_APP_UNKNOWN value
263
- * @property {number} AUTH_CLIENT_APP_HEADSPACE=1 AUTH_CLIENT_APP_HEADSPACE value
264
- * @property {number} AUTH_CLIENT_APP_GINGER=2 AUTH_CLIENT_APP_GINGER value
264
+ * @property {number} AUTH_CLIENT_PA_UNKNOWN=0 AUTH_CLIENT_PA_UNKNOWN value
265
+ * @property {number} AUTH_CLIENT_PA_HEADSPACE=1 AUTH_CLIENT_PA_HEADSPACE value
266
+ * @property {number} AUTH_CLIENT_PA_GINGER=2 AUTH_CLIENT_PA_GINGER value
265
267
  */
266
- auth.AuthClientApp = (function() {
268
+ auth.AuthClientProductArea = (function() {
267
269
  var valuesById = {}, values = Object.create(valuesById);
268
- values[valuesById[0] = "AUTH_CLIENT_APP_UNKNOWN"] = 0;
269
- values[valuesById[1] = "AUTH_CLIENT_APP_HEADSPACE"] = 1;
270
- values[valuesById[2] = "AUTH_CLIENT_APP_GINGER"] = 2;
270
+ values[valuesById[0] = "AUTH_CLIENT_PA_UNKNOWN"] = 0;
271
+ values[valuesById[1] = "AUTH_CLIENT_PA_HEADSPACE"] = 1;
272
+ values[valuesById[2] = "AUTH_CLIENT_PA_GINGER"] = 2;
271
273
  return values;
272
274
  })();
273
275
 
@@ -83734,7 +83736,7 @@ $root.AuthLoggedIn = (function() {
83734
83736
  * @interface IAuthLoggedIn
83735
83737
  * @property {string|null} [userId] HSUSER identifier
83736
83738
  * @property {number|Long|null} [timestamp] epoch millis of login event
83737
- * @property {auth.AuthClientApp|null} [app] client application (e.g. headspace, ginger)
83739
+ * @property {auth.AuthClientProductArea|null} [productArea] client application (e.g. headspace, ginger)
83738
83740
  * @property {auth.AuthClientPlatform|null} [platform] client platform (e.g. ios, android, web)
83739
83741
  * @property {Array.<auth.AuthLoginTag>|null} [tags] tags for the login event
83740
83742
  */
@@ -83773,11 +83775,11 @@ $root.AuthLoggedIn = (function() {
83773
83775
 
83774
83776
  /**
83775
83777
  * client application (e.g. headspace, ginger)
83776
- * @member {auth.AuthClientApp} app
83778
+ * @member {auth.AuthClientProductArea} productArea
83777
83779
  * @memberof AuthLoggedIn
83778
83780
  * @instance
83779
83781
  */
83780
- AuthLoggedIn.prototype.app = 0;
83782
+ AuthLoggedIn.prototype.productArea = 0;
83781
83783
 
83782
83784
  /**
83783
83785
  * client platform (e.g. ios, android, web)
@@ -83823,8 +83825,8 @@ $root.AuthLoggedIn = (function() {
83823
83825
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
83824
83826
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
83825
83827
  writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
83826
- if (message.app != null && message.hasOwnProperty("app"))
83827
- writer.uint32(/* id 3, wireType 0 =*/24).int32(message.app);
83828
+ if (message.productArea != null && message.hasOwnProperty("productArea"))
83829
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.productArea);
83828
83830
  if (message.platform != null && message.hasOwnProperty("platform"))
83829
83831
  writer.uint32(/* id 4, wireType 0 =*/32).int32(message.platform);
83830
83832
  if (message.tags != null && message.tags.length) {
@@ -83874,7 +83876,7 @@ $root.AuthLoggedIn = (function() {
83874
83876
  message.timestamp = reader.uint64();
83875
83877
  break;
83876
83878
  case 3:
83877
- message.app = reader.int32();
83879
+ message.productArea = reader.int32();
83878
83880
  break;
83879
83881
  case 4:
83880
83882
  message.platform = reader.int32();
@@ -83930,10 +83932,10 @@ $root.AuthLoggedIn = (function() {
83930
83932
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
83931
83933
  if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
83932
83934
  return "timestamp: integer|Long expected";
83933
- if (message.app != null && message.hasOwnProperty("app"))
83934
- switch (message.app) {
83935
+ if (message.productArea != null && message.hasOwnProperty("productArea"))
83936
+ switch (message.productArea) {
83935
83937
  default:
83936
- return "app: enum value expected";
83938
+ return "productArea: enum value expected";
83937
83939
  case 0:
83938
83940
  case 1:
83939
83941
  case 2:
@@ -83950,6 +83952,7 @@ $root.AuthLoggedIn = (function() {
83950
83952
  case 4:
83951
83953
  case 5:
83952
83954
  case 6:
83955
+ case 7:
83953
83956
  break;
83954
83957
  }
83955
83958
  if (message.tags != null && message.hasOwnProperty("tags")) {
@@ -83990,18 +83993,18 @@ $root.AuthLoggedIn = (function() {
83990
83993
  message.timestamp = object.timestamp;
83991
83994
  else if (typeof object.timestamp === "object")
83992
83995
  message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
83993
- switch (object.app) {
83994
- case "AUTH_CLIENT_APP_UNKNOWN":
83996
+ switch (object.productArea) {
83997
+ case "AUTH_CLIENT_PA_UNKNOWN":
83995
83998
  case 0:
83996
- message.app = 0;
83999
+ message.productArea = 0;
83997
84000
  break;
83998
- case "AUTH_CLIENT_APP_HEADSPACE":
84001
+ case "AUTH_CLIENT_PA_HEADSPACE":
83999
84002
  case 1:
84000
- message.app = 1;
84003
+ message.productArea = 1;
84001
84004
  break;
84002
- case "AUTH_CLIENT_APP_GINGER":
84005
+ case "AUTH_CLIENT_PA_GINGER":
84003
84006
  case 2:
84004
- message.app = 2;
84007
+ message.productArea = 2;
84005
84008
  break;
84006
84009
  }
84007
84010
  switch (object.platform) {
@@ -84033,6 +84036,10 @@ $root.AuthLoggedIn = (function() {
84033
84036
  case 6:
84034
84037
  message.platform = 6;
84035
84038
  break;
84039
+ case "AUTH_CLIENT_PLATFORM_API":
84040
+ case 7:
84041
+ message.platform = 7;
84042
+ break;
84036
84043
  }
84037
84044
  if (object.tags) {
84038
84045
  if (!Array.isArray(object.tags))
@@ -84076,7 +84083,7 @@ $root.AuthLoggedIn = (function() {
84076
84083
  object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
84077
84084
  } else
84078
84085
  object.timestamp = options.longs === String ? "0" : 0;
84079
- object.app = options.enums === String ? "AUTH_CLIENT_APP_UNKNOWN" : 0;
84086
+ object.productArea = options.enums === String ? "AUTH_CLIENT_PA_UNKNOWN" : 0;
84080
84087
  object.platform = options.enums === String ? "AUTH_CLIENT_PLATFORM_UNKNOWN" : 0;
84081
84088
  }
84082
84089
  if (message.userId != null && message.hasOwnProperty("userId"))
@@ -84086,8 +84093,8 @@ $root.AuthLoggedIn = (function() {
84086
84093
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
84087
84094
  else
84088
84095
  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;
84089
- if (message.app != null && message.hasOwnProperty("app"))
84090
- object.app = options.enums === String ? $root.auth.AuthClientApp[message.app] : message.app;
84096
+ if (message.productArea != null && message.hasOwnProperty("productArea"))
84097
+ object.productArea = options.enums === String ? $root.auth.AuthClientProductArea[message.productArea] : message.productArea;
84091
84098
  if (message.platform != null && message.hasOwnProperty("platform"))
84092
84099
  object.platform = options.enums === String ? $root.auth.AuthClientPlatform[message.platform] : message.platform;
84093
84100
  if (message.tags && message.tags.length) {
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.389.0"
19
+ "version": "1.391.0"
20
20
  }