@goauthentik/api 2022.11.3-1670864823 → 2022.11.3-1671621213
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/.openapi-generator/FILES +1 -0
- package/dist/apis/ProvidersApi.d.ts +23 -1
- package/dist/apis/ProvidersApi.js +62 -0
- package/dist/esm/apis/ProvidersApi.d.ts +23 -1
- package/dist/esm/apis/ProvidersApi.js +63 -1
- package/dist/esm/models/CaptchaChallenge.d.ts +6 -0
- package/dist/esm/models/CaptchaChallenge.js +1 -0
- package/dist/esm/models/CaptchaStage.d.ts +13 -1
- package/dist/esm/models/CaptchaStage.js +4 -0
- package/dist/esm/models/CaptchaStageRequest.d.ts +14 -2
- package/dist/esm/models/CaptchaStageRequest.js +4 -0
- package/dist/esm/models/PatchedCaptchaStageRequest.d.ts +14 -2
- package/dist/esm/models/PatchedCaptchaStageRequest.js +4 -0
- package/dist/esm/models/PropertyMappingPreview.d.ts +29 -0
- package/dist/esm/models/PropertyMappingPreview.js +33 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/CaptchaChallenge.d.ts +6 -0
- package/dist/models/CaptchaChallenge.js +1 -0
- package/dist/models/CaptchaStage.d.ts +13 -1
- package/dist/models/CaptchaStage.js +4 -0
- package/dist/models/CaptchaStageRequest.d.ts +14 -2
- package/dist/models/CaptchaStageRequest.js +4 -0
- package/dist/models/PatchedCaptchaStageRequest.d.ts +14 -2
- package/dist/models/PatchedCaptchaStageRequest.js +4 -0
- package/dist/models/PropertyMappingPreview.d.ts +29 -0
- package/dist/models/PropertyMappingPreview.js +39 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/ProvidersApi.ts +79 -0
- package/src/models/CaptchaChallenge.ts +7 -0
- package/src/models/CaptchaStage.ts +17 -1
- package/src/models/CaptchaStageRequest.ts +18 -2
- package/src/models/PatchedCaptchaStageRequest.ts +18 -2
- package/src/models/PropertyMappingPreview.ts +55 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -392,6 +392,7 @@ src/models/PromptStage.ts
|
|
|
392
392
|
src/models/PromptStageRequest.ts
|
|
393
393
|
src/models/PromptTypeEnum.ts
|
|
394
394
|
src/models/PropertyMapping.ts
|
|
395
|
+
src/models/PropertyMappingPreview.ts
|
|
395
396
|
src/models/PropertyMappingTestResult.ts
|
|
396
397
|
src/models/Provider.ts
|
|
397
398
|
src/models/ProviderEnum.ts
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { LDAPProvider, LDAPProviderRequest, OAuth2Provider, OAuth2ProviderRequest, OAuth2ProviderSetupURLs, PaginatedLDAPProviderList, PaginatedOAuth2ProviderList, PaginatedProviderList, PaginatedProxyProviderList, PaginatedSAMLProviderList, PatchedLDAPProviderRequest, PatchedOAuth2ProviderRequest, PatchedProxyProviderRequest, PatchedSAMLProviderRequest, Provider, ProxyProvider, ProxyProviderRequest, SAMLMetadata, SAMLProvider, SAMLProviderRequest, TypeCreate, UsedBy } from '../models';
|
|
13
|
+
import { LDAPProvider, LDAPProviderRequest, OAuth2Provider, OAuth2ProviderRequest, OAuth2ProviderSetupURLs, PaginatedLDAPProviderList, PaginatedOAuth2ProviderList, PaginatedProviderList, PaginatedProxyProviderList, PaginatedSAMLProviderList, PatchedLDAPProviderRequest, PatchedOAuth2ProviderRequest, PatchedProxyProviderRequest, PatchedSAMLProviderRequest, PropertyMappingPreview, Provider, ProxyProvider, ProxyProviderRequest, SAMLMetadata, SAMLProvider, SAMLProviderRequest, TypeCreate, UsedBy } from '../models';
|
|
14
14
|
export interface ProvidersAllDestroyRequest {
|
|
15
15
|
id: number;
|
|
16
16
|
}
|
|
@@ -93,6 +93,9 @@ export interface ProvidersOauth2PartialUpdateRequest {
|
|
|
93
93
|
id: number;
|
|
94
94
|
patchedOAuth2ProviderRequest?: PatchedOAuth2ProviderRequest;
|
|
95
95
|
}
|
|
96
|
+
export interface ProvidersOauth2PreviewUserRetrieveRequest {
|
|
97
|
+
id: number;
|
|
98
|
+
}
|
|
96
99
|
export interface ProvidersOauth2RetrieveRequest {
|
|
97
100
|
id: number;
|
|
98
101
|
}
|
|
@@ -189,6 +192,9 @@ export interface ProvidersSamlPartialUpdateRequest {
|
|
|
189
192
|
id: number;
|
|
190
193
|
patchedSAMLProviderRequest?: PatchedSAMLProviderRequest;
|
|
191
194
|
}
|
|
195
|
+
export interface ProvidersSamlPreviewUserRetrieveRequest {
|
|
196
|
+
id: number;
|
|
197
|
+
}
|
|
192
198
|
export interface ProvidersSamlRetrieveRequest {
|
|
193
199
|
id: number;
|
|
194
200
|
}
|
|
@@ -331,6 +337,14 @@ export declare class ProvidersApi extends runtime.BaseAPI {
|
|
|
331
337
|
* OAuth2Provider Viewset
|
|
332
338
|
*/
|
|
333
339
|
providersOauth2PartialUpdate(requestParameters: ProvidersOauth2PartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<OAuth2Provider>;
|
|
340
|
+
/**
|
|
341
|
+
* Preview user data for provider
|
|
342
|
+
*/
|
|
343
|
+
providersOauth2PreviewUserRetrieveRaw(requestParameters: ProvidersOauth2PreviewUserRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<PropertyMappingPreview>>;
|
|
344
|
+
/**
|
|
345
|
+
* Preview user data for provider
|
|
346
|
+
*/
|
|
347
|
+
providersOauth2PreviewUserRetrieve(requestParameters: ProvidersOauth2PreviewUserRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PropertyMappingPreview>;
|
|
334
348
|
/**
|
|
335
349
|
* OAuth2Provider Viewset
|
|
336
350
|
*/
|
|
@@ -467,6 +481,14 @@ export declare class ProvidersApi extends runtime.BaseAPI {
|
|
|
467
481
|
* SAMLProvider Viewset
|
|
468
482
|
*/
|
|
469
483
|
providersSamlPartialUpdate(requestParameters: ProvidersSamlPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<SAMLProvider>;
|
|
484
|
+
/**
|
|
485
|
+
* Preview user data for provider
|
|
486
|
+
*/
|
|
487
|
+
providersSamlPreviewUserRetrieveRaw(requestParameters: ProvidersSamlPreviewUserRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<PropertyMappingPreview>>;
|
|
488
|
+
/**
|
|
489
|
+
* Preview user data for provider
|
|
490
|
+
*/
|
|
491
|
+
providersSamlPreviewUserRetrieve(requestParameters: ProvidersSamlPreviewUserRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PropertyMappingPreview>;
|
|
470
492
|
/**
|
|
471
493
|
* SAMLProvider Viewset
|
|
472
494
|
*/
|
|
@@ -634,6 +634,37 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
|
634
634
|
return yield response.value();
|
|
635
635
|
});
|
|
636
636
|
}
|
|
637
|
+
/**
|
|
638
|
+
* Preview user data for provider
|
|
639
|
+
*/
|
|
640
|
+
providersOauth2PreviewUserRetrieveRaw(requestParameters, initOverrides) {
|
|
641
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
642
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
643
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling providersOauth2PreviewUserRetrieve.');
|
|
644
|
+
}
|
|
645
|
+
const queryParameters = {};
|
|
646
|
+
const headerParameters = {};
|
|
647
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
648
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
649
|
+
}
|
|
650
|
+
const response = yield this.request({
|
|
651
|
+
path: `/providers/oauth2/{id}/preview_user/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
652
|
+
method: 'GET',
|
|
653
|
+
headers: headerParameters,
|
|
654
|
+
query: queryParameters,
|
|
655
|
+
}, initOverrides);
|
|
656
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.PropertyMappingPreviewFromJSON)(jsonValue));
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
/**
|
|
660
|
+
* Preview user data for provider
|
|
661
|
+
*/
|
|
662
|
+
providersOauth2PreviewUserRetrieve(requestParameters, initOverrides) {
|
|
663
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
664
|
+
const response = yield this.providersOauth2PreviewUserRetrieveRaw(requestParameters, initOverrides);
|
|
665
|
+
return yield response.value();
|
|
666
|
+
});
|
|
667
|
+
}
|
|
637
668
|
/**
|
|
638
669
|
* OAuth2Provider Viewset
|
|
639
670
|
*/
|
|
@@ -1324,6 +1355,37 @@ class ProvidersApi extends runtime.BaseAPI {
|
|
|
1324
1355
|
return yield response.value();
|
|
1325
1356
|
});
|
|
1326
1357
|
}
|
|
1358
|
+
/**
|
|
1359
|
+
* Preview user data for provider
|
|
1360
|
+
*/
|
|
1361
|
+
providersSamlPreviewUserRetrieveRaw(requestParameters, initOverrides) {
|
|
1362
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1363
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1364
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling providersSamlPreviewUserRetrieve.');
|
|
1365
|
+
}
|
|
1366
|
+
const queryParameters = {};
|
|
1367
|
+
const headerParameters = {};
|
|
1368
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1369
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1370
|
+
}
|
|
1371
|
+
const response = yield this.request({
|
|
1372
|
+
path: `/providers/saml/{id}/preview_user/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1373
|
+
method: 'GET',
|
|
1374
|
+
headers: headerParameters,
|
|
1375
|
+
query: queryParameters,
|
|
1376
|
+
}, initOverrides);
|
|
1377
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.PropertyMappingPreviewFromJSON)(jsonValue));
|
|
1378
|
+
});
|
|
1379
|
+
}
|
|
1380
|
+
/**
|
|
1381
|
+
* Preview user data for provider
|
|
1382
|
+
*/
|
|
1383
|
+
providersSamlPreviewUserRetrieve(requestParameters, initOverrides) {
|
|
1384
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1385
|
+
const response = yield this.providersSamlPreviewUserRetrieveRaw(requestParameters, initOverrides);
|
|
1386
|
+
return yield response.value();
|
|
1387
|
+
});
|
|
1388
|
+
}
|
|
1327
1389
|
/**
|
|
1328
1390
|
* SAMLProvider Viewset
|
|
1329
1391
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { LDAPProvider, LDAPProviderRequest, OAuth2Provider, OAuth2ProviderRequest, OAuth2ProviderSetupURLs, PaginatedLDAPProviderList, PaginatedOAuth2ProviderList, PaginatedProviderList, PaginatedProxyProviderList, PaginatedSAMLProviderList, PatchedLDAPProviderRequest, PatchedOAuth2ProviderRequest, PatchedProxyProviderRequest, PatchedSAMLProviderRequest, Provider, ProxyProvider, ProxyProviderRequest, SAMLMetadata, SAMLProvider, SAMLProviderRequest, TypeCreate, UsedBy } from '../models';
|
|
13
|
+
import { LDAPProvider, LDAPProviderRequest, OAuth2Provider, OAuth2ProviderRequest, OAuth2ProviderSetupURLs, PaginatedLDAPProviderList, PaginatedOAuth2ProviderList, PaginatedProviderList, PaginatedProxyProviderList, PaginatedSAMLProviderList, PatchedLDAPProviderRequest, PatchedOAuth2ProviderRequest, PatchedProxyProviderRequest, PatchedSAMLProviderRequest, PropertyMappingPreview, Provider, ProxyProvider, ProxyProviderRequest, SAMLMetadata, SAMLProvider, SAMLProviderRequest, TypeCreate, UsedBy } from '../models';
|
|
14
14
|
export interface ProvidersAllDestroyRequest {
|
|
15
15
|
id: number;
|
|
16
16
|
}
|
|
@@ -93,6 +93,9 @@ export interface ProvidersOauth2PartialUpdateRequest {
|
|
|
93
93
|
id: number;
|
|
94
94
|
patchedOAuth2ProviderRequest?: PatchedOAuth2ProviderRequest;
|
|
95
95
|
}
|
|
96
|
+
export interface ProvidersOauth2PreviewUserRetrieveRequest {
|
|
97
|
+
id: number;
|
|
98
|
+
}
|
|
96
99
|
export interface ProvidersOauth2RetrieveRequest {
|
|
97
100
|
id: number;
|
|
98
101
|
}
|
|
@@ -189,6 +192,9 @@ export interface ProvidersSamlPartialUpdateRequest {
|
|
|
189
192
|
id: number;
|
|
190
193
|
patchedSAMLProviderRequest?: PatchedSAMLProviderRequest;
|
|
191
194
|
}
|
|
195
|
+
export interface ProvidersSamlPreviewUserRetrieveRequest {
|
|
196
|
+
id: number;
|
|
197
|
+
}
|
|
192
198
|
export interface ProvidersSamlRetrieveRequest {
|
|
193
199
|
id: number;
|
|
194
200
|
}
|
|
@@ -331,6 +337,14 @@ export declare class ProvidersApi extends runtime.BaseAPI {
|
|
|
331
337
|
* OAuth2Provider Viewset
|
|
332
338
|
*/
|
|
333
339
|
providersOauth2PartialUpdate(requestParameters: ProvidersOauth2PartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<OAuth2Provider>;
|
|
340
|
+
/**
|
|
341
|
+
* Preview user data for provider
|
|
342
|
+
*/
|
|
343
|
+
providersOauth2PreviewUserRetrieveRaw(requestParameters: ProvidersOauth2PreviewUserRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<PropertyMappingPreview>>;
|
|
344
|
+
/**
|
|
345
|
+
* Preview user data for provider
|
|
346
|
+
*/
|
|
347
|
+
providersOauth2PreviewUserRetrieve(requestParameters: ProvidersOauth2PreviewUserRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PropertyMappingPreview>;
|
|
334
348
|
/**
|
|
335
349
|
* OAuth2Provider Viewset
|
|
336
350
|
*/
|
|
@@ -467,6 +481,14 @@ export declare class ProvidersApi extends runtime.BaseAPI {
|
|
|
467
481
|
* SAMLProvider Viewset
|
|
468
482
|
*/
|
|
469
483
|
providersSamlPartialUpdate(requestParameters: ProvidersSamlPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<SAMLProvider>;
|
|
484
|
+
/**
|
|
485
|
+
* Preview user data for provider
|
|
486
|
+
*/
|
|
487
|
+
providersSamlPreviewUserRetrieveRaw(requestParameters: ProvidersSamlPreviewUserRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<PropertyMappingPreview>>;
|
|
488
|
+
/**
|
|
489
|
+
* Preview user data for provider
|
|
490
|
+
*/
|
|
491
|
+
providersSamlPreviewUserRetrieve(requestParameters: ProvidersSamlPreviewUserRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PropertyMappingPreview>;
|
|
470
492
|
/**
|
|
471
493
|
* SAMLProvider Viewset
|
|
472
494
|
*/
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { LDAPProviderFromJSON, LDAPProviderRequestToJSON, OAuth2ProviderFromJSON, OAuth2ProviderRequestToJSON, OAuth2ProviderSetupURLsFromJSON, PaginatedLDAPProviderListFromJSON, PaginatedOAuth2ProviderListFromJSON, PaginatedProviderListFromJSON, PaginatedProxyProviderListFromJSON, PaginatedSAMLProviderListFromJSON, PatchedLDAPProviderRequestToJSON, PatchedOAuth2ProviderRequestToJSON, PatchedProxyProviderRequestToJSON, PatchedSAMLProviderRequestToJSON, ProviderFromJSON, ProxyProviderFromJSON, ProxyProviderRequestToJSON, SAMLMetadataFromJSON, SAMLProviderFromJSON, SAMLProviderRequestToJSON, TypeCreateFromJSON, UsedByFromJSON, } from '../models';
|
|
24
|
+
import { LDAPProviderFromJSON, LDAPProviderRequestToJSON, OAuth2ProviderFromJSON, OAuth2ProviderRequestToJSON, OAuth2ProviderSetupURLsFromJSON, PaginatedLDAPProviderListFromJSON, PaginatedOAuth2ProviderListFromJSON, PaginatedProviderListFromJSON, PaginatedProxyProviderListFromJSON, PaginatedSAMLProviderListFromJSON, PatchedLDAPProviderRequestToJSON, PatchedOAuth2ProviderRequestToJSON, PatchedProxyProviderRequestToJSON, PatchedSAMLProviderRequestToJSON, PropertyMappingPreviewFromJSON, ProviderFromJSON, ProxyProviderFromJSON, ProxyProviderRequestToJSON, SAMLMetadataFromJSON, SAMLProviderFromJSON, SAMLProviderRequestToJSON, TypeCreateFromJSON, UsedByFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -631,6 +631,37 @@ export class ProvidersApi extends runtime.BaseAPI {
|
|
|
631
631
|
return yield response.value();
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
|
+
/**
|
|
635
|
+
* Preview user data for provider
|
|
636
|
+
*/
|
|
637
|
+
providersOauth2PreviewUserRetrieveRaw(requestParameters, initOverrides) {
|
|
638
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
639
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
640
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling providersOauth2PreviewUserRetrieve.');
|
|
641
|
+
}
|
|
642
|
+
const queryParameters = {};
|
|
643
|
+
const headerParameters = {};
|
|
644
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
645
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
646
|
+
}
|
|
647
|
+
const response = yield this.request({
|
|
648
|
+
path: `/providers/oauth2/{id}/preview_user/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
649
|
+
method: 'GET',
|
|
650
|
+
headers: headerParameters,
|
|
651
|
+
query: queryParameters,
|
|
652
|
+
}, initOverrides);
|
|
653
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PropertyMappingPreviewFromJSON(jsonValue));
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* Preview user data for provider
|
|
658
|
+
*/
|
|
659
|
+
providersOauth2PreviewUserRetrieve(requestParameters, initOverrides) {
|
|
660
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
661
|
+
const response = yield this.providersOauth2PreviewUserRetrieveRaw(requestParameters, initOverrides);
|
|
662
|
+
return yield response.value();
|
|
663
|
+
});
|
|
664
|
+
}
|
|
634
665
|
/**
|
|
635
666
|
* OAuth2Provider Viewset
|
|
636
667
|
*/
|
|
@@ -1321,6 +1352,37 @@ export class ProvidersApi extends runtime.BaseAPI {
|
|
|
1321
1352
|
return yield response.value();
|
|
1322
1353
|
});
|
|
1323
1354
|
}
|
|
1355
|
+
/**
|
|
1356
|
+
* Preview user data for provider
|
|
1357
|
+
*/
|
|
1358
|
+
providersSamlPreviewUserRetrieveRaw(requestParameters, initOverrides) {
|
|
1359
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1360
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1361
|
+
throw new runtime.RequiredError('id', 'Required parameter requestParameters.id was null or undefined when calling providersSamlPreviewUserRetrieve.');
|
|
1362
|
+
}
|
|
1363
|
+
const queryParameters = {};
|
|
1364
|
+
const headerParameters = {};
|
|
1365
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1366
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1367
|
+
}
|
|
1368
|
+
const response = yield this.request({
|
|
1369
|
+
path: `/providers/saml/{id}/preview_user/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1370
|
+
method: 'GET',
|
|
1371
|
+
headers: headerParameters,
|
|
1372
|
+
query: queryParameters,
|
|
1373
|
+
}, initOverrides);
|
|
1374
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PropertyMappingPreviewFromJSON(jsonValue));
|
|
1375
|
+
});
|
|
1376
|
+
}
|
|
1377
|
+
/**
|
|
1378
|
+
* Preview user data for provider
|
|
1379
|
+
*/
|
|
1380
|
+
providersSamlPreviewUserRetrieve(requestParameters, initOverrides) {
|
|
1381
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1382
|
+
const response = yield this.providersSamlPreviewUserRetrieveRaw(requestParameters, initOverrides);
|
|
1383
|
+
return yield response.value();
|
|
1384
|
+
});
|
|
1385
|
+
}
|
|
1324
1386
|
/**
|
|
1325
1387
|
* SAMLProvider Viewset
|
|
1326
1388
|
*/
|
|
@@ -62,6 +62,12 @@ export interface CaptchaChallenge {
|
|
|
62
62
|
* @memberof CaptchaChallenge
|
|
63
63
|
*/
|
|
64
64
|
siteKey: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof CaptchaChallenge
|
|
69
|
+
*/
|
|
70
|
+
readonly jsUrl: string;
|
|
65
71
|
}
|
|
66
72
|
export declare function CaptchaChallengeFromJSON(json: any): CaptchaChallenge;
|
|
67
73
|
export declare function CaptchaChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CaptchaChallenge;
|
|
@@ -29,6 +29,7 @@ export function CaptchaChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
'pendingUser': json['pending_user'],
|
|
30
30
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
31
31
|
'siteKey': json['site_key'],
|
|
32
|
+
'jsUrl': json['js_url'],
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
35
|
export function CaptchaChallengeToJSON(value) {
|
|
@@ -59,11 +59,23 @@ export interface CaptchaStage {
|
|
|
59
59
|
*/
|
|
60
60
|
flowSet?: Array<FlowSet>;
|
|
61
61
|
/**
|
|
62
|
-
* Public key, acquired
|
|
62
|
+
* Public key, acquired your captcha Provider.
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @memberof CaptchaStage
|
|
65
65
|
*/
|
|
66
66
|
publicKey: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof CaptchaStage
|
|
71
|
+
*/
|
|
72
|
+
jsUrl?: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof CaptchaStage
|
|
77
|
+
*/
|
|
78
|
+
apiUrl?: string;
|
|
67
79
|
}
|
|
68
80
|
export declare function CaptchaStageFromJSON(json: any): CaptchaStage;
|
|
69
81
|
export declare function CaptchaStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): CaptchaStage;
|
|
@@ -29,6 +29,8 @@ export function CaptchaStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
'metaModelName': json['meta_model_name'],
|
|
30
30
|
'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetFromJSON)),
|
|
31
31
|
'publicKey': json['public_key'],
|
|
32
|
+
'jsUrl': !exists(json, 'js_url') ? undefined : json['js_url'],
|
|
33
|
+
'apiUrl': !exists(json, 'api_url') ? undefined : json['api_url'],
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
export function CaptchaStageToJSON(value) {
|
|
@@ -42,5 +44,7 @@ export function CaptchaStageToJSON(value) {
|
|
|
42
44
|
'name': value.name,
|
|
43
45
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetToJSON)),
|
|
44
46
|
'public_key': value.publicKey,
|
|
47
|
+
'js_url': value.jsUrl,
|
|
48
|
+
'api_url': value.apiUrl,
|
|
45
49
|
};
|
|
46
50
|
}
|
|
@@ -29,17 +29,29 @@ export interface CaptchaStageRequest {
|
|
|
29
29
|
*/
|
|
30
30
|
flowSet?: Array<FlowSetRequest>;
|
|
31
31
|
/**
|
|
32
|
-
* Public key, acquired
|
|
32
|
+
* Public key, acquired your captcha Provider.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof CaptchaStageRequest
|
|
35
35
|
*/
|
|
36
36
|
publicKey: string;
|
|
37
37
|
/**
|
|
38
|
-
* Private key, acquired
|
|
38
|
+
* Private key, acquired your captcha Provider.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof CaptchaStageRequest
|
|
41
41
|
*/
|
|
42
42
|
privateKey: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CaptchaStageRequest
|
|
47
|
+
*/
|
|
48
|
+
jsUrl?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CaptchaStageRequest
|
|
53
|
+
*/
|
|
54
|
+
apiUrl?: string;
|
|
43
55
|
}
|
|
44
56
|
export declare function CaptchaStageRequestFromJSON(json: any): CaptchaStageRequest;
|
|
45
57
|
export declare function CaptchaStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CaptchaStageRequest;
|
|
@@ -25,6 +25,8 @@ export function CaptchaStageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
25
|
'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
|
|
26
26
|
'publicKey': json['public_key'],
|
|
27
27
|
'privateKey': json['private_key'],
|
|
28
|
+
'jsUrl': !exists(json, 'js_url') ? undefined : json['js_url'],
|
|
29
|
+
'apiUrl': !exists(json, 'api_url') ? undefined : json['api_url'],
|
|
28
30
|
};
|
|
29
31
|
}
|
|
30
32
|
export function CaptchaStageRequestToJSON(value) {
|
|
@@ -39,5 +41,7 @@ export function CaptchaStageRequestToJSON(value) {
|
|
|
39
41
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequestToJSON)),
|
|
40
42
|
'public_key': value.publicKey,
|
|
41
43
|
'private_key': value.privateKey,
|
|
44
|
+
'js_url': value.jsUrl,
|
|
45
|
+
'api_url': value.apiUrl,
|
|
42
46
|
};
|
|
43
47
|
}
|
|
@@ -29,17 +29,29 @@ export interface PatchedCaptchaStageRequest {
|
|
|
29
29
|
*/
|
|
30
30
|
flowSet?: Array<FlowSetRequest>;
|
|
31
31
|
/**
|
|
32
|
-
* Public key, acquired
|
|
32
|
+
* Public key, acquired your captcha Provider.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof PatchedCaptchaStageRequest
|
|
35
35
|
*/
|
|
36
36
|
publicKey?: string;
|
|
37
37
|
/**
|
|
38
|
-
* Private key, acquired
|
|
38
|
+
* Private key, acquired your captcha Provider.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof PatchedCaptchaStageRequest
|
|
41
41
|
*/
|
|
42
42
|
privateKey?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PatchedCaptchaStageRequest
|
|
47
|
+
*/
|
|
48
|
+
jsUrl?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof PatchedCaptchaStageRequest
|
|
53
|
+
*/
|
|
54
|
+
apiUrl?: string;
|
|
43
55
|
}
|
|
44
56
|
export declare function PatchedCaptchaStageRequestFromJSON(json: any): PatchedCaptchaStageRequest;
|
|
45
57
|
export declare function PatchedCaptchaStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedCaptchaStageRequest;
|
|
@@ -25,6 +25,8 @@ export function PatchedCaptchaStageRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
25
25
|
'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
|
|
26
26
|
'publicKey': !exists(json, 'public_key') ? undefined : json['public_key'],
|
|
27
27
|
'privateKey': !exists(json, 'private_key') ? undefined : json['private_key'],
|
|
28
|
+
'jsUrl': !exists(json, 'js_url') ? undefined : json['js_url'],
|
|
29
|
+
'apiUrl': !exists(json, 'api_url') ? undefined : json['api_url'],
|
|
28
30
|
};
|
|
29
31
|
}
|
|
30
32
|
export function PatchedCaptchaStageRequestToJSON(value) {
|
|
@@ -39,5 +41,7 @@ export function PatchedCaptchaStageRequestToJSON(value) {
|
|
|
39
41
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequestToJSON)),
|
|
40
42
|
'public_key': value.publicKey,
|
|
41
43
|
'private_key': value.privateKey,
|
|
44
|
+
'js_url': value.jsUrl,
|
|
45
|
+
'api_url': value.apiUrl,
|
|
42
46
|
};
|
|
43
47
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.11.3
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Preview how the current user is mapped via the property mappings selected in a provider
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PropertyMappingPreview
|
|
16
|
+
*/
|
|
17
|
+
export interface PropertyMappingPreview {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {{ [key: string]: any; }}
|
|
21
|
+
* @memberof PropertyMappingPreview
|
|
22
|
+
*/
|
|
23
|
+
readonly preview: {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export declare function PropertyMappingPreviewFromJSON(json: any): PropertyMappingPreview;
|
|
28
|
+
export declare function PropertyMappingPreviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): PropertyMappingPreview;
|
|
29
|
+
export declare function PropertyMappingPreviewToJSON(value?: PropertyMappingPreview | null): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2022.11.3
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export function PropertyMappingPreviewFromJSON(json) {
|
|
15
|
+
return PropertyMappingPreviewFromJSONTyped(json, false);
|
|
16
|
+
}
|
|
17
|
+
export function PropertyMappingPreviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'preview': json['preview'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export function PropertyMappingPreviewToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {};
|
|
33
|
+
}
|
|
@@ -369,6 +369,7 @@ export * from './PromptStage';
|
|
|
369
369
|
export * from './PromptStageRequest';
|
|
370
370
|
export * from './PromptTypeEnum';
|
|
371
371
|
export * from './PropertyMapping';
|
|
372
|
+
export * from './PropertyMappingPreview';
|
|
372
373
|
export * from './PropertyMappingTestResult';
|
|
373
374
|
export * from './Provider';
|
|
374
375
|
export * from './ProviderEnum';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -371,6 +371,7 @@ export * from './PromptStage';
|
|
|
371
371
|
export * from './PromptStageRequest';
|
|
372
372
|
export * from './PromptTypeEnum';
|
|
373
373
|
export * from './PropertyMapping';
|
|
374
|
+
export * from './PropertyMappingPreview';
|
|
374
375
|
export * from './PropertyMappingTestResult';
|
|
375
376
|
export * from './Provider';
|
|
376
377
|
export * from './ProviderEnum';
|
|
@@ -62,6 +62,12 @@ export interface CaptchaChallenge {
|
|
|
62
62
|
* @memberof CaptchaChallenge
|
|
63
63
|
*/
|
|
64
64
|
siteKey: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof CaptchaChallenge
|
|
69
|
+
*/
|
|
70
|
+
readonly jsUrl: string;
|
|
65
71
|
}
|
|
66
72
|
export declare function CaptchaChallengeFromJSON(json: any): CaptchaChallenge;
|
|
67
73
|
export declare function CaptchaChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CaptchaChallenge;
|
|
@@ -33,6 +33,7 @@ function CaptchaChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
'pendingUser': json['pending_user'],
|
|
34
34
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
35
35
|
'siteKey': json['site_key'],
|
|
36
|
+
'jsUrl': json['js_url'],
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
exports.CaptchaChallengeFromJSONTyped = CaptchaChallengeFromJSONTyped;
|
|
@@ -59,11 +59,23 @@ export interface CaptchaStage {
|
|
|
59
59
|
*/
|
|
60
60
|
flowSet?: Array<FlowSet>;
|
|
61
61
|
/**
|
|
62
|
-
* Public key, acquired
|
|
62
|
+
* Public key, acquired your captcha Provider.
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @memberof CaptchaStage
|
|
65
65
|
*/
|
|
66
66
|
publicKey: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof CaptchaStage
|
|
71
|
+
*/
|
|
72
|
+
jsUrl?: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof CaptchaStage
|
|
77
|
+
*/
|
|
78
|
+
apiUrl?: string;
|
|
67
79
|
}
|
|
68
80
|
export declare function CaptchaStageFromJSON(json: any): CaptchaStage;
|
|
69
81
|
export declare function CaptchaStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): CaptchaStage;
|
|
@@ -33,6 +33,8 @@ function CaptchaStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
33
|
'metaModelName': json['meta_model_name'],
|
|
34
34
|
'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSet_1.FlowSetFromJSON)),
|
|
35
35
|
'publicKey': json['public_key'],
|
|
36
|
+
'jsUrl': !(0, runtime_1.exists)(json, 'js_url') ? undefined : json['js_url'],
|
|
37
|
+
'apiUrl': !(0, runtime_1.exists)(json, 'api_url') ? undefined : json['api_url'],
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
exports.CaptchaStageFromJSONTyped = CaptchaStageFromJSONTyped;
|
|
@@ -47,6 +49,8 @@ function CaptchaStageToJSON(value) {
|
|
|
47
49
|
'name': value.name,
|
|
48
50
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSet_1.FlowSetToJSON)),
|
|
49
51
|
'public_key': value.publicKey,
|
|
52
|
+
'js_url': value.jsUrl,
|
|
53
|
+
'api_url': value.apiUrl,
|
|
50
54
|
};
|
|
51
55
|
}
|
|
52
56
|
exports.CaptchaStageToJSON = CaptchaStageToJSON;
|
|
@@ -29,17 +29,29 @@ export interface CaptchaStageRequest {
|
|
|
29
29
|
*/
|
|
30
30
|
flowSet?: Array<FlowSetRequest>;
|
|
31
31
|
/**
|
|
32
|
-
* Public key, acquired
|
|
32
|
+
* Public key, acquired your captcha Provider.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof CaptchaStageRequest
|
|
35
35
|
*/
|
|
36
36
|
publicKey: string;
|
|
37
37
|
/**
|
|
38
|
-
* Private key, acquired
|
|
38
|
+
* Private key, acquired your captcha Provider.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof CaptchaStageRequest
|
|
41
41
|
*/
|
|
42
42
|
privateKey: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CaptchaStageRequest
|
|
47
|
+
*/
|
|
48
|
+
jsUrl?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CaptchaStageRequest
|
|
53
|
+
*/
|
|
54
|
+
apiUrl?: string;
|
|
43
55
|
}
|
|
44
56
|
export declare function CaptchaStageRequestFromJSON(json: any): CaptchaStageRequest;
|
|
45
57
|
export declare function CaptchaStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CaptchaStageRequest;
|
|
@@ -29,6 +29,8 @@ function CaptchaStageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
|
|
30
30
|
'publicKey': json['public_key'],
|
|
31
31
|
'privateKey': json['private_key'],
|
|
32
|
+
'jsUrl': !(0, runtime_1.exists)(json, 'js_url') ? undefined : json['js_url'],
|
|
33
|
+
'apiUrl': !(0, runtime_1.exists)(json, 'api_url') ? undefined : json['api_url'],
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
exports.CaptchaStageRequestFromJSONTyped = CaptchaStageRequestFromJSONTyped;
|
|
@@ -44,6 +46,8 @@ function CaptchaStageRequestToJSON(value) {
|
|
|
44
46
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequest_1.FlowSetRequestToJSON)),
|
|
45
47
|
'public_key': value.publicKey,
|
|
46
48
|
'private_key': value.privateKey,
|
|
49
|
+
'js_url': value.jsUrl,
|
|
50
|
+
'api_url': value.apiUrl,
|
|
47
51
|
};
|
|
48
52
|
}
|
|
49
53
|
exports.CaptchaStageRequestToJSON = CaptchaStageRequestToJSON;
|
|
@@ -29,17 +29,29 @@ export interface PatchedCaptchaStageRequest {
|
|
|
29
29
|
*/
|
|
30
30
|
flowSet?: Array<FlowSetRequest>;
|
|
31
31
|
/**
|
|
32
|
-
* Public key, acquired
|
|
32
|
+
* Public key, acquired your captcha Provider.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof PatchedCaptchaStageRequest
|
|
35
35
|
*/
|
|
36
36
|
publicKey?: string;
|
|
37
37
|
/**
|
|
38
|
-
* Private key, acquired
|
|
38
|
+
* Private key, acquired your captcha Provider.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof PatchedCaptchaStageRequest
|
|
41
41
|
*/
|
|
42
42
|
privateKey?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PatchedCaptchaStageRequest
|
|
47
|
+
*/
|
|
48
|
+
jsUrl?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof PatchedCaptchaStageRequest
|
|
53
|
+
*/
|
|
54
|
+
apiUrl?: string;
|
|
43
55
|
}
|
|
44
56
|
export declare function PatchedCaptchaStageRequestFromJSON(json: any): PatchedCaptchaStageRequest;
|
|
45
57
|
export declare function PatchedCaptchaStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedCaptchaStageRequest;
|
|
@@ -29,6 +29,8 @@ function PatchedCaptchaStageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
|
|
30
30
|
'publicKey': !(0, runtime_1.exists)(json, 'public_key') ? undefined : json['public_key'],
|
|
31
31
|
'privateKey': !(0, runtime_1.exists)(json, 'private_key') ? undefined : json['private_key'],
|
|
32
|
+
'jsUrl': !(0, runtime_1.exists)(json, 'js_url') ? undefined : json['js_url'],
|
|
33
|
+
'apiUrl': !(0, runtime_1.exists)(json, 'api_url') ? undefined : json['api_url'],
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
exports.PatchedCaptchaStageRequestFromJSONTyped = PatchedCaptchaStageRequestFromJSONTyped;
|
|
@@ -44,6 +46,8 @@ function PatchedCaptchaStageRequestToJSON(value) {
|
|
|
44
46
|
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequest_1.FlowSetRequestToJSON)),
|
|
45
47
|
'public_key': value.publicKey,
|
|
46
48
|
'private_key': value.privateKey,
|
|
49
|
+
'js_url': value.jsUrl,
|
|
50
|
+
'api_url': value.apiUrl,
|
|
47
51
|
};
|
|
48
52
|
}
|
|
49
53
|
exports.PatchedCaptchaStageRequestToJSON = PatchedCaptchaStageRequestToJSON;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.11.3
|
|
6
|
+
* Contact: hello@goauthentik.io
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Preview how the current user is mapped via the property mappings selected in a provider
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PropertyMappingPreview
|
|
16
|
+
*/
|
|
17
|
+
export interface PropertyMappingPreview {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {{ [key: string]: any; }}
|
|
21
|
+
* @memberof PropertyMappingPreview
|
|
22
|
+
*/
|
|
23
|
+
readonly preview: {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export declare function PropertyMappingPreviewFromJSON(json: any): PropertyMappingPreview;
|
|
28
|
+
export declare function PropertyMappingPreviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): PropertyMappingPreview;
|
|
29
|
+
export declare function PropertyMappingPreviewToJSON(value?: PropertyMappingPreview | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2022.11.3
|
|
9
|
+
* Contact: hello@goauthentik.io
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PropertyMappingPreviewToJSON = exports.PropertyMappingPreviewFromJSONTyped = exports.PropertyMappingPreviewFromJSON = void 0;
|
|
17
|
+
function PropertyMappingPreviewFromJSON(json) {
|
|
18
|
+
return PropertyMappingPreviewFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
exports.PropertyMappingPreviewFromJSON = PropertyMappingPreviewFromJSON;
|
|
21
|
+
function PropertyMappingPreviewFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'preview': json['preview'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
exports.PropertyMappingPreviewFromJSONTyped = PropertyMappingPreviewFromJSONTyped;
|
|
30
|
+
function PropertyMappingPreviewToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {};
|
|
38
|
+
}
|
|
39
|
+
exports.PropertyMappingPreviewToJSON = PropertyMappingPreviewToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -369,6 +369,7 @@ export * from './PromptStage';
|
|
|
369
369
|
export * from './PromptStageRequest';
|
|
370
370
|
export * from './PromptTypeEnum';
|
|
371
371
|
export * from './PropertyMapping';
|
|
372
|
+
export * from './PropertyMappingPreview';
|
|
372
373
|
export * from './PropertyMappingTestResult';
|
|
373
374
|
export * from './Provider';
|
|
374
375
|
export * from './ProviderEnum';
|
package/dist/models/index.js
CHANGED
|
@@ -387,6 +387,7 @@ __exportStar(require("./PromptStage"), exports);
|
|
|
387
387
|
__exportStar(require("./PromptStageRequest"), exports);
|
|
388
388
|
__exportStar(require("./PromptTypeEnum"), exports);
|
|
389
389
|
__exportStar(require("./PropertyMapping"), exports);
|
|
390
|
+
__exportStar(require("./PropertyMappingPreview"), exports);
|
|
390
391
|
__exportStar(require("./PropertyMappingTestResult"), exports);
|
|
391
392
|
__exportStar(require("./Provider"), exports);
|
|
392
393
|
__exportStar(require("./ProviderEnum"), exports);
|
package/package.json
CHANGED
package/src/apis/ProvidersApi.ts
CHANGED
|
@@ -60,6 +60,9 @@ import {
|
|
|
60
60
|
PatchedSAMLProviderRequest,
|
|
61
61
|
PatchedSAMLProviderRequestFromJSON,
|
|
62
62
|
PatchedSAMLProviderRequestToJSON,
|
|
63
|
+
PropertyMappingPreview,
|
|
64
|
+
PropertyMappingPreviewFromJSON,
|
|
65
|
+
PropertyMappingPreviewToJSON,
|
|
63
66
|
Provider,
|
|
64
67
|
ProviderFromJSON,
|
|
65
68
|
ProviderToJSON,
|
|
@@ -186,6 +189,10 @@ export interface ProvidersOauth2PartialUpdateRequest {
|
|
|
186
189
|
patchedOAuth2ProviderRequest?: PatchedOAuth2ProviderRequest;
|
|
187
190
|
}
|
|
188
191
|
|
|
192
|
+
export interface ProvidersOauth2PreviewUserRetrieveRequest {
|
|
193
|
+
id: number;
|
|
194
|
+
}
|
|
195
|
+
|
|
189
196
|
export interface ProvidersOauth2RetrieveRequest {
|
|
190
197
|
id: number;
|
|
191
198
|
}
|
|
@@ -299,6 +306,10 @@ export interface ProvidersSamlPartialUpdateRequest {
|
|
|
299
306
|
patchedSAMLProviderRequest?: PatchedSAMLProviderRequest;
|
|
300
307
|
}
|
|
301
308
|
|
|
309
|
+
export interface ProvidersSamlPreviewUserRetrieveRequest {
|
|
310
|
+
id: number;
|
|
311
|
+
}
|
|
312
|
+
|
|
302
313
|
export interface ProvidersSamlRetrieveRequest {
|
|
303
314
|
id: number;
|
|
304
315
|
}
|
|
@@ -1009,6 +1020,40 @@ export class ProvidersApi extends runtime.BaseAPI {
|
|
|
1009
1020
|
return await response.value();
|
|
1010
1021
|
}
|
|
1011
1022
|
|
|
1023
|
+
/**
|
|
1024
|
+
* Preview user data for provider
|
|
1025
|
+
*/
|
|
1026
|
+
async providersOauth2PreviewUserRetrieveRaw(requestParameters: ProvidersOauth2PreviewUserRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<PropertyMappingPreview>> {
|
|
1027
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1028
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling providersOauth2PreviewUserRetrieve.');
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
const queryParameters: any = {};
|
|
1032
|
+
|
|
1033
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1034
|
+
|
|
1035
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1036
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
const response = await this.request({
|
|
1040
|
+
path: `/providers/oauth2/{id}/preview_user/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1041
|
+
method: 'GET',
|
|
1042
|
+
headers: headerParameters,
|
|
1043
|
+
query: queryParameters,
|
|
1044
|
+
}, initOverrides);
|
|
1045
|
+
|
|
1046
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PropertyMappingPreviewFromJSON(jsonValue));
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
* Preview user data for provider
|
|
1051
|
+
*/
|
|
1052
|
+
async providersOauth2PreviewUserRetrieve(requestParameters: ProvidersOauth2PreviewUserRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PropertyMappingPreview> {
|
|
1053
|
+
const response = await this.providersOauth2PreviewUserRetrieveRaw(requestParameters, initOverrides);
|
|
1054
|
+
return await response.value();
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1012
1057
|
/**
|
|
1013
1058
|
* OAuth2Provider Viewset
|
|
1014
1059
|
*/
|
|
@@ -1803,6 +1848,40 @@ export class ProvidersApi extends runtime.BaseAPI {
|
|
|
1803
1848
|
return await response.value();
|
|
1804
1849
|
}
|
|
1805
1850
|
|
|
1851
|
+
/**
|
|
1852
|
+
* Preview user data for provider
|
|
1853
|
+
*/
|
|
1854
|
+
async providersSamlPreviewUserRetrieveRaw(requestParameters: ProvidersSamlPreviewUserRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<PropertyMappingPreview>> {
|
|
1855
|
+
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
1856
|
+
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling providersSamlPreviewUserRetrieve.');
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
const queryParameters: any = {};
|
|
1860
|
+
|
|
1861
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1862
|
+
|
|
1863
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1864
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
const response = await this.request({
|
|
1868
|
+
path: `/providers/saml/{id}/preview_user/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
1869
|
+
method: 'GET',
|
|
1870
|
+
headers: headerParameters,
|
|
1871
|
+
query: queryParameters,
|
|
1872
|
+
}, initOverrides);
|
|
1873
|
+
|
|
1874
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PropertyMappingPreviewFromJSON(jsonValue));
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
/**
|
|
1878
|
+
* Preview user data for provider
|
|
1879
|
+
*/
|
|
1880
|
+
async providersSamlPreviewUserRetrieve(requestParameters: ProvidersSamlPreviewUserRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PropertyMappingPreview> {
|
|
1881
|
+
const response = await this.providersSamlPreviewUserRetrieveRaw(requestParameters, initOverrides);
|
|
1882
|
+
return await response.value();
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1806
1885
|
/**
|
|
1807
1886
|
* SAMLProvider Viewset
|
|
1808
1887
|
*/
|
|
@@ -80,6 +80,12 @@ export interface CaptchaChallenge {
|
|
|
80
80
|
* @memberof CaptchaChallenge
|
|
81
81
|
*/
|
|
82
82
|
siteKey: string;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof CaptchaChallenge
|
|
87
|
+
*/
|
|
88
|
+
readonly jsUrl: string;
|
|
83
89
|
}
|
|
84
90
|
|
|
85
91
|
export function CaptchaChallengeFromJSON(json: any): CaptchaChallenge {
|
|
@@ -99,6 +105,7 @@ export function CaptchaChallengeFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
99
105
|
'pendingUser': json['pending_user'],
|
|
100
106
|
'pendingUserAvatar': json['pending_user_avatar'],
|
|
101
107
|
'siteKey': json['site_key'],
|
|
108
|
+
'jsUrl': json['js_url'],
|
|
102
109
|
};
|
|
103
110
|
}
|
|
104
111
|
|
|
@@ -69,11 +69,23 @@ export interface CaptchaStage {
|
|
|
69
69
|
*/
|
|
70
70
|
flowSet?: Array<FlowSet>;
|
|
71
71
|
/**
|
|
72
|
-
* Public key, acquired
|
|
72
|
+
* Public key, acquired your captcha Provider.
|
|
73
73
|
* @type {string}
|
|
74
74
|
* @memberof CaptchaStage
|
|
75
75
|
*/
|
|
76
76
|
publicKey: string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof CaptchaStage
|
|
81
|
+
*/
|
|
82
|
+
jsUrl?: string;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof CaptchaStage
|
|
87
|
+
*/
|
|
88
|
+
apiUrl?: string;
|
|
77
89
|
}
|
|
78
90
|
|
|
79
91
|
export function CaptchaStageFromJSON(json: any): CaptchaStage {
|
|
@@ -94,6 +106,8 @@ export function CaptchaStageFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
94
106
|
'metaModelName': json['meta_model_name'],
|
|
95
107
|
'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetFromJSON)),
|
|
96
108
|
'publicKey': json['public_key'],
|
|
109
|
+
'jsUrl': !exists(json, 'js_url') ? undefined : json['js_url'],
|
|
110
|
+
'apiUrl': !exists(json, 'api_url') ? undefined : json['api_url'],
|
|
97
111
|
};
|
|
98
112
|
}
|
|
99
113
|
|
|
@@ -109,6 +123,8 @@ export function CaptchaStageToJSON(value?: CaptchaStage | null): any {
|
|
|
109
123
|
'name': value.name,
|
|
110
124
|
'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetToJSON)),
|
|
111
125
|
'public_key': value.publicKey,
|
|
126
|
+
'js_url': value.jsUrl,
|
|
127
|
+
'api_url': value.apiUrl,
|
|
112
128
|
};
|
|
113
129
|
}
|
|
114
130
|
|
|
@@ -39,17 +39,29 @@ export interface CaptchaStageRequest {
|
|
|
39
39
|
*/
|
|
40
40
|
flowSet?: Array<FlowSetRequest>;
|
|
41
41
|
/**
|
|
42
|
-
* Public key, acquired
|
|
42
|
+
* Public key, acquired your captcha Provider.
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof CaptchaStageRequest
|
|
45
45
|
*/
|
|
46
46
|
publicKey: string;
|
|
47
47
|
/**
|
|
48
|
-
* Private key, acquired
|
|
48
|
+
* Private key, acquired your captcha Provider.
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof CaptchaStageRequest
|
|
51
51
|
*/
|
|
52
52
|
privateKey: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof CaptchaStageRequest
|
|
57
|
+
*/
|
|
58
|
+
jsUrl?: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof CaptchaStageRequest
|
|
63
|
+
*/
|
|
64
|
+
apiUrl?: string;
|
|
53
65
|
}
|
|
54
66
|
|
|
55
67
|
export function CaptchaStageRequestFromJSON(json: any): CaptchaStageRequest {
|
|
@@ -66,6 +78,8 @@ export function CaptchaStageRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
66
78
|
'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetRequestFromJSON)),
|
|
67
79
|
'publicKey': json['public_key'],
|
|
68
80
|
'privateKey': json['private_key'],
|
|
81
|
+
'jsUrl': !exists(json, 'js_url') ? undefined : json['js_url'],
|
|
82
|
+
'apiUrl': !exists(json, 'api_url') ? undefined : json['api_url'],
|
|
69
83
|
};
|
|
70
84
|
}
|
|
71
85
|
|
|
@@ -82,6 +96,8 @@ export function CaptchaStageRequestToJSON(value?: CaptchaStageRequest | null): a
|
|
|
82
96
|
'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetRequestToJSON)),
|
|
83
97
|
'public_key': value.publicKey,
|
|
84
98
|
'private_key': value.privateKey,
|
|
99
|
+
'js_url': value.jsUrl,
|
|
100
|
+
'api_url': value.apiUrl,
|
|
85
101
|
};
|
|
86
102
|
}
|
|
87
103
|
|
|
@@ -39,17 +39,29 @@ export interface PatchedCaptchaStageRequest {
|
|
|
39
39
|
*/
|
|
40
40
|
flowSet?: Array<FlowSetRequest>;
|
|
41
41
|
/**
|
|
42
|
-
* Public key, acquired
|
|
42
|
+
* Public key, acquired your captcha Provider.
|
|
43
43
|
* @type {string}
|
|
44
44
|
* @memberof PatchedCaptchaStageRequest
|
|
45
45
|
*/
|
|
46
46
|
publicKey?: string;
|
|
47
47
|
/**
|
|
48
|
-
* Private key, acquired
|
|
48
|
+
* Private key, acquired your captcha Provider.
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof PatchedCaptchaStageRequest
|
|
51
51
|
*/
|
|
52
52
|
privateKey?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof PatchedCaptchaStageRequest
|
|
57
|
+
*/
|
|
58
|
+
jsUrl?: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof PatchedCaptchaStageRequest
|
|
63
|
+
*/
|
|
64
|
+
apiUrl?: string;
|
|
53
65
|
}
|
|
54
66
|
|
|
55
67
|
export function PatchedCaptchaStageRequestFromJSON(json: any): PatchedCaptchaStageRequest {
|
|
@@ -66,6 +78,8 @@ export function PatchedCaptchaStageRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
66
78
|
'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetRequestFromJSON)),
|
|
67
79
|
'publicKey': !exists(json, 'public_key') ? undefined : json['public_key'],
|
|
68
80
|
'privateKey': !exists(json, 'private_key') ? undefined : json['private_key'],
|
|
81
|
+
'jsUrl': !exists(json, 'js_url') ? undefined : json['js_url'],
|
|
82
|
+
'apiUrl': !exists(json, 'api_url') ? undefined : json['api_url'],
|
|
69
83
|
};
|
|
70
84
|
}
|
|
71
85
|
|
|
@@ -82,6 +96,8 @@ export function PatchedCaptchaStageRequestToJSON(value?: PatchedCaptchaStageRequ
|
|
|
82
96
|
'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetRequestToJSON)),
|
|
83
97
|
'public_key': value.publicKey,
|
|
84
98
|
'private_key': value.privateKey,
|
|
99
|
+
'js_url': value.jsUrl,
|
|
100
|
+
'api_url': value.apiUrl,
|
|
85
101
|
};
|
|
86
102
|
}
|
|
87
103
|
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2022.11.3
|
|
8
|
+
* Contact: hello@goauthentik.io
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Preview how the current user is mapped via the property mappings selected in a provider
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PropertyMappingPreview
|
|
20
|
+
*/
|
|
21
|
+
export interface PropertyMappingPreview {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {{ [key: string]: any; }}
|
|
25
|
+
* @memberof PropertyMappingPreview
|
|
26
|
+
*/
|
|
27
|
+
readonly preview: { [key: string]: any; };
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function PropertyMappingPreviewFromJSON(json: any): PropertyMappingPreview {
|
|
31
|
+
return PropertyMappingPreviewFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function PropertyMappingPreviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): PropertyMappingPreview {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
|
|
40
|
+
'preview': json['preview'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function PropertyMappingPreviewToJSON(value?: PropertyMappingPreview | null): any {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -371,6 +371,7 @@ export * from './PromptStage';
|
|
|
371
371
|
export * from './PromptStageRequest';
|
|
372
372
|
export * from './PromptTypeEnum';
|
|
373
373
|
export * from './PropertyMapping';
|
|
374
|
+
export * from './PropertyMappingPreview';
|
|
374
375
|
export * from './PropertyMappingTestResult';
|
|
375
376
|
export * from './Provider';
|
|
376
377
|
export * from './ProviderEnum';
|