@knowledge-stack/ksapi 1.120.1 → 1.122.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 +22 -8
- package/README.md +13 -6
- package/dist/esm/models/CreateThreadMessageRequest.d.ts +3 -3
- package/dist/esm/models/CreateThreadMessageRequest.js +3 -3
- package/dist/esm/models/DocEditPart.d.ts +122 -0
- package/dist/esm/models/DocEditPart.js +92 -0
- package/dist/esm/models/Input.d.ts +41 -0
- package/dist/esm/models/Input.js +32 -0
- package/dist/esm/models/MessageUsage.d.ts +53 -0
- package/dist/esm/models/MessageUsage.js +57 -0
- package/dist/esm/models/ReasoningPart.d.ts +84 -0
- package/dist/esm/models/ReasoningPart.js +71 -0
- package/dist/esm/models/{StepInput.d.ts → Step.d.ts} +16 -22
- package/dist/esm/models/{StepInput.js → Step.js} +9 -11
- package/dist/esm/models/StepKind.d.ts +0 -1
- package/dist/esm/models/StepKind.js +1 -2
- package/dist/esm/models/TextPart.d.ts +91 -0
- package/dist/esm/models/TextPart.js +74 -0
- package/dist/esm/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.d.ts +33 -0
- package/dist/esm/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.js +57 -0
- package/dist/esm/models/ThreadMessageDetails.d.ts +75 -0
- package/dist/esm/models/ThreadMessageDetails.js +58 -0
- package/dist/esm/models/ThreadMessageResponse.d.ts +10 -3
- package/dist/esm/models/ThreadMessageResponse.js +6 -3
- package/dist/esm/models/ToolPart.d.ts +130 -0
- package/dist/esm/models/ToolPart.js +89 -0
- package/dist/esm/models/ToolStatus.d.ts +27 -0
- package/dist/esm/models/ToolStatus.js +45 -0
- package/dist/esm/models/WorkflowRunAsset.d.ts +87 -0
- package/dist/esm/models/WorkflowRunAsset.js +66 -0
- package/dist/esm/models/WorkflowRunResponse.d.ts +22 -3
- package/dist/esm/models/WorkflowRunResponse.js +12 -3
- package/dist/esm/models/index.d.ts +11 -4
- package/dist/esm/models/index.js +11 -4
- package/dist/models/CreateThreadMessageRequest.d.ts +3 -3
- package/dist/models/CreateThreadMessageRequest.js +3 -3
- package/dist/models/DocEditPart.d.ts +122 -0
- package/dist/models/DocEditPart.js +100 -0
- package/dist/models/Input.d.ts +41 -0
- package/dist/models/Input.js +40 -0
- package/dist/models/MessageUsage.d.ts +53 -0
- package/dist/models/MessageUsage.js +65 -0
- package/dist/models/ReasoningPart.d.ts +84 -0
- package/dist/models/ReasoningPart.js +79 -0
- package/dist/models/{StepInput.d.ts → Step.d.ts} +16 -22
- package/dist/models/{StepInput.js → Step.js} +15 -17
- package/dist/models/StepKind.d.ts +0 -1
- package/dist/models/StepKind.js +1 -2
- package/dist/models/TextPart.d.ts +91 -0
- package/dist/models/TextPart.js +82 -0
- package/dist/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.d.ts +33 -0
- package/dist/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.js +63 -0
- package/dist/models/ThreadMessageDetails.d.ts +75 -0
- package/dist/models/ThreadMessageDetails.js +66 -0
- package/dist/models/ThreadMessageResponse.d.ts +10 -3
- package/dist/models/ThreadMessageResponse.js +6 -3
- package/dist/models/ToolPart.d.ts +130 -0
- package/dist/models/ToolPart.js +97 -0
- package/dist/models/ToolStatus.d.ts +27 -0
- package/dist/models/ToolStatus.js +53 -0
- package/dist/models/WorkflowRunAsset.d.ts +87 -0
- package/dist/models/WorkflowRunAsset.js +74 -0
- package/dist/models/WorkflowRunResponse.d.ts +22 -3
- package/dist/models/WorkflowRunResponse.js +12 -3
- package/dist/models/index.d.ts +11 -4
- package/dist/models/index.js +11 -4
- package/docs/CreateThreadMessageRequest.md +1 -1
- package/docs/DocEditPart.md +54 -0
- package/docs/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.md +8 -2
- package/docs/{ThreadMessageDetailsInput.md → Input.md} +4 -10
- package/docs/MessageUsage.md +37 -0
- package/docs/{StepOutput.md → ReasoningPart.md} +10 -14
- package/docs/{StepInput.md → Step.md} +4 -6
- package/docs/TextPart.md +46 -0
- package/docs/TextPartOrReasoningPartOrToolPartOrDocEditPart.md +72 -0
- package/docs/{ThreadMessageDetailsOutput.md → ThreadMessageDetails.md} +9 -5
- package/docs/ThreadMessageResponse.md +3 -1
- package/docs/ToolPart.md +58 -0
- package/docs/ToolStatus.md +32 -0
- package/docs/WorkflowRunAsset.md +45 -0
- package/docs/WorkflowRunResponse.md +8 -2
- package/package.json +1 -1
- package/src/models/CreateThreadMessageRequest.ts +11 -11
- package/src/models/DocEditPart.ts +191 -0
- package/src/models/Input.ts +63 -0
- package/src/models/MessageUsage.ts +100 -0
- package/src/models/ReasoningPart.ts +140 -0
- package/src/models/{StepInput.ts → Step.ts} +18 -26
- package/src/models/StepKind.ts +1 -2
- package/src/models/TextPart.ts +156 -0
- package/src/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.ts +94 -0
- package/src/models/ThreadMessageDetails.ts +146 -0
- package/src/models/ThreadMessageResponse.ts +25 -10
- package/src/models/ToolPart.ts +212 -0
- package/src/models/ToolStatus.ts +55 -0
- package/src/models/WorkflowRunAsset.ts +153 -0
- package/src/models/WorkflowRunResponse.ts +38 -6
- package/src/models/index.ts +11 -4
- package/dist/esm/models/StepOutput.d.ts +0 -91
- package/dist/esm/models/StepOutput.js +0 -66
- package/dist/esm/models/ThreadMessageDetailsInput.d.ts +0 -61
- package/dist/esm/models/ThreadMessageDetailsInput.js +0 -52
- package/dist/esm/models/ThreadMessageDetailsOutput.d.ts +0 -61
- package/dist/esm/models/ThreadMessageDetailsOutput.js +0 -52
- package/dist/models/StepOutput.d.ts +0 -91
- package/dist/models/StepOutput.js +0 -74
- package/dist/models/ThreadMessageDetailsInput.d.ts +0 -61
- package/dist/models/ThreadMessageDetailsInput.js +0 -60
- package/dist/models/ThreadMessageDetailsOutput.d.ts +0 -61
- package/dist/models/ThreadMessageDetailsOutput.js +0 -60
- package/src/models/StepOutput.ts +0 -159
- package/src/models/ThreadMessageDetailsInput.ts +0 -116
- package/src/models/ThreadMessageDetailsOutput.ts +0 -116
|
@@ -83,6 +83,7 @@ export * from './DiffSpan';
|
|
|
83
83
|
export * from './DirectorySyncResponse';
|
|
84
84
|
export * from './DisplayNameFormat';
|
|
85
85
|
export * from './DissolveSectionResponse';
|
|
86
|
+
export * from './DocEditPart';
|
|
86
87
|
export * from './DocumentBlockChange';
|
|
87
88
|
export * from './DocumentCheckoutResponse';
|
|
88
89
|
export * from './DocumentDiff';
|
|
@@ -133,6 +134,7 @@ export * from './ImageTaxonomy';
|
|
|
133
134
|
export * from './InformationStatistics';
|
|
134
135
|
export * from './IngestDocumentResponse';
|
|
135
136
|
export * from './IngestionMode';
|
|
137
|
+
export * from './Input';
|
|
136
138
|
export * from './InputOrigin';
|
|
137
139
|
export * from './InputSnapshot';
|
|
138
140
|
export * from './InstantiateWorkflowTemplateRequest';
|
|
@@ -154,6 +156,7 @@ export * from './MemoryChunkResponse';
|
|
|
154
156
|
export * from './MemoryKind';
|
|
155
157
|
export * from './MemoryScope';
|
|
156
158
|
export * from './MessageRole';
|
|
159
|
+
export * from './MessageUsage';
|
|
157
160
|
export * from './MeteredQuotaStatus';
|
|
158
161
|
export * from './ModelTableRequest';
|
|
159
162
|
export * from './ModelTableResult';
|
|
@@ -208,6 +211,7 @@ export * from './Polygon';
|
|
|
208
211
|
export * from './PolygonReference';
|
|
209
212
|
export * from './ProposeMemoryChunkRequest';
|
|
210
213
|
export * from './ProposedMemoryChunkResponse';
|
|
214
|
+
export * from './ReasoningPart';
|
|
211
215
|
export * from './ReferenceType';
|
|
212
216
|
export * from './RequestPhoneChangeRequest';
|
|
213
217
|
export * from './ResolvedReferenceInput';
|
|
@@ -232,9 +236,8 @@ export * from './SheetVisibilityChange';
|
|
|
232
236
|
export * from './SignInRequest';
|
|
233
237
|
export * from './SortDirection';
|
|
234
238
|
export * from './StartWorkflowRunRequest';
|
|
235
|
-
export * from './
|
|
239
|
+
export * from './Step';
|
|
236
240
|
export * from './StepKind';
|
|
237
|
-
export * from './StepOutput';
|
|
238
241
|
export * from './StructuredChange';
|
|
239
242
|
export * from './StructuredChangeType';
|
|
240
243
|
export * from './StructuredDiff';
|
|
@@ -260,12 +263,15 @@ export * from './TenantUserOrder';
|
|
|
260
263
|
export * from './TenantUserResponse';
|
|
261
264
|
export * from './TenantUserRole';
|
|
262
265
|
export * from './TextDiff';
|
|
266
|
+
export * from './TextPart';
|
|
267
|
+
export * from './TextPartOrReasoningPartOrToolPartOrDocEditPart';
|
|
263
268
|
export * from './ThreadMessageContent';
|
|
264
|
-
export * from './
|
|
265
|
-
export * from './ThreadMessageDetailsOutput';
|
|
269
|
+
export * from './ThreadMessageDetails';
|
|
266
270
|
export * from './ThreadMessageResponse';
|
|
267
271
|
export * from './ThreadOrder';
|
|
268
272
|
export * from './ThreadResponse';
|
|
273
|
+
export * from './ToolPart';
|
|
274
|
+
export * from './ToolStatus';
|
|
269
275
|
export * from './TransferOwnerRequest';
|
|
270
276
|
export * from './TransferOwnerResponse';
|
|
271
277
|
export * from './TrashItemResponse';
|
|
@@ -305,6 +311,7 @@ export * from './WorkflowDefinitionOrder';
|
|
|
305
311
|
export * from './WorkflowDefinitionResponse';
|
|
306
312
|
export * from './WorkflowDetailResponse';
|
|
307
313
|
export * from './WorkflowExecutionState';
|
|
314
|
+
export * from './WorkflowRunAsset';
|
|
308
315
|
export * from './WorkflowRunCallbackRequest';
|
|
309
316
|
export * from './WorkflowRunOrder';
|
|
310
317
|
export * from './WorkflowRunResponse';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -85,6 +85,7 @@ export * from './DiffSpan';
|
|
|
85
85
|
export * from './DirectorySyncResponse';
|
|
86
86
|
export * from './DisplayNameFormat';
|
|
87
87
|
export * from './DissolveSectionResponse';
|
|
88
|
+
export * from './DocEditPart';
|
|
88
89
|
export * from './DocumentBlockChange';
|
|
89
90
|
export * from './DocumentCheckoutResponse';
|
|
90
91
|
export * from './DocumentDiff';
|
|
@@ -135,6 +136,7 @@ export * from './ImageTaxonomy';
|
|
|
135
136
|
export * from './InformationStatistics';
|
|
136
137
|
export * from './IngestDocumentResponse';
|
|
137
138
|
export * from './IngestionMode';
|
|
139
|
+
export * from './Input';
|
|
138
140
|
export * from './InputOrigin';
|
|
139
141
|
export * from './InputSnapshot';
|
|
140
142
|
export * from './InstantiateWorkflowTemplateRequest';
|
|
@@ -156,6 +158,7 @@ export * from './MemoryChunkResponse';
|
|
|
156
158
|
export * from './MemoryKind';
|
|
157
159
|
export * from './MemoryScope';
|
|
158
160
|
export * from './MessageRole';
|
|
161
|
+
export * from './MessageUsage';
|
|
159
162
|
export * from './MeteredQuotaStatus';
|
|
160
163
|
export * from './ModelTableRequest';
|
|
161
164
|
export * from './ModelTableResult';
|
|
@@ -210,6 +213,7 @@ export * from './Polygon';
|
|
|
210
213
|
export * from './PolygonReference';
|
|
211
214
|
export * from './ProposeMemoryChunkRequest';
|
|
212
215
|
export * from './ProposedMemoryChunkResponse';
|
|
216
|
+
export * from './ReasoningPart';
|
|
213
217
|
export * from './ReferenceType';
|
|
214
218
|
export * from './RequestPhoneChangeRequest';
|
|
215
219
|
export * from './ResolvedReferenceInput';
|
|
@@ -234,9 +238,8 @@ export * from './SheetVisibilityChange';
|
|
|
234
238
|
export * from './SignInRequest';
|
|
235
239
|
export * from './SortDirection';
|
|
236
240
|
export * from './StartWorkflowRunRequest';
|
|
237
|
-
export * from './
|
|
241
|
+
export * from './Step';
|
|
238
242
|
export * from './StepKind';
|
|
239
|
-
export * from './StepOutput';
|
|
240
243
|
export * from './StructuredChange';
|
|
241
244
|
export * from './StructuredChangeType';
|
|
242
245
|
export * from './StructuredDiff';
|
|
@@ -262,12 +265,15 @@ export * from './TenantUserOrder';
|
|
|
262
265
|
export * from './TenantUserResponse';
|
|
263
266
|
export * from './TenantUserRole';
|
|
264
267
|
export * from './TextDiff';
|
|
268
|
+
export * from './TextPart';
|
|
269
|
+
export * from './TextPartOrReasoningPartOrToolPartOrDocEditPart';
|
|
265
270
|
export * from './ThreadMessageContent';
|
|
266
|
-
export * from './
|
|
267
|
-
export * from './ThreadMessageDetailsOutput';
|
|
271
|
+
export * from './ThreadMessageDetails';
|
|
268
272
|
export * from './ThreadMessageResponse';
|
|
269
273
|
export * from './ThreadOrder';
|
|
270
274
|
export * from './ThreadResponse';
|
|
275
|
+
export * from './ToolPart';
|
|
276
|
+
export * from './ToolStatus';
|
|
271
277
|
export * from './TransferOwnerRequest';
|
|
272
278
|
export * from './TransferOwnerResponse';
|
|
273
279
|
export * from './TrashItemResponse';
|
|
@@ -307,6 +313,7 @@ export * from './WorkflowDefinitionOrder';
|
|
|
307
313
|
export * from './WorkflowDefinitionResponse';
|
|
308
314
|
export * from './WorkflowDetailResponse';
|
|
309
315
|
export * from './WorkflowExecutionState';
|
|
316
|
+
export * from './WorkflowRunAsset';
|
|
310
317
|
export * from './WorkflowRunCallbackRequest';
|
|
311
318
|
export * from './WorkflowRunOrder';
|
|
312
319
|
export * from './WorkflowRunResponse';
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { MessageRole } from './MessageRole';
|
|
13
|
-
import type { ThreadMessageDetailsInput } from './ThreadMessageDetailsInput';
|
|
14
13
|
import type { ThreadMessageContent } from './ThreadMessageContent';
|
|
14
|
+
import type { ThreadMessageDetails } from './ThreadMessageDetails';
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
@@ -38,10 +38,10 @@ export interface CreateThreadMessageRequest {
|
|
|
38
38
|
content: ThreadMessageContent;
|
|
39
39
|
/**
|
|
40
40
|
* Message details (execution steps). Omit for user messages.
|
|
41
|
-
* @type {
|
|
41
|
+
* @type {ThreadMessageDetails}
|
|
42
42
|
* @memberof CreateThreadMessageRequest
|
|
43
43
|
*/
|
|
44
|
-
details?:
|
|
44
|
+
details?: ThreadMessageDetails | null;
|
|
45
45
|
}
|
|
46
46
|
export declare const CreateThreadMessageRequestPropertyValidationAttributesMap: {
|
|
47
47
|
[property: string]: {
|
|
@@ -20,8 +20,8 @@ exports.CreateThreadMessageRequestFromJSONTyped = CreateThreadMessageRequestFrom
|
|
|
20
20
|
exports.CreateThreadMessageRequestToJSON = CreateThreadMessageRequestToJSON;
|
|
21
21
|
exports.CreateThreadMessageRequestToJSONTyped = CreateThreadMessageRequestToJSONTyped;
|
|
22
22
|
const MessageRole_1 = require("./MessageRole");
|
|
23
|
-
const ThreadMessageDetailsInput_1 = require("./ThreadMessageDetailsInput");
|
|
24
23
|
const ThreadMessageContent_1 = require("./ThreadMessageContent");
|
|
24
|
+
const ThreadMessageDetails_1 = require("./ThreadMessageDetails");
|
|
25
25
|
exports.CreateThreadMessageRequestPropertyValidationAttributesMap = {};
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the CreateThreadMessageRequest interface.
|
|
@@ -44,7 +44,7 @@ function CreateThreadMessageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'messageId': json['message_id'] == null ? undefined : json['message_id'],
|
|
45
45
|
'role': (0, MessageRole_1.MessageRoleFromJSON)(json['role']),
|
|
46
46
|
'content': (0, ThreadMessageContent_1.ThreadMessageContentFromJSON)(json['content']),
|
|
47
|
-
'details': json['details'] == null ? undefined : (0,
|
|
47
|
+
'details': json['details'] == null ? undefined : (0, ThreadMessageDetails_1.ThreadMessageDetailsFromJSON)(json['details']),
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
function CreateThreadMessageRequestToJSON(json) {
|
|
@@ -58,6 +58,6 @@ function CreateThreadMessageRequestToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
58
58
|
'message_id': value['messageId'],
|
|
59
59
|
'role': (0, MessageRole_1.MessageRoleToJSON)(value['role']),
|
|
60
60
|
'content': (0, ThreadMessageContent_1.ThreadMessageContentToJSON)(value['content']),
|
|
61
|
-
'details': (0,
|
|
61
|
+
'details': (0, ThreadMessageDetails_1.ThreadMessageDetailsToJSON)(value['details']),
|
|
62
62
|
};
|
|
63
63
|
}
|
|
@@ -0,0 +1,122 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DocEditPart
|
|
16
|
+
*/
|
|
17
|
+
export interface DocEditPart {
|
|
18
|
+
/**
|
|
19
|
+
* Stable per-message part id (uuid)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DocEditPart
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* 0-based order within the message
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof DocEditPart
|
|
28
|
+
*/
|
|
29
|
+
seq: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof DocEditPart
|
|
34
|
+
*/
|
|
35
|
+
startTime: Date;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof DocEditPart
|
|
40
|
+
*/
|
|
41
|
+
endTime?: Date | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {DocEditPartKindEnum}
|
|
45
|
+
* @memberof DocEditPart
|
|
46
|
+
*/
|
|
47
|
+
kind?: DocEditPartKindEnum;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof DocEditPart
|
|
52
|
+
*/
|
|
53
|
+
toolCallId?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof DocEditPart
|
|
58
|
+
*/
|
|
59
|
+
documentId: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof DocEditPart
|
|
64
|
+
*/
|
|
65
|
+
baseVersionId?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof DocEditPart
|
|
70
|
+
*/
|
|
71
|
+
newVersionId: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {DocEditPartDocFormatEnum}
|
|
75
|
+
* @memberof DocEditPart
|
|
76
|
+
*/
|
|
77
|
+
docFormat: DocEditPartDocFormatEnum;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof DocEditPart
|
|
82
|
+
*/
|
|
83
|
+
approvalId?: string | null;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export declare const DocEditPartKindEnum: {
|
|
89
|
+
readonly DocEdit: "doc_edit";
|
|
90
|
+
};
|
|
91
|
+
export type DocEditPartKindEnum = typeof DocEditPartKindEnum[keyof typeof DocEditPartKindEnum];
|
|
92
|
+
/**
|
|
93
|
+
* @export
|
|
94
|
+
*/
|
|
95
|
+
export declare const DocEditPartDocFormatEnum: {
|
|
96
|
+
readonly Docx: "docx";
|
|
97
|
+
readonly Xlsx: "xlsx";
|
|
98
|
+
};
|
|
99
|
+
export type DocEditPartDocFormatEnum = typeof DocEditPartDocFormatEnum[keyof typeof DocEditPartDocFormatEnum];
|
|
100
|
+
export declare const DocEditPartPropertyValidationAttributesMap: {
|
|
101
|
+
[property: string]: {
|
|
102
|
+
maxLength?: number;
|
|
103
|
+
minLength?: number;
|
|
104
|
+
pattern?: string;
|
|
105
|
+
maximum?: number;
|
|
106
|
+
exclusiveMaximum?: boolean;
|
|
107
|
+
minimum?: number;
|
|
108
|
+
exclusiveMinimum?: boolean;
|
|
109
|
+
multipleOf?: number;
|
|
110
|
+
maxItems?: number;
|
|
111
|
+
minItems?: number;
|
|
112
|
+
uniqueItems?: boolean;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Check if a given object implements the DocEditPart interface.
|
|
117
|
+
*/
|
|
118
|
+
export declare function instanceOfDocEditPart(value: object): value is DocEditPart;
|
|
119
|
+
export declare function DocEditPartFromJSON(json: any): DocEditPart;
|
|
120
|
+
export declare function DocEditPartFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocEditPart;
|
|
121
|
+
export declare function DocEditPartToJSON(json: any): DocEditPart;
|
|
122
|
+
export declare function DocEditPartToJSONTyped(value?: DocEditPart | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,100 @@
|
|
|
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.DocEditPartPropertyValidationAttributesMap = exports.DocEditPartDocFormatEnum = exports.DocEditPartKindEnum = void 0;
|
|
17
|
+
exports.instanceOfDocEditPart = instanceOfDocEditPart;
|
|
18
|
+
exports.DocEditPartFromJSON = DocEditPartFromJSON;
|
|
19
|
+
exports.DocEditPartFromJSONTyped = DocEditPartFromJSONTyped;
|
|
20
|
+
exports.DocEditPartToJSON = DocEditPartToJSON;
|
|
21
|
+
exports.DocEditPartToJSONTyped = DocEditPartToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.DocEditPartKindEnum = {
|
|
26
|
+
DocEdit: 'doc_edit'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
exports.DocEditPartDocFormatEnum = {
|
|
32
|
+
Docx: 'docx',
|
|
33
|
+
Xlsx: 'xlsx'
|
|
34
|
+
};
|
|
35
|
+
exports.DocEditPartPropertyValidationAttributesMap = {
|
|
36
|
+
seq: {
|
|
37
|
+
minimum: 0,
|
|
38
|
+
exclusiveMinimum: false,
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the DocEditPart interface.
|
|
43
|
+
*/
|
|
44
|
+
function instanceOfDocEditPart(value) {
|
|
45
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('seq' in value) || value['seq'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('startTime' in value) || value['startTime'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('documentId' in value) || value['documentId'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('newVersionId' in value) || value['newVersionId'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('docFormat' in value) || value['docFormat'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
function DocEditPartFromJSON(json) {
|
|
60
|
+
return DocEditPartFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function DocEditPartFromJSONTyped(json, ignoreDiscriminator) {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'id': json['id'],
|
|
68
|
+
'seq': json['seq'],
|
|
69
|
+
'startTime': (new Date(json['start_time'])),
|
|
70
|
+
'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])),
|
|
71
|
+
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
72
|
+
'toolCallId': json['tool_call_id'] == null ? undefined : json['tool_call_id'],
|
|
73
|
+
'documentId': json['document_id'],
|
|
74
|
+
'baseVersionId': json['base_version_id'] == null ? undefined : json['base_version_id'],
|
|
75
|
+
'newVersionId': json['new_version_id'],
|
|
76
|
+
'docFormat': json['doc_format'],
|
|
77
|
+
'approvalId': json['approval_id'] == null ? undefined : json['approval_id'],
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function DocEditPartToJSON(json) {
|
|
81
|
+
return DocEditPartToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
function DocEditPartToJSONTyped(value, ignoreDiscriminator = false) {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
'id': value['id'],
|
|
89
|
+
'seq': value['seq'],
|
|
90
|
+
'start_time': value['startTime'].toISOString(),
|
|
91
|
+
'end_time': value['endTime'] == null ? value['endTime'] : value['endTime'].toISOString(),
|
|
92
|
+
'kind': value['kind'],
|
|
93
|
+
'tool_call_id': value['toolCallId'],
|
|
94
|
+
'document_id': value['documentId'],
|
|
95
|
+
'base_version_id': value['baseVersionId'],
|
|
96
|
+
'new_version_id': value['newVersionId'],
|
|
97
|
+
'doc_format': value['docFormat'],
|
|
98
|
+
'approval_id': value['approvalId'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Input
|
|
16
|
+
*/
|
|
17
|
+
export interface Input {
|
|
18
|
+
}
|
|
19
|
+
export declare const InputPropertyValidationAttributesMap: {
|
|
20
|
+
[property: string]: {
|
|
21
|
+
maxLength?: number;
|
|
22
|
+
minLength?: number;
|
|
23
|
+
pattern?: string;
|
|
24
|
+
maximum?: number;
|
|
25
|
+
exclusiveMaximum?: boolean;
|
|
26
|
+
minimum?: number;
|
|
27
|
+
exclusiveMinimum?: boolean;
|
|
28
|
+
multipleOf?: number;
|
|
29
|
+
maxItems?: number;
|
|
30
|
+
minItems?: number;
|
|
31
|
+
uniqueItems?: boolean;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the Input interface.
|
|
36
|
+
*/
|
|
37
|
+
export declare function instanceOfInput(value: object): value is Input;
|
|
38
|
+
export declare function InputFromJSON(json: any): Input;
|
|
39
|
+
export declare function InputFromJSONTyped(json: any, ignoreDiscriminator: boolean): Input;
|
|
40
|
+
export declare function InputToJSON(json: any): Input;
|
|
41
|
+
export declare function InputToJSONTyped(value?: Input | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,40 @@
|
|
|
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.InputPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfInput = instanceOfInput;
|
|
18
|
+
exports.InputFromJSON = InputFromJSON;
|
|
19
|
+
exports.InputFromJSONTyped = InputFromJSONTyped;
|
|
20
|
+
exports.InputToJSON = InputToJSON;
|
|
21
|
+
exports.InputToJSONTyped = InputToJSONTyped;
|
|
22
|
+
exports.InputPropertyValidationAttributesMap = {};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the Input interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfInput(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function InputFromJSON(json) {
|
|
30
|
+
return InputFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function InputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
function InputToJSON(json) {
|
|
36
|
+
return InputToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function InputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
@@ -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
|
+
* Token counts only — the run's model lives on ``details.model_id``.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface MessageUsage
|
|
16
|
+
*/
|
|
17
|
+
export interface MessageUsage {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof MessageUsage
|
|
22
|
+
*/
|
|
23
|
+
inputTokens: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof MessageUsage
|
|
28
|
+
*/
|
|
29
|
+
outputTokens: number;
|
|
30
|
+
}
|
|
31
|
+
export declare const MessageUsagePropertyValidationAttributesMap: {
|
|
32
|
+
[property: string]: {
|
|
33
|
+
maxLength?: number;
|
|
34
|
+
minLength?: number;
|
|
35
|
+
pattern?: string;
|
|
36
|
+
maximum?: number;
|
|
37
|
+
exclusiveMaximum?: boolean;
|
|
38
|
+
minimum?: number;
|
|
39
|
+
exclusiveMinimum?: boolean;
|
|
40
|
+
multipleOf?: number;
|
|
41
|
+
maxItems?: number;
|
|
42
|
+
minItems?: number;
|
|
43
|
+
uniqueItems?: boolean;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the MessageUsage interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfMessageUsage(value: object): value is MessageUsage;
|
|
50
|
+
export declare function MessageUsageFromJSON(json: any): MessageUsage;
|
|
51
|
+
export declare function MessageUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessageUsage;
|
|
52
|
+
export declare function MessageUsageToJSON(json: any): MessageUsage;
|
|
53
|
+
export declare function MessageUsageToJSONTyped(value?: MessageUsage | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
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.MessageUsagePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfMessageUsage = instanceOfMessageUsage;
|
|
18
|
+
exports.MessageUsageFromJSON = MessageUsageFromJSON;
|
|
19
|
+
exports.MessageUsageFromJSONTyped = MessageUsageFromJSONTyped;
|
|
20
|
+
exports.MessageUsageToJSON = MessageUsageToJSON;
|
|
21
|
+
exports.MessageUsageToJSONTyped = MessageUsageToJSONTyped;
|
|
22
|
+
exports.MessageUsagePropertyValidationAttributesMap = {
|
|
23
|
+
inputTokens: {
|
|
24
|
+
minimum: 0,
|
|
25
|
+
exclusiveMinimum: false,
|
|
26
|
+
},
|
|
27
|
+
outputTokens: {
|
|
28
|
+
minimum: 0,
|
|
29
|
+
exclusiveMinimum: false,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the MessageUsage interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfMessageUsage(value) {
|
|
36
|
+
if (!('inputTokens' in value) || value['inputTokens'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('outputTokens' in value) || value['outputTokens'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function MessageUsageFromJSON(json) {
|
|
43
|
+
return MessageUsageFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function MessageUsageFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'inputTokens': json['input_tokens'],
|
|
51
|
+
'outputTokens': json['output_tokens'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function MessageUsageToJSON(json) {
|
|
55
|
+
return MessageUsageToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function MessageUsageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'input_tokens': value['inputTokens'],
|
|
63
|
+
'output_tokens': value['outputTokens'],
|
|
64
|
+
};
|
|
65
|
+
}
|