@knowledge-stack/ksapi 1.159.0 → 1.160.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 +2 -0
- package/README.md +3 -2
- package/dist/apis/WorkflowDefinitionsApi.d.ts +9 -0
- package/dist/apis/WorkflowDefinitionsApi.js +9 -0
- package/dist/esm/apis/WorkflowDefinitionsApi.d.ts +9 -0
- package/dist/esm/apis/WorkflowDefinitionsApi.js +9 -0
- package/dist/esm/models/LastRunSummary.d.ts +89 -0
- package/dist/esm/models/LastRunSummary.js +64 -0
- package/dist/esm/models/UploadConstraints.d.ts +12 -0
- package/dist/esm/models/UploadConstraints.js +8 -0
- package/dist/esm/models/WorkflowDefinitionOrder.d.ts +2 -1
- package/dist/esm/models/WorkflowDefinitionOrder.js +3 -2
- package/dist/esm/models/WorkflowDefinitionResponse.d.ts +13 -0
- package/dist/esm/models/WorkflowDefinitionResponse.js +5 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/LastRunSummary.d.ts +89 -0
- package/dist/models/LastRunSummary.js +72 -0
- package/dist/models/UploadConstraints.d.ts +12 -0
- package/dist/models/UploadConstraints.js +8 -0
- package/dist/models/WorkflowDefinitionOrder.d.ts +2 -1
- package/dist/models/WorkflowDefinitionOrder.js +3 -2
- package/dist/models/WorkflowDefinitionResponse.d.ts +13 -0
- package/dist/models/WorkflowDefinitionResponse.js +5 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaR.md +4 -0
- package/docs/LastRunSummary.md +47 -0
- package/docs/UploadConstraints.md +4 -0
- package/docs/WorkflowDefinitionOrder.md +1 -1
- package/docs/WorkflowDefinitionResponse.md +4 -0
- package/docs/WorkflowDefinitionsApi.md +11 -2
- package/package.json +1 -1
- package/src/apis/WorkflowDefinitionsApi.ts +21 -0
- package/src/models/LastRunSummary.ts +155 -0
- package/src/models/UploadConstraints.ts +18 -0
- package/src/models/WorkflowDefinitionOrder.ts +3 -2
- package/src/models/WorkflowDefinitionResponse.ts +23 -0
- package/src/models/index.ts +1 -0
|
@@ -57,6 +57,18 @@ export interface UploadConstraints {
|
|
|
57
57
|
* @memberof UploadConstraints
|
|
58
58
|
*/
|
|
59
59
|
maxVideoBytes: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof UploadConstraints
|
|
64
|
+
*/
|
|
65
|
+
maxMediaDurationMs: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof UploadConstraints
|
|
70
|
+
*/
|
|
71
|
+
resumablePartSize: number;
|
|
60
72
|
}
|
|
61
73
|
export const UploadConstraintsPropertyValidationAttributesMap: {
|
|
62
74
|
[property: string]: {
|
|
@@ -85,6 +97,8 @@ export function instanceOfUploadConstraints(value: object): value is UploadConst
|
|
|
85
97
|
if (!('maxImageBytes' in value) || value['maxImageBytes'] === undefined) return false;
|
|
86
98
|
if (!('maxMediaBytes' in value) || value['maxMediaBytes'] === undefined) return false;
|
|
87
99
|
if (!('maxVideoBytes' in value) || value['maxVideoBytes'] === undefined) return false;
|
|
100
|
+
if (!('maxMediaDurationMs' in value) || value['maxMediaDurationMs'] === undefined) return false;
|
|
101
|
+
if (!('resumablePartSize' in value) || value['resumablePartSize'] === undefined) return false;
|
|
88
102
|
return true;
|
|
89
103
|
}
|
|
90
104
|
|
|
@@ -103,6 +117,8 @@ export function UploadConstraintsFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
103
117
|
'maxImageBytes': json['max_image_bytes'],
|
|
104
118
|
'maxMediaBytes': json['max_media_bytes'],
|
|
105
119
|
'maxVideoBytes': json['max_video_bytes'],
|
|
120
|
+
'maxMediaDurationMs': json['max_media_duration_ms'],
|
|
121
|
+
'resumablePartSize': json['resumable_part_size'],
|
|
106
122
|
};
|
|
107
123
|
}
|
|
108
124
|
|
|
@@ -122,6 +138,8 @@ export function UploadConstraintsToJSONTyped(value?: UploadConstraints | null, i
|
|
|
122
138
|
'max_image_bytes': value['maxImageBytes'],
|
|
123
139
|
'max_media_bytes': value['maxMediaBytes'],
|
|
124
140
|
'max_video_bytes': value['maxVideoBytes'],
|
|
141
|
+
'max_media_duration_ms': value['maxMediaDurationMs'],
|
|
142
|
+
'resumable_part_size': value['resumablePartSize'],
|
|
125
143
|
};
|
|
126
144
|
}
|
|
127
145
|
|
|
@@ -14,12 +14,13 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Sortable fields for workflow-definition listings
|
|
17
|
+
* Sortable fields for workflow-definition listings.
|
|
18
18
|
* @export
|
|
19
19
|
*/
|
|
20
20
|
export const WorkflowDefinitionOrder = {
|
|
21
21
|
CreatedAt: 'CREATED_AT',
|
|
22
|
-
UpdatedAt: 'UPDATED_AT'
|
|
22
|
+
UpdatedAt: 'UPDATED_AT',
|
|
23
|
+
Name: 'NAME'
|
|
23
24
|
} as const;
|
|
24
25
|
export type WorkflowDefinitionOrder = typeof WorkflowDefinitionOrder[keyof typeof WorkflowDefinitionOrder];
|
|
25
26
|
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
ItemPermissionsToJSON,
|
|
21
21
|
ItemPermissionsToJSONTyped,
|
|
22
22
|
} from './ItemPermissions';
|
|
23
|
+
import type { LastRunSummary } from './LastRunSummary';
|
|
24
|
+
import {
|
|
25
|
+
LastRunSummaryFromJSON,
|
|
26
|
+
LastRunSummaryFromJSONTyped,
|
|
27
|
+
LastRunSummaryToJSON,
|
|
28
|
+
LastRunSummaryToJSONTyped,
|
|
29
|
+
} from './LastRunSummary';
|
|
23
30
|
import type { PathPartApprovalState } from './PathPartApprovalState';
|
|
24
31
|
import {
|
|
25
32
|
PathPartApprovalStateFromJSON,
|
|
@@ -149,6 +156,18 @@ export interface WorkflowDefinitionResponse {
|
|
|
149
156
|
* @memberof WorkflowDefinitionResponse
|
|
150
157
|
*/
|
|
151
158
|
copyCount?: number;
|
|
159
|
+
/**
|
|
160
|
+
* The definition's most recent run, or null if never run.
|
|
161
|
+
* @type {LastRunSummary}
|
|
162
|
+
* @memberof WorkflowDefinitionResponse
|
|
163
|
+
*/
|
|
164
|
+
lastRun?: LastRunSummary | null;
|
|
165
|
+
/**
|
|
166
|
+
* Number of this definition's runs awaiting approval.
|
|
167
|
+
* @type {number}
|
|
168
|
+
* @memberof WorkflowDefinitionResponse
|
|
169
|
+
*/
|
|
170
|
+
pendingApprovalCount?: number;
|
|
152
171
|
/**
|
|
153
172
|
*
|
|
154
173
|
* @type {PathPartApprovalState}
|
|
@@ -258,6 +277,8 @@ export function WorkflowDefinitionResponseFromJSONTyped(json: any, ignoreDiscrim
|
|
|
258
277
|
'commonFilePathPartIds': json['common_file_path_part_ids'] == null ? undefined : json['common_file_path_part_ids'],
|
|
259
278
|
'createdFromId': json['created_from_id'],
|
|
260
279
|
'copyCount': json['copy_count'] == null ? undefined : json['copy_count'],
|
|
280
|
+
'lastRun': json['last_run'] == null ? undefined : LastRunSummaryFromJSON(json['last_run']),
|
|
281
|
+
'pendingApprovalCount': json['pending_approval_count'] == null ? undefined : json['pending_approval_count'],
|
|
261
282
|
'approvalState': PathPartApprovalStateFromJSON(json['approval_state']),
|
|
262
283
|
'owner': json['owner'] == null ? undefined : UserInfoFromJSON(json['owner']),
|
|
263
284
|
'createdAt': (new Date(json['created_at'])),
|
|
@@ -294,6 +315,8 @@ export function WorkflowDefinitionResponseToJSONTyped(value?: WorkflowDefinition
|
|
|
294
315
|
'common_file_path_part_ids': value['commonFilePathPartIds'],
|
|
295
316
|
'created_from_id': value['createdFromId'],
|
|
296
317
|
'copy_count': value['copyCount'],
|
|
318
|
+
'last_run': LastRunSummaryToJSON(value['lastRun']),
|
|
319
|
+
'pending_approval_count': value['pendingApprovalCount'],
|
|
297
320
|
'approval_state': PathPartApprovalStateToJSON(value['approvalState']),
|
|
298
321
|
'owner': UserInfoToJSON(value['owner']),
|
|
299
322
|
'created_at': value['createdAt'].toISOString(),
|
package/src/models/index.ts
CHANGED
|
@@ -174,6 +174,7 @@ export * from './KbMetric';
|
|
|
174
174
|
export * from './KbSummaryResponse';
|
|
175
175
|
export * from './KbTimeseriesResponse';
|
|
176
176
|
export * from './LabeledSeries';
|
|
177
|
+
export * from './LastRunSummary';
|
|
177
178
|
export * from './LeaderboardEntry';
|
|
178
179
|
export * from './LineageEdgeResponse';
|
|
179
180
|
export * from './LineageGraphResponse';
|