@knowledge-stack/ksapi 1.62.2 → 1.64.0
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 +48 -0
- package/README.md +36 -2
- package/dist/apis/FeedbackApi.d.ts +170 -0
- package/dist/apis/FeedbackApi.js +176 -0
- package/dist/apis/WorkflowDefinitionsApi.d.ts +328 -0
- package/dist/apis/WorkflowDefinitionsApi.js +345 -0
- package/dist/apis/WorkflowRunsApi.d.ts +146 -0
- package/dist/apis/WorkflowRunsApi.js +160 -0
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +3 -0
- package/dist/esm/apis/FeedbackApi.d.ts +170 -0
- package/dist/esm/apis/FeedbackApi.js +172 -0
- package/dist/esm/apis/WorkflowDefinitionsApi.d.ts +328 -0
- package/dist/esm/apis/WorkflowDefinitionsApi.js +341 -0
- package/dist/esm/apis/WorkflowRunsApi.d.ts +146 -0
- package/dist/esm/apis/WorkflowRunsApi.js +156 -0
- package/dist/esm/apis/index.d.ts +3 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/models/ABCDPathSnapshot.d.ts +60 -0
- package/dist/esm/models/ABCDPathSnapshot.js +53 -0
- package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +97 -0
- package/dist/esm/models/CreateWorkflowDefinitionRequest.js +95 -0
- package/dist/esm/models/FeedbackEventResponse.d.ts +106 -0
- package/dist/esm/models/FeedbackEventResponse.js +83 -0
- package/dist/esm/models/FeedbackRating.d.ts +25 -0
- package/dist/esm/models/FeedbackRating.js +43 -0
- package/dist/esm/models/FeedbackReason.d.ts +34 -0
- package/dist/esm/models/FeedbackReason.js +52 -0
- package/dist/esm/models/FeedbackTargetType.d.ts +28 -0
- package/dist/esm/models/FeedbackTargetType.js +46 -0
- package/dist/esm/models/InvokeWorkflowRequest.d.ts +47 -0
- package/dist/esm/models/InvokeWorkflowRequest.js +46 -0
- package/dist/esm/models/PaginatedResponseFeedbackEventResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseFeedbackEventResponse.js +70 -0
- package/dist/esm/models/PaginatedResponseWorkflowDefinitionResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseWorkflowDefinitionResponse.js +70 -0
- package/dist/esm/models/PaginatedResponseWorkflowRunResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseWorkflowRunResponse.js +70 -0
- package/dist/esm/models/PartType.d.ts +2 -0
- package/dist/esm/models/PartType.js +3 -1
- package/dist/esm/models/ReferenceType.d.ts +2 -0
- package/dist/esm/models/ReferenceType.js +2 -0
- package/dist/esm/models/SelfHostedRunnerConfig.d.ts +53 -0
- package/dist/esm/models/SelfHostedRunnerConfig.js +53 -0
- package/dist/esm/models/SelfHostedRunnerConfigResponse.d.ts +47 -0
- package/dist/esm/models/SelfHostedRunnerConfigResponse.js +49 -0
- package/dist/esm/models/SubmitFeedbackRequest.d.ts +82 -0
- package/dist/esm/models/SubmitFeedbackRequest.js +65 -0
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +103 -0
- package/dist/esm/models/UpdateWorkflowDefinitionRequest.js +97 -0
- package/dist/esm/models/WorkflowCallbackResponse.d.ts +47 -0
- package/dist/esm/models/WorkflowCallbackResponse.js +44 -0
- package/dist/esm/models/WorkflowDefinitionResponse.d.ts +121 -0
- package/dist/esm/models/WorkflowDefinitionResponse.js +94 -0
- package/dist/esm/models/WorkflowRunCallbackRequest.d.ts +61 -0
- package/dist/esm/models/WorkflowRunCallbackRequest.js +57 -0
- package/dist/esm/models/WorkflowRunResponse.d.ts +110 -0
- package/dist/esm/models/WorkflowRunResponse.js +87 -0
- package/dist/esm/models/WorkflowRunSnapshot.d.ts +97 -0
- package/dist/esm/models/WorkflowRunSnapshot.js +78 -0
- package/dist/esm/models/WorkflowRunStatus.d.ts +27 -0
- package/dist/esm/models/WorkflowRunStatus.js +45 -0
- package/dist/esm/models/WorkflowRunnerType.d.ts +24 -0
- package/dist/esm/models/WorkflowRunnerType.js +42 -0
- package/dist/esm/models/index.d.ts +21 -0
- package/dist/esm/models/index.js +21 -0
- package/dist/models/ABCDPathSnapshot.d.ts +60 -0
- package/dist/models/ABCDPathSnapshot.js +61 -0
- package/dist/models/CreateWorkflowDefinitionRequest.d.ts +97 -0
- package/dist/models/CreateWorkflowDefinitionRequest.js +103 -0
- package/dist/models/FeedbackEventResponse.d.ts +106 -0
- package/dist/models/FeedbackEventResponse.js +91 -0
- package/dist/models/FeedbackRating.d.ts +25 -0
- package/dist/models/FeedbackRating.js +51 -0
- package/dist/models/FeedbackReason.d.ts +34 -0
- package/dist/models/FeedbackReason.js +60 -0
- package/dist/models/FeedbackTargetType.d.ts +28 -0
- package/dist/models/FeedbackTargetType.js +54 -0
- package/dist/models/InvokeWorkflowRequest.d.ts +47 -0
- package/dist/models/InvokeWorkflowRequest.js +54 -0
- package/dist/models/PaginatedResponseFeedbackEventResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseFeedbackEventResponse.js +78 -0
- package/dist/models/PaginatedResponseWorkflowDefinitionResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseWorkflowDefinitionResponse.js +78 -0
- package/dist/models/PaginatedResponseWorkflowRunResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseWorkflowRunResponse.js +78 -0
- package/dist/models/PartType.d.ts +2 -0
- package/dist/models/PartType.js +3 -1
- package/dist/models/ReferenceType.d.ts +2 -0
- package/dist/models/ReferenceType.js +2 -0
- package/dist/models/SelfHostedRunnerConfig.d.ts +53 -0
- package/dist/models/SelfHostedRunnerConfig.js +61 -0
- package/dist/models/SelfHostedRunnerConfigResponse.d.ts +47 -0
- package/dist/models/SelfHostedRunnerConfigResponse.js +57 -0
- package/dist/models/SubmitFeedbackRequest.d.ts +82 -0
- package/dist/models/SubmitFeedbackRequest.js +73 -0
- package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +103 -0
- package/dist/models/UpdateWorkflowDefinitionRequest.js +105 -0
- package/dist/models/WorkflowCallbackResponse.d.ts +47 -0
- package/dist/models/WorkflowCallbackResponse.js +52 -0
- package/dist/models/WorkflowDefinitionResponse.d.ts +121 -0
- package/dist/models/WorkflowDefinitionResponse.js +102 -0
- package/dist/models/WorkflowRunCallbackRequest.d.ts +61 -0
- package/dist/models/WorkflowRunCallbackRequest.js +65 -0
- package/dist/models/WorkflowRunResponse.d.ts +110 -0
- package/dist/models/WorkflowRunResponse.js +95 -0
- package/dist/models/WorkflowRunSnapshot.d.ts +97 -0
- package/dist/models/WorkflowRunSnapshot.js +86 -0
- package/dist/models/WorkflowRunStatus.d.ts +27 -0
- package/dist/models/WorkflowRunStatus.js +53 -0
- package/dist/models/WorkflowRunnerType.d.ts +24 -0
- package/dist/models/WorkflowRunnerType.js +50 -0
- package/dist/models/index.d.ts +21 -0
- package/dist/models/index.js +21 -0
- package/docs/ABCDPathSnapshot.md +39 -0
- package/docs/CreateWorkflowDefinitionRequest.md +51 -0
- package/docs/FeedbackApi.md +245 -0
- package/docs/FeedbackEventResponse.md +53 -0
- package/docs/FeedbackRating.md +32 -0
- package/docs/FeedbackReason.md +32 -0
- package/docs/FeedbackTargetType.md +32 -0
- package/docs/InvokeWorkflowRequest.md +35 -0
- package/docs/PaginatedResponseFeedbackEventResponse.md +40 -0
- package/docs/PaginatedResponseWorkflowDefinitionResponse.md +40 -0
- package/docs/PaginatedResponseWorkflowRunResponse.md +40 -0
- package/docs/SelfHostedRunnerConfig.md +37 -0
- package/docs/SelfHostedRunnerConfigResponse.md +35 -0
- package/docs/SubmitFeedbackRequest.md +45 -0
- package/docs/UpdateWorkflowDefinitionRequest.md +53 -0
- package/docs/WorkflowCallbackResponse.md +35 -0
- package/docs/WorkflowDefinitionResponse.md +59 -0
- package/docs/WorkflowDefinitionsApi.md +534 -0
- package/docs/WorkflowRunCallbackRequest.md +37 -0
- package/docs/WorkflowRunResponse.md +55 -0
- package/docs/WorkflowRunSnapshot.md +51 -0
- package/docs/WorkflowRunStatus.md +33 -0
- package/docs/WorkflowRunnerType.md +33 -0
- package/docs/WorkflowRunsApi.md +224 -0
- package/package.json +1 -1
- package/src/apis/FeedbackApi.ts +334 -0
- package/src/apis/WorkflowDefinitionsApi.ts +678 -0
- package/src/apis/WorkflowRunsApi.ts +296 -0
- package/src/apis/index.ts +3 -0
- package/src/models/ABCDPathSnapshot.ts +111 -0
- package/src/models/CreateWorkflowDefinitionRequest.ts +192 -0
- package/src/models/FeedbackEventResponse.ts +188 -0
- package/src/models/FeedbackRating.ts +53 -0
- package/src/models/FeedbackReason.ts +62 -0
- package/src/models/FeedbackTargetType.ts +56 -0
- package/src/models/InvokeWorkflowRequest.ts +85 -0
- package/src/models/PaginatedResponseFeedbackEventResponse.ts +130 -0
- package/src/models/PaginatedResponseWorkflowDefinitionResponse.ts +130 -0
- package/src/models/PaginatedResponseWorkflowRunResponse.ts +130 -0
- package/src/models/PartType.ts +3 -1
- package/src/models/ReferenceType.ts +2 -0
- package/src/models/SelfHostedRunnerConfig.ts +96 -0
- package/src/models/SelfHostedRunnerConfigResponse.ts +87 -0
- package/src/models/SubmitFeedbackRequest.ts +152 -0
- package/src/models/UpdateWorkflowDefinitionRequest.ts +200 -0
- package/src/models/WorkflowCallbackResponse.ts +83 -0
- package/src/models/WorkflowDefinitionResponse.ts +208 -0
- package/src/models/WorkflowRunCallbackRequest.ts +105 -0
- package/src/models/WorkflowRunResponse.ts +197 -0
- package/src/models/WorkflowRunSnapshot.ts +172 -0
- package/src/models/WorkflowRunStatus.ts +55 -0
- package/src/models/WorkflowRunnerType.ts +52 -0
- package/src/models/index.ts +21 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
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
|
+
* Configuration for self-hosted workflow runner.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SelfHostedRunnerConfig
|
|
16
|
+
*/
|
|
17
|
+
export interface SelfHostedRunnerConfig {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SelfHostedRunnerConfig
|
|
22
|
+
*/
|
|
23
|
+
url: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SelfHostedRunnerConfig
|
|
28
|
+
*/
|
|
29
|
+
webhookSecret: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the SelfHostedRunnerConfig interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfSelfHostedRunnerConfig(value: object): value is SelfHostedRunnerConfig;
|
|
35
|
+
export declare function SelfHostedRunnerConfigFromJSON(json: any): SelfHostedRunnerConfig;
|
|
36
|
+
export declare function SelfHostedRunnerConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelfHostedRunnerConfig;
|
|
37
|
+
export declare function SelfHostedRunnerConfigToJSON(json: any): SelfHostedRunnerConfig;
|
|
38
|
+
export declare function SelfHostedRunnerConfigToJSONTyped(value?: SelfHostedRunnerConfig | null, ignoreDiscriminator?: boolean): any;
|
|
39
|
+
export declare const SelfHostedRunnerConfigPropertyValidationAttributesMap: {
|
|
40
|
+
[property: string]: {
|
|
41
|
+
maxLength?: number;
|
|
42
|
+
minLength?: number;
|
|
43
|
+
pattern?: string;
|
|
44
|
+
maximum?: number;
|
|
45
|
+
exclusiveMaximum?: boolean;
|
|
46
|
+
minimum?: number;
|
|
47
|
+
exclusiveMinimum?: boolean;
|
|
48
|
+
multipleOf?: number;
|
|
49
|
+
maxItems?: number;
|
|
50
|
+
minItems?: number;
|
|
51
|
+
uniqueItems?: boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
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.SelfHostedRunnerConfigPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfSelfHostedRunnerConfig = instanceOfSelfHostedRunnerConfig;
|
|
18
|
+
exports.SelfHostedRunnerConfigFromJSON = SelfHostedRunnerConfigFromJSON;
|
|
19
|
+
exports.SelfHostedRunnerConfigFromJSONTyped = SelfHostedRunnerConfigFromJSONTyped;
|
|
20
|
+
exports.SelfHostedRunnerConfigToJSON = SelfHostedRunnerConfigToJSON;
|
|
21
|
+
exports.SelfHostedRunnerConfigToJSONTyped = SelfHostedRunnerConfigToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SelfHostedRunnerConfig interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSelfHostedRunnerConfig(value) {
|
|
26
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('webhookSecret' in value) || value['webhookSecret'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function SelfHostedRunnerConfigFromJSON(json) {
|
|
33
|
+
return SelfHostedRunnerConfigFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function SelfHostedRunnerConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'url': json['url'],
|
|
41
|
+
'webhookSecret': json['webhook_secret'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function SelfHostedRunnerConfigToJSON(json) {
|
|
45
|
+
return SelfHostedRunnerConfigToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function SelfHostedRunnerConfigToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'url': value['url'],
|
|
53
|
+
'webhook_secret': value['webhookSecret'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.SelfHostedRunnerConfigPropertyValidationAttributesMap = {
|
|
57
|
+
url: {
|
|
58
|
+
maxLength: 2083,
|
|
59
|
+
minLength: 1,
|
|
60
|
+
},
|
|
61
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
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
|
+
* Response-safe version of runner config — excludes webhook_secret.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SelfHostedRunnerConfigResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface SelfHostedRunnerConfigResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SelfHostedRunnerConfigResponse
|
|
22
|
+
*/
|
|
23
|
+
url: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SelfHostedRunnerConfigResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfSelfHostedRunnerConfigResponse(value: object): value is SelfHostedRunnerConfigResponse;
|
|
29
|
+
export declare function SelfHostedRunnerConfigResponseFromJSON(json: any): SelfHostedRunnerConfigResponse;
|
|
30
|
+
export declare function SelfHostedRunnerConfigResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SelfHostedRunnerConfigResponse;
|
|
31
|
+
export declare function SelfHostedRunnerConfigResponseToJSON(json: any): SelfHostedRunnerConfigResponse;
|
|
32
|
+
export declare function SelfHostedRunnerConfigResponseToJSONTyped(value?: SelfHostedRunnerConfigResponse | null, ignoreDiscriminator?: boolean): any;
|
|
33
|
+
export declare const SelfHostedRunnerConfigResponsePropertyValidationAttributesMap: {
|
|
34
|
+
[property: string]: {
|
|
35
|
+
maxLength?: number;
|
|
36
|
+
minLength?: number;
|
|
37
|
+
pattern?: string;
|
|
38
|
+
maximum?: number;
|
|
39
|
+
exclusiveMaximum?: boolean;
|
|
40
|
+
minimum?: number;
|
|
41
|
+
exclusiveMinimum?: boolean;
|
|
42
|
+
multipleOf?: number;
|
|
43
|
+
maxItems?: number;
|
|
44
|
+
minItems?: number;
|
|
45
|
+
uniqueItems?: boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
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.SelfHostedRunnerConfigResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfSelfHostedRunnerConfigResponse = instanceOfSelfHostedRunnerConfigResponse;
|
|
18
|
+
exports.SelfHostedRunnerConfigResponseFromJSON = SelfHostedRunnerConfigResponseFromJSON;
|
|
19
|
+
exports.SelfHostedRunnerConfigResponseFromJSONTyped = SelfHostedRunnerConfigResponseFromJSONTyped;
|
|
20
|
+
exports.SelfHostedRunnerConfigResponseToJSON = SelfHostedRunnerConfigResponseToJSON;
|
|
21
|
+
exports.SelfHostedRunnerConfigResponseToJSONTyped = SelfHostedRunnerConfigResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SelfHostedRunnerConfigResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSelfHostedRunnerConfigResponse(value) {
|
|
26
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function SelfHostedRunnerConfigResponseFromJSON(json) {
|
|
31
|
+
return SelfHostedRunnerConfigResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function SelfHostedRunnerConfigResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'url': json['url'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function SelfHostedRunnerConfigResponseToJSON(json) {
|
|
42
|
+
return SelfHostedRunnerConfigResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function SelfHostedRunnerConfigResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'url': value['url'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.SelfHostedRunnerConfigResponsePropertyValidationAttributesMap = {
|
|
53
|
+
url: {
|
|
54
|
+
maxLength: 2083,
|
|
55
|
+
minLength: 1,
|
|
56
|
+
},
|
|
57
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
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 { FeedbackTargetType } from './FeedbackTargetType';
|
|
13
|
+
import type { FeedbackRating } from './FeedbackRating';
|
|
14
|
+
import type { FeedbackReason } from './FeedbackReason';
|
|
15
|
+
/**
|
|
16
|
+
* Request to create or update feedback on a knowledge entity.
|
|
17
|
+
* @export
|
|
18
|
+
* @interface SubmitFeedbackRequest
|
|
19
|
+
*/
|
|
20
|
+
export interface SubmitFeedbackRequest {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {FeedbackTargetType}
|
|
24
|
+
* @memberof SubmitFeedbackRequest
|
|
25
|
+
*/
|
|
26
|
+
targetType: FeedbackTargetType;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof SubmitFeedbackRequest
|
|
31
|
+
*/
|
|
32
|
+
targetId: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {FeedbackRating}
|
|
36
|
+
* @memberof SubmitFeedbackRequest
|
|
37
|
+
*/
|
|
38
|
+
rating: FeedbackRating;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {FeedbackReason}
|
|
42
|
+
* @memberof SubmitFeedbackRequest
|
|
43
|
+
*/
|
|
44
|
+
reason?: FeedbackReason;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof SubmitFeedbackRequest
|
|
49
|
+
*/
|
|
50
|
+
comment?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {{ [key: string]: any; }}
|
|
54
|
+
* @memberof SubmitFeedbackRequest
|
|
55
|
+
*/
|
|
56
|
+
extraMetadata?: {
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
} | null;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the SubmitFeedbackRequest interface.
|
|
62
|
+
*/
|
|
63
|
+
export declare function instanceOfSubmitFeedbackRequest(value: object): value is SubmitFeedbackRequest;
|
|
64
|
+
export declare function SubmitFeedbackRequestFromJSON(json: any): SubmitFeedbackRequest;
|
|
65
|
+
export declare function SubmitFeedbackRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubmitFeedbackRequest;
|
|
66
|
+
export declare function SubmitFeedbackRequestToJSON(json: any): SubmitFeedbackRequest;
|
|
67
|
+
export declare function SubmitFeedbackRequestToJSONTyped(value?: SubmitFeedbackRequest | null, ignoreDiscriminator?: boolean): any;
|
|
68
|
+
export declare const SubmitFeedbackRequestPropertyValidationAttributesMap: {
|
|
69
|
+
[property: string]: {
|
|
70
|
+
maxLength?: number;
|
|
71
|
+
minLength?: number;
|
|
72
|
+
pattern?: string;
|
|
73
|
+
maximum?: number;
|
|
74
|
+
exclusiveMaximum?: boolean;
|
|
75
|
+
minimum?: number;
|
|
76
|
+
exclusiveMinimum?: boolean;
|
|
77
|
+
multipleOf?: number;
|
|
78
|
+
maxItems?: number;
|
|
79
|
+
minItems?: number;
|
|
80
|
+
uniqueItems?: boolean;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
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.SubmitFeedbackRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfSubmitFeedbackRequest = instanceOfSubmitFeedbackRequest;
|
|
18
|
+
exports.SubmitFeedbackRequestFromJSON = SubmitFeedbackRequestFromJSON;
|
|
19
|
+
exports.SubmitFeedbackRequestFromJSONTyped = SubmitFeedbackRequestFromJSONTyped;
|
|
20
|
+
exports.SubmitFeedbackRequestToJSON = SubmitFeedbackRequestToJSON;
|
|
21
|
+
exports.SubmitFeedbackRequestToJSONTyped = SubmitFeedbackRequestToJSONTyped;
|
|
22
|
+
const FeedbackTargetType_1 = require("./FeedbackTargetType");
|
|
23
|
+
const FeedbackRating_1 = require("./FeedbackRating");
|
|
24
|
+
const FeedbackReason_1 = require("./FeedbackReason");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the SubmitFeedbackRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfSubmitFeedbackRequest(value) {
|
|
29
|
+
if (!('targetType' in value) || value['targetType'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('targetId' in value) || value['targetId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('rating' in value) || value['rating'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function SubmitFeedbackRequestFromJSON(json) {
|
|
38
|
+
return SubmitFeedbackRequestFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function SubmitFeedbackRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'targetType': (0, FeedbackTargetType_1.FeedbackTargetTypeFromJSON)(json['target_type']),
|
|
46
|
+
'targetId': json['target_id'],
|
|
47
|
+
'rating': (0, FeedbackRating_1.FeedbackRatingFromJSON)(json['rating']),
|
|
48
|
+
'reason': json['reason'] == null ? undefined : (0, FeedbackReason_1.FeedbackReasonFromJSON)(json['reason']),
|
|
49
|
+
'comment': json['comment'] == null ? undefined : json['comment'],
|
|
50
|
+
'extraMetadata': json['extra_metadata'] == null ? undefined : json['extra_metadata'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function SubmitFeedbackRequestToJSON(json) {
|
|
54
|
+
return SubmitFeedbackRequestToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function SubmitFeedbackRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'target_type': (0, FeedbackTargetType_1.FeedbackTargetTypeToJSON)(value['targetType']),
|
|
62
|
+
'target_id': value['targetId'],
|
|
63
|
+
'rating': (0, FeedbackRating_1.FeedbackRatingToJSON)(value['rating']),
|
|
64
|
+
'reason': (0, FeedbackReason_1.FeedbackReasonToJSON)(value['reason']),
|
|
65
|
+
'comment': value['comment'],
|
|
66
|
+
'extra_metadata': value['extraMetadata'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
exports.SubmitFeedbackRequestPropertyValidationAttributesMap = {
|
|
70
|
+
comment: {
|
|
71
|
+
maxLength: 4000,
|
|
72
|
+
},
|
|
73
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
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 { SelfHostedRunnerConfig } from './SelfHostedRunnerConfig';
|
|
13
|
+
import type { WorkflowRunnerType } from './WorkflowRunnerType';
|
|
14
|
+
/**
|
|
15
|
+
* Full replacement (PUT semantics). All fields are required.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface UpdateWorkflowDefinitionRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateWorkflowDefinitionRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
30
|
+
*/
|
|
31
|
+
description?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {WorkflowRunnerType}
|
|
35
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
36
|
+
*/
|
|
37
|
+
runnerType: WorkflowRunnerType;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {SelfHostedRunnerConfig}
|
|
41
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
42
|
+
*/
|
|
43
|
+
runnerConfig?: SelfHostedRunnerConfig;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
48
|
+
*/
|
|
49
|
+
maxRunDurationSeconds?: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<string>}
|
|
53
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
54
|
+
*/
|
|
55
|
+
sourcePathPartIds: Array<string>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<string>}
|
|
59
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
60
|
+
*/
|
|
61
|
+
instructionPathPartIds: Array<string>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<string>}
|
|
65
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
66
|
+
*/
|
|
67
|
+
outputPathPartIds: Array<string>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
72
|
+
*/
|
|
73
|
+
templatePathPartId?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {boolean}
|
|
77
|
+
* @memberof UpdateWorkflowDefinitionRequest
|
|
78
|
+
*/
|
|
79
|
+
isActive?: boolean;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the UpdateWorkflowDefinitionRequest interface.
|
|
83
|
+
*/
|
|
84
|
+
export declare function instanceOfUpdateWorkflowDefinitionRequest(value: object): value is UpdateWorkflowDefinitionRequest;
|
|
85
|
+
export declare function UpdateWorkflowDefinitionRequestFromJSON(json: any): UpdateWorkflowDefinitionRequest;
|
|
86
|
+
export declare function UpdateWorkflowDefinitionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateWorkflowDefinitionRequest;
|
|
87
|
+
export declare function UpdateWorkflowDefinitionRequestToJSON(json: any): UpdateWorkflowDefinitionRequest;
|
|
88
|
+
export declare function UpdateWorkflowDefinitionRequestToJSONTyped(value?: UpdateWorkflowDefinitionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
89
|
+
export declare const UpdateWorkflowDefinitionRequestPropertyValidationAttributesMap: {
|
|
90
|
+
[property: string]: {
|
|
91
|
+
maxLength?: number;
|
|
92
|
+
minLength?: number;
|
|
93
|
+
pattern?: string;
|
|
94
|
+
maximum?: number;
|
|
95
|
+
exclusiveMaximum?: boolean;
|
|
96
|
+
minimum?: number;
|
|
97
|
+
exclusiveMinimum?: boolean;
|
|
98
|
+
multipleOf?: number;
|
|
99
|
+
maxItems?: number;
|
|
100
|
+
minItems?: number;
|
|
101
|
+
uniqueItems?: boolean;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
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.UpdateWorkflowDefinitionRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfUpdateWorkflowDefinitionRequest = instanceOfUpdateWorkflowDefinitionRequest;
|
|
18
|
+
exports.UpdateWorkflowDefinitionRequestFromJSON = UpdateWorkflowDefinitionRequestFromJSON;
|
|
19
|
+
exports.UpdateWorkflowDefinitionRequestFromJSONTyped = UpdateWorkflowDefinitionRequestFromJSONTyped;
|
|
20
|
+
exports.UpdateWorkflowDefinitionRequestToJSON = UpdateWorkflowDefinitionRequestToJSON;
|
|
21
|
+
exports.UpdateWorkflowDefinitionRequestToJSONTyped = UpdateWorkflowDefinitionRequestToJSONTyped;
|
|
22
|
+
const SelfHostedRunnerConfig_1 = require("./SelfHostedRunnerConfig");
|
|
23
|
+
const WorkflowRunnerType_1 = require("./WorkflowRunnerType");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the UpdateWorkflowDefinitionRequest interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfUpdateWorkflowDefinitionRequest(value) {
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('runnerType' in value) || value['runnerType'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('sourcePathPartIds' in value) || value['sourcePathPartIds'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('instructionPathPartIds' in value) || value['instructionPathPartIds'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('outputPathPartIds' in value) || value['outputPathPartIds'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function UpdateWorkflowDefinitionRequestFromJSON(json) {
|
|
41
|
+
return UpdateWorkflowDefinitionRequestFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UpdateWorkflowDefinitionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'name': json['name'],
|
|
49
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
50
|
+
'runnerType': (0, WorkflowRunnerType_1.WorkflowRunnerTypeFromJSON)(json['runner_type']),
|
|
51
|
+
'runnerConfig': json['runner_config'] == null ? undefined : (0, SelfHostedRunnerConfig_1.SelfHostedRunnerConfigFromJSON)(json['runner_config']),
|
|
52
|
+
'maxRunDurationSeconds': json['max_run_duration_seconds'] == null ? undefined : json['max_run_duration_seconds'],
|
|
53
|
+
'sourcePathPartIds': json['source_path_part_ids'],
|
|
54
|
+
'instructionPathPartIds': json['instruction_path_part_ids'],
|
|
55
|
+
'outputPathPartIds': json['output_path_part_ids'],
|
|
56
|
+
'templatePathPartId': json['template_path_part_id'] == null ? undefined : json['template_path_part_id'],
|
|
57
|
+
'isActive': json['is_active'] == null ? undefined : json['is_active'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function UpdateWorkflowDefinitionRequestToJSON(json) {
|
|
61
|
+
return UpdateWorkflowDefinitionRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function UpdateWorkflowDefinitionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'name': value['name'],
|
|
69
|
+
'description': value['description'],
|
|
70
|
+
'runner_type': (0, WorkflowRunnerType_1.WorkflowRunnerTypeToJSON)(value['runnerType']),
|
|
71
|
+
'runner_config': (0, SelfHostedRunnerConfig_1.SelfHostedRunnerConfigToJSON)(value['runnerConfig']),
|
|
72
|
+
'max_run_duration_seconds': value['maxRunDurationSeconds'],
|
|
73
|
+
'source_path_part_ids': value['sourcePathPartIds'],
|
|
74
|
+
'instruction_path_part_ids': value['instructionPathPartIds'],
|
|
75
|
+
'output_path_part_ids': value['outputPathPartIds'],
|
|
76
|
+
'template_path_part_id': value['templatePathPartId'],
|
|
77
|
+
'is_active': value['isActive'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
exports.UpdateWorkflowDefinitionRequestPropertyValidationAttributesMap = {
|
|
81
|
+
name: {
|
|
82
|
+
maxLength: 255,
|
|
83
|
+
},
|
|
84
|
+
maxRunDurationSeconds: {
|
|
85
|
+
maximum: 86400,
|
|
86
|
+
exclusiveMaximum: false,
|
|
87
|
+
minimum: 60,
|
|
88
|
+
exclusiveMinimum: false,
|
|
89
|
+
},
|
|
90
|
+
sourcePathPartIds: {
|
|
91
|
+
maxItems: 20,
|
|
92
|
+
minItems: 1,
|
|
93
|
+
uniqueItems: false,
|
|
94
|
+
},
|
|
95
|
+
instructionPathPartIds: {
|
|
96
|
+
maxItems: 20,
|
|
97
|
+
minItems: 1,
|
|
98
|
+
uniqueItems: false,
|
|
99
|
+
},
|
|
100
|
+
outputPathPartIds: {
|
|
101
|
+
maxItems: 20,
|
|
102
|
+
minItems: 1,
|
|
103
|
+
uniqueItems: false,
|
|
104
|
+
},
|
|
105
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
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
|
+
* Response from the runner callback endpoint.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WorkflowCallbackResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface WorkflowCallbackResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WorkflowCallbackResponse
|
|
22
|
+
*/
|
|
23
|
+
status: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the WorkflowCallbackResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfWorkflowCallbackResponse(value: object): value is WorkflowCallbackResponse;
|
|
29
|
+
export declare function WorkflowCallbackResponseFromJSON(json: any): WorkflowCallbackResponse;
|
|
30
|
+
export declare function WorkflowCallbackResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowCallbackResponse;
|
|
31
|
+
export declare function WorkflowCallbackResponseToJSON(json: any): WorkflowCallbackResponse;
|
|
32
|
+
export declare function WorkflowCallbackResponseToJSONTyped(value?: WorkflowCallbackResponse | null, ignoreDiscriminator?: boolean): any;
|
|
33
|
+
export declare const WorkflowCallbackResponsePropertyValidationAttributesMap: {
|
|
34
|
+
[property: string]: {
|
|
35
|
+
maxLength?: number;
|
|
36
|
+
minLength?: number;
|
|
37
|
+
pattern?: string;
|
|
38
|
+
maximum?: number;
|
|
39
|
+
exclusiveMaximum?: boolean;
|
|
40
|
+
minimum?: number;
|
|
41
|
+
exclusiveMinimum?: boolean;
|
|
42
|
+
multipleOf?: number;
|
|
43
|
+
maxItems?: number;
|
|
44
|
+
minItems?: number;
|
|
45
|
+
uniqueItems?: boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
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.WorkflowCallbackResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfWorkflowCallbackResponse = instanceOfWorkflowCallbackResponse;
|
|
18
|
+
exports.WorkflowCallbackResponseFromJSON = WorkflowCallbackResponseFromJSON;
|
|
19
|
+
exports.WorkflowCallbackResponseFromJSONTyped = WorkflowCallbackResponseFromJSONTyped;
|
|
20
|
+
exports.WorkflowCallbackResponseToJSON = WorkflowCallbackResponseToJSON;
|
|
21
|
+
exports.WorkflowCallbackResponseToJSONTyped = WorkflowCallbackResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the WorkflowCallbackResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfWorkflowCallbackResponse(value) {
|
|
26
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function WorkflowCallbackResponseFromJSON(json) {
|
|
31
|
+
return WorkflowCallbackResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function WorkflowCallbackResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'status': json['status'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function WorkflowCallbackResponseToJSON(json) {
|
|
42
|
+
return WorkflowCallbackResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function WorkflowCallbackResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'status': value['status'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.WorkflowCallbackResponsePropertyValidationAttributesMap = {};
|