@goauthentik/api 2022.9.0-1665760108 → 2022.9.0-1666123490
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 +1 -0
- package/dist/apis/FlowsApi.d.ts +4 -4
- package/dist/apis/FlowsApi.js +6 -5
- package/dist/esm/apis/FlowsApi.d.ts +4 -4
- package/dist/esm/apis/FlowsApi.js +7 -6
- package/dist/esm/models/FlowImportResult.d.ts +35 -0
- package/dist/esm/models/FlowImportResult.js +34 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/FlowImportResult.d.ts +35 -0
- package/dist/models/FlowImportResult.js +40 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/FlowsApi.ts +10 -6
- package/src/models/FlowImportResult.ts +62 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -136,6 +136,7 @@ src/models/FlowChallengeResponseRequest.ts
|
|
|
136
136
|
src/models/FlowDesignationEnum.ts
|
|
137
137
|
src/models/FlowDiagram.ts
|
|
138
138
|
src/models/FlowErrorChallenge.ts
|
|
139
|
+
src/models/FlowImportResult.ts
|
|
139
140
|
src/models/FlowInspection.ts
|
|
140
141
|
src/models/FlowInspectorPlan.ts
|
|
141
142
|
src/models/FlowInspectorPlanCurrentStage.ts
|
package/dist/apis/FlowsApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Cache, ChallengeTypes, FilePathRequest, Flow, FlowChallengeResponseRequest, FlowDiagram, FlowInspection, FlowRequest, FlowStageBinding, FlowStageBindingRequest, Link, PaginatedFlowList, PaginatedFlowStageBindingList, PatchedFlowRequest, PatchedFlowStageBindingRequest, UsedBy } from '../models';
|
|
13
|
+
import { Cache, ChallengeTypes, FilePathRequest, Flow, FlowChallengeResponseRequest, FlowDiagram, FlowImportResult, FlowInspection, FlowRequest, FlowStageBinding, FlowStageBindingRequest, Link, PaginatedFlowList, PaginatedFlowStageBindingList, PatchedFlowRequest, PatchedFlowStageBindingRequest, UsedBy } from '../models';
|
|
14
14
|
export interface FlowsBindingsCreateRequest {
|
|
15
15
|
flowStageBindingRequest: FlowStageBindingRequest;
|
|
16
16
|
}
|
|
@@ -74,7 +74,7 @@ export interface FlowsInstancesExecuteRetrieveRequest {
|
|
|
74
74
|
export interface FlowsInstancesExportRetrieveRequest {
|
|
75
75
|
slug: string;
|
|
76
76
|
}
|
|
77
|
-
export interface
|
|
77
|
+
export interface FlowsInstancesImportCreateRequest {
|
|
78
78
|
file?: Blob;
|
|
79
79
|
clear?: boolean;
|
|
80
80
|
}
|
|
@@ -255,11 +255,11 @@ export declare class FlowsApi extends runtime.BaseAPI {
|
|
|
255
255
|
/**
|
|
256
256
|
* Import flow from .yaml file
|
|
257
257
|
*/
|
|
258
|
-
|
|
258
|
+
flowsInstancesImportCreateRaw(requestParameters: FlowsInstancesImportCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<FlowImportResult>>;
|
|
259
259
|
/**
|
|
260
260
|
* Import flow from .yaml file
|
|
261
261
|
*/
|
|
262
|
-
|
|
262
|
+
flowsInstancesImportCreate(requestParameters?: FlowsInstancesImportCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<FlowImportResult>;
|
|
263
263
|
/**
|
|
264
264
|
* Flow Viewset
|
|
265
265
|
*/
|
package/dist/apis/FlowsApi.js
CHANGED
|
@@ -614,7 +614,7 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
614
614
|
/**
|
|
615
615
|
* Import flow from .yaml file
|
|
616
616
|
*/
|
|
617
|
-
|
|
617
|
+
flowsInstancesImportCreateRaw(requestParameters, initOverrides) {
|
|
618
618
|
return __awaiter(this, void 0, void 0, function* () {
|
|
619
619
|
const queryParameters = {};
|
|
620
620
|
const headerParameters = {};
|
|
@@ -643,21 +643,22 @@ class FlowsApi extends runtime.BaseAPI {
|
|
|
643
643
|
formParams.append('clear', requestParameters.clear);
|
|
644
644
|
}
|
|
645
645
|
const response = yield this.request({
|
|
646
|
-
path: `/flows/instances/
|
|
646
|
+
path: `/flows/instances/import/`,
|
|
647
647
|
method: 'POST',
|
|
648
648
|
headers: headerParameters,
|
|
649
649
|
query: queryParameters,
|
|
650
650
|
body: formParams,
|
|
651
651
|
}, initOverrides);
|
|
652
|
-
return new runtime.
|
|
652
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, models_1.FlowImportResultFromJSON)(jsonValue));
|
|
653
653
|
});
|
|
654
654
|
}
|
|
655
655
|
/**
|
|
656
656
|
* Import flow from .yaml file
|
|
657
657
|
*/
|
|
658
|
-
|
|
658
|
+
flowsInstancesImportCreate(requestParameters = {}, initOverrides) {
|
|
659
659
|
return __awaiter(this, void 0, void 0, function* () {
|
|
660
|
-
yield this.
|
|
660
|
+
const response = yield this.flowsInstancesImportCreateRaw(requestParameters, initOverrides);
|
|
661
|
+
return yield response.value();
|
|
661
662
|
});
|
|
662
663
|
}
|
|
663
664
|
/**
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Cache, ChallengeTypes, FilePathRequest, Flow, FlowChallengeResponseRequest, FlowDiagram, FlowInspection, FlowRequest, FlowStageBinding, FlowStageBindingRequest, Link, PaginatedFlowList, PaginatedFlowStageBindingList, PatchedFlowRequest, PatchedFlowStageBindingRequest, UsedBy } from '../models';
|
|
13
|
+
import { Cache, ChallengeTypes, FilePathRequest, Flow, FlowChallengeResponseRequest, FlowDiagram, FlowImportResult, FlowInspection, FlowRequest, FlowStageBinding, FlowStageBindingRequest, Link, PaginatedFlowList, PaginatedFlowStageBindingList, PatchedFlowRequest, PatchedFlowStageBindingRequest, UsedBy } from '../models';
|
|
14
14
|
export interface FlowsBindingsCreateRequest {
|
|
15
15
|
flowStageBindingRequest: FlowStageBindingRequest;
|
|
16
16
|
}
|
|
@@ -74,7 +74,7 @@ export interface FlowsInstancesExecuteRetrieveRequest {
|
|
|
74
74
|
export interface FlowsInstancesExportRetrieveRequest {
|
|
75
75
|
slug: string;
|
|
76
76
|
}
|
|
77
|
-
export interface
|
|
77
|
+
export interface FlowsInstancesImportCreateRequest {
|
|
78
78
|
file?: Blob;
|
|
79
79
|
clear?: boolean;
|
|
80
80
|
}
|
|
@@ -255,11 +255,11 @@ export declare class FlowsApi extends runtime.BaseAPI {
|
|
|
255
255
|
/**
|
|
256
256
|
* Import flow from .yaml file
|
|
257
257
|
*/
|
|
258
|
-
|
|
258
|
+
flowsInstancesImportCreateRaw(requestParameters: FlowsInstancesImportCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<FlowImportResult>>;
|
|
259
259
|
/**
|
|
260
260
|
* Import flow from .yaml file
|
|
261
261
|
*/
|
|
262
|
-
|
|
262
|
+
flowsInstancesImportCreate(requestParameters?: FlowsInstancesImportCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<FlowImportResult>;
|
|
263
263
|
/**
|
|
264
264
|
* Flow Viewset
|
|
265
265
|
*/
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { CacheFromJSON, ChallengeTypesFromJSON, FilePathRequestToJSON, FlowFromJSON, FlowChallengeResponseRequestToJSON, FlowDiagramFromJSON, FlowInspectionFromJSON, FlowRequestToJSON, FlowStageBindingFromJSON, FlowStageBindingRequestToJSON, LinkFromJSON, PaginatedFlowListFromJSON, PaginatedFlowStageBindingListFromJSON, PatchedFlowRequestToJSON, PatchedFlowStageBindingRequestToJSON, UsedByFromJSON, } from '../models';
|
|
24
|
+
import { CacheFromJSON, ChallengeTypesFromJSON, FilePathRequestToJSON, FlowFromJSON, FlowChallengeResponseRequestToJSON, FlowDiagramFromJSON, FlowImportResultFromJSON, FlowInspectionFromJSON, FlowRequestToJSON, FlowStageBindingFromJSON, FlowStageBindingRequestToJSON, LinkFromJSON, PaginatedFlowListFromJSON, PaginatedFlowStageBindingListFromJSON, PatchedFlowRequestToJSON, PatchedFlowStageBindingRequestToJSON, UsedByFromJSON, } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -611,7 +611,7 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
611
611
|
/**
|
|
612
612
|
* Import flow from .yaml file
|
|
613
613
|
*/
|
|
614
|
-
|
|
614
|
+
flowsInstancesImportCreateRaw(requestParameters, initOverrides) {
|
|
615
615
|
return __awaiter(this, void 0, void 0, function* () {
|
|
616
616
|
const queryParameters = {};
|
|
617
617
|
const headerParameters = {};
|
|
@@ -640,21 +640,22 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
640
640
|
formParams.append('clear', requestParameters.clear);
|
|
641
641
|
}
|
|
642
642
|
const response = yield this.request({
|
|
643
|
-
path: `/flows/instances/
|
|
643
|
+
path: `/flows/instances/import/`,
|
|
644
644
|
method: 'POST',
|
|
645
645
|
headers: headerParameters,
|
|
646
646
|
query: queryParameters,
|
|
647
647
|
body: formParams,
|
|
648
648
|
}, initOverrides);
|
|
649
|
-
return new runtime.
|
|
649
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FlowImportResultFromJSON(jsonValue));
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
652
|
/**
|
|
653
653
|
* Import flow from .yaml file
|
|
654
654
|
*/
|
|
655
|
-
|
|
655
|
+
flowsInstancesImportCreate(requestParameters = {}, initOverrides) {
|
|
656
656
|
return __awaiter(this, void 0, void 0, function* () {
|
|
657
|
-
yield this.
|
|
657
|
+
const response = yield this.flowsInstancesImportCreateRaw(requestParameters, initOverrides);
|
|
658
|
+
return yield response.value();
|
|
658
659
|
});
|
|
659
660
|
}
|
|
660
661
|
/**
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.9.0
|
|
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
|
+
/**
|
|
13
|
+
* Logs of an attempted flow import
|
|
14
|
+
* @export
|
|
15
|
+
* @interface FlowImportResult
|
|
16
|
+
*/
|
|
17
|
+
export interface FlowImportResult {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
21
|
+
* @memberof FlowImportResult
|
|
22
|
+
*/
|
|
23
|
+
readonly logs: Array<{
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {boolean}
|
|
29
|
+
* @memberof FlowImportResult
|
|
30
|
+
*/
|
|
31
|
+
readonly success: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare function FlowImportResultFromJSON(json: any): FlowImportResult;
|
|
34
|
+
export declare function FlowImportResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowImportResult;
|
|
35
|
+
export declare function FlowImportResultToJSON(value?: FlowImportResult | null): any;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* authentik
|
|
5
|
+
* Making authentication simple.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2022.9.0
|
|
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
|
+
export function FlowImportResultFromJSON(json) {
|
|
15
|
+
return FlowImportResultFromJSONTyped(json, false);
|
|
16
|
+
}
|
|
17
|
+
export function FlowImportResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'logs': json['logs'],
|
|
23
|
+
'success': json['success'],
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export function FlowImportResultToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {};
|
|
34
|
+
}
|
|
@@ -113,6 +113,7 @@ export * from './FlowChallengeResponseRequest';
|
|
|
113
113
|
export * from './FlowDesignationEnum';
|
|
114
114
|
export * from './FlowDiagram';
|
|
115
115
|
export * from './FlowErrorChallenge';
|
|
116
|
+
export * from './FlowImportResult';
|
|
116
117
|
export * from './FlowInspection';
|
|
117
118
|
export * from './FlowInspectorPlan';
|
|
118
119
|
export * from './FlowInspectorPlanCurrentStage';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -115,6 +115,7 @@ export * from './FlowChallengeResponseRequest';
|
|
|
115
115
|
export * from './FlowDesignationEnum';
|
|
116
116
|
export * from './FlowDiagram';
|
|
117
117
|
export * from './FlowErrorChallenge';
|
|
118
|
+
export * from './FlowImportResult';
|
|
118
119
|
export * from './FlowInspection';
|
|
119
120
|
export * from './FlowInspectorPlan';
|
|
120
121
|
export * from './FlowInspectorPlanCurrentStage';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* authentik
|
|
3
|
+
* Making authentication simple.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2022.9.0
|
|
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
|
+
/**
|
|
13
|
+
* Logs of an attempted flow import
|
|
14
|
+
* @export
|
|
15
|
+
* @interface FlowImportResult
|
|
16
|
+
*/
|
|
17
|
+
export interface FlowImportResult {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
21
|
+
* @memberof FlowImportResult
|
|
22
|
+
*/
|
|
23
|
+
readonly logs: Array<{
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {boolean}
|
|
29
|
+
* @memberof FlowImportResult
|
|
30
|
+
*/
|
|
31
|
+
readonly success: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare function FlowImportResultFromJSON(json: any): FlowImportResult;
|
|
34
|
+
export declare function FlowImportResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowImportResult;
|
|
35
|
+
export declare function FlowImportResultToJSON(value?: FlowImportResult | null): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* authentik
|
|
6
|
+
* Making authentication simple.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2022.9.0
|
|
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.FlowImportResultToJSON = exports.FlowImportResultFromJSONTyped = exports.FlowImportResultFromJSON = void 0;
|
|
17
|
+
function FlowImportResultFromJSON(json) {
|
|
18
|
+
return FlowImportResultFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
exports.FlowImportResultFromJSON = FlowImportResultFromJSON;
|
|
21
|
+
function FlowImportResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'logs': json['logs'],
|
|
27
|
+
'success': json['success'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.FlowImportResultFromJSONTyped = FlowImportResultFromJSONTyped;
|
|
31
|
+
function FlowImportResultToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {};
|
|
39
|
+
}
|
|
40
|
+
exports.FlowImportResultToJSON = FlowImportResultToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -113,6 +113,7 @@ export * from './FlowChallengeResponseRequest';
|
|
|
113
113
|
export * from './FlowDesignationEnum';
|
|
114
114
|
export * from './FlowDiagram';
|
|
115
115
|
export * from './FlowErrorChallenge';
|
|
116
|
+
export * from './FlowImportResult';
|
|
116
117
|
export * from './FlowInspection';
|
|
117
118
|
export * from './FlowInspectorPlan';
|
|
118
119
|
export * from './FlowInspectorPlanCurrentStage';
|
package/dist/models/index.js
CHANGED
|
@@ -131,6 +131,7 @@ __exportStar(require("./FlowChallengeResponseRequest"), exports);
|
|
|
131
131
|
__exportStar(require("./FlowDesignationEnum"), exports);
|
|
132
132
|
__exportStar(require("./FlowDiagram"), exports);
|
|
133
133
|
__exportStar(require("./FlowErrorChallenge"), exports);
|
|
134
|
+
__exportStar(require("./FlowImportResult"), exports);
|
|
134
135
|
__exportStar(require("./FlowInspection"), exports);
|
|
135
136
|
__exportStar(require("./FlowInspectorPlan"), exports);
|
|
136
137
|
__exportStar(require("./FlowInspectorPlanCurrentStage"), exports);
|
package/package.json
CHANGED
package/src/apis/FlowsApi.ts
CHANGED
|
@@ -33,6 +33,9 @@ import {
|
|
|
33
33
|
FlowDiagram,
|
|
34
34
|
FlowDiagramFromJSON,
|
|
35
35
|
FlowDiagramToJSON,
|
|
36
|
+
FlowImportResult,
|
|
37
|
+
FlowImportResultFromJSON,
|
|
38
|
+
FlowImportResultToJSON,
|
|
36
39
|
FlowInspection,
|
|
37
40
|
FlowInspectionFromJSON,
|
|
38
41
|
FlowInspectionToJSON,
|
|
@@ -149,7 +152,7 @@ export interface FlowsInstancesExportRetrieveRequest {
|
|
|
149
152
|
slug: string;
|
|
150
153
|
}
|
|
151
154
|
|
|
152
|
-
export interface
|
|
155
|
+
export interface FlowsInstancesImportCreateRequest {
|
|
153
156
|
file?: Blob;
|
|
154
157
|
clear?: boolean;
|
|
155
158
|
}
|
|
@@ -857,7 +860,7 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
857
860
|
/**
|
|
858
861
|
* Import flow from .yaml file
|
|
859
862
|
*/
|
|
860
|
-
async
|
|
863
|
+
async flowsInstancesImportCreateRaw(requestParameters: FlowsInstancesImportCreateRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<FlowImportResult>> {
|
|
861
864
|
const queryParameters: any = {};
|
|
862
865
|
|
|
863
866
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -891,21 +894,22 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
891
894
|
}
|
|
892
895
|
|
|
893
896
|
const response = await this.request({
|
|
894
|
-
path: `/flows/instances/
|
|
897
|
+
path: `/flows/instances/import/`,
|
|
895
898
|
method: 'POST',
|
|
896
899
|
headers: headerParameters,
|
|
897
900
|
query: queryParameters,
|
|
898
901
|
body: formParams,
|
|
899
902
|
}, initOverrides);
|
|
900
903
|
|
|
901
|
-
return new runtime.
|
|
904
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FlowImportResultFromJSON(jsonValue));
|
|
902
905
|
}
|
|
903
906
|
|
|
904
907
|
/**
|
|
905
908
|
* Import flow from .yaml file
|
|
906
909
|
*/
|
|
907
|
-
async
|
|
908
|
-
await this.
|
|
910
|
+
async flowsInstancesImportCreate(requestParameters: FlowsInstancesImportCreateRequest = {}, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<FlowImportResult> {
|
|
911
|
+
const response = await this.flowsInstancesImportCreateRaw(requestParameters, initOverrides);
|
|
912
|
+
return await response.value();
|
|
909
913
|
}
|
|
910
914
|
|
|
911
915
|
/**
|
|
@@ -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: 2022.9.0
|
|
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
|
+
* Logs of an attempted flow import
|
|
18
|
+
* @export
|
|
19
|
+
* @interface FlowImportResult
|
|
20
|
+
*/
|
|
21
|
+
export interface FlowImportResult {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
25
|
+
* @memberof FlowImportResult
|
|
26
|
+
*/
|
|
27
|
+
readonly logs: Array<{ [key: string]: any; }>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof FlowImportResult
|
|
32
|
+
*/
|
|
33
|
+
readonly success: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function FlowImportResultFromJSON(json: any): FlowImportResult {
|
|
37
|
+
return FlowImportResultFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function FlowImportResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowImportResult {
|
|
41
|
+
if ((json === undefined) || (json === null)) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
|
|
46
|
+
'logs': json['logs'],
|
|
47
|
+
'success': json['success'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function FlowImportResultToJSON(value?: FlowImportResult | null): any {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -115,6 +115,7 @@ export * from './FlowChallengeResponseRequest';
|
|
|
115
115
|
export * from './FlowDesignationEnum';
|
|
116
116
|
export * from './FlowDiagram';
|
|
117
117
|
export * from './FlowErrorChallenge';
|
|
118
|
+
export * from './FlowImportResult';
|
|
118
119
|
export * from './FlowInspection';
|
|
119
120
|
export * from './FlowInspectorPlan';
|
|
120
121
|
export * from './FlowInspectorPlanCurrentStage';
|