@vertesia/client 1.1.1-dev.20260505.163000Z → 1.3.0-dev.20260620.061059Z
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/README.md +29 -0
- package/lib/{types/AccountApi.d.ts → AccountApi.d.ts} +5 -10
- package/lib/AccountApi.d.ts.map +1 -0
- package/lib/{esm/AccountApi.js → AccountApi.js} +5 -13
- package/lib/AccountApi.js.map +1 -0
- package/lib/{types/AccountsApi.d.ts → AccountsApi.d.ts} +3 -2
- package/lib/AccountsApi.d.ts.map +1 -0
- package/lib/{esm/AccountsApi.js → AccountsApi.js} +2 -2
- package/lib/AccountsApi.js.map +1 -0
- package/lib/{types/AnalyticsApi.d.ts → AnalyticsApi.d.ts} +3 -2
- package/lib/AnalyticsApi.d.ts.map +1 -0
- package/lib/{esm/AnalyticsApi.js → AnalyticsApi.js} +5 -5
- package/lib/AnalyticsApi.js.map +1 -0
- package/lib/{types/ApiKeysApi.d.ts → ApiKeysApi.d.ts} +3 -2
- package/lib/ApiKeysApi.d.ts.map +1 -0
- package/lib/ApiKeysApi.js.map +1 -0
- package/lib/{types/AppsApi.d.ts → AppsApi.d.ts} +40 -2
- package/lib/AppsApi.d.ts.map +1 -0
- package/lib/{esm/AppsApi.js → AppsApi.js} +87 -14
- package/lib/AppsApi.js.map +1 -0
- package/lib/{types/AuditTrailApi.d.ts → AuditTrailApi.d.ts} +2 -1
- package/lib/AuditTrailApi.d.ts.map +1 -0
- package/lib/{esm/AuditTrailApi.js → AuditTrailApi.js} +1 -1
- package/lib/AuditTrailApi.js.map +1 -0
- package/lib/{types/CommandsApi.d.ts → CommandsApi.d.ts} +3 -2
- package/lib/CommandsApi.d.ts.map +1 -0
- package/lib/{esm/CommandsApi.js → CommandsApi.js} +3 -3
- package/lib/CommandsApi.js.map +1 -0
- package/lib/{types/EnvironmentsApi.d.ts → EnvironmentsApi.d.ts} +5 -4
- package/lib/EnvironmentsApi.d.ts.map +1 -0
- package/lib/{esm/EnvironmentsApi.js → EnvironmentsApi.js} +13 -13
- package/lib/EnvironmentsApi.js.map +1 -0
- package/lib/{types/GroupsApi.d.ts → GroupsApi.d.ts} +3 -2
- package/lib/GroupsApi.d.ts.map +1 -0
- package/lib/{esm/GroupsApi.js → GroupsApi.js} +8 -8
- package/lib/GroupsApi.js.map +1 -0
- package/lib/IamApi.d.ts +58 -0
- package/lib/IamApi.d.ts.map +1 -0
- package/lib/IamApi.js +76 -0
- package/lib/IamApi.js.map +1 -0
- package/lib/{types/InteractionBase.d.ts → InteractionBase.d.ts} +6 -5
- package/lib/InteractionBase.d.ts.map +1 -0
- package/lib/{esm/InteractionBase.js → InteractionBase.js} +4 -4
- package/lib/InteractionBase.js.map +1 -0
- package/lib/{types/InteractionCatalogApi.d.ts → InteractionCatalogApi.d.ts} +3 -2
- package/lib/InteractionCatalogApi.d.ts.map +1 -0
- package/lib/{esm/InteractionCatalogApi.js → InteractionCatalogApi.js} +12 -12
- package/lib/InteractionCatalogApi.js.map +1 -0
- package/lib/{types/InteractionOutput.d.ts → InteractionOutput.d.ts} +13 -12
- package/lib/InteractionOutput.d.ts.map +1 -0
- package/lib/{esm/InteractionOutput.js → InteractionOutput.js} +22 -25
- package/lib/InteractionOutput.js.map +1 -0
- package/lib/{types/InteractionResult.example.d.ts → InteractionResult.example.d.ts} +1 -0
- package/lib/InteractionResult.example.d.ts.map +1 -0
- package/lib/{esm/InteractionResult.example.js → InteractionResult.example.js} +4 -4
- package/lib/InteractionResult.example.js.map +1 -0
- package/lib/{types/InteractionsApi.d.ts → InteractionsApi.d.ts} +17 -6
- package/lib/InteractionsApi.d.ts.map +1 -0
- package/lib/{esm/InteractionsApi.js → InteractionsApi.js} +45 -28
- package/lib/InteractionsApi.js.map +1 -0
- package/lib/{types/OAuthClientsApi.d.ts → OAuthClientsApi.d.ts} +4 -2
- package/lib/OAuthClientsApi.d.ts.map +1 -0
- package/lib/{esm/OAuthClientsApi.js → OAuthClientsApi.js} +3 -0
- package/lib/OAuthClientsApi.js.map +1 -0
- package/lib/{types/OAuthGrantsApi.d.ts → OAuthGrantsApi.d.ts} +2 -1
- package/lib/OAuthGrantsApi.d.ts.map +1 -0
- package/lib/OAuthGrantsApi.js.map +1 -0
- package/lib/{types/OAuthProvidersApi.d.ts → OAuthProvidersApi.d.ts} +3 -2
- package/lib/OAuthProvidersApi.d.ts.map +1 -0
- package/lib/OAuthProvidersApi.js.map +1 -0
- package/lib/OAuthServerApi.d.ts +19 -0
- package/lib/OAuthServerApi.d.ts.map +1 -0
- package/lib/OAuthServerApi.js +48 -0
- package/lib/OAuthServerApi.js.map +1 -0
- package/lib/{types/ProjectsApi.d.ts → ProjectsApi.d.ts} +8 -5
- package/lib/ProjectsApi.d.ts.map +1 -0
- package/lib/{esm/ProjectsApi.js → ProjectsApi.js} +21 -12
- package/lib/ProjectsApi.js.map +1 -0
- package/lib/{types/PromptsApi.d.ts → PromptsApi.d.ts} +17 -9
- package/lib/PromptsApi.d.ts.map +1 -0
- package/lib/{esm/PromptsApi.js → PromptsApi.js} +16 -18
- package/lib/PromptsApi.js.map +1 -0
- package/lib/RefsApi.d.ts +7 -0
- package/lib/RefsApi.d.ts.map +1 -0
- package/lib/{esm/RefsApi.js → RefsApi.js} +2 -2
- package/lib/RefsApi.js.map +1 -0
- package/lib/{types/RemoteMcpConnectionsApi.d.ts → RemoteMcpConnectionsApi.d.ts} +3 -2
- package/lib/RemoteMcpConnectionsApi.d.ts.map +1 -0
- package/lib/{esm/RemoteMcpConnectionsApi.js → RemoteMcpConnectionsApi.js} +3 -3
- package/lib/RemoteMcpConnectionsApi.js.map +1 -0
- package/lib/{types/RunsApi.d.ts → RunsApi.d.ts} +11 -7
- package/lib/RunsApi.d.ts.map +1 -0
- package/lib/{esm/RunsApi.js → RunsApi.js} +14 -12
- package/lib/RunsApi.js.map +1 -0
- package/lib/SecretsApi.d.ts +18 -0
- package/lib/SecretsApi.d.ts.map +1 -0
- package/lib/SecretsApi.js +30 -0
- package/lib/SecretsApi.js.map +1 -0
- package/lib/{types/SkillsApi.d.ts → SkillsApi.d.ts} +3 -2
- package/lib/SkillsApi.d.ts.map +1 -0
- package/lib/{esm/SkillsApi.js → SkillsApi.js} +3 -3
- package/lib/SkillsApi.js.map +1 -0
- package/lib/{types/StreamSource.d.ts → StreamSource.d.ts} +1 -0
- package/lib/StreamSource.d.ts.map +1 -0
- package/lib/StreamSource.js.map +1 -0
- package/lib/ToolsApi.d.ts +36 -0
- package/lib/ToolsApi.d.ts.map +1 -0
- package/lib/ToolsApi.js +46 -0
- package/lib/ToolsApi.js.map +1 -0
- package/lib/{types/TrainingApi.d.ts → TrainingApi.d.ts} +7 -6
- package/lib/TrainingApi.d.ts.map +1 -0
- package/lib/TrainingApi.js +51 -0
- package/lib/TrainingApi.js.map +1 -0
- package/lib/{types/UsersApi.d.ts → UsersApi.d.ts} +3 -2
- package/lib/UsersApi.d.ts.map +1 -0
- package/lib/{esm/UsersApi.js → UsersApi.js} +3 -3
- package/lib/UsersApi.js.map +1 -0
- package/lib/{types/client.d.ts → client.d.ts} +55 -27
- package/lib/client.d.ts.map +1 -0
- package/lib/{esm/client.js → client.js} +113 -61
- package/lib/client.js.map +1 -0
- package/lib/{types/execute.d.ts → execute.d.ts} +5 -4
- package/lib/execute.d.ts.map +1 -0
- package/lib/{esm/execute.js → execute.js} +29 -11
- package/lib/execute.js.map +1 -0
- package/lib/{types/index.d.ts → index.d.ts} +9 -8
- package/lib/index.d.ts.map +1 -0
- package/lib/{esm/index.js → index.js} +4 -2
- package/lib/index.js.map +1 -0
- package/lib/{types/nodejs → nodejs}/NodeStreamSource.d.ts +3 -2
- package/lib/nodejs/NodeStreamSource.d.ts.map +1 -0
- package/lib/{esm/nodejs → nodejs}/NodeStreamSource.js +3 -3
- package/lib/nodejs/NodeStreamSource.js.map +1 -0
- package/lib/nodejs/index.d.ts +2 -0
- package/lib/nodejs/index.d.ts.map +1 -0
- package/lib/nodejs/index.js +2 -0
- package/lib/nodejs/index.js.map +1 -0
- package/lib/{types/store → store}/AgentsApi.d.ts +60 -9
- package/lib/store/AgentsApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/AgentsApi.js +174 -53
- package/lib/store/AgentsApi.js.map +1 -0
- package/lib/{types/store → store}/AnalyzeDocApi.d.ts +3 -2
- package/lib/store/AnalyzeDocApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/AnalyzeDocApi.js +10 -10
- package/lib/store/AnalyzeDocApi.js.map +1 -0
- package/lib/{types/store → store}/CollectionsApi.d.ts +6 -5
- package/lib/store/CollectionsApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/CollectionsApi.js +22 -22
- package/lib/store/CollectionsApi.js.map +1 -0
- package/lib/{types/store → store}/CostApi.d.ts +3 -2
- package/lib/store/CostApi.d.ts.map +1 -0
- package/lib/store/CostApi.js.map +1 -0
- package/lib/{types/store → store}/DashboardApi.d.ts +3 -2
- package/lib/store/DashboardApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/DashboardApi.js +7 -4
- package/lib/store/DashboardApi.js.map +1 -0
- package/lib/{types/store → store}/DataApi.d.ts +4 -3
- package/lib/store/DataApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/DataApi.js +6 -6
- package/lib/store/DataApi.js.map +1 -0
- package/lib/{types/store → store}/EmailApi.d.ts +3 -2
- package/lib/store/EmailApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/EmailApi.js +5 -5
- package/lib/store/EmailApi.js.map +1 -0
- package/lib/store/EmbeddingsApi.d.ts +13 -0
- package/lib/store/EmbeddingsApi.d.ts.map +1 -0
- package/lib/store/EmbeddingsApi.js +25 -0
- package/lib/store/EmbeddingsApi.js.map +1 -0
- package/lib/{types/store → store}/FilesApi.d.ts +22 -7
- package/lib/store/FilesApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/FilesApi.js +56 -51
- package/lib/store/FilesApi.js.map +1 -0
- package/lib/{types/store → store}/HiveMemoryApi.d.ts +3 -2
- package/lib/store/HiveMemoryApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/HiveMemoryApi.js +11 -11
- package/lib/{esm/store → store}/HiveMemoryApi.js.map +1 -1
- package/lib/{types/store → store}/IndexingApi.d.ts +16 -10
- package/lib/store/IndexingApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/IndexingApi.js +57 -45
- package/lib/store/IndexingApi.js.map +1 -0
- package/lib/{types/store → store}/ObjectsApi.d.ts +16 -11
- package/lib/store/ObjectsApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/ObjectsApi.js +46 -63
- package/lib/store/ObjectsApi.js.map +1 -0
- package/lib/{types/store → store}/PendingAsksApi.d.ts +5 -2
- package/lib/store/PendingAsksApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/PendingAsksApi.js +4 -4
- package/lib/store/PendingAsksApi.js.map +1 -0
- package/lib/store/ProcessApi.d.ts +25 -0
- package/lib/store/ProcessApi.d.ts.map +1 -0
- package/lib/store/ProcessApi.js +42 -0
- package/lib/store/ProcessApi.js.map +1 -0
- package/lib/{types/store → store}/QueryApi.d.ts +2 -1
- package/lib/store/QueryApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/QueryApi.js +3 -3
- package/lib/store/QueryApi.js.map +1 -0
- package/lib/{types/store → store}/RenderingApi.d.ts +3 -2
- package/lib/store/RenderingApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/RenderingApi.js +8 -8
- package/lib/store/RenderingApi.js.map +1 -0
- package/lib/{types/store → store}/SchedulesApi.d.ts +3 -2
- package/lib/store/SchedulesApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/SchedulesApi.js +4 -4
- package/lib/store/SchedulesApi.js.map +1 -0
- package/lib/store/TaskApi.d.ts +16 -0
- package/lib/store/TaskApi.d.ts.map +1 -0
- package/lib/store/TaskApi.js +42 -0
- package/lib/store/TaskApi.js.map +1 -0
- package/lib/{types/store → store}/ToolsApi.d.ts +3 -2
- package/lib/store/ToolsApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/ToolsApi.js +2 -2
- package/lib/store/ToolsApi.js.map +1 -0
- package/lib/{types/store → store}/TypeCatalogApi.d.ts +4 -3
- package/lib/store/TypeCatalogApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/TypeCatalogApi.js +5 -5
- package/lib/store/TypeCatalogApi.js.map +1 -0
- package/lib/{types/store → store}/TypesApi.d.ts +5 -4
- package/lib/store/TypesApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/TypesApi.js +12 -12
- package/lib/store/TypesApi.js.map +1 -0
- package/lib/{types/store → store}/WorkflowsApi.d.ts +11 -9
- package/lib/store/WorkflowsApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/WorkflowsApi.js +62 -52
- package/lib/store/WorkflowsApi.js.map +1 -0
- package/lib/store/client.d.ts +62 -0
- package/lib/store/client.d.ts.map +1 -0
- package/lib/store/client.js +106 -0
- package/lib/store/client.js.map +1 -0
- package/lib/{types/store → store}/errors.d.ts +2 -1
- package/lib/store/errors.d.ts.map +1 -0
- package/lib/store/errors.js +7 -0
- package/lib/store/errors.js.map +1 -0
- package/lib/store/index.d.ts +21 -0
- package/lib/store/index.d.ts.map +1 -0
- package/lib/store/index.js +21 -0
- package/lib/store/index.js.map +1 -0
- package/lib/store/signed-url.d.ts +39 -0
- package/lib/store/signed-url.d.ts.map +1 -0
- package/lib/store/signed-url.js +153 -0
- package/lib/store/signed-url.js.map +1 -0
- package/lib/store/stream-termination.d.ts +4 -0
- package/lib/store/stream-termination.d.ts.map +1 -0
- package/lib/store/stream-termination.js +31 -0
- package/lib/store/stream-termination.js.map +1 -0
- package/lib/{types/store → store}/version.d.ts +2 -0
- package/lib/store/version.d.ts.map +1 -0
- package/lib/{esm/store → store}/version.js +1 -0
- package/lib/store/version.js.map +1 -0
- package/lib/vertesia-client.js +1 -1
- package/lib/vertesia-client.js.map +1 -1
- package/package.json +26 -38
- package/src/AccountApi.ts +10 -22
- package/src/AccountsApi.ts +3 -9
- package/src/AnalyticsApi.ts +6 -8
- package/src/ApiKeysApi.ts +10 -2
- package/src/AppsApi.ts +131 -27
- package/src/AuditTrailApi.ts +4 -4
- package/src/CommandsApi.ts +7 -8
- package/src/EnvironmentsApi.ts +27 -23
- package/src/GroupsApi.ts +15 -10
- package/src/IamApi.ts +56 -22
- package/src/InteractionBase.ts +18 -9
- package/src/InteractionCatalogApi.ts +15 -20
- package/src/InteractionOutput.test.ts +40 -57
- package/src/InteractionOutput.ts +55 -47
- package/src/InteractionResult.example.ts +30 -18
- package/src/InteractionsApi.ts +113 -59
- package/src/OAuthClientsApi.ts +6 -1
- package/src/OAuthGrantsApi.ts +1 -1
- package/src/OAuthProvidersApi.ts +3 -4
- package/src/OAuthServerApi.ts +53 -6
- package/src/ProjectsApi.ts +70 -31
- package/src/PromptsApi.ts +44 -29
- package/src/RefsApi.ts +4 -10
- package/src/RemoteMcpConnectionsApi.ts +6 -7
- package/src/RunsApi.ts +25 -20
- package/src/SecretsApi.ts +56 -0
- package/src/SkillsApi.ts +5 -12
- package/src/StreamSource.ts +6 -1
- package/src/ToolsApi.ts +52 -0
- package/src/TrainingApi.ts +27 -25
- package/src/UsersApi.ts +6 -8
- package/src/client.test.ts +68 -2
- package/src/client.ts +160 -103
- package/src/execute.ts +60 -20
- package/src/index.ts +8 -8
- package/src/nodejs/NodeStreamSource.ts +4 -5
- package/src/nodejs/index.ts +1 -1
- package/src/store/AgentsApi.ts +308 -148
- package/src/store/AnalyzeDocApi.ts +39 -21
- package/src/store/CollectionsApi.ts +40 -38
- package/src/store/CostApi.ts +14 -19
- package/src/store/DashboardApi.ts +24 -27
- package/src/store/DataApi.ts +29 -32
- package/src/store/EmailApi.ts +6 -6
- package/src/store/EmbeddingsApi.ts +15 -15
- package/src/store/FilesApi.ts +80 -85
- package/src/store/HiveMemoryApi.ts +17 -28
- package/src/store/IndexingApi.ts +113 -76
- package/src/store/ObjectsApi.ts +100 -131
- package/src/store/PendingAsksApi.ts +7 -5
- package/src/store/ProcessApi.ts +61 -0
- package/src/store/QueryApi.ts +3 -4
- package/src/store/RenderingApi.ts +14 -17
- package/src/store/SchedulesApi.ts +6 -6
- package/src/store/TaskApi.ts +45 -0
- package/src/store/ToolsApi.ts +3 -3
- package/src/store/TypeCatalogApi.ts +56 -53
- package/src/store/TypesApi.ts +26 -18
- package/src/store/WorkflowsApi.ts +158 -152
- package/src/store/client.ts +58 -39
- package/src/store/errors.ts +3 -3
- package/src/store/index.ts +20 -18
- package/src/store/signed-url.test.ts +182 -0
- package/src/store/signed-url.ts +184 -0
- package/src/store/stream-gap.test.ts +230 -0
- package/src/store/stream-termination.test.ts +58 -0
- package/src/store/stream-termination.ts +40 -0
- package/src/store/version.ts +2 -1
- package/lib/cjs/AccountApi.js +0 -85
- package/lib/cjs/AccountApi.js.map +0 -1
- package/lib/cjs/AccountsApi.js +0 -16
- package/lib/cjs/AccountsApi.js.map +0 -1
- package/lib/cjs/AnalyticsApi.js +0 -43
- package/lib/cjs/AnalyticsApi.js.map +0 -1
- package/lib/cjs/ApiKeysApi.js +0 -61
- package/lib/cjs/ApiKeysApi.js.map +0 -1
- package/lib/cjs/AppsApi.js +0 -137
- package/lib/cjs/AppsApi.js.map +0 -1
- package/lib/cjs/AuditTrailApi.js +0 -39
- package/lib/cjs/AuditTrailApi.js.map +0 -1
- package/lib/cjs/CommandsApi.js +0 -19
- package/lib/cjs/CommandsApi.js.map +0 -1
- package/lib/cjs/EnvironmentsApi.js +0 -72
- package/lib/cjs/EnvironmentsApi.js.map +0 -1
- package/lib/cjs/GroupsApi.js +0 -86
- package/lib/cjs/GroupsApi.js.map +0 -1
- package/lib/cjs/IamApi.js +0 -53
- package/lib/cjs/IamApi.js.map +0 -1
- package/lib/cjs/InteractionBase.js +0 -44
- package/lib/cjs/InteractionBase.js.map +0 -1
- package/lib/cjs/InteractionCatalogApi.js +0 -64
- package/lib/cjs/InteractionCatalogApi.js.map +0 -1
- package/lib/cjs/InteractionOutput.js +0 -300
- package/lib/cjs/InteractionOutput.js.map +0 -1
- package/lib/cjs/InteractionResult.example.js +0 -57
- package/lib/cjs/InteractionResult.example.js.map +0 -1
- package/lib/cjs/InteractionsApi.js +0 -260
- package/lib/cjs/InteractionsApi.js.map +0 -1
- package/lib/cjs/OAuthClientsApi.js +0 -25
- package/lib/cjs/OAuthClientsApi.js.map +0 -1
- package/lib/cjs/OAuthGrantsApi.js +0 -30
- package/lib/cjs/OAuthGrantsApi.js.map +0 -1
- package/lib/cjs/OAuthProvidersApi.js +0 -43
- package/lib/cjs/OAuthProvidersApi.js.map +0 -1
- package/lib/cjs/OAuthServerApi.js +0 -22
- package/lib/cjs/OAuthServerApi.js.map +0 -1
- package/lib/cjs/ProjectsApi.js +0 -105
- package/lib/cjs/ProjectsApi.js.map +0 -1
- package/lib/cjs/PromptsApi.js +0 -135
- package/lib/cjs/PromptsApi.js.map +0 -1
- package/lib/cjs/RefsApi.js +0 -14
- package/lib/cjs/RefsApi.js.map +0 -1
- package/lib/cjs/RemoteMcpConnectionsApi.js +0 -38
- package/lib/cjs/RemoteMcpConnectionsApi.js.map +0 -1
- package/lib/cjs/RunsApi.js +0 -115
- package/lib/cjs/RunsApi.js.map +0 -1
- package/lib/cjs/SkillsApi.js +0 -39
- package/lib/cjs/SkillsApi.js.map +0 -1
- package/lib/cjs/StreamSource.js +0 -17
- package/lib/cjs/StreamSource.js.map +0 -1
- package/lib/cjs/TrainingApi.js +0 -54
- package/lib/cjs/TrainingApi.js.map +0 -1
- package/lib/cjs/UsersApi.js +0 -19
- package/lib/cjs/UsersApi.js.map +0 -1
- package/lib/cjs/client.js +0 -375
- package/lib/cjs/client.js.map +0 -1
- package/lib/cjs/execute.js +0 -160
- package/lib/cjs/execute.js.map +0 -1
- package/lib/cjs/index.js +0 -36
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/nodejs/NodeStreamSource.js +0 -45
- package/lib/cjs/nodejs/NodeStreamSource.js.map +0 -1
- package/lib/cjs/nodejs/index.js +0 -18
- package/lib/cjs/nodejs/index.js.map +0 -1
- package/lib/cjs/package.json +0 -3
- package/lib/cjs/store/AgentsApi.js +0 -663
- package/lib/cjs/store/AgentsApi.js.map +0 -1
- package/lib/cjs/store/AnalyzeDocApi.js +0 -56
- package/lib/cjs/store/AnalyzeDocApi.js.map +0 -1
- package/lib/cjs/store/CollectionsApi.js +0 -131
- package/lib/cjs/store/CollectionsApi.js.map +0 -1
- package/lib/cjs/store/CommandsApi.js +0 -17
- package/lib/cjs/store/CommandsApi.js.map +0 -1
- package/lib/cjs/store/CostApi.js +0 -62
- package/lib/cjs/store/CostApi.js.map +0 -1
- package/lib/cjs/store/DashboardApi.js +0 -182
- package/lib/cjs/store/DashboardApi.js.map +0 -1
- package/lib/cjs/store/DataApi.js +0 -436
- package/lib/cjs/store/DataApi.js.map +0 -1
- package/lib/cjs/store/EmailApi.js +0 -103
- package/lib/cjs/store/EmailApi.js.map +0 -1
- package/lib/cjs/store/EmbeddingsApi.js +0 -29
- package/lib/cjs/store/EmbeddingsApi.js.map +0 -1
- package/lib/cjs/store/FilesApi.js +0 -286
- package/lib/cjs/store/FilesApi.js.map +0 -1
- package/lib/cjs/store/HiveMemoryApi.js +0 -174
- package/lib/cjs/store/HiveMemoryApi.js.map +0 -1
- package/lib/cjs/store/IndexingApi.js +0 -308
- package/lib/cjs/store/IndexingApi.js.map +0 -1
- package/lib/cjs/store/ObjectsApi.js +0 -340
- package/lib/cjs/store/ObjectsApi.js.map +0 -1
- package/lib/cjs/store/PendingAsksApi.js +0 -43
- package/lib/cjs/store/PendingAsksApi.js.map +0 -1
- package/lib/cjs/store/QueryApi.js +0 -67
- package/lib/cjs/store/QueryApi.js.map +0 -1
- package/lib/cjs/store/RenderingApi.js +0 -84
- package/lib/cjs/store/RenderingApi.js.map +0 -1
- package/lib/cjs/store/SchedulesApi.js +0 -103
- package/lib/cjs/store/SchedulesApi.js.map +0 -1
- package/lib/cjs/store/ToolsApi.js +0 -21
- package/lib/cjs/store/ToolsApi.js.map +0 -1
- package/lib/cjs/store/TypeCatalogApi.js +0 -50
- package/lib/cjs/store/TypeCatalogApi.js.map +0 -1
- package/lib/cjs/store/TypesApi.js +0 -60
- package/lib/cjs/store/TypesApi.js.map +0 -1
- package/lib/cjs/store/WorkersApi.js +0 -16
- package/lib/cjs/store/WorkersApi.js.map +0 -1
- package/lib/cjs/store/WorkflowsApi.js +0 -621
- package/lib/cjs/store/WorkflowsApi.js.map +0 -1
- package/lib/cjs/store/client.js +0 -93
- package/lib/cjs/store/client.js.map +0 -1
- package/lib/cjs/store/errors.js +0 -11
- package/lib/cjs/store/errors.js.map +0 -1
- package/lib/cjs/store/index.js +0 -34
- package/lib/cjs/store/index.js.map +0 -1
- package/lib/cjs/store/version.js +0 -6
- package/lib/cjs/store/version.js.map +0 -1
- package/lib/esm/AccountApi.js.map +0 -1
- package/lib/esm/AccountsApi.js.map +0 -1
- package/lib/esm/AnalyticsApi.js.map +0 -1
- package/lib/esm/ApiKeysApi.js.map +0 -1
- package/lib/esm/AppsApi.js.map +0 -1
- package/lib/esm/AuditTrailApi.js.map +0 -1
- package/lib/esm/CommandsApi.js.map +0 -1
- package/lib/esm/EnvironmentsApi.js.map +0 -1
- package/lib/esm/GroupsApi.js.map +0 -1
- package/lib/esm/IamApi.js +0 -47
- package/lib/esm/IamApi.js.map +0 -1
- package/lib/esm/InteractionBase.js.map +0 -1
- package/lib/esm/InteractionCatalogApi.js.map +0 -1
- package/lib/esm/InteractionOutput.js.map +0 -1
- package/lib/esm/InteractionResult.example.js.map +0 -1
- package/lib/esm/InteractionsApi.js.map +0 -1
- package/lib/esm/OAuthClientsApi.js.map +0 -1
- package/lib/esm/OAuthGrantsApi.js.map +0 -1
- package/lib/esm/OAuthProvidersApi.js.map +0 -1
- package/lib/esm/OAuthServerApi.js +0 -19
- package/lib/esm/OAuthServerApi.js.map +0 -1
- package/lib/esm/ProjectsApi.js.map +0 -1
- package/lib/esm/PromptsApi.js.map +0 -1
- package/lib/esm/RefsApi.js.map +0 -1
- package/lib/esm/RemoteMcpConnectionsApi.js.map +0 -1
- package/lib/esm/RunsApi.js.map +0 -1
- package/lib/esm/SkillsApi.js.map +0 -1
- package/lib/esm/StreamSource.js.map +0 -1
- package/lib/esm/TrainingApi.js +0 -51
- package/lib/esm/TrainingApi.js.map +0 -1
- package/lib/esm/UsersApi.js.map +0 -1
- package/lib/esm/client.js.map +0 -1
- package/lib/esm/execute.js.map +0 -1
- package/lib/esm/index.js.map +0 -1
- package/lib/esm/nodejs/NodeStreamSource.js.map +0 -1
- package/lib/esm/nodejs/index.js +0 -2
- package/lib/esm/nodejs/index.js.map +0 -1
- package/lib/esm/store/AgentsApi.js.map +0 -1
- package/lib/esm/store/AnalyzeDocApi.js.map +0 -1
- package/lib/esm/store/CollectionsApi.js.map +0 -1
- package/lib/esm/store/CommandsApi.js +0 -13
- package/lib/esm/store/CommandsApi.js.map +0 -1
- package/lib/esm/store/CostApi.js.map +0 -1
- package/lib/esm/store/DashboardApi.js.map +0 -1
- package/lib/esm/store/DataApi.js.map +0 -1
- package/lib/esm/store/EmailApi.js.map +0 -1
- package/lib/esm/store/EmbeddingsApi.js +0 -25
- package/lib/esm/store/EmbeddingsApi.js.map +0 -1
- package/lib/esm/store/FilesApi.js.map +0 -1
- package/lib/esm/store/IndexingApi.js.map +0 -1
- package/lib/esm/store/ObjectsApi.js.map +0 -1
- package/lib/esm/store/PendingAsksApi.js.map +0 -1
- package/lib/esm/store/QueryApi.js.map +0 -1
- package/lib/esm/store/RenderingApi.js.map +0 -1
- package/lib/esm/store/SchedulesApi.js.map +0 -1
- package/lib/esm/store/ToolsApi.js.map +0 -1
- package/lib/esm/store/TypeCatalogApi.js.map +0 -1
- package/lib/esm/store/TypesApi.js.map +0 -1
- package/lib/esm/store/WorkersApi.js +0 -12
- package/lib/esm/store/WorkersApi.js.map +0 -1
- package/lib/esm/store/WorkflowsApi.js.map +0 -1
- package/lib/esm/store/client.js +0 -89
- package/lib/esm/store/client.js.map +0 -1
- package/lib/esm/store/errors.js +0 -7
- package/lib/esm/store/errors.js.map +0 -1
- package/lib/esm/store/index.js +0 -18
- package/lib/esm/store/index.js.map +0 -1
- package/lib/esm/store/version.js.map +0 -1
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/lib/types/AccountApi.d.ts.map +0 -1
- package/lib/types/AccountsApi.d.ts.map +0 -1
- package/lib/types/AnalyticsApi.d.ts.map +0 -1
- package/lib/types/ApiKeysApi.d.ts.map +0 -1
- package/lib/types/AppsApi.d.ts.map +0 -1
- package/lib/types/AuditTrailApi.d.ts.map +0 -1
- package/lib/types/CommandsApi.d.ts.map +0 -1
- package/lib/types/EnvironmentsApi.d.ts.map +0 -1
- package/lib/types/GroupsApi.d.ts.map +0 -1
- package/lib/types/IamApi.d.ts +0 -36
- package/lib/types/IamApi.d.ts.map +0 -1
- package/lib/types/InteractionBase.d.ts.map +0 -1
- package/lib/types/InteractionCatalogApi.d.ts.map +0 -1
- package/lib/types/InteractionOutput.d.ts.map +0 -1
- package/lib/types/InteractionResult.example.d.ts.map +0 -1
- package/lib/types/InteractionsApi.d.ts.map +0 -1
- package/lib/types/OAuthClientsApi.d.ts.map +0 -1
- package/lib/types/OAuthGrantsApi.d.ts.map +0 -1
- package/lib/types/OAuthProvidersApi.d.ts.map +0 -1
- package/lib/types/OAuthServerApi.d.ts +0 -10
- package/lib/types/OAuthServerApi.d.ts.map +0 -1
- package/lib/types/ProjectsApi.d.ts.map +0 -1
- package/lib/types/PromptsApi.d.ts.map +0 -1
- package/lib/types/RefsApi.d.ts +0 -6
- package/lib/types/RefsApi.d.ts.map +0 -1
- package/lib/types/RemoteMcpConnectionsApi.d.ts.map +0 -1
- package/lib/types/RunsApi.d.ts.map +0 -1
- package/lib/types/SkillsApi.d.ts.map +0 -1
- package/lib/types/StreamSource.d.ts.map +0 -1
- package/lib/types/TrainingApi.d.ts.map +0 -1
- package/lib/types/UsersApi.d.ts.map +0 -1
- package/lib/types/client.d.ts.map +0 -1
- package/lib/types/execute.d.ts.map +0 -1
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/nodejs/NodeStreamSource.d.ts.map +0 -1
- package/lib/types/nodejs/index.d.ts +0 -1
- package/lib/types/nodejs/index.d.ts.map +0 -1
- package/lib/types/store/AgentsApi.d.ts.map +0 -1
- package/lib/types/store/AnalyzeDocApi.d.ts.map +0 -1
- package/lib/types/store/CollectionsApi.d.ts.map +0 -1
- package/lib/types/store/CommandsApi.d.ts +0 -10
- package/lib/types/store/CommandsApi.d.ts.map +0 -1
- package/lib/types/store/CostApi.d.ts.map +0 -1
- package/lib/types/store/DashboardApi.d.ts.map +0 -1
- package/lib/types/store/DataApi.d.ts.map +0 -1
- package/lib/types/store/EmailApi.d.ts.map +0 -1
- package/lib/types/store/EmbeddingsApi.d.ts +0 -12
- package/lib/types/store/EmbeddingsApi.d.ts.map +0 -1
- package/lib/types/store/FilesApi.d.ts.map +0 -1
- package/lib/types/store/HiveMemoryApi.d.ts.map +0 -1
- package/lib/types/store/IndexingApi.d.ts.map +0 -1
- package/lib/types/store/ObjectsApi.d.ts.map +0 -1
- package/lib/types/store/PendingAsksApi.d.ts.map +0 -1
- package/lib/types/store/QueryApi.d.ts.map +0 -1
- package/lib/types/store/RenderingApi.d.ts.map +0 -1
- package/lib/types/store/SchedulesApi.d.ts.map +0 -1
- package/lib/types/store/ToolsApi.d.ts.map +0 -1
- package/lib/types/store/TypeCatalogApi.d.ts.map +0 -1
- package/lib/types/store/TypesApi.d.ts.map +0 -1
- package/lib/types/store/WorkersApi.d.ts +0 -6
- package/lib/types/store/WorkersApi.d.ts.map +0 -1
- package/lib/types/store/WorkflowsApi.d.ts.map +0 -1
- package/lib/types/store/client.d.ts +0 -57
- package/lib/types/store/client.d.ts.map +0 -1
- package/lib/types/store/errors.d.ts.map +0 -1
- package/lib/types/store/index.d.ts +0 -17
- package/lib/types/store/index.d.ts.map +0 -1
- package/lib/types/store/version.d.ts.map +0 -1
- package/src/store/CommandsApi.ts +0 -15
- package/src/store/WorkersApi.ts +0 -17
- /package/lib/{esm/ApiKeysApi.js → ApiKeysApi.js} +0 -0
- /package/lib/{esm/OAuthGrantsApi.js → OAuthGrantsApi.js} +0 -0
- /package/lib/{esm/OAuthProvidersApi.js → OAuthProvidersApi.js} +0 -0
- /package/lib/{esm/StreamSource.js → StreamSource.js} +0 -0
- /package/lib/{esm/store → store}/CostApi.js +0 -0
package/src/store/IndexingApi.ts
CHANGED
|
@@ -1,32 +1,34 @@
|
|
|
1
|
-
import { ApiTopic, ClientBase, ServerSentEvent } from
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
ElasticsearchDocumentData,
|
|
1
|
+
import { ApiTopic, type ClientBase, type ServerSentEvent } from '@vertesia/api-fetch-client';
|
|
2
|
+
import type {
|
|
3
|
+
AnalyzeDriftBatchResult,
|
|
4
|
+
BulkDeleteResult,
|
|
6
5
|
BulkIndexResult,
|
|
6
|
+
ComputeShardsRequest,
|
|
7
|
+
ComputeShardsResult,
|
|
7
8
|
CreateReindexTargetResult,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
TriggerReindexResult,
|
|
9
|
+
DriftAnalysisStatusResponse,
|
|
10
|
+
ElasticsearchBackend,
|
|
11
|
+
ElasticsearchDocumentData,
|
|
12
12
|
ElasticsearchIndexStats,
|
|
13
|
-
IndexConfiguration,
|
|
14
|
-
FetchDocumentsByIdsResult,
|
|
15
|
-
BulkDeleteResult,
|
|
16
13
|
EnsureIndexResult,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
FetchBatchResult,
|
|
15
|
+
FetchDocumentsByIdsResult,
|
|
16
|
+
GenericCommandResponse,
|
|
17
|
+
IndexConfiguration,
|
|
18
|
+
IndexingStatusResponse,
|
|
22
19
|
IndexShardParams,
|
|
23
20
|
IndexShardRequest,
|
|
24
21
|
IndexShardResult,
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
NextIndexCursorResult,
|
|
23
|
+
ReindexAgentRunsPayload,
|
|
24
|
+
ReindexAgentRunsResponse,
|
|
27
25
|
ReindexViaBulkRequest,
|
|
28
26
|
ReindexViaBulkResult,
|
|
29
|
-
|
|
27
|
+
StartProjectReindexPayload,
|
|
28
|
+
SwapAliasRequest,
|
|
29
|
+
SwapAliasResult,
|
|
30
|
+
TriggerReindexResult,
|
|
31
|
+
} from '@vertesia/common';
|
|
30
32
|
|
|
31
33
|
/**
|
|
32
34
|
* API for indexing operations on content objects.
|
|
@@ -36,8 +38,7 @@ import {
|
|
|
36
38
|
* and require content_admin permission.
|
|
37
39
|
*/
|
|
38
40
|
export class IndexingApi extends ApiTopic {
|
|
39
|
-
|
|
40
|
-
constructor(parent: ClientBase, basePath: string = "/api/v1/indexing") {
|
|
41
|
+
constructor(parent: ClientBase, basePath: string = '/api/v1/indexing') {
|
|
41
42
|
super(parent, basePath);
|
|
42
43
|
}
|
|
43
44
|
|
|
@@ -49,7 +50,7 @@ export class IndexingApi extends ApiTopic {
|
|
|
49
50
|
* Get Elasticsearch status for the current project
|
|
50
51
|
*/
|
|
51
52
|
async status(): Promise<IndexingStatusResponse> {
|
|
52
|
-
return this.get(
|
|
53
|
+
return this.get('/status');
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
/**
|
|
@@ -59,35 +60,42 @@ export class IndexingApi extends ApiTopic {
|
|
|
59
60
|
* @param options Optional workflow tuning parameters
|
|
60
61
|
*/
|
|
61
62
|
async reindex(options?: StartProjectReindexPayload): Promise<GenericCommandResponse> {
|
|
62
|
-
return this.post(
|
|
63
|
+
return this.post('/reindex', { payload: options });
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Rebuild the agent-run Elasticsearch index directly from MongoDB.
|
|
68
|
+
*/
|
|
69
|
+
async reindexAgentRuns(options?: ReindexAgentRunsPayload): Promise<ReindexAgentRunsResponse> {
|
|
70
|
+
return this.post('/agent-runs/reindex', { payload: options });
|
|
63
71
|
}
|
|
64
72
|
|
|
65
73
|
/**
|
|
66
74
|
* Trigger an on-demand drift analysis between MongoDB and Elasticsearch
|
|
67
75
|
*/
|
|
68
76
|
async analyzeDrift(): Promise<DriftAnalysisStatusResponse> {
|
|
69
|
-
return this.post(
|
|
77
|
+
return this.post('/analyze-drift', { payload: {} });
|
|
70
78
|
}
|
|
71
79
|
|
|
72
80
|
/**
|
|
73
81
|
* Get the latest drift analysis status/result for this project
|
|
74
82
|
*/
|
|
75
83
|
async getDriftAnalysis(): Promise<DriftAnalysisStatusResponse> {
|
|
76
|
-
return this.get(
|
|
84
|
+
return this.get('/drift-analysis');
|
|
77
85
|
}
|
|
78
86
|
|
|
79
87
|
/**
|
|
80
88
|
* Enable indexing for this project
|
|
81
89
|
*/
|
|
82
90
|
async enableIndexing(): Promise<GenericCommandResponse> {
|
|
83
|
-
return this.post(
|
|
91
|
+
return this.post('/enable-indexing');
|
|
84
92
|
}
|
|
85
93
|
|
|
86
94
|
/**
|
|
87
95
|
* Disable indexing for this project
|
|
88
96
|
*/
|
|
89
97
|
async disableIndexing(): Promise<GenericCommandResponse> {
|
|
90
|
-
return this.post(
|
|
98
|
+
return this.post('/disable-indexing');
|
|
91
99
|
}
|
|
92
100
|
|
|
93
101
|
/**
|
|
@@ -95,7 +103,7 @@ export class IndexingApi extends ApiTopic {
|
|
|
95
103
|
* @deprecated Queries are now automatically enabled when indexing is enabled
|
|
96
104
|
*/
|
|
97
105
|
async enableQueries(): Promise<GenericCommandResponse> {
|
|
98
|
-
return this.post(
|
|
106
|
+
return this.post('/enable-queries');
|
|
99
107
|
}
|
|
100
108
|
|
|
101
109
|
/**
|
|
@@ -103,7 +111,7 @@ export class IndexingApi extends ApiTopic {
|
|
|
103
111
|
* @deprecated Queries are now automatically enabled when indexing is enabled
|
|
104
112
|
*/
|
|
105
113
|
async disableQueries(): Promise<GenericCommandResponse> {
|
|
106
|
-
return this.post(
|
|
114
|
+
return this.post('/disable-queries');
|
|
107
115
|
}
|
|
108
116
|
|
|
109
117
|
// ========================================================================
|
|
@@ -114,7 +122,7 @@ export class IndexingApi extends ApiTopic {
|
|
|
114
122
|
* Index a single document to Elasticsearch
|
|
115
123
|
*/
|
|
116
124
|
index(objectId: string, document: ElasticsearchDocumentData): Promise<{ status: string; object_id: string }> {
|
|
117
|
-
return this.post(
|
|
125
|
+
return this.post('/internal/index', {
|
|
118
126
|
payload: { object_id: objectId, document },
|
|
119
127
|
});
|
|
120
128
|
}
|
|
@@ -123,7 +131,7 @@ export class IndexingApi extends ApiTopic {
|
|
|
123
131
|
* Delete a document from Elasticsearch
|
|
124
132
|
*/
|
|
125
133
|
delete(objectId: string): Promise<{ status: string; object_id: string }> {
|
|
126
|
-
return this.post(
|
|
134
|
+
return this.post('/internal/delete', {
|
|
127
135
|
payload: { object_id: objectId },
|
|
128
136
|
});
|
|
129
137
|
}
|
|
@@ -136,9 +144,9 @@ export class IndexingApi extends ApiTopic {
|
|
|
136
144
|
*/
|
|
137
145
|
bulkIndex(
|
|
138
146
|
documents: Array<{ id: string; document: ElasticsearchDocumentData }>,
|
|
139
|
-
targetIndex?: string
|
|
147
|
+
targetIndex?: string,
|
|
140
148
|
): Promise<BulkIndexResult> {
|
|
141
|
-
return this.post(
|
|
149
|
+
return this.post('/internal/bulk-index', {
|
|
142
150
|
payload: { documents, target_index: targetIndex },
|
|
143
151
|
});
|
|
144
152
|
}
|
|
@@ -149,7 +157,7 @@ export class IndexingApi extends ApiTopic {
|
|
|
149
157
|
* @param recreate If true, drops and recreates the index
|
|
150
158
|
*/
|
|
151
159
|
ensureIndex(recreate?: boolean): Promise<EnsureIndexResult> {
|
|
152
|
-
return this.post(
|
|
160
|
+
return this.post('/internal/ensure-index', {
|
|
153
161
|
payload: { recreate },
|
|
154
162
|
});
|
|
155
163
|
}
|
|
@@ -159,7 +167,7 @@ export class IndexingApi extends ApiTopic {
|
|
|
159
167
|
* The alias will be swapped after reindexing completes via swapAlias
|
|
160
168
|
*/
|
|
161
169
|
createReindexTarget(): Promise<CreateReindexTargetResult> {
|
|
162
|
-
return this.post(
|
|
170
|
+
return this.post('/internal/create-reindex-target', {
|
|
163
171
|
payload: {},
|
|
164
172
|
});
|
|
165
173
|
}
|
|
@@ -168,17 +176,7 @@ export class IndexingApi extends ApiTopic {
|
|
|
168
176
|
* Get Elasticsearch index statistics for the project
|
|
169
177
|
*/
|
|
170
178
|
getStats(): Promise<ElasticsearchIndexStats> {
|
|
171
|
-
return this.post(
|
|
172
|
-
payload: {},
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* Get the _id range for reindexing (first, last, count)
|
|
178
|
-
* Used by workflow to set up cursor-based pagination
|
|
179
|
-
*/
|
|
180
|
-
getReindexRange(): Promise<ReindexRangeResult> {
|
|
181
|
-
return this.post("/internal/reindex-range", {
|
|
179
|
+
return this.post('/internal/stats', {
|
|
182
180
|
payload: {},
|
|
183
181
|
});
|
|
184
182
|
}
|
|
@@ -191,7 +189,7 @@ export class IndexingApi extends ApiTopic {
|
|
|
191
189
|
* @param limit Maximum documents to fetch (default: 500)
|
|
192
190
|
*/
|
|
193
191
|
fetchBatch(cursor?: string | null, limit?: number): Promise<FetchBatchResult> {
|
|
194
|
-
return this.post(
|
|
192
|
+
return this.post('/internal/fetch-batch', {
|
|
195
193
|
payload: { cursor, limit },
|
|
196
194
|
});
|
|
197
195
|
}
|
|
@@ -204,7 +202,7 @@ export class IndexingApi extends ApiTopic {
|
|
|
204
202
|
* @param count Maximum number of boundaries to return
|
|
205
203
|
*/
|
|
206
204
|
getNextIndexCursor(cursor?: string | null, limit?: number, count?: number): Promise<NextIndexCursorResult> {
|
|
207
|
-
return this.post(
|
|
205
|
+
return this.post('/internal/next-cursor', {
|
|
208
206
|
payload: { cursor, limit, count },
|
|
209
207
|
});
|
|
210
208
|
}
|
|
@@ -213,7 +211,7 @@ export class IndexingApi extends ApiTopic {
|
|
|
213
211
|
* Analyze one batch of MongoDB documents against Elasticsearch by _id and updated_at
|
|
214
212
|
*/
|
|
215
213
|
analyzeDriftBatch(cursor?: string | null, limit?: number): Promise<AnalyzeDriftBatchResult> {
|
|
216
|
-
return this.post(
|
|
214
|
+
return this.post('/internal/analyze-drift-batch', {
|
|
217
215
|
payload: { cursor, limit },
|
|
218
216
|
});
|
|
219
217
|
}
|
|
@@ -230,12 +228,14 @@ export class IndexingApi extends ApiTopic {
|
|
|
230
228
|
objectIds?: string[];
|
|
231
229
|
recreateIndex?: boolean;
|
|
232
230
|
}): Promise<TriggerReindexResult> {
|
|
233
|
-
return this.post(
|
|
234
|
-
payload: options
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
231
|
+
return this.post('/internal/trigger-reindex', {
|
|
232
|
+
payload: options
|
|
233
|
+
? {
|
|
234
|
+
full_reindex: options.fullReindex,
|
|
235
|
+
object_ids: options.objectIds,
|
|
236
|
+
recreate_index: options.recreateIndex,
|
|
237
|
+
}
|
|
238
|
+
: {},
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
241
|
|
|
@@ -246,7 +246,7 @@ export class IndexingApi extends ApiTopic {
|
|
|
246
246
|
* @param objectIds Array of object IDs to fetch
|
|
247
247
|
*/
|
|
248
248
|
fetchDocumentsByIds(objectIds: string[]): Promise<FetchDocumentsByIdsResult> {
|
|
249
|
-
return this.post(
|
|
249
|
+
return this.post('/internal/fetch-by-ids', {
|
|
250
250
|
payload: { object_ids: objectIds },
|
|
251
251
|
});
|
|
252
252
|
}
|
|
@@ -257,7 +257,7 @@ export class IndexingApi extends ApiTopic {
|
|
|
257
257
|
* @param objectIds Array of object IDs to delete
|
|
258
258
|
*/
|
|
259
259
|
bulkDelete(objectIds: string[]): Promise<BulkDeleteResult> {
|
|
260
|
-
return this.post(
|
|
260
|
+
return this.post('/internal/bulk-delete', {
|
|
261
261
|
payload: { object_ids: objectIds },
|
|
262
262
|
});
|
|
263
263
|
}
|
|
@@ -269,7 +269,7 @@ export class IndexingApi extends ApiTopic {
|
|
|
269
269
|
* status, embedding dimensions, field mappings, and project configuration.
|
|
270
270
|
*/
|
|
271
271
|
getConfiguration(): Promise<IndexConfiguration> {
|
|
272
|
-
return this.post(
|
|
272
|
+
return this.post('/internal/configuration', {
|
|
273
273
|
payload: {},
|
|
274
274
|
});
|
|
275
275
|
}
|
|
@@ -286,6 +286,9 @@ export class IndexingApi extends ApiTopic {
|
|
|
286
286
|
*/
|
|
287
287
|
private get zenoBulkBaseUrl(): string {
|
|
288
288
|
const storeBaseUrl = this.client.baseUrl;
|
|
289
|
+
if (storeBaseUrl.includes('localhost:') || storeBaseUrl.includes('127.0.0.1:')) {
|
|
290
|
+
return 'https://zeno-bulk-dev-main.api.dev1.vertesia.io';
|
|
291
|
+
}
|
|
289
292
|
if (storeBaseUrl.includes('zeno-server')) {
|
|
290
293
|
return storeBaseUrl.replace(/zeno-server/, 'zeno-bulk');
|
|
291
294
|
}
|
|
@@ -303,10 +306,17 @@ export class IndexingApi extends ApiTopic {
|
|
|
303
306
|
* Compute shard boundaries for a tenant via zeno-bulk.
|
|
304
307
|
* Creates the target index and returns shard ranges for parallel indexing.
|
|
305
308
|
*/
|
|
306
|
-
computeShards(
|
|
309
|
+
computeShards(
|
|
310
|
+
tenantId: string,
|
|
311
|
+
shardSize?: number,
|
|
312
|
+
updatedSince?: string,
|
|
313
|
+
backend?: ElasticsearchBackend,
|
|
314
|
+
): Promise<ComputeShardsResult> {
|
|
307
315
|
return this.zenoBulkPost('/reindex/compute-shards', {
|
|
308
316
|
tenant_id: tenantId,
|
|
309
|
-
shard_size: shardSize ??
|
|
317
|
+
shard_size: shardSize ?? 250000,
|
|
318
|
+
updated_since: updatedSince,
|
|
319
|
+
backend,
|
|
310
320
|
} satisfies ComputeShardsRequest);
|
|
311
321
|
}
|
|
312
322
|
|
|
@@ -322,11 +332,17 @@ export class IndexingApi extends ApiTopic {
|
|
|
322
332
|
* Atomically swap ES alias via zeno-bulk.
|
|
323
333
|
* @param alias Optional alias name. If not provided, the Go service derives it from the tenant ID.
|
|
324
334
|
*/
|
|
325
|
-
swapAlias(
|
|
335
|
+
swapAlias(
|
|
336
|
+
tenantId: string,
|
|
337
|
+
targetIndex: string,
|
|
338
|
+
alias?: string,
|
|
339
|
+
backend?: ElasticsearchBackend,
|
|
340
|
+
): Promise<SwapAliasResult> {
|
|
326
341
|
return this.zenoBulkPost('/reindex/swap-alias', {
|
|
327
342
|
tenant_id: tenantId,
|
|
328
343
|
target_index: targetIndex,
|
|
329
344
|
alias,
|
|
345
|
+
backend,
|
|
330
346
|
} satisfies SwapAliasRequest);
|
|
331
347
|
}
|
|
332
348
|
|
|
@@ -343,32 +359,53 @@ export class IndexingApi extends ApiTopic {
|
|
|
343
359
|
tenantId: string,
|
|
344
360
|
onEvent?: ((event: ServerSentEvent) => void) | null,
|
|
345
361
|
dryRun?: boolean,
|
|
362
|
+
backend?: ElasticsearchBackend,
|
|
363
|
+
projectId?: string,
|
|
364
|
+
tuning?: {
|
|
365
|
+
shardSize?: number;
|
|
366
|
+
shards?: number;
|
|
367
|
+
bulkConcurrency?: number;
|
|
368
|
+
bulkSizeBytes?: number;
|
|
369
|
+
bulkMaxDocs?: number;
|
|
370
|
+
},
|
|
346
371
|
): Promise<ReindexViaBulkResult> {
|
|
347
|
-
const bulkUrl = this.zenoBulkBaseUrl
|
|
348
|
-
const
|
|
372
|
+
const bulkUrl = `${this.zenoBulkBaseUrl}/reindex`;
|
|
373
|
+
const params = {
|
|
349
374
|
tenant_id: tenantId,
|
|
375
|
+
project_id: projectId,
|
|
350
376
|
dry_run: dryRun ?? false,
|
|
377
|
+
backend,
|
|
378
|
+
shard_size: tuning?.shardSize,
|
|
379
|
+
shards: tuning?.shards,
|
|
380
|
+
bulk_concurrency: tuning?.bulkConcurrency,
|
|
381
|
+
bulk_size_bytes: tuning?.bulkSizeBytes,
|
|
382
|
+
bulk_max_docs: tuning?.bulkMaxDocs,
|
|
351
383
|
} satisfies ReindexViaBulkRequest;
|
|
352
384
|
|
|
353
385
|
if (!onEvent) {
|
|
354
|
-
return this.client.post(bulkUrl, { payload });
|
|
386
|
+
return this.client.post(bulkUrl, { payload: { params } });
|
|
355
387
|
}
|
|
356
388
|
|
|
357
389
|
// SSE mode: stream progress events from zeno-bulk
|
|
358
390
|
let lastResult: ReindexViaBulkResult | undefined;
|
|
359
391
|
|
|
360
|
-
await this.client.sseRequest(
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
392
|
+
await this.client.sseRequest(
|
|
393
|
+
'POST',
|
|
394
|
+
bulkUrl,
|
|
395
|
+
{
|
|
396
|
+
payload: { params },
|
|
397
|
+
},
|
|
398
|
+
(event) => {
|
|
399
|
+
onEvent(event);
|
|
400
|
+
if (event.type === 'event' && event.event === 'done') {
|
|
401
|
+
try {
|
|
402
|
+
lastResult = JSON.parse(event.data) as ReindexViaBulkResult;
|
|
403
|
+
} catch {
|
|
404
|
+
// data might not be valid JSON
|
|
405
|
+
}
|
|
369
406
|
}
|
|
370
|
-
}
|
|
371
|
-
|
|
407
|
+
},
|
|
408
|
+
);
|
|
372
409
|
|
|
373
410
|
if (!lastResult) {
|
|
374
411
|
throw new Error('zeno-bulk SSE stream ended without a done event');
|