@goauthentik/api 2024.10.5-1734006367 → 2024.10.5-1734022840

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/dist/apis/RbacApi.d.ts +2 -0
  3. package/dist/apis/RbacApi.js +2 -0
  4. package/dist/apis/StagesApi.d.ts +84 -1
  5. package/dist/apis/StagesApi.js +265 -0
  6. package/dist/esm/apis/RbacApi.d.ts +2 -0
  7. package/dist/esm/apis/RbacApi.js +2 -0
  8. package/dist/esm/apis/StagesApi.d.ts +84 -1
  9. package/dist/esm/apis/StagesApi.js +266 -1
  10. package/dist/esm/models/AppEnum.d.ts +1 -0
  11. package/dist/esm/models/AppEnum.js +1 -0
  12. package/dist/esm/models/AuthenticationEnum.d.ts +1 -0
  13. package/dist/esm/models/AuthenticationEnum.js +1 -0
  14. package/dist/esm/models/FlowChallengeResponseRequest.d.ts +4 -1
  15. package/dist/esm/models/FlowChallengeResponseRequest.js +5 -0
  16. package/dist/esm/models/ModelEnum.d.ts +1 -0
  17. package/dist/esm/models/ModelEnum.js +1 -0
  18. package/dist/esm/models/PaginatedRedirectStageList.d.ts +39 -0
  19. package/dist/esm/models/PaginatedRedirectStageList.js +48 -0
  20. package/dist/esm/models/PatchedRedirectStageRequest.d.ts +63 -0
  21. package/dist/esm/models/PatchedRedirectStageRequest.js +55 -0
  22. package/dist/esm/models/RedirectChallengeResponseRequest.d.ts +37 -0
  23. package/dist/esm/models/RedirectChallengeResponseRequest.js +46 -0
  24. package/dist/esm/models/RedirectStage.d.ts +93 -0
  25. package/dist/esm/models/RedirectStage.js +67 -0
  26. package/dist/esm/models/RedirectStageModeEnum.d.ts +24 -0
  27. package/dist/esm/models/RedirectStageModeEnum.js +31 -0
  28. package/dist/esm/models/RedirectStageRequest.d.ts +63 -0
  29. package/dist/esm/models/RedirectStageRequest.js +57 -0
  30. package/dist/esm/models/index.d.ts +6 -0
  31. package/dist/esm/models/index.js +6 -0
  32. package/dist/models/AppEnum.d.ts +1 -0
  33. package/dist/models/AppEnum.js +1 -0
  34. package/dist/models/AuthenticationEnum.d.ts +1 -0
  35. package/dist/models/AuthenticationEnum.js +1 -0
  36. package/dist/models/FlowChallengeResponseRequest.d.ts +4 -1
  37. package/dist/models/FlowChallengeResponseRequest.js +5 -0
  38. package/dist/models/ModelEnum.d.ts +1 -0
  39. package/dist/models/ModelEnum.js +1 -0
  40. package/dist/models/PaginatedRedirectStageList.d.ts +39 -0
  41. package/dist/models/PaginatedRedirectStageList.js +55 -0
  42. package/dist/models/PatchedRedirectStageRequest.d.ts +63 -0
  43. package/dist/models/PatchedRedirectStageRequest.js +62 -0
  44. package/dist/models/RedirectChallengeResponseRequest.d.ts +37 -0
  45. package/dist/models/RedirectChallengeResponseRequest.js +53 -0
  46. package/dist/models/RedirectStage.d.ts +93 -0
  47. package/dist/models/RedirectStage.js +74 -0
  48. package/dist/models/RedirectStageModeEnum.d.ts +24 -0
  49. package/dist/models/RedirectStageModeEnum.js +37 -0
  50. package/dist/models/RedirectStageRequest.d.ts +63 -0
  51. package/dist/models/RedirectStageRequest.js +64 -0
  52. package/dist/models/index.d.ts +6 -0
  53. package/dist/models/index.js +6 -0
  54. package/package.json +1 -1
  55. package/src/apis/RbacApi.ts +2 -0
  56. package/src/apis/StagesApi.ts +340 -0
  57. package/src/models/AppEnum.ts +1 -0
  58. package/src/models/AuthenticationEnum.ts +1 -0
  59. package/src/models/FlowChallengeResponseRequest.ts +12 -1
  60. package/src/models/ModelEnum.ts +1 -0
  61. package/src/models/PaginatedRedirectStageList.ts +88 -0
  62. package/src/models/PatchedRedirectStageRequest.ts +118 -0
  63. package/src/models/RedirectChallengeResponseRequest.ts +74 -0
  64. package/src/models/RedirectStage.ts +160 -0
  65. package/src/models/RedirectStageModeEnum.ts +39 -0
  66. package/src/models/RedirectStageRequest.ts +120 -0
  67. package/src/models/index.ts +6 -0
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.10.5
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
+ * Redirect challenge response
18
+ * @export
19
+ * @interface RedirectChallengeResponseRequest
20
+ */
21
+ export interface RedirectChallengeResponseRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof RedirectChallengeResponseRequest
26
+ */
27
+ component?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof RedirectChallengeResponseRequest
32
+ */
33
+ to: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the RedirectChallengeResponseRequest interface.
38
+ */
39
+ export function instanceOfRedirectChallengeResponseRequest(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "to" in value;
42
+
43
+ return isInstance;
44
+ }
45
+
46
+ export function RedirectChallengeResponseRequestFromJSON(json: any): RedirectChallengeResponseRequest {
47
+ return RedirectChallengeResponseRequestFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function RedirectChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectChallengeResponseRequest {
51
+ if ((json === undefined) || (json === null)) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'component': !exists(json, 'component') ? undefined : json['component'],
57
+ 'to': json['to'],
58
+ };
59
+ }
60
+
61
+ export function RedirectChallengeResponseRequestToJSON(value?: RedirectChallengeResponseRequest | null): any {
62
+ if (value === undefined) {
63
+ return undefined;
64
+ }
65
+ if (value === null) {
66
+ return null;
67
+ }
68
+ return {
69
+
70
+ 'component': value.component,
71
+ 'to': value.to,
72
+ };
73
+ }
74
+
@@ -0,0 +1,160 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.10.5
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
+ import type { FlowSet } from './FlowSet';
17
+ import {
18
+ FlowSetFromJSON,
19
+ FlowSetFromJSONTyped,
20
+ FlowSetToJSON,
21
+ } from './FlowSet';
22
+ import type { RedirectStageModeEnum } from './RedirectStageModeEnum';
23
+ import {
24
+ RedirectStageModeEnumFromJSON,
25
+ RedirectStageModeEnumFromJSONTyped,
26
+ RedirectStageModeEnumToJSON,
27
+ } from './RedirectStageModeEnum';
28
+
29
+ /**
30
+ * RedirectStage Serializer
31
+ * @export
32
+ * @interface RedirectStage
33
+ */
34
+ export interface RedirectStage {
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof RedirectStage
39
+ */
40
+ readonly pk: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof RedirectStage
45
+ */
46
+ name: string;
47
+ /**
48
+ * Get object type so that we know how to edit the object
49
+ * @type {string}
50
+ * @memberof RedirectStage
51
+ */
52
+ readonly component: string;
53
+ /**
54
+ * Return object's verbose_name
55
+ * @type {string}
56
+ * @memberof RedirectStage
57
+ */
58
+ readonly verboseName: string;
59
+ /**
60
+ * Return object's plural verbose_name
61
+ * @type {string}
62
+ * @memberof RedirectStage
63
+ */
64
+ readonly verboseNamePlural: string;
65
+ /**
66
+ * Return internal model name
67
+ * @type {string}
68
+ * @memberof RedirectStage
69
+ */
70
+ readonly metaModelName: string;
71
+ /**
72
+ *
73
+ * @type {Array<FlowSet>}
74
+ * @memberof RedirectStage
75
+ */
76
+ flowSet?: Array<FlowSet>;
77
+ /**
78
+ *
79
+ * @type {boolean}
80
+ * @memberof RedirectStage
81
+ */
82
+ keepContext?: boolean;
83
+ /**
84
+ *
85
+ * @type {RedirectStageModeEnum}
86
+ * @memberof RedirectStage
87
+ */
88
+ mode: RedirectStageModeEnum;
89
+ /**
90
+ *
91
+ * @type {string}
92
+ * @memberof RedirectStage
93
+ */
94
+ targetStatic?: string;
95
+ /**
96
+ *
97
+ * @type {string}
98
+ * @memberof RedirectStage
99
+ */
100
+ targetFlow?: string | null;
101
+ }
102
+
103
+ /**
104
+ * Check if a given object implements the RedirectStage interface.
105
+ */
106
+ export function instanceOfRedirectStage(value: object): boolean {
107
+ let isInstance = true;
108
+ isInstance = isInstance && "pk" in value;
109
+ isInstance = isInstance && "name" in value;
110
+ isInstance = isInstance && "component" in value;
111
+ isInstance = isInstance && "verboseName" in value;
112
+ isInstance = isInstance && "verboseNamePlural" in value;
113
+ isInstance = isInstance && "metaModelName" in value;
114
+ isInstance = isInstance && "mode" in value;
115
+
116
+ return isInstance;
117
+ }
118
+
119
+ export function RedirectStageFromJSON(json: any): RedirectStage {
120
+ return RedirectStageFromJSONTyped(json, false);
121
+ }
122
+
123
+ export function RedirectStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectStage {
124
+ if ((json === undefined) || (json === null)) {
125
+ return json;
126
+ }
127
+ return {
128
+
129
+ 'pk': json['pk'],
130
+ 'name': json['name'],
131
+ 'component': json['component'],
132
+ 'verboseName': json['verbose_name'],
133
+ 'verboseNamePlural': json['verbose_name_plural'],
134
+ 'metaModelName': json['meta_model_name'],
135
+ 'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetFromJSON)),
136
+ 'keepContext': !exists(json, 'keep_context') ? undefined : json['keep_context'],
137
+ 'mode': RedirectStageModeEnumFromJSON(json['mode']),
138
+ 'targetStatic': !exists(json, 'target_static') ? undefined : json['target_static'],
139
+ 'targetFlow': !exists(json, 'target_flow') ? undefined : json['target_flow'],
140
+ };
141
+ }
142
+
143
+ export function RedirectStageToJSON(value?: RedirectStage | null): any {
144
+ if (value === undefined) {
145
+ return undefined;
146
+ }
147
+ if (value === null) {
148
+ return null;
149
+ }
150
+ return {
151
+
152
+ 'name': value.name,
153
+ 'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetToJSON)),
154
+ 'keep_context': value.keepContext,
155
+ 'mode': RedirectStageModeEnumToJSON(value.mode),
156
+ 'target_static': value.targetStatic,
157
+ 'target_flow': value.targetFlow,
158
+ };
159
+ }
160
+
@@ -0,0 +1,39 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.10.5
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 RedirectStageModeEnum = {
21
+ Static: 'static',
22
+ Flow: 'flow',
23
+ UnknownDefaultOpenApi: '11184809'
24
+ } as const;
25
+ export type RedirectStageModeEnum = typeof RedirectStageModeEnum[keyof typeof RedirectStageModeEnum];
26
+
27
+
28
+ export function RedirectStageModeEnumFromJSON(json: any): RedirectStageModeEnum {
29
+ return RedirectStageModeEnumFromJSONTyped(json, false);
30
+ }
31
+
32
+ export function RedirectStageModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectStageModeEnum {
33
+ return json as RedirectStageModeEnum;
34
+ }
35
+
36
+ export function RedirectStageModeEnumToJSON(value?: RedirectStageModeEnum | null): any {
37
+ return value as any;
38
+ }
39
+
@@ -0,0 +1,120 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.10.5
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
+ import type { FlowSetRequest } from './FlowSetRequest';
17
+ import {
18
+ FlowSetRequestFromJSON,
19
+ FlowSetRequestFromJSONTyped,
20
+ FlowSetRequestToJSON,
21
+ } from './FlowSetRequest';
22
+ import type { RedirectStageModeEnum } from './RedirectStageModeEnum';
23
+ import {
24
+ RedirectStageModeEnumFromJSON,
25
+ RedirectStageModeEnumFromJSONTyped,
26
+ RedirectStageModeEnumToJSON,
27
+ } from './RedirectStageModeEnum';
28
+
29
+ /**
30
+ * RedirectStage Serializer
31
+ * @export
32
+ * @interface RedirectStageRequest
33
+ */
34
+ export interface RedirectStageRequest {
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof RedirectStageRequest
39
+ */
40
+ name: string;
41
+ /**
42
+ *
43
+ * @type {Array<FlowSetRequest>}
44
+ * @memberof RedirectStageRequest
45
+ */
46
+ flowSet?: Array<FlowSetRequest>;
47
+ /**
48
+ *
49
+ * @type {boolean}
50
+ * @memberof RedirectStageRequest
51
+ */
52
+ keepContext?: boolean;
53
+ /**
54
+ *
55
+ * @type {RedirectStageModeEnum}
56
+ * @memberof RedirectStageRequest
57
+ */
58
+ mode: RedirectStageModeEnum;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof RedirectStageRequest
63
+ */
64
+ targetStatic?: string;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof RedirectStageRequest
69
+ */
70
+ targetFlow?: string | null;
71
+ }
72
+
73
+ /**
74
+ * Check if a given object implements the RedirectStageRequest interface.
75
+ */
76
+ export function instanceOfRedirectStageRequest(value: object): boolean {
77
+ let isInstance = true;
78
+ isInstance = isInstance && "name" in value;
79
+ isInstance = isInstance && "mode" in value;
80
+
81
+ return isInstance;
82
+ }
83
+
84
+ export function RedirectStageRequestFromJSON(json: any): RedirectStageRequest {
85
+ return RedirectStageRequestFromJSONTyped(json, false);
86
+ }
87
+
88
+ export function RedirectStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedirectStageRequest {
89
+ if ((json === undefined) || (json === null)) {
90
+ return json;
91
+ }
92
+ return {
93
+
94
+ 'name': json['name'],
95
+ 'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetRequestFromJSON)),
96
+ 'keepContext': !exists(json, 'keep_context') ? undefined : json['keep_context'],
97
+ 'mode': RedirectStageModeEnumFromJSON(json['mode']),
98
+ 'targetStatic': !exists(json, 'target_static') ? undefined : json['target_static'],
99
+ 'targetFlow': !exists(json, 'target_flow') ? undefined : json['target_flow'],
100
+ };
101
+ }
102
+
103
+ export function RedirectStageRequestToJSON(value?: RedirectStageRequest | null): any {
104
+ if (value === undefined) {
105
+ return undefined;
106
+ }
107
+ if (value === null) {
108
+ return null;
109
+ }
110
+ return {
111
+
112
+ 'name': value.name,
113
+ 'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetRequestToJSON)),
114
+ 'keep_context': value.keepContext,
115
+ 'mode': RedirectStageModeEnumToJSON(value.mode),
116
+ 'target_static': value.targetStatic,
117
+ 'target_flow': value.targetFlow,
118
+ };
119
+ }
120
+
@@ -341,6 +341,7 @@ export * from './PaginatedRACProviderList';
341
341
  export * from './PaginatedRadiusOutpostConfigList';
342
342
  export * from './PaginatedRadiusProviderList';
343
343
  export * from './PaginatedRadiusProviderPropertyMappingList';
344
+ export * from './PaginatedRedirectStageList';
344
345
  export * from './PaginatedReputationList';
345
346
  export * from './PaginatedReputationPolicyList';
346
347
  export * from './PaginatedRoleAssignedObjectPermissionList';
@@ -460,6 +461,7 @@ export * from './PatchedRACPropertyMappingRequest';
460
461
  export * from './PatchedRACProviderRequest';
461
462
  export * from './PatchedRadiusProviderPropertyMappingRequest';
462
463
  export * from './PatchedRadiusProviderRequest';
464
+ export * from './PatchedRedirectStageRequest';
463
465
  export * from './PatchedReputationPolicyRequest';
464
466
  export * from './PatchedRoleRequest';
465
467
  export * from './PatchedSAMLPropertyMappingRequest';
@@ -539,6 +541,10 @@ export * from './RadiusProviderPropertyMapping';
539
541
  export * from './RadiusProviderPropertyMappingRequest';
540
542
  export * from './RadiusProviderRequest';
541
543
  export * from './RedirectChallenge';
544
+ export * from './RedirectChallengeResponseRequest';
545
+ export * from './RedirectStage';
546
+ export * from './RedirectStageModeEnum';
547
+ export * from './RedirectStageRequest';
542
548
  export * from './RedirectURI';
543
549
  export * from './RedirectURIRequest';
544
550
  export * from './Reputation';