@knowledge-stack/ksapi 1.95.3 → 1.96.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 +82 -4
- package/README.md +79 -10
- package/dist/apis/AgentApi.d.ts +0 -12
- package/dist/apis/AgentApi.js +12 -4
- package/dist/apis/ApiKeysApi.d.ts +6 -20
- package/dist/apis/ApiKeysApi.js +6 -6
- package/dist/apis/AuditEventsApi.d.ts +85 -0
- package/dist/apis/AuditEventsApi.js +134 -0
- package/dist/apis/AuthApi.d.ts +0 -24
- package/dist/apis/AuthApi.js +24 -8
- package/dist/apis/ChunkLineagesApi.d.ts +0 -18
- package/dist/apis/ChunkLineagesApi.js +18 -6
- package/dist/apis/ChunksApi.d.ts +0 -54
- package/dist/apis/ChunksApi.js +54 -18
- package/dist/apis/DataSourcesApi.d.ts +304 -0
- package/dist/apis/DataSourcesApi.js +421 -0
- package/dist/apis/DocumentCheckoutApi.d.ts +0 -18
- package/dist/apis/DocumentCheckoutApi.js +18 -6
- package/dist/apis/DocumentVersionsApi.d.ts +83 -49
- package/dist/apis/DocumentVersionsApi.js +150 -16
- package/dist/apis/DocumentsApi.d.ts +58 -47
- package/dist/apis/DocumentsApi.js +107 -16
- package/dist/apis/FeedbackApi.d.ts +0 -18
- package/dist/apis/FeedbackApi.js +18 -6
- package/dist/apis/FoldersApi.d.ts +13 -61
- package/dist/apis/FoldersApi.js +52 -20
- package/dist/apis/InvitesApi.d.ts +0 -30
- package/dist/apis/InvitesApi.js +30 -10
- package/dist/apis/MemoryApi.d.ts +207 -0
- package/dist/apis/MemoryApi.js +306 -0
- package/dist/apis/PathPartApprovalsApi.d.ts +0 -12
- package/dist/apis/PathPartApprovalsApi.js +12 -4
- package/dist/apis/PathPartsApi.d.ts +45 -55
- package/dist/apis/PathPartsApi.js +111 -18
- package/dist/apis/SectionsApi.d.ts +0 -36
- package/dist/apis/SectionsApi.js +36 -12
- package/dist/apis/SubscriptionsApi.d.ts +0 -12
- package/dist/apis/SubscriptionsApi.js +12 -4
- package/dist/apis/TagsApi.d.ts +0 -30
- package/dist/apis/TagsApi.js +30 -10
- package/dist/apis/TenantGroupsApi.d.ts +6 -86
- package/dist/apis/TenantGroupsApi.js +84 -32
- package/dist/apis/TenantsApi.d.ts +0 -72
- package/dist/apis/TenantsApi.js +72 -24
- package/dist/apis/ThreadMessagesApi.d.ts +0 -18
- package/dist/apis/ThreadMessagesApi.js +18 -6
- package/dist/apis/ThreadsApi.d.ts +0 -42
- package/dist/apis/ThreadsApi.js +42 -14
- package/dist/apis/TrashApi.d.ts +143 -0
- package/dist/apis/TrashApi.js +210 -0
- package/dist/apis/UserPermissionsApi.d.ts +0 -24
- package/dist/apis/UserPermissionsApi.js +24 -8
- package/dist/apis/UsersApi.d.ts +12 -46
- package/dist/apis/UsersApi.js +42 -22
- package/dist/apis/WorkflowDefinitionsApi.d.ts +0 -42
- package/dist/apis/WorkflowDefinitionsApi.js +42 -14
- package/dist/apis/WorkflowMemoryApi.d.ts +0 -30
- package/dist/apis/WorkflowMemoryApi.js +30 -10
- package/dist/apis/WorkflowRunsApi.d.ts +4 -58
- package/dist/apis/WorkflowRunsApi.js +56 -20
- package/dist/apis/WorkflowsApi.d.ts +0 -30
- package/dist/apis/WorkflowsApi.js +30 -10
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +4 -0
- package/dist/esm/apis/AgentApi.d.ts +0 -12
- package/dist/esm/apis/AgentApi.js +12 -4
- package/dist/esm/apis/ApiKeysApi.d.ts +6 -20
- package/dist/esm/apis/ApiKeysApi.js +6 -6
- package/dist/esm/apis/AuditEventsApi.d.ts +85 -0
- package/dist/esm/apis/AuditEventsApi.js +97 -0
- package/dist/esm/apis/AuthApi.d.ts +0 -24
- package/dist/esm/apis/AuthApi.js +24 -8
- package/dist/esm/apis/ChunkLineagesApi.d.ts +0 -18
- package/dist/esm/apis/ChunkLineagesApi.js +18 -6
- package/dist/esm/apis/ChunksApi.d.ts +0 -54
- package/dist/esm/apis/ChunksApi.js +54 -18
- package/dist/esm/apis/DataSourcesApi.d.ts +304 -0
- package/dist/esm/apis/DataSourcesApi.js +384 -0
- package/dist/esm/apis/DocumentCheckoutApi.d.ts +0 -18
- package/dist/esm/apis/DocumentCheckoutApi.js +18 -6
- package/dist/esm/apis/DocumentVersionsApi.d.ts +83 -49
- package/dist/esm/apis/DocumentVersionsApi.js +151 -17
- package/dist/esm/apis/DocumentsApi.d.ts +58 -47
- package/dist/esm/apis/DocumentsApi.js +108 -17
- package/dist/esm/apis/FeedbackApi.d.ts +0 -18
- package/dist/esm/apis/FeedbackApi.js +18 -6
- package/dist/esm/apis/FoldersApi.d.ts +13 -61
- package/dist/esm/apis/FoldersApi.js +53 -21
- package/dist/esm/apis/InvitesApi.d.ts +0 -30
- package/dist/esm/apis/InvitesApi.js +30 -10
- package/dist/esm/apis/MemoryApi.d.ts +207 -0
- package/dist/esm/apis/MemoryApi.js +269 -0
- package/dist/esm/apis/PathPartApprovalsApi.d.ts +0 -12
- package/dist/esm/apis/PathPartApprovalsApi.js +12 -4
- package/dist/esm/apis/PathPartsApi.d.ts +45 -55
- package/dist/esm/apis/PathPartsApi.js +112 -19
- package/dist/esm/apis/SectionsApi.d.ts +0 -36
- package/dist/esm/apis/SectionsApi.js +36 -12
- package/dist/esm/apis/SubscriptionsApi.d.ts +0 -12
- package/dist/esm/apis/SubscriptionsApi.js +12 -4
- package/dist/esm/apis/TagsApi.d.ts +0 -30
- package/dist/esm/apis/TagsApi.js +30 -10
- package/dist/esm/apis/TenantGroupsApi.d.ts +6 -86
- package/dist/esm/apis/TenantGroupsApi.js +84 -32
- package/dist/esm/apis/TenantsApi.d.ts +0 -72
- package/dist/esm/apis/TenantsApi.js +72 -24
- package/dist/esm/apis/ThreadMessagesApi.d.ts +0 -18
- package/dist/esm/apis/ThreadMessagesApi.js +18 -6
- package/dist/esm/apis/ThreadsApi.d.ts +0 -42
- package/dist/esm/apis/ThreadsApi.js +42 -14
- package/dist/esm/apis/TrashApi.d.ts +143 -0
- package/dist/esm/apis/TrashApi.js +173 -0
- package/dist/esm/apis/UserPermissionsApi.d.ts +0 -24
- package/dist/esm/apis/UserPermissionsApi.js +24 -8
- package/dist/esm/apis/UsersApi.d.ts +12 -46
- package/dist/esm/apis/UsersApi.js +42 -22
- package/dist/esm/apis/WorkflowDefinitionsApi.d.ts +0 -42
- package/dist/esm/apis/WorkflowDefinitionsApi.js +42 -14
- package/dist/esm/apis/WorkflowMemoryApi.d.ts +0 -30
- package/dist/esm/apis/WorkflowMemoryApi.js +30 -10
- package/dist/esm/apis/WorkflowRunsApi.d.ts +4 -58
- package/dist/esm/apis/WorkflowRunsApi.js +56 -20
- package/dist/esm/apis/WorkflowsApi.d.ts +0 -30
- package/dist/esm/apis/WorkflowsApi.js +30 -10
- package/dist/esm/apis/index.d.ts +4 -0
- package/dist/esm/apis/index.js +4 -0
- package/dist/esm/models/AccessCheckResponse.d.ts +59 -0
- package/dist/esm/models/AccessCheckResponse.js +50 -0
- package/dist/esm/models/CatalogColumnResponse.d.ts +59 -0
- package/dist/esm/models/CatalogColumnResponse.js +52 -0
- package/dist/esm/models/CatalogTableResponse.d.ts +54 -0
- package/dist/esm/models/CatalogTableResponse.js +49 -0
- package/dist/esm/models/CellChange.d.ts +72 -0
- package/dist/esm/models/CellChange.js +61 -0
- package/dist/esm/models/CellChangeType.d.ts +26 -0
- package/dist/esm/models/CellChangeType.js +44 -0
- package/dist/esm/models/CellDiff.d.ts +72 -0
- package/dist/esm/models/CellDiff.js +61 -0
- package/dist/esm/models/ColumnConfig.d.ts +71 -0
- package/dist/esm/models/ColumnConfig.js +52 -0
- package/dist/esm/models/ConnectionConfig.d.ts +71 -0
- package/dist/esm/models/ConnectionConfig.js +58 -0
- package/dist/esm/models/CreateDataSourceRequest.d.ts +67 -0
- package/dist/esm/models/CreateDataSourceRequest.js +62 -0
- package/dist/esm/models/CreateGroupPermissionRequest.d.ts +6 -0
- package/dist/esm/models/CreateGroupPermissionRequest.js +2 -0
- package/dist/esm/models/CreatePermissionRequest.d.ts +6 -0
- package/dist/esm/models/CreatePermissionRequest.js +2 -0
- package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +6 -0
- package/dist/esm/models/CreateWorkflowDefinitionRequest.js +4 -0
- package/dist/esm/models/DataSourceCatalogResponse.d.ts +48 -0
- package/dist/esm/models/DataSourceCatalogResponse.js +45 -0
- package/dist/esm/models/DataSourceDetailResponse.d.ts +55 -0
- package/dist/esm/models/DataSourceDetailResponse.js +50 -0
- package/dist/esm/models/DataSourceEngine.d.ts +25 -0
- package/dist/esm/models/DataSourceEngine.js +43 -0
- package/dist/esm/models/DataSourceQueryRequest.d.ts +53 -0
- package/dist/esm/models/DataSourceQueryRequest.js +53 -0
- package/dist/esm/models/DataSourceQueryResponse.d.ts +71 -0
- package/dist/esm/models/DataSourceQueryResponse.js +60 -0
- package/dist/esm/models/DataSourceResponse.d.ts +119 -0
- package/dist/esm/models/DataSourceResponse.js +90 -0
- package/dist/esm/models/DataSourceTableResponse.d.ts +135 -0
- package/dist/esm/models/DataSourceTableResponse.js +101 -0
- package/dist/esm/models/DiffFormat.d.ts +25 -0
- package/dist/esm/models/DiffFormat.js +43 -0
- package/dist/esm/models/DiffRow.d.ts +90 -0
- package/dist/esm/models/DiffRow.js +58 -0
- package/dist/esm/models/DiffRowType.d.ts +27 -0
- package/dist/esm/models/DiffRowType.js +45 -0
- package/dist/esm/models/DiffSpan.d.ts +53 -0
- package/dist/esm/models/DiffSpan.js +48 -0
- package/dist/esm/models/DocumentDownloadResponse.d.ts +72 -0
- package/dist/esm/models/DocumentDownloadResponse.js +61 -0
- package/dist/esm/models/DocumentResponse.d.ts +4 -3
- package/dist/esm/models/DocumentResponse.js +3 -2
- package/dist/esm/models/DownloadArtifact.d.ts +25 -0
- package/dist/esm/models/DownloadArtifact.js +43 -0
- package/dist/esm/models/EventResponse.d.ts +7 -0
- package/dist/esm/models/EventResponse.js +3 -0
- package/dist/esm/models/FolderResponse.d.ts +4 -3
- package/dist/esm/models/FolderResponse.js +3 -2
- package/dist/esm/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponse.d.ts +39 -0
- package/dist/esm/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.js → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponse.js} +16 -6
- package/dist/esm/models/GroupPermissionResponse.d.ts +6 -0
- package/dist/esm/models/GroupPermissionResponse.js +4 -0
- package/dist/esm/models/ItemPermissions.d.ts +73 -0
- package/dist/esm/models/ItemPermissions.js +56 -0
- package/dist/esm/models/MemoryBodyResponse.d.ts +60 -0
- package/dist/esm/models/MemoryBodyResponse.js +53 -0
- package/dist/esm/models/MemoryScope.d.ts +29 -0
- package/dist/esm/models/MemoryScope.js +47 -0
- package/dist/esm/models/ModelTableRequest.d.ts +66 -0
- package/dist/esm/models/ModelTableRequest.js +51 -0
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseDiscriminator.d.ts +66 -0
- package/dist/esm/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseDiscriminator.js} +12 -12
- package/dist/esm/models/PaginatedResponsePendingMemoryChunkResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponsePendingMemoryChunkResponse.js +70 -0
- package/dist/esm/models/PaginatedResponseTrashItemResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseTrashItemResponse.js +70 -0
- package/dist/esm/models/PartType.d.ts +2 -0
- package/dist/esm/models/PartType.js +3 -1
- package/dist/esm/models/PathPartResponse.d.ts +4 -9
- package/dist/esm/models/PathPartResponse.js +4 -7
- package/dist/esm/models/PendingMemoryChunkResponse.d.ts +91 -0
- package/dist/esm/models/PendingMemoryChunkResponse.js +74 -0
- package/dist/esm/models/PermissionCapability.d.ts +2 -1
- package/dist/esm/models/PermissionCapability.js +3 -2
- package/dist/esm/models/PermissionResponse.d.ts +6 -0
- package/dist/esm/models/PermissionResponse.js +4 -0
- package/dist/esm/models/ProposeMemoryChunkRequest.d.ts +79 -0
- package/dist/esm/models/ProposeMemoryChunkRequest.js +71 -0
- package/dist/esm/models/ProposedMemoryChunkResponse.d.ts +91 -0
- package/dist/esm/models/ProposedMemoryChunkResponse.js +74 -0
- package/dist/esm/models/ReferenceType.d.ts +2 -0
- package/dist/esm/models/ReferenceType.js +2 -0
- package/dist/esm/models/TextDiff.d.ts +72 -0
- package/dist/esm/models/TextDiff.js +61 -0
- package/dist/esm/models/TrashItemResponse.d.ts +90 -0
- package/dist/esm/models/TrashItemResponse.js +73 -0
- package/dist/esm/models/UpdateGroupPermissionRequest.d.ts +6 -0
- package/dist/esm/models/UpdateGroupPermissionRequest.js +2 -0
- package/dist/esm/models/UpdatePermissionRequest.d.ts +6 -0
- package/dist/esm/models/UpdatePermissionRequest.js +2 -0
- package/dist/esm/models/UpdateTableRequest.d.ts +54 -0
- package/dist/esm/models/UpdateTableRequest.js +45 -0
- package/dist/esm/models/VersionDiffResponse.d.ts +89 -0
- package/dist/esm/models/VersionDiffResponse.js +63 -0
- package/dist/esm/models/WorkflowDefinitionResponse.d.ts +7 -0
- package/dist/esm/models/WorkflowDefinitionResponse.js +3 -0
- package/dist/esm/models/WorkflowRunResponse.d.ts +7 -0
- package/dist/esm/models/WorkflowRunResponse.js +3 -0
- package/dist/esm/models/index.d.ts +37 -2
- package/dist/esm/models/index.js +37 -2
- package/dist/models/AccessCheckResponse.d.ts +59 -0
- package/dist/models/AccessCheckResponse.js +58 -0
- package/dist/models/CatalogColumnResponse.d.ts +59 -0
- package/dist/models/CatalogColumnResponse.js +60 -0
- package/dist/models/CatalogTableResponse.d.ts +54 -0
- package/dist/models/CatalogTableResponse.js +57 -0
- package/dist/models/CellChange.d.ts +72 -0
- package/dist/models/CellChange.js +69 -0
- package/dist/models/CellChangeType.d.ts +26 -0
- package/dist/models/CellChangeType.js +52 -0
- package/dist/models/CellDiff.d.ts +72 -0
- package/dist/models/CellDiff.js +69 -0
- package/dist/models/ColumnConfig.d.ts +71 -0
- package/dist/models/ColumnConfig.js +60 -0
- package/dist/models/ConnectionConfig.d.ts +71 -0
- package/dist/models/ConnectionConfig.js +66 -0
- package/dist/models/CreateDataSourceRequest.d.ts +67 -0
- package/dist/models/CreateDataSourceRequest.js +70 -0
- package/dist/models/CreateGroupPermissionRequest.d.ts +6 -0
- package/dist/models/CreateGroupPermissionRequest.js +2 -0
- package/dist/models/CreatePermissionRequest.d.ts +6 -0
- package/dist/models/CreatePermissionRequest.js +2 -0
- package/dist/models/CreateWorkflowDefinitionRequest.d.ts +6 -0
- package/dist/models/CreateWorkflowDefinitionRequest.js +4 -0
- package/dist/models/DataSourceCatalogResponse.d.ts +48 -0
- package/dist/models/DataSourceCatalogResponse.js +53 -0
- package/dist/models/DataSourceDetailResponse.d.ts +55 -0
- package/dist/models/DataSourceDetailResponse.js +58 -0
- package/dist/models/DataSourceEngine.d.ts +25 -0
- package/dist/models/DataSourceEngine.js +51 -0
- package/dist/models/DataSourceQueryRequest.d.ts +53 -0
- package/dist/models/DataSourceQueryRequest.js +61 -0
- package/dist/models/DataSourceQueryResponse.d.ts +71 -0
- package/dist/models/DataSourceQueryResponse.js +68 -0
- package/dist/models/DataSourceResponse.d.ts +119 -0
- package/dist/models/DataSourceResponse.js +98 -0
- package/dist/models/DataSourceTableResponse.d.ts +135 -0
- package/dist/models/DataSourceTableResponse.js +109 -0
- package/dist/models/DiffFormat.d.ts +25 -0
- package/dist/models/DiffFormat.js +51 -0
- package/dist/models/DiffRow.d.ts +90 -0
- package/dist/models/DiffRow.js +66 -0
- package/dist/models/DiffRowType.d.ts +27 -0
- package/dist/models/DiffRowType.js +53 -0
- package/dist/models/DiffSpan.d.ts +53 -0
- package/dist/models/DiffSpan.js +56 -0
- package/dist/models/DocumentDownloadResponse.d.ts +72 -0
- package/dist/models/DocumentDownloadResponse.js +69 -0
- package/dist/models/DocumentResponse.d.ts +4 -3
- package/dist/models/DocumentResponse.js +3 -2
- package/dist/models/DownloadArtifact.d.ts +25 -0
- package/dist/models/DownloadArtifact.js +51 -0
- package/dist/models/EventResponse.d.ts +7 -0
- package/dist/models/EventResponse.js +3 -0
- package/dist/models/FolderResponse.d.ts +4 -3
- package/dist/models/FolderResponse.js +3 -2
- package/dist/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponse.d.ts +39 -0
- package/dist/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.js → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponse.js} +20 -10
- package/dist/models/GroupPermissionResponse.d.ts +6 -0
- package/dist/models/GroupPermissionResponse.js +4 -0
- package/dist/models/ItemPermissions.d.ts +73 -0
- package/dist/models/ItemPermissions.js +64 -0
- package/dist/models/MemoryBodyResponse.d.ts +60 -0
- package/dist/models/MemoryBodyResponse.js +61 -0
- package/dist/models/MemoryScope.d.ts +29 -0
- package/dist/models/MemoryScope.js +55 -0
- package/dist/models/ModelTableRequest.d.ts +66 -0
- package/dist/models/ModelTableRequest.js +59 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseDiscriminator.d.ts +66 -0
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseDiscriminator.js +78 -0
- package/dist/models/PaginatedResponsePendingMemoryChunkResponse.d.ts +66 -0
- package/dist/models/PaginatedResponsePendingMemoryChunkResponse.js +78 -0
- package/dist/models/PaginatedResponseTrashItemResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseTrashItemResponse.js +78 -0
- package/dist/models/PartType.d.ts +2 -0
- package/dist/models/PartType.js +3 -1
- package/dist/models/PathPartResponse.d.ts +4 -9
- package/dist/models/PathPartResponse.js +4 -7
- package/dist/models/PendingMemoryChunkResponse.d.ts +91 -0
- package/dist/models/PendingMemoryChunkResponse.js +82 -0
- package/dist/models/PermissionCapability.d.ts +2 -1
- package/dist/models/PermissionCapability.js +3 -2
- package/dist/models/PermissionResponse.d.ts +6 -0
- package/dist/models/PermissionResponse.js +4 -0
- package/dist/models/ProposeMemoryChunkRequest.d.ts +79 -0
- package/dist/models/ProposeMemoryChunkRequest.js +79 -0
- package/dist/models/ProposedMemoryChunkResponse.d.ts +91 -0
- package/dist/models/ProposedMemoryChunkResponse.js +82 -0
- package/dist/models/ReferenceType.d.ts +2 -0
- package/dist/models/ReferenceType.js +2 -0
- package/dist/models/TextDiff.d.ts +72 -0
- package/dist/models/TextDiff.js +69 -0
- package/dist/models/TrashItemResponse.d.ts +90 -0
- package/dist/models/TrashItemResponse.js +81 -0
- package/dist/models/UpdateGroupPermissionRequest.d.ts +6 -0
- package/dist/models/UpdateGroupPermissionRequest.js +2 -0
- package/dist/models/UpdatePermissionRequest.d.ts +6 -0
- package/dist/models/UpdatePermissionRequest.js +2 -0
- package/dist/models/UpdateTableRequest.d.ts +54 -0
- package/dist/models/UpdateTableRequest.js +53 -0
- package/dist/models/VersionDiffResponse.d.ts +89 -0
- package/dist/models/VersionDiffResponse.js +71 -0
- package/dist/models/WorkflowDefinitionResponse.d.ts +7 -0
- package/dist/models/WorkflowDefinitionResponse.js +3 -0
- package/dist/models/WorkflowRunResponse.d.ts +7 -0
- package/dist/models/WorkflowRunResponse.js +3 -0
- package/dist/models/index.d.ts +37 -2
- package/dist/models/index.js +37 -2
- package/docs/AccessCheckResponse.md +39 -0
- package/docs/AgentApi.md +18 -18
- package/docs/ApiKeysApi.md +30 -32
- package/docs/AuditEventsApi.md +104 -0
- package/docs/AuthApi.md +36 -36
- package/docs/CatalogColumnResponse.md +38 -0
- package/docs/CatalogTableResponse.md +36 -0
- package/docs/CellChange.md +43 -0
- package/docs/CellChangeType.md +32 -0
- package/docs/CellDiff.md +43 -0
- package/docs/ChunkLineagesApi.md +27 -27
- package/docs/ChunksApi.md +82 -82
- package/docs/ColumnConfig.md +43 -0
- package/docs/ConnectionConfig.md +43 -0
- package/docs/CreateDataSourceRequest.md +41 -0
- package/docs/CreateGroupPermissionRequest.md +2 -0
- package/docs/CreatePermissionRequest.md +2 -0
- package/docs/CreateWorkflowDefinitionRequest.md +2 -0
- package/docs/DataSourceCatalogResponse.md +35 -0
- package/docs/DataSourceDetailResponse.md +37 -0
- package/docs/DataSourceEngine.md +33 -0
- package/docs/DataSourceQueryRequest.md +37 -0
- package/docs/DataSourceQueryResponse.md +43 -0
- package/docs/DataSourceResponse.md +55 -0
- package/docs/DataSourceTableResponse.md +61 -0
- package/docs/DataSourcesApi.md +545 -0
- package/docs/DiffFormat.md +32 -0
- package/docs/DiffRow.md +47 -0
- package/docs/DiffRowType.md +32 -0
- package/docs/DiffSpan.md +37 -0
- package/docs/DocumentCheckoutApi.md +27 -27
- package/docs/DocumentDownloadResponse.md +43 -0
- package/docs/DocumentResponse.md +2 -2
- package/docs/DocumentVersionsApi.md +228 -72
- package/docs/DocumentsApi.md +154 -64
- package/docs/DownloadArtifact.md +32 -0
- package/docs/EventResponse.md +2 -0
- package/docs/FeedbackApi.md +27 -27
- package/docs/FolderResponse.md +2 -2
- package/docs/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.md → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponse.md} +14 -6
- package/docs/FoldersApi.md +75 -75
- package/docs/GroupPermissionResponse.md +2 -0
- package/docs/InvitesApi.md +45 -45
- package/docs/ItemPermissions.md +41 -0
- package/docs/MemoryApi.md +379 -0
- package/docs/MemoryBodyResponse.md +38 -0
- package/docs/MemoryScope.md +33 -0
- package/docs/ModelTableRequest.md +41 -0
- package/docs/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.md → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseDiscriminator.md} +5 -5
- package/docs/PaginatedResponsePendingMemoryChunkResponse.md +40 -0
- package/docs/PaginatedResponseTrashItemResponse.md +40 -0
- package/docs/PathPartApprovalsApi.md +18 -18
- package/docs/PathPartResponse.md +2 -4
- package/docs/PathPartsApi.md +162 -81
- package/docs/PendingMemoryChunkResponse.md +48 -0
- package/docs/PermissionCapability.md +1 -1
- package/docs/PermissionResponse.md +2 -0
- package/docs/ProposeMemoryChunkRequest.md +44 -0
- package/docs/ProposedMemoryChunkResponse.md +48 -0
- package/docs/SectionsApi.md +54 -54
- package/docs/SubscriptionsApi.md +18 -18
- package/docs/TagsApi.md +45 -45
- package/docs/TenantGroupsApi.md +119 -125
- package/docs/TenantsApi.md +108 -108
- package/docs/TextDiff.md +43 -0
- package/docs/ThreadMessagesApi.md +27 -27
- package/docs/ThreadsApi.md +63 -63
- package/docs/TrashApi.md +236 -0
- package/docs/TrashItemResponse.md +49 -0
- package/docs/UpdateGroupPermissionRequest.md +2 -0
- package/docs/UpdatePermissionRequest.md +2 -0
- package/docs/UpdateTableRequest.md +37 -0
- package/docs/UserPermissionsApi.md +36 -36
- package/docs/UsersApi.md +49 -61
- package/docs/VersionDiffResponse.md +47 -0
- package/docs/WorkflowDefinitionResponse.md +2 -0
- package/docs/WorkflowDefinitionsApi.md +63 -63
- package/docs/WorkflowMemoryApi.md +45 -45
- package/docs/WorkflowRunResponse.md +2 -0
- package/docs/WorkflowRunsApi.md +82 -82
- package/docs/WorkflowsApi.md +45 -45
- package/package.json +1 -1
- package/src/apis/AgentApi.ts +14 -18
- package/src/apis/ApiKeysApi.ts +8 -23
- package/src/apis/AuditEventsApi.ts +170 -0
- package/src/apis/AuthApi.ts +28 -36
- package/src/apis/ChunkLineagesApi.ts +21 -27
- package/src/apis/ChunksApi.ts +63 -81
- package/src/apis/DataSourcesApi.ts +698 -0
- package/src/apis/DocumentCheckoutApi.ts +21 -27
- package/src/apis/DocumentVersionsApi.ts +245 -72
- package/src/apis/DocumentsApi.ts +177 -67
- package/src/apis/FeedbackApi.ts +21 -27
- package/src/apis/FoldersApi.ts +73 -89
- package/src/apis/InvitesApi.ts +35 -45
- package/src/apis/MemoryApi.ts +478 -0
- package/src/apis/PathPartApprovalsApi.ts +14 -18
- package/src/apis/PathPartsApi.ts +173 -81
- package/src/apis/SectionsApi.ts +42 -54
- package/src/apis/SubscriptionsApi.ts +14 -18
- package/src/apis/TagsApi.ts +35 -45
- package/src/apis/TenantGroupsApi.ts +99 -128
- package/src/apis/TenantsApi.ts +84 -108
- package/src/apis/ThreadMessagesApi.ts +21 -27
- package/src/apis/ThreadsApi.ts +49 -63
- package/src/apis/TrashApi.ts +292 -0
- package/src/apis/UserPermissionsApi.ts +28 -36
- package/src/apis/UsersApi.ts +51 -67
- package/src/apis/WorkflowDefinitionsApi.ts +49 -63
- package/src/apis/WorkflowMemoryApi.ts +35 -45
- package/src/apis/WorkflowRunsApi.ts +67 -85
- package/src/apis/WorkflowsApi.ts +35 -45
- package/src/apis/index.ts +4 -0
- package/src/models/AccessCheckResponse.ts +100 -0
- package/src/models/CatalogColumnResponse.ts +101 -0
- package/src/models/CatalogTableResponse.ts +100 -0
- package/src/models/CellChange.ts +129 -0
- package/src/models/CellChangeType.ts +54 -0
- package/src/models/CellDiff.ts +127 -0
- package/src/models/ColumnConfig.ts +115 -0
- package/src/models/ConnectionConfig.ts +118 -0
- package/src/models/CreateDataSourceRequest.ts +130 -0
- package/src/models/CreateGroupPermissionRequest.ts +8 -0
- package/src/models/CreatePermissionRequest.ts +8 -0
- package/src/models/CreateWorkflowDefinitionRequest.ts +9 -0
- package/src/models/DataSourceCatalogResponse.ts +91 -0
- package/src/models/DataSourceDetailResponse.ts +107 -0
- package/src/models/DataSourceEngine.ts +53 -0
- package/src/models/DataSourceQueryRequest.ts +97 -0
- package/src/models/DataSourceQueryResponse.ts +119 -0
- package/src/models/DataSourceResponse.ts +200 -0
- package/src/models/DataSourceTableResponse.ts +217 -0
- package/src/models/DiffFormat.ts +53 -0
- package/src/models/DiffRow.ts +153 -0
- package/src/models/DiffRowType.ts +55 -0
- package/src/models/DiffSpan.ts +92 -0
- package/src/models/DocumentDownloadResponse.ts +129 -0
- package/src/models/DocumentResponse.ts +12 -5
- package/src/models/DownloadArtifact.ts +53 -0
- package/src/models/EventResponse.ts +16 -0
- package/src/models/FolderResponse.ts +12 -5
- package/src/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponse.ts} +30 -8
- package/src/models/GroupPermissionResponse.ts +9 -0
- package/src/models/ItemPermissions.ts +118 -0
- package/src/models/MemoryBodyResponse.ts +111 -0
- package/src/models/MemoryScope.ts +57 -0
- package/src/models/ModelTableRequest.ts +115 -0
- package/src/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.ts → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseDiscriminator.ts} +25 -25
- package/src/models/PaginatedResponsePendingMemoryChunkResponse.ts +130 -0
- package/src/models/PaginatedResponseTrashItemResponse.ts +130 -0
- package/src/models/PartType.ts +3 -1
- package/src/models/PathPartResponse.ts +13 -15
- package/src/models/PendingMemoryChunkResponse.ts +163 -0
- package/src/models/PermissionCapability.ts +3 -2
- package/src/models/PermissionResponse.ts +9 -0
- package/src/models/ProposeMemoryChunkRequest.ts +151 -0
- package/src/models/ProposedMemoryChunkResponse.ts +163 -0
- package/src/models/ReferenceType.ts +2 -0
- package/src/models/TextDiff.ts +127 -0
- package/src/models/TrashItemResponse.ts +156 -0
- package/src/models/UpdateGroupPermissionRequest.ts +8 -0
- package/src/models/UpdatePermissionRequest.ts +8 -0
- package/src/models/UpdateTableRequest.ts +98 -0
- package/src/models/VersionDiffResponse.ts +160 -0
- package/src/models/WorkflowDefinitionResponse.ts +15 -0
- package/src/models/WorkflowRunResponse.ts +15 -0
- package/src/models/index.ts +37 -2
- package/dist/esm/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.d.ts +0 -33
- package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.d.ts +0 -66
- package/dist/models/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponse.d.ts +0 -33
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.d.ts +0 -66
- package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDiscriminator.js +0 -78
package/docs/PathPartsApi.md
CHANGED
|
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
| [**appendPathPartEvent**](PathPartsApi.md#appendpathpartevent) | **POST** /v1/path-parts/{path_part_id}/events | Append Path Part Event Handler |
|
|
8
8
|
| [**bulkRemovePathPartTags**](PathPartsApi.md#bulkremovepathparttags) | **DELETE** /v1/path-parts/{path_part_id}/tags | Bulk Remove Path Part Tags Handler |
|
|
9
|
+
| [**checkPathPartAccess**](PathPartsApi.md#checkpathpartaccess) | **GET** /v1/path-parts/{path_part_id}/access-check | Check Path Part Access Handler |
|
|
9
10
|
| [**getPathPart**](PathPartsApi.md#getpathpart) | **GET** /v1/path-parts/{path_part_id} | Get Path Part Handler |
|
|
10
11
|
| [**getPathPartAncestry**](PathPartsApi.md#getpathpartancestry) | **GET** /v1/path-parts/{path_part_id}/ancestry | Get Path Part Ancestry Handler |
|
|
11
12
|
| [**getPathPartSubtreeChunks**](PathPartsApi.md#getpathpartsubtreechunks) | **GET** /v1/path-parts/{path_part_id}/subtree_chunks | Get Path Part Subtree Chunks Handler |
|
|
@@ -18,7 +19,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
18
19
|
|
|
19
20
|
## appendPathPartEvent
|
|
20
21
|
|
|
21
|
-
> EventResponse appendPathPartEvent(pathPartId, appendEventRequest
|
|
22
|
+
> EventResponse appendPathPartEvent(pathPartId, appendEventRequest)
|
|
22
23
|
|
|
23
24
|
Append Path Part Event Handler
|
|
24
25
|
|
|
@@ -35,17 +36,19 @@ import type { AppendPathPartEventRequest } from '@knowledge-stack/ksapi';
|
|
|
35
36
|
|
|
36
37
|
async function example() {
|
|
37
38
|
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
38
|
-
const
|
|
39
|
+
const config = new Configuration({
|
|
40
|
+
// To configure API key authorization: cookieAuth
|
|
41
|
+
apiKey: "YOUR API KEY",
|
|
42
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
43
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
44
|
+
});
|
|
45
|
+
const api = new PathPartsApi(config);
|
|
39
46
|
|
|
40
47
|
const body = {
|
|
41
48
|
// string
|
|
42
49
|
pathPartId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
43
50
|
// AppendEventRequest
|
|
44
51
|
appendEventRequest: ...,
|
|
45
|
-
// string (optional)
|
|
46
|
-
authorization: authorization_example,
|
|
47
|
-
// string (optional)
|
|
48
|
-
ksUat: ksUat_example,
|
|
49
52
|
} satisfies AppendPathPartEventRequest;
|
|
50
53
|
|
|
51
54
|
try {
|
|
@@ -67,8 +70,6 @@ example().catch(console.error);
|
|
|
67
70
|
|------------- | ------------- | ------------- | -------------|
|
|
68
71
|
| **pathPartId** | `string` | | [Defaults to `undefined`] |
|
|
69
72
|
| **appendEventRequest** | [AppendEventRequest](AppendEventRequest.md) | | |
|
|
70
|
-
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
71
|
-
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
72
73
|
|
|
73
74
|
### Return type
|
|
74
75
|
|
|
@@ -76,7 +77,7 @@ example().catch(console.error);
|
|
|
76
77
|
|
|
77
78
|
### Authorization
|
|
78
79
|
|
|
79
|
-
|
|
80
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
80
81
|
|
|
81
82
|
### HTTP request headers
|
|
82
83
|
|
|
@@ -95,7 +96,7 @@ No authorization required
|
|
|
95
96
|
|
|
96
97
|
## bulkRemovePathPartTags
|
|
97
98
|
|
|
98
|
-
> PathPartTagsResponse bulkRemovePathPartTags(pathPartId, bulkTagRequest
|
|
99
|
+
> PathPartTagsResponse bulkRemovePathPartTags(pathPartId, bulkTagRequest)
|
|
99
100
|
|
|
100
101
|
Bulk Remove Path Part Tags Handler
|
|
101
102
|
|
|
@@ -112,17 +113,19 @@ import type { BulkRemovePathPartTagsRequest } from '@knowledge-stack/ksapi';
|
|
|
112
113
|
|
|
113
114
|
async function example() {
|
|
114
115
|
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
115
|
-
const
|
|
116
|
+
const config = new Configuration({
|
|
117
|
+
// To configure API key authorization: cookieAuth
|
|
118
|
+
apiKey: "YOUR API KEY",
|
|
119
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
120
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
121
|
+
});
|
|
122
|
+
const api = new PathPartsApi(config);
|
|
116
123
|
|
|
117
124
|
const body = {
|
|
118
125
|
// string
|
|
119
126
|
pathPartId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
120
127
|
// BulkTagRequest
|
|
121
128
|
bulkTagRequest: ...,
|
|
122
|
-
// string (optional)
|
|
123
|
-
authorization: authorization_example,
|
|
124
|
-
// string (optional)
|
|
125
|
-
ksUat: ksUat_example,
|
|
126
129
|
} satisfies BulkRemovePathPartTagsRequest;
|
|
127
130
|
|
|
128
131
|
try {
|
|
@@ -144,8 +147,6 @@ example().catch(console.error);
|
|
|
144
147
|
|------------- | ------------- | ------------- | -------------|
|
|
145
148
|
| **pathPartId** | `string` | | [Defaults to `undefined`] |
|
|
146
149
|
| **bulkTagRequest** | [BulkTagRequest](BulkTagRequest.md) | | |
|
|
147
|
-
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
148
|
-
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
149
150
|
|
|
150
151
|
### Return type
|
|
151
152
|
|
|
@@ -153,7 +154,7 @@ example().catch(console.error);
|
|
|
153
154
|
|
|
154
155
|
### Authorization
|
|
155
156
|
|
|
156
|
-
|
|
157
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
157
158
|
|
|
158
159
|
### HTTP request headers
|
|
159
160
|
|
|
@@ -170,9 +171,89 @@ No authorization required
|
|
|
170
171
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
171
172
|
|
|
172
173
|
|
|
174
|
+
## checkPathPartAccess
|
|
175
|
+
|
|
176
|
+
> AccessCheckResponse checkPathPartAccess(pathPartId, userId, capability)
|
|
177
|
+
|
|
178
|
+
Check Path Part Access Handler
|
|
179
|
+
|
|
180
|
+
Explain whether ``user_id`` has ``capability`` on a path part. ADMIN/OWNER-only introspection: resolves the target user\'s effective permissions and reports the decision plus the reason (the matching grant path, or a role bypass). OWNER/ADMIN targets bypass path checks by role, so they are always allowed. 404 if the path part does not exist or the target user is not a member of this tenant.
|
|
181
|
+
|
|
182
|
+
### Example
|
|
183
|
+
|
|
184
|
+
```ts
|
|
185
|
+
import {
|
|
186
|
+
Configuration,
|
|
187
|
+
PathPartsApi,
|
|
188
|
+
} from '@knowledge-stack/ksapi';
|
|
189
|
+
import type { CheckPathPartAccessRequest } from '@knowledge-stack/ksapi';
|
|
190
|
+
|
|
191
|
+
async function example() {
|
|
192
|
+
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
193
|
+
const config = new Configuration({
|
|
194
|
+
// To configure API key authorization: cookieAuth
|
|
195
|
+
apiKey: "YOUR API KEY",
|
|
196
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
197
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
198
|
+
});
|
|
199
|
+
const api = new PathPartsApi(config);
|
|
200
|
+
|
|
201
|
+
const body = {
|
|
202
|
+
// string
|
|
203
|
+
pathPartId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
204
|
+
// string | The user whose access is being explained
|
|
205
|
+
userId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
206
|
+
// PermissionCapability | Capability to check (READ_ONLY or READ_WRITE) (optional)
|
|
207
|
+
capability: ...,
|
|
208
|
+
} satisfies CheckPathPartAccessRequest;
|
|
209
|
+
|
|
210
|
+
try {
|
|
211
|
+
const data = await api.checkPathPartAccess(body);
|
|
212
|
+
console.log(data);
|
|
213
|
+
} catch (error) {
|
|
214
|
+
console.error(error);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// Run the test
|
|
219
|
+
example().catch(console.error);
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
### Parameters
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
| Name | Type | Description | Notes |
|
|
226
|
+
|------------- | ------------- | ------------- | -------------|
|
|
227
|
+
| **pathPartId** | `string` | | [Defaults to `undefined`] |
|
|
228
|
+
| **userId** | `string` | The user whose access is being explained | [Defaults to `undefined`] |
|
|
229
|
+
| **capability** | `PermissionCapability` | Capability to check (READ_ONLY or READ_WRITE) | [Optional] [Defaults to `undefined`] [Enum: READ_ONLY, READ_WRITE, READ_WRITE_DELETE] |
|
|
230
|
+
|
|
231
|
+
### Return type
|
|
232
|
+
|
|
233
|
+
[**AccessCheckResponse**](AccessCheckResponse.md)
|
|
234
|
+
|
|
235
|
+
### Authorization
|
|
236
|
+
|
|
237
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
238
|
+
|
|
239
|
+
### HTTP request headers
|
|
240
|
+
|
|
241
|
+
- **Content-Type**: Not defined
|
|
242
|
+
- **Accept**: `application/json`
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
### HTTP response details
|
|
246
|
+
| Status code | Description | Response headers |
|
|
247
|
+
|-------------|-------------|------------------|
|
|
248
|
+
| **200** | Successful Response | - |
|
|
249
|
+
| **422** | Validation Error | - |
|
|
250
|
+
|
|
251
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
252
|
+
|
|
253
|
+
|
|
173
254
|
## getPathPart
|
|
174
255
|
|
|
175
|
-
> PathPartResponse getPathPart(pathPartId
|
|
256
|
+
> PathPartResponse getPathPart(pathPartId)
|
|
176
257
|
|
|
177
258
|
Get Path Part Handler
|
|
178
259
|
|
|
@@ -189,15 +270,17 @@ import type { GetPathPartRequest } from '@knowledge-stack/ksapi';
|
|
|
189
270
|
|
|
190
271
|
async function example() {
|
|
191
272
|
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
192
|
-
const
|
|
273
|
+
const config = new Configuration({
|
|
274
|
+
// To configure API key authorization: cookieAuth
|
|
275
|
+
apiKey: "YOUR API KEY",
|
|
276
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
277
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
278
|
+
});
|
|
279
|
+
const api = new PathPartsApi(config);
|
|
193
280
|
|
|
194
281
|
const body = {
|
|
195
282
|
// string
|
|
196
283
|
pathPartId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
197
|
-
// string (optional)
|
|
198
|
-
authorization: authorization_example,
|
|
199
|
-
// string (optional)
|
|
200
|
-
ksUat: ksUat_example,
|
|
201
284
|
} satisfies GetPathPartRequest;
|
|
202
285
|
|
|
203
286
|
try {
|
|
@@ -218,8 +301,6 @@ example().catch(console.error);
|
|
|
218
301
|
| Name | Type | Description | Notes |
|
|
219
302
|
|------------- | ------------- | ------------- | -------------|
|
|
220
303
|
| **pathPartId** | `string` | | [Defaults to `undefined`] |
|
|
221
|
-
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
222
|
-
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
223
304
|
|
|
224
305
|
### Return type
|
|
225
306
|
|
|
@@ -227,7 +308,7 @@ example().catch(console.error);
|
|
|
227
308
|
|
|
228
309
|
### Authorization
|
|
229
310
|
|
|
230
|
-
|
|
311
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
231
312
|
|
|
232
313
|
### HTTP request headers
|
|
233
314
|
|
|
@@ -246,7 +327,7 @@ No authorization required
|
|
|
246
327
|
|
|
247
328
|
## getPathPartAncestry
|
|
248
329
|
|
|
249
|
-
> AncestryResponse getPathPartAncestry(pathPartId
|
|
330
|
+
> AncestryResponse getPathPartAncestry(pathPartId)
|
|
250
331
|
|
|
251
332
|
Get Path Part Ancestry Handler
|
|
252
333
|
|
|
@@ -263,15 +344,17 @@ import type { GetPathPartAncestryRequest } from '@knowledge-stack/ksapi';
|
|
|
263
344
|
|
|
264
345
|
async function example() {
|
|
265
346
|
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
266
|
-
const
|
|
347
|
+
const config = new Configuration({
|
|
348
|
+
// To configure API key authorization: cookieAuth
|
|
349
|
+
apiKey: "YOUR API KEY",
|
|
350
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
351
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
352
|
+
});
|
|
353
|
+
const api = new PathPartsApi(config);
|
|
267
354
|
|
|
268
355
|
const body = {
|
|
269
356
|
// string
|
|
270
357
|
pathPartId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
271
|
-
// string (optional)
|
|
272
|
-
authorization: authorization_example,
|
|
273
|
-
// string (optional)
|
|
274
|
-
ksUat: ksUat_example,
|
|
275
358
|
} satisfies GetPathPartAncestryRequest;
|
|
276
359
|
|
|
277
360
|
try {
|
|
@@ -292,8 +375,6 @@ example().catch(console.error);
|
|
|
292
375
|
| Name | Type | Description | Notes |
|
|
293
376
|
|------------- | ------------- | ------------- | -------------|
|
|
294
377
|
| **pathPartId** | `string` | | [Defaults to `undefined`] |
|
|
295
|
-
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
296
|
-
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
297
378
|
|
|
298
379
|
### Return type
|
|
299
380
|
|
|
@@ -301,7 +382,7 @@ example().catch(console.error);
|
|
|
301
382
|
|
|
302
383
|
### Authorization
|
|
303
384
|
|
|
304
|
-
|
|
385
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
305
386
|
|
|
306
387
|
### HTTP request headers
|
|
307
388
|
|
|
@@ -320,7 +401,7 @@ No authorization required
|
|
|
320
401
|
|
|
321
402
|
## getPathPartSubtreeChunks
|
|
322
403
|
|
|
323
|
-
> SubtreeChunksResponse getPathPartSubtreeChunks(pathPartId
|
|
404
|
+
> SubtreeChunksResponse getPathPartSubtreeChunks(pathPartId)
|
|
324
405
|
|
|
325
406
|
Get Path Part Subtree Chunks Handler
|
|
326
407
|
|
|
@@ -337,15 +418,17 @@ import type { GetPathPartSubtreeChunksRequest } from '@knowledge-stack/ksapi';
|
|
|
337
418
|
|
|
338
419
|
async function example() {
|
|
339
420
|
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
340
|
-
const
|
|
421
|
+
const config = new Configuration({
|
|
422
|
+
// To configure API key authorization: cookieAuth
|
|
423
|
+
apiKey: "YOUR API KEY",
|
|
424
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
425
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
426
|
+
});
|
|
427
|
+
const api = new PathPartsApi(config);
|
|
341
428
|
|
|
342
429
|
const body = {
|
|
343
430
|
// string
|
|
344
431
|
pathPartId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
345
|
-
// string (optional)
|
|
346
|
-
authorization: authorization_example,
|
|
347
|
-
// string (optional)
|
|
348
|
-
ksUat: ksUat_example,
|
|
349
432
|
} satisfies GetPathPartSubtreeChunksRequest;
|
|
350
433
|
|
|
351
434
|
try {
|
|
@@ -366,8 +449,6 @@ example().catch(console.error);
|
|
|
366
449
|
| Name | Type | Description | Notes |
|
|
367
450
|
|------------- | ------------- | ------------- | -------------|
|
|
368
451
|
| **pathPartId** | `string` | | [Defaults to `undefined`] |
|
|
369
|
-
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
370
|
-
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
371
452
|
|
|
372
453
|
### Return type
|
|
373
454
|
|
|
@@ -375,7 +456,7 @@ example().catch(console.error);
|
|
|
375
456
|
|
|
376
457
|
### Authorization
|
|
377
458
|
|
|
378
|
-
|
|
459
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
379
460
|
|
|
380
461
|
### HTTP request headers
|
|
381
462
|
|
|
@@ -394,7 +475,7 @@ No authorization required
|
|
|
394
475
|
|
|
395
476
|
## getPathPartTags
|
|
396
477
|
|
|
397
|
-
> PathPartTagsResponse getPathPartTags(pathPartId, includeInherited
|
|
478
|
+
> PathPartTagsResponse getPathPartTags(pathPartId, includeInherited)
|
|
398
479
|
|
|
399
480
|
Get Path Part Tags Handler
|
|
400
481
|
|
|
@@ -411,17 +492,19 @@ import type { GetPathPartTagsRequest } from '@knowledge-stack/ksapi';
|
|
|
411
492
|
|
|
412
493
|
async function example() {
|
|
413
494
|
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
414
|
-
const
|
|
495
|
+
const config = new Configuration({
|
|
496
|
+
// To configure API key authorization: cookieAuth
|
|
497
|
+
apiKey: "YOUR API KEY",
|
|
498
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
499
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
500
|
+
});
|
|
501
|
+
const api = new PathPartsApi(config);
|
|
415
502
|
|
|
416
503
|
const body = {
|
|
417
504
|
// string
|
|
418
505
|
pathPartId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
419
506
|
// boolean | Include tags inherited from ancestor path parts (optional)
|
|
420
507
|
includeInherited: true,
|
|
421
|
-
// string (optional)
|
|
422
|
-
authorization: authorization_example,
|
|
423
|
-
// string (optional)
|
|
424
|
-
ksUat: ksUat_example,
|
|
425
508
|
} satisfies GetPathPartTagsRequest;
|
|
426
509
|
|
|
427
510
|
try {
|
|
@@ -443,8 +526,6 @@ example().catch(console.error);
|
|
|
443
526
|
|------------- | ------------- | ------------- | -------------|
|
|
444
527
|
| **pathPartId** | `string` | | [Defaults to `undefined`] |
|
|
445
528
|
| **includeInherited** | `boolean` | Include tags inherited from ancestor path parts | [Optional] [Defaults to `false`] |
|
|
446
|
-
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
447
|
-
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
448
529
|
|
|
449
530
|
### Return type
|
|
450
531
|
|
|
@@ -452,7 +533,7 @@ example().catch(console.error);
|
|
|
452
533
|
|
|
453
534
|
### Authorization
|
|
454
535
|
|
|
455
|
-
|
|
536
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
456
537
|
|
|
457
538
|
### HTTP request headers
|
|
458
539
|
|
|
@@ -471,7 +552,7 @@ No authorization required
|
|
|
471
552
|
|
|
472
553
|
## listPathPartEvents
|
|
473
554
|
|
|
474
|
-
> PaginatedResponseEventResponse listPathPartEvents(pathPartId, kind, since, until, recursive, limit, offset
|
|
555
|
+
> PaginatedResponseEventResponse listPathPartEvents(pathPartId, kind, since, until, recursive, limit, offset)
|
|
475
556
|
|
|
476
557
|
List Path Part Events Handler
|
|
477
558
|
|
|
@@ -488,7 +569,13 @@ import type { ListPathPartEventsRequest } from '@knowledge-stack/ksapi';
|
|
|
488
569
|
|
|
489
570
|
async function example() {
|
|
490
571
|
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
491
|
-
const
|
|
572
|
+
const config = new Configuration({
|
|
573
|
+
// To configure API key authorization: cookieAuth
|
|
574
|
+
apiKey: "YOUR API KEY",
|
|
575
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
576
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
577
|
+
});
|
|
578
|
+
const api = new PathPartsApi(config);
|
|
492
579
|
|
|
493
580
|
const body = {
|
|
494
581
|
// string
|
|
@@ -505,10 +592,6 @@ async function example() {
|
|
|
505
592
|
limit: 56,
|
|
506
593
|
// number | Number of items to skip (optional)
|
|
507
594
|
offset: 56,
|
|
508
|
-
// string (optional)
|
|
509
|
-
authorization: authorization_example,
|
|
510
|
-
// string (optional)
|
|
511
|
-
ksUat: ksUat_example,
|
|
512
595
|
} satisfies ListPathPartEventsRequest;
|
|
513
596
|
|
|
514
597
|
try {
|
|
@@ -535,8 +618,6 @@ example().catch(console.error);
|
|
|
535
618
|
| **recursive** | `boolean` | Include events from descendant path_parts as well as the subject itself | [Optional] [Defaults to `false`] |
|
|
536
619
|
| **limit** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
|
|
537
620
|
| **offset** | `number` | Number of items to skip | [Optional] [Defaults to `0`] |
|
|
538
|
-
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
539
|
-
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
540
621
|
|
|
541
622
|
### Return type
|
|
542
623
|
|
|
@@ -544,7 +625,7 @@ example().catch(console.error);
|
|
|
544
625
|
|
|
545
626
|
### Authorization
|
|
546
627
|
|
|
547
|
-
|
|
628
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
548
629
|
|
|
549
630
|
### HTTP request headers
|
|
550
631
|
|
|
@@ -563,7 +644,7 @@ No authorization required
|
|
|
563
644
|
|
|
564
645
|
## listPathParts
|
|
565
646
|
|
|
566
|
-
> PaginatedResponsePathPartResponse listPathParts(parentPathId, maxDepth, sortOrder, limit, offset
|
|
647
|
+
> PaginatedResponsePathPartResponse listPathParts(parentPathId, maxDepth, sortOrder, limit, offset)
|
|
567
648
|
|
|
568
649
|
List Path Parts Handler
|
|
569
650
|
|
|
@@ -580,7 +661,13 @@ import type { ListPathPartsRequest } from '@knowledge-stack/ksapi';
|
|
|
580
661
|
|
|
581
662
|
async function example() {
|
|
582
663
|
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
583
|
-
const
|
|
664
|
+
const config = new Configuration({
|
|
665
|
+
// To configure API key authorization: cookieAuth
|
|
666
|
+
apiKey: "YOUR API KEY",
|
|
667
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
668
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
669
|
+
});
|
|
670
|
+
const api = new PathPartsApi(config);
|
|
584
671
|
|
|
585
672
|
const body = {
|
|
586
673
|
// string | Parent PathPart ID (defaults to root) (optional)
|
|
@@ -593,10 +680,6 @@ async function example() {
|
|
|
593
680
|
limit: 56,
|
|
594
681
|
// number | Number of items to skip (optional)
|
|
595
682
|
offset: 56,
|
|
596
|
-
// string (optional)
|
|
597
|
-
authorization: authorization_example,
|
|
598
|
-
// string (optional)
|
|
599
|
-
ksUat: ksUat_example,
|
|
600
683
|
} satisfies ListPathPartsRequest;
|
|
601
684
|
|
|
602
685
|
try {
|
|
@@ -621,8 +704,6 @@ example().catch(console.error);
|
|
|
621
704
|
| **sortOrder** | `PathOrder` | Sort order for results (default: LOGICAL) | [Optional] [Defaults to `undefined`] [Enum: LOGICAL, NAME, UPDATED_AT, CREATED_AT] |
|
|
622
705
|
| **limit** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
|
|
623
706
|
| **offset** | `number` | Number of items to skip | [Optional] [Defaults to `0`] |
|
|
624
|
-
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
625
|
-
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
626
707
|
|
|
627
708
|
### Return type
|
|
628
709
|
|
|
@@ -630,7 +711,7 @@ example().catch(console.error);
|
|
|
630
711
|
|
|
631
712
|
### Authorization
|
|
632
713
|
|
|
633
|
-
|
|
714
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
634
715
|
|
|
635
716
|
### HTTP request headers
|
|
636
717
|
|
|
@@ -649,7 +730,7 @@ No authorization required
|
|
|
649
730
|
|
|
650
731
|
## setPathPartTags
|
|
651
732
|
|
|
652
|
-
> PathPartTagsResponse setPathPartTags(pathPartId, bulkTagRequest
|
|
733
|
+
> PathPartTagsResponse setPathPartTags(pathPartId, bulkTagRequest)
|
|
653
734
|
|
|
654
735
|
Set Path Part Tags Handler
|
|
655
736
|
|
|
@@ -666,17 +747,19 @@ import type { SetPathPartTagsRequest } from '@knowledge-stack/ksapi';
|
|
|
666
747
|
|
|
667
748
|
async function example() {
|
|
668
749
|
console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
|
|
669
|
-
const
|
|
750
|
+
const config = new Configuration({
|
|
751
|
+
// To configure API key authorization: cookieAuth
|
|
752
|
+
apiKey: "YOUR API KEY",
|
|
753
|
+
// Configure HTTP bearer authorization: bearerAuth
|
|
754
|
+
accessToken: "YOUR BEARER TOKEN",
|
|
755
|
+
});
|
|
756
|
+
const api = new PathPartsApi(config);
|
|
670
757
|
|
|
671
758
|
const body = {
|
|
672
759
|
// string
|
|
673
760
|
pathPartId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
674
761
|
// BulkTagRequest
|
|
675
762
|
bulkTagRequest: ...,
|
|
676
|
-
// string (optional)
|
|
677
|
-
authorization: authorization_example,
|
|
678
|
-
// string (optional)
|
|
679
|
-
ksUat: ksUat_example,
|
|
680
763
|
} satisfies SetPathPartTagsRequest;
|
|
681
764
|
|
|
682
765
|
try {
|
|
@@ -698,8 +781,6 @@ example().catch(console.error);
|
|
|
698
781
|
|------------- | ------------- | ------------- | -------------|
|
|
699
782
|
| **pathPartId** | `string` | | [Defaults to `undefined`] |
|
|
700
783
|
| **bulkTagRequest** | [BulkTagRequest](BulkTagRequest.md) | | |
|
|
701
|
-
| **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
702
|
-
| **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
703
784
|
|
|
704
785
|
### Return type
|
|
705
786
|
|
|
@@ -707,7 +788,7 @@ example().catch(console.error);
|
|
|
707
788
|
|
|
708
789
|
### Authorization
|
|
709
790
|
|
|
710
|
-
|
|
791
|
+
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
|
|
711
792
|
|
|
712
793
|
### HTTP request headers
|
|
713
794
|
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
# PendingMemoryChunkResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`chunkId` | string
|
|
10
|
+
`kind` | [MemoryKind](MemoryKind.md)
|
|
11
|
+
`scope` | [MemoryScope](MemoryScope.md)
|
|
12
|
+
`ownerPathPartId` | string
|
|
13
|
+
`proposerTenantUserId` | string
|
|
14
|
+
`runId` | string
|
|
15
|
+
`rationale` | string
|
|
16
|
+
`body` | string
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { PendingMemoryChunkResponse } from '@knowledge-stack/ksapi'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"chunkId": null,
|
|
26
|
+
"kind": null,
|
|
27
|
+
"scope": null,
|
|
28
|
+
"ownerPathPartId": null,
|
|
29
|
+
"proposerTenantUserId": null,
|
|
30
|
+
"runId": null,
|
|
31
|
+
"rationale": null,
|
|
32
|
+
"body": null,
|
|
33
|
+
} satisfies PendingMemoryChunkResponse
|
|
34
|
+
|
|
35
|
+
console.log(example)
|
|
36
|
+
|
|
37
|
+
// Convert the instance to a JSON string
|
|
38
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
+
console.log(exampleJSON)
|
|
40
|
+
|
|
41
|
+
// Parse the JSON string back to an object
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as PendingMemoryChunkResponse
|
|
43
|
+
console.log(exampleParsed)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
+
|
|
48
|
+
|
|
@@ -12,6 +12,7 @@ Name | Type
|
|
|
12
12
|
`pathPartId` | string
|
|
13
13
|
`materializedPath` | string
|
|
14
14
|
`capability` | [PermissionCapability](PermissionCapability.md)
|
|
15
|
+
`canApprove` | boolean
|
|
15
16
|
`createdAt` | Date
|
|
16
17
|
`updatedAt` | Date
|
|
17
18
|
|
|
@@ -28,6 +29,7 @@ const example = {
|
|
|
28
29
|
"pathPartId": null,
|
|
29
30
|
"materializedPath": null,
|
|
30
31
|
"capability": null,
|
|
32
|
+
"canApprove": null,
|
|
31
33
|
"createdAt": null,
|
|
32
34
|
"updatedAt": null,
|
|
33
35
|
} satisfies PermissionResponse
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# ProposeMemoryChunkRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`scope` | [MemoryScope](MemoryScope.md)
|
|
10
|
+
`scopeOwnerId` | string
|
|
11
|
+
`content` | string
|
|
12
|
+
`rationale` | string
|
|
13
|
+
`kind` | [MemoryKind](MemoryKind.md)
|
|
14
|
+
`runId` | string
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { ProposeMemoryChunkRequest } from '@knowledge-stack/ksapi'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"scope": null,
|
|
24
|
+
"scopeOwnerId": null,
|
|
25
|
+
"content": null,
|
|
26
|
+
"rationale": null,
|
|
27
|
+
"kind": null,
|
|
28
|
+
"runId": null,
|
|
29
|
+
} satisfies ProposeMemoryChunkRequest
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProposeMemoryChunkRequest
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|