@goauthentik/api 2025.2.4-1744640358 → 2025.2.4-1744808430
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 +7 -0
- package/dist/apis/RbacApi.d.ts +86 -1
- package/dist/apis/RbacApi.js +267 -0
- package/dist/esm/apis/RbacApi.d.ts +86 -1
- package/dist/esm/apis/RbacApi.js +268 -1
- package/dist/esm/models/AuthorizationCodeAuthMethodEnum.d.ts +26 -0
- package/dist/esm/models/AuthorizationCodeAuthMethodEnum.js +44 -0
- package/dist/esm/models/InitialPermissions.d.ts +64 -0
- package/dist/esm/models/InitialPermissions.js +61 -0
- package/dist/esm/models/InitialPermissionsModeEnum.d.ts +26 -0
- package/dist/esm/models/InitialPermissionsModeEnum.js +44 -0
- package/dist/esm/models/InitialPermissionsRequest.d.ts +51 -0
- package/dist/esm/models/InitialPermissionsRequest.js +54 -0
- package/dist/esm/models/ModelEnum.d.ts +1 -0
- package/dist/esm/models/ModelEnum.js +1 -0
- package/dist/esm/models/OAuthSource.d.ts +7 -0
- package/dist/esm/models/OAuthSource.js +3 -0
- package/dist/esm/models/OAuthSourceRequest.d.ts +7 -0
- package/dist/esm/models/OAuthSourceRequest.js +3 -0
- package/dist/esm/models/PaginatedInitialPermissionsList.d.ts +40 -0
- package/dist/esm/models/PaginatedInitialPermissionsList.js +49 -0
- package/dist/esm/models/PatchedInitialPermissionsRequest.d.ts +51 -0
- package/dist/esm/models/PatchedInitialPermissionsRequest.js +48 -0
- package/dist/esm/models/PatchedOAuthSourceRequest.d.ts +7 -0
- package/dist/esm/models/PatchedOAuthSourceRequest.js +3 -0
- package/dist/esm/models/PermissionRequest.d.ts +38 -0
- package/dist/esm/models/PermissionRequest.js +47 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/AuthorizationCodeAuthMethodEnum.d.ts +26 -0
- package/dist/models/AuthorizationCodeAuthMethodEnum.js +52 -0
- package/dist/models/InitialPermissions.d.ts +64 -0
- package/dist/models/InitialPermissions.js +68 -0
- package/dist/models/InitialPermissionsModeEnum.d.ts +26 -0
- package/dist/models/InitialPermissionsModeEnum.js +52 -0
- package/dist/models/InitialPermissionsRequest.d.ts +51 -0
- package/dist/models/InitialPermissionsRequest.js +61 -0
- package/dist/models/ModelEnum.d.ts +1 -0
- package/dist/models/ModelEnum.js +1 -0
- package/dist/models/OAuthSource.d.ts +7 -0
- package/dist/models/OAuthSource.js +3 -0
- package/dist/models/OAuthSourceRequest.d.ts +7 -0
- package/dist/models/OAuthSourceRequest.js +3 -0
- package/dist/models/PaginatedInitialPermissionsList.d.ts +40 -0
- package/dist/models/PaginatedInitialPermissionsList.js +56 -0
- package/dist/models/PatchedInitialPermissionsRequest.d.ts +51 -0
- package/dist/models/PatchedInitialPermissionsRequest.js +55 -0
- package/dist/models/PatchedOAuthSourceRequest.d.ts +7 -0
- package/dist/models/PatchedOAuthSourceRequest.js +3 -0
- package/dist/models/PermissionRequest.d.ts +38 -0
- package/dist/models/PermissionRequest.js +54 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/apis/RbacApi.ts +363 -0
- package/src/models/AuthorizationCodeAuthMethodEnum.ts +54 -0
- package/src/models/InitialPermissions.ts +125 -0
- package/src/models/InitialPermissionsModeEnum.ts +54 -0
- package/src/models/InitialPermissionsRequest.ts +102 -0
- package/src/models/ModelEnum.ts +1 -0
- package/src/models/OAuthSource.ts +15 -0
- package/src/models/OAuthSourceRequest.ts +15 -0
- package/src/models/PaginatedInitialPermissionsList.ts +90 -0
- package/src/models/PatchedInitialPermissionsRequest.ts +99 -0
- package/src/models/PatchedOAuthSourceRequest.ts +15 -0
- package/src/models/PermissionRequest.ts +75 -0
- package/src/models/index.ts +7 -0
|
@@ -45,6 +45,7 @@ export const ModelEnum = {
|
|
|
45
45
|
AuthentikProvidersScimScimprovider: 'authentik_providers_scim.scimprovider',
|
|
46
46
|
AuthentikProvidersScimScimmapping: 'authentik_providers_scim.scimmapping',
|
|
47
47
|
AuthentikRbacRole: 'authentik_rbac.role',
|
|
48
|
+
AuthentikRbacInitialpermissions: 'authentik_rbac.initialpermissions',
|
|
48
49
|
AuthentikSourcesKerberosKerberossource: 'authentik_sources_kerberos.kerberossource',
|
|
49
50
|
AuthentikSourcesKerberosKerberossourcepropertymapping: 'authentik_sources_kerberos.kerberossourcepropertymapping',
|
|
50
51
|
AuthentikSourcesKerberosUserkerberossourceconnection: 'authentik_sources_kerberos.userkerberossourceconnection',
|
|
@@ -13,6 +13,7 @@ import type { PolicyEngineMode } from './PolicyEngineMode';
|
|
|
13
13
|
import type { UserMatchingModeEnum } from './UserMatchingModeEnum';
|
|
14
14
|
import type { SourceType } from './SourceType';
|
|
15
15
|
import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
|
|
16
|
+
import type { AuthorizationCodeAuthMethodEnum } from './AuthorizationCodeAuthMethodEnum';
|
|
16
17
|
import type { ProviderTypeEnum } from './ProviderTypeEnum';
|
|
17
18
|
/**
|
|
18
19
|
* OAuth Source Serializer
|
|
@@ -200,6 +201,12 @@ export interface OAuthSource {
|
|
|
200
201
|
* @memberof OAuthSource
|
|
201
202
|
*/
|
|
202
203
|
oidcJwks?: any | null;
|
|
204
|
+
/**
|
|
205
|
+
* How to perform authentication during an authorization_code token request flow
|
|
206
|
+
* @type {AuthorizationCodeAuthMethodEnum}
|
|
207
|
+
* @memberof OAuthSource
|
|
208
|
+
*/
|
|
209
|
+
authorizationCodeAuthMethod?: AuthorizationCodeAuthMethodEnum;
|
|
203
210
|
}
|
|
204
211
|
/**
|
|
205
212
|
* Check if a given object implements the OAuthSource interface.
|
|
@@ -15,6 +15,7 @@ import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngin
|
|
|
15
15
|
import { UserMatchingModeEnumFromJSON, UserMatchingModeEnumToJSON, } from './UserMatchingModeEnum';
|
|
16
16
|
import { SourceTypeFromJSON, } from './SourceType';
|
|
17
17
|
import { GroupMatchingModeEnumFromJSON, GroupMatchingModeEnumToJSON, } from './GroupMatchingModeEnum';
|
|
18
|
+
import { AuthorizationCodeAuthMethodEnumFromJSON, AuthorizationCodeAuthMethodEnumToJSON, } from './AuthorizationCodeAuthMethodEnum';
|
|
18
19
|
import { ProviderTypeEnumFromJSON, ProviderTypeEnumToJSON, } from './ProviderTypeEnum';
|
|
19
20
|
/**
|
|
20
21
|
* Check if a given object implements the OAuthSource interface.
|
|
@@ -86,6 +87,7 @@ export function OAuthSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
86
87
|
'oidcWellKnownUrl': json['oidc_well_known_url'] == null ? undefined : json['oidc_well_known_url'],
|
|
87
88
|
'oidcJwksUrl': json['oidc_jwks_url'] == null ? undefined : json['oidc_jwks_url'],
|
|
88
89
|
'oidcJwks': json['oidc_jwks'] == null ? undefined : json['oidc_jwks'],
|
|
90
|
+
'authorizationCodeAuthMethod': json['authorization_code_auth_method'] == null ? undefined : AuthorizationCodeAuthMethodEnumFromJSON(json['authorization_code_auth_method']),
|
|
89
91
|
};
|
|
90
92
|
}
|
|
91
93
|
export function OAuthSourceToJSON(json) {
|
|
@@ -117,5 +119,6 @@ export function OAuthSourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
117
119
|
'oidc_well_known_url': value['oidcWellKnownUrl'],
|
|
118
120
|
'oidc_jwks_url': value['oidcJwksUrl'],
|
|
119
121
|
'oidc_jwks': value['oidcJwks'],
|
|
122
|
+
'authorization_code_auth_method': AuthorizationCodeAuthMethodEnumToJSON(value['authorizationCodeAuthMethod']),
|
|
120
123
|
};
|
|
121
124
|
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { PolicyEngineMode } from './PolicyEngineMode';
|
|
13
13
|
import type { UserMatchingModeEnum } from './UserMatchingModeEnum';
|
|
14
14
|
import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
|
|
15
|
+
import type { AuthorizationCodeAuthMethodEnum } from './AuthorizationCodeAuthMethodEnum';
|
|
15
16
|
import type { ProviderTypeEnum } from './ProviderTypeEnum';
|
|
16
17
|
/**
|
|
17
18
|
* OAuth Source Serializer
|
|
@@ -151,6 +152,12 @@ export interface OAuthSourceRequest {
|
|
|
151
152
|
* @memberof OAuthSourceRequest
|
|
152
153
|
*/
|
|
153
154
|
oidcJwks?: any | null;
|
|
155
|
+
/**
|
|
156
|
+
* How to perform authentication during an authorization_code token request flow
|
|
157
|
+
* @type {AuthorizationCodeAuthMethodEnum}
|
|
158
|
+
* @memberof OAuthSourceRequest
|
|
159
|
+
*/
|
|
160
|
+
authorizationCodeAuthMethod?: AuthorizationCodeAuthMethodEnum;
|
|
154
161
|
}
|
|
155
162
|
/**
|
|
156
163
|
* Check if a given object implements the OAuthSourceRequest interface.
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';
|
|
15
15
|
import { UserMatchingModeEnumFromJSON, UserMatchingModeEnumToJSON, } from './UserMatchingModeEnum';
|
|
16
16
|
import { GroupMatchingModeEnumFromJSON, GroupMatchingModeEnumToJSON, } from './GroupMatchingModeEnum';
|
|
17
|
+
import { AuthorizationCodeAuthMethodEnumFromJSON, AuthorizationCodeAuthMethodEnumToJSON, } from './AuthorizationCodeAuthMethodEnum';
|
|
17
18
|
import { ProviderTypeEnumFromJSON, ProviderTypeEnumToJSON, } from './ProviderTypeEnum';
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the OAuthSourceRequest interface.
|
|
@@ -61,6 +62,7 @@ export function OAuthSourceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
62
|
'oidcWellKnownUrl': json['oidc_well_known_url'] == null ? undefined : json['oidc_well_known_url'],
|
|
62
63
|
'oidcJwksUrl': json['oidc_jwks_url'] == null ? undefined : json['oidc_jwks_url'],
|
|
63
64
|
'oidcJwks': json['oidc_jwks'] == null ? undefined : json['oidc_jwks'],
|
|
65
|
+
'authorizationCodeAuthMethod': json['authorization_code_auth_method'] == null ? undefined : AuthorizationCodeAuthMethodEnumFromJSON(json['authorization_code_auth_method']),
|
|
64
66
|
};
|
|
65
67
|
}
|
|
66
68
|
export function OAuthSourceRequestToJSON(json) {
|
|
@@ -93,5 +95,6 @@ export function OAuthSourceRequestToJSONTyped(value, ignoreDiscriminator = false
|
|
|
93
95
|
'oidc_well_known_url': value['oidcWellKnownUrl'],
|
|
94
96
|
'oidc_jwks_url': value['oidcJwksUrl'],
|
|
95
97
|
'oidc_jwks': value['oidcJwks'],
|
|
98
|
+
'authorization_code_auth_method': AuthorizationCodeAuthMethodEnumToJSON(value['authorizationCodeAuthMethod']),
|
|
96
99
|
};
|
|
97
100
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2025.2.4
|
|
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
|
+
import type { Pagination } from './Pagination';
|
|
13
|
+
import type { InitialPermissions } from './InitialPermissions';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedInitialPermissionsList
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedInitialPermissionsList {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Pagination}
|
|
23
|
+
* @memberof PaginatedInitialPermissionsList
|
|
24
|
+
*/
|
|
25
|
+
pagination: Pagination;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<InitialPermissions>}
|
|
29
|
+
* @memberof PaginatedInitialPermissionsList
|
|
30
|
+
*/
|
|
31
|
+
results: Array<InitialPermissions>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedInitialPermissionsList interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedInitialPermissionsList(value: object): value is PaginatedInitialPermissionsList;
|
|
37
|
+
export declare function PaginatedInitialPermissionsListFromJSON(json: any): PaginatedInitialPermissionsList;
|
|
38
|
+
export declare function PaginatedInitialPermissionsListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedInitialPermissionsList;
|
|
39
|
+
export declare function PaginatedInitialPermissionsListToJSON(json: any): PaginatedInitialPermissionsList;
|
|
40
|
+
export declare function PaginatedInitialPermissionsListToJSONTyped(value?: PaginatedInitialPermissionsList | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.2.4
|
|
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 { PaginationFromJSON, PaginationToJSON, } from './Pagination';
|
|
15
|
+
import { InitialPermissionsFromJSON, InitialPermissionsToJSON, } from './InitialPermissions';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the PaginatedInitialPermissionsList interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfPaginatedInitialPermissionsList(value) {
|
|
20
|
+
if (!('pagination' in value) || value['pagination'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('results' in value) || value['results'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function PaginatedInitialPermissionsListFromJSON(json) {
|
|
27
|
+
return PaginatedInitialPermissionsListFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function PaginatedInitialPermissionsListFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
|
35
|
+
'results': (json['results'].map(InitialPermissionsFromJSON)),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function PaginatedInitialPermissionsListToJSON(json) {
|
|
39
|
+
return PaginatedInitialPermissionsListToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function PaginatedInitialPermissionsListToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'pagination': PaginationToJSON(value['pagination']),
|
|
47
|
+
'results': (value['results'].map(InitialPermissionsToJSON)),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2025.2.4
|
|
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
|
+
import type { InitialPermissionsModeEnum } from './InitialPermissionsModeEnum';
|
|
13
|
+
/**
|
|
14
|
+
* InitialPermissions serializer
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PatchedInitialPermissionsRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface PatchedInitialPermissionsRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PatchedInitialPermissionsRequest
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {InitialPermissionsModeEnum}
|
|
28
|
+
* @memberof PatchedInitialPermissionsRequest
|
|
29
|
+
*/
|
|
30
|
+
mode?: InitialPermissionsModeEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PatchedInitialPermissionsRequest
|
|
35
|
+
*/
|
|
36
|
+
role?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<number>}
|
|
40
|
+
* @memberof PatchedInitialPermissionsRequest
|
|
41
|
+
*/
|
|
42
|
+
permissions?: Array<number>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PatchedInitialPermissionsRequest interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPatchedInitialPermissionsRequest(value: object): value is PatchedInitialPermissionsRequest;
|
|
48
|
+
export declare function PatchedInitialPermissionsRequestFromJSON(json: any): PatchedInitialPermissionsRequest;
|
|
49
|
+
export declare function PatchedInitialPermissionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedInitialPermissionsRequest;
|
|
50
|
+
export declare function PatchedInitialPermissionsRequestToJSON(json: any): PatchedInitialPermissionsRequest;
|
|
51
|
+
export declare function PatchedInitialPermissionsRequestToJSONTyped(value?: PatchedInitialPermissionsRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.2.4
|
|
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 { InitialPermissionsModeEnumFromJSON, InitialPermissionsModeEnumToJSON, } from './InitialPermissionsModeEnum';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PatchedInitialPermissionsRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPatchedInitialPermissionsRequest(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function PatchedInitialPermissionsRequestFromJSON(json) {
|
|
22
|
+
return PatchedInitialPermissionsRequestFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function PatchedInitialPermissionsRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
30
|
+
'mode': json['mode'] == null ? undefined : InitialPermissionsModeEnumFromJSON(json['mode']),
|
|
31
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
32
|
+
'permissions': json['permissions'] == null ? undefined : json['permissions'],
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function PatchedInitialPermissionsRequestToJSON(json) {
|
|
36
|
+
return PatchedInitialPermissionsRequestToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function PatchedInitialPermissionsRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'name': value['name'],
|
|
44
|
+
'mode': InitialPermissionsModeEnumToJSON(value['mode']),
|
|
45
|
+
'role': value['role'],
|
|
46
|
+
'permissions': value['permissions'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { PolicyEngineMode } from './PolicyEngineMode';
|
|
13
13
|
import type { UserMatchingModeEnum } from './UserMatchingModeEnum';
|
|
14
14
|
import type { GroupMatchingModeEnum } from './GroupMatchingModeEnum';
|
|
15
|
+
import type { AuthorizationCodeAuthMethodEnum } from './AuthorizationCodeAuthMethodEnum';
|
|
15
16
|
import type { ProviderTypeEnum } from './ProviderTypeEnum';
|
|
16
17
|
/**
|
|
17
18
|
* OAuth Source Serializer
|
|
@@ -151,6 +152,12 @@ export interface PatchedOAuthSourceRequest {
|
|
|
151
152
|
* @memberof PatchedOAuthSourceRequest
|
|
152
153
|
*/
|
|
153
154
|
oidcJwks?: any | null;
|
|
155
|
+
/**
|
|
156
|
+
* How to perform authentication during an authorization_code token request flow
|
|
157
|
+
* @type {AuthorizationCodeAuthMethodEnum}
|
|
158
|
+
* @memberof PatchedOAuthSourceRequest
|
|
159
|
+
*/
|
|
160
|
+
authorizationCodeAuthMethod?: AuthorizationCodeAuthMethodEnum;
|
|
154
161
|
}
|
|
155
162
|
/**
|
|
156
163
|
* Check if a given object implements the PatchedOAuthSourceRequest interface.
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import { PolicyEngineModeFromJSON, PolicyEngineModeToJSON, } from './PolicyEngineMode';
|
|
15
15
|
import { UserMatchingModeEnumFromJSON, UserMatchingModeEnumToJSON, } from './UserMatchingModeEnum';
|
|
16
16
|
import { GroupMatchingModeEnumFromJSON, GroupMatchingModeEnumToJSON, } from './GroupMatchingModeEnum';
|
|
17
|
+
import { AuthorizationCodeAuthMethodEnumFromJSON, AuthorizationCodeAuthMethodEnumToJSON, } from './AuthorizationCodeAuthMethodEnum';
|
|
17
18
|
import { ProviderTypeEnumFromJSON, ProviderTypeEnumToJSON, } from './ProviderTypeEnum';
|
|
18
19
|
/**
|
|
19
20
|
* Check if a given object implements the PatchedOAuthSourceRequest interface.
|
|
@@ -51,6 +52,7 @@ export function PatchedOAuthSourceRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
51
52
|
'oidcWellKnownUrl': json['oidc_well_known_url'] == null ? undefined : json['oidc_well_known_url'],
|
|
52
53
|
'oidcJwksUrl': json['oidc_jwks_url'] == null ? undefined : json['oidc_jwks_url'],
|
|
53
54
|
'oidcJwks': json['oidc_jwks'] == null ? undefined : json['oidc_jwks'],
|
|
55
|
+
'authorizationCodeAuthMethod': json['authorization_code_auth_method'] == null ? undefined : AuthorizationCodeAuthMethodEnumFromJSON(json['authorization_code_auth_method']),
|
|
54
56
|
};
|
|
55
57
|
}
|
|
56
58
|
export function PatchedOAuthSourceRequestToJSON(json) {
|
|
@@ -83,5 +85,6 @@ export function PatchedOAuthSourceRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
83
85
|
'oidc_well_known_url': value['oidcWellKnownUrl'],
|
|
84
86
|
'oidc_jwks_url': value['oidcJwksUrl'],
|
|
85
87
|
'oidc_jwks': value['oidcJwks'],
|
|
88
|
+
'authorization_code_auth_method': AuthorizationCodeAuthMethodEnumToJSON(value['authorizationCodeAuthMethod']),
|
|
86
89
|
};
|
|
87
90
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2025.2.4
|
|
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
|
+
* Global permission
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PermissionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface PermissionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PermissionRequest
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PermissionRequest
|
|
28
|
+
*/
|
|
29
|
+
codename: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PermissionRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPermissionRequest(value: object): value is PermissionRequest;
|
|
35
|
+
export declare function PermissionRequestFromJSON(json: any): PermissionRequest;
|
|
36
|
+
export declare function PermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionRequest;
|
|
37
|
+
export declare function PermissionRequestToJSON(json: any): PermissionRequest;
|
|
38
|
+
export declare function PermissionRequestToJSONTyped(value?: PermissionRequest | null, ignoreDiscriminator?: boolean): 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: 2025.2.4
|
|
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
|
+
* Check if a given object implements the PermissionRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPermissionRequest(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('codename' in value) || value['codename'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function PermissionRequestFromJSON(json) {
|
|
25
|
+
return PermissionRequestFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function PermissionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'name': json['name'],
|
|
33
|
+
'codename': json['codename'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function PermissionRequestToJSON(json) {
|
|
37
|
+
return PermissionRequestToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function PermissionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'name': value['name'],
|
|
45
|
+
'codename': value['codename'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -51,6 +51,7 @@ export * from './AuthenticatorWebAuthnChallenge';
|
|
|
51
51
|
export * from './AuthenticatorWebAuthnChallengeResponseRequest';
|
|
52
52
|
export * from './AuthenticatorWebAuthnStage';
|
|
53
53
|
export * from './AuthenticatorWebAuthnStageRequest';
|
|
54
|
+
export * from './AuthorizationCodeAuthMethodEnum';
|
|
54
55
|
export * from './AutoSubmitChallengeResponseRequest';
|
|
55
56
|
export * from './AutosubmitChallenge';
|
|
56
57
|
export * from './BackendsEnum';
|
|
@@ -193,6 +194,9 @@ export * from './IdentificationChallengeResponseRequest';
|
|
|
193
194
|
export * from './IdentificationStage';
|
|
194
195
|
export * from './IdentificationStageRequest';
|
|
195
196
|
export * from './ImpersonationRequest';
|
|
197
|
+
export * from './InitialPermissions';
|
|
198
|
+
export * from './InitialPermissionsModeEnum';
|
|
199
|
+
export * from './InitialPermissionsRequest';
|
|
196
200
|
export * from './InstallID';
|
|
197
201
|
export * from './IntentEnum';
|
|
198
202
|
export * from './InvalidResponseActionEnum';
|
|
@@ -322,6 +326,7 @@ export * from './PaginatedGroupPlexSourceConnectionList';
|
|
|
322
326
|
export * from './PaginatedGroupSAMLSourceConnectionList';
|
|
323
327
|
export * from './PaginatedGroupSourceConnectionList';
|
|
324
328
|
export * from './PaginatedIdentificationStageList';
|
|
329
|
+
export * from './PaginatedInitialPermissionsList';
|
|
325
330
|
export * from './PaginatedInvitationList';
|
|
326
331
|
export * from './PaginatedInvitationStageList';
|
|
327
332
|
export * from './PaginatedKerberosSourceList';
|
|
@@ -462,6 +467,7 @@ export * from './PatchedGroupRequest';
|
|
|
462
467
|
export * from './PatchedGroupSAMLSourceConnectionRequest';
|
|
463
468
|
export * from './PatchedGroupSourceConnectionRequest';
|
|
464
469
|
export * from './PatchedIdentificationStageRequest';
|
|
470
|
+
export * from './PatchedInitialPermissionsRequest';
|
|
465
471
|
export * from './PatchedInvitationRequest';
|
|
466
472
|
export * from './PatchedInvitationStageRequest';
|
|
467
473
|
export * from './PatchedKerberosSourcePropertyMappingRequest';
|
|
@@ -532,6 +538,7 @@ export * from './PatchedWebAuthnDeviceRequest';
|
|
|
532
538
|
export * from './Permission';
|
|
533
539
|
export * from './PermissionAssignRequest';
|
|
534
540
|
export * from './PermissionAssignResult';
|
|
541
|
+
export * from './PermissionRequest';
|
|
535
542
|
export * from './PlexAuthenticationChallenge';
|
|
536
543
|
export * from './PlexAuthenticationChallengeResponseRequest';
|
|
537
544
|
export * from './PlexSource';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -53,6 +53,7 @@ export * from './AuthenticatorWebAuthnChallenge';
|
|
|
53
53
|
export * from './AuthenticatorWebAuthnChallengeResponseRequest';
|
|
54
54
|
export * from './AuthenticatorWebAuthnStage';
|
|
55
55
|
export * from './AuthenticatorWebAuthnStageRequest';
|
|
56
|
+
export * from './AuthorizationCodeAuthMethodEnum';
|
|
56
57
|
export * from './AutoSubmitChallengeResponseRequest';
|
|
57
58
|
export * from './AutosubmitChallenge';
|
|
58
59
|
export * from './BackendsEnum';
|
|
@@ -195,6 +196,9 @@ export * from './IdentificationChallengeResponseRequest';
|
|
|
195
196
|
export * from './IdentificationStage';
|
|
196
197
|
export * from './IdentificationStageRequest';
|
|
197
198
|
export * from './ImpersonationRequest';
|
|
199
|
+
export * from './InitialPermissions';
|
|
200
|
+
export * from './InitialPermissionsModeEnum';
|
|
201
|
+
export * from './InitialPermissionsRequest';
|
|
198
202
|
export * from './InstallID';
|
|
199
203
|
export * from './IntentEnum';
|
|
200
204
|
export * from './InvalidResponseActionEnum';
|
|
@@ -324,6 +328,7 @@ export * from './PaginatedGroupPlexSourceConnectionList';
|
|
|
324
328
|
export * from './PaginatedGroupSAMLSourceConnectionList';
|
|
325
329
|
export * from './PaginatedGroupSourceConnectionList';
|
|
326
330
|
export * from './PaginatedIdentificationStageList';
|
|
331
|
+
export * from './PaginatedInitialPermissionsList';
|
|
327
332
|
export * from './PaginatedInvitationList';
|
|
328
333
|
export * from './PaginatedInvitationStageList';
|
|
329
334
|
export * from './PaginatedKerberosSourceList';
|
|
@@ -464,6 +469,7 @@ export * from './PatchedGroupRequest';
|
|
|
464
469
|
export * from './PatchedGroupSAMLSourceConnectionRequest';
|
|
465
470
|
export * from './PatchedGroupSourceConnectionRequest';
|
|
466
471
|
export * from './PatchedIdentificationStageRequest';
|
|
472
|
+
export * from './PatchedInitialPermissionsRequest';
|
|
467
473
|
export * from './PatchedInvitationRequest';
|
|
468
474
|
export * from './PatchedInvitationStageRequest';
|
|
469
475
|
export * from './PatchedKerberosSourcePropertyMappingRequest';
|
|
@@ -534,6 +540,7 @@ export * from './PatchedWebAuthnDeviceRequest';
|
|
|
534
540
|
export * from './Permission';
|
|
535
541
|
export * from './PermissionAssignRequest';
|
|
536
542
|
export * from './PermissionAssignResult';
|
|
543
|
+
export * from './PermissionRequest';
|
|
537
544
|
export * from './PlexAuthenticationChallenge';
|
|
538
545
|
export * from './PlexAuthenticationChallengeResponseRequest';
|
|
539
546
|
export * from './PlexSource';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2025.2.4
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const AuthorizationCodeAuthMethodEnum: {
|
|
17
|
+
readonly BasicAuth: "basic_auth";
|
|
18
|
+
readonly PostBody: "post_body";
|
|
19
|
+
readonly UnknownDefaultOpenApi: "11184809";
|
|
20
|
+
};
|
|
21
|
+
export type AuthorizationCodeAuthMethodEnum = typeof AuthorizationCodeAuthMethodEnum[keyof typeof AuthorizationCodeAuthMethodEnum];
|
|
22
|
+
export declare function instanceOfAuthorizationCodeAuthMethodEnum(value: any): boolean;
|
|
23
|
+
export declare function AuthorizationCodeAuthMethodEnumFromJSON(json: any): AuthorizationCodeAuthMethodEnum;
|
|
24
|
+
export declare function AuthorizationCodeAuthMethodEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthorizationCodeAuthMethodEnum;
|
|
25
|
+
export declare function AuthorizationCodeAuthMethodEnumToJSON(value?: AuthorizationCodeAuthMethodEnum | null): any;
|
|
26
|
+
export declare function AuthorizationCodeAuthMethodEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AuthorizationCodeAuthMethodEnum;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2025.2.4
|
|
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.AuthorizationCodeAuthMethodEnum = void 0;
|
|
17
|
+
exports.instanceOfAuthorizationCodeAuthMethodEnum = instanceOfAuthorizationCodeAuthMethodEnum;
|
|
18
|
+
exports.AuthorizationCodeAuthMethodEnumFromJSON = AuthorizationCodeAuthMethodEnumFromJSON;
|
|
19
|
+
exports.AuthorizationCodeAuthMethodEnumFromJSONTyped = AuthorizationCodeAuthMethodEnumFromJSONTyped;
|
|
20
|
+
exports.AuthorizationCodeAuthMethodEnumToJSON = AuthorizationCodeAuthMethodEnumToJSON;
|
|
21
|
+
exports.AuthorizationCodeAuthMethodEnumToJSONTyped = AuthorizationCodeAuthMethodEnumToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AuthorizationCodeAuthMethodEnum = {
|
|
27
|
+
BasicAuth: 'basic_auth',
|
|
28
|
+
PostBody: 'post_body',
|
|
29
|
+
UnknownDefaultOpenApi: '11184809'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfAuthorizationCodeAuthMethodEnum(value) {
|
|
32
|
+
for (const key in exports.AuthorizationCodeAuthMethodEnum) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.AuthorizationCodeAuthMethodEnum, key)) {
|
|
34
|
+
if (exports.AuthorizationCodeAuthMethodEnum[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function AuthorizationCodeAuthMethodEnumFromJSON(json) {
|
|
42
|
+
return AuthorizationCodeAuthMethodEnumFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AuthorizationCodeAuthMethodEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function AuthorizationCodeAuthMethodEnumToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function AuthorizationCodeAuthMethodEnumToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2025.2.4
|
|
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
|
+
import type { Permission } from './Permission';
|
|
13
|
+
import type { InitialPermissionsModeEnum } from './InitialPermissionsModeEnum';
|
|
14
|
+
/**
|
|
15
|
+
* InitialPermissions serializer
|
|
16
|
+
* @export
|
|
17
|
+
* @interface InitialPermissions
|
|
18
|
+
*/
|
|
19
|
+
export interface InitialPermissions {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof InitialPermissions
|
|
24
|
+
*/
|
|
25
|
+
readonly pk: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof InitialPermissions
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {InitialPermissionsModeEnum}
|
|
35
|
+
* @memberof InitialPermissions
|
|
36
|
+
*/
|
|
37
|
+
mode: InitialPermissionsModeEnum;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof InitialPermissions
|
|
42
|
+
*/
|
|
43
|
+
role: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<number>}
|
|
47
|
+
* @memberof InitialPermissions
|
|
48
|
+
*/
|
|
49
|
+
permissions?: Array<number>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<Permission>}
|
|
53
|
+
* @memberof InitialPermissions
|
|
54
|
+
*/
|
|
55
|
+
readonly permissionsObj: Array<Permission>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the InitialPermissions interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfInitialPermissions(value: object): value is InitialPermissions;
|
|
61
|
+
export declare function InitialPermissionsFromJSON(json: any): InitialPermissions;
|
|
62
|
+
export declare function InitialPermissionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): InitialPermissions;
|
|
63
|
+
export declare function InitialPermissionsToJSON(json: any): InitialPermissions;
|
|
64
|
+
export declare function InitialPermissionsToJSONTyped(value?: Omit<InitialPermissions, 'pk' | 'permissions_obj'> | null, ignoreDiscriminator?: boolean): any;
|