@orbis-systems/orbis-api-clients 0.6.7 → 0.6.9

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.
Files changed (41) hide show
  1. package/dist/aesmidas/index.d.ts +1114 -1105
  2. package/dist/aesmidas/index.d.ts.map +1 -1
  3. package/dist/aesmidas/index.esm.js +1 -2806
  4. package/dist/aesmidas/index.esm.js.map +1 -1
  5. package/dist/aesmidas/index.js +1 -2811
  6. package/dist/aesmidas/index.js.map +1 -1
  7. package/dist/bridgewise/index.d.ts +94 -93
  8. package/dist/bridgewise/index.d.ts.map +1 -1
  9. package/dist/bridgewise/index.esm.js +1 -1888
  10. package/dist/bridgewise/index.esm.js.map +1 -1
  11. package/dist/bridgewise/index.js +1 -1893
  12. package/dist/bridgewise/index.js.map +1 -1
  13. package/dist/index.esm.js +1 -257
  14. package/dist/index.esm.js.map +1 -1
  15. package/dist/index.js +1 -280
  16. package/dist/index.js.map +1 -1
  17. package/dist/insight/index.d.ts +326 -325
  18. package/dist/insight/index.d.ts.map +1 -1
  19. package/dist/insight/index.esm.js +1 -3753
  20. package/dist/insight/index.esm.js.map +1 -1
  21. package/dist/insight/index.js +1 -3758
  22. package/dist/insight/index.js.map +1 -1
  23. package/dist/middleware/index.d.ts +34 -34
  24. package/dist/middleware/index.d.ts.map +1 -1
  25. package/dist/middleware/index.esm.js +1 -1066
  26. package/dist/middleware/index.esm.js.map +1 -1
  27. package/dist/middleware/index.js +1 -1071
  28. package/dist/middleware/index.js.map +1 -1
  29. package/dist/orbis/index.d.ts +1236 -1236
  30. package/dist/orbis/index.d.ts.map +1 -1
  31. package/dist/orbis/index.esm.js +1 -7009
  32. package/dist/orbis/index.esm.js.map +1 -1
  33. package/dist/orbis/index.js +1 -7014
  34. package/dist/orbis/index.js.map +1 -1
  35. package/dist/uma/index.d.ts +290 -290
  36. package/dist/uma/index.d.ts.map +1 -1
  37. package/dist/uma/index.esm.js +1 -3993
  38. package/dist/uma/index.esm.js.map +1 -1
  39. package/dist/uma/index.js +1 -3998
  40. package/dist/uma/index.js.map +1 -1
  41. package/package.json +9 -1
package/dist/uma/index.js CHANGED
@@ -1,3999 +1,2 @@
1
- var $l6jTM$jwtdecode = require("jwt-decode");
2
- var $l6jTM$autobind = require("auto-bind");
3
- var $l6jTM$asyncmutex = require("async-mutex");
4
- var $l6jTM$consola = require("consola");
5
- var $l6jTM$datefns = require("date-fns");
6
- var $l6jTM$axios = require("axios");
7
- var $l6jTM$axiosbetterstacktrace = require("axios-better-stacktrace");
8
- var $l6jTM$lodash = require("lodash");
9
-
10
-
11
- function $parcel$exportWildcard(dest, source) {
12
- Object.keys(source).forEach(function(key) {
13
- if (key === 'default' || key === '__esModule' || Object.prototype.hasOwnProperty.call(dest, key)) {
14
- return;
15
- }
16
-
17
- Object.defineProperty(dest, key, {
18
- enumerable: true,
19
- get: function get() {
20
- return source[key];
21
- }
22
- });
23
- });
24
-
25
- return dest;
26
- }
27
-
28
- function $parcel$export(e, n, v, s) {
29
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
30
- }
31
-
32
- function $parcel$interopDefault(a) {
33
- return a && a.__esModule ? a.default : a;
34
- }
35
- var $e0cb59dd918b422a$exports = {};
36
-
37
- $parcel$export($e0cb59dd918b422a$exports, "UmaApi", () => $e0cb59dd918b422a$export$ae615290d7b354e);
38
-
39
-
40
- class $780091c10287ceed$export$3ad201792064a82b {
41
- // request: ApiClient['request'];
42
- // get: ApiClient['get'];
43
- // delete: ApiClient['delete'];
44
- // head: ApiClient['head'];
45
- // options: ApiClient['options'];
46
- // post: ApiClient['post'];
47
- // put: ApiClient['put'];
48
- // patch: ApiClient['patch'];
49
- constructor(apiClient){
50
- this.apiClient = apiClient;
51
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
52
- // this.request = this.client.request;
53
- // this.get = this.client.get;
54
- // this.delete = this.client.delete;
55
- // this.head = this.client.head;
56
- // this.options = this.client.options;
57
- // this.post = this.client.post;
58
- // this.put = this.client.put;
59
- // this.patch = this.client.patch;
60
- // this.get = this.client.get;
61
- }
62
- getApiClient() {
63
- return this.apiClient;
64
- }
65
- }
66
-
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
- var $3621850f1f570615$export$e2e108cbe2e4f865 = /*#__PURE__*/ function(ContentType) {
77
- ContentType["Json"] = "application/json";
78
- ContentType["FormData"] = "multipart/form-data";
79
- ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
80
- ContentType["Text"] = "text/plain";
81
- return ContentType;
82
- }({});
83
- class $3621850f1f570615$export$4f22f74eddb7716a {
84
- constructor(config){
85
- this.config = config;
86
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
87
- this.storage = config.storage ?? sessionStorage;
88
- this.axiosInstance = (0, ($parcel$interopDefault($l6jTM$axios))).create({
89
- baseURL: config.baseUrl,
90
- withCredentials: config.withCredentials,
91
- headers: {
92
- 'Content-Type': 'application/json',
93
- ...config.defaultHeaders
94
- }
95
- });
96
- (0, ($parcel$interopDefault($l6jTM$axiosbetterstacktrace)))(this.axiosInstance);
97
- }
98
- stringifyFormItem(formItem) {
99
- if (typeof formItem === 'object' && formItem !== null) return JSON.stringify(formItem);
100
- else return `${formItem}`;
101
- }
102
- createFormData(input) {
103
- if (input instanceof FormData) return input;
104
- return Object.keys(input).reduce((formData, key)=>{
105
- const property = input[key];
106
- const propertyContent = property instanceof Array ? property : [
107
- property
108
- ];
109
- for (const formItem of propertyContent){
110
- const isFileType = formItem instanceof Blob || formItem instanceof File;
111
- formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem));
112
- }
113
- return formData;
114
- }, new FormData());
115
- }
116
- async request(requestConfig) {
117
- const { contentType: contentType, data: data } = requestConfig;
118
- if (!(0, $l6jTM$lodash.isNil)(data)) {
119
- if (contentType === "multipart/form-data" && typeof data === 'object') requestConfig.data = this.createFormData(data);
120
- if (contentType === "text/plain" && typeof data !== 'string') requestConfig.data = JSON.stringify(data);
121
- }
122
- const mergedConfig = (0, $l6jTM$lodash.merge)(requestConfig.secure ?? this.config.defaultSecure ?? true ? await this.prepareAuthRequestConfig() : {}, contentType ? {
123
- headers: {
124
- 'Content-Type': contentType
125
- }
126
- } : {}, requestConfig);
127
- try {
128
- const { data: data, status: status, statusText: statusText } = await this.axiosInstance.request(mergedConfig);
129
- return {
130
- success: true,
131
- data: data,
132
- status: status,
133
- statusText: statusText
134
- };
135
- } catch (error) {
136
- if (!this.config.handleError && !requestConfig.handleError) throw error;
137
- const result = {
138
- success: false,
139
- status: -1,
140
- statusText: String(error),
141
- error: error
142
- };
143
- if ((0, $l6jTM$axios.isAxiosError)(error)) {
144
- this.config.onAxiosError?.(error);
145
- result.data = error.response?.data;
146
- result.status = error.response?.status ?? result.status;
147
- result.statusText = error.response?.statusText ?? result.statusText;
148
- }
149
- this.config.onError?.(error);
150
- return result;
151
- }
152
- }
153
- get(url, config) {
154
- return this.request({
155
- ...config,
156
- method: 'GET',
157
- url: url
158
- });
159
- }
160
- delete(url, config) {
161
- return this.request({
162
- ...config,
163
- method: 'DELETE',
164
- url: url
165
- });
166
- }
167
- head(url, config) {
168
- return this.request({
169
- ...config,
170
- method: 'HEAD',
171
- url: url
172
- });
173
- }
174
- options(url, config) {
175
- return this.request({
176
- ...config,
177
- method: 'OPTIONS',
178
- url: url
179
- });
180
- }
181
- post(url, data, config) {
182
- return this.request({
183
- ...config,
184
- method: 'POST',
185
- url: url,
186
- data: data
187
- });
188
- }
189
- put(url, data, config) {
190
- return this.request({
191
- ...config,
192
- method: 'PUT',
193
- url: url,
194
- data: data
195
- });
196
- }
197
- patch(url, data, config) {
198
- return this.request({
199
- ...config,
200
- method: 'PATCH',
201
- url: url,
202
- data: data
203
- });
204
- }
205
- getAxios() {
206
- return this.axiosInstance;
207
- }
208
- setAuthData(data) {
209
- this.storage.setItem(this.config.authDataStorageKey || 'auth', JSON.stringify(data));
210
- }
211
- getAuthData() {
212
- const data = this.storage.getItem(this.config.authDataStorageKey || 'auth');
213
- return data ? JSON.parse(data) : null;
214
- }
215
- getConfig() {
216
- return this.config;
217
- }
218
- }
219
-
220
-
221
- class $538ed1203bac2e79$export$f280b732bbc5934b extends (0, $3621850f1f570615$export$4f22f74eddb7716a) {
222
- constructor(config){
223
- super(config), this.config = config, this.lock = new (0, $l6jTM$asyncmutex.Mutex)();
224
- }
225
- getConfig() {
226
- return super.getConfig();
227
- }
228
- setRenewTokenCallback(renewTokenCallback) {
229
- this.renewTokenCallback = renewTokenCallback;
230
- }
231
- async prepareAuthRequestConfig() {
232
- if (this.config.withCredentials) return {};
233
- let { accessToken: accessToken } = this.getAuthData() || {};
234
- if (!accessToken) {
235
- (0, $l6jTM$consola.consola).warn('No access token found. Please set auth data after authorization.');
236
- return {};
237
- }
238
- if (this.config.autoRenewToken !== false && this.isTokenExpired(accessToken)) try {
239
- await this.lock.runExclusive(async ()=>{
240
- if (this.config.debug) (0, $l6jTM$consola.consola).debug("Token expired. Renewing\u2026");
241
- accessToken = (await this.renewToken()).accessToken;
242
- this.lock.cancel();
243
- });
244
- } catch (error) {
245
- if (error === (0, $l6jTM$asyncmutex.E_CANCELED)) accessToken = this.getAuthData()?.accessToken;
246
- else throw error;
247
- }
248
- return {
249
- headers: {
250
- Authorization: `${this.config.authSchema ?? 'Bearer'} ${accessToken}`
251
- }
252
- };
253
- }
254
- isTokenExpired(token) {
255
- const payload = (0, $l6jTM$jwtdecode.jwtDecode)(token);
256
- if (!payload.exp) return true;
257
- return (0, $l6jTM$datefns.isBefore)((0, $l6jTM$datefns.subMinutes)(payload.exp * 1000, 1), Date.now());
258
- }
259
- async renewToken() {
260
- const callback = this.config.onRenewToken ?? this.renewTokenCallback;
261
- if (!callback) throw new Error('No renew token callback provided');
262
- const authData = await callback();
263
- this.setAuthData(authData);
264
- return authData;
265
- }
266
- }
267
-
268
-
269
- var $dbc7cbd402bafa1b$exports = {};
270
- var $467e4c6e7d89aebd$exports = {};
271
-
272
- $parcel$export($467e4c6e7d89aebd$exports, "ActionLogs", () => $467e4c6e7d89aebd$export$e241ab6b9aa14723);
273
- /* eslint-disable */ /* tslint:disable */ /*
274
- * ---------------------------------------------------------------
275
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
276
- * ## ##
277
- * ## AUTHOR: acacode ##
278
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
279
- * ---------------------------------------------------------------
280
- */
281
- /* eslint-disable */ /* tslint:disable */ /*
282
- * ---------------------------------------------------------------
283
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
284
- * ## ##
285
- * ## AUTHOR: acacode ##
286
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
287
- * ---------------------------------------------------------------
288
- */
289
-
290
-
291
- class $467e4c6e7d89aebd$export$e241ab6b9aa14723 {
292
- constructor(apiClient){
293
- this.apiClient = apiClient;
294
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
295
- }
296
- /**
297
- * @description Get Action logs list
298
- * @tags action_logs
299
- * @name GetActionLogs
300
- * @summary Get Action logs list
301
- * @request POST:/v1/action-logs/list
302
- * @secure
303
- */ getActionLogs(getActionLogsDto, config) {
304
- return this.apiClient.request({
305
- ...config,
306
- url: `/v1/action-logs/list`,
307
- method: 'POST',
308
- data: getActionLogsDto,
309
- secure: true,
310
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
311
- responseType: 'json'
312
- });
313
- }
314
- }
315
-
316
-
317
- var $64de154218b7fbdb$exports = {};
318
-
319
- $parcel$export($64de154218b7fbdb$exports, "UmaAuthAppType", () => $64de154218b7fbdb$export$80a68721ef65174d);
320
- $parcel$export($64de154218b7fbdb$exports, "UmaAuthUserType", () => $64de154218b7fbdb$export$9e3be91ea0925e63);
321
- $parcel$export($64de154218b7fbdb$exports, "UmaResetPasswordType", () => $64de154218b7fbdb$export$4d8761baa197d101);
322
- $parcel$export($64de154218b7fbdb$exports, "UmaErrorCode", () => $64de154218b7fbdb$export$26e40f3b3a68dd88);
323
- $parcel$export($64de154218b7fbdb$exports, "UmaOption", () => $64de154218b7fbdb$export$b942b4f86682a31c);
324
- $parcel$export($64de154218b7fbdb$exports, "UmaActionTrigger", () => $64de154218b7fbdb$export$dd3d01a6c6dab020);
325
- $parcel$export($64de154218b7fbdb$exports, "UmaActionType", () => $64de154218b7fbdb$export$6a1481c139cb5523);
326
- $parcel$export($64de154218b7fbdb$exports, "UmaAuthProviderAppType", () => $64de154218b7fbdb$export$f225bf8d20c34dc4);
327
- $parcel$export($64de154218b7fbdb$exports, "UmaEndpointType", () => $64de154218b7fbdb$export$fbeeb34ec62b81a3);
328
- $parcel$export($64de154218b7fbdb$exports, "UmaEntityAccessType", () => $64de154218b7fbdb$export$d0740a1f11370fb3);
329
- $parcel$export($64de154218b7fbdb$exports, "UmaEntityName", () => $64de154218b7fbdb$export$1c13342d5e11f506);
330
- $parcel$export($64de154218b7fbdb$exports, "UmaPermissionAG", () => $64de154218b7fbdb$export$6cb5e83f5f5af956);
331
- $parcel$export($64de154218b7fbdb$exports, "UmaUserStatus", () => $64de154218b7fbdb$export$40c85964c9d60a16);
332
- $parcel$export($64de154218b7fbdb$exports, "UmaUserType", () => $64de154218b7fbdb$export$51b69238136d8bf1);
333
- $parcel$export($64de154218b7fbdb$exports, "UmaTenantSettingLabel", () => $64de154218b7fbdb$export$9eb6fa5a85b589e6);
334
- $parcel$export($64de154218b7fbdb$exports, "UmaAuthFormDtoResetPasswordTypeEnum", () => $64de154218b7fbdb$export$e652a4cb9330c8d2);
335
- $parcel$export($64de154218b7fbdb$exports, "UmaAuthFormSerializerResetPasswordTypeEnum", () => $64de154218b7fbdb$export$8d1aa71ae381a883);
336
- $parcel$export($64de154218b7fbdb$exports, "UmaB2BSendContactChangeCodeDtoTypeEnum", () => $64de154218b7fbdb$export$855c0abf639c0a2b);
337
- $parcel$export($64de154218b7fbdb$exports, "UmaB2CResetPasswordDtoResetTypeEnum", () => $64de154218b7fbdb$export$ee2e64a99304ec62);
338
- $parcel$export($64de154218b7fbdb$exports, "UmaB2CSendContactChangeCodeDtoTypeEnum", () => $64de154218b7fbdb$export$cb5ce7daabd2e17c);
339
- $parcel$export($64de154218b7fbdb$exports, "UmaB2CSendVerificationCodeDtoCodeTypeEnum", () => $64de154218b7fbdb$export$b6706226fff0ec2c);
340
- $parcel$export($64de154218b7fbdb$exports, "UmaCreateEndpointDtoMethodEnum", () => $64de154218b7fbdb$export$fe6e9eeb86b74e20);
341
- $parcel$export($64de154218b7fbdb$exports, "UmaCreateEndpointDtoTypeEnum", () => $64de154218b7fbdb$export$45c185db4ed17146);
342
- $parcel$export($64de154218b7fbdb$exports, "UmaCreateIdentityProviderDtoTypeEnum", () => $64de154218b7fbdb$export$98a2d76b8b98d939);
343
- $parcel$export($64de154218b7fbdb$exports, "UmaCreatePermissionDtoAssignmentGroupEnum", () => $64de154218b7fbdb$export$f2c9b083b701c041);
344
- $parcel$export($64de154218b7fbdb$exports, "UmaCreateRoleDtoAssignmentGroupEnum", () => $64de154218b7fbdb$export$8d399fefbd60de17);
345
- $parcel$export($64de154218b7fbdb$exports, "UmaCreateSecretNoteDtoTypeEnum", () => $64de154218b7fbdb$export$1185a2dff04b24a9);
346
- $parcel$export($64de154218b7fbdb$exports, "UmaEndpointMetadataDtoUserTypeEnum", () => $64de154218b7fbdb$export$dc5b15ad0821f43b);
347
- $parcel$export($64de154218b7fbdb$exports, "UmaEndpointSerializerMethodEnum", () => $64de154218b7fbdb$export$139725f1c32bb1b1);
348
- $parcel$export($64de154218b7fbdb$exports, "UmaGetB2CUsersListFiltersDtoShowOnlyEnum", () => $64de154218b7fbdb$export$b42b48ae4eee4675);
349
- $parcel$export($64de154218b7fbdb$exports, "UmaGetFirmsListFiltersDtoStatusesEnum", () => $64de154218b7fbdb$export$d860c2e62b63d49b);
350
- $parcel$export($64de154218b7fbdb$exports, "UmaGetIdentityProvidersListFiltersDtoTypesEnum", () => $64de154218b7fbdb$export$7da111135c500e8e);
351
- $parcel$export($64de154218b7fbdb$exports, "UmaGetUsersListFiltersDtoShowOnlyEnum", () => $64de154218b7fbdb$export$57978e26cf68bf29);
352
- $parcel$export($64de154218b7fbdb$exports, "UmaGetWebAuthnLoginChallengeDtoUserTypeEnum", () => $64de154218b7fbdb$export$cf1623cf2c62174d);
353
- $parcel$export($64de154218b7fbdb$exports, "UmaIdentityProviderSerializerTypeEnum", () => $64de154218b7fbdb$export$74fda118814b2c69);
354
- $parcel$export($64de154218b7fbdb$exports, "UmaLinkWatchmenUserToUmaDtoUmaUserTypeEnum", () => $64de154218b7fbdb$export$f0b113a2ec1676d9);
355
- $parcel$export($64de154218b7fbdb$exports, "UmaPermissionSerializerAssignmentGroupEnum", () => $64de154218b7fbdb$export$f336736d62d74184);
356
- $parcel$export($64de154218b7fbdb$exports, "UmaRevokeUserSessionsDtoUserTypeEnum", () => $64de154218b7fbdb$export$d52f1ee1d11bbf21);
357
- $parcel$export($64de154218b7fbdb$exports, "UmaSecretNoteSerializerTypeEnum", () => $64de154218b7fbdb$export$acb35be04555bc98);
358
- $parcel$export($64de154218b7fbdb$exports, "UmaSendB2BMfaCodeDtoTypeEnum", () => $64de154218b7fbdb$export$b58c500fbe7ba026);
359
- $parcel$export($64de154218b7fbdb$exports, "UmaSendB2CMfaCodeDtoTypeEnum", () => $64de154218b7fbdb$export$2296c353ecee8dca);
360
- $parcel$export($64de154218b7fbdb$exports, "UmaSendB2CResetPasswordCodeDtoCodeTypeEnum", () => $64de154218b7fbdb$export$dff8055bb7575170);
361
- $parcel$export($64de154218b7fbdb$exports, "UmaSendB2CResetPasswordCodeDtoResetTypeEnum", () => $64de154218b7fbdb$export$3de316bb8a940449);
362
- $parcel$export($64de154218b7fbdb$exports, "UmaSendResetPasswordCodeDtoTypeEnum", () => $64de154218b7fbdb$export$4dea8419eb7d9d00);
363
- $parcel$export($64de154218b7fbdb$exports, "UmaTenantSettingDtoLabelEnum", () => $64de154218b7fbdb$export$c415d7932d9aa8e4);
364
- $parcel$export($64de154218b7fbdb$exports, "UmaUpdateAuthAppDtoStatusEnum", () => $64de154218b7fbdb$export$50a533e71d27c8f3);
365
- $parcel$export($64de154218b7fbdb$exports, "UmaUpdateEndpointDtoMethodEnum", () => $64de154218b7fbdb$export$837c9c846d6ad015);
366
- $parcel$export($64de154218b7fbdb$exports, "UmaUpdateEndpointDtoTypeEnum", () => $64de154218b7fbdb$export$891f3642d487f81c);
367
- $parcel$export($64de154218b7fbdb$exports, "UmaUpdateFirmDtoStatusEnum", () => $64de154218b7fbdb$export$32d58a6fa29309a7);
368
- $parcel$export($64de154218b7fbdb$exports, "UmaUpdateIdentityProviderDtoTypeEnum", () => $64de154218b7fbdb$export$e297295319f353fb);
369
- $parcel$export($64de154218b7fbdb$exports, "UmaUpsertUserDtoTypeEnum", () => $64de154218b7fbdb$export$8be51d197d5d3e7);
370
- $parcel$export($64de154218b7fbdb$exports, "UmaVerifyContactDtoCodeTypeEnum", () => $64de154218b7fbdb$export$6d687bd5e60dd542);
371
- /* eslint-disable */ /* tslint:disable */ /*
372
- * ---------------------------------------------------------------
373
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
374
- * ## ##
375
- * ## AUTHOR: acacode ##
376
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
377
- * ---------------------------------------------------------------
378
- */ var $64de154218b7fbdb$export$80a68721ef65174d = /*#__PURE__*/ function(UmaAuthAppType) {
379
- UmaAuthAppType["EmailCodeAuthAppType"] = "email_code";
380
- UmaAuthAppType["SmsCodeAuthAppType"] = "sms_code";
381
- UmaAuthAppType["YubicoOTPAuthAppType"] = "yubico_otp";
382
- UmaAuthAppType["WebAuthnAuthAppType"] = "webauthn";
383
- UmaAuthAppType["TOTPAuthAppType"] = "totp";
384
- return UmaAuthAppType;
385
- }({});
386
- var $64de154218b7fbdb$export$9e3be91ea0925e63 = /*#__PURE__*/ function(UmaAuthUserType) {
387
- UmaAuthUserType["AllAuthUserType"] = "all";
388
- UmaAuthUserType["B2BAuthUserType"] = "b2b";
389
- UmaAuthUserType["B2CAuthUserType"] = "b2c";
390
- return UmaAuthUserType;
391
- }({});
392
- var $64de154218b7fbdb$export$4d8761baa197d101 = /*#__PURE__*/ function(UmaResetPasswordType) {
393
- UmaResetPasswordType["PasswordResetByContactCode"] = "by_contact_code";
394
- UmaResetPasswordType["PasswordResetByEmailLink"] = "by_email_link";
395
- return UmaResetPasswordType;
396
- }({});
397
- var $64de154218b7fbdb$export$26e40f3b3a68dd88 = /*#__PURE__*/ function(UmaErrorCode) {
398
- UmaErrorCode[UmaErrorCode["JSONValidationErr"] = 4000] = "JSONValidationErr";
399
- UmaErrorCode[UmaErrorCode["JSONReadErr"] = 4001] = "JSONReadErr";
400
- UmaErrorCode[UmaErrorCode["JSONParseErr"] = 4002] = "JSONParseErr";
401
- UmaErrorCode[UmaErrorCode["ForbiddenErr"] = 4003] = "ForbiddenErr";
402
- UmaErrorCode[UmaErrorCode["ForbiddenDueLimit"] = 4030] = "ForbiddenDueLimit";
403
- UmaErrorCode[UmaErrorCode["RecordNotFoundErr"] = 4004] = "RecordNotFoundErr";
404
- UmaErrorCode[UmaErrorCode["RecordAlreadyExistsErr"] = 4005] = "RecordAlreadyExistsErr";
405
- UmaErrorCode[UmaErrorCode["ImageValidationErr"] = 4006] = "ImageValidationErr";
406
- UmaErrorCode[UmaErrorCode["InappropriateImageErr"] = 4007] = "InappropriateImageErr";
407
- UmaErrorCode[UmaErrorCode["FaceNotFoundOnImageErr"] = 4008] = "FaceNotFoundOnImageErr";
408
- UmaErrorCode[UmaErrorCode["UnauthorizedErr"] = 4010] = "UnauthorizedErr";
409
- UmaErrorCode[UmaErrorCode["TokenRevokedErr"] = 4012] = "TokenRevokedErr";
410
- UmaErrorCode[UmaErrorCode["TokenNotActiveErr"] = 4013] = "TokenNotActiveErr";
411
- UmaErrorCode[UmaErrorCode["EmailNotVerifiedErr"] = 4015] = "EmailNotVerifiedErr";
412
- UmaErrorCode[UmaErrorCode["TokenParsingErr"] = 4016] = "TokenParsingErr";
413
- UmaErrorCode[UmaErrorCode["PhoneNotVerifiedErr"] = 4017] = "PhoneNotVerifiedErr";
414
- UmaErrorCode[UmaErrorCode["UUIDParseErr"] = 4026] = "UUIDParseErr";
415
- UmaErrorCode[UmaErrorCode["InvalidEmailOrPasswordOrTypeErr"] = 4028] = "InvalidEmailOrPasswordOrTypeErr";
416
- UmaErrorCode[UmaErrorCode["InvalidMfaCodeErr"] = 4128] = "InvalidMfaCodeErr";
417
- UmaErrorCode[UmaErrorCode["MfaRequiredErr"] = 4228] = "MfaRequiredErr";
418
- UmaErrorCode[UmaErrorCode["TokenVerificationErr"] = 4328] = "TokenVerificationErr";
419
- UmaErrorCode[UmaErrorCode["InvalidAPIKeyOrSecretErr"] = 4428] = "InvalidAPIKeyOrSecretErr";
420
- UmaErrorCode[UmaErrorCode["MfaAddingNotAllowedErr"] = 4528] = "MfaAddingNotAllowedErr";
421
- UmaErrorCode[UmaErrorCode["BranchRequestNotAllowed"] = 4103] = "BranchRequestNotAllowed";
422
- UmaErrorCode[UmaErrorCode["ForbiddenForUserTypeErr"] = 4203] = "ForbiddenForUserTypeErr";
423
- UmaErrorCode[UmaErrorCode["SecondForbiddenErr"] = 4031] = "SecondForbiddenErr";
424
- UmaErrorCode[UmaErrorCode["ThirdForbiddenErr"] = 4032] = "ThirdForbiddenErr";
425
- UmaErrorCode[UmaErrorCode["EntitiesChoiceNotAllowed"] = 4303] = "EntitiesChoiceNotAllowed";
426
- UmaErrorCode[UmaErrorCode["RecaptchaErr"] = 4403] = "RecaptchaErr";
427
- UmaErrorCode[UmaErrorCode["UpdateOfOldEntityStateErr"] = 4503] = "UpdateOfOldEntityStateErr";
428
- UmaErrorCode[UmaErrorCode["ChiefadminMutationErr"] = 4603] = "ChiefadminMutationErr";
429
- UmaErrorCode[UmaErrorCode["ChildEntitiesExistErr"] = 4703] = "ChildEntitiesExistErr";
430
- UmaErrorCode[UmaErrorCode["TenantActionForbiddenErr"] = 4803] = "TenantActionForbiddenErr";
431
- UmaErrorCode[UmaErrorCode["RBACManipulationErr"] = 4903] = "RBACManipulationErr";
432
- UmaErrorCode[UmaErrorCode["YubicoMaxKeysLimitReachedErr"] = 4113] = "YubicoMaxKeysLimitReachedErr";
433
- UmaErrorCode[UmaErrorCode["ConflictErr"] = 4090] = "ConflictErr";
434
- UmaErrorCode[UmaErrorCode["SecondFieldConflictErr"] = 4091] = "SecondFieldConflictErr";
435
- UmaErrorCode[UmaErrorCode["ThirdFieldConflictErr"] = 4092] = "ThirdFieldConflictErr";
436
- UmaErrorCode[UmaErrorCode["FourthFieldConflictErr"] = 4093] = "FourthFieldConflictErr";
437
- UmaErrorCode[UmaErrorCode["FifthFieldConflictErr"] = 4094] = "FifthFieldConflictErr";
438
- UmaErrorCode[UmaErrorCode["SixthFieldConflictErr"] = 4095] = "SixthFieldConflictErr";
439
- UmaErrorCode[UmaErrorCode["SeventhFieldConflictErr"] = 4096] = "SeventhFieldConflictErr";
440
- UmaErrorCode[UmaErrorCode["GoneErr"] = 4100] = "GoneErr";
441
- UmaErrorCode[UmaErrorCode["SecondGoneErr"] = 4101] = "SecondGoneErr";
442
- UmaErrorCode[UmaErrorCode["UnprocessableEntity"] = 4222] = "UnprocessableEntity";
443
- UmaErrorCode[UmaErrorCode["TooEarlyDuplicateRequest"] = 4250] = "TooEarlyDuplicateRequest";
444
- UmaErrorCode[UmaErrorCode["RateLimitErr"] = 4291] = "RateLimitErr";
445
- UmaErrorCode[UmaErrorCode["ForbiddenByFirmsStatusErr"] = 4292] = "ForbiddenByFirmsStatusErr";
446
- UmaErrorCode[UmaErrorCode["NotAcceptableError"] = 4600] = "NotAcceptableError";
447
- UmaErrorCode[UmaErrorCode["InternalServerErr"] = 5000] = "InternalServerErr";
448
- UmaErrorCode[UmaErrorCode["InvalidRequest"] = 6000] = "InvalidRequest";
449
- return UmaErrorCode;
450
- }({});
451
- var $64de154218b7fbdb$export$b942b4f86682a31c = /*#__PURE__*/ function(UmaOption) {
452
- UmaOption["SmsMfaOption"] = "sms";
453
- UmaOption["EmailMfaOption"] = "email";
454
- UmaOption["VoiceMfaOption"] = "voice";
455
- UmaOption["WebAuthnMfaOption"] = "webauthn";
456
- UmaOption["YubicoOTPMfaOption"] = "yubico_otp";
457
- UmaOption["TOTPMfaOption"] = "totp";
458
- return UmaOption;
459
- }({});
460
- var $64de154218b7fbdb$export$dd3d01a6c6dab020 = /*#__PURE__*/ function(UmaActionTrigger) {
461
- UmaActionTrigger["B2BUserTrigger"] = "b2b_user";
462
- UmaActionTrigger["OwnerUserTrigger"] = "owner_user";
463
- UmaActionTrigger["RegularMigrationsTrigger"] = "regular_migrations";
464
- UmaActionTrigger["DataMigrationsTrigger"] = "data_migrations";
465
- return UmaActionTrigger;
466
- }({});
467
- var $64de154218b7fbdb$export$6a1481c139cb5523 = /*#__PURE__*/ function(UmaActionType) {
468
- UmaActionType["CreateAction"] = "create";
469
- UmaActionType["UpdateAction"] = "update";
470
- UmaActionType["DeleteAction"] = "delete";
471
- UmaActionType["ResetPasswordAction"] = "reset_password";
472
- UmaActionType["RegistrationAction"] = "registration";
473
- UmaActionType["SettingsChangeAction"] = "settings_change";
474
- UmaActionType["AvatarChangeAction"] = "avatar_change";
475
- return UmaActionType;
476
- }({});
477
- var $64de154218b7fbdb$export$f225bf8d20c34dc4 = /*#__PURE__*/ function(UmaAuthProviderAppType) {
478
- UmaAuthProviderAppType["GoogleOAuth2Provider"] = "google-oauth2";
479
- UmaAuthProviderAppType["AppleIDOAuth2Provider"] = "apple-id";
480
- return UmaAuthProviderAppType;
481
- }({});
482
- var $64de154218b7fbdb$export$fbeeb34ec62b81a3 = /*#__PURE__*/ function(UmaEndpointType) {
483
- UmaEndpointType["RegularEndpoint"] = "regular";
484
- UmaEndpointType["DisplayOnlyEndpoint"] = "display_only";
485
- return UmaEndpointType;
486
- }({});
487
- var $64de154218b7fbdb$export$d0740a1f11370fb3 = /*#__PURE__*/ function(UmaEntityAccessType) {
488
- UmaEntityAccessType["GranularEntityAccessType"] = "granular";
489
- UmaEntityAccessType["HighLevelEntityAccessType"] = "high-level";
490
- return UmaEntityAccessType;
491
- }({});
492
- var $64de154218b7fbdb$export$1c13342d5e11f506 = /*#__PURE__*/ function(UmaEntityName) {
493
- UmaEntityName["B2BUsersEntity"] = "b2b_users";
494
- UmaEntityName["B2CUsersEntity"] = "b2c_users";
495
- UmaEntityName["RolesEntity"] = "roles";
496
- UmaEntityName["RoleTypesEntity"] = "role_types";
497
- UmaEntityName["PermissionsEntity"] = "permissions";
498
- UmaEntityName["MicroservicesEntity"] = "microservices";
499
- UmaEntityName["IdentityProvidersEntity"] = "identity_providers";
500
- UmaEntityName["FirmsEntity"] = "firms";
501
- UmaEntityName["EndpointsEntity"] = "endpoints";
502
- UmaEntityName["BranchesEntity"] = "branches";
503
- UmaEntityName["APIKeysEntity"] = "api_keys";
504
- return UmaEntityName;
505
- }({});
506
- var $64de154218b7fbdb$export$6cb5e83f5f5af956 = /*#__PURE__*/ function(UmaPermissionAG) {
507
- UmaPermissionAG["ChiefadminPermissionAG"] = "chiefadmin";
508
- UmaPermissionAG["SuperadminPermissionAG"] = "superadmin";
509
- UmaPermissionAG["B2BOnlyPermissionAG"] = "b2b_only";
510
- UmaPermissionAG["RegularPermissionAG"] = "regular";
511
- return UmaPermissionAG;
512
- }({});
513
- var $64de154218b7fbdb$export$40c85964c9d60a16 = /*#__PURE__*/ function(UmaUserStatus) {
514
- UmaUserStatus["ActiveUserStatus"] = "active";
515
- UmaUserStatus["BlockedUserStatus"] = "blocked";
516
- UmaUserStatus["ArchivedUserStatus"] = "archived";
517
- return UmaUserStatus;
518
- }({});
519
- var $64de154218b7fbdb$export$51b69238136d8bf1 = /*#__PURE__*/ function(UmaUserType) {
520
- UmaUserType["B2BUserType"] = "b2b";
521
- UmaUserType["SystemUserType"] = "system";
522
- UmaUserType["B2CUserType"] = "b2c";
523
- return UmaUserType;
524
- }({});
525
- var $64de154218b7fbdb$export$9eb6fa5a85b589e6 = /*#__PURE__*/ function(UmaTenantSettingLabel) {
526
- UmaTenantSettingLabel["StorePasswordHistoryForDays"] = "store_password_history_for_days";
527
- UmaTenantSettingLabel["ResetPasswordIfUserInactiveForDays"] = "reset_password_if_user_inactive_for_days";
528
- UmaTenantSettingLabel["PeriodicallyResetPasswordAfterDays"] = "periodically_reset_password_after_days";
529
- return UmaTenantSettingLabel;
530
- }({});
531
- var $64de154218b7fbdb$export$e652a4cb9330c8d2 = /*#__PURE__*/ function(UmaAuthFormDtoResetPasswordTypeEnum) {
532
- UmaAuthFormDtoResetPasswordTypeEnum["ByContactCode"] = "by_contact_code";
533
- UmaAuthFormDtoResetPasswordTypeEnum["ByEmailLink"] = "by_email_link";
534
- return UmaAuthFormDtoResetPasswordTypeEnum;
535
- }({});
536
- var $64de154218b7fbdb$export$8d1aa71ae381a883 = /*#__PURE__*/ function(UmaAuthFormSerializerResetPasswordTypeEnum) {
537
- UmaAuthFormSerializerResetPasswordTypeEnum["ByContactCode"] = "by_contact_code";
538
- UmaAuthFormSerializerResetPasswordTypeEnum["ByEmailLink"] = "by_email_link";
539
- return UmaAuthFormSerializerResetPasswordTypeEnum;
540
- }({});
541
- var $64de154218b7fbdb$export$855c0abf639c0a2b = /*#__PURE__*/ function(UmaB2BSendContactChangeCodeDtoTypeEnum) {
542
- UmaB2BSendContactChangeCodeDtoTypeEnum["Email"] = "email";
543
- UmaB2BSendContactChangeCodeDtoTypeEnum["Voice"] = "voice";
544
- UmaB2BSendContactChangeCodeDtoTypeEnum["Sms"] = "sms";
545
- return UmaB2BSendContactChangeCodeDtoTypeEnum;
546
- }({});
547
- var $64de154218b7fbdb$export$ee2e64a99304ec62 = /*#__PURE__*/ function(UmaB2CResetPasswordDtoResetTypeEnum) {
548
- UmaB2CResetPasswordDtoResetTypeEnum["ByContactCode"] = "by_contact_code";
549
- UmaB2CResetPasswordDtoResetTypeEnum["ByEmailLink"] = "by_email_link";
550
- return UmaB2CResetPasswordDtoResetTypeEnum;
551
- }({});
552
- var $64de154218b7fbdb$export$cb5ce7daabd2e17c = /*#__PURE__*/ function(UmaB2CSendContactChangeCodeDtoTypeEnum) {
553
- UmaB2CSendContactChangeCodeDtoTypeEnum["Email"] = "email";
554
- UmaB2CSendContactChangeCodeDtoTypeEnum["Voice"] = "voice";
555
- UmaB2CSendContactChangeCodeDtoTypeEnum["Sms"] = "sms";
556
- return UmaB2CSendContactChangeCodeDtoTypeEnum;
557
- }({});
558
- var $64de154218b7fbdb$export$b6706226fff0ec2c = /*#__PURE__*/ function(UmaB2CSendVerificationCodeDtoCodeTypeEnum) {
559
- UmaB2CSendVerificationCodeDtoCodeTypeEnum["Email"] = "email";
560
- UmaB2CSendVerificationCodeDtoCodeTypeEnum["Voice"] = "voice";
561
- UmaB2CSendVerificationCodeDtoCodeTypeEnum["Sms"] = "sms";
562
- return UmaB2CSendVerificationCodeDtoCodeTypeEnum;
563
- }({});
564
- var $64de154218b7fbdb$export$fe6e9eeb86b74e20 = /*#__PURE__*/ function(UmaCreateEndpointDtoMethodEnum) {
565
- UmaCreateEndpointDtoMethodEnum["POST"] = "POST";
566
- UmaCreateEndpointDtoMethodEnum["PUT"] = "PUT";
567
- UmaCreateEndpointDtoMethodEnum["DELETE"] = "DELETE";
568
- UmaCreateEndpointDtoMethodEnum["GET"] = "GET";
569
- UmaCreateEndpointDtoMethodEnum["PATCH"] = "PATCH";
570
- UmaCreateEndpointDtoMethodEnum["ALL"] = "ALL";
571
- return UmaCreateEndpointDtoMethodEnum;
572
- }({});
573
- var $64de154218b7fbdb$export$45c185db4ed17146 = /*#__PURE__*/ function(UmaCreateEndpointDtoTypeEnum) {
574
- UmaCreateEndpointDtoTypeEnum["Regular"] = "regular";
575
- UmaCreateEndpointDtoTypeEnum["DisplayOnly"] = "display_only";
576
- return UmaCreateEndpointDtoTypeEnum;
577
- }({});
578
- var $64de154218b7fbdb$export$98a2d76b8b98d939 = /*#__PURE__*/ function(UmaCreateIdentityProviderDtoTypeEnum) {
579
- UmaCreateIdentityProviderDtoTypeEnum["Okta"] = "okta";
580
- return UmaCreateIdentityProviderDtoTypeEnum;
581
- }({});
582
- var $64de154218b7fbdb$export$f2c9b083b701c041 = /*#__PURE__*/ function(UmaCreatePermissionDtoAssignmentGroupEnum) {
583
- UmaCreatePermissionDtoAssignmentGroupEnum["Regular"] = "regular";
584
- UmaCreatePermissionDtoAssignmentGroupEnum["Superadmin"] = "superadmin";
585
- UmaCreatePermissionDtoAssignmentGroupEnum["B2BOnly"] = "b2b_only";
586
- return UmaCreatePermissionDtoAssignmentGroupEnum;
587
- }({});
588
- var $64de154218b7fbdb$export$8d399fefbd60de17 = /*#__PURE__*/ function(UmaCreateRoleDtoAssignmentGroupEnum) {
589
- UmaCreateRoleDtoAssignmentGroupEnum["Regular"] = "regular";
590
- UmaCreateRoleDtoAssignmentGroupEnum["Superadmin"] = "superadmin";
591
- UmaCreateRoleDtoAssignmentGroupEnum["B2BOnly"] = "b2b_only";
592
- return UmaCreateRoleDtoAssignmentGroupEnum;
593
- }({});
594
- var $64de154218b7fbdb$export$1185a2dff04b24a9 = /*#__PURE__*/ function(UmaCreateSecretNoteDtoTypeEnum) {
595
- UmaCreateSecretNoteDtoTypeEnum["Password"] = "password";
596
- return UmaCreateSecretNoteDtoTypeEnum;
597
- }({});
598
- var $64de154218b7fbdb$export$dc5b15ad0821f43b = /*#__PURE__*/ function(UmaEndpointMetadataDtoUserTypeEnum) {
599
- UmaEndpointMetadataDtoUserTypeEnum["B2B"] = "b2b";
600
- UmaEndpointMetadataDtoUserTypeEnum["B2C"] = "b2c";
601
- return UmaEndpointMetadataDtoUserTypeEnum;
602
- }({});
603
- var $64de154218b7fbdb$export$139725f1c32bb1b1 = /*#__PURE__*/ function(UmaEndpointSerializerMethodEnum) {
604
- UmaEndpointSerializerMethodEnum["POST"] = "POST";
605
- UmaEndpointSerializerMethodEnum["PUT"] = "PUT";
606
- UmaEndpointSerializerMethodEnum["DELETE"] = "DELETE";
607
- UmaEndpointSerializerMethodEnum["GET"] = "GET";
608
- UmaEndpointSerializerMethodEnum["PATCH"] = "PATCH";
609
- UmaEndpointSerializerMethodEnum["ALL"] = "ALL";
610
- return UmaEndpointSerializerMethodEnum;
611
- }({});
612
- var $64de154218b7fbdb$export$b42b48ae4eee4675 = /*#__PURE__*/ function(UmaGetB2CUsersListFiltersDtoShowOnlyEnum) {
613
- UmaGetB2CUsersListFiltersDtoShowOnlyEnum["Admin"] = "admin";
614
- UmaGetB2CUsersListFiltersDtoShowOnlyEnum["BranchAdmin"] = "branch_admin";
615
- UmaGetB2CUsersListFiltersDtoShowOnlyEnum["Compliance"] = "compliance";
616
- return UmaGetB2CUsersListFiltersDtoShowOnlyEnum;
617
- }({});
618
- var $64de154218b7fbdb$export$d860c2e62b63d49b = /*#__PURE__*/ function(UmaGetFirmsListFiltersDtoStatusesEnum) {
619
- UmaGetFirmsListFiltersDtoStatusesEnum["InProgress"] = "in_progress";
620
- UmaGetFirmsListFiltersDtoStatusesEnum["Active"] = "active";
621
- UmaGetFirmsListFiltersDtoStatusesEnum["Suspended"] = "suspended";
622
- UmaGetFirmsListFiltersDtoStatusesEnum["Deleted"] = "deleted";
623
- return UmaGetFirmsListFiltersDtoStatusesEnum;
624
- }({});
625
- var $64de154218b7fbdb$export$7da111135c500e8e = /*#__PURE__*/ function(UmaGetIdentityProvidersListFiltersDtoTypesEnum) {
626
- UmaGetIdentityProvidersListFiltersDtoTypesEnum["Okta"] = "okta";
627
- return UmaGetIdentityProvidersListFiltersDtoTypesEnum;
628
- }({});
629
- var $64de154218b7fbdb$export$57978e26cf68bf29 = /*#__PURE__*/ function(UmaGetUsersListFiltersDtoShowOnlyEnum) {
630
- UmaGetUsersListFiltersDtoShowOnlyEnum["Admin"] = "admin";
631
- UmaGetUsersListFiltersDtoShowOnlyEnum["BranchAdmin"] = "branch_admin";
632
- UmaGetUsersListFiltersDtoShowOnlyEnum["Compliance"] = "compliance";
633
- return UmaGetUsersListFiltersDtoShowOnlyEnum;
634
- }({});
635
- var $64de154218b7fbdb$export$cf1623cf2c62174d = /*#__PURE__*/ function(UmaGetWebAuthnLoginChallengeDtoUserTypeEnum) {
636
- UmaGetWebAuthnLoginChallengeDtoUserTypeEnum["B2B"] = "b2b";
637
- UmaGetWebAuthnLoginChallengeDtoUserTypeEnum["B2C"] = "b2c";
638
- return UmaGetWebAuthnLoginChallengeDtoUserTypeEnum;
639
- }({});
640
- var $64de154218b7fbdb$export$74fda118814b2c69 = /*#__PURE__*/ function(UmaIdentityProviderSerializerTypeEnum) {
641
- UmaIdentityProviderSerializerTypeEnum["Okta"] = "okta";
642
- return UmaIdentityProviderSerializerTypeEnum;
643
- }({});
644
- var $64de154218b7fbdb$export$f0b113a2ec1676d9 = /*#__PURE__*/ function(UmaLinkWatchmenUserToUmaDtoUmaUserTypeEnum) {
645
- UmaLinkWatchmenUserToUmaDtoUmaUserTypeEnum["B2B"] = "b2b";
646
- UmaLinkWatchmenUserToUmaDtoUmaUserTypeEnum["B2C"] = "b2c";
647
- return UmaLinkWatchmenUserToUmaDtoUmaUserTypeEnum;
648
- }({});
649
- var $64de154218b7fbdb$export$f336736d62d74184 = /*#__PURE__*/ function(UmaPermissionSerializerAssignmentGroupEnum) {
650
- UmaPermissionSerializerAssignmentGroupEnum["Regular"] = "regular";
651
- UmaPermissionSerializerAssignmentGroupEnum["Chiefadmin"] = "chiefadmin";
652
- UmaPermissionSerializerAssignmentGroupEnum["Superadmin"] = "superadmin";
653
- return UmaPermissionSerializerAssignmentGroupEnum;
654
- }({});
655
- var $64de154218b7fbdb$export$d52f1ee1d11bbf21 = /*#__PURE__*/ function(UmaRevokeUserSessionsDtoUserTypeEnum) {
656
- UmaRevokeUserSessionsDtoUserTypeEnum["B2B"] = "b2b";
657
- UmaRevokeUserSessionsDtoUserTypeEnum["B2C"] = "b2c";
658
- return UmaRevokeUserSessionsDtoUserTypeEnum;
659
- }({});
660
- var $64de154218b7fbdb$export$acb35be04555bc98 = /*#__PURE__*/ function(UmaSecretNoteSerializerTypeEnum) {
661
- UmaSecretNoteSerializerTypeEnum["Password"] = "password";
662
- return UmaSecretNoteSerializerTypeEnum;
663
- }({});
664
- var $64de154218b7fbdb$export$b58c500fbe7ba026 = /*#__PURE__*/ function(UmaSendB2BMfaCodeDtoTypeEnum) {
665
- UmaSendB2BMfaCodeDtoTypeEnum["Email"] = "email";
666
- UmaSendB2BMfaCodeDtoTypeEnum["Voice"] = "voice";
667
- UmaSendB2BMfaCodeDtoTypeEnum["Sms"] = "sms";
668
- return UmaSendB2BMfaCodeDtoTypeEnum;
669
- }({});
670
- var $64de154218b7fbdb$export$2296c353ecee8dca = /*#__PURE__*/ function(UmaSendB2CMfaCodeDtoTypeEnum) {
671
- UmaSendB2CMfaCodeDtoTypeEnum["Email"] = "email";
672
- UmaSendB2CMfaCodeDtoTypeEnum["Voice"] = "voice";
673
- UmaSendB2CMfaCodeDtoTypeEnum["Sms"] = "sms";
674
- return UmaSendB2CMfaCodeDtoTypeEnum;
675
- }({});
676
- var $64de154218b7fbdb$export$dff8055bb7575170 = /*#__PURE__*/ function(UmaSendB2CResetPasswordCodeDtoCodeTypeEnum) {
677
- UmaSendB2CResetPasswordCodeDtoCodeTypeEnum["Email"] = "email";
678
- UmaSendB2CResetPasswordCodeDtoCodeTypeEnum["Voice"] = "voice";
679
- UmaSendB2CResetPasswordCodeDtoCodeTypeEnum["Sms"] = "sms";
680
- return UmaSendB2CResetPasswordCodeDtoCodeTypeEnum;
681
- }({});
682
- var $64de154218b7fbdb$export$3de316bb8a940449 = /*#__PURE__*/ function(UmaSendB2CResetPasswordCodeDtoResetTypeEnum) {
683
- UmaSendB2CResetPasswordCodeDtoResetTypeEnum["ByContactCode"] = "by_contact_code";
684
- UmaSendB2CResetPasswordCodeDtoResetTypeEnum["ByEmailLink"] = "by_email_link";
685
- return UmaSendB2CResetPasswordCodeDtoResetTypeEnum;
686
- }({});
687
- var $64de154218b7fbdb$export$4dea8419eb7d9d00 = /*#__PURE__*/ function(UmaSendResetPasswordCodeDtoTypeEnum) {
688
- UmaSendResetPasswordCodeDtoTypeEnum["Email"] = "email";
689
- UmaSendResetPasswordCodeDtoTypeEnum["Voice"] = "voice";
690
- UmaSendResetPasswordCodeDtoTypeEnum["Sms"] = "sms";
691
- return UmaSendResetPasswordCodeDtoTypeEnum;
692
- }({});
693
- var $64de154218b7fbdb$export$c415d7932d9aa8e4 = /*#__PURE__*/ function(UmaTenantSettingDtoLabelEnum) {
694
- UmaTenantSettingDtoLabelEnum["StorePasswordHistoryForDays"] = "store_password_history_for_days";
695
- UmaTenantSettingDtoLabelEnum["ResetPasswordIfUserInactiveForDays"] = "reset_password_if_user_inactive_for_days";
696
- UmaTenantSettingDtoLabelEnum["PeriodicallyResetPasswordAfterDays"] = "periodically_reset_password_after_days";
697
- return UmaTenantSettingDtoLabelEnum;
698
- }({});
699
- var $64de154218b7fbdb$export$50a533e71d27c8f3 = /*#__PURE__*/ function(UmaUpdateAuthAppDtoStatusEnum) {
700
- UmaUpdateAuthAppDtoStatusEnum["Active"] = "active";
701
- UmaUpdateAuthAppDtoStatusEnum["Disabled"] = "disabled";
702
- return UmaUpdateAuthAppDtoStatusEnum;
703
- }({});
704
- var $64de154218b7fbdb$export$837c9c846d6ad015 = /*#__PURE__*/ function(UmaUpdateEndpointDtoMethodEnum) {
705
- UmaUpdateEndpointDtoMethodEnum["POST"] = "POST";
706
- UmaUpdateEndpointDtoMethodEnum["PUT"] = "PUT";
707
- UmaUpdateEndpointDtoMethodEnum["DELETE"] = "DELETE";
708
- UmaUpdateEndpointDtoMethodEnum["GET"] = "GET";
709
- UmaUpdateEndpointDtoMethodEnum["PATCH"] = "PATCH";
710
- UmaUpdateEndpointDtoMethodEnum["ALL"] = "ALL";
711
- return UmaUpdateEndpointDtoMethodEnum;
712
- }({});
713
- var $64de154218b7fbdb$export$891f3642d487f81c = /*#__PURE__*/ function(UmaUpdateEndpointDtoTypeEnum) {
714
- UmaUpdateEndpointDtoTypeEnum["Regular"] = "regular";
715
- UmaUpdateEndpointDtoTypeEnum["DisplayOnly"] = "display_only";
716
- return UmaUpdateEndpointDtoTypeEnum;
717
- }({});
718
- var $64de154218b7fbdb$export$32d58a6fa29309a7 = /*#__PURE__*/ function(UmaUpdateFirmDtoStatusEnum) {
719
- UmaUpdateFirmDtoStatusEnum["InProgress"] = "in_progress";
720
- UmaUpdateFirmDtoStatusEnum["Active"] = "active";
721
- UmaUpdateFirmDtoStatusEnum["Suspended"] = "suspended";
722
- UmaUpdateFirmDtoStatusEnum["Deleted"] = "deleted";
723
- return UmaUpdateFirmDtoStatusEnum;
724
- }({});
725
- var $64de154218b7fbdb$export$e297295319f353fb = /*#__PURE__*/ function(UmaUpdateIdentityProviderDtoTypeEnum) {
726
- UmaUpdateIdentityProviderDtoTypeEnum["Okta"] = "okta";
727
- return UmaUpdateIdentityProviderDtoTypeEnum;
728
- }({});
729
- var $64de154218b7fbdb$export$8be51d197d5d3e7 = /*#__PURE__*/ function(UmaUpsertUserDtoTypeEnum) {
730
- UmaUpsertUserDtoTypeEnum["B2B"] = "b2b";
731
- UmaUpsertUserDtoTypeEnum["B2C"] = "b2c";
732
- return UmaUpsertUserDtoTypeEnum;
733
- }({});
734
- var $64de154218b7fbdb$export$6d687bd5e60dd542 = /*#__PURE__*/ function(UmaVerifyContactDtoCodeTypeEnum) {
735
- UmaVerifyContactDtoCodeTypeEnum["Email"] = "email";
736
- UmaVerifyContactDtoCodeTypeEnum["Voice"] = "voice";
737
- UmaVerifyContactDtoCodeTypeEnum["Sms"] = "sms";
738
- return UmaVerifyContactDtoCodeTypeEnum;
739
- }({});
740
-
741
-
742
- var $9afc25bb6382508d$exports = {};
743
-
744
- $parcel$export($9afc25bb6382508d$exports, "AuthApps", () => $9afc25bb6382508d$export$d3eceb771169d266);
745
- /* eslint-disable */ /* tslint:disable */ /*
746
- * ---------------------------------------------------------------
747
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
748
- * ## ##
749
- * ## AUTHOR: acacode ##
750
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
751
- * ---------------------------------------------------------------
752
- */
753
-
754
- class $9afc25bb6382508d$export$d3eceb771169d266 {
755
- constructor(apiClient){
756
- this.apiClient = apiClient;
757
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
758
- }
759
- /**
760
- * @description Get auth apps
761
- * @tags auth_apps
762
- * @name Get
763
- * @summary Get auth apps
764
- * @request GET:/v1/auth-apps
765
- * @secure
766
- */ get(config) {
767
- return this.apiClient.request({
768
- ...config,
769
- url: `/v1/auth-apps`,
770
- method: 'GET',
771
- secure: true,
772
- responseType: 'json'
773
- });
774
- }
775
- /**
776
- * @description Delete auth apps
777
- * @tags auth_apps
778
- * @name DeleteMany
779
- * @summary Delete auth apps
780
- * @request DELETE:/v1/auth-apps
781
- * @secure
782
- */ deleteMany(deleteAuthAppsDto, config) {
783
- return this.apiClient.request({
784
- ...config,
785
- url: `/v1/auth-apps`,
786
- method: 'DELETE',
787
- data: deleteAuthAppsDto,
788
- secure: true,
789
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
790
- });
791
- }
792
- /**
793
- * @description Get TOTP registration QR
794
- * @tags auth_apps
795
- * @name GetRegistrationQr
796
- * @summary Get TOTP registration QR
797
- * @request POST:/v1/auth-apps/totp/registration/qr
798
- * @secure
799
- */ getRegistrationQr(getTotpQRDto, config) {
800
- return this.apiClient.request({
801
- ...config,
802
- url: `/v1/auth-apps/totp/registration/qr`,
803
- method: 'POST',
804
- data: getTotpQRDto,
805
- secure: true,
806
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
807
- });
808
- }
809
- /**
810
- * @description Finish TOTP registration
811
- * @tags auth_apps
812
- * @name FinishRegistration
813
- * @summary Finish TOTP registration
814
- * @request POST:/v1/auth-apps/totp/registration/response
815
- * @secure
816
- */ finishRegistration(finishTOTPRegistrationDto, config) {
817
- return this.apiClient.request({
818
- ...config,
819
- url: `/v1/auth-apps/totp/registration/response`,
820
- method: 'POST',
821
- data: finishTOTPRegistrationDto,
822
- secure: true,
823
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
824
- responseType: 'json'
825
- });
826
- }
827
- /**
828
- * @description Get WebAuthn login challenge
829
- * @tags auth_apps
830
- * @name GetLoginChallenge
831
- * @summary Get WebAuthn login challenge
832
- * @request POST:/v1/auth-apps/webauthn/login/request
833
- */ getLoginChallenge(getWebAuthnLoginChallengeDto, config) {
834
- return this.apiClient.request({
835
- ...config,
836
- url: `/v1/auth-apps/webauthn/login/request`,
837
- method: 'POST',
838
- data: getWebAuthnLoginChallengeDto,
839
- secure: false,
840
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
841
- responseType: 'json'
842
- });
843
- }
844
- /**
845
- * @description Get WebAuthn register challenge
846
- * @tags auth_apps
847
- * @name GetRegisterChallenge
848
- * @summary Get WebAuthn register challenge
849
- * @request POST:/v1/auth-apps/webauthn/registration/request
850
- * @secure
851
- */ getRegisterChallenge(config) {
852
- return this.apiClient.request({
853
- ...config,
854
- url: `/v1/auth-apps/webauthn/registration/request`,
855
- method: 'POST',
856
- secure: true,
857
- responseType: 'json'
858
- });
859
- }
860
- /**
861
- * @description Finish WebAuthn credential registration
862
- * @tags auth_apps
863
- * @name FinishCredentialRegistration
864
- * @summary Finish WebAuthn credential registration
865
- * @request POST:/v1/auth-apps/webauthn/registration/response
866
- * @secure
867
- */ finishCredentialRegistration(webAuthnRegistrationSolutionDto, config) {
868
- return this.apiClient.request({
869
- ...config,
870
- url: `/v1/auth-apps/webauthn/registration/response`,
871
- method: 'POST',
872
- data: webAuthnRegistrationSolutionDto,
873
- secure: true,
874
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
875
- });
876
- }
877
- /**
878
- * @description Register Yubico OTP Key
879
- * @tags auth_apps
880
- * @name Register
881
- * @summary Register Yubico OTP Key
882
- * @request POST:/v1/auth-apps/yubico/otp/registration
883
- * @secure
884
- */ register(yubicoOTPDto, config) {
885
- return this.apiClient.request({
886
- ...config,
887
- url: `/v1/auth-apps/yubico/otp/registration`,
888
- method: 'POST',
889
- data: yubicoOTPDto,
890
- secure: true,
891
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
892
- });
893
- }
894
- /**
895
- * @description Update auth app
896
- * @tags auth_apps
897
- * @name Update
898
- * @summary Update auth app
899
- * @request PUT:/v1/auth-apps/{id}
900
- * @secure
901
- */ update(id, updateAuthAppDto, config) {
902
- return this.apiClient.request({
903
- ...config,
904
- url: `/v1/auth-apps/${id}`,
905
- method: 'PUT',
906
- data: updateAuthAppDto,
907
- secure: true,
908
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
909
- responseType: 'json'
910
- });
911
- }
912
- }
913
-
914
-
915
- var $03cfd804b3d9aa9d$exports = {};
916
-
917
- $parcel$export($03cfd804b3d9aa9d$exports, "AuthForms", () => $03cfd804b3d9aa9d$export$11ae43b56f3f836c);
918
- /* eslint-disable */ /* tslint:disable */ /*
919
- * ---------------------------------------------------------------
920
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
921
- * ## ##
922
- * ## AUTHOR: acacode ##
923
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
924
- * ---------------------------------------------------------------
925
- */
926
-
927
- class $03cfd804b3d9aa9d$export$11ae43b56f3f836c {
928
- constructor(apiClient){
929
- this.apiClient = apiClient;
930
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
931
- }
932
- /**
933
- * @description Create Auth Form
934
- * @tags auth_forms
935
- * @name Create
936
- * @summary Create Auth Form
937
- * @request POST:/v1/auth-forms
938
- * @secure
939
- */ create(authFormDto, config) {
940
- return this.apiClient.request({
941
- ...config,
942
- url: `/v1/auth-forms`,
943
- method: 'POST',
944
- data: authFormDto,
945
- secure: true,
946
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
947
- responseType: 'json'
948
- });
949
- }
950
- /**
951
- * @description Delete Auth Forms by ids
952
- * @tags auth_forms
953
- * @name DeleteMany
954
- * @summary Delete Auth Forms by ids
955
- * @request DELETE:/v1/auth-forms
956
- * @secure
957
- */ deleteMany(deleteAuthFormsDto, config) {
958
- return this.apiClient.request({
959
- ...config,
960
- url: `/v1/auth-forms`,
961
- method: 'DELETE',
962
- data: deleteAuthFormsDto,
963
- secure: true,
964
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
965
- });
966
- }
967
- /**
968
- * @description Get Auth Forms with pagination. Available sort fields are `id, branch_id, slug, created_at, updated_at`. Search is performed by slug field
969
- * @tags auth_forms
970
- * @name Get
971
- * @summary Get Auth Forms with pagination
972
- * @request POST:/v1/auth-forms/list
973
- * @secure
974
- */ get(getAuthFormListDto, config) {
975
- return this.apiClient.request({
976
- ...config,
977
- url: `/v1/auth-forms/list`,
978
- method: 'POST',
979
- data: getAuthFormListDto,
980
- secure: true,
981
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
982
- responseType: 'json'
983
- });
984
- }
985
- /**
986
- * @description Get Auth Forms by slug
987
- * @tags auth_forms
988
- * @name GetBySlug
989
- * @summary Get Auth Forms by slug
990
- * @request GET:/v1/auth-forms/public/{slug}
991
- */ getBySlug(slug, config) {
992
- return this.apiClient.request({
993
- ...config,
994
- url: `/v1/auth-forms/public/${slug}`,
995
- method: 'GET',
996
- secure: false,
997
- responseType: 'json'
998
- });
999
- }
1000
- /**
1001
- * @description Get Auth Forms by id
1002
- * @tags auth_forms
1003
- * @name GetById
1004
- * @summary Get Auth Forms by id
1005
- * @request GET:/v1/auth-forms/{id}
1006
- * @secure
1007
- */ getById(id, config) {
1008
- return this.apiClient.request({
1009
- ...config,
1010
- url: `/v1/auth-forms/${id}`,
1011
- method: 'GET',
1012
- secure: true,
1013
- responseType: 'json'
1014
- });
1015
- }
1016
- /**
1017
- * @description Update Auth Form record
1018
- * @tags auth_forms
1019
- * @name Update
1020
- * @summary Update Auth Form record
1021
- * @request PUT:/v1/auth-forms/{id}
1022
- * @secure
1023
- */ update(id, authFormDto, config) {
1024
- return this.apiClient.request({
1025
- ...config,
1026
- url: `/v1/auth-forms/${id}`,
1027
- method: 'PUT',
1028
- data: authFormDto,
1029
- secure: true,
1030
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1031
- responseType: 'json'
1032
- });
1033
- }
1034
- }
1035
-
1036
-
1037
- var $9d5428c2d0a8567e$exports = {};
1038
-
1039
- $parcel$export($9d5428c2d0a8567e$exports, "B2BAuth", () => $9d5428c2d0a8567e$export$d0994445e90c353b);
1040
- /* eslint-disable */ /* tslint:disable */ /*
1041
- * ---------------------------------------------------------------
1042
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1043
- * ## ##
1044
- * ## AUTHOR: acacode ##
1045
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1046
- * ---------------------------------------------------------------
1047
- */
1048
-
1049
- class $9d5428c2d0a8567e$export$d0994445e90c353b {
1050
- constructor(apiClient){
1051
- this.apiClient = apiClient;
1052
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
1053
- }
1054
- /**
1055
- * @description Get current B2B user info by access token.
1056
- * @tags b2b_auth
1057
- * @name GetCurrent
1058
- * @summary Get current B2B user info by access token
1059
- * @request GET:/v1/auth/b2b/current
1060
- * @secure
1061
- */ getCurrent(config) {
1062
- return this.apiClient.request({
1063
- ...config,
1064
- url: `/v1/auth/b2b/current`,
1065
- method: 'GET',
1066
- secure: true,
1067
- responseType: 'json'
1068
- });
1069
- }
1070
- /**
1071
- * @description Login B2B user by API Keys
1072
- * @tags b2b_auth
1073
- * @name ApiKeysLogin
1074
- * @summary Login B2B user by API Keys
1075
- * @request POST:/v1/auth/b2b/login/api-keys
1076
- */ apiKeysLogin(apiKeysLoginParams, config) {
1077
- return this.apiClient.request({
1078
- ...config,
1079
- url: `/v1/auth/b2b/login/api-keys`,
1080
- method: 'POST',
1081
- data: apiKeysLoginParams,
1082
- secure: false,
1083
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1084
- responseType: 'json'
1085
- });
1086
- }
1087
- /**
1088
- * @description Login B2B user by email/password.
1089
- * @tags b2b_auth
1090
- * @name BasicLogin
1091
- * @summary Login B2B user by email/password
1092
- * @request POST:/v1/auth/b2b/login/basic
1093
- */ basicLogin(basicLoginParams, headers, config) {
1094
- return this.apiClient.request({
1095
- ...config,
1096
- url: `/v1/auth/b2b/login/basic`,
1097
- method: 'POST',
1098
- data: basicLoginParams,
1099
- secure: false,
1100
- headers: headers,
1101
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1102
- responseType: 'json'
1103
- });
1104
- }
1105
- /**
1106
- * @description logout from B2B user session
1107
- * @tags b2b_auth
1108
- * @name Logout
1109
- * @summary logout from B2B user session
1110
- * @request DELETE:/v1/auth/b2b/logout
1111
- */ logout(B2BLogoutParams, config) {
1112
- return this.apiClient.request({
1113
- ...config,
1114
- url: `/v1/auth/b2b/logout`,
1115
- method: 'DELETE',
1116
- data: B2BLogoutParams,
1117
- secure: false,
1118
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
1119
- });
1120
- }
1121
- /**
1122
- * @description Refresh B2B user token pair
1123
- * @tags b2b_auth
1124
- * @name RefreshTokens
1125
- * @summary Refresh B2B user token pair
1126
- * @request POST:/v1/auth/b2b/refresh
1127
- */ refreshTokens(B2BRefreshParams, config) {
1128
- return this.apiClient.request({
1129
- ...config,
1130
- url: `/v1/auth/b2b/refresh`,
1131
- method: 'POST',
1132
- data: B2BRefreshParams,
1133
- secure: false,
1134
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1135
- responseType: 'json'
1136
- });
1137
- }
1138
- /**
1139
- * @description Reset B2B user password
1140
- * @tags b2b_auth
1141
- * @name ResetPassword
1142
- * @summary Reset B2B user password
1143
- * @request PUT:/v1/auth/b2b/reset-password
1144
- */ resetPassword(B2BResetPasswordParams, headers, config) {
1145
- return this.apiClient.request({
1146
- ...config,
1147
- url: `/v1/auth/b2b/reset-password`,
1148
- method: 'PUT',
1149
- data: B2BResetPasswordParams,
1150
- secure: false,
1151
- headers: headers,
1152
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1153
- responseType: 'json'
1154
- });
1155
- }
1156
- /**
1157
- * @description Send MFA code for B2B user
1158
- * @tags b2b_auth
1159
- * @name SendMfaCode
1160
- * @summary Send MFA code for B2B user
1161
- * @request PUT:/v1/auth/b2b/send-mfa-code
1162
- */ sendMfaCode(SendB2BMfaCodeDto, config) {
1163
- return this.apiClient.request({
1164
- ...config,
1165
- url: `/v1/auth/b2b/send-mfa-code`,
1166
- method: 'PUT',
1167
- data: SendB2BMfaCodeDto,
1168
- secure: false,
1169
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
1170
- });
1171
- }
1172
- /**
1173
- * @description Send reset password code for B2B user
1174
- * @tags b2b_auth
1175
- * @name SendResetPasswordCode
1176
- * @summary Send reset password code for B2B user
1177
- * @request PUT:/v1/auth/b2b/send-reset-password-code
1178
- */ sendResetPasswordCode(B2BSendResetPasswordCodeParams, config) {
1179
- return this.apiClient.request({
1180
- ...config,
1181
- url: `/v1/auth/b2b/send-reset-password-code`,
1182
- method: 'PUT',
1183
- data: B2BSendResetPasswordCodeParams,
1184
- secure: false,
1185
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
1186
- });
1187
- }
1188
- }
1189
-
1190
-
1191
- var $b2299ac954a8fc8d$exports = {};
1192
-
1193
- $parcel$export($b2299ac954a8fc8d$exports, "B2CAuth", () => $b2299ac954a8fc8d$export$191c573f104d53f4);
1194
- /* eslint-disable */ /* tslint:disable */ /*
1195
- * ---------------------------------------------------------------
1196
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1197
- * ## ##
1198
- * ## AUTHOR: acacode ##
1199
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1200
- * ---------------------------------------------------------------
1201
- */
1202
-
1203
- class $b2299ac954a8fc8d$export$191c573f104d53f4 {
1204
- constructor(apiClient){
1205
- this.apiClient = apiClient;
1206
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
1207
- }
1208
- /**
1209
- * @description Get current B2C user info by access token.
1210
- * @tags b2c_auth
1211
- * @name GetCurrent
1212
- * @summary Get current B2C user info by access token
1213
- * @request GET:/v1/auth/b2c/current
1214
- * @secure
1215
- */ getCurrent(config) {
1216
- return this.apiClient.request({
1217
- ...config,
1218
- url: `/v1/auth/b2c/current`,
1219
- method: 'GET',
1220
- secure: true,
1221
- responseType: 'json'
1222
- });
1223
- }
1224
- /**
1225
- * @description Initialize Apple OAuth2 Login
1226
- * @tags b2c_auth
1227
- * @name InitAppleLogin
1228
- * @summary Initialize Apple OAuth2 Login
1229
- * @request POST:/v1/auth/b2c/login/apple
1230
- */ initAppleLogin(initOAuthLoginDto, headers, config) {
1231
- return this.apiClient.request({
1232
- ...config,
1233
- url: `/v1/auth/b2c/login/apple`,
1234
- method: 'POST',
1235
- data: initOAuthLoginDto,
1236
- secure: false,
1237
- headers: headers,
1238
- responseType: 'json'
1239
- });
1240
- }
1241
- /**
1242
- * @description Finish Apple OAuth2 Login
1243
- * @tags b2c_auth
1244
- * @name FinishAppleLogin
1245
- * @summary Finish Apple OAuth2 Login
1246
- * @request POST:/v1/auth/b2c/login/apple/callback
1247
- */ finishAppleLogin(finishOAuthLoginDto, config) {
1248
- return this.apiClient.request({
1249
- ...config,
1250
- url: `/v1/auth/b2c/login/apple/callback`,
1251
- method: 'POST',
1252
- data: finishOAuthLoginDto,
1253
- secure: false,
1254
- responseType: 'json'
1255
- });
1256
- }
1257
- /**
1258
- * @description Login B2C user by email/password.
1259
- * @tags b2c_auth
1260
- * @name BasicLogin
1261
- * @summary Login B2C user by email/password
1262
- * @request POST:/v1/auth/b2c/login/basic
1263
- */ basicLogin(basicLoginParams, headers, config) {
1264
- return this.apiClient.request({
1265
- ...config,
1266
- url: `/v1/auth/b2c/login/basic`,
1267
- method: 'POST',
1268
- data: basicLoginParams,
1269
- secure: false,
1270
- headers: headers,
1271
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1272
- responseType: 'json'
1273
- });
1274
- }
1275
- /**
1276
- * @description Initialize Google OAuth2 Login
1277
- * @tags b2c_auth
1278
- * @name InitGoogleLogin
1279
- * @summary Initialize Google OAuth2 Login
1280
- * @request POST:/v1/auth/b2c/login/google
1281
- */ initGoogleLogin(initOAuthLoginDto, headers, config) {
1282
- return this.apiClient.request({
1283
- ...config,
1284
- url: `/v1/auth/b2c/login/google`,
1285
- method: 'POST',
1286
- data: initOAuthLoginDto,
1287
- secure: false,
1288
- headers: headers,
1289
- responseType: 'json'
1290
- });
1291
- }
1292
- /**
1293
- * @description Finish Google OAuth2 Login
1294
- * @tags b2c_auth
1295
- * @name FinishGoogleLogin
1296
- * @summary Finish Google OAuth2 Login
1297
- * @request POST:/v1/auth/b2c/login/google/callback
1298
- */ finishGoogleLogin(finishOAuthLoginDto, config) {
1299
- return this.apiClient.request({
1300
- ...config,
1301
- url: `/v1/auth/b2c/login/google/callback`,
1302
- method: 'POST',
1303
- data: finishOAuthLoginDto,
1304
- secure: false,
1305
- responseType: 'json'
1306
- });
1307
- }
1308
- /**
1309
- * @description logout from B2C user session
1310
- * @tags b2c_auth
1311
- * @name Logout
1312
- * @summary logout from B2C user session
1313
- * @request DELETE:/v1/auth/b2c/logout
1314
- */ logout(B2CLogoutParams, config) {
1315
- return this.apiClient.request({
1316
- ...config,
1317
- url: `/v1/auth/b2c/logout`,
1318
- method: 'DELETE',
1319
- data: B2CLogoutParams,
1320
- secure: false,
1321
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
1322
- });
1323
- }
1324
- /**
1325
- * @description Refresh B2C user token pair
1326
- * @tags b2c_auth
1327
- * @name RefreshTokens
1328
- * @summary Refresh B2C user token pair
1329
- * @request POST:/v1/auth/b2c/refresh
1330
- */ refreshTokens(b2cRefreshDto, headers, config) {
1331
- return this.apiClient.request({
1332
- ...config,
1333
- url: `/v1/auth/b2c/refresh`,
1334
- method: 'POST',
1335
- data: b2cRefreshDto,
1336
- secure: false,
1337
- headers: headers,
1338
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1339
- responseType: 'json'
1340
- });
1341
- }
1342
- /**
1343
- * @description Register new B2C user. This endpoint should be used for Web GUI only
1344
- * @tags b2c_auth
1345
- * @name Register
1346
- * @summary Register new B2C user
1347
- * @request POST:/v1/auth/b2c/register
1348
- */ register(registrationParams, headers, config) {
1349
- return this.apiClient.request({
1350
- ...config,
1351
- url: `/v1/auth/b2c/register`,
1352
- method: 'POST',
1353
- data: registrationParams,
1354
- secure: false,
1355
- headers: headers,
1356
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1357
- responseType: 'json'
1358
- });
1359
- }
1360
- /**
1361
- * @description Reset B2C user password
1362
- * @tags b2c_auth
1363
- * @name ResetPassword
1364
- * @summary Reset B2C user password
1365
- * @request PUT:/v1/auth/b2c/reset-password
1366
- */ resetPassword(B2CResetPasswordParams, headers, config) {
1367
- return this.apiClient.request({
1368
- ...config,
1369
- url: `/v1/auth/b2c/reset-password`,
1370
- method: 'PUT',
1371
- data: B2CResetPasswordParams,
1372
- secure: false,
1373
- headers: headers,
1374
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
1375
- });
1376
- }
1377
- /**
1378
- * @description Send MFA code for B2C user
1379
- * @tags b2c_auth
1380
- * @name SendMfaCode
1381
- * @summary Send MFA code for B2C user
1382
- * @request PUT:/v1/auth/b2c/send-mfa-code
1383
- */ sendMfaCode(SendB2CMfaCodeDto, headers, config) {
1384
- return this.apiClient.request({
1385
- ...config,
1386
- url: `/v1/auth/b2c/send-mfa-code`,
1387
- method: 'PUT',
1388
- data: SendB2CMfaCodeDto,
1389
- secure: false,
1390
- headers: headers,
1391
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
1392
- });
1393
- }
1394
- /**
1395
- * @description Send reset password code for B2C user
1396
- * @tags b2c_auth
1397
- * @name SendResetPasswordCode
1398
- * @summary Send reset password code for B2C user
1399
- * @request PUT:/v1/auth/b2c/send-reset-password-code
1400
- */ sendResetPasswordCode(B2CSendResetPasswordCodeParams, config) {
1401
- return this.apiClient.request({
1402
- ...config,
1403
- url: `/v1/auth/b2c/send-reset-password-code`,
1404
- method: 'PUT',
1405
- data: B2CSendResetPasswordCodeParams,
1406
- secure: false,
1407
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
1408
- });
1409
- }
1410
- /**
1411
- * @description Send verification code for B2C user
1412
- * @tags b2c_auth
1413
- * @name SendVerificationCode
1414
- * @summary Send verification code for B2C user
1415
- * @request PUT:/v1/auth/b2c/send-verification-code
1416
- */ sendVerificationCode(B2CSendVerificationCodeDto, headers, config) {
1417
- return this.apiClient.request({
1418
- ...config,
1419
- url: `/v1/auth/b2c/send-verification-code`,
1420
- method: 'PUT',
1421
- data: B2CSendVerificationCodeDto,
1422
- secure: false,
1423
- headers: headers,
1424
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
1425
- });
1426
- }
1427
- /**
1428
- * @description Verify contact for B2C user
1429
- * @tags b2c_auth
1430
- * @name VerifyContact
1431
- * @summary Verify contact for B2C user
1432
- * @request PUT:/v1/auth/b2c/verify
1433
- */ verifyContact(VerifyContactDto, headers, config) {
1434
- return this.apiClient.request({
1435
- ...config,
1436
- url: `/v1/auth/b2c/verify`,
1437
- method: 'PUT',
1438
- data: VerifyContactDto,
1439
- secure: false,
1440
- headers: headers,
1441
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
1442
- });
1443
- }
1444
- }
1445
-
1446
-
1447
- var $8a7b2186643ed4fa$exports = {};
1448
-
1449
- $parcel$export($8a7b2186643ed4fa$exports, "TrustedDevices", () => $8a7b2186643ed4fa$export$31b14c8b5a956c9c);
1450
- /* eslint-disable */ /* tslint:disable */ /*
1451
- * ---------------------------------------------------------------
1452
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1453
- * ## ##
1454
- * ## AUTHOR: acacode ##
1455
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1456
- * ---------------------------------------------------------------
1457
- */
1458
-
1459
- class $8a7b2186643ed4fa$export$31b14c8b5a956c9c {
1460
- constructor(apiClient){
1461
- this.apiClient = apiClient;
1462
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
1463
- }
1464
- /**
1465
- * @description Delete trusted devices
1466
- * @tags trusted_devices
1467
- * @name DeleteMany
1468
- * @summary Delete trusted devices
1469
- * @request DELETE:/v1/auth/trusted-devices
1470
- * @secure
1471
- */ deleteMany(deleteTrustedDevicesDto, config) {
1472
- return this.apiClient.request({
1473
- ...config,
1474
- url: `/v1/auth/trusted-devices`,
1475
- method: 'DELETE',
1476
- data: deleteTrustedDevicesDto,
1477
- secure: true,
1478
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
1479
- });
1480
- }
1481
- /**
1482
- * @description Get trusted devices
1483
- * @tags trusted_devices
1484
- * @name Get
1485
- * @summary Get trusted devices
1486
- * @request POST:/v1/auth/trusted-devices/list
1487
- * @secure
1488
- */ get(getTrustedDevicesListDto, config) {
1489
- return this.apiClient.request({
1490
- ...config,
1491
- url: `/v1/auth/trusted-devices/list`,
1492
- method: 'POST',
1493
- data: getTrustedDevicesListDto,
1494
- secure: true,
1495
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1496
- responseType: 'json'
1497
- });
1498
- }
1499
- }
1500
-
1501
-
1502
- var $ffa44a7a6cb1797b$exports = {};
1503
-
1504
- $parcel$export($ffa44a7a6cb1797b$exports, "Sessions", () => $ffa44a7a6cb1797b$export$c8d7e81b9a544c06);
1505
- /* eslint-disable */ /* tslint:disable */ /*
1506
- * ---------------------------------------------------------------
1507
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1508
- * ## ##
1509
- * ## AUTHOR: acacode ##
1510
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1511
- * ---------------------------------------------------------------
1512
- */
1513
-
1514
- class $ffa44a7a6cb1797b$export$c8d7e81b9a544c06 {
1515
- constructor(apiClient){
1516
- this.apiClient = apiClient;
1517
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
1518
- }
1519
- /**
1520
- * @description et current user sessions info
1521
- * @tags sessions
1522
- * @name GetCurrentUserSessions
1523
- * @summary Get current user sessions info
1524
- * @request GET:/v1/auth/sessions
1525
- * @secure
1526
- */ getCurrentUserSessions(config) {
1527
- return this.apiClient.request({
1528
- ...config,
1529
- url: `/v1/auth/sessions`,
1530
- method: 'GET',
1531
- secure: true,
1532
- responseType: 'json'
1533
- });
1534
- }
1535
- /**
1536
- * @description Delete current user sessions by pair id's
1537
- * @tags sessions
1538
- * @name DeleteCurrentUserSessions
1539
- * @summary Delete current user sessions by pair id's
1540
- * @request DELETE:/v1/auth/sessions
1541
- * @secure
1542
- */ deleteCurrentUserSessions(deleteSessions, config) {
1543
- return this.apiClient.request({
1544
- ...config,
1545
- url: `/v1/auth/sessions`,
1546
- method: 'DELETE',
1547
- data: deleteSessions,
1548
- secure: true,
1549
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
1550
- });
1551
- }
1552
- }
1553
-
1554
-
1555
- var $3d93a2bbc8d670c7$exports = {};
1556
-
1557
- $parcel$export($3d93a2bbc8d670c7$exports, "WatchmenAuth", () => $3d93a2bbc8d670c7$export$b5681ba9d8d05c26);
1558
- /* eslint-disable */ /* tslint:disable */ /*
1559
- * ---------------------------------------------------------------
1560
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1561
- * ## ##
1562
- * ## AUTHOR: acacode ##
1563
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1564
- * ---------------------------------------------------------------
1565
- */
1566
-
1567
- class $3d93a2bbc8d670c7$export$b5681ba9d8d05c26 {
1568
- constructor(apiClient){
1569
- this.apiClient = apiClient;
1570
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
1571
- }
1572
- /**
1573
- * @description Generate Watchmen Auth Token
1574
- * @tags watchmen_auth
1575
- * @name GenerateWatchmenAuthToken
1576
- * @summary Generate Watchmen Auth Token
1577
- * @request POST:/v1/auth/watchmen/authentication-tokens
1578
- * @secure
1579
- */ generateWatchmenAuthToken(generateWatchmenAuthTokenDto, config) {
1580
- return this.apiClient.request({
1581
- ...config,
1582
- url: `/v1/auth/watchmen/authentication-tokens`,
1583
- method: 'POST',
1584
- data: generateWatchmenAuthTokenDto,
1585
- secure: true,
1586
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1587
- responseType: 'json'
1588
- });
1589
- }
1590
- /**
1591
- * @description Verify Watchmen Auth Token
1592
- * @tags watchmen_auth
1593
- * @name VerifyWatchmenAuthToken
1594
- * @summary Verify Watchmen Auth Token
1595
- * @request PUT:/v1/auth/watchmen/authentication-tokens/verify
1596
- * @secure
1597
- */ verifyWatchmenAuthToken(verifyWatchmenAuthToken, config) {
1598
- return this.apiClient.request({
1599
- ...config,
1600
- url: `/v1/auth/watchmen/authentication-tokens/verify`,
1601
- method: 'PUT',
1602
- data: verifyWatchmenAuthToken,
1603
- secure: true,
1604
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1605
- responseType: 'json'
1606
- });
1607
- }
1608
- }
1609
-
1610
-
1611
- var $9f9d15a2ead3d19e$exports = {};
1612
-
1613
- $parcel$export($9f9d15a2ead3d19e$exports, "ApiKeys", () => $9f9d15a2ead3d19e$export$a67a305ca3f5ec6a);
1614
- /* eslint-disable */ /* tslint:disable */ /*
1615
- * ---------------------------------------------------------------
1616
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1617
- * ## ##
1618
- * ## AUTHOR: acacode ##
1619
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1620
- * ---------------------------------------------------------------
1621
- */
1622
-
1623
- class $9f9d15a2ead3d19e$export$a67a305ca3f5ec6a {
1624
- constructor(apiClient){
1625
- this.apiClient = apiClient;
1626
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
1627
- }
1628
- /**
1629
- * @description Delete API Key by id (would throw 404 error if API key not found or belongs to different user)
1630
- * @tags api_keys
1631
- * @name DeleteMany
1632
- * @summary Delete API Key by id
1633
- * @request DELETE:/v1/b2b/api-keys
1634
- * @secure
1635
- */ deleteMany(deleteAPIKeys, config) {
1636
- return this.apiClient.request({
1637
- ...config,
1638
- url: `/v1/b2b/api-keys`,
1639
- method: 'DELETE',
1640
- data: deleteAPIKeys,
1641
- secure: true,
1642
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
1643
- });
1644
- }
1645
- /**
1646
- * @description Get APIKey by id
1647
- * @tags api_keys
1648
- * @name GetById
1649
- * @summary Get APIKey by id
1650
- * @request GET:/v1/b2b/api-keys/{id}
1651
- * @secure
1652
- */ getById(id, config) {
1653
- return this.apiClient.request({
1654
- ...config,
1655
- url: `/v1/b2b/api-keys/${id}`,
1656
- method: 'GET',
1657
- secure: true,
1658
- responseType: 'json'
1659
- });
1660
- }
1661
- /**
1662
- * @description Create API Key & API Secret Pair. API Secret won't be accessible for read after that
1663
- * @tags api_keys
1664
- * @name Create
1665
- * @summary Create API Key & API Secret Pair
1666
- * @request POST:/v2/b2b/api-keys
1667
- * @secure
1668
- */ create(createApiKeys, config) {
1669
- return this.apiClient.request({
1670
- ...config,
1671
- url: `/v2/b2b/api-keys`,
1672
- method: 'POST',
1673
- data: createApiKeys,
1674
- secure: true,
1675
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1676
- responseType: 'json'
1677
- });
1678
- }
1679
- /**
1680
- * @description Get API Keys info(would return API Keys without secrets)
1681
- * @tags api_keys
1682
- * @name Get
1683
- * @summary Get API Keys info(would return API Keys without secrets)
1684
- * @request POST:/v2/b2b/api-keys/list
1685
- * @secure
1686
- */ get(apiKeys, config) {
1687
- return this.apiClient.request({
1688
- ...config,
1689
- url: `/v2/b2b/api-keys/list`,
1690
- method: 'POST',
1691
- data: apiKeys,
1692
- secure: true,
1693
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1694
- responseType: 'json'
1695
- });
1696
- }
1697
- /**
1698
- * @description Update API Key Record
1699
- * @tags api_keys
1700
- * @name Update
1701
- * @summary Update API Key Record
1702
- * @request PUT:/v2/b2b/api-keys/{id}
1703
- * @secure
1704
- */ update(id, apiKeys, config) {
1705
- return this.apiClient.request({
1706
- ...config,
1707
- url: `/v2/b2b/api-keys/${id}`,
1708
- method: 'PUT',
1709
- data: apiKeys,
1710
- secure: true,
1711
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1712
- responseType: 'json'
1713
- });
1714
- }
1715
- }
1716
-
1717
-
1718
- var $99f79cb7451ae9b4$exports = {};
1719
-
1720
- $parcel$export($99f79cb7451ae9b4$exports, "Endpoints", () => $99f79cb7451ae9b4$export$eed022e50baffed5);
1721
- /* eslint-disable */ /* tslint:disable */ /*
1722
- * ---------------------------------------------------------------
1723
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1724
- * ## ##
1725
- * ## AUTHOR: acacode ##
1726
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1727
- * ---------------------------------------------------------------
1728
- */
1729
-
1730
- class $99f79cb7451ae9b4$export$eed022e50baffed5 {
1731
- constructor(apiClient){
1732
- this.apiClient = apiClient;
1733
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
1734
- }
1735
- /**
1736
- * @description Create Endpoint
1737
- * @tags endpoints
1738
- * @name Create
1739
- * @summary Create Endpoint
1740
- * @request POST:/v1/b2b/endpoints
1741
- * @secure
1742
- */ create(endpointDto, config) {
1743
- return this.apiClient.request({
1744
- ...config,
1745
- url: `/v1/b2b/endpoints`,
1746
- method: 'POST',
1747
- data: endpointDto,
1748
- secure: true,
1749
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1750
- responseType: 'json'
1751
- });
1752
- }
1753
- /**
1754
- * @description Delete endpoint by id
1755
- * @tags endpoints
1756
- * @name DeleteMany
1757
- * @summary Delete endpoint by id
1758
- * @request DELETE:/v1/b2b/endpoints
1759
- * @secure
1760
- */ deleteMany(deleteEndpointsDto, config) {
1761
- return this.apiClient.request({
1762
- ...config,
1763
- url: `/v1/b2b/endpoints`,
1764
- method: 'DELETE',
1765
- data: deleteEndpointsDto,
1766
- secure: true,
1767
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
1768
- });
1769
- }
1770
- /**
1771
- * @description Get Endpoint by id
1772
- * @tags endpoints
1773
- * @name GetById
1774
- * @summary Get Endpoint by id
1775
- * @request GET:/v1/b2b/endpoints/{id}
1776
- * @secure
1777
- */ getById(id, config) {
1778
- return this.apiClient.request({
1779
- ...config,
1780
- url: `/v1/b2b/endpoints/${id}`,
1781
- method: 'GET',
1782
- secure: true,
1783
- responseType: 'json'
1784
- });
1785
- }
1786
- /**
1787
- * @description Update endpoint record
1788
- * @tags endpoints
1789
- * @name Update
1790
- * @summary Update endpoint record
1791
- * @request PUT:/v1/b2b/endpoints/{id}
1792
- * @secure
1793
- */ update(id, endpointDto, config) {
1794
- return this.apiClient.request({
1795
- ...config,
1796
- url: `/v1/b2b/endpoints/${id}`,
1797
- method: 'PUT',
1798
- data: endpointDto,
1799
- secure: true,
1800
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1801
- responseType: 'json'
1802
- });
1803
- }
1804
- /**
1805
- * @description Get endpoints with pagination
1806
- * @tags endpoints
1807
- * @name Get
1808
- * @summary Get endpoints with pagination
1809
- * @request POST:/v2/b2b/endpoints/list
1810
- * @secure
1811
- */ get(endpointDto, config) {
1812
- return this.apiClient.request({
1813
- ...config,
1814
- url: `/v2/b2b/endpoints/list`,
1815
- method: 'POST',
1816
- data: endpointDto,
1817
- secure: true,
1818
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1819
- responseType: 'json'
1820
- });
1821
- }
1822
- }
1823
-
1824
-
1825
- var $ce569e5a995481c0$exports = {};
1826
-
1827
- $parcel$export($ce569e5a995481c0$exports, "Microservices", () => $ce569e5a995481c0$export$336c46c9fcb38eaa);
1828
- /* eslint-disable */ /* tslint:disable */ /*
1829
- * ---------------------------------------------------------------
1830
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1831
- * ## ##
1832
- * ## AUTHOR: acacode ##
1833
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1834
- * ---------------------------------------------------------------
1835
- */
1836
-
1837
- class $ce569e5a995481c0$export$336c46c9fcb38eaa {
1838
- constructor(apiClient){
1839
- this.apiClient = apiClient;
1840
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
1841
- }
1842
- /**
1843
- * @description Create Microservice with domains, used to proxy user requests from public domains to internal
1844
- * @tags microservices
1845
- * @name Create
1846
- * @summary Create Microservice
1847
- * @request POST:/v1/b2b/microservices
1848
- * @secure
1849
- */ create(microserviceDto, config) {
1850
- return this.apiClient.request({
1851
- ...config,
1852
- url: `/v1/b2b/microservices`,
1853
- method: 'POST',
1854
- data: microserviceDto,
1855
- secure: true,
1856
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1857
- responseType: 'json'
1858
- });
1859
- }
1860
- /**
1861
- * @description Delete microservice by id
1862
- * @tags microservices
1863
- * @name DeleteMany
1864
- * @summary Delete microservice by id
1865
- * @request DELETE:/v1/b2b/microservices
1866
- * @secure
1867
- */ deleteMany(deleteMicroservices, config) {
1868
- return this.apiClient.request({
1869
- ...config,
1870
- url: `/v1/b2b/microservices`,
1871
- method: 'DELETE',
1872
- data: deleteMicroservices,
1873
- secure: true,
1874
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
1875
- });
1876
- }
1877
- /**
1878
- * @description Get Microservice by id
1879
- * @tags microservices
1880
- * @name GetById
1881
- * @summary Get Microservice by id
1882
- * @request GET:/v1/b2b/microservices/{id}
1883
- * @secure
1884
- */ getById(id, config) {
1885
- return this.apiClient.request({
1886
- ...config,
1887
- url: `/v1/b2b/microservices/${id}`,
1888
- method: 'GET',
1889
- secure: true,
1890
- responseType: 'json'
1891
- });
1892
- }
1893
- /**
1894
- * @description Update microservice record
1895
- * @tags microservices
1896
- * @name Update
1897
- * @summary Update microservice record
1898
- * @request PUT:/v1/b2b/microservices/{id}
1899
- * @secure
1900
- */ update(id, microserviceDto, config) {
1901
- return this.apiClient.request({
1902
- ...config,
1903
- url: `/v1/b2b/microservices/${id}`,
1904
- method: 'PUT',
1905
- data: microserviceDto,
1906
- secure: true,
1907
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1908
- responseType: 'json'
1909
- });
1910
- }
1911
- /**
1912
- * @description Get microservices with pagination
1913
- * @tags microservices
1914
- * @name Get
1915
- * @summary Get microservices with pagination
1916
- * @request POST:/v2/b2b/microservices/list
1917
- * @secure
1918
- */ get(microserviceDto, config) {
1919
- return this.apiClient.request({
1920
- ...config,
1921
- url: `/v2/b2b/microservices/list`,
1922
- method: 'POST',
1923
- data: microserviceDto,
1924
- secure: true,
1925
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1926
- responseType: 'json'
1927
- });
1928
- }
1929
- }
1930
-
1931
-
1932
- var $df695f87ca5b91a2$exports = {};
1933
-
1934
- $parcel$export($df695f87ca5b91a2$exports, "IdentityProviders", () => $df695f87ca5b91a2$export$5887f54682395684);
1935
- /* eslint-disable */ /* tslint:disable */ /*
1936
- * ---------------------------------------------------------------
1937
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
1938
- * ## ##
1939
- * ## AUTHOR: acacode ##
1940
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
1941
- * ---------------------------------------------------------------
1942
- */
1943
-
1944
- class $df695f87ca5b91a2$export$5887f54682395684 {
1945
- constructor(apiClient){
1946
- this.apiClient = apiClient;
1947
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
1948
- }
1949
- /**
1950
- * @description Create Identity Provider
1951
- * @tags identity_providers
1952
- * @name Create
1953
- * @summary Create Identity Provider
1954
- * @request POST:/v1/b2b/identity-providers
1955
- * @secure
1956
- */ create(createIdentityProviderDto, config) {
1957
- return this.apiClient.request({
1958
- ...config,
1959
- url: `/v1/b2b/identity-providers`,
1960
- method: 'POST',
1961
- data: createIdentityProviderDto,
1962
- secure: true,
1963
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
1964
- responseType: 'json'
1965
- });
1966
- }
1967
- /**
1968
- * @description Delete Identity providers by id
1969
- * @tags identity_providers
1970
- * @name DeleteMany
1971
- * @summary Delete Identity providers by ids
1972
- * @request DELETE:/v1/b2b/identity-providers
1973
- * @secure
1974
- */ deleteMany(deleteIdentityProvidersDto, config) {
1975
- return this.apiClient.request({
1976
- ...config,
1977
- url: `/v1/b2b/identity-providers`,
1978
- method: 'DELETE',
1979
- data: deleteIdentityProvidersDto,
1980
- secure: true,
1981
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
1982
- });
1983
- }
1984
- /**
1985
- * @description Get Identity Provider by id
1986
- * @tags identity_providers
1987
- * @name GetById
1988
- * @summary Get Identity Provider by id
1989
- * @request GET:/v1/b2b/identity-providers/{id}
1990
- * @secure
1991
- */ getById(id, config) {
1992
- return this.apiClient.request({
1993
- ...config,
1994
- url: `/v1/b2b/identity-providers/${id}`,
1995
- method: 'GET',
1996
- secure: true,
1997
- responseType: 'json'
1998
- });
1999
- }
2000
- /**
2001
- * @description Update identity provider record
2002
- * @tags identity_providers
2003
- * @name Update
2004
- * @summary Update identity provider record
2005
- * @request PUT:/v1/b2b/identity-providers/{id}
2006
- * @secure
2007
- */ update(id, identityProvidersDto, config) {
2008
- return this.apiClient.request({
2009
- ...config,
2010
- url: `/v1/b2b/identity-providers/${id}`,
2011
- method: 'PUT',
2012
- data: identityProvidersDto,
2013
- secure: true,
2014
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2015
- responseType: 'json'
2016
- });
2017
- }
2018
- /**
2019
- * @description Get Identity Providers with pagination
2020
- * @tags identity_providers
2021
- * @name Get
2022
- * @summary Get Identity Providers with pagination
2023
- * @request POST:/v2/b2b/identity-providers/list
2024
- * @secure
2025
- */ get(identityProvidersDto, config) {
2026
- return this.apiClient.request({
2027
- ...config,
2028
- url: `/v2/b2b/identity-providers/list`,
2029
- method: 'POST',
2030
- data: identityProvidersDto,
2031
- secure: true,
2032
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2033
- responseType: 'json'
2034
- });
2035
- }
2036
- }
2037
-
2038
-
2039
- var $3b4bcede9184e796$exports = {};
2040
-
2041
- $parcel$export($3b4bcede9184e796$exports, "RoleTypes", () => $3b4bcede9184e796$export$2cb4a31baf73b247);
2042
- /* eslint-disable */ /* tslint:disable */ /*
2043
- * ---------------------------------------------------------------
2044
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2045
- * ## ##
2046
- * ## AUTHOR: acacode ##
2047
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2048
- * ---------------------------------------------------------------
2049
- */
2050
-
2051
- class $3b4bcede9184e796$export$2cb4a31baf73b247 {
2052
- constructor(apiClient){
2053
- this.apiClient = apiClient;
2054
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
2055
- }
2056
- /**
2057
- * @description Create Role Type
2058
- * @tags role_types
2059
- * @name Create
2060
- * @summary Create Role Type
2061
- * @request POST:/v1/b2b/role-types
2062
- * @secure
2063
- */ create(createRoleType, config) {
2064
- return this.apiClient.request({
2065
- ...config,
2066
- url: `/v1/b2b/role-types`,
2067
- method: 'POST',
2068
- data: createRoleType,
2069
- secure: true,
2070
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2071
- responseType: 'json'
2072
- });
2073
- }
2074
- /**
2075
- * @description Delete Role Types by ids
2076
- * @tags role_types
2077
- * @name DeleteMany
2078
- * @summary Delete Role Types by ids
2079
- * @request DELETE:/v1/b2b/role-types
2080
- * @secure
2081
- */ deleteMany(deleteRoleTypes, config) {
2082
- return this.apiClient.request({
2083
- ...config,
2084
- url: `/v1/b2b/role-types`,
2085
- method: 'DELETE',
2086
- data: deleteRoleTypes,
2087
- secure: true,
2088
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
2089
- });
2090
- }
2091
- /**
2092
- * @description Get Role Type by id
2093
- * @tags role_types
2094
- * @name GetById
2095
- * @summary Get Role Type by id
2096
- * @request GET:/v1/b2b/role-types/{id}
2097
- * @secure
2098
- */ getById(id, config) {
2099
- return this.apiClient.request({
2100
- ...config,
2101
- url: `/v1/b2b/role-types/${id}`,
2102
- method: 'GET',
2103
- secure: true,
2104
- responseType: 'json'
2105
- });
2106
- }
2107
- /**
2108
- * @description Update Role Type
2109
- * @tags role_types
2110
- * @name Update
2111
- * @summary Update Role Type
2112
- * @request PUT:/v1/b2b/role-types/{id}
2113
- * @secure
2114
- */ update(id, updateRoleType, config) {
2115
- return this.apiClient.request({
2116
- ...config,
2117
- url: `/v1/b2b/role-types/${id}`,
2118
- method: 'PUT',
2119
- data: updateRoleType,
2120
- secure: true,
2121
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2122
- responseType: 'json'
2123
- });
2124
- }
2125
- /**
2126
- * @description Get Role Types with pagination
2127
- * @tags role_types
2128
- * @name Get
2129
- * @summary Get Role Types with pagination
2130
- * @request POST:/v2/b2b/role-types/list
2131
- * @secure
2132
- */ get(getRoleTypes, config) {
2133
- return this.apiClient.request({
2134
- ...config,
2135
- url: `/v2/b2b/role-types/list`,
2136
- method: 'POST',
2137
- data: getRoleTypes,
2138
- secure: true,
2139
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2140
- responseType: 'json'
2141
- });
2142
- }
2143
- }
2144
-
2145
-
2146
- var $e62712fa17120ca8$exports = {};
2147
-
2148
- $parcel$export($e62712fa17120ca8$exports, "B2BUserSettings", () => $e62712fa17120ca8$export$cdea59308760ada2);
2149
- /* eslint-disable */ /* tslint:disable */ /*
2150
- * ---------------------------------------------------------------
2151
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2152
- * ## ##
2153
- * ## AUTHOR: acacode ##
2154
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2155
- * ---------------------------------------------------------------
2156
- */
2157
-
2158
- class $e62712fa17120ca8$export$cdea59308760ada2 {
2159
- constructor(apiClient){
2160
- this.apiClient = apiClient;
2161
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
2162
- }
2163
- /**
2164
- * @description Set B2B User Settings ReCAPTCHA code is required in following cases (if proper Debug-Token was not provided): 1. User changes email 2. User changes password 3. User changes/verifies phone number
2165
- * @tags b2b_user_settings
2166
- * @name SetUserSettings
2167
- * @summary Set B2B User Settings
2168
- * @request PUT:/v1/b2b/settings
2169
- * @secure
2170
- */ setUserSettings(setB2BUserSettings, headers, config) {
2171
- return this.apiClient.request({
2172
- ...config,
2173
- url: `/v1/b2b/settings`,
2174
- method: 'PUT',
2175
- data: setB2BUserSettings,
2176
- secure: true,
2177
- headers: headers,
2178
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2179
- responseType: 'json'
2180
- });
2181
- }
2182
- /**
2183
- * @description Upload avatar for B2B user
2184
- * @tags b2b_user_settings
2185
- * @name UploadAvatar
2186
- * @summary Upload avatar for B2B user
2187
- * @request PUT:/v1/b2b/settings/avatar
2188
- * @secure
2189
- */ uploadAvatar(data, config) {
2190
- return this.apiClient.request({
2191
- ...config,
2192
- url: `/v1/b2b/settings/avatar`,
2193
- method: 'PUT',
2194
- data: data,
2195
- secure: true,
2196
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).FormData
2197
- });
2198
- }
2199
- /**
2200
- * @description Send B2B user contact change code
2201
- * @tags b2b_user_settings
2202
- * @name SendContactChangeCode
2203
- * @summary Send B2B user contact change code
2204
- * @request POST:/v1/b2b/settings/codes
2205
- * @secure
2206
- */ sendContactChangeCode(b2bSendContactChangeCodeDto, headers, config) {
2207
- return this.apiClient.request({
2208
- ...config,
2209
- url: `/v1/b2b/settings/codes`,
2210
- method: 'POST',
2211
- data: b2bSendContactChangeCodeDto,
2212
- secure: true,
2213
- headers: headers,
2214
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
2215
- });
2216
- }
2217
- }
2218
-
2219
-
2220
- var $1e21fcd680cfce14$exports = {};
2221
-
2222
- $parcel$export($1e21fcd680cfce14$exports, "TablePresets", () => $1e21fcd680cfce14$export$f946eed22c6da23d);
2223
- /* eslint-disable */ /* tslint:disable */ /*
2224
- * ---------------------------------------------------------------
2225
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2226
- * ## ##
2227
- * ## AUTHOR: acacode ##
2228
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2229
- * ---------------------------------------------------------------
2230
- */
2231
-
2232
- class $1e21fcd680cfce14$export$f946eed22c6da23d {
2233
- constructor(apiClient){
2234
- this.apiClient = apiClient;
2235
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
2236
- }
2237
- /**
2238
- * @description Get user Table Presets
2239
- * @tags table_presets
2240
- * @name GetUserPresets
2241
- * @summary Get user Table Presets
2242
- * @request GET:/v1/b2b/table-presets
2243
- * @secure
2244
- */ getUserPresets(config) {
2245
- return this.apiClient.request({
2246
- ...config,
2247
- url: `/v1/b2b/table-presets`,
2248
- method: 'GET',
2249
- secure: true,
2250
- responseType: 'json'
2251
- });
2252
- }
2253
- /**
2254
- * @description Upsert Table Preset
2255
- * @tags table_presets
2256
- * @name Upsert
2257
- * @summary Upsert Table Preset
2258
- * @request PUT:/v1/b2b/table-presets
2259
- * @secure
2260
- */ upsert(upsertTablePreset, config) {
2261
- return this.apiClient.request({
2262
- ...config,
2263
- url: `/v1/b2b/table-presets`,
2264
- method: 'PUT',
2265
- data: upsertTablePreset,
2266
- secure: true,
2267
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2268
- responseType: 'json'
2269
- });
2270
- }
2271
- }
2272
-
2273
-
2274
- var $6a1ecdc6ed5475ef$exports = {};
2275
-
2276
- $parcel$export($6a1ecdc6ed5475ef$exports, "B2CUserSettings", () => $6a1ecdc6ed5475ef$export$af92e794dd76d018);
2277
- /* eslint-disable */ /* tslint:disable */ /*
2278
- * ---------------------------------------------------------------
2279
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2280
- * ## ##
2281
- * ## AUTHOR: acacode ##
2282
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2283
- * ---------------------------------------------------------------
2284
- */
2285
-
2286
- class $6a1ecdc6ed5475ef$export$af92e794dd76d018 {
2287
- constructor(apiClient){
2288
- this.apiClient = apiClient;
2289
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
2290
- }
2291
- /**
2292
- * @description Set B2C User Settings (test)
2293
- * @tags b2c_user_settings
2294
- * @name SetUserSettings
2295
- * @summary Set B2C User Settings
2296
- * @request PUT:/v1/b2c/settings
2297
- * @secure
2298
- */ setUserSettings(setB2CUserSettings, headers, config) {
2299
- return this.apiClient.request({
2300
- ...config,
2301
- url: `/v1/b2c/settings`,
2302
- method: 'PUT',
2303
- data: setB2CUserSettings,
2304
- secure: true,
2305
- headers: headers,
2306
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2307
- responseType: 'json'
2308
- });
2309
- }
2310
- /**
2311
- * @description Send B2C user contact change code
2312
- * @tags b2c_user_settings
2313
- * @name SendContactChangeCode
2314
- * @summary Send B2C user contact change code
2315
- * @request POST:/v1/b2c/settings/codes
2316
- * @secure
2317
- */ sendContactChangeCode(b2cSendContactChangeCodeDto, headers, config) {
2318
- return this.apiClient.request({
2319
- ...config,
2320
- url: `/v1/b2c/settings/codes`,
2321
- method: 'POST',
2322
- data: b2cSendContactChangeCodeDto,
2323
- secure: true,
2324
- headers: headers,
2325
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
2326
- });
2327
- }
2328
- /**
2329
- * @description Get Available B2C Branch Mfa Options
2330
- * @tags b2c_user_settings
2331
- * @name AvailableMfaOptions
2332
- * @summary Get Available B2C Branch Mfa Options
2333
- * @request GET:/v1/b2c/settings/mfa-options
2334
- * @secure
2335
- */ availableMfaOptions(headers, config) {
2336
- return this.apiClient.request({
2337
- ...config,
2338
- url: `/v1/b2c/settings/mfa-options`,
2339
- method: 'GET',
2340
- secure: true,
2341
- headers: headers,
2342
- responseType: 'json'
2343
- });
2344
- }
2345
- /**
2346
- * @description Delete B2C OAuth2 Bindings
2347
- * @tags b2c_user_settings
2348
- * @name DeleteManyOAuthBindings
2349
- * @summary Delete B2C OAuth2 Bindings
2350
- * @request DELETE:/v1/b2c/settings/oauth-links
2351
- * @secure
2352
- */ deleteManyOAuthBindings(deleteByIDsDto, config) {
2353
- return this.apiClient.request({
2354
- ...config,
2355
- url: `/v1/b2c/settings/oauth-links`,
2356
- method: 'DELETE',
2357
- data: deleteByIDsDto,
2358
- secure: true,
2359
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
2360
- });
2361
- }
2362
- /**
2363
- * @description Finish Apple OAuth2 Profile Linking
2364
- * @tags b2c_user_settings
2365
- * @name FinishAppleProfileLinking
2366
- * @summary Finish Apple OAuth2 Profile Linking
2367
- * @request POST:/v1/b2c/settings/oauth-links/apple/finish
2368
- */ finishAppleProfileLinking(finishOAuthLoginDto, config) {
2369
- return this.apiClient.request({
2370
- ...config,
2371
- url: `/v1/b2c/settings/oauth-links/apple/finish`,
2372
- method: 'POST',
2373
- data: finishOAuthLoginDto,
2374
- secure: false,
2375
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
2376
- });
2377
- }
2378
- /**
2379
- * @description Initialize Apple OAuth2 Profile Linking
2380
- * @tags b2c_user_settings
2381
- * @name InitAppleProfileLinking
2382
- * @summary Initialize Apple OAuth2 Profile Linking
2383
- * @request POST:/v1/b2c/settings/oauth-links/apple/start
2384
- * @secure
2385
- */ initAppleProfileLinking(initOAuthLinkingDto, config) {
2386
- return this.apiClient.request({
2387
- ...config,
2388
- url: `/v1/b2c/settings/oauth-links/apple/start`,
2389
- method: 'POST',
2390
- data: initOAuthLinkingDto,
2391
- secure: true,
2392
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2393
- responseType: 'json'
2394
- });
2395
- }
2396
- /**
2397
- * @description Finish Google OAuth2 Profile Linking
2398
- * @tags b2c_user_settings
2399
- * @name FinishGoogleProfileLinking
2400
- * @summary Finish Google OAuth2 Profile Linking
2401
- * @request POST:/v1/b2c/settings/oauth-links/google/finish
2402
- */ finishGoogleProfileLinking(finishOAuthLoginDto, config) {
2403
- return this.apiClient.request({
2404
- ...config,
2405
- url: `/v1/b2c/settings/oauth-links/google/finish`,
2406
- method: 'POST',
2407
- data: finishOAuthLoginDto,
2408
- secure: false,
2409
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
2410
- });
2411
- }
2412
- /**
2413
- * @description Initialize Google OAuth2 Profile Linking
2414
- * @tags b2c_user_settings
2415
- * @name InitGoogleProfileLinking
2416
- * @summary Initialize Google OAuth2 Profile Linking
2417
- * @request POST:/v1/b2c/settings/oauth-links/google/start
2418
- * @secure
2419
- */ initGoogleProfileLinking(initOAuthLinkingDto, config) {
2420
- return this.apiClient.request({
2421
- ...config,
2422
- url: `/v1/b2c/settings/oauth-links/google/start`,
2423
- method: 'POST',
2424
- data: initOAuthLinkingDto,
2425
- secure: true,
2426
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2427
- responseType: 'json'
2428
- });
2429
- }
2430
- /**
2431
- * @description Get B2C OAuth2 Bindings with pagination. Available sort fields are `id, name, app_type, b2b_user_id, b2c_user_id, provider_user_id, created_at, updated_at`. Search is performed by `name, app_type, provider_user_id` fields
2432
- * @tags b2c_user_settings
2433
- * @name GetOAuthBindings
2434
- * @summary Get B2C OAuth2 Bindings with pagination
2435
- * @request POST:/v1/b2c/settings/oauth-links/list
2436
- * @secure
2437
- */ getOAuthBindings(getOAuth2BindingsListDto, config) {
2438
- return this.apiClient.request({
2439
- ...config,
2440
- url: `/v1/b2c/settings/oauth-links/list`,
2441
- method: 'POST',
2442
- data: getOAuth2BindingsListDto,
2443
- secure: true,
2444
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2445
- responseType: 'json'
2446
- });
2447
- }
2448
- }
2449
-
2450
-
2451
- var $9c457e9a76889c9b$exports = {};
2452
-
2453
- $parcel$export($9c457e9a76889c9b$exports, "Branches", () => $9c457e9a76889c9b$export$bec84148410bc670);
2454
- /* eslint-disable */ /* tslint:disable */ /*
2455
- * ---------------------------------------------------------------
2456
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2457
- * ## ##
2458
- * ## AUTHOR: acacode ##
2459
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2460
- * ---------------------------------------------------------------
2461
- */
2462
-
2463
- class $9c457e9a76889c9b$export$bec84148410bc670 {
2464
- constructor(apiClient){
2465
- this.apiClient = apiClient;
2466
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
2467
- }
2468
- /**
2469
- * @description Create Branch
2470
- * @tags branches
2471
- * @name Create
2472
- * @summary Create Branch
2473
- * @request POST:/v1/branches
2474
- * @secure
2475
- */ create(createBranch, config) {
2476
- return this.apiClient.request({
2477
- ...config,
2478
- url: `/v1/branches`,
2479
- method: 'POST',
2480
- data: createBranch,
2481
- secure: true,
2482
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2483
- responseType: 'json'
2484
- });
2485
- }
2486
- /**
2487
- * @description Delete Branch by id
2488
- * @tags branches
2489
- * @name DeleteMany
2490
- * @summary Delete Branch by id
2491
- * @request DELETE:/v1/branches
2492
- * @secure
2493
- */ deleteMany(deleteBranches, config) {
2494
- return this.apiClient.request({
2495
- ...config,
2496
- url: `/v1/branches`,
2497
- method: 'DELETE',
2498
- data: deleteBranches,
2499
- secure: true,
2500
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
2501
- });
2502
- }
2503
- /**
2504
- * @description Get Branch by id
2505
- * @tags branches
2506
- * @name GetById
2507
- * @summary Get Branch by id
2508
- * @request GET:/v1/branches/{id}
2509
- * @secure
2510
- */ getById(id, config) {
2511
- return this.apiClient.request({
2512
- ...config,
2513
- url: `/v1/branches/${id}`,
2514
- method: 'GET',
2515
- secure: true,
2516
- responseType: 'json'
2517
- });
2518
- }
2519
- /**
2520
- * @description Update Branch
2521
- * @tags branches
2522
- * @name Update
2523
- * @summary Update Branch
2524
- * @request PUT:/v1/branches/{id}
2525
- * @secure
2526
- */ update(id, updateBranch, config) {
2527
- return this.apiClient.request({
2528
- ...config,
2529
- url: `/v1/branches/${id}`,
2530
- method: 'PUT',
2531
- data: updateBranch,
2532
- secure: true,
2533
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2534
- responseType: 'json'
2535
- });
2536
- }
2537
- /**
2538
- * @description Get Branches with pagination
2539
- * @tags branches
2540
- * @name Get
2541
- * @summary Get Branches with pagination
2542
- * @request POST:/v2/branches/list
2543
- * @secure
2544
- */ get(getBranches, config) {
2545
- return this.apiClient.request({
2546
- ...config,
2547
- url: `/v2/branches/list`,
2548
- method: 'POST',
2549
- data: getBranches,
2550
- secure: true,
2551
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2552
- responseType: 'json'
2553
- });
2554
- }
2555
- }
2556
-
2557
-
2558
- var $bc418d19284783e9$exports = {};
2559
-
2560
- $parcel$export($bc418d19284783e9$exports, "Firms", () => $bc418d19284783e9$export$264f565cd0c1cc56);
2561
- /* eslint-disable */ /* tslint:disable */ /*
2562
- * ---------------------------------------------------------------
2563
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2564
- * ## ##
2565
- * ## AUTHOR: acacode ##
2566
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2567
- * ---------------------------------------------------------------
2568
- */
2569
-
2570
- class $bc418d19284783e9$export$264f565cd0c1cc56 {
2571
- constructor(apiClient){
2572
- this.apiClient = apiClient;
2573
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
2574
- }
2575
- /**
2576
- * @description Create Firm
2577
- * @tags firms
2578
- * @name Create
2579
- * @summary Create Firm
2580
- * @request POST:/v1/firms
2581
- * @secure
2582
- */ create(createFirm, config) {
2583
- return this.apiClient.request({
2584
- ...config,
2585
- url: `/v1/firms`,
2586
- method: 'POST',
2587
- data: createFirm,
2588
- secure: true,
2589
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2590
- responseType: 'json'
2591
- });
2592
- }
2593
- /**
2594
- * @description Deletes Firm by ids
2595
- * @tags firms
2596
- * @name DeleteMany
2597
- * @summary Deletes Firm by ids
2598
- * @request DELETE:/v1/firms
2599
- * @secure
2600
- */ deleteMany(deleteFirms, config) {
2601
- return this.apiClient.request({
2602
- ...config,
2603
- url: `/v1/firms`,
2604
- method: 'DELETE',
2605
- data: deleteFirms,
2606
- secure: true,
2607
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
2608
- });
2609
- }
2610
- /**
2611
- * @description Get Firm by id
2612
- * @tags firms
2613
- * @name GetById
2614
- * @summary Get Firm by id
2615
- * @request GET:/v1/firms/{id}
2616
- * @secure
2617
- */ getById(id, config) {
2618
- return this.apiClient.request({
2619
- ...config,
2620
- url: `/v1/firms/${id}`,
2621
- method: 'GET',
2622
- secure: true,
2623
- responseType: 'json'
2624
- });
2625
- }
2626
- /**
2627
- * @description Update Firm
2628
- * @tags firms
2629
- * @name Update
2630
- * @summary Update Firm
2631
- * @request PUT:/v1/firms/{id}
2632
- * @secure
2633
- */ update(id, updateFirm, config) {
2634
- return this.apiClient.request({
2635
- ...config,
2636
- url: `/v1/firms/${id}`,
2637
- method: 'PUT',
2638
- data: updateFirm,
2639
- secure: true,
2640
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2641
- responseType: 'json'
2642
- });
2643
- }
2644
- /**
2645
- * @description Get Firms with pagination
2646
- * @tags firms
2647
- * @name Get
2648
- * @summary Get Firms with pagination
2649
- * @request POST:/v2/firms/list
2650
- * @secure
2651
- */ get(getFirms, config) {
2652
- return this.apiClient.request({
2653
- ...config,
2654
- url: `/v2/firms/list`,
2655
- method: 'POST',
2656
- data: getFirms,
2657
- secure: true,
2658
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2659
- responseType: 'json'
2660
- });
2661
- }
2662
- }
2663
-
2664
-
2665
- var $34a8f468335f4867$exports = {};
2666
-
2667
- $parcel$export($34a8f468335f4867$exports, "Locales", () => $34a8f468335f4867$export$8e1c4644f466949c);
2668
- /* eslint-disable */ /* tslint:disable */ /*
2669
- * ---------------------------------------------------------------
2670
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2671
- * ## ##
2672
- * ## AUTHOR: acacode ##
2673
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2674
- * ---------------------------------------------------------------
2675
- */
2676
- class $34a8f468335f4867$export$8e1c4644f466949c {
2677
- constructor(apiClient){
2678
- this.apiClient = apiClient;
2679
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
2680
- }
2681
- /**
2682
- * @description get all language locales
2683
- * @tags locales
2684
- * @name Get
2685
- * @summary get all locales
2686
- * @request GET:/v1/locales
2687
- */ get(config) {
2688
- return this.apiClient.request({
2689
- ...config,
2690
- url: `/v1/locales`,
2691
- method: 'GET',
2692
- secure: false,
2693
- responseType: 'json'
2694
- });
2695
- }
2696
- }
2697
-
2698
-
2699
- var $f2fd7bf904994f56$exports = {};
2700
-
2701
- $parcel$export($f2fd7bf904994f56$exports, "Permissions", () => $f2fd7bf904994f56$export$2d41982586bbb6be);
2702
- /* eslint-disable */ /* tslint:disable */ /*
2703
- * ---------------------------------------------------------------
2704
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2705
- * ## ##
2706
- * ## AUTHOR: acacode ##
2707
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2708
- * ---------------------------------------------------------------
2709
- */
2710
-
2711
- class $f2fd7bf904994f56$export$2d41982586bbb6be {
2712
- constructor(apiClient){
2713
- this.apiClient = apiClient;
2714
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
2715
- }
2716
- /**
2717
- * @description Create Permission
2718
- * @tags permissions
2719
- * @name Create
2720
- * @summary Create Permission
2721
- * @request POST:/v1/permissions
2722
- * @secure
2723
- */ create(createPermission, config) {
2724
- return this.apiClient.request({
2725
- ...config,
2726
- url: `/v1/permissions`,
2727
- method: 'POST',
2728
- data: createPermission,
2729
- secure: true,
2730
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2731
- responseType: 'json'
2732
- });
2733
- }
2734
- /**
2735
- * @description Delete Permissions by id
2736
- * @tags permissions
2737
- * @name DeleteMany
2738
- * @summary Delete Permissions by id
2739
- * @request DELETE:/v1/permissions
2740
- * @secure
2741
- */ deleteMany(deletePermissions, config) {
2742
- return this.apiClient.request({
2743
- ...config,
2744
- url: `/v1/permissions`,
2745
- method: 'DELETE',
2746
- data: deletePermissions,
2747
- secure: true,
2748
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
2749
- });
2750
- }
2751
- /**
2752
- * @description Get Permission by id
2753
- * @tags permissions
2754
- * @name GetById
2755
- * @summary Get Permission by id
2756
- * @request GET:/v1/permissions/{id}
2757
- * @secure
2758
- */ getById(id, config) {
2759
- return this.apiClient.request({
2760
- ...config,
2761
- url: `/v1/permissions/${id}`,
2762
- method: 'GET',
2763
- secure: true,
2764
- responseType: 'json'
2765
- });
2766
- }
2767
- /**
2768
- * @description Update Permission
2769
- * @tags permissions
2770
- * @name Update
2771
- * @summary Update Permission
2772
- * @request PUT:/v1/permissions/{id}
2773
- * @secure
2774
- */ update(id, updatePermission, config) {
2775
- return this.apiClient.request({
2776
- ...config,
2777
- url: `/v1/permissions/${id}`,
2778
- method: 'PUT',
2779
- data: updatePermission,
2780
- secure: true,
2781
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2782
- responseType: 'json'
2783
- });
2784
- }
2785
- /**
2786
- * @description Get Permissions with pagination
2787
- * @tags permissions
2788
- * @name Get
2789
- * @summary Get Permissions with pagination
2790
- * @request POST:/v2/permissions/list
2791
- * @secure
2792
- */ get(getPermissions, config) {
2793
- return this.apiClient.request({
2794
- ...config,
2795
- url: `/v2/permissions/list`,
2796
- method: 'POST',
2797
- data: getPermissions,
2798
- secure: true,
2799
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2800
- responseType: 'json'
2801
- });
2802
- }
2803
- }
2804
-
2805
-
2806
- var $8a898e729d6b07c5$exports = {};
2807
-
2808
- $parcel$export($8a898e729d6b07c5$exports, "PublicSettings", () => $8a898e729d6b07c5$export$3e6fb5c4a94a74de);
2809
- /* eslint-disable */ /* tslint:disable */ /*
2810
- * ---------------------------------------------------------------
2811
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2812
- * ## ##
2813
- * ## AUTHOR: acacode ##
2814
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2815
- * ---------------------------------------------------------------
2816
- */
2817
- class $8a898e729d6b07c5$export$3e6fb5c4a94a74de {
2818
- constructor(apiClient){
2819
- this.apiClient = apiClient;
2820
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
2821
- }
2822
- /**
2823
- * @description Get public settings
2824
- * @tags public_settings
2825
- * @name Get
2826
- * @summary Get public settings
2827
- * @request GET:/v1/public-settings
2828
- */ get(config) {
2829
- return this.apiClient.request({
2830
- ...config,
2831
- url: `/v1/public-settings`,
2832
- method: 'GET',
2833
- secure: false,
2834
- responseType: 'json'
2835
- });
2836
- }
2837
- }
2838
-
2839
-
2840
- var $46005671a41e8997$exports = {};
2841
-
2842
- $parcel$export($46005671a41e8997$exports, "Roles", () => $46005671a41e8997$export$d1d9e451800db729);
2843
- /* eslint-disable */ /* tslint:disable */ /*
2844
- * ---------------------------------------------------------------
2845
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2846
- * ## ##
2847
- * ## AUTHOR: acacode ##
2848
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2849
- * ---------------------------------------------------------------
2850
- */
2851
-
2852
- class $46005671a41e8997$export$d1d9e451800db729 {
2853
- constructor(apiClient){
2854
- this.apiClient = apiClient;
2855
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
2856
- }
2857
- /**
2858
- * @description Create Role
2859
- * @tags roles
2860
- * @name Create
2861
- * @summary Create Role
2862
- * @request POST:/v1/roles
2863
- * @secure
2864
- */ create(createRole, config) {
2865
- return this.apiClient.request({
2866
- ...config,
2867
- url: `/v1/roles`,
2868
- method: 'POST',
2869
- data: createRole,
2870
- secure: true,
2871
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2872
- responseType: 'json'
2873
- });
2874
- }
2875
- /**
2876
- * @description Delete Roles by ids
2877
- * @tags roles
2878
- * @name DeleteMany
2879
- * @summary Delete Roles by ids
2880
- * @request DELETE:/v1/roles
2881
- * @secure
2882
- */ deleteMany(deleteRoles, config) {
2883
- return this.apiClient.request({
2884
- ...config,
2885
- url: `/v1/roles`,
2886
- method: 'DELETE',
2887
- data: deleteRoles,
2888
- secure: true,
2889
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
2890
- });
2891
- }
2892
- /**
2893
- * @description Get Role by id
2894
- * @tags roles
2895
- * @name GetById
2896
- * @summary Get Role by id
2897
- * @request GET:/v1/roles/{id}
2898
- * @secure
2899
- */ getById(id, config) {
2900
- return this.apiClient.request({
2901
- ...config,
2902
- url: `/v1/roles/${id}`,
2903
- method: 'GET',
2904
- secure: true,
2905
- responseType: 'json'
2906
- });
2907
- }
2908
- /**
2909
- * @description Update Role
2910
- * @tags roles
2911
- * @name Update
2912
- * @summary Update Role
2913
- * @request PUT:/v1/roles/{id}
2914
- * @secure
2915
- */ update(id, updateRole, config) {
2916
- return this.apiClient.request({
2917
- ...config,
2918
- url: `/v1/roles/${id}`,
2919
- method: 'PUT',
2920
- data: updateRole,
2921
- secure: true,
2922
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2923
- responseType: 'json'
2924
- });
2925
- }
2926
- /**
2927
- * @description Generate Role PDF
2928
- * @tags roles
2929
- * @name GenerateAsPdf
2930
- * @summary Generate Role PDF
2931
- * @request POST:/v1/roles/{id}/generate-as-pdf
2932
- * @secure
2933
- */ generateAsPdf(id, config) {
2934
- return this.apiClient.request({
2935
- ...config,
2936
- url: `/v1/roles/${id}/generate-as-pdf`,
2937
- method: 'POST',
2938
- secure: true
2939
- });
2940
- }
2941
- /**
2942
- * @description Get Roles with pagination
2943
- * @tags roles
2944
- * @name Get
2945
- * @summary Get Roles with pagination
2946
- * @request POST:/v2/roles/list
2947
- * @secure
2948
- */ get(getRoles, config) {
2949
- return this.apiClient.request({
2950
- ...config,
2951
- url: `/v2/roles/list`,
2952
- method: 'POST',
2953
- data: getRoles,
2954
- secure: true,
2955
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2956
- responseType: 'json'
2957
- });
2958
- }
2959
- }
2960
-
2961
-
2962
- var $35dafdf54ad816d8$exports = {};
2963
-
2964
- $parcel$export($35dafdf54ad816d8$exports, "SecretNotes", () => $35dafdf54ad816d8$export$49d1d1bca95f1922);
2965
- /* eslint-disable */ /* tslint:disable */ /*
2966
- * ---------------------------------------------------------------
2967
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
2968
- * ## ##
2969
- * ## AUTHOR: acacode ##
2970
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
2971
- * ---------------------------------------------------------------
2972
- */
2973
-
2974
- class $35dafdf54ad816d8$export$49d1d1bca95f1922 {
2975
- constructor(apiClient){
2976
- this.apiClient = apiClient;
2977
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
2978
- }
2979
- /**
2980
- * @description Create Secret note. For type `password` field `note_params` should contain `password` field only.
2981
- * @tags secret_notes
2982
- * @name Create
2983
- * @summary Create Secret note
2984
- * @request POST:/v1/secret-notes
2985
- * @secure
2986
- */ create(createSecretNote, config) {
2987
- return this.apiClient.request({
2988
- ...config,
2989
- url: `/v1/secret-notes`,
2990
- method: 'POST',
2991
- data: createSecretNote,
2992
- secure: true,
2993
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
2994
- responseType: 'json'
2995
- });
2996
- }
2997
- /**
2998
- * @description Get Secret note
2999
- * @tags secret_notes
3000
- * @name GetOne
3001
- * @summary Get Secret note
3002
- * @request POST:/v1/secret-notes/fetch
3003
- */ getOne(getSecretNote, config) {
3004
- return this.apiClient.request({
3005
- ...config,
3006
- url: `/v1/secret-notes/fetch`,
3007
- method: 'POST',
3008
- data: getSecretNote,
3009
- secure: false,
3010
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3011
- responseType: 'json'
3012
- });
3013
- }
3014
- /**
3015
- * @description Send Secret note verification code
3016
- * @tags secret_notes
3017
- * @name SendVerificationCode
3018
- * @summary Send Secret note verification code
3019
- * @request PUT:/v1/secret-notes/verification
3020
- */ sendVerificationCode(sendVerificationCodeForSecretNote, config) {
3021
- return this.apiClient.request({
3022
- ...config,
3023
- url: `/v1/secret-notes/verification`,
3024
- method: 'PUT',
3025
- data: sendVerificationCodeForSecretNote,
3026
- secure: false,
3027
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
3028
- });
3029
- }
3030
- }
3031
-
3032
-
3033
- var $c1c4df84d5d3a23d$exports = {};
3034
-
3035
- $parcel$export($c1c4df84d5d3a23d$exports, "B2BUsers", () => $c1c4df84d5d3a23d$export$9f8c8ef54665205);
3036
- /* eslint-disable */ /* tslint:disable */ /*
3037
- * ---------------------------------------------------------------
3038
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
3039
- * ## ##
3040
- * ## AUTHOR: acacode ##
3041
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
3042
- * ---------------------------------------------------------------
3043
- */
3044
-
3045
- class $c1c4df84d5d3a23d$export$9f8c8ef54665205 {
3046
- constructor(apiClient){
3047
- this.apiClient = apiClient;
3048
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
3049
- }
3050
- /**
3051
- * @description Delete B2B user by id
3052
- * @tags b2b_users
3053
- * @name DeleteMany
3054
- * @summary Delete B2B user by id
3055
- * @request DELETE:/v1/users/b2b
3056
- * @secure
3057
- */ deleteMany(deleteB2BUsers, config) {
3058
- return this.apiClient.request({
3059
- ...config,
3060
- url: `/v1/users/b2b`,
3061
- method: 'DELETE',
3062
- data: deleteB2BUsers,
3063
- secure: true,
3064
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
3065
- });
3066
- }
3067
- /**
3068
- * @description Get B2B User by id
3069
- * @tags b2b_users
3070
- * @name GetById
3071
- * @summary Get B2B User by id
3072
- * @request GET:/v1/users/b2b/{id}
3073
- * @secure
3074
- */ getById(id, config) {
3075
- return this.apiClient.request({
3076
- ...config,
3077
- url: `/v1/users/b2b/${id}`,
3078
- method: 'GET',
3079
- secure: true,
3080
- responseType: 'json'
3081
- });
3082
- }
3083
- /**
3084
- * @description Generate B2B User PDF
3085
- * @tags b2b_users
3086
- * @name GenerateAsPdf
3087
- * @summary Generate B2B User PDF
3088
- * @request POST:/v1/users/b2b/{id}/generate-as-pdf
3089
- * @secure
3090
- */ generateAsPdf(id, config) {
3091
- return this.apiClient.request({
3092
- ...config,
3093
- url: `/v1/users/b2b/${id}/generate-as-pdf`,
3094
- method: 'POST',
3095
- secure: true
3096
- });
3097
- }
3098
- /**
3099
- * @description Change B2B User status
3100
- * @tags b2b_users
3101
- * @name ChangeStatus
3102
- * @summary Change B2B User status
3103
- * @request PATCH:/v1/users/b2b/{id}/status
3104
- * @secure
3105
- */ changeStatus(id, changeUserStatus, config) {
3106
- return this.apiClient.request({
3107
- ...config,
3108
- url: `/v1/users/b2b/${id}/status`,
3109
- method: 'PATCH',
3110
- data: changeUserStatus,
3111
- secure: true,
3112
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
3113
- });
3114
- }
3115
- /**
3116
- * @description Create B2B User
3117
- * @tags b2b_users
3118
- * @name Create
3119
- * @summary Create B2B User
3120
- * @request POST:/v2/users/b2b
3121
- * @secure
3122
- */ create(createB2BUser, config) {
3123
- return this.apiClient.request({
3124
- ...config,
3125
- url: `/v2/users/b2b`,
3126
- method: 'POST',
3127
- data: createB2BUser,
3128
- secure: true,
3129
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3130
- responseType: 'json'
3131
- });
3132
- }
3133
- /**
3134
- * @description Get B2B users with pagination
3135
- * @tags b2b_users
3136
- * @name Get
3137
- * @summary Get B2B users with pagination
3138
- * @request POST:/v2/users/b2b/list
3139
- * @secure
3140
- */ get(getB2BUsers, config) {
3141
- return this.apiClient.request({
3142
- ...config,
3143
- url: `/v2/users/b2b/list`,
3144
- method: 'POST',
3145
- data: getB2BUsers,
3146
- secure: true,
3147
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3148
- responseType: 'json'
3149
- });
3150
- }
3151
- /**
3152
- * @description Update B2B User
3153
- * @tags b2b_users
3154
- * @name Update
3155
- * @summary Update B2B User
3156
- * @request PUT:/v2/users/b2b/{id}
3157
- * @secure
3158
- */ update(id, createB2BUserNew, config) {
3159
- return this.apiClient.request({
3160
- ...config,
3161
- url: `/v2/users/b2b/${id}`,
3162
- method: 'PUT',
3163
- data: createB2BUserNew,
3164
- secure: true,
3165
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3166
- responseType: 'json'
3167
- });
3168
- }
3169
- }
3170
-
3171
-
3172
- var $8679c96643548d8f$exports = {};
3173
-
3174
- $parcel$export($8679c96643548d8f$exports, "B2CUsers", () => $8679c96643548d8f$export$50c35e5cd2b1a04b);
3175
- /* eslint-disable */ /* tslint:disable */ /*
3176
- * ---------------------------------------------------------------
3177
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
3178
- * ## ##
3179
- * ## AUTHOR: acacode ##
3180
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
3181
- * ---------------------------------------------------------------
3182
- */
3183
-
3184
- class $8679c96643548d8f$export$50c35e5cd2b1a04b {
3185
- constructor(apiClient){
3186
- this.apiClient = apiClient;
3187
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
3188
- }
3189
- /**
3190
- * @description Create B2C User
3191
- * @tags b2c_users
3192
- * @name Create
3193
- * @summary Create B2C User
3194
- * @request POST:/v1/users/b2c
3195
- * @secure
3196
- */ create(createB2CUser, config) {
3197
- return this.apiClient.request({
3198
- ...config,
3199
- url: `/v1/users/b2c`,
3200
- method: 'POST',
3201
- data: createB2CUser,
3202
- secure: true,
3203
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3204
- responseType: 'json'
3205
- });
3206
- }
3207
- /**
3208
- * @description Delete B2C user by id
3209
- * @tags b2c_users
3210
- * @name DeleteMany
3211
- * @summary Delete B2C user by id
3212
- * @request DELETE:/v1/users/b2c
3213
- * @secure
3214
- */ deleteMany(deleteB2CUsers, config) {
3215
- return this.apiClient.request({
3216
- ...config,
3217
- url: `/v1/users/b2c`,
3218
- method: 'DELETE',
3219
- data: deleteB2CUsers,
3220
- secure: true,
3221
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
3222
- });
3223
- }
3224
- /**
3225
- * @description Get B2C User by id
3226
- * @tags b2c_users
3227
- * @name GetById
3228
- * @summary Get B2C User by id
3229
- * @request GET:/v1/users/b2c/{id}
3230
- * @secure
3231
- */ getById(id, config) {
3232
- return this.apiClient.request({
3233
- ...config,
3234
- url: `/v1/users/b2c/${id}`,
3235
- method: 'GET',
3236
- secure: true,
3237
- responseType: 'json'
3238
- });
3239
- }
3240
- /**
3241
- * @description Update B2C User
3242
- * @tags b2c_users
3243
- * @name Update
3244
- * @summary Update B2C User
3245
- * @request PUT:/v1/users/b2c/{id}
3246
- * @secure
3247
- */ update(id, createB2BUser, config) {
3248
- return this.apiClient.request({
3249
- ...config,
3250
- url: `/v1/users/b2c/${id}`,
3251
- method: 'PUT',
3252
- data: createB2BUser,
3253
- secure: true,
3254
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3255
- responseType: 'json'
3256
- });
3257
- }
3258
- /**
3259
- * @description Generate B2C User PDF
3260
- * @tags b2c_users
3261
- * @name GenerateAsPdf
3262
- * @summary Generate B2C User PDF
3263
- * @request POST:/v1/users/b2c/{id}/generate-as-pdf
3264
- * @secure
3265
- */ generateAsPdf(id, config) {
3266
- return this.apiClient.request({
3267
- ...config,
3268
- url: `/v1/users/b2c/${id}/generate-as-pdf`,
3269
- method: 'POST',
3270
- secure: true
3271
- });
3272
- }
3273
- /**
3274
- * @description Change B2C User status
3275
- * @tags b2c_users
3276
- * @name ChangeStatus
3277
- * @summary Change B2C User status
3278
- * @request PATCH:/v1/users/b2c/{id}/status
3279
- * @secure
3280
- */ changeStatus(id, changeUserStatus, config) {
3281
- return this.apiClient.request({
3282
- ...config,
3283
- url: `/v1/users/b2c/${id}/status`,
3284
- method: 'PATCH',
3285
- data: changeUserStatus,
3286
- secure: true,
3287
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
3288
- });
3289
- }
3290
- /**
3291
- * @description Get B2C users with pagination
3292
- * @tags b2c_users
3293
- * @name Get
3294
- * @summary Get B2C users with pagination
3295
- * @request POST:/v2/users/b2c/list
3296
- * @secure
3297
- */ get(getB2CUsers, config) {
3298
- return this.apiClient.request({
3299
- ...config,
3300
- url: `/v2/users/b2c/list`,
3301
- method: 'POST',
3302
- data: getB2CUsers,
3303
- secure: true,
3304
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3305
- responseType: 'json'
3306
- });
3307
- }
3308
- }
3309
-
3310
-
3311
- var $fa365a2bc9112c99$exports = {};
3312
-
3313
- $parcel$export($fa365a2bc9112c99$exports, "Tags", () => $fa365a2bc9112c99$export$b72686b556e29ca6);
3314
- /* eslint-disable */ /* tslint:disable */ /*
3315
- * ---------------------------------------------------------------
3316
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
3317
- * ## ##
3318
- * ## AUTHOR: acacode ##
3319
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
3320
- * ---------------------------------------------------------------
3321
- */
3322
-
3323
- class $fa365a2bc9112c99$export$b72686b556e29ca6 {
3324
- constructor(apiClient){
3325
- this.apiClient = apiClient;
3326
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
3327
- }
3328
- /**
3329
- * @description Create Tag
3330
- * @tags tags
3331
- * @name Create
3332
- * @summary Create Tag
3333
- * @request POST:/v1/tags
3334
- * @secure
3335
- */ create(createTagDto, config) {
3336
- return this.apiClient.request({
3337
- ...config,
3338
- url: `/v1/tags`,
3339
- method: 'POST',
3340
- data: createTagDto,
3341
- secure: true,
3342
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3343
- responseType: 'json'
3344
- });
3345
- }
3346
- /**
3347
- * @description Delete Tags
3348
- * @tags tags
3349
- * @name DeleteMany
3350
- * @summary Delete Tags
3351
- * @request DELETE:/v1/tags
3352
- * @secure
3353
- */ deleteMany(deleteByIDsDto, config) {
3354
- return this.apiClient.request({
3355
- ...config,
3356
- url: `/v1/tags`,
3357
- method: 'DELETE',
3358
- data: deleteByIDsDto,
3359
- secure: true,
3360
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
3361
- });
3362
- }
3363
- /**
3364
- * @description Get Tags List. Available fields for sorting are `id, name, created_at, updated_at`. Search is performed by `name`
3365
- * @tags tags
3366
- * @name Get
3367
- * @summary Get Tags List
3368
- * @request POST:/v1/tags/list
3369
- * @secure
3370
- */ get(getTagsDto, config) {
3371
- return this.apiClient.request({
3372
- ...config,
3373
- url: `/v1/tags/list`,
3374
- method: 'POST',
3375
- data: getTagsDto,
3376
- secure: true,
3377
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3378
- responseType: 'json'
3379
- });
3380
- }
3381
- /**
3382
- * @description Get Tags By ID
3383
- * @tags tags
3384
- * @name GetById
3385
- * @summary Get Tag By ID
3386
- * @request GET:/v1/tags/{id}
3387
- * @secure
3388
- */ getById(id, config) {
3389
- return this.apiClient.request({
3390
- ...config,
3391
- url: `/v1/tags/${id}`,
3392
- method: 'GET',
3393
- secure: true,
3394
- responseType: 'json'
3395
- });
3396
- }
3397
- /**
3398
- * @description Update Tag
3399
- * @tags tags
3400
- * @name Update
3401
- * @summary Update Tag
3402
- * @request PUT:/v1/tags/{id}
3403
- * @secure
3404
- */ update(id, updateTagDto, config) {
3405
- return this.apiClient.request({
3406
- ...config,
3407
- url: `/v1/tags/${id}`,
3408
- method: 'PUT',
3409
- data: updateTagDto,
3410
- secure: true,
3411
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3412
- responseType: 'json'
3413
- });
3414
- }
3415
- }
3416
-
3417
-
3418
- var $80f9a3dfb8c7bd16$exports = {};
3419
-
3420
- $parcel$export($80f9a3dfb8c7bd16$exports, "UserDetails", () => $80f9a3dfb8c7bd16$export$a398983943bbde23);
3421
- /* eslint-disable */ /* tslint:disable */ /*
3422
- * ---------------------------------------------------------------
3423
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
3424
- * ## ##
3425
- * ## AUTHOR: acacode ##
3426
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
3427
- * ---------------------------------------------------------------
3428
- */
3429
-
3430
- class $80f9a3dfb8c7bd16$export$a398983943bbde23 {
3431
- constructor(apiClient){
3432
- this.apiClient = apiClient;
3433
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
3434
- }
3435
- /**
3436
- * @description Get User Details by JWT-token
3437
- * @tags user_details
3438
- * @name GetUserDetails
3439
- * @summary Get User Details by JWT-token
3440
- * @request POST:/v1/users/details/show
3441
- * @secure
3442
- */ getUserDetails(getUserDetailsDto, config) {
3443
- return this.apiClient.request({
3444
- ...config,
3445
- url: `/v1/users/details/show`,
3446
- method: 'POST',
3447
- data: getUserDetailsDto,
3448
- secure: true,
3449
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3450
- responseType: 'json'
3451
- });
3452
- }
3453
- /**
3454
- * @description Revoke user sessions by JWT-token
3455
- * @tags user_details
3456
- * @name RevokeSessions
3457
- * @summary Revoke user sessions by JWT-token
3458
- * @request POST:/v1/users/revoke-sessions
3459
- * @secure
3460
- */ revokeSessions(revokeUserSessionsDto, config) {
3461
- return this.apiClient.request({
3462
- ...config,
3463
- url: `/v1/users/revoke-sessions`,
3464
- method: 'POST',
3465
- data: revokeUserSessionsDto,
3466
- secure: true,
3467
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
3468
- });
3469
- }
3470
- }
3471
-
3472
-
3473
- var $9d93f73b1440f840$exports = {};
3474
-
3475
- $parcel$export($9d93f73b1440f840$exports, "UsersCommon", () => $9d93f73b1440f840$export$12728e6e259e1581);
3476
- /* eslint-disable */ /* tslint:disable */ /*
3477
- * ---------------------------------------------------------------
3478
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
3479
- * ## ##
3480
- * ## AUTHOR: acacode ##
3481
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
3482
- * ---------------------------------------------------------------
3483
- */
3484
-
3485
- class $9d93f73b1440f840$export$12728e6e259e1581 {
3486
- constructor(apiClient){
3487
- this.apiClient = apiClient;
3488
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
3489
- }
3490
- /**
3491
- * @description Reset B2B/B2C user rate limits
3492
- * @tags users_common
3493
- * @name ResetRateLimits
3494
- * @summary Reset rate limits
3495
- * @request PATCH:/v1/users/rate-limits/reset
3496
- * @secure
3497
- */ resetRateLimits(resetRateLimitsDto, config) {
3498
- return this.apiClient.request({
3499
- ...config,
3500
- url: `/v1/users/rate-limits/reset`,
3501
- method: 'PATCH',
3502
- data: resetRateLimitsDto,
3503
- secure: true,
3504
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
3505
- });
3506
- }
3507
- /**
3508
- * @description Get user status change reasons list
3509
- * @tags users_common
3510
- * @name GetUserStatusChangeReasonsList
3511
- * @summary Get user status change reasons list
3512
- * @request POST:/v1/users/status-change-reasons/list
3513
- * @secure
3514
- */ getUserStatusChangeReasonsList(getUserStatusChangeReasonsDto, config) {
3515
- return this.apiClient.request({
3516
- ...config,
3517
- url: `/v1/users/status-change-reasons/list`,
3518
- method: 'POST',
3519
- data: getUserStatusChangeReasonsDto,
3520
- secure: true,
3521
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3522
- responseType: 'json'
3523
- });
3524
- }
3525
- /**
3526
- * @description Link Watchmen user to UMA
3527
- * @tags users_common
3528
- * @name LinkWatchmenUsersToUma
3529
- * @summary Link Watchmen user to UMA
3530
- * @request POST:/v1/users/watchmen/link
3531
- * @secure
3532
- */ linkWatchmenUsersToUma(linkWatchmenUserToUmaDto, config) {
3533
- return this.apiClient.request({
3534
- ...config,
3535
- url: `/v1/users/watchmen/link`,
3536
- method: 'POST',
3537
- data: linkWatchmenUserToUmaDto,
3538
- secure: true,
3539
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
3540
- });
3541
- }
3542
- }
3543
-
3544
-
3545
- var $804aecfbbda535b0$exports = {};
3546
-
3547
- $parcel$export($804aecfbbda535b0$exports, "SystemUsers", () => $804aecfbbda535b0$export$636de4c783ade7b8);
3548
- /* eslint-disable */ /* tslint:disable */ /*
3549
- * ---------------------------------------------------------------
3550
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
3551
- * ## ##
3552
- * ## AUTHOR: acacode ##
3553
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
3554
- * ---------------------------------------------------------------
3555
- */
3556
-
3557
- class $804aecfbbda535b0$export$636de4c783ade7b8 {
3558
- constructor(apiClient){
3559
- this.apiClient = apiClient;
3560
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
3561
- }
3562
- /**
3563
- * @description Create System User
3564
- * @tags system_users
3565
- * @name Create
3566
- * @summary Create System User
3567
- * @request POST:/v1/users/system
3568
- * @secure
3569
- */ create(createSystemUser, config) {
3570
- return this.apiClient.request({
3571
- ...config,
3572
- url: `/v1/users/system`,
3573
- method: 'POST',
3574
- data: createSystemUser,
3575
- secure: true,
3576
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3577
- responseType: 'json'
3578
- });
3579
- }
3580
- /**
3581
- * @description Delete System user by id
3582
- * @tags system_users
3583
- * @name DeleteMany
3584
- * @summary Delete System user by id
3585
- * @request DELETE:/v1/users/system
3586
- * @secure
3587
- */ deleteMany(deleteSystemUsers, config) {
3588
- return this.apiClient.request({
3589
- ...config,
3590
- url: `/v1/users/system`,
3591
- method: 'DELETE',
3592
- data: deleteSystemUsers,
3593
- secure: true,
3594
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
3595
- });
3596
- }
3597
- /**
3598
- * @description Get System users with pagination
3599
- * @tags System_users
3600
- * @name Get
3601
- * @summary Get System users with pagination
3602
- * @request POST:/v1/users/system/list
3603
- * @secure
3604
- */ get(getSystemUsers, config) {
3605
- return this.apiClient.request({
3606
- ...config,
3607
- url: `/v1/users/system/list`,
3608
- method: 'POST',
3609
- data: getSystemUsers,
3610
- secure: true,
3611
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3612
- responseType: 'json'
3613
- });
3614
- }
3615
- /**
3616
- * @description Get System User by id
3617
- * @tags system_users
3618
- * @name GetById
3619
- * @summary Get System User by id
3620
- * @request GET:/v1/users/system/{id}
3621
- * @secure
3622
- */ getById(id, config) {
3623
- return this.apiClient.request({
3624
- ...config,
3625
- url: `/v1/users/system/${id}`,
3626
- method: 'GET',
3627
- secure: true,
3628
- responseType: 'json'
3629
- });
3630
- }
3631
- /**
3632
- * @description Update System User
3633
- * @tags system_users
3634
- * @name Update
3635
- * @summary Update System User
3636
- * @request PUT:/v1/users/system/{id}
3637
- * @secure
3638
- */ update(id, updateSystemUser, config) {
3639
- return this.apiClient.request({
3640
- ...config,
3641
- url: `/v1/users/system/${id}`,
3642
- method: 'PUT',
3643
- data: updateSystemUser,
3644
- secure: true,
3645
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3646
- responseType: 'json'
3647
- });
3648
- }
3649
- /**
3650
- * @description Generate System User PDF
3651
- * @tags system_users
3652
- * @name GenerateAsPdf
3653
- * @summary Generate System User PDF
3654
- * @request POST:/v1/users/system/{id}/generate-as-pdf
3655
- * @secure
3656
- */ generateAsPdf(id, config) {
3657
- return this.apiClient.request({
3658
- ...config,
3659
- url: `/v1/users/system/${id}/generate-as-pdf`,
3660
- method: 'POST',
3661
- secure: true
3662
- });
3663
- }
3664
- /**
3665
- * @description Change System User status
3666
- * @tags system_users
3667
- * @name ChangeStatus
3668
- * @summary Change System User status
3669
- * @request PATCH:/v1/users/system/{id}/status
3670
- * @secure
3671
- */ changeStatus(id, changeUserStatus, config) {
3672
- return this.apiClient.request({
3673
- ...config,
3674
- url: `/v1/users/system/${id}/status`,
3675
- method: 'PATCH',
3676
- data: changeUserStatus,
3677
- secure: true,
3678
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
3679
- });
3680
- }
3681
- }
3682
-
3683
-
3684
- var $0715cbeed7b5f858$exports = {};
3685
-
3686
- $parcel$export($0715cbeed7b5f858$exports, "Countries", () => $0715cbeed7b5f858$export$b33f41d0b11df887);
3687
- /* eslint-disable */ /* tslint:disable */ /*
3688
- * ---------------------------------------------------------------
3689
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
3690
- * ## ##
3691
- * ## AUTHOR: acacode ##
3692
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
3693
- * ---------------------------------------------------------------
3694
- */
3695
- class $0715cbeed7b5f858$export$b33f41d0b11df887 {
3696
- constructor(apiClient){
3697
- this.apiClient = apiClient;
3698
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
3699
- }
3700
- /**
3701
- * @description Get Countries info
3702
- * @tags countries
3703
- * @name Get
3704
- * @summary Get Countries info
3705
- * @request GET:/v1/countries/
3706
- */ get(config) {
3707
- return this.apiClient.request({
3708
- ...config,
3709
- url: `/v1/countries/`,
3710
- method: 'GET',
3711
- secure: false,
3712
- responseType: 'json'
3713
- });
3714
- }
3715
- }
3716
-
3717
-
3718
- var $e568b1faeb20dc39$exports = {};
3719
-
3720
- $parcel$export($e568b1faeb20dc39$exports, "WatchmenInstances", () => $e568b1faeb20dc39$export$a780f46fdf729420);
3721
- /* eslint-disable */ /* tslint:disable */ /*
3722
- * ---------------------------------------------------------------
3723
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
3724
- * ## ##
3725
- * ## AUTHOR: acacode ##
3726
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
3727
- * ---------------------------------------------------------------
3728
- */
3729
-
3730
- class $e568b1faeb20dc39$export$a780f46fdf729420 {
3731
- constructor(apiClient){
3732
- this.apiClient = apiClient;
3733
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
3734
- }
3735
- /**
3736
- * @description Create Watchmen Instance
3737
- * @tags watchmen_instances
3738
- * @name Create
3739
- * @summary Create Watchmen Instance
3740
- * @request POST:/v1/watchmen-instances
3741
- * @secure
3742
- */ create(createWatchmenInstance, config) {
3743
- return this.apiClient.request({
3744
- ...config,
3745
- url: `/v1/watchmen-instances`,
3746
- method: 'POST',
3747
- data: createWatchmenInstance,
3748
- secure: true,
3749
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3750
- responseType: 'json'
3751
- });
3752
- }
3753
- /**
3754
- * @description Delete Watchmen Instances
3755
- * @tags watchmen_instances
3756
- * @name DeleteMany
3757
- * @summary Delete Watchmen Instances
3758
- * @request DELETE:/v1/watchmen-instances
3759
- * @secure
3760
- */ deleteMany(deleteWatchmenInstances, config) {
3761
- return this.apiClient.request({
3762
- ...config,
3763
- url: `/v1/watchmen-instances`,
3764
- method: 'DELETE',
3765
- data: deleteWatchmenInstances,
3766
- secure: true,
3767
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json
3768
- });
3769
- }
3770
- /**
3771
- * @description Get Watchmen Instances with pagination. Available sort fields are `id, name, slug, url, created_at, updated_at`. Search is performed by `name, url, slug` fields.
3772
- * @tags watchmen_instances
3773
- * @name GetMany
3774
- * @summary Get Watchmen Instances with pagination
3775
- * @request POST:/v1/watchmen-instances/list
3776
- * @secure
3777
- */ getMany(getWatchmenInstances, config) {
3778
- return this.apiClient.request({
3779
- ...config,
3780
- url: `/v1/watchmen-instances/list`,
3781
- method: 'POST',
3782
- data: getWatchmenInstances,
3783
- secure: true,
3784
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3785
- responseType: 'json'
3786
- });
3787
- }
3788
- /**
3789
- * @description Get Watchmen Instance by id
3790
- * @tags watchmen_instances
3791
- * @name GetById
3792
- * @summary Get Watchmen Instance by id
3793
- * @request GET:/v1/watchmen-instances/{id}
3794
- * @secure
3795
- */ getById(id, config) {
3796
- return this.apiClient.request({
3797
- ...config,
3798
- url: `/v1/watchmen-instances/${id}`,
3799
- method: 'GET',
3800
- secure: true,
3801
- responseType: 'json'
3802
- });
3803
- }
3804
- /**
3805
- * @description Update Watchmen Instance
3806
- * @tags watchmen_instances
3807
- * @name Update
3808
- * @summary Update Watchmen Instance
3809
- * @request PUT:/v1/watchmen-instances/{id}
3810
- * @secure
3811
- */ update(id, updateWatchmenInstance, config) {
3812
- return this.apiClient.request({
3813
- ...config,
3814
- url: `/v1/watchmen-instances/${id}`,
3815
- method: 'PUT',
3816
- data: updateWatchmenInstance,
3817
- secure: true,
3818
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3819
- responseType: 'json'
3820
- });
3821
- }
3822
- }
3823
-
3824
-
3825
- var $a4db5073e15c3de5$exports = {};
3826
-
3827
- $parcel$export($a4db5073e15c3de5$exports, "MigrationUtils", () => $a4db5073e15c3de5$export$786262b732115aec);
3828
- /* eslint-disable */ /* tslint:disable */ /*
3829
- * ---------------------------------------------------------------
3830
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
3831
- * ## ##
3832
- * ## AUTHOR: acacode ##
3833
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
3834
- * ---------------------------------------------------------------
3835
- */
3836
-
3837
- class $a4db5073e15c3de5$export$786262b732115aec {
3838
- constructor(apiClient){
3839
- this.apiClient = apiClient;
3840
- (0, ($parcel$interopDefault($l6jTM$autobind)))(this);
3841
- }
3842
- /**
3843
- * @description Upsert Users from deprecated DB's
3844
- * @tags migration-utils
3845
- * @name PostUsersUpsert
3846
- * @summary Upsert Users
3847
- * @request POST:/v1/migration-utils/users/upsert
3848
- * @secure
3849
- */ postUsersUpsert(upsertUsers, config) {
3850
- return this.apiClient.request({
3851
- ...config,
3852
- url: `/v1/migration-utils/users/upsert`,
3853
- method: 'POST',
3854
- data: upsertUsers,
3855
- secure: true,
3856
- contentType: (0, $3621850f1f570615$export$e2e108cbe2e4f865).Json,
3857
- responseType: 'json'
3858
- });
3859
- }
3860
- }
3861
-
3862
-
3863
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $467e4c6e7d89aebd$exports);
3864
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $64de154218b7fbdb$exports);
3865
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $9afc25bb6382508d$exports);
3866
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $03cfd804b3d9aa9d$exports);
3867
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $9d5428c2d0a8567e$exports);
3868
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $b2299ac954a8fc8d$exports);
3869
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $8a7b2186643ed4fa$exports);
3870
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $ffa44a7a6cb1797b$exports);
3871
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $3d93a2bbc8d670c7$exports);
3872
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $9f9d15a2ead3d19e$exports);
3873
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $99f79cb7451ae9b4$exports);
3874
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $ce569e5a995481c0$exports);
3875
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $df695f87ca5b91a2$exports);
3876
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $3b4bcede9184e796$exports);
3877
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $e62712fa17120ca8$exports);
3878
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $1e21fcd680cfce14$exports);
3879
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $6a1ecdc6ed5475ef$exports);
3880
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $9c457e9a76889c9b$exports);
3881
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $bc418d19284783e9$exports);
3882
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $34a8f468335f4867$exports);
3883
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $f2fd7bf904994f56$exports);
3884
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $8a898e729d6b07c5$exports);
3885
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $46005671a41e8997$exports);
3886
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $35dafdf54ad816d8$exports);
3887
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $c1c4df84d5d3a23d$exports);
3888
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $8679c96643548d8f$exports);
3889
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $fa365a2bc9112c99$exports);
3890
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $80f9a3dfb8c7bd16$exports);
3891
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $9d93f73b1440f840$exports);
3892
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $804aecfbbda535b0$exports);
3893
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $0715cbeed7b5f858$exports);
3894
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $e568b1faeb20dc39$exports);
3895
- $parcel$exportWildcard($dbc7cbd402bafa1b$exports, $a4db5073e15c3de5$exports);
3896
-
3897
-
3898
- class $f95085163b769504$export$d0994445e90c353b extends (0, $9d5428c2d0a8567e$export$d0994445e90c353b) {
3899
- /**
3900
- * @description Login B2B user by email/password.
3901
- * @tags b2b_auth
3902
- * @name BasicLogin
3903
- * @summary Login B2B user by email/password
3904
- * @request POST:/v1/auth/b2b/login/basic
3905
- */ async basicLogin(basicLoginParams, headers, config) {
3906
- const response = await super.basicLogin(basicLoginParams, headers, config);
3907
- if (response.success) this.apiClient.setAuthData({
3908
- accessToken: response.data.login_basic.tokens.access_token ?? '',
3909
- refreshToken: response.data.login_basic.tokens.refresh_token ?? ''
3910
- });
3911
- return response;
3912
- }
3913
- }
3914
-
3915
-
3916
-
3917
- class $ea740c3dc351b0e9$export$191c573f104d53f4 extends (0, $b2299ac954a8fc8d$export$191c573f104d53f4) {
3918
- /**
3919
- * @description Login B2C user by email/password.
3920
- * @tags b2c_auth
3921
- * @name BasicLogin
3922
- * @summary Login B2C user by email/password
3923
- * @request POST:/v1/auth/b2c/login/basic
3924
- */ async basicLogin(basicLoginParams, headers, config) {
3925
- const response = await super.basicLogin(basicLoginParams, headers, config);
3926
- if (response.success) this.apiClient.setAuthData({
3927
- accessToken: response.data.login_basic.tokens.access_token ?? '',
3928
- refreshToken: response.data.login_basic.tokens.refresh_token ?? ''
3929
- });
3930
- return response;
3931
- }
3932
- }
3933
-
3934
-
3935
-
3936
- class $e0cb59dd918b422a$export$ae615290d7b354e extends (0, $780091c10287ceed$export$3ad201792064a82b) {
3937
- constructor(config){
3938
- super(new (0, $538ed1203bac2e79$export$f280b732bbc5934b)(config)), this.config = config;
3939
- this.actionLog = new (0, $467e4c6e7d89aebd$export$e241ab6b9aa14723)(this.apiClient);
3940
- this.apiKeys = new (0, $9f9d15a2ead3d19e$export$a67a305ca3f5ec6a)(this.apiClient);
3941
- this.authApps = new (0, $9afc25bb6382508d$export$d3eceb771169d266)(this.apiClient);
3942
- this.authForms = new (0, $03cfd804b3d9aa9d$export$11ae43b56f3f836c)(this.apiClient);
3943
- this.b2bAuth = new (0, $f95085163b769504$export$d0994445e90c353b)(this.apiClient);
3944
- this.b2bUsers = new (0, $c1c4df84d5d3a23d$export$9f8c8ef54665205)(this.apiClient);
3945
- this.b2bUserSettings = new (0, $e62712fa17120ca8$export$cdea59308760ada2)(this.apiClient);
3946
- this.b2cAuth = new (0, $ea740c3dc351b0e9$export$191c573f104d53f4)(this.apiClient);
3947
- this.b2cUsers = new (0, $8679c96643548d8f$export$50c35e5cd2b1a04b)(this.apiClient);
3948
- this.b2cUserSettings = new (0, $6a1ecdc6ed5475ef$export$af92e794dd76d018)(this.apiClient);
3949
- this.branches = new (0, $9c457e9a76889c9b$export$bec84148410bc670)(this.apiClient);
3950
- this.countries = new (0, $0715cbeed7b5f858$export$b33f41d0b11df887)(this.apiClient);
3951
- this.endpoints = new (0, $99f79cb7451ae9b4$export$eed022e50baffed5)(this.apiClient);
3952
- this.fims = new (0, $bc418d19284783e9$export$264f565cd0c1cc56)(this.apiClient);
3953
- this.identityProviders = new (0, $df695f87ca5b91a2$export$5887f54682395684)(this.apiClient);
3954
- this.locales = new (0, $34a8f468335f4867$export$8e1c4644f466949c)(this.apiClient);
3955
- this.microservices = new (0, $ce569e5a995481c0$export$336c46c9fcb38eaa)(this.apiClient);
3956
- this.migrationUtils = new (0, $a4db5073e15c3de5$export$786262b732115aec)(this.apiClient);
3957
- this.permissions = new (0, $f2fd7bf904994f56$export$2d41982586bbb6be)(this.apiClient);
3958
- this.publicSettings = new (0, $8a898e729d6b07c5$export$3e6fb5c4a94a74de)(this.apiClient);
3959
- this.roles = new (0, $46005671a41e8997$export$d1d9e451800db729)(this.apiClient);
3960
- this.roleTypes = new (0, $3b4bcede9184e796$export$2cb4a31baf73b247)(this.apiClient);
3961
- this.secretNotes = new (0, $35dafdf54ad816d8$export$49d1d1bca95f1922)(this.apiClient);
3962
- this.sessions = new (0, $ffa44a7a6cb1797b$export$c8d7e81b9a544c06)(this.apiClient);
3963
- this.systemUsers = new (0, $804aecfbbda535b0$export$636de4c783ade7b8)(this.apiClient);
3964
- this.tablePresets = new (0, $1e21fcd680cfce14$export$f946eed22c6da23d)(this.apiClient);
3965
- this.tags = new (0, $fa365a2bc9112c99$export$b72686b556e29ca6)(this.apiClient);
3966
- this.trustedDevices = new (0, $8a7b2186643ed4fa$export$31b14c8b5a956c9c)(this.apiClient);
3967
- this.userDetails = new (0, $80f9a3dfb8c7bd16$export$a398983943bbde23)(this.apiClient);
3968
- this.usersCommon = new (0, $9d93f73b1440f840$export$12728e6e259e1581)(this.apiClient);
3969
- this.watchmenAuth = new (0, $3d93a2bbc8d670c7$export$b5681ba9d8d05c26)(this.apiClient);
3970
- this.watchmenInstances = new (0, $e568b1faeb20dc39$export$a780f46fdf729420)(this.apiClient);
3971
- this.apiClient.setRenewTokenCallback(this.renewToken);
3972
- }
3973
- async renewToken() {
3974
- const refreshToken = this.apiClient.getAuthData()?.refreshToken;
3975
- if (!refreshToken) throw new Error('Refresh token not found');
3976
- const payload = (0, $l6jTM$jwtdecode.jwtDecode)(refreshToken);
3977
- let response;
3978
- if (payload.u_type === 'b2b') response = await this.b2bAuth.refreshTokens({
3979
- refresh_token: refreshToken
3980
- });
3981
- else response = await this.b2cAuth.refreshTokens({
3982
- refresh_token: refreshToken,
3983
- auth_form_slug: this.apiClient.getConfig().authFormSlug
3984
- });
3985
- if (response.success) return {
3986
- accessToken: response.data.login_basic.tokens.access_token ?? '',
3987
- refreshToken: response.data.login_basic.tokens.refresh_token ?? ''
3988
- };
3989
- else throw new Error(`Could not renew token: ${String(response.error)}`);
3990
- }
3991
- }
3992
-
3993
-
3994
-
3995
- $parcel$exportWildcard(module.exports, $e0cb59dd918b422a$exports);
3996
- $parcel$exportWildcard(module.exports, $dbc7cbd402bafa1b$exports);
3997
-
3998
-
1
+ var e,t,s,r,n,i,a,o,u,p,l,c,h,d,T,y,m,C,E,g,b,v,P,f,q,S,U,A,w,O,J,k,j,D,_,B,L,R,F,I,G,M,$,x,N,V,H,K,z,W,Y,Q,X,Z=require("jwt-decode"),ee=require("auto-bind"),et=require("async-mutex"),es=require("consola"),er=require("date-fns"),en=require("axios"),ei=require("axios-better-stacktrace"),ea=require("lodash");function eo(e,t){return Object.keys(t).forEach(function(s){"default"===s||"__esModule"===s||Object.prototype.hasOwnProperty.call(e,s)||Object.defineProperty(e,s,{enumerable:!0,get:function(){return t[s]}})}),e}function eu(e,t,s,r){Object.defineProperty(e,t,{get:s,set:r,enumerable:!0,configurable:!0})}function ep(e){return e&&e.__esModule?e.default:e}var el={};eu(el,"UmaApi",()=>so);class ec{constructor(e){this.apiClient=e,ep(ee)(this)}getApiClient(){return this.apiClient}}var eh=((e={}).Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded",e.Text="text/plain",e);class ed{constructor(e){this.config=e,ep(ee)(this),this.storage=e.storage??sessionStorage,this.axiosInstance=ep(en).create({baseURL:e.baseUrl,withCredentials:e.withCredentials,headers:{"Content-Type":"application/json",...e.defaultHeaders}}),ep(ei)(this.axiosInstance)}stringifyFormItem(e){return"object"==typeof e&&null!==e?JSON.stringify(e):`${e}`}createFormData(e){return e instanceof FormData?e:Object.keys(e).reduce((t,s)=>{let r=e[s];for(let e of r instanceof Array?r:[r]){let r=e instanceof Blob||e instanceof File;t.append(s,r?e:this.stringifyFormItem(e))}return t},new FormData)}async request(e){let{contentType:t,data:s}=e;(0,ea.isNil)(s)||("multipart/form-data"===t&&"object"==typeof s&&(e.data=this.createFormData(s)),"text/plain"===t&&"string"!=typeof s&&(e.data=JSON.stringify(s)));let r=(0,ea.merge)(e.secure??this.config.defaultSecure??!0?await this.prepareAuthRequestConfig():{},t?{headers:{"Content-Type":t}}:{},e);try{let{data:e,status:t,statusText:s}=await this.axiosInstance.request(r);return{success:!0,data:e,status:t,statusText:s}}catch(s){if(!this.config.handleError&&!e.handleError)throw s;let t={success:!1,status:-1,statusText:String(s),error:s};return(0,en.isAxiosError)(s)&&(this.config.onAxiosError?.(s),t.data=s.response?.data,t.status=s.response?.status??t.status,t.statusText=s.response?.statusText??t.statusText),this.config.onError?.(s),t}}get(e,t){return this.request({...t,method:"GET",url:e})}delete(e,t){return this.request({...t,method:"DELETE",url:e})}head(e,t){return this.request({...t,method:"HEAD",url:e})}options(e,t){return this.request({...t,method:"OPTIONS",url:e})}post(e,t,s){return this.request({...s,method:"POST",url:e,data:t})}put(e,t,s){return this.request({...s,method:"PUT",url:e,data:t})}patch(e,t,s){return this.request({...s,method:"PATCH",url:e,data:t})}getAxios(){return this.axiosInstance}setAuthData(e){this.storage.setItem(this.config.authDataStorageKey||"auth",JSON.stringify(e))}getAuthData(){let e=this.storage.getItem(this.config.authDataStorageKey||"auth");return e?JSON.parse(e):null}getConfig(){return this.config}}class eT extends ed{constructor(e){super(e),this.config=e,this.lock=new et.Mutex}getConfig(){return super.getConfig()}setRenewTokenCallback(e){this.renewTokenCallback=e}async prepareAuthRequestConfig(){if(this.config.withCredentials)return{};let{accessToken:e}=this.getAuthData()||{};if(!e)return(0,es.consola).warn("No access token found. Please set auth data after authorization."),{};if(!1!==this.config.autoRenewToken&&this.isTokenExpired(e))try{await this.lock.runExclusive(async()=>{this.config.debug&&(0,es.consola).debug("Token expired. Renewing…"),e=(await this.renewToken()).accessToken,this.lock.cancel()})}catch(t){if(t===et.E_CANCELED)e=this.getAuthData()?.accessToken;else throw t}return{headers:{Authorization:`${this.config.authSchema??"Bearer"} ${e}`}}}isTokenExpired(e){let t=(0,Z.jwtDecode)(e);return!t.exp||(0,er.isBefore)((0,er.subMinutes)(1e3*t.exp,1),Date.now())}async renewToken(){let e=this.config.onRenewToken??this.renewTokenCallback;if(!e)throw Error("No renew token callback provided");let t=await e();return this.setAuthData(t),t}}var ey={},em={};eu(em,"UmaAuthAppType",()=>eC),eu(em,"UmaAuthUserType",()=>eE),eu(em,"UmaResetPasswordType",()=>eg),eu(em,"UmaErrorCode",()=>eb),eu(em,"UmaOption",()=>ev),eu(em,"UmaActionTrigger",()=>eP),eu(em,"UmaActionType",()=>ef),eu(em,"UmaAuthProviderAppType",()=>eq),eu(em,"UmaEndpointType",()=>eS),eu(em,"UmaEntityAccessType",()=>eU),eu(em,"UmaEntityName",()=>eA),eu(em,"UmaPermissionAG",()=>ew),eu(em,"UmaUserStatus",()=>eO),eu(em,"UmaUserType",()=>eJ),eu(em,"UmaTenantSettingLabel",()=>ek),eu(em,"UmaAuthFormDtoResetPasswordTypeEnum",()=>ej),eu(em,"UmaAuthFormSerializerResetPasswordTypeEnum",()=>eD),eu(em,"UmaB2BSendContactChangeCodeDtoTypeEnum",()=>e_),eu(em,"UmaB2CResetPasswordDtoResetTypeEnum",()=>eB),eu(em,"UmaB2CSendContactChangeCodeDtoTypeEnum",()=>eL),eu(em,"UmaB2CSendVerificationCodeDtoCodeTypeEnum",()=>eR),eu(em,"UmaCreateEndpointDtoMethodEnum",()=>eF),eu(em,"UmaCreateEndpointDtoTypeEnum",()=>eI),eu(em,"UmaCreateIdentityProviderDtoTypeEnum",()=>eG),eu(em,"UmaCreatePermissionDtoAssignmentGroupEnum",()=>eM),eu(em,"UmaCreateRoleDtoAssignmentGroupEnum",()=>e$),eu(em,"UmaCreateSecretNoteDtoTypeEnum",()=>ex),eu(em,"UmaEndpointMetadataDtoUserTypeEnum",()=>eN),eu(em,"UmaEndpointSerializerMethodEnum",()=>eV),eu(em,"UmaGetB2CUsersListFiltersDtoShowOnlyEnum",()=>eH),eu(em,"UmaGetFirmsListFiltersDtoStatusesEnum",()=>eK),eu(em,"UmaGetIdentityProvidersListFiltersDtoTypesEnum",()=>ez),eu(em,"UmaGetUsersListFiltersDtoShowOnlyEnum",()=>eW),eu(em,"UmaGetWebAuthnLoginChallengeDtoUserTypeEnum",()=>eY),eu(em,"UmaIdentityProviderSerializerTypeEnum",()=>eQ),eu(em,"UmaLinkWatchmenUserToUmaDtoUmaUserTypeEnum",()=>eX),eu(em,"UmaPermissionSerializerAssignmentGroupEnum",()=>eZ),eu(em,"UmaRevokeUserSessionsDtoUserTypeEnum",()=>e0),eu(em,"UmaSecretNoteSerializerTypeEnum",()=>e1),eu(em,"UmaSendB2BMfaCodeDtoTypeEnum",()=>e2),eu(em,"UmaSendB2CMfaCodeDtoTypeEnum",()=>e4),eu(em,"UmaSendB2CResetPasswordCodeDtoCodeTypeEnum",()=>e3),eu(em,"UmaSendB2CResetPasswordCodeDtoResetTypeEnum",()=>e9),eu(em,"UmaSendResetPasswordCodeDtoTypeEnum",()=>e8),eu(em,"UmaTenantSettingDtoLabelEnum",()=>e5),eu(em,"UmaUpdateAuthAppDtoStatusEnum",()=>e6),eu(em,"UmaUpdateEndpointDtoMethodEnum",()=>e7),eu(em,"UmaUpdateEndpointDtoTypeEnum",()=>te),eu(em,"UmaUpdateFirmDtoStatusEnum",()=>tt),eu(em,"UmaUpdateIdentityProviderDtoTypeEnum",()=>ts),eu(em,"UmaUpsertUserDtoTypeEnum",()=>tr),eu(em,"UmaVerifyContactDtoCodeTypeEnum",()=>tn);var eC=((t={}).EmailCodeAuthAppType="email_code",t.SmsCodeAuthAppType="sms_code",t.YubicoOTPAuthAppType="yubico_otp",t.WebAuthnAuthAppType="webauthn",t.TOTPAuthAppType="totp",t),eE=((s={}).AllAuthUserType="all",s.B2BAuthUserType="b2b",s.B2CAuthUserType="b2c",s),eg=((r={}).PasswordResetByContactCode="by_contact_code",r.PasswordResetByEmailLink="by_email_link",r),eb=((n={})[n.JSONValidationErr=4e3]="JSONValidationErr",n[n.JSONReadErr=4001]="JSONReadErr",n[n.JSONParseErr=4002]="JSONParseErr",n[n.ForbiddenErr=4003]="ForbiddenErr",n[n.ForbiddenDueLimit=4030]="ForbiddenDueLimit",n[n.RecordNotFoundErr=4004]="RecordNotFoundErr",n[n.RecordAlreadyExistsErr=4005]="RecordAlreadyExistsErr",n[n.ImageValidationErr=4006]="ImageValidationErr",n[n.InappropriateImageErr=4007]="InappropriateImageErr",n[n.FaceNotFoundOnImageErr=4008]="FaceNotFoundOnImageErr",n[n.UnauthorizedErr=4010]="UnauthorizedErr",n[n.TokenRevokedErr=4012]="TokenRevokedErr",n[n.TokenNotActiveErr=4013]="TokenNotActiveErr",n[n.EmailNotVerifiedErr=4015]="EmailNotVerifiedErr",n[n.TokenParsingErr=4016]="TokenParsingErr",n[n.PhoneNotVerifiedErr=4017]="PhoneNotVerifiedErr",n[n.UUIDParseErr=4026]="UUIDParseErr",n[n.InvalidEmailOrPasswordOrTypeErr=4028]="InvalidEmailOrPasswordOrTypeErr",n[n.InvalidMfaCodeErr=4128]="InvalidMfaCodeErr",n[n.MfaRequiredErr=4228]="MfaRequiredErr",n[n.TokenVerificationErr=4328]="TokenVerificationErr",n[n.InvalidAPIKeyOrSecretErr=4428]="InvalidAPIKeyOrSecretErr",n[n.MfaAddingNotAllowedErr=4528]="MfaAddingNotAllowedErr",n[n.BranchRequestNotAllowed=4103]="BranchRequestNotAllowed",n[n.ForbiddenForUserTypeErr=4203]="ForbiddenForUserTypeErr",n[n.SecondForbiddenErr=4031]="SecondForbiddenErr",n[n.ThirdForbiddenErr=4032]="ThirdForbiddenErr",n[n.EntitiesChoiceNotAllowed=4303]="EntitiesChoiceNotAllowed",n[n.RecaptchaErr=4403]="RecaptchaErr",n[n.UpdateOfOldEntityStateErr=4503]="UpdateOfOldEntityStateErr",n[n.ChiefadminMutationErr=4603]="ChiefadminMutationErr",n[n.ChildEntitiesExistErr=4703]="ChildEntitiesExistErr",n[n.TenantActionForbiddenErr=4803]="TenantActionForbiddenErr",n[n.RBACManipulationErr=4903]="RBACManipulationErr",n[n.YubicoMaxKeysLimitReachedErr=4113]="YubicoMaxKeysLimitReachedErr",n[n.ConflictErr=4090]="ConflictErr",n[n.SecondFieldConflictErr=4091]="SecondFieldConflictErr",n[n.ThirdFieldConflictErr=4092]="ThirdFieldConflictErr",n[n.FourthFieldConflictErr=4093]="FourthFieldConflictErr",n[n.FifthFieldConflictErr=4094]="FifthFieldConflictErr",n[n.SixthFieldConflictErr=4095]="SixthFieldConflictErr",n[n.SeventhFieldConflictErr=4096]="SeventhFieldConflictErr",n[n.GoneErr=4100]="GoneErr",n[n.SecondGoneErr=4101]="SecondGoneErr",n[n.UnprocessableEntity=4222]="UnprocessableEntity",n[n.TooEarlyDuplicateRequest=4250]="TooEarlyDuplicateRequest",n[n.RateLimitErr=4291]="RateLimitErr",n[n.ForbiddenByFirmsStatusErr=4292]="ForbiddenByFirmsStatusErr",n[n.NotAcceptableError=4600]="NotAcceptableError",n[n.InternalServerErr=5e3]="InternalServerErr",n[n.InvalidRequest=6e3]="InvalidRequest",n),ev=((i={}).SmsMfaOption="sms",i.EmailMfaOption="email",i.VoiceMfaOption="voice",i.WebAuthnMfaOption="webauthn",i.YubicoOTPMfaOption="yubico_otp",i.TOTPMfaOption="totp",i),eP=((a={}).B2BUserTrigger="b2b_user",a.OwnerUserTrigger="owner_user",a.RegularMigrationsTrigger="regular_migrations",a.DataMigrationsTrigger="data_migrations",a),ef=((o={}).CreateAction="create",o.UpdateAction="update",o.DeleteAction="delete",o.ResetPasswordAction="reset_password",o.RegistrationAction="registration",o.SettingsChangeAction="settings_change",o.AvatarChangeAction="avatar_change",o),eq=((u={}).GoogleOAuth2Provider="google-oauth2",u.AppleIDOAuth2Provider="apple-id",u),eS=((p={}).RegularEndpoint="regular",p.DisplayOnlyEndpoint="display_only",p),eU=((l={}).GranularEntityAccessType="granular",l.HighLevelEntityAccessType="high-level",l),eA=((c={}).B2BUsersEntity="b2b_users",c.B2CUsersEntity="b2c_users",c.RolesEntity="roles",c.RoleTypesEntity="role_types",c.PermissionsEntity="permissions",c.MicroservicesEntity="microservices",c.IdentityProvidersEntity="identity_providers",c.FirmsEntity="firms",c.EndpointsEntity="endpoints",c.BranchesEntity="branches",c.APIKeysEntity="api_keys",c),ew=((h={}).ChiefadminPermissionAG="chiefadmin",h.SuperadminPermissionAG="superadmin",h.B2BOnlyPermissionAG="b2b_only",h.RegularPermissionAG="regular",h),eO=((d={}).ActiveUserStatus="active",d.BlockedUserStatus="blocked",d.ArchivedUserStatus="archived",d),eJ=((T={}).B2BUserType="b2b",T.SystemUserType="system",T.B2CUserType="b2c",T),ek=((y={}).StorePasswordHistoryForDays="store_password_history_for_days",y.ResetPasswordIfUserInactiveForDays="reset_password_if_user_inactive_for_days",y.PeriodicallyResetPasswordAfterDays="periodically_reset_password_after_days",y),ej=((m={}).ByContactCode="by_contact_code",m.ByEmailLink="by_email_link",m),eD=((C={}).ByContactCode="by_contact_code",C.ByEmailLink="by_email_link",C),e_=((E={}).Email="email",E.Voice="voice",E.Sms="sms",E),eB=((g={}).ByContactCode="by_contact_code",g.ByEmailLink="by_email_link",g),eL=((b={}).Email="email",b.Voice="voice",b.Sms="sms",b),eR=((v={}).Email="email",v.Voice="voice",v.Sms="sms",v),eF=((P={}).POST="POST",P.PUT="PUT",P.DELETE="DELETE",P.GET="GET",P.PATCH="PATCH",P.ALL="ALL",P),eI=((f={}).Regular="regular",f.DisplayOnly="display_only",f),eG=((q={}).Okta="okta",q),eM=((S={}).Regular="regular",S.Superadmin="superadmin",S.B2BOnly="b2b_only",S),e$=((U={}).Regular="regular",U.Superadmin="superadmin",U.B2BOnly="b2b_only",U),ex=((A={}).Password="password",A),eN=((w={}).B2B="b2b",w.B2C="b2c",w),eV=((O={}).POST="POST",O.PUT="PUT",O.DELETE="DELETE",O.GET="GET",O.PATCH="PATCH",O.ALL="ALL",O),eH=((J={}).Admin="admin",J.BranchAdmin="branch_admin",J.Compliance="compliance",J),eK=((k={}).InProgress="in_progress",k.Active="active",k.Suspended="suspended",k.Deleted="deleted",k),ez=((j={}).Okta="okta",j),eW=((D={}).Admin="admin",D.BranchAdmin="branch_admin",D.Compliance="compliance",D),eY=((_={}).B2B="b2b",_.B2C="b2c",_),eQ=((B={}).Okta="okta",B),eX=((L={}).B2B="b2b",L.B2C="b2c",L),eZ=((R={}).Regular="regular",R.Chiefadmin="chiefadmin",R.Superadmin="superadmin",R),e0=((F={}).B2B="b2b",F.B2C="b2c",F),e1=((I={}).Password="password",I),e2=((G={}).Email="email",G.Voice="voice",G.Sms="sms",G),e4=((M={}).Email="email",M.Voice="voice",M.Sms="sms",M),e3=(($={}).Email="email",$.Voice="voice",$.Sms="sms",$),e9=((x={}).ByContactCode="by_contact_code",x.ByEmailLink="by_email_link",x),e8=((N={}).Email="email",N.Voice="voice",N.Sms="sms",N),e5=((V={}).StorePasswordHistoryForDays="store_password_history_for_days",V.ResetPasswordIfUserInactiveForDays="reset_password_if_user_inactive_for_days",V.PeriodicallyResetPasswordAfterDays="periodically_reset_password_after_days",V),e6=((H={}).Active="active",H.Disabled="disabled",H),e7=((K={}).POST="POST",K.PUT="PUT",K.DELETE="DELETE",K.GET="GET",K.PATCH="PATCH",K.ALL="ALL",K),te=((z={}).Regular="regular",z.DisplayOnly="display_only",z),tt=((W={}).InProgress="in_progress",W.Active="active",W.Suspended="suspended",W.Deleted="deleted",W),ts=((Y={}).Okta="okta",Y),tr=((Q={}).B2B="b2b",Q.B2C="b2c",Q),tn=((X={}).Email="email",X.Voice="voice",X.Sms="sms",X),ti={};eu(ti,"ActionLogs",()=>ta);class ta{constructor(e){this.apiClient=e,ep(ee)(this)}getActionLogs(e,t){return this.apiClient.request({...t,url:"/v1/action-logs/list",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}}var to={};eu(to,"AuthApps",()=>tu);class tu{constructor(e){this.apiClient=e,ep(ee)(this)}get(e){return this.apiClient.request({...e,url:"/v1/auth-apps",method:"GET",secure:!0,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/auth-apps",method:"DELETE",data:e,secure:!0,contentType:eh.Json})}getRegistrationQr(e,t){return this.apiClient.request({...t,url:"/v1/auth-apps/totp/registration/qr",method:"POST",data:e,secure:!0,contentType:eh.Json})}finishRegistration(e,t){return this.apiClient.request({...t,url:"/v1/auth-apps/totp/registration/response",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}getLoginChallenge(e,t){return this.apiClient.request({...t,url:"/v1/auth-apps/webauthn/login/request",method:"POST",data:e,secure:!1,contentType:eh.Json,responseType:"json"})}getRegisterChallenge(e){return this.apiClient.request({...e,url:"/v1/auth-apps/webauthn/registration/request",method:"POST",secure:!0,responseType:"json"})}finishCredentialRegistration(e,t){return this.apiClient.request({...t,url:"/v1/auth-apps/webauthn/registration/response",method:"POST",data:e,secure:!0,contentType:eh.Json})}register(e,t){return this.apiClient.request({...t,url:"/v1/auth-apps/yubico/otp/registration",method:"POST",data:e,secure:!0,contentType:eh.Json})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/auth-apps/${e}`,method:"PUT",data:t,secure:!0,contentType:eh.Json,responseType:"json"})}}var tp={};eu(tp,"AuthForms",()=>tl);class tl{constructor(e){this.apiClient=e,ep(ee)(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/auth-forms",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/auth-forms",method:"DELETE",data:e,secure:!0,contentType:eh.Json})}get(e,t){return this.apiClient.request({...t,url:"/v1/auth-forms/list",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}getBySlug(e,t){return this.apiClient.request({...t,url:`/v1/auth-forms/public/${e}`,method:"GET",secure:!1,responseType:"json"})}getById(e,t){return this.apiClient.request({...t,url:`/v1/auth-forms/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/auth-forms/${e}`,method:"PUT",data:t,secure:!0,contentType:eh.Json,responseType:"json"})}}var tc={};eu(tc,"B2BAuth",()=>th);class th{constructor(e){this.apiClient=e,ep(ee)(this)}getCurrent(e){return this.apiClient.request({...e,url:"/v1/auth/b2b/current",method:"GET",secure:!0,responseType:"json"})}apiKeysLogin(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2b/login/api-keys",method:"POST",data:e,secure:!1,contentType:eh.Json,responseType:"json"})}basicLogin(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2b/login/basic",method:"POST",data:e,secure:!1,headers:t,contentType:eh.Json,responseType:"json"})}logout(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2b/logout",method:"DELETE",data:e,secure:!1,contentType:eh.Json})}refreshTokens(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2b/refresh",method:"POST",data:e,secure:!1,contentType:eh.Json,responseType:"json"})}resetPassword(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2b/reset-password",method:"PUT",data:e,secure:!1,headers:t,contentType:eh.Json,responseType:"json"})}sendMfaCode(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2b/send-mfa-code",method:"PUT",data:e,secure:!1,contentType:eh.Json})}sendResetPasswordCode(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2b/send-reset-password-code",method:"PUT",data:e,secure:!1,contentType:eh.Json})}}var td={};eu(td,"B2CAuth",()=>tT);class tT{constructor(e){this.apiClient=e,ep(ee)(this)}getCurrent(e){return this.apiClient.request({...e,url:"/v1/auth/b2c/current",method:"GET",secure:!0,responseType:"json"})}initAppleLogin(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/login/apple",method:"POST",data:e,secure:!1,headers:t,responseType:"json"})}finishAppleLogin(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2c/login/apple/callback",method:"POST",data:e,secure:!1,responseType:"json"})}basicLogin(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/login/basic",method:"POST",data:e,secure:!1,headers:t,contentType:eh.Json,responseType:"json"})}initGoogleLogin(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/login/google",method:"POST",data:e,secure:!1,headers:t,responseType:"json"})}finishGoogleLogin(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2c/login/google/callback",method:"POST",data:e,secure:!1,responseType:"json"})}logout(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2c/logout",method:"DELETE",data:e,secure:!1,contentType:eh.Json})}refreshTokens(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/refresh",method:"POST",data:e,secure:!1,headers:t,contentType:eh.Json,responseType:"json"})}register(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/register",method:"POST",data:e,secure:!1,headers:t,contentType:eh.Json,responseType:"json"})}resetPassword(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/reset-password",method:"PUT",data:e,secure:!1,headers:t,contentType:eh.Json})}sendMfaCode(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/send-mfa-code",method:"PUT",data:e,secure:!1,headers:t,contentType:eh.Json})}sendResetPasswordCode(e,t){return this.apiClient.request({...t,url:"/v1/auth/b2c/send-reset-password-code",method:"PUT",data:e,secure:!1,contentType:eh.Json})}sendVerificationCode(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/send-verification-code",method:"PUT",data:e,secure:!1,headers:t,contentType:eh.Json})}verifyContact(e,t,s){return this.apiClient.request({...s,url:"/v1/auth/b2c/verify",method:"PUT",data:e,secure:!1,headers:t,contentType:eh.Json})}}var ty={};eu(ty,"Sessions",()=>tm);class tm{constructor(e){this.apiClient=e,ep(ee)(this)}getCurrentUserSessions(e){return this.apiClient.request({...e,url:"/v1/auth/sessions",method:"GET",secure:!0,responseType:"json"})}deleteCurrentUserSessions(e,t){return this.apiClient.request({...t,url:"/v1/auth/sessions",method:"DELETE",data:e,secure:!0,contentType:eh.Json})}}var tC={};eu(tC,"WatchmenAuth",()=>tE);class tE{constructor(e){this.apiClient=e,ep(ee)(this)}generateWatchmenAuthToken(e,t){return this.apiClient.request({...t,url:"/v1/auth/watchmen/authentication-tokens",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}verifyWatchmenAuthToken(e,t){return this.apiClient.request({...t,url:"/v1/auth/watchmen/authentication-tokens/verify",method:"PUT",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}}var tg={};eu(tg,"TrustedDevices",()=>tb);class tb{constructor(e){this.apiClient=e,ep(ee)(this)}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/auth/trusted-devices",method:"DELETE",data:e,secure:!0,contentType:eh.Json})}get(e,t){return this.apiClient.request({...t,url:"/v1/auth/trusted-devices/list",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}}var tv={};eu(tv,"ApiKeys",()=>tP);class tP{constructor(e){this.apiClient=e,ep(ee)(this)}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/b2b/api-keys",method:"DELETE",data:e,secure:!0,contentType:eh.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/b2b/api-keys/${e}`,method:"GET",secure:!0,responseType:"json"})}create(e,t){return this.apiClient.request({...t,url:"/v2/b2b/api-keys",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/b2b/api-keys/list",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v2/b2b/api-keys/${e}`,method:"PUT",data:t,secure:!0,contentType:eh.Json,responseType:"json"})}}var tf={};eu(tf,"Endpoints",()=>tq);class tq{constructor(e){this.apiClient=e,ep(ee)(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/b2b/endpoints",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/b2b/endpoints",method:"DELETE",data:e,secure:!0,contentType:eh.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/b2b/endpoints/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/b2b/endpoints/${e}`,method:"PUT",data:t,secure:!0,contentType:eh.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/b2b/endpoints/list",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}}var tS={};eu(tS,"IdentityProviders",()=>tU);class tU{constructor(e){this.apiClient=e,ep(ee)(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/b2b/identity-providers",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/b2b/identity-providers",method:"DELETE",data:e,secure:!0,contentType:eh.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/b2b/identity-providers/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/b2b/identity-providers/${e}`,method:"PUT",data:t,secure:!0,contentType:eh.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/b2b/identity-providers/list",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}}var tA={};eu(tA,"RoleTypes",()=>tw);class tw{constructor(e){this.apiClient=e,ep(ee)(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/b2b/role-types",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/b2b/role-types",method:"DELETE",data:e,secure:!0,contentType:eh.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/b2b/role-types/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/b2b/role-types/${e}`,method:"PUT",data:t,secure:!0,contentType:eh.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/b2b/role-types/list",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}}var tO={};eu(tO,"Microservices",()=>tJ);class tJ{constructor(e){this.apiClient=e,ep(ee)(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/b2b/microservices",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/b2b/microservices",method:"DELETE",data:e,secure:!0,contentType:eh.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/b2b/microservices/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/b2b/microservices/${e}`,method:"PUT",data:t,secure:!0,contentType:eh.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/b2b/microservices/list",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}}var tk={};eu(tk,"B2BUserSettings",()=>tj);class tj{constructor(e){this.apiClient=e,ep(ee)(this)}setUserSettings(e,t,s){return this.apiClient.request({...s,url:"/v1/b2b/settings",method:"PUT",data:e,secure:!0,headers:t,contentType:eh.Json,responseType:"json"})}uploadAvatar(e,t){return this.apiClient.request({...t,url:"/v1/b2b/settings/avatar",method:"PUT",data:e,secure:!0,contentType:eh.FormData})}sendContactChangeCode(e,t,s){return this.apiClient.request({...s,url:"/v1/b2b/settings/codes",method:"POST",data:e,secure:!0,headers:t,contentType:eh.Json})}}var tD={};eu(tD,"Branches",()=>t_);class t_{constructor(e){this.apiClient=e,ep(ee)(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/branches",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/branches",method:"DELETE",data:e,secure:!0,contentType:eh.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/branches/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/branches/${e}`,method:"PUT",data:t,secure:!0,contentType:eh.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/branches/list",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}}var tB={};eu(tB,"B2CUserSettings",()=>tL);class tL{constructor(e){this.apiClient=e,ep(ee)(this)}setUserSettings(e,t,s){return this.apiClient.request({...s,url:"/v1/b2c/settings",method:"PUT",data:e,secure:!0,headers:t,contentType:eh.Json,responseType:"json"})}sendContactChangeCode(e,t,s){return this.apiClient.request({...s,url:"/v1/b2c/settings/codes",method:"POST",data:e,secure:!0,headers:t,contentType:eh.Json})}availableMfaOptions(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/mfa-options",method:"GET",secure:!0,headers:e,responseType:"json"})}deleteManyOAuthBindings(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/oauth-links",method:"DELETE",data:e,secure:!0,contentType:eh.Json})}finishAppleProfileLinking(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/oauth-links/apple/finish",method:"POST",data:e,secure:!1,contentType:eh.Json})}initAppleProfileLinking(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/oauth-links/apple/start",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}finishGoogleProfileLinking(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/oauth-links/google/finish",method:"POST",data:e,secure:!1,contentType:eh.Json})}initGoogleProfileLinking(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/oauth-links/google/start",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}getOAuthBindings(e,t){return this.apiClient.request({...t,url:"/v1/b2c/settings/oauth-links/list",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}}var tR={};eu(tR,"TablePresets",()=>tF);class tF{constructor(e){this.apiClient=e,ep(ee)(this)}getUserPresets(e){return this.apiClient.request({...e,url:"/v1/b2b/table-presets",method:"GET",secure:!0,responseType:"json"})}upsert(e,t){return this.apiClient.request({...t,url:"/v1/b2b/table-presets",method:"PUT",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}}var tI={};eu(tI,"Countries",()=>tG);class tG{constructor(e){this.apiClient=e,ep(ee)(this)}get(e){return this.apiClient.request({...e,url:"/v1/countries/",method:"GET",secure:!1,responseType:"json"})}}var tM={};eu(tM,"Locales",()=>t$);class t${constructor(e){this.apiClient=e,ep(ee)(this)}get(e){return this.apiClient.request({...e,url:"/v1/locales",method:"GET",secure:!1,responseType:"json"})}}var tx={};eu(tx,"PublicSettings",()=>tN);class tN{constructor(e){this.apiClient=e,ep(ee)(this)}get(e){return this.apiClient.request({...e,url:"/v1/public-settings",method:"GET",secure:!1,responseType:"json"})}}var tV={};eu(tV,"Roles",()=>tH);class tH{constructor(e){this.apiClient=e,ep(ee)(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/roles",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/roles",method:"DELETE",data:e,secure:!0,contentType:eh.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/roles/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/roles/${e}`,method:"PUT",data:t,secure:!0,contentType:eh.Json,responseType:"json"})}generateAsPdf(e,t){return this.apiClient.request({...t,url:`/v1/roles/${e}/generate-as-pdf`,method:"POST",secure:!0})}get(e,t){return this.apiClient.request({...t,url:"/v2/roles/list",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}}var tK={};eu(tK,"Firms",()=>tz);class tz{constructor(e){this.apiClient=e,ep(ee)(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/firms",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/firms",method:"DELETE",data:e,secure:!0,contentType:eh.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/firms/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/firms/${e}`,method:"PUT",data:t,secure:!0,contentType:eh.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/firms/list",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}}var tW={};eu(tW,"SecretNotes",()=>tY);class tY{constructor(e){this.apiClient=e,ep(ee)(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/secret-notes",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}getOne(e,t){return this.apiClient.request({...t,url:"/v1/secret-notes/fetch",method:"POST",data:e,secure:!1,contentType:eh.Json,responseType:"json"})}sendVerificationCode(e,t){return this.apiClient.request({...t,url:"/v1/secret-notes/verification",method:"PUT",data:e,secure:!1,contentType:eh.Json})}}var tQ={};eu(tQ,"Tags",()=>tX);class tX{constructor(e){this.apiClient=e,ep(ee)(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/tags",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/tags",method:"DELETE",data:e,secure:!0,contentType:eh.Json})}get(e,t){return this.apiClient.request({...t,url:"/v1/tags/list",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}getById(e,t){return this.apiClient.request({...t,url:`/v1/tags/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/tags/${e}`,method:"PUT",data:t,secure:!0,contentType:eh.Json,responseType:"json"})}}var tZ={};eu(tZ,"B2BUsers",()=>t0);class t0{constructor(e){this.apiClient=e,ep(ee)(this)}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/users/b2b",method:"DELETE",data:e,secure:!0,contentType:eh.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/users/b2b/${e}`,method:"GET",secure:!0,responseType:"json"})}generateAsPdf(e,t){return this.apiClient.request({...t,url:`/v1/users/b2b/${e}/generate-as-pdf`,method:"POST",secure:!0})}changeStatus(e,t,s){return this.apiClient.request({...s,url:`/v1/users/b2b/${e}/status`,method:"PATCH",data:t,secure:!0,contentType:eh.Json})}create(e,t){return this.apiClient.request({...t,url:"/v2/users/b2b",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/users/b2b/list",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v2/users/b2b/${e}`,method:"PUT",data:t,secure:!0,contentType:eh.Json,responseType:"json"})}}var t1={};eu(t1,"B2CUsers",()=>t2);class t2{constructor(e){this.apiClient=e,ep(ee)(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/users/b2c",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/users/b2c",method:"DELETE",data:e,secure:!0,contentType:eh.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/users/b2c/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/users/b2c/${e}`,method:"PUT",data:t,secure:!0,contentType:eh.Json,responseType:"json"})}generateAsPdf(e,t){return this.apiClient.request({...t,url:`/v1/users/b2c/${e}/generate-as-pdf`,method:"POST",secure:!0})}changeStatus(e,t,s){return this.apiClient.request({...s,url:`/v1/users/b2c/${e}/status`,method:"PATCH",data:t,secure:!0,contentType:eh.Json})}get(e,t){return this.apiClient.request({...t,url:"/v2/users/b2c/list",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}}var t4={};eu(t4,"UserDetails",()=>t3);class t3{constructor(e){this.apiClient=e,ep(ee)(this)}getUserDetails(e,t){return this.apiClient.request({...t,url:"/v1/users/details/show",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}revokeSessions(e,t){return this.apiClient.request({...t,url:"/v1/users/revoke-sessions",method:"POST",data:e,secure:!0,contentType:eh.Json})}}var t9={};eu(t9,"UsersCommon",()=>t8);class t8{constructor(e){this.apiClient=e,ep(ee)(this)}resetRateLimits(e,t){return this.apiClient.request({...t,url:"/v1/users/rate-limits/reset",method:"PATCH",data:e,secure:!0,contentType:eh.Json})}getUserStatusChangeReasonsList(e,t){return this.apiClient.request({...t,url:"/v1/users/status-change-reasons/list",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}linkWatchmenUsersToUma(e,t){return this.apiClient.request({...t,url:"/v1/users/watchmen/link",method:"POST",data:e,secure:!0,contentType:eh.Json})}}var t5={};eu(t5,"SystemUsers",()=>t6);class t6{constructor(e){this.apiClient=e,ep(ee)(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/users/system",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/users/system",method:"DELETE",data:e,secure:!0,contentType:eh.Json})}get(e,t){return this.apiClient.request({...t,url:"/v1/users/system/list",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}getById(e,t){return this.apiClient.request({...t,url:`/v1/users/system/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/users/system/${e}`,method:"PUT",data:t,secure:!0,contentType:eh.Json,responseType:"json"})}generateAsPdf(e,t){return this.apiClient.request({...t,url:`/v1/users/system/${e}/generate-as-pdf`,method:"POST",secure:!0})}changeStatus(e,t,s){return this.apiClient.request({...s,url:`/v1/users/system/${e}/status`,method:"PATCH",data:t,secure:!0,contentType:eh.Json})}}var t7={};eu(t7,"WatchmenInstances",()=>se);class se{constructor(e){this.apiClient=e,ep(ee)(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/watchmen-instances",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/watchmen-instances",method:"DELETE",data:e,secure:!0,contentType:eh.Json})}getMany(e,t){return this.apiClient.request({...t,url:"/v1/watchmen-instances/list",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}getById(e,t){return this.apiClient.request({...t,url:`/v1/watchmen-instances/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/watchmen-instances/${e}`,method:"PUT",data:t,secure:!0,contentType:eh.Json,responseType:"json"})}}var st={};eu(st,"MigrationUtils",()=>ss);class ss{constructor(e){this.apiClient=e,ep(ee)(this)}postUsersUpsert(e,t){return this.apiClient.request({...t,url:"/v1/migration-utils/users/upsert",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}}var sr={};eu(sr,"Permissions",()=>sn);class sn{constructor(e){this.apiClient=e,ep(ee)(this)}create(e,t){return this.apiClient.request({...t,url:"/v1/permissions",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}deleteMany(e,t){return this.apiClient.request({...t,url:"/v1/permissions",method:"DELETE",data:e,secure:!0,contentType:eh.Json})}getById(e,t){return this.apiClient.request({...t,url:`/v1/permissions/${e}`,method:"GET",secure:!0,responseType:"json"})}update(e,t,s){return this.apiClient.request({...s,url:`/v1/permissions/${e}`,method:"PUT",data:t,secure:!0,contentType:eh.Json,responseType:"json"})}get(e,t){return this.apiClient.request({...t,url:"/v2/permissions/list",method:"POST",data:e,secure:!0,contentType:eh.Json,responseType:"json"})}}eo(ey,em),eo(ey,ti),eo(ey,to),eo(ey,tp),eo(ey,tc),eo(ey,td),eo(ey,ty),eo(ey,tC),eo(ey,tg),eo(ey,tv),eo(ey,tf),eo(ey,tS),eo(ey,tA),eo(ey,tO),eo(ey,tk),eo(ey,tD),eo(ey,tB),eo(ey,tR),eo(ey,tI),eo(ey,tM),eo(ey,tx),eo(ey,tV),eo(ey,tK),eo(ey,tW),eo(ey,tQ),eo(ey,tZ),eo(ey,t1),eo(ey,t4),eo(ey,t9),eo(ey,t5),eo(ey,t7),eo(ey,st),eo(ey,sr);class si extends th{async basicLogin(e,t,s){let r=await super.basicLogin(e,t,s);return r.success&&this.apiClient.setAuthData({accessToken:r.data.login_basic.tokens.access_token??"",refreshToken:r.data.login_basic.tokens.refresh_token??""}),r}}class sa extends tT{async basicLogin(e,t,s){let r=await super.basicLogin(e,t,s);return r.success&&this.apiClient.setAuthData({accessToken:r.data.login_basic.tokens.access_token??"",refreshToken:r.data.login_basic.tokens.refresh_token??""}),r}}class so extends ec{constructor(e){super(new eT(e)),this.config=e,this.actionLog=new ta(this.apiClient),this.apiKeys=new tP(this.apiClient),this.authApps=new tu(this.apiClient),this.authForms=new tl(this.apiClient),this.b2bAuth=new si(this.apiClient),this.b2bUsers=new t0(this.apiClient),this.b2bUserSettings=new tj(this.apiClient),this.b2cAuth=new sa(this.apiClient),this.b2cUsers=new t2(this.apiClient),this.b2cUserSettings=new tL(this.apiClient),this.branches=new t_(this.apiClient),this.countries=new tG(this.apiClient),this.endpoints=new tq(this.apiClient),this.fims=new tz(this.apiClient),this.identityProviders=new tU(this.apiClient),this.locales=new t$(this.apiClient),this.microservices=new tJ(this.apiClient),this.migrationUtils=new ss(this.apiClient),this.permissions=new sn(this.apiClient),this.publicSettings=new tN(this.apiClient),this.roles=new tH(this.apiClient),this.roleTypes=new tw(this.apiClient),this.secretNotes=new tY(this.apiClient),this.sessions=new tm(this.apiClient),this.systemUsers=new t6(this.apiClient),this.tablePresets=new tF(this.apiClient),this.tags=new tX(this.apiClient),this.trustedDevices=new tb(this.apiClient),this.userDetails=new t3(this.apiClient),this.usersCommon=new t8(this.apiClient),this.watchmenAuth=new tE(this.apiClient),this.watchmenInstances=new se(this.apiClient),this.apiClient.setRenewTokenCallback(this.renewToken)}async renewToken(){let e;let t=this.apiClient.getAuthData()?.refreshToken;if(!t)throw Error("Refresh token not found");if((e="b2b"===(0,Z.jwtDecode)(t).u_type?await this.b2bAuth.refreshTokens({refresh_token:t}):await this.b2cAuth.refreshTokens({refresh_token:t,auth_form_slug:this.apiClient.getConfig().authFormSlug})).success)return{accessToken:e.data.login_basic.tokens.access_token??"",refreshToken:e.data.login_basic.tokens.refresh_token??""};throw Error(`Could not renew token: ${String(e.error)}`)}}eo(module.exports,el),eo(module.exports,ey);
3999
2
  //# sourceMappingURL=index.js.map