@knowledge-stack/ksapi 1.95.4 → 1.97.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/dist/apis/AgentApi.d.ts
CHANGED
|
@@ -13,13 +13,9 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import type { AskRequest, AskResponse, ExtractRequest, ExtractResponse } from '../models/index';
|
|
14
14
|
export interface AgentAskRequest {
|
|
15
15
|
askRequest: AskRequest;
|
|
16
|
-
authorization?: string | null;
|
|
17
|
-
ksUat?: string | null;
|
|
18
16
|
}
|
|
19
17
|
export interface AgentExtractRequest {
|
|
20
18
|
extractRequest: ExtractRequest;
|
|
21
|
-
authorization?: string | null;
|
|
22
|
-
ksUat?: string | null;
|
|
23
19
|
}
|
|
24
20
|
/**
|
|
25
21
|
* AgentApi - interface
|
|
@@ -31,8 +27,6 @@ export interface AgentApiInterface {
|
|
|
31
27
|
/**
|
|
32
28
|
* Creates request options for agentAsk without sending the request
|
|
33
29
|
* @param {AskRequest} askRequest
|
|
34
|
-
* @param {string} [authorization]
|
|
35
|
-
* @param {string} [ksUat]
|
|
36
30
|
* @throws {RequiredError}
|
|
37
31
|
* @memberof AgentApiInterface
|
|
38
32
|
*/
|
|
@@ -41,8 +35,6 @@ export interface AgentApiInterface {
|
|
|
41
35
|
* 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.
|
|
42
36
|
* @summary Agent Ask Handler
|
|
43
37
|
* @param {AskRequest} askRequest
|
|
44
|
-
* @param {string} [authorization]
|
|
45
|
-
* @param {string} [ksUat]
|
|
46
38
|
* @param {*} [options] Override http request option.
|
|
47
39
|
* @throws {RequiredError}
|
|
48
40
|
* @memberof AgentApiInterface
|
|
@@ -56,8 +48,6 @@ export interface AgentApiInterface {
|
|
|
56
48
|
/**
|
|
57
49
|
* Creates request options for agentExtract without sending the request
|
|
58
50
|
* @param {ExtractRequest} extractRequest
|
|
59
|
-
* @param {string} [authorization]
|
|
60
|
-
* @param {string} [ksUat]
|
|
61
51
|
* @throws {RequiredError}
|
|
62
52
|
* @memberof AgentApiInterface
|
|
63
53
|
*/
|
|
@@ -66,8 +56,6 @@ export interface AgentApiInterface {
|
|
|
66
56
|
* Run a one-shot structured extraction request and return the payload. Validates the schema input on the route side (DOCUMENT → active version → valid JSON object) BEFORE consuming quota or starting the workflow. Bad schema → 400 with no quota debit. The workflow activity trusts the input and does not re-validate. Quota: consumes one MESSAGE before ``start_workflow``. Refunds on any failure between consume and ``handle.result()`` returning — pre-enqueue ``start_workflow`` raises and post-enqueue workflow failures both refund.
|
|
67
57
|
* @summary Agent Extract Handler
|
|
68
58
|
* @param {ExtractRequest} extractRequest
|
|
69
|
-
* @param {string} [authorization]
|
|
70
|
-
* @param {string} [ksUat]
|
|
71
59
|
* @param {*} [options] Override http request option.
|
|
72
60
|
* @throws {RequiredError}
|
|
73
61
|
* @memberof AgentApiInterface
|
package/dist/apis/AgentApi.js
CHANGED
|
@@ -73,8 +73,12 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
73
73
|
const queryParameters = {};
|
|
74
74
|
const headerParameters = {};
|
|
75
75
|
headerParameters['Content-Type'] = 'application/json';
|
|
76
|
-
if (
|
|
77
|
-
|
|
76
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
77
|
+
const token = this.configuration.accessToken;
|
|
78
|
+
const tokenString = yield token("bearerAuth", []);
|
|
79
|
+
if (tokenString) {
|
|
80
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
81
|
+
}
|
|
78
82
|
}
|
|
79
83
|
let urlPath = `/v1/agent/ask`;
|
|
80
84
|
return {
|
|
@@ -118,8 +122,12 @@ class AgentApi extends runtime.BaseAPI {
|
|
|
118
122
|
const queryParameters = {};
|
|
119
123
|
const headerParameters = {};
|
|
120
124
|
headerParameters['Content-Type'] = 'application/json';
|
|
121
|
-
if (
|
|
122
|
-
|
|
125
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
126
|
+
const token = this.configuration.accessToken;
|
|
127
|
+
const tokenString = yield token("bearerAuth", []);
|
|
128
|
+
if (tokenString) {
|
|
129
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
130
|
+
}
|
|
123
131
|
}
|
|
124
132
|
let urlPath = `/v1/agent/extract`;
|
|
125
133
|
return {
|
|
@@ -13,18 +13,12 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import type { ApiKeyResponse, CreateApiKeyRequest, CreateApiKeyResponse } from '../models/index';
|
|
14
14
|
export interface CreateApiKeyOperationRequest {
|
|
15
15
|
createApiKeyRequest: CreateApiKeyRequest;
|
|
16
|
-
ksUat?: string | null;
|
|
17
16
|
}
|
|
18
17
|
export interface DeleteApiKeyRequest {
|
|
19
18
|
apiKeyId: string;
|
|
20
|
-
ksUat?: string | null;
|
|
21
19
|
}
|
|
22
20
|
export interface GetApiKeyRequest {
|
|
23
21
|
apiKeyId: string;
|
|
24
|
-
ksUat?: string | null;
|
|
25
|
-
}
|
|
26
|
-
export interface ListApiKeysRequest {
|
|
27
|
-
ksUat?: string | null;
|
|
28
22
|
}
|
|
29
23
|
/**
|
|
30
24
|
* ApiKeysApi - interface
|
|
@@ -36,7 +30,6 @@ export interface ApiKeysApiInterface {
|
|
|
36
30
|
/**
|
|
37
31
|
* Creates request options for createApiKey without sending the request
|
|
38
32
|
* @param {CreateApiKeyRequest} createApiKeyRequest
|
|
39
|
-
* @param {string} [ksUat]
|
|
40
33
|
* @throws {RequiredError}
|
|
41
34
|
* @memberof ApiKeysApiInterface
|
|
42
35
|
*/
|
|
@@ -45,7 +38,6 @@ export interface ApiKeysApiInterface {
|
|
|
45
38
|
* Create a new API key. The full key is returned only once.
|
|
46
39
|
* @summary Create Api Key Handler
|
|
47
40
|
* @param {CreateApiKeyRequest} createApiKeyRequest
|
|
48
|
-
* @param {string} [ksUat]
|
|
49
41
|
* @param {*} [options] Override http request option.
|
|
50
42
|
* @throws {RequiredError}
|
|
51
43
|
* @memberof ApiKeysApiInterface
|
|
@@ -59,7 +51,6 @@ export interface ApiKeysApiInterface {
|
|
|
59
51
|
/**
|
|
60
52
|
* Creates request options for deleteApiKey without sending the request
|
|
61
53
|
* @param {string} apiKeyId
|
|
62
|
-
* @param {string} [ksUat]
|
|
63
54
|
* @throws {RequiredError}
|
|
64
55
|
* @memberof ApiKeysApiInterface
|
|
65
56
|
*/
|
|
@@ -68,7 +59,6 @@ export interface ApiKeysApiInterface {
|
|
|
68
59
|
* Delete an API key.
|
|
69
60
|
* @summary Delete Api Key Handler
|
|
70
61
|
* @param {string} apiKeyId
|
|
71
|
-
* @param {string} [ksUat]
|
|
72
62
|
* @param {*} [options] Override http request option.
|
|
73
63
|
* @throws {RequiredError}
|
|
74
64
|
* @memberof ApiKeysApiInterface
|
|
@@ -82,7 +72,6 @@ export interface ApiKeysApiInterface {
|
|
|
82
72
|
/**
|
|
83
73
|
* Creates request options for getApiKey without sending the request
|
|
84
74
|
* @param {string} apiKeyId
|
|
85
|
-
* @param {string} [ksUat]
|
|
86
75
|
* @throws {RequiredError}
|
|
87
76
|
* @memberof ApiKeysApiInterface
|
|
88
77
|
*/
|
|
@@ -91,7 +80,6 @@ export interface ApiKeysApiInterface {
|
|
|
91
80
|
* Get a single API key by ID.
|
|
92
81
|
* @summary Get Api Key Handler
|
|
93
82
|
* @param {string} apiKeyId
|
|
94
|
-
* @param {string} [ksUat]
|
|
95
83
|
* @param {*} [options] Override http request option.
|
|
96
84
|
* @throws {RequiredError}
|
|
97
85
|
* @memberof ApiKeysApiInterface
|
|
@@ -104,25 +92,23 @@ export interface ApiKeysApiInterface {
|
|
|
104
92
|
getApiKey(requestParameters: GetApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiKeyResponse>;
|
|
105
93
|
/**
|
|
106
94
|
* Creates request options for listApiKeys without sending the request
|
|
107
|
-
* @param {string} [ksUat]
|
|
108
95
|
* @throws {RequiredError}
|
|
109
96
|
* @memberof ApiKeysApiInterface
|
|
110
97
|
*/
|
|
111
|
-
listApiKeysRequestOpts(
|
|
98
|
+
listApiKeysRequestOpts(): Promise<runtime.RequestOpts>;
|
|
112
99
|
/**
|
|
113
100
|
* List all API keys for the current user.
|
|
114
101
|
* @summary List Api Keys Handler
|
|
115
|
-
* @param {string} [ksUat]
|
|
116
102
|
* @param {*} [options] Override http request option.
|
|
117
103
|
* @throws {RequiredError}
|
|
118
104
|
* @memberof ApiKeysApiInterface
|
|
119
105
|
*/
|
|
120
|
-
listApiKeysRaw(
|
|
106
|
+
listApiKeysRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiKeyResponse>>>;
|
|
121
107
|
/**
|
|
122
108
|
* List all API keys for the current user.
|
|
123
109
|
* List Api Keys Handler
|
|
124
110
|
*/
|
|
125
|
-
listApiKeys(
|
|
111
|
+
listApiKeys(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiKeyResponse>>;
|
|
126
112
|
}
|
|
127
113
|
/**
|
|
128
114
|
*
|
|
@@ -173,15 +159,15 @@ export declare class ApiKeysApi extends runtime.BaseAPI implements ApiKeysApiInt
|
|
|
173
159
|
/**
|
|
174
160
|
* Creates request options for listApiKeys without sending the request
|
|
175
161
|
*/
|
|
176
|
-
listApiKeysRequestOpts(
|
|
162
|
+
listApiKeysRequestOpts(): Promise<runtime.RequestOpts>;
|
|
177
163
|
/**
|
|
178
164
|
* List all API keys for the current user.
|
|
179
165
|
* List Api Keys Handler
|
|
180
166
|
*/
|
|
181
|
-
listApiKeysRaw(
|
|
167
|
+
listApiKeysRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ApiKeyResponse>>>;
|
|
182
168
|
/**
|
|
183
169
|
* List all API keys for the current user.
|
|
184
170
|
* List Api Keys Handler
|
|
185
171
|
*/
|
|
186
|
-
listApiKeys(
|
|
172
|
+
listApiKeys(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ApiKeyResponse>>;
|
|
187
173
|
}
|
package/dist/apis/ApiKeysApi.js
CHANGED
|
@@ -188,7 +188,7 @@ class ApiKeysApi extends runtime.BaseAPI {
|
|
|
188
188
|
/**
|
|
189
189
|
* Creates request options for listApiKeys without sending the request
|
|
190
190
|
*/
|
|
191
|
-
listApiKeysRequestOpts(
|
|
191
|
+
listApiKeysRequestOpts() {
|
|
192
192
|
return __awaiter(this, void 0, void 0, function* () {
|
|
193
193
|
const queryParameters = {};
|
|
194
194
|
const headerParameters = {};
|
|
@@ -205,9 +205,9 @@ class ApiKeysApi extends runtime.BaseAPI {
|
|
|
205
205
|
* List all API keys for the current user.
|
|
206
206
|
* List Api Keys Handler
|
|
207
207
|
*/
|
|
208
|
-
listApiKeysRaw(
|
|
208
|
+
listApiKeysRaw(initOverrides) {
|
|
209
209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
210
|
-
const requestOptions = yield this.listApiKeysRequestOpts(
|
|
210
|
+
const requestOptions = yield this.listApiKeysRequestOpts();
|
|
211
211
|
const response = yield this.request(requestOptions, initOverrides);
|
|
212
212
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ApiKeyResponseFromJSON));
|
|
213
213
|
});
|
|
@@ -216,9 +216,9 @@ class ApiKeysApi extends runtime.BaseAPI {
|
|
|
216
216
|
* List all API keys for the current user.
|
|
217
217
|
* List Api Keys Handler
|
|
218
218
|
*/
|
|
219
|
-
listApiKeys() {
|
|
220
|
-
return __awaiter(this,
|
|
221
|
-
const response = yield this.listApiKeysRaw(
|
|
219
|
+
listApiKeys(initOverrides) {
|
|
220
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
+
const response = yield this.listApiKeysRaw(initOverrides);
|
|
222
222
|
return yield response.value();
|
|
223
223
|
});
|
|
224
224
|
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { PaginatedResponseEventResponse } from '../models/index';
|
|
14
|
+
export interface ListAuditEventsRequest {
|
|
15
|
+
actorUserId?: string | null;
|
|
16
|
+
kind?: string | null;
|
|
17
|
+
since?: Date | null;
|
|
18
|
+
until?: Date | null;
|
|
19
|
+
subjectPathPartId?: string | null;
|
|
20
|
+
recursive?: boolean;
|
|
21
|
+
limit?: number;
|
|
22
|
+
offset?: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* AuditEventsApi - interface
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface AuditEventsApiInterface
|
|
29
|
+
*/
|
|
30
|
+
export interface AuditEventsApiInterface {
|
|
31
|
+
/**
|
|
32
|
+
* Creates request options for listAuditEvents without sending the request
|
|
33
|
+
* @param {string} [actorUserId] Filter to one actor
|
|
34
|
+
* @param {string} [kind] Filter to one event kind
|
|
35
|
+
* @param {Date} [since] Only events at or after this timestamp
|
|
36
|
+
* @param {Date} [until] Only events strictly before this timestamp
|
|
37
|
+
* @param {string} [subjectPathPartId] Scope to one document/folder/run subject
|
|
38
|
+
* @param {boolean} [recursive] Include the subject\'s descendants (needs subject)
|
|
39
|
+
* @param {number} [limit] Number of items per page
|
|
40
|
+
* @param {number} [offset] Number of items to skip
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
* @memberof AuditEventsApiInterface
|
|
43
|
+
*/
|
|
44
|
+
listAuditEventsRequestOpts(requestParameters: ListAuditEventsRequest): Promise<runtime.RequestOpts>;
|
|
45
|
+
/**
|
|
46
|
+
* 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.
|
|
47
|
+
* @summary List Audit Events Handler
|
|
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
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
* @memberof AuditEventsApiInterface
|
|
59
|
+
*/
|
|
60
|
+
listAuditEventsRaw(requestParameters: ListAuditEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseEventResponse>>;
|
|
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
|
+
* List Audit Events Handler
|
|
64
|
+
*/
|
|
65
|
+
listAuditEvents(requestParameters: ListAuditEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseEventResponse>;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
export declare class AuditEventsApi extends runtime.BaseAPI implements AuditEventsApiInterface {
|
|
71
|
+
/**
|
|
72
|
+
* Creates request options for listAuditEvents without sending the request
|
|
73
|
+
*/
|
|
74
|
+
listAuditEventsRequestOpts(requestParameters: ListAuditEventsRequest): Promise<runtime.RequestOpts>;
|
|
75
|
+
/**
|
|
76
|
+
* 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.
|
|
77
|
+
* List Audit Events Handler
|
|
78
|
+
*/
|
|
79
|
+
listAuditEventsRaw(requestParameters: ListAuditEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseEventResponse>>;
|
|
80
|
+
/**
|
|
81
|
+
* 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.
|
|
82
|
+
* List Audit Events Handler
|
|
83
|
+
*/
|
|
84
|
+
listAuditEvents(requestParameters?: ListAuditEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseEventResponse>;
|
|
85
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
49
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
50
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
51
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
52
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
53
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
54
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
|
+
exports.AuditEventsApi = void 0;
|
|
59
|
+
const runtime = __importStar(require("../runtime"));
|
|
60
|
+
const index_1 = require("../models/index");
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
class AuditEventsApi extends runtime.BaseAPI {
|
|
65
|
+
/**
|
|
66
|
+
* Creates request options for listAuditEvents without sending the request
|
|
67
|
+
*/
|
|
68
|
+
listAuditEventsRequestOpts(requestParameters) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
const queryParameters = {};
|
|
71
|
+
if (requestParameters['actorUserId'] != null) {
|
|
72
|
+
queryParameters['actor_user_id'] = requestParameters['actorUserId'];
|
|
73
|
+
}
|
|
74
|
+
if (requestParameters['kind'] != null) {
|
|
75
|
+
queryParameters['kind'] = requestParameters['kind'];
|
|
76
|
+
}
|
|
77
|
+
if (requestParameters['since'] != null) {
|
|
78
|
+
queryParameters['since'] = requestParameters['since'].toISOString();
|
|
79
|
+
}
|
|
80
|
+
if (requestParameters['until'] != null) {
|
|
81
|
+
queryParameters['until'] = requestParameters['until'].toISOString();
|
|
82
|
+
}
|
|
83
|
+
if (requestParameters['subjectPathPartId'] != null) {
|
|
84
|
+
queryParameters['subject_path_part_id'] = requestParameters['subjectPathPartId'];
|
|
85
|
+
}
|
|
86
|
+
if (requestParameters['recursive'] != null) {
|
|
87
|
+
queryParameters['recursive'] = requestParameters['recursive'];
|
|
88
|
+
}
|
|
89
|
+
if (requestParameters['limit'] != null) {
|
|
90
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
91
|
+
}
|
|
92
|
+
if (requestParameters['offset'] != null) {
|
|
93
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
94
|
+
}
|
|
95
|
+
const headerParameters = {};
|
|
96
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
97
|
+
const token = this.configuration.accessToken;
|
|
98
|
+
const tokenString = yield token("bearerAuth", []);
|
|
99
|
+
if (tokenString) {
|
|
100
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
let urlPath = `/v1/audit-events`;
|
|
104
|
+
return {
|
|
105
|
+
path: urlPath,
|
|
106
|
+
method: 'GET',
|
|
107
|
+
headers: headerParameters,
|
|
108
|
+
query: queryParameters,
|
|
109
|
+
};
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* 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.
|
|
114
|
+
* List Audit Events Handler
|
|
115
|
+
*/
|
|
116
|
+
listAuditEventsRaw(requestParameters, initOverrides) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
const requestOptions = yield this.listAuditEventsRequestOpts(requestParameters);
|
|
119
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
120
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedResponseEventResponseFromJSON)(jsonValue));
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* 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.
|
|
125
|
+
* List Audit Events Handler
|
|
126
|
+
*/
|
|
127
|
+
listAuditEvents() {
|
|
128
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
129
|
+
const response = yield this.listAuditEventsRaw(requestParameters, initOverrides);
|
|
130
|
+
return yield response.value();
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.AuditEventsApi = AuditEventsApi;
|
package/dist/apis/AuthApi.d.ts
CHANGED
|
@@ -13,8 +13,6 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
import type { ChangePhoneNumberRequest, CreatePasswordUserRequest, CreatePhonePasswordUserRequest, DirectorySyncResponse, EmailSentResponse, EmailVerificationRequest, IdpType, PasswordResetRequest, PasswordResetTokenResponse, PasswordResetWithTokenRequest, PhoneValidationResponse, PhoneVerificationRequest, RequestPhoneChangeRequest, ResponseSendPwResetEmail, SSOInitiateResponse, SendPasswordResetRequest, SignInRequest, UserResponse, ValidateResetCodeRequest } from '../models/index';
|
|
14
14
|
export interface ChangePhoneNumberOperationRequest {
|
|
15
15
|
changePhoneNumberRequest: ChangePhoneNumberRequest;
|
|
16
|
-
authorization?: string | null;
|
|
17
|
-
ksUat?: string | null;
|
|
18
16
|
}
|
|
19
17
|
export interface CreatePasswordUserOperationRequest {
|
|
20
18
|
createPasswordUserRequest: CreatePasswordUserRequest;
|
|
@@ -55,18 +53,12 @@ export interface PwSigninRequest {
|
|
|
55
53
|
}
|
|
56
54
|
export interface RefreshUatRequest {
|
|
57
55
|
tenantId?: string | null;
|
|
58
|
-
authorization?: string | null;
|
|
59
|
-
ksUat?: string | null;
|
|
60
56
|
}
|
|
61
57
|
export interface RequestPhoneChangeOperationRequest {
|
|
62
58
|
requestPhoneChangeRequest: RequestPhoneChangeRequest;
|
|
63
|
-
authorization?: string | null;
|
|
64
|
-
ksUat?: string | null;
|
|
65
59
|
}
|
|
66
60
|
export interface ResetPasswordRequest {
|
|
67
61
|
passwordResetRequest: PasswordResetRequest;
|
|
68
|
-
authorization?: string | null;
|
|
69
|
-
ksUat?: string | null;
|
|
70
62
|
}
|
|
71
63
|
export interface ResetPasswordWithTokenRequest {
|
|
72
64
|
passwordResetWithTokenRequest: PasswordResetWithTokenRequest;
|
|
@@ -91,8 +83,6 @@ export interface AuthApiInterface {
|
|
|
91
83
|
/**
|
|
92
84
|
* Creates request options for changePhoneNumber without sending the request
|
|
93
85
|
* @param {ChangePhoneNumberRequest} changePhoneNumberRequest
|
|
94
|
-
* @param {string} [authorization]
|
|
95
|
-
* @param {string} [ksUat]
|
|
96
86
|
* @throws {RequiredError}
|
|
97
87
|
* @memberof AuthApiInterface
|
|
98
88
|
*/
|
|
@@ -101,8 +91,6 @@ export interface AuthApiInterface {
|
|
|
101
91
|
* 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``.
|
|
102
92
|
* @summary Change Phone Number Handler
|
|
103
93
|
* @param {ChangePhoneNumberRequest} changePhoneNumberRequest
|
|
104
|
-
* @param {string} [authorization]
|
|
105
|
-
* @param {string} [ksUat]
|
|
106
94
|
* @param {*} [options] Override http request option.
|
|
107
95
|
* @throws {RequiredError}
|
|
108
96
|
* @memberof AuthApiInterface
|
|
@@ -324,8 +312,6 @@ export interface AuthApiInterface {
|
|
|
324
312
|
/**
|
|
325
313
|
* Creates request options for refreshUat without sending the request
|
|
326
314
|
* @param {string} [tenantId] Target tenant ID to switch to. None=refresh current tenant
|
|
327
|
-
* @param {string} [authorization]
|
|
328
|
-
* @param {string} [ksUat]
|
|
329
315
|
* @throws {RequiredError}
|
|
330
316
|
* @memberof AuthApiInterface
|
|
331
317
|
*/
|
|
@@ -334,8 +320,6 @@ export interface AuthApiInterface {
|
|
|
334
320
|
* Refresh or switch the user\'s active tenant token.
|
|
335
321
|
* @summary Refresh Uat Handler
|
|
336
322
|
* @param {string} [tenantId] Target tenant ID to switch to. None=refresh current tenant
|
|
337
|
-
* @param {string} [authorization]
|
|
338
|
-
* @param {string} [ksUat]
|
|
339
323
|
* @param {*} [options] Override http request option.
|
|
340
324
|
* @throws {RequiredError}
|
|
341
325
|
* @memberof AuthApiInterface
|
|
@@ -349,8 +333,6 @@ export interface AuthApiInterface {
|
|
|
349
333
|
/**
|
|
350
334
|
* Creates request options for requestPhoneChange without sending the request
|
|
351
335
|
* @param {RequestPhoneChangeRequest} requestPhoneChangeRequest
|
|
352
|
-
* @param {string} [authorization]
|
|
353
|
-
* @param {string} [ksUat]
|
|
354
336
|
* @throws {RequiredError}
|
|
355
337
|
* @memberof AuthApiInterface
|
|
356
338
|
*/
|
|
@@ -359,8 +341,6 @@ export interface AuthApiInterface {
|
|
|
359
341
|
* 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.
|
|
360
342
|
* @summary Request Phone Change Handler
|
|
361
343
|
* @param {RequestPhoneChangeRequest} requestPhoneChangeRequest
|
|
362
|
-
* @param {string} [authorization]
|
|
363
|
-
* @param {string} [ksUat]
|
|
364
344
|
* @param {*} [options] Override http request option.
|
|
365
345
|
* @throws {RequiredError}
|
|
366
346
|
* @memberof AuthApiInterface
|
|
@@ -374,8 +354,6 @@ export interface AuthApiInterface {
|
|
|
374
354
|
/**
|
|
375
355
|
* Creates request options for resetPassword without sending the request
|
|
376
356
|
* @param {PasswordResetRequest} passwordResetRequest
|
|
377
|
-
* @param {string} [authorization]
|
|
378
|
-
* @param {string} [ksUat]
|
|
379
357
|
* @throws {RequiredError}
|
|
380
358
|
* @memberof AuthApiInterface
|
|
381
359
|
*/
|
|
@@ -384,8 +362,6 @@ export interface AuthApiInterface {
|
|
|
384
362
|
* Reset password for the authenticated user
|
|
385
363
|
* @summary Reset Password Handler
|
|
386
364
|
* @param {PasswordResetRequest} passwordResetRequest
|
|
387
|
-
* @param {string} [authorization]
|
|
388
|
-
* @param {string} [ksUat]
|
|
389
365
|
* @param {*} [options] Override http request option.
|
|
390
366
|
* @throws {RequiredError}
|
|
391
367
|
* @memberof AuthApiInterface
|
package/dist/apis/AuthApi.js
CHANGED
|
@@ -73,8 +73,12 @@ class AuthApi extends runtime.BaseAPI {
|
|
|
73
73
|
const queryParameters = {};
|
|
74
74
|
const headerParameters = {};
|
|
75
75
|
headerParameters['Content-Type'] = 'application/json';
|
|
76
|
-
if (
|
|
77
|
-
|
|
76
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
77
|
+
const token = this.configuration.accessToken;
|
|
78
|
+
const tokenString = yield token("bearerAuth", []);
|
|
79
|
+
if (tokenString) {
|
|
80
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
81
|
+
}
|
|
78
82
|
}
|
|
79
83
|
let urlPath = `/v1/auth/pw/me/phone_number`;
|
|
80
84
|
return {
|
|
@@ -517,8 +521,12 @@ class AuthApi extends runtime.BaseAPI {
|
|
|
517
521
|
queryParameters['tenant_id'] = requestParameters['tenantId'];
|
|
518
522
|
}
|
|
519
523
|
const headerParameters = {};
|
|
520
|
-
if (
|
|
521
|
-
|
|
524
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
525
|
+
const token = this.configuration.accessToken;
|
|
526
|
+
const tokenString = yield token("bearerAuth", []);
|
|
527
|
+
if (tokenString) {
|
|
528
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
529
|
+
}
|
|
522
530
|
}
|
|
523
531
|
let urlPath = `/v1/auth/uat`;
|
|
524
532
|
return {
|
|
@@ -561,8 +569,12 @@ class AuthApi extends runtime.BaseAPI {
|
|
|
561
569
|
const queryParameters = {};
|
|
562
570
|
const headerParameters = {};
|
|
563
571
|
headerParameters['Content-Type'] = 'application/json';
|
|
564
|
-
if (
|
|
565
|
-
|
|
572
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
573
|
+
const token = this.configuration.accessToken;
|
|
574
|
+
const tokenString = yield token("bearerAuth", []);
|
|
575
|
+
if (tokenString) {
|
|
576
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
577
|
+
}
|
|
566
578
|
}
|
|
567
579
|
let urlPath = `/v1/auth/pw/me/phone_number/verify`;
|
|
568
580
|
return {
|
|
@@ -606,8 +618,12 @@ class AuthApi extends runtime.BaseAPI {
|
|
|
606
618
|
const queryParameters = {};
|
|
607
619
|
const headerParameters = {};
|
|
608
620
|
headerParameters['Content-Type'] = 'application/json';
|
|
609
|
-
if (
|
|
610
|
-
|
|
621
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
622
|
+
const token = this.configuration.accessToken;
|
|
623
|
+
const tokenString = yield token("bearerAuth", []);
|
|
624
|
+
if (tokenString) {
|
|
625
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
626
|
+
}
|
|
611
627
|
}
|
|
612
628
|
let urlPath = `/v1/auth/pw/reset`;
|
|
613
629
|
return {
|