@knowledge-stack/ksapi 1.63.0 → 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.
Files changed (125) 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/UpdateWorkflowDefinitionRequest.d.ts +103 -0
  34. package/dist/esm/models/UpdateWorkflowDefinitionRequest.js +97 -0
  35. package/dist/esm/models/WorkflowCallbackResponse.d.ts +47 -0
  36. package/dist/esm/models/WorkflowCallbackResponse.js +44 -0
  37. package/dist/esm/models/WorkflowDefinitionResponse.d.ts +121 -0
  38. package/dist/esm/models/WorkflowDefinitionResponse.js +94 -0
  39. package/dist/esm/models/WorkflowRunCallbackRequest.d.ts +61 -0
  40. package/dist/esm/models/WorkflowRunCallbackRequest.js +57 -0
  41. package/dist/esm/models/WorkflowRunResponse.d.ts +110 -0
  42. package/dist/esm/models/WorkflowRunResponse.js +87 -0
  43. package/dist/esm/models/WorkflowRunSnapshot.d.ts +97 -0
  44. package/dist/esm/models/WorkflowRunSnapshot.js +78 -0
  45. package/dist/esm/models/WorkflowRunStatus.d.ts +27 -0
  46. package/dist/esm/models/WorkflowRunStatus.js +45 -0
  47. package/dist/esm/models/WorkflowRunnerType.d.ts +24 -0
  48. package/dist/esm/models/WorkflowRunnerType.js +42 -0
  49. package/dist/esm/models/index.d.ts +15 -0
  50. package/dist/esm/models/index.js +15 -0
  51. package/dist/models/ABCDPathSnapshot.d.ts +60 -0
  52. package/dist/models/ABCDPathSnapshot.js +61 -0
  53. package/dist/models/CreateWorkflowDefinitionRequest.d.ts +97 -0
  54. package/dist/models/CreateWorkflowDefinitionRequest.js +103 -0
  55. package/dist/models/InvokeWorkflowRequest.d.ts +47 -0
  56. package/dist/models/InvokeWorkflowRequest.js +54 -0
  57. package/dist/models/PaginatedResponseWorkflowDefinitionResponse.d.ts +66 -0
  58. package/dist/models/PaginatedResponseWorkflowDefinitionResponse.js +78 -0
  59. package/dist/models/PaginatedResponseWorkflowRunResponse.d.ts +66 -0
  60. package/dist/models/PaginatedResponseWorkflowRunResponse.js +78 -0
  61. package/dist/models/PartType.d.ts +2 -0
  62. package/dist/models/PartType.js +3 -1
  63. package/dist/models/ReferenceType.d.ts +2 -0
  64. package/dist/models/ReferenceType.js +2 -0
  65. package/dist/models/SelfHostedRunnerConfig.d.ts +53 -0
  66. package/dist/models/SelfHostedRunnerConfig.js +61 -0
  67. package/dist/models/SelfHostedRunnerConfigResponse.d.ts +47 -0
  68. package/dist/models/SelfHostedRunnerConfigResponse.js +57 -0
  69. package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +103 -0
  70. package/dist/models/UpdateWorkflowDefinitionRequest.js +105 -0
  71. package/dist/models/WorkflowCallbackResponse.d.ts +47 -0
  72. package/dist/models/WorkflowCallbackResponse.js +52 -0
  73. package/dist/models/WorkflowDefinitionResponse.d.ts +121 -0
  74. package/dist/models/WorkflowDefinitionResponse.js +102 -0
  75. package/dist/models/WorkflowRunCallbackRequest.d.ts +61 -0
  76. package/dist/models/WorkflowRunCallbackRequest.js +65 -0
  77. package/dist/models/WorkflowRunResponse.d.ts +110 -0
  78. package/dist/models/WorkflowRunResponse.js +95 -0
  79. package/dist/models/WorkflowRunSnapshot.d.ts +97 -0
  80. package/dist/models/WorkflowRunSnapshot.js +86 -0
  81. package/dist/models/WorkflowRunStatus.d.ts +27 -0
  82. package/dist/models/WorkflowRunStatus.js +53 -0
  83. package/dist/models/WorkflowRunnerType.d.ts +24 -0
  84. package/dist/models/WorkflowRunnerType.js +50 -0
  85. package/dist/models/index.d.ts +15 -0
  86. package/dist/models/index.js +15 -0
  87. package/docs/ABCDPathSnapshot.md +39 -0
  88. package/docs/CreateWorkflowDefinitionRequest.md +51 -0
  89. package/docs/InvokeWorkflowRequest.md +35 -0
  90. package/docs/PaginatedResponseWorkflowDefinitionResponse.md +40 -0
  91. package/docs/PaginatedResponseWorkflowRunResponse.md +40 -0
  92. package/docs/SelfHostedRunnerConfig.md +37 -0
  93. package/docs/SelfHostedRunnerConfigResponse.md +35 -0
  94. package/docs/UpdateWorkflowDefinitionRequest.md +53 -0
  95. package/docs/WorkflowCallbackResponse.md +35 -0
  96. package/docs/WorkflowDefinitionResponse.md +59 -0
  97. package/docs/WorkflowDefinitionsApi.md +534 -0
  98. package/docs/WorkflowRunCallbackRequest.md +37 -0
  99. package/docs/WorkflowRunResponse.md +55 -0
  100. package/docs/WorkflowRunSnapshot.md +51 -0
  101. package/docs/WorkflowRunStatus.md +33 -0
  102. package/docs/WorkflowRunnerType.md +33 -0
  103. package/docs/WorkflowRunsApi.md +224 -0
  104. package/package.json +1 -1
  105. package/src/apis/WorkflowDefinitionsApi.ts +678 -0
  106. package/src/apis/WorkflowRunsApi.ts +296 -0
  107. package/src/apis/index.ts +2 -0
  108. package/src/models/ABCDPathSnapshot.ts +111 -0
  109. package/src/models/CreateWorkflowDefinitionRequest.ts +192 -0
  110. package/src/models/InvokeWorkflowRequest.ts +85 -0
  111. package/src/models/PaginatedResponseWorkflowDefinitionResponse.ts +130 -0
  112. package/src/models/PaginatedResponseWorkflowRunResponse.ts +130 -0
  113. package/src/models/PartType.ts +3 -1
  114. package/src/models/ReferenceType.ts +2 -0
  115. package/src/models/SelfHostedRunnerConfig.ts +96 -0
  116. package/src/models/SelfHostedRunnerConfigResponse.ts +87 -0
  117. package/src/models/UpdateWorkflowDefinitionRequest.ts +200 -0
  118. package/src/models/WorkflowCallbackResponse.ts +83 -0
  119. package/src/models/WorkflowDefinitionResponse.ts +208 -0
  120. package/src/models/WorkflowRunCallbackRequest.ts +105 -0
  121. package/src/models/WorkflowRunResponse.ts +197 -0
  122. package/src/models/WorkflowRunSnapshot.ts +172 -0
  123. package/src/models/WorkflowRunStatus.ts +55 -0
  124. package/src/models/WorkflowRunnerType.ts +52 -0
  125. package/src/models/index.ts +15 -0
@@ -0,0 +1,172 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ABCDPathSnapshot } from './ABCDPathSnapshot';
17
+ import {
18
+ ABCDPathSnapshotFromJSON,
19
+ ABCDPathSnapshotFromJSONTyped,
20
+ ABCDPathSnapshotToJSON,
21
+ ABCDPathSnapshotToJSONTyped,
22
+ } from './ABCDPathSnapshot';
23
+ import type { WorkflowRunnerType } from './WorkflowRunnerType';
24
+ import {
25
+ WorkflowRunnerTypeFromJSON,
26
+ WorkflowRunnerTypeFromJSONTyped,
27
+ WorkflowRunnerTypeToJSON,
28
+ WorkflowRunnerTypeToJSONTyped,
29
+ } from './WorkflowRunnerType';
30
+
31
+ /**
32
+ * Frozen ABCD configuration captured at workflow trigger time.
33
+ * @export
34
+ * @interface WorkflowRunSnapshot
35
+ */
36
+ export interface WorkflowRunSnapshot {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof WorkflowRunSnapshot
41
+ */
42
+ workflowDefinitionId: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof WorkflowRunSnapshot
47
+ */
48
+ workflowName: string;
49
+ /**
50
+ *
51
+ * @type {WorkflowRunnerType}
52
+ * @memberof WorkflowRunSnapshot
53
+ */
54
+ runnerType: WorkflowRunnerType;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof WorkflowRunSnapshot
59
+ */
60
+ userId: string;
61
+ /**
62
+ *
63
+ * @type {number}
64
+ * @memberof WorkflowRunSnapshot
65
+ */
66
+ maxRunDurationSeconds: number;
67
+ /**
68
+ *
69
+ * @type {Array<ABCDPathSnapshot>}
70
+ * @memberof WorkflowRunSnapshot
71
+ */
72
+ sources: Array<ABCDPathSnapshot>;
73
+ /**
74
+ *
75
+ * @type {Array<ABCDPathSnapshot>}
76
+ * @memberof WorkflowRunSnapshot
77
+ */
78
+ instructions: Array<ABCDPathSnapshot>;
79
+ /**
80
+ *
81
+ * @type {Array<ABCDPathSnapshot>}
82
+ * @memberof WorkflowRunSnapshot
83
+ */
84
+ outputs: Array<ABCDPathSnapshot>;
85
+ /**
86
+ *
87
+ * @type {ABCDPathSnapshot}
88
+ * @memberof WorkflowRunSnapshot
89
+ */
90
+ template: ABCDPathSnapshot;
91
+ }
92
+
93
+
94
+
95
+ /**
96
+ * Check if a given object implements the WorkflowRunSnapshot interface.
97
+ */
98
+ export function instanceOfWorkflowRunSnapshot(value: object): value is WorkflowRunSnapshot {
99
+ if (!('workflowDefinitionId' in value) || value['workflowDefinitionId'] === undefined) return false;
100
+ if (!('workflowName' in value) || value['workflowName'] === undefined) return false;
101
+ if (!('runnerType' in value) || value['runnerType'] === undefined) return false;
102
+ if (!('userId' in value) || value['userId'] === undefined) return false;
103
+ if (!('maxRunDurationSeconds' in value) || value['maxRunDurationSeconds'] === undefined) return false;
104
+ if (!('sources' in value) || value['sources'] === undefined) return false;
105
+ if (!('instructions' in value) || value['instructions'] === undefined) return false;
106
+ if (!('outputs' in value) || value['outputs'] === undefined) return false;
107
+ if (!('template' in value) || value['template'] === undefined) return false;
108
+ return true;
109
+ }
110
+
111
+ export function WorkflowRunSnapshotFromJSON(json: any): WorkflowRunSnapshot {
112
+ return WorkflowRunSnapshotFromJSONTyped(json, false);
113
+ }
114
+
115
+ export function WorkflowRunSnapshotFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowRunSnapshot {
116
+ if (json == null) {
117
+ return json;
118
+ }
119
+ return {
120
+
121
+ 'workflowDefinitionId': json['workflow_definition_id'],
122
+ 'workflowName': json['workflow_name'],
123
+ 'runnerType': WorkflowRunnerTypeFromJSON(json['runner_type']),
124
+ 'userId': json['user_id'],
125
+ 'maxRunDurationSeconds': json['max_run_duration_seconds'],
126
+ 'sources': ((json['sources'] as Array<any>).map(ABCDPathSnapshotFromJSON)),
127
+ 'instructions': ((json['instructions'] as Array<any>).map(ABCDPathSnapshotFromJSON)),
128
+ 'outputs': ((json['outputs'] as Array<any>).map(ABCDPathSnapshotFromJSON)),
129
+ 'template': ABCDPathSnapshotFromJSON(json['template']),
130
+ };
131
+ }
132
+
133
+ export function WorkflowRunSnapshotToJSON(json: any): WorkflowRunSnapshot {
134
+ return WorkflowRunSnapshotToJSONTyped(json, false);
135
+ }
136
+
137
+ export function WorkflowRunSnapshotToJSONTyped(value?: WorkflowRunSnapshot | null, ignoreDiscriminator: boolean = false): any {
138
+ if (value == null) {
139
+ return value;
140
+ }
141
+
142
+ return {
143
+
144
+ 'workflow_definition_id': value['workflowDefinitionId'],
145
+ 'workflow_name': value['workflowName'],
146
+ 'runner_type': WorkflowRunnerTypeToJSON(value['runnerType']),
147
+ 'user_id': value['userId'],
148
+ 'max_run_duration_seconds': value['maxRunDurationSeconds'],
149
+ 'sources': ((value['sources'] as Array<any>).map(ABCDPathSnapshotToJSON)),
150
+ 'instructions': ((value['instructions'] as Array<any>).map(ABCDPathSnapshotToJSON)),
151
+ 'outputs': ((value['outputs'] as Array<any>).map(ABCDPathSnapshotToJSON)),
152
+ 'template': ABCDPathSnapshotToJSON(value['template']),
153
+ };
154
+ }
155
+
156
+ export const WorkflowRunSnapshotPropertyValidationAttributesMap: {
157
+ [property: string]: {
158
+ maxLength?: number,
159
+ minLength?: number,
160
+ pattern?: string,
161
+ maximum?: number,
162
+ exclusiveMaximum?: boolean,
163
+ minimum?: number,
164
+ exclusiveMinimum?: boolean,
165
+ multipleOf?: number,
166
+ maxItems?: number,
167
+ minItems?: number,
168
+ uniqueItems?: boolean
169
+ }
170
+ } = {
171
+ }
172
+
@@ -0,0 +1,55 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ * Lifecycle status of a workflow run.
18
+ * @export
19
+ */
20
+ export const WorkflowRunStatus = {
21
+ Pending: 'PENDING',
22
+ Running: 'RUNNING',
23
+ Completed: 'COMPLETED',
24
+ Failed: 'FAILED'
25
+ } as const;
26
+ export type WorkflowRunStatus = typeof WorkflowRunStatus[keyof typeof WorkflowRunStatus];
27
+
28
+
29
+ export function instanceOfWorkflowRunStatus(value: any): boolean {
30
+ for (const key in WorkflowRunStatus) {
31
+ if (Object.prototype.hasOwnProperty.call(WorkflowRunStatus, key)) {
32
+ if (WorkflowRunStatus[key as keyof typeof WorkflowRunStatus] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+
40
+ export function WorkflowRunStatusFromJSON(json: any): WorkflowRunStatus {
41
+ return WorkflowRunStatusFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function WorkflowRunStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowRunStatus {
45
+ return json as WorkflowRunStatus;
46
+ }
47
+
48
+ export function WorkflowRunStatusToJSON(value?: WorkflowRunStatus | null): any {
49
+ return value as any;
50
+ }
51
+
52
+ export function WorkflowRunStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): WorkflowRunStatus {
53
+ return value as WorkflowRunStatus;
54
+ }
55
+
@@ -0,0 +1,52 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ * Runner that executes the workflow.
18
+ * @export
19
+ */
20
+ export const WorkflowRunnerType = {
21
+ SelfHosted: 'SELF_HOSTED'
22
+ } as const;
23
+ export type WorkflowRunnerType = typeof WorkflowRunnerType[keyof typeof WorkflowRunnerType];
24
+
25
+
26
+ export function instanceOfWorkflowRunnerType(value: any): boolean {
27
+ for (const key in WorkflowRunnerType) {
28
+ if (Object.prototype.hasOwnProperty.call(WorkflowRunnerType, key)) {
29
+ if (WorkflowRunnerType[key as keyof typeof WorkflowRunnerType] === value) {
30
+ return true;
31
+ }
32
+ }
33
+ }
34
+ return false;
35
+ }
36
+
37
+ export function WorkflowRunnerTypeFromJSON(json: any): WorkflowRunnerType {
38
+ return WorkflowRunnerTypeFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function WorkflowRunnerTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowRunnerType {
42
+ return json as WorkflowRunnerType;
43
+ }
44
+
45
+ export function WorkflowRunnerTypeToJSON(value?: WorkflowRunnerType | null): any {
46
+ return value as any;
47
+ }
48
+
49
+ export function WorkflowRunnerTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): WorkflowRunnerType {
50
+ return value as WorkflowRunnerType;
51
+ }
52
+
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export * from './ABCDPathSnapshot';
3
4
  export * from './AcceptInviteResponse';
4
5
  export * from './AddMemberRequest';
5
6
  export * from './AncestryResponse';
@@ -35,6 +36,7 @@ export * from './CreateTagRequest';
35
36
  export * from './CreateTenantRequest';
36
37
  export * from './CreateThreadMessageRequest';
37
38
  export * from './CreateThreadRequest';
39
+ export * from './CreateWorkflowDefinitionRequest';
38
40
  export * from './DissolveSectionResponse';
39
41
  export * from './DocumentOrigin';
40
42
  export * from './DocumentResponse';
@@ -70,6 +72,7 @@ export * from './IngestionMode';
70
72
  export * from './InviteResponse';
71
73
  export * from './InviteStatus';
72
74
  export * from './InviteUserRequest';
75
+ export * from './InvokeWorkflowRequest';
73
76
  export * from './LineageEdgeResponse';
74
77
  export * from './LineageGraphResponse';
75
78
  export * from './LineageNodeResponse';
@@ -95,6 +98,8 @@ export * from './PaginatedResponseTenantResponse';
95
98
  export * from './PaginatedResponseTenantUserResponse';
96
99
  export * from './PaginatedResponseThreadMessageResponse';
97
100
  export * from './PaginatedResponseThreadResponse';
101
+ export * from './PaginatedResponseWorkflowDefinitionResponse';
102
+ export * from './PaginatedResponseWorkflowRunResponse';
98
103
  export * from './PaginatedResponseWorkflowSummaryResponse';
99
104
  export * from './PartType';
100
105
  export * from './PasswordResetRequest';
@@ -122,6 +127,8 @@ export * from './SectionContentItem';
122
127
  export * from './SectionContentItemOrChunkContentItem';
123
128
  export * from './SectionResponse';
124
129
  export * from './SectionSystemMetadata';
130
+ export * from './SelfHostedRunnerConfig';
131
+ export * from './SelfHostedRunnerConfigResponse';
125
132
  export * from './SignInRequest';
126
133
  export * from './StepInput';
127
134
  export * from './StepKind';
@@ -156,12 +163,20 @@ export * from './UpdateTagRequest';
156
163
  export * from './UpdateTenantRequest';
157
164
  export * from './UpdateThreadRequest';
158
165
  export * from './UpdateUserRequest';
166
+ export * from './UpdateWorkflowDefinitionRequest';
159
167
  export * from './UserMessageRequest';
160
168
  export * from './UserMessageResponse';
161
169
  export * from './UserResponse';
162
170
  export * from './ValidationError';
163
171
  export * from './VersionChunkIdsResponse';
164
172
  export * from './WorkflowActionResponse';
173
+ export * from './WorkflowCallbackResponse';
165
174
  export * from './WorkflowCancelResponse';
175
+ export * from './WorkflowDefinitionResponse';
166
176
  export * from './WorkflowDetailResponse';
177
+ export * from './WorkflowRunCallbackRequest';
178
+ export * from './WorkflowRunResponse';
179
+ export * from './WorkflowRunSnapshot';
180
+ export * from './WorkflowRunStatus';
181
+ export * from './WorkflowRunnerType';
167
182
  export * from './WorkflowSummaryResponse';