@vendasta/iam 1.17.2 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +101 -0
- package/README.md +113 -0
- package/bundles/vendasta-iam.umd.js +828 -1400
- package/bundles/vendasta-iam.umd.js.map +1 -1
- package/bundles/vendasta-iam.umd.min.js +2 -2
- package/bundles/vendasta-iam.umd.min.js.map +1 -1
- package/esm2015/lib/_generated/host.service.js +9 -7
- package/esm2015/lib/_generated/index.js +2 -0
- package/esm2015/lib/_internal/enums/api.enum.js +1 -1
- package/esm2015/lib/_internal/enums/index.js +3 -2
- package/esm2015/lib/_internal/enums/policies.enum.js +18 -0
- package/esm2015/lib/_internal/enums/resources.enum.js +1 -12
- package/esm2015/lib/_internal/enums/subjects.enum.js +1 -1
- package/esm2015/lib/_internal/enums/users.enum.js +1 -1
- package/esm2015/lib/_internal/iam.api.service.js +10 -8
- package/esm2015/lib/_internal/index.js +4 -5
- package/esm2015/lib/_internal/interfaces/annotations.interface.js +8 -0
- package/esm2015/lib/_internal/interfaces/api.interface.js +1 -1
- package/esm2015/lib/_internal/interfaces/attributes.interface.js +8 -0
- package/esm2015/lib/_internal/interfaces/field-mask.interface.js +1 -1
- package/esm2015/lib/_internal/interfaces/index.js +1 -1
- package/esm2015/lib/_internal/interfaces/policies.interface.js +3 -0
- package/esm2015/lib/_internal/interfaces/resources.interface.js +1 -1
- package/esm2015/lib/_internal/interfaces/security-logs.interface.js +1 -1
- package/esm2015/lib/_internal/interfaces/subjects.interface.js +1 -7
- package/esm2015/lib/_internal/interfaces/users.interface.js +1 -1
- package/esm2015/lib/_internal/objects/annotations.js +30 -0
- package/esm2015/lib/_internal/objects/api.js +15 -381
- package/esm2015/lib/_internal/objects/attributes.js +158 -0
- package/esm2015/lib/_internal/objects/field-mask.js +1 -4
- package/esm2015/lib/_internal/objects/index.js +7 -4
- package/esm2015/lib/_internal/objects/policies.js +264 -0
- package/esm2015/lib/_internal/objects/resources.js +6 -321
- package/esm2015/lib/_internal/objects/security-logs.js +1 -8
- package/esm2015/lib/_internal/objects/subjects.js +3 -233
- package/esm2015/lib/_internal/objects/users.js +1 -32
- package/esm2015/lib/_internal/user-iam.api.service.js +10 -8
- package/esm2015/lib/http/http.interface.js +1 -1
- package/esm2015/lib/http/http.js +1 -1
- package/esm2015/lib/http/iam.http.api.service.js +22 -21
- package/esm2015/lib/iam.service.js +12 -10
- package/esm2015/lib/index.js +3 -4
- package/esm2015/lib/personas/account-group.js +1 -1
- package/esm2015/lib/personas/base-personas.js +1 -1
- package/esm2015/lib/personas/developer.js +1 -1
- package/esm2015/lib/personas/digital-agent.js +1 -1
- package/esm2015/lib/personas/index.js +1 -1
- package/esm2015/lib/personas/partner-app.js +1 -1
- package/esm2015/lib/personas/partner.js +14 -13
- package/esm2015/lib/personas/persona-type.enum.js +1 -1
- package/esm2015/lib/personas/personas.js +1 -1
- package/esm2015/lib/personas/salesperson.js +1 -1
- package/esm2015/lib/personas/smb.js +1 -1
- package/esm2015/lib/personas/success.js +1 -1
- package/esm2015/lib/personas/vendor.js +1 -1
- package/esm2015/public_api.js +2 -2
- package/esm2015/vendasta-iam.js +1 -6
- package/fesm2015/vendasta-iam.js +415 -976
- package/fesm2015/vendasta-iam.js.map +1 -1
- package/lib/_generated/host.service.d.ts +3 -0
- package/lib/_generated/index.d.ts +1 -0
- package/lib/_internal/enums/index.d.ts +2 -1
- package/lib/_internal/enums/policies.enum.d.ts +9 -0
- package/lib/_internal/enums/resources.enum.d.ts +0 -9
- package/lib/_internal/iam.api.service.d.ts +3 -0
- package/lib/_internal/index.d.ts +3 -4
- package/lib/_internal/interfaces/annotations.interface.d.ts +4 -0
- package/lib/_internal/interfaces/api.interface.d.ts +6 -18
- package/lib/_internal/interfaces/attributes.interface.d.ts +26 -0
- package/lib/_internal/interfaces/index.d.ts +6 -3
- package/lib/_internal/interfaces/policies.interface.d.ts +42 -0
- package/lib/_internal/interfaces/resources.interface.d.ts +3 -42
- package/lib/_internal/interfaces/subjects.interface.d.ts +2 -27
- package/lib/_internal/objects/annotations.d.ts +9 -0
- package/lib/_internal/objects/api.d.ts +7 -25
- package/lib/_internal/objects/attributes.d.ts +43 -0
- package/lib/_internal/objects/field-mask.d.ts +1 -1
- package/lib/_internal/objects/index.d.ts +6 -3
- package/lib/_internal/objects/policies.d.ts +68 -0
- package/lib/_internal/objects/resources.d.ts +4 -67
- package/lib/_internal/objects/security-logs.d.ts +1 -1
- package/lib/_internal/objects/subjects.d.ts +3 -43
- package/lib/_internal/objects/users.d.ts +1 -1
- package/lib/_internal/user-iam.api.service.d.ts +3 -0
- package/lib/http/iam.http.api.service.d.ts +3 -0
- package/lib/iam.service.d.ts +3 -0
- package/lib/index.d.ts +2 -3
- package/lib/personas/base-personas.d.ts +1 -1
- package/lib/personas/partner.d.ts +1 -0
- package/package.json +5 -3
- package/public_api.d.ts +1 -1
- package/vendasta-iam.d.ts +1 -5
- package/esm2015/lib/_internal/iam-sso.api.service.js +0 -38
- package/esm2015/lib/_internal/iam.module.js +0 -29
- package/esm2015/lib/iam.module.js +0 -16
- package/lib/_internal/iam-sso.api.service.d.ts +0 -12
- package/lib/_internal/iam.module.d.ts +0 -2
- package/lib/iam.module.d.ts +0 -2
- package/vendasta-iam.metadata.json +0 -1
package/fesm2015/vendasta-iam.js
CHANGED
|
@@ -1,87 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Environment, EnvironmentService, SessionService
|
|
1
|
+
import { ɵɵinject, ɵɵdefineInjectable, ɵsetClassMetadata, Injectable } from '@angular/core';
|
|
2
|
+
import { Environment, EnvironmentService, SessionService } from '@vendasta/core';
|
|
3
3
|
import { map, share, switchMap } from 'rxjs/operators';
|
|
4
4
|
import { HttpHeaders, HttpClient } from '@angular/common/http';
|
|
5
5
|
|
|
6
|
-
// *********************************
|
|
7
|
-
// Code generated by sdkgen
|
|
8
|
-
// DO NOT EDIT!.
|
|
9
|
-
//
|
|
10
|
-
// Enums.
|
|
11
|
-
// *********************************
|
|
12
|
-
var AlgorithmType;
|
|
13
|
-
(function (AlgorithmType) {
|
|
14
|
-
AlgorithmType[AlgorithmType["ALGORITHM_TYPE_ES256"] = 0] = "ALGORITHM_TYPE_ES256";
|
|
15
|
-
AlgorithmType[AlgorithmType["ALGORITHM_TYPE_RS256"] = 1] = "ALGORITHM_TYPE_RS256";
|
|
16
|
-
})(AlgorithmType || (AlgorithmType = {}));
|
|
17
|
-
var OrderByDirection;
|
|
18
|
-
(function (OrderByDirection) {
|
|
19
|
-
OrderByDirection[OrderByDirection["ASCENDING"] = 0] = "ASCENDING";
|
|
20
|
-
OrderByDirection[OrderByDirection["DESCENDING"] = 1] = "DESCENDING";
|
|
21
|
-
})(OrderByDirection || (OrderByDirection = {}));
|
|
22
|
-
|
|
23
|
-
// *********************************
|
|
24
|
-
// Code generated by sdkgen
|
|
25
|
-
// DO NOT EDIT!.
|
|
26
|
-
//
|
|
27
|
-
// Enums.
|
|
28
|
-
// *********************************
|
|
29
|
-
var AccessScope;
|
|
30
|
-
(function (AccessScope) {
|
|
31
|
-
AccessScope[AccessScope["READ"] = 0] = "READ";
|
|
32
|
-
AccessScope[AccessScope["WRITE"] = 1] = "WRITE";
|
|
33
|
-
AccessScope[AccessScope["DELETE"] = 2] = "DELETE";
|
|
34
|
-
AccessScope[AccessScope["LIST"] = 3] = "LIST";
|
|
35
|
-
})(AccessScope || (AccessScope = {}));
|
|
36
|
-
var BooleanOperator;
|
|
37
|
-
(function (BooleanOperator) {
|
|
38
|
-
BooleanOperator[BooleanOperator["AND"] = 0] = "AND";
|
|
39
|
-
BooleanOperator[BooleanOperator["OR"] = 1] = "OR";
|
|
40
|
-
BooleanOperator[BooleanOperator["NOT"] = 2] = "NOT";
|
|
41
|
-
})(BooleanOperator || (BooleanOperator = {}));
|
|
42
|
-
var ForOperator;
|
|
43
|
-
(function (ForOperator) {
|
|
44
|
-
ForOperator[ForOperator["ANY"] = 0] = "ANY";
|
|
45
|
-
ForOperator[ForOperator["ALL"] = 1] = "ALL";
|
|
46
|
-
})(ForOperator || (ForOperator = {}));
|
|
47
|
-
|
|
48
|
-
// *********************************
|
|
49
|
-
// Code generated by sdkgen
|
|
50
|
-
// DO NOT EDIT!.
|
|
51
|
-
//
|
|
52
|
-
// Enums.
|
|
53
|
-
// *********************************
|
|
54
|
-
var RestrictionType;
|
|
55
|
-
(function (RestrictionType) {
|
|
56
|
-
RestrictionType[RestrictionType["RESTRICTION_TYPE_UNSET"] = 0] = "RESTRICTION_TYPE_UNSET";
|
|
57
|
-
RestrictionType[RestrictionType["RESTRICTION_TYPE_RESET_PASSWORD_BEFORE_LOGIN"] = 1] = "RESTRICTION_TYPE_RESET_PASSWORD_BEFORE_LOGIN";
|
|
58
|
-
RestrictionType[RestrictionType["RESTRICTION_TYPE_FROZEN"] = 2] = "RESTRICTION_TYPE_FROZEN";
|
|
59
|
-
})(RestrictionType || (RestrictionType = {}));
|
|
60
|
-
|
|
61
|
-
// *********************************
|
|
62
|
-
// Code generated by sdkgen
|
|
63
|
-
// DO NOT EDIT!.
|
|
64
|
-
//
|
|
65
|
-
// Enums.
|
|
66
|
-
// *********************************
|
|
67
|
-
var SortDirection;
|
|
68
|
-
(function (SortDirection) {
|
|
69
|
-
SortDirection[SortDirection["SORT_DIRECTION_INVALID"] = 0] = "SORT_DIRECTION_INVALID";
|
|
70
|
-
SortDirection[SortDirection["SORT_DIRECTION_ASCENDING"] = 1] = "SORT_DIRECTION_ASCENDING";
|
|
71
|
-
SortDirection[SortDirection["SORT_DIRECTION_DESCENDING"] = 2] = "SORT_DIRECTION_DESCENDING";
|
|
72
|
-
})(SortDirection || (SortDirection = {}));
|
|
73
|
-
var UserSortField;
|
|
74
|
-
(function (UserSortField) {
|
|
75
|
-
UserSortField[UserSortField["USER_SORT_FIELD_INVALID"] = 0] = "USER_SORT_FIELD_INVALID";
|
|
76
|
-
UserSortField[UserSortField["USER_SORT_FIELD_CREATED"] = 1] = "USER_SORT_FIELD_CREATED";
|
|
77
|
-
UserSortField[UserSortField["USER_SORT_FIELD_FIRST_NAME"] = 2] = "USER_SORT_FIELD_FIRST_NAME";
|
|
78
|
-
UserSortField[UserSortField["USER_SORT_FIELD_LAST_NAME"] = 3] = "USER_SORT_FIELD_LAST_NAME";
|
|
79
|
-
UserSortField[UserSortField["USER_SORT_FIELD_EMAIL"] = 4] = "USER_SORT_FIELD_EMAIL";
|
|
80
|
-
UserSortField[UserSortField["USER_SORT_FIELD_LAST_LOGIN"] = 5] = "USER_SORT_FIELD_LAST_LOGIN";
|
|
81
|
-
})(UserSortField || (UserSortField = {}));
|
|
82
|
-
|
|
83
|
-
// *********************************
|
|
84
|
-
|
|
85
6
|
function enumStringToValue(enumRef, value) {
|
|
86
7
|
if (typeof value === 'number') {
|
|
87
8
|
return value;
|
|
@@ -116,16 +37,6 @@ class Attribute {
|
|
|
116
37
|
return m;
|
|
117
38
|
}
|
|
118
39
|
toApiJson() {
|
|
119
|
-
if (typeof this.intAttribute === 'undefined' &&
|
|
120
|
-
typeof this.doubleAttribute === 'undefined' &&
|
|
121
|
-
typeof this.stringAttribute === 'undefined' &&
|
|
122
|
-
typeof this.boolAttribute === 'undefined' &&
|
|
123
|
-
typeof this.structAttribute === 'undefined' &&
|
|
124
|
-
typeof this.listAttribute === 'undefined' &&
|
|
125
|
-
typeof this.timestampAttribute === 'undefined' &&
|
|
126
|
-
typeof this.geopointAttribute === 'undefined') {
|
|
127
|
-
return {};
|
|
128
|
-
}
|
|
129
40
|
const toReturn = {};
|
|
130
41
|
if (typeof this.intAttribute !== 'undefined') {
|
|
131
42
|
toReturn['intAttribute'] = this.intAttribute;
|
|
@@ -170,10 +81,6 @@ class StructAttributeAttributesEntry {
|
|
|
170
81
|
return m;
|
|
171
82
|
}
|
|
172
83
|
toApiJson() {
|
|
173
|
-
if (typeof this.key === 'undefined' &&
|
|
174
|
-
typeof this.value === 'undefined') {
|
|
175
|
-
return {};
|
|
176
|
-
}
|
|
177
84
|
const toReturn = {};
|
|
178
85
|
if (typeof this.key !== 'undefined') {
|
|
179
86
|
toReturn['key'] = this.key;
|
|
@@ -184,7 +91,7 @@ class StructAttributeAttributesEntry {
|
|
|
184
91
|
return toReturn;
|
|
185
92
|
}
|
|
186
93
|
}
|
|
187
|
-
class
|
|
94
|
+
class GeoPointAttribute {
|
|
188
95
|
constructor(kwargs) {
|
|
189
96
|
if (!kwargs) {
|
|
190
97
|
return;
|
|
@@ -192,32 +99,22 @@ class Context {
|
|
|
192
99
|
Object.assign(this, kwargs);
|
|
193
100
|
}
|
|
194
101
|
static fromProto(proto) {
|
|
195
|
-
let m = new
|
|
102
|
+
let m = new GeoPointAttribute();
|
|
196
103
|
m = Object.assign(m, proto);
|
|
197
|
-
if (proto.namespaced) {
|
|
198
|
-
m.namespaced = NamespacedContext.fromProto(proto.namespaced);
|
|
199
|
-
}
|
|
200
|
-
if (proto.typed) {
|
|
201
|
-
m.typed = TypedContext.fromProto(proto.typed);
|
|
202
|
-
}
|
|
203
104
|
return m;
|
|
204
105
|
}
|
|
205
106
|
toApiJson() {
|
|
206
|
-
if (typeof this.namespaced === 'undefined' &&
|
|
207
|
-
typeof this.typed === 'undefined') {
|
|
208
|
-
return {};
|
|
209
|
-
}
|
|
210
107
|
const toReturn = {};
|
|
211
|
-
if (typeof this.
|
|
212
|
-
toReturn['
|
|
108
|
+
if (typeof this.latitude !== 'undefined') {
|
|
109
|
+
toReturn['latitude'] = this.latitude;
|
|
213
110
|
}
|
|
214
|
-
if (typeof this.
|
|
215
|
-
toReturn['
|
|
111
|
+
if (typeof this.longitude !== 'undefined') {
|
|
112
|
+
toReturn['longitude'] = this.longitude;
|
|
216
113
|
}
|
|
217
114
|
return toReturn;
|
|
218
115
|
}
|
|
219
116
|
}
|
|
220
|
-
class
|
|
117
|
+
class ListAttribute {
|
|
221
118
|
constructor(kwargs) {
|
|
222
119
|
if (!kwargs) {
|
|
223
120
|
return;
|
|
@@ -225,26 +122,22 @@ class GeoPointAttribute {
|
|
|
225
122
|
Object.assign(this, kwargs);
|
|
226
123
|
}
|
|
227
124
|
static fromProto(proto) {
|
|
228
|
-
let m = new
|
|
125
|
+
let m = new ListAttribute();
|
|
229
126
|
m = Object.assign(m, proto);
|
|
127
|
+
if (proto.attributes) {
|
|
128
|
+
m.attributes = proto.attributes.map(Attribute.fromProto);
|
|
129
|
+
}
|
|
230
130
|
return m;
|
|
231
131
|
}
|
|
232
132
|
toApiJson() {
|
|
233
|
-
if (typeof this.latitude === 'undefined' &&
|
|
234
|
-
typeof this.longitude === 'undefined') {
|
|
235
|
-
return {};
|
|
236
|
-
}
|
|
237
133
|
const toReturn = {};
|
|
238
|
-
if (typeof this.
|
|
239
|
-
toReturn['
|
|
240
|
-
}
|
|
241
|
-
if (typeof this.longitude !== 'undefined') {
|
|
242
|
-
toReturn['longitude'] = this.longitude;
|
|
134
|
+
if (typeof this.attributes !== 'undefined' && this.attributes !== null) {
|
|
135
|
+
toReturn['attributes'] = 'toApiJson' in this.attributes ? this.attributes.toApiJson() : this.attributes;
|
|
243
136
|
}
|
|
244
137
|
return toReturn;
|
|
245
138
|
}
|
|
246
139
|
}
|
|
247
|
-
class
|
|
140
|
+
class StructAttribute {
|
|
248
141
|
constructor(kwargs) {
|
|
249
142
|
if (!kwargs) {
|
|
250
143
|
return;
|
|
@@ -252,17 +145,14 @@ class ListAttribute {
|
|
|
252
145
|
Object.assign(this, kwargs);
|
|
253
146
|
}
|
|
254
147
|
static fromProto(proto) {
|
|
255
|
-
let m = new
|
|
148
|
+
let m = new StructAttribute();
|
|
256
149
|
m = Object.assign(m, proto);
|
|
257
150
|
if (proto.attributes) {
|
|
258
|
-
m.attributes = proto.attributes.
|
|
151
|
+
m.attributes = Object.keys(proto.attributes).reduce((obj, k) => { obj[k] = Attribute.fromProto(proto.attributes[k]); return obj; }, {});
|
|
259
152
|
}
|
|
260
153
|
return m;
|
|
261
154
|
}
|
|
262
155
|
toApiJson() {
|
|
263
|
-
if (typeof this.attributes === 'undefined') {
|
|
264
|
-
return {};
|
|
265
|
-
}
|
|
266
156
|
const toReturn = {};
|
|
267
157
|
if (typeof this.attributes !== 'undefined' && this.attributes !== null) {
|
|
268
158
|
toReturn['attributes'] = 'toApiJson' in this.attributes ? this.attributes.toApiJson() : this.attributes;
|
|
@@ -270,6 +160,128 @@ class ListAttribute {
|
|
|
270
160
|
return toReturn;
|
|
271
161
|
}
|
|
272
162
|
}
|
|
163
|
+
|
|
164
|
+
// *********************************
|
|
165
|
+
// Code generated by sdkgen
|
|
166
|
+
// DO NOT EDIT!.
|
|
167
|
+
//
|
|
168
|
+
// Enums.
|
|
169
|
+
// *********************************
|
|
170
|
+
var BooleanOperator;
|
|
171
|
+
(function (BooleanOperator) {
|
|
172
|
+
BooleanOperator[BooleanOperator["AND"] = 0] = "AND";
|
|
173
|
+
BooleanOperator[BooleanOperator["OR"] = 1] = "OR";
|
|
174
|
+
BooleanOperator[BooleanOperator["NOT"] = 2] = "NOT";
|
|
175
|
+
})(BooleanOperator || (BooleanOperator = {}));
|
|
176
|
+
var ForOperator;
|
|
177
|
+
(function (ForOperator) {
|
|
178
|
+
ForOperator[ForOperator["ANY"] = 0] = "ANY";
|
|
179
|
+
ForOperator[ForOperator["ALL"] = 1] = "ALL";
|
|
180
|
+
})(ForOperator || (ForOperator = {}));
|
|
181
|
+
|
|
182
|
+
// *********************************
|
|
183
|
+
// Code generated by sdkgen
|
|
184
|
+
// DO NOT EDIT!.
|
|
185
|
+
//
|
|
186
|
+
// Enums.
|
|
187
|
+
// *********************************
|
|
188
|
+
var AccessScope;
|
|
189
|
+
(function (AccessScope) {
|
|
190
|
+
AccessScope[AccessScope["READ"] = 0] = "READ";
|
|
191
|
+
AccessScope[AccessScope["WRITE"] = 1] = "WRITE";
|
|
192
|
+
AccessScope[AccessScope["DELETE"] = 2] = "DELETE";
|
|
193
|
+
AccessScope[AccessScope["LIST"] = 3] = "LIST";
|
|
194
|
+
})(AccessScope || (AccessScope = {}));
|
|
195
|
+
|
|
196
|
+
// *********************************
|
|
197
|
+
// Code generated by sdkgen
|
|
198
|
+
// DO NOT EDIT!.
|
|
199
|
+
//
|
|
200
|
+
// Enums.
|
|
201
|
+
// *********************************
|
|
202
|
+
var AlgorithmType;
|
|
203
|
+
(function (AlgorithmType) {
|
|
204
|
+
AlgorithmType[AlgorithmType["ALGORITHM_TYPE_ES256"] = 0] = "ALGORITHM_TYPE_ES256";
|
|
205
|
+
AlgorithmType[AlgorithmType["ALGORITHM_TYPE_RS256"] = 1] = "ALGORITHM_TYPE_RS256";
|
|
206
|
+
})(AlgorithmType || (AlgorithmType = {}));
|
|
207
|
+
var OrderByDirection;
|
|
208
|
+
(function (OrderByDirection) {
|
|
209
|
+
OrderByDirection[OrderByDirection["ASCENDING"] = 0] = "ASCENDING";
|
|
210
|
+
OrderByDirection[OrderByDirection["DESCENDING"] = 1] = "DESCENDING";
|
|
211
|
+
})(OrderByDirection || (OrderByDirection = {}));
|
|
212
|
+
|
|
213
|
+
// *********************************
|
|
214
|
+
// Code generated by sdkgen
|
|
215
|
+
// DO NOT EDIT!.
|
|
216
|
+
//
|
|
217
|
+
// Enums.
|
|
218
|
+
// *********************************
|
|
219
|
+
var RestrictionType;
|
|
220
|
+
(function (RestrictionType) {
|
|
221
|
+
RestrictionType[RestrictionType["RESTRICTION_TYPE_UNSET"] = 0] = "RESTRICTION_TYPE_UNSET";
|
|
222
|
+
RestrictionType[RestrictionType["RESTRICTION_TYPE_RESET_PASSWORD_BEFORE_LOGIN"] = 1] = "RESTRICTION_TYPE_RESET_PASSWORD_BEFORE_LOGIN";
|
|
223
|
+
RestrictionType[RestrictionType["RESTRICTION_TYPE_FROZEN"] = 2] = "RESTRICTION_TYPE_FROZEN";
|
|
224
|
+
})(RestrictionType || (RestrictionType = {}));
|
|
225
|
+
|
|
226
|
+
// *********************************
|
|
227
|
+
// Code generated by sdkgen
|
|
228
|
+
// DO NOT EDIT!.
|
|
229
|
+
//
|
|
230
|
+
// Enums.
|
|
231
|
+
// *********************************
|
|
232
|
+
var SortDirection;
|
|
233
|
+
(function (SortDirection) {
|
|
234
|
+
SortDirection[SortDirection["SORT_DIRECTION_INVALID"] = 0] = "SORT_DIRECTION_INVALID";
|
|
235
|
+
SortDirection[SortDirection["SORT_DIRECTION_ASCENDING"] = 1] = "SORT_DIRECTION_ASCENDING";
|
|
236
|
+
SortDirection[SortDirection["SORT_DIRECTION_DESCENDING"] = 2] = "SORT_DIRECTION_DESCENDING";
|
|
237
|
+
})(SortDirection || (SortDirection = {}));
|
|
238
|
+
var UserSortField;
|
|
239
|
+
(function (UserSortField) {
|
|
240
|
+
UserSortField[UserSortField["USER_SORT_FIELD_INVALID"] = 0] = "USER_SORT_FIELD_INVALID";
|
|
241
|
+
UserSortField[UserSortField["USER_SORT_FIELD_CREATED"] = 1] = "USER_SORT_FIELD_CREATED";
|
|
242
|
+
UserSortField[UserSortField["USER_SORT_FIELD_FIRST_NAME"] = 2] = "USER_SORT_FIELD_FIRST_NAME";
|
|
243
|
+
UserSortField[UserSortField["USER_SORT_FIELD_LAST_NAME"] = 3] = "USER_SORT_FIELD_LAST_NAME";
|
|
244
|
+
UserSortField[UserSortField["USER_SORT_FIELD_EMAIL"] = 4] = "USER_SORT_FIELD_EMAIL";
|
|
245
|
+
UserSortField[UserSortField["USER_SORT_FIELD_LAST_LOGIN"] = 5] = "USER_SORT_FIELD_LAST_LOGIN";
|
|
246
|
+
})(UserSortField || (UserSortField = {}));
|
|
247
|
+
|
|
248
|
+
// *********************************
|
|
249
|
+
|
|
250
|
+
function enumStringToValue$1(enumRef, value) {
|
|
251
|
+
if (typeof value === 'number') {
|
|
252
|
+
return value;
|
|
253
|
+
}
|
|
254
|
+
return enumRef[value];
|
|
255
|
+
}
|
|
256
|
+
class Context {
|
|
257
|
+
constructor(kwargs) {
|
|
258
|
+
if (!kwargs) {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
Object.assign(this, kwargs);
|
|
262
|
+
}
|
|
263
|
+
static fromProto(proto) {
|
|
264
|
+
let m = new Context();
|
|
265
|
+
m = Object.assign(m, proto);
|
|
266
|
+
if (proto.namespaced) {
|
|
267
|
+
m.namespaced = NamespacedContext.fromProto(proto.namespaced);
|
|
268
|
+
}
|
|
269
|
+
if (proto.typed) {
|
|
270
|
+
m.typed = TypedContext.fromProto(proto.typed);
|
|
271
|
+
}
|
|
272
|
+
return m;
|
|
273
|
+
}
|
|
274
|
+
toApiJson() {
|
|
275
|
+
const toReturn = {};
|
|
276
|
+
if (typeof this.namespaced !== 'undefined' && this.namespaced !== null) {
|
|
277
|
+
toReturn['namespaced'] = 'toApiJson' in this.namespaced ? this.namespaced.toApiJson() : this.namespaced;
|
|
278
|
+
}
|
|
279
|
+
if (typeof this.typed !== 'undefined' && this.typed !== null) {
|
|
280
|
+
toReturn['typed'] = 'toApiJson' in this.typed ? this.typed.toApiJson() : this.typed;
|
|
281
|
+
}
|
|
282
|
+
return toReturn;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
273
285
|
class MultiValueAttribute {
|
|
274
286
|
constructor(kwargs) {
|
|
275
287
|
if (!kwargs) {
|
|
@@ -283,10 +295,6 @@ class MultiValueAttribute {
|
|
|
283
295
|
return m;
|
|
284
296
|
}
|
|
285
297
|
toApiJson() {
|
|
286
|
-
if (typeof this.key === 'undefined' &&
|
|
287
|
-
typeof this.values === 'undefined') {
|
|
288
|
-
return {};
|
|
289
|
-
}
|
|
290
298
|
const toReturn = {};
|
|
291
299
|
if (typeof this.key !== 'undefined') {
|
|
292
300
|
toReturn['key'] = this.key;
|
|
@@ -328,15 +336,6 @@ class Mutation {
|
|
|
328
336
|
return m;
|
|
329
337
|
}
|
|
330
338
|
toApiJson() {
|
|
331
|
-
if (typeof this.add === 'undefined' &&
|
|
332
|
-
typeof this.replace === 'undefined' &&
|
|
333
|
-
typeof this.remove === 'undefined' &&
|
|
334
|
-
typeof this.dropKey === 'undefined' &&
|
|
335
|
-
typeof this.replaceAttributes === 'undefined' &&
|
|
336
|
-
typeof this.addAttributes === 'undefined' &&
|
|
337
|
-
typeof this.removeAttributes === 'undefined') {
|
|
338
|
-
return {};
|
|
339
|
-
}
|
|
340
339
|
const toReturn = {};
|
|
341
340
|
if (typeof this.add !== 'undefined' && this.add !== null) {
|
|
342
341
|
toReturn['add'] = 'toApiJson' in this.add ? this.add.toApiJson() : this.add;
|
|
@@ -375,10 +374,6 @@ class NamespacedContext {
|
|
|
375
374
|
return m;
|
|
376
375
|
}
|
|
377
376
|
toApiJson() {
|
|
378
|
-
if (typeof this.namespace === 'undefined' &&
|
|
379
|
-
typeof this.type === 'undefined') {
|
|
380
|
-
return {};
|
|
381
|
-
}
|
|
382
377
|
const toReturn = {};
|
|
383
378
|
if (typeof this.namespace !== 'undefined') {
|
|
384
379
|
toReturn['namespace'] = this.namespace;
|
|
@@ -408,10 +403,6 @@ class Persona {
|
|
|
408
403
|
return m;
|
|
409
404
|
}
|
|
410
405
|
toApiJson() {
|
|
411
|
-
if (typeof this.subject === 'undefined' &&
|
|
412
|
-
typeof this.context === 'undefined') {
|
|
413
|
-
return {};
|
|
414
|
-
}
|
|
415
406
|
const toReturn = {};
|
|
416
407
|
if (typeof this.subject !== 'undefined' && this.subject !== null) {
|
|
417
408
|
toReturn['subject'] = 'toApiJson' in this.subject ? this.subject.toApiJson() : this.subject;
|
|
@@ -433,16 +424,11 @@ class PublicKey {
|
|
|
433
424
|
let m = new PublicKey();
|
|
434
425
|
m = Object.assign(m, proto);
|
|
435
426
|
if (proto.algorithmType) {
|
|
436
|
-
m.algorithmType = enumStringToValue(AlgorithmType, proto.algorithmType);
|
|
427
|
+
m.algorithmType = enumStringToValue$1(AlgorithmType, proto.algorithmType);
|
|
437
428
|
}
|
|
438
429
|
return m;
|
|
439
430
|
}
|
|
440
431
|
toApiJson() {
|
|
441
|
-
if (typeof this.key === 'undefined' &&
|
|
442
|
-
typeof this.id === 'undefined' &&
|
|
443
|
-
typeof this.algorithmType === 'undefined') {
|
|
444
|
-
return {};
|
|
445
|
-
}
|
|
446
432
|
const toReturn = {};
|
|
447
433
|
if (typeof this.key !== 'undefined') {
|
|
448
434
|
toReturn['key'] = this.key;
|
|
@@ -469,10 +455,6 @@ class Query {
|
|
|
469
455
|
return m;
|
|
470
456
|
}
|
|
471
457
|
toApiJson() {
|
|
472
|
-
if (typeof this.searchTerm === 'undefined' &&
|
|
473
|
-
typeof this.attributeKeys === 'undefined') {
|
|
474
|
-
return {};
|
|
475
|
-
}
|
|
476
458
|
const toReturn = {};
|
|
477
459
|
if (typeof this.searchTerm !== 'undefined') {
|
|
478
460
|
toReturn['searchTerm'] = this.searchTerm;
|
|
@@ -496,10 +478,6 @@ class SingleValueAttribute {
|
|
|
496
478
|
return m;
|
|
497
479
|
}
|
|
498
480
|
toApiJson() {
|
|
499
|
-
if (typeof this.key === 'undefined' &&
|
|
500
|
-
typeof this.value === 'undefined') {
|
|
501
|
-
return {};
|
|
502
|
-
}
|
|
503
481
|
const toReturn = {};
|
|
504
482
|
if (typeof this.key !== 'undefined') {
|
|
505
483
|
toReturn['key'] = this.key;
|
|
@@ -510,32 +488,6 @@ class SingleValueAttribute {
|
|
|
510
488
|
return toReturn;
|
|
511
489
|
}
|
|
512
490
|
}
|
|
513
|
-
class StructAttribute {
|
|
514
|
-
constructor(kwargs) {
|
|
515
|
-
if (!kwargs) {
|
|
516
|
-
return;
|
|
517
|
-
}
|
|
518
|
-
Object.assign(this, kwargs);
|
|
519
|
-
}
|
|
520
|
-
static fromProto(proto) {
|
|
521
|
-
let m = new StructAttribute();
|
|
522
|
-
m = Object.assign(m, proto);
|
|
523
|
-
if (proto.attributes) {
|
|
524
|
-
m.attributes = Object.keys(proto.attributes).reduce((obj, k) => { obj[k] = Attribute.fromProto(proto.attributes[k]); return obj; }, {});
|
|
525
|
-
}
|
|
526
|
-
return m;
|
|
527
|
-
}
|
|
528
|
-
toApiJson() {
|
|
529
|
-
if (typeof this.attributes === 'undefined') {
|
|
530
|
-
return {};
|
|
531
|
-
}
|
|
532
|
-
const toReturn = {};
|
|
533
|
-
if (typeof this.attributes !== 'undefined' && this.attributes !== null) {
|
|
534
|
-
toReturn['attributes'] = 'toApiJson' in this.attributes ? this.attributes.toApiJson() : this.attributes;
|
|
535
|
-
}
|
|
536
|
-
return toReturn;
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
491
|
class Subject {
|
|
540
492
|
constructor(kwargs) {
|
|
541
493
|
if (!kwargs) {
|
|
@@ -567,18 +519,6 @@ class Subject {
|
|
|
567
519
|
return m;
|
|
568
520
|
}
|
|
569
521
|
toApiJson() {
|
|
570
|
-
if (typeof this.subjectId === 'undefined' &&
|
|
571
|
-
typeof this.email === 'undefined' &&
|
|
572
|
-
typeof this.userId === 'undefined' &&
|
|
573
|
-
typeof this.partnerId === 'undefined' &&
|
|
574
|
-
typeof this.attributes === 'undefined' &&
|
|
575
|
-
typeof this.created === 'undefined' &&
|
|
576
|
-
typeof this.updated === 'undefined' &&
|
|
577
|
-
typeof this.lastLogin === 'undefined' &&
|
|
578
|
-
typeof this.publicKeys === 'undefined' &&
|
|
579
|
-
typeof this.structAttributes === 'undefined') {
|
|
580
|
-
return {};
|
|
581
|
-
}
|
|
582
522
|
const toReturn = {};
|
|
583
523
|
if (typeof this.subjectId !== 'undefined') {
|
|
584
524
|
toReturn['subjectId'] = this.subjectId;
|
|
@@ -629,9 +569,6 @@ class SubjectResult {
|
|
|
629
569
|
return m;
|
|
630
570
|
}
|
|
631
571
|
toApiJson() {
|
|
632
|
-
if (typeof this.subject === 'undefined') {
|
|
633
|
-
return {};
|
|
634
|
-
}
|
|
635
572
|
const toReturn = {};
|
|
636
573
|
if (typeof this.subject !== 'undefined' && this.subject !== null) {
|
|
637
574
|
toReturn['subject'] = 'toApiJson' in this.subject ? this.subject.toApiJson() : this.subject;
|
|
@@ -652,9 +589,6 @@ class TypedContext {
|
|
|
652
589
|
return m;
|
|
653
590
|
}
|
|
654
591
|
toApiJson() {
|
|
655
|
-
if (typeof this.type === 'undefined') {
|
|
656
|
-
return {};
|
|
657
|
-
}
|
|
658
592
|
const toReturn = {};
|
|
659
593
|
if (typeof this.type !== 'undefined') {
|
|
660
594
|
toReturn['type'] = this.type;
|
|
@@ -663,7 +597,7 @@ class TypedContext {
|
|
|
663
597
|
}
|
|
664
598
|
}
|
|
665
599
|
|
|
666
|
-
function enumStringToValue$
|
|
600
|
+
function enumStringToValue$2(enumRef, value) {
|
|
667
601
|
if (typeof value === 'number') {
|
|
668
602
|
return value;
|
|
669
603
|
}
|
|
@@ -682,9 +616,6 @@ class FieldMask {
|
|
|
682
616
|
return m;
|
|
683
617
|
}
|
|
684
618
|
toApiJson() {
|
|
685
|
-
if (typeof this.paths === 'undefined') {
|
|
686
|
-
return {};
|
|
687
|
-
}
|
|
688
619
|
const toReturn = {};
|
|
689
620
|
if (typeof this.paths !== 'undefined') {
|
|
690
621
|
toReturn['paths'] = this.paths;
|
|
@@ -693,68 +624,13 @@ class FieldMask {
|
|
|
693
624
|
}
|
|
694
625
|
}
|
|
695
626
|
|
|
696
|
-
|
|
627
|
+
// NOTE: THIS HAS BEEN MANUALLY EDITED. PLEASE SEE THE BELOW COMMENTS TO SEE WHERE IT HAS BEEN EDITED
|
|
628
|
+
function enumStringToValue$3(enumRef, value) {
|
|
697
629
|
if (typeof value === 'number') {
|
|
698
630
|
return value;
|
|
699
631
|
}
|
|
700
632
|
return enumRef[value];
|
|
701
633
|
}
|
|
702
|
-
class AccessCheckFailures {
|
|
703
|
-
constructor(kwargs) {
|
|
704
|
-
if (!kwargs) {
|
|
705
|
-
return;
|
|
706
|
-
}
|
|
707
|
-
Object.assign(this, kwargs);
|
|
708
|
-
}
|
|
709
|
-
static fromProto(proto) {
|
|
710
|
-
let m = new AccessCheckFailures();
|
|
711
|
-
m = Object.assign(m, proto);
|
|
712
|
-
if (proto.failures) {
|
|
713
|
-
m.failures = proto.failures.map(ResourceIdentifier.fromProto);
|
|
714
|
-
}
|
|
715
|
-
return m;
|
|
716
|
-
}
|
|
717
|
-
toApiJson() {
|
|
718
|
-
if (typeof this.failures === 'undefined') {
|
|
719
|
-
return {};
|
|
720
|
-
}
|
|
721
|
-
const toReturn = {};
|
|
722
|
-
if (typeof this.failures !== 'undefined' && this.failures !== null) {
|
|
723
|
-
toReturn['failures'] = 'toApiJson' in this.failures ? this.failures.toApiJson() : this.failures;
|
|
724
|
-
}
|
|
725
|
-
return toReturn;
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
class ResourceIdentifierIdentifiersEntry {
|
|
729
|
-
constructor(kwargs) {
|
|
730
|
-
if (!kwargs) {
|
|
731
|
-
return;
|
|
732
|
-
}
|
|
733
|
-
Object.assign(this, kwargs);
|
|
734
|
-
}
|
|
735
|
-
static fromProto(proto) {
|
|
736
|
-
let m = new ResourceIdentifierIdentifiersEntry();
|
|
737
|
-
m = Object.assign(m, proto);
|
|
738
|
-
if (proto.value) {
|
|
739
|
-
m.value = ValueList.fromProto(proto.value);
|
|
740
|
-
}
|
|
741
|
-
return m;
|
|
742
|
-
}
|
|
743
|
-
toApiJson() {
|
|
744
|
-
if (typeof this.key === 'undefined' &&
|
|
745
|
-
typeof this.value === 'undefined') {
|
|
746
|
-
return {};
|
|
747
|
-
}
|
|
748
|
-
const toReturn = {};
|
|
749
|
-
if (typeof this.key !== 'undefined') {
|
|
750
|
-
toReturn['key'] = this.key;
|
|
751
|
-
}
|
|
752
|
-
if (typeof this.value !== 'undefined' && this.value !== null) {
|
|
753
|
-
toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
|
|
754
|
-
}
|
|
755
|
-
return toReturn;
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
634
|
class IfClause {
|
|
759
635
|
constructor(kwargs) {
|
|
760
636
|
if (!kwargs) {
|
|
@@ -777,62 +653,23 @@ class IfClause {
|
|
|
777
653
|
return m;
|
|
778
654
|
}
|
|
779
655
|
toApiJson() {
|
|
780
|
-
if (typeof this.resourceAttributeName === 'undefined' &&
|
|
781
|
-
typeof this.resourceAttributeValue === 'undefined' &&
|
|
782
|
-
typeof this.thenPolicy === 'undefined' &&
|
|
783
|
-
typeof this.elsePolicy === 'undefined') {
|
|
784
|
-
return {};
|
|
785
|
-
}
|
|
786
656
|
const toReturn = {};
|
|
787
657
|
if (typeof this.resourceAttributeName !== 'undefined') {
|
|
788
658
|
toReturn['resourceAttributeName'] = this.resourceAttributeName;
|
|
789
659
|
}
|
|
790
|
-
if (typeof this.resourceAttributeValue !== 'undefined' && this.resourceAttributeValue !== null) {
|
|
791
|
-
toReturn['resourceAttributeValue'] = 'toApiJson' in this.resourceAttributeValue ? this.resourceAttributeValue.toApiJson() : this.resourceAttributeValue;
|
|
792
|
-
}
|
|
793
|
-
if (typeof this.thenPolicy !== 'undefined' && this.thenPolicy !== null) {
|
|
794
|
-
toReturn['thenPolicy'] = 'toApiJson' in this.thenPolicy ? this.thenPolicy.toApiJson() : this.thenPolicy;
|
|
795
|
-
}
|
|
796
|
-
if (typeof this.elsePolicy !== 'undefined' && this.elsePolicy !== null) {
|
|
797
|
-
toReturn['elsePolicy'] = 'toApiJson' in this.elsePolicy ? this.elsePolicy.toApiJson() : this.elsePolicy;
|
|
798
|
-
}
|
|
799
|
-
return toReturn;
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
class Operator {
|
|
803
|
-
constructor(kwargs) {
|
|
804
|
-
if (!kwargs) {
|
|
805
|
-
return;
|
|
806
|
-
}
|
|
807
|
-
Object.assign(this, kwargs);
|
|
808
|
-
}
|
|
809
|
-
static fromProto(proto) {
|
|
810
|
-
let m = new Operator();
|
|
811
|
-
m = Object.assign(m, proto);
|
|
812
|
-
if (proto.operator) {
|
|
813
|
-
m.operator = enumStringToValue$2(BooleanOperator, proto.operator);
|
|
814
|
-
}
|
|
815
|
-
if (proto.children) {
|
|
816
|
-
m.children = proto.children.map(PolicyNode.fromProto);
|
|
817
|
-
}
|
|
818
|
-
return m;
|
|
819
|
-
}
|
|
820
|
-
toApiJson() {
|
|
821
|
-
if (typeof this.operator === 'undefined' &&
|
|
822
|
-
typeof this.children === 'undefined') {
|
|
823
|
-
return {};
|
|
660
|
+
if (typeof this.resourceAttributeValue !== 'undefined' && this.resourceAttributeValue !== null) {
|
|
661
|
+
toReturn['resourceAttributeValue'] = 'toApiJson' in this.resourceAttributeValue ? this.resourceAttributeValue.toApiJson() : this.resourceAttributeValue;
|
|
824
662
|
}
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
toReturn['operator'] = this.operator;
|
|
663
|
+
if (typeof this.thenPolicy !== 'undefined' && this.thenPolicy !== null) {
|
|
664
|
+
toReturn['thenPolicy'] = 'toApiJson' in this.thenPolicy ? this.thenPolicy.toApiJson() : this.thenPolicy;
|
|
828
665
|
}
|
|
829
|
-
if (typeof this.
|
|
830
|
-
toReturn['
|
|
666
|
+
if (typeof this.elsePolicy !== 'undefined' && this.elsePolicy !== null) {
|
|
667
|
+
toReturn['elsePolicy'] = 'toApiJson' in this.elsePolicy ? this.elsePolicy.toApiJson() : this.elsePolicy;
|
|
831
668
|
}
|
|
832
669
|
return toReturn;
|
|
833
670
|
}
|
|
834
671
|
}
|
|
835
|
-
class
|
|
672
|
+
class Operator {
|
|
836
673
|
constructor(kwargs) {
|
|
837
674
|
if (!kwargs) {
|
|
838
675
|
return;
|
|
@@ -840,43 +677,24 @@ class Policy {
|
|
|
840
677
|
Object.assign(this, kwargs);
|
|
841
678
|
}
|
|
842
679
|
static fromProto(proto) {
|
|
843
|
-
let m = new
|
|
680
|
+
let m = new Operator();
|
|
844
681
|
m = Object.assign(m, proto);
|
|
845
|
-
|
|
846
|
-
|
|
682
|
+
// Edited from e.policiesBooleanOperator to e.BooleanOperator
|
|
683
|
+
if (proto.operator) {
|
|
684
|
+
m.operator = enumStringToValue$3(BooleanOperator, proto.operator);
|
|
847
685
|
}
|
|
848
|
-
if (proto.
|
|
849
|
-
m.
|
|
686
|
+
if (proto.children) {
|
|
687
|
+
m.children = proto.children.map(PolicyNode.fromProto);
|
|
850
688
|
}
|
|
851
689
|
return m;
|
|
852
690
|
}
|
|
853
691
|
toApiJson() {
|
|
854
|
-
if (typeof this.appId === 'undefined' &&
|
|
855
|
-
typeof this.resourceId === 'undefined' &&
|
|
856
|
-
typeof this.policyId === 'undefined' &&
|
|
857
|
-
typeof this.policyName === 'undefined' &&
|
|
858
|
-
typeof this.operations === 'undefined' &&
|
|
859
|
-
typeof this.policy === 'undefined') {
|
|
860
|
-
return {};
|
|
861
|
-
}
|
|
862
692
|
const toReturn = {};
|
|
863
|
-
if (typeof this.
|
|
864
|
-
toReturn['
|
|
865
|
-
}
|
|
866
|
-
if (typeof this.resourceId !== 'undefined') {
|
|
867
|
-
toReturn['resourceId'] = this.resourceId;
|
|
868
|
-
}
|
|
869
|
-
if (typeof this.policyId !== 'undefined') {
|
|
870
|
-
toReturn['policyId'] = this.policyId;
|
|
871
|
-
}
|
|
872
|
-
if (typeof this.policyName !== 'undefined') {
|
|
873
|
-
toReturn['policyName'] = this.policyName;
|
|
874
|
-
}
|
|
875
|
-
if (typeof this.operations !== 'undefined') {
|
|
876
|
-
toReturn['operations'] = this.operations;
|
|
693
|
+
if (typeof this.operator !== 'undefined') {
|
|
694
|
+
toReturn['operator'] = this.operator;
|
|
877
695
|
}
|
|
878
|
-
if (typeof this.
|
|
879
|
-
toReturn['
|
|
696
|
+
if (typeof this.children !== 'undefined' && this.children !== null) {
|
|
697
|
+
toReturn['children'] = 'toApiJson' in this.children ? this.children.toApiJson() : this.children;
|
|
880
698
|
}
|
|
881
699
|
return toReturn;
|
|
882
700
|
}
|
|
@@ -915,15 +733,6 @@ class PolicyNode {
|
|
|
915
733
|
return m;
|
|
916
734
|
}
|
|
917
735
|
toApiJson() {
|
|
918
|
-
if (typeof this.subjectResourceIntersection === 'undefined' &&
|
|
919
|
-
typeof this.operator === 'undefined' &&
|
|
920
|
-
typeof this.subjectValueIntersection === 'undefined' &&
|
|
921
|
-
typeof this.subjectMissingValue === 'undefined' &&
|
|
922
|
-
typeof this.subjectResourceSubset === 'undefined' &&
|
|
923
|
-
typeof this.subjectResourceFor === 'undefined' &&
|
|
924
|
-
typeof this.ifClause === 'undefined') {
|
|
925
|
-
return {};
|
|
926
|
-
}
|
|
927
736
|
const toReturn = {};
|
|
928
737
|
if (typeof this.subjectResourceIntersection !== 'undefined' && this.subjectResourceIntersection !== null) {
|
|
929
738
|
toReturn['subjectResourceIntersection'] = 'toApiJson' in this.subjectResourceIntersection ? this.subjectResourceIntersection.toApiJson() : this.subjectResourceIntersection;
|
|
@@ -949,7 +758,7 @@ class PolicyNode {
|
|
|
949
758
|
return toReturn;
|
|
950
759
|
}
|
|
951
760
|
}
|
|
952
|
-
class
|
|
761
|
+
class SubjectMissingValueClause {
|
|
953
762
|
constructor(kwargs) {
|
|
954
763
|
if (!kwargs) {
|
|
955
764
|
return;
|
|
@@ -957,25 +766,19 @@ class ResourceIdentifier {
|
|
|
957
766
|
Object.assign(this, kwargs);
|
|
958
767
|
}
|
|
959
768
|
static fromProto(proto) {
|
|
960
|
-
let m = new
|
|
769
|
+
let m = new SubjectMissingValueClause();
|
|
961
770
|
m = Object.assign(m, proto);
|
|
962
|
-
if (proto.identifiers) {
|
|
963
|
-
m.identifiers = Object.keys(proto.identifiers).reduce((obj, k) => { obj[k] = ValueList.fromProto(proto.identifiers[k]); return obj; }, {});
|
|
964
|
-
}
|
|
965
771
|
return m;
|
|
966
772
|
}
|
|
967
773
|
toApiJson() {
|
|
968
|
-
if (typeof this.identifiers === 'undefined') {
|
|
969
|
-
return {};
|
|
970
|
-
}
|
|
971
774
|
const toReturn = {};
|
|
972
|
-
if (typeof this.
|
|
973
|
-
toReturn['
|
|
775
|
+
if (typeof this.attributeName !== 'undefined') {
|
|
776
|
+
toReturn['attributeName'] = this.attributeName;
|
|
974
777
|
}
|
|
975
778
|
return toReturn;
|
|
976
779
|
}
|
|
977
780
|
}
|
|
978
|
-
class
|
|
781
|
+
class SubjectResourceForClause {
|
|
979
782
|
constructor(kwargs) {
|
|
980
783
|
if (!kwargs) {
|
|
981
784
|
return;
|
|
@@ -983,26 +786,31 @@ class ResourceOwner {
|
|
|
983
786
|
Object.assign(this, kwargs);
|
|
984
787
|
}
|
|
985
788
|
static fromProto(proto) {
|
|
986
|
-
let m = new
|
|
789
|
+
let m = new SubjectResourceForClause();
|
|
987
790
|
m = Object.assign(m, proto);
|
|
791
|
+
if (proto.operator) {
|
|
792
|
+
m.operator = enumStringToValue$3(ForOperator, proto.operator);
|
|
793
|
+
}
|
|
794
|
+
if (proto.rules) {
|
|
795
|
+
m.rules = PolicyNode.fromProto(proto.rules);
|
|
796
|
+
}
|
|
988
797
|
return m;
|
|
989
798
|
}
|
|
990
799
|
toApiJson() {
|
|
991
|
-
if (typeof this.appId === 'undefined' &&
|
|
992
|
-
typeof this.appName === 'undefined') {
|
|
993
|
-
return {};
|
|
994
|
-
}
|
|
995
800
|
const toReturn = {};
|
|
996
|
-
if (typeof this.
|
|
997
|
-
toReturn['
|
|
801
|
+
if (typeof this.attributeName !== 'undefined') {
|
|
802
|
+
toReturn['attributeName'] = this.attributeName;
|
|
998
803
|
}
|
|
999
|
-
if (typeof this.
|
|
1000
|
-
toReturn['
|
|
804
|
+
if (typeof this.operator !== 'undefined') {
|
|
805
|
+
toReturn['operator'] = this.operator;
|
|
806
|
+
}
|
|
807
|
+
if (typeof this.rules !== 'undefined' && this.rules !== null) {
|
|
808
|
+
toReturn['rules'] = 'toApiJson' in this.rules ? this.rules.toApiJson() : this.rules;
|
|
1001
809
|
}
|
|
1002
810
|
return toReturn;
|
|
1003
811
|
}
|
|
1004
812
|
}
|
|
1005
|
-
class
|
|
813
|
+
class SubjectResourceIntersectionClause {
|
|
1006
814
|
constructor(kwargs) {
|
|
1007
815
|
if (!kwargs) {
|
|
1008
816
|
return;
|
|
@@ -1010,22 +818,22 @@ class SubjectMissingValueClause {
|
|
|
1010
818
|
Object.assign(this, kwargs);
|
|
1011
819
|
}
|
|
1012
820
|
static fromProto(proto) {
|
|
1013
|
-
let m = new
|
|
821
|
+
let m = new SubjectResourceIntersectionClause();
|
|
1014
822
|
m = Object.assign(m, proto);
|
|
1015
823
|
return m;
|
|
1016
824
|
}
|
|
1017
825
|
toApiJson() {
|
|
1018
|
-
if (typeof this.attributeName === 'undefined') {
|
|
1019
|
-
return {};
|
|
1020
|
-
}
|
|
1021
826
|
const toReturn = {};
|
|
1022
827
|
if (typeof this.attributeName !== 'undefined') {
|
|
1023
828
|
toReturn['attributeName'] = this.attributeName;
|
|
1024
829
|
}
|
|
830
|
+
if (typeof this.resourceAttributeName !== 'undefined') {
|
|
831
|
+
toReturn['resourceAttributeName'] = this.resourceAttributeName;
|
|
832
|
+
}
|
|
1025
833
|
return toReturn;
|
|
1026
834
|
}
|
|
1027
835
|
}
|
|
1028
|
-
class
|
|
836
|
+
class SubjectResourceSubsetClause {
|
|
1029
837
|
constructor(kwargs) {
|
|
1030
838
|
if (!kwargs) {
|
|
1031
839
|
return;
|
|
@@ -1033,36 +841,22 @@ class SubjectResourceForClause {
|
|
|
1033
841
|
Object.assign(this, kwargs);
|
|
1034
842
|
}
|
|
1035
843
|
static fromProto(proto) {
|
|
1036
|
-
let m = new
|
|
844
|
+
let m = new SubjectResourceSubsetClause();
|
|
1037
845
|
m = Object.assign(m, proto);
|
|
1038
|
-
if (proto.operator) {
|
|
1039
|
-
m.operator = enumStringToValue$2(ForOperator, proto.operator);
|
|
1040
|
-
}
|
|
1041
|
-
if (proto.rules) {
|
|
1042
|
-
m.rules = PolicyNode.fromProto(proto.rules);
|
|
1043
|
-
}
|
|
1044
846
|
return m;
|
|
1045
847
|
}
|
|
1046
848
|
toApiJson() {
|
|
1047
|
-
if (typeof this.attributeName === 'undefined' &&
|
|
1048
|
-
typeof this.operator === 'undefined' &&
|
|
1049
|
-
typeof this.rules === 'undefined') {
|
|
1050
|
-
return {};
|
|
1051
|
-
}
|
|
1052
849
|
const toReturn = {};
|
|
1053
850
|
if (typeof this.attributeName !== 'undefined') {
|
|
1054
851
|
toReturn['attributeName'] = this.attributeName;
|
|
1055
852
|
}
|
|
1056
|
-
if (typeof this.
|
|
1057
|
-
toReturn['
|
|
1058
|
-
}
|
|
1059
|
-
if (typeof this.rules !== 'undefined' && this.rules !== null) {
|
|
1060
|
-
toReturn['rules'] = 'toApiJson' in this.rules ? this.rules.toApiJson() : this.rules;
|
|
853
|
+
if (typeof this.resourceAttributeName !== 'undefined') {
|
|
854
|
+
toReturn['resourceAttributeName'] = this.resourceAttributeName;
|
|
1061
855
|
}
|
|
1062
856
|
return toReturn;
|
|
1063
857
|
}
|
|
1064
858
|
}
|
|
1065
|
-
class
|
|
859
|
+
class SubjectValueIntersectionClause {
|
|
1066
860
|
constructor(kwargs) {
|
|
1067
861
|
if (!kwargs) {
|
|
1068
862
|
return;
|
|
@@ -1070,26 +864,35 @@ class SubjectResourceIntersectionClause {
|
|
|
1070
864
|
Object.assign(this, kwargs);
|
|
1071
865
|
}
|
|
1072
866
|
static fromProto(proto) {
|
|
1073
|
-
let m = new
|
|
867
|
+
let m = new SubjectValueIntersectionClause();
|
|
1074
868
|
m = Object.assign(m, proto);
|
|
869
|
+
if (proto.structuredAttributeValue) {
|
|
870
|
+
m.structuredAttributeValue = Attribute.fromProto(proto.structuredAttributeValue);
|
|
871
|
+
}
|
|
1075
872
|
return m;
|
|
1076
873
|
}
|
|
1077
874
|
toApiJson() {
|
|
1078
|
-
if (typeof this.attributeName === 'undefined' &&
|
|
1079
|
-
typeof this.resourceAttributeName === 'undefined') {
|
|
1080
|
-
return {};
|
|
1081
|
-
}
|
|
1082
875
|
const toReturn = {};
|
|
1083
876
|
if (typeof this.attributeName !== 'undefined') {
|
|
1084
877
|
toReturn['attributeName'] = this.attributeName;
|
|
1085
878
|
}
|
|
1086
|
-
if (typeof this.
|
|
1087
|
-
toReturn['
|
|
879
|
+
if (typeof this.attributeValue !== 'undefined') {
|
|
880
|
+
toReturn['attributeValue'] = this.attributeValue;
|
|
881
|
+
}
|
|
882
|
+
if (typeof this.structuredAttributeValue !== 'undefined' && this.structuredAttributeValue !== null) {
|
|
883
|
+
toReturn['structuredAttributeValue'] = 'toApiJson' in this.structuredAttributeValue ? this.structuredAttributeValue.toApiJson() : this.structuredAttributeValue;
|
|
1088
884
|
}
|
|
1089
885
|
return toReturn;
|
|
1090
886
|
}
|
|
1091
887
|
}
|
|
1092
|
-
|
|
888
|
+
|
|
889
|
+
function enumStringToValue$4(enumRef, value) {
|
|
890
|
+
if (typeof value === 'number') {
|
|
891
|
+
return value;
|
|
892
|
+
}
|
|
893
|
+
return enumRef[value];
|
|
894
|
+
}
|
|
895
|
+
class AccessCheckFailures {
|
|
1093
896
|
constructor(kwargs) {
|
|
1094
897
|
if (!kwargs) {
|
|
1095
898
|
return;
|
|
@@ -1097,26 +900,48 @@ class SubjectResourceSubsetClause {
|
|
|
1097
900
|
Object.assign(this, kwargs);
|
|
1098
901
|
}
|
|
1099
902
|
static fromProto(proto) {
|
|
1100
|
-
let m = new
|
|
903
|
+
let m = new AccessCheckFailures();
|
|
1101
904
|
m = Object.assign(m, proto);
|
|
905
|
+
if (proto.failures) {
|
|
906
|
+
m.failures = proto.failures.map(ResourceIdentifier.fromProto);
|
|
907
|
+
}
|
|
1102
908
|
return m;
|
|
1103
909
|
}
|
|
1104
910
|
toApiJson() {
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
911
|
+
const toReturn = {};
|
|
912
|
+
if (typeof this.failures !== 'undefined' && this.failures !== null) {
|
|
913
|
+
toReturn['failures'] = 'toApiJson' in this.failures ? this.failures.toApiJson() : this.failures;
|
|
914
|
+
}
|
|
915
|
+
return toReturn;
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
class ResourceIdentifierIdentifiersEntry {
|
|
919
|
+
constructor(kwargs) {
|
|
920
|
+
if (!kwargs) {
|
|
921
|
+
return;
|
|
922
|
+
}
|
|
923
|
+
Object.assign(this, kwargs);
|
|
924
|
+
}
|
|
925
|
+
static fromProto(proto) {
|
|
926
|
+
let m = new ResourceIdentifierIdentifiersEntry();
|
|
927
|
+
m = Object.assign(m, proto);
|
|
928
|
+
if (proto.value) {
|
|
929
|
+
m.value = ValueList.fromProto(proto.value);
|
|
1108
930
|
}
|
|
931
|
+
return m;
|
|
932
|
+
}
|
|
933
|
+
toApiJson() {
|
|
1109
934
|
const toReturn = {};
|
|
1110
|
-
if (typeof this.
|
|
1111
|
-
toReturn['
|
|
935
|
+
if (typeof this.key !== 'undefined') {
|
|
936
|
+
toReturn['key'] = this.key;
|
|
1112
937
|
}
|
|
1113
|
-
if (typeof this.
|
|
1114
|
-
toReturn['
|
|
938
|
+
if (typeof this.value !== 'undefined' && this.value !== null) {
|
|
939
|
+
toReturn['value'] = 'toApiJson' in this.value ? this.value.toApiJson() : this.value;
|
|
1115
940
|
}
|
|
1116
941
|
return toReturn;
|
|
1117
942
|
}
|
|
1118
943
|
}
|
|
1119
|
-
class
|
|
944
|
+
class Policy {
|
|
1120
945
|
constructor(kwargs) {
|
|
1121
946
|
if (!kwargs) {
|
|
1122
947
|
return;
|
|
@@ -1124,28 +949,84 @@ class SubjectValueIntersectionClause {
|
|
|
1124
949
|
Object.assign(this, kwargs);
|
|
1125
950
|
}
|
|
1126
951
|
static fromProto(proto) {
|
|
1127
|
-
let m = new
|
|
952
|
+
let m = new Policy();
|
|
1128
953
|
m = Object.assign(m, proto);
|
|
1129
|
-
if (proto.
|
|
1130
|
-
m.
|
|
954
|
+
if (proto.operations) {
|
|
955
|
+
m.operations = proto.operations.map((v) => enumStringToValue$4(AccessScope, v));
|
|
956
|
+
}
|
|
957
|
+
if (proto.policy) {
|
|
958
|
+
m.policy = PolicyNode.fromProto(proto.policy);
|
|
1131
959
|
}
|
|
1132
960
|
return m;
|
|
1133
961
|
}
|
|
1134
962
|
toApiJson() {
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
963
|
+
const toReturn = {};
|
|
964
|
+
if (typeof this.appId !== 'undefined') {
|
|
965
|
+
toReturn['appId'] = this.appId;
|
|
966
|
+
}
|
|
967
|
+
if (typeof this.resourceId !== 'undefined') {
|
|
968
|
+
toReturn['resourceId'] = this.resourceId;
|
|
969
|
+
}
|
|
970
|
+
if (typeof this.policyId !== 'undefined') {
|
|
971
|
+
toReturn['policyId'] = this.policyId;
|
|
972
|
+
}
|
|
973
|
+
if (typeof this.policyName !== 'undefined') {
|
|
974
|
+
toReturn['policyName'] = this.policyName;
|
|
975
|
+
}
|
|
976
|
+
if (typeof this.operations !== 'undefined') {
|
|
977
|
+
toReturn['operations'] = this.operations;
|
|
978
|
+
}
|
|
979
|
+
if (typeof this.actions !== 'undefined') {
|
|
980
|
+
toReturn['actions'] = this.actions;
|
|
981
|
+
}
|
|
982
|
+
if (typeof this.policy !== 'undefined' && this.policy !== null) {
|
|
983
|
+
toReturn['policy'] = 'toApiJson' in this.policy ? this.policy.toApiJson() : this.policy;
|
|
984
|
+
}
|
|
985
|
+
return toReturn;
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
class ResourceIdentifier {
|
|
989
|
+
constructor(kwargs) {
|
|
990
|
+
if (!kwargs) {
|
|
991
|
+
return;
|
|
992
|
+
}
|
|
993
|
+
Object.assign(this, kwargs);
|
|
994
|
+
}
|
|
995
|
+
static fromProto(proto) {
|
|
996
|
+
let m = new ResourceIdentifier();
|
|
997
|
+
m = Object.assign(m, proto);
|
|
998
|
+
if (proto.identifiers) {
|
|
999
|
+
m.identifiers = Object.keys(proto.identifiers).reduce((obj, k) => { obj[k] = ValueList.fromProto(proto.identifiers[k]); return obj; }, {});
|
|
1139
1000
|
}
|
|
1001
|
+
return m;
|
|
1002
|
+
}
|
|
1003
|
+
toApiJson() {
|
|
1140
1004
|
const toReturn = {};
|
|
1141
|
-
if (typeof this.
|
|
1142
|
-
toReturn['
|
|
1005
|
+
if (typeof this.identifiers !== 'undefined' && this.identifiers !== null) {
|
|
1006
|
+
toReturn['identifiers'] = 'toApiJson' in this.identifiers ? this.identifiers.toApiJson() : this.identifiers;
|
|
1143
1007
|
}
|
|
1144
|
-
|
|
1145
|
-
|
|
1008
|
+
return toReturn;
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
class ResourceOwner {
|
|
1012
|
+
constructor(kwargs) {
|
|
1013
|
+
if (!kwargs) {
|
|
1014
|
+
return;
|
|
1146
1015
|
}
|
|
1147
|
-
|
|
1148
|
-
|
|
1016
|
+
Object.assign(this, kwargs);
|
|
1017
|
+
}
|
|
1018
|
+
static fromProto(proto) {
|
|
1019
|
+
let m = new ResourceOwner();
|
|
1020
|
+
m = Object.assign(m, proto);
|
|
1021
|
+
return m;
|
|
1022
|
+
}
|
|
1023
|
+
toApiJson() {
|
|
1024
|
+
const toReturn = {};
|
|
1025
|
+
if (typeof this.appId !== 'undefined') {
|
|
1026
|
+
toReturn['appId'] = this.appId;
|
|
1027
|
+
}
|
|
1028
|
+
if (typeof this.appName !== 'undefined') {
|
|
1029
|
+
toReturn['appName'] = this.appName;
|
|
1149
1030
|
}
|
|
1150
1031
|
return toReturn;
|
|
1151
1032
|
}
|
|
@@ -1163,9 +1044,6 @@ class ValueList {
|
|
|
1163
1044
|
return m;
|
|
1164
1045
|
}
|
|
1165
1046
|
toApiJson() {
|
|
1166
|
-
if (typeof this.values === 'undefined') {
|
|
1167
|
-
return {};
|
|
1168
|
-
}
|
|
1169
1047
|
const toReturn = {};
|
|
1170
1048
|
if (typeof this.values !== 'undefined') {
|
|
1171
1049
|
toReturn['values'] = this.values;
|
|
@@ -1174,7 +1052,7 @@ class ValueList {
|
|
|
1174
1052
|
}
|
|
1175
1053
|
}
|
|
1176
1054
|
|
|
1177
|
-
function enumStringToValue$
|
|
1055
|
+
function enumStringToValue$5(enumRef, value) {
|
|
1178
1056
|
if (typeof value === 'number') {
|
|
1179
1057
|
return value;
|
|
1180
1058
|
}
|
|
@@ -1196,13 +1074,6 @@ class SecurityLog {
|
|
|
1196
1074
|
return m;
|
|
1197
1075
|
}
|
|
1198
1076
|
toApiJson() {
|
|
1199
|
-
if (typeof this.userId === 'undefined' &&
|
|
1200
|
-
typeof this.actionId === 'undefined' &&
|
|
1201
|
-
typeof this.logId === 'undefined' &&
|
|
1202
|
-
typeof this.description === 'undefined' &&
|
|
1203
|
-
typeof this.created === 'undefined') {
|
|
1204
|
-
return {};
|
|
1205
|
-
}
|
|
1206
1077
|
const toReturn = {};
|
|
1207
1078
|
if (typeof this.userId !== 'undefined') {
|
|
1208
1079
|
toReturn['userId'] = this.userId;
|
|
@@ -1223,7 +1094,7 @@ class SecurityLog {
|
|
|
1223
1094
|
}
|
|
1224
1095
|
}
|
|
1225
1096
|
|
|
1226
|
-
function enumStringToValue$
|
|
1097
|
+
function enumStringToValue$6(enumRef, value) {
|
|
1227
1098
|
if (typeof value === 'number') {
|
|
1228
1099
|
return value;
|
|
1229
1100
|
}
|
|
@@ -1241,11 +1112,7 @@ class Identifier {
|
|
|
1241
1112
|
m = Object.assign(m, proto);
|
|
1242
1113
|
return m;
|
|
1243
1114
|
}
|
|
1244
|
-
toApiJson() {
|
|
1245
|
-
if (typeof this.subjectId === 'undefined' &&
|
|
1246
|
-
typeof this.userId === 'undefined') {
|
|
1247
|
-
return {};
|
|
1248
|
-
}
|
|
1115
|
+
toApiJson() {
|
|
1249
1116
|
const toReturn = {};
|
|
1250
1117
|
if (typeof this.subjectId !== 'undefined') {
|
|
1251
1118
|
toReturn['subjectId'] = this.subjectId;
|
|
@@ -1269,10 +1136,6 @@ class NamespacedEmail {
|
|
|
1269
1136
|
return m;
|
|
1270
1137
|
}
|
|
1271
1138
|
toApiJson() {
|
|
1272
|
-
if (typeof this.namespace === 'undefined' &&
|
|
1273
|
-
typeof this.email === 'undefined') {
|
|
1274
|
-
return {};
|
|
1275
|
-
}
|
|
1276
1139
|
const toReturn = {};
|
|
1277
1140
|
if (typeof this.namespace !== 'undefined') {
|
|
1278
1141
|
toReturn['namespace'] = this.namespace;
|
|
@@ -1296,10 +1159,6 @@ class NamespacedSession {
|
|
|
1296
1159
|
return m;
|
|
1297
1160
|
}
|
|
1298
1161
|
toApiJson() {
|
|
1299
|
-
if (typeof this.namespace === 'undefined' &&
|
|
1300
|
-
typeof this.session === 'undefined') {
|
|
1301
|
-
return {};
|
|
1302
|
-
}
|
|
1303
1162
|
const toReturn = {};
|
|
1304
1163
|
if (typeof this.namespace !== 'undefined') {
|
|
1305
1164
|
toReturn['namespace'] = this.namespace;
|
|
@@ -1323,10 +1182,6 @@ class TypedExternalIdentifier {
|
|
|
1323
1182
|
return m;
|
|
1324
1183
|
}
|
|
1325
1184
|
toApiJson() {
|
|
1326
|
-
if (typeof this.externalIdType === 'undefined' &&
|
|
1327
|
-
typeof this.externalId === 'undefined') {
|
|
1328
|
-
return {};
|
|
1329
|
-
}
|
|
1330
1185
|
const toReturn = {};
|
|
1331
1186
|
if (typeof this.externalIdType !== 'undefined') {
|
|
1332
1187
|
toReturn['externalIdType'] = this.externalIdType;
|
|
@@ -1362,21 +1217,6 @@ class User {
|
|
|
1362
1217
|
return m;
|
|
1363
1218
|
}
|
|
1364
1219
|
toApiJson() {
|
|
1365
|
-
if (typeof this.userId === 'undefined' &&
|
|
1366
|
-
typeof this.namespace === 'undefined' &&
|
|
1367
|
-
typeof this.email === 'undefined' &&
|
|
1368
|
-
typeof this.created === 'undefined' &&
|
|
1369
|
-
typeof this.updated === 'undefined' &&
|
|
1370
|
-
typeof this.firstName === 'undefined' &&
|
|
1371
|
-
typeof this.greetingName === 'undefined' &&
|
|
1372
|
-
typeof this.lastName === 'undefined' &&
|
|
1373
|
-
typeof this.languageCode === 'undefined' &&
|
|
1374
|
-
typeof this.emailVerified === 'undefined' &&
|
|
1375
|
-
typeof this.roles === 'undefined' &&
|
|
1376
|
-
typeof this.lastLogin === 'undefined' &&
|
|
1377
|
-
typeof this.publicKeys === 'undefined') {
|
|
1378
|
-
return {};
|
|
1379
|
-
}
|
|
1380
1220
|
const toReturn = {};
|
|
1381
1221
|
if (typeof this.userId !== 'undefined') {
|
|
1382
1222
|
toReturn['userId'] = this.userId;
|
|
@@ -1421,7 +1261,7 @@ class User {
|
|
|
1421
1261
|
}
|
|
1422
1262
|
}
|
|
1423
1263
|
|
|
1424
|
-
function enumStringToValue$
|
|
1264
|
+
function enumStringToValue$7(enumRef, value) {
|
|
1425
1265
|
if (typeof value === 'number') {
|
|
1426
1266
|
return value;
|
|
1427
1267
|
}
|
|
@@ -1444,7 +1284,7 @@ class AccessResourceRequest {
|
|
|
1444
1284
|
m.resourceEntityIdentifier = Object.keys(proto.resourceEntityIdentifier).reduce((obj, k) => { obj[k] = ValueList.fromProto(proto.resourceEntityIdentifier[k]); return obj; }, {});
|
|
1445
1285
|
}
|
|
1446
1286
|
if (proto.accessScope) {
|
|
1447
|
-
m.accessScope = proto.accessScope.map((v) => enumStringToValue$
|
|
1287
|
+
m.accessScope = proto.accessScope.map((v) => enumStringToValue$7(AccessScope, v));
|
|
1448
1288
|
}
|
|
1449
1289
|
if (proto.resourceEntityIdentifiers) {
|
|
1450
1290
|
m.resourceEntityIdentifiers = proto.resourceEntityIdentifiers.map(ResourceIdentifier.fromProto);
|
|
@@ -1455,19 +1295,6 @@ class AccessResourceRequest {
|
|
|
1455
1295
|
return m;
|
|
1456
1296
|
}
|
|
1457
1297
|
toApiJson() {
|
|
1458
|
-
if (typeof this.context === 'undefined' &&
|
|
1459
|
-
typeof this.subjectId === 'undefined' &&
|
|
1460
|
-
typeof this.email === 'undefined' &&
|
|
1461
|
-
typeof this.userId === 'undefined' &&
|
|
1462
|
-
typeof this.session === 'undefined' &&
|
|
1463
|
-
typeof this.ownerId === 'undefined' &&
|
|
1464
|
-
typeof this.resourceId === 'undefined' &&
|
|
1465
|
-
typeof this.resourceEntityIdentifier === 'undefined' &&
|
|
1466
|
-
typeof this.accessScope === 'undefined' &&
|
|
1467
|
-
typeof this.resourceEntityIdentifiers === 'undefined' &&
|
|
1468
|
-
typeof this.resourceAttributes === 'undefined') {
|
|
1469
|
-
return {};
|
|
1470
|
-
}
|
|
1471
1298
|
const toReturn = {};
|
|
1472
1299
|
if (typeof this.context !== 'undefined' && this.context !== null) {
|
|
1473
1300
|
toReturn['context'] = 'toApiJson' in this.context ? this.context.toApiJson() : this.context;
|
|
@@ -1496,6 +1323,9 @@ class AccessResourceRequest {
|
|
|
1496
1323
|
if (typeof this.accessScope !== 'undefined') {
|
|
1497
1324
|
toReturn['accessScope'] = this.accessScope;
|
|
1498
1325
|
}
|
|
1326
|
+
if (typeof this.actions !== 'undefined') {
|
|
1327
|
+
toReturn['actions'] = this.actions;
|
|
1328
|
+
}
|
|
1499
1329
|
if (typeof this.resourceEntityIdentifiers !== 'undefined' && this.resourceEntityIdentifiers !== null) {
|
|
1500
1330
|
toReturn['resourceEntityIdentifiers'] = 'toApiJson' in this.resourceEntityIdentifiers ? this.resourceEntityIdentifiers.toApiJson() : this.resourceEntityIdentifiers;
|
|
1501
1331
|
}
|
|
@@ -1519,7 +1349,7 @@ class AddKeyRequest {
|
|
|
1519
1349
|
m.context = Context.fromProto(proto.context);
|
|
1520
1350
|
}
|
|
1521
1351
|
if (proto.algorithmType) {
|
|
1522
|
-
m.algorithmType = enumStringToValue$
|
|
1352
|
+
m.algorithmType = enumStringToValue$7(AlgorithmType, proto.algorithmType);
|
|
1523
1353
|
}
|
|
1524
1354
|
if (proto.userIdentifier) {
|
|
1525
1355
|
m.userIdentifier = UserIdentifier.fromProto(proto.userIdentifier);
|
|
@@ -1527,12 +1357,6 @@ class AddKeyRequest {
|
|
|
1527
1357
|
return m;
|
|
1528
1358
|
}
|
|
1529
1359
|
toApiJson() {
|
|
1530
|
-
if (typeof this.email === 'undefined' &&
|
|
1531
|
-
typeof this.context === 'undefined' &&
|
|
1532
|
-
typeof this.algorithmType === 'undefined' &&
|
|
1533
|
-
typeof this.userIdentifier === 'undefined') {
|
|
1534
|
-
return {};
|
|
1535
|
-
}
|
|
1536
1360
|
const toReturn = {};
|
|
1537
1361
|
if (typeof this.email !== 'undefined') {
|
|
1538
1362
|
toReturn['email'] = this.email;
|
|
@@ -1562,10 +1386,6 @@ class AddKeyResponse {
|
|
|
1562
1386
|
return m;
|
|
1563
1387
|
}
|
|
1564
1388
|
toApiJson() {
|
|
1565
|
-
if (typeof this.privateKey === 'undefined' &&
|
|
1566
|
-
typeof this.keyId === 'undefined') {
|
|
1567
|
-
return {};
|
|
1568
|
-
}
|
|
1569
1389
|
const toReturn = {};
|
|
1570
1390
|
if (typeof this.privateKey !== 'undefined') {
|
|
1571
1391
|
toReturn['privateKey'] = this.privateKey;
|
|
@@ -1590,15 +1410,11 @@ class AddMultiUserRestrictionRequest {
|
|
|
1590
1410
|
m.userIdentifiers = proto.userIdentifiers.map(UserIdentifier.fromProto);
|
|
1591
1411
|
}
|
|
1592
1412
|
if (proto.restrictionType) {
|
|
1593
|
-
m.restrictionType = enumStringToValue$
|
|
1413
|
+
m.restrictionType = enumStringToValue$7(RestrictionType, proto.restrictionType);
|
|
1594
1414
|
}
|
|
1595
1415
|
return m;
|
|
1596
1416
|
}
|
|
1597
1417
|
toApiJson() {
|
|
1598
|
-
if (typeof this.userIdentifiers === 'undefined' &&
|
|
1599
|
-
typeof this.restrictionType === 'undefined') {
|
|
1600
|
-
return {};
|
|
1601
|
-
}
|
|
1602
1418
|
const toReturn = {};
|
|
1603
1419
|
if (typeof this.userIdentifiers !== 'undefined' && this.userIdentifiers !== null) {
|
|
1604
1420
|
toReturn['userIdentifiers'] = 'toApiJson' in this.userIdentifiers ? this.userIdentifiers.toApiJson() : this.userIdentifiers;
|
|
@@ -1625,11 +1441,6 @@ class AuthenticateSubjectRequest {
|
|
|
1625
1441
|
return m;
|
|
1626
1442
|
}
|
|
1627
1443
|
toApiJson() {
|
|
1628
|
-
if (typeof this.context === 'undefined' &&
|
|
1629
|
-
typeof this.email === 'undefined' &&
|
|
1630
|
-
typeof this.password === 'undefined') {
|
|
1631
|
-
return {};
|
|
1632
|
-
}
|
|
1633
1444
|
const toReturn = {};
|
|
1634
1445
|
if (typeof this.context !== 'undefined' && this.context !== null) {
|
|
1635
1446
|
toReturn['context'] = 'toApiJson' in this.context ? this.context.toApiJson() : this.context;
|
|
@@ -1659,11 +1470,6 @@ class ChangeSubjectEmailRequest {
|
|
|
1659
1470
|
return m;
|
|
1660
1471
|
}
|
|
1661
1472
|
toApiJson() {
|
|
1662
|
-
if (typeof this.context === 'undefined' &&
|
|
1663
|
-
typeof this.subjectId === 'undefined' &&
|
|
1664
|
-
typeof this.newEmail === 'undefined') {
|
|
1665
|
-
return {};
|
|
1666
|
-
}
|
|
1667
1473
|
const toReturn = {};
|
|
1668
1474
|
if (typeof this.context !== 'undefined' && this.context !== null) {
|
|
1669
1475
|
toReturn['context'] = 'toApiJson' in this.context ? this.context.toApiJson() : this.context;
|
|
@@ -1696,10 +1502,6 @@ class CreateExternalIDRequest {
|
|
|
1696
1502
|
return m;
|
|
1697
1503
|
}
|
|
1698
1504
|
toApiJson() {
|
|
1699
|
-
if (typeof this.userIdentifier === 'undefined' &&
|
|
1700
|
-
typeof this.typedExternalIdentifier === 'undefined') {
|
|
1701
|
-
return {};
|
|
1702
|
-
}
|
|
1703
1505
|
const toReturn = {};
|
|
1704
1506
|
if (typeof this.userIdentifier !== 'undefined' && this.userIdentifier !== null) {
|
|
1705
1507
|
toReturn['userIdentifier'] = 'toApiJson' in this.userIdentifier ? this.userIdentifier.toApiJson() : this.userIdentifier;
|
|
@@ -1732,11 +1534,6 @@ class CreateSessionRequest {
|
|
|
1732
1534
|
return m;
|
|
1733
1535
|
}
|
|
1734
1536
|
toApiJson() {
|
|
1735
|
-
if (typeof this.context === 'undefined' &&
|
|
1736
|
-
typeof this.oauthCredentials === 'undefined' &&
|
|
1737
|
-
typeof this.subjectCredentials === 'undefined') {
|
|
1738
|
-
return {};
|
|
1739
|
-
}
|
|
1740
1537
|
const toReturn = {};
|
|
1741
1538
|
if (typeof this.context !== 'undefined' && this.context !== null) {
|
|
1742
1539
|
toReturn['context'] = 'toApiJson' in this.context ? this.context.toApiJson() : this.context;
|
|
@@ -1763,9 +1560,6 @@ class CreateSessionResponse {
|
|
|
1763
1560
|
return m;
|
|
1764
1561
|
}
|
|
1765
1562
|
toApiJson() {
|
|
1766
|
-
if (typeof this.session === 'undefined') {
|
|
1767
|
-
return {};
|
|
1768
|
-
}
|
|
1769
1563
|
const toReturn = {};
|
|
1770
1564
|
if (typeof this.session !== 'undefined') {
|
|
1771
1565
|
toReturn['session'] = this.session;
|
|
@@ -1792,11 +1586,6 @@ class CreateTemporarySubjectRequest {
|
|
|
1792
1586
|
return m;
|
|
1793
1587
|
}
|
|
1794
1588
|
toApiJson() {
|
|
1795
|
-
if (typeof this.context === 'undefined' &&
|
|
1796
|
-
typeof this.subject === 'undefined' &&
|
|
1797
|
-
typeof this.attributes === 'undefined') {
|
|
1798
|
-
return {};
|
|
1799
|
-
}
|
|
1800
1589
|
const toReturn = {};
|
|
1801
1590
|
if (typeof this.context !== 'undefined' && this.context !== null) {
|
|
1802
1591
|
toReturn['context'] = 'toApiJson' in this.context ? this.context.toApiJson() : this.context;
|
|
@@ -1823,9 +1612,6 @@ class CreateTemporarySubjectResponse {
|
|
|
1823
1612
|
return m;
|
|
1824
1613
|
}
|
|
1825
1614
|
toApiJson() {
|
|
1826
|
-
if (typeof this.session === 'undefined') {
|
|
1827
|
-
return {};
|
|
1828
|
-
}
|
|
1829
1615
|
const toReturn = {};
|
|
1830
1616
|
if (typeof this.session !== 'undefined') {
|
|
1831
1617
|
toReturn['session'] = this.session;
|
|
@@ -1849,10 +1635,6 @@ class DeleteSubjectRequest {
|
|
|
1849
1635
|
return m;
|
|
1850
1636
|
}
|
|
1851
1637
|
toApiJson() {
|
|
1852
|
-
if (typeof this.context === 'undefined' &&
|
|
1853
|
-
typeof this.subjectId === 'undefined') {
|
|
1854
|
-
return {};
|
|
1855
|
-
}
|
|
1856
1638
|
const toReturn = {};
|
|
1857
1639
|
if (typeof this.context !== 'undefined' && this.context !== null) {
|
|
1858
1640
|
toReturn['context'] = 'toApiJson' in this.context ? this.context.toApiJson() : this.context;
|
|
@@ -1879,9 +1661,6 @@ class DeleteUserRequest {
|
|
|
1879
1661
|
return m;
|
|
1880
1662
|
}
|
|
1881
1663
|
toApiJson() {
|
|
1882
|
-
if (typeof this.userIdentifier === 'undefined') {
|
|
1883
|
-
return {};
|
|
1884
|
-
}
|
|
1885
1664
|
const toReturn = {};
|
|
1886
1665
|
if (typeof this.userIdentifier !== 'undefined' && this.userIdentifier !== null) {
|
|
1887
1666
|
toReturn['userIdentifier'] = 'toApiJson' in this.userIdentifier ? this.userIdentifier.toApiJson() : this.userIdentifier;
|
|
@@ -1902,9 +1681,6 @@ class ListSecurityLogsRequestFilters {
|
|
|
1902
1681
|
return m;
|
|
1903
1682
|
}
|
|
1904
1683
|
toApiJson() {
|
|
1905
|
-
if (typeof this.actionId === 'undefined') {
|
|
1906
|
-
return {};
|
|
1907
|
-
}
|
|
1908
1684
|
const toReturn = {};
|
|
1909
1685
|
if (typeof this.actionId !== 'undefined') {
|
|
1910
1686
|
toReturn['actionId'] = this.actionId;
|
|
@@ -1931,10 +1707,6 @@ class GetImpersonationTokenRequest {
|
|
|
1931
1707
|
return m;
|
|
1932
1708
|
}
|
|
1933
1709
|
toApiJson() {
|
|
1934
|
-
if (typeof this.impersonatee === 'undefined' &&
|
|
1935
|
-
typeof this.impersonator === 'undefined') {
|
|
1936
|
-
return {};
|
|
1937
|
-
}
|
|
1938
1710
|
const toReturn = {};
|
|
1939
1711
|
if (typeof this.impersonatee !== 'undefined' && this.impersonatee !== null) {
|
|
1940
1712
|
toReturn['impersonatee'] = 'toApiJson' in this.impersonatee ? this.impersonatee.toApiJson() : this.impersonatee;
|
|
@@ -1958,9 +1730,6 @@ class GetImpersonationTokenResponse {
|
|
|
1958
1730
|
return m;
|
|
1959
1731
|
}
|
|
1960
1732
|
toApiJson() {
|
|
1961
|
-
if (typeof this.token === 'undefined') {
|
|
1962
|
-
return {};
|
|
1963
|
-
}
|
|
1964
1733
|
const toReturn = {};
|
|
1965
1734
|
if (typeof this.token !== 'undefined') {
|
|
1966
1735
|
toReturn['token'] = this.token;
|
|
@@ -1984,10 +1753,6 @@ class GetMultiExternalIDRequest {
|
|
|
1984
1753
|
return m;
|
|
1985
1754
|
}
|
|
1986
1755
|
toApiJson() {
|
|
1987
|
-
if (typeof this.userIdentifiers === 'undefined' &&
|
|
1988
|
-
typeof this.externalIdType === 'undefined') {
|
|
1989
|
-
return {};
|
|
1990
|
-
}
|
|
1991
1756
|
const toReturn = {};
|
|
1992
1757
|
if (typeof this.userIdentifiers !== 'undefined' && this.userIdentifiers !== null) {
|
|
1993
1758
|
toReturn['userIdentifiers'] = 'toApiJson' in this.userIdentifiers ? this.userIdentifiers.toApiJson() : this.userIdentifiers;
|
|
@@ -2011,9 +1776,6 @@ class GetMultiExternalIDResponse {
|
|
|
2011
1776
|
return m;
|
|
2012
1777
|
}
|
|
2013
1778
|
toApiJson() {
|
|
2014
|
-
if (typeof this.externalIds === 'undefined') {
|
|
2015
|
-
return {};
|
|
2016
|
-
}
|
|
2017
1779
|
const toReturn = {};
|
|
2018
1780
|
if (typeof this.externalIds !== 'undefined') {
|
|
2019
1781
|
toReturn['externalIds'] = this.externalIds;
|
|
@@ -2037,9 +1799,6 @@ class GetMultiUsersRequest {
|
|
|
2037
1799
|
return m;
|
|
2038
1800
|
}
|
|
2039
1801
|
toApiJson() {
|
|
2040
|
-
if (typeof this.userIdentifiers === 'undefined') {
|
|
2041
|
-
return {};
|
|
2042
|
-
}
|
|
2043
1802
|
const toReturn = {};
|
|
2044
1803
|
if (typeof this.userIdentifiers !== 'undefined' && this.userIdentifiers !== null) {
|
|
2045
1804
|
toReturn['userIdentifiers'] = 'toApiJson' in this.userIdentifiers ? this.userIdentifiers.toApiJson() : this.userIdentifiers;
|
|
@@ -2063,9 +1822,6 @@ class GetMultiUsersResponse {
|
|
|
2063
1822
|
return m;
|
|
2064
1823
|
}
|
|
2065
1824
|
toApiJson() {
|
|
2066
|
-
if (typeof this.users === 'undefined') {
|
|
2067
|
-
return {};
|
|
2068
|
-
}
|
|
2069
1825
|
const toReturn = {};
|
|
2070
1826
|
if (typeof this.users !== 'undefined' && this.users !== null) {
|
|
2071
1827
|
toReturn['users'] = 'toApiJson' in this.users ? this.users.toApiJson() : this.users;
|
|
@@ -2086,13 +1842,12 @@ class GetResetPasswordTokenRequest {
|
|
|
2086
1842
|
if (proto.context) {
|
|
2087
1843
|
m.context = Context.fromProto(proto.context);
|
|
2088
1844
|
}
|
|
1845
|
+
if (proto.userIdentifier) {
|
|
1846
|
+
m.userIdentifier = UserIdentifier.fromProto(proto.userIdentifier);
|
|
1847
|
+
}
|
|
2089
1848
|
return m;
|
|
2090
1849
|
}
|
|
2091
1850
|
toApiJson() {
|
|
2092
|
-
if (typeof this.context === 'undefined' &&
|
|
2093
|
-
typeof this.email === 'undefined') {
|
|
2094
|
-
return {};
|
|
2095
|
-
}
|
|
2096
1851
|
const toReturn = {};
|
|
2097
1852
|
if (typeof this.context !== 'undefined' && this.context !== null) {
|
|
2098
1853
|
toReturn['context'] = 'toApiJson' in this.context ? this.context.toApiJson() : this.context;
|
|
@@ -2100,91 +1855,8 @@ class GetResetPasswordTokenRequest {
|
|
|
2100
1855
|
if (typeof this.email !== 'undefined') {
|
|
2101
1856
|
toReturn['email'] = this.email;
|
|
2102
1857
|
}
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
}
|
|
2106
|
-
class GetSessionForUserRequest {
|
|
2107
|
-
constructor(kwargs) {
|
|
2108
|
-
if (!kwargs) {
|
|
2109
|
-
return;
|
|
2110
|
-
}
|
|
2111
|
-
Object.assign(this, kwargs);
|
|
2112
|
-
}
|
|
2113
|
-
static fromProto(proto) {
|
|
2114
|
-
let m = new GetSessionForUserRequest();
|
|
2115
|
-
m = Object.assign(m, proto);
|
|
2116
|
-
return m;
|
|
2117
|
-
}
|
|
2118
|
-
toApiJson() {
|
|
2119
|
-
if (typeof this.subjectId === 'undefined' &&
|
|
2120
|
-
typeof this.email === 'undefined' &&
|
|
2121
|
-
typeof this.userId === 'undefined' &&
|
|
2122
|
-
typeof this.refreshToken === 'undefined' &&
|
|
2123
|
-
typeof this.clientAssertion === 'undefined' &&
|
|
2124
|
-
typeof this.federatedIdentityProvider === 'undefined' &&
|
|
2125
|
-
typeof this.scopes === 'undefined' &&
|
|
2126
|
-
typeof this.clientId === 'undefined' &&
|
|
2127
|
-
typeof this.nonce === 'undefined') {
|
|
2128
|
-
return {};
|
|
2129
|
-
}
|
|
2130
|
-
const toReturn = {};
|
|
2131
|
-
if (typeof this.subjectId !== 'undefined') {
|
|
2132
|
-
toReturn['subjectId'] = this.subjectId;
|
|
2133
|
-
}
|
|
2134
|
-
if (typeof this.email !== 'undefined') {
|
|
2135
|
-
toReturn['email'] = this.email;
|
|
2136
|
-
}
|
|
2137
|
-
if (typeof this.userId !== 'undefined') {
|
|
2138
|
-
toReturn['userId'] = this.userId;
|
|
2139
|
-
}
|
|
2140
|
-
if (typeof this.refreshToken !== 'undefined') {
|
|
2141
|
-
toReturn['refreshToken'] = this.refreshToken;
|
|
2142
|
-
}
|
|
2143
|
-
if (typeof this.clientAssertion !== 'undefined') {
|
|
2144
|
-
toReturn['clientAssertion'] = this.clientAssertion;
|
|
2145
|
-
}
|
|
2146
|
-
if (typeof this.federatedIdentityProvider !== 'undefined') {
|
|
2147
|
-
toReturn['federatedIdentityProvider'] = this.federatedIdentityProvider;
|
|
2148
|
-
}
|
|
2149
|
-
if (typeof this.scopes !== 'undefined') {
|
|
2150
|
-
toReturn['scopes'] = this.scopes;
|
|
2151
|
-
}
|
|
2152
|
-
if (typeof this.clientId !== 'undefined') {
|
|
2153
|
-
toReturn['clientId'] = this.clientId;
|
|
2154
|
-
}
|
|
2155
|
-
if (typeof this.nonce !== 'undefined') {
|
|
2156
|
-
toReturn['nonce'] = this.nonce;
|
|
2157
|
-
}
|
|
2158
|
-
return toReturn;
|
|
2159
|
-
}
|
|
2160
|
-
}
|
|
2161
|
-
class GetSessionForUserResponse {
|
|
2162
|
-
constructor(kwargs) {
|
|
2163
|
-
if (!kwargs) {
|
|
2164
|
-
return;
|
|
2165
|
-
}
|
|
2166
|
-
Object.assign(this, kwargs);
|
|
2167
|
-
}
|
|
2168
|
-
static fromProto(proto) {
|
|
2169
|
-
let m = new GetSessionForUserResponse();
|
|
2170
|
-
m = Object.assign(m, proto);
|
|
2171
|
-
return m;
|
|
2172
|
-
}
|
|
2173
|
-
toApiJson() {
|
|
2174
|
-
if (typeof this.session === 'undefined' &&
|
|
2175
|
-
typeof this.accessToken === 'undefined' &&
|
|
2176
|
-
typeof this.refreshToken === 'undefined') {
|
|
2177
|
-
return {};
|
|
2178
|
-
}
|
|
2179
|
-
const toReturn = {};
|
|
2180
|
-
if (typeof this.session !== 'undefined') {
|
|
2181
|
-
toReturn['session'] = this.session;
|
|
2182
|
-
}
|
|
2183
|
-
if (typeof this.accessToken !== 'undefined') {
|
|
2184
|
-
toReturn['accessToken'] = this.accessToken;
|
|
2185
|
-
}
|
|
2186
|
-
if (typeof this.refreshToken !== 'undefined') {
|
|
2187
|
-
toReturn['refreshToken'] = this.refreshToken;
|
|
1858
|
+
if (typeof this.userIdentifier !== 'undefined' && this.userIdentifier !== null) {
|
|
1859
|
+
toReturn['userIdentifier'] = 'toApiJson' in this.userIdentifier ? this.userIdentifier.toApiJson() : this.userIdentifier;
|
|
2188
1860
|
}
|
|
2189
1861
|
return toReturn;
|
|
2190
1862
|
}
|
|
@@ -2202,9 +1874,6 @@ class GetSessionTokenRequest {
|
|
|
2202
1874
|
return m;
|
|
2203
1875
|
}
|
|
2204
1876
|
toApiJson() {
|
|
2205
|
-
if (typeof this.token === 'undefined') {
|
|
2206
|
-
return {};
|
|
2207
|
-
}
|
|
2208
1877
|
const toReturn = {};
|
|
2209
1878
|
if (typeof this.token !== 'undefined') {
|
|
2210
1879
|
toReturn['token'] = this.token;
|
|
@@ -2228,10 +1897,6 @@ class GetShortLivedTokenRequest {
|
|
|
2228
1897
|
return m;
|
|
2229
1898
|
}
|
|
2230
1899
|
toApiJson() {
|
|
2231
|
-
if (typeof this.context === 'undefined' &&
|
|
2232
|
-
typeof this.email === 'undefined') {
|
|
2233
|
-
return {};
|
|
2234
|
-
}
|
|
2235
1900
|
const toReturn = {};
|
|
2236
1901
|
if (typeof this.context !== 'undefined' && this.context !== null) {
|
|
2237
1902
|
toReturn['context'] = 'toApiJson' in this.context ? this.context.toApiJson() : this.context;
|
|
@@ -2258,10 +1923,6 @@ class GetSubjectBySessionRequest {
|
|
|
2258
1923
|
return m;
|
|
2259
1924
|
}
|
|
2260
1925
|
toApiJson() {
|
|
2261
|
-
if (typeof this.session === 'undefined' &&
|
|
2262
|
-
typeof this.context === 'undefined') {
|
|
2263
|
-
return {};
|
|
2264
|
-
}
|
|
2265
1926
|
const toReturn = {};
|
|
2266
1927
|
if (typeof this.session !== 'undefined') {
|
|
2267
1928
|
toReturn['session'] = this.session;
|
|
@@ -2285,9 +1946,6 @@ class GetSubjectContextRequest {
|
|
|
2285
1946
|
return m;
|
|
2286
1947
|
}
|
|
2287
1948
|
toApiJson() {
|
|
2288
|
-
if (typeof this.subjectId === 'undefined') {
|
|
2289
|
-
return {};
|
|
2290
|
-
}
|
|
2291
1949
|
const toReturn = {};
|
|
2292
1950
|
if (typeof this.subjectId !== 'undefined') {
|
|
2293
1951
|
toReturn['subjectId'] = this.subjectId;
|
|
@@ -2311,9 +1969,6 @@ class GetSubjectContextResponse {
|
|
|
2311
1969
|
return m;
|
|
2312
1970
|
}
|
|
2313
1971
|
toApiJson() {
|
|
2314
|
-
if (typeof this.context === 'undefined') {
|
|
2315
|
-
return {};
|
|
2316
|
-
}
|
|
2317
1972
|
const toReturn = {};
|
|
2318
1973
|
if (typeof this.context !== 'undefined' && this.context !== null) {
|
|
2319
1974
|
toReturn['context'] = 'toApiJson' in this.context ? this.context.toApiJson() : this.context;
|
|
@@ -2337,9 +1992,6 @@ class GetSubjectResponse {
|
|
|
2337
1992
|
return m;
|
|
2338
1993
|
}
|
|
2339
1994
|
toApiJson() {
|
|
2340
|
-
if (typeof this.subject === 'undefined') {
|
|
2341
|
-
return {};
|
|
2342
|
-
}
|
|
2343
1995
|
const toReturn = {};
|
|
2344
1996
|
if (typeof this.subject !== 'undefined' && this.subject !== null) {
|
|
2345
1997
|
toReturn['subject'] = 'toApiJson' in this.subject ? this.subject.toApiJson() : this.subject;
|
|
@@ -2366,11 +2018,6 @@ class GetSubjectsByEmailRequest {
|
|
|
2366
2018
|
return m;
|
|
2367
2019
|
}
|
|
2368
2020
|
toApiJson() {
|
|
2369
|
-
if (typeof this.context === 'undefined' &&
|
|
2370
|
-
typeof this.emails === 'undefined' &&
|
|
2371
|
-
typeof this.fieldMask === 'undefined') {
|
|
2372
|
-
return {};
|
|
2373
|
-
}
|
|
2374
2021
|
const toReturn = {};
|
|
2375
2022
|
if (typeof this.context !== 'undefined' && this.context !== null) {
|
|
2376
2023
|
toReturn['context'] = 'toApiJson' in this.context ? this.context.toApiJson() : this.context;
|
|
@@ -2406,12 +2053,6 @@ class GetSubjectsRequest {
|
|
|
2406
2053
|
return m;
|
|
2407
2054
|
}
|
|
2408
2055
|
toApiJson() {
|
|
2409
|
-
if (typeof this.context === 'undefined' &&
|
|
2410
|
-
typeof this.subjectIds === 'undefined' &&
|
|
2411
|
-
typeof this.fieldMask === 'undefined' &&
|
|
2412
|
-
typeof this.identifiers === 'undefined') {
|
|
2413
|
-
return {};
|
|
2414
|
-
}
|
|
2415
2056
|
const toReturn = {};
|
|
2416
2057
|
if (typeof this.context !== 'undefined' && this.context !== null) {
|
|
2417
2058
|
toReturn['context'] = 'toApiJson' in this.context ? this.context.toApiJson() : this.context;
|
|
@@ -2444,9 +2085,6 @@ class GetSubjectsResponse {
|
|
|
2444
2085
|
return m;
|
|
2445
2086
|
}
|
|
2446
2087
|
toApiJson() {
|
|
2447
|
-
if (typeof this.subjects === 'undefined') {
|
|
2448
|
-
return {};
|
|
2449
|
-
}
|
|
2450
2088
|
const toReturn = {};
|
|
2451
2089
|
if (typeof this.subjects !== 'undefined' && this.subjects !== null) {
|
|
2452
2090
|
toReturn['subjects'] = 'toApiJson' in this.subjects ? this.subjects.toApiJson() : this.subjects;
|
|
@@ -2484,9 +2122,6 @@ class GetTokenResponse {
|
|
|
2484
2122
|
return m;
|
|
2485
2123
|
}
|
|
2486
2124
|
toApiJson() {
|
|
2487
|
-
if (typeof this.token === 'undefined') {
|
|
2488
|
-
return {};
|
|
2489
|
-
}
|
|
2490
2125
|
const toReturn = {};
|
|
2491
2126
|
if (typeof this.token !== 'undefined') {
|
|
2492
2127
|
toReturn['token'] = this.token;
|
|
@@ -2513,13 +2148,6 @@ class IAMListPersonasRequest {
|
|
|
2513
2148
|
return m;
|
|
2514
2149
|
}
|
|
2515
2150
|
toApiJson() {
|
|
2516
|
-
if (typeof this.userIdentifier === 'undefined' &&
|
|
2517
|
-
typeof this.cursor === 'undefined' &&
|
|
2518
|
-
typeof this.pageSize === 'undefined' &&
|
|
2519
|
-
typeof this.type === 'undefined' &&
|
|
2520
|
-
typeof this.namespace === 'undefined') {
|
|
2521
|
-
return {};
|
|
2522
|
-
}
|
|
2523
2151
|
const toReturn = {};
|
|
2524
2152
|
if (typeof this.userIdentifier !== 'undefined' && this.userIdentifier !== null) {
|
|
2525
2153
|
toReturn['userIdentifier'] = 'toApiJson' in this.userIdentifier ? this.userIdentifier.toApiJson() : this.userIdentifier;
|
|
@@ -2536,6 +2164,9 @@ class IAMListPersonasRequest {
|
|
|
2536
2164
|
if (typeof this.namespace !== 'undefined') {
|
|
2537
2165
|
toReturn['namespace'] = this.namespace;
|
|
2538
2166
|
}
|
|
2167
|
+
if (typeof this.alwaysIncludeSuperadmin !== 'undefined') {
|
|
2168
|
+
toReturn['alwaysIncludeSuperadmin'] = this.alwaysIncludeSuperadmin;
|
|
2169
|
+
}
|
|
2539
2170
|
return toReturn;
|
|
2540
2171
|
}
|
|
2541
2172
|
}
|
|
@@ -2555,13 +2186,6 @@ class ListPersonasByEmailRequest {
|
|
|
2555
2186
|
return m;
|
|
2556
2187
|
}
|
|
2557
2188
|
toApiJson() {
|
|
2558
|
-
if (typeof this.email === 'undefined' &&
|
|
2559
|
-
typeof this.cursor === 'undefined' &&
|
|
2560
|
-
typeof this.pageSize === 'undefined' &&
|
|
2561
|
-
typeof this.type === 'undefined' &&
|
|
2562
|
-
typeof this.namespace === 'undefined') {
|
|
2563
|
-
return {};
|
|
2564
|
-
}
|
|
2565
2189
|
const toReturn = {};
|
|
2566
2190
|
if (typeof this.email !== 'undefined') {
|
|
2567
2191
|
toReturn['email'] = this.email;
|
|
@@ -2597,13 +2221,6 @@ class ListPersonasRequest {
|
|
|
2597
2221
|
return m;
|
|
2598
2222
|
}
|
|
2599
2223
|
toApiJson() {
|
|
2600
|
-
if (typeof this.session === 'undefined' &&
|
|
2601
|
-
typeof this.cursor === 'undefined' &&
|
|
2602
|
-
typeof this.pageSize === 'undefined' &&
|
|
2603
|
-
typeof this.type === 'undefined' &&
|
|
2604
|
-
typeof this.namespace === 'undefined') {
|
|
2605
|
-
return {};
|
|
2606
|
-
}
|
|
2607
2224
|
const toReturn = {};
|
|
2608
2225
|
if (typeof this.session !== 'undefined') {
|
|
2609
2226
|
toReturn['session'] = this.session;
|
|
@@ -2639,11 +2256,6 @@ class ListPersonasResponse {
|
|
|
2639
2256
|
return m;
|
|
2640
2257
|
}
|
|
2641
2258
|
toApiJson() {
|
|
2642
|
-
if (typeof this.personas === 'undefined' &&
|
|
2643
|
-
typeof this.nextCursor === 'undefined' &&
|
|
2644
|
-
typeof this.hasMore === 'undefined') {
|
|
2645
|
-
return {};
|
|
2646
|
-
}
|
|
2647
2259
|
const toReturn = {};
|
|
2648
2260
|
if (typeof this.personas !== 'undefined' && this.personas !== null) {
|
|
2649
2261
|
toReturn['personas'] = 'toApiJson' in this.personas ? this.personas.toApiJson() : this.personas;
|
|
@@ -2676,12 +2288,6 @@ class ListSecurityLogsRequest {
|
|
|
2676
2288
|
return m;
|
|
2677
2289
|
}
|
|
2678
2290
|
toApiJson() {
|
|
2679
|
-
if (typeof this.userId === 'undefined' &&
|
|
2680
|
-
typeof this.filters === 'undefined' &&
|
|
2681
|
-
typeof this.pageSize === 'undefined' &&
|
|
2682
|
-
typeof this.cursor === 'undefined') {
|
|
2683
|
-
return {};
|
|
2684
|
-
}
|
|
2685
2291
|
const toReturn = {};
|
|
2686
2292
|
if (typeof this.userId !== 'undefined') {
|
|
2687
2293
|
toReturn['userId'] = this.userId;
|
|
@@ -2714,11 +2320,6 @@ class ListSecurityLogsResponse {
|
|
|
2714
2320
|
return m;
|
|
2715
2321
|
}
|
|
2716
2322
|
toApiJson() {
|
|
2717
|
-
if (typeof this.logs === 'undefined' &&
|
|
2718
|
-
typeof this.nextCursor === 'undefined' &&
|
|
2719
|
-
typeof this.hasMore === 'undefined') {
|
|
2720
|
-
return {};
|
|
2721
|
-
}
|
|
2722
2323
|
const toReturn = {};
|
|
2723
2324
|
if (typeof this.logs !== 'undefined' && this.logs !== null) {
|
|
2724
2325
|
toReturn['logs'] = 'toApiJson' in this.logs ? this.logs.toApiJson() : this.logs;
|
|
@@ -2754,14 +2355,6 @@ class ListUsersRequest {
|
|
|
2754
2355
|
return m;
|
|
2755
2356
|
}
|
|
2756
2357
|
toApiJson() {
|
|
2757
|
-
if (typeof this.namespace === 'undefined' &&
|
|
2758
|
-
typeof this.email === 'undefined' &&
|
|
2759
|
-
typeof this.cursor === 'undefined' &&
|
|
2760
|
-
typeof this.pageSize === 'undefined' &&
|
|
2761
|
-
typeof this.userFilter === 'undefined' &&
|
|
2762
|
-
typeof this.sortOptions === 'undefined') {
|
|
2763
|
-
return {};
|
|
2764
|
-
}
|
|
2765
2358
|
const toReturn = {};
|
|
2766
2359
|
if (typeof this.namespace !== 'undefined') {
|
|
2767
2360
|
toReturn['namespace'] = this.namespace;
|
|
@@ -2800,11 +2393,6 @@ class ListUsersResponse {
|
|
|
2800
2393
|
return m;
|
|
2801
2394
|
}
|
|
2802
2395
|
toApiJson() {
|
|
2803
|
-
if (typeof this.users === 'undefined' &&
|
|
2804
|
-
typeof this.nextCursor === 'undefined' &&
|
|
2805
|
-
typeof this.hasMore === 'undefined') {
|
|
2806
|
-
return {};
|
|
2807
|
-
}
|
|
2808
2396
|
const toReturn = {};
|
|
2809
2397
|
if (typeof this.users !== 'undefined' && this.users !== null) {
|
|
2810
2398
|
toReturn['users'] = 'toApiJson' in this.users ? this.users.toApiJson() : this.users;
|
|
@@ -2837,11 +2425,6 @@ class MutateAttributesRequest {
|
|
|
2837
2425
|
return m;
|
|
2838
2426
|
}
|
|
2839
2427
|
toApiJson() {
|
|
2840
|
-
if (typeof this.context === 'undefined' &&
|
|
2841
|
-
typeof this.subjectId === 'undefined' &&
|
|
2842
|
-
typeof this.mutations === 'undefined') {
|
|
2843
|
-
return {};
|
|
2844
|
-
}
|
|
2845
2428
|
const toReturn = {};
|
|
2846
2429
|
if (typeof this.context !== 'undefined' && this.context !== null) {
|
|
2847
2430
|
toReturn['context'] = 'toApiJson' in this.context ? this.context.toApiJson() : this.context;
|
|
@@ -2868,11 +2451,6 @@ class OAuthCredentials {
|
|
|
2868
2451
|
return m;
|
|
2869
2452
|
}
|
|
2870
2453
|
toApiJson() {
|
|
2871
|
-
if (typeof this.provider === 'undefined' &&
|
|
2872
|
-
typeof this.idToken === 'undefined' &&
|
|
2873
|
-
typeof this.accessToken === 'undefined') {
|
|
2874
|
-
return {};
|
|
2875
|
-
}
|
|
2876
2454
|
const toReturn = {};
|
|
2877
2455
|
if (typeof this.provider !== 'undefined') {
|
|
2878
2456
|
toReturn['provider'] = this.provider;
|
|
@@ -2899,12 +2477,6 @@ class UpdateUserRequestOperation {
|
|
|
2899
2477
|
return m;
|
|
2900
2478
|
}
|
|
2901
2479
|
toApiJson() {
|
|
2902
|
-
if (typeof this.firstName === 'undefined' &&
|
|
2903
|
-
typeof this.greetingName === 'undefined' &&
|
|
2904
|
-
typeof this.lastName === 'undefined' &&
|
|
2905
|
-
typeof this.languageCode === 'undefined') {
|
|
2906
|
-
return {};
|
|
2907
|
-
}
|
|
2908
2480
|
const toReturn = {};
|
|
2909
2481
|
if (typeof this.firstName !== 'undefined') {
|
|
2910
2482
|
toReturn['firstName'] = this.firstName;
|
|
@@ -2937,9 +2509,6 @@ class RegisterPolicyRequest {
|
|
|
2937
2509
|
return m;
|
|
2938
2510
|
}
|
|
2939
2511
|
toApiJson() {
|
|
2940
|
-
if (typeof this.policy === 'undefined') {
|
|
2941
|
-
return {};
|
|
2942
|
-
}
|
|
2943
2512
|
const toReturn = {};
|
|
2944
2513
|
if (typeof this.policy !== 'undefined' && this.policy !== null) {
|
|
2945
2514
|
toReturn['policy'] = 'toApiJson' in this.policy ? this.policy.toApiJson() : this.policy;
|
|
@@ -2963,9 +2532,6 @@ class RegisterResourceOwnerRequest {
|
|
|
2963
2532
|
return m;
|
|
2964
2533
|
}
|
|
2965
2534
|
toApiJson() {
|
|
2966
|
-
if (typeof this.owner === 'undefined') {
|
|
2967
|
-
return {};
|
|
2968
|
-
}
|
|
2969
2535
|
const toReturn = {};
|
|
2970
2536
|
if (typeof this.owner !== 'undefined' && this.owner !== null) {
|
|
2971
2537
|
toReturn['owner'] = 'toApiJson' in this.owner ? this.owner.toApiJson() : this.owner;
|
|
@@ -2986,14 +2552,6 @@ class RegisterResourceRequest {
|
|
|
2986
2552
|
return m;
|
|
2987
2553
|
}
|
|
2988
2554
|
toApiJson() {
|
|
2989
|
-
if (typeof this.appId === 'undefined' &&
|
|
2990
|
-
typeof this.resourceId === 'undefined' &&
|
|
2991
|
-
typeof this.resourceName === 'undefined' &&
|
|
2992
|
-
typeof this.resourceOwnerServiceUrl === 'undefined' &&
|
|
2993
|
-
typeof this.requiredResourceParams === 'undefined' &&
|
|
2994
|
-
typeof this.resourceOwnerAudience === 'undefined') {
|
|
2995
|
-
return {};
|
|
2996
|
-
}
|
|
2997
2555
|
const toReturn = {};
|
|
2998
2556
|
if (typeof this.appId !== 'undefined') {
|
|
2999
2557
|
toReturn['appId'] = this.appId;
|
|
@@ -3038,13 +2596,6 @@ class RegisterSubjectRequest {
|
|
|
3038
2596
|
return m;
|
|
3039
2597
|
}
|
|
3040
2598
|
toApiJson() {
|
|
3041
|
-
if (typeof this.context === 'undefined' &&
|
|
3042
|
-
typeof this.email === 'undefined' &&
|
|
3043
|
-
typeof this.password === 'undefined' &&
|
|
3044
|
-
typeof this.attributes === 'undefined' &&
|
|
3045
|
-
typeof this.structAttributes === 'undefined') {
|
|
3046
|
-
return {};
|
|
3047
|
-
}
|
|
3048
2599
|
const toReturn = {};
|
|
3049
2600
|
if (typeof this.context !== 'undefined' && this.context !== null) {
|
|
3050
2601
|
toReturn['context'] = 'toApiJson' in this.context ? this.context.toApiJson() : this.context;
|
|
@@ -3077,9 +2628,6 @@ class RegisterSubjectResponse {
|
|
|
3077
2628
|
return m;
|
|
3078
2629
|
}
|
|
3079
2630
|
toApiJson() {
|
|
3080
|
-
if (typeof this.subjectId === 'undefined') {
|
|
3081
|
-
return {};
|
|
3082
|
-
}
|
|
3083
2631
|
const toReturn = {};
|
|
3084
2632
|
if (typeof this.subjectId !== 'undefined') {
|
|
3085
2633
|
toReturn['subjectId'] = this.subjectId;
|
|
@@ -3106,12 +2654,6 @@ class RemoveKeyRequest {
|
|
|
3106
2654
|
return m;
|
|
3107
2655
|
}
|
|
3108
2656
|
toApiJson() {
|
|
3109
|
-
if (typeof this.email === 'undefined' &&
|
|
3110
|
-
typeof this.context === 'undefined' &&
|
|
3111
|
-
typeof this.keyId === 'undefined' &&
|
|
3112
|
-
typeof this.userIdentifier === 'undefined') {
|
|
3113
|
-
return {};
|
|
3114
|
-
}
|
|
3115
2657
|
const toReturn = {};
|
|
3116
2658
|
if (typeof this.email !== 'undefined') {
|
|
3117
2659
|
toReturn['email'] = this.email;
|
|
@@ -3142,15 +2684,11 @@ class RemoveMultiUserRestrictionRequest {
|
|
|
3142
2684
|
m.userIdentifiers = proto.userIdentifiers.map(UserIdentifier.fromProto);
|
|
3143
2685
|
}
|
|
3144
2686
|
if (proto.restrictionType) {
|
|
3145
|
-
m.restrictionType = enumStringToValue$
|
|
2687
|
+
m.restrictionType = enumStringToValue$7(RestrictionType, proto.restrictionType);
|
|
3146
2688
|
}
|
|
3147
2689
|
return m;
|
|
3148
2690
|
}
|
|
3149
2691
|
toApiJson() {
|
|
3150
|
-
if (typeof this.userIdentifiers === 'undefined' &&
|
|
3151
|
-
typeof this.restrictionType === 'undefined') {
|
|
3152
|
-
return {};
|
|
3153
|
-
}
|
|
3154
2692
|
const toReturn = {};
|
|
3155
2693
|
if (typeof this.userIdentifiers !== 'undefined' && this.userIdentifiers !== null) {
|
|
3156
2694
|
toReturn['userIdentifiers'] = 'toApiJson' in this.userIdentifiers ? this.userIdentifiers.toApiJson() : this.userIdentifiers;
|
|
@@ -3174,9 +2712,6 @@ class ResetPasswordTokenResponse {
|
|
|
3174
2712
|
return m;
|
|
3175
2713
|
}
|
|
3176
2714
|
toApiJson() {
|
|
3177
|
-
if (typeof this.token === 'undefined') {
|
|
3178
|
-
return {};
|
|
3179
|
-
}
|
|
3180
2715
|
const toReturn = {};
|
|
3181
2716
|
if (typeof this.token !== 'undefined') {
|
|
3182
2717
|
toReturn['token'] = this.token;
|
|
@@ -3197,10 +2732,6 @@ class ResetPasswordWithTokenRequest {
|
|
|
3197
2732
|
return m;
|
|
3198
2733
|
}
|
|
3199
2734
|
toApiJson() {
|
|
3200
|
-
if (typeof this.token === 'undefined' &&
|
|
3201
|
-
typeof this.password === 'undefined') {
|
|
3202
|
-
return {};
|
|
3203
|
-
}
|
|
3204
2735
|
const toReturn = {};
|
|
3205
2736
|
if (typeof this.token !== 'undefined') {
|
|
3206
2737
|
toReturn['token'] = this.token;
|
|
@@ -3227,11 +2758,6 @@ class ResetSubjectPasswordRequest {
|
|
|
3227
2758
|
return m;
|
|
3228
2759
|
}
|
|
3229
2760
|
toApiJson() {
|
|
3230
|
-
if (typeof this.context === 'undefined' &&
|
|
3231
|
-
typeof this.subjectId === 'undefined' &&
|
|
3232
|
-
typeof this.newPassword === 'undefined') {
|
|
3233
|
-
return {};
|
|
3234
|
-
}
|
|
3235
2761
|
const toReturn = {};
|
|
3236
2762
|
if (typeof this.context !== 'undefined' && this.context !== null) {
|
|
3237
2763
|
toReturn['context'] = 'toApiJson' in this.context ? this.context.toApiJson() : this.context;
|
|
@@ -3261,10 +2787,6 @@ class AccessResourceRequestResourceEntityIdentifierEntry {
|
|
|
3261
2787
|
return m;
|
|
3262
2788
|
}
|
|
3263
2789
|
toApiJson() {
|
|
3264
|
-
if (typeof this.key === 'undefined' &&
|
|
3265
|
-
typeof this.value === 'undefined') {
|
|
3266
|
-
return {};
|
|
3267
|
-
}
|
|
3268
2790
|
const toReturn = {};
|
|
3269
2791
|
if (typeof this.key !== 'undefined') {
|
|
3270
2792
|
toReturn['key'] = this.key;
|
|
@@ -3295,7 +2817,7 @@ class SearchSubjectRequest {
|
|
|
3295
2817
|
m.filters = proto.filters.map(SingleValueAttribute.fromProto);
|
|
3296
2818
|
}
|
|
3297
2819
|
if (proto.orderByDirection) {
|
|
3298
|
-
m.orderByDirection = enumStringToValue$
|
|
2820
|
+
m.orderByDirection = enumStringToValue$7(OrderByDirection, proto.orderByDirection);
|
|
3299
2821
|
}
|
|
3300
2822
|
if (proto.pageSize) {
|
|
3301
2823
|
m.pageSize = parseInt(proto.pageSize, 10);
|
|
@@ -3306,16 +2828,6 @@ class SearchSubjectRequest {
|
|
|
3306
2828
|
return m;
|
|
3307
2829
|
}
|
|
3308
2830
|
toApiJson() {
|
|
3309
|
-
if (typeof this.context === 'undefined' &&
|
|
3310
|
-
typeof this.query === 'undefined' &&
|
|
3311
|
-
typeof this.filters === 'undefined' &&
|
|
3312
|
-
typeof this.orderBy === 'undefined' &&
|
|
3313
|
-
typeof this.orderByDirection === 'undefined' &&
|
|
3314
|
-
typeof this.cursor === 'undefined' &&
|
|
3315
|
-
typeof this.pageSize === 'undefined' &&
|
|
3316
|
-
typeof this.fieldMask === 'undefined') {
|
|
3317
|
-
return {};
|
|
3318
|
-
}
|
|
3319
2831
|
const toReturn = {};
|
|
3320
2832
|
if (typeof this.context !== 'undefined' && this.context !== null) {
|
|
3321
2833
|
toReturn['context'] = 'toApiJson' in this.context ? this.context.toApiJson() : this.context;
|
|
@@ -3363,12 +2875,6 @@ class SearchSubjectResponse {
|
|
|
3363
2875
|
return m;
|
|
3364
2876
|
}
|
|
3365
2877
|
toApiJson() {
|
|
3366
|
-
if (typeof this.result === 'undefined' &&
|
|
3367
|
-
typeof this.nextCursor === 'undefined' &&
|
|
3368
|
-
typeof this.hasMore === 'undefined' &&
|
|
3369
|
-
typeof this.totalResults === 'undefined') {
|
|
3370
|
-
return {};
|
|
3371
|
-
}
|
|
3372
2878
|
const toReturn = {};
|
|
3373
2879
|
if (typeof this.result !== 'undefined' && this.result !== null) {
|
|
3374
2880
|
toReturn['result'] = 'toApiJson' in this.result ? this.result.toApiJson() : this.result;
|
|
@@ -3398,9 +2904,6 @@ class SendEmailVerificationRequest {
|
|
|
3398
2904
|
return m;
|
|
3399
2905
|
}
|
|
3400
2906
|
toApiJson() {
|
|
3401
|
-
if (typeof this.userId === 'undefined') {
|
|
3402
|
-
return {};
|
|
3403
|
-
}
|
|
3404
2907
|
const toReturn = {};
|
|
3405
2908
|
if (typeof this.userId !== 'undefined') {
|
|
3406
2909
|
toReturn['userId'] = this.userId;
|
|
@@ -3421,10 +2924,6 @@ class SubjectCredentials {
|
|
|
3421
2924
|
return m;
|
|
3422
2925
|
}
|
|
3423
2926
|
toApiJson() {
|
|
3424
|
-
if (typeof this.email === 'undefined' &&
|
|
3425
|
-
typeof this.password === 'undefined') {
|
|
3426
|
-
return {};
|
|
3427
|
-
}
|
|
3428
2927
|
const toReturn = {};
|
|
3429
2928
|
if (typeof this.email !== 'undefined') {
|
|
3430
2929
|
toReturn['email'] = this.email;
|
|
@@ -3451,10 +2950,6 @@ class UpdateUserRequest {
|
|
|
3451
2950
|
return m;
|
|
3452
2951
|
}
|
|
3453
2952
|
toApiJson() {
|
|
3454
|
-
if (typeof this.userId === 'undefined' &&
|
|
3455
|
-
typeof this.operations === 'undefined') {
|
|
3456
|
-
return {};
|
|
3457
|
-
}
|
|
3458
2953
|
const toReturn = {};
|
|
3459
2954
|
if (typeof this.userId !== 'undefined') {
|
|
3460
2955
|
toReturn['userId'] = this.userId;
|
|
@@ -3481,9 +2976,6 @@ class GetMultiUsersResponseUserContainer {
|
|
|
3481
2976
|
return m;
|
|
3482
2977
|
}
|
|
3483
2978
|
toApiJson() {
|
|
3484
|
-
if (typeof this.user === 'undefined') {
|
|
3485
|
-
return {};
|
|
3486
|
-
}
|
|
3487
2979
|
const toReturn = {};
|
|
3488
2980
|
if (typeof this.user !== 'undefined' && this.user !== null) {
|
|
3489
2981
|
toReturn['user'] = 'toApiJson' in this.user ? this.user.toApiJson() : this.user;
|
|
@@ -3504,10 +2996,6 @@ class UserFilter {
|
|
|
3504
2996
|
return m;
|
|
3505
2997
|
}
|
|
3506
2998
|
toApiJson() {
|
|
3507
|
-
if (typeof this.subjectTypes === 'undefined' &&
|
|
3508
|
-
typeof this.searchTerms === 'undefined') {
|
|
3509
|
-
return {};
|
|
3510
|
-
}
|
|
3511
2999
|
const toReturn = {};
|
|
3512
3000
|
if (typeof this.subjectTypes !== 'undefined') {
|
|
3513
3001
|
toReturn['subjectTypes'] = this.subjectTypes;
|
|
@@ -3540,14 +3028,6 @@ class UserIdentifier {
|
|
|
3540
3028
|
return m;
|
|
3541
3029
|
}
|
|
3542
3030
|
toApiJson() {
|
|
3543
|
-
if (typeof this.userId === 'undefined' &&
|
|
3544
|
-
typeof this.namespacedEmail === 'undefined' &&
|
|
3545
|
-
typeof this.namespacedSession === 'undefined' &&
|
|
3546
|
-
typeof this.token === 'undefined' &&
|
|
3547
|
-
typeof this.typedExternalIdentifier === 'undefined' &&
|
|
3548
|
-
typeof this.subjectId === 'undefined') {
|
|
3549
|
-
return {};
|
|
3550
|
-
}
|
|
3551
3031
|
const toReturn = {};
|
|
3552
3032
|
if (typeof this.userId !== 'undefined') {
|
|
3553
3033
|
toReturn['userId'] = this.userId;
|
|
@@ -3581,18 +3061,14 @@ class UserSortOptions {
|
|
|
3581
3061
|
let m = new UserSortOptions();
|
|
3582
3062
|
m = Object.assign(m, proto);
|
|
3583
3063
|
if (proto.direction) {
|
|
3584
|
-
m.direction = enumStringToValue$
|
|
3064
|
+
m.direction = enumStringToValue$7(SortDirection, proto.direction);
|
|
3585
3065
|
}
|
|
3586
3066
|
if (proto.field) {
|
|
3587
|
-
m.field = enumStringToValue$
|
|
3067
|
+
m.field = enumStringToValue$7(UserSortField, proto.field);
|
|
3588
3068
|
}
|
|
3589
3069
|
return m;
|
|
3590
3070
|
}
|
|
3591
3071
|
toApiJson() {
|
|
3592
|
-
if (typeof this.direction === 'undefined' &&
|
|
3593
|
-
typeof this.field === 'undefined') {
|
|
3594
|
-
return {};
|
|
3595
|
-
}
|
|
3596
3072
|
const toReturn = {};
|
|
3597
3073
|
if (typeof this.direction !== 'undefined') {
|
|
3598
3074
|
toReturn['direction'] = this.direction;
|
|
@@ -3616,9 +3092,6 @@ class VerifyEmailRequest {
|
|
|
3616
3092
|
return m;
|
|
3617
3093
|
}
|
|
3618
3094
|
toApiJson() {
|
|
3619
|
-
if (typeof this.token === 'undefined') {
|
|
3620
|
-
return {};
|
|
3621
|
-
}
|
|
3622
3095
|
const toReturn = {};
|
|
3623
3096
|
if (typeof this.token !== 'undefined') {
|
|
3624
3097
|
toReturn['token'] = this.token;
|
|
@@ -3627,6 +3100,36 @@ class VerifyEmailRequest {
|
|
|
3627
3100
|
}
|
|
3628
3101
|
}
|
|
3629
3102
|
|
|
3103
|
+
function enumStringToValue$8(enumRef, value) {
|
|
3104
|
+
if (typeof value === 'number') {
|
|
3105
|
+
return value;
|
|
3106
|
+
}
|
|
3107
|
+
return enumRef[value];
|
|
3108
|
+
}
|
|
3109
|
+
class Access {
|
|
3110
|
+
constructor(kwargs) {
|
|
3111
|
+
if (!kwargs) {
|
|
3112
|
+
return;
|
|
3113
|
+
}
|
|
3114
|
+
Object.assign(this, kwargs);
|
|
3115
|
+
}
|
|
3116
|
+
static fromProto(proto) {
|
|
3117
|
+
let m = new Access();
|
|
3118
|
+
m = Object.assign(m, proto);
|
|
3119
|
+
return m;
|
|
3120
|
+
}
|
|
3121
|
+
toApiJson() {
|
|
3122
|
+
const toReturn = {};
|
|
3123
|
+
if (typeof this.scope !== 'undefined') {
|
|
3124
|
+
toReturn['scope'] = this.scope;
|
|
3125
|
+
}
|
|
3126
|
+
if (typeof this.public !== 'undefined') {
|
|
3127
|
+
toReturn['public'] = this.public;
|
|
3128
|
+
}
|
|
3129
|
+
return toReturn;
|
|
3130
|
+
}
|
|
3131
|
+
}
|
|
3132
|
+
|
|
3630
3133
|
// *********************************
|
|
3631
3134
|
|
|
3632
3135
|
class HostService {
|
|
@@ -3682,12 +3185,12 @@ class HostService {
|
|
|
3682
3185
|
return scheme + this.httpsHost();
|
|
3683
3186
|
}
|
|
3684
3187
|
}
|
|
3685
|
-
HostService
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
];
|
|
3188
|
+
HostService.ɵfac = function HostService_Factory(t) { return new (t || HostService)(ɵɵinject(EnvironmentService)); };
|
|
3189
|
+
HostService.ɵprov = ɵɵdefineInjectable({ token: HostService, factory: HostService.ɵfac, providedIn: 'root' });
|
|
3190
|
+
/*@__PURE__*/ (function () { ɵsetClassMetadata(HostService, [{
|
|
3191
|
+
type: Injectable,
|
|
3192
|
+
args: [{ providedIn: 'root' }]
|
|
3193
|
+
}], function () { return [{ type: EnvironmentService }]; }, null); })();
|
|
3691
3194
|
|
|
3692
3195
|
// *********************************
|
|
3693
3196
|
class UserIAMApiService {
|
|
@@ -3733,13 +3236,12 @@ class UserIAMApiService {
|
|
|
3733
3236
|
.pipe(map(resp => GetImpersonationTokenResponse.fromProto(resp)), share());
|
|
3734
3237
|
}
|
|
3735
3238
|
}
|
|
3736
|
-
UserIAMApiService
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
{ type: HostService }
|
|
3742
|
-
];
|
|
3239
|
+
UserIAMApiService.ɵfac = function UserIAMApiService_Factory(t) { return new (t || UserIAMApiService)(ɵɵinject(HttpClient), ɵɵinject(HostService)); };
|
|
3240
|
+
UserIAMApiService.ɵprov = ɵɵdefineInjectable({ token: UserIAMApiService, factory: UserIAMApiService.ɵfac, providedIn: 'root' });
|
|
3241
|
+
/*@__PURE__*/ (function () { ɵsetClassMetadata(UserIAMApiService, [{
|
|
3242
|
+
type: Injectable,
|
|
3243
|
+
args: [{ providedIn: 'root' }]
|
|
3244
|
+
}], function () { return [{ type: HttpClient }, { type: HostService }]; }, null); })();
|
|
3743
3245
|
|
|
3744
3246
|
class LoginRequest {
|
|
3745
3247
|
constructor(kwargs) {
|
|
@@ -3852,19 +3354,20 @@ class IamHttpApiService {
|
|
|
3852
3354
|
if (includeCredentials) {
|
|
3853
3355
|
return {
|
|
3854
3356
|
headers: new HttpHeaders({
|
|
3855
|
-
'Content-Type': 'application/x-www-form-urlencoded'
|
|
3357
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
3856
3358
|
}),
|
|
3857
|
-
withCredentials: true
|
|
3359
|
+
withCredentials: true,
|
|
3858
3360
|
};
|
|
3859
3361
|
}
|
|
3860
3362
|
return {
|
|
3861
3363
|
headers: new HttpHeaders({
|
|
3862
|
-
'Content-Type': 'application/x-www-form-urlencoded'
|
|
3863
|
-
})
|
|
3364
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
3365
|
+
}),
|
|
3864
3366
|
};
|
|
3865
3367
|
}
|
|
3866
3368
|
login(r) {
|
|
3867
|
-
const
|
|
3369
|
+
const toApiJson = r.toApiJson;
|
|
3370
|
+
const request = typeof toApiJson !== 'undefined' ? r : new LoginRequest(r);
|
|
3868
3371
|
return this.http
|
|
3869
3372
|
.post(this.hostService.httpsHostWithScheme() + '/_ajax/v1/login', request.toApiJson(), this.apiOptions())
|
|
3870
3373
|
.pipe(map((resp) => LoginResponse.fromProto(resp)), share());
|
|
@@ -3872,11 +3375,12 @@ class IamHttpApiService {
|
|
|
3872
3375
|
logout() {
|
|
3873
3376
|
return this.http
|
|
3874
3377
|
.post(this.hostService.httpsHostWithScheme() + '/_ajax/v1/logout', {}, this.apiOptions(true))
|
|
3875
|
-
.pipe(map(resp => LogoutResponse.fromProto(resp)), share());
|
|
3378
|
+
.pipe(map((resp) => LogoutResponse.fromProto(resp)), share());
|
|
3876
3379
|
}
|
|
3877
3380
|
ssoLogin(r) {
|
|
3878
|
-
const
|
|
3879
|
-
|
|
3381
|
+
const toApiJson = r.toApiJson;
|
|
3382
|
+
const request = typeof toApiJson !== 'undefined' ? r : new SSOLoginRequest(r);
|
|
3383
|
+
const params = new URLSearchParams();
|
|
3880
3384
|
const apiJson = request.toApiJson();
|
|
3881
3385
|
for (const key in apiJson) {
|
|
3882
3386
|
if (!apiJson.hasOwnProperty(key)) {
|
|
@@ -3886,21 +3390,17 @@ class IamHttpApiService {
|
|
|
3886
3390
|
if (value === null) {
|
|
3887
3391
|
continue;
|
|
3888
3392
|
}
|
|
3889
|
-
|
|
3890
|
-
params += '&';
|
|
3891
|
-
}
|
|
3892
|
-
params += `${key}=${value}`;
|
|
3393
|
+
params.append(key, value);
|
|
3893
3394
|
}
|
|
3894
|
-
window.location.href = `${this.hostService.httpsHostWithScheme()}/sso-login
|
|
3395
|
+
window.location.href = `${this.hostService.httpsHostWithScheme()}/sso-login?${params.toString()}`;
|
|
3895
3396
|
}
|
|
3896
3397
|
}
|
|
3897
|
-
IamHttpApiService
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
{ type: HostService }
|
|
3903
|
-
];
|
|
3398
|
+
IamHttpApiService.ɵfac = function IamHttpApiService_Factory(t) { return new (t || IamHttpApiService)(ɵɵinject(HttpClient), ɵɵinject(HostService)); };
|
|
3399
|
+
IamHttpApiService.ɵprov = ɵɵdefineInjectable({ token: IamHttpApiService, factory: IamHttpApiService.ɵfac, providedIn: 'root' });
|
|
3400
|
+
/*@__PURE__*/ (function () { ɵsetClassMetadata(IamHttpApiService, [{
|
|
3401
|
+
type: Injectable,
|
|
3402
|
+
args: [{ providedIn: 'root' }]
|
|
3403
|
+
}], function () { return [{ type: HttpClient }, { type: HostService }]; }, null); })();
|
|
3904
3404
|
|
|
3905
3405
|
var PersonaType;
|
|
3906
3406
|
(function (PersonaType) {
|
|
@@ -4018,18 +3518,19 @@ class PartnerPersona extends TypedPersona {
|
|
|
4018
3518
|
this.isSuperAdmin = false;
|
|
4019
3519
|
this.isAdmin = false;
|
|
4020
3520
|
this.canCustomizeWhitelabel = false;
|
|
4021
|
-
this.canAccessBilling =
|
|
4022
|
-
this.canAccessAccounts =
|
|
4023
|
-
this.canAccessMarketing =
|
|
4024
|
-
this.canAccessSales =
|
|
4025
|
-
this.canAccessConcierge =
|
|
4026
|
-
this.canAccessBrands =
|
|
4027
|
-
this.canAccessDashboard =
|
|
4028
|
-
this.canAccessOrders =
|
|
4029
|
-
this.canAccessCompanyProfile =
|
|
4030
|
-
this.canAccessAutomations =
|
|
4031
|
-
this.canAccessMarketplace =
|
|
4032
|
-
this.canEnableApps =
|
|
3521
|
+
this.canAccessBilling = false;
|
|
3522
|
+
this.canAccessAccounts = false;
|
|
3523
|
+
this.canAccessMarketing = false;
|
|
3524
|
+
this.canAccessSales = false;
|
|
3525
|
+
this.canAccessConcierge = false;
|
|
3526
|
+
this.canAccessBrands = false;
|
|
3527
|
+
this.canAccessDashboard = false;
|
|
3528
|
+
this.canAccessOrders = false;
|
|
3529
|
+
this.canAccessCompanyProfile = false;
|
|
3530
|
+
this.canAccessAutomations = false;
|
|
3531
|
+
this.canAccessMarketplace = false;
|
|
3532
|
+
this.canEnableApps = false;
|
|
3533
|
+
this.canAccessRetailBilling = false;
|
|
4033
3534
|
}
|
|
4034
3535
|
}
|
|
4035
3536
|
|
|
@@ -4304,13 +3805,12 @@ class IAMApiService {
|
|
|
4304
3805
|
return this.http.post(this.hostService.hostWithScheme() + "/iam.v1.IAM/RemoveMultiUserRestriction", request.toApiJson(), Object.assign(Object.assign({}, this.apiOptions()), { observe: 'response' }));
|
|
4305
3806
|
}
|
|
4306
3807
|
}
|
|
4307
|
-
IAMApiService
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
{ type: HostService }
|
|
4313
|
-
];
|
|
3808
|
+
IAMApiService.ɵfac = function IAMApiService_Factory(t) { return new (t || IAMApiService)(ɵɵinject(HttpClient), ɵɵinject(HostService)); };
|
|
3809
|
+
IAMApiService.ɵprov = ɵɵdefineInjectable({ token: IAMApiService, factory: IAMApiService.ɵfac, providedIn: 'root' });
|
|
3810
|
+
/*@__PURE__*/ (function () { ɵsetClassMetadata(IAMApiService, [{
|
|
3811
|
+
type: Injectable,
|
|
3812
|
+
args: [{ providedIn: 'root' }]
|
|
3813
|
+
}], function () { return [{ type: HttpClient }, { type: HostService }]; }, null); })();
|
|
4314
3814
|
|
|
4315
3815
|
class IAMService {
|
|
4316
3816
|
constructor(api, httpApi, sessionService, iamApi) {
|
|
@@ -4442,73 +3942,12 @@ class IAMService {
|
|
|
4442
3942
|
});
|
|
4443
3943
|
}
|
|
4444
3944
|
}
|
|
4445
|
-
IAMService
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
{ type: IamHttpApiService },
|
|
4451
|
-
{ type: SessionService },
|
|
4452
|
-
{ type: IAMApiService }
|
|
4453
|
-
];
|
|
4454
|
-
|
|
4455
|
-
// *********************************
|
|
4456
|
-
class IAMSsoApiService {
|
|
4457
|
-
constructor(http, hostService) {
|
|
4458
|
-
this.http = http;
|
|
4459
|
-
this.hostService = hostService;
|
|
4460
|
-
}
|
|
4461
|
-
apiOptions() {
|
|
4462
|
-
return {
|
|
4463
|
-
headers: new HttpHeaders({
|
|
4464
|
-
'Content-Type': 'application/json'
|
|
4465
|
-
}),
|
|
4466
|
-
withCredentials: true
|
|
4467
|
-
};
|
|
4468
|
-
}
|
|
4469
|
-
getSessionForUser(r) {
|
|
4470
|
-
const request = (r.toApiJson) ? r : new GetSessionForUserRequest(r);
|
|
4471
|
-
return this.http.post(this.hostService.hostWithScheme() + "/iam.v1.IAMSso/GetSessionForUser", request.toApiJson(), this.apiOptions())
|
|
4472
|
-
.pipe(map(resp => GetSessionForUserResponse.fromProto(resp)), share());
|
|
4473
|
-
}
|
|
4474
|
-
}
|
|
4475
|
-
IAMSsoApiService.decorators = [
|
|
4476
|
-
{ type: Injectable }
|
|
4477
|
-
];
|
|
4478
|
-
IAMSsoApiService.ctorParameters = () => [
|
|
4479
|
-
{ type: HttpClient },
|
|
4480
|
-
{ type: HostService }
|
|
4481
|
-
];
|
|
4482
|
-
|
|
4483
|
-
// *********************************
|
|
4484
|
-
class IamInternalModule {
|
|
4485
|
-
}
|
|
4486
|
-
IamInternalModule.decorators = [
|
|
4487
|
-
{ type: NgModule, args: [{
|
|
4488
|
-
imports: [SessionServiceModule, EnvironmentServiceModule],
|
|
4489
|
-
providers: [
|
|
4490
|
-
IAMApiService,
|
|
4491
|
-
IAMSsoApiService,
|
|
4492
|
-
UserIAMApiService,
|
|
4493
|
-
HostService
|
|
4494
|
-
],
|
|
4495
|
-
declarations: [],
|
|
4496
|
-
exports: [],
|
|
4497
|
-
entryComponents: []
|
|
4498
|
-
},] }
|
|
4499
|
-
];
|
|
4500
|
-
|
|
4501
|
-
class IamModule {
|
|
4502
|
-
}
|
|
4503
|
-
IamModule.decorators = [
|
|
4504
|
-
{ type: NgModule, args: [{
|
|
4505
|
-
imports: [IamInternalModule],
|
|
4506
|
-
providers: [IAMService, IamHttpApiService],
|
|
4507
|
-
declarations: [],
|
|
4508
|
-
exports: [],
|
|
4509
|
-
entryComponents: []
|
|
4510
|
-
},] }
|
|
4511
|
-
];
|
|
3945
|
+
IAMService.ɵfac = function IAMService_Factory(t) { return new (t || IAMService)(ɵɵinject(UserIAMApiService), ɵɵinject(IamHttpApiService), ɵɵinject(SessionService), ɵɵinject(IAMApiService)); };
|
|
3946
|
+
IAMService.ɵprov = ɵɵdefineInjectable({ token: IAMService, factory: IAMService.ɵfac, providedIn: 'root' });
|
|
3947
|
+
/*@__PURE__*/ (function () { ɵsetClassMetadata(IAMService, [{
|
|
3948
|
+
type: Injectable,
|
|
3949
|
+
args: [{ providedIn: 'root' }]
|
|
3950
|
+
}], function () { return [{ type: UserIAMApiService }, { type: IamHttpApiService }, { type: SessionService }, { type: IAMApiService }]; }, null); })();
|
|
4512
3951
|
|
|
4513
3952
|
// *********************************
|
|
4514
3953
|
|
|
@@ -4516,5 +3955,5 @@ IamModule.decorators = [
|
|
|
4516
3955
|
* Generated bundle index. Do not edit.
|
|
4517
3956
|
*/
|
|
4518
3957
|
|
|
4519
|
-
export { AccessCheckFailures, AccessResourceRequest, AccessResourceRequestResourceEntityIdentifierEntry, AccessScope, AddKeyRequest, AddKeyResponse, AddMultiUserRestrictionRequest, AlgorithmType, Attribute, AuthenticateSubjectRequest, BasePersona, BooleanOperator, ChangeSubjectEmailRequest, Context, CreateExternalIDRequest, CreateSessionRequest, CreateSessionResponse, CreateTemporarySubjectRequest, CreateTemporarySubjectResponse, DeleteSubjectRequest, DeleteUserRequest, DeveloperPersona, DigitalAgentPersona, FieldMask, ForOperator, GeoPointAttribute, GetImpersonationTokenRequest, GetImpersonationTokenResponse, GetMultiExternalIDRequest, GetMultiExternalIDResponse, GetMultiUsersRequest, GetMultiUsersResponse, GetMultiUsersResponseUserContainer, GetResetPasswordTokenRequest,
|
|
3958
|
+
export { Access, AccessCheckFailures, AccessResourceRequest, AccessResourceRequestResourceEntityIdentifierEntry, AccessScope, AddKeyRequest, AddKeyResponse, AddMultiUserRestrictionRequest, AlgorithmType, Attribute, AuthenticateSubjectRequest, BasePersona, BooleanOperator, ChangeSubjectEmailRequest, Context, CreateExternalIDRequest, CreateSessionRequest, CreateSessionResponse, CreateTemporarySubjectRequest, CreateTemporarySubjectResponse, DeleteSubjectRequest, DeleteUserRequest, DeveloperPersona, DigitalAgentPersona, FieldMask, ForOperator, GeoPointAttribute, GetImpersonationTokenRequest, GetImpersonationTokenResponse, GetMultiExternalIDRequest, GetMultiExternalIDResponse, GetMultiUsersRequest, GetMultiUsersResponse, GetMultiUsersResponseUserContainer, GetResetPasswordTokenRequest, GetSessionTokenRequest, GetShortLivedTokenRequest, GetSubjectBySessionRequest, GetSubjectContextRequest, GetSubjectContextResponse, GetSubjectResponse, GetSubjectsByEmailRequest, GetSubjectsRequest, GetSubjectsResponse, GetTokenRequest, GetTokenResponse, HostService, IAMApiService, IAMListPersonasRequest, IAMService, Identifier, IfClause, ListAttribute, ListPersonasByEmailRequest, ListPersonasRequest, ListPersonasResponse, ListSecurityLogsRequest, ListSecurityLogsRequestFilters, ListSecurityLogsResponse, ListUsersRequest, ListUsersResponse, MultiValueAttribute, MutateAttributesRequest, Mutation, NamespacedContext, NamespacedEmail, NamespacedPersona, NamespacedSession, OAuthCredentials, Operator, OrderByDirection, PartnerAppPersona, PartnerPersona, Persona, PersonaType, Policy, PolicyNode, PublicKey, Query, RegisterPolicyRequest, RegisterResourceOwnerRequest, RegisterResourceRequest, RegisterSubjectRequest, RegisterSubjectResponse, RemoveKeyRequest, RemoveMultiUserRestrictionRequest, ResetPasswordTokenResponse, ResetPasswordWithTokenRequest, ResetSubjectPasswordRequest, ResourceIdentifier, ResourceIdentifierIdentifiersEntry, ResourceOwner, RestrictionType, SMBPersona, SalespersonPersona, SearchSubjectRequest, SearchSubjectResponse, SecurityLog, SendEmailVerificationRequest, SingleValueAttribute, SortDirection, StructAttribute, StructAttributeAttributesEntry, Subject, SubjectCredentials, SubjectMissingValueClause, SubjectResourceForClause, SubjectResourceIntersectionClause, SubjectResourceSubsetClause, SubjectResult, SubjectValueIntersectionClause, TypedContext, TypedExternalIdentifier, TypedPersona, UpdateUserRequest, UpdateUserRequestOperation, User, UserFilter, UserIAMApiService, UserIdentifier, UserSortField, UserSortOptions, ValueList, VendorPersona, VerifyEmailRequest, fromPersona };
|
|
4520
3959
|
//# sourceMappingURL=vendasta-iam.js.map
|