@vendasta/iam 2.3.1 → 3.1.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.
@@ -1,9 +1,258 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable } from '@angular/core';
3
- import { map, share, switchMap } from 'rxjs/operators';
3
+ import { map, share } from 'rxjs/operators';
4
4
  import * as i1 from '@angular/common/http';
5
5
  import { HttpHeaders } from '@angular/common/http';
6
- import * as i3 from '@vendasta/core';
6
+
7
+ var PersonaType;
8
+ (function (PersonaType) {
9
+ PersonaType["partner"] = "partner";
10
+ PersonaType["partner_app"] = "partner_app";
11
+ PersonaType["sales_person"] = "sales_person";
12
+ PersonaType["smb"] = "smb";
13
+ PersonaType["vendor"] = "vendor";
14
+ PersonaType["digital_agent"] = "digital_agent";
15
+ PersonaType["developer"] = "developer";
16
+ PersonaType["success"] = "success";
17
+ PersonaType["account_group"] = "account_group";
18
+ PersonaType["crm_role"] = "crm_role";
19
+ })(PersonaType || (PersonaType = {}));
20
+
21
+ class BasePersona {
22
+ fromPersona(p) {
23
+ const s = p.subject;
24
+ this.subjectId = s.subjectId;
25
+ this.email = s.email;
26
+ this.created = s.created;
27
+ this.updated = s.updated;
28
+ this.lastLogin = s.lastLogin;
29
+ this.userId = s.userId;
30
+ return this.readAttributes(s.structAttributes);
31
+ }
32
+ readAttributes(attributes) {
33
+ if (!attributes) {
34
+ return this;
35
+ }
36
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment */
37
+ const attrs = getValueFromAttribute({ structAttribute: { attributes: attributes.attributes } });
38
+ Object.assign(this, attrs);
39
+ return this;
40
+ }
41
+ }
42
+ class TypedPersona extends BasePersona {
43
+ }
44
+ class NamespacedPersona extends BasePersona {
45
+ constructor() {
46
+ super(...arguments);
47
+ this.partnerId = '';
48
+ }
49
+ fromPersona(p) {
50
+ this.partnerId = p.context.namespaced.namespace;
51
+ return super.fromPersona(p);
52
+ }
53
+ }
54
+ function getValueFromAttribute(attr) {
55
+ if (typeof attr === 'undefined') {
56
+ return null;
57
+ }
58
+ else if (typeof attr.stringAttribute !== 'undefined') {
59
+ return attr.stringAttribute;
60
+ }
61
+ else if (typeof attr.intAttribute !== 'undefined') {
62
+ return attr.intAttribute;
63
+ }
64
+ else if (typeof attr.doubleAttribute !== 'undefined') {
65
+ return attr.doubleAttribute;
66
+ }
67
+ else if (typeof attr.boolAttribute !== 'undefined') {
68
+ return attr.boolAttribute;
69
+ }
70
+ else if (typeof attr.listAttribute !== 'undefined') {
71
+ const vals = [];
72
+ /* eslint-disable @typescript-eslint/no-unsafe-return */
73
+ if (typeof attr.listAttribute.attributes === 'undefined') {
74
+ /* eslint-disable @typescript-eslint/no-unsafe-return */
75
+ return vals;
76
+ }
77
+ for (const val of attr.listAttribute.attributes) {
78
+ vals.push(getValueFromAttribute(val));
79
+ }
80
+ return vals;
81
+ }
82
+ else if (typeof attr.timestampAttribute !== 'undefined') {
83
+ return attr.timestampAttribute;
84
+ }
85
+ else if (typeof attr.geopointAttribute !== 'undefined') {
86
+ return attr.geopointAttribute;
87
+ }
88
+ else if (typeof attr.structAttribute !== 'undefined') {
89
+ const result = {};
90
+ for (const a in attr.structAttribute.attributes) {
91
+ if (!attr.structAttribute.attributes.hasOwnProperty(a)) {
92
+ continue;
93
+ }
94
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access */
95
+ result[CamelCase(a)] = getValueFromAttribute(attr.structAttribute.attributes[a]);
96
+ }
97
+ return result;
98
+ }
99
+ }
100
+ function CamelCase(str) {
101
+ let result = '';
102
+ for (let i = 0; i < str.length; i++) {
103
+ if (str[i] === '_') {
104
+ result += str[i + 1].toUpperCase();
105
+ i++;
106
+ }
107
+ else {
108
+ result += str[i];
109
+ }
110
+ }
111
+ return result;
112
+ }
113
+
114
+ class DeveloperPersona extends TypedPersona {
115
+ constructor() {
116
+ super(...arguments);
117
+ this.type = PersonaType.developer;
118
+ }
119
+ }
120
+
121
+ class PartnerPersona extends TypedPersona {
122
+ constructor() {
123
+ super(...arguments);
124
+ this.type = PersonaType.partner;
125
+ this.isSuperAdmin = false;
126
+ this.isAdmin = false;
127
+ this.canCustomizeWhitelabel = false;
128
+ this.canAccessBilling = false;
129
+ this.canAccessAccounts = false;
130
+ this.canAccessMarketing = false;
131
+ this.canAccessSales = false;
132
+ this.canAccessConcierge = false;
133
+ this.canAccessBrands = false;
134
+ this.canAccessDashboard = false;
135
+ this.canAccessOrders = false;
136
+ this.canAccessCompanyProfile = false;
137
+ this.canAccessAutomations = false;
138
+ this.canAccessMarketplace = false;
139
+ this.canEnableApps = false;
140
+ this.canAccessRetailBilling = false;
141
+ }
142
+ }
143
+
144
+ class PartnerAppPersona extends NamespacedPersona {
145
+ constructor() {
146
+ super(...arguments);
147
+ this.type = PersonaType.partner_app;
148
+ }
149
+ }
150
+
151
+ const TitleChoice = {
152
+ PARTNER_FOR_SMB: 'partnerForSmb',
153
+ REP_MAN_FOR_SMB: 'repManForSmb',
154
+ MARKET_FOR_SMB: 'marketForSmb'
155
+ };
156
+ class SalespersonPersona extends NamespacedPersona {
157
+ constructor() {
158
+ super(...arguments);
159
+ this.type = PersonaType.sales_person;
160
+ this.titleChoice = TitleChoice.PARTNER_FOR_SMB;
161
+ }
162
+ }
163
+
164
+ class SMBPersona extends NamespacedPersona {
165
+ constructor() {
166
+ super(...arguments);
167
+ this.type = PersonaType.smb;
168
+ this.notificationsEnabled = true;
169
+ }
170
+ }
171
+
172
+ class VendorPersona extends TypedPersona {
173
+ constructor() {
174
+ super(...arguments);
175
+ this.type = PersonaType.vendor;
176
+ }
177
+ }
178
+
179
+ class DigitalAgentPersona extends TypedPersona {
180
+ constructor() {
181
+ super(...arguments);
182
+ this.type = PersonaType.digital_agent;
183
+ }
184
+ }
185
+
186
+ class SuccessPersona extends TypedPersona {
187
+ constructor() {
188
+ super(...arguments);
189
+ this.type = PersonaType.success;
190
+ }
191
+ }
192
+
193
+ class AccountGroupPersona extends TypedPersona {
194
+ constructor() {
195
+ super(...arguments);
196
+ this.type = PersonaType.account_group;
197
+ }
198
+ }
199
+
200
+ class CRMRolePersona extends NamespacedPersona {
201
+ constructor() {
202
+ super(...arguments);
203
+ this.type = PersonaType.crm_role;
204
+ }
205
+ }
206
+
207
+ function fromPersona(persona) {
208
+ const type = getTypeFromContext(persona.context);
209
+ if (type === null) {
210
+ return null;
211
+ }
212
+ const personaCls = getPersonaFromType(type);
213
+ personaCls.fromPersona(persona);
214
+ return personaCls;
215
+ }
216
+ function getTypeFromContext(ctx) {
217
+ const type = (!!ctx.namespaced) ? ctx.namespaced.type : ctx.typed.type;
218
+ switch (type) {
219
+ case 'partner':
220
+ return PersonaType.partner;
221
+ case 'partner_app':
222
+ return PersonaType.partner_app;
223
+ case 'sales_person':
224
+ return PersonaType.sales_person;
225
+ case 'smb':
226
+ return PersonaType.smb;
227
+ case 'vendor':
228
+ return PersonaType.vendor;
229
+ case 'digital_agent':
230
+ return PersonaType.digital_agent;
231
+ case 'developer':
232
+ return PersonaType.developer;
233
+ case 'success':
234
+ return PersonaType.success;
235
+ case 'account_group':
236
+ return PersonaType.account_group;
237
+ case 'crm_role':
238
+ return PersonaType.crm_role;
239
+ }
240
+ return null;
241
+ }
242
+ function getPersonaFromType(personaType) {
243
+ return new {
244
+ 'partner': PartnerPersona,
245
+ 'partner_app': PartnerAppPersona,
246
+ 'sales_person': SalespersonPersona,
247
+ 'smb': SMBPersona,
248
+ 'vendor': VendorPersona,
249
+ 'digital_agent': DigitalAgentPersona,
250
+ 'developer': DeveloperPersona,
251
+ 'success': SuccessPersona,
252
+ 'account_group': AccountGroupPersona,
253
+ 'crm_role': CRMRolePersona,
254
+ }[personaType]();
255
+ }
7
256
 
8
257
  function enumStringToValue$8(enumRef, value) {
9
258
  if (typeof value === 'number') {
@@ -12,12 +261,6 @@ function enumStringToValue$8(enumRef, value) {
12
261
  return enumRef[value];
13
262
  }
14
263
  class Attribute {
15
- constructor(kwargs) {
16
- if (!kwargs) {
17
- return;
18
- }
19
- Object.assign(this, kwargs);
20
- }
21
264
  static fromProto(proto) {
22
265
  let m = new Attribute();
23
266
  m = Object.assign(m, proto);
@@ -38,6 +281,12 @@ class Attribute {
38
281
  }
39
282
  return m;
40
283
  }
284
+ constructor(kwargs) {
285
+ if (!kwargs) {
286
+ return;
287
+ }
288
+ Object.assign(this, kwargs);
289
+ }
41
290
  toApiJson() {
42
291
  const toReturn = {};
43
292
  if (typeof this.intAttribute !== 'undefined') {
@@ -68,12 +317,6 @@ class Attribute {
68
317
  }
69
318
  }
70
319
  class StructAttributeAttributesEntry {
71
- constructor(kwargs) {
72
- if (!kwargs) {
73
- return;
74
- }
75
- Object.assign(this, kwargs);
76
- }
77
320
  static fromProto(proto) {
78
321
  let m = new StructAttributeAttributesEntry();
79
322
  m = Object.assign(m, proto);
@@ -82,6 +325,12 @@ class StructAttributeAttributesEntry {
82
325
  }
83
326
  return m;
84
327
  }
328
+ constructor(kwargs) {
329
+ if (!kwargs) {
330
+ return;
331
+ }
332
+ Object.assign(this, kwargs);
333
+ }
85
334
  toApiJson() {
86
335
  const toReturn = {};
87
336
  if (typeof this.key !== 'undefined') {
@@ -94,17 +343,17 @@ class StructAttributeAttributesEntry {
94
343
  }
95
344
  }
96
345
  class GeoPointAttribute {
346
+ static fromProto(proto) {
347
+ let m = new GeoPointAttribute();
348
+ m = Object.assign(m, proto);
349
+ return m;
350
+ }
97
351
  constructor(kwargs) {
98
352
  if (!kwargs) {
99
353
  return;
100
354
  }
101
355
  Object.assign(this, kwargs);
102
356
  }
103
- static fromProto(proto) {
104
- let m = new GeoPointAttribute();
105
- m = Object.assign(m, proto);
106
- return m;
107
- }
108
357
  toApiJson() {
109
358
  const toReturn = {};
110
359
  if (typeof this.latitude !== 'undefined') {
@@ -117,12 +366,6 @@ class GeoPointAttribute {
117
366
  }
118
367
  }
119
368
  class ListAttribute {
120
- constructor(kwargs) {
121
- if (!kwargs) {
122
- return;
123
- }
124
- Object.assign(this, kwargs);
125
- }
126
369
  static fromProto(proto) {
127
370
  let m = new ListAttribute();
128
371
  m = Object.assign(m, proto);
@@ -131,6 +374,12 @@ class ListAttribute {
131
374
  }
132
375
  return m;
133
376
  }
377
+ constructor(kwargs) {
378
+ if (!kwargs) {
379
+ return;
380
+ }
381
+ Object.assign(this, kwargs);
382
+ }
134
383
  toApiJson() {
135
384
  const toReturn = {};
136
385
  if (typeof this.attributes !== 'undefined' && this.attributes !== null) {
@@ -140,12 +389,6 @@ class ListAttribute {
140
389
  }
141
390
  }
142
391
  class StructAttribute {
143
- constructor(kwargs) {
144
- if (!kwargs) {
145
- return;
146
- }
147
- Object.assign(this, kwargs);
148
- }
149
392
  static fromProto(proto) {
150
393
  let m = new StructAttribute();
151
394
  m = Object.assign(m, proto);
@@ -154,6 +397,12 @@ class StructAttribute {
154
397
  }
155
398
  return m;
156
399
  }
400
+ constructor(kwargs) {
401
+ if (!kwargs) {
402
+ return;
403
+ }
404
+ Object.assign(this, kwargs);
405
+ }
157
406
  toApiJson() {
158
407
  const toReturn = {};
159
408
  if (typeof this.attributes !== 'undefined' && this.attributes !== null) {
@@ -256,12 +505,6 @@ function enumStringToValue$7(enumRef, value) {
256
505
  return enumRef[value];
257
506
  }
258
507
  class Context {
259
- constructor(kwargs) {
260
- if (!kwargs) {
261
- return;
262
- }
263
- Object.assign(this, kwargs);
264
- }
265
508
  static fromProto(proto) {
266
509
  let m = new Context();
267
510
  m = Object.assign(m, proto);
@@ -273,6 +516,12 @@ class Context {
273
516
  }
274
517
  return m;
275
518
  }
519
+ constructor(kwargs) {
520
+ if (!kwargs) {
521
+ return;
522
+ }
523
+ Object.assign(this, kwargs);
524
+ }
276
525
  toApiJson() {
277
526
  const toReturn = {};
278
527
  if (typeof this.namespaced !== 'undefined' && this.namespaced !== null) {
@@ -285,17 +534,17 @@ class Context {
285
534
  }
286
535
  }
287
536
  class MultiValueAttribute {
537
+ static fromProto(proto) {
538
+ let m = new MultiValueAttribute();
539
+ m = Object.assign(m, proto);
540
+ return m;
541
+ }
288
542
  constructor(kwargs) {
289
543
  if (!kwargs) {
290
544
  return;
291
545
  }
292
546
  Object.assign(this, kwargs);
293
547
  }
294
- static fromProto(proto) {
295
- let m = new MultiValueAttribute();
296
- m = Object.assign(m, proto);
297
- return m;
298
- }
299
548
  toApiJson() {
300
549
  const toReturn = {};
301
550
  if (typeof this.key !== 'undefined') {
@@ -308,12 +557,6 @@ class MultiValueAttribute {
308
557
  }
309
558
  }
310
559
  class Mutation {
311
- constructor(kwargs) {
312
- if (!kwargs) {
313
- return;
314
- }
315
- Object.assign(this, kwargs);
316
- }
317
560
  static fromProto(proto) {
318
561
  let m = new Mutation();
319
562
  m = Object.assign(m, proto);
@@ -337,6 +580,12 @@ class Mutation {
337
580
  }
338
581
  return m;
339
582
  }
583
+ constructor(kwargs) {
584
+ if (!kwargs) {
585
+ return;
586
+ }
587
+ Object.assign(this, kwargs);
588
+ }
340
589
  toApiJson() {
341
590
  const toReturn = {};
342
591
  if (typeof this.add !== 'undefined' && this.add !== null) {
@@ -364,17 +613,17 @@ class Mutation {
364
613
  }
365
614
  }
366
615
  class NamespacedContext {
616
+ static fromProto(proto) {
617
+ let m = new NamespacedContext();
618
+ m = Object.assign(m, proto);
619
+ return m;
620
+ }
367
621
  constructor(kwargs) {
368
622
  if (!kwargs) {
369
623
  return;
370
624
  }
371
625
  Object.assign(this, kwargs);
372
626
  }
373
- static fromProto(proto) {
374
- let m = new NamespacedContext();
375
- m = Object.assign(m, proto);
376
- return m;
377
- }
378
627
  toApiJson() {
379
628
  const toReturn = {};
380
629
  if (typeof this.namespace !== 'undefined') {
@@ -387,12 +636,6 @@ class NamespacedContext {
387
636
  }
388
637
  }
389
638
  class Persona {
390
- constructor(kwargs) {
391
- if (!kwargs) {
392
- return;
393
- }
394
- Object.assign(this, kwargs);
395
- }
396
639
  static fromProto(proto) {
397
640
  let m = new Persona();
398
641
  m = Object.assign(m, proto);
@@ -404,6 +647,12 @@ class Persona {
404
647
  }
405
648
  return m;
406
649
  }
650
+ constructor(kwargs) {
651
+ if (!kwargs) {
652
+ return;
653
+ }
654
+ Object.assign(this, kwargs);
655
+ }
407
656
  toApiJson() {
408
657
  const toReturn = {};
409
658
  if (typeof this.subject !== 'undefined' && this.subject !== null) {
@@ -416,19 +665,19 @@ class Persona {
416
665
  }
417
666
  }
418
667
  class PublicKey {
419
- constructor(kwargs) {
420
- if (!kwargs) {
421
- return;
422
- }
423
- Object.assign(this, kwargs);
424
- }
425
668
  static fromProto(proto) {
426
669
  let m = new PublicKey();
427
670
  m = Object.assign(m, proto);
428
671
  if (proto.algorithmType) {
429
672
  m.algorithmType = enumStringToValue$7(AlgorithmType, proto.algorithmType);
430
673
  }
431
- return m;
674
+ return m;
675
+ }
676
+ constructor(kwargs) {
677
+ if (!kwargs) {
678
+ return;
679
+ }
680
+ Object.assign(this, kwargs);
432
681
  }
433
682
  toApiJson() {
434
683
  const toReturn = {};
@@ -445,17 +694,17 @@ class PublicKey {
445
694
  }
446
695
  }
447
696
  class Query {
697
+ static fromProto(proto) {
698
+ let m = new Query();
699
+ m = Object.assign(m, proto);
700
+ return m;
701
+ }
448
702
  constructor(kwargs) {
449
703
  if (!kwargs) {
450
704
  return;
451
705
  }
452
706
  Object.assign(this, kwargs);
453
707
  }
454
- static fromProto(proto) {
455
- let m = new Query();
456
- m = Object.assign(m, proto);
457
- return m;
458
- }
459
708
  toApiJson() {
460
709
  const toReturn = {};
461
710
  if (typeof this.searchTerm !== 'undefined') {
@@ -468,17 +717,17 @@ class Query {
468
717
  }
469
718
  }
470
719
  class SingleValueAttribute {
720
+ static fromProto(proto) {
721
+ let m = new SingleValueAttribute();
722
+ m = Object.assign(m, proto);
723
+ return m;
724
+ }
471
725
  constructor(kwargs) {
472
726
  if (!kwargs) {
473
727
  return;
474
728
  }
475
729
  Object.assign(this, kwargs);
476
730
  }
477
- static fromProto(proto) {
478
- let m = new SingleValueAttribute();
479
- m = Object.assign(m, proto);
480
- return m;
481
- }
482
731
  toApiJson() {
483
732
  const toReturn = {};
484
733
  if (typeof this.key !== 'undefined') {
@@ -491,12 +740,6 @@ class SingleValueAttribute {
491
740
  }
492
741
  }
493
742
  class Subject {
494
- constructor(kwargs) {
495
- if (!kwargs) {
496
- return;
497
- }
498
- Object.assign(this, kwargs);
499
- }
500
743
  static fromProto(proto) {
501
744
  let m = new Subject();
502
745
  m = Object.assign(m, proto);
@@ -520,6 +763,12 @@ class Subject {
520
763
  }
521
764
  return m;
522
765
  }
766
+ constructor(kwargs) {
767
+ if (!kwargs) {
768
+ return;
769
+ }
770
+ Object.assign(this, kwargs);
771
+ }
523
772
  toApiJson() {
524
773
  const toReturn = {};
525
774
  if (typeof this.subjectId !== 'undefined') {
@@ -556,12 +805,6 @@ class Subject {
556
805
  }
557
806
  }
558
807
  class SubjectResult {
559
- constructor(kwargs) {
560
- if (!kwargs) {
561
- return;
562
- }
563
- Object.assign(this, kwargs);
564
- }
565
808
  static fromProto(proto) {
566
809
  let m = new SubjectResult();
567
810
  m = Object.assign(m, proto);
@@ -570,6 +813,12 @@ class SubjectResult {
570
813
  }
571
814
  return m;
572
815
  }
816
+ constructor(kwargs) {
817
+ if (!kwargs) {
818
+ return;
819
+ }
820
+ Object.assign(this, kwargs);
821
+ }
573
822
  toApiJson() {
574
823
  const toReturn = {};
575
824
  if (typeof this.subject !== 'undefined' && this.subject !== null) {
@@ -579,17 +828,17 @@ class SubjectResult {
579
828
  }
580
829
  }
581
830
  class TypedContext {
831
+ static fromProto(proto) {
832
+ let m = new TypedContext();
833
+ m = Object.assign(m, proto);
834
+ return m;
835
+ }
582
836
  constructor(kwargs) {
583
837
  if (!kwargs) {
584
838
  return;
585
839
  }
586
840
  Object.assign(this, kwargs);
587
841
  }
588
- static fromProto(proto) {
589
- let m = new TypedContext();
590
- m = Object.assign(m, proto);
591
- return m;
592
- }
593
842
  toApiJson() {
594
843
  const toReturn = {};
595
844
  if (typeof this.type !== 'undefined') {
@@ -606,17 +855,17 @@ function enumStringToValue$6(enumRef, value) {
606
855
  return enumRef[value];
607
856
  }
608
857
  class FieldMask {
858
+ static fromProto(proto) {
859
+ let m = new FieldMask();
860
+ m = Object.assign(m, proto);
861
+ return m;
862
+ }
609
863
  constructor(kwargs) {
610
864
  if (!kwargs) {
611
865
  return;
612
866
  }
613
867
  Object.assign(this, kwargs);
614
868
  }
615
- static fromProto(proto) {
616
- let m = new FieldMask();
617
- m = Object.assign(m, proto);
618
- return m;
619
- }
620
869
  toApiJson() {
621
870
  const toReturn = {};
622
871
  if (typeof this.paths !== 'undefined') {
@@ -634,12 +883,6 @@ function enumStringToValue$5(enumRef, value) {
634
883
  return enumRef[value];
635
884
  }
636
885
  class IfClause {
637
- constructor(kwargs) {
638
- if (!kwargs) {
639
- return;
640
- }
641
- Object.assign(this, kwargs);
642
- }
643
886
  static fromProto(proto) {
644
887
  let m = new IfClause();
645
888
  m = Object.assign(m, proto);
@@ -654,6 +897,12 @@ class IfClause {
654
897
  }
655
898
  return m;
656
899
  }
900
+ constructor(kwargs) {
901
+ if (!kwargs) {
902
+ return;
903
+ }
904
+ Object.assign(this, kwargs);
905
+ }
657
906
  toApiJson() {
658
907
  const toReturn = {};
659
908
  if (typeof this.resourceAttributeName !== 'undefined') {
@@ -672,12 +921,6 @@ class IfClause {
672
921
  }
673
922
  }
674
923
  class Operator {
675
- constructor(kwargs) {
676
- if (!kwargs) {
677
- return;
678
- }
679
- Object.assign(this, kwargs);
680
- }
681
924
  static fromProto(proto) {
682
925
  let m = new Operator();
683
926
  m = Object.assign(m, proto);
@@ -690,6 +933,12 @@ class Operator {
690
933
  }
691
934
  return m;
692
935
  }
936
+ constructor(kwargs) {
937
+ if (!kwargs) {
938
+ return;
939
+ }
940
+ Object.assign(this, kwargs);
941
+ }
693
942
  toApiJson() {
694
943
  const toReturn = {};
695
944
  if (typeof this.operator !== 'undefined') {
@@ -702,12 +951,6 @@ class Operator {
702
951
  }
703
952
  }
704
953
  class PolicyNode {
705
- constructor(kwargs) {
706
- if (!kwargs) {
707
- return;
708
- }
709
- Object.assign(this, kwargs);
710
- }
711
954
  static fromProto(proto) {
712
955
  let m = new PolicyNode();
713
956
  m = Object.assign(m, proto);
@@ -734,6 +977,12 @@ class PolicyNode {
734
977
  }
735
978
  return m;
736
979
  }
980
+ constructor(kwargs) {
981
+ if (!kwargs) {
982
+ return;
983
+ }
984
+ Object.assign(this, kwargs);
985
+ }
737
986
  toApiJson() {
738
987
  const toReturn = {};
739
988
  if (typeof this.subjectResourceIntersection !== 'undefined' && this.subjectResourceIntersection !== null) {
@@ -761,17 +1010,17 @@ class PolicyNode {
761
1010
  }
762
1011
  }
763
1012
  class SubjectMissingValueClause {
1013
+ static fromProto(proto) {
1014
+ let m = new SubjectMissingValueClause();
1015
+ m = Object.assign(m, proto);
1016
+ return m;
1017
+ }
764
1018
  constructor(kwargs) {
765
1019
  if (!kwargs) {
766
1020
  return;
767
1021
  }
768
1022
  Object.assign(this, kwargs);
769
1023
  }
770
- static fromProto(proto) {
771
- let m = new SubjectMissingValueClause();
772
- m = Object.assign(m, proto);
773
- return m;
774
- }
775
1024
  toApiJson() {
776
1025
  const toReturn = {};
777
1026
  if (typeof this.attributeName !== 'undefined') {
@@ -781,12 +1030,6 @@ class SubjectMissingValueClause {
781
1030
  }
782
1031
  }
783
1032
  class SubjectResourceForClause {
784
- constructor(kwargs) {
785
- if (!kwargs) {
786
- return;
787
- }
788
- Object.assign(this, kwargs);
789
- }
790
1033
  static fromProto(proto) {
791
1034
  let m = new SubjectResourceForClause();
792
1035
  m = Object.assign(m, proto);
@@ -798,6 +1041,12 @@ class SubjectResourceForClause {
798
1041
  }
799
1042
  return m;
800
1043
  }
1044
+ constructor(kwargs) {
1045
+ if (!kwargs) {
1046
+ return;
1047
+ }
1048
+ Object.assign(this, kwargs);
1049
+ }
801
1050
  toApiJson() {
802
1051
  const toReturn = {};
803
1052
  if (typeof this.attributeName !== 'undefined') {
@@ -813,17 +1062,17 @@ class SubjectResourceForClause {
813
1062
  }
814
1063
  }
815
1064
  class SubjectResourceIntersectionClause {
1065
+ static fromProto(proto) {
1066
+ let m = new SubjectResourceIntersectionClause();
1067
+ m = Object.assign(m, proto);
1068
+ return m;
1069
+ }
816
1070
  constructor(kwargs) {
817
1071
  if (!kwargs) {
818
1072
  return;
819
1073
  }
820
1074
  Object.assign(this, kwargs);
821
1075
  }
822
- static fromProto(proto) {
823
- let m = new SubjectResourceIntersectionClause();
824
- m = Object.assign(m, proto);
825
- return m;
826
- }
827
1076
  toApiJson() {
828
1077
  const toReturn = {};
829
1078
  if (typeof this.attributeName !== 'undefined') {
@@ -836,17 +1085,17 @@ class SubjectResourceIntersectionClause {
836
1085
  }
837
1086
  }
838
1087
  class SubjectResourceSubsetClause {
1088
+ static fromProto(proto) {
1089
+ let m = new SubjectResourceSubsetClause();
1090
+ m = Object.assign(m, proto);
1091
+ return m;
1092
+ }
839
1093
  constructor(kwargs) {
840
1094
  if (!kwargs) {
841
1095
  return;
842
1096
  }
843
1097
  Object.assign(this, kwargs);
844
1098
  }
845
- static fromProto(proto) {
846
- let m = new SubjectResourceSubsetClause();
847
- m = Object.assign(m, proto);
848
- return m;
849
- }
850
1099
  toApiJson() {
851
1100
  const toReturn = {};
852
1101
  if (typeof this.attributeName !== 'undefined') {
@@ -859,12 +1108,6 @@ class SubjectResourceSubsetClause {
859
1108
  }
860
1109
  }
861
1110
  class SubjectValueIntersectionClause {
862
- constructor(kwargs) {
863
- if (!kwargs) {
864
- return;
865
- }
866
- Object.assign(this, kwargs);
867
- }
868
1111
  static fromProto(proto) {
869
1112
  let m = new SubjectValueIntersectionClause();
870
1113
  m = Object.assign(m, proto);
@@ -873,6 +1116,12 @@ class SubjectValueIntersectionClause {
873
1116
  }
874
1117
  return m;
875
1118
  }
1119
+ constructor(kwargs) {
1120
+ if (!kwargs) {
1121
+ return;
1122
+ }
1123
+ Object.assign(this, kwargs);
1124
+ }
876
1125
  toApiJson() {
877
1126
  const toReturn = {};
878
1127
  if (typeof this.attributeName !== 'undefined') {
@@ -895,12 +1144,6 @@ function enumStringToValue$4(enumRef, value) {
895
1144
  return enumRef[value];
896
1145
  }
897
1146
  class AccessCheckFailures {
898
- constructor(kwargs) {
899
- if (!kwargs) {
900
- return;
901
- }
902
- Object.assign(this, kwargs);
903
- }
904
1147
  static fromProto(proto) {
905
1148
  let m = new AccessCheckFailures();
906
1149
  m = Object.assign(m, proto);
@@ -909,6 +1152,12 @@ class AccessCheckFailures {
909
1152
  }
910
1153
  return m;
911
1154
  }
1155
+ constructor(kwargs) {
1156
+ if (!kwargs) {
1157
+ return;
1158
+ }
1159
+ Object.assign(this, kwargs);
1160
+ }
912
1161
  toApiJson() {
913
1162
  const toReturn = {};
914
1163
  if (typeof this.failures !== 'undefined' && this.failures !== null) {
@@ -918,12 +1167,6 @@ class AccessCheckFailures {
918
1167
  }
919
1168
  }
920
1169
  class ResourceIdentifierIdentifiersEntry {
921
- constructor(kwargs) {
922
- if (!kwargs) {
923
- return;
924
- }
925
- Object.assign(this, kwargs);
926
- }
927
1170
  static fromProto(proto) {
928
1171
  let m = new ResourceIdentifierIdentifiersEntry();
929
1172
  m = Object.assign(m, proto);
@@ -932,6 +1175,12 @@ class ResourceIdentifierIdentifiersEntry {
932
1175
  }
933
1176
  return m;
934
1177
  }
1178
+ constructor(kwargs) {
1179
+ if (!kwargs) {
1180
+ return;
1181
+ }
1182
+ Object.assign(this, kwargs);
1183
+ }
935
1184
  toApiJson() {
936
1185
  const toReturn = {};
937
1186
  if (typeof this.key !== 'undefined') {
@@ -944,12 +1193,6 @@ class ResourceIdentifierIdentifiersEntry {
944
1193
  }
945
1194
  }
946
1195
  class Policy {
947
- constructor(kwargs) {
948
- if (!kwargs) {
949
- return;
950
- }
951
- Object.assign(this, kwargs);
952
- }
953
1196
  static fromProto(proto) {
954
1197
  let m = new Policy();
955
1198
  m = Object.assign(m, proto);
@@ -961,6 +1204,12 @@ class Policy {
961
1204
  }
962
1205
  return m;
963
1206
  }
1207
+ constructor(kwargs) {
1208
+ if (!kwargs) {
1209
+ return;
1210
+ }
1211
+ Object.assign(this, kwargs);
1212
+ }
964
1213
  toApiJson() {
965
1214
  const toReturn = {};
966
1215
  if (typeof this.appId !== 'undefined') {
@@ -988,12 +1237,6 @@ class Policy {
988
1237
  }
989
1238
  }
990
1239
  class ResourceIdentifier {
991
- constructor(kwargs) {
992
- if (!kwargs) {
993
- return;
994
- }
995
- Object.assign(this, kwargs);
996
- }
997
1240
  static fromProto(proto) {
998
1241
  let m = new ResourceIdentifier();
999
1242
  m = Object.assign(m, proto);
@@ -1002,6 +1245,12 @@ class ResourceIdentifier {
1002
1245
  }
1003
1246
  return m;
1004
1247
  }
1248
+ constructor(kwargs) {
1249
+ if (!kwargs) {
1250
+ return;
1251
+ }
1252
+ Object.assign(this, kwargs);
1253
+ }
1005
1254
  toApiJson() {
1006
1255
  const toReturn = {};
1007
1256
  if (typeof this.identifiers !== 'undefined' && this.identifiers !== null) {
@@ -1011,17 +1260,17 @@ class ResourceIdentifier {
1011
1260
  }
1012
1261
  }
1013
1262
  class ResourceOwner {
1263
+ static fromProto(proto) {
1264
+ let m = new ResourceOwner();
1265
+ m = Object.assign(m, proto);
1266
+ return m;
1267
+ }
1014
1268
  constructor(kwargs) {
1015
1269
  if (!kwargs) {
1016
1270
  return;
1017
1271
  }
1018
1272
  Object.assign(this, kwargs);
1019
1273
  }
1020
- static fromProto(proto) {
1021
- let m = new ResourceOwner();
1022
- m = Object.assign(m, proto);
1023
- return m;
1024
- }
1025
1274
  toApiJson() {
1026
1275
  const toReturn = {};
1027
1276
  if (typeof this.appId !== 'undefined') {
@@ -1034,17 +1283,17 @@ class ResourceOwner {
1034
1283
  }
1035
1284
  }
1036
1285
  class ValueList {
1286
+ static fromProto(proto) {
1287
+ let m = new ValueList();
1288
+ m = Object.assign(m, proto);
1289
+ return m;
1290
+ }
1037
1291
  constructor(kwargs) {
1038
1292
  if (!kwargs) {
1039
1293
  return;
1040
1294
  }
1041
1295
  Object.assign(this, kwargs);
1042
1296
  }
1043
- static fromProto(proto) {
1044
- let m = new ValueList();
1045
- m = Object.assign(m, proto);
1046
- return m;
1047
- }
1048
1297
  toApiJson() {
1049
1298
  const toReturn = {};
1050
1299
  if (typeof this.values !== 'undefined') {
@@ -1061,12 +1310,6 @@ function enumStringToValue$3(enumRef, value) {
1061
1310
  return enumRef[value];
1062
1311
  }
1063
1312
  class SecurityLog {
1064
- constructor(kwargs) {
1065
- if (!kwargs) {
1066
- return;
1067
- }
1068
- Object.assign(this, kwargs);
1069
- }
1070
1313
  static fromProto(proto) {
1071
1314
  let m = new SecurityLog();
1072
1315
  m = Object.assign(m, proto);
@@ -1075,6 +1318,12 @@ class SecurityLog {
1075
1318
  }
1076
1319
  return m;
1077
1320
  }
1321
+ constructor(kwargs) {
1322
+ if (!kwargs) {
1323
+ return;
1324
+ }
1325
+ Object.assign(this, kwargs);
1326
+ }
1078
1327
  toApiJson() {
1079
1328
  const toReturn = {};
1080
1329
  if (typeof this.userId !== 'undefined') {
@@ -1103,17 +1352,17 @@ function enumStringToValue$2(enumRef, value) {
1103
1352
  return enumRef[value];
1104
1353
  }
1105
1354
  class Identifier {
1355
+ static fromProto(proto) {
1356
+ let m = new Identifier();
1357
+ m = Object.assign(m, proto);
1358
+ return m;
1359
+ }
1106
1360
  constructor(kwargs) {
1107
1361
  if (!kwargs) {
1108
1362
  return;
1109
1363
  }
1110
1364
  Object.assign(this, kwargs);
1111
1365
  }
1112
- static fromProto(proto) {
1113
- let m = new Identifier();
1114
- m = Object.assign(m, proto);
1115
- return m;
1116
- }
1117
1366
  toApiJson() {
1118
1367
  const toReturn = {};
1119
1368
  if (typeof this.subjectId !== 'undefined') {
@@ -1126,17 +1375,17 @@ class Identifier {
1126
1375
  }
1127
1376
  }
1128
1377
  class NamespacedEmail {
1378
+ static fromProto(proto) {
1379
+ let m = new NamespacedEmail();
1380
+ m = Object.assign(m, proto);
1381
+ return m;
1382
+ }
1129
1383
  constructor(kwargs) {
1130
1384
  if (!kwargs) {
1131
1385
  return;
1132
1386
  }
1133
1387
  Object.assign(this, kwargs);
1134
1388
  }
1135
- static fromProto(proto) {
1136
- let m = new NamespacedEmail();
1137
- m = Object.assign(m, proto);
1138
- return m;
1139
- }
1140
1389
  toApiJson() {
1141
1390
  const toReturn = {};
1142
1391
  if (typeof this.namespace !== 'undefined') {
@@ -1149,17 +1398,17 @@ class NamespacedEmail {
1149
1398
  }
1150
1399
  }
1151
1400
  class NamespacedSession {
1401
+ static fromProto(proto) {
1402
+ let m = new NamespacedSession();
1403
+ m = Object.assign(m, proto);
1404
+ return m;
1405
+ }
1152
1406
  constructor(kwargs) {
1153
1407
  if (!kwargs) {
1154
1408
  return;
1155
1409
  }
1156
1410
  Object.assign(this, kwargs);
1157
1411
  }
1158
- static fromProto(proto) {
1159
- let m = new NamespacedSession();
1160
- m = Object.assign(m, proto);
1161
- return m;
1162
- }
1163
1412
  toApiJson() {
1164
1413
  const toReturn = {};
1165
1414
  if (typeof this.namespace !== 'undefined') {
@@ -1172,17 +1421,17 @@ class NamespacedSession {
1172
1421
  }
1173
1422
  }
1174
1423
  class TypedExternalIdentifier {
1424
+ static fromProto(proto) {
1425
+ let m = new TypedExternalIdentifier();
1426
+ m = Object.assign(m, proto);
1427
+ return m;
1428
+ }
1175
1429
  constructor(kwargs) {
1176
1430
  if (!kwargs) {
1177
1431
  return;
1178
1432
  }
1179
1433
  Object.assign(this, kwargs);
1180
1434
  }
1181
- static fromProto(proto) {
1182
- let m = new TypedExternalIdentifier();
1183
- m = Object.assign(m, proto);
1184
- return m;
1185
- }
1186
1435
  toApiJson() {
1187
1436
  const toReturn = {};
1188
1437
  if (typeof this.externalIdType !== 'undefined') {
@@ -1195,12 +1444,6 @@ class TypedExternalIdentifier {
1195
1444
  }
1196
1445
  }
1197
1446
  class User {
1198
- constructor(kwargs) {
1199
- if (!kwargs) {
1200
- return;
1201
- }
1202
- Object.assign(this, kwargs);
1203
- }
1204
1447
  static fromProto(proto) {
1205
1448
  let m = new User();
1206
1449
  m = Object.assign(m, proto);
@@ -1218,6 +1461,12 @@ class User {
1218
1461
  }
1219
1462
  return m;
1220
1463
  }
1464
+ constructor(kwargs) {
1465
+ if (!kwargs) {
1466
+ return;
1467
+ }
1468
+ Object.assign(this, kwargs);
1469
+ }
1221
1470
  toApiJson() {
1222
1471
  const toReturn = {};
1223
1472
  if (typeof this.userId !== 'undefined') {
@@ -1270,12 +1519,6 @@ function enumStringToValue$1(enumRef, value) {
1270
1519
  return enumRef[value];
1271
1520
  }
1272
1521
  class AccessResourceRequest {
1273
- constructor(kwargs) {
1274
- if (!kwargs) {
1275
- return;
1276
- }
1277
- Object.assign(this, kwargs);
1278
- }
1279
1522
  static fromProto(proto) {
1280
1523
  let m = new AccessResourceRequest();
1281
1524
  m = Object.assign(m, proto);
@@ -1296,6 +1539,12 @@ class AccessResourceRequest {
1296
1539
  }
1297
1540
  return m;
1298
1541
  }
1542
+ constructor(kwargs) {
1543
+ if (!kwargs) {
1544
+ return;
1545
+ }
1546
+ Object.assign(this, kwargs);
1547
+ }
1299
1548
  toApiJson() {
1300
1549
  const toReturn = {};
1301
1550
  if (typeof this.context !== 'undefined' && this.context !== null) {
@@ -1338,12 +1587,6 @@ class AccessResourceRequest {
1338
1587
  }
1339
1588
  }
1340
1589
  class AddKeyRequest {
1341
- constructor(kwargs) {
1342
- if (!kwargs) {
1343
- return;
1344
- }
1345
- Object.assign(this, kwargs);
1346
- }
1347
1590
  static fromProto(proto) {
1348
1591
  let m = new AddKeyRequest();
1349
1592
  m = Object.assign(m, proto);
@@ -1358,6 +1601,12 @@ class AddKeyRequest {
1358
1601
  }
1359
1602
  return m;
1360
1603
  }
1604
+ constructor(kwargs) {
1605
+ if (!kwargs) {
1606
+ return;
1607
+ }
1608
+ Object.assign(this, kwargs);
1609
+ }
1361
1610
  toApiJson() {
1362
1611
  const toReturn = {};
1363
1612
  if (typeof this.email !== 'undefined') {
@@ -1376,17 +1625,17 @@ class AddKeyRequest {
1376
1625
  }
1377
1626
  }
1378
1627
  class AddKeyResponse {
1628
+ static fromProto(proto) {
1629
+ let m = new AddKeyResponse();
1630
+ m = Object.assign(m, proto);
1631
+ return m;
1632
+ }
1379
1633
  constructor(kwargs) {
1380
1634
  if (!kwargs) {
1381
1635
  return;
1382
1636
  }
1383
1637
  Object.assign(this, kwargs);
1384
1638
  }
1385
- static fromProto(proto) {
1386
- let m = new AddKeyResponse();
1387
- m = Object.assign(m, proto);
1388
- return m;
1389
- }
1390
1639
  toApiJson() {
1391
1640
  const toReturn = {};
1392
1641
  if (typeof this.privateKey !== 'undefined') {
@@ -1399,12 +1648,6 @@ class AddKeyResponse {
1399
1648
  }
1400
1649
  }
1401
1650
  class AddMultiUserRestrictionRequest {
1402
- constructor(kwargs) {
1403
- if (!kwargs) {
1404
- return;
1405
- }
1406
- Object.assign(this, kwargs);
1407
- }
1408
1651
  static fromProto(proto) {
1409
1652
  let m = new AddMultiUserRestrictionRequest();
1410
1653
  m = Object.assign(m, proto);
@@ -1416,6 +1659,12 @@ class AddMultiUserRestrictionRequest {
1416
1659
  }
1417
1660
  return m;
1418
1661
  }
1662
+ constructor(kwargs) {
1663
+ if (!kwargs) {
1664
+ return;
1665
+ }
1666
+ Object.assign(this, kwargs);
1667
+ }
1419
1668
  toApiJson() {
1420
1669
  const toReturn = {};
1421
1670
  if (typeof this.userIdentifiers !== 'undefined' && this.userIdentifiers !== null) {
@@ -1428,12 +1677,6 @@ class AddMultiUserRestrictionRequest {
1428
1677
  }
1429
1678
  }
1430
1679
  class AuthenticateSubjectRequest {
1431
- constructor(kwargs) {
1432
- if (!kwargs) {
1433
- return;
1434
- }
1435
- Object.assign(this, kwargs);
1436
- }
1437
1680
  static fromProto(proto) {
1438
1681
  let m = new AuthenticateSubjectRequest();
1439
1682
  m = Object.assign(m, proto);
@@ -1442,6 +1685,12 @@ class AuthenticateSubjectRequest {
1442
1685
  }
1443
1686
  return m;
1444
1687
  }
1688
+ constructor(kwargs) {
1689
+ if (!kwargs) {
1690
+ return;
1691
+ }
1692
+ Object.assign(this, kwargs);
1693
+ }
1445
1694
  toApiJson() {
1446
1695
  const toReturn = {};
1447
1696
  if (typeof this.context !== 'undefined' && this.context !== null) {
@@ -1457,12 +1706,6 @@ class AuthenticateSubjectRequest {
1457
1706
  }
1458
1707
  }
1459
1708
  class ChangeSubjectEmailRequest {
1460
- constructor(kwargs) {
1461
- if (!kwargs) {
1462
- return;
1463
- }
1464
- Object.assign(this, kwargs);
1465
- }
1466
1709
  static fromProto(proto) {
1467
1710
  let m = new ChangeSubjectEmailRequest();
1468
1711
  m = Object.assign(m, proto);
@@ -1471,6 +1714,12 @@ class ChangeSubjectEmailRequest {
1471
1714
  }
1472
1715
  return m;
1473
1716
  }
1717
+ constructor(kwargs) {
1718
+ if (!kwargs) {
1719
+ return;
1720
+ }
1721
+ Object.assign(this, kwargs);
1722
+ }
1474
1723
  toApiJson() {
1475
1724
  const toReturn = {};
1476
1725
  if (typeof this.context !== 'undefined' && this.context !== null) {
@@ -1486,12 +1735,6 @@ class ChangeSubjectEmailRequest {
1486
1735
  }
1487
1736
  }
1488
1737
  class CreateExternalIDRequest {
1489
- constructor(kwargs) {
1490
- if (!kwargs) {
1491
- return;
1492
- }
1493
- Object.assign(this, kwargs);
1494
- }
1495
1738
  static fromProto(proto) {
1496
1739
  let m = new CreateExternalIDRequest();
1497
1740
  m = Object.assign(m, proto);
@@ -1503,6 +1746,12 @@ class CreateExternalIDRequest {
1503
1746
  }
1504
1747
  return m;
1505
1748
  }
1749
+ constructor(kwargs) {
1750
+ if (!kwargs) {
1751
+ return;
1752
+ }
1753
+ Object.assign(this, kwargs);
1754
+ }
1506
1755
  toApiJson() {
1507
1756
  const toReturn = {};
1508
1757
  if (typeof this.userIdentifier !== 'undefined' && this.userIdentifier !== null) {
@@ -1515,12 +1764,6 @@ class CreateExternalIDRequest {
1515
1764
  }
1516
1765
  }
1517
1766
  class CreateSessionRequest {
1518
- constructor(kwargs) {
1519
- if (!kwargs) {
1520
- return;
1521
- }
1522
- Object.assign(this, kwargs);
1523
- }
1524
1767
  static fromProto(proto) {
1525
1768
  let m = new CreateSessionRequest();
1526
1769
  m = Object.assign(m, proto);
@@ -1535,6 +1778,12 @@ class CreateSessionRequest {
1535
1778
  }
1536
1779
  return m;
1537
1780
  }
1781
+ constructor(kwargs) {
1782
+ if (!kwargs) {
1783
+ return;
1784
+ }
1785
+ Object.assign(this, kwargs);
1786
+ }
1538
1787
  toApiJson() {
1539
1788
  const toReturn = {};
1540
1789
  if (typeof this.context !== 'undefined' && this.context !== null) {
@@ -1550,17 +1799,17 @@ class CreateSessionRequest {
1550
1799
  }
1551
1800
  }
1552
1801
  class CreateSessionResponse {
1802
+ static fromProto(proto) {
1803
+ let m = new CreateSessionResponse();
1804
+ m = Object.assign(m, proto);
1805
+ return m;
1806
+ }
1553
1807
  constructor(kwargs) {
1554
1808
  if (!kwargs) {
1555
1809
  return;
1556
1810
  }
1557
1811
  Object.assign(this, kwargs);
1558
1812
  }
1559
- static fromProto(proto) {
1560
- let m = new CreateSessionResponse();
1561
- m = Object.assign(m, proto);
1562
- return m;
1563
- }
1564
1813
  toApiJson() {
1565
1814
  const toReturn = {};
1566
1815
  if (typeof this.session !== 'undefined') {
@@ -1570,12 +1819,6 @@ class CreateSessionResponse {
1570
1819
  }
1571
1820
  }
1572
1821
  class CreateTemporarySubjectRequest {
1573
- constructor(kwargs) {
1574
- if (!kwargs) {
1575
- return;
1576
- }
1577
- Object.assign(this, kwargs);
1578
- }
1579
1822
  static fromProto(proto) {
1580
1823
  let m = new CreateTemporarySubjectRequest();
1581
1824
  m = Object.assign(m, proto);
@@ -1587,6 +1830,12 @@ class CreateTemporarySubjectRequest {
1587
1830
  }
1588
1831
  return m;
1589
1832
  }
1833
+ constructor(kwargs) {
1834
+ if (!kwargs) {
1835
+ return;
1836
+ }
1837
+ Object.assign(this, kwargs);
1838
+ }
1590
1839
  toApiJson() {
1591
1840
  const toReturn = {};
1592
1841
  if (typeof this.context !== 'undefined' && this.context !== null) {
@@ -1602,17 +1851,17 @@ class CreateTemporarySubjectRequest {
1602
1851
  }
1603
1852
  }
1604
1853
  class CreateTemporarySubjectResponse {
1854
+ static fromProto(proto) {
1855
+ let m = new CreateTemporarySubjectResponse();
1856
+ m = Object.assign(m, proto);
1857
+ return m;
1858
+ }
1605
1859
  constructor(kwargs) {
1606
1860
  if (!kwargs) {
1607
1861
  return;
1608
1862
  }
1609
1863
  Object.assign(this, kwargs);
1610
1864
  }
1611
- static fromProto(proto) {
1612
- let m = new CreateTemporarySubjectResponse();
1613
- m = Object.assign(m, proto);
1614
- return m;
1615
- }
1616
1865
  toApiJson() {
1617
1866
  const toReturn = {};
1618
1867
  if (typeof this.session !== 'undefined') {
@@ -1622,12 +1871,6 @@ class CreateTemporarySubjectResponse {
1622
1871
  }
1623
1872
  }
1624
1873
  class DeleteSubjectRequest {
1625
- constructor(kwargs) {
1626
- if (!kwargs) {
1627
- return;
1628
- }
1629
- Object.assign(this, kwargs);
1630
- }
1631
1874
  static fromProto(proto) {
1632
1875
  let m = new DeleteSubjectRequest();
1633
1876
  m = Object.assign(m, proto);
@@ -1636,6 +1879,12 @@ class DeleteSubjectRequest {
1636
1879
  }
1637
1880
  return m;
1638
1881
  }
1882
+ constructor(kwargs) {
1883
+ if (!kwargs) {
1884
+ return;
1885
+ }
1886
+ Object.assign(this, kwargs);
1887
+ }
1639
1888
  toApiJson() {
1640
1889
  const toReturn = {};
1641
1890
  if (typeof this.context !== 'undefined' && this.context !== null) {
@@ -1648,12 +1897,6 @@ class DeleteSubjectRequest {
1648
1897
  }
1649
1898
  }
1650
1899
  class DeleteUserRequest {
1651
- constructor(kwargs) {
1652
- if (!kwargs) {
1653
- return;
1654
- }
1655
- Object.assign(this, kwargs);
1656
- }
1657
1900
  static fromProto(proto) {
1658
1901
  let m = new DeleteUserRequest();
1659
1902
  m = Object.assign(m, proto);
@@ -1662,6 +1905,12 @@ class DeleteUserRequest {
1662
1905
  }
1663
1906
  return m;
1664
1907
  }
1908
+ constructor(kwargs) {
1909
+ if (!kwargs) {
1910
+ return;
1911
+ }
1912
+ Object.assign(this, kwargs);
1913
+ }
1665
1914
  toApiJson() {
1666
1915
  const toReturn = {};
1667
1916
  if (typeof this.userIdentifier !== 'undefined' && this.userIdentifier !== null) {
@@ -1671,17 +1920,17 @@ class DeleteUserRequest {
1671
1920
  }
1672
1921
  }
1673
1922
  class ListSecurityLogsRequestFilters {
1923
+ static fromProto(proto) {
1924
+ let m = new ListSecurityLogsRequestFilters();
1925
+ m = Object.assign(m, proto);
1926
+ return m;
1927
+ }
1674
1928
  constructor(kwargs) {
1675
1929
  if (!kwargs) {
1676
1930
  return;
1677
1931
  }
1678
1932
  Object.assign(this, kwargs);
1679
1933
  }
1680
- static fromProto(proto) {
1681
- let m = new ListSecurityLogsRequestFilters();
1682
- m = Object.assign(m, proto);
1683
- return m;
1684
- }
1685
1934
  toApiJson() {
1686
1935
  const toReturn = {};
1687
1936
  if (typeof this.actionId !== 'undefined') {
@@ -1691,12 +1940,6 @@ class ListSecurityLogsRequestFilters {
1691
1940
  }
1692
1941
  }
1693
1942
  class GetImpersonationTokenRequest {
1694
- constructor(kwargs) {
1695
- if (!kwargs) {
1696
- return;
1697
- }
1698
- Object.assign(this, kwargs);
1699
- }
1700
1943
  static fromProto(proto) {
1701
1944
  let m = new GetImpersonationTokenRequest();
1702
1945
  m = Object.assign(m, proto);
@@ -1708,6 +1951,12 @@ class GetImpersonationTokenRequest {
1708
1951
  }
1709
1952
  return m;
1710
1953
  }
1954
+ constructor(kwargs) {
1955
+ if (!kwargs) {
1956
+ return;
1957
+ }
1958
+ Object.assign(this, kwargs);
1959
+ }
1711
1960
  toApiJson() {
1712
1961
  const toReturn = {};
1713
1962
  if (typeof this.impersonatee !== 'undefined' && this.impersonatee !== null) {
@@ -1720,17 +1969,17 @@ class GetImpersonationTokenRequest {
1720
1969
  }
1721
1970
  }
1722
1971
  class GetImpersonationTokenResponse {
1972
+ static fromProto(proto) {
1973
+ let m = new GetImpersonationTokenResponse();
1974
+ m = Object.assign(m, proto);
1975
+ return m;
1976
+ }
1723
1977
  constructor(kwargs) {
1724
1978
  if (!kwargs) {
1725
1979
  return;
1726
1980
  }
1727
1981
  Object.assign(this, kwargs);
1728
1982
  }
1729
- static fromProto(proto) {
1730
- let m = new GetImpersonationTokenResponse();
1731
- m = Object.assign(m, proto);
1732
- return m;
1733
- }
1734
1983
  toApiJson() {
1735
1984
  const toReturn = {};
1736
1985
  if (typeof this.token !== 'undefined') {
@@ -1740,12 +1989,6 @@ class GetImpersonationTokenResponse {
1740
1989
  }
1741
1990
  }
1742
1991
  class GetMultiExternalIDRequest {
1743
- constructor(kwargs) {
1744
- if (!kwargs) {
1745
- return;
1746
- }
1747
- Object.assign(this, kwargs);
1748
- }
1749
1992
  static fromProto(proto) {
1750
1993
  let m = new GetMultiExternalIDRequest();
1751
1994
  m = Object.assign(m, proto);
@@ -1754,6 +1997,12 @@ class GetMultiExternalIDRequest {
1754
1997
  }
1755
1998
  return m;
1756
1999
  }
2000
+ constructor(kwargs) {
2001
+ if (!kwargs) {
2002
+ return;
2003
+ }
2004
+ Object.assign(this, kwargs);
2005
+ }
1757
2006
  toApiJson() {
1758
2007
  const toReturn = {};
1759
2008
  if (typeof this.userIdentifiers !== 'undefined' && this.userIdentifiers !== null) {
@@ -1766,17 +2015,17 @@ class GetMultiExternalIDRequest {
1766
2015
  }
1767
2016
  }
1768
2017
  class GetMultiExternalIDResponse {
2018
+ static fromProto(proto) {
2019
+ let m = new GetMultiExternalIDResponse();
2020
+ m = Object.assign(m, proto);
2021
+ return m;
2022
+ }
1769
2023
  constructor(kwargs) {
1770
2024
  if (!kwargs) {
1771
2025
  return;
1772
2026
  }
1773
2027
  Object.assign(this, kwargs);
1774
2028
  }
1775
- static fromProto(proto) {
1776
- let m = new GetMultiExternalIDResponse();
1777
- m = Object.assign(m, proto);
1778
- return m;
1779
- }
1780
2029
  toApiJson() {
1781
2030
  const toReturn = {};
1782
2031
  if (typeof this.externalIds !== 'undefined') {
@@ -1786,12 +2035,6 @@ class GetMultiExternalIDResponse {
1786
2035
  }
1787
2036
  }
1788
2037
  class GetMultiUsersRequest {
1789
- constructor(kwargs) {
1790
- if (!kwargs) {
1791
- return;
1792
- }
1793
- Object.assign(this, kwargs);
1794
- }
1795
2038
  static fromProto(proto) {
1796
2039
  let m = new GetMultiUsersRequest();
1797
2040
  m = Object.assign(m, proto);
@@ -1800,6 +2043,12 @@ class GetMultiUsersRequest {
1800
2043
  }
1801
2044
  return m;
1802
2045
  }
2046
+ constructor(kwargs) {
2047
+ if (!kwargs) {
2048
+ return;
2049
+ }
2050
+ Object.assign(this, kwargs);
2051
+ }
1803
2052
  toApiJson() {
1804
2053
  const toReturn = {};
1805
2054
  if (typeof this.userIdentifiers !== 'undefined' && this.userIdentifiers !== null) {
@@ -1807,14 +2056,8 @@ class GetMultiUsersRequest {
1807
2056
  }
1808
2057
  return toReturn;
1809
2058
  }
1810
- }
1811
- class GetMultiUsersResponse {
1812
- constructor(kwargs) {
1813
- if (!kwargs) {
1814
- return;
1815
- }
1816
- Object.assign(this, kwargs);
1817
- }
2059
+ }
2060
+ class GetMultiUsersResponse {
1818
2061
  static fromProto(proto) {
1819
2062
  let m = new GetMultiUsersResponse();
1820
2063
  m = Object.assign(m, proto);
@@ -1823,6 +2066,12 @@ class GetMultiUsersResponse {
1823
2066
  }
1824
2067
  return m;
1825
2068
  }
2069
+ constructor(kwargs) {
2070
+ if (!kwargs) {
2071
+ return;
2072
+ }
2073
+ Object.assign(this, kwargs);
2074
+ }
1826
2075
  toApiJson() {
1827
2076
  const toReturn = {};
1828
2077
  if (typeof this.users !== 'undefined' && this.users !== null) {
@@ -1832,12 +2081,6 @@ class GetMultiUsersResponse {
1832
2081
  }
1833
2082
  }
1834
2083
  class GetResetPasswordTokenRequest {
1835
- constructor(kwargs) {
1836
- if (!kwargs) {
1837
- return;
1838
- }
1839
- Object.assign(this, kwargs);
1840
- }
1841
2084
  static fromProto(proto) {
1842
2085
  let m = new GetResetPasswordTokenRequest();
1843
2086
  m = Object.assign(m, proto);
@@ -1849,6 +2092,12 @@ class GetResetPasswordTokenRequest {
1849
2092
  }
1850
2093
  return m;
1851
2094
  }
2095
+ constructor(kwargs) {
2096
+ if (!kwargs) {
2097
+ return;
2098
+ }
2099
+ Object.assign(this, kwargs);
2100
+ }
1852
2101
  toApiJson() {
1853
2102
  const toReturn = {};
1854
2103
  if (typeof this.context !== 'undefined' && this.context !== null) {
@@ -1864,17 +2113,17 @@ class GetResetPasswordTokenRequest {
1864
2113
  }
1865
2114
  }
1866
2115
  class GetSessionTokenRequest {
2116
+ static fromProto(proto) {
2117
+ let m = new GetSessionTokenRequest();
2118
+ m = Object.assign(m, proto);
2119
+ return m;
2120
+ }
1867
2121
  constructor(kwargs) {
1868
2122
  if (!kwargs) {
1869
2123
  return;
1870
2124
  }
1871
2125
  Object.assign(this, kwargs);
1872
2126
  }
1873
- static fromProto(proto) {
1874
- let m = new GetSessionTokenRequest();
1875
- m = Object.assign(m, proto);
1876
- return m;
1877
- }
1878
2127
  toApiJson() {
1879
2128
  const toReturn = {};
1880
2129
  if (typeof this.token !== 'undefined') {
@@ -1884,12 +2133,6 @@ class GetSessionTokenRequest {
1884
2133
  }
1885
2134
  }
1886
2135
  class GetShortLivedTokenRequest {
1887
- constructor(kwargs) {
1888
- if (!kwargs) {
1889
- return;
1890
- }
1891
- Object.assign(this, kwargs);
1892
- }
1893
2136
  static fromProto(proto) {
1894
2137
  let m = new GetShortLivedTokenRequest();
1895
2138
  m = Object.assign(m, proto);
@@ -1898,6 +2141,12 @@ class GetShortLivedTokenRequest {
1898
2141
  }
1899
2142
  return m;
1900
2143
  }
2144
+ constructor(kwargs) {
2145
+ if (!kwargs) {
2146
+ return;
2147
+ }
2148
+ Object.assign(this, kwargs);
2149
+ }
1901
2150
  toApiJson() {
1902
2151
  const toReturn = {};
1903
2152
  if (typeof this.context !== 'undefined' && this.context !== null) {
@@ -1910,12 +2159,6 @@ class GetShortLivedTokenRequest {
1910
2159
  }
1911
2160
  }
1912
2161
  class GetSubjectBySessionRequest {
1913
- constructor(kwargs) {
1914
- if (!kwargs) {
1915
- return;
1916
- }
1917
- Object.assign(this, kwargs);
1918
- }
1919
2162
  static fromProto(proto) {
1920
2163
  let m = new GetSubjectBySessionRequest();
1921
2164
  m = Object.assign(m, proto);
@@ -1924,6 +2167,12 @@ class GetSubjectBySessionRequest {
1924
2167
  }
1925
2168
  return m;
1926
2169
  }
2170
+ constructor(kwargs) {
2171
+ if (!kwargs) {
2172
+ return;
2173
+ }
2174
+ Object.assign(this, kwargs);
2175
+ }
1927
2176
  toApiJson() {
1928
2177
  const toReturn = {};
1929
2178
  if (typeof this.session !== 'undefined') {
@@ -1936,17 +2185,17 @@ class GetSubjectBySessionRequest {
1936
2185
  }
1937
2186
  }
1938
2187
  class GetSubjectContextRequest {
2188
+ static fromProto(proto) {
2189
+ let m = new GetSubjectContextRequest();
2190
+ m = Object.assign(m, proto);
2191
+ return m;
2192
+ }
1939
2193
  constructor(kwargs) {
1940
2194
  if (!kwargs) {
1941
2195
  return;
1942
2196
  }
1943
2197
  Object.assign(this, kwargs);
1944
2198
  }
1945
- static fromProto(proto) {
1946
- let m = new GetSubjectContextRequest();
1947
- m = Object.assign(m, proto);
1948
- return m;
1949
- }
1950
2199
  toApiJson() {
1951
2200
  const toReturn = {};
1952
2201
  if (typeof this.subjectId !== 'undefined') {
@@ -1956,12 +2205,6 @@ class GetSubjectContextRequest {
1956
2205
  }
1957
2206
  }
1958
2207
  class GetSubjectContextResponse {
1959
- constructor(kwargs) {
1960
- if (!kwargs) {
1961
- return;
1962
- }
1963
- Object.assign(this, kwargs);
1964
- }
1965
2208
  static fromProto(proto) {
1966
2209
  let m = new GetSubjectContextResponse();
1967
2210
  m = Object.assign(m, proto);
@@ -1970,6 +2213,12 @@ class GetSubjectContextResponse {
1970
2213
  }
1971
2214
  return m;
1972
2215
  }
2216
+ constructor(kwargs) {
2217
+ if (!kwargs) {
2218
+ return;
2219
+ }
2220
+ Object.assign(this, kwargs);
2221
+ }
1973
2222
  toApiJson() {
1974
2223
  const toReturn = {};
1975
2224
  if (typeof this.context !== 'undefined' && this.context !== null) {
@@ -1979,12 +2228,6 @@ class GetSubjectContextResponse {
1979
2228
  }
1980
2229
  }
1981
2230
  class GetSubjectResponse {
1982
- constructor(kwargs) {
1983
- if (!kwargs) {
1984
- return;
1985
- }
1986
- Object.assign(this, kwargs);
1987
- }
1988
2231
  static fromProto(proto) {
1989
2232
  let m = new GetSubjectResponse();
1990
2233
  m = Object.assign(m, proto);
@@ -1993,6 +2236,12 @@ class GetSubjectResponse {
1993
2236
  }
1994
2237
  return m;
1995
2238
  }
2239
+ constructor(kwargs) {
2240
+ if (!kwargs) {
2241
+ return;
2242
+ }
2243
+ Object.assign(this, kwargs);
2244
+ }
1996
2245
  toApiJson() {
1997
2246
  const toReturn = {};
1998
2247
  if (typeof this.subject !== 'undefined' && this.subject !== null) {
@@ -2002,12 +2251,6 @@ class GetSubjectResponse {
2002
2251
  }
2003
2252
  }
2004
2253
  class GetSubjectsByEmailRequest {
2005
- constructor(kwargs) {
2006
- if (!kwargs) {
2007
- return;
2008
- }
2009
- Object.assign(this, kwargs);
2010
- }
2011
2254
  static fromProto(proto) {
2012
2255
  let m = new GetSubjectsByEmailRequest();
2013
2256
  m = Object.assign(m, proto);
@@ -2019,6 +2262,12 @@ class GetSubjectsByEmailRequest {
2019
2262
  }
2020
2263
  return m;
2021
2264
  }
2265
+ constructor(kwargs) {
2266
+ if (!kwargs) {
2267
+ return;
2268
+ }
2269
+ Object.assign(this, kwargs);
2270
+ }
2022
2271
  toApiJson() {
2023
2272
  const toReturn = {};
2024
2273
  if (typeof this.context !== 'undefined' && this.context !== null) {
@@ -2034,12 +2283,6 @@ class GetSubjectsByEmailRequest {
2034
2283
  }
2035
2284
  }
2036
2285
  class GetSubjectsRequest {
2037
- constructor(kwargs) {
2038
- if (!kwargs) {
2039
- return;
2040
- }
2041
- Object.assign(this, kwargs);
2042
- }
2043
2286
  static fromProto(proto) {
2044
2287
  let m = new GetSubjectsRequest();
2045
2288
  m = Object.assign(m, proto);
@@ -2054,6 +2297,12 @@ class GetSubjectsRequest {
2054
2297
  }
2055
2298
  return m;
2056
2299
  }
2300
+ constructor(kwargs) {
2301
+ if (!kwargs) {
2302
+ return;
2303
+ }
2304
+ Object.assign(this, kwargs);
2305
+ }
2057
2306
  toApiJson() {
2058
2307
  const toReturn = {};
2059
2308
  if (typeof this.context !== 'undefined' && this.context !== null) {
@@ -2072,12 +2321,6 @@ class GetSubjectsRequest {
2072
2321
  }
2073
2322
  }
2074
2323
  class GetSubjectsResponse {
2075
- constructor(kwargs) {
2076
- if (!kwargs) {
2077
- return;
2078
- }
2079
- Object.assign(this, kwargs);
2080
- }
2081
2324
  static fromProto(proto) {
2082
2325
  let m = new GetSubjectsResponse();
2083
2326
  m = Object.assign(m, proto);
@@ -2086,6 +2329,12 @@ class GetSubjectsResponse {
2086
2329
  }
2087
2330
  return m;
2088
2331
  }
2332
+ constructor(kwargs) {
2333
+ if (!kwargs) {
2334
+ return;
2335
+ }
2336
+ Object.assign(this, kwargs);
2337
+ }
2089
2338
  toApiJson() {
2090
2339
  const toReturn = {};
2091
2340
  if (typeof this.subjects !== 'undefined' && this.subjects !== null) {
@@ -2112,17 +2361,17 @@ class GetTokenRequest {
2112
2361
  }
2113
2362
  }
2114
2363
  class GetTokenResponse {
2364
+ static fromProto(proto) {
2365
+ let m = new GetTokenResponse();
2366
+ m = Object.assign(m, proto);
2367
+ return m;
2368
+ }
2115
2369
  constructor(kwargs) {
2116
2370
  if (!kwargs) {
2117
2371
  return;
2118
2372
  }
2119
2373
  Object.assign(this, kwargs);
2120
2374
  }
2121
- static fromProto(proto) {
2122
- let m = new GetTokenResponse();
2123
- m = Object.assign(m, proto);
2124
- return m;
2125
- }
2126
2375
  toApiJson() {
2127
2376
  const toReturn = {};
2128
2377
  if (typeof this.token !== 'undefined') {
@@ -2132,12 +2381,6 @@ class GetTokenResponse {
2132
2381
  }
2133
2382
  }
2134
2383
  class IAMListPersonasRequest {
2135
- constructor(kwargs) {
2136
- if (!kwargs) {
2137
- return;
2138
- }
2139
- Object.assign(this, kwargs);
2140
- }
2141
2384
  static fromProto(proto) {
2142
2385
  let m = new IAMListPersonasRequest();
2143
2386
  m = Object.assign(m, proto);
@@ -2149,6 +2392,12 @@ class IAMListPersonasRequest {
2149
2392
  }
2150
2393
  return m;
2151
2394
  }
2395
+ constructor(kwargs) {
2396
+ if (!kwargs) {
2397
+ return;
2398
+ }
2399
+ Object.assign(this, kwargs);
2400
+ }
2152
2401
  toApiJson() {
2153
2402
  const toReturn = {};
2154
2403
  if (typeof this.userIdentifier !== 'undefined' && this.userIdentifier !== null) {
@@ -2173,12 +2422,6 @@ class IAMListPersonasRequest {
2173
2422
  }
2174
2423
  }
2175
2424
  class ListPersonasByEmailRequest {
2176
- constructor(kwargs) {
2177
- if (!kwargs) {
2178
- return;
2179
- }
2180
- Object.assign(this, kwargs);
2181
- }
2182
2425
  static fromProto(proto) {
2183
2426
  let m = new ListPersonasByEmailRequest();
2184
2427
  m = Object.assign(m, proto);
@@ -2187,6 +2430,12 @@ class ListPersonasByEmailRequest {
2187
2430
  }
2188
2431
  return m;
2189
2432
  }
2433
+ constructor(kwargs) {
2434
+ if (!kwargs) {
2435
+ return;
2436
+ }
2437
+ Object.assign(this, kwargs);
2438
+ }
2190
2439
  toApiJson() {
2191
2440
  const toReturn = {};
2192
2441
  if (typeof this.email !== 'undefined') {
@@ -2208,12 +2457,6 @@ class ListPersonasByEmailRequest {
2208
2457
  }
2209
2458
  }
2210
2459
  class ListPersonasRequest {
2211
- constructor(kwargs) {
2212
- if (!kwargs) {
2213
- return;
2214
- }
2215
- Object.assign(this, kwargs);
2216
- }
2217
2460
  static fromProto(proto) {
2218
2461
  let m = new ListPersonasRequest();
2219
2462
  m = Object.assign(m, proto);
@@ -2222,6 +2465,12 @@ class ListPersonasRequest {
2222
2465
  }
2223
2466
  return m;
2224
2467
  }
2468
+ constructor(kwargs) {
2469
+ if (!kwargs) {
2470
+ return;
2471
+ }
2472
+ Object.assign(this, kwargs);
2473
+ }
2225
2474
  toApiJson() {
2226
2475
  const toReturn = {};
2227
2476
  if (typeof this.session !== 'undefined') {
@@ -2243,12 +2492,6 @@ class ListPersonasRequest {
2243
2492
  }
2244
2493
  }
2245
2494
  class ListPersonasResponse {
2246
- constructor(kwargs) {
2247
- if (!kwargs) {
2248
- return;
2249
- }
2250
- Object.assign(this, kwargs);
2251
- }
2252
2495
  static fromProto(proto) {
2253
2496
  let m = new ListPersonasResponse();
2254
2497
  m = Object.assign(m, proto);
@@ -2257,6 +2500,12 @@ class ListPersonasResponse {
2257
2500
  }
2258
2501
  return m;
2259
2502
  }
2503
+ constructor(kwargs) {
2504
+ if (!kwargs) {
2505
+ return;
2506
+ }
2507
+ Object.assign(this, kwargs);
2508
+ }
2260
2509
  toApiJson() {
2261
2510
  const toReturn = {};
2262
2511
  if (typeof this.personas !== 'undefined' && this.personas !== null) {
@@ -2272,12 +2521,6 @@ class ListPersonasResponse {
2272
2521
  }
2273
2522
  }
2274
2523
  class ListSecurityLogsRequest {
2275
- constructor(kwargs) {
2276
- if (!kwargs) {
2277
- return;
2278
- }
2279
- Object.assign(this, kwargs);
2280
- }
2281
2524
  static fromProto(proto) {
2282
2525
  let m = new ListSecurityLogsRequest();
2283
2526
  m = Object.assign(m, proto);
@@ -2289,6 +2532,12 @@ class ListSecurityLogsRequest {
2289
2532
  }
2290
2533
  return m;
2291
2534
  }
2535
+ constructor(kwargs) {
2536
+ if (!kwargs) {
2537
+ return;
2538
+ }
2539
+ Object.assign(this, kwargs);
2540
+ }
2292
2541
  toApiJson() {
2293
2542
  const toReturn = {};
2294
2543
  if (typeof this.userId !== 'undefined') {
@@ -2307,12 +2556,6 @@ class ListSecurityLogsRequest {
2307
2556
  }
2308
2557
  }
2309
2558
  class ListSecurityLogsResponse {
2310
- constructor(kwargs) {
2311
- if (!kwargs) {
2312
- return;
2313
- }
2314
- Object.assign(this, kwargs);
2315
- }
2316
2559
  static fromProto(proto) {
2317
2560
  let m = new ListSecurityLogsResponse();
2318
2561
  m = Object.assign(m, proto);
@@ -2321,6 +2564,12 @@ class ListSecurityLogsResponse {
2321
2564
  }
2322
2565
  return m;
2323
2566
  }
2567
+ constructor(kwargs) {
2568
+ if (!kwargs) {
2569
+ return;
2570
+ }
2571
+ Object.assign(this, kwargs);
2572
+ }
2324
2573
  toApiJson() {
2325
2574
  const toReturn = {};
2326
2575
  if (typeof this.logs !== 'undefined' && this.logs !== null) {
@@ -2336,12 +2585,6 @@ class ListSecurityLogsResponse {
2336
2585
  }
2337
2586
  }
2338
2587
  class ListUsersRequest {
2339
- constructor(kwargs) {
2340
- if (!kwargs) {
2341
- return;
2342
- }
2343
- Object.assign(this, kwargs);
2344
- }
2345
2588
  static fromProto(proto) {
2346
2589
  let m = new ListUsersRequest();
2347
2590
  m = Object.assign(m, proto);
@@ -2356,6 +2599,12 @@ class ListUsersRequest {
2356
2599
  }
2357
2600
  return m;
2358
2601
  }
2602
+ constructor(kwargs) {
2603
+ if (!kwargs) {
2604
+ return;
2605
+ }
2606
+ Object.assign(this, kwargs);
2607
+ }
2359
2608
  toApiJson() {
2360
2609
  const toReturn = {};
2361
2610
  if (typeof this.namespace !== 'undefined') {
@@ -2380,12 +2629,6 @@ class ListUsersRequest {
2380
2629
  }
2381
2630
  }
2382
2631
  class ListUsersResponse {
2383
- constructor(kwargs) {
2384
- if (!kwargs) {
2385
- return;
2386
- }
2387
- Object.assign(this, kwargs);
2388
- }
2389
2632
  static fromProto(proto) {
2390
2633
  let m = new ListUsersResponse();
2391
2634
  m = Object.assign(m, proto);
@@ -2394,6 +2637,12 @@ class ListUsersResponse {
2394
2637
  }
2395
2638
  return m;
2396
2639
  }
2640
+ constructor(kwargs) {
2641
+ if (!kwargs) {
2642
+ return;
2643
+ }
2644
+ Object.assign(this, kwargs);
2645
+ }
2397
2646
  toApiJson() {
2398
2647
  const toReturn = {};
2399
2648
  if (typeof this.users !== 'undefined' && this.users !== null) {
@@ -2409,12 +2658,6 @@ class ListUsersResponse {
2409
2658
  }
2410
2659
  }
2411
2660
  class MutateAttributesRequest {
2412
- constructor(kwargs) {
2413
- if (!kwargs) {
2414
- return;
2415
- }
2416
- Object.assign(this, kwargs);
2417
- }
2418
2661
  static fromProto(proto) {
2419
2662
  let m = new MutateAttributesRequest();
2420
2663
  m = Object.assign(m, proto);
@@ -2426,6 +2669,12 @@ class MutateAttributesRequest {
2426
2669
  }
2427
2670
  return m;
2428
2671
  }
2672
+ constructor(kwargs) {
2673
+ if (!kwargs) {
2674
+ return;
2675
+ }
2676
+ Object.assign(this, kwargs);
2677
+ }
2429
2678
  toApiJson() {
2430
2679
  const toReturn = {};
2431
2680
  if (typeof this.context !== 'undefined' && this.context !== null) {
@@ -2441,17 +2690,17 @@ class MutateAttributesRequest {
2441
2690
  }
2442
2691
  }
2443
2692
  class OAuthCredentials {
2693
+ static fromProto(proto) {
2694
+ let m = new OAuthCredentials();
2695
+ m = Object.assign(m, proto);
2696
+ return m;
2697
+ }
2444
2698
  constructor(kwargs) {
2445
2699
  if (!kwargs) {
2446
2700
  return;
2447
2701
  }
2448
2702
  Object.assign(this, kwargs);
2449
2703
  }
2450
- static fromProto(proto) {
2451
- let m = new OAuthCredentials();
2452
- m = Object.assign(m, proto);
2453
- return m;
2454
- }
2455
2704
  toApiJson() {
2456
2705
  const toReturn = {};
2457
2706
  if (typeof this.provider !== 'undefined') {
@@ -2467,17 +2716,17 @@ class OAuthCredentials {
2467
2716
  }
2468
2717
  }
2469
2718
  class UpdateUserRequestOperation {
2719
+ static fromProto(proto) {
2720
+ let m = new UpdateUserRequestOperation();
2721
+ m = Object.assign(m, proto);
2722
+ return m;
2723
+ }
2470
2724
  constructor(kwargs) {
2471
2725
  if (!kwargs) {
2472
2726
  return;
2473
2727
  }
2474
2728
  Object.assign(this, kwargs);
2475
2729
  }
2476
- static fromProto(proto) {
2477
- let m = new UpdateUserRequestOperation();
2478
- m = Object.assign(m, proto);
2479
- return m;
2480
- }
2481
2730
  toApiJson() {
2482
2731
  const toReturn = {};
2483
2732
  if (typeof this.firstName !== 'undefined') {
@@ -2496,12 +2745,6 @@ class UpdateUserRequestOperation {
2496
2745
  }
2497
2746
  }
2498
2747
  class RegisterPolicyRequest {
2499
- constructor(kwargs) {
2500
- if (!kwargs) {
2501
- return;
2502
- }
2503
- Object.assign(this, kwargs);
2504
- }
2505
2748
  static fromProto(proto) {
2506
2749
  let m = new RegisterPolicyRequest();
2507
2750
  m = Object.assign(m, proto);
@@ -2510,6 +2753,12 @@ class RegisterPolicyRequest {
2510
2753
  }
2511
2754
  return m;
2512
2755
  }
2756
+ constructor(kwargs) {
2757
+ if (!kwargs) {
2758
+ return;
2759
+ }
2760
+ Object.assign(this, kwargs);
2761
+ }
2513
2762
  toApiJson() {
2514
2763
  const toReturn = {};
2515
2764
  if (typeof this.policy !== 'undefined' && this.policy !== null) {
@@ -2519,12 +2768,6 @@ class RegisterPolicyRequest {
2519
2768
  }
2520
2769
  }
2521
2770
  class RegisterResourceOwnerRequest {
2522
- constructor(kwargs) {
2523
- if (!kwargs) {
2524
- return;
2525
- }
2526
- Object.assign(this, kwargs);
2527
- }
2528
2771
  static fromProto(proto) {
2529
2772
  let m = new RegisterResourceOwnerRequest();
2530
2773
  m = Object.assign(m, proto);
@@ -2533,6 +2776,12 @@ class RegisterResourceOwnerRequest {
2533
2776
  }
2534
2777
  return m;
2535
2778
  }
2779
+ constructor(kwargs) {
2780
+ if (!kwargs) {
2781
+ return;
2782
+ }
2783
+ Object.assign(this, kwargs);
2784
+ }
2536
2785
  toApiJson() {
2537
2786
  const toReturn = {};
2538
2787
  if (typeof this.owner !== 'undefined' && this.owner !== null) {
@@ -2542,17 +2791,17 @@ class RegisterResourceOwnerRequest {
2542
2791
  }
2543
2792
  }
2544
2793
  class RegisterResourceRequest {
2794
+ static fromProto(proto) {
2795
+ let m = new RegisterResourceRequest();
2796
+ m = Object.assign(m, proto);
2797
+ return m;
2798
+ }
2545
2799
  constructor(kwargs) {
2546
2800
  if (!kwargs) {
2547
2801
  return;
2548
2802
  }
2549
2803
  Object.assign(this, kwargs);
2550
2804
  }
2551
- static fromProto(proto) {
2552
- let m = new RegisterResourceRequest();
2553
- m = Object.assign(m, proto);
2554
- return m;
2555
- }
2556
2805
  toApiJson() {
2557
2806
  const toReturn = {};
2558
2807
  if (typeof this.appId !== 'undefined') {
@@ -2577,12 +2826,6 @@ class RegisterResourceRequest {
2577
2826
  }
2578
2827
  }
2579
2828
  class RegisterSubjectRequest {
2580
- constructor(kwargs) {
2581
- if (!kwargs) {
2582
- return;
2583
- }
2584
- Object.assign(this, kwargs);
2585
- }
2586
2829
  static fromProto(proto) {
2587
2830
  let m = new RegisterSubjectRequest();
2588
2831
  m = Object.assign(m, proto);
@@ -2597,6 +2840,12 @@ class RegisterSubjectRequest {
2597
2840
  }
2598
2841
  return m;
2599
2842
  }
2843
+ constructor(kwargs) {
2844
+ if (!kwargs) {
2845
+ return;
2846
+ }
2847
+ Object.assign(this, kwargs);
2848
+ }
2600
2849
  toApiJson() {
2601
2850
  const toReturn = {};
2602
2851
  if (typeof this.context !== 'undefined' && this.context !== null) {
@@ -2618,17 +2867,17 @@ class RegisterSubjectRequest {
2618
2867
  }
2619
2868
  }
2620
2869
  class RegisterSubjectResponse {
2870
+ static fromProto(proto) {
2871
+ let m = new RegisterSubjectResponse();
2872
+ m = Object.assign(m, proto);
2873
+ return m;
2874
+ }
2621
2875
  constructor(kwargs) {
2622
2876
  if (!kwargs) {
2623
2877
  return;
2624
2878
  }
2625
2879
  Object.assign(this, kwargs);
2626
2880
  }
2627
- static fromProto(proto) {
2628
- let m = new RegisterSubjectResponse();
2629
- m = Object.assign(m, proto);
2630
- return m;
2631
- }
2632
2881
  toApiJson() {
2633
2882
  const toReturn = {};
2634
2883
  if (typeof this.subjectId !== 'undefined') {
@@ -2638,12 +2887,6 @@ class RegisterSubjectResponse {
2638
2887
  }
2639
2888
  }
2640
2889
  class RemoveKeyRequest {
2641
- constructor(kwargs) {
2642
- if (!kwargs) {
2643
- return;
2644
- }
2645
- Object.assign(this, kwargs);
2646
- }
2647
2890
  static fromProto(proto) {
2648
2891
  let m = new RemoveKeyRequest();
2649
2892
  m = Object.assign(m, proto);
@@ -2655,6 +2898,12 @@ class RemoveKeyRequest {
2655
2898
  }
2656
2899
  return m;
2657
2900
  }
2901
+ constructor(kwargs) {
2902
+ if (!kwargs) {
2903
+ return;
2904
+ }
2905
+ Object.assign(this, kwargs);
2906
+ }
2658
2907
  toApiJson() {
2659
2908
  const toReturn = {};
2660
2909
  if (typeof this.email !== 'undefined') {
@@ -2673,12 +2922,6 @@ class RemoveKeyRequest {
2673
2922
  }
2674
2923
  }
2675
2924
  class RemoveMultiUserRestrictionRequest {
2676
- constructor(kwargs) {
2677
- if (!kwargs) {
2678
- return;
2679
- }
2680
- Object.assign(this, kwargs);
2681
- }
2682
2925
  static fromProto(proto) {
2683
2926
  let m = new RemoveMultiUserRestrictionRequest();
2684
2927
  m = Object.assign(m, proto);
@@ -2690,6 +2933,12 @@ class RemoveMultiUserRestrictionRequest {
2690
2933
  }
2691
2934
  return m;
2692
2935
  }
2936
+ constructor(kwargs) {
2937
+ if (!kwargs) {
2938
+ return;
2939
+ }
2940
+ Object.assign(this, kwargs);
2941
+ }
2693
2942
  toApiJson() {
2694
2943
  const toReturn = {};
2695
2944
  if (typeof this.userIdentifiers !== 'undefined' && this.userIdentifiers !== null) {
@@ -2702,17 +2951,17 @@ class RemoveMultiUserRestrictionRequest {
2702
2951
  }
2703
2952
  }
2704
2953
  class ResetPasswordTokenResponse {
2954
+ static fromProto(proto) {
2955
+ let m = new ResetPasswordTokenResponse();
2956
+ m = Object.assign(m, proto);
2957
+ return m;
2958
+ }
2705
2959
  constructor(kwargs) {
2706
2960
  if (!kwargs) {
2707
2961
  return;
2708
2962
  }
2709
2963
  Object.assign(this, kwargs);
2710
2964
  }
2711
- static fromProto(proto) {
2712
- let m = new ResetPasswordTokenResponse();
2713
- m = Object.assign(m, proto);
2714
- return m;
2715
- }
2716
2965
  toApiJson() {
2717
2966
  const toReturn = {};
2718
2967
  if (typeof this.token !== 'undefined') {
@@ -2722,17 +2971,17 @@ class ResetPasswordTokenResponse {
2722
2971
  }
2723
2972
  }
2724
2973
  class ResetPasswordWithTokenRequest {
2974
+ static fromProto(proto) {
2975
+ let m = new ResetPasswordWithTokenRequest();
2976
+ m = Object.assign(m, proto);
2977
+ return m;
2978
+ }
2725
2979
  constructor(kwargs) {
2726
2980
  if (!kwargs) {
2727
2981
  return;
2728
2982
  }
2729
2983
  Object.assign(this, kwargs);
2730
2984
  }
2731
- static fromProto(proto) {
2732
- let m = new ResetPasswordWithTokenRequest();
2733
- m = Object.assign(m, proto);
2734
- return m;
2735
- }
2736
2985
  toApiJson() {
2737
2986
  const toReturn = {};
2738
2987
  if (typeof this.token !== 'undefined') {
@@ -2745,12 +2994,6 @@ class ResetPasswordWithTokenRequest {
2745
2994
  }
2746
2995
  }
2747
2996
  class ResetSubjectPasswordRequest {
2748
- constructor(kwargs) {
2749
- if (!kwargs) {
2750
- return;
2751
- }
2752
- Object.assign(this, kwargs);
2753
- }
2754
2997
  static fromProto(proto) {
2755
2998
  let m = new ResetSubjectPasswordRequest();
2756
2999
  m = Object.assign(m, proto);
@@ -2759,6 +3002,12 @@ class ResetSubjectPasswordRequest {
2759
3002
  }
2760
3003
  return m;
2761
3004
  }
3005
+ constructor(kwargs) {
3006
+ if (!kwargs) {
3007
+ return;
3008
+ }
3009
+ Object.assign(this, kwargs);
3010
+ }
2762
3011
  toApiJson() {
2763
3012
  const toReturn = {};
2764
3013
  if (typeof this.context !== 'undefined' && this.context !== null) {
@@ -2774,12 +3023,6 @@ class ResetSubjectPasswordRequest {
2774
3023
  }
2775
3024
  }
2776
3025
  class AccessResourceRequestResourceEntityIdentifierEntry {
2777
- constructor(kwargs) {
2778
- if (!kwargs) {
2779
- return;
2780
- }
2781
- Object.assign(this, kwargs);
2782
- }
2783
3026
  static fromProto(proto) {
2784
3027
  let m = new AccessResourceRequestResourceEntityIdentifierEntry();
2785
3028
  m = Object.assign(m, proto);
@@ -2788,6 +3031,12 @@ class AccessResourceRequestResourceEntityIdentifierEntry {
2788
3031
  }
2789
3032
  return m;
2790
3033
  }
3034
+ constructor(kwargs) {
3035
+ if (!kwargs) {
3036
+ return;
3037
+ }
3038
+ Object.assign(this, kwargs);
3039
+ }
2791
3040
  toApiJson() {
2792
3041
  const toReturn = {};
2793
3042
  if (typeof this.key !== 'undefined') {
@@ -2800,12 +3049,6 @@ class AccessResourceRequestResourceEntityIdentifierEntry {
2800
3049
  }
2801
3050
  }
2802
3051
  class SearchSubjectRequest {
2803
- constructor(kwargs) {
2804
- if (!kwargs) {
2805
- return;
2806
- }
2807
- Object.assign(this, kwargs);
2808
- }
2809
3052
  static fromProto(proto) {
2810
3053
  let m = new SearchSubjectRequest();
2811
3054
  m = Object.assign(m, proto);
@@ -2829,6 +3072,12 @@ class SearchSubjectRequest {
2829
3072
  }
2830
3073
  return m;
2831
3074
  }
3075
+ constructor(kwargs) {
3076
+ if (!kwargs) {
3077
+ return;
3078
+ }
3079
+ Object.assign(this, kwargs);
3080
+ }
2832
3081
  toApiJson() {
2833
3082
  const toReturn = {};
2834
3083
  if (typeof this.context !== 'undefined' && this.context !== null) {
@@ -2859,12 +3108,6 @@ class SearchSubjectRequest {
2859
3108
  }
2860
3109
  }
2861
3110
  class SearchSubjectResponse {
2862
- constructor(kwargs) {
2863
- if (!kwargs) {
2864
- return;
2865
- }
2866
- Object.assign(this, kwargs);
2867
- }
2868
3111
  static fromProto(proto) {
2869
3112
  let m = new SearchSubjectResponse();
2870
3113
  m = Object.assign(m, proto);
@@ -2876,480 +3119,236 @@ class SearchSubjectResponse {
2876
3119
  }
2877
3120
  return m;
2878
3121
  }
2879
- toApiJson() {
2880
- const toReturn = {};
2881
- if (typeof this.result !== 'undefined' && this.result !== null) {
2882
- toReturn['result'] = 'toApiJson' in this.result ? this.result.toApiJson() : this.result;
2883
- }
2884
- if (typeof this.nextCursor !== 'undefined') {
2885
- toReturn['nextCursor'] = this.nextCursor;
2886
- }
2887
- if (typeof this.hasMore !== 'undefined') {
2888
- toReturn['hasMore'] = this.hasMore;
2889
- }
2890
- if (typeof this.totalResults !== 'undefined') {
2891
- toReturn['totalResults'] = this.totalResults;
2892
- }
2893
- return toReturn;
2894
- }
2895
- }
2896
- class SendEmailVerificationRequest {
2897
- constructor(kwargs) {
2898
- if (!kwargs) {
2899
- return;
2900
- }
2901
- Object.assign(this, kwargs);
2902
- }
2903
- static fromProto(proto) {
2904
- let m = new SendEmailVerificationRequest();
2905
- m = Object.assign(m, proto);
2906
- return m;
2907
- }
2908
- toApiJson() {
2909
- const toReturn = {};
2910
- if (typeof this.userId !== 'undefined') {
2911
- toReturn['userId'] = this.userId;
2912
- }
2913
- return toReturn;
2914
- }
2915
- }
2916
- class SubjectCredentials {
2917
- constructor(kwargs) {
2918
- if (!kwargs) {
2919
- return;
2920
- }
2921
- Object.assign(this, kwargs);
2922
- }
2923
- static fromProto(proto) {
2924
- let m = new SubjectCredentials();
2925
- m = Object.assign(m, proto);
2926
- return m;
2927
- }
2928
- toApiJson() {
2929
- const toReturn = {};
2930
- if (typeof this.email !== 'undefined') {
2931
- toReturn['email'] = this.email;
2932
- }
2933
- if (typeof this.password !== 'undefined') {
2934
- toReturn['password'] = this.password;
2935
- }
2936
- return toReturn;
2937
- }
2938
- }
2939
- class UpdateUserRequest {
2940
- constructor(kwargs) {
2941
- if (!kwargs) {
2942
- return;
2943
- }
2944
- Object.assign(this, kwargs);
2945
- }
2946
- static fromProto(proto) {
2947
- let m = new UpdateUserRequest();
2948
- m = Object.assign(m, proto);
2949
- if (proto.operations) {
2950
- m.operations = proto.operations.map(UpdateUserRequestOperation.fromProto);
2951
- }
2952
- return m;
2953
- }
2954
- toApiJson() {
2955
- const toReturn = {};
2956
- if (typeof this.userId !== 'undefined') {
2957
- toReturn['userId'] = this.userId;
2958
- }
2959
- if (typeof this.operations !== 'undefined' && this.operations !== null) {
2960
- toReturn['operations'] = 'toApiJson' in this.operations ? this.operations.toApiJson() : this.operations;
2961
- }
2962
- return toReturn;
2963
- }
2964
- }
2965
- class GetMultiUsersResponseUserContainer {
2966
- constructor(kwargs) {
2967
- if (!kwargs) {
2968
- return;
2969
- }
2970
- Object.assign(this, kwargs);
2971
- }
2972
- static fromProto(proto) {
2973
- let m = new GetMultiUsersResponseUserContainer();
2974
- m = Object.assign(m, proto);
2975
- if (proto.user) {
2976
- m.user = User.fromProto(proto.user);
2977
- }
2978
- return m;
2979
- }
2980
- toApiJson() {
2981
- const toReturn = {};
2982
- if (typeof this.user !== 'undefined' && this.user !== null) {
2983
- toReturn['user'] = 'toApiJson' in this.user ? this.user.toApiJson() : this.user;
2984
- }
2985
- return toReturn;
2986
- }
2987
- }
2988
- class UserFilter {
2989
3122
  constructor(kwargs) {
2990
3123
  if (!kwargs) {
2991
3124
  return;
2992
3125
  }
2993
3126
  Object.assign(this, kwargs);
2994
3127
  }
2995
- static fromProto(proto) {
2996
- let m = new UserFilter();
2997
- m = Object.assign(m, proto);
2998
- return m;
2999
- }
3000
3128
  toApiJson() {
3001
3129
  const toReturn = {};
3002
- if (typeof this.subjectTypes !== 'undefined') {
3003
- toReturn['subjectTypes'] = this.subjectTypes;
3130
+ if (typeof this.result !== 'undefined' && this.result !== null) {
3131
+ toReturn['result'] = 'toApiJson' in this.result ? this.result.toApiJson() : this.result;
3004
3132
  }
3005
- if (typeof this.searchTerms !== 'undefined') {
3006
- toReturn['searchTerms'] = this.searchTerms;
3133
+ if (typeof this.nextCursor !== 'undefined') {
3134
+ toReturn['nextCursor'] = this.nextCursor;
3135
+ }
3136
+ if (typeof this.hasMore !== 'undefined') {
3137
+ toReturn['hasMore'] = this.hasMore;
3138
+ }
3139
+ if (typeof this.totalResults !== 'undefined') {
3140
+ toReturn['totalResults'] = this.totalResults;
3007
3141
  }
3008
3142
  return toReturn;
3009
3143
  }
3010
3144
  }
3011
- class UserIdentifier {
3145
+ class SendEmailVerificationRequest {
3146
+ static fromProto(proto) {
3147
+ let m = new SendEmailVerificationRequest();
3148
+ m = Object.assign(m, proto);
3149
+ return m;
3150
+ }
3012
3151
  constructor(kwargs) {
3013
3152
  if (!kwargs) {
3014
3153
  return;
3015
3154
  }
3016
3155
  Object.assign(this, kwargs);
3017
3156
  }
3018
- static fromProto(proto) {
3019
- let m = new UserIdentifier();
3020
- m = Object.assign(m, proto);
3021
- if (proto.namespacedEmail) {
3022
- m.namespacedEmail = NamespacedEmail.fromProto(proto.namespacedEmail);
3023
- }
3024
- if (proto.namespacedSession) {
3025
- m.namespacedSession = NamespacedSession.fromProto(proto.namespacedSession);
3026
- }
3027
- if (proto.typedExternalIdentifier) {
3028
- m.typedExternalIdentifier = TypedExternalIdentifier.fromProto(proto.typedExternalIdentifier);
3029
- }
3030
- return m;
3031
- }
3032
3157
  toApiJson() {
3033
3158
  const toReturn = {};
3034
3159
  if (typeof this.userId !== 'undefined') {
3035
3160
  toReturn['userId'] = this.userId;
3036
3161
  }
3037
- if (typeof this.namespacedEmail !== 'undefined' && this.namespacedEmail !== null) {
3038
- toReturn['namespacedEmail'] = 'toApiJson' in this.namespacedEmail ? this.namespacedEmail.toApiJson() : this.namespacedEmail;
3039
- }
3040
- if (typeof this.namespacedSession !== 'undefined' && this.namespacedSession !== null) {
3041
- toReturn['namespacedSession'] = 'toApiJson' in this.namespacedSession ? this.namespacedSession.toApiJson() : this.namespacedSession;
3042
- }
3043
- if (typeof this.token !== 'undefined') {
3044
- toReturn['token'] = this.token;
3045
- }
3046
- if (typeof this.typedExternalIdentifier !== 'undefined' && this.typedExternalIdentifier !== null) {
3047
- toReturn['typedExternalIdentifier'] = 'toApiJson' in this.typedExternalIdentifier ? this.typedExternalIdentifier.toApiJson() : this.typedExternalIdentifier;
3048
- }
3049
- if (typeof this.subjectId !== 'undefined') {
3050
- toReturn['subjectId'] = this.subjectId;
3051
- }
3052
3162
  return toReturn;
3053
3163
  }
3054
3164
  }
3055
- class UserSortOptions {
3165
+ class SubjectCredentials {
3166
+ static fromProto(proto) {
3167
+ let m = new SubjectCredentials();
3168
+ m = Object.assign(m, proto);
3169
+ return m;
3170
+ }
3056
3171
  constructor(kwargs) {
3057
3172
  if (!kwargs) {
3058
3173
  return;
3059
3174
  }
3060
3175
  Object.assign(this, kwargs);
3061
3176
  }
3062
- static fromProto(proto) {
3063
- let m = new UserSortOptions();
3064
- m = Object.assign(m, proto);
3065
- if (proto.direction) {
3066
- m.direction = enumStringToValue$1(SortDirection, proto.direction);
3067
- }
3068
- if (proto.field) {
3069
- m.field = enumStringToValue$1(UserSortField, proto.field);
3070
- }
3071
- return m;
3072
- }
3073
3177
  toApiJson() {
3074
3178
  const toReturn = {};
3075
- if (typeof this.direction !== 'undefined') {
3076
- toReturn['direction'] = this.direction;
3179
+ if (typeof this.email !== 'undefined') {
3180
+ toReturn['email'] = this.email;
3077
3181
  }
3078
- if (typeof this.field !== 'undefined') {
3079
- toReturn['field'] = this.field;
3182
+ if (typeof this.password !== 'undefined') {
3183
+ toReturn['password'] = this.password;
3080
3184
  }
3081
3185
  return toReturn;
3082
3186
  }
3083
3187
  }
3084
- class VerifyEmailRequest {
3188
+ class UpdateUserRequest {
3189
+ static fromProto(proto) {
3190
+ let m = new UpdateUserRequest();
3191
+ m = Object.assign(m, proto);
3192
+ if (proto.operations) {
3193
+ m.operations = proto.operations.map(UpdateUserRequestOperation.fromProto);
3194
+ }
3195
+ return m;
3196
+ }
3085
3197
  constructor(kwargs) {
3086
3198
  if (!kwargs) {
3087
3199
  return;
3088
3200
  }
3089
3201
  Object.assign(this, kwargs);
3090
3202
  }
3091
- static fromProto(proto) {
3092
- let m = new VerifyEmailRequest();
3093
- m = Object.assign(m, proto);
3094
- return m;
3095
- }
3096
3203
  toApiJson() {
3097
3204
  const toReturn = {};
3098
- if (typeof this.token !== 'undefined') {
3099
- toReturn['token'] = this.token;
3205
+ if (typeof this.userId !== 'undefined') {
3206
+ toReturn['userId'] = this.userId;
3100
3207
  }
3101
- return toReturn;
3102
- }
3103
- }
3104
-
3105
- var PersonaType;
3106
- (function (PersonaType) {
3107
- PersonaType["partner"] = "partner";
3108
- PersonaType["partner_app"] = "partner_app";
3109
- PersonaType["sales_person"] = "sales_person";
3110
- PersonaType["smb"] = "smb";
3111
- PersonaType["vendor"] = "vendor";
3112
- PersonaType["digital_agent"] = "digital_agent";
3113
- PersonaType["developer"] = "developer";
3114
- PersonaType["success"] = "success";
3115
- PersonaType["account_group"] = "account_group";
3116
- PersonaType["crm_role"] = "crm_role";
3117
- })(PersonaType || (PersonaType = {}));
3118
-
3119
- class BasePersona {
3120
- fromPersona(p) {
3121
- const s = p.subject;
3122
- this.subjectId = s.subjectId;
3123
- this.email = s.email;
3124
- this.created = s.created;
3125
- this.updated = s.updated;
3126
- this.lastLogin = s.lastLogin;
3127
- this.userId = s.userId;
3128
- return this.readAttributes(s.structAttributes);
3129
- }
3130
- readAttributes(attributes) {
3131
- if (!attributes) {
3132
- return this;
3208
+ if (typeof this.operations !== 'undefined' && this.operations !== null) {
3209
+ toReturn['operations'] = 'toApiJson' in this.operations ? this.operations.toApiJson() : this.operations;
3133
3210
  }
3134
- /* eslint-disable @typescript-eslint/no-unsafe-assignment */
3135
- const attrs = getValueFromAttribute({ structAttribute: { attributes: attributes.attributes } });
3136
- Object.assign(this, attrs);
3137
- return this;
3138
- }
3139
- }
3140
- class TypedPersona extends BasePersona {
3141
- }
3142
- class NamespacedPersona extends BasePersona {
3143
- constructor() {
3144
- super(...arguments);
3145
- this.partnerId = '';
3146
- }
3147
- fromPersona(p) {
3148
- this.partnerId = p.context.namespaced.namespace;
3149
- return super.fromPersona(p);
3211
+ return toReturn;
3150
3212
  }
3151
3213
  }
3152
- function getValueFromAttribute(attr) {
3153
- if (typeof attr === 'undefined') {
3154
- return null;
3155
- }
3156
- else if (typeof attr.stringAttribute !== 'undefined') {
3157
- return attr.stringAttribute;
3158
- }
3159
- else if (typeof attr.intAttribute !== 'undefined') {
3160
- return attr.intAttribute;
3161
- }
3162
- else if (typeof attr.doubleAttribute !== 'undefined') {
3163
- return attr.doubleAttribute;
3164
- }
3165
- else if (typeof attr.boolAttribute !== 'undefined') {
3166
- return attr.boolAttribute;
3167
- }
3168
- else if (typeof attr.listAttribute !== 'undefined') {
3169
- const vals = [];
3170
- /* eslint-disable @typescript-eslint/no-unsafe-return */
3171
- if (typeof attr.listAttribute.attributes === 'undefined') {
3172
- /* eslint-disable @typescript-eslint/no-unsafe-return */
3173
- return vals;
3174
- }
3175
- for (const val of attr.listAttribute.attributes) {
3176
- vals.push(getValueFromAttribute(val));
3177
- }
3178
- return vals;
3179
- }
3180
- else if (typeof attr.timestampAttribute !== 'undefined') {
3181
- return attr.timestampAttribute;
3182
- }
3183
- else if (typeof attr.geopointAttribute !== 'undefined') {
3184
- return attr.geopointAttribute;
3185
- }
3186
- else if (typeof attr.structAttribute !== 'undefined') {
3187
- const result = {};
3188
- for (const a in attr.structAttribute.attributes) {
3189
- if (!attr.structAttribute.attributes.hasOwnProperty(a)) {
3190
- continue;
3191
- }
3192
- /* eslint-disable @typescript-eslint/no-unsafe-member-access */
3193
- result[CamelCase(a)] = getValueFromAttribute(attr.structAttribute.attributes[a]);
3214
+ class GetMultiUsersResponseUserContainer {
3215
+ static fromProto(proto) {
3216
+ let m = new GetMultiUsersResponseUserContainer();
3217
+ m = Object.assign(m, proto);
3218
+ if (proto.user) {
3219
+ m.user = User.fromProto(proto.user);
3194
3220
  }
3195
- return result;
3221
+ return m;
3196
3222
  }
3197
- }
3198
- function CamelCase(str) {
3199
- let result = '';
3200
- for (let i = 0; i < str.length; i++) {
3201
- if (str[i] === '_') {
3202
- result += str[i + 1].toUpperCase();
3203
- i++;
3204
- }
3205
- else {
3206
- result += str[i];
3223
+ constructor(kwargs) {
3224
+ if (!kwargs) {
3225
+ return;
3207
3226
  }
3227
+ Object.assign(this, kwargs);
3208
3228
  }
3209
- return result;
3210
- }
3211
-
3212
- class DeveloperPersona extends TypedPersona {
3213
- constructor() {
3214
- super(...arguments);
3215
- this.type = PersonaType.developer;
3216
- }
3217
- }
3218
-
3219
- class PartnerPersona extends TypedPersona {
3220
- constructor() {
3221
- super(...arguments);
3222
- this.type = PersonaType.partner;
3223
- this.isSuperAdmin = false;
3224
- this.isAdmin = false;
3225
- this.canCustomizeWhitelabel = false;
3226
- this.canAccessBilling = false;
3227
- this.canAccessAccounts = false;
3228
- this.canAccessMarketing = false;
3229
- this.canAccessSales = false;
3230
- this.canAccessConcierge = false;
3231
- this.canAccessBrands = false;
3232
- this.canAccessDashboard = false;
3233
- this.canAccessOrders = false;
3234
- this.canAccessCompanyProfile = false;
3235
- this.canAccessAutomations = false;
3236
- this.canAccessMarketplace = false;
3237
- this.canEnableApps = false;
3238
- this.canAccessRetailBilling = false;
3239
- }
3240
- }
3241
-
3242
- class PartnerAppPersona extends NamespacedPersona {
3243
- constructor() {
3244
- super(...arguments);
3245
- this.type = PersonaType.partner_app;
3229
+ toApiJson() {
3230
+ const toReturn = {};
3231
+ if (typeof this.user !== 'undefined' && this.user !== null) {
3232
+ toReturn['user'] = 'toApiJson' in this.user ? this.user.toApiJson() : this.user;
3233
+ }
3234
+ return toReturn;
3246
3235
  }
3247
3236
  }
3248
-
3249
- const TitleChoice = {
3250
- PARTNER_FOR_SMB: 'partnerForSmb',
3251
- REP_MAN_FOR_SMB: 'repManForSmb',
3252
- MARKET_FOR_SMB: 'marketForSmb'
3253
- };
3254
- class SalespersonPersona extends NamespacedPersona {
3255
- constructor() {
3256
- super(...arguments);
3257
- this.type = PersonaType.sales_person;
3258
- this.titleChoice = TitleChoice.PARTNER_FOR_SMB;
3237
+ class UserFilter {
3238
+ static fromProto(proto) {
3239
+ let m = new UserFilter();
3240
+ m = Object.assign(m, proto);
3241
+ return m;
3259
3242
  }
3260
- }
3261
-
3262
- class SMBPersona extends NamespacedPersona {
3263
- constructor() {
3264
- super(...arguments);
3265
- this.type = PersonaType.smb;
3266
- this.notificationsEnabled = true;
3243
+ constructor(kwargs) {
3244
+ if (!kwargs) {
3245
+ return;
3246
+ }
3247
+ Object.assign(this, kwargs);
3267
3248
  }
3268
- }
3269
-
3270
- class VendorPersona extends TypedPersona {
3271
- constructor() {
3272
- super(...arguments);
3273
- this.type = PersonaType.vendor;
3249
+ toApiJson() {
3250
+ const toReturn = {};
3251
+ if (typeof this.subjectTypes !== 'undefined') {
3252
+ toReturn['subjectTypes'] = this.subjectTypes;
3253
+ }
3254
+ if (typeof this.searchTerms !== 'undefined') {
3255
+ toReturn['searchTerms'] = this.searchTerms;
3256
+ }
3257
+ return toReturn;
3274
3258
  }
3275
3259
  }
3276
-
3277
- class DigitalAgentPersona extends TypedPersona {
3278
- constructor() {
3279
- super(...arguments);
3280
- this.type = PersonaType.digital_agent;
3260
+ class UserIdentifier {
3261
+ static fromProto(proto) {
3262
+ let m = new UserIdentifier();
3263
+ m = Object.assign(m, proto);
3264
+ if (proto.namespacedEmail) {
3265
+ m.namespacedEmail = NamespacedEmail.fromProto(proto.namespacedEmail);
3266
+ }
3267
+ if (proto.namespacedSession) {
3268
+ m.namespacedSession = NamespacedSession.fromProto(proto.namespacedSession);
3269
+ }
3270
+ if (proto.typedExternalIdentifier) {
3271
+ m.typedExternalIdentifier = TypedExternalIdentifier.fromProto(proto.typedExternalIdentifier);
3272
+ }
3273
+ return m;
3281
3274
  }
3282
- }
3283
-
3284
- class SuccessPersona extends TypedPersona {
3285
- constructor() {
3286
- super(...arguments);
3287
- this.type = PersonaType.success;
3275
+ constructor(kwargs) {
3276
+ if (!kwargs) {
3277
+ return;
3278
+ }
3279
+ Object.assign(this, kwargs);
3288
3280
  }
3289
- }
3290
-
3291
- class AccountGroupPersona extends TypedPersona {
3292
- constructor() {
3293
- super(...arguments);
3294
- this.type = PersonaType.account_group;
3281
+ toApiJson() {
3282
+ const toReturn = {};
3283
+ if (typeof this.userId !== 'undefined') {
3284
+ toReturn['userId'] = this.userId;
3285
+ }
3286
+ if (typeof this.namespacedEmail !== 'undefined' && this.namespacedEmail !== null) {
3287
+ toReturn['namespacedEmail'] = 'toApiJson' in this.namespacedEmail ? this.namespacedEmail.toApiJson() : this.namespacedEmail;
3288
+ }
3289
+ if (typeof this.namespacedSession !== 'undefined' && this.namespacedSession !== null) {
3290
+ toReturn['namespacedSession'] = 'toApiJson' in this.namespacedSession ? this.namespacedSession.toApiJson() : this.namespacedSession;
3291
+ }
3292
+ if (typeof this.token !== 'undefined') {
3293
+ toReturn['token'] = this.token;
3294
+ }
3295
+ if (typeof this.typedExternalIdentifier !== 'undefined' && this.typedExternalIdentifier !== null) {
3296
+ toReturn['typedExternalIdentifier'] = 'toApiJson' in this.typedExternalIdentifier ? this.typedExternalIdentifier.toApiJson() : this.typedExternalIdentifier;
3297
+ }
3298
+ if (typeof this.subjectId !== 'undefined') {
3299
+ toReturn['subjectId'] = this.subjectId;
3300
+ }
3301
+ return toReturn;
3295
3302
  }
3296
3303
  }
3297
-
3298
- class CRMRolePersona extends NamespacedPersona {
3299
- constructor() {
3300
- super(...arguments);
3301
- this.type = PersonaType.crm_role;
3304
+ class UserSortOptions {
3305
+ static fromProto(proto) {
3306
+ let m = new UserSortOptions();
3307
+ m = Object.assign(m, proto);
3308
+ if (proto.direction) {
3309
+ m.direction = enumStringToValue$1(SortDirection, proto.direction);
3310
+ }
3311
+ if (proto.field) {
3312
+ m.field = enumStringToValue$1(UserSortField, proto.field);
3313
+ }
3314
+ return m;
3302
3315
  }
3303
- }
3304
-
3305
- function fromPersona(persona) {
3306
- const type = getTypeFromContext(persona.context);
3307
- if (type === null) {
3308
- return null;
3316
+ constructor(kwargs) {
3317
+ if (!kwargs) {
3318
+ return;
3319
+ }
3320
+ Object.assign(this, kwargs);
3309
3321
  }
3310
- const personaCls = getPersonaFromType(type);
3311
- personaCls.fromPersona(persona);
3312
- return personaCls;
3313
- }
3314
- function getTypeFromContext(ctx) {
3315
- const type = (!!ctx.namespaced) ? ctx.namespaced.type : ctx.typed.type;
3316
- switch (type) {
3317
- case 'partner':
3318
- return PersonaType.partner;
3319
- case 'partner_app':
3320
- return PersonaType.partner_app;
3321
- case 'sales_person':
3322
- return PersonaType.sales_person;
3323
- case 'smb':
3324
- return PersonaType.smb;
3325
- case 'vendor':
3326
- return PersonaType.vendor;
3327
- case 'digital_agent':
3328
- return PersonaType.digital_agent;
3329
- case 'developer':
3330
- return PersonaType.developer;
3331
- case 'success':
3332
- return PersonaType.success;
3333
- case 'account_group':
3334
- return PersonaType.account_group;
3335
- case 'crm_role':
3336
- return PersonaType.crm_role;
3322
+ toApiJson() {
3323
+ const toReturn = {};
3324
+ if (typeof this.direction !== 'undefined') {
3325
+ toReturn['direction'] = this.direction;
3326
+ }
3327
+ if (typeof this.field !== 'undefined') {
3328
+ toReturn['field'] = this.field;
3329
+ }
3330
+ return toReturn;
3337
3331
  }
3338
- return null;
3339
3332
  }
3340
- function getPersonaFromType(personaType) {
3341
- return new {
3342
- 'partner': PartnerPersona,
3343
- 'partner_app': PartnerAppPersona,
3344
- 'sales_person': SalespersonPersona,
3345
- 'smb': SMBPersona,
3346
- 'vendor': VendorPersona,
3347
- 'digital_agent': DigitalAgentPersona,
3348
- 'developer': DeveloperPersona,
3349
- 'success': SuccessPersona,
3350
- 'account_group': AccountGroupPersona,
3351
- 'crm_role': CRMRolePersona,
3352
- }[personaType]();
3333
+ class VerifyEmailRequest {
3334
+ static fromProto(proto) {
3335
+ let m = new VerifyEmailRequest();
3336
+ m = Object.assign(m, proto);
3337
+ return m;
3338
+ }
3339
+ constructor(kwargs) {
3340
+ if (!kwargs) {
3341
+ return;
3342
+ }
3343
+ Object.assign(this, kwargs);
3344
+ }
3345
+ toApiJson() {
3346
+ const toReturn = {};
3347
+ if (typeof this.token !== 'undefined') {
3348
+ toReturn['token'] = this.token;
3349
+ }
3350
+ return toReturn;
3351
+ }
3353
3352
  }
3354
3353
 
3355
3354
  function enumStringToValue(enumRef, value) {
@@ -3359,17 +3358,17 @@ function enumStringToValue(enumRef, value) {
3359
3358
  return enumRef[value];
3360
3359
  }
3361
3360
  class Access {
3361
+ static fromProto(proto) {
3362
+ let m = new Access();
3363
+ m = Object.assign(m, proto);
3364
+ return m;
3365
+ }
3362
3366
  constructor(kwargs) {
3363
3367
  if (!kwargs) {
3364
3368
  return;
3365
3369
  }
3366
3370
  Object.assign(this, kwargs);
3367
3371
  }
3368
- static fromProto(proto) {
3369
- let m = new Access();
3370
- m = Object.assign(m, proto);
3371
- return m;
3372
- }
3373
3372
  toApiJson() {
3374
3373
  const toReturn = {};
3375
3374
  if (typeof this.scope !== 'undefined') {
@@ -3401,9 +3400,9 @@ class HostService {
3401
3400
  return 'https://' + this.host;
3402
3401
  }
3403
3402
  }
3404
- HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3405
- HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: HostService, providedIn: 'root' });
3406
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: HostService, decorators: [{
3403
+ HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3404
+ HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, providedIn: 'root' });
3405
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, decorators: [{
3407
3406
  type: Injectable,
3408
3407
  args: [{ providedIn: 'root' }]
3409
3408
  }] });
@@ -3453,20 +3452,14 @@ class UserIAMApiService {
3453
3452
  .pipe(map(resp => GetImpersonationTokenResponse.fromProto(resp)));
3454
3453
  }
3455
3454
  }
3456
- UserIAMApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: UserIAMApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3457
- UserIAMApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: UserIAMApiService, providedIn: 'root' });
3458
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: UserIAMApiService, decorators: [{
3455
+ UserIAMApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: UserIAMApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3456
+ UserIAMApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: UserIAMApiService, providedIn: 'root' });
3457
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: UserIAMApiService, decorators: [{
3459
3458
  type: Injectable,
3460
3459
  args: [{ providedIn: 'root' }]
3461
3460
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
3462
3461
 
3463
3462
  class LoginRequest {
3464
- constructor(kwargs) {
3465
- if (!kwargs) {
3466
- return;
3467
- }
3468
- Object.assign(this, kwargs);
3469
- }
3470
3463
  static fromProto(proto) {
3471
3464
  if (!proto) {
3472
3465
  return new LoginRequest();
@@ -3476,6 +3469,12 @@ class LoginRequest {
3476
3469
  m = Object.assign(m, proto);
3477
3470
  return m;
3478
3471
  }
3472
+ constructor(kwargs) {
3473
+ if (!kwargs) {
3474
+ return;
3475
+ }
3476
+ Object.assign(this, kwargs);
3477
+ }
3479
3478
  toApiJson() {
3480
3479
  if (typeof this.namespace === 'undefined' &&
3481
3480
  typeof this.type === 'undefined' &&
@@ -3496,18 +3495,18 @@ class LoginRequest {
3496
3495
  }
3497
3496
  }
3498
3497
  class LoginResponse {
3499
- constructor(kwargs) {
3500
- if (!kwargs) {
3501
- return;
3502
- }
3503
- Object.assign(this, kwargs);
3504
- }
3505
3498
  static fromProto(proto) {
3506
3499
  /* eslint-disable */
3507
3500
  const m = new LoginResponse();
3508
3501
  m.sessionId = proto['session_id'];
3509
3502
  return m;
3510
3503
  }
3504
+ constructor(kwargs) {
3505
+ if (!kwargs) {
3506
+ return;
3507
+ }
3508
+ Object.assign(this, kwargs);
3509
+ }
3511
3510
  toApiJson() {
3512
3511
  if (typeof this.sessionId === 'undefined') {
3513
3512
  return {};
@@ -3518,17 +3517,17 @@ class LoginResponse {
3518
3517
  }
3519
3518
  }
3520
3519
  class LogoutResponse {
3520
+ static fromProto(proto) {
3521
+ let m = new LogoutResponse();
3522
+ m = Object.assign(m, proto);
3523
+ return m;
3524
+ }
3521
3525
  constructor(kwargs) {
3522
3526
  if (!kwargs) {
3523
3527
  return;
3524
3528
  }
3525
3529
  Object.assign(this, kwargs);
3526
3530
  }
3527
- static fromProto(proto) {
3528
- let m = new LogoutResponse();
3529
- m = Object.assign(m, proto);
3530
- return m;
3531
- }
3532
3531
  toApiJson() {
3533
3532
  if (typeof this.success === 'undefined') {
3534
3533
  return {};
@@ -3539,17 +3538,17 @@ class LogoutResponse {
3539
3538
  }
3540
3539
  }
3541
3540
  class SSOLoginRequest {
3541
+ static fromProto(proto) {
3542
+ let m = new SSOLoginRequest();
3543
+ m = Object.assign(m, proto);
3544
+ return m;
3545
+ }
3542
3546
  constructor(kwargs) {
3543
3547
  if (!kwargs) {
3544
3548
  return;
3545
3549
  }
3546
3550
  Object.assign(this, kwargs);
3547
3551
  }
3548
- static fromProto(proto) {
3549
- let m = new SSOLoginRequest();
3550
- m = Object.assign(m, proto);
3551
- return m;
3552
- }
3553
3552
  toApiJson() {
3554
3553
  if (typeof this.nextUrl === 'undefined' &&
3555
3554
  typeof this.namespace === 'undefined' &&
@@ -3616,9 +3615,9 @@ class IamHttpApiService {
3616
3615
  window.location.href = `${this._host}/sso-login?${params.toString()}`;
3617
3616
  }
3618
3617
  }
3619
- IamHttpApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: IamHttpApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3620
- IamHttpApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: IamHttpApiService, providedIn: 'root' });
3621
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: IamHttpApiService, decorators: [{
3618
+ IamHttpApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: IamHttpApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3619
+ IamHttpApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: IamHttpApiService, providedIn: 'root' });
3620
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: IamHttpApiService, decorators: [{
3622
3621
  type: Injectable,
3623
3622
  args: [{ providedIn: 'root' }]
3624
3623
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -3792,18 +3791,17 @@ class IAMApiService {
3792
3791
  return this.http.post(this._host + "/iam.v1.IAM/RemoveMultiUserRestriction", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
3793
3792
  }
3794
3793
  }
3795
- IAMApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: IAMApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3796
- IAMApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: IAMApiService, providedIn: 'root' });
3797
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: IAMApiService, decorators: [{
3794
+ IAMApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: IAMApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3795
+ IAMApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: IAMApiService, providedIn: 'root' });
3796
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: IAMApiService, decorators: [{
3798
3797
  type: Injectable,
3799
3798
  args: [{ providedIn: 'root' }]
3800
3799
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
3801
3800
 
3802
3801
  class IAMService {
3803
- constructor(api, httpApi, sessionService, iamApi) {
3802
+ constructor(api, httpApi, iamApi) {
3804
3803
  this.api = api;
3805
3804
  this.httpApi = httpApi;
3806
- this.sessionService = sessionService;
3807
3805
  this.iamApi = iamApi;
3808
3806
  }
3809
3807
  // Get a subject from the session ID
@@ -3827,12 +3825,6 @@ class IAMService {
3827
3825
  })
3828
3826
  .pipe(map((r) => fromPersona(new Persona({ subject: r.subject.subject, context: context }))));
3829
3827
  }
3830
- // Get persona type from the current session
3831
- getLoggedInSubject(personaType, partnerId) {
3832
- return this.sessionService
3833
- .getSessionId()
3834
- .pipe(switchMap((sessionId) => this.getSubjectBySession(sessionId, personaType, partnerId)));
3835
- }
3836
3828
  // List all available personas for the session. Optionally pass a persona type to filter by that persona.
3837
3829
  listPersonas(sessionId, personaType) {
3838
3830
  return this.api
@@ -3855,10 +3847,6 @@ class IAMService {
3855
3847
  return personas;
3856
3848
  }));
3857
3849
  }
3858
- // List all available personas for the current session. Optionally pass a persona type to filter by that persona.
3859
- listLoggedInPersonas(personaType) {
3860
- return this.sessionService.getSessionId().pipe(switchMap((sessionId) => this.listPersonas(sessionId, personaType)));
3861
- }
3862
3850
  // Get a short lived session token
3863
3851
  getToken() {
3864
3852
  return this.api.getToken({}).pipe(map((r) => r.token));
@@ -3929,12 +3917,12 @@ class IAMService {
3929
3917
  });
3930
3918
  }
3931
3919
  }
3932
- IAMService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: IAMService, deps: [{ token: UserIAMApiService }, { token: IamHttpApiService }, { token: i3.SessionService }, { token: IAMApiService }], target: i0.ɵɵFactoryTarget.Injectable });
3933
- IAMService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: IAMService, providedIn: 'root' });
3934
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: IAMService, decorators: [{
3920
+ IAMService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: IAMService, deps: [{ token: UserIAMApiService }, { token: IamHttpApiService }, { token: IAMApiService }], target: i0.ɵɵFactoryTarget.Injectable });
3921
+ IAMService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: IAMService, providedIn: 'root' });
3922
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: IAMService, decorators: [{
3935
3923
  type: Injectable,
3936
3924
  args: [{ providedIn: 'root' }]
3937
- }], ctorParameters: function () { return [{ type: UserIAMApiService }, { type: IamHttpApiService }, { type: i3.SessionService }, { type: IAMApiService }]; } });
3925
+ }], ctorParameters: function () { return [{ type: UserIAMApiService }, { type: IamHttpApiService }, { type: IAMApiService }]; } });
3938
3926
 
3939
3927
  // *********************************
3940
3928