@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
@@ -0,0 +1,62 @@
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
+ import { exists } from '../runtime';
15
+ import { FlowSetFromJSON, FlowSetToJSON, } from './FlowSet';
16
+ /**
17
+ * Check if a given object implements the SourceStage interface.
18
+ */
19
+ export function instanceOfSourceStage(value) {
20
+ let isInstance = true;
21
+ isInstance = isInstance && "pk" in value;
22
+ isInstance = isInstance && "name" in value;
23
+ isInstance = isInstance && "component" in value;
24
+ isInstance = isInstance && "verboseName" in value;
25
+ isInstance = isInstance && "verboseNamePlural" in value;
26
+ isInstance = isInstance && "metaModelName" in value;
27
+ isInstance = isInstance && "source" in value;
28
+ return isInstance;
29
+ }
30
+ export function SourceStageFromJSON(json) {
31
+ return SourceStageFromJSONTyped(json, false);
32
+ }
33
+ export function SourceStageFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'pk': json['pk'],
39
+ 'name': json['name'],
40
+ 'component': json['component'],
41
+ 'verboseName': json['verbose_name'],
42
+ 'verboseNamePlural': json['verbose_name_plural'],
43
+ 'metaModelName': json['meta_model_name'],
44
+ 'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetFromJSON)),
45
+ 'source': json['source'],
46
+ 'resumeTimeout': !exists(json, 'resume_timeout') ? undefined : json['resume_timeout'],
47
+ };
48
+ }
49
+ export function SourceStageToJSON(value) {
50
+ if (value === undefined) {
51
+ return undefined;
52
+ }
53
+ if (value === null) {
54
+ return null;
55
+ }
56
+ return {
57
+ 'name': value.name,
58
+ 'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetToJSON)),
59
+ 'source': value.source,
60
+ 'resume_timeout': value.resumeTimeout,
61
+ };
62
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.2.2
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { FlowSetRequest } from './FlowSetRequest';
13
+ /**
14
+ * SourceStage Serializer
15
+ * @export
16
+ * @interface SourceStageRequest
17
+ */
18
+ export interface SourceStageRequest {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof SourceStageRequest
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {Array<FlowSetRequest>}
28
+ * @memberof SourceStageRequest
29
+ */
30
+ flowSet?: Array<FlowSetRequest>;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof SourceStageRequest
35
+ */
36
+ source: string;
37
+ /**
38
+ * Amount of time a user can take to return from the source to continue the flow (Format: hours=-1;minutes=-2;seconds=-3)
39
+ * @type {string}
40
+ * @memberof SourceStageRequest
41
+ */
42
+ resumeTimeout?: string;
43
+ }
44
+ /**
45
+ * Check if a given object implements the SourceStageRequest interface.
46
+ */
47
+ export declare function instanceOfSourceStageRequest(value: object): boolean;
48
+ export declare function SourceStageRequestFromJSON(json: any): SourceStageRequest;
49
+ export declare function SourceStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceStageRequest;
50
+ export declare function SourceStageRequestToJSON(value?: SourceStageRequest | null): any;
@@ -0,0 +1,52 @@
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
+ import { exists } from '../runtime';
15
+ import { FlowSetRequestFromJSON, FlowSetRequestToJSON, } from './FlowSetRequest';
16
+ /**
17
+ * Check if a given object implements the SourceStageRequest interface.
18
+ */
19
+ export function instanceOfSourceStageRequest(value) {
20
+ let isInstance = true;
21
+ isInstance = isInstance && "name" in value;
22
+ isInstance = isInstance && "source" in value;
23
+ return isInstance;
24
+ }
25
+ export function SourceStageRequestFromJSON(json) {
26
+ return SourceStageRequestFromJSONTyped(json, false);
27
+ }
28
+ export function SourceStageRequestFromJSONTyped(json, ignoreDiscriminator) {
29
+ if ((json === undefined) || (json === null)) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'name': json['name'],
34
+ 'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
35
+ 'source': json['source'],
36
+ 'resumeTimeout': !exists(json, 'resume_timeout') ? undefined : json['resume_timeout'],
37
+ };
38
+ }
39
+ export function SourceStageRequestToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'name': value.name,
48
+ 'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequestToJSON)),
49
+ 'source': value.source,
50
+ 'resume_timeout': value.resumeTimeout,
51
+ };
52
+ }
@@ -27,6 +27,12 @@ export interface Version {
27
27
  * @memberof Version
28
28
  */
29
29
  readonly versionLatest: string;
30
+ /**
31
+ * Latest version query is a valid non-default value
32
+ * @type {boolean}
33
+ * @memberof Version
34
+ */
35
+ readonly versionLatestValid: boolean;
30
36
  /**
31
37
  * Get build hash, if version is not latest or released
32
38
  * @type {string}
@@ -18,6 +18,7 @@ export function instanceOfVersion(value) {
18
18
  let isInstance = true;
19
19
  isInstance = isInstance && "versionCurrent" in value;
20
20
  isInstance = isInstance && "versionLatest" in value;
21
+ isInstance = isInstance && "versionLatestValid" in value;
21
22
  isInstance = isInstance && "buildHash" in value;
22
23
  isInstance = isInstance && "outdated" in value;
23
24
  return isInstance;
@@ -32,6 +33,7 @@ export function VersionFromJSONTyped(json, ignoreDiscriminator) {
32
33
  return {
33
34
  'versionCurrent': json['version_current'],
34
35
  'versionLatest': json['version_latest'],
36
+ 'versionLatestValid': json['version_latest_valid'],
35
37
  'buildHash': json['build_hash'],
36
38
  'outdated': json['outdated'],
37
39
  };
@@ -283,6 +283,7 @@ export * from './PaginatedSMSDeviceList';
283
283
  export * from './PaginatedScopeMappingList';
284
284
  export * from './PaginatedServiceConnectionList';
285
285
  export * from './PaginatedSourceList';
286
+ export * from './PaginatedSourceStageList';
286
287
  export * from './PaginatedStageList';
287
288
  export * from './PaginatedStaticDeviceList';
288
289
  export * from './PaginatedSystemTaskList';
@@ -375,6 +376,7 @@ export * from './PatchedSCIMProviderRequest';
375
376
  export * from './PatchedSMSDeviceRequest';
376
377
  export * from './PatchedScopeMappingRequest';
377
378
  export * from './PatchedSettingsRequest';
379
+ export * from './PatchedSourceStageRequest';
378
380
  export * from './PatchedStaticDeviceRequest';
379
381
  export * from './PatchedTOTPDeviceRequest';
380
382
  export * from './PatchedTenantRequest';
@@ -467,6 +469,8 @@ export * from './ShellChallenge';
467
469
  export * from './SignatureAlgorithmEnum';
468
470
  export * from './Source';
469
471
  export * from './SourceRequest';
472
+ export * from './SourceStage';
473
+ export * from './SourceStageRequest';
470
474
  export * from './SourceType';
471
475
  export * from './SpBindingEnum';
472
476
  export * from './Stage';
@@ -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';
@@ -61,6 +61,7 @@
61
61
  * * `authentik.enterprise` - authentik Enterprise
62
62
  * * `authentik.enterprise.audit` - authentik Enterprise.Audit
63
63
  * * `authentik.enterprise.providers.rac` - authentik Enterprise.Providers.RAC
64
+ * * `authentik.enterprise.stages.source` - authentik Enterprise.Stages.Source
64
65
  * * `authentik.events` - authentik Events
65
66
  * @export
66
67
  */
@@ -116,6 +117,7 @@ export declare const AppEnum: {
116
117
  readonly Enterprise: "authentik.enterprise";
117
118
  readonly EnterpriseAudit: "authentik.enterprise.audit";
118
119
  readonly EnterpriseProvidersRac: "authentik.enterprise.providers.rac";
120
+ readonly EnterpriseStagesSource: "authentik.enterprise.stages.source";
119
121
  readonly Events: "authentik.events";
120
122
  readonly UnknownDefaultOpenApi: "11184809";
121
123
  };
@@ -66,6 +66,7 @@ exports.AppEnumToJSON = exports.AppEnumFromJSONTyped = exports.AppEnumFromJSON =
66
66
  * * `authentik.enterprise` - authentik Enterprise
67
67
  * * `authentik.enterprise.audit` - authentik Enterprise.Audit
68
68
  * * `authentik.enterprise.providers.rac` - authentik Enterprise.Providers.RAC
69
+ * * `authentik.enterprise.stages.source` - authentik Enterprise.Stages.Source
69
70
  * * `authentik.events` - authentik Events
70
71
  * @export
71
72
  */
@@ -121,6 +122,7 @@ exports.AppEnum = {
121
122
  Enterprise: 'authentik.enterprise',
122
123
  EnterpriseAudit: 'authentik.enterprise.audit',
123
124
  EnterpriseProvidersRac: 'authentik.enterprise.providers.rac',
125
+ EnterpriseStagesSource: 'authentik.enterprise.stages.source',
124
126
  Events: 'authentik.events',
125
127
  UnknownDefaultOpenApi: '11184809'
126
128
  };
@@ -44,6 +44,12 @@ export interface DummyChallenge {
44
44
  responseErrors?: {
45
45
  [key: string]: Array<ErrorDetail>;
46
46
  };
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof DummyChallenge
51
+ */
52
+ name: string;
47
53
  }
48
54
  /**
49
55
  * Check if a given object implements the DummyChallenge interface.
@@ -23,6 +23,7 @@ const ContextualFlowInfo_1 = require("./ContextualFlowInfo");
23
23
  function instanceOfDummyChallenge(value) {
24
24
  let isInstance = true;
25
25
  isInstance = isInstance && "type" in value;
26
+ isInstance = isInstance && "name" in value;
26
27
  return isInstance;
27
28
  }
28
29
  exports.instanceOfDummyChallenge = instanceOfDummyChallenge;
@@ -39,6 +40,7 @@ function DummyChallengeFromJSONTyped(json, ignoreDiscriminator) {
39
40
  'flowInfo': !(0, runtime_1.exists)(json, 'flow_info') ? undefined : (0, ContextualFlowInfo_1.ContextualFlowInfoFromJSON)(json['flow_info']),
40
41
  'component': !(0, runtime_1.exists)(json, 'component') ? undefined : json['component'],
41
42
  'responseErrors': !(0, runtime_1.exists)(json, 'response_errors') ? undefined : json['response_errors'],
43
+ 'name': json['name'],
42
44
  };
43
45
  }
44
46
  exports.DummyChallengeFromJSONTyped = DummyChallengeFromJSONTyped;
@@ -54,6 +56,7 @@ function DummyChallengeToJSON(value) {
54
56
  'flow_info': (0, ContextualFlowInfo_1.ContextualFlowInfoToJSON)(value.flowInfo),
55
57
  'component': value.component,
56
58
  'response_errors': value.responseErrors,
59
+ 'name': value.name,
57
60
  };
58
61
  }
59
62
  exports.DummyChallengeToJSON = DummyChallengeToJSON;
@@ -79,6 +79,7 @@
79
79
  * * `authentik_providers_rac.racprovider` - RAC Provider
80
80
  * * `authentik_providers_rac.endpoint` - RAC Endpoint
81
81
  * * `authentik_providers_rac.racpropertymapping` - RAC Property Mapping
82
+ * * `authentik_stages_source.sourcestage` - Source Stage
82
83
  * * `authentik_events.event` - Event
83
84
  * * `authentik_events.notificationtransport` - Notification Transport
84
85
  * * `authentik_events.notification` - Notification
@@ -156,6 +157,7 @@ export declare const ModelEnum: {
156
157
  readonly ProvidersRacRacprovider: "authentik_providers_rac.racprovider";
157
158
  readonly ProvidersRacEndpoint: "authentik_providers_rac.endpoint";
158
159
  readonly ProvidersRacRacpropertymapping: "authentik_providers_rac.racpropertymapping";
160
+ readonly StagesSourceSourcestage: "authentik_stages_source.sourcestage";
159
161
  readonly EventsEvent: "authentik_events.event";
160
162
  readonly EventsNotificationtransport: "authentik_events.notificationtransport";
161
163
  readonly EventsNotification: "authentik_events.notification";
@@ -84,6 +84,7 @@ exports.ModelEnumToJSON = exports.ModelEnumFromJSONTyped = exports.ModelEnumFrom
84
84
  * * `authentik_providers_rac.racprovider` - RAC Provider
85
85
  * * `authentik_providers_rac.endpoint` - RAC Endpoint
86
86
  * * `authentik_providers_rac.racpropertymapping` - RAC Property Mapping
87
+ * * `authentik_stages_source.sourcestage` - Source Stage
87
88
  * * `authentik_events.event` - Event
88
89
  * * `authentik_events.notificationtransport` - Notification Transport
89
90
  * * `authentik_events.notification` - Notification
@@ -161,6 +162,7 @@ exports.ModelEnum = {
161
162
  ProvidersRacRacprovider: 'authentik_providers_rac.racprovider',
162
163
  ProvidersRacEndpoint: 'authentik_providers_rac.endpoint',
163
164
  ProvidersRacRacpropertymapping: 'authentik_providers_rac.racpropertymapping',
165
+ StagesSourceSourcestage: 'authentik_stages_source.sourcestage',
164
166
  EventsEvent: 'authentik_events.event',
165
167
  EventsNotificationtransport: 'authentik_events.notificationtransport',
166
168
  EventsNotification: 'authentik_events.notification',
@@ -0,0 +1,39 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.2.2
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Pagination } from './Pagination';
13
+ import type { SourceStage } from './SourceStage';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedSourceStageList
18
+ */
19
+ export interface PaginatedSourceStageList {
20
+ /**
21
+ *
22
+ * @type {Pagination}
23
+ * @memberof PaginatedSourceStageList
24
+ */
25
+ pagination: Pagination;
26
+ /**
27
+ *
28
+ * @type {Array<SourceStage>}
29
+ * @memberof PaginatedSourceStageList
30
+ */
31
+ results: Array<SourceStage>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedSourceStageList interface.
35
+ */
36
+ export declare function instanceOfPaginatedSourceStageList(value: object): boolean;
37
+ export declare function PaginatedSourceStageListFromJSON(json: any): PaginatedSourceStageList;
38
+ export declare function PaginatedSourceStageListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSourceStageList;
39
+ export declare function PaginatedSourceStageListToJSON(value?: PaginatedSourceStageList | null): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2024.2.2
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PaginatedSourceStageListToJSON = exports.PaginatedSourceStageListFromJSONTyped = exports.PaginatedSourceStageListFromJSON = exports.instanceOfPaginatedSourceStageList = void 0;
17
+ const Pagination_1 = require("./Pagination");
18
+ const SourceStage_1 = require("./SourceStage");
19
+ /**
20
+ * Check if a given object implements the PaginatedSourceStageList interface.
21
+ */
22
+ function instanceOfPaginatedSourceStageList(value) {
23
+ let isInstance = true;
24
+ isInstance = isInstance && "pagination" in value;
25
+ isInstance = isInstance && "results" in value;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfPaginatedSourceStageList = instanceOfPaginatedSourceStageList;
29
+ function PaginatedSourceStageListFromJSON(json) {
30
+ return PaginatedSourceStageListFromJSONTyped(json, false);
31
+ }
32
+ exports.PaginatedSourceStageListFromJSON = PaginatedSourceStageListFromJSON;
33
+ function PaginatedSourceStageListFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'pagination': (0, Pagination_1.PaginationFromJSON)(json['pagination']),
39
+ 'results': (json['results'].map(SourceStage_1.SourceStageFromJSON)),
40
+ };
41
+ }
42
+ exports.PaginatedSourceStageListFromJSONTyped = PaginatedSourceStageListFromJSONTyped;
43
+ function PaginatedSourceStageListToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'pagination': (0, Pagination_1.PaginationToJSON)(value.pagination),
52
+ 'results': (value.results.map(SourceStage_1.SourceStageToJSON)),
53
+ };
54
+ }
55
+ exports.PaginatedSourceStageListToJSON = PaginatedSourceStageListToJSON;
@@ -0,0 +1,50 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.2.2
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { FlowSetRequest } from './FlowSetRequest';
13
+ /**
14
+ * SourceStage Serializer
15
+ * @export
16
+ * @interface PatchedSourceStageRequest
17
+ */
18
+ export interface PatchedSourceStageRequest {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof PatchedSourceStageRequest
23
+ */
24
+ name?: string;
25
+ /**
26
+ *
27
+ * @type {Array<FlowSetRequest>}
28
+ * @memberof PatchedSourceStageRequest
29
+ */
30
+ flowSet?: Array<FlowSetRequest>;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof PatchedSourceStageRequest
35
+ */
36
+ source?: string;
37
+ /**
38
+ * Amount of time a user can take to return from the source to continue the flow (Format: hours=-1;minutes=-2;seconds=-3)
39
+ * @type {string}
40
+ * @memberof PatchedSourceStageRequest
41
+ */
42
+ resumeTimeout?: string;
43
+ }
44
+ /**
45
+ * Check if a given object implements the PatchedSourceStageRequest interface.
46
+ */
47
+ export declare function instanceOfPatchedSourceStageRequest(value: object): boolean;
48
+ export declare function PatchedSourceStageRequestFromJSON(json: any): PatchedSourceStageRequest;
49
+ export declare function PatchedSourceStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedSourceStageRequest;
50
+ export declare function PatchedSourceStageRequestToJSON(value?: PatchedSourceStageRequest | null): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * authentik
6
+ * Making authentication simple.
7
+ *
8
+ * The version of the OpenAPI document: 2024.2.2
9
+ * Contact: hello@goauthentik.io
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PatchedSourceStageRequestToJSON = exports.PatchedSourceStageRequestFromJSONTyped = exports.PatchedSourceStageRequestFromJSON = exports.instanceOfPatchedSourceStageRequest = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const FlowSetRequest_1 = require("./FlowSetRequest");
19
+ /**
20
+ * Check if a given object implements the PatchedSourceStageRequest interface.
21
+ */
22
+ function instanceOfPatchedSourceStageRequest(value) {
23
+ let isInstance = true;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfPatchedSourceStageRequest = instanceOfPatchedSourceStageRequest;
27
+ function PatchedSourceStageRequestFromJSON(json) {
28
+ return PatchedSourceStageRequestFromJSONTyped(json, false);
29
+ }
30
+ exports.PatchedSourceStageRequestFromJSON = PatchedSourceStageRequestFromJSON;
31
+ function PatchedSourceStageRequestFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
37
+ 'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
38
+ 'source': !(0, runtime_1.exists)(json, 'source') ? undefined : json['source'],
39
+ 'resumeTimeout': !(0, runtime_1.exists)(json, 'resume_timeout') ? undefined : json['resume_timeout'],
40
+ };
41
+ }
42
+ exports.PatchedSourceStageRequestFromJSONTyped = PatchedSourceStageRequestFromJSONTyped;
43
+ function PatchedSourceStageRequestToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'name': value.name,
52
+ 'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequest_1.FlowSetRequestToJSON)),
53
+ 'source': value.source,
54
+ 'resume_timeout': value.resumeTimeout,
55
+ };
56
+ }
57
+ exports.PatchedSourceStageRequestToJSON = PatchedSourceStageRequestToJSON;
@@ -0,0 +1,80 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.2.2
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { FlowSet } from './FlowSet';
13
+ /**
14
+ * SourceStage Serializer
15
+ * @export
16
+ * @interface SourceStage
17
+ */
18
+ export interface SourceStage {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof SourceStage
23
+ */
24
+ readonly pk: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof SourceStage
29
+ */
30
+ name: string;
31
+ /**
32
+ * Get object type so that we know how to edit the object
33
+ * @type {string}
34
+ * @memberof SourceStage
35
+ */
36
+ readonly component: string;
37
+ /**
38
+ * Return object's verbose_name
39
+ * @type {string}
40
+ * @memberof SourceStage
41
+ */
42
+ readonly verboseName: string;
43
+ /**
44
+ * Return object's plural verbose_name
45
+ * @type {string}
46
+ * @memberof SourceStage
47
+ */
48
+ readonly verboseNamePlural: string;
49
+ /**
50
+ * Return internal model name
51
+ * @type {string}
52
+ * @memberof SourceStage
53
+ */
54
+ readonly metaModelName: string;
55
+ /**
56
+ *
57
+ * @type {Array<FlowSet>}
58
+ * @memberof SourceStage
59
+ */
60
+ flowSet?: Array<FlowSet>;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof SourceStage
65
+ */
66
+ source: string;
67
+ /**
68
+ * Amount of time a user can take to return from the source to continue the flow (Format: hours=-1;minutes=-2;seconds=-3)
69
+ * @type {string}
70
+ * @memberof SourceStage
71
+ */
72
+ resumeTimeout?: string;
73
+ }
74
+ /**
75
+ * Check if a given object implements the SourceStage interface.
76
+ */
77
+ export declare function instanceOfSourceStage(value: object): boolean;
78
+ export declare function SourceStageFromJSON(json: any): SourceStage;
79
+ export declare function SourceStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceStage;
80
+ export declare function SourceStageToJSON(value?: SourceStage | null): any;