@goauthentik/api 2024.4.2-1716485711 → 2024.4.2-1716550354
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/PropertymappingsApi.d.ts +2 -2
- package/dist/apis/PropertymappingsApi.js +1 -4
- package/dist/esm/apis/PropertymappingsApi.d.ts +2 -2
- package/dist/esm/apis/PropertymappingsApi.js +2 -5
- package/dist/esm/models/PropertyMappingTestRequest.d.ts +45 -0
- package/dist/esm/models/PropertyMappingTestRequest.js +47 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/PropertyMappingTestRequest.d.ts +45 -0
- package/dist/models/PropertyMappingTestRequest.js +54 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/PropertymappingsApi.ts +5 -9
- package/src/models/PropertyMappingTestRequest.ts +81 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -483,6 +483,7 @@ src/models/PromptStageRequest.ts
|
|
|
483
483
|
src/models/PromptTypeEnum.ts
|
|
484
484
|
src/models/PropertyMapping.ts
|
|
485
485
|
src/models/PropertyMappingPreview.ts
|
|
486
|
+
src/models/PropertyMappingTestRequest.ts
|
|
486
487
|
src/models/PropertyMappingTestResult.ts
|
|
487
488
|
src/models/ProtocolEnum.ts
|
|
488
489
|
src/models/Provider.ts
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { GoogleWorkspaceProviderMapping, GoogleWorkspaceProviderMappingRequest, LDAPPropertyMapping, LDAPPropertyMappingRequest, MicrosoftEntraProviderMapping, MicrosoftEntraProviderMappingRequest, NotificationWebhookMapping, NotificationWebhookMappingRequest, PaginatedGoogleWorkspaceProviderMappingList, PaginatedLDAPPropertyMappingList, PaginatedMicrosoftEntraProviderMappingList, PaginatedNotificationWebhookMappingList, PaginatedPropertyMappingList, PaginatedRACPropertyMappingList, PaginatedSAMLPropertyMappingList, PaginatedSCIMMappingList, PaginatedScopeMappingList, PatchedGoogleWorkspaceProviderMappingRequest, PatchedLDAPPropertyMappingRequest, PatchedMicrosoftEntraProviderMappingRequest, PatchedNotificationWebhookMappingRequest, PatchedRACPropertyMappingRequest, PatchedSAMLPropertyMappingRequest, PatchedSCIMMappingRequest, PatchedScopeMappingRequest,
|
|
13
|
+
import type { GoogleWorkspaceProviderMapping, GoogleWorkspaceProviderMappingRequest, LDAPPropertyMapping, LDAPPropertyMappingRequest, MicrosoftEntraProviderMapping, MicrosoftEntraProviderMappingRequest, NotificationWebhookMapping, NotificationWebhookMappingRequest, PaginatedGoogleWorkspaceProviderMappingList, PaginatedLDAPPropertyMappingList, PaginatedMicrosoftEntraProviderMappingList, PaginatedNotificationWebhookMappingList, PaginatedPropertyMappingList, PaginatedRACPropertyMappingList, PaginatedSAMLPropertyMappingList, PaginatedSCIMMappingList, PaginatedScopeMappingList, PatchedGoogleWorkspaceProviderMappingRequest, PatchedLDAPPropertyMappingRequest, PatchedMicrosoftEntraProviderMappingRequest, PatchedNotificationWebhookMappingRequest, PatchedRACPropertyMappingRequest, PatchedSAMLPropertyMappingRequest, PatchedSCIMMappingRequest, PatchedScopeMappingRequest, PropertyMapping, PropertyMappingTestRequest, PropertyMappingTestResult, RACPropertyMapping, RACPropertyMappingRequest, SAMLPropertyMapping, SAMLPropertyMappingRequest, SCIMMapping, SCIMMappingRequest, ScopeMapping, ScopeMappingRequest, TypeCreate, UsedBy } from '../models';
|
|
14
14
|
export interface PropertymappingsAllDestroyRequest {
|
|
15
15
|
pmUuid: string;
|
|
16
16
|
}
|
|
@@ -26,8 +26,8 @@ export interface PropertymappingsAllRetrieveRequest {
|
|
|
26
26
|
}
|
|
27
27
|
export interface PropertymappingsAllTestCreateRequest {
|
|
28
28
|
pmUuid: string;
|
|
29
|
-
policyTestRequest: PolicyTestRequest;
|
|
30
29
|
formatResult?: boolean;
|
|
30
|
+
propertyMappingTestRequest?: PropertyMappingTestRequest;
|
|
31
31
|
}
|
|
32
32
|
export interface PropertymappingsAllUsedByListRequest {
|
|
33
33
|
pmUuid: string;
|
|
@@ -153,9 +153,6 @@ class PropertymappingsApi extends runtime.BaseAPI {
|
|
|
153
153
|
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
154
154
|
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsAllTestCreate.');
|
|
155
155
|
}
|
|
156
|
-
if (requestParameters.policyTestRequest === null || requestParameters.policyTestRequest === undefined) {
|
|
157
|
-
throw new runtime.RequiredError('policyTestRequest', 'Required parameter requestParameters.policyTestRequest was null or undefined when calling propertymappingsAllTestCreate.');
|
|
158
|
-
}
|
|
159
156
|
const queryParameters = {};
|
|
160
157
|
if (requestParameters.formatResult !== undefined) {
|
|
161
158
|
queryParameters['format_result'] = requestParameters.formatResult;
|
|
@@ -174,7 +171,7 @@ class PropertymappingsApi extends runtime.BaseAPI {
|
|
|
174
171
|
method: 'POST',
|
|
175
172
|
headers: headerParameters,
|
|
176
173
|
query: queryParameters,
|
|
177
|
-
body: (0, models_1.
|
|
174
|
+
body: (0, models_1.PropertyMappingTestRequestToJSON)(requestParameters.propertyMappingTestRequest),
|
|
178
175
|
}, initOverrides);
|
|
179
176
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.PropertyMappingTestResultFromJSON)(jsonValue));
|
|
180
177
|
});
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { GoogleWorkspaceProviderMapping, GoogleWorkspaceProviderMappingRequest, LDAPPropertyMapping, LDAPPropertyMappingRequest, MicrosoftEntraProviderMapping, MicrosoftEntraProviderMappingRequest, NotificationWebhookMapping, NotificationWebhookMappingRequest, PaginatedGoogleWorkspaceProviderMappingList, PaginatedLDAPPropertyMappingList, PaginatedMicrosoftEntraProviderMappingList, PaginatedNotificationWebhookMappingList, PaginatedPropertyMappingList, PaginatedRACPropertyMappingList, PaginatedSAMLPropertyMappingList, PaginatedSCIMMappingList, PaginatedScopeMappingList, PatchedGoogleWorkspaceProviderMappingRequest, PatchedLDAPPropertyMappingRequest, PatchedMicrosoftEntraProviderMappingRequest, PatchedNotificationWebhookMappingRequest, PatchedRACPropertyMappingRequest, PatchedSAMLPropertyMappingRequest, PatchedSCIMMappingRequest, PatchedScopeMappingRequest,
|
|
13
|
+
import type { GoogleWorkspaceProviderMapping, GoogleWorkspaceProviderMappingRequest, LDAPPropertyMapping, LDAPPropertyMappingRequest, MicrosoftEntraProviderMapping, MicrosoftEntraProviderMappingRequest, NotificationWebhookMapping, NotificationWebhookMappingRequest, PaginatedGoogleWorkspaceProviderMappingList, PaginatedLDAPPropertyMappingList, PaginatedMicrosoftEntraProviderMappingList, PaginatedNotificationWebhookMappingList, PaginatedPropertyMappingList, PaginatedRACPropertyMappingList, PaginatedSAMLPropertyMappingList, PaginatedSCIMMappingList, PaginatedScopeMappingList, PatchedGoogleWorkspaceProviderMappingRequest, PatchedLDAPPropertyMappingRequest, PatchedMicrosoftEntraProviderMappingRequest, PatchedNotificationWebhookMappingRequest, PatchedRACPropertyMappingRequest, PatchedSAMLPropertyMappingRequest, PatchedSCIMMappingRequest, PatchedScopeMappingRequest, PropertyMapping, PropertyMappingTestRequest, PropertyMappingTestResult, RACPropertyMapping, RACPropertyMappingRequest, SAMLPropertyMapping, SAMLPropertyMappingRequest, SCIMMapping, SCIMMappingRequest, ScopeMapping, ScopeMappingRequest, TypeCreate, UsedBy } from '../models';
|
|
14
14
|
export interface PropertymappingsAllDestroyRequest {
|
|
15
15
|
pmUuid: string;
|
|
16
16
|
}
|
|
@@ -26,8 +26,8 @@ export interface PropertymappingsAllRetrieveRequest {
|
|
|
26
26
|
}
|
|
27
27
|
export interface PropertymappingsAllTestCreateRequest {
|
|
28
28
|
pmUuid: string;
|
|
29
|
-
policyTestRequest: PolicyTestRequest;
|
|
30
29
|
formatResult?: boolean;
|
|
30
|
+
propertyMappingTestRequest?: PropertyMappingTestRequest;
|
|
31
31
|
}
|
|
32
32
|
export interface PropertymappingsAllUsedByListRequest {
|
|
33
33
|
pmUuid: string;
|
|
@@ -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 { GoogleWorkspaceProviderMappingFromJSON, GoogleWorkspaceProviderMappingRequestToJSON, LDAPPropertyMappingFromJSON, LDAPPropertyMappingRequestToJSON, MicrosoftEntraProviderMappingFromJSON, MicrosoftEntraProviderMappingRequestToJSON, NotificationWebhookMappingFromJSON, NotificationWebhookMappingRequestToJSON, PaginatedGoogleWorkspaceProviderMappingListFromJSON, PaginatedLDAPPropertyMappingListFromJSON, PaginatedMicrosoftEntraProviderMappingListFromJSON, PaginatedNotificationWebhookMappingListFromJSON, PaginatedPropertyMappingListFromJSON, PaginatedRACPropertyMappingListFromJSON, PaginatedSAMLPropertyMappingListFromJSON, PaginatedSCIMMappingListFromJSON, PaginatedScopeMappingListFromJSON, PatchedGoogleWorkspaceProviderMappingRequestToJSON, PatchedLDAPPropertyMappingRequestToJSON, PatchedMicrosoftEntraProviderMappingRequestToJSON, PatchedNotificationWebhookMappingRequestToJSON, PatchedRACPropertyMappingRequestToJSON, PatchedSAMLPropertyMappingRequestToJSON, PatchedSCIMMappingRequestToJSON, PatchedScopeMappingRequestToJSON,
|
|
24
|
+
import { GoogleWorkspaceProviderMappingFromJSON, GoogleWorkspaceProviderMappingRequestToJSON, LDAPPropertyMappingFromJSON, LDAPPropertyMappingRequestToJSON, MicrosoftEntraProviderMappingFromJSON, MicrosoftEntraProviderMappingRequestToJSON, NotificationWebhookMappingFromJSON, NotificationWebhookMappingRequestToJSON, PaginatedGoogleWorkspaceProviderMappingListFromJSON, PaginatedLDAPPropertyMappingListFromJSON, PaginatedMicrosoftEntraProviderMappingListFromJSON, PaginatedNotificationWebhookMappingListFromJSON, PaginatedPropertyMappingListFromJSON, PaginatedRACPropertyMappingListFromJSON, PaginatedSAMLPropertyMappingListFromJSON, PaginatedSCIMMappingListFromJSON, PaginatedScopeMappingListFromJSON, PatchedGoogleWorkspaceProviderMappingRequestToJSON, PatchedLDAPPropertyMappingRequestToJSON, PatchedMicrosoftEntraProviderMappingRequestToJSON, PatchedNotificationWebhookMappingRequestToJSON, PatchedRACPropertyMappingRequestToJSON, PatchedSAMLPropertyMappingRequestToJSON, PatchedSCIMMappingRequestToJSON, PatchedScopeMappingRequestToJSON, PropertyMappingFromJSON, PropertyMappingTestRequestToJSON, PropertyMappingTestResultFromJSON, RACPropertyMappingFromJSON, RACPropertyMappingRequestToJSON, SAMLPropertyMappingFromJSON, SAMLPropertyMappingRequestToJSON, SCIMMappingFromJSON, SCIMMappingRequestToJSON, ScopeMappingFromJSON, ScopeMappingRequestToJSON, TypeCreateFromJSON, UsedByFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -150,9 +150,6 @@ export class PropertymappingsApi extends runtime.BaseAPI {
|
|
|
150
150
|
if (requestParameters.pmUuid === null || requestParameters.pmUuid === undefined) {
|
|
151
151
|
throw new runtime.RequiredError('pmUuid', 'Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsAllTestCreate.');
|
|
152
152
|
}
|
|
153
|
-
if (requestParameters.policyTestRequest === null || requestParameters.policyTestRequest === undefined) {
|
|
154
|
-
throw new runtime.RequiredError('policyTestRequest', 'Required parameter requestParameters.policyTestRequest was null or undefined when calling propertymappingsAllTestCreate.');
|
|
155
|
-
}
|
|
156
153
|
const queryParameters = {};
|
|
157
154
|
if (requestParameters.formatResult !== undefined) {
|
|
158
155
|
queryParameters['format_result'] = requestParameters.formatResult;
|
|
@@ -171,7 +168,7 @@ export class PropertymappingsApi extends runtime.BaseAPI {
|
|
|
171
168
|
method: 'POST',
|
|
172
169
|
headers: headerParameters,
|
|
173
170
|
query: queryParameters,
|
|
174
|
-
body:
|
|
171
|
+
body: PropertyMappingTestRequestToJSON(requestParameters.propertyMappingTestRequest),
|
|
175
172
|
}, initOverrides);
|
|
176
173
|
return new runtime.JSONApiResponse(response, (jsonValue) => PropertyMappingTestResultFromJSON(jsonValue));
|
|
177
174
|
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.4.2
|
|
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
|
+
* Test property mapping execution for a user/group with context
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PropertyMappingTestRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface PropertyMappingTestRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PropertyMappingTestRequest
|
|
22
|
+
*/
|
|
23
|
+
user?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {{ [key: string]: any; }}
|
|
27
|
+
* @memberof PropertyMappingTestRequest
|
|
28
|
+
*/
|
|
29
|
+
context?: {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof PropertyMappingTestRequest
|
|
36
|
+
*/
|
|
37
|
+
group?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the PropertyMappingTestRequest interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfPropertyMappingTestRequest(value: object): boolean;
|
|
43
|
+
export declare function PropertyMappingTestRequestFromJSON(json: any): PropertyMappingTestRequest;
|
|
44
|
+
export declare function PropertyMappingTestRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PropertyMappingTestRequest;
|
|
45
|
+
export declare function PropertyMappingTestRequestToJSON(value?: PropertyMappingTestRequest | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.4.2
|
|
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
|
+
import { exists } from '../runtime';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PropertyMappingTestRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPropertyMappingTestRequest(value) {
|
|
19
|
+
let isInstance = true;
|
|
20
|
+
return isInstance;
|
|
21
|
+
}
|
|
22
|
+
export function PropertyMappingTestRequestFromJSON(json) {
|
|
23
|
+
return PropertyMappingTestRequestFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PropertyMappingTestRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if ((json === undefined) || (json === null)) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'user': !exists(json, 'user') ? undefined : json['user'],
|
|
31
|
+
'context': !exists(json, 'context') ? undefined : json['context'],
|
|
32
|
+
'group': !exists(json, 'group') ? undefined : json['group'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function PropertyMappingTestRequestToJSON(value) {
|
|
36
|
+
if (value === undefined) {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
if (value === null) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'user': value.user,
|
|
44
|
+
'context': value.context,
|
|
45
|
+
'group': value.group,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -456,6 +456,7 @@ export * from './PromptStageRequest';
|
|
|
456
456
|
export * from './PromptTypeEnum';
|
|
457
457
|
export * from './PropertyMapping';
|
|
458
458
|
export * from './PropertyMappingPreview';
|
|
459
|
+
export * from './PropertyMappingTestRequest';
|
|
459
460
|
export * from './PropertyMappingTestResult';
|
|
460
461
|
export * from './ProtocolEnum';
|
|
461
462
|
export * from './Provider';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -458,6 +458,7 @@ export * from './PromptStageRequest';
|
|
|
458
458
|
export * from './PromptTypeEnum';
|
|
459
459
|
export * from './PropertyMapping';
|
|
460
460
|
export * from './PropertyMappingPreview';
|
|
461
|
+
export * from './PropertyMappingTestRequest';
|
|
461
462
|
export * from './PropertyMappingTestResult';
|
|
462
463
|
export * from './ProtocolEnum';
|
|
463
464
|
export * from './Provider';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2024.4.2
|
|
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
|
+
* Test property mapping execution for a user/group with context
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PropertyMappingTestRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface PropertyMappingTestRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PropertyMappingTestRequest
|
|
22
|
+
*/
|
|
23
|
+
user?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {{ [key: string]: any; }}
|
|
27
|
+
* @memberof PropertyMappingTestRequest
|
|
28
|
+
*/
|
|
29
|
+
context?: {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof PropertyMappingTestRequest
|
|
36
|
+
*/
|
|
37
|
+
group?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the PropertyMappingTestRequest interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfPropertyMappingTestRequest(value: object): boolean;
|
|
43
|
+
export declare function PropertyMappingTestRequestFromJSON(json: any): PropertyMappingTestRequest;
|
|
44
|
+
export declare function PropertyMappingTestRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PropertyMappingTestRequest;
|
|
45
|
+
export declare function PropertyMappingTestRequestToJSON(value?: PropertyMappingTestRequest | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2024.4.2
|
|
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.PropertyMappingTestRequestToJSON = exports.PropertyMappingTestRequestFromJSONTyped = exports.PropertyMappingTestRequestFromJSON = exports.instanceOfPropertyMappingTestRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the PropertyMappingTestRequest interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfPropertyMappingTestRequest(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfPropertyMappingTestRequest = instanceOfPropertyMappingTestRequest;
|
|
26
|
+
function PropertyMappingTestRequestFromJSON(json) {
|
|
27
|
+
return PropertyMappingTestRequestFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.PropertyMappingTestRequestFromJSON = PropertyMappingTestRequestFromJSON;
|
|
30
|
+
function PropertyMappingTestRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'user': !(0, runtime_1.exists)(json, 'user') ? undefined : json['user'],
|
|
36
|
+
'context': !(0, runtime_1.exists)(json, 'context') ? undefined : json['context'],
|
|
37
|
+
'group': !(0, runtime_1.exists)(json, 'group') ? undefined : json['group'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.PropertyMappingTestRequestFromJSONTyped = PropertyMappingTestRequestFromJSONTyped;
|
|
41
|
+
function PropertyMappingTestRequestToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'user': value.user,
|
|
50
|
+
'context': value.context,
|
|
51
|
+
'group': value.group,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.PropertyMappingTestRequestToJSON = PropertyMappingTestRequestToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -456,6 +456,7 @@ export * from './PromptStageRequest';
|
|
|
456
456
|
export * from './PromptTypeEnum';
|
|
457
457
|
export * from './PropertyMapping';
|
|
458
458
|
export * from './PropertyMappingPreview';
|
|
459
|
+
export * from './PropertyMappingTestRequest';
|
|
459
460
|
export * from './PropertyMappingTestResult';
|
|
460
461
|
export * from './ProtocolEnum';
|
|
461
462
|
export * from './Provider';
|
package/dist/models/index.js
CHANGED
|
@@ -474,6 +474,7 @@ __exportStar(require("./PromptStageRequest"), exports);
|
|
|
474
474
|
__exportStar(require("./PromptTypeEnum"), exports);
|
|
475
475
|
__exportStar(require("./PropertyMapping"), exports);
|
|
476
476
|
__exportStar(require("./PropertyMappingPreview"), exports);
|
|
477
|
+
__exportStar(require("./PropertyMappingTestRequest"), exports);
|
|
477
478
|
__exportStar(require("./PropertyMappingTestResult"), exports);
|
|
478
479
|
__exportStar(require("./ProtocolEnum"), exports);
|
|
479
480
|
__exportStar(require("./Provider"), exports);
|
package/package.json
CHANGED
|
@@ -41,8 +41,8 @@ import type {
|
|
|
41
41
|
PatchedSAMLPropertyMappingRequest,
|
|
42
42
|
PatchedSCIMMappingRequest,
|
|
43
43
|
PatchedScopeMappingRequest,
|
|
44
|
-
PolicyTestRequest,
|
|
45
44
|
PropertyMapping,
|
|
45
|
+
PropertyMappingTestRequest,
|
|
46
46
|
PropertyMappingTestResult,
|
|
47
47
|
RACPropertyMapping,
|
|
48
48
|
RACPropertyMappingRequest,
|
|
@@ -109,10 +109,10 @@ import {
|
|
|
109
109
|
PatchedSCIMMappingRequestToJSON,
|
|
110
110
|
PatchedScopeMappingRequestFromJSON,
|
|
111
111
|
PatchedScopeMappingRequestToJSON,
|
|
112
|
-
PolicyTestRequestFromJSON,
|
|
113
|
-
PolicyTestRequestToJSON,
|
|
114
112
|
PropertyMappingFromJSON,
|
|
115
113
|
PropertyMappingToJSON,
|
|
114
|
+
PropertyMappingTestRequestFromJSON,
|
|
115
|
+
PropertyMappingTestRequestToJSON,
|
|
116
116
|
PropertyMappingTestResultFromJSON,
|
|
117
117
|
PropertyMappingTestResultToJSON,
|
|
118
118
|
RACPropertyMappingFromJSON,
|
|
@@ -157,8 +157,8 @@ export interface PropertymappingsAllRetrieveRequest {
|
|
|
157
157
|
|
|
158
158
|
export interface PropertymappingsAllTestCreateRequest {
|
|
159
159
|
pmUuid: string;
|
|
160
|
-
policyTestRequest: PolicyTestRequest;
|
|
161
160
|
formatResult?: boolean;
|
|
161
|
+
propertyMappingTestRequest?: PropertyMappingTestRequest;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
export interface PropertymappingsAllUsedByListRequest {
|
|
@@ -600,10 +600,6 @@ export class PropertymappingsApi extends runtime.BaseAPI {
|
|
|
600
600
|
throw new runtime.RequiredError('pmUuid','Required parameter requestParameters.pmUuid was null or undefined when calling propertymappingsAllTestCreate.');
|
|
601
601
|
}
|
|
602
602
|
|
|
603
|
-
if (requestParameters.policyTestRequest === null || requestParameters.policyTestRequest === undefined) {
|
|
604
|
-
throw new runtime.RequiredError('policyTestRequest','Required parameter requestParameters.policyTestRequest was null or undefined when calling propertymappingsAllTestCreate.');
|
|
605
|
-
}
|
|
606
|
-
|
|
607
603
|
const queryParameters: any = {};
|
|
608
604
|
|
|
609
605
|
if (requestParameters.formatResult !== undefined) {
|
|
@@ -627,7 +623,7 @@ export class PropertymappingsApi extends runtime.BaseAPI {
|
|
|
627
623
|
method: 'POST',
|
|
628
624
|
headers: headerParameters,
|
|
629
625
|
query: queryParameters,
|
|
630
|
-
body:
|
|
626
|
+
body: PropertyMappingTestRequestToJSON(requestParameters.propertyMappingTestRequest),
|
|
631
627
|
}, initOverrides);
|
|
632
628
|
|
|
633
629
|
return new runtime.JSONApiResponse(response, (jsonValue) => PropertyMappingTestResultFromJSON(jsonValue));
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2024.4.2
|
|
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
|
+
* Test property mapping execution for a user/group with context
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PropertyMappingTestRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface PropertyMappingTestRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PropertyMappingTestRequest
|
|
26
|
+
*/
|
|
27
|
+
user?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {{ [key: string]: any; }}
|
|
31
|
+
* @memberof PropertyMappingTestRequest
|
|
32
|
+
*/
|
|
33
|
+
context?: { [key: string]: any; };
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PropertyMappingTestRequest
|
|
38
|
+
*/
|
|
39
|
+
group?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PropertyMappingTestRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPropertyMappingTestRequest(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
|
|
48
|
+
return isInstance;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function PropertyMappingTestRequestFromJSON(json: any): PropertyMappingTestRequest {
|
|
52
|
+
return PropertyMappingTestRequestFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PropertyMappingTestRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PropertyMappingTestRequest {
|
|
56
|
+
if ((json === undefined) || (json === null)) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'user': !exists(json, 'user') ? undefined : json['user'],
|
|
62
|
+
'context': !exists(json, 'context') ? undefined : json['context'],
|
|
63
|
+
'group': !exists(json, 'group') ? undefined : json['group'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function PropertyMappingTestRequestToJSON(value?: PropertyMappingTestRequest | null): any {
|
|
68
|
+
if (value === undefined) {
|
|
69
|
+
return undefined;
|
|
70
|
+
}
|
|
71
|
+
if (value === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'user': value.user,
|
|
77
|
+
'context': value.context,
|
|
78
|
+
'group': value.group,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -458,6 +458,7 @@ export * from './PromptStageRequest';
|
|
|
458
458
|
export * from './PromptTypeEnum';
|
|
459
459
|
export * from './PropertyMapping';
|
|
460
460
|
export * from './PropertyMappingPreview';
|
|
461
|
+
export * from './PropertyMappingTestRequest';
|
|
461
462
|
export * from './PropertyMappingTestResult';
|
|
462
463
|
export * from './ProtocolEnum';
|
|
463
464
|
export * from './Provider';
|