@knowledge-stack/ksapi 1.101.1 → 1.102.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 +60 -4
- package/README.md +41 -4
- package/dist/apis/ApiConnectionsApi.d.ts +225 -0
- package/dist/apis/ApiConnectionsApi.js +322 -0
- package/dist/apis/AuditEventsApi.d.ts +57 -1
- package/dist/apis/AuditEventsApi.js +65 -0
- package/dist/apis/AuthApi.d.ts +5 -5
- package/dist/apis/AuthApi.js +3 -2
- package/dist/apis/DocumentVersionsApi.d.ts +26 -5
- package/dist/apis/DocumentVersionsApi.js +23 -2
- package/dist/apis/DocumentsApi.d.ts +22 -1
- package/dist/apis/DocumentsApi.js +21 -0
- package/dist/apis/FeedbackApi.d.ts +19 -1
- package/dist/apis/FeedbackApi.js +18 -0
- package/dist/apis/FoldersApi.d.ts +27 -9
- package/dist/apis/FoldersApi.js +20 -2
- package/dist/apis/InvitesApi.d.ts +29 -5
- package/dist/apis/InvitesApi.js +26 -2
- package/dist/apis/PathPartsApi.d.ts +57 -1
- package/dist/apis/PathPartsApi.js +68 -0
- package/dist/apis/TagsApi.d.ts +22 -1
- package/dist/apis/TagsApi.js +21 -0
- package/dist/apis/TenantGroupsApi.d.ts +43 -1
- package/dist/apis/TenantGroupsApi.js +42 -0
- package/dist/apis/TenantsApi.d.ts +16 -1
- package/dist/apis/TenantsApi.js +15 -0
- package/dist/apis/ThreadMessagesApi.d.ts +7 -1
- package/dist/apis/ThreadMessagesApi.js +6 -0
- package/dist/apis/ThreadsApi.d.ts +22 -1
- package/dist/apis/ThreadsApi.js +21 -0
- package/dist/apis/TrashApi.d.ts +28 -1
- package/dist/apis/TrashApi.js +27 -0
- package/dist/apis/UserPermissionsApi.d.ts +10 -1
- package/dist/apis/UserPermissionsApi.js +9 -0
- package/dist/apis/WorkflowDefinitionsApi.d.ts +81 -1
- package/dist/apis/WorkflowDefinitionsApi.js +93 -0
- package/dist/apis/WorkflowRunsApi.d.ts +119 -1
- package/dist/apis/WorkflowRunsApi.js +136 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ApiConnectionsApi.d.ts +225 -0
- package/dist/esm/apis/ApiConnectionsApi.js +285 -0
- package/dist/esm/apis/AuditEventsApi.d.ts +57 -1
- package/dist/esm/apis/AuditEventsApi.js +65 -0
- package/dist/esm/apis/AuthApi.d.ts +5 -5
- package/dist/esm/apis/AuthApi.js +4 -3
- package/dist/esm/apis/DocumentVersionsApi.d.ts +26 -5
- package/dist/esm/apis/DocumentVersionsApi.js +23 -2
- package/dist/esm/apis/DocumentsApi.d.ts +22 -1
- package/dist/esm/apis/DocumentsApi.js +21 -0
- package/dist/esm/apis/FeedbackApi.d.ts +19 -1
- package/dist/esm/apis/FeedbackApi.js +18 -0
- package/dist/esm/apis/FoldersApi.d.ts +27 -9
- package/dist/esm/apis/FoldersApi.js +21 -3
- package/dist/esm/apis/InvitesApi.d.ts +29 -5
- package/dist/esm/apis/InvitesApi.js +26 -2
- package/dist/esm/apis/PathPartsApi.d.ts +57 -1
- package/dist/esm/apis/PathPartsApi.js +69 -1
- package/dist/esm/apis/TagsApi.d.ts +22 -1
- package/dist/esm/apis/TagsApi.js +21 -0
- package/dist/esm/apis/TenantGroupsApi.d.ts +43 -1
- package/dist/esm/apis/TenantGroupsApi.js +42 -0
- package/dist/esm/apis/TenantsApi.d.ts +16 -1
- package/dist/esm/apis/TenantsApi.js +15 -0
- package/dist/esm/apis/ThreadMessagesApi.d.ts +7 -1
- package/dist/esm/apis/ThreadMessagesApi.js +6 -0
- package/dist/esm/apis/ThreadsApi.d.ts +22 -1
- package/dist/esm/apis/ThreadsApi.js +21 -0
- package/dist/esm/apis/TrashApi.d.ts +28 -1
- package/dist/esm/apis/TrashApi.js +27 -0
- package/dist/esm/apis/UserPermissionsApi.d.ts +10 -1
- package/dist/esm/apis/UserPermissionsApi.js +9 -0
- package/dist/esm/apis/WorkflowDefinitionsApi.d.ts +81 -1
- package/dist/esm/apis/WorkflowDefinitionsApi.js +94 -1
- package/dist/esm/apis/WorkflowRunsApi.d.ts +119 -1
- package/dist/esm/apis/WorkflowRunsApi.js +137 -1
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AcceptDisclaimerRequest.d.ts +47 -0
- package/dist/esm/models/AcceptDisclaimerRequest.js +44 -0
- package/dist/esm/models/ApiAuthConfig.d.ts +56 -0
- package/dist/esm/models/ApiAuthConfig.js +55 -0
- package/dist/esm/models/ApiConnectionRequestRequest.d.ts +75 -0
- package/dist/esm/models/ApiConnectionRequestRequest.js +59 -0
- package/dist/esm/models/ApiConnectionRequestResponse.d.ts +73 -0
- package/dist/esm/models/ApiConnectionRequestResponse.js +60 -0
- package/dist/esm/models/ApiConnectionResponse.d.ts +163 -0
- package/dist/esm/models/ApiConnectionResponse.js +118 -0
- package/dist/esm/models/ApiKeyResponse.d.ts +12 -0
- package/dist/esm/models/ApiKeyResponse.js +8 -0
- package/dist/esm/models/CreateApiConnectionRequest.d.ts +85 -0
- package/dist/esm/models/CreateApiConnectionRequest.js +76 -0
- package/dist/esm/models/CreateApiKeyRequest.d.ts +6 -0
- package/dist/esm/models/CreateApiKeyRequest.js +2 -0
- package/dist/esm/models/CreateApiKeyResponse.d.ts +6 -0
- package/dist/esm/models/CreateApiKeyResponse.js +4 -0
- package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +6 -0
- package/dist/esm/models/CreateWorkflowDefinitionRequest.js +2 -0
- package/dist/esm/models/DataSourceQueryResponse.d.ts +10 -0
- package/dist/esm/models/DataSourceQueryResponse.js +2 -0
- package/dist/esm/models/DataSourceResponse.d.ts +7 -0
- package/dist/esm/models/DataSourceResponse.js +3 -0
- package/dist/esm/models/DocumentResponse.d.ts +2 -2
- package/dist/esm/models/DocumentResponse.js +1 -3
- package/dist/esm/models/DocumentVersionOrder.d.ts +25 -0
- package/dist/esm/models/DocumentVersionOrder.js +43 -0
- package/dist/esm/models/ErrorResponse.d.ts +59 -0
- package/dist/esm/models/ErrorResponse.js +50 -0
- package/dist/esm/models/FeedbackOrder.d.ts +24 -0
- package/dist/esm/models/FeedbackOrder.js +42 -0
- package/dist/esm/models/FolderResponse.d.ts +7 -0
- package/dist/esm/models/FolderResponse.js +3 -0
- package/dist/esm/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponse.d.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts} +9 -6
- package/dist/esm/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponse.js → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.js} +11 -6
- package/dist/esm/models/GroupMemberOrder.d.ts +25 -0
- package/dist/esm/models/GroupMemberOrder.js +43 -0
- package/dist/esm/models/GroupPermissionOrder.d.ts +25 -0
- package/dist/esm/models/GroupPermissionOrder.js +43 -0
- package/dist/esm/models/InstantiateWorkflowTemplateRequest.d.ts +55 -0
- package/dist/esm/models/InstantiateWorkflowTemplateRequest.js +50 -0
- package/dist/esm/models/InviteOrder.d.ts +25 -0
- package/dist/esm/models/InviteOrder.js +43 -0
- package/dist/esm/models/InviteResponse.d.ts +6 -0
- package/dist/esm/models/InviteResponse.js +2 -0
- package/dist/esm/models/NetworkClass.d.ts +28 -0
- package/dist/esm/models/NetworkClass.js +46 -0
- package/dist/{models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseDiscriminator.d.ts → esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts} +16 -16
- package/dist/esm/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js} +12 -12
- package/dist/esm/models/PartType.d.ts +1 -0
- package/dist/esm/models/PartType.js +2 -1
- package/dist/esm/models/ReferenceType.d.ts +1 -0
- package/dist/esm/models/ReferenceType.js +1 -0
- package/dist/esm/models/SortDirection.d.ts +25 -0
- package/dist/esm/models/SortDirection.js +43 -0
- package/dist/esm/models/TagOrder.d.ts +25 -0
- package/dist/esm/models/TagOrder.js +43 -0
- package/dist/esm/models/TenantGroupOrder.d.ts +25 -0
- package/dist/esm/models/TenantGroupOrder.js +43 -0
- package/dist/esm/models/TenantUserOrder.d.ts +26 -0
- package/dist/esm/models/TenantUserOrder.js +44 -0
- package/dist/esm/models/ThreadOrder.d.ts +25 -0
- package/dist/esm/models/ThreadOrder.js +43 -0
- package/dist/esm/models/ThreadResponse.d.ts +7 -0
- package/dist/esm/models/ThreadResponse.js +3 -0
- package/dist/esm/models/TransferOwnerRequest.d.ts +47 -0
- package/dist/esm/models/TransferOwnerRequest.js +44 -0
- package/dist/esm/models/TransferOwnerResponse.d.ts +53 -0
- package/dist/esm/models/TransferOwnerResponse.js +48 -0
- package/dist/esm/models/TrashItemResponse.d.ts +7 -0
- package/dist/esm/models/TrashItemResponse.js +3 -0
- package/dist/esm/models/UpdateApiConnectionRequest.d.ts +73 -0
- package/dist/esm/models/UpdateApiConnectionRequest.js +59 -0
- package/dist/esm/models/UserPermissionOrder.d.ts +25 -0
- package/dist/esm/models/UserPermissionOrder.js +43 -0
- package/dist/esm/models/WorkflowAdoptionStats.d.ts +63 -0
- package/dist/esm/models/WorkflowAdoptionStats.js +52 -0
- package/dist/esm/models/WorkflowDefinitionOrder.d.ts +25 -0
- package/dist/esm/models/WorkflowDefinitionOrder.js +43 -0
- package/dist/esm/models/WorkflowDefinitionResponse.d.ts +25 -0
- package/dist/esm/models/WorkflowDefinitionResponse.js +13 -0
- package/dist/esm/models/WorkflowRunOrder.d.ts +26 -0
- package/dist/esm/models/WorkflowRunOrder.js +44 -0
- package/dist/esm/models/WorkflowRunResponse.d.ts +6 -0
- package/dist/esm/models/WorkflowRunResponse.js +2 -0
- package/dist/esm/models/WorkflowRunSummaryResponse.d.ts +111 -0
- package/dist/esm/models/WorkflowRunSummaryResponse.js +81 -0
- package/dist/esm/models/index.d.ts +29 -2
- package/dist/esm/models/index.js +29 -2
- package/dist/models/AcceptDisclaimerRequest.d.ts +47 -0
- package/dist/models/AcceptDisclaimerRequest.js +52 -0
- package/dist/models/ApiAuthConfig.d.ts +56 -0
- package/dist/models/ApiAuthConfig.js +63 -0
- package/dist/models/ApiConnectionRequestRequest.d.ts +75 -0
- package/dist/models/ApiConnectionRequestRequest.js +67 -0
- package/dist/models/ApiConnectionRequestResponse.d.ts +73 -0
- package/dist/models/ApiConnectionRequestResponse.js +68 -0
- package/dist/models/ApiConnectionResponse.d.ts +163 -0
- package/dist/models/ApiConnectionResponse.js +126 -0
- package/dist/models/ApiKeyResponse.d.ts +12 -0
- package/dist/models/ApiKeyResponse.js +8 -0
- package/dist/models/CreateApiConnectionRequest.d.ts +85 -0
- package/dist/models/CreateApiConnectionRequest.js +84 -0
- package/dist/models/CreateApiKeyRequest.d.ts +6 -0
- package/dist/models/CreateApiKeyRequest.js +2 -0
- package/dist/models/CreateApiKeyResponse.d.ts +6 -0
- package/dist/models/CreateApiKeyResponse.js +4 -0
- package/dist/models/CreateWorkflowDefinitionRequest.d.ts +6 -0
- package/dist/models/CreateWorkflowDefinitionRequest.js +2 -0
- package/dist/models/DataSourceQueryResponse.d.ts +10 -0
- package/dist/models/DataSourceQueryResponse.js +2 -0
- package/dist/models/DataSourceResponse.d.ts +7 -0
- package/dist/models/DataSourceResponse.js +3 -0
- package/dist/models/DocumentResponse.d.ts +2 -2
- package/dist/models/DocumentResponse.js +1 -3
- package/dist/models/DocumentVersionOrder.d.ts +25 -0
- package/dist/models/DocumentVersionOrder.js +51 -0
- package/dist/models/ErrorResponse.d.ts +59 -0
- package/dist/models/ErrorResponse.js +58 -0
- package/dist/models/FeedbackOrder.d.ts +24 -0
- package/dist/models/FeedbackOrder.js +50 -0
- package/dist/models/FolderResponse.d.ts +7 -0
- package/dist/models/FolderResponse.js +3 -0
- package/dist/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponse.d.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts} +9 -6
- package/dist/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponse.js → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.js} +15 -10
- package/dist/models/GroupMemberOrder.d.ts +25 -0
- package/dist/models/GroupMemberOrder.js +51 -0
- package/dist/models/GroupPermissionOrder.d.ts +25 -0
- package/dist/models/GroupPermissionOrder.js +51 -0
- package/dist/models/InstantiateWorkflowTemplateRequest.d.ts +55 -0
- package/dist/models/InstantiateWorkflowTemplateRequest.js +58 -0
- package/dist/models/InviteOrder.d.ts +25 -0
- package/dist/models/InviteOrder.js +51 -0
- package/dist/models/InviteResponse.d.ts +6 -0
- package/dist/models/InviteResponse.js +2 -0
- package/dist/models/NetworkClass.d.ts +28 -0
- package/dist/models/NetworkClass.js +54 -0
- package/dist/{esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseDiscriminator.d.ts → models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts} +16 -16
- package/dist/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js} +18 -18
- package/dist/models/PartType.d.ts +1 -0
- package/dist/models/PartType.js +2 -1
- package/dist/models/ReferenceType.d.ts +1 -0
- package/dist/models/ReferenceType.js +1 -0
- package/dist/models/SortDirection.d.ts +25 -0
- package/dist/models/SortDirection.js +51 -0
- package/dist/models/TagOrder.d.ts +25 -0
- package/dist/models/TagOrder.js +51 -0
- package/dist/models/TenantGroupOrder.d.ts +25 -0
- package/dist/models/TenantGroupOrder.js +51 -0
- package/dist/models/TenantUserOrder.d.ts +26 -0
- package/dist/models/TenantUserOrder.js +52 -0
- package/dist/models/ThreadOrder.d.ts +25 -0
- package/dist/models/ThreadOrder.js +51 -0
- package/dist/models/ThreadResponse.d.ts +7 -0
- package/dist/models/ThreadResponse.js +3 -0
- package/dist/models/TransferOwnerRequest.d.ts +47 -0
- package/dist/models/TransferOwnerRequest.js +52 -0
- package/dist/models/TransferOwnerResponse.d.ts +53 -0
- package/dist/models/TransferOwnerResponse.js +56 -0
- package/dist/models/TrashItemResponse.d.ts +7 -0
- package/dist/models/TrashItemResponse.js +3 -0
- package/dist/models/UpdateApiConnectionRequest.d.ts +73 -0
- package/dist/models/UpdateApiConnectionRequest.js +67 -0
- package/dist/models/UserPermissionOrder.d.ts +25 -0
- package/dist/models/UserPermissionOrder.js +51 -0
- package/dist/models/WorkflowAdoptionStats.d.ts +63 -0
- package/dist/models/WorkflowAdoptionStats.js +60 -0
- package/dist/models/WorkflowDefinitionOrder.d.ts +25 -0
- package/dist/models/WorkflowDefinitionOrder.js +51 -0
- package/dist/models/WorkflowDefinitionResponse.d.ts +25 -0
- package/dist/models/WorkflowDefinitionResponse.js +13 -0
- package/dist/models/WorkflowRunOrder.d.ts +26 -0
- package/dist/models/WorkflowRunOrder.js +52 -0
- package/dist/models/WorkflowRunResponse.d.ts +6 -0
- package/dist/models/WorkflowRunResponse.js +2 -0
- package/dist/models/WorkflowRunSummaryResponse.d.ts +111 -0
- package/dist/models/WorkflowRunSummaryResponse.js +89 -0
- package/dist/models/index.d.ts +29 -2
- package/dist/models/index.js +29 -2
- package/docs/AcceptDisclaimerRequest.md +35 -0
- package/docs/AgentApi.md +2 -0
- package/docs/ApiAuthConfig.md +37 -0
- package/docs/ApiConnectionRequestRequest.md +43 -0
- package/docs/ApiConnectionRequestResponse.md +43 -0
- package/docs/ApiConnectionResponse.md +69 -0
- package/docs/ApiConnectionsApi.md +397 -0
- package/docs/ApiKeyResponse.md +4 -0
- package/docs/ApiKeysApi.md +4 -0
- package/docs/AuditEventsApi.md +96 -1
- package/docs/AuthApi.md +20 -2
- package/docs/ChunkLineagesApi.md +3 -0
- package/docs/ChunksApi.md +10 -1
- package/docs/CreateApiConnectionRequest.md +47 -0
- package/docs/CreateApiKeyRequest.md +2 -0
- package/docs/CreateApiKeyResponse.md +2 -0
- package/docs/CreateWorkflowDefinitionRequest.md +2 -0
- package/docs/DataSourceQueryResponse.md +3 -1
- package/docs/DataSourceResponse.md +2 -0
- package/docs/DataSourcesApi.md +7 -0
- package/docs/DefaultApi.md +2 -0
- package/docs/DocumentCheckoutApi.md +3 -0
- package/docs/DocumentVersionOrder.md +33 -0
- package/docs/DocumentVersionsApi.md +33 -2
- package/docs/DocumentsApi.md +30 -1
- package/docs/ErrorResponse.md +39 -0
- package/docs/FeaturesApi.md +1 -0
- package/docs/FeedbackApi.md +22 -1
- package/docs/FeedbackOrder.md +33 -0
- package/docs/FolderResponse.md +2 -0
- package/docs/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponse.md → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.md} +24 -6
- package/docs/FoldersApi.md +31 -5
- package/docs/GroupMemberOrder.md +33 -0
- package/docs/GroupPermissionOrder.md +33 -0
- package/docs/InstantiateWorkflowTemplateRequest.md +37 -0
- package/docs/InviteOrder.md +33 -0
- package/docs/InviteResponse.md +2 -0
- package/docs/InvitesApi.md +31 -2
- package/docs/MemoryApi.md +5 -0
- package/docs/NetworkClass.md +33 -0
- package/docs/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseDiscriminator.md → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.md} +5 -5
- package/docs/PathPartApprovalsApi.md +2 -0
- package/docs/PathPartsApi.md +105 -1
- package/docs/PublicApi.md +1 -0
- package/docs/SectionsApi.md +6 -0
- package/docs/SortDirection.md +33 -0
- package/docs/SubscriptionsApi.md +2 -0
- package/docs/TagOrder.md +33 -0
- package/docs/TagsApi.md +27 -1
- package/docs/TenantGroupOrder.md +33 -0
- package/docs/TenantGroupsApi.md +58 -3
- package/docs/TenantUserOrder.md +33 -0
- package/docs/TenantsApi.md +28 -1
- package/docs/ThreadMessagesApi.md +10 -1
- package/docs/ThreadOrder.md +33 -0
- package/docs/ThreadResponse.md +2 -0
- package/docs/ThreadsApi.md +29 -1
- package/docs/TransferOwnerRequest.md +35 -0
- package/docs/TransferOwnerResponse.md +36 -0
- package/docs/TrashApi.md +31 -1
- package/docs/TrashItemResponse.md +2 -0
- package/docs/UpdateApiConnectionRequest.md +43 -0
- package/docs/UserPermissionOrder.md +33 -0
- package/docs/UserPermissionsApi.md +14 -1
- package/docs/UsersApi.md +5 -0
- package/docs/WorkflowAdoptionStats.md +39 -0
- package/docs/WorkflowDefinitionOrder.md +33 -0
- package/docs/WorkflowDefinitionResponse.md +8 -0
- package/docs/WorkflowDefinitionsApi.md +128 -2
- package/docs/WorkflowMemoryApi.md +5 -0
- package/docs/WorkflowRunOrder.md +33 -0
- package/docs/WorkflowRunResponse.md +2 -0
- package/docs/WorkflowRunSummaryResponse.md +53 -0
- package/docs/WorkflowRunsApi.md +203 -0
- package/docs/WorkflowsApi.md +5 -0
- package/package.json +1 -1
- package/src/apis/AgentApi.ts +3 -0
- package/src/apis/ApiConnectionsApi.ts +516 -0
- package/src/apis/ApiKeysApi.ts +3 -0
- package/src/apis/AuditEventsApi.ts +127 -0
- package/src/apis/AuthApi.ts +10 -6
- package/src/apis/ChunkLineagesApi.ts +3 -0
- package/src/apis/ChunksApi.ts +3 -0
- package/src/apis/DataSourcesApi.ts +3 -0
- package/src/apis/DefaultApi.ts +3 -0
- package/src/apis/DocumentCheckoutApi.ts +3 -0
- package/src/apis/DocumentVersionsApi.ts +62 -4
- package/src/apis/DocumentsApi.ts +58 -0
- package/src/apis/FeaturesApi.ts +3 -0
- package/src/apis/FeedbackApi.ts +51 -0
- package/src/apis/FoldersApi.ts +61 -13
- package/src/apis/InvitesApi.ts +72 -4
- package/src/apis/MemoryApi.ts +3 -0
- package/src/apis/PathPartApprovalsApi.ts +3 -0
- package/src/apis/PathPartsApi.ts +143 -0
- package/src/apis/PublicApi.ts +3 -0
- package/src/apis/SectionsApi.ts +3 -0
- package/src/apis/SubscriptionsApi.ts +3 -0
- package/src/apis/TagsApi.ts +58 -0
- package/src/apis/TenantGroupsApi.ts +116 -0
- package/src/apis/TenantsApi.ts +47 -0
- package/src/apis/ThreadMessagesApi.ts +23 -0
- package/src/apis/ThreadsApi.ts +58 -0
- package/src/apis/TrashApi.ts +75 -0
- package/src/apis/UserPermissionsApi.ts +33 -0
- package/src/apis/UsersApi.ts +3 -0
- package/src/apis/WorkflowDefinitionsApi.ts +206 -0
- package/src/apis/WorkflowMemoryApi.ts +3 -0
- package/src/apis/WorkflowRunsApi.ts +274 -0
- package/src/apis/WorkflowsApi.ts +3 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AcceptDisclaimerRequest.ts +83 -0
- package/src/models/ApiAuthConfig.ts +101 -0
- package/src/models/ApiConnectionRequestRequest.ts +121 -0
- package/src/models/ApiConnectionRequestResponse.ts +119 -0
- package/src/models/ApiConnectionResponse.ts +276 -0
- package/src/models/ApiKeyResponse.ts +18 -0
- package/src/models/CreateApiConnectionRequest.ts +161 -0
- package/src/models/CreateApiKeyRequest.ts +8 -0
- package/src/models/CreateApiKeyResponse.ts +9 -0
- package/src/models/CreateWorkflowDefinitionRequest.ts +8 -0
- package/src/models/DataSourceQueryResponse.ts +12 -0
- package/src/models/DataSourceResponse.ts +15 -0
- package/src/models/DocumentResponse.ts +3 -4
- package/src/models/DocumentVersionOrder.ts +53 -0
- package/src/models/ErrorResponse.ts +100 -0
- package/src/models/FeedbackOrder.ts +52 -0
- package/src/models/FolderResponse.ts +15 -0
- package/src/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponse.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.ts} +19 -8
- package/src/models/GroupMemberOrder.ts +53 -0
- package/src/models/GroupPermissionOrder.ts +53 -0
- package/src/models/InstantiateWorkflowTemplateRequest.ts +96 -0
- package/src/models/InviteOrder.ts +53 -0
- package/src/models/InviteResponse.ts +8 -0
- package/src/models/NetworkClass.ts +56 -0
- package/src/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseDiscriminator.ts → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.ts} +25 -25
- package/src/models/PartType.ts +2 -1
- package/src/models/ReferenceType.ts +1 -0
- package/src/models/SortDirection.ts +53 -0
- package/src/models/TagOrder.ts +53 -0
- package/src/models/TenantGroupOrder.ts +53 -0
- package/src/models/TenantUserOrder.ts +54 -0
- package/src/models/ThreadOrder.ts +53 -0
- package/src/models/ThreadResponse.ts +16 -0
- package/src/models/TransferOwnerRequest.ts +83 -0
- package/src/models/TransferOwnerResponse.ts +92 -0
- package/src/models/TrashItemResponse.ts +15 -0
- package/src/models/UpdateApiConnectionRequest.ts +137 -0
- package/src/models/UserPermissionOrder.ts +53 -0
- package/src/models/WorkflowAdoptionStats.ts +105 -0
- package/src/models/WorkflowDefinitionOrder.ts +53 -0
- package/src/models/WorkflowDefinitionResponse.ts +41 -0
- package/src/models/WorkflowRunOrder.ts +54 -0
- package/src/models/WorkflowRunResponse.ts +8 -0
- package/src/models/WorkflowRunSummaryResponse.ts +179 -0
- package/src/models/index.ts +29 -2
|
@@ -43,6 +43,18 @@ export interface ApiKeyResponse {
|
|
|
43
43
|
* @memberof ApiKeyResponse
|
|
44
44
|
*/
|
|
45
45
|
createdAt: Date;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof ApiKeyResponse
|
|
50
|
+
*/
|
|
51
|
+
expiresAt: Date | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof ApiKeyResponse
|
|
56
|
+
*/
|
|
57
|
+
lastUsedAt: Date | null;
|
|
46
58
|
}
|
|
47
59
|
export const ApiKeyResponsePropertyValidationAttributesMap: {
|
|
48
60
|
[property: string]: {
|
|
@@ -70,6 +82,8 @@ export function instanceOfApiKeyResponse(value: object): value is ApiKeyResponse
|
|
|
70
82
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
83
|
if (!('keySuffix' in value) || value['keySuffix'] === undefined) return false;
|
|
72
84
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
85
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false;
|
|
86
|
+
if (!('lastUsedAt' in value) || value['lastUsedAt'] === undefined) return false;
|
|
73
87
|
return true;
|
|
74
88
|
}
|
|
75
89
|
|
|
@@ -87,6 +101,8 @@ export function ApiKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
87
101
|
'name': json['name'],
|
|
88
102
|
'keySuffix': json['key_suffix'],
|
|
89
103
|
'createdAt': (new Date(json['created_at'])),
|
|
104
|
+
'expiresAt': (json['expires_at'] == null ? null : new Date(json['expires_at'])),
|
|
105
|
+
'lastUsedAt': (json['last_used_at'] == null ? null : new Date(json['last_used_at'])),
|
|
90
106
|
};
|
|
91
107
|
}
|
|
92
108
|
|
|
@@ -105,6 +121,8 @@ export function ApiKeyResponseToJSONTyped(value?: ApiKeyResponse | null, ignoreD
|
|
|
105
121
|
'name': value['name'],
|
|
106
122
|
'key_suffix': value['keySuffix'],
|
|
107
123
|
'created_at': value['createdAt'].toISOString(),
|
|
124
|
+
'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
125
|
+
'last_used_at': value['lastUsedAt'] == null ? value['lastUsedAt'] : value['lastUsedAt'].toISOString(),
|
|
108
126
|
};
|
|
109
127
|
}
|
|
110
128
|
|
|
@@ -0,0 +1,161 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { NetworkClass } from './NetworkClass';
|
|
17
|
+
import {
|
|
18
|
+
NetworkClassFromJSON,
|
|
19
|
+
NetworkClassFromJSONTyped,
|
|
20
|
+
NetworkClassToJSON,
|
|
21
|
+
NetworkClassToJSONTyped,
|
|
22
|
+
} from './NetworkClass';
|
|
23
|
+
import type { ApiAuthConfig } from './ApiAuthConfig';
|
|
24
|
+
import {
|
|
25
|
+
ApiAuthConfigFromJSON,
|
|
26
|
+
ApiAuthConfigFromJSONTyped,
|
|
27
|
+
ApiAuthConfigToJSON,
|
|
28
|
+
ApiAuthConfigToJSONTyped,
|
|
29
|
+
} from './ApiAuthConfig';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Create an API connection under a folder the caller can write to.
|
|
33
|
+
* @export
|
|
34
|
+
* @interface CreateApiConnectionRequest
|
|
35
|
+
*/
|
|
36
|
+
export interface CreateApiConnectionRequest {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CreateApiConnectionRequest
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CreateApiConnectionRequest
|
|
47
|
+
*/
|
|
48
|
+
parentPathPartId: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CreateApiConnectionRequest
|
|
53
|
+
*/
|
|
54
|
+
baseUrl: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {NetworkClass}
|
|
58
|
+
* @memberof CreateApiConnectionRequest
|
|
59
|
+
*/
|
|
60
|
+
networkClass: NetworkClass;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {boolean}
|
|
64
|
+
* @memberof CreateApiConnectionRequest
|
|
65
|
+
*/
|
|
66
|
+
verifyTls?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {ApiAuthConfig}
|
|
70
|
+
* @memberof CreateApiConnectionRequest
|
|
71
|
+
*/
|
|
72
|
+
authConfig: ApiAuthConfig;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof CreateApiConnectionRequest
|
|
77
|
+
*/
|
|
78
|
+
apiDocs?: string | null;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
export const CreateApiConnectionRequestPropertyValidationAttributesMap: {
|
|
83
|
+
[property: string]: {
|
|
84
|
+
maxLength?: number,
|
|
85
|
+
minLength?: number,
|
|
86
|
+
pattern?: string,
|
|
87
|
+
maximum?: number,
|
|
88
|
+
exclusiveMaximum?: boolean,
|
|
89
|
+
minimum?: number,
|
|
90
|
+
exclusiveMinimum?: boolean,
|
|
91
|
+
multipleOf?: number,
|
|
92
|
+
maxItems?: number,
|
|
93
|
+
minItems?: number,
|
|
94
|
+
uniqueItems?: boolean
|
|
95
|
+
}
|
|
96
|
+
} = {
|
|
97
|
+
name: {
|
|
98
|
+
maxLength: 255,
|
|
99
|
+
},
|
|
100
|
+
baseUrl: {
|
|
101
|
+
maxLength: 2048,
|
|
102
|
+
},
|
|
103
|
+
apiDocs: {
|
|
104
|
+
maxLength: 100000,
|
|
105
|
+
},
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Check if a given object implements the CreateApiConnectionRequest interface.
|
|
111
|
+
*/
|
|
112
|
+
export function instanceOfCreateApiConnectionRequest(value: object): value is CreateApiConnectionRequest {
|
|
113
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
114
|
+
if (!('parentPathPartId' in value) || value['parentPathPartId'] === undefined) return false;
|
|
115
|
+
if (!('baseUrl' in value) || value['baseUrl'] === undefined) return false;
|
|
116
|
+
if (!('networkClass' in value) || value['networkClass'] === undefined) return false;
|
|
117
|
+
if (!('authConfig' in value) || value['authConfig'] === undefined) return false;
|
|
118
|
+
return true;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function CreateApiConnectionRequestFromJSON(json: any): CreateApiConnectionRequest {
|
|
122
|
+
return CreateApiConnectionRequestFromJSONTyped(json, false);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function CreateApiConnectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateApiConnectionRequest {
|
|
126
|
+
if (json == null) {
|
|
127
|
+
return json;
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
|
|
131
|
+
'name': json['name'],
|
|
132
|
+
'parentPathPartId': json['parent_path_part_id'],
|
|
133
|
+
'baseUrl': json['base_url'],
|
|
134
|
+
'networkClass': NetworkClassFromJSON(json['network_class']),
|
|
135
|
+
'verifyTls': json['verify_tls'] == null ? undefined : json['verify_tls'],
|
|
136
|
+
'authConfig': ApiAuthConfigFromJSON(json['auth_config']),
|
|
137
|
+
'apiDocs': json['api_docs'] == null ? undefined : json['api_docs'],
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function CreateApiConnectionRequestToJSON(json: any): CreateApiConnectionRequest {
|
|
142
|
+
return CreateApiConnectionRequestToJSONTyped(json, false);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function CreateApiConnectionRequestToJSONTyped(value?: CreateApiConnectionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
146
|
+
if (value == null) {
|
|
147
|
+
return value;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
return {
|
|
151
|
+
|
|
152
|
+
'name': value['name'],
|
|
153
|
+
'parent_path_part_id': value['parentPathPartId'],
|
|
154
|
+
'base_url': value['baseUrl'],
|
|
155
|
+
'network_class': NetworkClassToJSON(value['networkClass']),
|
|
156
|
+
'verify_tls': value['verifyTls'],
|
|
157
|
+
'auth_config': ApiAuthConfigToJSON(value['authConfig']),
|
|
158
|
+
'api_docs': value['apiDocs'],
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
@@ -25,6 +25,12 @@ export interface CreateApiKeyRequest {
|
|
|
25
25
|
* @memberof CreateApiKeyRequest
|
|
26
26
|
*/
|
|
27
27
|
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Optional absolute expiry. Null means the key never expires.
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof CreateApiKeyRequest
|
|
32
|
+
*/
|
|
33
|
+
expiresAt?: Date | null;
|
|
28
34
|
}
|
|
29
35
|
export const CreateApiKeyRequestPropertyValidationAttributesMap: {
|
|
30
36
|
[property: string]: {
|
|
@@ -67,6 +73,7 @@ export function CreateApiKeyRequestFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
67
73
|
return {
|
|
68
74
|
|
|
69
75
|
'name': json['name'],
|
|
76
|
+
'expiresAt': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
70
77
|
};
|
|
71
78
|
}
|
|
72
79
|
|
|
@@ -82,6 +89,7 @@ export function CreateApiKeyRequestToJSONTyped(value?: CreateApiKeyRequest | nul
|
|
|
82
89
|
return {
|
|
83
90
|
|
|
84
91
|
'name': value['name'],
|
|
92
|
+
'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
85
93
|
};
|
|
86
94
|
}
|
|
87
95
|
|
|
@@ -49,6 +49,12 @@ export interface CreateApiKeyResponse {
|
|
|
49
49
|
* @memberof CreateApiKeyResponse
|
|
50
50
|
*/
|
|
51
51
|
createdAt: Date;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof CreateApiKeyResponse
|
|
56
|
+
*/
|
|
57
|
+
expiresAt: Date | null;
|
|
52
58
|
}
|
|
53
59
|
export const CreateApiKeyResponsePropertyValidationAttributesMap: {
|
|
54
60
|
[property: string]: {
|
|
@@ -77,6 +83,7 @@ export function instanceOfCreateApiKeyResponse(value: object): value is CreateAp
|
|
|
77
83
|
if (!('key' in value) || value['key'] === undefined) return false;
|
|
78
84
|
if (!('keySuffix' in value) || value['keySuffix'] === undefined) return false;
|
|
79
85
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
86
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false;
|
|
80
87
|
return true;
|
|
81
88
|
}
|
|
82
89
|
|
|
@@ -95,6 +102,7 @@ export function CreateApiKeyResponseFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
95
102
|
'key': json['key'],
|
|
96
103
|
'keySuffix': json['key_suffix'],
|
|
97
104
|
'createdAt': (new Date(json['created_at'])),
|
|
105
|
+
'expiresAt': (json['expires_at'] == null ? null : new Date(json['expires_at'])),
|
|
98
106
|
};
|
|
99
107
|
}
|
|
100
108
|
|
|
@@ -114,6 +122,7 @@ export function CreateApiKeyResponseToJSONTyped(value?: CreateApiKeyResponse | n
|
|
|
114
122
|
'key': value['key'],
|
|
115
123
|
'key_suffix': value['keySuffix'],
|
|
116
124
|
'created_at': value['createdAt'].toISOString(),
|
|
125
|
+
'expires_at': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
|
|
117
126
|
};
|
|
118
127
|
}
|
|
119
128
|
|
|
@@ -59,6 +59,12 @@ export interface CreateWorkflowDefinitionRequest {
|
|
|
59
59
|
* @memberof CreateWorkflowDefinitionRequest
|
|
60
60
|
*/
|
|
61
61
|
approvalRequired: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Create a non-runnable template. Templates are excluded from the default list and cannot have runs; users instantiate them into their own runnable workflow. Immutable after creation.
|
|
64
|
+
* @type {boolean}
|
|
65
|
+
* @memberof CreateWorkflowDefinitionRequest
|
|
66
|
+
*/
|
|
67
|
+
isTemplate?: boolean;
|
|
62
68
|
}
|
|
63
69
|
export const CreateWorkflowDefinitionRequestPropertyValidationAttributesMap: {
|
|
64
70
|
[property: string]: {
|
|
@@ -113,6 +119,7 @@ export function CreateWorkflowDefinitionRequestFromJSONTyped(json: any, ignoreDi
|
|
|
113
119
|
'parentPathPartId': json['parent_path_part_id'],
|
|
114
120
|
'instructionPathPartId': json['instruction_path_part_id'] == null ? undefined : json['instruction_path_part_id'],
|
|
115
121
|
'approvalRequired': json['approval_required'],
|
|
122
|
+
'isTemplate': json['is_template'] == null ? undefined : json['is_template'],
|
|
116
123
|
};
|
|
117
124
|
}
|
|
118
125
|
|
|
@@ -133,6 +140,7 @@ export function CreateWorkflowDefinitionRequestToJSONTyped(value?: CreateWorkflo
|
|
|
133
140
|
'parent_path_part_id': value['parentPathPartId'],
|
|
134
141
|
'instruction_path_part_id': value['instructionPathPartId'],
|
|
135
142
|
'approval_required': value['approvalRequired'],
|
|
143
|
+
'is_template': value['isTemplate'],
|
|
136
144
|
};
|
|
137
145
|
}
|
|
138
146
|
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
* Read-only query result. ``generated_sql`` echoes the executed SQL.
|
|
18
|
+
*
|
|
19
|
+
* ``sql_validation_warnings`` lists non-blocking semantic-lint findings (e.g.
|
|
20
|
+
* aggregate without a filter, fan-out join); empty when the SQL is clean. The
|
|
21
|
+
* query still runs and returns rows regardless of warnings.
|
|
18
22
|
* @export
|
|
19
23
|
* @interface DataSourceQueryResponse
|
|
20
24
|
*/
|
|
@@ -49,6 +53,12 @@ export interface DataSourceQueryResponse {
|
|
|
49
53
|
* @memberof DataSourceQueryResponse
|
|
50
54
|
*/
|
|
51
55
|
generatedSql: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<string>}
|
|
59
|
+
* @memberof DataSourceQueryResponse
|
|
60
|
+
*/
|
|
61
|
+
sqlValidationWarnings?: Array<string>;
|
|
52
62
|
}
|
|
53
63
|
export const DataSourceQueryResponsePropertyValidationAttributesMap: {
|
|
54
64
|
[property: string]: {
|
|
@@ -95,6 +105,7 @@ export function DataSourceQueryResponseFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
95
105
|
'rowCount': json['row_count'],
|
|
96
106
|
'truncated': json['truncated'],
|
|
97
107
|
'generatedSql': json['generated_sql'],
|
|
108
|
+
'sqlValidationWarnings': json['sql_validation_warnings'] == null ? undefined : json['sql_validation_warnings'],
|
|
98
109
|
};
|
|
99
110
|
}
|
|
100
111
|
|
|
@@ -114,6 +125,7 @@ export function DataSourceQueryResponseToJSONTyped(value?: DataSourceQueryRespon
|
|
|
114
125
|
'row_count': value['rowCount'],
|
|
115
126
|
'truncated': value['truncated'],
|
|
116
127
|
'generated_sql': value['generatedSql'],
|
|
128
|
+
'sql_validation_warnings': value['sqlValidationWarnings'],
|
|
117
129
|
};
|
|
118
130
|
}
|
|
119
131
|
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
PathPartApprovalStateToJSON,
|
|
21
21
|
PathPartApprovalStateToJSONTyped,
|
|
22
22
|
} from './PathPartApprovalState';
|
|
23
|
+
import type { UserInfo } from './UserInfo';
|
|
24
|
+
import {
|
|
25
|
+
UserInfoFromJSON,
|
|
26
|
+
UserInfoFromJSONTyped,
|
|
27
|
+
UserInfoToJSON,
|
|
28
|
+
UserInfoToJSONTyped,
|
|
29
|
+
} from './UserInfo';
|
|
23
30
|
import type { DataSourceEngine } from './DataSourceEngine';
|
|
24
31
|
import {
|
|
25
32
|
DataSourceEngineFromJSON,
|
|
@@ -91,6 +98,12 @@ export interface DataSourceResponse {
|
|
|
91
98
|
* @memberof DataSourceResponse
|
|
92
99
|
*/
|
|
93
100
|
approvalState: PathPartApprovalState;
|
|
101
|
+
/**
|
|
102
|
+
* Current owner (creator) of the connector, or null if unowned.
|
|
103
|
+
* @type {UserInfo}
|
|
104
|
+
* @memberof DataSourceResponse
|
|
105
|
+
*/
|
|
106
|
+
owner?: UserInfo | null;
|
|
94
107
|
/**
|
|
95
108
|
*
|
|
96
109
|
* @type {Date}
|
|
@@ -168,6 +181,7 @@ export function DataSourceResponseFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
168
181
|
'name': json['name'],
|
|
169
182
|
'engine': DataSourceEngineFromJSON(json['engine']),
|
|
170
183
|
'approvalState': PathPartApprovalStateFromJSON(json['approval_state']),
|
|
184
|
+
'owner': json['owner'] == null ? undefined : UserInfoFromJSON(json['owner']),
|
|
171
185
|
'createdAt': (new Date(json['created_at'])),
|
|
172
186
|
'updatedAt': (new Date(json['updated_at'])),
|
|
173
187
|
};
|
|
@@ -193,6 +207,7 @@ export function DataSourceResponseToJSONTyped(value?: DataSourceResponse | null,
|
|
|
193
207
|
'name': value['name'],
|
|
194
208
|
'engine': DataSourceEngineToJSON(value['engine']),
|
|
195
209
|
'approval_state': PathPartApprovalStateToJSON(value['approvalState']),
|
|
210
|
+
'owner': UserInfoToJSON(value['owner']),
|
|
196
211
|
'created_at': value['createdAt'].toISOString(),
|
|
197
212
|
'updated_at': value['updatedAt'].toISOString(),
|
|
198
213
|
};
|
|
@@ -161,11 +161,11 @@ export interface DocumentResponse {
|
|
|
161
161
|
*/
|
|
162
162
|
tenantId: string;
|
|
163
163
|
/**
|
|
164
|
-
*
|
|
164
|
+
* Current owner (creator) of the document, or null if unowned. Transferable via PATCH by the current owner or an ADMIN/OWNER.
|
|
165
165
|
* @type {UserInfo}
|
|
166
166
|
* @memberof DocumentResponse
|
|
167
167
|
*/
|
|
168
|
-
owner
|
|
168
|
+
owner?: UserInfo | null;
|
|
169
169
|
/**
|
|
170
170
|
* Creation timestamp
|
|
171
171
|
* @type {Date}
|
|
@@ -243,7 +243,6 @@ export function instanceOfDocumentResponse(value: object): value is DocumentResp
|
|
|
243
243
|
if (!('approvalState' in value) || value['approvalState'] === undefined) return false;
|
|
244
244
|
if (!('excludeFromQdrant' in value) || value['excludeFromQdrant'] === undefined) return false;
|
|
245
245
|
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
246
|
-
if (!('owner' in value) || value['owner'] === undefined) return false;
|
|
247
246
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
248
247
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
249
248
|
return true;
|
|
@@ -273,7 +272,7 @@ export function DocumentResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
273
272
|
'approvalState': PathPartApprovalStateFromJSON(json['approval_state']),
|
|
274
273
|
'excludeFromQdrant': json['exclude_from_qdrant'],
|
|
275
274
|
'tenantId': json['tenant_id'],
|
|
276
|
-
'owner': UserInfoFromJSON(json['owner']),
|
|
275
|
+
'owner': json['owner'] == null ? undefined : UserInfoFromJSON(json['owner']),
|
|
277
276
|
'createdAt': (new Date(json['created_at'])),
|
|
278
277
|
'updatedAt': (new Date(json['updated_at'])),
|
|
279
278
|
'tags': json['tags'] == null ? undefined : ((json['tags'] as Array<any>).map(TagResponseFromJSON)),
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* Sortable fields for document version listings.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const DocumentVersionOrder = {
|
|
21
|
+
Version: 'VERSION',
|
|
22
|
+
CreatedAt: 'CREATED_AT'
|
|
23
|
+
} as const;
|
|
24
|
+
export type DocumentVersionOrder = typeof DocumentVersionOrder[keyof typeof DocumentVersionOrder];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfDocumentVersionOrder(value: any): boolean {
|
|
28
|
+
for (const key in DocumentVersionOrder) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(DocumentVersionOrder, key)) {
|
|
30
|
+
if (DocumentVersionOrder[key as keyof typeof DocumentVersionOrder] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function DocumentVersionOrderFromJSON(json: any): DocumentVersionOrder {
|
|
39
|
+
return DocumentVersionOrderFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function DocumentVersionOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentVersionOrder {
|
|
43
|
+
return json as DocumentVersionOrder;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function DocumentVersionOrderToJSON(value?: DocumentVersionOrder | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function DocumentVersionOrderToJSONTyped(value: any, ignoreDiscriminator: boolean): DocumentVersionOrder {
|
|
51
|
+
return value as DocumentVersionOrder;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Standard error body returned for every non-2xx response.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ErrorResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface ErrorResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Human-readable explanation of the error.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ErrorResponse
|
|
26
|
+
*/
|
|
27
|
+
detail: string;
|
|
28
|
+
/**
|
|
29
|
+
* Stable, machine-readable error code (e.g. 'not_found').
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ErrorResponse
|
|
32
|
+
*/
|
|
33
|
+
code: string;
|
|
34
|
+
/**
|
|
35
|
+
* Correlates to the x-request-id response header; quote it to support.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ErrorResponse
|
|
38
|
+
*/
|
|
39
|
+
requestId?: string;
|
|
40
|
+
}
|
|
41
|
+
export const ErrorResponsePropertyValidationAttributesMap: {
|
|
42
|
+
[property: string]: {
|
|
43
|
+
maxLength?: number,
|
|
44
|
+
minLength?: number,
|
|
45
|
+
pattern?: string,
|
|
46
|
+
maximum?: number,
|
|
47
|
+
exclusiveMaximum?: boolean,
|
|
48
|
+
minimum?: number,
|
|
49
|
+
exclusiveMinimum?: boolean,
|
|
50
|
+
multipleOf?: number,
|
|
51
|
+
maxItems?: number,
|
|
52
|
+
minItems?: number,
|
|
53
|
+
uniqueItems?: boolean
|
|
54
|
+
}
|
|
55
|
+
} = {
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the ErrorResponse interface.
|
|
61
|
+
*/
|
|
62
|
+
export function instanceOfErrorResponse(value: object): value is ErrorResponse {
|
|
63
|
+
if (!('detail' in value) || value['detail'] === undefined) return false;
|
|
64
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function ErrorResponseFromJSON(json: any): ErrorResponse {
|
|
69
|
+
return ErrorResponseFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse {
|
|
73
|
+
if (json == null) {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'detail': json['detail'],
|
|
79
|
+
'code': json['code'],
|
|
80
|
+
'requestId': json['request_id'] == null ? undefined : json['request_id'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function ErrorResponseToJSON(json: any): ErrorResponse {
|
|
85
|
+
return ErrorResponseToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function ErrorResponseToJSONTyped(value?: ErrorResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'detail': value['detail'],
|
|
96
|
+
'code': value['code'],
|
|
97
|
+
'request_id': value['requestId'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
/**
|
|
17
|
+
* Sortable fields for feedback listings.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const FeedbackOrder = {
|
|
21
|
+
CreatedAt: 'CREATED_AT'
|
|
22
|
+
} as const;
|
|
23
|
+
export type FeedbackOrder = typeof FeedbackOrder[keyof typeof FeedbackOrder];
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export function instanceOfFeedbackOrder(value: any): boolean {
|
|
27
|
+
for (const key in FeedbackOrder) {
|
|
28
|
+
if (Object.prototype.hasOwnProperty.call(FeedbackOrder, key)) {
|
|
29
|
+
if (FeedbackOrder[key as keyof typeof FeedbackOrder] === value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function FeedbackOrderFromJSON(json: any): FeedbackOrder {
|
|
38
|
+
return FeedbackOrderFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function FeedbackOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeedbackOrder {
|
|
42
|
+
return json as FeedbackOrder;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function FeedbackOrderToJSON(value?: FeedbackOrder | null): any {
|
|
46
|
+
return value as any;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function FeedbackOrderToJSONTyped(value: any, ignoreDiscriminator: boolean): FeedbackOrder {
|
|
50
|
+
return value as FeedbackOrder;
|
|
51
|
+
}
|
|
52
|
+
|
|
@@ -34,6 +34,13 @@ import {
|
|
|
34
34
|
PathPartApprovalStateToJSON,
|
|
35
35
|
PathPartApprovalStateToJSONTyped,
|
|
36
36
|
} from './PathPartApprovalState';
|
|
37
|
+
import type { UserInfo } from './UserInfo';
|
|
38
|
+
import {
|
|
39
|
+
UserInfoFromJSON,
|
|
40
|
+
UserInfoFromJSONTyped,
|
|
41
|
+
UserInfoToJSON,
|
|
42
|
+
UserInfoToJSONTyped,
|
|
43
|
+
} from './UserInfo';
|
|
37
44
|
|
|
38
45
|
/**
|
|
39
46
|
* Folder response model.
|
|
@@ -101,6 +108,12 @@ export interface FolderResponse {
|
|
|
101
108
|
* @memberof FolderResponse
|
|
102
109
|
*/
|
|
103
110
|
tenantId: string;
|
|
111
|
+
/**
|
|
112
|
+
* Current owner (creator) of the folder, or null if unowned.
|
|
113
|
+
* @type {UserInfo}
|
|
114
|
+
* @memberof FolderResponse
|
|
115
|
+
*/
|
|
116
|
+
owner?: UserInfo | null;
|
|
104
117
|
/**
|
|
105
118
|
* Creation timestamp
|
|
106
119
|
* @type {Date}
|
|
@@ -193,6 +206,7 @@ export function FolderResponseFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
193
206
|
'approvalState': PathPartApprovalStateFromJSON(json['approval_state']),
|
|
194
207
|
'excludeFromQdrant': json['exclude_from_qdrant'],
|
|
195
208
|
'tenantId': json['tenant_id'],
|
|
209
|
+
'owner': json['owner'] == null ? undefined : UserInfoFromJSON(json['owner']),
|
|
196
210
|
'createdAt': (new Date(json['created_at'])),
|
|
197
211
|
'updatedAt': (new Date(json['updated_at'])),
|
|
198
212
|
'tags': json['tags'] == null ? undefined : ((json['tags'] as Array<any>).map(TagResponseFromJSON)),
|
|
@@ -221,6 +235,7 @@ export function FolderResponseToJSONTyped(value?: FolderResponse | null, ignoreD
|
|
|
221
235
|
'approval_state': PathPartApprovalStateToJSON(value['approvalState']),
|
|
222
236
|
'exclude_from_qdrant': value['excludeFromQdrant'],
|
|
223
237
|
'tenant_id': value['tenantId'],
|
|
238
|
+
'owner': UserInfoToJSON(value['owner']),
|
|
224
239
|
'created_at': value['createdAt'].toISOString(),
|
|
225
240
|
'updated_at': value['updatedAt'].toISOString(),
|
|
226
241
|
'tags': value['tags'] == null ? undefined : ((value['tags'] as Array<any>).map(TagResponseToJSON)),
|