@knowledge-stack/ksapi 1.63.0 → 1.64.1

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.
Files changed (131) hide show
  1. package/.openapi-generator/FILES +34 -0
  2. package/README.md +27 -2
  3. package/dist/apis/WorkflowDefinitionsApi.d.ts +328 -0
  4. package/dist/apis/WorkflowDefinitionsApi.js +345 -0
  5. package/dist/apis/WorkflowRunsApi.d.ts +146 -0
  6. package/dist/apis/WorkflowRunsApi.js +160 -0
  7. package/dist/apis/index.d.ts +2 -0
  8. package/dist/apis/index.js +2 -0
  9. package/dist/esm/apis/WorkflowDefinitionsApi.d.ts +328 -0
  10. package/dist/esm/apis/WorkflowDefinitionsApi.js +341 -0
  11. package/dist/esm/apis/WorkflowRunsApi.d.ts +146 -0
  12. package/dist/esm/apis/WorkflowRunsApi.js +156 -0
  13. package/dist/esm/apis/index.d.ts +2 -0
  14. package/dist/esm/apis/index.js +2 -0
  15. package/dist/esm/models/ABCDPathSnapshot.d.ts +60 -0
  16. package/dist/esm/models/ABCDPathSnapshot.js +53 -0
  17. package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +97 -0
  18. package/dist/esm/models/CreateWorkflowDefinitionRequest.js +95 -0
  19. package/dist/esm/models/InvokeWorkflowRequest.d.ts +47 -0
  20. package/dist/esm/models/InvokeWorkflowRequest.js +46 -0
  21. package/dist/esm/models/PaginatedResponseWorkflowDefinitionResponse.d.ts +66 -0
  22. package/dist/esm/models/PaginatedResponseWorkflowDefinitionResponse.js +70 -0
  23. package/dist/esm/models/PaginatedResponseWorkflowRunResponse.d.ts +66 -0
  24. package/dist/esm/models/PaginatedResponseWorkflowRunResponse.js +70 -0
  25. package/dist/esm/models/PartType.d.ts +2 -0
  26. package/dist/esm/models/PartType.js +3 -1
  27. package/dist/esm/models/ReferenceType.d.ts +2 -0
  28. package/dist/esm/models/ReferenceType.js +2 -0
  29. package/dist/esm/models/SelfHostedRunnerConfig.d.ts +53 -0
  30. package/dist/esm/models/SelfHostedRunnerConfig.js +53 -0
  31. package/dist/esm/models/SelfHostedRunnerConfigResponse.d.ts +47 -0
  32. package/dist/esm/models/SelfHostedRunnerConfigResponse.js +49 -0
  33. package/dist/esm/models/StepInput.d.ts +1 -1
  34. package/dist/esm/models/StepOutput.d.ts +1 -1
  35. package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +103 -0
  36. package/dist/esm/models/UpdateWorkflowDefinitionRequest.js +97 -0
  37. package/dist/esm/models/WorkflowCallbackResponse.d.ts +47 -0
  38. package/dist/esm/models/WorkflowCallbackResponse.js +44 -0
  39. package/dist/esm/models/WorkflowDefinitionResponse.d.ts +121 -0
  40. package/dist/esm/models/WorkflowDefinitionResponse.js +94 -0
  41. package/dist/esm/models/WorkflowRunCallbackRequest.d.ts +61 -0
  42. package/dist/esm/models/WorkflowRunCallbackRequest.js +57 -0
  43. package/dist/esm/models/WorkflowRunResponse.d.ts +110 -0
  44. package/dist/esm/models/WorkflowRunResponse.js +87 -0
  45. package/dist/esm/models/WorkflowRunSnapshot.d.ts +97 -0
  46. package/dist/esm/models/WorkflowRunSnapshot.js +78 -0
  47. package/dist/esm/models/WorkflowRunStatus.d.ts +27 -0
  48. package/dist/esm/models/WorkflowRunStatus.js +45 -0
  49. package/dist/esm/models/WorkflowRunnerType.d.ts +24 -0
  50. package/dist/esm/models/WorkflowRunnerType.js +42 -0
  51. package/dist/esm/models/index.d.ts +15 -0
  52. package/dist/esm/models/index.js +15 -0
  53. package/dist/models/ABCDPathSnapshot.d.ts +60 -0
  54. package/dist/models/ABCDPathSnapshot.js +61 -0
  55. package/dist/models/CreateWorkflowDefinitionRequest.d.ts +97 -0
  56. package/dist/models/CreateWorkflowDefinitionRequest.js +103 -0
  57. package/dist/models/InvokeWorkflowRequest.d.ts +47 -0
  58. package/dist/models/InvokeWorkflowRequest.js +54 -0
  59. package/dist/models/PaginatedResponseWorkflowDefinitionResponse.d.ts +66 -0
  60. package/dist/models/PaginatedResponseWorkflowDefinitionResponse.js +78 -0
  61. package/dist/models/PaginatedResponseWorkflowRunResponse.d.ts +66 -0
  62. package/dist/models/PaginatedResponseWorkflowRunResponse.js +78 -0
  63. package/dist/models/PartType.d.ts +2 -0
  64. package/dist/models/PartType.js +3 -1
  65. package/dist/models/ReferenceType.d.ts +2 -0
  66. package/dist/models/ReferenceType.js +2 -0
  67. package/dist/models/SelfHostedRunnerConfig.d.ts +53 -0
  68. package/dist/models/SelfHostedRunnerConfig.js +61 -0
  69. package/dist/models/SelfHostedRunnerConfigResponse.d.ts +47 -0
  70. package/dist/models/SelfHostedRunnerConfigResponse.js +57 -0
  71. package/dist/models/StepInput.d.ts +1 -1
  72. package/dist/models/StepOutput.d.ts +1 -1
  73. package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +103 -0
  74. package/dist/models/UpdateWorkflowDefinitionRequest.js +105 -0
  75. package/dist/models/WorkflowCallbackResponse.d.ts +47 -0
  76. package/dist/models/WorkflowCallbackResponse.js +52 -0
  77. package/dist/models/WorkflowDefinitionResponse.d.ts +121 -0
  78. package/dist/models/WorkflowDefinitionResponse.js +102 -0
  79. package/dist/models/WorkflowRunCallbackRequest.d.ts +61 -0
  80. package/dist/models/WorkflowRunCallbackRequest.js +65 -0
  81. package/dist/models/WorkflowRunResponse.d.ts +110 -0
  82. package/dist/models/WorkflowRunResponse.js +95 -0
  83. package/dist/models/WorkflowRunSnapshot.d.ts +97 -0
  84. package/dist/models/WorkflowRunSnapshot.js +86 -0
  85. package/dist/models/WorkflowRunStatus.d.ts +27 -0
  86. package/dist/models/WorkflowRunStatus.js +53 -0
  87. package/dist/models/WorkflowRunnerType.d.ts +24 -0
  88. package/dist/models/WorkflowRunnerType.js +50 -0
  89. package/dist/models/index.d.ts +15 -0
  90. package/dist/models/index.js +15 -0
  91. package/docs/ABCDPathSnapshot.md +39 -0
  92. package/docs/CreateWorkflowDefinitionRequest.md +51 -0
  93. package/docs/InvokeWorkflowRequest.md +35 -0
  94. package/docs/PaginatedResponseWorkflowDefinitionResponse.md +40 -0
  95. package/docs/PaginatedResponseWorkflowRunResponse.md +40 -0
  96. package/docs/SelfHostedRunnerConfig.md +37 -0
  97. package/docs/SelfHostedRunnerConfigResponse.md +35 -0
  98. package/docs/UpdateWorkflowDefinitionRequest.md +53 -0
  99. package/docs/WorkflowCallbackResponse.md +35 -0
  100. package/docs/WorkflowDefinitionResponse.md +59 -0
  101. package/docs/WorkflowDefinitionsApi.md +534 -0
  102. package/docs/WorkflowRunCallbackRequest.md +37 -0
  103. package/docs/WorkflowRunResponse.md +55 -0
  104. package/docs/WorkflowRunSnapshot.md +51 -0
  105. package/docs/WorkflowRunStatus.md +33 -0
  106. package/docs/WorkflowRunnerType.md +33 -0
  107. package/docs/WorkflowRunsApi.md +224 -0
  108. package/package.json +1 -1
  109. package/src/apis/WorkflowDefinitionsApi.ts +678 -0
  110. package/src/apis/WorkflowRunsApi.ts +296 -0
  111. package/src/apis/index.ts +2 -0
  112. package/src/models/ABCDPathSnapshot.ts +111 -0
  113. package/src/models/CreateWorkflowDefinitionRequest.ts +192 -0
  114. package/src/models/InvokeWorkflowRequest.ts +85 -0
  115. package/src/models/PaginatedResponseWorkflowDefinitionResponse.ts +130 -0
  116. package/src/models/PaginatedResponseWorkflowRunResponse.ts +130 -0
  117. package/src/models/PartType.ts +3 -1
  118. package/src/models/ReferenceType.ts +2 -0
  119. package/src/models/SelfHostedRunnerConfig.ts +96 -0
  120. package/src/models/SelfHostedRunnerConfigResponse.ts +87 -0
  121. package/src/models/StepInput.ts +1 -1
  122. package/src/models/StepOutput.ts +1 -1
  123. package/src/models/UpdateWorkflowDefinitionRequest.ts +200 -0
  124. package/src/models/WorkflowCallbackResponse.ts +83 -0
  125. package/src/models/WorkflowDefinitionResponse.ts +208 -0
  126. package/src/models/WorkflowRunCallbackRequest.ts +105 -0
  127. package/src/models/WorkflowRunResponse.ts +197 -0
  128. package/src/models/WorkflowRunSnapshot.ts +172 -0
  129. package/src/models/WorkflowRunStatus.ts +55 -0
  130. package/src/models/WorkflowRunnerType.ts +52 -0
  131. package/src/models/index.ts +15 -0
@@ -0,0 +1,78 @@
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.PaginatedResponseWorkflowRunResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfPaginatedResponseWorkflowRunResponse = instanceOfPaginatedResponseWorkflowRunResponse;
18
+ exports.PaginatedResponseWorkflowRunResponseFromJSON = PaginatedResponseWorkflowRunResponseFromJSON;
19
+ exports.PaginatedResponseWorkflowRunResponseFromJSONTyped = PaginatedResponseWorkflowRunResponseFromJSONTyped;
20
+ exports.PaginatedResponseWorkflowRunResponseToJSON = PaginatedResponseWorkflowRunResponseToJSON;
21
+ exports.PaginatedResponseWorkflowRunResponseToJSONTyped = PaginatedResponseWorkflowRunResponseToJSONTyped;
22
+ const WorkflowRunResponse_1 = require("./WorkflowRunResponse");
23
+ /**
24
+ * Check if a given object implements the PaginatedResponseWorkflowRunResponse interface.
25
+ */
26
+ function instanceOfPaginatedResponseWorkflowRunResponse(value) {
27
+ if (!('items' in value) || value['items'] === undefined)
28
+ return false;
29
+ if (!('total' in value) || value['total'] === undefined)
30
+ return false;
31
+ if (!('limit' in value) || value['limit'] === undefined)
32
+ return false;
33
+ if (!('offset' in value) || value['offset'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function PaginatedResponseWorkflowRunResponseFromJSON(json) {
38
+ return PaginatedResponseWorkflowRunResponseFromJSONTyped(json, false);
39
+ }
40
+ function PaginatedResponseWorkflowRunResponseFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'items': (json['items'].map(WorkflowRunResponse_1.WorkflowRunResponseFromJSON)),
46
+ 'total': json['total'],
47
+ 'limit': json['limit'],
48
+ 'offset': json['offset'],
49
+ };
50
+ }
51
+ function PaginatedResponseWorkflowRunResponseToJSON(json) {
52
+ return PaginatedResponseWorkflowRunResponseToJSONTyped(json, false);
53
+ }
54
+ function PaginatedResponseWorkflowRunResponseToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'items': (value['items'].map(WorkflowRunResponse_1.WorkflowRunResponseToJSON)),
60
+ 'total': value['total'],
61
+ 'limit': value['limit'],
62
+ 'offset': value['offset'],
63
+ };
64
+ }
65
+ exports.PaginatedResponseWorkflowRunResponsePropertyValidationAttributesMap = {
66
+ total: {
67
+ minimum: 0,
68
+ exclusiveMinimum: false,
69
+ },
70
+ limit: {
71
+ minimum: 1,
72
+ exclusiveMinimum: false,
73
+ },
74
+ offset: {
75
+ minimum: 0,
76
+ exclusiveMinimum: false,
77
+ },
78
+ };
@@ -21,6 +21,8 @@ export declare const PartType: {
21
21
  readonly Chunk: "CHUNK";
22
22
  readonly Thread: "THREAD";
23
23
  readonly ThreadMessage: "THREAD_MESSAGE";
24
+ readonly WorkflowDefinition: "WORKFLOW_DEFINITION";
25
+ readonly WorkflowRun: "WORKFLOW_RUN";
24
26
  };
25
27
  export type PartType = typeof PartType[keyof typeof PartType];
26
28
  export declare function instanceOfPartType(value: any): boolean;
@@ -30,7 +30,9 @@ exports.PartType = {
30
30
  Section: 'SECTION',
31
31
  Chunk: 'CHUNK',
32
32
  Thread: 'THREAD',
33
- ThreadMessage: 'THREAD_MESSAGE'
33
+ ThreadMessage: 'THREAD_MESSAGE',
34
+ WorkflowDefinition: 'WORKFLOW_DEFINITION',
35
+ WorkflowRun: 'WORKFLOW_RUN'
34
36
  };
35
37
  function instanceOfPartType(value) {
36
38
  for (const key in exports.PartType) {
@@ -21,6 +21,8 @@ export declare const ReferenceType: {
21
21
  readonly Chunk: "CHUNK";
22
22
  readonly Thread: "THREAD";
23
23
  readonly ThreadMessage: "THREAD_MESSAGE";
24
+ readonly WorkflowDefinition: "WORKFLOW_DEFINITION";
25
+ readonly WorkflowRun: "WORKFLOW_RUN";
24
26
  readonly Image: "image";
25
27
  readonly Memory: "memory";
26
28
  readonly Tag: "tag";
@@ -31,6 +31,8 @@ exports.ReferenceType = {
31
31
  Chunk: 'CHUNK',
32
32
  Thread: 'THREAD',
33
33
  ThreadMessage: 'THREAD_MESSAGE',
34
+ WorkflowDefinition: 'WORKFLOW_DEFINITION',
35
+ WorkflowRun: 'WORKFLOW_RUN',
34
36
  Image: 'image',
35
37
  Memory: 'memory',
36
38
  Tag: 'tag',
@@ -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
+ };
@@ -64,7 +64,7 @@ export interface StepInput {
64
64
  * @type {Array<StepInput>}
65
65
  * @memberof StepInput
66
66
  */
67
- steps?: Array<StepInput>;
67
+ steps?: Array<StepInput> | null;
68
68
  }
69
69
  /**
70
70
  * Check if a given object implements the StepInput interface.
@@ -64,7 +64,7 @@ export interface StepOutput {
64
64
  * @type {Array<StepOutput>}
65
65
  * @memberof StepOutput
66
66
  */
67
- steps?: Array<StepOutput>;
67
+ steps?: Array<StepOutput> | null;
68
68
  }
69
69
  /**
70
70
  * Check if a given object implements the StepOutput interface.
@@ -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 = {};