@targetprocess/auth-client 3.2.2-ci.4 → 3.2.2-manual-up-node-client-template-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/client.d.ts CHANGED
@@ -6,143 +6,135 @@ export interface IAuthClient {
6
6
  createTenant(body: Tenant): Promise<TenantId>;
7
7
  /**
8
8
  * Update tenant
9
- * @tenantId Tenant Id
9
+ * @param tenantId Tenant Id
10
10
  * @return Updated
11
11
  */
12
12
  updateTenant(body: Tenant, tenantId: string): Promise<void>;
13
13
  /**
14
14
  * Get tenant details
15
- * @tenantId Tenant Id
15
+ * @param tenantId Tenant Id
16
16
  * @return OK
17
17
  */
18
18
  getTenant(tenantId: string): Promise<Tenant>;
19
19
  /**
20
20
  * Delete tenant
21
- * @tenantId Tenant Id
21
+ * @param tenantId Tenant Id
22
22
  * @return Deleted
23
23
  */
24
24
  deleteTenant(tenantId: string): Promise<void>;
25
25
  /**
26
26
  * Create new user in tenant
27
- * @tenantId Tenant Id
27
+ * @param tenantId Tenant Id
28
28
  * @return Created
29
29
  */
30
- createUserInTenant(body: {
31
- [key: string]: any;
32
- }, tenantId: string): Promise<UserId>;
30
+ createUserInTenant(body: User, tenantId: string): Promise<UserId>;
33
31
  /**
34
32
  * Update users passwords
35
- * @tenantId Tenant Id
33
+ * @param tenantId Tenant Id
36
34
  * @return Imported
37
35
  */
38
36
  updateUsersPasswords(body: UserPasswordHash[], tenantId: string): Promise<void>;
39
37
  /**
40
38
  * Set user claim values
41
- * @tenantId Tenant Id
42
- * @claimType Claim Type
39
+ * @param tenantId Tenant Id
40
+ * @param claimType Claim Type
43
41
  * @return OK
44
42
  */
45
43
  setUserClaims(userClaimsBatch: UserClaimsBatch[], tenantId: string, claimType: string): Promise<void>;
46
44
  /**
47
45
  * Import users in tenant
48
- * @tenantId Tenant Id
46
+ * @param tenantId Tenant Id
49
47
  * @return Imported
50
48
  */
51
49
  importUsersInTenant(body: UserImport[], tenantId: string): Promise<void>;
52
50
  /**
53
51
  * Get user from tenant
54
- * @tenantId Tenant Id
55
- * @userId User Id
52
+ * @param tenantId Tenant Id
53
+ * @param userId User Id
56
54
  * @return OK
57
55
  */
58
- getUserFromTenant(tenantId: string, userId: string): Promise<{
59
- [key: string]: any;
60
- }>;
56
+ getUserFromTenant(tenantId: string, userId: string): Promise<User>;
61
57
  /**
62
58
  * Update user in tenant
63
- * @tenantId Tenant Id
64
- * @userId User Id
59
+ * @param tenantId Tenant Id
60
+ * @param userId User Id
65
61
  * @return Updated
66
62
  */
67
63
  updateUserInTenant(body: UserPartial, tenantId: string, userId: string): Promise<void>;
68
64
  /**
69
65
  * Delete user from tenant
70
- * @tenantId Tenant Id
71
- * @userId User Id
66
+ * @param tenantId Tenant Id
67
+ * @param userId User Id
72
68
  * @return Deleted
73
69
  */
74
70
  deleteUserFromTenant(tenantId: string, userId: string): Promise<void>;
75
71
  /**
76
72
  * Change user's password
77
- * @tenantId Tenant Id
78
- * @userId User Id
73
+ * @param tenantId Tenant Id
74
+ * @param userId User Id
79
75
  * @return Updated
80
76
  */
81
77
  changeUserPasswordInTenant(body: Password, tenantId: string, userId: string): Promise<void>;
82
78
  /**
83
79
  * Create new external SAML identity provider in tenant
84
- * @tenantId Tenant Id
80
+ * @param tenantId Tenant Id
85
81
  * @return Created
86
82
  */
87
- createSamlProviderInTenant(body: {
88
- [key: string]: any;
89
- }, tenantId: string): Promise<SamlProviderId>;
83
+ createSamlProviderInTenant(body: SamlProvider, tenantId: string): Promise<SamlProviderId>;
90
84
  /**
91
85
  * Get all external SAML identity providers in tenant
92
- * @tenantId Tenant Id
86
+ * @param tenantId Tenant Id
93
87
  * @return OK
94
88
  */
95
- getSamlProvidersInTenant(tenantId: string): Promise<{
96
- [key: string]: any;
97
- }[]>;
89
+ getSamlProvidersInTenant(tenantId: string): Promise<SamlProvider[]>;
98
90
  /**
99
91
  * Get external SAML identity provider from tenant
100
- * @tenantId Tenant Id
92
+ * @param tenantId Tenant Id
93
+ * @param samlProviderId SAML Provider Id
101
94
  * @return OK
102
95
  */
103
- getSamlProviderFromTenant(tenantId: string): Promise<{
104
- [key: string]: any;
105
- }>;
96
+ getSamlProviderFromTenant(tenantId: string, samlProviderId: string): Promise<SamlProvider>;
106
97
  /**
107
98
  * Update external SAML identity provider in tenant
108
- * @tenantId Tenant Id
99
+ * @param tenantId Tenant Id
100
+ * @param samlProviderId SAML Provider Id
109
101
  * @return Updated
110
102
  */
111
- updateSamlProviderInTenant(body: SamlProviderPartial, tenantId: string): Promise<void>;
103
+ updateSamlProviderInTenant(body: SamlProviderPartial, tenantId: string, samlProviderId: string): Promise<void>;
112
104
  /**
113
105
  * Delete external SAML identity provider from tenant
114
- * @tenantId Tenant Id
106
+ * @param tenantId Tenant Id
107
+ * @param samlProviderId SAML Provider Id
115
108
  * @return Deleted
116
109
  */
117
- deleteSamlProviderFromTenant(tenantId: string): Promise<void>;
110
+ deleteSamlProviderFromTenant(tenantId: string, samlProviderId: string): Promise<void>;
118
111
  /**
119
112
  * Create new external SSO profile in tenant
120
- * @tenantId Tenant Id
113
+ * @param tenantId Tenant Id
121
114
  * @return Created
122
115
  */
123
- createSsoProfileInTenant(body: {
124
- [key: string]: any;
125
- }, tenantId: string): Promise<SsoProfileId>;
116
+ createSsoProfileInTenant(body: SsoProfile, tenantId: string): Promise<SsoProfileId>;
126
117
  /**
127
118
  * Get external SSO profile from tenant
128
- * @tenantId Tenant Id
119
+ * @param tenantId Tenant Id
120
+ * @param ssoProfileId External SSO Profile Id
129
121
  * @return OK
130
122
  */
131
- getSsoProfileFromTenant(tenantId: string): Promise<{
132
- [key: string]: any;
133
- }>;
123
+ getSsoProfileFromTenant(tenantId: string, ssoProfileId: string): Promise<SsoProfile>;
134
124
  /**
135
125
  * Update external SSO profile in tenant
136
- * @tenantId Tenant Id
126
+ * @param tenantId Tenant Id
127
+ * @param ssoProfileId External SSO Profile Id
137
128
  * @return Updated
138
129
  */
139
- updateSsoProfileInTenant(body: SsoProfilePartial, tenantId: string): Promise<void>;
130
+ updateSsoProfileInTenant(body: SsoProfilePartial, tenantId: string, ssoProfileId: string): Promise<void>;
140
131
  /**
141
132
  * Delete external SSO profile from tenant
142
- * @tenantId Tenant Id
133
+ * @param tenantId Tenant Id
134
+ * @param ssoProfileId External SSO Profile Id
143
135
  * @return Deleted
144
136
  */
145
- deleteSsoProfileFromTenant(tenantId: string): Promise<void>;
137
+ deleteSsoProfileFromTenant(tenantId: string, ssoProfileId: string): Promise<void>;
146
138
  /**
147
139
  * Create new client
148
140
  * @return Created
@@ -150,19 +142,19 @@ export interface IAuthClient {
150
142
  createClient(body: Client): Promise<ClientCredentials>;
151
143
  /**
152
144
  * Update client
153
- * @clientId Client Id
145
+ * @param clientId Client Id
154
146
  * @return Updated
155
147
  */
156
148
  updateClient(body: ClientInfo, clientId: string): Promise<void>;
157
149
  /**
158
150
  * Get client
159
- * @clientId Client Id
151
+ * @param clientId Client Id
160
152
  * @return OK
161
153
  */
162
154
  getClient(clientId: string): Promise<ClientInfo>;
163
155
  /**
164
156
  * Delete client
165
- * @clientId Client Id
157
+ * @param clientId Client Id
166
158
  * @return Deleted
167
159
  */
168
160
  deleteClient(clientId: string): Promise<void>;
@@ -178,19 +170,19 @@ export interface IAuthClient {
178
170
  createApiResource(body: ApiResource): Promise<ApiResource>;
179
171
  /**
180
172
  * Get api resource
181
- * @resourceName Api resource name
173
+ * @param resourceName Api resource name
182
174
  * @return OK
183
175
  */
184
176
  getApiResource(resourceName: string): Promise<ApiResource>;
185
177
  /**
186
178
  * Delete api resources
187
- * @resourceName Api resource name
179
+ * @param resourceName Api resource name
188
180
  * @return OK
189
181
  */
190
182
  deleteApiResource(resourceName: string): Promise<void>;
191
183
  /**
192
184
  * Update api resource
193
- * @resourceName Api resource name
185
+ * @param resourceName Api resource name
194
186
  * @return OK
195
187
  */
196
188
  updateApiResource(body: ApiResource, resourceName: string): Promise<void>;
@@ -210,170 +202,154 @@ export declare class AuthClient implements IAuthClient {
210
202
  protected processCreateTenant(response: Response): Promise<TenantId>;
211
203
  /**
212
204
  * Update tenant
213
- * @tenantId Tenant Id
205
+ * @param tenantId Tenant Id
214
206
  * @return Updated
215
207
  */
216
208
  updateTenant(body: Tenant, tenantId: string): Promise<void>;
217
209
  protected processUpdateTenant(response: Response): Promise<void>;
218
210
  /**
219
211
  * Get tenant details
220
- * @tenantId Tenant Id
212
+ * @param tenantId Tenant Id
221
213
  * @return OK
222
214
  */
223
215
  getTenant(tenantId: string): Promise<Tenant>;
224
216
  protected processGetTenant(response: Response): Promise<Tenant>;
225
217
  /**
226
218
  * Delete tenant
227
- * @tenantId Tenant Id
219
+ * @param tenantId Tenant Id
228
220
  * @return Deleted
229
221
  */
230
222
  deleteTenant(tenantId: string): Promise<void>;
231
223
  protected processDeleteTenant(response: Response): Promise<void>;
232
224
  /**
233
225
  * Create new user in tenant
234
- * @tenantId Tenant Id
226
+ * @param tenantId Tenant Id
235
227
  * @return Created
236
228
  */
237
- createUserInTenant(body: {
238
- [key: string]: any;
239
- }, tenantId: string): Promise<UserId>;
229
+ createUserInTenant(body: User, tenantId: string): Promise<UserId>;
240
230
  protected processCreateUserInTenant(response: Response): Promise<UserId>;
241
231
  /**
242
232
  * Update users passwords
243
- * @tenantId Tenant Id
233
+ * @param tenantId Tenant Id
244
234
  * @return Imported
245
235
  */
246
236
  updateUsersPasswords(body: UserPasswordHash[], tenantId: string): Promise<void>;
247
237
  protected processUpdateUsersPasswords(response: Response): Promise<void>;
248
238
  /**
249
239
  * Set user claim values
250
- * @tenantId Tenant Id
251
- * @claimType Claim Type
240
+ * @param tenantId Tenant Id
241
+ * @param claimType Claim Type
252
242
  * @return OK
253
243
  */
254
244
  setUserClaims(userClaimsBatch: UserClaimsBatch[], tenantId: string, claimType: string): Promise<void>;
255
245
  protected processSetUserClaims(response: Response): Promise<void>;
256
246
  /**
257
247
  * Import users in tenant
258
- * @tenantId Tenant Id
248
+ * @param tenantId Tenant Id
259
249
  * @return Imported
260
250
  */
261
251
  importUsersInTenant(body: UserImport[], tenantId: string): Promise<void>;
262
252
  protected processImportUsersInTenant(response: Response): Promise<void>;
263
253
  /**
264
254
  * Get user from tenant
265
- * @tenantId Tenant Id
266
- * @userId User Id
255
+ * @param tenantId Tenant Id
256
+ * @param userId User Id
267
257
  * @return OK
268
258
  */
269
- getUserFromTenant(tenantId: string, userId: string): Promise<{
270
- [key: string]: any;
271
- }>;
272
- protected processGetUserFromTenant(response: Response): Promise<{
273
- [key: string]: any;
274
- }>;
259
+ getUserFromTenant(tenantId: string, userId: string): Promise<User>;
260
+ protected processGetUserFromTenant(response: Response): Promise<User>;
275
261
  /**
276
262
  * Update user in tenant
277
- * @tenantId Tenant Id
278
- * @userId User Id
263
+ * @param tenantId Tenant Id
264
+ * @param userId User Id
279
265
  * @return Updated
280
266
  */
281
267
  updateUserInTenant(body: UserPartial, tenantId: string, userId: string): Promise<void>;
282
268
  protected processUpdateUserInTenant(response: Response): Promise<void>;
283
269
  /**
284
270
  * Delete user from tenant
285
- * @tenantId Tenant Id
286
- * @userId User Id
271
+ * @param tenantId Tenant Id
272
+ * @param userId User Id
287
273
  * @return Deleted
288
274
  */
289
275
  deleteUserFromTenant(tenantId: string, userId: string): Promise<void>;
290
276
  protected processDeleteUserFromTenant(response: Response): Promise<void>;
291
277
  /**
292
278
  * Change user's password
293
- * @tenantId Tenant Id
294
- * @userId User Id
279
+ * @param tenantId Tenant Id
280
+ * @param userId User Id
295
281
  * @return Updated
296
282
  */
297
283
  changeUserPasswordInTenant(body: Password, tenantId: string, userId: string): Promise<void>;
298
284
  protected processChangeUserPasswordInTenant(response: Response): Promise<void>;
299
285
  /**
300
286
  * Create new external SAML identity provider in tenant
301
- * @tenantId Tenant Id
287
+ * @param tenantId Tenant Id
302
288
  * @return Created
303
289
  */
304
- createSamlProviderInTenant(body: {
305
- [key: string]: any;
306
- }, tenantId: string): Promise<SamlProviderId>;
290
+ createSamlProviderInTenant(body: SamlProvider, tenantId: string): Promise<SamlProviderId>;
307
291
  protected processCreateSamlProviderInTenant(response: Response): Promise<SamlProviderId>;
308
292
  /**
309
293
  * Get all external SAML identity providers in tenant
310
- * @tenantId Tenant Id
294
+ * @param tenantId Tenant Id
311
295
  * @return OK
312
296
  */
313
- getSamlProvidersInTenant(tenantId: string): Promise<{
314
- [key: string]: any;
315
- }[]>;
316
- protected processGetSamlProvidersInTenant(response: Response): Promise<{
317
- [key: string]: any;
318
- }[]>;
297
+ getSamlProvidersInTenant(tenantId: string): Promise<SamlProvider[]>;
298
+ protected processGetSamlProvidersInTenant(response: Response): Promise<SamlProvider[]>;
319
299
  /**
320
300
  * Get external SAML identity provider from tenant
321
- * @tenantId Tenant Id
301
+ * @param tenantId Tenant Id
302
+ * @param samlProviderId SAML Provider Id
322
303
  * @return OK
323
304
  */
324
- getSamlProviderFromTenant(tenantId: string): Promise<{
325
- [key: string]: any;
326
- }>;
327
- protected processGetSamlProviderFromTenant(response: Response): Promise<{
328
- [key: string]: any;
329
- }>;
305
+ getSamlProviderFromTenant(tenantId: string, samlProviderId: string): Promise<SamlProvider>;
306
+ protected processGetSamlProviderFromTenant(response: Response): Promise<SamlProvider>;
330
307
  /**
331
308
  * Update external SAML identity provider in tenant
332
- * @tenantId Tenant Id
309
+ * @param tenantId Tenant Id
310
+ * @param samlProviderId SAML Provider Id
333
311
  * @return Updated
334
312
  */
335
- updateSamlProviderInTenant(body: SamlProviderPartial, tenantId: string): Promise<void>;
313
+ updateSamlProviderInTenant(body: SamlProviderPartial, tenantId: string, samlProviderId: string): Promise<void>;
336
314
  protected processUpdateSamlProviderInTenant(response: Response): Promise<void>;
337
315
  /**
338
316
  * Delete external SAML identity provider from tenant
339
- * @tenantId Tenant Id
317
+ * @param tenantId Tenant Id
318
+ * @param samlProviderId SAML Provider Id
340
319
  * @return Deleted
341
320
  */
342
- deleteSamlProviderFromTenant(tenantId: string): Promise<void>;
321
+ deleteSamlProviderFromTenant(tenantId: string, samlProviderId: string): Promise<void>;
343
322
  protected processDeleteSamlProviderFromTenant(response: Response): Promise<void>;
344
323
  /**
345
324
  * Create new external SSO profile in tenant
346
- * @tenantId Tenant Id
325
+ * @param tenantId Tenant Id
347
326
  * @return Created
348
327
  */
349
- createSsoProfileInTenant(body: {
350
- [key: string]: any;
351
- }, tenantId: string): Promise<SsoProfileId>;
328
+ createSsoProfileInTenant(body: SsoProfile, tenantId: string): Promise<SsoProfileId>;
352
329
  protected processCreateSsoProfileInTenant(response: Response): Promise<SsoProfileId>;
353
330
  /**
354
331
  * Get external SSO profile from tenant
355
- * @tenantId Tenant Id
332
+ * @param tenantId Tenant Id
333
+ * @param ssoProfileId External SSO Profile Id
356
334
  * @return OK
357
335
  */
358
- getSsoProfileFromTenant(tenantId: string): Promise<{
359
- [key: string]: any;
360
- }>;
361
- protected processGetSsoProfileFromTenant(response: Response): Promise<{
362
- [key: string]: any;
363
- }>;
336
+ getSsoProfileFromTenant(tenantId: string, ssoProfileId: string): Promise<SsoProfile>;
337
+ protected processGetSsoProfileFromTenant(response: Response): Promise<SsoProfile>;
364
338
  /**
365
339
  * Update external SSO profile in tenant
366
- * @tenantId Tenant Id
340
+ * @param tenantId Tenant Id
341
+ * @param ssoProfileId External SSO Profile Id
367
342
  * @return Updated
368
343
  */
369
- updateSsoProfileInTenant(body: SsoProfilePartial, tenantId: string): Promise<void>;
344
+ updateSsoProfileInTenant(body: SsoProfilePartial, tenantId: string, ssoProfileId: string): Promise<void>;
370
345
  protected processUpdateSsoProfileInTenant(response: Response): Promise<void>;
371
346
  /**
372
347
  * Delete external SSO profile from tenant
373
- * @tenantId Tenant Id
348
+ * @param tenantId Tenant Id
349
+ * @param ssoProfileId External SSO Profile Id
374
350
  * @return Deleted
375
351
  */
376
- deleteSsoProfileFromTenant(tenantId: string): Promise<void>;
352
+ deleteSsoProfileFromTenant(tenantId: string, ssoProfileId: string): Promise<void>;
377
353
  protected processDeleteSsoProfileFromTenant(response: Response): Promise<void>;
378
354
  /**
379
355
  * Create new client
@@ -383,21 +359,21 @@ export declare class AuthClient implements IAuthClient {
383
359
  protected processCreateClient(response: Response): Promise<ClientCredentials>;
384
360
  /**
385
361
  * Update client
386
- * @clientId Client Id
362
+ * @param clientId Client Id
387
363
  * @return Updated
388
364
  */
389
365
  updateClient(body: ClientInfo, clientId: string): Promise<void>;
390
366
  protected processUpdateClient(response: Response): Promise<void>;
391
367
  /**
392
368
  * Get client
393
- * @clientId Client Id
369
+ * @param clientId Client Id
394
370
  * @return OK
395
371
  */
396
372
  getClient(clientId: string): Promise<ClientInfo>;
397
373
  protected processGetClient(response: Response): Promise<ClientInfo>;
398
374
  /**
399
375
  * Delete client
400
- * @clientId Client Id
376
+ * @param clientId Client Id
401
377
  * @return Deleted
402
378
  */
403
379
  deleteClient(clientId: string): Promise<void>;
@@ -416,21 +392,21 @@ export declare class AuthClient implements IAuthClient {
416
392
  protected processCreateApiResource(response: Response): Promise<ApiResource>;
417
393
  /**
418
394
  * Get api resource
419
- * @resourceName Api resource name
395
+ * @param resourceName Api resource name
420
396
  * @return OK
421
397
  */
422
398
  getApiResource(resourceName: string): Promise<ApiResource>;
423
399
  protected processGetApiResource(response: Response): Promise<ApiResource>;
424
400
  /**
425
401
  * Delete api resources
426
- * @resourceName Api resource name
402
+ * @param resourceName Api resource name
427
403
  * @return OK
428
404
  */
429
405
  deleteApiResource(resourceName: string): Promise<void>;
430
406
  protected processDeleteApiResource(response: Response): Promise<void>;
431
407
  /**
432
408
  * Update api resource
433
- * @resourceName Api resource name
409
+ * @param resourceName Api resource name
434
410
  * @return OK
435
411
  */
436
412
  updateApiResource(body: ApiResource, resourceName: string): Promise<void>;
@@ -461,20 +437,21 @@ export interface UserPartial {
461
437
  email?: string | undefined;
462
438
  claims?: Claim[] | undefined;
463
439
  }
440
+ export interface User extends UserPartial {
441
+ }
464
442
  /** user password hash algorithm */
465
443
  export declare enum PasswordHashAlgorithm {
466
- Unknown,
467
- ProprietaryV1,
468
- IdentityV3,
444
+ Unknown = "Unknown",
445
+ ProprietaryV1 = "ProprietaryV1",
446
+ IdentityV3 = "IdentityV3",
469
447
  }
470
- export interface UserImport {
448
+ export interface UserImport extends User {
471
449
  /** User's globally unique identifier */
472
450
  id: string;
473
451
  /** User's password hash */
474
452
  passwordHash?: string | undefined;
475
453
  /** User's password hash algorithm */
476
454
  passwordHashAlgorithm?: PasswordHashAlgorithm | undefined;
477
- [key: string]: any;
478
455
  }
479
456
  export interface UserPasswordHash extends UserId {
480
457
  /** User's password hash */
@@ -604,6 +581,8 @@ export interface SamlProviderPartial {
604
581
  /** Issuer */
605
582
  issuer?: string | undefined;
606
583
  }
584
+ export interface SamlProvider extends SamlProviderPartial {
585
+ }
607
586
  export interface SsoProfileId {
608
587
  /** External SSO profile's globally unique identifier */
609
588
  id: string;
@@ -622,6 +601,8 @@ export interface SsoProfilePartial {
622
601
  /** List of external provider (both SAML2 and OAuth) ids to use for login */
623
602
  providers?: string[] | undefined;
624
603
  }
604
+ export interface SsoProfile extends SsoProfilePartial {
605
+ }
625
606
  export interface ErrorDto {
626
607
  /** Internal error code */
627
608
  code?: string | undefined;
@@ -633,26 +614,26 @@ export interface UserClaimsBatch {
633
614
  claimValues?: string[] | undefined;
634
615
  }
635
616
  export declare enum AllowedGrantTypes {
636
- Authorization_code,
637
- Implicit,
638
- Hybrid,
639
- Password,
640
- Client_credentials,
641
- Delegation,
617
+ Authorization_code = "authorization_code",
618
+ Implicit = "implicit",
619
+ Hybrid = "hybrid",
620
+ Password = "password",
621
+ Client_credentials = "client_credentials",
622
+ Delegation = "delegation",
642
623
  }
643
624
  export declare enum ClientInfoRefreshTokenUsage {
644
- ReUse,
645
- OneTimeOnly,
625
+ ReUse = "reUse",
626
+ OneTimeOnly = "oneTimeOnly",
646
627
  }
647
628
  export declare enum ClientInfoRefreshTokenExpiration {
648
- Absolute,
649
- Sliding,
629
+ Absolute = "absolute",
630
+ Sliding = "sliding",
650
631
  }
651
632
  export declare enum ClientInfoAccessTokenType {
652
- Jwt,
653
- Reference,
633
+ Jwt = "jwt",
634
+ Reference = "reference",
654
635
  }
655
- export declare class SwaggerException extends Error {
636
+ export declare class ApiException extends Error {
656
637
  message: string;
657
638
  status: number;
658
639
  response: string;
@@ -663,6 +644,6 @@ export declare class SwaggerException extends Error {
663
644
  constructor(message: string, status: number, response: string, headers: {
664
645
  [key: string]: any;
665
646
  }, result: any);
666
- protected isSwaggerException: boolean;
667
- static isSwaggerException(obj: any): obj is SwaggerException;
647
+ protected isApiException: boolean;
648
+ static isApiException(obj: any): obj is ApiException;
668
649
  }