@goauthentik/api 2025.4.1-1747332783 → 2025.4.1-1747687715
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/CoreApi.d.ts +1 -0
- package/dist/apis/CoreApi.js +3 -0
- package/dist/apis/RbacApi.d.ts +2 -0
- package/dist/apis/RbacApi.js +2 -0
- package/dist/apis/StagesApi.d.ts +117 -1
- package/dist/apis/StagesApi.js +306 -1
- package/dist/esm/apis/CoreApi.d.ts +1 -0
- package/dist/esm/apis/CoreApi.js +3 -0
- package/dist/esm/apis/RbacApi.d.ts +2 -0
- package/dist/esm/apis/RbacApi.js +2 -0
- package/dist/esm/apis/StagesApi.d.ts +117 -1
- package/dist/esm/apis/StagesApi.js +306 -1
- package/dist/esm/models/AppEnum.d.ts +1 -0
- package/dist/esm/models/AppEnum.js +1 -0
- package/dist/esm/models/Brand.d.ts +6 -0
- package/dist/esm/models/Brand.js +2 -0
- package/dist/esm/models/BrandRequest.d.ts +6 -0
- package/dist/esm/models/BrandRequest.js +2 -0
- package/dist/esm/models/CertAttributeEnum.d.ts +27 -0
- package/dist/esm/models/CertAttributeEnum.js +45 -0
- package/dist/esm/models/ModelEnum.d.ts +1 -0
- package/dist/esm/models/ModelEnum.js +1 -0
- package/dist/esm/models/MutualTLSStage.d.ts +96 -0
- package/dist/esm/models/MutualTLSStage.js +78 -0
- package/dist/esm/models/MutualTLSStageModeEnum.d.ts +26 -0
- package/dist/esm/models/MutualTLSStageModeEnum.js +44 -0
- package/dist/esm/models/MutualTLSStageRequest.d.ts +66 -0
- package/dist/esm/models/MutualTLSStageRequest.js +63 -0
- package/dist/esm/models/PaginatedMutualTLSStageList.d.ts +40 -0
- package/dist/esm/models/PaginatedMutualTLSStageList.js +49 -0
- package/dist/esm/models/PatchedBrandRequest.d.ts +6 -0
- package/dist/esm/models/PatchedBrandRequest.js +2 -0
- package/dist/esm/models/PatchedMutualTLSStageRequest.d.ts +66 -0
- package/dist/esm/models/PatchedMutualTLSStageRequest.js +55 -0
- package/dist/esm/models/UserAttributeEnum.d.ts +26 -0
- package/dist/esm/models/UserAttributeEnum.js +44 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/models/AppEnum.d.ts +1 -0
- package/dist/models/AppEnum.js +1 -0
- package/dist/models/Brand.d.ts +6 -0
- package/dist/models/Brand.js +2 -0
- package/dist/models/BrandRequest.d.ts +6 -0
- package/dist/models/BrandRequest.js +2 -0
- package/dist/models/CertAttributeEnum.d.ts +27 -0
- package/dist/models/CertAttributeEnum.js +53 -0
- package/dist/models/ModelEnum.d.ts +1 -0
- package/dist/models/ModelEnum.js +1 -0
- package/dist/models/MutualTLSStage.d.ts +96 -0
- package/dist/models/MutualTLSStage.js +85 -0
- package/dist/models/MutualTLSStageModeEnum.d.ts +26 -0
- package/dist/models/MutualTLSStageModeEnum.js +52 -0
- package/dist/models/MutualTLSStageRequest.d.ts +66 -0
- package/dist/models/MutualTLSStageRequest.js +70 -0
- package/dist/models/PaginatedMutualTLSStageList.d.ts +40 -0
- package/dist/models/PaginatedMutualTLSStageList.js +56 -0
- package/dist/models/PatchedBrandRequest.d.ts +6 -0
- package/dist/models/PatchedBrandRequest.js +2 -0
- package/dist/models/PatchedMutualTLSStageRequest.d.ts +66 -0
- package/dist/models/PatchedMutualTLSStageRequest.js +62 -0
- package/dist/models/UserAttributeEnum.d.ts +26 -0
- package/dist/models/UserAttributeEnum.js +52 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/apis/CoreApi.ts +5 -0
- package/src/apis/RbacApi.ts +2 -0
- package/src/apis/StagesApi.ts +414 -0
- package/src/models/AppEnum.ts +1 -0
- package/src/models/Brand.ts +8 -0
- package/src/models/BrandRequest.ts +8 -0
- package/src/models/CertAttributeEnum.ts +55 -0
- package/src/models/ModelEnum.ts +1 -0
- package/src/models/MutualTLSStage.ts +180 -0
- package/src/models/MutualTLSStageModeEnum.ts +54 -0
- package/src/models/MutualTLSStageRequest.ts +140 -0
- package/src/models/PaginatedMutualTLSStageList.ts +90 -0
- package/src/models/PatchedBrandRequest.ts +8 -0
- package/src/models/PatchedMutualTLSStageRequest.ts +136 -0
- package/src/models/UserAttributeEnum.ts +54 -0
- package/src/models/index.ts +7 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.4.1
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
import type { MutualTLSStageModeEnum } from './MutualTLSStageModeEnum';
|
|
17
|
+
import {
|
|
18
|
+
MutualTLSStageModeEnumFromJSON,
|
|
19
|
+
MutualTLSStageModeEnumFromJSONTyped,
|
|
20
|
+
MutualTLSStageModeEnumToJSON,
|
|
21
|
+
MutualTLSStageModeEnumToJSONTyped,
|
|
22
|
+
} from './MutualTLSStageModeEnum';
|
|
23
|
+
import type { CertAttributeEnum } from './CertAttributeEnum';
|
|
24
|
+
import {
|
|
25
|
+
CertAttributeEnumFromJSON,
|
|
26
|
+
CertAttributeEnumFromJSONTyped,
|
|
27
|
+
CertAttributeEnumToJSON,
|
|
28
|
+
CertAttributeEnumToJSONTyped,
|
|
29
|
+
} from './CertAttributeEnum';
|
|
30
|
+
import type { FlowSet } from './FlowSet';
|
|
31
|
+
import {
|
|
32
|
+
FlowSetFromJSON,
|
|
33
|
+
FlowSetFromJSONTyped,
|
|
34
|
+
FlowSetToJSON,
|
|
35
|
+
FlowSetToJSONTyped,
|
|
36
|
+
} from './FlowSet';
|
|
37
|
+
import type { UserAttributeEnum } from './UserAttributeEnum';
|
|
38
|
+
import {
|
|
39
|
+
UserAttributeEnumFromJSON,
|
|
40
|
+
UserAttributeEnumFromJSONTyped,
|
|
41
|
+
UserAttributeEnumToJSON,
|
|
42
|
+
UserAttributeEnumToJSONTyped,
|
|
43
|
+
} from './UserAttributeEnum';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* MutualTLSStage Serializer
|
|
47
|
+
* @export
|
|
48
|
+
* @interface MutualTLSStage
|
|
49
|
+
*/
|
|
50
|
+
export interface MutualTLSStage {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof MutualTLSStage
|
|
55
|
+
*/
|
|
56
|
+
readonly pk: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof MutualTLSStage
|
|
61
|
+
*/
|
|
62
|
+
name: string;
|
|
63
|
+
/**
|
|
64
|
+
* Get object type so that we know how to edit the object
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof MutualTLSStage
|
|
67
|
+
*/
|
|
68
|
+
readonly component: string;
|
|
69
|
+
/**
|
|
70
|
+
* Return object's verbose_name
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof MutualTLSStage
|
|
73
|
+
*/
|
|
74
|
+
readonly verboseName: string;
|
|
75
|
+
/**
|
|
76
|
+
* Return object's plural verbose_name
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof MutualTLSStage
|
|
79
|
+
*/
|
|
80
|
+
readonly verboseNamePlural: string;
|
|
81
|
+
/**
|
|
82
|
+
* Return internal model name
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof MutualTLSStage
|
|
85
|
+
*/
|
|
86
|
+
readonly metaModelName: string;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {Array<FlowSet>}
|
|
90
|
+
* @memberof MutualTLSStage
|
|
91
|
+
*/
|
|
92
|
+
flowSet?: Array<FlowSet>;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {MutualTLSStageModeEnum}
|
|
96
|
+
* @memberof MutualTLSStage
|
|
97
|
+
*/
|
|
98
|
+
mode: MutualTLSStageModeEnum;
|
|
99
|
+
/**
|
|
100
|
+
* Configure certificate authorities to validate the certificate against. This option has a higher priority than the `client_certificate` option on `Brand`.
|
|
101
|
+
* @type {Array<string>}
|
|
102
|
+
* @memberof MutualTLSStage
|
|
103
|
+
*/
|
|
104
|
+
certificateAuthorities?: Array<string>;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {CertAttributeEnum}
|
|
108
|
+
* @memberof MutualTLSStage
|
|
109
|
+
*/
|
|
110
|
+
certAttribute: CertAttributeEnum;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {UserAttributeEnum}
|
|
114
|
+
* @memberof MutualTLSStage
|
|
115
|
+
*/
|
|
116
|
+
userAttribute: UserAttributeEnum;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Check if a given object implements the MutualTLSStage interface.
|
|
123
|
+
*/
|
|
124
|
+
export function instanceOfMutualTLSStage(value: object): value is MutualTLSStage {
|
|
125
|
+
if (!('pk' in value) || value['pk'] === undefined) return false;
|
|
126
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
127
|
+
if (!('component' in value) || value['component'] === undefined) return false;
|
|
128
|
+
if (!('verboseName' in value) || value['verboseName'] === undefined) return false;
|
|
129
|
+
if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined) return false;
|
|
130
|
+
if (!('metaModelName' in value) || value['metaModelName'] === undefined) return false;
|
|
131
|
+
if (!('mode' in value) || value['mode'] === undefined) return false;
|
|
132
|
+
if (!('certAttribute' in value) || value['certAttribute'] === undefined) return false;
|
|
133
|
+
if (!('userAttribute' in value) || value['userAttribute'] === undefined) return false;
|
|
134
|
+
return true;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function MutualTLSStageFromJSON(json: any): MutualTLSStage {
|
|
138
|
+
return MutualTLSStageFromJSONTyped(json, false);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function MutualTLSStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): MutualTLSStage {
|
|
142
|
+
if (json == null) {
|
|
143
|
+
return json;
|
|
144
|
+
}
|
|
145
|
+
return {
|
|
146
|
+
|
|
147
|
+
'pk': json['pk'],
|
|
148
|
+
'name': json['name'],
|
|
149
|
+
'component': json['component'],
|
|
150
|
+
'verboseName': json['verbose_name'],
|
|
151
|
+
'verboseNamePlural': json['verbose_name_plural'],
|
|
152
|
+
'metaModelName': json['meta_model_name'],
|
|
153
|
+
'flowSet': json['flow_set'] == null ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetFromJSON)),
|
|
154
|
+
'mode': MutualTLSStageModeEnumFromJSON(json['mode']),
|
|
155
|
+
'certificateAuthorities': json['certificate_authorities'] == null ? undefined : json['certificate_authorities'],
|
|
156
|
+
'certAttribute': CertAttributeEnumFromJSON(json['cert_attribute']),
|
|
157
|
+
'userAttribute': UserAttributeEnumFromJSON(json['user_attribute']),
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export function MutualTLSStageToJSON(json: any): MutualTLSStage {
|
|
162
|
+
return MutualTLSStageToJSONTyped(json, false);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export function MutualTLSStageToJSONTyped(value?: Omit<MutualTLSStage, 'pk'|'component'|'verbose_name'|'verbose_name_plural'|'meta_model_name'> | null, ignoreDiscriminator: boolean = false): any {
|
|
166
|
+
if (value == null) {
|
|
167
|
+
return value;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
return {
|
|
171
|
+
|
|
172
|
+
'name': value['name'],
|
|
173
|
+
'flow_set': value['flowSet'] == null ? undefined : ((value['flowSet'] as Array<any>).map(FlowSetToJSON)),
|
|
174
|
+
'mode': MutualTLSStageModeEnumToJSON(value['mode']),
|
|
175
|
+
'certificate_authorities': value['certificateAuthorities'],
|
|
176
|
+
'cert_attribute': CertAttributeEnumToJSON(value['certAttribute']),
|
|
177
|
+
'user_attribute': UserAttributeEnumToJSON(value['userAttribute']),
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.4.1
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const MutualTLSStageModeEnum = {
|
|
21
|
+
Optional: 'optional',
|
|
22
|
+
Required: 'required',
|
|
23
|
+
UnknownDefaultOpenApi: '11184809'
|
|
24
|
+
} as const;
|
|
25
|
+
export type MutualTLSStageModeEnum = typeof MutualTLSStageModeEnum[keyof typeof MutualTLSStageModeEnum];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfMutualTLSStageModeEnum(value: any): boolean {
|
|
29
|
+
for (const key in MutualTLSStageModeEnum) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(MutualTLSStageModeEnum, key)) {
|
|
31
|
+
if (MutualTLSStageModeEnum[key as keyof typeof MutualTLSStageModeEnum] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function MutualTLSStageModeEnumFromJSON(json: any): MutualTLSStageModeEnum {
|
|
40
|
+
return MutualTLSStageModeEnumFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function MutualTLSStageModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): MutualTLSStageModeEnum {
|
|
44
|
+
return json as MutualTLSStageModeEnum;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function MutualTLSStageModeEnumToJSON(value?: MutualTLSStageModeEnum | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function MutualTLSStageModeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): MutualTLSStageModeEnum {
|
|
52
|
+
return value as MutualTLSStageModeEnum;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.4.1
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
import type { MutualTLSStageModeEnum } from './MutualTLSStageModeEnum';
|
|
17
|
+
import {
|
|
18
|
+
MutualTLSStageModeEnumFromJSON,
|
|
19
|
+
MutualTLSStageModeEnumFromJSONTyped,
|
|
20
|
+
MutualTLSStageModeEnumToJSON,
|
|
21
|
+
MutualTLSStageModeEnumToJSONTyped,
|
|
22
|
+
} from './MutualTLSStageModeEnum';
|
|
23
|
+
import type { CertAttributeEnum } from './CertAttributeEnum';
|
|
24
|
+
import {
|
|
25
|
+
CertAttributeEnumFromJSON,
|
|
26
|
+
CertAttributeEnumFromJSONTyped,
|
|
27
|
+
CertAttributeEnumToJSON,
|
|
28
|
+
CertAttributeEnumToJSONTyped,
|
|
29
|
+
} from './CertAttributeEnum';
|
|
30
|
+
import type { UserAttributeEnum } from './UserAttributeEnum';
|
|
31
|
+
import {
|
|
32
|
+
UserAttributeEnumFromJSON,
|
|
33
|
+
UserAttributeEnumFromJSONTyped,
|
|
34
|
+
UserAttributeEnumToJSON,
|
|
35
|
+
UserAttributeEnumToJSONTyped,
|
|
36
|
+
} from './UserAttributeEnum';
|
|
37
|
+
import type { FlowSetRequest } from './FlowSetRequest';
|
|
38
|
+
import {
|
|
39
|
+
FlowSetRequestFromJSON,
|
|
40
|
+
FlowSetRequestFromJSONTyped,
|
|
41
|
+
FlowSetRequestToJSON,
|
|
42
|
+
FlowSetRequestToJSONTyped,
|
|
43
|
+
} from './FlowSetRequest';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* MutualTLSStage Serializer
|
|
47
|
+
* @export
|
|
48
|
+
* @interface MutualTLSStageRequest
|
|
49
|
+
*/
|
|
50
|
+
export interface MutualTLSStageRequest {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof MutualTLSStageRequest
|
|
55
|
+
*/
|
|
56
|
+
name: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Array<FlowSetRequest>}
|
|
60
|
+
* @memberof MutualTLSStageRequest
|
|
61
|
+
*/
|
|
62
|
+
flowSet?: Array<FlowSetRequest>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {MutualTLSStageModeEnum}
|
|
66
|
+
* @memberof MutualTLSStageRequest
|
|
67
|
+
*/
|
|
68
|
+
mode: MutualTLSStageModeEnum;
|
|
69
|
+
/**
|
|
70
|
+
* Configure certificate authorities to validate the certificate against. This option has a higher priority than the `client_certificate` option on `Brand`.
|
|
71
|
+
* @type {Array<string>}
|
|
72
|
+
* @memberof MutualTLSStageRequest
|
|
73
|
+
*/
|
|
74
|
+
certificateAuthorities?: Array<string>;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {CertAttributeEnum}
|
|
78
|
+
* @memberof MutualTLSStageRequest
|
|
79
|
+
*/
|
|
80
|
+
certAttribute: CertAttributeEnum;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {UserAttributeEnum}
|
|
84
|
+
* @memberof MutualTLSStageRequest
|
|
85
|
+
*/
|
|
86
|
+
userAttribute: UserAttributeEnum;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the MutualTLSStageRequest interface.
|
|
93
|
+
*/
|
|
94
|
+
export function instanceOfMutualTLSStageRequest(value: object): value is MutualTLSStageRequest {
|
|
95
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
96
|
+
if (!('mode' in value) || value['mode'] === undefined) return false;
|
|
97
|
+
if (!('certAttribute' in value) || value['certAttribute'] === undefined) return false;
|
|
98
|
+
if (!('userAttribute' in value) || value['userAttribute'] === undefined) return false;
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function MutualTLSStageRequestFromJSON(json: any): MutualTLSStageRequest {
|
|
103
|
+
return MutualTLSStageRequestFromJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function MutualTLSStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MutualTLSStageRequest {
|
|
107
|
+
if (json == null) {
|
|
108
|
+
return json;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'name': json['name'],
|
|
113
|
+
'flowSet': json['flow_set'] == null ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetRequestFromJSON)),
|
|
114
|
+
'mode': MutualTLSStageModeEnumFromJSON(json['mode']),
|
|
115
|
+
'certificateAuthorities': json['certificate_authorities'] == null ? undefined : json['certificate_authorities'],
|
|
116
|
+
'certAttribute': CertAttributeEnumFromJSON(json['cert_attribute']),
|
|
117
|
+
'userAttribute': UserAttributeEnumFromJSON(json['user_attribute']),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function MutualTLSStageRequestToJSON(json: any): MutualTLSStageRequest {
|
|
122
|
+
return MutualTLSStageRequestToJSONTyped(json, false);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function MutualTLSStageRequestToJSONTyped(value?: MutualTLSStageRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
126
|
+
if (value == null) {
|
|
127
|
+
return value;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return {
|
|
131
|
+
|
|
132
|
+
'name': value['name'],
|
|
133
|
+
'flow_set': value['flowSet'] == null ? undefined : ((value['flowSet'] as Array<any>).map(FlowSetRequestToJSON)),
|
|
134
|
+
'mode': MutualTLSStageModeEnumToJSON(value['mode']),
|
|
135
|
+
'certificate_authorities': value['certificateAuthorities'],
|
|
136
|
+
'cert_attribute': CertAttributeEnumToJSON(value['certAttribute']),
|
|
137
|
+
'user_attribute': UserAttributeEnumToJSON(value['userAttribute']),
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.4.1
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
import type { Pagination } from './Pagination';
|
|
17
|
+
import {
|
|
18
|
+
PaginationFromJSON,
|
|
19
|
+
PaginationFromJSONTyped,
|
|
20
|
+
PaginationToJSON,
|
|
21
|
+
PaginationToJSONTyped,
|
|
22
|
+
} from './Pagination';
|
|
23
|
+
import type { MutualTLSStage } from './MutualTLSStage';
|
|
24
|
+
import {
|
|
25
|
+
MutualTLSStageFromJSON,
|
|
26
|
+
MutualTLSStageFromJSONTyped,
|
|
27
|
+
MutualTLSStageToJSON,
|
|
28
|
+
MutualTLSStageToJSONTyped,
|
|
29
|
+
} from './MutualTLSStage';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedMutualTLSStageList
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedMutualTLSStageList {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Pagination}
|
|
40
|
+
* @memberof PaginatedMutualTLSStageList
|
|
41
|
+
*/
|
|
42
|
+
pagination: Pagination;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<MutualTLSStage>}
|
|
46
|
+
* @memberof PaginatedMutualTLSStageList
|
|
47
|
+
*/
|
|
48
|
+
results: Array<MutualTLSStage>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedMutualTLSStageList interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedMutualTLSStageList(value: object): value is PaginatedMutualTLSStageList {
|
|
55
|
+
if (!('pagination' in value) || value['pagination'] === undefined) return false;
|
|
56
|
+
if (!('results' in value) || value['results'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedMutualTLSStageListFromJSON(json: any): PaginatedMutualTLSStageList {
|
|
61
|
+
return PaginatedMutualTLSStageListFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedMutualTLSStageListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedMutualTLSStageList {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'pagination': PaginationFromJSON(json['pagination']),
|
|
71
|
+
'results': ((json['results'] as Array<any>).map(MutualTLSStageFromJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedMutualTLSStageListToJSON(json: any): PaginatedMutualTLSStageList {
|
|
76
|
+
return PaginatedMutualTLSStageListToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedMutualTLSStageListToJSONTyped(value?: PaginatedMutualTLSStageList | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'pagination': PaginationToJSON(value['pagination']),
|
|
87
|
+
'results': ((value['results'] as Array<any>).map(MutualTLSStageToJSON)),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -109,6 +109,12 @@ export interface PatchedBrandRequest {
|
|
|
109
109
|
* @memberof PatchedBrandRequest
|
|
110
110
|
*/
|
|
111
111
|
webCertificate?: string | null;
|
|
112
|
+
/**
|
|
113
|
+
* Certificates used for client authentication.
|
|
114
|
+
* @type {Array<string>}
|
|
115
|
+
* @memberof PatchedBrandRequest
|
|
116
|
+
*/
|
|
117
|
+
clientCertificates?: Array<string>;
|
|
112
118
|
/**
|
|
113
119
|
*
|
|
114
120
|
* @type {any}
|
|
@@ -149,6 +155,7 @@ export function PatchedBrandRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
149
155
|
'flowDeviceCode': json['flow_device_code'] == null ? undefined : json['flow_device_code'],
|
|
150
156
|
'defaultApplication': json['default_application'] == null ? undefined : json['default_application'],
|
|
151
157
|
'webCertificate': json['web_certificate'] == null ? undefined : json['web_certificate'],
|
|
158
|
+
'clientCertificates': json['client_certificates'] == null ? undefined : json['client_certificates'],
|
|
152
159
|
'attributes': json['attributes'] == null ? undefined : json['attributes'],
|
|
153
160
|
};
|
|
154
161
|
}
|
|
@@ -179,6 +186,7 @@ export function PatchedBrandRequestToJSONTyped(value?: PatchedBrandRequest | nul
|
|
|
179
186
|
'flow_device_code': value['flowDeviceCode'],
|
|
180
187
|
'default_application': value['defaultApplication'],
|
|
181
188
|
'web_certificate': value['webCertificate'],
|
|
189
|
+
'client_certificates': value['clientCertificates'],
|
|
182
190
|
'attributes': value['attributes'],
|
|
183
191
|
};
|
|
184
192
|
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.4.1
|
|
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 { mapValues } from '../runtime';
|
|
16
|
+
import type { MutualTLSStageModeEnum } from './MutualTLSStageModeEnum';
|
|
17
|
+
import {
|
|
18
|
+
MutualTLSStageModeEnumFromJSON,
|
|
19
|
+
MutualTLSStageModeEnumFromJSONTyped,
|
|
20
|
+
MutualTLSStageModeEnumToJSON,
|
|
21
|
+
MutualTLSStageModeEnumToJSONTyped,
|
|
22
|
+
} from './MutualTLSStageModeEnum';
|
|
23
|
+
import type { CertAttributeEnum } from './CertAttributeEnum';
|
|
24
|
+
import {
|
|
25
|
+
CertAttributeEnumFromJSON,
|
|
26
|
+
CertAttributeEnumFromJSONTyped,
|
|
27
|
+
CertAttributeEnumToJSON,
|
|
28
|
+
CertAttributeEnumToJSONTyped,
|
|
29
|
+
} from './CertAttributeEnum';
|
|
30
|
+
import type { UserAttributeEnum } from './UserAttributeEnum';
|
|
31
|
+
import {
|
|
32
|
+
UserAttributeEnumFromJSON,
|
|
33
|
+
UserAttributeEnumFromJSONTyped,
|
|
34
|
+
UserAttributeEnumToJSON,
|
|
35
|
+
UserAttributeEnumToJSONTyped,
|
|
36
|
+
} from './UserAttributeEnum';
|
|
37
|
+
import type { FlowSetRequest } from './FlowSetRequest';
|
|
38
|
+
import {
|
|
39
|
+
FlowSetRequestFromJSON,
|
|
40
|
+
FlowSetRequestFromJSONTyped,
|
|
41
|
+
FlowSetRequestToJSON,
|
|
42
|
+
FlowSetRequestToJSONTyped,
|
|
43
|
+
} from './FlowSetRequest';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* MutualTLSStage Serializer
|
|
47
|
+
* @export
|
|
48
|
+
* @interface PatchedMutualTLSStageRequest
|
|
49
|
+
*/
|
|
50
|
+
export interface PatchedMutualTLSStageRequest {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof PatchedMutualTLSStageRequest
|
|
55
|
+
*/
|
|
56
|
+
name?: string;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {Array<FlowSetRequest>}
|
|
60
|
+
* @memberof PatchedMutualTLSStageRequest
|
|
61
|
+
*/
|
|
62
|
+
flowSet?: Array<FlowSetRequest>;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {MutualTLSStageModeEnum}
|
|
66
|
+
* @memberof PatchedMutualTLSStageRequest
|
|
67
|
+
*/
|
|
68
|
+
mode?: MutualTLSStageModeEnum;
|
|
69
|
+
/**
|
|
70
|
+
* Configure certificate authorities to validate the certificate against. This option has a higher priority than the `client_certificate` option on `Brand`.
|
|
71
|
+
* @type {Array<string>}
|
|
72
|
+
* @memberof PatchedMutualTLSStageRequest
|
|
73
|
+
*/
|
|
74
|
+
certificateAuthorities?: Array<string>;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {CertAttributeEnum}
|
|
78
|
+
* @memberof PatchedMutualTLSStageRequest
|
|
79
|
+
*/
|
|
80
|
+
certAttribute?: CertAttributeEnum;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {UserAttributeEnum}
|
|
84
|
+
* @memberof PatchedMutualTLSStageRequest
|
|
85
|
+
*/
|
|
86
|
+
userAttribute?: UserAttributeEnum;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the PatchedMutualTLSStageRequest interface.
|
|
93
|
+
*/
|
|
94
|
+
export function instanceOfPatchedMutualTLSStageRequest(value: object): value is PatchedMutualTLSStageRequest {
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function PatchedMutualTLSStageRequestFromJSON(json: any): PatchedMutualTLSStageRequest {
|
|
99
|
+
return PatchedMutualTLSStageRequestFromJSONTyped(json, false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function PatchedMutualTLSStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedMutualTLSStageRequest {
|
|
103
|
+
if (json == null) {
|
|
104
|
+
return json;
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
109
|
+
'flowSet': json['flow_set'] == null ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetRequestFromJSON)),
|
|
110
|
+
'mode': json['mode'] == null ? undefined : MutualTLSStageModeEnumFromJSON(json['mode']),
|
|
111
|
+
'certificateAuthorities': json['certificate_authorities'] == null ? undefined : json['certificate_authorities'],
|
|
112
|
+
'certAttribute': json['cert_attribute'] == null ? undefined : CertAttributeEnumFromJSON(json['cert_attribute']),
|
|
113
|
+
'userAttribute': json['user_attribute'] == null ? undefined : UserAttributeEnumFromJSON(json['user_attribute']),
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function PatchedMutualTLSStageRequestToJSON(json: any): PatchedMutualTLSStageRequest {
|
|
118
|
+
return PatchedMutualTLSStageRequestToJSONTyped(json, false);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function PatchedMutualTLSStageRequestToJSONTyped(value?: PatchedMutualTLSStageRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
122
|
+
if (value == null) {
|
|
123
|
+
return value;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
|
|
128
|
+
'name': value['name'],
|
|
129
|
+
'flow_set': value['flowSet'] == null ? undefined : ((value['flowSet'] as Array<any>).map(FlowSetRequestToJSON)),
|
|
130
|
+
'mode': MutualTLSStageModeEnumToJSON(value['mode']),
|
|
131
|
+
'certificate_authorities': value['certificateAuthorities'],
|
|
132
|
+
'cert_attribute': CertAttributeEnumToJSON(value['certAttribute']),
|
|
133
|
+
'user_attribute': UserAttributeEnumToJSON(value['userAttribute']),
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2025.4.1
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const UserAttributeEnum = {
|
|
21
|
+
Username: 'username',
|
|
22
|
+
Email: 'email',
|
|
23
|
+
UnknownDefaultOpenApi: '11184809'
|
|
24
|
+
} as const;
|
|
25
|
+
export type UserAttributeEnum = typeof UserAttributeEnum[keyof typeof UserAttributeEnum];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfUserAttributeEnum(value: any): boolean {
|
|
29
|
+
for (const key in UserAttributeEnum) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(UserAttributeEnum, key)) {
|
|
31
|
+
if (UserAttributeEnum[key as keyof typeof UserAttributeEnum] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function UserAttributeEnumFromJSON(json: any): UserAttributeEnum {
|
|
40
|
+
return UserAttributeEnumFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function UserAttributeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAttributeEnum {
|
|
44
|
+
return json as UserAttributeEnum;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UserAttributeEnumToJSON(value?: UserAttributeEnum | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UserAttributeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): UserAttributeEnum {
|
|
52
|
+
return value as UserAttributeEnum;
|
|
53
|
+
}
|
|
54
|
+
|