@goauthentik/api 2024.2.2-1709583949 → 2024.2.2-1710521362
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 +4 -0
- package/dist/apis/RbacApi.d.ts +2 -0
- package/dist/apis/RbacApi.js +2 -0
- package/dist/apis/StagesApi.d.ts +87 -1
- package/dist/apis/StagesApi.js +246 -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 +87 -1
- package/dist/esm/apis/StagesApi.js +247 -1
- package/dist/esm/models/AppEnum.d.ts +2 -0
- package/dist/esm/models/AppEnum.js +2 -0
- package/dist/esm/models/DummyChallenge.d.ts +6 -0
- package/dist/esm/models/DummyChallenge.js +3 -0
- package/dist/esm/models/ModelEnum.d.ts +2 -0
- package/dist/esm/models/ModelEnum.js +2 -0
- package/dist/esm/models/PaginatedSourceStageList.d.ts +39 -0
- package/dist/esm/models/PaginatedSourceStageList.js +48 -0
- package/dist/esm/models/PatchedSourceStageRequest.d.ts +50 -0
- package/dist/esm/models/PatchedSourceStageRequest.js +50 -0
- package/dist/esm/models/SourceStage.d.ts +80 -0
- package/dist/esm/models/SourceStage.js +62 -0
- package/dist/esm/models/SourceStageRequest.d.ts +50 -0
- package/dist/esm/models/SourceStageRequest.js +52 -0
- package/dist/esm/models/Version.d.ts +6 -0
- package/dist/esm/models/Version.js +2 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/AppEnum.d.ts +2 -0
- package/dist/models/AppEnum.js +2 -0
- package/dist/models/DummyChallenge.d.ts +6 -0
- package/dist/models/DummyChallenge.js +3 -0
- package/dist/models/ModelEnum.d.ts +2 -0
- package/dist/models/ModelEnum.js +2 -0
- package/dist/models/PaginatedSourceStageList.d.ts +39 -0
- package/dist/models/PaginatedSourceStageList.js +55 -0
- package/dist/models/PatchedSourceStageRequest.d.ts +50 -0
- package/dist/models/PatchedSourceStageRequest.js +57 -0
- package/dist/models/SourceStage.d.ts +80 -0
- package/dist/models/SourceStage.js +69 -0
- package/dist/models/SourceStageRequest.d.ts +50 -0
- package/dist/models/SourceStageRequest.js +59 -0
- package/dist/models/Version.d.ts +6 -0
- package/dist/models/Version.js +2 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/RbacApi.ts +2 -0
- package/src/apis/StagesApi.ts +327 -0
- package/src/models/AppEnum.ts +2 -0
- package/src/models/DummyChallenge.ts +9 -0
- package/src/models/ModelEnum.ts +2 -0
- package/src/models/PaginatedSourceStageList.ts +88 -0
- package/src/models/PatchedSourceStageRequest.ts +96 -0
- package/src/models/SourceStage.ts +138 -0
- package/src/models/SourceStageRequest.ts +98 -0
- package/src/models/Version.ts +8 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,69 @@
|
|
|
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.SourceStageToJSON = exports.SourceStageFromJSONTyped = exports.SourceStageFromJSON = exports.instanceOfSourceStage = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const FlowSet_1 = require("./FlowSet");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the SourceStage interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfSourceStage(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "pk" in value;
|
|
25
|
+
isInstance = isInstance && "name" in value;
|
|
26
|
+
isInstance = isInstance && "component" in value;
|
|
27
|
+
isInstance = isInstance && "verboseName" in value;
|
|
28
|
+
isInstance = isInstance && "verboseNamePlural" in value;
|
|
29
|
+
isInstance = isInstance && "metaModelName" in value;
|
|
30
|
+
isInstance = isInstance && "source" in value;
|
|
31
|
+
return isInstance;
|
|
32
|
+
}
|
|
33
|
+
exports.instanceOfSourceStage = instanceOfSourceStage;
|
|
34
|
+
function SourceStageFromJSON(json) {
|
|
35
|
+
return SourceStageFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
exports.SourceStageFromJSON = SourceStageFromJSON;
|
|
38
|
+
function SourceStageFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if ((json === undefined) || (json === null)) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'pk': json['pk'],
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'component': json['component'],
|
|
46
|
+
'verboseName': json['verbose_name'],
|
|
47
|
+
'verboseNamePlural': json['verbose_name_plural'],
|
|
48
|
+
'metaModelName': json['meta_model_name'],
|
|
49
|
+
'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSet_1.FlowSetFromJSON)),
|
|
50
|
+
'source': json['source'],
|
|
51
|
+
'resumeTimeout': !(0, runtime_1.exists)(json, 'resume_timeout') ? undefined : json['resume_timeout'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.SourceStageFromJSONTyped = SourceStageFromJSONTyped;
|
|
55
|
+
function SourceStageToJSON(value) {
|
|
56
|
+
if (value === undefined) {
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
if (value === null) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'name': value.name,
|
|
64
|
+
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSet_1.FlowSetToJSON)),
|
|
65
|
+
'source': value.source,
|
|
66
|
+
'resume_timeout': value.resumeTimeout,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
exports.SourceStageToJSON = SourceStageToJSON;
|
|
@@ -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,59 @@
|
|
|
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.SourceStageRequestToJSON = exports.SourceStageRequestFromJSONTyped = exports.SourceStageRequestFromJSON = exports.instanceOfSourceStageRequest = void 0;
|
|
17
|
+
const runtime_1 = require("../runtime");
|
|
18
|
+
const FlowSetRequest_1 = require("./FlowSetRequest");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the SourceStageRequest interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfSourceStageRequest(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "name" in value;
|
|
25
|
+
isInstance = isInstance && "source" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfSourceStageRequest = instanceOfSourceStageRequest;
|
|
29
|
+
function SourceStageRequestFromJSON(json) {
|
|
30
|
+
return SourceStageRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.SourceStageRequestFromJSON = SourceStageRequestFromJSON;
|
|
33
|
+
function SourceStageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
'flowSet': !(0, runtime_1.exists)(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequest_1.FlowSetRequestFromJSON)),
|
|
40
|
+
'source': json['source'],
|
|
41
|
+
'resumeTimeout': !(0, runtime_1.exists)(json, 'resume_timeout') ? undefined : json['resume_timeout'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.SourceStageRequestFromJSONTyped = SourceStageRequestFromJSONTyped;
|
|
45
|
+
function SourceStageRequestToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'name': value.name,
|
|
54
|
+
'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequest_1.FlowSetRequestToJSON)),
|
|
55
|
+
'source': value.source,
|
|
56
|
+
'resume_timeout': value.resumeTimeout,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.SourceStageRequestToJSON = SourceStageRequestToJSON;
|
package/dist/models/Version.d.ts
CHANGED
|
@@ -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}
|
package/dist/models/Version.js
CHANGED
|
@@ -21,6 +21,7 @@ function instanceOfVersion(value) {
|
|
|
21
21
|
let isInstance = true;
|
|
22
22
|
isInstance = isInstance && "versionCurrent" in value;
|
|
23
23
|
isInstance = isInstance && "versionLatest" in value;
|
|
24
|
+
isInstance = isInstance && "versionLatestValid" in value;
|
|
24
25
|
isInstance = isInstance && "buildHash" in value;
|
|
25
26
|
isInstance = isInstance && "outdated" in value;
|
|
26
27
|
return isInstance;
|
|
@@ -37,6 +38,7 @@ function VersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
37
38
|
return {
|
|
38
39
|
'versionCurrent': json['version_current'],
|
|
39
40
|
'versionLatest': json['version_latest'],
|
|
41
|
+
'versionLatestValid': json['version_latest_valid'],
|
|
40
42
|
'buildHash': json['build_hash'],
|
|
41
43
|
'outdated': json['outdated'],
|
|
42
44
|
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/models/index.js
CHANGED
|
@@ -301,6 +301,7 @@ __exportStar(require("./PaginatedSMSDeviceList"), exports);
|
|
|
301
301
|
__exportStar(require("./PaginatedScopeMappingList"), exports);
|
|
302
302
|
__exportStar(require("./PaginatedServiceConnectionList"), exports);
|
|
303
303
|
__exportStar(require("./PaginatedSourceList"), exports);
|
|
304
|
+
__exportStar(require("./PaginatedSourceStageList"), exports);
|
|
304
305
|
__exportStar(require("./PaginatedStageList"), exports);
|
|
305
306
|
__exportStar(require("./PaginatedStaticDeviceList"), exports);
|
|
306
307
|
__exportStar(require("./PaginatedSystemTaskList"), exports);
|
|
@@ -393,6 +394,7 @@ __exportStar(require("./PatchedSCIMProviderRequest"), exports);
|
|
|
393
394
|
__exportStar(require("./PatchedSMSDeviceRequest"), exports);
|
|
394
395
|
__exportStar(require("./PatchedScopeMappingRequest"), exports);
|
|
395
396
|
__exportStar(require("./PatchedSettingsRequest"), exports);
|
|
397
|
+
__exportStar(require("./PatchedSourceStageRequest"), exports);
|
|
396
398
|
__exportStar(require("./PatchedStaticDeviceRequest"), exports);
|
|
397
399
|
__exportStar(require("./PatchedTOTPDeviceRequest"), exports);
|
|
398
400
|
__exportStar(require("./PatchedTenantRequest"), exports);
|
|
@@ -485,6 +487,8 @@ __exportStar(require("./ShellChallenge"), exports);
|
|
|
485
487
|
__exportStar(require("./SignatureAlgorithmEnum"), exports);
|
|
486
488
|
__exportStar(require("./Source"), exports);
|
|
487
489
|
__exportStar(require("./SourceRequest"), exports);
|
|
490
|
+
__exportStar(require("./SourceStage"), exports);
|
|
491
|
+
__exportStar(require("./SourceStageRequest"), exports);
|
|
488
492
|
__exportStar(require("./SourceType"), exports);
|
|
489
493
|
__exportStar(require("./SpBindingEnum"), exports);
|
|
490
494
|
__exportStar(require("./Stage"), exports);
|
package/package.json
CHANGED
package/src/apis/RbacApi.ts
CHANGED
|
@@ -990,6 +990,7 @@ export const RbacPermissionsAssignedByRolesListModelEnum = {
|
|
|
990
990
|
StagesPasswordPasswordstage: 'authentik_stages_password.passwordstage',
|
|
991
991
|
StagesPromptPrompt: 'authentik_stages_prompt.prompt',
|
|
992
992
|
StagesPromptPromptstage: 'authentik_stages_prompt.promptstage',
|
|
993
|
+
StagesSourceSourcestage: 'authentik_stages_source.sourcestage',
|
|
993
994
|
StagesUserDeleteUserdeletestage: 'authentik_stages_user_delete.userdeletestage',
|
|
994
995
|
StagesUserLoginUserloginstage: 'authentik_stages_user_login.userloginstage',
|
|
995
996
|
StagesUserLogoutUserlogoutstage: 'authentik_stages_user_logout.userlogoutstage',
|
|
@@ -1071,6 +1072,7 @@ export const RbacPermissionsAssignedByUsersListModelEnum = {
|
|
|
1071
1072
|
StagesPasswordPasswordstage: 'authentik_stages_password.passwordstage',
|
|
1072
1073
|
StagesPromptPrompt: 'authentik_stages_prompt.prompt',
|
|
1073
1074
|
StagesPromptPromptstage: 'authentik_stages_prompt.promptstage',
|
|
1075
|
+
StagesSourceSourcestage: 'authentik_stages_source.sourcestage',
|
|
1074
1076
|
StagesUserDeleteUserdeletestage: 'authentik_stages_user_delete.userdeletestage',
|
|
1075
1077
|
StagesUserLoginUserloginstage: 'authentik_stages_user_login.userloginstage',
|
|
1076
1078
|
StagesUserLogoutUserlogoutstage: 'authentik_stages_user_logout.userlogoutstage',
|
package/src/apis/StagesApi.ts
CHANGED
|
@@ -64,6 +64,7 @@ import type {
|
|
|
64
64
|
PaginatedPasswordStageList,
|
|
65
65
|
PaginatedPromptList,
|
|
66
66
|
PaginatedPromptStageList,
|
|
67
|
+
PaginatedSourceStageList,
|
|
67
68
|
PaginatedStageList,
|
|
68
69
|
PaginatedUserDeleteStageList,
|
|
69
70
|
PaginatedUserLoginStageList,
|
|
@@ -88,6 +89,7 @@ import type {
|
|
|
88
89
|
PatchedPasswordStageRequest,
|
|
89
90
|
PatchedPromptRequest,
|
|
90
91
|
PatchedPromptStageRequest,
|
|
92
|
+
PatchedSourceStageRequest,
|
|
91
93
|
PatchedUserDeleteStageRequest,
|
|
92
94
|
PatchedUserLoginStageRequest,
|
|
93
95
|
PatchedUserLogoutStageRequest,
|
|
@@ -97,6 +99,8 @@ import type {
|
|
|
97
99
|
PromptRequest,
|
|
98
100
|
PromptStage,
|
|
99
101
|
PromptStageRequest,
|
|
102
|
+
SourceStage,
|
|
103
|
+
SourceStageRequest,
|
|
100
104
|
Stage,
|
|
101
105
|
TypeCreate,
|
|
102
106
|
UsedBy,
|
|
@@ -210,6 +214,8 @@ import {
|
|
|
210
214
|
PaginatedPromptListToJSON,
|
|
211
215
|
PaginatedPromptStageListFromJSON,
|
|
212
216
|
PaginatedPromptStageListToJSON,
|
|
217
|
+
PaginatedSourceStageListFromJSON,
|
|
218
|
+
PaginatedSourceStageListToJSON,
|
|
213
219
|
PaginatedStageListFromJSON,
|
|
214
220
|
PaginatedStageListToJSON,
|
|
215
221
|
PaginatedUserDeleteStageListFromJSON,
|
|
@@ -258,6 +264,8 @@ import {
|
|
|
258
264
|
PatchedPromptRequestToJSON,
|
|
259
265
|
PatchedPromptStageRequestFromJSON,
|
|
260
266
|
PatchedPromptStageRequestToJSON,
|
|
267
|
+
PatchedSourceStageRequestFromJSON,
|
|
268
|
+
PatchedSourceStageRequestToJSON,
|
|
261
269
|
PatchedUserDeleteStageRequestFromJSON,
|
|
262
270
|
PatchedUserDeleteStageRequestToJSON,
|
|
263
271
|
PatchedUserLoginStageRequestFromJSON,
|
|
@@ -276,6 +284,10 @@ import {
|
|
|
276
284
|
PromptStageToJSON,
|
|
277
285
|
PromptStageRequestFromJSON,
|
|
278
286
|
PromptStageRequestToJSON,
|
|
287
|
+
SourceStageFromJSON,
|
|
288
|
+
SourceStageToJSON,
|
|
289
|
+
SourceStageRequestFromJSON,
|
|
290
|
+
SourceStageRequestToJSON,
|
|
279
291
|
StageFromJSON,
|
|
280
292
|
StageToJSON,
|
|
281
293
|
TypeCreateFromJSON,
|
|
@@ -992,6 +1004,43 @@ export interface StagesPromptStagesUsedByListRequest {
|
|
|
992
1004
|
stageUuid: string;
|
|
993
1005
|
}
|
|
994
1006
|
|
|
1007
|
+
export interface StagesSourceCreateRequest {
|
|
1008
|
+
sourceStageRequest: SourceStageRequest;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
export interface StagesSourceDestroyRequest {
|
|
1012
|
+
stageUuid: string;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
export interface StagesSourceListRequest {
|
|
1016
|
+
name?: string;
|
|
1017
|
+
ordering?: string;
|
|
1018
|
+
page?: number;
|
|
1019
|
+
pageSize?: number;
|
|
1020
|
+
resumeTimeout?: string;
|
|
1021
|
+
search?: string;
|
|
1022
|
+
source?: string;
|
|
1023
|
+
stageUuid?: string;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
export interface StagesSourcePartialUpdateRequest {
|
|
1027
|
+
stageUuid: string;
|
|
1028
|
+
patchedSourceStageRequest?: PatchedSourceStageRequest;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
export interface StagesSourceRetrieveRequest {
|
|
1032
|
+
stageUuid: string;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
export interface StagesSourceUpdateRequest {
|
|
1036
|
+
stageUuid: string;
|
|
1037
|
+
sourceStageRequest: SourceStageRequest;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
export interface StagesSourceUsedByListRequest {
|
|
1041
|
+
stageUuid: string;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
995
1044
|
export interface StagesUserDeleteCreateRequest {
|
|
996
1045
|
userDeleteStageRequest: UserDeleteStageRequest;
|
|
997
1046
|
}
|
|
@@ -6347,6 +6396,284 @@ export class StagesApi extends runtime.BaseAPI {
|
|
|
6347
6396
|
return await response.value();
|
|
6348
6397
|
}
|
|
6349
6398
|
|
|
6399
|
+
/**
|
|
6400
|
+
* SourceStage Viewset
|
|
6401
|
+
*/
|
|
6402
|
+
async stagesSourceCreateRaw(requestParameters: StagesSourceCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SourceStage>> {
|
|
6403
|
+
if (requestParameters.sourceStageRequest === null || requestParameters.sourceStageRequest === undefined) {
|
|
6404
|
+
throw new runtime.RequiredError('sourceStageRequest','Required parameter requestParameters.sourceStageRequest was null or undefined when calling stagesSourceCreate.');
|
|
6405
|
+
}
|
|
6406
|
+
|
|
6407
|
+
const queryParameters: any = {};
|
|
6408
|
+
|
|
6409
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
6410
|
+
|
|
6411
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
6412
|
+
|
|
6413
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
6414
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
6415
|
+
}
|
|
6416
|
+
|
|
6417
|
+
const response = await this.request({
|
|
6418
|
+
path: `/stages/source/`,
|
|
6419
|
+
method: 'POST',
|
|
6420
|
+
headers: headerParameters,
|
|
6421
|
+
query: queryParameters,
|
|
6422
|
+
body: SourceStageRequestToJSON(requestParameters.sourceStageRequest),
|
|
6423
|
+
}, initOverrides);
|
|
6424
|
+
|
|
6425
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SourceStageFromJSON(jsonValue));
|
|
6426
|
+
}
|
|
6427
|
+
|
|
6428
|
+
/**
|
|
6429
|
+
* SourceStage Viewset
|
|
6430
|
+
*/
|
|
6431
|
+
async stagesSourceCreate(requestParameters: StagesSourceCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SourceStage> {
|
|
6432
|
+
const response = await this.stagesSourceCreateRaw(requestParameters, initOverrides);
|
|
6433
|
+
return await response.value();
|
|
6434
|
+
}
|
|
6435
|
+
|
|
6436
|
+
/**
|
|
6437
|
+
* SourceStage Viewset
|
|
6438
|
+
*/
|
|
6439
|
+
async stagesSourceDestroyRaw(requestParameters: StagesSourceDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
6440
|
+
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
|
6441
|
+
throw new runtime.RequiredError('stageUuid','Required parameter requestParameters.stageUuid was null or undefined when calling stagesSourceDestroy.');
|
|
6442
|
+
}
|
|
6443
|
+
|
|
6444
|
+
const queryParameters: any = {};
|
|
6445
|
+
|
|
6446
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
6447
|
+
|
|
6448
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
6449
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
6450
|
+
}
|
|
6451
|
+
|
|
6452
|
+
const response = await this.request({
|
|
6453
|
+
path: `/stages/source/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
|
|
6454
|
+
method: 'DELETE',
|
|
6455
|
+
headers: headerParameters,
|
|
6456
|
+
query: queryParameters,
|
|
6457
|
+
}, initOverrides);
|
|
6458
|
+
|
|
6459
|
+
return new runtime.VoidApiResponse(response);
|
|
6460
|
+
}
|
|
6461
|
+
|
|
6462
|
+
/**
|
|
6463
|
+
* SourceStage Viewset
|
|
6464
|
+
*/
|
|
6465
|
+
async stagesSourceDestroy(requestParameters: StagesSourceDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
6466
|
+
await this.stagesSourceDestroyRaw(requestParameters, initOverrides);
|
|
6467
|
+
}
|
|
6468
|
+
|
|
6469
|
+
/**
|
|
6470
|
+
* SourceStage Viewset
|
|
6471
|
+
*/
|
|
6472
|
+
async stagesSourceListRaw(requestParameters: StagesSourceListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSourceStageList>> {
|
|
6473
|
+
const queryParameters: any = {};
|
|
6474
|
+
|
|
6475
|
+
if (requestParameters.name !== undefined) {
|
|
6476
|
+
queryParameters['name'] = requestParameters.name;
|
|
6477
|
+
}
|
|
6478
|
+
|
|
6479
|
+
if (requestParameters.ordering !== undefined) {
|
|
6480
|
+
queryParameters['ordering'] = requestParameters.ordering;
|
|
6481
|
+
}
|
|
6482
|
+
|
|
6483
|
+
if (requestParameters.page !== undefined) {
|
|
6484
|
+
queryParameters['page'] = requestParameters.page;
|
|
6485
|
+
}
|
|
6486
|
+
|
|
6487
|
+
if (requestParameters.pageSize !== undefined) {
|
|
6488
|
+
queryParameters['page_size'] = requestParameters.pageSize;
|
|
6489
|
+
}
|
|
6490
|
+
|
|
6491
|
+
if (requestParameters.resumeTimeout !== undefined) {
|
|
6492
|
+
queryParameters['resume_timeout'] = requestParameters.resumeTimeout;
|
|
6493
|
+
}
|
|
6494
|
+
|
|
6495
|
+
if (requestParameters.search !== undefined) {
|
|
6496
|
+
queryParameters['search'] = requestParameters.search;
|
|
6497
|
+
}
|
|
6498
|
+
|
|
6499
|
+
if (requestParameters.source !== undefined) {
|
|
6500
|
+
queryParameters['source'] = requestParameters.source;
|
|
6501
|
+
}
|
|
6502
|
+
|
|
6503
|
+
if (requestParameters.stageUuid !== undefined) {
|
|
6504
|
+
queryParameters['stage_uuid'] = requestParameters.stageUuid;
|
|
6505
|
+
}
|
|
6506
|
+
|
|
6507
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
6508
|
+
|
|
6509
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
6510
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
6511
|
+
}
|
|
6512
|
+
|
|
6513
|
+
const response = await this.request({
|
|
6514
|
+
path: `/stages/source/`,
|
|
6515
|
+
method: 'GET',
|
|
6516
|
+
headers: headerParameters,
|
|
6517
|
+
query: queryParameters,
|
|
6518
|
+
}, initOverrides);
|
|
6519
|
+
|
|
6520
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSourceStageListFromJSON(jsonValue));
|
|
6521
|
+
}
|
|
6522
|
+
|
|
6523
|
+
/**
|
|
6524
|
+
* SourceStage Viewset
|
|
6525
|
+
*/
|
|
6526
|
+
async stagesSourceList(requestParameters: StagesSourceListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSourceStageList> {
|
|
6527
|
+
const response = await this.stagesSourceListRaw(requestParameters, initOverrides);
|
|
6528
|
+
return await response.value();
|
|
6529
|
+
}
|
|
6530
|
+
|
|
6531
|
+
/**
|
|
6532
|
+
* SourceStage Viewset
|
|
6533
|
+
*/
|
|
6534
|
+
async stagesSourcePartialUpdateRaw(requestParameters: StagesSourcePartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SourceStage>> {
|
|
6535
|
+
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
|
6536
|
+
throw new runtime.RequiredError('stageUuid','Required parameter requestParameters.stageUuid was null or undefined when calling stagesSourcePartialUpdate.');
|
|
6537
|
+
}
|
|
6538
|
+
|
|
6539
|
+
const queryParameters: any = {};
|
|
6540
|
+
|
|
6541
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
6542
|
+
|
|
6543
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
6544
|
+
|
|
6545
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
6546
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
6547
|
+
}
|
|
6548
|
+
|
|
6549
|
+
const response = await this.request({
|
|
6550
|
+
path: `/stages/source/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
|
|
6551
|
+
method: 'PATCH',
|
|
6552
|
+
headers: headerParameters,
|
|
6553
|
+
query: queryParameters,
|
|
6554
|
+
body: PatchedSourceStageRequestToJSON(requestParameters.patchedSourceStageRequest),
|
|
6555
|
+
}, initOverrides);
|
|
6556
|
+
|
|
6557
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SourceStageFromJSON(jsonValue));
|
|
6558
|
+
}
|
|
6559
|
+
|
|
6560
|
+
/**
|
|
6561
|
+
* SourceStage Viewset
|
|
6562
|
+
*/
|
|
6563
|
+
async stagesSourcePartialUpdate(requestParameters: StagesSourcePartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SourceStage> {
|
|
6564
|
+
const response = await this.stagesSourcePartialUpdateRaw(requestParameters, initOverrides);
|
|
6565
|
+
return await response.value();
|
|
6566
|
+
}
|
|
6567
|
+
|
|
6568
|
+
/**
|
|
6569
|
+
* SourceStage Viewset
|
|
6570
|
+
*/
|
|
6571
|
+
async stagesSourceRetrieveRaw(requestParameters: StagesSourceRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SourceStage>> {
|
|
6572
|
+
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
|
6573
|
+
throw new runtime.RequiredError('stageUuid','Required parameter requestParameters.stageUuid was null or undefined when calling stagesSourceRetrieve.');
|
|
6574
|
+
}
|
|
6575
|
+
|
|
6576
|
+
const queryParameters: any = {};
|
|
6577
|
+
|
|
6578
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
6579
|
+
|
|
6580
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
6581
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
6582
|
+
}
|
|
6583
|
+
|
|
6584
|
+
const response = await this.request({
|
|
6585
|
+
path: `/stages/source/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
|
|
6586
|
+
method: 'GET',
|
|
6587
|
+
headers: headerParameters,
|
|
6588
|
+
query: queryParameters,
|
|
6589
|
+
}, initOverrides);
|
|
6590
|
+
|
|
6591
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SourceStageFromJSON(jsonValue));
|
|
6592
|
+
}
|
|
6593
|
+
|
|
6594
|
+
/**
|
|
6595
|
+
* SourceStage Viewset
|
|
6596
|
+
*/
|
|
6597
|
+
async stagesSourceRetrieve(requestParameters: StagesSourceRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SourceStage> {
|
|
6598
|
+
const response = await this.stagesSourceRetrieveRaw(requestParameters, initOverrides);
|
|
6599
|
+
return await response.value();
|
|
6600
|
+
}
|
|
6601
|
+
|
|
6602
|
+
/**
|
|
6603
|
+
* SourceStage Viewset
|
|
6604
|
+
*/
|
|
6605
|
+
async stagesSourceUpdateRaw(requestParameters: StagesSourceUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SourceStage>> {
|
|
6606
|
+
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
|
6607
|
+
throw new runtime.RequiredError('stageUuid','Required parameter requestParameters.stageUuid was null or undefined when calling stagesSourceUpdate.');
|
|
6608
|
+
}
|
|
6609
|
+
|
|
6610
|
+
if (requestParameters.sourceStageRequest === null || requestParameters.sourceStageRequest === undefined) {
|
|
6611
|
+
throw new runtime.RequiredError('sourceStageRequest','Required parameter requestParameters.sourceStageRequest was null or undefined when calling stagesSourceUpdate.');
|
|
6612
|
+
}
|
|
6613
|
+
|
|
6614
|
+
const queryParameters: any = {};
|
|
6615
|
+
|
|
6616
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
6617
|
+
|
|
6618
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
6619
|
+
|
|
6620
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
6621
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
6622
|
+
}
|
|
6623
|
+
|
|
6624
|
+
const response = await this.request({
|
|
6625
|
+
path: `/stages/source/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
|
|
6626
|
+
method: 'PUT',
|
|
6627
|
+
headers: headerParameters,
|
|
6628
|
+
query: queryParameters,
|
|
6629
|
+
body: SourceStageRequestToJSON(requestParameters.sourceStageRequest),
|
|
6630
|
+
}, initOverrides);
|
|
6631
|
+
|
|
6632
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SourceStageFromJSON(jsonValue));
|
|
6633
|
+
}
|
|
6634
|
+
|
|
6635
|
+
/**
|
|
6636
|
+
* SourceStage Viewset
|
|
6637
|
+
*/
|
|
6638
|
+
async stagesSourceUpdate(requestParameters: StagesSourceUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SourceStage> {
|
|
6639
|
+
const response = await this.stagesSourceUpdateRaw(requestParameters, initOverrides);
|
|
6640
|
+
return await response.value();
|
|
6641
|
+
}
|
|
6642
|
+
|
|
6643
|
+
/**
|
|
6644
|
+
* Get a list of all objects that use this object
|
|
6645
|
+
*/
|
|
6646
|
+
async stagesSourceUsedByListRaw(requestParameters: StagesSourceUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
|
|
6647
|
+
if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
|
|
6648
|
+
throw new runtime.RequiredError('stageUuid','Required parameter requestParameters.stageUuid was null or undefined when calling stagesSourceUsedByList.');
|
|
6649
|
+
}
|
|
6650
|
+
|
|
6651
|
+
const queryParameters: any = {};
|
|
6652
|
+
|
|
6653
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
6654
|
+
|
|
6655
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
6656
|
+
headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
|
|
6657
|
+
}
|
|
6658
|
+
|
|
6659
|
+
const response = await this.request({
|
|
6660
|
+
path: `/stages/source/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
|
|
6661
|
+
method: 'GET',
|
|
6662
|
+
headers: headerParameters,
|
|
6663
|
+
query: queryParameters,
|
|
6664
|
+
}, initOverrides);
|
|
6665
|
+
|
|
6666
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
|
6667
|
+
}
|
|
6668
|
+
|
|
6669
|
+
/**
|
|
6670
|
+
* Get a list of all objects that use this object
|
|
6671
|
+
*/
|
|
6672
|
+
async stagesSourceUsedByList(requestParameters: StagesSourceUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
|
|
6673
|
+
const response = await this.stagesSourceUsedByListRaw(requestParameters, initOverrides);
|
|
6674
|
+
return await response.value();
|
|
6675
|
+
}
|
|
6676
|
+
|
|
6350
6677
|
/**
|
|
6351
6678
|
* UserDeleteStage Viewset
|
|
6352
6679
|
*/
|
package/src/models/AppEnum.ts
CHANGED
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
* * `authentik.enterprise` - authentik Enterprise
|
|
66
66
|
* * `authentik.enterprise.audit` - authentik Enterprise.Audit
|
|
67
67
|
* * `authentik.enterprise.providers.rac` - authentik Enterprise.Providers.RAC
|
|
68
|
+
* * `authentik.enterprise.stages.source` - authentik Enterprise.Stages.Source
|
|
68
69
|
* * `authentik.events` - authentik Events
|
|
69
70
|
* @export
|
|
70
71
|
*/
|
|
@@ -120,6 +121,7 @@ export const AppEnum = {
|
|
|
120
121
|
Enterprise: 'authentik.enterprise',
|
|
121
122
|
EnterpriseAudit: 'authentik.enterprise.audit',
|
|
122
123
|
EnterpriseProvidersRac: 'authentik.enterprise.providers.rac',
|
|
124
|
+
EnterpriseStagesSource: 'authentik.enterprise.stages.source',
|
|
123
125
|
Events: 'authentik.events',
|
|
124
126
|
UnknownDefaultOpenApi: '11184809'
|
|
125
127
|
} as const;
|