@headspace/protos-events 1.362.0 → 1.363.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
@@ -9981,6 +9981,9 @@ export namespace b2b {
9981
9981
 
9982
9982
  /** Organization headspaceHealthId */
9983
9983
  headspaceHealthId?: (string|null);
9984
+
9985
+ /** Organization mfaEnabled */
9986
+ mfaEnabled?: (boolean|null);
9984
9987
  }
9985
9988
 
9986
9989
  /** Represents an Organization. */
@@ -10025,6 +10028,9 @@ export namespace b2b {
10025
10028
  /** Organization headspaceHealthId. */
10026
10029
  public headspaceHealthId: string;
10027
10030
 
10031
+ /** Organization mfaEnabled. */
10032
+ public mfaEnabled: boolean;
10033
+
10028
10034
  /**
10029
10035
  * Creates a new Organization instance using the specified properties.
10030
10036
  * @param [properties] Properties to set
@@ -30047,6 +30053,102 @@ export class OrganizationUpdated implements IOrganizationUpdated {
30047
30053
  public toJSON(): { [k: string]: any };
30048
30054
  }
30049
30055
 
30056
+ /** Properties of an OrganizationMFAUpdated. */
30057
+ export interface IOrganizationMFAUpdated {
30058
+
30059
+ /** OrganizationMFAUpdated timestamp */
30060
+ timestamp?: (number|Long|null);
30061
+
30062
+ /** OrganizationMFAUpdated organization */
30063
+ organization?: (b2b.IOrganization|null);
30064
+ }
30065
+
30066
+ /** Represents an OrganizationMFAUpdated. */
30067
+ export class OrganizationMFAUpdated implements IOrganizationMFAUpdated {
30068
+
30069
+ /**
30070
+ * Constructs a new OrganizationMFAUpdated.
30071
+ * @param [properties] Properties to set
30072
+ */
30073
+ constructor(properties?: IOrganizationMFAUpdated);
30074
+
30075
+ /** OrganizationMFAUpdated timestamp. */
30076
+ public timestamp: (number|Long);
30077
+
30078
+ /** OrganizationMFAUpdated organization. */
30079
+ public organization?: (b2b.IOrganization|null);
30080
+
30081
+ /**
30082
+ * Creates a new OrganizationMFAUpdated instance using the specified properties.
30083
+ * @param [properties] Properties to set
30084
+ * @returns OrganizationMFAUpdated instance
30085
+ */
30086
+ public static create(properties?: IOrganizationMFAUpdated): OrganizationMFAUpdated;
30087
+
30088
+ /**
30089
+ * Encodes the specified OrganizationMFAUpdated message. Does not implicitly {@link OrganizationMFAUpdated.verify|verify} messages.
30090
+ * @param message OrganizationMFAUpdated message or plain object to encode
30091
+ * @param [writer] Writer to encode to
30092
+ * @returns Writer
30093
+ */
30094
+ public static encode(message: IOrganizationMFAUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
30095
+
30096
+ /**
30097
+ * Encodes the specified OrganizationMFAUpdated message, length delimited. Does not implicitly {@link OrganizationMFAUpdated.verify|verify} messages.
30098
+ * @param message OrganizationMFAUpdated message or plain object to encode
30099
+ * @param [writer] Writer to encode to
30100
+ * @returns Writer
30101
+ */
30102
+ public static encodeDelimited(message: IOrganizationMFAUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
30103
+
30104
+ /**
30105
+ * Decodes an OrganizationMFAUpdated message from the specified reader or buffer.
30106
+ * @param reader Reader or buffer to decode from
30107
+ * @param [length] Message length if known beforehand
30108
+ * @returns OrganizationMFAUpdated
30109
+ * @throws {Error} If the payload is not a reader or valid buffer
30110
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
30111
+ */
30112
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): OrganizationMFAUpdated;
30113
+
30114
+ /**
30115
+ * Decodes an OrganizationMFAUpdated message from the specified reader or buffer, length delimited.
30116
+ * @param reader Reader or buffer to decode from
30117
+ * @returns OrganizationMFAUpdated
30118
+ * @throws {Error} If the payload is not a reader or valid buffer
30119
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
30120
+ */
30121
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): OrganizationMFAUpdated;
30122
+
30123
+ /**
30124
+ * Verifies an OrganizationMFAUpdated message.
30125
+ * @param message Plain object to verify
30126
+ * @returns `null` if valid, otherwise the reason why it is not
30127
+ */
30128
+ public static verify(message: { [k: string]: any }): (string|null);
30129
+
30130
+ /**
30131
+ * Creates an OrganizationMFAUpdated message from a plain object. Also converts values to their respective internal types.
30132
+ * @param object Plain object
30133
+ * @returns OrganizationMFAUpdated
30134
+ */
30135
+ public static fromObject(object: { [k: string]: any }): OrganizationMFAUpdated;
30136
+
30137
+ /**
30138
+ * Creates a plain object from an OrganizationMFAUpdated message. Also converts values to other types if specified.
30139
+ * @param message OrganizationMFAUpdated
30140
+ * @param [options] Conversion options
30141
+ * @returns Plain object
30142
+ */
30143
+ public static toObject(message: OrganizationMFAUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
30144
+
30145
+ /**
30146
+ * Converts this OrganizationMFAUpdated to JSON.
30147
+ * @returns JSON object
30148
+ */
30149
+ public toJSON(): { [k: string]: any };
30150
+ }
30151
+
30050
30152
  /** Properties of an OrganizationSubscriptionCreated. */
30051
30153
  export interface IOrganizationSubscriptionCreated {
30052
30154
 
package/lib/index.js CHANGED
@@ -23841,6 +23841,7 @@ $root.b2b = (function() {
23841
23841
  * @property {b2b.OrgRestrictBy|null} [restrictBy] Organization restrictBy
23842
23842
  * @property {string|null} [gingerId] Organization gingerId
23843
23843
  * @property {string|null} [headspaceHealthId] Organization headspaceHealthId
23844
+ * @property {boolean|null} [mfaEnabled] Organization mfaEnabled
23844
23845
  */
23845
23846
 
23846
23847
  /**
@@ -23946,6 +23947,14 @@ $root.b2b = (function() {
23946
23947
  */
23947
23948
  Organization.prototype.headspaceHealthId = "";
23948
23949
 
23950
+ /**
23951
+ * Organization mfaEnabled.
23952
+ * @member {boolean} mfaEnabled
23953
+ * @memberof b2b.Organization
23954
+ * @instance
23955
+ */
23956
+ Organization.prototype.mfaEnabled = false;
23957
+
23949
23958
  /**
23950
23959
  * Creates a new Organization instance using the specified properties.
23951
23960
  * @function create
@@ -23992,6 +24001,8 @@ $root.b2b = (function() {
23992
24001
  writer.uint32(/* id 10, wireType 2 =*/82).string(message.gingerId);
23993
24002
  if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
23994
24003
  writer.uint32(/* id 11, wireType 2 =*/90).string(message.headspaceHealthId);
24004
+ if (message.mfaEnabled != null && message.hasOwnProperty("mfaEnabled"))
24005
+ writer.uint32(/* id 12, wireType 0 =*/96).bool(message.mfaEnabled);
23995
24006
  return writer;
23996
24007
  };
23997
24008
 
@@ -24059,6 +24070,9 @@ $root.b2b = (function() {
24059
24070
  case 11:
24060
24071
  message.headspaceHealthId = reader.string();
24061
24072
  break;
24073
+ case 12:
24074
+ message.mfaEnabled = reader.bool();
24075
+ break;
24062
24076
  default:
24063
24077
  reader.skipType(tag & 7);
24064
24078
  break;
@@ -24150,6 +24164,9 @@ $root.b2b = (function() {
24150
24164
  if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
24151
24165
  if (!$util.isString(message.headspaceHealthId))
24152
24166
  return "headspaceHealthId: string expected";
24167
+ if (message.mfaEnabled != null && message.hasOwnProperty("mfaEnabled"))
24168
+ if (typeof message.mfaEnabled !== "boolean")
24169
+ return "mfaEnabled: boolean expected";
24153
24170
  return null;
24154
24171
  };
24155
24172
 
@@ -24255,6 +24272,8 @@ $root.b2b = (function() {
24255
24272
  message.gingerId = String(object.gingerId);
24256
24273
  if (object.headspaceHealthId != null)
24257
24274
  message.headspaceHealthId = String(object.headspaceHealthId);
24275
+ if (object.mfaEnabled != null)
24276
+ message.mfaEnabled = Boolean(object.mfaEnabled);
24258
24277
  return message;
24259
24278
  };
24260
24279
 
@@ -24283,6 +24302,7 @@ $root.b2b = (function() {
24283
24302
  object.restrictBy = options.enums === String ? "ORG_RESTRICT_BY_UNKNOWN" : 0;
24284
24303
  object.gingerId = "";
24285
24304
  object.headspaceHealthId = "";
24305
+ object.mfaEnabled = false;
24286
24306
  }
24287
24307
  if (message.orgId != null && message.hasOwnProperty("orgId"))
24288
24308
  object.orgId = message.orgId;
@@ -24306,6 +24326,8 @@ $root.b2b = (function() {
24306
24326
  object.gingerId = message.gingerId;
24307
24327
  if (message.headspaceHealthId != null && message.hasOwnProperty("headspaceHealthId"))
24308
24328
  object.headspaceHealthId = message.headspaceHealthId;
24329
+ if (message.mfaEnabled != null && message.hasOwnProperty("mfaEnabled"))
24330
+ object.mfaEnabled = message.mfaEnabled;
24309
24331
  return object;
24310
24332
  };
24311
24333
 
@@ -83465,6 +83487,235 @@ $root.OrganizationUpdated = (function() {
83465
83487
  return OrganizationUpdated;
83466
83488
  })();
83467
83489
 
83490
+ $root.OrganizationMFAUpdated = (function() {
83491
+
83492
+ /**
83493
+ * Properties of an OrganizationMFAUpdated.
83494
+ * @exports IOrganizationMFAUpdated
83495
+ * @interface IOrganizationMFAUpdated
83496
+ * @property {number|Long|null} [timestamp] OrganizationMFAUpdated timestamp
83497
+ * @property {b2b.IOrganization|null} [organization] OrganizationMFAUpdated organization
83498
+ */
83499
+
83500
+ /**
83501
+ * Constructs a new OrganizationMFAUpdated.
83502
+ * @exports OrganizationMFAUpdated
83503
+ * @classdesc Represents an OrganizationMFAUpdated.
83504
+ * @implements IOrganizationMFAUpdated
83505
+ * @constructor
83506
+ * @param {IOrganizationMFAUpdated=} [properties] Properties to set
83507
+ */
83508
+ function OrganizationMFAUpdated(properties) {
83509
+ if (properties)
83510
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
83511
+ if (properties[keys[i]] != null)
83512
+ this[keys[i]] = properties[keys[i]];
83513
+ }
83514
+
83515
+ /**
83516
+ * OrganizationMFAUpdated timestamp.
83517
+ * @member {number|Long} timestamp
83518
+ * @memberof OrganizationMFAUpdated
83519
+ * @instance
83520
+ */
83521
+ OrganizationMFAUpdated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
83522
+
83523
+ /**
83524
+ * OrganizationMFAUpdated organization.
83525
+ * @member {b2b.IOrganization|null|undefined} organization
83526
+ * @memberof OrganizationMFAUpdated
83527
+ * @instance
83528
+ */
83529
+ OrganizationMFAUpdated.prototype.organization = null;
83530
+
83531
+ /**
83532
+ * Creates a new OrganizationMFAUpdated instance using the specified properties.
83533
+ * @function create
83534
+ * @memberof OrganizationMFAUpdated
83535
+ * @static
83536
+ * @param {IOrganizationMFAUpdated=} [properties] Properties to set
83537
+ * @returns {OrganizationMFAUpdated} OrganizationMFAUpdated instance
83538
+ */
83539
+ OrganizationMFAUpdated.create = function create(properties) {
83540
+ return new OrganizationMFAUpdated(properties);
83541
+ };
83542
+
83543
+ /**
83544
+ * Encodes the specified OrganizationMFAUpdated message. Does not implicitly {@link OrganizationMFAUpdated.verify|verify} messages.
83545
+ * @function encode
83546
+ * @memberof OrganizationMFAUpdated
83547
+ * @static
83548
+ * @param {IOrganizationMFAUpdated} message OrganizationMFAUpdated message or plain object to encode
83549
+ * @param {$protobuf.Writer} [writer] Writer to encode to
83550
+ * @returns {$protobuf.Writer} Writer
83551
+ */
83552
+ OrganizationMFAUpdated.encode = function encode(message, writer) {
83553
+ if (!writer)
83554
+ writer = $Writer.create();
83555
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
83556
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
83557
+ if (message.organization != null && message.hasOwnProperty("organization"))
83558
+ $root.b2b.Organization.encode(message.organization, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
83559
+ return writer;
83560
+ };
83561
+
83562
+ /**
83563
+ * Encodes the specified OrganizationMFAUpdated message, length delimited. Does not implicitly {@link OrganizationMFAUpdated.verify|verify} messages.
83564
+ * @function encodeDelimited
83565
+ * @memberof OrganizationMFAUpdated
83566
+ * @static
83567
+ * @param {IOrganizationMFAUpdated} message OrganizationMFAUpdated message or plain object to encode
83568
+ * @param {$protobuf.Writer} [writer] Writer to encode to
83569
+ * @returns {$protobuf.Writer} Writer
83570
+ */
83571
+ OrganizationMFAUpdated.encodeDelimited = function encodeDelimited(message, writer) {
83572
+ return this.encode(message, writer).ldelim();
83573
+ };
83574
+
83575
+ /**
83576
+ * Decodes an OrganizationMFAUpdated message from the specified reader or buffer.
83577
+ * @function decode
83578
+ * @memberof OrganizationMFAUpdated
83579
+ * @static
83580
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
83581
+ * @param {number} [length] Message length if known beforehand
83582
+ * @returns {OrganizationMFAUpdated} OrganizationMFAUpdated
83583
+ * @throws {Error} If the payload is not a reader or valid buffer
83584
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
83585
+ */
83586
+ OrganizationMFAUpdated.decode = function decode(reader, length) {
83587
+ if (!(reader instanceof $Reader))
83588
+ reader = $Reader.create(reader);
83589
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationMFAUpdated();
83590
+ while (reader.pos < end) {
83591
+ var tag = reader.uint32();
83592
+ switch (tag >>> 3) {
83593
+ case 1:
83594
+ message.timestamp = reader.uint64();
83595
+ break;
83596
+ case 2:
83597
+ message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
83598
+ break;
83599
+ default:
83600
+ reader.skipType(tag & 7);
83601
+ break;
83602
+ }
83603
+ }
83604
+ return message;
83605
+ };
83606
+
83607
+ /**
83608
+ * Decodes an OrganizationMFAUpdated message from the specified reader or buffer, length delimited.
83609
+ * @function decodeDelimited
83610
+ * @memberof OrganizationMFAUpdated
83611
+ * @static
83612
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
83613
+ * @returns {OrganizationMFAUpdated} OrganizationMFAUpdated
83614
+ * @throws {Error} If the payload is not a reader or valid buffer
83615
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
83616
+ */
83617
+ OrganizationMFAUpdated.decodeDelimited = function decodeDelimited(reader) {
83618
+ if (!(reader instanceof $Reader))
83619
+ reader = new $Reader(reader);
83620
+ return this.decode(reader, reader.uint32());
83621
+ };
83622
+
83623
+ /**
83624
+ * Verifies an OrganizationMFAUpdated message.
83625
+ * @function verify
83626
+ * @memberof OrganizationMFAUpdated
83627
+ * @static
83628
+ * @param {Object.<string,*>} message Plain object to verify
83629
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
83630
+ */
83631
+ OrganizationMFAUpdated.verify = function verify(message) {
83632
+ if (typeof message !== "object" || message === null)
83633
+ return "object expected";
83634
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
83635
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
83636
+ return "timestamp: integer|Long expected";
83637
+ if (message.organization != null && message.hasOwnProperty("organization")) {
83638
+ var error = $root.b2b.Organization.verify(message.organization);
83639
+ if (error)
83640
+ return "organization." + error;
83641
+ }
83642
+ return null;
83643
+ };
83644
+
83645
+ /**
83646
+ * Creates an OrganizationMFAUpdated message from a plain object. Also converts values to their respective internal types.
83647
+ * @function fromObject
83648
+ * @memberof OrganizationMFAUpdated
83649
+ * @static
83650
+ * @param {Object.<string,*>} object Plain object
83651
+ * @returns {OrganizationMFAUpdated} OrganizationMFAUpdated
83652
+ */
83653
+ OrganizationMFAUpdated.fromObject = function fromObject(object) {
83654
+ if (object instanceof $root.OrganizationMFAUpdated)
83655
+ return object;
83656
+ var message = new $root.OrganizationMFAUpdated();
83657
+ if (object.timestamp != null)
83658
+ if ($util.Long)
83659
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
83660
+ else if (typeof object.timestamp === "string")
83661
+ message.timestamp = parseInt(object.timestamp, 10);
83662
+ else if (typeof object.timestamp === "number")
83663
+ message.timestamp = object.timestamp;
83664
+ else if (typeof object.timestamp === "object")
83665
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
83666
+ if (object.organization != null) {
83667
+ if (typeof object.organization !== "object")
83668
+ throw TypeError(".OrganizationMFAUpdated.organization: object expected");
83669
+ message.organization = $root.b2b.Organization.fromObject(object.organization);
83670
+ }
83671
+ return message;
83672
+ };
83673
+
83674
+ /**
83675
+ * Creates a plain object from an OrganizationMFAUpdated message. Also converts values to other types if specified.
83676
+ * @function toObject
83677
+ * @memberof OrganizationMFAUpdated
83678
+ * @static
83679
+ * @param {OrganizationMFAUpdated} message OrganizationMFAUpdated
83680
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
83681
+ * @returns {Object.<string,*>} Plain object
83682
+ */
83683
+ OrganizationMFAUpdated.toObject = function toObject(message, options) {
83684
+ if (!options)
83685
+ options = {};
83686
+ var object = {};
83687
+ if (options.defaults) {
83688
+ if ($util.Long) {
83689
+ var long = new $util.Long(0, 0, true);
83690
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
83691
+ } else
83692
+ object.timestamp = options.longs === String ? "0" : 0;
83693
+ object.organization = null;
83694
+ }
83695
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
83696
+ if (typeof message.timestamp === "number")
83697
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
83698
+ else
83699
+ 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;
83700
+ if (message.organization != null && message.hasOwnProperty("organization"))
83701
+ object.organization = $root.b2b.Organization.toObject(message.organization, options);
83702
+ return object;
83703
+ };
83704
+
83705
+ /**
83706
+ * Converts this OrganizationMFAUpdated to JSON.
83707
+ * @function toJSON
83708
+ * @memberof OrganizationMFAUpdated
83709
+ * @instance
83710
+ * @returns {Object.<string,*>} JSON object
83711
+ */
83712
+ OrganizationMFAUpdated.prototype.toJSON = function toJSON() {
83713
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
83714
+ };
83715
+
83716
+ return OrganizationMFAUpdated;
83717
+ })();
83718
+
83468
83719
  $root.OrganizationSubscriptionCreated = (function() {
83469
83720
 
83470
83721
  /**
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.362.0"
19
+ "version": "1.363.0"
20
20
  }