@uipath/admin-tool 1.203.0-preview.205 → 1.204.0-preview.206
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/dist/index-0t7092fj.js +2375 -0
- package/dist/index-40a6zw4t.js +2246 -0
- package/dist/index-esy280as.js +634 -0
- package/dist/index-f7cp1ap1.js +2411 -0
- package/dist/index-m2vj29s2.js +6501 -0
- package/dist/index-xd0zd702.js +2740 -0
- package/dist/jmespath-v0jttxep.js +1485 -0
- package/dist/js-yaml-qv0npwpc.js +3153 -0
- package/dist/tool-016jy57n.js +1376 -0
- package/dist/tool-1yh8g550.js +52 -0
- package/dist/tool-687d8jq8.js +2531 -0
- package/dist/tool-mhb6cezm.js +2859 -0
- package/dist/tool-pmf56f99.js +1977 -0
- package/dist/tool-v13kh7v7.js +6601 -0
- package/dist/tool.js +70 -48739
- package/package.json +2 -2
|
@@ -0,0 +1,2859 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getAuthContext
|
|
3
|
+
} from "./tool-016jy57n.js";
|
|
4
|
+
import {
|
|
5
|
+
addSdkUserAgentHeader,
|
|
6
|
+
getSdkUserAgentToken,
|
|
7
|
+
installSdkUserAgentHeader
|
|
8
|
+
} from "./tool-v13kh7v7.js";
|
|
9
|
+
|
|
10
|
+
// ../identity-sdk/generated/src/runtime.ts
|
|
11
|
+
var BASE_PATH = "https://alpha.uipath.com/identity_".replace(/\/+$/, "");
|
|
12
|
+
|
|
13
|
+
class Configuration {
|
|
14
|
+
configuration;
|
|
15
|
+
constructor(configuration = {}) {
|
|
16
|
+
this.configuration = configuration;
|
|
17
|
+
}
|
|
18
|
+
set config(configuration) {
|
|
19
|
+
this.configuration = configuration;
|
|
20
|
+
}
|
|
21
|
+
get basePath() {
|
|
22
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
|
|
23
|
+
}
|
|
24
|
+
get fetchApi() {
|
|
25
|
+
return this.configuration.fetchApi;
|
|
26
|
+
}
|
|
27
|
+
get middleware() {
|
|
28
|
+
return this.configuration.middleware || [];
|
|
29
|
+
}
|
|
30
|
+
get queryParamsStringify() {
|
|
31
|
+
return this.configuration.queryParamsStringify || querystring;
|
|
32
|
+
}
|
|
33
|
+
get username() {
|
|
34
|
+
return this.configuration.username;
|
|
35
|
+
}
|
|
36
|
+
get password() {
|
|
37
|
+
return this.configuration.password;
|
|
38
|
+
}
|
|
39
|
+
get apiKey() {
|
|
40
|
+
const apiKey = this.configuration.apiKey;
|
|
41
|
+
if (apiKey) {
|
|
42
|
+
return typeof apiKey === "function" ? apiKey : () => apiKey;
|
|
43
|
+
}
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
get accessToken() {
|
|
47
|
+
const accessToken = this.configuration.accessToken;
|
|
48
|
+
if (accessToken) {
|
|
49
|
+
return typeof accessToken === "function" ? accessToken : async () => accessToken;
|
|
50
|
+
}
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
get headers() {
|
|
54
|
+
return this.configuration.headers;
|
|
55
|
+
}
|
|
56
|
+
get credentials() {
|
|
57
|
+
return this.configuration.credentials;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
var DefaultConfig = new Configuration;
|
|
61
|
+
|
|
62
|
+
class BaseAPI {
|
|
63
|
+
configuration;
|
|
64
|
+
static jsonRegex = new RegExp("^(:?application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$", "i");
|
|
65
|
+
middleware;
|
|
66
|
+
constructor(configuration = DefaultConfig) {
|
|
67
|
+
this.configuration = configuration;
|
|
68
|
+
this.middleware = configuration.middleware;
|
|
69
|
+
}
|
|
70
|
+
withMiddleware(...middlewares) {
|
|
71
|
+
const next = this.clone();
|
|
72
|
+
next.middleware = next.middleware.concat(...middlewares);
|
|
73
|
+
return next;
|
|
74
|
+
}
|
|
75
|
+
withPreMiddleware(...preMiddlewares) {
|
|
76
|
+
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
77
|
+
return this.withMiddleware(...middlewares);
|
|
78
|
+
}
|
|
79
|
+
withPostMiddleware(...postMiddlewares) {
|
|
80
|
+
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
81
|
+
return this.withMiddleware(...middlewares);
|
|
82
|
+
}
|
|
83
|
+
isJsonMime(mime) {
|
|
84
|
+
if (!mime) {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
return BaseAPI.jsonRegex.test(mime);
|
|
88
|
+
}
|
|
89
|
+
async request(context, initOverrides) {
|
|
90
|
+
const { url, init } = await this.createFetchParams(context, initOverrides);
|
|
91
|
+
const response = await this.fetchApi(url, init);
|
|
92
|
+
if (response && (response.status >= 200 && response.status < 300)) {
|
|
93
|
+
return response;
|
|
94
|
+
}
|
|
95
|
+
throw new ResponseError(response, "Response returned an error code");
|
|
96
|
+
}
|
|
97
|
+
async createFetchParams(context, initOverrides) {
|
|
98
|
+
let url = this.configuration.basePath + context.path;
|
|
99
|
+
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
100
|
+
url += "?" + this.configuration.queryParamsStringify(context.query);
|
|
101
|
+
}
|
|
102
|
+
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
103
|
+
Object.keys(headers).forEach((key) => headers[key] === undefined ? delete headers[key] : {});
|
|
104
|
+
const initOverrideFn = typeof initOverrides === "function" ? initOverrides : async () => initOverrides;
|
|
105
|
+
const initParams = {
|
|
106
|
+
method: context.method,
|
|
107
|
+
headers,
|
|
108
|
+
body: context.body,
|
|
109
|
+
credentials: this.configuration.credentials
|
|
110
|
+
};
|
|
111
|
+
const overriddenInit = {
|
|
112
|
+
...initParams,
|
|
113
|
+
...await initOverrideFn({
|
|
114
|
+
init: initParams,
|
|
115
|
+
context
|
|
116
|
+
})
|
|
117
|
+
};
|
|
118
|
+
let body;
|
|
119
|
+
if (isFormData(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob(overriddenInit.body)) {
|
|
120
|
+
body = overriddenInit.body;
|
|
121
|
+
} else if (this.isJsonMime(headers["Content-Type"])) {
|
|
122
|
+
body = JSON.stringify(overriddenInit.body);
|
|
123
|
+
} else {
|
|
124
|
+
body = overriddenInit.body;
|
|
125
|
+
}
|
|
126
|
+
const init = {
|
|
127
|
+
...overriddenInit,
|
|
128
|
+
body
|
|
129
|
+
};
|
|
130
|
+
return { url, init };
|
|
131
|
+
}
|
|
132
|
+
fetchApi = async (url, init) => {
|
|
133
|
+
let fetchParams = { url, init };
|
|
134
|
+
for (const middleware of this.middleware) {
|
|
135
|
+
if (middleware.pre) {
|
|
136
|
+
fetchParams = await middleware.pre({
|
|
137
|
+
fetch: this.fetchApi,
|
|
138
|
+
...fetchParams
|
|
139
|
+
}) || fetchParams;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
let response = undefined;
|
|
143
|
+
try {
|
|
144
|
+
response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
145
|
+
} catch (e) {
|
|
146
|
+
for (const middleware of this.middleware) {
|
|
147
|
+
if (middleware.onError) {
|
|
148
|
+
response = await middleware.onError({
|
|
149
|
+
fetch: this.fetchApi,
|
|
150
|
+
url: fetchParams.url,
|
|
151
|
+
init: fetchParams.init,
|
|
152
|
+
error: e,
|
|
153
|
+
response: response ? response.clone() : undefined
|
|
154
|
+
}) || response;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
if (response === undefined) {
|
|
158
|
+
if (e instanceof Error) {
|
|
159
|
+
throw new FetchError(e, "The request failed and the interceptors did not return an alternative response");
|
|
160
|
+
} else {
|
|
161
|
+
throw e;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
for (const middleware of this.middleware) {
|
|
166
|
+
if (middleware.post) {
|
|
167
|
+
response = await middleware.post({
|
|
168
|
+
fetch: this.fetchApi,
|
|
169
|
+
url: fetchParams.url,
|
|
170
|
+
init: fetchParams.init,
|
|
171
|
+
response: response.clone()
|
|
172
|
+
}) || response;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
return response;
|
|
176
|
+
};
|
|
177
|
+
clone() {
|
|
178
|
+
const constructor = this.constructor;
|
|
179
|
+
const next = new constructor(this.configuration);
|
|
180
|
+
next.middleware = this.middleware.slice();
|
|
181
|
+
return next;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
function isBlob(value) {
|
|
185
|
+
return typeof Blob !== "undefined" && value instanceof Blob;
|
|
186
|
+
}
|
|
187
|
+
function isFormData(value) {
|
|
188
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
class ResponseError extends Error {
|
|
192
|
+
response;
|
|
193
|
+
name = "ResponseError";
|
|
194
|
+
constructor(response, msg) {
|
|
195
|
+
super(msg);
|
|
196
|
+
this.response = response;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
class FetchError extends Error {
|
|
201
|
+
cause;
|
|
202
|
+
name = "FetchError";
|
|
203
|
+
constructor(cause, msg) {
|
|
204
|
+
super(msg);
|
|
205
|
+
this.cause = cause;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
class RequiredError extends Error {
|
|
210
|
+
field;
|
|
211
|
+
name = "RequiredError";
|
|
212
|
+
constructor(field, msg) {
|
|
213
|
+
super(msg);
|
|
214
|
+
this.field = field;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
function querystring(params, prefix = "") {
|
|
218
|
+
return Object.keys(params).map((key) => querystringSingleKey(key, params[key], prefix)).filter((part) => part.length > 0).join("&");
|
|
219
|
+
}
|
|
220
|
+
function querystringSingleKey(key, value, keyPrefix = "") {
|
|
221
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
222
|
+
if (value instanceof Array) {
|
|
223
|
+
const multiValue = value.map((singleValue) => encodeURIComponent(String(singleValue))).join(`&${encodeURIComponent(fullKey)}=`);
|
|
224
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
225
|
+
}
|
|
226
|
+
if (value instanceof Set) {
|
|
227
|
+
const valueAsArray = Array.from(value);
|
|
228
|
+
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
229
|
+
}
|
|
230
|
+
if (value instanceof Date) {
|
|
231
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
232
|
+
}
|
|
233
|
+
if (value instanceof Object) {
|
|
234
|
+
return querystring(value, fullKey);
|
|
235
|
+
}
|
|
236
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
237
|
+
}
|
|
238
|
+
class JSONApiResponse {
|
|
239
|
+
raw;
|
|
240
|
+
transformer;
|
|
241
|
+
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
242
|
+
this.raw = raw;
|
|
243
|
+
this.transformer = transformer;
|
|
244
|
+
}
|
|
245
|
+
async value() {
|
|
246
|
+
return this.transformer(await this.raw.json());
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
class VoidApiResponse {
|
|
251
|
+
raw;
|
|
252
|
+
constructor(raw) {
|
|
253
|
+
this.raw = raw;
|
|
254
|
+
}
|
|
255
|
+
async value() {
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
class TextApiResponse {
|
|
260
|
+
raw;
|
|
261
|
+
constructor(raw) {
|
|
262
|
+
this.raw = raw;
|
|
263
|
+
}
|
|
264
|
+
async value() {
|
|
265
|
+
return await this.raw.text();
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
// ../identity-sdk/generated/src/models/ApiScopeType.ts
|
|
270
|
+
function ApiScopeTypeFromJSON(json) {
|
|
271
|
+
return ApiScopeTypeFromJSONTyped(json, false);
|
|
272
|
+
}
|
|
273
|
+
function ApiScopeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
274
|
+
return json;
|
|
275
|
+
}
|
|
276
|
+
function ApiScopeTypeToJSON(value) {
|
|
277
|
+
return value;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
// ../identity-sdk/generated/src/models/CreateOrUpdateSettingCommand.ts
|
|
281
|
+
function CreateOrUpdateSettingCommandToJSON(json) {
|
|
282
|
+
return CreateOrUpdateSettingCommandToJSONTyped(json, false);
|
|
283
|
+
}
|
|
284
|
+
function CreateOrUpdateSettingCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
285
|
+
if (value == null) {
|
|
286
|
+
return value;
|
|
287
|
+
}
|
|
288
|
+
return {
|
|
289
|
+
key: value["key"],
|
|
290
|
+
value: value["value"]
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
// ../identity-sdk/generated/src/models/BulkCreateOrUpdateSettingsCommand.ts
|
|
295
|
+
function BulkCreateOrUpdateSettingsCommandToJSON(json) {
|
|
296
|
+
return BulkCreateOrUpdateSettingsCommandToJSONTyped(json, false);
|
|
297
|
+
}
|
|
298
|
+
function BulkCreateOrUpdateSettingsCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
299
|
+
if (value == null) {
|
|
300
|
+
return value;
|
|
301
|
+
}
|
|
302
|
+
return {
|
|
303
|
+
settings: value["settings"].map(CreateOrUpdateSettingCommandToJSON),
|
|
304
|
+
partitionGlobalId: value["partitionGlobalId"],
|
|
305
|
+
userId: value["userId"]
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
// ../identity-sdk/generated/src/models/BulkDeleteReferenceTokensCommand.ts
|
|
310
|
+
function BulkDeleteReferenceTokensCommandToJSON(json) {
|
|
311
|
+
return BulkDeleteReferenceTokensCommandToJSONTyped(json, false);
|
|
312
|
+
}
|
|
313
|
+
function BulkDeleteReferenceTokensCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
314
|
+
if (value == null) {
|
|
315
|
+
return value;
|
|
316
|
+
}
|
|
317
|
+
return {
|
|
318
|
+
partitionGlobalId: value["partitionGlobalId"],
|
|
319
|
+
tokenIds: value["tokenIds"]
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
// ../identity-sdk/generated/src/models/BulkDeleteSettingsCommand.ts
|
|
324
|
+
function BulkDeleteSettingsCommandToJSON(json) {
|
|
325
|
+
return BulkDeleteSettingsCommandToJSONTyped(json, false);
|
|
326
|
+
}
|
|
327
|
+
function BulkDeleteSettingsCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
328
|
+
if (value == null) {
|
|
329
|
+
return value;
|
|
330
|
+
}
|
|
331
|
+
return {
|
|
332
|
+
settings: value["settings"],
|
|
333
|
+
partitionGlobalId: value["partitionGlobalId"]
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
// ../identity-sdk/generated/src/models/BulkGroupDeleteCommand.ts
|
|
338
|
+
function BulkGroupDeleteCommandToJSON(json) {
|
|
339
|
+
return BulkGroupDeleteCommandToJSONTyped(json, false);
|
|
340
|
+
}
|
|
341
|
+
function BulkGroupDeleteCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
342
|
+
if (value == null) {
|
|
343
|
+
return value;
|
|
344
|
+
}
|
|
345
|
+
return {
|
|
346
|
+
groupIDs: value["groupIDs"]
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
// ../identity-sdk/generated/src/models/BulkRobotAccountDeleteCommand.ts
|
|
351
|
+
function BulkRobotAccountDeleteCommandToJSON(json) {
|
|
352
|
+
return BulkRobotAccountDeleteCommandToJSONTyped(json, false);
|
|
353
|
+
}
|
|
354
|
+
function BulkRobotAccountDeleteCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
355
|
+
if (value == null) {
|
|
356
|
+
return value;
|
|
357
|
+
}
|
|
358
|
+
return {
|
|
359
|
+
robotAccountIDs: value["robotAccountIDs"]
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
// ../identity-sdk/generated/src/models/BulkSoftDeleteCommand.ts
|
|
364
|
+
function BulkSoftDeleteCommandToJSON(json) {
|
|
365
|
+
return BulkSoftDeleteCommandToJSONTyped(json, false);
|
|
366
|
+
}
|
|
367
|
+
function BulkSoftDeleteCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
368
|
+
if (value == null) {
|
|
369
|
+
return value;
|
|
370
|
+
}
|
|
371
|
+
return {
|
|
372
|
+
partitionGlobalId: value["partitionGlobalId"],
|
|
373
|
+
userIds: value["userIds"]
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
// ../identity-sdk/generated/src/models/ChangeUserPasswordCommand.ts
|
|
378
|
+
function ChangeUserPasswordCommandToJSON(json) {
|
|
379
|
+
return ChangeUserPasswordCommandToJSONTyped(json, false);
|
|
380
|
+
}
|
|
381
|
+
function ChangeUserPasswordCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
382
|
+
if (value == null) {
|
|
383
|
+
return value;
|
|
384
|
+
}
|
|
385
|
+
return {
|
|
386
|
+
oldPassword: value["oldPassword"],
|
|
387
|
+
newPassword: value["newPassword"]
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
// ../identity-sdk/generated/src/models/CreateClientSecretCommand.ts
|
|
392
|
+
function CreateClientSecretCommandToJSON(json) {
|
|
393
|
+
return CreateClientSecretCommandToJSONTyped(json, false);
|
|
394
|
+
}
|
|
395
|
+
function CreateClientSecretCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
396
|
+
if (value == null) {
|
|
397
|
+
return value;
|
|
398
|
+
}
|
|
399
|
+
return {
|
|
400
|
+
clientId: value["clientId"],
|
|
401
|
+
description: value["description"],
|
|
402
|
+
partitionGlobalId: value["partitionGlobalId"],
|
|
403
|
+
expiryTime: value["expiryTime"] == null ? value["expiryTime"] : value["expiryTime"].toISOString()
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
// ../identity-sdk/generated/src/models/ExternalScopeDto.ts
|
|
408
|
+
function ExternalScopeDtoFromJSON(json) {
|
|
409
|
+
return ExternalScopeDtoFromJSONTyped(json, false);
|
|
410
|
+
}
|
|
411
|
+
function ExternalScopeDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
412
|
+
if (json == null) {
|
|
413
|
+
return json;
|
|
414
|
+
}
|
|
415
|
+
return {
|
|
416
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
417
|
+
displayName: json["displayName"] == null ? undefined : json["displayName"],
|
|
418
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
419
|
+
type: json["type"] == null ? undefined : ApiScopeTypeFromJSON(json["type"])
|
|
420
|
+
};
|
|
421
|
+
}
|
|
422
|
+
function ExternalScopeDtoToJSON(json) {
|
|
423
|
+
return ExternalScopeDtoToJSONTyped(json, false);
|
|
424
|
+
}
|
|
425
|
+
function ExternalScopeDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
426
|
+
if (value == null) {
|
|
427
|
+
return value;
|
|
428
|
+
}
|
|
429
|
+
return {
|
|
430
|
+
name: value["name"],
|
|
431
|
+
displayName: value["displayName"],
|
|
432
|
+
description: value["description"],
|
|
433
|
+
type: ApiScopeTypeToJSON(value["type"])
|
|
434
|
+
};
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
// ../identity-sdk/generated/src/models/CreateExternalClientCommand.ts
|
|
438
|
+
function CreateExternalClientCommandToJSON(json) {
|
|
439
|
+
return CreateExternalClientCommandToJSONTyped(json, false);
|
|
440
|
+
}
|
|
441
|
+
function CreateExternalClientCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
442
|
+
if (value == null) {
|
|
443
|
+
return value;
|
|
444
|
+
}
|
|
445
|
+
return {
|
|
446
|
+
partitionGlobalId: value["partitionGlobalId"],
|
|
447
|
+
name: value["name"],
|
|
448
|
+
isConfidential: value["isConfidential"],
|
|
449
|
+
redirectUri: value["redirectUri"],
|
|
450
|
+
scopes: value["scopes"].map(ExternalScopeDtoToJSON),
|
|
451
|
+
generateFirstSecret: value["generateFirstSecret"]
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
// ../identity-sdk/generated/src/models/CreateFederatedCredentialCommand.ts
|
|
456
|
+
function CreateFederatedCredentialCommandToJSON(json) {
|
|
457
|
+
return CreateFederatedCredentialCommandToJSONTyped(json, false);
|
|
458
|
+
}
|
|
459
|
+
function CreateFederatedCredentialCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
460
|
+
if (value == null) {
|
|
461
|
+
return value;
|
|
462
|
+
}
|
|
463
|
+
return {
|
|
464
|
+
name: value["name"],
|
|
465
|
+
description: value["description"],
|
|
466
|
+
issuer: value["issuer"],
|
|
467
|
+
audience: value["audience"],
|
|
468
|
+
subject: value["subject"]
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
// ../identity-sdk/generated/src/models/CreateGroupCommand.ts
|
|
473
|
+
function CreateGroupCommandToJSON(json) {
|
|
474
|
+
return CreateGroupCommandToJSONTyped(json, false);
|
|
475
|
+
}
|
|
476
|
+
function CreateGroupCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
477
|
+
if (value == null) {
|
|
478
|
+
return value;
|
|
479
|
+
}
|
|
480
|
+
return {
|
|
481
|
+
partitionGlobalId: value["partitionGlobalId"],
|
|
482
|
+
id: value["id"],
|
|
483
|
+
name: value["name"],
|
|
484
|
+
directoryUserMemberIDs: value["directoryUserMemberIDs"]
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
// ../identity-sdk/generated/src/models/CreateReferenceTokenCommand.ts
|
|
489
|
+
function CreateReferenceTokenCommandToJSON(json) {
|
|
490
|
+
return CreateReferenceTokenCommandToJSONTyped(json, false);
|
|
491
|
+
}
|
|
492
|
+
function CreateReferenceTokenCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
493
|
+
if (value == null) {
|
|
494
|
+
return value;
|
|
495
|
+
}
|
|
496
|
+
return {
|
|
497
|
+
description: value["description"],
|
|
498
|
+
expiration: value["expiration"].toISOString(),
|
|
499
|
+
scopes: value["scopes"]
|
|
500
|
+
};
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
// ../identity-sdk/generated/src/models/CreateRobotAccountCommand.ts
|
|
504
|
+
function CreateRobotAccountCommandToJSON(json) {
|
|
505
|
+
return CreateRobotAccountCommandToJSONTyped(json, false);
|
|
506
|
+
}
|
|
507
|
+
function CreateRobotAccountCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
508
|
+
if (value == null) {
|
|
509
|
+
return value;
|
|
510
|
+
}
|
|
511
|
+
return {
|
|
512
|
+
partitionGlobalId: value["partitionGlobalId"],
|
|
513
|
+
name: value["name"],
|
|
514
|
+
displayName: value["displayName"],
|
|
515
|
+
groupIDsToAdd: value["groupIDsToAdd"]
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
// ../identity-sdk/generated/src/models/CreateUserLoginCommand.ts
|
|
520
|
+
function CreateUserLoginCommandToJSON(json) {
|
|
521
|
+
return CreateUserLoginCommandToJSONTyped(json, false);
|
|
522
|
+
}
|
|
523
|
+
function CreateUserLoginCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
524
|
+
if (value == null) {
|
|
525
|
+
return value;
|
|
526
|
+
}
|
|
527
|
+
return {
|
|
528
|
+
loginProvider: value["loginProvider"],
|
|
529
|
+
providerKey: value["providerKey"],
|
|
530
|
+
providerDisplayName: value["providerDisplayName"]
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
// ../identity-sdk/generated/src/models/UserType.ts
|
|
535
|
+
function UserTypeFromJSON(json) {
|
|
536
|
+
return UserTypeFromJSONTyped(json, false);
|
|
537
|
+
}
|
|
538
|
+
function UserTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
539
|
+
return json;
|
|
540
|
+
}
|
|
541
|
+
function UserTypeToJSON(value) {
|
|
542
|
+
return value;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
// ../identity-sdk/generated/src/models/CreateUserCommand.ts
|
|
546
|
+
function CreateUserCommandToJSON(json) {
|
|
547
|
+
return CreateUserCommandToJSONTyped(json, false);
|
|
548
|
+
}
|
|
549
|
+
function CreateUserCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
550
|
+
if (value == null) {
|
|
551
|
+
return value;
|
|
552
|
+
}
|
|
553
|
+
return {
|
|
554
|
+
id: value["id"],
|
|
555
|
+
userName: value["userName"],
|
|
556
|
+
email: value["email"],
|
|
557
|
+
name: value["name"],
|
|
558
|
+
surname: value["surname"],
|
|
559
|
+
displayName: value["displayName"],
|
|
560
|
+
type: UserTypeToJSON(value["type"]),
|
|
561
|
+
bypassBasicAuthRestriction: value["bypassBasicAuthRestriction"],
|
|
562
|
+
legacyId: value["legacyId"],
|
|
563
|
+
invitationAccepted: value["invitationAccepted"],
|
|
564
|
+
partitionGlobalId: value["partitionGlobalId"],
|
|
565
|
+
password: value["password"],
|
|
566
|
+
validatePassword: value["validatePassword"],
|
|
567
|
+
groupIDs: value["groupIDs"],
|
|
568
|
+
userLogins: value["userLogins"] == null ? undefined : value["userLogins"].map(CreateUserLoginCommandToJSON)
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
// ../identity-sdk/generated/src/models/CreateUserCommandBase.ts
|
|
573
|
+
function CreateUserCommandBaseToJSON(json) {
|
|
574
|
+
return CreateUserCommandBaseToJSONTyped(json, false);
|
|
575
|
+
}
|
|
576
|
+
function CreateUserCommandBaseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
577
|
+
if (value == null) {
|
|
578
|
+
return value;
|
|
579
|
+
}
|
|
580
|
+
return {
|
|
581
|
+
id: value["id"],
|
|
582
|
+
userName: value["userName"],
|
|
583
|
+
email: value["email"],
|
|
584
|
+
name: value["name"],
|
|
585
|
+
surname: value["surname"],
|
|
586
|
+
displayName: value["displayName"],
|
|
587
|
+
type: UserTypeToJSON(value["type"]),
|
|
588
|
+
bypassBasicAuthRestriction: value["bypassBasicAuthRestriction"],
|
|
589
|
+
legacyId: value["legacyId"],
|
|
590
|
+
invitationAccepted: value["invitationAccepted"]
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
// ../identity-sdk/generated/src/models/CreateUsersCommand.ts
|
|
595
|
+
function CreateUsersCommandToJSON(json) {
|
|
596
|
+
return CreateUsersCommandToJSONTyped(json, false);
|
|
597
|
+
}
|
|
598
|
+
function CreateUsersCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
599
|
+
if (value == null) {
|
|
600
|
+
return value;
|
|
601
|
+
}
|
|
602
|
+
return {
|
|
603
|
+
users: value["users"] == null ? undefined : value["users"].map(CreateUserCommandBaseToJSON),
|
|
604
|
+
partitionGlobalId: value["partitionGlobalId"],
|
|
605
|
+
groupIDs: value["groupIDs"]
|
|
606
|
+
};
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
// ../identity-sdk/generated/src/models/DeleteReferenceTokenByValueCommand.ts
|
|
610
|
+
function DeleteReferenceTokenByValueCommandToJSON(json) {
|
|
611
|
+
return DeleteReferenceTokenByValueCommandToJSONTyped(json, false);
|
|
612
|
+
}
|
|
613
|
+
function DeleteReferenceTokenByValueCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
614
|
+
if (value == null) {
|
|
615
|
+
return value;
|
|
616
|
+
}
|
|
617
|
+
return {
|
|
618
|
+
partitionGlobalId: value["partitionGlobalId"],
|
|
619
|
+
referenceToken: value["referenceToken"]
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
// ../identity-sdk/generated/src/models/DirectoryGroup.ts
|
|
624
|
+
function instanceOfDirectoryGroup(value) {
|
|
625
|
+
return true;
|
|
626
|
+
}
|
|
627
|
+
function DirectoryGroupFromJSONTyped(json, ignoreDiscriminator) {
|
|
628
|
+
if (json == null) {
|
|
629
|
+
return json;
|
|
630
|
+
}
|
|
631
|
+
return {
|
|
632
|
+
...DirectoryEntityFromJSONTyped(json, true),
|
|
633
|
+
externalId: json["externalId"] == null ? undefined : json["externalId"]
|
|
634
|
+
};
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
// ../identity-sdk/generated/src/models/DirectoryRobotUser.ts
|
|
638
|
+
function instanceOfDirectoryRobotUser(value) {
|
|
639
|
+
return true;
|
|
640
|
+
}
|
|
641
|
+
function DirectoryRobotUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
642
|
+
return json;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
// ../identity-sdk/generated/src/models/DirectoryUser.ts
|
|
646
|
+
function instanceOfDirectoryUser(value) {
|
|
647
|
+
return true;
|
|
648
|
+
}
|
|
649
|
+
function DirectoryUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
650
|
+
if (json == null) {
|
|
651
|
+
return json;
|
|
652
|
+
}
|
|
653
|
+
return {
|
|
654
|
+
...DirectoryEntityFromJSONTyped(json, true),
|
|
655
|
+
firstName: json["firstName"] == null ? undefined : json["firstName"],
|
|
656
|
+
lastName: json["lastName"] == null ? undefined : json["lastName"],
|
|
657
|
+
jobTitle: json["jobTitle"] == null ? undefined : json["jobTitle"],
|
|
658
|
+
companyName: json["companyName"] == null ? undefined : json["companyName"],
|
|
659
|
+
city: json["city"] == null ? undefined : json["city"],
|
|
660
|
+
department: json["department"] == null ? undefined : json["department"],
|
|
661
|
+
extensionUserAttributes: json["extensionUserAttributes"] == null ? undefined : json["extensionUserAttributes"],
|
|
662
|
+
externalId: json["externalId"] == null ? undefined : json["externalId"],
|
|
663
|
+
customUniqueId: json["customUniqueId"] == null ? undefined : json["customUniqueId"],
|
|
664
|
+
isActive: json["isActive"] == null ? undefined : json["isActive"],
|
|
665
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"])
|
|
666
|
+
};
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
// ../identity-sdk/generated/src/models/DirectoryEntity.ts
|
|
670
|
+
function DirectoryEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
671
|
+
if (json == null) {
|
|
672
|
+
return json;
|
|
673
|
+
}
|
|
674
|
+
if (!ignoreDiscriminator) {
|
|
675
|
+
if (json["objectType"] === "DirectoryApplication") {
|
|
676
|
+
return DirectoryApplicationFromJSONTyped(json, ignoreDiscriminator);
|
|
677
|
+
}
|
|
678
|
+
if (json["objectType"] === "DirectoryGroup") {
|
|
679
|
+
return DirectoryGroupFromJSONTyped(json, ignoreDiscriminator);
|
|
680
|
+
}
|
|
681
|
+
if (json["objectType"] === "DirectoryRobotUser") {
|
|
682
|
+
return DirectoryRobotUserFromJSONTyped(json, ignoreDiscriminator);
|
|
683
|
+
}
|
|
684
|
+
if (json["objectType"] === "DirectoryUser") {
|
|
685
|
+
return DirectoryUserFromJSONTyped(json, ignoreDiscriminator);
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
return {
|
|
689
|
+
objectType: json["objectType"],
|
|
690
|
+
source: json["source"] == null ? undefined : json["source"],
|
|
691
|
+
identifier: json["identifier"] == null ? undefined : json["identifier"],
|
|
692
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
693
|
+
email: json["email"] == null ? undefined : json["email"],
|
|
694
|
+
displayName: json["displayName"] == null ? undefined : json["displayName"]
|
|
695
|
+
};
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
// ../identity-sdk/generated/src/models/DirectoryApplication.ts
|
|
699
|
+
function instanceOfDirectoryApplication(value) {
|
|
700
|
+
return true;
|
|
701
|
+
}
|
|
702
|
+
function DirectoryApplicationFromJSONTyped(json, ignoreDiscriminator) {
|
|
703
|
+
if (json == null) {
|
|
704
|
+
return json;
|
|
705
|
+
}
|
|
706
|
+
return {
|
|
707
|
+
...DirectoryEntityFromJSONTyped(json, true),
|
|
708
|
+
applicationId: json["applicationId"] == null ? undefined : json["applicationId"]
|
|
709
|
+
};
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
// ../identity-sdk/generated/src/models/DirectoryResolve200Response.ts
|
|
713
|
+
function DirectoryResolve200ResponseFromJSON(json) {
|
|
714
|
+
return DirectoryResolve200ResponseFromJSONTyped(json, false);
|
|
715
|
+
}
|
|
716
|
+
function DirectoryResolve200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
717
|
+
if (json == null) {
|
|
718
|
+
return json;
|
|
719
|
+
}
|
|
720
|
+
if (typeof json !== "object") {
|
|
721
|
+
return json;
|
|
722
|
+
}
|
|
723
|
+
if (instanceOfDirectoryApplication(json)) {
|
|
724
|
+
return DirectoryApplicationFromJSONTyped(json, true);
|
|
725
|
+
}
|
|
726
|
+
if (instanceOfDirectoryGroup(json)) {
|
|
727
|
+
return DirectoryGroupFromJSONTyped(json, true);
|
|
728
|
+
}
|
|
729
|
+
if (instanceOfDirectoryRobotUser(json)) {
|
|
730
|
+
return DirectoryRobotUserFromJSONTyped(json, true);
|
|
731
|
+
}
|
|
732
|
+
if (instanceOfDirectoryUser(json)) {
|
|
733
|
+
return DirectoryUserFromJSONTyped(json, true);
|
|
734
|
+
}
|
|
735
|
+
return {};
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
// ../identity-sdk/generated/src/models/SecretDto.ts
|
|
739
|
+
function SecretDtoFromJSON(json) {
|
|
740
|
+
return SecretDtoFromJSONTyped(json, false);
|
|
741
|
+
}
|
|
742
|
+
function SecretDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
743
|
+
if (json == null) {
|
|
744
|
+
return json;
|
|
745
|
+
}
|
|
746
|
+
return {
|
|
747
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
748
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
749
|
+
secret: json["secret"] == null ? undefined : json["secret"],
|
|
750
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
751
|
+
expiryTime: json["expiryTime"] == null ? undefined : new Date(json["expiryTime"])
|
|
752
|
+
};
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
// ../identity-sdk/generated/src/models/ExternalResourceDto.ts
|
|
756
|
+
function ExternalResourceDtoFromJSON(json) {
|
|
757
|
+
return ExternalResourceDtoFromJSONTyped(json, false);
|
|
758
|
+
}
|
|
759
|
+
function ExternalResourceDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
760
|
+
if (json == null) {
|
|
761
|
+
return json;
|
|
762
|
+
}
|
|
763
|
+
return {
|
|
764
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
765
|
+
displayName: json["displayName"] == null ? undefined : json["displayName"],
|
|
766
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
767
|
+
scopes: json["scopes"] == null ? undefined : json["scopes"].map(ExternalScopeDtoFromJSON)
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
// ../identity-sdk/generated/src/models/ExternalClientDto.ts
|
|
772
|
+
function ExternalClientDtoFromJSON(json) {
|
|
773
|
+
return ExternalClientDtoFromJSONTyped(json, false);
|
|
774
|
+
}
|
|
775
|
+
function ExternalClientDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
776
|
+
if (json == null) {
|
|
777
|
+
return json;
|
|
778
|
+
}
|
|
779
|
+
return {
|
|
780
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
781
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
782
|
+
secret: json["secret"] == null ? undefined : json["secret"],
|
|
783
|
+
isConfidential: json["isConfidential"] == null ? undefined : json["isConfidential"],
|
|
784
|
+
redirectUri: json["redirectUri"] == null ? undefined : json["redirectUri"],
|
|
785
|
+
resources: json["resources"] == null ? undefined : json["resources"].map(ExternalResourceDtoFromJSON),
|
|
786
|
+
secrets: json["secrets"] == null ? undefined : json["secrets"].map(SecretDtoFromJSON)
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
// ../identity-sdk/generated/src/models/FederatedCredentialDto.ts
|
|
791
|
+
function FederatedCredentialDtoFromJSON(json) {
|
|
792
|
+
return FederatedCredentialDtoFromJSONTyped(json, false);
|
|
793
|
+
}
|
|
794
|
+
function FederatedCredentialDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
795
|
+
if (json == null) {
|
|
796
|
+
return json;
|
|
797
|
+
}
|
|
798
|
+
return {
|
|
799
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
800
|
+
clientId: json["clientId"] == null ? undefined : json["clientId"],
|
|
801
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
802
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
803
|
+
issuer: json["issuer"] == null ? undefined : json["issuer"],
|
|
804
|
+
audience: json["audience"] == null ? undefined : json["audience"],
|
|
805
|
+
subject: json["subject"] == null ? undefined : json["subject"],
|
|
806
|
+
createdAt: json["createdAt"] == null ? undefined : new Date(json["createdAt"]),
|
|
807
|
+
updatedAt: json["updatedAt"] == null ? undefined : new Date(json["updatedAt"])
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
// ../identity-sdk/generated/src/models/GroupType.ts
|
|
812
|
+
function GroupTypeFromJSON(json) {
|
|
813
|
+
return GroupTypeFromJSONTyped(json, false);
|
|
814
|
+
}
|
|
815
|
+
function GroupTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
816
|
+
return json;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
// ../identity-sdk/generated/src/models/GroupDto.ts
|
|
820
|
+
function GroupDtoFromJSON(json) {
|
|
821
|
+
return GroupDtoFromJSONTyped(json, false);
|
|
822
|
+
}
|
|
823
|
+
function GroupDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
824
|
+
if (json == null) {
|
|
825
|
+
return json;
|
|
826
|
+
}
|
|
827
|
+
return {
|
|
828
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
829
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
830
|
+
displayName: json["displayName"] == null ? undefined : json["displayName"],
|
|
831
|
+
type: json["type"] == null ? undefined : GroupTypeFromJSON(json["type"]),
|
|
832
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
833
|
+
lastModificationTime: json["lastModificationTime"] == null ? undefined : new Date(json["lastModificationTime"]),
|
|
834
|
+
members: json["members"] == null ? undefined : json["members"].map(DirectoryResolve200ResponseFromJSON),
|
|
835
|
+
mappedRole: json["mappedRole"] == null ? undefined : json["mappedRole"],
|
|
836
|
+
scope: json["scope"] == null ? undefined : json["scope"]
|
|
837
|
+
};
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
// ../identity-sdk/generated/src/models/GroupMemberDto.ts
|
|
841
|
+
function GroupMemberDtoFromJSON(json) {
|
|
842
|
+
return GroupMemberDtoFromJSONTyped(json, false);
|
|
843
|
+
}
|
|
844
|
+
function GroupMemberDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
845
|
+
if (json == null) {
|
|
846
|
+
return json;
|
|
847
|
+
}
|
|
848
|
+
return {
|
|
849
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
850
|
+
type: json["type"] == null ? undefined : UserTypeFromJSON(json["type"])
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
// ../identity-sdk/generated/src/models/GroupMemberDtoPagedResultDto.ts
|
|
855
|
+
function GroupMemberDtoPagedResultDtoFromJSON(json) {
|
|
856
|
+
return GroupMemberDtoPagedResultDtoFromJSONTyped(json, false);
|
|
857
|
+
}
|
|
858
|
+
function GroupMemberDtoPagedResultDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
859
|
+
if (json == null) {
|
|
860
|
+
return json;
|
|
861
|
+
}
|
|
862
|
+
return {
|
|
863
|
+
totalCount: json["totalCount"] == null ? undefined : json["totalCount"],
|
|
864
|
+
results: json["results"] == null ? undefined : json["results"].map(GroupMemberDtoFromJSON)
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
// ../identity-sdk/generated/src/models/IdentityError.ts
|
|
869
|
+
function IdentityErrorFromJSON(json) {
|
|
870
|
+
return IdentityErrorFromJSONTyped(json, false);
|
|
871
|
+
}
|
|
872
|
+
function IdentityErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
873
|
+
if (json == null) {
|
|
874
|
+
return json;
|
|
875
|
+
}
|
|
876
|
+
return {
|
|
877
|
+
code: json["code"] == null ? undefined : json["code"],
|
|
878
|
+
description: json["description"] == null ? undefined : json["description"]
|
|
879
|
+
};
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
// ../identity-sdk/generated/src/models/IdentityResult.ts
|
|
883
|
+
function IdentityResultFromJSON(json) {
|
|
884
|
+
return IdentityResultFromJSONTyped(json, false);
|
|
885
|
+
}
|
|
886
|
+
function IdentityResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
887
|
+
if (json == null) {
|
|
888
|
+
return json;
|
|
889
|
+
}
|
|
890
|
+
return {
|
|
891
|
+
succeeded: json["succeeded"] == null ? undefined : json["succeeded"],
|
|
892
|
+
errors: json["errors"] == null ? undefined : json["errors"].map(IdentityErrorFromJSON)
|
|
893
|
+
};
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
// ../identity-sdk/generated/src/models/InviteUserResult.ts
|
|
897
|
+
function InviteUserResultFromJSON(json) {
|
|
898
|
+
return InviteUserResultFromJSONTyped(json, false);
|
|
899
|
+
}
|
|
900
|
+
function InviteUserResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
901
|
+
if (json == null) {
|
|
902
|
+
return json;
|
|
903
|
+
}
|
|
904
|
+
return {
|
|
905
|
+
email: json["email"] == null ? undefined : json["email"],
|
|
906
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
907
|
+
errorMsg: json["errorMsg"] == null ? undefined : json["errorMsg"],
|
|
908
|
+
success: json["success"] == null ? undefined : json["success"]
|
|
909
|
+
};
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
// ../identity-sdk/generated/src/models/InviteUsersResult.ts
|
|
913
|
+
function InviteUsersResultFromJSON(json) {
|
|
914
|
+
return InviteUsersResultFromJSONTyped(json, false);
|
|
915
|
+
}
|
|
916
|
+
function InviteUsersResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
917
|
+
if (json == null) {
|
|
918
|
+
return json;
|
|
919
|
+
}
|
|
920
|
+
return {
|
|
921
|
+
result: json["result"] == null ? undefined : IdentityResultFromJSON(json["result"]),
|
|
922
|
+
users: json["users"] == null ? undefined : json["users"].map(InviteUserResultFromJSON)
|
|
923
|
+
};
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
// ../identity-sdk/generated/src/models/InvitedUser.ts
|
|
927
|
+
function InvitedUserToJSON(json) {
|
|
928
|
+
return InvitedUserToJSONTyped(json, false);
|
|
929
|
+
}
|
|
930
|
+
function InvitedUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
931
|
+
if (value == null) {
|
|
932
|
+
return value;
|
|
933
|
+
}
|
|
934
|
+
return {
|
|
935
|
+
groupIDs: value["groupIDs"],
|
|
936
|
+
name: value["name"],
|
|
937
|
+
surname: value["surname"],
|
|
938
|
+
redirectUrl: value["redirectUrl"],
|
|
939
|
+
email: value["email"],
|
|
940
|
+
language: value["language"]
|
|
941
|
+
};
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
// ../identity-sdk/generated/src/models/UserDto.ts
|
|
945
|
+
function UserDtoFromJSON(json) {
|
|
946
|
+
return UserDtoFromJSONTyped(json, false);
|
|
947
|
+
}
|
|
948
|
+
function UserDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
949
|
+
if (json == null) {
|
|
950
|
+
return json;
|
|
951
|
+
}
|
|
952
|
+
return {
|
|
953
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
954
|
+
userName: json["userName"] == null ? undefined : json["userName"],
|
|
955
|
+
email: json["email"] == null ? undefined : json["email"],
|
|
956
|
+
emailConfirmed: json["emailConfirmed"] == null ? undefined : json["emailConfirmed"],
|
|
957
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
958
|
+
surname: json["surname"] == null ? undefined : json["surname"],
|
|
959
|
+
displayName: json["displayName"] == null ? undefined : json["displayName"],
|
|
960
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
961
|
+
lastModificationTime: json["lastModificationTime"] == null ? undefined : new Date(json["lastModificationTime"]),
|
|
962
|
+
lastLoginTime: json["lastLoginTime"] == null ? undefined : new Date(json["lastLoginTime"]),
|
|
963
|
+
groupIDs: json["groupIDs"] == null ? undefined : json["groupIDs"],
|
|
964
|
+
legacyId: json["legacyId"] == null ? undefined : json["legacyId"],
|
|
965
|
+
isActive: json["isActive"] == null ? undefined : json["isActive"],
|
|
966
|
+
bypassBasicAuthRestriction: json["bypassBasicAuthRestriction"] == null ? undefined : json["bypassBasicAuthRestriction"],
|
|
967
|
+
type: json["type"] == null ? undefined : UserTypeFromJSON(json["type"]),
|
|
968
|
+
invitationAccepted: json["invitationAccepted"] == null ? undefined : json["invitationAccepted"]
|
|
969
|
+
};
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
// ../identity-sdk/generated/src/models/ReferenceTokenDto.ts
|
|
973
|
+
function ReferenceTokenDtoFromJSON(json) {
|
|
974
|
+
return ReferenceTokenDtoFromJSONTyped(json, false);
|
|
975
|
+
}
|
|
976
|
+
function ReferenceTokenDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
977
|
+
if (json == null) {
|
|
978
|
+
return json;
|
|
979
|
+
}
|
|
980
|
+
return {
|
|
981
|
+
referenceToken: json["referenceToken"] == null ? undefined : json["referenceToken"],
|
|
982
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
983
|
+
userId: json["userId"] == null ? undefined : json["userId"],
|
|
984
|
+
description: json["description"] == null ? undefined : json["description"],
|
|
985
|
+
expiration: json["expiration"] == null ? undefined : new Date(json["expiration"]),
|
|
986
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
987
|
+
scopes: json["scopes"] == null ? undefined : json["scopes"],
|
|
988
|
+
lastUsed: json["lastUsed"] == null ? undefined : new Date(json["lastUsed"]),
|
|
989
|
+
user: json["user"] == null ? undefined : UserDtoFromJSON(json["user"])
|
|
990
|
+
};
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
// ../identity-sdk/generated/src/models/ReferenceTokenDtoPagedResultDto.ts
|
|
994
|
+
function ReferenceTokenDtoPagedResultDtoFromJSON(json) {
|
|
995
|
+
return ReferenceTokenDtoPagedResultDtoFromJSONTyped(json, false);
|
|
996
|
+
}
|
|
997
|
+
function ReferenceTokenDtoPagedResultDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
998
|
+
if (json == null) {
|
|
999
|
+
return json;
|
|
1000
|
+
}
|
|
1001
|
+
return {
|
|
1002
|
+
totalCount: json["totalCount"] == null ? undefined : json["totalCount"],
|
|
1003
|
+
results: json["results"] == null ? undefined : json["results"].map(ReferenceTokenDtoFromJSON)
|
|
1004
|
+
};
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
// ../identity-sdk/generated/src/models/RegenerateReferenceTokenCommand.ts
|
|
1008
|
+
function RegenerateReferenceTokenCommandToJSON(json) {
|
|
1009
|
+
return RegenerateReferenceTokenCommandToJSONTyped(json, false);
|
|
1010
|
+
}
|
|
1011
|
+
function RegenerateReferenceTokenCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1012
|
+
if (value == null) {
|
|
1013
|
+
return value;
|
|
1014
|
+
}
|
|
1015
|
+
return {
|
|
1016
|
+
expiration: value["expiration"].toISOString()
|
|
1017
|
+
};
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
// ../identity-sdk/generated/src/models/RobotAccountDto.ts
|
|
1021
|
+
function RobotAccountDtoFromJSON(json) {
|
|
1022
|
+
return RobotAccountDtoFromJSONTyped(json, false);
|
|
1023
|
+
}
|
|
1024
|
+
function RobotAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1025
|
+
if (json == null) {
|
|
1026
|
+
return json;
|
|
1027
|
+
}
|
|
1028
|
+
return {
|
|
1029
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1030
|
+
name: json["name"] == null ? undefined : json["name"],
|
|
1031
|
+
displayName: json["displayName"] == null ? undefined : json["displayName"],
|
|
1032
|
+
creationTime: json["creationTime"] == null ? undefined : new Date(json["creationTime"]),
|
|
1033
|
+
lastLoginTime: json["lastLoginTime"] == null ? undefined : new Date(json["lastLoginTime"]),
|
|
1034
|
+
groupIds: json["groupIds"] == null ? undefined : json["groupIds"],
|
|
1035
|
+
mappedRole: json["mappedRole"] == null ? undefined : json["mappedRole"]
|
|
1036
|
+
};
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
// ../identity-sdk/generated/src/models/RobotAccountDtoPagedResultDto.ts
|
|
1040
|
+
function RobotAccountDtoPagedResultDtoFromJSON(json) {
|
|
1041
|
+
return RobotAccountDtoPagedResultDtoFromJSONTyped(json, false);
|
|
1042
|
+
}
|
|
1043
|
+
function RobotAccountDtoPagedResultDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1044
|
+
if (json == null) {
|
|
1045
|
+
return json;
|
|
1046
|
+
}
|
|
1047
|
+
return {
|
|
1048
|
+
totalCount: json["totalCount"] == null ? undefined : json["totalCount"],
|
|
1049
|
+
results: json["results"] == null ? undefined : json["results"].map(RobotAccountDtoFromJSON)
|
|
1050
|
+
};
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
// ../identity-sdk/generated/src/models/SettingDto.ts
|
|
1054
|
+
function SettingDtoFromJSON(json) {
|
|
1055
|
+
return SettingDtoFromJSONTyped(json, false);
|
|
1056
|
+
}
|
|
1057
|
+
function SettingDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1058
|
+
if (json == null) {
|
|
1059
|
+
return json;
|
|
1060
|
+
}
|
|
1061
|
+
return {
|
|
1062
|
+
id: json["id"] == null ? undefined : json["id"],
|
|
1063
|
+
key: json["key"] == null ? undefined : json["key"],
|
|
1064
|
+
value: json["value"] == null ? undefined : json["value"],
|
|
1065
|
+
partitionGlobalId: json["partitionGlobalId"] == null ? undefined : json["partitionGlobalId"],
|
|
1066
|
+
userId: json["userId"] == null ? undefined : json["userId"]
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
// ../identity-sdk/generated/src/models/SmtpClientConfiguration.ts
|
|
1071
|
+
function SmtpClientConfigurationToJSON(json) {
|
|
1072
|
+
return SmtpClientConfigurationToJSONTyped(json, false);
|
|
1073
|
+
}
|
|
1074
|
+
function SmtpClientConfigurationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1075
|
+
if (value == null) {
|
|
1076
|
+
return value;
|
|
1077
|
+
}
|
|
1078
|
+
return {
|
|
1079
|
+
host: value["host"],
|
|
1080
|
+
port: value["port"],
|
|
1081
|
+
userName: value["userName"],
|
|
1082
|
+
password: value["password"],
|
|
1083
|
+
domain: value["domain"],
|
|
1084
|
+
enableSsl: value["enableSsl"],
|
|
1085
|
+
useDefaultCredentials: value["useDefaultCredentials"],
|
|
1086
|
+
fromAddress: value["fromAddress"],
|
|
1087
|
+
fromDisplayName: value["fromDisplayName"],
|
|
1088
|
+
connectionTimeout: value["connectionTimeout"]
|
|
1089
|
+
};
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
// ../identity-sdk/generated/src/models/UpdateExternalClientCommand.ts
|
|
1093
|
+
function UpdateExternalClientCommandToJSON(json) {
|
|
1094
|
+
return UpdateExternalClientCommandToJSONTyped(json, false);
|
|
1095
|
+
}
|
|
1096
|
+
function UpdateExternalClientCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1097
|
+
if (value == null) {
|
|
1098
|
+
return value;
|
|
1099
|
+
}
|
|
1100
|
+
return {
|
|
1101
|
+
name: value["name"],
|
|
1102
|
+
redirectUri: value["redirectUri"],
|
|
1103
|
+
scopes: value["scopes"] == null ? undefined : value["scopes"].map(ExternalScopeDtoToJSON)
|
|
1104
|
+
};
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
// ../identity-sdk/generated/src/models/UpdateFederatedCredentialCommand.ts
|
|
1108
|
+
function UpdateFederatedCredentialCommandToJSON(json) {
|
|
1109
|
+
return UpdateFederatedCredentialCommandToJSONTyped(json, false);
|
|
1110
|
+
}
|
|
1111
|
+
function UpdateFederatedCredentialCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1112
|
+
if (value == null) {
|
|
1113
|
+
return value;
|
|
1114
|
+
}
|
|
1115
|
+
return {
|
|
1116
|
+
name: value["name"],
|
|
1117
|
+
description: value["description"],
|
|
1118
|
+
issuer: value["issuer"],
|
|
1119
|
+
audience: value["audience"],
|
|
1120
|
+
subject: value["subject"]
|
|
1121
|
+
};
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
// ../identity-sdk/generated/src/models/UpdateGroupCommand.ts
|
|
1125
|
+
function UpdateGroupCommandToJSON(json) {
|
|
1126
|
+
return UpdateGroupCommandToJSONTyped(json, false);
|
|
1127
|
+
}
|
|
1128
|
+
function UpdateGroupCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1129
|
+
if (value == null) {
|
|
1130
|
+
return value;
|
|
1131
|
+
}
|
|
1132
|
+
return {
|
|
1133
|
+
partitionGlobalId: value["partitionGlobalId"],
|
|
1134
|
+
name: value["name"],
|
|
1135
|
+
directoryUserIDsToAdd: value["directoryUserIDsToAdd"],
|
|
1136
|
+
directoryUserIDsToRemove: value["directoryUserIDsToRemove"]
|
|
1137
|
+
};
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
// ../identity-sdk/generated/src/models/UpdateRobotAccountCommand.ts
|
|
1141
|
+
function UpdateRobotAccountCommandToJSON(json) {
|
|
1142
|
+
return UpdateRobotAccountCommandToJSONTyped(json, false);
|
|
1143
|
+
}
|
|
1144
|
+
function UpdateRobotAccountCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1145
|
+
if (value == null) {
|
|
1146
|
+
return value;
|
|
1147
|
+
}
|
|
1148
|
+
return {
|
|
1149
|
+
partitionGlobalId: value["partitionGlobalId"],
|
|
1150
|
+
displayName: value["displayName"],
|
|
1151
|
+
groupIDsToAdd: value["groupIDsToAdd"],
|
|
1152
|
+
groupIDsToRemove: value["groupIDsToRemove"]
|
|
1153
|
+
};
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
// ../identity-sdk/generated/src/models/UpdateUserCommand.ts
|
|
1157
|
+
function UpdateUserCommandToJSON(json) {
|
|
1158
|
+
return UpdateUserCommandToJSONTyped(json, false);
|
|
1159
|
+
}
|
|
1160
|
+
function UpdateUserCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1161
|
+
if (value == null) {
|
|
1162
|
+
return value;
|
|
1163
|
+
}
|
|
1164
|
+
return {
|
|
1165
|
+
name: value["name"],
|
|
1166
|
+
surname: value["surname"],
|
|
1167
|
+
displayName: value["displayName"],
|
|
1168
|
+
email: value["email"],
|
|
1169
|
+
isActive: value["isActive"],
|
|
1170
|
+
password: value["password"],
|
|
1171
|
+
groupIDsToAdd: value["groupIDsToAdd"],
|
|
1172
|
+
groupIDsToRemove: value["groupIDsToRemove"],
|
|
1173
|
+
bypassBasicAuthRestriction: value["bypassBasicAuthRestriction"],
|
|
1174
|
+
invitationAccepted: value["invitationAccepted"],
|
|
1175
|
+
extensionUserAttributesToAddOrUpdate: value["extensionUserAttributesToAddOrUpdate"],
|
|
1176
|
+
extensionUserAttributesToRemove: value["extensionUserAttributesToRemove"]
|
|
1177
|
+
};
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
// ../identity-sdk/generated/src/models/UserAccessTokenDto.ts
|
|
1181
|
+
function UserAccessTokenDtoFromJSON(json) {
|
|
1182
|
+
return UserAccessTokenDtoFromJSONTyped(json, false);
|
|
1183
|
+
}
|
|
1184
|
+
function UserAccessTokenDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1185
|
+
if (json == null) {
|
|
1186
|
+
return json;
|
|
1187
|
+
}
|
|
1188
|
+
return {
|
|
1189
|
+
userAccessToken: json["userAccessToken"] == null ? undefined : json["userAccessToken"],
|
|
1190
|
+
expiresInSeconds: json["expiresInSeconds"] == null ? undefined : json["expiresInSeconds"]
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
// ../identity-sdk/generated/src/models/UserDtoPagedResultDto.ts
|
|
1195
|
+
function UserDtoPagedResultDtoFromJSON(json) {
|
|
1196
|
+
return UserDtoPagedResultDtoFromJSONTyped(json, false);
|
|
1197
|
+
}
|
|
1198
|
+
function UserDtoPagedResultDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
1199
|
+
if (json == null) {
|
|
1200
|
+
return json;
|
|
1201
|
+
}
|
|
1202
|
+
return {
|
|
1203
|
+
totalCount: json["totalCount"] == null ? undefined : json["totalCount"],
|
|
1204
|
+
results: json["results"] == null ? undefined : json["results"].map(UserDtoFromJSON)
|
|
1205
|
+
};
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
// ../identity-sdk/generated/src/models/VerifySmtpSettingsCommand.ts
|
|
1209
|
+
function VerifySmtpSettingsCommandToJSON(json) {
|
|
1210
|
+
return VerifySmtpSettingsCommandToJSONTyped(json, false);
|
|
1211
|
+
}
|
|
1212
|
+
function VerifySmtpSettingsCommandToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1213
|
+
if (value == null) {
|
|
1214
|
+
return value;
|
|
1215
|
+
}
|
|
1216
|
+
return {
|
|
1217
|
+
recipient: value["recipient"],
|
|
1218
|
+
smtpSettings: SmtpClientConfigurationToJSON(value["smtpSettings"])
|
|
1219
|
+
};
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
// ../identity-sdk/generated/src/apis/ExternalApiResourceApi.ts
|
|
1223
|
+
class ExternalApiResourceApi extends BaseAPI {
|
|
1224
|
+
async externalApiResourceGetRaw(initOverrides) {
|
|
1225
|
+
const queryParameters = {};
|
|
1226
|
+
const headerParameters = {};
|
|
1227
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1228
|
+
const token = this.configuration.accessToken;
|
|
1229
|
+
const tokenString = await token("Bearer", []);
|
|
1230
|
+
if (tokenString) {
|
|
1231
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
let urlPath = `/api/ExternalApiResource`;
|
|
1235
|
+
const response = await this.request({
|
|
1236
|
+
path: urlPath,
|
|
1237
|
+
method: "GET",
|
|
1238
|
+
headers: headerParameters,
|
|
1239
|
+
query: queryParameters
|
|
1240
|
+
}, initOverrides);
|
|
1241
|
+
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(ExternalResourceDtoFromJSON));
|
|
1242
|
+
}
|
|
1243
|
+
async externalApiResourceGet(initOverrides) {
|
|
1244
|
+
const response = await this.externalApiResourceGetRaw(initOverrides);
|
|
1245
|
+
return await response.value();
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
// ../identity-sdk/generated/src/apis/ExternalClientApi.ts
|
|
1250
|
+
class ExternalClientApi extends BaseAPI {
|
|
1251
|
+
async externalClientCreateRaw(requestParameters, initOverrides) {
|
|
1252
|
+
const queryParameters = {};
|
|
1253
|
+
const headerParameters = {};
|
|
1254
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1255
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1256
|
+
const token = this.configuration.accessToken;
|
|
1257
|
+
const tokenString = await token("Bearer", []);
|
|
1258
|
+
if (tokenString) {
|
|
1259
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
let urlPath = `/api/ExternalClient`;
|
|
1263
|
+
const response = await this.request({
|
|
1264
|
+
path: urlPath,
|
|
1265
|
+
method: "POST",
|
|
1266
|
+
headers: headerParameters,
|
|
1267
|
+
query: queryParameters,
|
|
1268
|
+
body: CreateExternalClientCommandToJSON(requestParameters["createExternalClientCommand"])
|
|
1269
|
+
}, initOverrides);
|
|
1270
|
+
return new JSONApiResponse(response, (jsonValue) => ExternalClientDtoFromJSON(jsonValue));
|
|
1271
|
+
}
|
|
1272
|
+
async externalClientCreate(requestParameters = {}, initOverrides) {
|
|
1273
|
+
const response = await this.externalClientCreateRaw(requestParameters, initOverrides);
|
|
1274
|
+
return await response.value();
|
|
1275
|
+
}
|
|
1276
|
+
async externalClientCreateFederatedCredentialRaw(requestParameters, initOverrides) {
|
|
1277
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
1278
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling externalClientCreateFederatedCredential().');
|
|
1279
|
+
}
|
|
1280
|
+
if (requestParameters["clientId"] == null) {
|
|
1281
|
+
throw new RequiredError("clientId", 'Required parameter "clientId" was null or undefined when calling externalClientCreateFederatedCredential().');
|
|
1282
|
+
}
|
|
1283
|
+
const queryParameters = {};
|
|
1284
|
+
const headerParameters = {};
|
|
1285
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1286
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1287
|
+
const token = this.configuration.accessToken;
|
|
1288
|
+
const tokenString = await token("Bearer", []);
|
|
1289
|
+
if (tokenString) {
|
|
1290
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
let urlPath = `/api/ExternalClient/{partitionGlobalId}/{clientId}/FederatedCredentials`;
|
|
1294
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
1295
|
+
urlPath = urlPath.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters["clientId"])));
|
|
1296
|
+
const response = await this.request({
|
|
1297
|
+
path: urlPath,
|
|
1298
|
+
method: "POST",
|
|
1299
|
+
headers: headerParameters,
|
|
1300
|
+
query: queryParameters,
|
|
1301
|
+
body: CreateFederatedCredentialCommandToJSON(requestParameters["createFederatedCredentialCommand"])
|
|
1302
|
+
}, initOverrides);
|
|
1303
|
+
return new JSONApiResponse(response, (jsonValue) => FederatedCredentialDtoFromJSON(jsonValue));
|
|
1304
|
+
}
|
|
1305
|
+
async externalClientCreateFederatedCredential(requestParameters, initOverrides) {
|
|
1306
|
+
const response = await this.externalClientCreateFederatedCredentialRaw(requestParameters, initOverrides);
|
|
1307
|
+
return await response.value();
|
|
1308
|
+
}
|
|
1309
|
+
async externalClientDeleteRaw(requestParameters, initOverrides) {
|
|
1310
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
1311
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling externalClientDelete().');
|
|
1312
|
+
}
|
|
1313
|
+
if (requestParameters["clientId"] == null) {
|
|
1314
|
+
throw new RequiredError("clientId", 'Required parameter "clientId" was null or undefined when calling externalClientDelete().');
|
|
1315
|
+
}
|
|
1316
|
+
const queryParameters = {};
|
|
1317
|
+
const headerParameters = {};
|
|
1318
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1319
|
+
const token = this.configuration.accessToken;
|
|
1320
|
+
const tokenString = await token("Bearer", []);
|
|
1321
|
+
if (tokenString) {
|
|
1322
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
let urlPath = `/api/ExternalClient/{partitionGlobalId}/{clientId}`;
|
|
1326
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
1327
|
+
urlPath = urlPath.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters["clientId"])));
|
|
1328
|
+
const response = await this.request({
|
|
1329
|
+
path: urlPath,
|
|
1330
|
+
method: "DELETE",
|
|
1331
|
+
headers: headerParameters,
|
|
1332
|
+
query: queryParameters
|
|
1333
|
+
}, initOverrides);
|
|
1334
|
+
return new VoidApiResponse(response);
|
|
1335
|
+
}
|
|
1336
|
+
async externalClientDelete(requestParameters, initOverrides) {
|
|
1337
|
+
await this.externalClientDeleteRaw(requestParameters, initOverrides);
|
|
1338
|
+
}
|
|
1339
|
+
async externalClientDeleteFederatedCredentialRaw(requestParameters, initOverrides) {
|
|
1340
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
1341
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling externalClientDeleteFederatedCredential().');
|
|
1342
|
+
}
|
|
1343
|
+
if (requestParameters["clientId"] == null) {
|
|
1344
|
+
throw new RequiredError("clientId", 'Required parameter "clientId" was null or undefined when calling externalClientDeleteFederatedCredential().');
|
|
1345
|
+
}
|
|
1346
|
+
if (requestParameters["credentialId"] == null) {
|
|
1347
|
+
throw new RequiredError("credentialId", 'Required parameter "credentialId" was null or undefined when calling externalClientDeleteFederatedCredential().');
|
|
1348
|
+
}
|
|
1349
|
+
const queryParameters = {};
|
|
1350
|
+
const headerParameters = {};
|
|
1351
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1352
|
+
const token = this.configuration.accessToken;
|
|
1353
|
+
const tokenString = await token("Bearer", []);
|
|
1354
|
+
if (tokenString) {
|
|
1355
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
let urlPath = `/api/ExternalClient/{partitionGlobalId}/{clientId}/FederatedCredentials/{credentialId}`;
|
|
1359
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
1360
|
+
urlPath = urlPath.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters["clientId"])));
|
|
1361
|
+
urlPath = urlPath.replace(`{${"credentialId"}}`, encodeURIComponent(String(requestParameters["credentialId"])));
|
|
1362
|
+
const response = await this.request({
|
|
1363
|
+
path: urlPath,
|
|
1364
|
+
method: "DELETE",
|
|
1365
|
+
headers: headerParameters,
|
|
1366
|
+
query: queryParameters
|
|
1367
|
+
}, initOverrides);
|
|
1368
|
+
return new VoidApiResponse(response);
|
|
1369
|
+
}
|
|
1370
|
+
async externalClientDeleteFederatedCredential(requestParameters, initOverrides) {
|
|
1371
|
+
await this.externalClientDeleteFederatedCredentialRaw(requestParameters, initOverrides);
|
|
1372
|
+
}
|
|
1373
|
+
async externalClientDeleteSecretRaw(requestParameters, initOverrides) {
|
|
1374
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
1375
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling externalClientDeleteSecret().');
|
|
1376
|
+
}
|
|
1377
|
+
if (requestParameters["secretId"] == null) {
|
|
1378
|
+
throw new RequiredError("secretId", 'Required parameter "secretId" was null or undefined when calling externalClientDeleteSecret().');
|
|
1379
|
+
}
|
|
1380
|
+
const queryParameters = {};
|
|
1381
|
+
const headerParameters = {};
|
|
1382
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1383
|
+
const token = this.configuration.accessToken;
|
|
1384
|
+
const tokenString = await token("Bearer", []);
|
|
1385
|
+
if (tokenString) {
|
|
1386
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
let urlPath = `/api/ExternalClient/{partitionGlobalId}/secrets/{secretId}`;
|
|
1390
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
1391
|
+
urlPath = urlPath.replace(`{${"secretId"}}`, encodeURIComponent(String(requestParameters["secretId"])));
|
|
1392
|
+
const response = await this.request({
|
|
1393
|
+
path: urlPath,
|
|
1394
|
+
method: "DELETE",
|
|
1395
|
+
headers: headerParameters,
|
|
1396
|
+
query: queryParameters
|
|
1397
|
+
}, initOverrides);
|
|
1398
|
+
return new VoidApiResponse(response);
|
|
1399
|
+
}
|
|
1400
|
+
async externalClientDeleteSecret(requestParameters, initOverrides) {
|
|
1401
|
+
await this.externalClientDeleteSecretRaw(requestParameters, initOverrides);
|
|
1402
|
+
}
|
|
1403
|
+
async externalClientGenerateSecretRaw(requestParameters, initOverrides) {
|
|
1404
|
+
const queryParameters = {};
|
|
1405
|
+
const headerParameters = {};
|
|
1406
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1407
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1408
|
+
const token = this.configuration.accessToken;
|
|
1409
|
+
const tokenString = await token("Bearer", []);
|
|
1410
|
+
if (tokenString) {
|
|
1411
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
let urlPath = `/api/ExternalClient/GenerateSecret`;
|
|
1415
|
+
const response = await this.request({
|
|
1416
|
+
path: urlPath,
|
|
1417
|
+
method: "POST",
|
|
1418
|
+
headers: headerParameters,
|
|
1419
|
+
query: queryParameters,
|
|
1420
|
+
body: CreateClientSecretCommandToJSON(requestParameters["createClientSecretCommand"])
|
|
1421
|
+
}, initOverrides);
|
|
1422
|
+
return new JSONApiResponse(response, (jsonValue) => SecretDtoFromJSON(jsonValue));
|
|
1423
|
+
}
|
|
1424
|
+
async externalClientGenerateSecret(requestParameters = {}, initOverrides) {
|
|
1425
|
+
const response = await this.externalClientGenerateSecretRaw(requestParameters, initOverrides);
|
|
1426
|
+
return await response.value();
|
|
1427
|
+
}
|
|
1428
|
+
async externalClientGenerateSecretForClientIdRaw(requestParameters, initOverrides) {
|
|
1429
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
1430
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling externalClientGenerateSecretForClientId().');
|
|
1431
|
+
}
|
|
1432
|
+
if (requestParameters["clientId"] == null) {
|
|
1433
|
+
throw new RequiredError("clientId", 'Required parameter "clientId" was null or undefined when calling externalClientGenerateSecretForClientId().');
|
|
1434
|
+
}
|
|
1435
|
+
const queryParameters = {};
|
|
1436
|
+
const headerParameters = {};
|
|
1437
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1438
|
+
const token = this.configuration.accessToken;
|
|
1439
|
+
const tokenString = await token("Bearer", []);
|
|
1440
|
+
if (tokenString) {
|
|
1441
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
let urlPath = `/api/ExternalClient/{partitionGlobalId}/{clientId}/GenerateSecret`;
|
|
1445
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
1446
|
+
urlPath = urlPath.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters["clientId"])));
|
|
1447
|
+
const response = await this.request({
|
|
1448
|
+
path: urlPath,
|
|
1449
|
+
method: "GET",
|
|
1450
|
+
headers: headerParameters,
|
|
1451
|
+
query: queryParameters
|
|
1452
|
+
}, initOverrides);
|
|
1453
|
+
if (this.isJsonMime(response.headers.get("content-type"))) {
|
|
1454
|
+
return new JSONApiResponse(response);
|
|
1455
|
+
} else {
|
|
1456
|
+
return new TextApiResponse(response);
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
async externalClientGenerateSecretForClientId(requestParameters, initOverrides) {
|
|
1460
|
+
const response = await this.externalClientGenerateSecretForClientIdRaw(requestParameters, initOverrides);
|
|
1461
|
+
return await response.value();
|
|
1462
|
+
}
|
|
1463
|
+
async externalClientGetRaw(requestParameters, initOverrides) {
|
|
1464
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
1465
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling externalClientGet().');
|
|
1466
|
+
}
|
|
1467
|
+
const queryParameters = {};
|
|
1468
|
+
const headerParameters = {};
|
|
1469
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1470
|
+
const token = this.configuration.accessToken;
|
|
1471
|
+
const tokenString = await token("Bearer", []);
|
|
1472
|
+
if (tokenString) {
|
|
1473
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
let urlPath = `/api/ExternalClient/{partitionGlobalId}`;
|
|
1477
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
1478
|
+
const response = await this.request({
|
|
1479
|
+
path: urlPath,
|
|
1480
|
+
method: "GET",
|
|
1481
|
+
headers: headerParameters,
|
|
1482
|
+
query: queryParameters
|
|
1483
|
+
}, initOverrides);
|
|
1484
|
+
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(ExternalClientDtoFromJSON));
|
|
1485
|
+
}
|
|
1486
|
+
async externalClientGet(requestParameters, initOverrides) {
|
|
1487
|
+
const response = await this.externalClientGetRaw(requestParameters, initOverrides);
|
|
1488
|
+
return await response.value();
|
|
1489
|
+
}
|
|
1490
|
+
async externalClientGetFederatedCredentialByIdByCredentialIdRaw(requestParameters, initOverrides) {
|
|
1491
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
1492
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling externalClientGetFederatedCredentialByIdByCredentialId().');
|
|
1493
|
+
}
|
|
1494
|
+
if (requestParameters["clientId"] == null) {
|
|
1495
|
+
throw new RequiredError("clientId", 'Required parameter "clientId" was null or undefined when calling externalClientGetFederatedCredentialByIdByCredentialId().');
|
|
1496
|
+
}
|
|
1497
|
+
if (requestParameters["credentialId"] == null) {
|
|
1498
|
+
throw new RequiredError("credentialId", 'Required parameter "credentialId" was null or undefined when calling externalClientGetFederatedCredentialByIdByCredentialId().');
|
|
1499
|
+
}
|
|
1500
|
+
const queryParameters = {};
|
|
1501
|
+
const headerParameters = {};
|
|
1502
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1503
|
+
const token = this.configuration.accessToken;
|
|
1504
|
+
const tokenString = await token("Bearer", []);
|
|
1505
|
+
if (tokenString) {
|
|
1506
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
let urlPath = `/api/ExternalClient/{partitionGlobalId}/{clientId}/FederatedCredentials/{credentialId}`;
|
|
1510
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
1511
|
+
urlPath = urlPath.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters["clientId"])));
|
|
1512
|
+
urlPath = urlPath.replace(`{${"credentialId"}}`, encodeURIComponent(String(requestParameters["credentialId"])));
|
|
1513
|
+
const response = await this.request({
|
|
1514
|
+
path: urlPath,
|
|
1515
|
+
method: "GET",
|
|
1516
|
+
headers: headerParameters,
|
|
1517
|
+
query: queryParameters
|
|
1518
|
+
}, initOverrides);
|
|
1519
|
+
return new JSONApiResponse(response, (jsonValue) => FederatedCredentialDtoFromJSON(jsonValue));
|
|
1520
|
+
}
|
|
1521
|
+
async externalClientGetFederatedCredentialByIdByCredentialId(requestParameters, initOverrides) {
|
|
1522
|
+
const response = await this.externalClientGetFederatedCredentialByIdByCredentialIdRaw(requestParameters, initOverrides);
|
|
1523
|
+
return await response.value();
|
|
1524
|
+
}
|
|
1525
|
+
async externalClientGetFederatedCredentialsRaw(requestParameters, initOverrides) {
|
|
1526
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
1527
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling externalClientGetFederatedCredentials().');
|
|
1528
|
+
}
|
|
1529
|
+
if (requestParameters["clientId"] == null) {
|
|
1530
|
+
throw new RequiredError("clientId", 'Required parameter "clientId" was null or undefined when calling externalClientGetFederatedCredentials().');
|
|
1531
|
+
}
|
|
1532
|
+
const queryParameters = {};
|
|
1533
|
+
const headerParameters = {};
|
|
1534
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1535
|
+
const token = this.configuration.accessToken;
|
|
1536
|
+
const tokenString = await token("Bearer", []);
|
|
1537
|
+
if (tokenString) {
|
|
1538
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
let urlPath = `/api/ExternalClient/{partitionGlobalId}/{clientId}/FederatedCredentials`;
|
|
1542
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
1543
|
+
urlPath = urlPath.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters["clientId"])));
|
|
1544
|
+
const response = await this.request({
|
|
1545
|
+
path: urlPath,
|
|
1546
|
+
method: "GET",
|
|
1547
|
+
headers: headerParameters,
|
|
1548
|
+
query: queryParameters
|
|
1549
|
+
}, initOverrides);
|
|
1550
|
+
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(FederatedCredentialDtoFromJSON));
|
|
1551
|
+
}
|
|
1552
|
+
async externalClientGetFederatedCredentials(requestParameters, initOverrides) {
|
|
1553
|
+
const response = await this.externalClientGetFederatedCredentialsRaw(requestParameters, initOverrides);
|
|
1554
|
+
return await response.value();
|
|
1555
|
+
}
|
|
1556
|
+
async externalClientGetWithClientIdRaw(requestParameters, initOverrides) {
|
|
1557
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
1558
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling externalClientGetWithClientId().');
|
|
1559
|
+
}
|
|
1560
|
+
if (requestParameters["clientId"] == null) {
|
|
1561
|
+
throw new RequiredError("clientId", 'Required parameter "clientId" was null or undefined when calling externalClientGetWithClientId().');
|
|
1562
|
+
}
|
|
1563
|
+
const queryParameters = {};
|
|
1564
|
+
const headerParameters = {};
|
|
1565
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1566
|
+
const token = this.configuration.accessToken;
|
|
1567
|
+
const tokenString = await token("Bearer", []);
|
|
1568
|
+
if (tokenString) {
|
|
1569
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
let urlPath = `/api/ExternalClient/{partitionGlobalId}/{clientId}`;
|
|
1573
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
1574
|
+
urlPath = urlPath.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters["clientId"])));
|
|
1575
|
+
const response = await this.request({
|
|
1576
|
+
path: urlPath,
|
|
1577
|
+
method: "GET",
|
|
1578
|
+
headers: headerParameters,
|
|
1579
|
+
query: queryParameters
|
|
1580
|
+
}, initOverrides);
|
|
1581
|
+
return new JSONApiResponse(response, (jsonValue) => ExternalClientDtoFromJSON(jsonValue));
|
|
1582
|
+
}
|
|
1583
|
+
async externalClientGetWithClientId(requestParameters, initOverrides) {
|
|
1584
|
+
const response = await this.externalClientGetWithClientIdRaw(requestParameters, initOverrides);
|
|
1585
|
+
return await response.value();
|
|
1586
|
+
}
|
|
1587
|
+
async externalClientUpdateRaw(requestParameters, initOverrides) {
|
|
1588
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
1589
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling externalClientUpdate().');
|
|
1590
|
+
}
|
|
1591
|
+
if (requestParameters["clientId"] == null) {
|
|
1592
|
+
throw new RequiredError("clientId", 'Required parameter "clientId" was null or undefined when calling externalClientUpdate().');
|
|
1593
|
+
}
|
|
1594
|
+
const queryParameters = {};
|
|
1595
|
+
const headerParameters = {};
|
|
1596
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1597
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1598
|
+
const token = this.configuration.accessToken;
|
|
1599
|
+
const tokenString = await token("Bearer", []);
|
|
1600
|
+
if (tokenString) {
|
|
1601
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
let urlPath = `/api/ExternalClient/{partitionGlobalId}/{clientId}`;
|
|
1605
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
1606
|
+
urlPath = urlPath.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters["clientId"])));
|
|
1607
|
+
const response = await this.request({
|
|
1608
|
+
path: urlPath,
|
|
1609
|
+
method: "PUT",
|
|
1610
|
+
headers: headerParameters,
|
|
1611
|
+
query: queryParameters,
|
|
1612
|
+
body: UpdateExternalClientCommandToJSON(requestParameters["updateExternalClientCommand"])
|
|
1613
|
+
}, initOverrides);
|
|
1614
|
+
return new VoidApiResponse(response);
|
|
1615
|
+
}
|
|
1616
|
+
async externalClientUpdate(requestParameters, initOverrides) {
|
|
1617
|
+
await this.externalClientUpdateRaw(requestParameters, initOverrides);
|
|
1618
|
+
}
|
|
1619
|
+
async externalClientUpdateFederatedCredentialRaw(requestParameters, initOverrides) {
|
|
1620
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
1621
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling externalClientUpdateFederatedCredential().');
|
|
1622
|
+
}
|
|
1623
|
+
if (requestParameters["clientId"] == null) {
|
|
1624
|
+
throw new RequiredError("clientId", 'Required parameter "clientId" was null or undefined when calling externalClientUpdateFederatedCredential().');
|
|
1625
|
+
}
|
|
1626
|
+
if (requestParameters["credentialId"] == null) {
|
|
1627
|
+
throw new RequiredError("credentialId", 'Required parameter "credentialId" was null or undefined when calling externalClientUpdateFederatedCredential().');
|
|
1628
|
+
}
|
|
1629
|
+
const queryParameters = {};
|
|
1630
|
+
const headerParameters = {};
|
|
1631
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1632
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1633
|
+
const token = this.configuration.accessToken;
|
|
1634
|
+
const tokenString = await token("Bearer", []);
|
|
1635
|
+
if (tokenString) {
|
|
1636
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
let urlPath = `/api/ExternalClient/{partitionGlobalId}/{clientId}/FederatedCredentials/{credentialId}`;
|
|
1640
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
1641
|
+
urlPath = urlPath.replace(`{${"clientId"}}`, encodeURIComponent(String(requestParameters["clientId"])));
|
|
1642
|
+
urlPath = urlPath.replace(`{${"credentialId"}}`, encodeURIComponent(String(requestParameters["credentialId"])));
|
|
1643
|
+
const response = await this.request({
|
|
1644
|
+
path: urlPath,
|
|
1645
|
+
method: "PUT",
|
|
1646
|
+
headers: headerParameters,
|
|
1647
|
+
query: queryParameters,
|
|
1648
|
+
body: UpdateFederatedCredentialCommandToJSON(requestParameters["updateFederatedCredentialCommand"])
|
|
1649
|
+
}, initOverrides);
|
|
1650
|
+
return new JSONApiResponse(response, (jsonValue) => FederatedCredentialDtoFromJSON(jsonValue));
|
|
1651
|
+
}
|
|
1652
|
+
async externalClientUpdateFederatedCredential(requestParameters, initOverrides) {
|
|
1653
|
+
const response = await this.externalClientUpdateFederatedCredentialRaw(requestParameters, initOverrides);
|
|
1654
|
+
return await response.value();
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1658
|
+
// ../identity-sdk/generated/src/apis/GroupApi.ts
|
|
1659
|
+
class GroupApi extends BaseAPI {
|
|
1660
|
+
async groupBulkDeleteRaw(requestParameters, initOverrides) {
|
|
1661
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
1662
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling groupBulkDelete().');
|
|
1663
|
+
}
|
|
1664
|
+
const queryParameters = {};
|
|
1665
|
+
const headerParameters = {};
|
|
1666
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1667
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1668
|
+
const token = this.configuration.accessToken;
|
|
1669
|
+
const tokenString = await token("Bearer", []);
|
|
1670
|
+
if (tokenString) {
|
|
1671
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1672
|
+
}
|
|
1673
|
+
}
|
|
1674
|
+
let urlPath = `/api/Group/{partitionGlobalId}`;
|
|
1675
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
1676
|
+
const response = await this.request({
|
|
1677
|
+
path: urlPath,
|
|
1678
|
+
method: "DELETE",
|
|
1679
|
+
headers: headerParameters,
|
|
1680
|
+
query: queryParameters,
|
|
1681
|
+
body: BulkGroupDeleteCommandToJSON(requestParameters["bulkGroupDeleteCommand"])
|
|
1682
|
+
}, initOverrides);
|
|
1683
|
+
return new VoidApiResponse(response);
|
|
1684
|
+
}
|
|
1685
|
+
async groupBulkDelete(requestParameters, initOverrides) {
|
|
1686
|
+
await this.groupBulkDeleteRaw(requestParameters, initOverrides);
|
|
1687
|
+
}
|
|
1688
|
+
async groupBulkLoadByIdsRaw(requestParameters, initOverrides) {
|
|
1689
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
1690
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling groupBulkLoadByIds().');
|
|
1691
|
+
}
|
|
1692
|
+
const queryParameters = {};
|
|
1693
|
+
const headerParameters = {};
|
|
1694
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1695
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1696
|
+
const token = this.configuration.accessToken;
|
|
1697
|
+
const tokenString = await token("Bearer", []);
|
|
1698
|
+
if (tokenString) {
|
|
1699
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
let urlPath = `/api/Group/BulkLoadByIds/{partitionGlobalId}`;
|
|
1703
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
1704
|
+
const response = await this.request({
|
|
1705
|
+
path: urlPath,
|
|
1706
|
+
method: "POST",
|
|
1707
|
+
headers: headerParameters,
|
|
1708
|
+
query: queryParameters,
|
|
1709
|
+
body: requestParameters["requestBody"]
|
|
1710
|
+
}, initOverrides);
|
|
1711
|
+
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(GroupDtoFromJSON));
|
|
1712
|
+
}
|
|
1713
|
+
async groupBulkLoadByIds(requestParameters, initOverrides) {
|
|
1714
|
+
const response = await this.groupBulkLoadByIdsRaw(requestParameters, initOverrides);
|
|
1715
|
+
return await response.value();
|
|
1716
|
+
}
|
|
1717
|
+
async groupCheckMembersRaw(requestParameters, initOverrides) {
|
|
1718
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
1719
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling groupCheckMembers().');
|
|
1720
|
+
}
|
|
1721
|
+
if (requestParameters["groupId"] == null) {
|
|
1722
|
+
throw new RequiredError("groupId", 'Required parameter "groupId" was null or undefined when calling groupCheckMembers().');
|
|
1723
|
+
}
|
|
1724
|
+
const queryParameters = {};
|
|
1725
|
+
const headerParameters = {};
|
|
1726
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1727
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1728
|
+
const token = this.configuration.accessToken;
|
|
1729
|
+
const tokenString = await token("Bearer", []);
|
|
1730
|
+
if (tokenString) {
|
|
1731
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
let urlPath = `/api/Group/{partitionGlobalId}/{groupId}/CheckMembers`;
|
|
1735
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
1736
|
+
urlPath = urlPath.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters["groupId"])));
|
|
1737
|
+
const response = await this.request({
|
|
1738
|
+
path: urlPath,
|
|
1739
|
+
method: "POST",
|
|
1740
|
+
headers: headerParameters,
|
|
1741
|
+
query: queryParameters,
|
|
1742
|
+
body: requestParameters["requestBody"]
|
|
1743
|
+
}, initOverrides);
|
|
1744
|
+
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(DirectoryResolve200ResponseFromJSON));
|
|
1745
|
+
}
|
|
1746
|
+
async groupCheckMembers(requestParameters, initOverrides) {
|
|
1747
|
+
const response = await this.groupCheckMembersRaw(requestParameters, initOverrides);
|
|
1748
|
+
return await response.value();
|
|
1749
|
+
}
|
|
1750
|
+
async groupCreateGroupRaw(requestParameters, initOverrides) {
|
|
1751
|
+
const queryParameters = {};
|
|
1752
|
+
const headerParameters = {};
|
|
1753
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1754
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1755
|
+
const token = this.configuration.accessToken;
|
|
1756
|
+
const tokenString = await token("Bearer", []);
|
|
1757
|
+
if (tokenString) {
|
|
1758
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1759
|
+
}
|
|
1760
|
+
}
|
|
1761
|
+
let urlPath = `/api/Group`;
|
|
1762
|
+
const response = await this.request({
|
|
1763
|
+
path: urlPath,
|
|
1764
|
+
method: "POST",
|
|
1765
|
+
headers: headerParameters,
|
|
1766
|
+
query: queryParameters,
|
|
1767
|
+
body: CreateGroupCommandToJSON(requestParameters["createGroupCommand"])
|
|
1768
|
+
}, initOverrides);
|
|
1769
|
+
return new JSONApiResponse(response, (jsonValue) => GroupDtoFromJSON(jsonValue));
|
|
1770
|
+
}
|
|
1771
|
+
async groupCreateGroup(requestParameters = {}, initOverrides) {
|
|
1772
|
+
const response = await this.groupCreateGroupRaw(requestParameters, initOverrides);
|
|
1773
|
+
return await response.value();
|
|
1774
|
+
}
|
|
1775
|
+
async groupDeleteRaw(requestParameters, initOverrides) {
|
|
1776
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
1777
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling groupDelete().');
|
|
1778
|
+
}
|
|
1779
|
+
if (requestParameters["groupId"] == null) {
|
|
1780
|
+
throw new RequiredError("groupId", 'Required parameter "groupId" was null or undefined when calling groupDelete().');
|
|
1781
|
+
}
|
|
1782
|
+
const queryParameters = {};
|
|
1783
|
+
const headerParameters = {};
|
|
1784
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1785
|
+
const token = this.configuration.accessToken;
|
|
1786
|
+
const tokenString = await token("Bearer", []);
|
|
1787
|
+
if (tokenString) {
|
|
1788
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
let urlPath = `/api/Group/{partitionGlobalId}/{groupId}`;
|
|
1792
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
1793
|
+
urlPath = urlPath.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters["groupId"])));
|
|
1794
|
+
const response = await this.request({
|
|
1795
|
+
path: urlPath,
|
|
1796
|
+
method: "DELETE",
|
|
1797
|
+
headers: headerParameters,
|
|
1798
|
+
query: queryParameters
|
|
1799
|
+
}, initOverrides);
|
|
1800
|
+
return new VoidApiResponse(response);
|
|
1801
|
+
}
|
|
1802
|
+
async groupDelete(requestParameters, initOverrides) {
|
|
1803
|
+
await this.groupDeleteRaw(requestParameters, initOverrides);
|
|
1804
|
+
}
|
|
1805
|
+
async groupGetGroupRaw(requestParameters, initOverrides) {
|
|
1806
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
1807
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling groupGetGroup().');
|
|
1808
|
+
}
|
|
1809
|
+
if (requestParameters["groupId"] == null) {
|
|
1810
|
+
throw new RequiredError("groupId", 'Required parameter "groupId" was null or undefined when calling groupGetGroup().');
|
|
1811
|
+
}
|
|
1812
|
+
const queryParameters = {};
|
|
1813
|
+
const headerParameters = {};
|
|
1814
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1815
|
+
const token = this.configuration.accessToken;
|
|
1816
|
+
const tokenString = await token("Bearer", []);
|
|
1817
|
+
if (tokenString) {
|
|
1818
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
let urlPath = `/api/Group/{partitionGlobalId}/{groupId}`;
|
|
1822
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
1823
|
+
urlPath = urlPath.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters["groupId"])));
|
|
1824
|
+
const response = await this.request({
|
|
1825
|
+
path: urlPath,
|
|
1826
|
+
method: "GET",
|
|
1827
|
+
headers: headerParameters,
|
|
1828
|
+
query: queryParameters
|
|
1829
|
+
}, initOverrides);
|
|
1830
|
+
return new JSONApiResponse(response, (jsonValue) => GroupDtoFromJSON(jsonValue));
|
|
1831
|
+
}
|
|
1832
|
+
async groupGetGroup(requestParameters, initOverrides) {
|
|
1833
|
+
const response = await this.groupGetGroupRaw(requestParameters, initOverrides);
|
|
1834
|
+
return await response.value();
|
|
1835
|
+
}
|
|
1836
|
+
async groupGetGroupMembersRaw(requestParameters, initOverrides) {
|
|
1837
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
1838
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling groupGetGroupMembers().');
|
|
1839
|
+
}
|
|
1840
|
+
if (requestParameters["groupId"] == null) {
|
|
1841
|
+
throw new RequiredError("groupId", 'Required parameter "groupId" was null or undefined when calling groupGetGroupMembers().');
|
|
1842
|
+
}
|
|
1843
|
+
const queryParameters = {};
|
|
1844
|
+
if (requestParameters["top"] != null) {
|
|
1845
|
+
queryParameters["top"] = requestParameters["top"];
|
|
1846
|
+
}
|
|
1847
|
+
if (requestParameters["skip"] != null) {
|
|
1848
|
+
queryParameters["skip"] = requestParameters["skip"];
|
|
1849
|
+
}
|
|
1850
|
+
const headerParameters = {};
|
|
1851
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1852
|
+
const token = this.configuration.accessToken;
|
|
1853
|
+
const tokenString = await token("Bearer", []);
|
|
1854
|
+
if (tokenString) {
|
|
1855
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1856
|
+
}
|
|
1857
|
+
}
|
|
1858
|
+
let urlPath = `/api/Group/{partitionGlobalId}/{groupId}/Members`;
|
|
1859
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
1860
|
+
urlPath = urlPath.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters["groupId"])));
|
|
1861
|
+
const response = await this.request({
|
|
1862
|
+
path: urlPath,
|
|
1863
|
+
method: "GET",
|
|
1864
|
+
headers: headerParameters,
|
|
1865
|
+
query: queryParameters
|
|
1866
|
+
}, initOverrides);
|
|
1867
|
+
return new JSONApiResponse(response, (jsonValue) => GroupMemberDtoPagedResultDtoFromJSON(jsonValue));
|
|
1868
|
+
}
|
|
1869
|
+
async groupGetGroupMembers(requestParameters, initOverrides) {
|
|
1870
|
+
const response = await this.groupGetGroupMembersRaw(requestParameters, initOverrides);
|
|
1871
|
+
return await response.value();
|
|
1872
|
+
}
|
|
1873
|
+
async groupGetGroupsRaw(requestParameters, initOverrides) {
|
|
1874
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
1875
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling groupGetGroups().');
|
|
1876
|
+
}
|
|
1877
|
+
const queryParameters = {};
|
|
1878
|
+
if (requestParameters["scopeFilter"] != null) {
|
|
1879
|
+
queryParameters["scopeFilter"] = requestParameters["scopeFilter"];
|
|
1880
|
+
}
|
|
1881
|
+
if (requestParameters["mappedRoleFilter"] != null) {
|
|
1882
|
+
queryParameters["mappedRoleFilter"] = requestParameters["mappedRoleFilter"];
|
|
1883
|
+
}
|
|
1884
|
+
const headerParameters = {};
|
|
1885
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1886
|
+
const token = this.configuration.accessToken;
|
|
1887
|
+
const tokenString = await token("Bearer", []);
|
|
1888
|
+
if (tokenString) {
|
|
1889
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
let urlPath = `/api/Group/{partitionGlobalId}`;
|
|
1893
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
1894
|
+
const response = await this.request({
|
|
1895
|
+
path: urlPath,
|
|
1896
|
+
method: "GET",
|
|
1897
|
+
headers: headerParameters,
|
|
1898
|
+
query: queryParameters
|
|
1899
|
+
}, initOverrides);
|
|
1900
|
+
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(GroupDtoFromJSON));
|
|
1901
|
+
}
|
|
1902
|
+
async groupGetGroups(requestParameters, initOverrides) {
|
|
1903
|
+
const response = await this.groupGetGroupsRaw(requestParameters, initOverrides);
|
|
1904
|
+
return await response.value();
|
|
1905
|
+
}
|
|
1906
|
+
async groupUpdateGroupRaw(requestParameters, initOverrides) {
|
|
1907
|
+
if (requestParameters["groupId"] == null) {
|
|
1908
|
+
throw new RequiredError("groupId", 'Required parameter "groupId" was null or undefined when calling groupUpdateGroup().');
|
|
1909
|
+
}
|
|
1910
|
+
const queryParameters = {};
|
|
1911
|
+
const headerParameters = {};
|
|
1912
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1913
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1914
|
+
const token = this.configuration.accessToken;
|
|
1915
|
+
const tokenString = await token("Bearer", []);
|
|
1916
|
+
if (tokenString) {
|
|
1917
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
let urlPath = `/api/Group/{groupId}`;
|
|
1921
|
+
urlPath = urlPath.replace(`{${"groupId"}}`, encodeURIComponent(String(requestParameters["groupId"])));
|
|
1922
|
+
const response = await this.request({
|
|
1923
|
+
path: urlPath,
|
|
1924
|
+
method: "PUT",
|
|
1925
|
+
headers: headerParameters,
|
|
1926
|
+
query: queryParameters,
|
|
1927
|
+
body: UpdateGroupCommandToJSON(requestParameters["updateGroupCommand"])
|
|
1928
|
+
}, initOverrides);
|
|
1929
|
+
return new JSONApiResponse(response, (jsonValue) => GroupDtoFromJSON(jsonValue));
|
|
1930
|
+
}
|
|
1931
|
+
async groupUpdateGroup(requestParameters, initOverrides) {
|
|
1932
|
+
const response = await this.groupUpdateGroupRaw(requestParameters, initOverrides);
|
|
1933
|
+
return await response.value();
|
|
1934
|
+
}
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
// ../identity-sdk/generated/src/apis/ReferenceTokenApi.ts
|
|
1938
|
+
class ReferenceTokenApi extends BaseAPI {
|
|
1939
|
+
async referenceTokenBulkDeleteTokensRaw(requestParameters, initOverrides) {
|
|
1940
|
+
const queryParameters = {};
|
|
1941
|
+
const headerParameters = {};
|
|
1942
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1943
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1944
|
+
const token = this.configuration.accessToken;
|
|
1945
|
+
const tokenString = await token("Bearer", []);
|
|
1946
|
+
if (tokenString) {
|
|
1947
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
let urlPath = `/api/ReferenceToken`;
|
|
1951
|
+
const response = await this.request({
|
|
1952
|
+
path: urlPath,
|
|
1953
|
+
method: "DELETE",
|
|
1954
|
+
headers: headerParameters,
|
|
1955
|
+
query: queryParameters,
|
|
1956
|
+
body: BulkDeleteReferenceTokensCommandToJSON(requestParameters["bulkDeleteReferenceTokensCommand"])
|
|
1957
|
+
}, initOverrides);
|
|
1958
|
+
return new VoidApiResponse(response);
|
|
1959
|
+
}
|
|
1960
|
+
async referenceTokenBulkDeleteTokens(requestParameters = {}, initOverrides) {
|
|
1961
|
+
await this.referenceTokenBulkDeleteTokensRaw(requestParameters, initOverrides);
|
|
1962
|
+
}
|
|
1963
|
+
async referenceTokenCreateTokenRaw(requestParameters, initOverrides) {
|
|
1964
|
+
const queryParameters = {};
|
|
1965
|
+
const headerParameters = {};
|
|
1966
|
+
headerParameters["Content-Type"] = "application/json";
|
|
1967
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1968
|
+
const token = this.configuration.accessToken;
|
|
1969
|
+
const tokenString = await token("Bearer", []);
|
|
1970
|
+
if (tokenString) {
|
|
1971
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
let urlPath = `/api/ReferenceToken`;
|
|
1975
|
+
const response = await this.request({
|
|
1976
|
+
path: urlPath,
|
|
1977
|
+
method: "POST",
|
|
1978
|
+
headers: headerParameters,
|
|
1979
|
+
query: queryParameters,
|
|
1980
|
+
body: CreateReferenceTokenCommandToJSON(requestParameters["createReferenceTokenCommand"])
|
|
1981
|
+
}, initOverrides);
|
|
1982
|
+
if (this.isJsonMime(response.headers.get("content-type"))) {
|
|
1983
|
+
return new JSONApiResponse(response);
|
|
1984
|
+
} else {
|
|
1985
|
+
return new TextApiResponse(response);
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
async referenceTokenCreateToken(requestParameters = {}, initOverrides) {
|
|
1989
|
+
const response = await this.referenceTokenCreateTokenRaw(requestParameters, initOverrides);
|
|
1990
|
+
return await response.value();
|
|
1991
|
+
}
|
|
1992
|
+
async referenceTokenDeleteTokenRaw(requestParameters, initOverrides) {
|
|
1993
|
+
if (requestParameters["referenceTokenId"] == null) {
|
|
1994
|
+
throw new RequiredError("referenceTokenId", 'Required parameter "referenceTokenId" was null or undefined when calling referenceTokenDeleteToken().');
|
|
1995
|
+
}
|
|
1996
|
+
const queryParameters = {};
|
|
1997
|
+
const headerParameters = {};
|
|
1998
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1999
|
+
const token = this.configuration.accessToken;
|
|
2000
|
+
const tokenString = await token("Bearer", []);
|
|
2001
|
+
if (tokenString) {
|
|
2002
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
let urlPath = `/api/ReferenceToken/{referenceTokenId}`;
|
|
2006
|
+
urlPath = urlPath.replace(`{${"referenceTokenId"}}`, encodeURIComponent(String(requestParameters["referenceTokenId"])));
|
|
2007
|
+
const response = await this.request({
|
|
2008
|
+
path: urlPath,
|
|
2009
|
+
method: "DELETE",
|
|
2010
|
+
headers: headerParameters,
|
|
2011
|
+
query: queryParameters
|
|
2012
|
+
}, initOverrides);
|
|
2013
|
+
return new VoidApiResponse(response);
|
|
2014
|
+
}
|
|
2015
|
+
async referenceTokenDeleteToken(requestParameters, initOverrides) {
|
|
2016
|
+
await this.referenceTokenDeleteTokenRaw(requestParameters, initOverrides);
|
|
2017
|
+
}
|
|
2018
|
+
async referenceTokenDeleteTokenByValueRaw(requestParameters, initOverrides) {
|
|
2019
|
+
const queryParameters = {};
|
|
2020
|
+
const headerParameters = {};
|
|
2021
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2022
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2023
|
+
const token = this.configuration.accessToken;
|
|
2024
|
+
const tokenString = await token("Bearer", []);
|
|
2025
|
+
if (tokenString) {
|
|
2026
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
let urlPath = `/api/ReferenceToken/Revoke`;
|
|
2030
|
+
const response = await this.request({
|
|
2031
|
+
path: urlPath,
|
|
2032
|
+
method: "DELETE",
|
|
2033
|
+
headers: headerParameters,
|
|
2034
|
+
query: queryParameters,
|
|
2035
|
+
body: DeleteReferenceTokenByValueCommandToJSON(requestParameters["deleteReferenceTokenByValueCommand"])
|
|
2036
|
+
}, initOverrides);
|
|
2037
|
+
return new VoidApiResponse(response);
|
|
2038
|
+
}
|
|
2039
|
+
async referenceTokenDeleteTokenByValue(requestParameters = {}, initOverrides) {
|
|
2040
|
+
await this.referenceTokenDeleteTokenByValueRaw(requestParameters, initOverrides);
|
|
2041
|
+
}
|
|
2042
|
+
async referenceTokenExchangeReferenceTokenRaw(requestParameters, initOverrides) {
|
|
2043
|
+
const queryParameters = {};
|
|
2044
|
+
const headerParameters = {};
|
|
2045
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2046
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2047
|
+
const token = this.configuration.accessToken;
|
|
2048
|
+
const tokenString = await token("Bearer", []);
|
|
2049
|
+
if (tokenString) {
|
|
2050
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
let urlPath = `/api/ReferenceToken/Exchange`;
|
|
2054
|
+
const response = await this.request({
|
|
2055
|
+
path: urlPath,
|
|
2056
|
+
method: "POST",
|
|
2057
|
+
headers: headerParameters,
|
|
2058
|
+
query: queryParameters,
|
|
2059
|
+
body: requestParameters["body"]
|
|
2060
|
+
}, initOverrides);
|
|
2061
|
+
return new JSONApiResponse(response, (jsonValue) => UserAccessTokenDtoFromJSON(jsonValue));
|
|
2062
|
+
}
|
|
2063
|
+
async referenceTokenExchangeReferenceToken(requestParameters = {}, initOverrides) {
|
|
2064
|
+
const response = await this.referenceTokenExchangeReferenceTokenRaw(requestParameters, initOverrides);
|
|
2065
|
+
return await response.value();
|
|
2066
|
+
}
|
|
2067
|
+
async referenceTokenGetTokenRaw(requestParameters, initOverrides) {
|
|
2068
|
+
if (requestParameters["referenceTokenId"] == null) {
|
|
2069
|
+
throw new RequiredError("referenceTokenId", 'Required parameter "referenceTokenId" was null or undefined when calling referenceTokenGetToken().');
|
|
2070
|
+
}
|
|
2071
|
+
const queryParameters = {};
|
|
2072
|
+
const headerParameters = {};
|
|
2073
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2074
|
+
const token = this.configuration.accessToken;
|
|
2075
|
+
const tokenString = await token("Bearer", []);
|
|
2076
|
+
if (tokenString) {
|
|
2077
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
let urlPath = `/api/ReferenceToken/{referenceTokenId}`;
|
|
2081
|
+
urlPath = urlPath.replace(`{${"referenceTokenId"}}`, encodeURIComponent(String(requestParameters["referenceTokenId"])));
|
|
2082
|
+
const response = await this.request({
|
|
2083
|
+
path: urlPath,
|
|
2084
|
+
method: "GET",
|
|
2085
|
+
headers: headerParameters,
|
|
2086
|
+
query: queryParameters
|
|
2087
|
+
}, initOverrides);
|
|
2088
|
+
return new JSONApiResponse(response, (jsonValue) => ReferenceTokenDtoFromJSON(jsonValue));
|
|
2089
|
+
}
|
|
2090
|
+
async referenceTokenGetToken(requestParameters, initOverrides) {
|
|
2091
|
+
const response = await this.referenceTokenGetTokenRaw(requestParameters, initOverrides);
|
|
2092
|
+
return await response.value();
|
|
2093
|
+
}
|
|
2094
|
+
async referenceTokenGetTokensRaw(initOverrides) {
|
|
2095
|
+
const queryParameters = {};
|
|
2096
|
+
const headerParameters = {};
|
|
2097
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2098
|
+
const token = this.configuration.accessToken;
|
|
2099
|
+
const tokenString = await token("Bearer", []);
|
|
2100
|
+
if (tokenString) {
|
|
2101
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
let urlPath = `/api/ReferenceToken`;
|
|
2105
|
+
const response = await this.request({
|
|
2106
|
+
path: urlPath,
|
|
2107
|
+
method: "GET",
|
|
2108
|
+
headers: headerParameters,
|
|
2109
|
+
query: queryParameters
|
|
2110
|
+
}, initOverrides);
|
|
2111
|
+
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(ReferenceTokenDtoFromJSON));
|
|
2112
|
+
}
|
|
2113
|
+
async referenceTokenGetTokens(initOverrides) {
|
|
2114
|
+
const response = await this.referenceTokenGetTokensRaw(initOverrides);
|
|
2115
|
+
return await response.value();
|
|
2116
|
+
}
|
|
2117
|
+
async referenceTokenGetTokensForPartitionRaw(requestParameters, initOverrides) {
|
|
2118
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
2119
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling referenceTokenGetTokensForPartition().');
|
|
2120
|
+
}
|
|
2121
|
+
const queryParameters = {};
|
|
2122
|
+
if (requestParameters["userSearchTerm"] != null) {
|
|
2123
|
+
queryParameters["userSearchTerm"] = requestParameters["userSearchTerm"];
|
|
2124
|
+
}
|
|
2125
|
+
if (requestParameters["top"] != null) {
|
|
2126
|
+
queryParameters["top"] = requestParameters["top"];
|
|
2127
|
+
}
|
|
2128
|
+
if (requestParameters["skip"] != null) {
|
|
2129
|
+
queryParameters["skip"] = requestParameters["skip"];
|
|
2130
|
+
}
|
|
2131
|
+
if (requestParameters["sortBy"] != null) {
|
|
2132
|
+
queryParameters["sortBy"] = requestParameters["sortBy"];
|
|
2133
|
+
}
|
|
2134
|
+
if (requestParameters["sortOrder"] != null) {
|
|
2135
|
+
queryParameters["sortOrder"] = requestParameters["sortOrder"];
|
|
2136
|
+
}
|
|
2137
|
+
const headerParameters = {};
|
|
2138
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2139
|
+
const token = this.configuration.accessToken;
|
|
2140
|
+
const tokenString = await token("Bearer", []);
|
|
2141
|
+
if (tokenString) {
|
|
2142
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
let urlPath = `/api/ReferenceToken/partition/{partitionGlobalId}`;
|
|
2146
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
2147
|
+
const response = await this.request({
|
|
2148
|
+
path: urlPath,
|
|
2149
|
+
method: "GET",
|
|
2150
|
+
headers: headerParameters,
|
|
2151
|
+
query: queryParameters
|
|
2152
|
+
}, initOverrides);
|
|
2153
|
+
return new JSONApiResponse(response, (jsonValue) => ReferenceTokenDtoPagedResultDtoFromJSON(jsonValue));
|
|
2154
|
+
}
|
|
2155
|
+
async referenceTokenGetTokensForPartition(requestParameters, initOverrides) {
|
|
2156
|
+
const response = await this.referenceTokenGetTokensForPartitionRaw(requestParameters, initOverrides);
|
|
2157
|
+
return await response.value();
|
|
2158
|
+
}
|
|
2159
|
+
async referenceTokenRegenerateTokenRaw(requestParameters, initOverrides) {
|
|
2160
|
+
if (requestParameters["referenceTokenId"] == null) {
|
|
2161
|
+
throw new RequiredError("referenceTokenId", 'Required parameter "referenceTokenId" was null or undefined when calling referenceTokenRegenerateToken().');
|
|
2162
|
+
}
|
|
2163
|
+
const queryParameters = {};
|
|
2164
|
+
const headerParameters = {};
|
|
2165
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2166
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2167
|
+
const token = this.configuration.accessToken;
|
|
2168
|
+
const tokenString = await token("Bearer", []);
|
|
2169
|
+
if (tokenString) {
|
|
2170
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2171
|
+
}
|
|
2172
|
+
}
|
|
2173
|
+
let urlPath = `/api/ReferenceToken/{referenceTokenId}`;
|
|
2174
|
+
urlPath = urlPath.replace(`{${"referenceTokenId"}}`, encodeURIComponent(String(requestParameters["referenceTokenId"])));
|
|
2175
|
+
const response = await this.request({
|
|
2176
|
+
path: urlPath,
|
|
2177
|
+
method: "PUT",
|
|
2178
|
+
headers: headerParameters,
|
|
2179
|
+
query: queryParameters,
|
|
2180
|
+
body: RegenerateReferenceTokenCommandToJSON(requestParameters["regenerateReferenceTokenCommand"])
|
|
2181
|
+
}, initOverrides);
|
|
2182
|
+
if (this.isJsonMime(response.headers.get("content-type"))) {
|
|
2183
|
+
return new JSONApiResponse(response);
|
|
2184
|
+
} else {
|
|
2185
|
+
return new TextApiResponse(response);
|
|
2186
|
+
}
|
|
2187
|
+
}
|
|
2188
|
+
async referenceTokenRegenerateToken(requestParameters, initOverrides) {
|
|
2189
|
+
const response = await this.referenceTokenRegenerateTokenRaw(requestParameters, initOverrides);
|
|
2190
|
+
return await response.value();
|
|
2191
|
+
}
|
|
2192
|
+
}
|
|
2193
|
+
|
|
2194
|
+
// ../identity-sdk/generated/src/apis/RobotAccountApi.ts
|
|
2195
|
+
class RobotAccountApi extends BaseAPI {
|
|
2196
|
+
async robotAccountBulkDeleteRaw(requestParameters, initOverrides) {
|
|
2197
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
2198
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling robotAccountBulkDelete().');
|
|
2199
|
+
}
|
|
2200
|
+
const queryParameters = {};
|
|
2201
|
+
const headerParameters = {};
|
|
2202
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2203
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2204
|
+
const token = this.configuration.accessToken;
|
|
2205
|
+
const tokenString = await token("Bearer", []);
|
|
2206
|
+
if (tokenString) {
|
|
2207
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2208
|
+
}
|
|
2209
|
+
}
|
|
2210
|
+
let urlPath = `/api/RobotAccount/{partitionGlobalId}`;
|
|
2211
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
2212
|
+
const response = await this.request({
|
|
2213
|
+
path: urlPath,
|
|
2214
|
+
method: "DELETE",
|
|
2215
|
+
headers: headerParameters,
|
|
2216
|
+
query: queryParameters,
|
|
2217
|
+
body: BulkRobotAccountDeleteCommandToJSON(requestParameters["bulkRobotAccountDeleteCommand"])
|
|
2218
|
+
}, initOverrides);
|
|
2219
|
+
return new VoidApiResponse(response);
|
|
2220
|
+
}
|
|
2221
|
+
async robotAccountBulkDelete(requestParameters, initOverrides) {
|
|
2222
|
+
await this.robotAccountBulkDeleteRaw(requestParameters, initOverrides);
|
|
2223
|
+
}
|
|
2224
|
+
async robotAccountCreateRobotAccountRaw(requestParameters, initOverrides) {
|
|
2225
|
+
const queryParameters = {};
|
|
2226
|
+
const headerParameters = {};
|
|
2227
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2228
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2229
|
+
const token = this.configuration.accessToken;
|
|
2230
|
+
const tokenString = await token("Bearer", []);
|
|
2231
|
+
if (tokenString) {
|
|
2232
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
let urlPath = `/api/RobotAccount`;
|
|
2236
|
+
const response = await this.request({
|
|
2237
|
+
path: urlPath,
|
|
2238
|
+
method: "POST",
|
|
2239
|
+
headers: headerParameters,
|
|
2240
|
+
query: queryParameters,
|
|
2241
|
+
body: CreateRobotAccountCommandToJSON(requestParameters["createRobotAccountCommand"])
|
|
2242
|
+
}, initOverrides);
|
|
2243
|
+
return new JSONApiResponse(response, (jsonValue) => RobotAccountDtoFromJSON(jsonValue));
|
|
2244
|
+
}
|
|
2245
|
+
async robotAccountCreateRobotAccount(requestParameters = {}, initOverrides) {
|
|
2246
|
+
const response = await this.robotAccountCreateRobotAccountRaw(requestParameters, initOverrides);
|
|
2247
|
+
return await response.value();
|
|
2248
|
+
}
|
|
2249
|
+
async robotAccountDeleteRaw(requestParameters, initOverrides) {
|
|
2250
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
2251
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling robotAccountDelete().');
|
|
2252
|
+
}
|
|
2253
|
+
if (requestParameters["robotAccountId"] == null) {
|
|
2254
|
+
throw new RequiredError("robotAccountId", 'Required parameter "robotAccountId" was null or undefined when calling robotAccountDelete().');
|
|
2255
|
+
}
|
|
2256
|
+
const queryParameters = {};
|
|
2257
|
+
const headerParameters = {};
|
|
2258
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2259
|
+
const token = this.configuration.accessToken;
|
|
2260
|
+
const tokenString = await token("Bearer", []);
|
|
2261
|
+
if (tokenString) {
|
|
2262
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2263
|
+
}
|
|
2264
|
+
}
|
|
2265
|
+
let urlPath = `/api/RobotAccount/{partitionGlobalId}/{robotAccountId}`;
|
|
2266
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
2267
|
+
urlPath = urlPath.replace(`{${"robotAccountId"}}`, encodeURIComponent(String(requestParameters["robotAccountId"])));
|
|
2268
|
+
const response = await this.request({
|
|
2269
|
+
path: urlPath,
|
|
2270
|
+
method: "DELETE",
|
|
2271
|
+
headers: headerParameters,
|
|
2272
|
+
query: queryParameters
|
|
2273
|
+
}, initOverrides);
|
|
2274
|
+
return new VoidApiResponse(response);
|
|
2275
|
+
}
|
|
2276
|
+
async robotAccountDelete(requestParameters, initOverrides) {
|
|
2277
|
+
await this.robotAccountDeleteRaw(requestParameters, initOverrides);
|
|
2278
|
+
}
|
|
2279
|
+
async robotAccountGetRobotAccountRaw(requestParameters, initOverrides) {
|
|
2280
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
2281
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling robotAccountGetRobotAccount().');
|
|
2282
|
+
}
|
|
2283
|
+
if (requestParameters["robotAccountId"] == null) {
|
|
2284
|
+
throw new RequiredError("robotAccountId", 'Required parameter "robotAccountId" was null or undefined when calling robotAccountGetRobotAccount().');
|
|
2285
|
+
}
|
|
2286
|
+
const queryParameters = {};
|
|
2287
|
+
const headerParameters = {};
|
|
2288
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2289
|
+
const token = this.configuration.accessToken;
|
|
2290
|
+
const tokenString = await token("Bearer", []);
|
|
2291
|
+
if (tokenString) {
|
|
2292
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2293
|
+
}
|
|
2294
|
+
}
|
|
2295
|
+
let urlPath = `/api/RobotAccount/{partitionGlobalId}/{robotAccountId}`;
|
|
2296
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
2297
|
+
urlPath = urlPath.replace(`{${"robotAccountId"}}`, encodeURIComponent(String(requestParameters["robotAccountId"])));
|
|
2298
|
+
const response = await this.request({
|
|
2299
|
+
path: urlPath,
|
|
2300
|
+
method: "GET",
|
|
2301
|
+
headers: headerParameters,
|
|
2302
|
+
query: queryParameters
|
|
2303
|
+
}, initOverrides);
|
|
2304
|
+
return new JSONApiResponse(response, (jsonValue) => RobotAccountDtoFromJSON(jsonValue));
|
|
2305
|
+
}
|
|
2306
|
+
async robotAccountGetRobotAccount(requestParameters, initOverrides) {
|
|
2307
|
+
const response = await this.robotAccountGetRobotAccountRaw(requestParameters, initOverrides);
|
|
2308
|
+
return await response.value();
|
|
2309
|
+
}
|
|
2310
|
+
async robotAccountGetRobotAccountsRaw(requestParameters, initOverrides) {
|
|
2311
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
2312
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling robotAccountGetRobotAccounts().');
|
|
2313
|
+
}
|
|
2314
|
+
const queryParameters = {};
|
|
2315
|
+
if (requestParameters["searchTerm"] != null) {
|
|
2316
|
+
queryParameters["searchTerm"] = requestParameters["searchTerm"];
|
|
2317
|
+
}
|
|
2318
|
+
if (requestParameters["top"] != null) {
|
|
2319
|
+
queryParameters["top"] = requestParameters["top"];
|
|
2320
|
+
}
|
|
2321
|
+
if (requestParameters["skip"] != null) {
|
|
2322
|
+
queryParameters["skip"] = requestParameters["skip"];
|
|
2323
|
+
}
|
|
2324
|
+
if (requestParameters["sortBy"] != null) {
|
|
2325
|
+
queryParameters["sortBy"] = requestParameters["sortBy"];
|
|
2326
|
+
}
|
|
2327
|
+
if (requestParameters["sortOrder"] != null) {
|
|
2328
|
+
queryParameters["sortOrder"] = requestParameters["sortOrder"];
|
|
2329
|
+
}
|
|
2330
|
+
if (requestParameters["mappedRoleFilter"] != null) {
|
|
2331
|
+
queryParameters["mappedRoleFilter"] = requestParameters["mappedRoleFilter"];
|
|
2332
|
+
}
|
|
2333
|
+
const headerParameters = {};
|
|
2334
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2335
|
+
const token = this.configuration.accessToken;
|
|
2336
|
+
const tokenString = await token("Bearer", []);
|
|
2337
|
+
if (tokenString) {
|
|
2338
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2341
|
+
let urlPath = `/api/RobotAccount/{partitionGlobalId}`;
|
|
2342
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
2343
|
+
const response = await this.request({
|
|
2344
|
+
path: urlPath,
|
|
2345
|
+
method: "GET",
|
|
2346
|
+
headers: headerParameters,
|
|
2347
|
+
query: queryParameters
|
|
2348
|
+
}, initOverrides);
|
|
2349
|
+
return new JSONApiResponse(response, (jsonValue) => RobotAccountDtoPagedResultDtoFromJSON(jsonValue));
|
|
2350
|
+
}
|
|
2351
|
+
async robotAccountGetRobotAccounts(requestParameters, initOverrides) {
|
|
2352
|
+
const response = await this.robotAccountGetRobotAccountsRaw(requestParameters, initOverrides);
|
|
2353
|
+
return await response.value();
|
|
2354
|
+
}
|
|
2355
|
+
async robotAccountUpdateRobotAccountRaw(requestParameters, initOverrides) {
|
|
2356
|
+
if (requestParameters["robotAccountId"] == null) {
|
|
2357
|
+
throw new RequiredError("robotAccountId", 'Required parameter "robotAccountId" was null or undefined when calling robotAccountUpdateRobotAccount().');
|
|
2358
|
+
}
|
|
2359
|
+
const queryParameters = {};
|
|
2360
|
+
const headerParameters = {};
|
|
2361
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2362
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2363
|
+
const token = this.configuration.accessToken;
|
|
2364
|
+
const tokenString = await token("Bearer", []);
|
|
2365
|
+
if (tokenString) {
|
|
2366
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
let urlPath = `/api/RobotAccount/{robotAccountId}`;
|
|
2370
|
+
urlPath = urlPath.replace(`{${"robotAccountId"}}`, encodeURIComponent(String(requestParameters["robotAccountId"])));
|
|
2371
|
+
const response = await this.request({
|
|
2372
|
+
path: urlPath,
|
|
2373
|
+
method: "PUT",
|
|
2374
|
+
headers: headerParameters,
|
|
2375
|
+
query: queryParameters,
|
|
2376
|
+
body: UpdateRobotAccountCommandToJSON(requestParameters["updateRobotAccountCommand"])
|
|
2377
|
+
}, initOverrides);
|
|
2378
|
+
return new JSONApiResponse(response, (jsonValue) => RobotAccountDtoFromJSON(jsonValue));
|
|
2379
|
+
}
|
|
2380
|
+
async robotAccountUpdateRobotAccount(requestParameters, initOverrides) {
|
|
2381
|
+
const response = await this.robotAccountUpdateRobotAccountRaw(requestParameters, initOverrides);
|
|
2382
|
+
return await response.value();
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
|
|
2386
|
+
// ../identity-sdk/generated/src/apis/SettingApi.ts
|
|
2387
|
+
class SettingApi extends BaseAPI {
|
|
2388
|
+
async settingBulkDeleteRaw(requestParameters, initOverrides) {
|
|
2389
|
+
const queryParameters = {};
|
|
2390
|
+
const headerParameters = {};
|
|
2391
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2392
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2393
|
+
const token = this.configuration.accessToken;
|
|
2394
|
+
const tokenString = await token("Bearer", []);
|
|
2395
|
+
if (tokenString) {
|
|
2396
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2399
|
+
let urlPath = `/api/Setting`;
|
|
2400
|
+
const response = await this.request({
|
|
2401
|
+
path: urlPath,
|
|
2402
|
+
method: "DELETE",
|
|
2403
|
+
headers: headerParameters,
|
|
2404
|
+
query: queryParameters,
|
|
2405
|
+
body: BulkDeleteSettingsCommandToJSON(requestParameters["bulkDeleteSettingsCommand"])
|
|
2406
|
+
}, initOverrides);
|
|
2407
|
+
return new VoidApiResponse(response);
|
|
2408
|
+
}
|
|
2409
|
+
async settingBulkDelete(requestParameters = {}, initOverrides) {
|
|
2410
|
+
await this.settingBulkDeleteRaw(requestParameters, initOverrides);
|
|
2411
|
+
}
|
|
2412
|
+
async settingDeleteRaw(requestParameters, initOverrides) {
|
|
2413
|
+
if (requestParameters["settingId"] == null) {
|
|
2414
|
+
throw new RequiredError("settingId", 'Required parameter "settingId" was null or undefined when calling settingDelete().');
|
|
2415
|
+
}
|
|
2416
|
+
const queryParameters = {};
|
|
2417
|
+
const headerParameters = {};
|
|
2418
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2419
|
+
const token = this.configuration.accessToken;
|
|
2420
|
+
const tokenString = await token("Bearer", []);
|
|
2421
|
+
if (tokenString) {
|
|
2422
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2425
|
+
let urlPath = `/api/Setting/{settingId}`;
|
|
2426
|
+
urlPath = urlPath.replace(`{${"settingId"}}`, encodeURIComponent(String(requestParameters["settingId"])));
|
|
2427
|
+
const response = await this.request({
|
|
2428
|
+
path: urlPath,
|
|
2429
|
+
method: "DELETE",
|
|
2430
|
+
headers: headerParameters,
|
|
2431
|
+
query: queryParameters
|
|
2432
|
+
}, initOverrides);
|
|
2433
|
+
return new VoidApiResponse(response);
|
|
2434
|
+
}
|
|
2435
|
+
async settingDelete(requestParameters, initOverrides) {
|
|
2436
|
+
await this.settingDeleteRaw(requestParameters, initOverrides);
|
|
2437
|
+
}
|
|
2438
|
+
async settingGetSettingsBulkRaw(requestParameters, initOverrides) {
|
|
2439
|
+
const queryParameters = {};
|
|
2440
|
+
if (requestParameters["key"] != null) {
|
|
2441
|
+
queryParameters["key"] = requestParameters["key"];
|
|
2442
|
+
}
|
|
2443
|
+
if (requestParameters["partitionGlobalId"] != null) {
|
|
2444
|
+
queryParameters["partitionGlobalId"] = requestParameters["partitionGlobalId"];
|
|
2445
|
+
}
|
|
2446
|
+
if (requestParameters["userId"] != null) {
|
|
2447
|
+
queryParameters["userId"] = requestParameters["userId"];
|
|
2448
|
+
}
|
|
2449
|
+
const headerParameters = {};
|
|
2450
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2451
|
+
const token = this.configuration.accessToken;
|
|
2452
|
+
const tokenString = await token("Bearer", []);
|
|
2453
|
+
if (tokenString) {
|
|
2454
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2455
|
+
}
|
|
2456
|
+
}
|
|
2457
|
+
let urlPath = `/api/Setting`;
|
|
2458
|
+
const response = await this.request({
|
|
2459
|
+
path: urlPath,
|
|
2460
|
+
method: "GET",
|
|
2461
|
+
headers: headerParameters,
|
|
2462
|
+
query: queryParameters
|
|
2463
|
+
}, initOverrides);
|
|
2464
|
+
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(SettingDtoFromJSON));
|
|
2465
|
+
}
|
|
2466
|
+
async settingGetSettingsBulk(requestParameters = {}, initOverrides) {
|
|
2467
|
+
const response = await this.settingGetSettingsBulkRaw(requestParameters, initOverrides);
|
|
2468
|
+
return await response.value();
|
|
2469
|
+
}
|
|
2470
|
+
async settingUpdateSettingsRaw(requestParameters, initOverrides) {
|
|
2471
|
+
const queryParameters = {};
|
|
2472
|
+
const headerParameters = {};
|
|
2473
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2474
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2475
|
+
const token = this.configuration.accessToken;
|
|
2476
|
+
const tokenString = await token("Bearer", []);
|
|
2477
|
+
if (tokenString) {
|
|
2478
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2479
|
+
}
|
|
2480
|
+
}
|
|
2481
|
+
let urlPath = `/api/Setting`;
|
|
2482
|
+
const response = await this.request({
|
|
2483
|
+
path: urlPath,
|
|
2484
|
+
method: "PUT",
|
|
2485
|
+
headers: headerParameters,
|
|
2486
|
+
query: queryParameters,
|
|
2487
|
+
body: BulkCreateOrUpdateSettingsCommandToJSON(requestParameters["bulkCreateOrUpdateSettingsCommand"])
|
|
2488
|
+
}, initOverrides);
|
|
2489
|
+
return new JSONApiResponse(response, (jsonValue) => jsonValue.map(SettingDtoFromJSON));
|
|
2490
|
+
}
|
|
2491
|
+
async settingUpdateSettings(requestParameters = {}, initOverrides) {
|
|
2492
|
+
const response = await this.settingUpdateSettingsRaw(requestParameters, initOverrides);
|
|
2493
|
+
return await response.value();
|
|
2494
|
+
}
|
|
2495
|
+
async settingVerifySmtpSettingRaw(requestParameters, initOverrides) {
|
|
2496
|
+
const queryParameters = {};
|
|
2497
|
+
const headerParameters = {};
|
|
2498
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2499
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2500
|
+
const token = this.configuration.accessToken;
|
|
2501
|
+
const tokenString = await token("Bearer", []);
|
|
2502
|
+
if (tokenString) {
|
|
2503
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2504
|
+
}
|
|
2505
|
+
}
|
|
2506
|
+
let urlPath = `/api/Setting/VerifySmtpSettings`;
|
|
2507
|
+
const response = await this.request({
|
|
2508
|
+
path: urlPath,
|
|
2509
|
+
method: "POST",
|
|
2510
|
+
headers: headerParameters,
|
|
2511
|
+
query: queryParameters,
|
|
2512
|
+
body: VerifySmtpSettingsCommandToJSON(requestParameters["verifySmtpSettingsCommand"])
|
|
2513
|
+
}, initOverrides);
|
|
2514
|
+
return new VoidApiResponse(response);
|
|
2515
|
+
}
|
|
2516
|
+
async settingVerifySmtpSetting(requestParameters = {}, initOverrides) {
|
|
2517
|
+
await this.settingVerifySmtpSettingRaw(requestParameters, initOverrides);
|
|
2518
|
+
}
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
// ../identity-sdk/generated/src/apis/UserApi.ts
|
|
2522
|
+
class UserApi extends BaseAPI {
|
|
2523
|
+
async userBulkDeleteRaw(requestParameters, initOverrides) {
|
|
2524
|
+
const queryParameters = {};
|
|
2525
|
+
const headerParameters = {};
|
|
2526
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2527
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2528
|
+
const token = this.configuration.accessToken;
|
|
2529
|
+
const tokenString = await token("Bearer", []);
|
|
2530
|
+
if (tokenString) {
|
|
2531
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2532
|
+
}
|
|
2533
|
+
}
|
|
2534
|
+
let urlPath = `/api/User`;
|
|
2535
|
+
const response = await this.request({
|
|
2536
|
+
path: urlPath,
|
|
2537
|
+
method: "DELETE",
|
|
2538
|
+
headers: headerParameters,
|
|
2539
|
+
query: queryParameters,
|
|
2540
|
+
body: BulkSoftDeleteCommandToJSON(requestParameters["bulkSoftDeleteCommand"])
|
|
2541
|
+
}, initOverrides);
|
|
2542
|
+
return new VoidApiResponse(response);
|
|
2543
|
+
}
|
|
2544
|
+
async userBulkDelete(requestParameters = {}, initOverrides) {
|
|
2545
|
+
await this.userBulkDeleteRaw(requestParameters, initOverrides);
|
|
2546
|
+
}
|
|
2547
|
+
async userChangePasswordRaw(requestParameters, initOverrides) {
|
|
2548
|
+
if (requestParameters["userId"] == null) {
|
|
2549
|
+
throw new RequiredError("userId", 'Required parameter "userId" was null or undefined when calling userChangePassword().');
|
|
2550
|
+
}
|
|
2551
|
+
const queryParameters = {};
|
|
2552
|
+
const headerParameters = {};
|
|
2553
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2554
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2555
|
+
const token = this.configuration.accessToken;
|
|
2556
|
+
const tokenString = await token("Bearer", []);
|
|
2557
|
+
if (tokenString) {
|
|
2558
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
let urlPath = `/api/User/{userId}/changepassword`;
|
|
2562
|
+
urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters["userId"])));
|
|
2563
|
+
const response = await this.request({
|
|
2564
|
+
path: urlPath,
|
|
2565
|
+
method: "POST",
|
|
2566
|
+
headers: headerParameters,
|
|
2567
|
+
query: queryParameters,
|
|
2568
|
+
body: ChangeUserPasswordCommandToJSON(requestParameters["changeUserPasswordCommand"])
|
|
2569
|
+
}, initOverrides);
|
|
2570
|
+
return new JSONApiResponse(response, (jsonValue) => IdentityResultFromJSON(jsonValue));
|
|
2571
|
+
}
|
|
2572
|
+
async userChangePassword(requestParameters, initOverrides) {
|
|
2573
|
+
const response = await this.userChangePasswordRaw(requestParameters, initOverrides);
|
|
2574
|
+
return await response.value();
|
|
2575
|
+
}
|
|
2576
|
+
async userCreateUserRaw(requestParameters, initOverrides) {
|
|
2577
|
+
const queryParameters = {};
|
|
2578
|
+
const headerParameters = {};
|
|
2579
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2580
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2581
|
+
const token = this.configuration.accessToken;
|
|
2582
|
+
const tokenString = await token("Bearer", []);
|
|
2583
|
+
if (tokenString) {
|
|
2584
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2585
|
+
}
|
|
2586
|
+
}
|
|
2587
|
+
let urlPath = `/api/User`;
|
|
2588
|
+
const response = await this.request({
|
|
2589
|
+
path: urlPath,
|
|
2590
|
+
method: "POST",
|
|
2591
|
+
headers: headerParameters,
|
|
2592
|
+
query: queryParameters,
|
|
2593
|
+
body: CreateUserCommandToJSON(requestParameters["createUserCommand"])
|
|
2594
|
+
}, initOverrides);
|
|
2595
|
+
return new JSONApiResponse(response, (jsonValue) => IdentityResultFromJSON(jsonValue));
|
|
2596
|
+
}
|
|
2597
|
+
async userCreateUser(requestParameters = {}, initOverrides) {
|
|
2598
|
+
const response = await this.userCreateUserRaw(requestParameters, initOverrides);
|
|
2599
|
+
return await response.value();
|
|
2600
|
+
}
|
|
2601
|
+
async userCreateUsersRaw(requestParameters, initOverrides) {
|
|
2602
|
+
const queryParameters = {};
|
|
2603
|
+
const headerParameters = {};
|
|
2604
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2605
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2606
|
+
const token = this.configuration.accessToken;
|
|
2607
|
+
const tokenString = await token("Bearer", []);
|
|
2608
|
+
if (tokenString) {
|
|
2609
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2610
|
+
}
|
|
2611
|
+
}
|
|
2612
|
+
let urlPath = `/api/User/BulkCreate`;
|
|
2613
|
+
const response = await this.request({
|
|
2614
|
+
path: urlPath,
|
|
2615
|
+
method: "POST",
|
|
2616
|
+
headers: headerParameters,
|
|
2617
|
+
query: queryParameters,
|
|
2618
|
+
body: CreateUsersCommandToJSON(requestParameters["createUsersCommand"])
|
|
2619
|
+
}, initOverrides);
|
|
2620
|
+
return new JSONApiResponse(response, (jsonValue) => IdentityResultFromJSON(jsonValue));
|
|
2621
|
+
}
|
|
2622
|
+
async userCreateUsers(requestParameters = {}, initOverrides) {
|
|
2623
|
+
const response = await this.userCreateUsersRaw(requestParameters, initOverrides);
|
|
2624
|
+
return await response.value();
|
|
2625
|
+
}
|
|
2626
|
+
async userDeleteRaw(requestParameters, initOverrides) {
|
|
2627
|
+
if (requestParameters["userId"] == null) {
|
|
2628
|
+
throw new RequiredError("userId", 'Required parameter "userId" was null or undefined when calling userDelete().');
|
|
2629
|
+
}
|
|
2630
|
+
const queryParameters = {};
|
|
2631
|
+
const headerParameters = {};
|
|
2632
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2633
|
+
const token = this.configuration.accessToken;
|
|
2634
|
+
const tokenString = await token("Bearer", []);
|
|
2635
|
+
if (tokenString) {
|
|
2636
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
let urlPath = `/api/User/{userId}`;
|
|
2640
|
+
urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters["userId"])));
|
|
2641
|
+
const response = await this.request({
|
|
2642
|
+
path: urlPath,
|
|
2643
|
+
method: "DELETE",
|
|
2644
|
+
headers: headerParameters,
|
|
2645
|
+
query: queryParameters
|
|
2646
|
+
}, initOverrides);
|
|
2647
|
+
return new VoidApiResponse(response);
|
|
2648
|
+
}
|
|
2649
|
+
async userDelete(requestParameters, initOverrides) {
|
|
2650
|
+
await this.userDeleteRaw(requestParameters, initOverrides);
|
|
2651
|
+
}
|
|
2652
|
+
async userGetUserRaw(requestParameters, initOverrides) {
|
|
2653
|
+
if (requestParameters["userId"] == null) {
|
|
2654
|
+
throw new RequiredError("userId", 'Required parameter "userId" was null or undefined when calling userGetUser().');
|
|
2655
|
+
}
|
|
2656
|
+
const queryParameters = {};
|
|
2657
|
+
const headerParameters = {};
|
|
2658
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2659
|
+
const token = this.configuration.accessToken;
|
|
2660
|
+
const tokenString = await token("Bearer", []);
|
|
2661
|
+
if (tokenString) {
|
|
2662
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2663
|
+
}
|
|
2664
|
+
}
|
|
2665
|
+
let urlPath = `/api/User/{userId}`;
|
|
2666
|
+
urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters["userId"])));
|
|
2667
|
+
const response = await this.request({
|
|
2668
|
+
path: urlPath,
|
|
2669
|
+
method: "GET",
|
|
2670
|
+
headers: headerParameters,
|
|
2671
|
+
query: queryParameters
|
|
2672
|
+
}, initOverrides);
|
|
2673
|
+
return new JSONApiResponse(response, (jsonValue) => UserDtoFromJSON(jsonValue));
|
|
2674
|
+
}
|
|
2675
|
+
async userGetUser(requestParameters, initOverrides) {
|
|
2676
|
+
const response = await this.userGetUserRaw(requestParameters, initOverrides);
|
|
2677
|
+
return await response.value();
|
|
2678
|
+
}
|
|
2679
|
+
async userGetUsersRaw(requestParameters, initOverrides) {
|
|
2680
|
+
if (requestParameters["partitionGlobalId"] == null) {
|
|
2681
|
+
throw new RequiredError("partitionGlobalId", 'Required parameter "partitionGlobalId" was null or undefined when calling userGetUsers().');
|
|
2682
|
+
}
|
|
2683
|
+
const queryParameters = {};
|
|
2684
|
+
if (requestParameters["searchTerm"] != null) {
|
|
2685
|
+
queryParameters["searchTerm"] = requestParameters["searchTerm"];
|
|
2686
|
+
}
|
|
2687
|
+
if (requestParameters["top"] != null) {
|
|
2688
|
+
queryParameters["top"] = requestParameters["top"];
|
|
2689
|
+
}
|
|
2690
|
+
if (requestParameters["skip"] != null) {
|
|
2691
|
+
queryParameters["skip"] = requestParameters["skip"];
|
|
2692
|
+
}
|
|
2693
|
+
if (requestParameters["sortBy"] != null) {
|
|
2694
|
+
queryParameters["sortBy"] = requestParameters["sortBy"];
|
|
2695
|
+
}
|
|
2696
|
+
if (requestParameters["sortOrder"] != null) {
|
|
2697
|
+
queryParameters["sortOrder"] = requestParameters["sortOrder"];
|
|
2698
|
+
}
|
|
2699
|
+
const headerParameters = {};
|
|
2700
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2701
|
+
const token = this.configuration.accessToken;
|
|
2702
|
+
const tokenString = await token("Bearer", []);
|
|
2703
|
+
if (tokenString) {
|
|
2704
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2705
|
+
}
|
|
2706
|
+
}
|
|
2707
|
+
let urlPath = `/api/User/users/{partitionGlobalId}`;
|
|
2708
|
+
urlPath = urlPath.replace(`{${"partitionGlobalId"}}`, encodeURIComponent(String(requestParameters["partitionGlobalId"])));
|
|
2709
|
+
const response = await this.request({
|
|
2710
|
+
path: urlPath,
|
|
2711
|
+
method: "GET",
|
|
2712
|
+
headers: headerParameters,
|
|
2713
|
+
query: queryParameters
|
|
2714
|
+
}, initOverrides);
|
|
2715
|
+
return new JSONApiResponse(response, (jsonValue) => UserDtoPagedResultDtoFromJSON(jsonValue));
|
|
2716
|
+
}
|
|
2717
|
+
async userGetUsers(requestParameters, initOverrides) {
|
|
2718
|
+
const response = await this.userGetUsersRaw(requestParameters, initOverrides);
|
|
2719
|
+
return await response.value();
|
|
2720
|
+
}
|
|
2721
|
+
async userInviteUsersRaw(requestParameters, initOverrides) {
|
|
2722
|
+
const queryParameters = {};
|
|
2723
|
+
const headerParameters = {};
|
|
2724
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2725
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2726
|
+
const token = this.configuration.accessToken;
|
|
2727
|
+
const tokenString = await token("Bearer", []);
|
|
2728
|
+
if (tokenString) {
|
|
2729
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2730
|
+
}
|
|
2731
|
+
}
|
|
2732
|
+
let urlPath = `/api/User/InviteUsers`;
|
|
2733
|
+
const response = await this.request({
|
|
2734
|
+
path: urlPath,
|
|
2735
|
+
method: "POST",
|
|
2736
|
+
headers: headerParameters,
|
|
2737
|
+
query: queryParameters,
|
|
2738
|
+
body: requestParameters["invitedUser"].map(InvitedUserToJSON)
|
|
2739
|
+
}, initOverrides);
|
|
2740
|
+
return new JSONApiResponse(response, (jsonValue) => InviteUsersResultFromJSON(jsonValue));
|
|
2741
|
+
}
|
|
2742
|
+
async userInviteUsers(requestParameters = {}, initOverrides) {
|
|
2743
|
+
const response = await this.userInviteUsersRaw(requestParameters, initOverrides);
|
|
2744
|
+
return await response.value();
|
|
2745
|
+
}
|
|
2746
|
+
async userUpdateRaw(requestParameters, initOverrides) {
|
|
2747
|
+
if (requestParameters["userId"] == null) {
|
|
2748
|
+
throw new RequiredError("userId", 'Required parameter "userId" was null or undefined when calling userUpdate().');
|
|
2749
|
+
}
|
|
2750
|
+
const queryParameters = {};
|
|
2751
|
+
const headerParameters = {};
|
|
2752
|
+
headerParameters["Content-Type"] = "application/json";
|
|
2753
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2754
|
+
const token = this.configuration.accessToken;
|
|
2755
|
+
const tokenString = await token("Bearer", []);
|
|
2756
|
+
if (tokenString) {
|
|
2757
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
let urlPath = `/api/User/{userId}`;
|
|
2761
|
+
urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters["userId"])));
|
|
2762
|
+
const response = await this.request({
|
|
2763
|
+
path: urlPath,
|
|
2764
|
+
method: "PUT",
|
|
2765
|
+
headers: headerParameters,
|
|
2766
|
+
query: queryParameters,
|
|
2767
|
+
body: UpdateUserCommandToJSON(requestParameters["updateUserCommand"])
|
|
2768
|
+
}, initOverrides);
|
|
2769
|
+
return new JSONApiResponse(response, (jsonValue) => IdentityResultFromJSON(jsonValue));
|
|
2770
|
+
}
|
|
2771
|
+
async userUpdate(requestParameters, initOverrides) {
|
|
2772
|
+
const response = await this.userUpdateRaw(requestParameters, initOverrides);
|
|
2773
|
+
return await response.value();
|
|
2774
|
+
}
|
|
2775
|
+
}
|
|
2776
|
+
// ../identity-sdk/package.json
|
|
2777
|
+
var package_default = {
|
|
2778
|
+
name: "@uipath/identity-sdk",
|
|
2779
|
+
author: "UiPath",
|
|
2780
|
+
license: "SEE LICENSE IN LICENSE.txt",
|
|
2781
|
+
version: "1.204.0",
|
|
2782
|
+
repository: {
|
|
2783
|
+
type: "git",
|
|
2784
|
+
url: "https://github.com/UiPath/cli.git",
|
|
2785
|
+
directory: "packages/admin/identity-sdk"
|
|
2786
|
+
},
|
|
2787
|
+
publishConfig: {
|
|
2788
|
+
registry: "https://npm.pkg.github.com/@uipath"
|
|
2789
|
+
},
|
|
2790
|
+
keywords: [
|
|
2791
|
+
"uipath",
|
|
2792
|
+
"identity",
|
|
2793
|
+
"sdk"
|
|
2794
|
+
],
|
|
2795
|
+
type: "module",
|
|
2796
|
+
main: "./dist/index.js",
|
|
2797
|
+
types: "./dist/src/index.d.ts",
|
|
2798
|
+
exports: {
|
|
2799
|
+
".": {
|
|
2800
|
+
types: "./dist/src/index.d.ts",
|
|
2801
|
+
default: "./dist/index.js"
|
|
2802
|
+
}
|
|
2803
|
+
},
|
|
2804
|
+
files: [
|
|
2805
|
+
"dist"
|
|
2806
|
+
],
|
|
2807
|
+
private: true,
|
|
2808
|
+
scripts: {
|
|
2809
|
+
build: "bun build ./src/index.ts --outdir dist --format esm --target node --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
|
|
2810
|
+
typecheck: "tsc --noEmit",
|
|
2811
|
+
generate: "bun run src/scripts/generate-sdk.ts",
|
|
2812
|
+
lint: "biome check .",
|
|
2813
|
+
test: "vitest run",
|
|
2814
|
+
"test:coverage": "vitest run --coverage"
|
|
2815
|
+
},
|
|
2816
|
+
devDependencies: {
|
|
2817
|
+
"@uipath/auth": "workspace:*",
|
|
2818
|
+
"@uipath/common": "workspace:*",
|
|
2819
|
+
"@uipath/filesystem": "workspace:*",
|
|
2820
|
+
"@openapitools/openapi-generator-cli": "^2.31.1",
|
|
2821
|
+
"@types/node": "^25.5.2",
|
|
2822
|
+
typescript: "^7.0.2"
|
|
2823
|
+
}
|
|
2824
|
+
};
|
|
2825
|
+
|
|
2826
|
+
// ../identity-sdk/src/user-agent.ts
|
|
2827
|
+
var SDK_USER_AGENT = getSdkUserAgentToken(package_default);
|
|
2828
|
+
installSdkUserAgentHeader(BaseAPI, SDK_USER_AGENT);
|
|
2829
|
+
|
|
2830
|
+
// ../identity-sdk/src/client-factory.ts
|
|
2831
|
+
async function createIdentityConfig(options) {
|
|
2832
|
+
const ctx = await getAuthContext({
|
|
2833
|
+
ensureTokenValidityMinutes: options?.loginValidity,
|
|
2834
|
+
requireOrganizationId: options?.organization === undefined,
|
|
2835
|
+
requireTenantName: true
|
|
2836
|
+
});
|
|
2837
|
+
const organizationId = options?.organization ?? ctx.organizationId;
|
|
2838
|
+
if (organizationId === undefined || organizationId.length === 0) {
|
|
2839
|
+
throw new Error("Organization ID not available. Provide --organization or log in with an organization context.");
|
|
2840
|
+
}
|
|
2841
|
+
const identityBasePath = `${ctx.baseUrl}/${organizationId}/identity_`;
|
|
2842
|
+
const headers = addSdkUserAgentHeader({
|
|
2843
|
+
Authorization: `Bearer ${ctx.accessToken}`
|
|
2844
|
+
}, SDK_USER_AGENT);
|
|
2845
|
+
return {
|
|
2846
|
+
config: new Configuration({
|
|
2847
|
+
basePath: identityBasePath,
|
|
2848
|
+
headers
|
|
2849
|
+
}),
|
|
2850
|
+
organizationId
|
|
2851
|
+
};
|
|
2852
|
+
}
|
|
2853
|
+
async function createApiClient(ApiClass, options) {
|
|
2854
|
+
const { config, organizationId } = await createIdentityConfig(options);
|
|
2855
|
+
return { api: new ApiClass(config), organizationId };
|
|
2856
|
+
}
|
|
2857
|
+
export { ExternalApiResourceApi, ExternalClientApi, GroupApi, ReferenceTokenApi, RobotAccountApi, SettingApi, UserApi, createIdentityConfig, createApiClient };
|
|
2858
|
+
|
|
2859
|
+
//# debugId=77F8D0DA3024A47F64756E2164756E21
|