@knowledge-stack/ksapi 1.95.4 → 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/package.json
CHANGED
package/src/apis/AgentApi.ts
CHANGED
|
@@ -36,14 +36,10 @@ import {
|
|
|
36
36
|
|
|
37
37
|
export interface AgentAskRequest {
|
|
38
38
|
askRequest: AskRequest;
|
|
39
|
-
authorization?: string | null;
|
|
40
|
-
ksUat?: string | null;
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
export interface AgentExtractRequest {
|
|
44
42
|
extractRequest: ExtractRequest;
|
|
45
|
-
authorization?: string | null;
|
|
46
|
-
ksUat?: string | null;
|
|
47
43
|
}
|
|
48
44
|
|
|
49
45
|
/**
|
|
@@ -56,8 +52,6 @@ export interface AgentApiInterface {
|
|
|
56
52
|
/**
|
|
57
53
|
* Creates request options for agentAsk without sending the request
|
|
58
54
|
* @param {AskRequest} askRequest
|
|
59
|
-
* @param {string} [authorization]
|
|
60
|
-
* @param {string} [ksUat]
|
|
61
55
|
* @throws {RequiredError}
|
|
62
56
|
* @memberof AgentApiInterface
|
|
63
57
|
*/
|
|
@@ -67,8 +61,6 @@ export interface AgentApiInterface {
|
|
|
67
61
|
* 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``. Refund semantics distinguish cause: * **Cancellation** (client disconnect → ``asyncio.CancelledError``, OR explicit ``DELETE /v1/workflows/{id}`` while we await ``handle.result()`` → Temporal-wrapped ``CancelledError``) → **NO REFUND.** The user walked away or actively cancelled; that\'s their volition. We still best-effort cancel the workflow so the agent stops burning LLM tokens, but the consume stays charged. Detection uses ``temporalio.exceptions.is_cancelled_exception`` which spans both forms. * Any other exception (pre-enqueue ``start_workflow`` raise, Temporal failure, workflow-internal error) → **REFUND.** Server / our-problem failures don\'t bill the user.
|
|
68
62
|
* @summary Agent Ask Handler
|
|
69
63
|
* @param {AskRequest} askRequest
|
|
70
|
-
* @param {string} [authorization]
|
|
71
|
-
* @param {string} [ksUat]
|
|
72
64
|
* @param {*} [options] Override http request option.
|
|
73
65
|
* @throws {RequiredError}
|
|
74
66
|
* @memberof AgentApiInterface
|
|
@@ -84,8 +76,6 @@ export interface AgentApiInterface {
|
|
|
84
76
|
/**
|
|
85
77
|
* Creates request options for agentExtract without sending the request
|
|
86
78
|
* @param {ExtractRequest} extractRequest
|
|
87
|
-
* @param {string} [authorization]
|
|
88
|
-
* @param {string} [ksUat]
|
|
89
79
|
* @throws {RequiredError}
|
|
90
80
|
* @memberof AgentApiInterface
|
|
91
81
|
*/
|
|
@@ -95,8 +85,6 @@ export interface AgentApiInterface {
|
|
|
95
85
|
* 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.
|
|
96
86
|
* @summary Agent Extract Handler
|
|
97
87
|
* @param {ExtractRequest} extractRequest
|
|
98
|
-
* @param {string} [authorization]
|
|
99
|
-
* @param {string} [ksUat]
|
|
100
88
|
* @param {*} [options] Override http request option.
|
|
101
89
|
* @throws {RequiredError}
|
|
102
90
|
* @memberof AgentApiInterface
|
|
@@ -133,10 +121,14 @@ export class AgentApi extends runtime.BaseAPI implements AgentApiInterface {
|
|
|
133
121
|
|
|
134
122
|
headerParameters['Content-Type'] = 'application/json';
|
|
135
123
|
|
|
136
|
-
if (
|
|
137
|
-
|
|
138
|
-
|
|
124
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
125
|
+
const token = this.configuration.accessToken;
|
|
126
|
+
const tokenString = await token("bearerAuth", []);
|
|
139
127
|
|
|
128
|
+
if (tokenString) {
|
|
129
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
140
132
|
|
|
141
133
|
let urlPath = `/v1/agent/ask`;
|
|
142
134
|
|
|
@@ -186,10 +178,14 @@ export class AgentApi extends runtime.BaseAPI implements AgentApiInterface {
|
|
|
186
178
|
|
|
187
179
|
headerParameters['Content-Type'] = 'application/json';
|
|
188
180
|
|
|
189
|
-
if (
|
|
190
|
-
|
|
191
|
-
|
|
181
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
182
|
+
const token = this.configuration.accessToken;
|
|
183
|
+
const tokenString = await token("bearerAuth", []);
|
|
192
184
|
|
|
185
|
+
if (tokenString) {
|
|
186
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
193
189
|
|
|
194
190
|
let urlPath = `/v1/agent/extract`;
|
|
195
191
|
|
package/src/apis/ApiKeysApi.ts
CHANGED
|
@@ -33,21 +33,14 @@ import {
|
|
|
33
33
|
|
|
34
34
|
export interface CreateApiKeyOperationRequest {
|
|
35
35
|
createApiKeyRequest: CreateApiKeyRequest;
|
|
36
|
-
ksUat?: string | null;
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
export interface DeleteApiKeyRequest {
|
|
40
39
|
apiKeyId: string;
|
|
41
|
-
ksUat?: string | null;
|
|
42
40
|
}
|
|
43
41
|
|
|
44
42
|
export interface GetApiKeyRequest {
|
|
45
43
|
apiKeyId: string;
|
|
46
|
-
ksUat?: string | null;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface ListApiKeysRequest {
|
|
50
|
-
ksUat?: string | null;
|
|
51
44
|
}
|
|
52
45
|
|
|
53
46
|
/**
|
|
@@ -60,7 +53,6 @@ export interface ApiKeysApiInterface {
|
|
|
60
53
|
/**
|
|
61
54
|
* Creates request options for createApiKey without sending the request
|
|
62
55
|
* @param {CreateApiKeyRequest} createApiKeyRequest
|
|
63
|
-
* @param {string} [ksUat]
|
|
64
56
|
* @throws {RequiredError}
|
|
65
57
|
* @memberof ApiKeysApiInterface
|
|
66
58
|
*/
|
|
@@ -70,7 +62,6 @@ export interface ApiKeysApiInterface {
|
|
|
70
62
|
* Create a new API key. The full key is returned only once.
|
|
71
63
|
* @summary Create Api Key Handler
|
|
72
64
|
* @param {CreateApiKeyRequest} createApiKeyRequest
|
|
73
|
-
* @param {string} [ksUat]
|
|
74
65
|
* @param {*} [options] Override http request option.
|
|
75
66
|
* @throws {RequiredError}
|
|
76
67
|
* @memberof ApiKeysApiInterface
|
|
@@ -86,7 +77,6 @@ export interface ApiKeysApiInterface {
|
|
|
86
77
|
/**
|
|
87
78
|
* Creates request options for deleteApiKey without sending the request
|
|
88
79
|
* @param {string} apiKeyId
|
|
89
|
-
* @param {string} [ksUat]
|
|
90
80
|
* @throws {RequiredError}
|
|
91
81
|
* @memberof ApiKeysApiInterface
|
|
92
82
|
*/
|
|
@@ -96,7 +86,6 @@ export interface ApiKeysApiInterface {
|
|
|
96
86
|
* Delete an API key.
|
|
97
87
|
* @summary Delete Api Key Handler
|
|
98
88
|
* @param {string} apiKeyId
|
|
99
|
-
* @param {string} [ksUat]
|
|
100
89
|
* @param {*} [options] Override http request option.
|
|
101
90
|
* @throws {RequiredError}
|
|
102
91
|
* @memberof ApiKeysApiInterface
|
|
@@ -112,7 +101,6 @@ export interface ApiKeysApiInterface {
|
|
|
112
101
|
/**
|
|
113
102
|
* Creates request options for getApiKey without sending the request
|
|
114
103
|
* @param {string} apiKeyId
|
|
115
|
-
* @param {string} [ksUat]
|
|
116
104
|
* @throws {RequiredError}
|
|
117
105
|
* @memberof ApiKeysApiInterface
|
|
118
106
|
*/
|
|
@@ -122,7 +110,6 @@ export interface ApiKeysApiInterface {
|
|
|
122
110
|
* Get a single API key by ID.
|
|
123
111
|
* @summary Get Api Key Handler
|
|
124
112
|
* @param {string} apiKeyId
|
|
125
|
-
* @param {string} [ksUat]
|
|
126
113
|
* @param {*} [options] Override http request option.
|
|
127
114
|
* @throws {RequiredError}
|
|
128
115
|
* @memberof ApiKeysApiInterface
|
|
@@ -137,27 +124,25 @@ export interface ApiKeysApiInterface {
|
|
|
137
124
|
|
|
138
125
|
/**
|
|
139
126
|
* Creates request options for listApiKeys without sending the request
|
|
140
|
-
* @param {string} [ksUat]
|
|
141
127
|
* @throws {RequiredError}
|
|
142
128
|
* @memberof ApiKeysApiInterface
|
|
143
129
|
*/
|
|
144
|
-
listApiKeysRequestOpts(
|
|
130
|
+
listApiKeysRequestOpts(): Promise<runtime.RequestOpts>;
|
|
145
131
|
|
|
146
132
|
/**
|
|
147
133
|
* List all API keys for the current user.
|
|
148
134
|
* @summary List Api Keys Handler
|
|
149
|
-
* @param {string} [ksUat]
|
|
150
135
|
* @param {*} [options] Override http request option.
|
|
151
136
|
* @throws {RequiredError}
|
|
152
137
|
* @memberof ApiKeysApiInterface
|
|
153
138
|
*/
|
|
154
|
-
listApiKeysRaw(
|
|
139
|
+
listApiKeysRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiKeyResponse>>>;
|
|
155
140
|
|
|
156
141
|
/**
|
|
157
142
|
* List all API keys for the current user.
|
|
158
143
|
* List Api Keys Handler
|
|
159
144
|
*/
|
|
160
|
-
listApiKeys(
|
|
145
|
+
listApiKeys(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiKeyResponse>>;
|
|
161
146
|
|
|
162
147
|
}
|
|
163
148
|
|
|
@@ -311,7 +296,7 @@ export class ApiKeysApi extends runtime.BaseAPI implements ApiKeysApiInterface {
|
|
|
311
296
|
/**
|
|
312
297
|
* Creates request options for listApiKeys without sending the request
|
|
313
298
|
*/
|
|
314
|
-
async listApiKeysRequestOpts(
|
|
299
|
+
async listApiKeysRequestOpts(): Promise<runtime.RequestOpts> {
|
|
315
300
|
const queryParameters: any = {};
|
|
316
301
|
|
|
317
302
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -331,8 +316,8 @@ export class ApiKeysApi extends runtime.BaseAPI implements ApiKeysApiInterface {
|
|
|
331
316
|
* List all API keys for the current user.
|
|
332
317
|
* List Api Keys Handler
|
|
333
318
|
*/
|
|
334
|
-
async listApiKeysRaw(
|
|
335
|
-
const requestOptions = await this.listApiKeysRequestOpts(
|
|
319
|
+
async listApiKeysRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiKeyResponse>>> {
|
|
320
|
+
const requestOptions = await this.listApiKeysRequestOpts();
|
|
336
321
|
const response = await this.request(requestOptions, initOverrides);
|
|
337
322
|
|
|
338
323
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ApiKeyResponseFromJSON));
|
|
@@ -342,8 +327,8 @@ export class ApiKeysApi extends runtime.BaseAPI implements ApiKeysApiInterface {
|
|
|
342
327
|
* List all API keys for the current user.
|
|
343
328
|
* List Api Keys Handler
|
|
344
329
|
*/
|
|
345
|
-
async listApiKeys(
|
|
346
|
-
const response = await this.listApiKeysRaw(
|
|
330
|
+
async listApiKeys(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiKeyResponse>> {
|
|
331
|
+
const response = await this.listApiKeysRaw(initOverrides);
|
|
347
332
|
return await response.value();
|
|
348
333
|
}
|
|
349
334
|
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
HTTPValidationError,
|
|
19
|
+
PaginatedResponseEventResponse,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
HTTPValidationErrorFromJSON,
|
|
23
|
+
HTTPValidationErrorToJSON,
|
|
24
|
+
PaginatedResponseEventResponseFromJSON,
|
|
25
|
+
PaginatedResponseEventResponseToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
export interface ListAuditEventsRequest {
|
|
29
|
+
actorUserId?: string | null;
|
|
30
|
+
kind?: string | null;
|
|
31
|
+
since?: Date | null;
|
|
32
|
+
until?: Date | null;
|
|
33
|
+
subjectPathPartId?: string | null;
|
|
34
|
+
recursive?: boolean;
|
|
35
|
+
limit?: number;
|
|
36
|
+
offset?: number;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* AuditEventsApi - interface
|
|
41
|
+
*
|
|
42
|
+
* @export
|
|
43
|
+
* @interface AuditEventsApiInterface
|
|
44
|
+
*/
|
|
45
|
+
export interface AuditEventsApiInterface {
|
|
46
|
+
/**
|
|
47
|
+
* Creates request options for listAuditEvents without sending the request
|
|
48
|
+
* @param {string} [actorUserId] Filter to one actor
|
|
49
|
+
* @param {string} [kind] Filter to one event kind
|
|
50
|
+
* @param {Date} [since] Only events at or after this timestamp
|
|
51
|
+
* @param {Date} [until] Only events strictly before this timestamp
|
|
52
|
+
* @param {string} [subjectPathPartId] Scope to one document/folder/run subject
|
|
53
|
+
* @param {boolean} [recursive] Include the subject\'s descendants (needs subject)
|
|
54
|
+
* @param {number} [limit] Number of items per page
|
|
55
|
+
* @param {number} [offset] Number of items to skip
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
* @memberof AuditEventsApiInterface
|
|
58
|
+
*/
|
|
59
|
+
listAuditEventsRequestOpts(requestParameters: ListAuditEventsRequest): Promise<runtime.RequestOpts>;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* List the tenant\'s audit events, newest first (admin/owner only). Returns every event in the caller\'s own tenant — ADMIN/OWNER bypass path permissions by design. Filter by actor, kind, time window, and/or a subject subtree. Each event carries its resolved actor name.
|
|
63
|
+
* @summary List Audit Events Handler
|
|
64
|
+
* @param {string} [actorUserId] Filter to one actor
|
|
65
|
+
* @param {string} [kind] Filter to one event kind
|
|
66
|
+
* @param {Date} [since] Only events at or after this timestamp
|
|
67
|
+
* @param {Date} [until] Only events strictly before this timestamp
|
|
68
|
+
* @param {string} [subjectPathPartId] Scope to one document/folder/run subject
|
|
69
|
+
* @param {boolean} [recursive] Include the subject\'s descendants (needs subject)
|
|
70
|
+
* @param {number} [limit] Number of items per page
|
|
71
|
+
* @param {number} [offset] Number of items to skip
|
|
72
|
+
* @param {*} [options] Override http request option.
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
* @memberof AuditEventsApiInterface
|
|
75
|
+
*/
|
|
76
|
+
listAuditEventsRaw(requestParameters: ListAuditEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseEventResponse>>;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* List the tenant\'s audit events, newest first (admin/owner only). Returns every event in the caller\'s own tenant — ADMIN/OWNER bypass path permissions by design. Filter by actor, kind, time window, and/or a subject subtree. Each event carries its resolved actor name.
|
|
80
|
+
* List Audit Events Handler
|
|
81
|
+
*/
|
|
82
|
+
listAuditEvents(requestParameters: ListAuditEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseEventResponse>;
|
|
83
|
+
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
*/
|
|
89
|
+
export class AuditEventsApi extends runtime.BaseAPI implements AuditEventsApiInterface {
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Creates request options for listAuditEvents without sending the request
|
|
93
|
+
*/
|
|
94
|
+
async listAuditEventsRequestOpts(requestParameters: ListAuditEventsRequest): Promise<runtime.RequestOpts> {
|
|
95
|
+
const queryParameters: any = {};
|
|
96
|
+
|
|
97
|
+
if (requestParameters['actorUserId'] != null) {
|
|
98
|
+
queryParameters['actor_user_id'] = requestParameters['actorUserId'];
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if (requestParameters['kind'] != null) {
|
|
102
|
+
queryParameters['kind'] = requestParameters['kind'];
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if (requestParameters['since'] != null) {
|
|
106
|
+
queryParameters['since'] = (requestParameters['since'] as any).toISOString();
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (requestParameters['until'] != null) {
|
|
110
|
+
queryParameters['until'] = (requestParameters['until'] as any).toISOString();
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
if (requestParameters['subjectPathPartId'] != null) {
|
|
114
|
+
queryParameters['subject_path_part_id'] = requestParameters['subjectPathPartId'];
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if (requestParameters['recursive'] != null) {
|
|
118
|
+
queryParameters['recursive'] = requestParameters['recursive'];
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (requestParameters['limit'] != null) {
|
|
122
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (requestParameters['offset'] != null) {
|
|
126
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
130
|
+
|
|
131
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
132
|
+
const token = this.configuration.accessToken;
|
|
133
|
+
const tokenString = await token("bearerAuth", []);
|
|
134
|
+
|
|
135
|
+
if (tokenString) {
|
|
136
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
let urlPath = `/v1/audit-events`;
|
|
141
|
+
|
|
142
|
+
return {
|
|
143
|
+
path: urlPath,
|
|
144
|
+
method: 'GET',
|
|
145
|
+
headers: headerParameters,
|
|
146
|
+
query: queryParameters,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* List the tenant\'s audit events, newest first (admin/owner only). Returns every event in the caller\'s own tenant — ADMIN/OWNER bypass path permissions by design. Filter by actor, kind, time window, and/or a subject subtree. Each event carries its resolved actor name.
|
|
152
|
+
* List Audit Events Handler
|
|
153
|
+
*/
|
|
154
|
+
async listAuditEventsRaw(requestParameters: ListAuditEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseEventResponse>> {
|
|
155
|
+
const requestOptions = await this.listAuditEventsRequestOpts(requestParameters);
|
|
156
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
157
|
+
|
|
158
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResponseEventResponseFromJSON(jsonValue));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* List the tenant\'s audit events, newest first (admin/owner only). Returns every event in the caller\'s own tenant — ADMIN/OWNER bypass path permissions by design. Filter by actor, kind, time window, and/or a subject subtree. Each event carries its resolved actor name.
|
|
163
|
+
* List Audit Events Handler
|
|
164
|
+
*/
|
|
165
|
+
async listAuditEvents(requestParameters: ListAuditEventsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseEventResponse> {
|
|
166
|
+
const response = await this.listAuditEventsRaw(requestParameters, initOverrides);
|
|
167
|
+
return await response.value();
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
}
|
package/src/apis/AuthApi.ts
CHANGED
|
@@ -81,8 +81,6 @@ import {
|
|
|
81
81
|
|
|
82
82
|
export interface ChangePhoneNumberOperationRequest {
|
|
83
83
|
changePhoneNumberRequest: ChangePhoneNumberRequest;
|
|
84
|
-
authorization?: string | null;
|
|
85
|
-
ksUat?: string | null;
|
|
86
84
|
}
|
|
87
85
|
|
|
88
86
|
export interface CreatePasswordUserOperationRequest {
|
|
@@ -133,20 +131,14 @@ export interface PwSigninRequest {
|
|
|
133
131
|
|
|
134
132
|
export interface RefreshUatRequest {
|
|
135
133
|
tenantId?: string | null;
|
|
136
|
-
authorization?: string | null;
|
|
137
|
-
ksUat?: string | null;
|
|
138
134
|
}
|
|
139
135
|
|
|
140
136
|
export interface RequestPhoneChangeOperationRequest {
|
|
141
137
|
requestPhoneChangeRequest: RequestPhoneChangeRequest;
|
|
142
|
-
authorization?: string | null;
|
|
143
|
-
ksUat?: string | null;
|
|
144
138
|
}
|
|
145
139
|
|
|
146
140
|
export interface ResetPasswordRequest {
|
|
147
141
|
passwordResetRequest: PasswordResetRequest;
|
|
148
|
-
authorization?: string | null;
|
|
149
|
-
ksUat?: string | null;
|
|
150
142
|
}
|
|
151
143
|
|
|
152
144
|
export interface ResetPasswordWithTokenRequest {
|
|
@@ -176,8 +168,6 @@ export interface AuthApiInterface {
|
|
|
176
168
|
/**
|
|
177
169
|
* Creates request options for changePhoneNumber without sending the request
|
|
178
170
|
* @param {ChangePhoneNumberRequest} changePhoneNumberRequest
|
|
179
|
-
* @param {string} [authorization]
|
|
180
|
-
* @param {string} [ksUat]
|
|
181
171
|
* @throws {RequiredError}
|
|
182
172
|
* @memberof AuthApiInterface
|
|
183
173
|
*/
|
|
@@ -187,8 +177,6 @@ export interface AuthApiInterface {
|
|
|
187
177
|
* Apply a verified phone-number change to the authenticated user. The new phone is read from the Redis validation record pinned by ``/me/phone_number/verify``.
|
|
188
178
|
* @summary Change Phone Number Handler
|
|
189
179
|
* @param {ChangePhoneNumberRequest} changePhoneNumberRequest
|
|
190
|
-
* @param {string} [authorization]
|
|
191
|
-
* @param {string} [ksUat]
|
|
192
180
|
* @param {*} [options] Override http request option.
|
|
193
181
|
* @throws {RequiredError}
|
|
194
182
|
* @memberof AuthApiInterface
|
|
@@ -439,8 +427,6 @@ export interface AuthApiInterface {
|
|
|
439
427
|
/**
|
|
440
428
|
* Creates request options for refreshUat without sending the request
|
|
441
429
|
* @param {string} [tenantId] Target tenant ID to switch to. None=refresh current tenant
|
|
442
|
-
* @param {string} [authorization]
|
|
443
|
-
* @param {string} [ksUat]
|
|
444
430
|
* @throws {RequiredError}
|
|
445
431
|
* @memberof AuthApiInterface
|
|
446
432
|
*/
|
|
@@ -450,8 +436,6 @@ export interface AuthApiInterface {
|
|
|
450
436
|
* Refresh or switch the user\'s active tenant token.
|
|
451
437
|
* @summary Refresh Uat Handler
|
|
452
438
|
* @param {string} [tenantId] Target tenant ID to switch to. None=refresh current tenant
|
|
453
|
-
* @param {string} [authorization]
|
|
454
|
-
* @param {string} [ksUat]
|
|
455
439
|
* @param {*} [options] Override http request option.
|
|
456
440
|
* @throws {RequiredError}
|
|
457
441
|
* @memberof AuthApiInterface
|
|
@@ -467,8 +451,6 @@ export interface AuthApiInterface {
|
|
|
467
451
|
/**
|
|
468
452
|
* Creates request options for requestPhoneChange without sending the request
|
|
469
453
|
* @param {RequestPhoneChangeRequest} requestPhoneChangeRequest
|
|
470
|
-
* @param {string} [authorization]
|
|
471
|
-
* @param {string} [ksUat]
|
|
472
454
|
* @throws {RequiredError}
|
|
473
455
|
* @memberof AuthApiInterface
|
|
474
456
|
*/
|
|
@@ -478,8 +460,6 @@ export interface AuthApiInterface {
|
|
|
478
460
|
* Dispatch an SMS code to authorize a phone-number change. Confirms the new phone isn\'t already taken by *another* user. The caller is identified by their UAT, so authentication is required.
|
|
479
461
|
* @summary Request Phone Change Handler
|
|
480
462
|
* @param {RequestPhoneChangeRequest} requestPhoneChangeRequest
|
|
481
|
-
* @param {string} [authorization]
|
|
482
|
-
* @param {string} [ksUat]
|
|
483
463
|
* @param {*} [options] Override http request option.
|
|
484
464
|
* @throws {RequiredError}
|
|
485
465
|
* @memberof AuthApiInterface
|
|
@@ -495,8 +475,6 @@ export interface AuthApiInterface {
|
|
|
495
475
|
/**
|
|
496
476
|
* Creates request options for resetPassword without sending the request
|
|
497
477
|
* @param {PasswordResetRequest} passwordResetRequest
|
|
498
|
-
* @param {string} [authorization]
|
|
499
|
-
* @param {string} [ksUat]
|
|
500
478
|
* @throws {RequiredError}
|
|
501
479
|
* @memberof AuthApiInterface
|
|
502
480
|
*/
|
|
@@ -506,8 +484,6 @@ export interface AuthApiInterface {
|
|
|
506
484
|
* Reset password for the authenticated user
|
|
507
485
|
* @summary Reset Password Handler
|
|
508
486
|
* @param {PasswordResetRequest} passwordResetRequest
|
|
509
|
-
* @param {string} [authorization]
|
|
510
|
-
* @param {string} [ksUat]
|
|
511
487
|
* @param {*} [options] Override http request option.
|
|
512
488
|
* @throws {RequiredError}
|
|
513
489
|
* @memberof AuthApiInterface
|
|
@@ -663,10 +639,14 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
663
639
|
|
|
664
640
|
headerParameters['Content-Type'] = 'application/json';
|
|
665
641
|
|
|
666
|
-
if (
|
|
667
|
-
|
|
668
|
-
|
|
642
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
643
|
+
const token = this.configuration.accessToken;
|
|
644
|
+
const tokenString = await token("bearerAuth", []);
|
|
669
645
|
|
|
646
|
+
if (tokenString) {
|
|
647
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
670
650
|
|
|
671
651
|
let urlPath = `/v1/auth/pw/me/phone_number`;
|
|
672
652
|
|
|
@@ -1180,10 +1160,14 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
1180
1160
|
|
|
1181
1161
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1182
1162
|
|
|
1183
|
-
if (
|
|
1184
|
-
|
|
1185
|
-
|
|
1163
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1164
|
+
const token = this.configuration.accessToken;
|
|
1165
|
+
const tokenString = await token("bearerAuth", []);
|
|
1186
1166
|
|
|
1167
|
+
if (tokenString) {
|
|
1168
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1187
1171
|
|
|
1188
1172
|
let urlPath = `/v1/auth/uat`;
|
|
1189
1173
|
|
|
@@ -1232,10 +1216,14 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
1232
1216
|
|
|
1233
1217
|
headerParameters['Content-Type'] = 'application/json';
|
|
1234
1218
|
|
|
1235
|
-
if (
|
|
1236
|
-
|
|
1237
|
-
|
|
1219
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1220
|
+
const token = this.configuration.accessToken;
|
|
1221
|
+
const tokenString = await token("bearerAuth", []);
|
|
1238
1222
|
|
|
1223
|
+
if (tokenString) {
|
|
1224
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1239
1227
|
|
|
1240
1228
|
let urlPath = `/v1/auth/pw/me/phone_number/verify`;
|
|
1241
1229
|
|
|
@@ -1285,10 +1273,14 @@ export class AuthApi extends runtime.BaseAPI implements AuthApiInterface {
|
|
|
1285
1273
|
|
|
1286
1274
|
headerParameters['Content-Type'] = 'application/json';
|
|
1287
1275
|
|
|
1288
|
-
if (
|
|
1289
|
-
|
|
1290
|
-
|
|
1276
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1277
|
+
const token = this.configuration.accessToken;
|
|
1278
|
+
const tokenString = await token("bearerAuth", []);
|
|
1291
1279
|
|
|
1280
|
+
if (tokenString) {
|
|
1281
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1292
1284
|
|
|
1293
1285
|
let urlPath = `/v1/auth/pw/reset`;
|
|
1294
1286
|
|