@knowledge-stack/ksapi 1.120.1 → 1.121.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
package/.openapi-generator/FILES
CHANGED
|
@@ -97,6 +97,7 @@ docs/DiffSpan.md
|
|
|
97
97
|
docs/DirectorySyncResponse.md
|
|
98
98
|
docs/DisplayNameFormat.md
|
|
99
99
|
docs/DissolveSectionResponse.md
|
|
100
|
+
docs/DocEditPart.md
|
|
100
101
|
docs/DocumentBlockChange.md
|
|
101
102
|
docs/DocumentCheckoutApi.md
|
|
102
103
|
docs/DocumentCheckoutResponse.md
|
|
@@ -153,6 +154,7 @@ docs/ImageTaxonomy.md
|
|
|
153
154
|
docs/InformationStatistics.md
|
|
154
155
|
docs/IngestDocumentResponse.md
|
|
155
156
|
docs/IngestionMode.md
|
|
157
|
+
docs/Input.md
|
|
156
158
|
docs/InputOrigin.md
|
|
157
159
|
docs/InputSnapshot.md
|
|
158
160
|
docs/InstantiateWorkflowTemplateRequest.md
|
|
@@ -176,6 +178,7 @@ docs/MemoryChunkResponse.md
|
|
|
176
178
|
docs/MemoryKind.md
|
|
177
179
|
docs/MemoryScope.md
|
|
178
180
|
docs/MessageRole.md
|
|
181
|
+
docs/MessageUsage.md
|
|
179
182
|
docs/MeteredQuotaStatus.md
|
|
180
183
|
docs/ModelTableRequest.md
|
|
181
184
|
docs/ModelTableResult.md
|
|
@@ -233,6 +236,7 @@ docs/PolygonReference.md
|
|
|
233
236
|
docs/ProposeMemoryChunkRequest.md
|
|
234
237
|
docs/ProposedMemoryChunkResponse.md
|
|
235
238
|
docs/PublicApi.md
|
|
239
|
+
docs/ReasoningPart.md
|
|
236
240
|
docs/ReferenceType.md
|
|
237
241
|
docs/RequestPhoneChangeRequest.md
|
|
238
242
|
docs/ResolvedReferenceInput.md
|
|
@@ -258,9 +262,8 @@ docs/SheetVisibilityChange.md
|
|
|
258
262
|
docs/SignInRequest.md
|
|
259
263
|
docs/SortDirection.md
|
|
260
264
|
docs/StartWorkflowRunRequest.md
|
|
261
|
-
docs/
|
|
265
|
+
docs/Step.md
|
|
262
266
|
docs/StepKind.md
|
|
263
|
-
docs/StepOutput.md
|
|
264
267
|
docs/StructuredChange.md
|
|
265
268
|
docs/StructuredChangeType.md
|
|
266
269
|
docs/StructuredDiff.md
|
|
@@ -290,14 +293,17 @@ docs/TenantUserResponse.md
|
|
|
290
293
|
docs/TenantUserRole.md
|
|
291
294
|
docs/TenantsApi.md
|
|
292
295
|
docs/TextDiff.md
|
|
296
|
+
docs/TextPart.md
|
|
297
|
+
docs/TextPartOrReasoningPartOrToolPartOrDocEditPart.md
|
|
293
298
|
docs/ThreadMessageContent.md
|
|
294
|
-
docs/
|
|
295
|
-
docs/ThreadMessageDetailsOutput.md
|
|
299
|
+
docs/ThreadMessageDetails.md
|
|
296
300
|
docs/ThreadMessageResponse.md
|
|
297
301
|
docs/ThreadMessagesApi.md
|
|
298
302
|
docs/ThreadOrder.md
|
|
299
303
|
docs/ThreadResponse.md
|
|
300
304
|
docs/ThreadsApi.md
|
|
305
|
+
docs/ToolPart.md
|
|
306
|
+
docs/ToolStatus.md
|
|
301
307
|
docs/TransferOwnerRequest.md
|
|
302
308
|
docs/TransferOwnerResponse.md
|
|
303
309
|
docs/TrashApi.md
|
|
@@ -342,6 +348,7 @@ docs/WorkflowDefinitionsApi.md
|
|
|
342
348
|
docs/WorkflowDetailResponse.md
|
|
343
349
|
docs/WorkflowExecutionState.md
|
|
344
350
|
docs/WorkflowMemoryApi.md
|
|
351
|
+
docs/WorkflowRunAsset.md
|
|
345
352
|
docs/WorkflowRunCallbackRequest.md
|
|
346
353
|
docs/WorkflowRunOrder.md
|
|
347
354
|
docs/WorkflowRunResponse.md
|
|
@@ -477,6 +484,7 @@ src/models/DiffSpan.ts
|
|
|
477
484
|
src/models/DirectorySyncResponse.ts
|
|
478
485
|
src/models/DisplayNameFormat.ts
|
|
479
486
|
src/models/DissolveSectionResponse.ts
|
|
487
|
+
src/models/DocEditPart.ts
|
|
480
488
|
src/models/DocumentBlockChange.ts
|
|
481
489
|
src/models/DocumentCheckoutResponse.ts
|
|
482
490
|
src/models/DocumentDiff.ts
|
|
@@ -527,6 +535,7 @@ src/models/ImageTaxonomy.ts
|
|
|
527
535
|
src/models/InformationStatistics.ts
|
|
528
536
|
src/models/IngestDocumentResponse.ts
|
|
529
537
|
src/models/IngestionMode.ts
|
|
538
|
+
src/models/Input.ts
|
|
530
539
|
src/models/InputOrigin.ts
|
|
531
540
|
src/models/InputSnapshot.ts
|
|
532
541
|
src/models/InstantiateWorkflowTemplateRequest.ts
|
|
@@ -548,6 +557,7 @@ src/models/MemoryChunkResponse.ts
|
|
|
548
557
|
src/models/MemoryKind.ts
|
|
549
558
|
src/models/MemoryScope.ts
|
|
550
559
|
src/models/MessageRole.ts
|
|
560
|
+
src/models/MessageUsage.ts
|
|
551
561
|
src/models/MeteredQuotaStatus.ts
|
|
552
562
|
src/models/ModelTableRequest.ts
|
|
553
563
|
src/models/ModelTableResult.ts
|
|
@@ -602,6 +612,7 @@ src/models/Polygon.ts
|
|
|
602
612
|
src/models/PolygonReference.ts
|
|
603
613
|
src/models/ProposeMemoryChunkRequest.ts
|
|
604
614
|
src/models/ProposedMemoryChunkResponse.ts
|
|
615
|
+
src/models/ReasoningPart.ts
|
|
605
616
|
src/models/ReferenceType.ts
|
|
606
617
|
src/models/RequestPhoneChangeRequest.ts
|
|
607
618
|
src/models/ResolvedReferenceInput.ts
|
|
@@ -626,9 +637,8 @@ src/models/SheetVisibilityChange.ts
|
|
|
626
637
|
src/models/SignInRequest.ts
|
|
627
638
|
src/models/SortDirection.ts
|
|
628
639
|
src/models/StartWorkflowRunRequest.ts
|
|
629
|
-
src/models/
|
|
640
|
+
src/models/Step.ts
|
|
630
641
|
src/models/StepKind.ts
|
|
631
|
-
src/models/StepOutput.ts
|
|
632
642
|
src/models/StructuredChange.ts
|
|
633
643
|
src/models/StructuredChangeType.ts
|
|
634
644
|
src/models/StructuredDiff.ts
|
|
@@ -654,12 +664,15 @@ src/models/TenantUserOrder.ts
|
|
|
654
664
|
src/models/TenantUserResponse.ts
|
|
655
665
|
src/models/TenantUserRole.ts
|
|
656
666
|
src/models/TextDiff.ts
|
|
667
|
+
src/models/TextPart.ts
|
|
668
|
+
src/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.ts
|
|
657
669
|
src/models/ThreadMessageContent.ts
|
|
658
|
-
src/models/
|
|
659
|
-
src/models/ThreadMessageDetailsOutput.ts
|
|
670
|
+
src/models/ThreadMessageDetails.ts
|
|
660
671
|
src/models/ThreadMessageResponse.ts
|
|
661
672
|
src/models/ThreadOrder.ts
|
|
662
673
|
src/models/ThreadResponse.ts
|
|
674
|
+
src/models/ToolPart.ts
|
|
675
|
+
src/models/ToolStatus.ts
|
|
663
676
|
src/models/TransferOwnerRequest.ts
|
|
664
677
|
src/models/TransferOwnerResponse.ts
|
|
665
678
|
src/models/TrashItemResponse.ts
|
|
@@ -699,6 +712,7 @@ src/models/WorkflowDefinitionOrder.ts
|
|
|
699
712
|
src/models/WorkflowDefinitionResponse.ts
|
|
700
713
|
src/models/WorkflowDetailResponse.ts
|
|
701
714
|
src/models/WorkflowExecutionState.ts
|
|
715
|
+
src/models/WorkflowRunAsset.ts
|
|
702
716
|
src/models/WorkflowRunCallbackRequest.ts
|
|
703
717
|
src/models/WorkflowRunOrder.ts
|
|
704
718
|
src/models/WorkflowRunResponse.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@1.
|
|
1
|
+
# @knowledge-stack/ksapi@1.121.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -352,6 +352,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
352
352
|
- [DirectorySyncResponse](docs/DirectorySyncResponse.md)
|
|
353
353
|
- [DisplayNameFormat](docs/DisplayNameFormat.md)
|
|
354
354
|
- [DissolveSectionResponse](docs/DissolveSectionResponse.md)
|
|
355
|
+
- [DocEditPart](docs/DocEditPart.md)
|
|
355
356
|
- [DocumentBlockChange](docs/DocumentBlockChange.md)
|
|
356
357
|
- [DocumentCheckoutResponse](docs/DocumentCheckoutResponse.md)
|
|
357
358
|
- [DocumentDiff](docs/DocumentDiff.md)
|
|
@@ -402,6 +403,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
402
403
|
- [InformationStatistics](docs/InformationStatistics.md)
|
|
403
404
|
- [IngestDocumentResponse](docs/IngestDocumentResponse.md)
|
|
404
405
|
- [IngestionMode](docs/IngestionMode.md)
|
|
406
|
+
- [Input](docs/Input.md)
|
|
405
407
|
- [InputOrigin](docs/InputOrigin.md)
|
|
406
408
|
- [InputSnapshot](docs/InputSnapshot.md)
|
|
407
409
|
- [InstantiateWorkflowTemplateRequest](docs/InstantiateWorkflowTemplateRequest.md)
|
|
@@ -423,6 +425,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
423
425
|
- [MemoryKind](docs/MemoryKind.md)
|
|
424
426
|
- [MemoryScope](docs/MemoryScope.md)
|
|
425
427
|
- [MessageRole](docs/MessageRole.md)
|
|
428
|
+
- [MessageUsage](docs/MessageUsage.md)
|
|
426
429
|
- [MeteredQuotaStatus](docs/MeteredQuotaStatus.md)
|
|
427
430
|
- [ModelTableRequest](docs/ModelTableRequest.md)
|
|
428
431
|
- [ModelTableResult](docs/ModelTableResult.md)
|
|
@@ -477,6 +480,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
477
480
|
- [PolygonReference](docs/PolygonReference.md)
|
|
478
481
|
- [ProposeMemoryChunkRequest](docs/ProposeMemoryChunkRequest.md)
|
|
479
482
|
- [ProposedMemoryChunkResponse](docs/ProposedMemoryChunkResponse.md)
|
|
483
|
+
- [ReasoningPart](docs/ReasoningPart.md)
|
|
480
484
|
- [ReferenceType](docs/ReferenceType.md)
|
|
481
485
|
- [RequestPhoneChangeRequest](docs/RequestPhoneChangeRequest.md)
|
|
482
486
|
- [ResolvedReferenceInput](docs/ResolvedReferenceInput.md)
|
|
@@ -501,9 +505,8 @@ All URIs are relative to *http://localhost:8000*
|
|
|
501
505
|
- [SignInRequest](docs/SignInRequest.md)
|
|
502
506
|
- [SortDirection](docs/SortDirection.md)
|
|
503
507
|
- [StartWorkflowRunRequest](docs/StartWorkflowRunRequest.md)
|
|
504
|
-
- [
|
|
508
|
+
- [Step](docs/Step.md)
|
|
505
509
|
- [StepKind](docs/StepKind.md)
|
|
506
|
-
- [StepOutput](docs/StepOutput.md)
|
|
507
510
|
- [StructuredChange](docs/StructuredChange.md)
|
|
508
511
|
- [StructuredChangeType](docs/StructuredChangeType.md)
|
|
509
512
|
- [StructuredDiff](docs/StructuredDiff.md)
|
|
@@ -529,12 +532,15 @@ All URIs are relative to *http://localhost:8000*
|
|
|
529
532
|
- [TenantUserResponse](docs/TenantUserResponse.md)
|
|
530
533
|
- [TenantUserRole](docs/TenantUserRole.md)
|
|
531
534
|
- [TextDiff](docs/TextDiff.md)
|
|
535
|
+
- [TextPart](docs/TextPart.md)
|
|
536
|
+
- [TextPartOrReasoningPartOrToolPartOrDocEditPart](docs/TextPartOrReasoningPartOrToolPartOrDocEditPart.md)
|
|
532
537
|
- [ThreadMessageContent](docs/ThreadMessageContent.md)
|
|
533
|
-
- [
|
|
534
|
-
- [ThreadMessageDetailsOutput](docs/ThreadMessageDetailsOutput.md)
|
|
538
|
+
- [ThreadMessageDetails](docs/ThreadMessageDetails.md)
|
|
535
539
|
- [ThreadMessageResponse](docs/ThreadMessageResponse.md)
|
|
536
540
|
- [ThreadOrder](docs/ThreadOrder.md)
|
|
537
541
|
- [ThreadResponse](docs/ThreadResponse.md)
|
|
542
|
+
- [ToolPart](docs/ToolPart.md)
|
|
543
|
+
- [ToolStatus](docs/ToolStatus.md)
|
|
538
544
|
- [TransferOwnerRequest](docs/TransferOwnerRequest.md)
|
|
539
545
|
- [TransferOwnerResponse](docs/TransferOwnerResponse.md)
|
|
540
546
|
- [TrashItemResponse](docs/TrashItemResponse.md)
|
|
@@ -574,6 +580,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
574
580
|
- [WorkflowDefinitionResponse](docs/WorkflowDefinitionResponse.md)
|
|
575
581
|
- [WorkflowDetailResponse](docs/WorkflowDetailResponse.md)
|
|
576
582
|
- [WorkflowExecutionState](docs/WorkflowExecutionState.md)
|
|
583
|
+
- [WorkflowRunAsset](docs/WorkflowRunAsset.md)
|
|
577
584
|
- [WorkflowRunCallbackRequest](docs/WorkflowRunCallbackRequest.md)
|
|
578
585
|
- [WorkflowRunOrder](docs/WorkflowRunOrder.md)
|
|
579
586
|
- [WorkflowRunResponse](docs/WorkflowRunResponse.md)
|
|
@@ -609,7 +616,7 @@ and is automatically generated by the
|
|
|
609
616
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
610
617
|
|
|
611
618
|
- API version: `0.1.0`
|
|
612
|
-
- Package version: `1.
|
|
619
|
+
- Package version: `1.121.0`
|
|
613
620
|
- Generator version: `7.21.0`
|
|
614
621
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
615
622
|
|
|
@@ -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]: {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import { MessageRoleFromJSON, MessageRoleToJSON, } from './MessageRole';
|
|
15
|
-
import { ThreadMessageDetailsInputFromJSON, ThreadMessageDetailsInputToJSON, } from './ThreadMessageDetailsInput';
|
|
16
15
|
import { ThreadMessageContentFromJSON, ThreadMessageContentToJSON, } from './ThreadMessageContent';
|
|
16
|
+
import { ThreadMessageDetailsFromJSON, ThreadMessageDetailsToJSON, } from './ThreadMessageDetails';
|
|
17
17
|
export const CreateThreadMessageRequestPropertyValidationAttributesMap = {};
|
|
18
18
|
/**
|
|
19
19
|
* Check if a given object implements the CreateThreadMessageRequest interface.
|
|
@@ -36,7 +36,7 @@ export function CreateThreadMessageRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
36
36
|
'messageId': json['message_id'] == null ? undefined : json['message_id'],
|
|
37
37
|
'role': MessageRoleFromJSON(json['role']),
|
|
38
38
|
'content': ThreadMessageContentFromJSON(json['content']),
|
|
39
|
-
'details': json['details'] == null ? undefined :
|
|
39
|
+
'details': json['details'] == null ? undefined : ThreadMessageDetailsFromJSON(json['details']),
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
export function CreateThreadMessageRequestToJSON(json) {
|
|
@@ -50,6 +50,6 @@ export function CreateThreadMessageRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
50
50
|
'message_id': value['messageId'],
|
|
51
51
|
'role': MessageRoleToJSON(value['role']),
|
|
52
52
|
'content': ThreadMessageContentToJSON(value['content']),
|
|
53
|
-
'details':
|
|
53
|
+
'details': ThreadMessageDetailsToJSON(value['details']),
|
|
54
54
|
};
|
|
55
55
|
}
|
|
@@ -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,92 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const DocEditPartKindEnum = {
|
|
18
|
+
DocEdit: 'doc_edit'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export const DocEditPartDocFormatEnum = {
|
|
24
|
+
Docx: 'docx',
|
|
25
|
+
Xlsx: 'xlsx'
|
|
26
|
+
};
|
|
27
|
+
export const DocEditPartPropertyValidationAttributesMap = {
|
|
28
|
+
seq: {
|
|
29
|
+
minimum: 0,
|
|
30
|
+
exclusiveMinimum: false,
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the DocEditPart interface.
|
|
35
|
+
*/
|
|
36
|
+
export function instanceOfDocEditPart(value) {
|
|
37
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('seq' in value) || value['seq'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('startTime' in value) || value['startTime'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('documentId' in value) || value['documentId'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('newVersionId' in value) || value['newVersionId'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('docFormat' in value) || value['docFormat'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
export function DocEditPartFromJSON(json) {
|
|
52
|
+
return DocEditPartFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function DocEditPartFromJSONTyped(json, ignoreDiscriminator) {
|
|
55
|
+
if (json == null) {
|
|
56
|
+
return json;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'id': json['id'],
|
|
60
|
+
'seq': json['seq'],
|
|
61
|
+
'startTime': (new Date(json['start_time'])),
|
|
62
|
+
'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])),
|
|
63
|
+
'kind': json['kind'] == null ? undefined : json['kind'],
|
|
64
|
+
'toolCallId': json['tool_call_id'] == null ? undefined : json['tool_call_id'],
|
|
65
|
+
'documentId': json['document_id'],
|
|
66
|
+
'baseVersionId': json['base_version_id'] == null ? undefined : json['base_version_id'],
|
|
67
|
+
'newVersionId': json['new_version_id'],
|
|
68
|
+
'docFormat': json['doc_format'],
|
|
69
|
+
'approvalId': json['approval_id'] == null ? undefined : json['approval_id'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
export function DocEditPartToJSON(json) {
|
|
73
|
+
return DocEditPartToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
export function DocEditPartToJSONTyped(value, ignoreDiscriminator = false) {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'id': value['id'],
|
|
81
|
+
'seq': value['seq'],
|
|
82
|
+
'start_time': value['startTime'].toISOString(),
|
|
83
|
+
'end_time': value['endTime'] == null ? value['endTime'] : value['endTime'].toISOString(),
|
|
84
|
+
'kind': value['kind'],
|
|
85
|
+
'tool_call_id': value['toolCallId'],
|
|
86
|
+
'document_id': value['documentId'],
|
|
87
|
+
'base_version_id': value['baseVersionId'],
|
|
88
|
+
'new_version_id': value['newVersionId'],
|
|
89
|
+
'doc_format': value['docFormat'],
|
|
90
|
+
'approval_id': value['approvalId'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -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,32 @@
|
|
|
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
|
+
export const InputPropertyValidationAttributesMap = {};
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the Input interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfInput(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function InputFromJSON(json) {
|
|
22
|
+
return InputFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function InputFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
export function InputToJSON(json) {
|
|
28
|
+
return InputToJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function InputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
@@ -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,57 @@
|
|
|
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
|
+
export const MessageUsagePropertyValidationAttributesMap = {
|
|
15
|
+
inputTokens: {
|
|
16
|
+
minimum: 0,
|
|
17
|
+
exclusiveMinimum: false,
|
|
18
|
+
},
|
|
19
|
+
outputTokens: {
|
|
20
|
+
minimum: 0,
|
|
21
|
+
exclusiveMinimum: false,
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the MessageUsage interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfMessageUsage(value) {
|
|
28
|
+
if (!('inputTokens' in value) || value['inputTokens'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('outputTokens' in value) || value['outputTokens'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function MessageUsageFromJSON(json) {
|
|
35
|
+
return MessageUsageFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function MessageUsageFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'inputTokens': json['input_tokens'],
|
|
43
|
+
'outputTokens': json['output_tokens'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function MessageUsageToJSON(json) {
|
|
47
|
+
return MessageUsageToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function MessageUsageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'input_tokens': value['inputTokens'],
|
|
55
|
+
'output_tokens': value['outputTokens'],
|
|
56
|
+
};
|
|
57
|
+
}
|