@knowledge-stack/ksapi 1.72.4 → 1.78.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 +36 -4
- package/README.md +33 -11
- package/dist/apis/AgentApi.d.ts +114 -0
- package/dist/apis/AgentApi.js +156 -0
- package/dist/apis/ChunksApi.d.ts +19 -16
- package/dist/apis/ChunksApi.js +9 -6
- package/dist/apis/DocumentsApi.d.ts +4 -4
- package/dist/apis/DocumentsApi.js +2 -2
- package/dist/apis/FoldersApi.d.ts +4 -4
- package/dist/apis/FoldersApi.js +2 -2
- package/dist/apis/InvitesApi.d.ts +54 -7
- package/dist/apis/InvitesApi.js +51 -2
- package/dist/apis/PublicApi.d.ts +59 -0
- package/dist/apis/PublicApi.js +103 -0
- package/dist/apis/SubscriptionsApi.d.ts +120 -0
- package/dist/apis/SubscriptionsApi.js +162 -0
- package/dist/apis/TenantsApi.d.ts +45 -1
- package/dist/apis/TenantsApi.js +44 -0
- package/dist/apis/ThreadsApi.d.ts +4 -4
- package/dist/apis/ThreadsApi.js +2 -2
- package/dist/apis/index.d.ts +3 -0
- package/dist/apis/index.js +3 -0
- package/dist/esm/apis/AgentApi.d.ts +114 -0
- package/dist/esm/apis/AgentApi.js +119 -0
- package/dist/esm/apis/ChunksApi.d.ts +19 -16
- package/dist/esm/apis/ChunksApi.js +9 -6
- package/dist/esm/apis/DocumentsApi.d.ts +4 -4
- package/dist/esm/apis/DocumentsApi.js +2 -2
- package/dist/esm/apis/FoldersApi.d.ts +4 -4
- package/dist/esm/apis/FoldersApi.js +2 -2
- package/dist/esm/apis/InvitesApi.d.ts +54 -7
- package/dist/esm/apis/InvitesApi.js +52 -3
- package/dist/esm/apis/PublicApi.d.ts +59 -0
- package/dist/esm/apis/PublicApi.js +66 -0
- package/dist/esm/apis/SubscriptionsApi.d.ts +120 -0
- package/dist/esm/apis/SubscriptionsApi.js +125 -0
- package/dist/esm/apis/TenantsApi.d.ts +45 -1
- package/dist/esm/apis/TenantsApi.js +45 -1
- package/dist/esm/apis/ThreadsApi.d.ts +4 -4
- package/dist/esm/apis/ThreadsApi.js +2 -2
- package/dist/esm/apis/index.d.ts +3 -0
- package/dist/esm/apis/index.js +3 -0
- package/dist/esm/models/AcceptInviteResponse.d.ts +6 -0
- package/dist/esm/models/AcceptInviteResponse.js +2 -0
- package/dist/esm/models/AskRequest.d.ts +47 -0
- package/dist/esm/models/AskRequest.js +44 -0
- package/dist/esm/models/AskResponse.d.ts +47 -0
- package/dist/esm/models/AskResponse.js +44 -0
- package/dist/esm/models/ChangeSubscriptionRequest.d.ts +53 -0
- package/dist/esm/models/ChangeSubscriptionRequest.js +53 -0
- package/dist/esm/models/CheckpointDetails.d.ts +96 -0
- package/dist/esm/models/CheckpointDetails.js +91 -0
- package/dist/esm/models/ChunkBulkResponse.d.ts +3 -3
- package/dist/esm/models/ChunkBulkResponse.js +3 -3
- package/dist/esm/models/ChunkContentItem.d.ts +3 -3
- package/dist/esm/models/ChunkContentItem.js +3 -3
- package/dist/esm/models/{ChunkMetadataInput.d.ts → ChunkMetadata.d.ts} +23 -23
- package/dist/esm/models/{ChunkMetadataInput.js → ChunkMetadata.js} +9 -9
- package/dist/esm/models/ChunkNeighborsResponse.d.ts +18 -0
- package/dist/esm/models/ChunkNeighborsResponse.js +10 -0
- package/dist/esm/models/ChunkResponse.d.ts +3 -3
- package/dist/esm/models/ChunkResponse.js +3 -3
- package/dist/esm/models/CreateChunkRequest.d.ts +3 -3
- package/dist/esm/models/CreateChunkRequest.js +3 -3
- package/dist/esm/models/DocumentResponse.d.ts +6 -0
- package/dist/esm/models/DocumentResponse.js +4 -0
- package/dist/esm/models/DocumentVersionMetadata.d.ts +24 -0
- package/dist/esm/models/DocumentVersionMetadata.js +8 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +24 -0
- package/dist/esm/models/DocumentVersionMetadataUpdate.js +8 -0
- package/dist/esm/models/ExtractRequest.d.ts +61 -0
- package/dist/esm/models/ExtractRequest.js +48 -0
- package/dist/esm/models/ExtractResponse.d.ts +49 -0
- package/dist/esm/models/ExtractResponse.js +44 -0
- package/dist/esm/models/FeaturesResponse.d.ts +12 -0
- package/dist/esm/models/FeaturesResponse.js +8 -0
- package/dist/esm/models/FolderResponse.d.ts +6 -0
- package/dist/esm/models/FolderResponse.js +4 -0
- package/dist/esm/models/IdpType.d.ts +2 -0
- package/dist/esm/models/IdpType.js +2 -0
- package/dist/esm/models/InviteLinkSettingsRequest.d.ts +70 -0
- package/dist/esm/models/InviteLinkSettingsRequest.js +58 -0
- package/dist/esm/models/InviteLinkSettingsResponse.d.ts +67 -0
- package/dist/esm/models/InviteLinkSettingsResponse.js +57 -0
- package/dist/esm/models/InviteResponse.d.ts +6 -0
- package/dist/esm/models/InviteResponse.js +2 -0
- package/dist/esm/models/InviteUserRequest.d.ts +6 -0
- package/dist/esm/models/InviteUserRequest.js +8 -1
- package/dist/esm/models/LineageNodeResponse.d.ts +3 -3
- package/dist/esm/models/LineageNodeResponse.js +3 -3
- package/dist/esm/models/MeteredQuotaStatus.d.ts +72 -0
- package/dist/esm/models/MeteredQuotaStatus.js +61 -0
- package/dist/esm/models/PathPartAncestorItem.d.ts +6 -0
- package/dist/esm/models/PathPartAncestorItem.js +4 -0
- package/dist/esm/models/PathPartResponse.d.ts +6 -0
- package/dist/esm/models/PathPartResponse.js +4 -0
- package/dist/esm/models/PipelineStatus.d.ts +1 -0
- package/dist/esm/models/PipelineStatus.js +2 -1
- package/dist/esm/models/ScoredChunkResponse.d.ts +3 -3
- package/dist/esm/models/ScoredChunkResponse.js +3 -3
- package/dist/esm/models/SeatQuotaStatus.d.ts +55 -0
- package/dist/esm/models/SeatQuotaStatus.js +48 -0
- package/dist/esm/models/SubscriptionPlanResponse.d.ts +101 -0
- package/dist/esm/models/SubscriptionPlanResponse.js +76 -0
- package/dist/esm/models/TenantQuotaStateResponse.d.ts +55 -0
- package/dist/esm/models/TenantQuotaStateResponse.js +50 -0
- package/dist/esm/models/TenantResponse.d.ts +12 -0
- package/dist/esm/models/TenantResponse.js +14 -1
- package/dist/esm/models/TenantSettingsResponse.d.ts +7 -0
- package/dist/esm/models/TenantSettingsResponse.js +5 -0
- package/dist/esm/models/TenantSettingsUpdate.d.ts +7 -0
- package/dist/esm/models/TenantSettingsUpdate.js +3 -0
- package/dist/esm/models/ThreadMessageDetailsInput.d.ts +7 -0
- package/dist/esm/models/ThreadMessageDetailsInput.js +3 -0
- package/dist/esm/models/ThreadMessageDetailsOutput.d.ts +7 -0
- package/dist/esm/models/ThreadMessageDetailsOutput.js +3 -0
- package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +3 -3
- package/dist/esm/models/UpdateChunkMetadataRequest.js +3 -3
- package/dist/esm/models/UpdateDocumentRequest.d.ts +7 -1
- package/dist/esm/models/UpdateDocumentRequest.js +2 -0
- package/dist/esm/models/UpdateFolderRequest.d.ts +7 -1
- package/dist/esm/models/UpdateFolderRequest.js +2 -0
- package/dist/esm/models/UpdateInviteRequest.d.ts +53 -0
- package/dist/esm/models/UpdateInviteRequest.js +49 -0
- package/dist/esm/models/UsageMetric.d.ts +26 -0
- package/dist/esm/models/UsageMetric.js +44 -0
- package/dist/esm/models/index.d.ts +15 -2
- package/dist/esm/models/index.js +15 -2
- package/dist/models/AcceptInviteResponse.d.ts +6 -0
- package/dist/models/AcceptInviteResponse.js +2 -0
- package/dist/models/AskRequest.d.ts +47 -0
- package/dist/models/AskRequest.js +52 -0
- package/dist/models/AskResponse.d.ts +47 -0
- package/dist/models/AskResponse.js +52 -0
- package/dist/models/ChangeSubscriptionRequest.d.ts +53 -0
- package/dist/models/ChangeSubscriptionRequest.js +61 -0
- package/dist/models/CheckpointDetails.d.ts +96 -0
- package/dist/models/CheckpointDetails.js +99 -0
- package/dist/models/ChunkBulkResponse.d.ts +3 -3
- package/dist/models/ChunkBulkResponse.js +3 -3
- package/dist/models/ChunkContentItem.d.ts +3 -3
- package/dist/models/ChunkContentItem.js +3 -3
- package/dist/models/{ChunkMetadataInput.d.ts → ChunkMetadata.d.ts} +23 -23
- package/dist/models/{ChunkMetadataInput.js → ChunkMetadata.js} +15 -15
- package/dist/models/ChunkNeighborsResponse.d.ts +18 -0
- package/dist/models/ChunkNeighborsResponse.js +10 -0
- package/dist/models/ChunkResponse.d.ts +3 -3
- package/dist/models/ChunkResponse.js +3 -3
- package/dist/models/CreateChunkRequest.d.ts +3 -3
- package/dist/models/CreateChunkRequest.js +3 -3
- package/dist/models/DocumentResponse.d.ts +6 -0
- package/dist/models/DocumentResponse.js +4 -0
- package/dist/models/DocumentVersionMetadata.d.ts +24 -0
- package/dist/models/DocumentVersionMetadata.js +8 -0
- package/dist/models/DocumentVersionMetadataUpdate.d.ts +24 -0
- package/dist/models/DocumentVersionMetadataUpdate.js +8 -0
- package/dist/models/ExtractRequest.d.ts +61 -0
- package/dist/models/ExtractRequest.js +56 -0
- package/dist/models/ExtractResponse.d.ts +49 -0
- package/dist/models/ExtractResponse.js +52 -0
- package/dist/models/FeaturesResponse.d.ts +12 -0
- package/dist/models/FeaturesResponse.js +8 -0
- package/dist/models/FolderResponse.d.ts +6 -0
- package/dist/models/FolderResponse.js +4 -0
- package/dist/models/IdpType.d.ts +2 -0
- package/dist/models/IdpType.js +2 -0
- package/dist/models/InviteLinkSettingsRequest.d.ts +70 -0
- package/dist/models/InviteLinkSettingsRequest.js +66 -0
- package/dist/models/InviteLinkSettingsResponse.d.ts +67 -0
- package/dist/models/InviteLinkSettingsResponse.js +65 -0
- package/dist/models/InviteResponse.d.ts +6 -0
- package/dist/models/InviteResponse.js +2 -0
- package/dist/models/InviteUserRequest.d.ts +6 -0
- package/dist/models/InviteUserRequest.js +8 -1
- package/dist/models/LineageNodeResponse.d.ts +3 -3
- package/dist/models/LineageNodeResponse.js +3 -3
- package/dist/models/MeteredQuotaStatus.d.ts +72 -0
- package/dist/models/MeteredQuotaStatus.js +69 -0
- package/dist/models/PathPartAncestorItem.d.ts +6 -0
- package/dist/models/PathPartAncestorItem.js +4 -0
- package/dist/models/PathPartResponse.d.ts +6 -0
- package/dist/models/PathPartResponse.js +4 -0
- package/dist/models/PipelineStatus.d.ts +1 -0
- package/dist/models/PipelineStatus.js +2 -1
- package/dist/models/ScoredChunkResponse.d.ts +3 -3
- package/dist/models/ScoredChunkResponse.js +3 -3
- package/dist/models/SeatQuotaStatus.d.ts +55 -0
- package/dist/models/SeatQuotaStatus.js +56 -0
- package/dist/models/SubscriptionPlanResponse.d.ts +101 -0
- package/dist/models/SubscriptionPlanResponse.js +84 -0
- package/dist/models/TenantQuotaStateResponse.d.ts +55 -0
- package/dist/models/TenantQuotaStateResponse.js +58 -0
- package/dist/models/TenantResponse.d.ts +12 -0
- package/dist/models/TenantResponse.js +14 -1
- package/dist/models/TenantSettingsResponse.d.ts +7 -0
- package/dist/models/TenantSettingsResponse.js +5 -0
- package/dist/models/TenantSettingsUpdate.d.ts +7 -0
- package/dist/models/TenantSettingsUpdate.js +3 -0
- package/dist/models/ThreadMessageDetailsInput.d.ts +7 -0
- package/dist/models/ThreadMessageDetailsInput.js +3 -0
- package/dist/models/ThreadMessageDetailsOutput.d.ts +7 -0
- package/dist/models/ThreadMessageDetailsOutput.js +3 -0
- package/dist/models/UpdateChunkMetadataRequest.d.ts +3 -3
- package/dist/models/UpdateChunkMetadataRequest.js +3 -3
- package/dist/models/UpdateDocumentRequest.d.ts +7 -1
- package/dist/models/UpdateDocumentRequest.js +2 -0
- package/dist/models/UpdateFolderRequest.d.ts +7 -1
- package/dist/models/UpdateFolderRequest.js +2 -0
- package/dist/models/UpdateInviteRequest.d.ts +53 -0
- package/dist/models/UpdateInviteRequest.js +57 -0
- package/dist/models/UsageMetric.d.ts +26 -0
- package/dist/models/UsageMetric.js +52 -0
- package/dist/models/index.d.ts +15 -2
- package/dist/models/index.js +15 -2
- package/docs/AcceptInviteResponse.md +2 -0
- package/docs/AgentApi.md +158 -0
- package/docs/AskRequest.md +35 -0
- package/docs/AskResponse.md +35 -0
- package/docs/AuthApi.md +2 -2
- package/docs/ChangeSubscriptionRequest.md +37 -0
- package/docs/CheckpointDetails.md +49 -0
- package/docs/ChunkBulkResponse.md +1 -1
- package/docs/ChunkContentItem.md +1 -1
- package/docs/{ChunkMetadataInput.md → ChunkMetadata.md} +4 -4
- package/docs/ChunkNeighborsResponse.md +6 -0
- package/docs/ChunkResponse.md +1 -1
- package/docs/ChunksApi.md +13 -10
- package/docs/CreateChunkRequest.md +1 -1
- package/docs/DocumentResponse.md +2 -0
- package/docs/DocumentVersionMetadata.md +8 -0
- package/docs/DocumentVersionMetadataUpdate.md +8 -0
- package/docs/DocumentsApi.md +1 -1
- package/docs/ExtractRequest.md +39 -0
- package/docs/ExtractResponse.md +35 -0
- package/docs/FeaturesResponse.md +4 -0
- package/docs/FolderResponse.md +2 -0
- package/docs/FolderResponseOrDocumentResponse.md +2 -0
- package/docs/FoldersApi.md +1 -1
- package/docs/InviteLinkSettingsRequest.md +39 -0
- package/docs/InviteLinkSettingsResponse.md +39 -0
- package/docs/InviteResponse.md +2 -0
- package/docs/InviteUserRequest.md +2 -0
- package/docs/InvitesApi.md +81 -3
- package/docs/LineageNodeResponse.md +1 -1
- package/docs/MeteredQuotaStatus.md +43 -0
- package/docs/PathPartAncestorItem.md +2 -0
- package/docs/PathPartResponse.md +2 -0
- package/docs/PublicApi.md +68 -0
- package/docs/ScoredChunkResponse.md +1 -1
- package/docs/SeatQuotaStatus.md +37 -0
- package/docs/SectionContentItemOrChunkContentItem.md +1 -1
- package/docs/SubscriptionPlanResponse.md +51 -0
- package/docs/SubscriptionsApi.md +164 -0
- package/docs/TenantQuotaStateResponse.md +37 -0
- package/docs/TenantResponse.md +4 -0
- package/docs/TenantSettingsResponse.md +2 -0
- package/docs/TenantSettingsUpdate.md +2 -0
- package/docs/TenantsApi.md +75 -0
- package/docs/ThreadMessageDetailsInput.md +2 -0
- package/docs/ThreadMessageDetailsOutput.md +2 -0
- package/docs/ThreadsApi.md +1 -1
- package/docs/UpdateChunkMetadataRequest.md +1 -1
- package/docs/UpdateDocumentRequest.md +3 -1
- package/docs/UpdateFolderRequest.md +3 -1
- package/docs/UpdateInviteRequest.md +37 -0
- package/docs/UsageMetric.md +32 -0
- package/package.json +1 -1
- package/src/apis/AgentApi.ts +225 -0
- package/src/apis/ChunksApi.ts +27 -17
- package/src/apis/DocumentsApi.ts +4 -4
- package/src/apis/FoldersApi.ts +4 -4
- package/src/apis/InvitesApi.ts +107 -6
- package/src/apis/PublicApi.ts +100 -0
- package/src/apis/SubscriptionsApi.ts +238 -0
- package/src/apis/TenantsApi.ts +88 -0
- package/src/apis/ThreadsApi.ts +4 -4
- package/src/apis/index.ts +3 -0
- package/src/models/AcceptInviteResponse.ts +8 -0
- package/src/models/AskRequest.ts +83 -0
- package/src/models/AskResponse.ts +83 -0
- package/src/models/ChangeSubscriptionRequest.ts +96 -0
- package/src/models/CheckpointDetails.ts +169 -0
- package/src/models/ChunkBulkResponse.ts +11 -11
- package/src/models/ChunkContentItem.ts +10 -10
- package/src/models/{ChunkMetadataInput.ts → ChunkMetadata.ts} +25 -25
- package/src/models/ChunkNeighborsResponse.ts +26 -0
- package/src/models/ChunkResponse.ts +11 -11
- package/src/models/CreateChunkRequest.ts +10 -10
- package/src/models/DocumentResponse.ts +9 -0
- package/src/models/DocumentVersionMetadata.ts +32 -0
- package/src/models/DocumentVersionMetadataUpdate.ts +32 -0
- package/src/models/ExtractRequest.ts +99 -0
- package/src/models/ExtractResponse.ts +83 -0
- package/src/models/FeaturesResponse.ts +18 -0
- package/src/models/FolderResponse.ts +9 -0
- package/src/models/IdpType.ts +2 -0
- package/src/models/InviteLinkSettingsRequest.ts +116 -0
- package/src/models/InviteLinkSettingsResponse.ts +111 -0
- package/src/models/InviteResponse.ts +8 -0
- package/src/models/InviteUserRequest.ts +12 -0
- package/src/models/LineageNodeResponse.ts +10 -10
- package/src/models/MeteredQuotaStatus.ts +129 -0
- package/src/models/PathPartAncestorItem.ts +9 -0
- package/src/models/PathPartResponse.ts +9 -0
- package/src/models/PipelineStatus.ts +2 -1
- package/src/models/ScoredChunkResponse.ts +11 -11
- package/src/models/SeatQuotaStatus.ts +94 -0
- package/src/models/SubscriptionPlanResponse.ts +161 -0
- package/src/models/TenantQuotaStateResponse.ts +107 -0
- package/src/models/TenantResponse.ts +22 -0
- package/src/models/TenantSettingsResponse.ts +16 -0
- package/src/models/TenantSettingsUpdate.ts +15 -0
- package/src/models/ThreadMessageDetailsInput.ts +15 -0
- package/src/models/ThreadMessageDetailsOutput.ts +15 -0
- package/src/models/UpdateChunkMetadataRequest.ts +10 -10
- package/src/models/UpdateDocumentRequest.ts +9 -1
- package/src/models/UpdateFolderRequest.ts +9 -1
- package/src/models/UpdateInviteRequest.ts +94 -0
- package/src/models/UsageMetric.ts +54 -0
- package/src/models/index.ts +15 -2
- package/dist/esm/models/ChunkMetadataOutput.d.ts +0 -135
- package/dist/esm/models/ChunkMetadataOutput.js +0 -70
- package/dist/models/ChunkMetadataOutput.d.ts +0 -135
- package/dist/models/ChunkMetadataOutput.js +0 -78
- package/docs/ChunkMetadataOutput.md +0 -61
- package/src/models/ChunkMetadataOutput.ts +0 -203
package/.openapi-generator/FILES
CHANGED
|
@@ -5,21 +5,25 @@ README.md
|
|
|
5
5
|
docs/ABCDPathSnapshot.md
|
|
6
6
|
docs/AcceptInviteResponse.md
|
|
7
7
|
docs/AddMemberRequest.md
|
|
8
|
+
docs/AgentApi.md
|
|
8
9
|
docs/AncestryResponse.md
|
|
9
10
|
docs/ApiKeyResponse.md
|
|
10
11
|
docs/ApiKeysApi.md
|
|
11
12
|
docs/Args.md
|
|
13
|
+
docs/AskRequest.md
|
|
14
|
+
docs/AskResponse.md
|
|
12
15
|
docs/AuthApi.md
|
|
13
16
|
docs/BrandingLogoType.md
|
|
14
17
|
docs/BulkTagRequest.md
|
|
18
|
+
docs/ChangeSubscriptionRequest.md
|
|
19
|
+
docs/CheckpointDetails.md
|
|
15
20
|
docs/ChunkBulkResponse.md
|
|
16
21
|
docs/ChunkContentItem.md
|
|
17
22
|
docs/ChunkDocumentResponse.md
|
|
18
23
|
docs/ChunkDocumentVersionResponse.md
|
|
19
24
|
docs/ChunkLineageResponse.md
|
|
20
25
|
docs/ChunkLineagesApi.md
|
|
21
|
-
docs/
|
|
22
|
-
docs/ChunkMetadataOutput.md
|
|
26
|
+
docs/ChunkMetadata.md
|
|
23
27
|
docs/ChunkNeighborsResponse.md
|
|
24
28
|
docs/ChunkResponse.md
|
|
25
29
|
docs/ChunkSearchRequest.md
|
|
@@ -60,6 +64,8 @@ docs/EmailSentResponse.md
|
|
|
60
64
|
docs/EmailVerificationRequest.md
|
|
61
65
|
docs/EnrichedCitation.md
|
|
62
66
|
docs/EnrichedThreadMessageContent.md
|
|
67
|
+
docs/ExtractRequest.md
|
|
68
|
+
docs/ExtractResponse.md
|
|
63
69
|
docs/FeaturesApi.md
|
|
64
70
|
docs/FeaturesResponse.md
|
|
65
71
|
docs/FeedbackApi.md
|
|
@@ -83,6 +89,8 @@ docs/ImageTaxonomy.md
|
|
|
83
89
|
docs/InformationStatistics.md
|
|
84
90
|
docs/IngestDocumentResponse.md
|
|
85
91
|
docs/IngestionMode.md
|
|
92
|
+
docs/InviteLinkSettingsRequest.md
|
|
93
|
+
docs/InviteLinkSettingsResponse.md
|
|
86
94
|
docs/InviteResponse.md
|
|
87
95
|
docs/InviteStatus.md
|
|
88
96
|
docs/InviteUserRequest.md
|
|
@@ -94,6 +102,7 @@ docs/LineageNodeResponse.md
|
|
|
94
102
|
docs/LocationInner.md
|
|
95
103
|
docs/MembershipResponse.md
|
|
96
104
|
docs/MessageRole.md
|
|
105
|
+
docs/MeteredQuotaStatus.md
|
|
97
106
|
docs/NonFilesystemReferenceType.md
|
|
98
107
|
docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md
|
|
99
108
|
docs/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.md
|
|
@@ -129,6 +138,7 @@ docs/PipelineState.md
|
|
|
129
138
|
docs/PipelineStatus.md
|
|
130
139
|
docs/Polygon.md
|
|
131
140
|
docs/PolygonReference.md
|
|
141
|
+
docs/PublicApi.md
|
|
132
142
|
docs/ReferenceType.md
|
|
133
143
|
docs/ResolvedReferenceInput.md
|
|
134
144
|
docs/ResolvedReferenceOutput.md
|
|
@@ -138,6 +148,7 @@ docs/ScoredChunkResponse.md
|
|
|
138
148
|
docs/SearchSortOrder.md
|
|
139
149
|
docs/SearchType.md
|
|
140
150
|
docs/SearchablePartType.md
|
|
151
|
+
docs/SeatQuotaStatus.md
|
|
141
152
|
docs/SectionContentItem.md
|
|
142
153
|
docs/SectionContentItemOrChunkContentItem.md
|
|
143
154
|
docs/SectionResponse.md
|
|
@@ -150,6 +161,8 @@ docs/StepInput.md
|
|
|
150
161
|
docs/StepKind.md
|
|
151
162
|
docs/StepOutput.md
|
|
152
163
|
docs/SubmitFeedbackRequest.md
|
|
164
|
+
docs/SubscriptionPlanResponse.md
|
|
165
|
+
docs/SubscriptionsApi.md
|
|
153
166
|
docs/SubtreeChunkGroup.md
|
|
154
167
|
docs/SubtreeChunksResponse.md
|
|
155
168
|
docs/SupportedIdP.md
|
|
@@ -159,6 +172,7 @@ docs/TagsApi.md
|
|
|
159
172
|
docs/TemporalWorkflowStatusResponse.md
|
|
160
173
|
docs/TenantBrandingResponse.md
|
|
161
174
|
docs/TenantGroupsApi.md
|
|
175
|
+
docs/TenantQuotaStateResponse.md
|
|
162
176
|
docs/TenantResponse.md
|
|
163
177
|
docs/TenantSettingsResponse.md
|
|
164
178
|
docs/TenantSettingsUpdate.md
|
|
@@ -179,6 +193,7 @@ docs/UpdateDocumentRequest.md
|
|
|
179
193
|
docs/UpdateFolderRequest.md
|
|
180
194
|
docs/UpdateGroupPermissionRequest.md
|
|
181
195
|
docs/UpdateGroupRequest.md
|
|
196
|
+
docs/UpdateInviteRequest.md
|
|
182
197
|
docs/UpdatePermissionRequest.md
|
|
183
198
|
docs/UpdateSectionRequest.md
|
|
184
199
|
docs/UpdateTagRequest.md
|
|
@@ -186,6 +201,7 @@ docs/UpdateTenantRequest.md
|
|
|
186
201
|
docs/UpdateThreadRequest.md
|
|
187
202
|
docs/UpdateUserRequest.md
|
|
188
203
|
docs/UpdateWorkflowDefinitionRequest.md
|
|
204
|
+
docs/UsageMetric.md
|
|
189
205
|
docs/UserMessageRequest.md
|
|
190
206
|
docs/UserMessageResponse.md
|
|
191
207
|
docs/UserPermissionsApi.md
|
|
@@ -208,6 +224,7 @@ docs/WorkflowRunsApi.md
|
|
|
208
224
|
docs/WorkflowSummaryResponse.md
|
|
209
225
|
docs/WorkflowsApi.md
|
|
210
226
|
package.json
|
|
227
|
+
src/apis/AgentApi.ts
|
|
211
228
|
src/apis/ApiKeysApi.ts
|
|
212
229
|
src/apis/AuthApi.ts
|
|
213
230
|
src/apis/ChunkLineagesApi.ts
|
|
@@ -220,7 +237,9 @@ src/apis/FeedbackApi.ts
|
|
|
220
237
|
src/apis/FoldersApi.ts
|
|
221
238
|
src/apis/InvitesApi.ts
|
|
222
239
|
src/apis/PathPartsApi.ts
|
|
240
|
+
src/apis/PublicApi.ts
|
|
223
241
|
src/apis/SectionsApi.ts
|
|
242
|
+
src/apis/SubscriptionsApi.ts
|
|
224
243
|
src/apis/TagsApi.ts
|
|
225
244
|
src/apis/TenantGroupsApi.ts
|
|
226
245
|
src/apis/TenantsApi.ts
|
|
@@ -239,15 +258,18 @@ src/models/AddMemberRequest.ts
|
|
|
239
258
|
src/models/AncestryResponse.ts
|
|
240
259
|
src/models/ApiKeyResponse.ts
|
|
241
260
|
src/models/Args.ts
|
|
261
|
+
src/models/AskRequest.ts
|
|
262
|
+
src/models/AskResponse.ts
|
|
242
263
|
src/models/BrandingLogoType.ts
|
|
243
264
|
src/models/BulkTagRequest.ts
|
|
265
|
+
src/models/ChangeSubscriptionRequest.ts
|
|
266
|
+
src/models/CheckpointDetails.ts
|
|
244
267
|
src/models/ChunkBulkResponse.ts
|
|
245
268
|
src/models/ChunkContentItem.ts
|
|
246
269
|
src/models/ChunkDocumentResponse.ts
|
|
247
270
|
src/models/ChunkDocumentVersionResponse.ts
|
|
248
271
|
src/models/ChunkLineageResponse.ts
|
|
249
|
-
src/models/
|
|
250
|
-
src/models/ChunkMetadataOutput.ts
|
|
272
|
+
src/models/ChunkMetadata.ts
|
|
251
273
|
src/models/ChunkNeighborsResponse.ts
|
|
252
274
|
src/models/ChunkResponse.ts
|
|
253
275
|
src/models/ChunkSearchRequest.ts
|
|
@@ -284,6 +306,8 @@ src/models/EmailSentResponse.ts
|
|
|
284
306
|
src/models/EmailVerificationRequest.ts
|
|
285
307
|
src/models/EnrichedCitation.ts
|
|
286
308
|
src/models/EnrichedThreadMessageContent.ts
|
|
309
|
+
src/models/ExtractRequest.ts
|
|
310
|
+
src/models/ExtractResponse.ts
|
|
287
311
|
src/models/FeaturesResponse.ts
|
|
288
312
|
src/models/FeedbackEventResponse.ts
|
|
289
313
|
src/models/FeedbackRating.ts
|
|
@@ -304,6 +328,8 @@ src/models/ImageTaxonomy.ts
|
|
|
304
328
|
src/models/InformationStatistics.ts
|
|
305
329
|
src/models/IngestDocumentResponse.ts
|
|
306
330
|
src/models/IngestionMode.ts
|
|
331
|
+
src/models/InviteLinkSettingsRequest.ts
|
|
332
|
+
src/models/InviteLinkSettingsResponse.ts
|
|
307
333
|
src/models/InviteResponse.ts
|
|
308
334
|
src/models/InviteStatus.ts
|
|
309
335
|
src/models/InviteUserRequest.ts
|
|
@@ -314,6 +340,7 @@ src/models/LineageNodeResponse.ts
|
|
|
314
340
|
src/models/LocationInner.ts
|
|
315
341
|
src/models/MembershipResponse.ts
|
|
316
342
|
src/models/MessageRole.ts
|
|
343
|
+
src/models/MeteredQuotaStatus.ts
|
|
317
344
|
src/models/NonFilesystemReferenceType.ts
|
|
318
345
|
src/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.ts
|
|
319
346
|
src/models/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.ts
|
|
@@ -357,6 +384,7 @@ src/models/ScoredChunkResponse.ts
|
|
|
357
384
|
src/models/SearchSortOrder.ts
|
|
358
385
|
src/models/SearchType.ts
|
|
359
386
|
src/models/SearchablePartType.ts
|
|
387
|
+
src/models/SeatQuotaStatus.ts
|
|
360
388
|
src/models/SectionContentItem.ts
|
|
361
389
|
src/models/SectionContentItemOrChunkContentItem.ts
|
|
362
390
|
src/models/SectionResponse.ts
|
|
@@ -368,6 +396,7 @@ src/models/StepInput.ts
|
|
|
368
396
|
src/models/StepKind.ts
|
|
369
397
|
src/models/StepOutput.ts
|
|
370
398
|
src/models/SubmitFeedbackRequest.ts
|
|
399
|
+
src/models/SubscriptionPlanResponse.ts
|
|
371
400
|
src/models/SubtreeChunkGroup.ts
|
|
372
401
|
src/models/SubtreeChunksResponse.ts
|
|
373
402
|
src/models/SupportedIdP.ts
|
|
@@ -375,6 +404,7 @@ src/models/SupportedLanguage.ts
|
|
|
375
404
|
src/models/TagResponse.ts
|
|
376
405
|
src/models/TemporalWorkflowStatusResponse.ts
|
|
377
406
|
src/models/TenantBrandingResponse.ts
|
|
407
|
+
src/models/TenantQuotaStateResponse.ts
|
|
378
408
|
src/models/TenantResponse.ts
|
|
379
409
|
src/models/TenantSettingsResponse.ts
|
|
380
410
|
src/models/TenantSettingsUpdate.ts
|
|
@@ -392,6 +422,7 @@ src/models/UpdateDocumentRequest.ts
|
|
|
392
422
|
src/models/UpdateFolderRequest.ts
|
|
393
423
|
src/models/UpdateGroupPermissionRequest.ts
|
|
394
424
|
src/models/UpdateGroupRequest.ts
|
|
425
|
+
src/models/UpdateInviteRequest.ts
|
|
395
426
|
src/models/UpdatePermissionRequest.ts
|
|
396
427
|
src/models/UpdateSectionRequest.ts
|
|
397
428
|
src/models/UpdateTagRequest.ts
|
|
@@ -399,6 +430,7 @@ src/models/UpdateTenantRequest.ts
|
|
|
399
430
|
src/models/UpdateThreadRequest.ts
|
|
400
431
|
src/models/UpdateUserRequest.ts
|
|
401
432
|
src/models/UpdateWorkflowDefinitionRequest.ts
|
|
433
|
+
src/models/UsageMetric.ts
|
|
402
434
|
src/models/UserMessageRequest.ts
|
|
403
435
|
src/models/UserMessageResponse.ts
|
|
404
436
|
src/models/UserResponse.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@1.
|
|
1
|
+
# @knowledge-stack/ksapi@1.78.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -16,23 +16,25 @@ Next, try it out.
|
|
|
16
16
|
```ts
|
|
17
17
|
import {
|
|
18
18
|
Configuration,
|
|
19
|
-
|
|
19
|
+
AgentApi,
|
|
20
20
|
} from '@knowledge-stack/ksapi';
|
|
21
|
-
import type {
|
|
21
|
+
import type { AgentAskRequest } from '@knowledge-stack/ksapi';
|
|
22
22
|
|
|
23
23
|
async function example() {
|
|
24
24
|
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
25
|
-
const api = new
|
|
25
|
+
const api = new AgentApi();
|
|
26
26
|
|
|
27
27
|
const body = {
|
|
28
|
-
//
|
|
29
|
-
|
|
28
|
+
// AskRequest
|
|
29
|
+
askRequest: ...,
|
|
30
|
+
// string (optional)
|
|
31
|
+
authorization: authorization_example,
|
|
30
32
|
// string (optional)
|
|
31
33
|
ksUat: ksUat_example,
|
|
32
|
-
} satisfies
|
|
34
|
+
} satisfies AgentAskRequest;
|
|
33
35
|
|
|
34
36
|
try {
|
|
35
|
-
const data = await api.
|
|
37
|
+
const data = await api.agentAsk(body);
|
|
36
38
|
console.log(data);
|
|
37
39
|
} catch (error) {
|
|
38
40
|
console.error(error);
|
|
@@ -52,6 +54,8 @@ All URIs are relative to *http://localhost:8000*
|
|
|
52
54
|
|
|
53
55
|
| Class | Method | HTTP request | Description
|
|
54
56
|
| ----- | ------ | ------------ | -------------
|
|
57
|
+
*AgentApi* | [**agentAsk**](docs/AgentApi.md#agentask) | **POST** /v1/agent/ask | Agent Ask Handler
|
|
58
|
+
*AgentApi* | [**agentExtract**](docs/AgentApi.md#agentextract) | **POST** /v1/agent/extract | Agent Extract Handler
|
|
55
59
|
*ApiKeysApi* | [**createApiKey**](docs/ApiKeysApi.md#createapikeyoperation) | **POST** /v1/api-keys | Create Api Key Handler
|
|
56
60
|
*ApiKeysApi* | [**deleteApiKey**](docs/ApiKeysApi.md#deleteapikey) | **DELETE** /v1/api-keys/{api_key_id} | Delete Api Key Handler
|
|
57
61
|
*ApiKeysApi* | [**getApiKey**](docs/ApiKeysApi.md#getapikey) | **GET** /v1/api-keys/{api_key_id} | Get Api Key Handler
|
|
@@ -114,6 +118,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
114
118
|
*InvitesApi* | [**createInvite**](docs/InvitesApi.md#createinvite) | **POST** /v1/invites | Create Invite
|
|
115
119
|
*InvitesApi* | [**deleteInvite**](docs/InvitesApi.md#deleteinvite) | **DELETE** /v1/invites/{invite_id} | Delete Invite
|
|
116
120
|
*InvitesApi* | [**listInvites**](docs/InvitesApi.md#listinvites) | **GET** /v1/invites | List Invites Handler
|
|
121
|
+
*InvitesApi* | [**updateInvite**](docs/InvitesApi.md#updateinviteoperation) | **PATCH** /v1/invites/{invite_id} | Update Invite Handler
|
|
117
122
|
*PathPartsApi* | [**bulkRemovePathPartTags**](docs/PathPartsApi.md#bulkremovepathparttags) | **DELETE** /v1/path-parts/{path_part_id}/tags | Bulk Remove Path Part Tags Handler
|
|
118
123
|
*PathPartsApi* | [**getPathPart**](docs/PathPartsApi.md#getpathpart) | **GET** /v1/path-parts/{path_part_id} | Get Path Part Handler
|
|
119
124
|
*PathPartsApi* | [**getPathPartAncestry**](docs/PathPartsApi.md#getpathpartancestry) | **GET** /v1/path-parts/{path_part_id}/ancestry | Get Path Part Ancestry Handler
|
|
@@ -121,12 +126,15 @@ All URIs are relative to *http://localhost:8000*
|
|
|
121
126
|
*PathPartsApi* | [**getPathPartTags**](docs/PathPartsApi.md#getpathparttags) | **GET** /v1/path-parts/{path_part_id}/tags | Get Path Part Tags Handler
|
|
122
127
|
*PathPartsApi* | [**listPathParts**](docs/PathPartsApi.md#listpathparts) | **GET** /v1/path-parts | List Path Parts Handler
|
|
123
128
|
*PathPartsApi* | [**setPathPartTags**](docs/PathPartsApi.md#setpathparttags) | **POST** /v1/path-parts/{path_part_id}/tags | Set Path Part Tags Handler
|
|
129
|
+
*PublicApi* | [**listPublicSubscriptions**](docs/PublicApi.md#listpublicsubscriptions) | **GET** /public/subscriptions | List Public Subscriptions Handler
|
|
124
130
|
*SectionsApi* | [**createSection**](docs/SectionsApi.md#createsectionoperation) | **POST** /v1/sections | Create Section Handler
|
|
125
131
|
*SectionsApi* | [**deleteSection**](docs/SectionsApi.md#deletesection) | **DELETE** /v1/sections/{section_id} | Delete Section Handler
|
|
126
132
|
*SectionsApi* | [**dissolveSection**](docs/SectionsApi.md#dissolvesection) | **POST** /v1/sections/{section_id}/dissolve | Dissolve Section Handler
|
|
127
133
|
*SectionsApi* | [**getSection**](docs/SectionsApi.md#getsection) | **GET** /v1/sections/{section_id} | Get Section Handler
|
|
128
134
|
*SectionsApi* | [**getSectionsBulk**](docs/SectionsApi.md#getsectionsbulk) | **GET** /v1/sections/bulk | Get Sections Bulk Handler
|
|
129
135
|
*SectionsApi* | [**updateSection**](docs/SectionsApi.md#updatesectionoperation) | **PATCH** /v1/sections/{section_id} | Update Section Handler
|
|
136
|
+
*SubscriptionsApi* | [**changeTenantSubscription**](docs/SubscriptionsApi.md#changetenantsubscription) | **POST** /v1/tenants/{tenant_id}/subscriptions | Change Tenant Subscription Handler
|
|
137
|
+
*SubscriptionsApi* | [**getTenantSubscription**](docs/SubscriptionsApi.md#gettenantsubscription) | **GET** /v1/tenants/{tenant_id}/subscriptions | Get Tenant Subscription Handler
|
|
130
138
|
*TagsApi* | [**createTag**](docs/TagsApi.md#createtagoperation) | **POST** /v1/tags | Create Tag Handler
|
|
131
139
|
*TagsApi* | [**deleteTag**](docs/TagsApi.md#deletetag) | **DELETE** /v1/tags/{tag_id} | Delete Tag Handler
|
|
132
140
|
*TagsApi* | [**getTag**](docs/TagsApi.md#gettag) | **GET** /v1/tags/{tag_id} | Get Tag Handler
|
|
@@ -151,6 +159,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
151
159
|
*TenantsApi* | [**deleteTenantLogo**](docs/TenantsApi.md#deletetenantlogo) | **DELETE** /v1/tenants/{tenant_id}/branding/logo | Delete Tenant Logo
|
|
152
160
|
*TenantsApi* | [**deleteTenantUser**](docs/TenantsApi.md#deletetenantuser) | **DELETE** /v1/tenants/{tenant_id}/users/{user_id} | Delete Tenant User Handler
|
|
153
161
|
*TenantsApi* | [**getTenant**](docs/TenantsApi.md#gettenant) | **GET** /v1/tenants/{tenant_id} | Get Tenant
|
|
162
|
+
*TenantsApi* | [**getTenantQuotaState**](docs/TenantsApi.md#gettenantquotastate) | **GET** /v1/tenants/{tenant_id}/quota | Get Tenant Quota State Handler
|
|
154
163
|
*TenantsApi* | [**listTenantUsers**](docs/TenantsApi.md#listtenantusers) | **GET** /v1/tenants/{tenant_id}/users | List Tenant Users
|
|
155
164
|
*TenantsApi* | [**listTenants**](docs/TenantsApi.md#listtenants) | **GET** /v1/tenants | List Tenants
|
|
156
165
|
*TenantsApi* | [**updateTenant**](docs/TenantsApi.md#updatetenantoperation) | **PATCH** /v1/tenants/{tenant_id} | Update Tenant
|
|
@@ -197,15 +206,18 @@ All URIs are relative to *http://localhost:8000*
|
|
|
197
206
|
- [AncestryResponse](docs/AncestryResponse.md)
|
|
198
207
|
- [ApiKeyResponse](docs/ApiKeyResponse.md)
|
|
199
208
|
- [Args](docs/Args.md)
|
|
209
|
+
- [AskRequest](docs/AskRequest.md)
|
|
210
|
+
- [AskResponse](docs/AskResponse.md)
|
|
200
211
|
- [BrandingLogoType](docs/BrandingLogoType.md)
|
|
201
212
|
- [BulkTagRequest](docs/BulkTagRequest.md)
|
|
213
|
+
- [ChangeSubscriptionRequest](docs/ChangeSubscriptionRequest.md)
|
|
214
|
+
- [CheckpointDetails](docs/CheckpointDetails.md)
|
|
202
215
|
- [ChunkBulkResponse](docs/ChunkBulkResponse.md)
|
|
203
216
|
- [ChunkContentItem](docs/ChunkContentItem.md)
|
|
204
217
|
- [ChunkDocumentResponse](docs/ChunkDocumentResponse.md)
|
|
205
218
|
- [ChunkDocumentVersionResponse](docs/ChunkDocumentVersionResponse.md)
|
|
206
219
|
- [ChunkLineageResponse](docs/ChunkLineageResponse.md)
|
|
207
|
-
- [
|
|
208
|
-
- [ChunkMetadataOutput](docs/ChunkMetadataOutput.md)
|
|
220
|
+
- [ChunkMetadata](docs/ChunkMetadata.md)
|
|
209
221
|
- [ChunkNeighborsResponse](docs/ChunkNeighborsResponse.md)
|
|
210
222
|
- [ChunkResponse](docs/ChunkResponse.md)
|
|
211
223
|
- [ChunkSearchRequest](docs/ChunkSearchRequest.md)
|
|
@@ -242,6 +254,8 @@ All URIs are relative to *http://localhost:8000*
|
|
|
242
254
|
- [EmailVerificationRequest](docs/EmailVerificationRequest.md)
|
|
243
255
|
- [EnrichedCitation](docs/EnrichedCitation.md)
|
|
244
256
|
- [EnrichedThreadMessageContent](docs/EnrichedThreadMessageContent.md)
|
|
257
|
+
- [ExtractRequest](docs/ExtractRequest.md)
|
|
258
|
+
- [ExtractResponse](docs/ExtractResponse.md)
|
|
245
259
|
- [FeaturesResponse](docs/FeaturesResponse.md)
|
|
246
260
|
- [FeedbackEventResponse](docs/FeedbackEventResponse.md)
|
|
247
261
|
- [FeedbackRating](docs/FeedbackRating.md)
|
|
@@ -262,6 +276,8 @@ All URIs are relative to *http://localhost:8000*
|
|
|
262
276
|
- [InformationStatistics](docs/InformationStatistics.md)
|
|
263
277
|
- [IngestDocumentResponse](docs/IngestDocumentResponse.md)
|
|
264
278
|
- [IngestionMode](docs/IngestionMode.md)
|
|
279
|
+
- [InviteLinkSettingsRequest](docs/InviteLinkSettingsRequest.md)
|
|
280
|
+
- [InviteLinkSettingsResponse](docs/InviteLinkSettingsResponse.md)
|
|
265
281
|
- [InviteResponse](docs/InviteResponse.md)
|
|
266
282
|
- [InviteStatus](docs/InviteStatus.md)
|
|
267
283
|
- [InviteUserRequest](docs/InviteUserRequest.md)
|
|
@@ -272,6 +288,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
272
288
|
- [LocationInner](docs/LocationInner.md)
|
|
273
289
|
- [MembershipResponse](docs/MembershipResponse.md)
|
|
274
290
|
- [MessageRole](docs/MessageRole.md)
|
|
291
|
+
- [MeteredQuotaStatus](docs/MeteredQuotaStatus.md)
|
|
275
292
|
- [NonFilesystemReferenceType](docs/NonFilesystemReferenceType.md)
|
|
276
293
|
- [PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator](docs/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator.md)
|
|
277
294
|
- [PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator](docs/PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator.md)
|
|
@@ -315,6 +332,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
315
332
|
- [SearchSortOrder](docs/SearchSortOrder.md)
|
|
316
333
|
- [SearchType](docs/SearchType.md)
|
|
317
334
|
- [SearchablePartType](docs/SearchablePartType.md)
|
|
335
|
+
- [SeatQuotaStatus](docs/SeatQuotaStatus.md)
|
|
318
336
|
- [SectionContentItem](docs/SectionContentItem.md)
|
|
319
337
|
- [SectionContentItemOrChunkContentItem](docs/SectionContentItemOrChunkContentItem.md)
|
|
320
338
|
- [SectionResponse](docs/SectionResponse.md)
|
|
@@ -326,6 +344,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
326
344
|
- [StepKind](docs/StepKind.md)
|
|
327
345
|
- [StepOutput](docs/StepOutput.md)
|
|
328
346
|
- [SubmitFeedbackRequest](docs/SubmitFeedbackRequest.md)
|
|
347
|
+
- [SubscriptionPlanResponse](docs/SubscriptionPlanResponse.md)
|
|
329
348
|
- [SubtreeChunkGroup](docs/SubtreeChunkGroup.md)
|
|
330
349
|
- [SubtreeChunksResponse](docs/SubtreeChunksResponse.md)
|
|
331
350
|
- [SupportedIdP](docs/SupportedIdP.md)
|
|
@@ -333,6 +352,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
333
352
|
- [TagResponse](docs/TagResponse.md)
|
|
334
353
|
- [TemporalWorkflowStatusResponse](docs/TemporalWorkflowStatusResponse.md)
|
|
335
354
|
- [TenantBrandingResponse](docs/TenantBrandingResponse.md)
|
|
355
|
+
- [TenantQuotaStateResponse](docs/TenantQuotaStateResponse.md)
|
|
336
356
|
- [TenantResponse](docs/TenantResponse.md)
|
|
337
357
|
- [TenantSettingsResponse](docs/TenantSettingsResponse.md)
|
|
338
358
|
- [TenantSettingsUpdate](docs/TenantSettingsUpdate.md)
|
|
@@ -350,6 +370,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
350
370
|
- [UpdateFolderRequest](docs/UpdateFolderRequest.md)
|
|
351
371
|
- [UpdateGroupPermissionRequest](docs/UpdateGroupPermissionRequest.md)
|
|
352
372
|
- [UpdateGroupRequest](docs/UpdateGroupRequest.md)
|
|
373
|
+
- [UpdateInviteRequest](docs/UpdateInviteRequest.md)
|
|
353
374
|
- [UpdatePermissionRequest](docs/UpdatePermissionRequest.md)
|
|
354
375
|
- [UpdateSectionRequest](docs/UpdateSectionRequest.md)
|
|
355
376
|
- [UpdateTagRequest](docs/UpdateTagRequest.md)
|
|
@@ -357,6 +378,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
357
378
|
- [UpdateThreadRequest](docs/UpdateThreadRequest.md)
|
|
358
379
|
- [UpdateUserRequest](docs/UpdateUserRequest.md)
|
|
359
380
|
- [UpdateWorkflowDefinitionRequest](docs/UpdateWorkflowDefinitionRequest.md)
|
|
381
|
+
- [UsageMetric](docs/UsageMetric.md)
|
|
360
382
|
- [UserMessageRequest](docs/UserMessageRequest.md)
|
|
361
383
|
- [UserMessageResponse](docs/UserMessageResponse.md)
|
|
362
384
|
- [UserResponse](docs/UserResponse.md)
|
|
@@ -386,7 +408,7 @@ and is automatically generated by the
|
|
|
386
408
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
387
409
|
|
|
388
410
|
- API version: `0.1.0`
|
|
389
|
-
- Package version: `1.
|
|
411
|
+
- Package version: `1.78.0`
|
|
390
412
|
- Generator version: `7.21.0`
|
|
391
413
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
392
414
|
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { AskRequest, AskResponse, ExtractRequest, ExtractResponse } from '../models/index';
|
|
14
|
+
export interface AgentAskRequest {
|
|
15
|
+
askRequest: AskRequest;
|
|
16
|
+
authorization?: string | null;
|
|
17
|
+
ksUat?: string | null;
|
|
18
|
+
}
|
|
19
|
+
export interface AgentExtractRequest {
|
|
20
|
+
extractRequest: ExtractRequest;
|
|
21
|
+
authorization?: string | null;
|
|
22
|
+
ksUat?: string | null;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* AgentApi - interface
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface AgentApiInterface
|
|
29
|
+
*/
|
|
30
|
+
export interface AgentApiInterface {
|
|
31
|
+
/**
|
|
32
|
+
* Creates request options for agentAsk without sending the request
|
|
33
|
+
* @param {AskRequest} askRequest
|
|
34
|
+
* @param {string} [authorization]
|
|
35
|
+
* @param {string} [ksUat]
|
|
36
|
+
* @throws {RequiredError}
|
|
37
|
+
* @memberof AgentApiInterface
|
|
38
|
+
*/
|
|
39
|
+
agentAskRequestOpts(requestParameters: AgentAskRequest): Promise<runtime.RequestOpts>;
|
|
40
|
+
/**
|
|
41
|
+
* Run a one-shot text agent request to completion and return the payload. The request blocks until the underlying Temporal workflow finishes. Clients should set a generous HTTP timeout to accommodate tool-heavy runs. Quota: consumes one MESSAGE before ``start_workflow``. Refunds on any failure between consume and ``handle.result()`` returning — pre-enqueue ``start_workflow`` raises and post-enqueue workflow failures both refund.
|
|
42
|
+
* @summary Agent Ask Handler
|
|
43
|
+
* @param {AskRequest} askRequest
|
|
44
|
+
* @param {string} [authorization]
|
|
45
|
+
* @param {string} [ksUat]
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
* @memberof AgentApiInterface
|
|
49
|
+
*/
|
|
50
|
+
agentAskRaw(requestParameters: AgentAskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AskResponse>>;
|
|
51
|
+
/**
|
|
52
|
+
* Run a one-shot text agent request to completion and return the payload. The request blocks until the underlying Temporal workflow finishes. Clients should set a generous HTTP timeout to accommodate tool-heavy runs. Quota: consumes one MESSAGE before ``start_workflow``. Refunds on any failure between consume and ``handle.result()`` returning — pre-enqueue ``start_workflow`` raises and post-enqueue workflow failures both refund.
|
|
53
|
+
* Agent Ask Handler
|
|
54
|
+
*/
|
|
55
|
+
agentAsk(requestParameters: AgentAskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AskResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* Creates request options for agentExtract without sending the request
|
|
58
|
+
* @param {ExtractRequest} extractRequest
|
|
59
|
+
* @param {string} [authorization]
|
|
60
|
+
* @param {string} [ksUat]
|
|
61
|
+
* @throws {RequiredError}
|
|
62
|
+
* @memberof AgentApiInterface
|
|
63
|
+
*/
|
|
64
|
+
agentExtractRequestOpts(requestParameters: AgentExtractRequest): Promise<runtime.RequestOpts>;
|
|
65
|
+
/**
|
|
66
|
+
* Run a one-shot structured extraction request and return the payload. Validates the schema input on the route side (DOCUMENT → active version → valid JSON object) BEFORE consuming quota or starting the workflow. Bad schema → 400 with no quota debit. The workflow activity trusts the input and does not re-validate. Quota: consumes one MESSAGE before ``start_workflow``. Refunds on any failure between consume and ``handle.result()`` returning — pre-enqueue ``start_workflow`` raises and post-enqueue workflow failures both refund.
|
|
67
|
+
* @summary Agent Extract Handler
|
|
68
|
+
* @param {ExtractRequest} extractRequest
|
|
69
|
+
* @param {string} [authorization]
|
|
70
|
+
* @param {string} [ksUat]
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
* @memberof AgentApiInterface
|
|
74
|
+
*/
|
|
75
|
+
agentExtractRaw(requestParameters: AgentExtractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExtractResponse>>;
|
|
76
|
+
/**
|
|
77
|
+
* Run a one-shot structured extraction request and return the payload. Validates the schema input on the route side (DOCUMENT → active version → valid JSON object) BEFORE consuming quota or starting the workflow. Bad schema → 400 with no quota debit. The workflow activity trusts the input and does not re-validate. Quota: consumes one MESSAGE before ``start_workflow``. Refunds on any failure between consume and ``handle.result()`` returning — pre-enqueue ``start_workflow`` raises and post-enqueue workflow failures both refund.
|
|
78
|
+
* Agent Extract Handler
|
|
79
|
+
*/
|
|
80
|
+
agentExtract(requestParameters: AgentExtractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ExtractResponse>;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
export declare class AgentApi extends runtime.BaseAPI implements AgentApiInterface {
|
|
86
|
+
/**
|
|
87
|
+
* Creates request options for agentAsk without sending the request
|
|
88
|
+
*/
|
|
89
|
+
agentAskRequestOpts(requestParameters: AgentAskRequest): Promise<runtime.RequestOpts>;
|
|
90
|
+
/**
|
|
91
|
+
* Run a one-shot text agent request to completion and return the payload. The request blocks until the underlying Temporal workflow finishes. Clients should set a generous HTTP timeout to accommodate tool-heavy runs. Quota: consumes one MESSAGE before ``start_workflow``. Refunds on any failure between consume and ``handle.result()`` returning — pre-enqueue ``start_workflow`` raises and post-enqueue workflow failures both refund.
|
|
92
|
+
* Agent Ask Handler
|
|
93
|
+
*/
|
|
94
|
+
agentAskRaw(requestParameters: AgentAskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AskResponse>>;
|
|
95
|
+
/**
|
|
96
|
+
* Run a one-shot text agent request to completion and return the payload. The request blocks until the underlying Temporal workflow finishes. Clients should set a generous HTTP timeout to accommodate tool-heavy runs. Quota: consumes one MESSAGE before ``start_workflow``. Refunds on any failure between consume and ``handle.result()`` returning — pre-enqueue ``start_workflow`` raises and post-enqueue workflow failures both refund.
|
|
97
|
+
* Agent Ask Handler
|
|
98
|
+
*/
|
|
99
|
+
agentAsk(requestParameters: AgentAskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AskResponse>;
|
|
100
|
+
/**
|
|
101
|
+
* Creates request options for agentExtract without sending the request
|
|
102
|
+
*/
|
|
103
|
+
agentExtractRequestOpts(requestParameters: AgentExtractRequest): Promise<runtime.RequestOpts>;
|
|
104
|
+
/**
|
|
105
|
+
* Run a one-shot structured extraction request and return the payload. Validates the schema input on the route side (DOCUMENT → active version → valid JSON object) BEFORE consuming quota or starting the workflow. Bad schema → 400 with no quota debit. The workflow activity trusts the input and does not re-validate. Quota: consumes one MESSAGE before ``start_workflow``. Refunds on any failure between consume and ``handle.result()`` returning — pre-enqueue ``start_workflow`` raises and post-enqueue workflow failures both refund.
|
|
106
|
+
* Agent Extract Handler
|
|
107
|
+
*/
|
|
108
|
+
agentExtractRaw(requestParameters: AgentExtractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ExtractResponse>>;
|
|
109
|
+
/**
|
|
110
|
+
* Run a one-shot structured extraction request and return the payload. Validates the schema input on the route side (DOCUMENT → active version → valid JSON object) BEFORE consuming quota or starting the workflow. Bad schema → 400 with no quota debit. The workflow activity trusts the input and does not re-validate. Quota: consumes one MESSAGE before ``start_workflow``. Refunds on any failure between consume and ``handle.result()`` returning — pre-enqueue ``start_workflow`` raises and post-enqueue workflow failures both refund.
|
|
111
|
+
* Agent Extract Handler
|
|
112
|
+
*/
|
|
113
|
+
agentExtract(requestParameters: AgentExtractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ExtractResponse>;
|
|
114
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
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
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
49
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
50
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
51
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
52
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
53
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
54
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
|
+
exports.AgentApi = void 0;
|
|
59
|
+
const runtime = __importStar(require("../runtime"));
|
|
60
|
+
const index_1 = require("../models/index");
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
class AgentApi extends runtime.BaseAPI {
|
|
65
|
+
/**
|
|
66
|
+
* Creates request options for agentAsk without sending the request
|
|
67
|
+
*/
|
|
68
|
+
agentAskRequestOpts(requestParameters) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
if (requestParameters['askRequest'] == null) {
|
|
71
|
+
throw new runtime.RequiredError('askRequest', 'Required parameter "askRequest" was null or undefined when calling agentAsk().');
|
|
72
|
+
}
|
|
73
|
+
const queryParameters = {};
|
|
74
|
+
const headerParameters = {};
|
|
75
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
76
|
+
if (requestParameters['authorization'] != null) {
|
|
77
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
78
|
+
}
|
|
79
|
+
let urlPath = `/v1/agent/ask`;
|
|
80
|
+
return {
|
|
81
|
+
path: urlPath,
|
|
82
|
+
method: 'POST',
|
|
83
|
+
headers: headerParameters,
|
|
84
|
+
query: queryParameters,
|
|
85
|
+
body: (0, index_1.AskRequestToJSON)(requestParameters['askRequest']),
|
|
86
|
+
};
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Run a one-shot text agent request to completion and return the payload. The request blocks until the underlying Temporal workflow finishes. Clients should set a generous HTTP timeout to accommodate tool-heavy runs. Quota: consumes one MESSAGE before ``start_workflow``. Refunds on any failure between consume and ``handle.result()`` returning — pre-enqueue ``start_workflow`` raises and post-enqueue workflow failures both refund.
|
|
91
|
+
* Agent Ask Handler
|
|
92
|
+
*/
|
|
93
|
+
agentAskRaw(requestParameters, initOverrides) {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
const requestOptions = yield this.agentAskRequestOpts(requestParameters);
|
|
96
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
97
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AskResponseFromJSON)(jsonValue));
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Run a one-shot text agent request to completion and return the payload. The request blocks until the underlying Temporal workflow finishes. Clients should set a generous HTTP timeout to accommodate tool-heavy runs. Quota: consumes one MESSAGE before ``start_workflow``. Refunds on any failure between consume and ``handle.result()`` returning — pre-enqueue ``start_workflow`` raises and post-enqueue workflow failures both refund.
|
|
102
|
+
* Agent Ask Handler
|
|
103
|
+
*/
|
|
104
|
+
agentAsk(requestParameters, initOverrides) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
const response = yield this.agentAskRaw(requestParameters, initOverrides);
|
|
107
|
+
return yield response.value();
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Creates request options for agentExtract without sending the request
|
|
112
|
+
*/
|
|
113
|
+
agentExtractRequestOpts(requestParameters) {
|
|
114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
+
if (requestParameters['extractRequest'] == null) {
|
|
116
|
+
throw new runtime.RequiredError('extractRequest', 'Required parameter "extractRequest" was null or undefined when calling agentExtract().');
|
|
117
|
+
}
|
|
118
|
+
const queryParameters = {};
|
|
119
|
+
const headerParameters = {};
|
|
120
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
121
|
+
if (requestParameters['authorization'] != null) {
|
|
122
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
123
|
+
}
|
|
124
|
+
let urlPath = `/v1/agent/extract`;
|
|
125
|
+
return {
|
|
126
|
+
path: urlPath,
|
|
127
|
+
method: 'POST',
|
|
128
|
+
headers: headerParameters,
|
|
129
|
+
query: queryParameters,
|
|
130
|
+
body: (0, index_1.ExtractRequestToJSON)(requestParameters['extractRequest']),
|
|
131
|
+
};
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Run a one-shot structured extraction request and return the payload. Validates the schema input on the route side (DOCUMENT → active version → valid JSON object) BEFORE consuming quota or starting the workflow. Bad schema → 400 with no quota debit. The workflow activity trusts the input and does not re-validate. Quota: consumes one MESSAGE before ``start_workflow``. Refunds on any failure between consume and ``handle.result()`` returning — pre-enqueue ``start_workflow`` raises and post-enqueue workflow failures both refund.
|
|
136
|
+
* Agent Extract Handler
|
|
137
|
+
*/
|
|
138
|
+
agentExtractRaw(requestParameters, initOverrides) {
|
|
139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
+
const requestOptions = yield this.agentExtractRequestOpts(requestParameters);
|
|
141
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
142
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ExtractResponseFromJSON)(jsonValue));
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Run a one-shot structured extraction request and return the payload. Validates the schema input on the route side (DOCUMENT → active version → valid JSON object) BEFORE consuming quota or starting the workflow. Bad schema → 400 with no quota debit. The workflow activity trusts the input and does not re-validate. Quota: consumes one MESSAGE before ``start_workflow``. Refunds on any failure between consume and ``handle.result()`` returning — pre-enqueue ``start_workflow`` raises and post-enqueue workflow failures both refund.
|
|
147
|
+
* Agent Extract Handler
|
|
148
|
+
*/
|
|
149
|
+
agentExtract(requestParameters, initOverrides) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
const response = yield this.agentExtractRaw(requestParameters, initOverrides);
|
|
152
|
+
return yield response.value();
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
exports.AgentApi = AgentApi;
|