@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,60 @@
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 { PartType } from './PartType';
13
+ /**
14
+ * Snapshot of a single ABCD path reference at trigger time.
15
+ * @export
16
+ * @interface ABCDPathSnapshot
17
+ */
18
+ export interface ABCDPathSnapshot {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ABCDPathSnapshot
23
+ */
24
+ pathPartId: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ABCDPathSnapshot
29
+ */
30
+ materializedPath: string;
31
+ /**
32
+ *
33
+ * @type {PartType}
34
+ * @memberof ABCDPathSnapshot
35
+ */
36
+ partType: PartType;
37
+ }
38
+ /**
39
+ * Check if a given object implements the ABCDPathSnapshot interface.
40
+ */
41
+ export declare function instanceOfABCDPathSnapshot(value: object): value is ABCDPathSnapshot;
42
+ export declare function ABCDPathSnapshotFromJSON(json: any): ABCDPathSnapshot;
43
+ export declare function ABCDPathSnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): ABCDPathSnapshot;
44
+ export declare function ABCDPathSnapshotToJSON(json: any): ABCDPathSnapshot;
45
+ export declare function ABCDPathSnapshotToJSONTyped(value?: ABCDPathSnapshot | null, ignoreDiscriminator?: boolean): any;
46
+ export declare const ABCDPathSnapshotPropertyValidationAttributesMap: {
47
+ [property: string]: {
48
+ maxLength?: number;
49
+ minLength?: number;
50
+ pattern?: string;
51
+ maximum?: number;
52
+ exclusiveMaximum?: boolean;
53
+ minimum?: number;
54
+ exclusiveMinimum?: boolean;
55
+ multipleOf?: number;
56
+ maxItems?: number;
57
+ minItems?: number;
58
+ uniqueItems?: boolean;
59
+ };
60
+ };
@@ -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.ABCDPathSnapshotPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfABCDPathSnapshot = instanceOfABCDPathSnapshot;
18
+ exports.ABCDPathSnapshotFromJSON = ABCDPathSnapshotFromJSON;
19
+ exports.ABCDPathSnapshotFromJSONTyped = ABCDPathSnapshotFromJSONTyped;
20
+ exports.ABCDPathSnapshotToJSON = ABCDPathSnapshotToJSON;
21
+ exports.ABCDPathSnapshotToJSONTyped = ABCDPathSnapshotToJSONTyped;
22
+ const PartType_1 = require("./PartType");
23
+ /**
24
+ * Check if a given object implements the ABCDPathSnapshot interface.
25
+ */
26
+ function instanceOfABCDPathSnapshot(value) {
27
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
28
+ return false;
29
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined)
30
+ return false;
31
+ if (!('partType' in value) || value['partType'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function ABCDPathSnapshotFromJSON(json) {
36
+ return ABCDPathSnapshotFromJSONTyped(json, false);
37
+ }
38
+ function ABCDPathSnapshotFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'pathPartId': json['path_part_id'],
44
+ 'materializedPath': json['materialized_path'],
45
+ 'partType': (0, PartType_1.PartTypeFromJSON)(json['part_type']),
46
+ };
47
+ }
48
+ function ABCDPathSnapshotToJSON(json) {
49
+ return ABCDPathSnapshotToJSONTyped(json, false);
50
+ }
51
+ function ABCDPathSnapshotToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'path_part_id': value['pathPartId'],
57
+ 'materialized_path': value['materializedPath'],
58
+ 'part_type': (0, PartType_1.PartTypeToJSON)(value['partType']),
59
+ };
60
+ }
61
+ exports.ABCDPathSnapshotPropertyValidationAttributesMap = {};
@@ -0,0 +1,97 @@
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
+ * Create a new workflow definition.
16
+ * @export
17
+ * @interface CreateWorkflowDefinitionRequest
18
+ */
19
+ export interface CreateWorkflowDefinitionRequest {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof CreateWorkflowDefinitionRequest
24
+ */
25
+ name: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof CreateWorkflowDefinitionRequest
30
+ */
31
+ description?: string | null;
32
+ /**
33
+ *
34
+ * @type {WorkflowRunnerType}
35
+ * @memberof CreateWorkflowDefinitionRequest
36
+ */
37
+ runnerType: WorkflowRunnerType;
38
+ /**
39
+ *
40
+ * @type {SelfHostedRunnerConfig}
41
+ * @memberof CreateWorkflowDefinitionRequest
42
+ */
43
+ runnerConfig?: SelfHostedRunnerConfig;
44
+ /**
45
+ *
46
+ * @type {number}
47
+ * @memberof CreateWorkflowDefinitionRequest
48
+ */
49
+ maxRunDurationSeconds?: number;
50
+ /**
51
+ *
52
+ * @type {Array<string>}
53
+ * @memberof CreateWorkflowDefinitionRequest
54
+ */
55
+ sourcePathPartIds: Array<string>;
56
+ /**
57
+ *
58
+ * @type {Array<string>}
59
+ * @memberof CreateWorkflowDefinitionRequest
60
+ */
61
+ instructionPathPartIds: Array<string>;
62
+ /**
63
+ *
64
+ * @type {Array<string>}
65
+ * @memberof CreateWorkflowDefinitionRequest
66
+ */
67
+ outputPathPartIds: Array<string>;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof CreateWorkflowDefinitionRequest
72
+ */
73
+ templatePathPartId?: string | null;
74
+ }
75
+ /**
76
+ * Check if a given object implements the CreateWorkflowDefinitionRequest interface.
77
+ */
78
+ export declare function instanceOfCreateWorkflowDefinitionRequest(value: object): value is CreateWorkflowDefinitionRequest;
79
+ export declare function CreateWorkflowDefinitionRequestFromJSON(json: any): CreateWorkflowDefinitionRequest;
80
+ export declare function CreateWorkflowDefinitionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateWorkflowDefinitionRequest;
81
+ export declare function CreateWorkflowDefinitionRequestToJSON(json: any): CreateWorkflowDefinitionRequest;
82
+ export declare function CreateWorkflowDefinitionRequestToJSONTyped(value?: CreateWorkflowDefinitionRequest | null, ignoreDiscriminator?: boolean): any;
83
+ export declare const CreateWorkflowDefinitionRequestPropertyValidationAttributesMap: {
84
+ [property: string]: {
85
+ maxLength?: number;
86
+ minLength?: number;
87
+ pattern?: string;
88
+ maximum?: number;
89
+ exclusiveMaximum?: boolean;
90
+ minimum?: number;
91
+ exclusiveMinimum?: boolean;
92
+ multipleOf?: number;
93
+ maxItems?: number;
94
+ minItems?: number;
95
+ uniqueItems?: boolean;
96
+ };
97
+ };
@@ -0,0 +1,103 @@
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.CreateWorkflowDefinitionRequestPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfCreateWorkflowDefinitionRequest = instanceOfCreateWorkflowDefinitionRequest;
18
+ exports.CreateWorkflowDefinitionRequestFromJSON = CreateWorkflowDefinitionRequestFromJSON;
19
+ exports.CreateWorkflowDefinitionRequestFromJSONTyped = CreateWorkflowDefinitionRequestFromJSONTyped;
20
+ exports.CreateWorkflowDefinitionRequestToJSON = CreateWorkflowDefinitionRequestToJSON;
21
+ exports.CreateWorkflowDefinitionRequestToJSONTyped = CreateWorkflowDefinitionRequestToJSONTyped;
22
+ const SelfHostedRunnerConfig_1 = require("./SelfHostedRunnerConfig");
23
+ const WorkflowRunnerType_1 = require("./WorkflowRunnerType");
24
+ /**
25
+ * Check if a given object implements the CreateWorkflowDefinitionRequest interface.
26
+ */
27
+ function instanceOfCreateWorkflowDefinitionRequest(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 CreateWorkflowDefinitionRequestFromJSON(json) {
41
+ return CreateWorkflowDefinitionRequestFromJSONTyped(json, false);
42
+ }
43
+ function CreateWorkflowDefinitionRequestFromJSONTyped(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
+ };
58
+ }
59
+ function CreateWorkflowDefinitionRequestToJSON(json) {
60
+ return CreateWorkflowDefinitionRequestToJSONTyped(json, false);
61
+ }
62
+ function CreateWorkflowDefinitionRequestToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'name': value['name'],
68
+ 'description': value['description'],
69
+ 'runner_type': (0, WorkflowRunnerType_1.WorkflowRunnerTypeToJSON)(value['runnerType']),
70
+ 'runner_config': (0, SelfHostedRunnerConfig_1.SelfHostedRunnerConfigToJSON)(value['runnerConfig']),
71
+ 'max_run_duration_seconds': value['maxRunDurationSeconds'],
72
+ 'source_path_part_ids': value['sourcePathPartIds'],
73
+ 'instruction_path_part_ids': value['instructionPathPartIds'],
74
+ 'output_path_part_ids': value['outputPathPartIds'],
75
+ 'template_path_part_id': value['templatePathPartId'],
76
+ };
77
+ }
78
+ exports.CreateWorkflowDefinitionRequestPropertyValidationAttributesMap = {
79
+ name: {
80
+ maxLength: 255,
81
+ },
82
+ maxRunDurationSeconds: {
83
+ maximum: 86400,
84
+ exclusiveMaximum: false,
85
+ minimum: 60,
86
+ exclusiveMinimum: false,
87
+ },
88
+ sourcePathPartIds: {
89
+ maxItems: 20,
90
+ minItems: 1,
91
+ uniqueItems: false,
92
+ },
93
+ instructionPathPartIds: {
94
+ maxItems: 20,
95
+ minItems: 1,
96
+ uniqueItems: false,
97
+ },
98
+ outputPathPartIds: {
99
+ maxItems: 20,
100
+ minItems: 1,
101
+ uniqueItems: false,
102
+ },
103
+ };
@@ -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
+ * Request body for invoking a workflow definition.
14
+ * @export
15
+ * @interface InvokeWorkflowRequest
16
+ */
17
+ export interface InvokeWorkflowRequest {
18
+ /**
19
+ * Optional key to prevent duplicate runs from retries
20
+ * @type {string}
21
+ * @memberof InvokeWorkflowRequest
22
+ */
23
+ idempotencyKey?: string | null;
24
+ }
25
+ /**
26
+ * Check if a given object implements the InvokeWorkflowRequest interface.
27
+ */
28
+ export declare function instanceOfInvokeWorkflowRequest(value: object): value is InvokeWorkflowRequest;
29
+ export declare function InvokeWorkflowRequestFromJSON(json: any): InvokeWorkflowRequest;
30
+ export declare function InvokeWorkflowRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvokeWorkflowRequest;
31
+ export declare function InvokeWorkflowRequestToJSON(json: any): InvokeWorkflowRequest;
32
+ export declare function InvokeWorkflowRequestToJSONTyped(value?: InvokeWorkflowRequest | null, ignoreDiscriminator?: boolean): any;
33
+ export declare const InvokeWorkflowRequestPropertyValidationAttributesMap: {
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,54 @@
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.InvokeWorkflowRequestPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfInvokeWorkflowRequest = instanceOfInvokeWorkflowRequest;
18
+ exports.InvokeWorkflowRequestFromJSON = InvokeWorkflowRequestFromJSON;
19
+ exports.InvokeWorkflowRequestFromJSONTyped = InvokeWorkflowRequestFromJSONTyped;
20
+ exports.InvokeWorkflowRequestToJSON = InvokeWorkflowRequestToJSON;
21
+ exports.InvokeWorkflowRequestToJSONTyped = InvokeWorkflowRequestToJSONTyped;
22
+ /**
23
+ * Check if a given object implements the InvokeWorkflowRequest interface.
24
+ */
25
+ function instanceOfInvokeWorkflowRequest(value) {
26
+ return true;
27
+ }
28
+ function InvokeWorkflowRequestFromJSON(json) {
29
+ return InvokeWorkflowRequestFromJSONTyped(json, false);
30
+ }
31
+ function InvokeWorkflowRequestFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'idempotencyKey': json['idempotency_key'] == null ? undefined : json['idempotency_key'],
37
+ };
38
+ }
39
+ function InvokeWorkflowRequestToJSON(json) {
40
+ return InvokeWorkflowRequestToJSONTyped(json, false);
41
+ }
42
+ function InvokeWorkflowRequestToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'idempotency_key': value['idempotencyKey'],
48
+ };
49
+ }
50
+ exports.InvokeWorkflowRequestPropertyValidationAttributesMap = {
51
+ idempotencyKey: {
52
+ maxLength: 255,
53
+ },
54
+ };
@@ -0,0 +1,66 @@
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 { WorkflowDefinitionResponse } from './WorkflowDefinitionResponse';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedResponseWorkflowDefinitionResponse
17
+ */
18
+ export interface PaginatedResponseWorkflowDefinitionResponse {
19
+ /**
20
+ * List of items
21
+ * @type {Array<WorkflowDefinitionResponse>}
22
+ * @memberof PaginatedResponseWorkflowDefinitionResponse
23
+ */
24
+ items: Array<WorkflowDefinitionResponse>;
25
+ /**
26
+ * Total number of items
27
+ * @type {number}
28
+ * @memberof PaginatedResponseWorkflowDefinitionResponse
29
+ */
30
+ total: number;
31
+ /**
32
+ * Number of items per page
33
+ * @type {number}
34
+ * @memberof PaginatedResponseWorkflowDefinitionResponse
35
+ */
36
+ limit: number;
37
+ /**
38
+ * Number of items to skip
39
+ * @type {number}
40
+ * @memberof PaginatedResponseWorkflowDefinitionResponse
41
+ */
42
+ offset: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the PaginatedResponseWorkflowDefinitionResponse interface.
46
+ */
47
+ export declare function instanceOfPaginatedResponseWorkflowDefinitionResponse(value: object): value is PaginatedResponseWorkflowDefinitionResponse;
48
+ export declare function PaginatedResponseWorkflowDefinitionResponseFromJSON(json: any): PaginatedResponseWorkflowDefinitionResponse;
49
+ export declare function PaginatedResponseWorkflowDefinitionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseWorkflowDefinitionResponse;
50
+ export declare function PaginatedResponseWorkflowDefinitionResponseToJSON(json: any): PaginatedResponseWorkflowDefinitionResponse;
51
+ export declare function PaginatedResponseWorkflowDefinitionResponseToJSONTyped(value?: PaginatedResponseWorkflowDefinitionResponse | null, ignoreDiscriminator?: boolean): any;
52
+ export declare const PaginatedResponseWorkflowDefinitionResponsePropertyValidationAttributesMap: {
53
+ [property: string]: {
54
+ maxLength?: number;
55
+ minLength?: number;
56
+ pattern?: string;
57
+ maximum?: number;
58
+ exclusiveMaximum?: boolean;
59
+ minimum?: number;
60
+ exclusiveMinimum?: boolean;
61
+ multipleOf?: number;
62
+ maxItems?: number;
63
+ minItems?: number;
64
+ uniqueItems?: boolean;
65
+ };
66
+ };
@@ -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.PaginatedResponseWorkflowDefinitionResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfPaginatedResponseWorkflowDefinitionResponse = instanceOfPaginatedResponseWorkflowDefinitionResponse;
18
+ exports.PaginatedResponseWorkflowDefinitionResponseFromJSON = PaginatedResponseWorkflowDefinitionResponseFromJSON;
19
+ exports.PaginatedResponseWorkflowDefinitionResponseFromJSONTyped = PaginatedResponseWorkflowDefinitionResponseFromJSONTyped;
20
+ exports.PaginatedResponseWorkflowDefinitionResponseToJSON = PaginatedResponseWorkflowDefinitionResponseToJSON;
21
+ exports.PaginatedResponseWorkflowDefinitionResponseToJSONTyped = PaginatedResponseWorkflowDefinitionResponseToJSONTyped;
22
+ const WorkflowDefinitionResponse_1 = require("./WorkflowDefinitionResponse");
23
+ /**
24
+ * Check if a given object implements the PaginatedResponseWorkflowDefinitionResponse interface.
25
+ */
26
+ function instanceOfPaginatedResponseWorkflowDefinitionResponse(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 PaginatedResponseWorkflowDefinitionResponseFromJSON(json) {
38
+ return PaginatedResponseWorkflowDefinitionResponseFromJSONTyped(json, false);
39
+ }
40
+ function PaginatedResponseWorkflowDefinitionResponseFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'items': (json['items'].map(WorkflowDefinitionResponse_1.WorkflowDefinitionResponseFromJSON)),
46
+ 'total': json['total'],
47
+ 'limit': json['limit'],
48
+ 'offset': json['offset'],
49
+ };
50
+ }
51
+ function PaginatedResponseWorkflowDefinitionResponseToJSON(json) {
52
+ return PaginatedResponseWorkflowDefinitionResponseToJSONTyped(json, false);
53
+ }
54
+ function PaginatedResponseWorkflowDefinitionResponseToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'items': (value['items'].map(WorkflowDefinitionResponse_1.WorkflowDefinitionResponseToJSON)),
60
+ 'total': value['total'],
61
+ 'limit': value['limit'],
62
+ 'offset': value['offset'],
63
+ };
64
+ }
65
+ exports.PaginatedResponseWorkflowDefinitionResponsePropertyValidationAttributesMap = {
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
+ };
@@ -0,0 +1,66 @@
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 { WorkflowRunResponse } from './WorkflowRunResponse';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedResponseWorkflowRunResponse
17
+ */
18
+ export interface PaginatedResponseWorkflowRunResponse {
19
+ /**
20
+ * List of items
21
+ * @type {Array<WorkflowRunResponse>}
22
+ * @memberof PaginatedResponseWorkflowRunResponse
23
+ */
24
+ items: Array<WorkflowRunResponse>;
25
+ /**
26
+ * Total number of items
27
+ * @type {number}
28
+ * @memberof PaginatedResponseWorkflowRunResponse
29
+ */
30
+ total: number;
31
+ /**
32
+ * Number of items per page
33
+ * @type {number}
34
+ * @memberof PaginatedResponseWorkflowRunResponse
35
+ */
36
+ limit: number;
37
+ /**
38
+ * Number of items to skip
39
+ * @type {number}
40
+ * @memberof PaginatedResponseWorkflowRunResponse
41
+ */
42
+ offset: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the PaginatedResponseWorkflowRunResponse interface.
46
+ */
47
+ export declare function instanceOfPaginatedResponseWorkflowRunResponse(value: object): value is PaginatedResponseWorkflowRunResponse;
48
+ export declare function PaginatedResponseWorkflowRunResponseFromJSON(json: any): PaginatedResponseWorkflowRunResponse;
49
+ export declare function PaginatedResponseWorkflowRunResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseWorkflowRunResponse;
50
+ export declare function PaginatedResponseWorkflowRunResponseToJSON(json: any): PaginatedResponseWorkflowRunResponse;
51
+ export declare function PaginatedResponseWorkflowRunResponseToJSONTyped(value?: PaginatedResponseWorkflowRunResponse | null, ignoreDiscriminator?: boolean): any;
52
+ export declare const PaginatedResponseWorkflowRunResponsePropertyValidationAttributesMap: {
53
+ [property: string]: {
54
+ maxLength?: number;
55
+ minLength?: number;
56
+ pattern?: string;
57
+ maximum?: number;
58
+ exclusiveMaximum?: boolean;
59
+ minimum?: number;
60
+ exclusiveMinimum?: boolean;
61
+ multipleOf?: number;
62
+ maxItems?: number;
63
+ minItems?: number;
64
+ uniqueItems?: boolean;
65
+ };
66
+ };