@headspace/protos-events 1.227.0 → 1.229.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
@@ -3713,7 +3713,8 @@ export namespace b2b {
3713
3713
  REMOVAL_REASON_MANUAL = 2,
3714
3714
  REMOVAL_REASON_EXPIRATION = 3,
3715
3715
  REMOVAL_REASON_MERGE_ORGS = 4,
3716
- REMOVAL_REASON_ROLLOVER = 5
3716
+ REMOVAL_REASON_ROLLOVER = 5,
3717
+ REMOVAL_REASON_SSO_DEPROVISION = 6
3717
3718
  }
3718
3719
 
3719
3720
  /** OrgMemberPlan enum. */
@@ -5006,6 +5007,124 @@ export namespace userdomain {
5006
5007
  }
5007
5008
  }
5008
5009
 
5010
+ /** Namespace scim. */
5011
+ export namespace scim {
5012
+
5013
+ /** Properties of a SCIMUser. */
5014
+ interface ISCIMUser {
5015
+
5016
+ /** SCIMUser orgId */
5017
+ orgId?: (number|null);
5018
+
5019
+ /** SCIMUser firstName */
5020
+ firstName?: (string|null);
5021
+
5022
+ /** SCIMUser lastName */
5023
+ lastName?: (string|null);
5024
+
5025
+ /** SCIMUser workEmail */
5026
+ workEmail?: (string|null);
5027
+
5028
+ /** SCIMUser isActive */
5029
+ isActive?: (boolean|null);
5030
+ }
5031
+
5032
+ /** Represents a SCIMUser. */
5033
+ class SCIMUser implements ISCIMUser {
5034
+
5035
+ /**
5036
+ * Constructs a new SCIMUser.
5037
+ * @param [properties] Properties to set
5038
+ */
5039
+ constructor(properties?: scim.ISCIMUser);
5040
+
5041
+ /** SCIMUser orgId. */
5042
+ public orgId: number;
5043
+
5044
+ /** SCIMUser firstName. */
5045
+ public firstName: string;
5046
+
5047
+ /** SCIMUser lastName. */
5048
+ public lastName: string;
5049
+
5050
+ /** SCIMUser workEmail. */
5051
+ public workEmail: string;
5052
+
5053
+ /** SCIMUser isActive. */
5054
+ public isActive: boolean;
5055
+
5056
+ /**
5057
+ * Creates a new SCIMUser instance using the specified properties.
5058
+ * @param [properties] Properties to set
5059
+ * @returns SCIMUser instance
5060
+ */
5061
+ public static create(properties?: scim.ISCIMUser): scim.SCIMUser;
5062
+
5063
+ /**
5064
+ * Encodes the specified SCIMUser message. Does not implicitly {@link scim.SCIMUser.verify|verify} messages.
5065
+ * @param message SCIMUser message or plain object to encode
5066
+ * @param [writer] Writer to encode to
5067
+ * @returns Writer
5068
+ */
5069
+ public static encode(message: scim.ISCIMUser, writer?: $protobuf.Writer): $protobuf.Writer;
5070
+
5071
+ /**
5072
+ * Encodes the specified SCIMUser message, length delimited. Does not implicitly {@link scim.SCIMUser.verify|verify} messages.
5073
+ * @param message SCIMUser message or plain object to encode
5074
+ * @param [writer] Writer to encode to
5075
+ * @returns Writer
5076
+ */
5077
+ public static encodeDelimited(message: scim.ISCIMUser, writer?: $protobuf.Writer): $protobuf.Writer;
5078
+
5079
+ /**
5080
+ * Decodes a SCIMUser message from the specified reader or buffer.
5081
+ * @param reader Reader or buffer to decode from
5082
+ * @param [length] Message length if known beforehand
5083
+ * @returns SCIMUser
5084
+ * @throws {Error} If the payload is not a reader or valid buffer
5085
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5086
+ */
5087
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): scim.SCIMUser;
5088
+
5089
+ /**
5090
+ * Decodes a SCIMUser message from the specified reader or buffer, length delimited.
5091
+ * @param reader Reader or buffer to decode from
5092
+ * @returns SCIMUser
5093
+ * @throws {Error} If the payload is not a reader or valid buffer
5094
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5095
+ */
5096
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): scim.SCIMUser;
5097
+
5098
+ /**
5099
+ * Verifies a SCIMUser message.
5100
+ * @param message Plain object to verify
5101
+ * @returns `null` if valid, otherwise the reason why it is not
5102
+ */
5103
+ public static verify(message: { [k: string]: any }): (string|null);
5104
+
5105
+ /**
5106
+ * Creates a SCIMUser message from a plain object. Also converts values to their respective internal types.
5107
+ * @param object Plain object
5108
+ * @returns SCIMUser
5109
+ */
5110
+ public static fromObject(object: { [k: string]: any }): scim.SCIMUser;
5111
+
5112
+ /**
5113
+ * Creates a plain object from a SCIMUser message. Also converts values to other types if specified.
5114
+ * @param message SCIMUser
5115
+ * @param [options] Conversion options
5116
+ * @returns Plain object
5117
+ */
5118
+ public static toObject(message: scim.SCIMUser, options?: $protobuf.IConversionOptions): { [k: string]: any };
5119
+
5120
+ /**
5121
+ * Converts this SCIMUser to JSON.
5122
+ * @returns JSON object
5123
+ */
5124
+ public toJSON(): { [k: string]: any };
5125
+ }
5126
+ }
5127
+
5009
5128
  /** Properties of a SuccessfulUserLogin. */
5010
5129
  export interface ISuccessfulUserLogin {
5011
5130
 
@@ -16626,6 +16745,102 @@ export class SleepcastDeleted implements ISleepcastDeleted {
16626
16745
  public toJSON(): { [k: string]: any };
16627
16746
  }
16628
16747
 
16748
+ /** Properties of a SCIMUserUpdated. */
16749
+ export interface ISCIMUserUpdated {
16750
+
16751
+ /** SCIMUserUpdated timestamp */
16752
+ timestamp?: (number|Long|null);
16753
+
16754
+ /** SCIMUserUpdated scimUser */
16755
+ scimUser?: (scim.ISCIMUser|null);
16756
+ }
16757
+
16758
+ /** Represents a SCIMUserUpdated. */
16759
+ export class SCIMUserUpdated implements ISCIMUserUpdated {
16760
+
16761
+ /**
16762
+ * Constructs a new SCIMUserUpdated.
16763
+ * @param [properties] Properties to set
16764
+ */
16765
+ constructor(properties?: ISCIMUserUpdated);
16766
+
16767
+ /** SCIMUserUpdated timestamp. */
16768
+ public timestamp: (number|Long);
16769
+
16770
+ /** SCIMUserUpdated scimUser. */
16771
+ public scimUser?: (scim.ISCIMUser|null);
16772
+
16773
+ /**
16774
+ * Creates a new SCIMUserUpdated instance using the specified properties.
16775
+ * @param [properties] Properties to set
16776
+ * @returns SCIMUserUpdated instance
16777
+ */
16778
+ public static create(properties?: ISCIMUserUpdated): SCIMUserUpdated;
16779
+
16780
+ /**
16781
+ * Encodes the specified SCIMUserUpdated message. Does not implicitly {@link SCIMUserUpdated.verify|verify} messages.
16782
+ * @param message SCIMUserUpdated message or plain object to encode
16783
+ * @param [writer] Writer to encode to
16784
+ * @returns Writer
16785
+ */
16786
+ public static encode(message: ISCIMUserUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
16787
+
16788
+ /**
16789
+ * Encodes the specified SCIMUserUpdated message, length delimited. Does not implicitly {@link SCIMUserUpdated.verify|verify} messages.
16790
+ * @param message SCIMUserUpdated message or plain object to encode
16791
+ * @param [writer] Writer to encode to
16792
+ * @returns Writer
16793
+ */
16794
+ public static encodeDelimited(message: ISCIMUserUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
16795
+
16796
+ /**
16797
+ * Decodes a SCIMUserUpdated message from the specified reader or buffer.
16798
+ * @param reader Reader or buffer to decode from
16799
+ * @param [length] Message length if known beforehand
16800
+ * @returns SCIMUserUpdated
16801
+ * @throws {Error} If the payload is not a reader or valid buffer
16802
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16803
+ */
16804
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SCIMUserUpdated;
16805
+
16806
+ /**
16807
+ * Decodes a SCIMUserUpdated message from the specified reader or buffer, length delimited.
16808
+ * @param reader Reader or buffer to decode from
16809
+ * @returns SCIMUserUpdated
16810
+ * @throws {Error} If the payload is not a reader or valid buffer
16811
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16812
+ */
16813
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SCIMUserUpdated;
16814
+
16815
+ /**
16816
+ * Verifies a SCIMUserUpdated message.
16817
+ * @param message Plain object to verify
16818
+ * @returns `null` if valid, otherwise the reason why it is not
16819
+ */
16820
+ public static verify(message: { [k: string]: any }): (string|null);
16821
+
16822
+ /**
16823
+ * Creates a SCIMUserUpdated message from a plain object. Also converts values to their respective internal types.
16824
+ * @param object Plain object
16825
+ * @returns SCIMUserUpdated
16826
+ */
16827
+ public static fromObject(object: { [k: string]: any }): SCIMUserUpdated;
16828
+
16829
+ /**
16830
+ * Creates a plain object from a SCIMUserUpdated message. Also converts values to other types if specified.
16831
+ * @param message SCIMUserUpdated
16832
+ * @param [options] Conversion options
16833
+ * @returns Plain object
16834
+ */
16835
+ public static toObject(message: SCIMUserUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
16836
+
16837
+ /**
16838
+ * Converts this SCIMUserUpdated to JSON.
16839
+ * @returns JSON object
16840
+ */
16841
+ public toJSON(): { [k: string]: any };
16842
+ }
16843
+
16629
16844
  /** Properties of an IosSubscriptionCreated. */
16630
16845
  export interface IIosSubscriptionCreated {
16631
16846
 
package/lib/index.js CHANGED
@@ -8631,6 +8631,7 @@ $root.b2b = (function() {
8631
8631
  * @property {number} REMOVAL_REASON_EXPIRATION=3 REMOVAL_REASON_EXPIRATION value
8632
8632
  * @property {number} REMOVAL_REASON_MERGE_ORGS=4 REMOVAL_REASON_MERGE_ORGS value
8633
8633
  * @property {number} REMOVAL_REASON_ROLLOVER=5 REMOVAL_REASON_ROLLOVER value
8634
+ * @property {number} REMOVAL_REASON_SSO_DEPROVISION=6 REMOVAL_REASON_SSO_DEPROVISION value
8634
8635
  */
8635
8636
  b2b.OrgMemberRemovalReason = (function() {
8636
8637
  var valuesById = {}, values = Object.create(valuesById);
@@ -8640,6 +8641,7 @@ $root.b2b = (function() {
8640
8641
  values[valuesById[3] = "REMOVAL_REASON_EXPIRATION"] = 3;
8641
8642
  values[valuesById[4] = "REMOVAL_REASON_MERGE_ORGS"] = 4;
8642
8643
  values[valuesById[5] = "REMOVAL_REASON_ROLLOVER"] = 5;
8644
+ values[valuesById[6] = "REMOVAL_REASON_SSO_DEPROVISION"] = 6;
8643
8645
  return values;
8644
8646
  })();
8645
8647
 
@@ -12179,6 +12181,294 @@ $root.userdomain = (function() {
12179
12181
  return userdomain;
12180
12182
  })();
12181
12183
 
12184
+ $root.scim = (function() {
12185
+
12186
+ /**
12187
+ * Namespace scim.
12188
+ * @exports scim
12189
+ * @namespace
12190
+ */
12191
+ var scim = {};
12192
+
12193
+ scim.SCIMUser = (function() {
12194
+
12195
+ /**
12196
+ * Properties of a SCIMUser.
12197
+ * @memberof scim
12198
+ * @interface ISCIMUser
12199
+ * @property {number|null} [orgId] SCIMUser orgId
12200
+ * @property {string|null} [firstName] SCIMUser firstName
12201
+ * @property {string|null} [lastName] SCIMUser lastName
12202
+ * @property {string|null} [workEmail] SCIMUser workEmail
12203
+ * @property {boolean|null} [isActive] SCIMUser isActive
12204
+ */
12205
+
12206
+ /**
12207
+ * Constructs a new SCIMUser.
12208
+ * @memberof scim
12209
+ * @classdesc Represents a SCIMUser.
12210
+ * @implements ISCIMUser
12211
+ * @constructor
12212
+ * @param {scim.ISCIMUser=} [properties] Properties to set
12213
+ */
12214
+ function SCIMUser(properties) {
12215
+ if (properties)
12216
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
12217
+ if (properties[keys[i]] != null)
12218
+ this[keys[i]] = properties[keys[i]];
12219
+ }
12220
+
12221
+ /**
12222
+ * SCIMUser orgId.
12223
+ * @member {number} orgId
12224
+ * @memberof scim.SCIMUser
12225
+ * @instance
12226
+ */
12227
+ SCIMUser.prototype.orgId = 0;
12228
+
12229
+ /**
12230
+ * SCIMUser firstName.
12231
+ * @member {string} firstName
12232
+ * @memberof scim.SCIMUser
12233
+ * @instance
12234
+ */
12235
+ SCIMUser.prototype.firstName = "";
12236
+
12237
+ /**
12238
+ * SCIMUser lastName.
12239
+ * @member {string} lastName
12240
+ * @memberof scim.SCIMUser
12241
+ * @instance
12242
+ */
12243
+ SCIMUser.prototype.lastName = "";
12244
+
12245
+ /**
12246
+ * SCIMUser workEmail.
12247
+ * @member {string} workEmail
12248
+ * @memberof scim.SCIMUser
12249
+ * @instance
12250
+ */
12251
+ SCIMUser.prototype.workEmail = "";
12252
+
12253
+ /**
12254
+ * SCIMUser isActive.
12255
+ * @member {boolean} isActive
12256
+ * @memberof scim.SCIMUser
12257
+ * @instance
12258
+ */
12259
+ SCIMUser.prototype.isActive = false;
12260
+
12261
+ /**
12262
+ * Creates a new SCIMUser instance using the specified properties.
12263
+ * @function create
12264
+ * @memberof scim.SCIMUser
12265
+ * @static
12266
+ * @param {scim.ISCIMUser=} [properties] Properties to set
12267
+ * @returns {scim.SCIMUser} SCIMUser instance
12268
+ */
12269
+ SCIMUser.create = function create(properties) {
12270
+ return new SCIMUser(properties);
12271
+ };
12272
+
12273
+ /**
12274
+ * Encodes the specified SCIMUser message. Does not implicitly {@link scim.SCIMUser.verify|verify} messages.
12275
+ * @function encode
12276
+ * @memberof scim.SCIMUser
12277
+ * @static
12278
+ * @param {scim.ISCIMUser} message SCIMUser message or plain object to encode
12279
+ * @param {$protobuf.Writer} [writer] Writer to encode to
12280
+ * @returns {$protobuf.Writer} Writer
12281
+ */
12282
+ SCIMUser.encode = function encode(message, writer) {
12283
+ if (!writer)
12284
+ writer = $Writer.create();
12285
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
12286
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.orgId);
12287
+ if (message.firstName != null && message.hasOwnProperty("firstName"))
12288
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.firstName);
12289
+ if (message.lastName != null && message.hasOwnProperty("lastName"))
12290
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.lastName);
12291
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
12292
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.workEmail);
12293
+ if (message.isActive != null && message.hasOwnProperty("isActive"))
12294
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isActive);
12295
+ return writer;
12296
+ };
12297
+
12298
+ /**
12299
+ * Encodes the specified SCIMUser message, length delimited. Does not implicitly {@link scim.SCIMUser.verify|verify} messages.
12300
+ * @function encodeDelimited
12301
+ * @memberof scim.SCIMUser
12302
+ * @static
12303
+ * @param {scim.ISCIMUser} message SCIMUser message or plain object to encode
12304
+ * @param {$protobuf.Writer} [writer] Writer to encode to
12305
+ * @returns {$protobuf.Writer} Writer
12306
+ */
12307
+ SCIMUser.encodeDelimited = function encodeDelimited(message, writer) {
12308
+ return this.encode(message, writer).ldelim();
12309
+ };
12310
+
12311
+ /**
12312
+ * Decodes a SCIMUser message from the specified reader or buffer.
12313
+ * @function decode
12314
+ * @memberof scim.SCIMUser
12315
+ * @static
12316
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12317
+ * @param {number} [length] Message length if known beforehand
12318
+ * @returns {scim.SCIMUser} SCIMUser
12319
+ * @throws {Error} If the payload is not a reader or valid buffer
12320
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12321
+ */
12322
+ SCIMUser.decode = function decode(reader, length) {
12323
+ if (!(reader instanceof $Reader))
12324
+ reader = $Reader.create(reader);
12325
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.scim.SCIMUser();
12326
+ while (reader.pos < end) {
12327
+ var tag = reader.uint32();
12328
+ switch (tag >>> 3) {
12329
+ case 1:
12330
+ message.orgId = reader.uint32();
12331
+ break;
12332
+ case 2:
12333
+ message.firstName = reader.string();
12334
+ break;
12335
+ case 3:
12336
+ message.lastName = reader.string();
12337
+ break;
12338
+ case 4:
12339
+ message.workEmail = reader.string();
12340
+ break;
12341
+ case 5:
12342
+ message.isActive = reader.bool();
12343
+ break;
12344
+ default:
12345
+ reader.skipType(tag & 7);
12346
+ break;
12347
+ }
12348
+ }
12349
+ return message;
12350
+ };
12351
+
12352
+ /**
12353
+ * Decodes a SCIMUser message from the specified reader or buffer, length delimited.
12354
+ * @function decodeDelimited
12355
+ * @memberof scim.SCIMUser
12356
+ * @static
12357
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12358
+ * @returns {scim.SCIMUser} SCIMUser
12359
+ * @throws {Error} If the payload is not a reader or valid buffer
12360
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12361
+ */
12362
+ SCIMUser.decodeDelimited = function decodeDelimited(reader) {
12363
+ if (!(reader instanceof $Reader))
12364
+ reader = new $Reader(reader);
12365
+ return this.decode(reader, reader.uint32());
12366
+ };
12367
+
12368
+ /**
12369
+ * Verifies a SCIMUser message.
12370
+ * @function verify
12371
+ * @memberof scim.SCIMUser
12372
+ * @static
12373
+ * @param {Object.<string,*>} message Plain object to verify
12374
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
12375
+ */
12376
+ SCIMUser.verify = function verify(message) {
12377
+ if (typeof message !== "object" || message === null)
12378
+ return "object expected";
12379
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
12380
+ if (!$util.isInteger(message.orgId))
12381
+ return "orgId: integer expected";
12382
+ if (message.firstName != null && message.hasOwnProperty("firstName"))
12383
+ if (!$util.isString(message.firstName))
12384
+ return "firstName: string expected";
12385
+ if (message.lastName != null && message.hasOwnProperty("lastName"))
12386
+ if (!$util.isString(message.lastName))
12387
+ return "lastName: string expected";
12388
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
12389
+ if (!$util.isString(message.workEmail))
12390
+ return "workEmail: string expected";
12391
+ if (message.isActive != null && message.hasOwnProperty("isActive"))
12392
+ if (typeof message.isActive !== "boolean")
12393
+ return "isActive: boolean expected";
12394
+ return null;
12395
+ };
12396
+
12397
+ /**
12398
+ * Creates a SCIMUser message from a plain object. Also converts values to their respective internal types.
12399
+ * @function fromObject
12400
+ * @memberof scim.SCIMUser
12401
+ * @static
12402
+ * @param {Object.<string,*>} object Plain object
12403
+ * @returns {scim.SCIMUser} SCIMUser
12404
+ */
12405
+ SCIMUser.fromObject = function fromObject(object) {
12406
+ if (object instanceof $root.scim.SCIMUser)
12407
+ return object;
12408
+ var message = new $root.scim.SCIMUser();
12409
+ if (object.orgId != null)
12410
+ message.orgId = object.orgId >>> 0;
12411
+ if (object.firstName != null)
12412
+ message.firstName = String(object.firstName);
12413
+ if (object.lastName != null)
12414
+ message.lastName = String(object.lastName);
12415
+ if (object.workEmail != null)
12416
+ message.workEmail = String(object.workEmail);
12417
+ if (object.isActive != null)
12418
+ message.isActive = Boolean(object.isActive);
12419
+ return message;
12420
+ };
12421
+
12422
+ /**
12423
+ * Creates a plain object from a SCIMUser message. Also converts values to other types if specified.
12424
+ * @function toObject
12425
+ * @memberof scim.SCIMUser
12426
+ * @static
12427
+ * @param {scim.SCIMUser} message SCIMUser
12428
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
12429
+ * @returns {Object.<string,*>} Plain object
12430
+ */
12431
+ SCIMUser.toObject = function toObject(message, options) {
12432
+ if (!options)
12433
+ options = {};
12434
+ var object = {};
12435
+ if (options.defaults) {
12436
+ object.orgId = 0;
12437
+ object.firstName = "";
12438
+ object.lastName = "";
12439
+ object.workEmail = "";
12440
+ object.isActive = false;
12441
+ }
12442
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
12443
+ object.orgId = message.orgId;
12444
+ if (message.firstName != null && message.hasOwnProperty("firstName"))
12445
+ object.firstName = message.firstName;
12446
+ if (message.lastName != null && message.hasOwnProperty("lastName"))
12447
+ object.lastName = message.lastName;
12448
+ if (message.workEmail != null && message.hasOwnProperty("workEmail"))
12449
+ object.workEmail = message.workEmail;
12450
+ if (message.isActive != null && message.hasOwnProperty("isActive"))
12451
+ object.isActive = message.isActive;
12452
+ return object;
12453
+ };
12454
+
12455
+ /**
12456
+ * Converts this SCIMUser to JSON.
12457
+ * @function toJSON
12458
+ * @memberof scim.SCIMUser
12459
+ * @instance
12460
+ * @returns {Object.<string,*>} JSON object
12461
+ */
12462
+ SCIMUser.prototype.toJSON = function toJSON() {
12463
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12464
+ };
12465
+
12466
+ return SCIMUser;
12467
+ })();
12468
+
12469
+ return scim;
12470
+ })();
12471
+
12182
12472
  $root.SuccessfulUserLogin = (function() {
12183
12473
 
12184
12474
  /**
@@ -46333,6 +46623,235 @@ $root.SleepcastDeleted = (function() {
46333
46623
  return SleepcastDeleted;
46334
46624
  })();
46335
46625
 
46626
+ $root.SCIMUserUpdated = (function() {
46627
+
46628
+ /**
46629
+ * Properties of a SCIMUserUpdated.
46630
+ * @exports ISCIMUserUpdated
46631
+ * @interface ISCIMUserUpdated
46632
+ * @property {number|Long|null} [timestamp] SCIMUserUpdated timestamp
46633
+ * @property {scim.ISCIMUser|null} [scimUser] SCIMUserUpdated scimUser
46634
+ */
46635
+
46636
+ /**
46637
+ * Constructs a new SCIMUserUpdated.
46638
+ * @exports SCIMUserUpdated
46639
+ * @classdesc Represents a SCIMUserUpdated.
46640
+ * @implements ISCIMUserUpdated
46641
+ * @constructor
46642
+ * @param {ISCIMUserUpdated=} [properties] Properties to set
46643
+ */
46644
+ function SCIMUserUpdated(properties) {
46645
+ if (properties)
46646
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
46647
+ if (properties[keys[i]] != null)
46648
+ this[keys[i]] = properties[keys[i]];
46649
+ }
46650
+
46651
+ /**
46652
+ * SCIMUserUpdated timestamp.
46653
+ * @member {number|Long} timestamp
46654
+ * @memberof SCIMUserUpdated
46655
+ * @instance
46656
+ */
46657
+ SCIMUserUpdated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
46658
+
46659
+ /**
46660
+ * SCIMUserUpdated scimUser.
46661
+ * @member {scim.ISCIMUser|null|undefined} scimUser
46662
+ * @memberof SCIMUserUpdated
46663
+ * @instance
46664
+ */
46665
+ SCIMUserUpdated.prototype.scimUser = null;
46666
+
46667
+ /**
46668
+ * Creates a new SCIMUserUpdated instance using the specified properties.
46669
+ * @function create
46670
+ * @memberof SCIMUserUpdated
46671
+ * @static
46672
+ * @param {ISCIMUserUpdated=} [properties] Properties to set
46673
+ * @returns {SCIMUserUpdated} SCIMUserUpdated instance
46674
+ */
46675
+ SCIMUserUpdated.create = function create(properties) {
46676
+ return new SCIMUserUpdated(properties);
46677
+ };
46678
+
46679
+ /**
46680
+ * Encodes the specified SCIMUserUpdated message. Does not implicitly {@link SCIMUserUpdated.verify|verify} messages.
46681
+ * @function encode
46682
+ * @memberof SCIMUserUpdated
46683
+ * @static
46684
+ * @param {ISCIMUserUpdated} message SCIMUserUpdated message or plain object to encode
46685
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46686
+ * @returns {$protobuf.Writer} Writer
46687
+ */
46688
+ SCIMUserUpdated.encode = function encode(message, writer) {
46689
+ if (!writer)
46690
+ writer = $Writer.create();
46691
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
46692
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
46693
+ if (message.scimUser != null && message.hasOwnProperty("scimUser"))
46694
+ $root.scim.SCIMUser.encode(message.scimUser, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
46695
+ return writer;
46696
+ };
46697
+
46698
+ /**
46699
+ * Encodes the specified SCIMUserUpdated message, length delimited. Does not implicitly {@link SCIMUserUpdated.verify|verify} messages.
46700
+ * @function encodeDelimited
46701
+ * @memberof SCIMUserUpdated
46702
+ * @static
46703
+ * @param {ISCIMUserUpdated} message SCIMUserUpdated message or plain object to encode
46704
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46705
+ * @returns {$protobuf.Writer} Writer
46706
+ */
46707
+ SCIMUserUpdated.encodeDelimited = function encodeDelimited(message, writer) {
46708
+ return this.encode(message, writer).ldelim();
46709
+ };
46710
+
46711
+ /**
46712
+ * Decodes a SCIMUserUpdated message from the specified reader or buffer.
46713
+ * @function decode
46714
+ * @memberof SCIMUserUpdated
46715
+ * @static
46716
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46717
+ * @param {number} [length] Message length if known beforehand
46718
+ * @returns {SCIMUserUpdated} SCIMUserUpdated
46719
+ * @throws {Error} If the payload is not a reader or valid buffer
46720
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46721
+ */
46722
+ SCIMUserUpdated.decode = function decode(reader, length) {
46723
+ if (!(reader instanceof $Reader))
46724
+ reader = $Reader.create(reader);
46725
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SCIMUserUpdated();
46726
+ while (reader.pos < end) {
46727
+ var tag = reader.uint32();
46728
+ switch (tag >>> 3) {
46729
+ case 1:
46730
+ message.timestamp = reader.uint64();
46731
+ break;
46732
+ case 2:
46733
+ message.scimUser = $root.scim.SCIMUser.decode(reader, reader.uint32());
46734
+ break;
46735
+ default:
46736
+ reader.skipType(tag & 7);
46737
+ break;
46738
+ }
46739
+ }
46740
+ return message;
46741
+ };
46742
+
46743
+ /**
46744
+ * Decodes a SCIMUserUpdated message from the specified reader or buffer, length delimited.
46745
+ * @function decodeDelimited
46746
+ * @memberof SCIMUserUpdated
46747
+ * @static
46748
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46749
+ * @returns {SCIMUserUpdated} SCIMUserUpdated
46750
+ * @throws {Error} If the payload is not a reader or valid buffer
46751
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46752
+ */
46753
+ SCIMUserUpdated.decodeDelimited = function decodeDelimited(reader) {
46754
+ if (!(reader instanceof $Reader))
46755
+ reader = new $Reader(reader);
46756
+ return this.decode(reader, reader.uint32());
46757
+ };
46758
+
46759
+ /**
46760
+ * Verifies a SCIMUserUpdated message.
46761
+ * @function verify
46762
+ * @memberof SCIMUserUpdated
46763
+ * @static
46764
+ * @param {Object.<string,*>} message Plain object to verify
46765
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
46766
+ */
46767
+ SCIMUserUpdated.verify = function verify(message) {
46768
+ if (typeof message !== "object" || message === null)
46769
+ return "object expected";
46770
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
46771
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
46772
+ return "timestamp: integer|Long expected";
46773
+ if (message.scimUser != null && message.hasOwnProperty("scimUser")) {
46774
+ var error = $root.scim.SCIMUser.verify(message.scimUser);
46775
+ if (error)
46776
+ return "scimUser." + error;
46777
+ }
46778
+ return null;
46779
+ };
46780
+
46781
+ /**
46782
+ * Creates a SCIMUserUpdated message from a plain object. Also converts values to their respective internal types.
46783
+ * @function fromObject
46784
+ * @memberof SCIMUserUpdated
46785
+ * @static
46786
+ * @param {Object.<string,*>} object Plain object
46787
+ * @returns {SCIMUserUpdated} SCIMUserUpdated
46788
+ */
46789
+ SCIMUserUpdated.fromObject = function fromObject(object) {
46790
+ if (object instanceof $root.SCIMUserUpdated)
46791
+ return object;
46792
+ var message = new $root.SCIMUserUpdated();
46793
+ if (object.timestamp != null)
46794
+ if ($util.Long)
46795
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
46796
+ else if (typeof object.timestamp === "string")
46797
+ message.timestamp = parseInt(object.timestamp, 10);
46798
+ else if (typeof object.timestamp === "number")
46799
+ message.timestamp = object.timestamp;
46800
+ else if (typeof object.timestamp === "object")
46801
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
46802
+ if (object.scimUser != null) {
46803
+ if (typeof object.scimUser !== "object")
46804
+ throw TypeError(".SCIMUserUpdated.scimUser: object expected");
46805
+ message.scimUser = $root.scim.SCIMUser.fromObject(object.scimUser);
46806
+ }
46807
+ return message;
46808
+ };
46809
+
46810
+ /**
46811
+ * Creates a plain object from a SCIMUserUpdated message. Also converts values to other types if specified.
46812
+ * @function toObject
46813
+ * @memberof SCIMUserUpdated
46814
+ * @static
46815
+ * @param {SCIMUserUpdated} message SCIMUserUpdated
46816
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
46817
+ * @returns {Object.<string,*>} Plain object
46818
+ */
46819
+ SCIMUserUpdated.toObject = function toObject(message, options) {
46820
+ if (!options)
46821
+ options = {};
46822
+ var object = {};
46823
+ if (options.defaults) {
46824
+ if ($util.Long) {
46825
+ var long = new $util.Long(0, 0, true);
46826
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
46827
+ } else
46828
+ object.timestamp = options.longs === String ? "0" : 0;
46829
+ object.scimUser = null;
46830
+ }
46831
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
46832
+ if (typeof message.timestamp === "number")
46833
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
46834
+ else
46835
+ 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;
46836
+ if (message.scimUser != null && message.hasOwnProperty("scimUser"))
46837
+ object.scimUser = $root.scim.SCIMUser.toObject(message.scimUser, options);
46838
+ return object;
46839
+ };
46840
+
46841
+ /**
46842
+ * Converts this SCIMUserUpdated to JSON.
46843
+ * @function toJSON
46844
+ * @memberof SCIMUserUpdated
46845
+ * @instance
46846
+ * @returns {Object.<string,*>} JSON object
46847
+ */
46848
+ SCIMUserUpdated.prototype.toJSON = function toJSON() {
46849
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
46850
+ };
46851
+
46852
+ return SCIMUserUpdated;
46853
+ })();
46854
+
46336
46855
  $root.IosSubscriptionCreated = (function() {
46337
46856
 
46338
46857
  /**
@@ -53154,6 +53673,7 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
53154
53673
  case 3:
53155
53674
  case 4:
53156
53675
  case 5:
53676
+ case 6:
53157
53677
  break;
53158
53678
  }
53159
53679
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
@@ -53292,6 +53812,10 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
53292
53812
  case 5:
53293
53813
  message.reason = 5;
53294
53814
  break;
53815
+ case "REMOVAL_REASON_SSO_DEPROVISION":
53816
+ case 6:
53817
+ message.reason = 6;
53818
+ break;
53295
53819
  }
53296
53820
  if (object.timestamp != null)
53297
53821
  if ($util.Long)
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.227.0"
19
+ "version": "1.229.0"
20
20
  }