@goauthentik/api 2024.2.2-1709583949 → 2024.2.2-1710521362

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/.openapi-generator/FILES +4 -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 +87 -1
  5. package/dist/apis/StagesApi.js +246 -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 +87 -1
  9. package/dist/esm/apis/StagesApi.js +247 -1
  10. package/dist/esm/models/AppEnum.d.ts +2 -0
  11. package/dist/esm/models/AppEnum.js +2 -0
  12. package/dist/esm/models/DummyChallenge.d.ts +6 -0
  13. package/dist/esm/models/DummyChallenge.js +3 -0
  14. package/dist/esm/models/ModelEnum.d.ts +2 -0
  15. package/dist/esm/models/ModelEnum.js +2 -0
  16. package/dist/esm/models/PaginatedSourceStageList.d.ts +39 -0
  17. package/dist/esm/models/PaginatedSourceStageList.js +48 -0
  18. package/dist/esm/models/PatchedSourceStageRequest.d.ts +50 -0
  19. package/dist/esm/models/PatchedSourceStageRequest.js +50 -0
  20. package/dist/esm/models/SourceStage.d.ts +80 -0
  21. package/dist/esm/models/SourceStage.js +62 -0
  22. package/dist/esm/models/SourceStageRequest.d.ts +50 -0
  23. package/dist/esm/models/SourceStageRequest.js +52 -0
  24. package/dist/esm/models/Version.d.ts +6 -0
  25. package/dist/esm/models/Version.js +2 -0
  26. package/dist/esm/models/index.d.ts +4 -0
  27. package/dist/esm/models/index.js +4 -0
  28. package/dist/models/AppEnum.d.ts +2 -0
  29. package/dist/models/AppEnum.js +2 -0
  30. package/dist/models/DummyChallenge.d.ts +6 -0
  31. package/dist/models/DummyChallenge.js +3 -0
  32. package/dist/models/ModelEnum.d.ts +2 -0
  33. package/dist/models/ModelEnum.js +2 -0
  34. package/dist/models/PaginatedSourceStageList.d.ts +39 -0
  35. package/dist/models/PaginatedSourceStageList.js +55 -0
  36. package/dist/models/PatchedSourceStageRequest.d.ts +50 -0
  37. package/dist/models/PatchedSourceStageRequest.js +57 -0
  38. package/dist/models/SourceStage.d.ts +80 -0
  39. package/dist/models/SourceStage.js +69 -0
  40. package/dist/models/SourceStageRequest.d.ts +50 -0
  41. package/dist/models/SourceStageRequest.js +59 -0
  42. package/dist/models/Version.d.ts +6 -0
  43. package/dist/models/Version.js +2 -0
  44. package/dist/models/index.d.ts +4 -0
  45. package/dist/models/index.js +4 -0
  46. package/package.json +1 -1
  47. package/src/apis/RbacApi.ts +2 -0
  48. package/src/apis/StagesApi.ts +327 -0
  49. package/src/models/AppEnum.ts +2 -0
  50. package/src/models/DummyChallenge.ts +9 -0
  51. package/src/models/ModelEnum.ts +2 -0
  52. package/src/models/PaginatedSourceStageList.ts +88 -0
  53. package/src/models/PatchedSourceStageRequest.ts +96 -0
  54. package/src/models/SourceStage.ts +138 -0
  55. package/src/models/SourceStageRequest.ts +98 -0
  56. package/src/models/Version.ts +8 -0
  57. package/src/models/index.ts +4 -0
@@ -62,6 +62,12 @@ export interface DummyChallenge {
62
62
  * @memberof DummyChallenge
63
63
  */
64
64
  responseErrors?: { [key: string]: Array<ErrorDetail>; };
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof DummyChallenge
69
+ */
70
+ name: string;
65
71
  }
66
72
 
67
73
  /**
@@ -70,6 +76,7 @@ export interface DummyChallenge {
70
76
  export function instanceOfDummyChallenge(value: object): boolean {
71
77
  let isInstance = true;
72
78
  isInstance = isInstance && "type" in value;
79
+ isInstance = isInstance && "name" in value;
73
80
 
74
81
  return isInstance;
75
82
  }
@@ -88,6 +95,7 @@ export function DummyChallengeFromJSONTyped(json: any, ignoreDiscriminator: bool
88
95
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
89
96
  'component': !exists(json, 'component') ? undefined : json['component'],
90
97
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
98
+ 'name': json['name'],
91
99
  };
92
100
  }
93
101
 
@@ -104,6 +112,7 @@ export function DummyChallengeToJSON(value?: DummyChallenge | null): any {
104
112
  'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
105
113
  'component': value.component,
106
114
  'response_errors': value.responseErrors,
115
+ 'name': value.name,
107
116
  };
108
117
  }
109
118
 
@@ -83,6 +83,7 @@
83
83
  * * `authentik_providers_rac.racprovider` - RAC Provider
84
84
  * * `authentik_providers_rac.endpoint` - RAC Endpoint
85
85
  * * `authentik_providers_rac.racpropertymapping` - RAC Property Mapping
86
+ * * `authentik_stages_source.sourcestage` - Source Stage
86
87
  * * `authentik_events.event` - Event
87
88
  * * `authentik_events.notificationtransport` - Notification Transport
88
89
  * * `authentik_events.notification` - Notification
@@ -160,6 +161,7 @@ export const ModelEnum = {
160
161
  ProvidersRacRacprovider: 'authentik_providers_rac.racprovider',
161
162
  ProvidersRacEndpoint: 'authentik_providers_rac.endpoint',
162
163
  ProvidersRacRacpropertymapping: 'authentik_providers_rac.racpropertymapping',
164
+ StagesSourceSourcestage: 'authentik_stages_source.sourcestage',
163
165
  EventsEvent: 'authentik_events.event',
164
166
  EventsNotificationtransport: 'authentik_events.notificationtransport',
165
167
  EventsNotification: 'authentik_events.notification',
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.2.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
+ import type { Pagination } from './Pagination';
17
+ import {
18
+ PaginationFromJSON,
19
+ PaginationFromJSONTyped,
20
+ PaginationToJSON,
21
+ } from './Pagination';
22
+ import type { SourceStage } from './SourceStage';
23
+ import {
24
+ SourceStageFromJSON,
25
+ SourceStageFromJSONTyped,
26
+ SourceStageToJSON,
27
+ } from './SourceStage';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface PaginatedSourceStageList
33
+ */
34
+ export interface PaginatedSourceStageList {
35
+ /**
36
+ *
37
+ * @type {Pagination}
38
+ * @memberof PaginatedSourceStageList
39
+ */
40
+ pagination: Pagination;
41
+ /**
42
+ *
43
+ * @type {Array<SourceStage>}
44
+ * @memberof PaginatedSourceStageList
45
+ */
46
+ results: Array<SourceStage>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the PaginatedSourceStageList interface.
51
+ */
52
+ export function instanceOfPaginatedSourceStageList(value: object): boolean {
53
+ let isInstance = true;
54
+ isInstance = isInstance && "pagination" in value;
55
+ isInstance = isInstance && "results" in value;
56
+
57
+ return isInstance;
58
+ }
59
+
60
+ export function PaginatedSourceStageListFromJSON(json: any): PaginatedSourceStageList {
61
+ return PaginatedSourceStageListFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedSourceStageListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSourceStageList {
65
+ if ((json === undefined) || (json === null)) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'pagination': PaginationFromJSON(json['pagination']),
71
+ 'results': ((json['results'] as Array<any>).map(SourceStageFromJSON)),
72
+ };
73
+ }
74
+
75
+ export function PaginatedSourceStageListToJSON(value?: PaginatedSourceStageList | null): any {
76
+ if (value === undefined) {
77
+ return undefined;
78
+ }
79
+ if (value === null) {
80
+ return null;
81
+ }
82
+ return {
83
+
84
+ 'pagination': PaginationToJSON(value.pagination),
85
+ 'results': ((value.results as Array<any>).map(SourceStageToJSON)),
86
+ };
87
+ }
88
+
@@ -0,0 +1,96 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.2.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
+ import type { FlowSetRequest } from './FlowSetRequest';
17
+ import {
18
+ FlowSetRequestFromJSON,
19
+ FlowSetRequestFromJSONTyped,
20
+ FlowSetRequestToJSON,
21
+ } from './FlowSetRequest';
22
+
23
+ /**
24
+ * SourceStage Serializer
25
+ * @export
26
+ * @interface PatchedSourceStageRequest
27
+ */
28
+ export interface PatchedSourceStageRequest {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof PatchedSourceStageRequest
33
+ */
34
+ name?: string;
35
+ /**
36
+ *
37
+ * @type {Array<FlowSetRequest>}
38
+ * @memberof PatchedSourceStageRequest
39
+ */
40
+ flowSet?: Array<FlowSetRequest>;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof PatchedSourceStageRequest
45
+ */
46
+ source?: string;
47
+ /**
48
+ * Amount of time a user can take to return from the source to continue the flow (Format: hours=-1;minutes=-2;seconds=-3)
49
+ * @type {string}
50
+ * @memberof PatchedSourceStageRequest
51
+ */
52
+ resumeTimeout?: string;
53
+ }
54
+
55
+ /**
56
+ * Check if a given object implements the PatchedSourceStageRequest interface.
57
+ */
58
+ export function instanceOfPatchedSourceStageRequest(value: object): boolean {
59
+ let isInstance = true;
60
+
61
+ return isInstance;
62
+ }
63
+
64
+ export function PatchedSourceStageRequestFromJSON(json: any): PatchedSourceStageRequest {
65
+ return PatchedSourceStageRequestFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function PatchedSourceStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedSourceStageRequest {
69
+ if ((json === undefined) || (json === null)) {
70
+ return json;
71
+ }
72
+ return {
73
+
74
+ 'name': !exists(json, 'name') ? undefined : json['name'],
75
+ 'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetRequestFromJSON)),
76
+ 'source': !exists(json, 'source') ? undefined : json['source'],
77
+ 'resumeTimeout': !exists(json, 'resume_timeout') ? undefined : json['resume_timeout'],
78
+ };
79
+ }
80
+
81
+ export function PatchedSourceStageRequestToJSON(value?: PatchedSourceStageRequest | null): any {
82
+ if (value === undefined) {
83
+ return undefined;
84
+ }
85
+ if (value === null) {
86
+ return null;
87
+ }
88
+ return {
89
+
90
+ 'name': value.name,
91
+ 'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetRequestToJSON)),
92
+ 'source': value.source,
93
+ 'resume_timeout': value.resumeTimeout,
94
+ };
95
+ }
96
+
@@ -0,0 +1,138 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.2.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
+ import type { FlowSet } from './FlowSet';
17
+ import {
18
+ FlowSetFromJSON,
19
+ FlowSetFromJSONTyped,
20
+ FlowSetToJSON,
21
+ } from './FlowSet';
22
+
23
+ /**
24
+ * SourceStage Serializer
25
+ * @export
26
+ * @interface SourceStage
27
+ */
28
+ export interface SourceStage {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof SourceStage
33
+ */
34
+ readonly pk: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof SourceStage
39
+ */
40
+ name: string;
41
+ /**
42
+ * Get object type so that we know how to edit the object
43
+ * @type {string}
44
+ * @memberof SourceStage
45
+ */
46
+ readonly component: string;
47
+ /**
48
+ * Return object's verbose_name
49
+ * @type {string}
50
+ * @memberof SourceStage
51
+ */
52
+ readonly verboseName: string;
53
+ /**
54
+ * Return object's plural verbose_name
55
+ * @type {string}
56
+ * @memberof SourceStage
57
+ */
58
+ readonly verboseNamePlural: string;
59
+ /**
60
+ * Return internal model name
61
+ * @type {string}
62
+ * @memberof SourceStage
63
+ */
64
+ readonly metaModelName: string;
65
+ /**
66
+ *
67
+ * @type {Array<FlowSet>}
68
+ * @memberof SourceStage
69
+ */
70
+ flowSet?: Array<FlowSet>;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof SourceStage
75
+ */
76
+ source: string;
77
+ /**
78
+ * Amount of time a user can take to return from the source to continue the flow (Format: hours=-1;minutes=-2;seconds=-3)
79
+ * @type {string}
80
+ * @memberof SourceStage
81
+ */
82
+ resumeTimeout?: string;
83
+ }
84
+
85
+ /**
86
+ * Check if a given object implements the SourceStage interface.
87
+ */
88
+ export function instanceOfSourceStage(value: object): boolean {
89
+ let isInstance = true;
90
+ isInstance = isInstance && "pk" in value;
91
+ isInstance = isInstance && "name" in value;
92
+ isInstance = isInstance && "component" in value;
93
+ isInstance = isInstance && "verboseName" in value;
94
+ isInstance = isInstance && "verboseNamePlural" in value;
95
+ isInstance = isInstance && "metaModelName" in value;
96
+ isInstance = isInstance && "source" in value;
97
+
98
+ return isInstance;
99
+ }
100
+
101
+ export function SourceStageFromJSON(json: any): SourceStage {
102
+ return SourceStageFromJSONTyped(json, false);
103
+ }
104
+
105
+ export function SourceStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceStage {
106
+ if ((json === undefined) || (json === null)) {
107
+ return json;
108
+ }
109
+ return {
110
+
111
+ 'pk': json['pk'],
112
+ 'name': json['name'],
113
+ 'component': json['component'],
114
+ 'verboseName': json['verbose_name'],
115
+ 'verboseNamePlural': json['verbose_name_plural'],
116
+ 'metaModelName': json['meta_model_name'],
117
+ 'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetFromJSON)),
118
+ 'source': json['source'],
119
+ 'resumeTimeout': !exists(json, 'resume_timeout') ? undefined : json['resume_timeout'],
120
+ };
121
+ }
122
+
123
+ export function SourceStageToJSON(value?: SourceStage | null): any {
124
+ if (value === undefined) {
125
+ return undefined;
126
+ }
127
+ if (value === null) {
128
+ return null;
129
+ }
130
+ return {
131
+
132
+ 'name': value.name,
133
+ 'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetToJSON)),
134
+ 'source': value.source,
135
+ 'resume_timeout': value.resumeTimeout,
136
+ };
137
+ }
138
+
@@ -0,0 +1,98 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.2.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
+ import type { FlowSetRequest } from './FlowSetRequest';
17
+ import {
18
+ FlowSetRequestFromJSON,
19
+ FlowSetRequestFromJSONTyped,
20
+ FlowSetRequestToJSON,
21
+ } from './FlowSetRequest';
22
+
23
+ /**
24
+ * SourceStage Serializer
25
+ * @export
26
+ * @interface SourceStageRequest
27
+ */
28
+ export interface SourceStageRequest {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof SourceStageRequest
33
+ */
34
+ name: string;
35
+ /**
36
+ *
37
+ * @type {Array<FlowSetRequest>}
38
+ * @memberof SourceStageRequest
39
+ */
40
+ flowSet?: Array<FlowSetRequest>;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof SourceStageRequest
45
+ */
46
+ source: string;
47
+ /**
48
+ * Amount of time a user can take to return from the source to continue the flow (Format: hours=-1;minutes=-2;seconds=-3)
49
+ * @type {string}
50
+ * @memberof SourceStageRequest
51
+ */
52
+ resumeTimeout?: string;
53
+ }
54
+
55
+ /**
56
+ * Check if a given object implements the SourceStageRequest interface.
57
+ */
58
+ export function instanceOfSourceStageRequest(value: object): boolean {
59
+ let isInstance = true;
60
+ isInstance = isInstance && "name" in value;
61
+ isInstance = isInstance && "source" in value;
62
+
63
+ return isInstance;
64
+ }
65
+
66
+ export function SourceStageRequestFromJSON(json: any): SourceStageRequest {
67
+ return SourceStageRequestFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function SourceStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceStageRequest {
71
+ if ((json === undefined) || (json === null)) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'name': json['name'],
77
+ 'flowSet': !exists(json, 'flow_set') ? undefined : ((json['flow_set'] as Array<any>).map(FlowSetRequestFromJSON)),
78
+ 'source': json['source'],
79
+ 'resumeTimeout': !exists(json, 'resume_timeout') ? undefined : json['resume_timeout'],
80
+ };
81
+ }
82
+
83
+ export function SourceStageRequestToJSON(value?: SourceStageRequest | null): any {
84
+ if (value === undefined) {
85
+ return undefined;
86
+ }
87
+ if (value === null) {
88
+ return null;
89
+ }
90
+ return {
91
+
92
+ 'name': value.name,
93
+ 'flow_set': value.flowSet === undefined ? undefined : ((value.flowSet as Array<any>).map(FlowSetRequestToJSON)),
94
+ 'source': value.source,
95
+ 'resume_timeout': value.resumeTimeout,
96
+ };
97
+ }
98
+
@@ -31,6 +31,12 @@ export interface Version {
31
31
  * @memberof Version
32
32
  */
33
33
  readonly versionLatest: string;
34
+ /**
35
+ * Latest version query is a valid non-default value
36
+ * @type {boolean}
37
+ * @memberof Version
38
+ */
39
+ readonly versionLatestValid: boolean;
34
40
  /**
35
41
  * Get build hash, if version is not latest or released
36
42
  * @type {string}
@@ -52,6 +58,7 @@ export function instanceOfVersion(value: object): boolean {
52
58
  let isInstance = true;
53
59
  isInstance = isInstance && "versionCurrent" in value;
54
60
  isInstance = isInstance && "versionLatest" in value;
61
+ isInstance = isInstance && "versionLatestValid" in value;
55
62
  isInstance = isInstance && "buildHash" in value;
56
63
  isInstance = isInstance && "outdated" in value;
57
64
 
@@ -70,6 +77,7 @@ export function VersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): V
70
77
 
71
78
  'versionCurrent': json['version_current'],
72
79
  'versionLatest': json['version_latest'],
80
+ 'versionLatestValid': json['version_latest_valid'],
73
81
  'buildHash': json['build_hash'],
74
82
  'outdated': json['outdated'],
75
83
  };
@@ -285,6 +285,7 @@ export * from './PaginatedSMSDeviceList';
285
285
  export * from './PaginatedScopeMappingList';
286
286
  export * from './PaginatedServiceConnectionList';
287
287
  export * from './PaginatedSourceList';
288
+ export * from './PaginatedSourceStageList';
288
289
  export * from './PaginatedStageList';
289
290
  export * from './PaginatedStaticDeviceList';
290
291
  export * from './PaginatedSystemTaskList';
@@ -377,6 +378,7 @@ export * from './PatchedSCIMProviderRequest';
377
378
  export * from './PatchedSMSDeviceRequest';
378
379
  export * from './PatchedScopeMappingRequest';
379
380
  export * from './PatchedSettingsRequest';
381
+ export * from './PatchedSourceStageRequest';
380
382
  export * from './PatchedStaticDeviceRequest';
381
383
  export * from './PatchedTOTPDeviceRequest';
382
384
  export * from './PatchedTenantRequest';
@@ -469,6 +471,8 @@ export * from './ShellChallenge';
469
471
  export * from './SignatureAlgorithmEnum';
470
472
  export * from './Source';
471
473
  export * from './SourceRequest';
474
+ export * from './SourceStage';
475
+ export * from './SourceStageRequest';
472
476
  export * from './SourceType';
473
477
  export * from './SpBindingEnum';
474
478
  export * from './Stage';