@vertesia/client 1.2.0 → 1.4.0-dev.20260614.160504Z
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/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 +51 -0
- package/lib/IamApi.d.ts.map +1 -0
- package/lib/IamApi.js +67 -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} +8 -7
- package/lib/RunsApi.d.ts.map +1 -0
- package/lib/{esm/RunsApi.js → RunsApi.js} +11 -11
- 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} +42 -27
- package/lib/client.d.ts.map +1 -0
- package/lib/{esm/client.js → client.js} +90 -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} +13 -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 +55 -8
- package/lib/store/AgentsApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/AgentsApi.js +155 -47
- 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 +44 -46
- package/lib/store/WorkflowsApi.js.map +1 -0
- package/lib/store/client.d.ts +59 -0
- package/lib/store/client.d.ts.map +1 -0
- package/lib/{esm/store → store}/client.js +32 -29
- 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 +20 -0
- package/lib/store/index.d.ts.map +1 -0
- package/lib/store/index.js +20 -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 +1 -0
- package/lib/store/version.d.ts.map +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 +25 -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 +46 -23
- 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 +22 -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 +130 -103
- package/src/execute.ts +41 -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 +285 -143
- 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 +140 -146
- package/src/store/client.ts +44 -39
- package/src/store/errors.ts +3 -3
- package/src/store/index.ts +19 -18
- package/src/store/signed-url.test.ts +182 -0
- package/src/store/signed-url.ts +184 -0
- package/src/store/stream-termination.test.ts +58 -0
- package/src/store/stream-termination.ts +40 -0
- package/src/store/version.ts +1 -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.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/lib/{esm/store → store}/version.js +0 -0
|
@@ -1,61 +1,79 @@
|
|
|
1
|
-
import { ApiTopic, ClientBase } from
|
|
2
|
-
import {
|
|
1
|
+
import { ApiTopic, type ClientBase, type IRequestParams } from '@vertesia/api-fetch-client';
|
|
2
|
+
import type {
|
|
3
|
+
AdaptedTable,
|
|
4
|
+
AdaptTablesRequest,
|
|
5
|
+
DocAnalyzeRunStatusResponse,
|
|
6
|
+
DocAnalyzerResultResponse,
|
|
7
|
+
DocImage,
|
|
8
|
+
DocTableCsv,
|
|
9
|
+
DocTableJson,
|
|
10
|
+
ExportTableFormats,
|
|
11
|
+
GetAdaptedTablesRequestQuery,
|
|
12
|
+
PdfToRichtextOptions,
|
|
13
|
+
WorkflowRunStatus,
|
|
14
|
+
} from '@vertesia/common';
|
|
3
15
|
|
|
4
16
|
export class AnalyzeDocApi extends ApiTopic {
|
|
5
|
-
constructor(
|
|
17
|
+
constructor(
|
|
18
|
+
parent: ClientBase,
|
|
19
|
+
public objectId: string,
|
|
20
|
+
) {
|
|
6
21
|
super(parent, `/${objectId}/analyze`);
|
|
7
22
|
}
|
|
8
23
|
|
|
9
24
|
async start(payload: PdfToRichtextOptions): Promise<DocAnalyzeRunStatusResponse> {
|
|
10
|
-
return this.post(
|
|
25
|
+
return this.post('/', { payload });
|
|
11
26
|
}
|
|
12
27
|
|
|
13
28
|
async getStatus(): Promise<DocAnalyzeRunStatusResponse> {
|
|
14
|
-
return this.get(
|
|
29
|
+
return this.get('/status');
|
|
15
30
|
}
|
|
16
31
|
|
|
17
32
|
async getResults(): Promise<DocAnalyzerResultResponse> {
|
|
18
|
-
return this.get(
|
|
33
|
+
return this.get('/results');
|
|
19
34
|
}
|
|
20
35
|
|
|
21
36
|
async adaptTables(payload: AdaptTablesRequest): Promise<WorkflowRunStatus> {
|
|
22
|
-
return this.post(
|
|
37
|
+
return this.post('/adapt_tables', { payload });
|
|
23
38
|
}
|
|
24
39
|
|
|
25
|
-
async getAdaptedTables(
|
|
26
|
-
|
|
27
|
-
|
|
40
|
+
async getAdaptedTables(
|
|
41
|
+
runId?: string,
|
|
42
|
+
query?: GetAdaptedTablesRequestQuery,
|
|
43
|
+
): Promise<Record<number, AdaptedTable>> {
|
|
44
|
+
const path = runId ? `/adapt_tables/${runId}` : '/adapt_tables';
|
|
45
|
+
|
|
28
46
|
// Build query parameters
|
|
29
|
-
const queryParams:
|
|
47
|
+
const queryParams: NonNullable<IRequestParams['query']> = {};
|
|
30
48
|
if (query?.format) queryParams.format = query.format;
|
|
31
49
|
if (query?.raw !== undefined) queryParams.raw = query.raw;
|
|
32
|
-
|
|
50
|
+
|
|
33
51
|
// If format is CSV, set response type to text to avoid automatic JSON parsing
|
|
34
|
-
const options:
|
|
52
|
+
const options: IRequestParams & { responseType?: 'text' } = { query: queryParams };
|
|
35
53
|
if (query?.format === 'csv') {
|
|
36
54
|
options.responseType = 'text';
|
|
37
55
|
}
|
|
38
|
-
|
|
56
|
+
|
|
39
57
|
return this.get(path, options);
|
|
40
58
|
}
|
|
41
59
|
|
|
42
60
|
async getXml(): Promise<string> {
|
|
43
|
-
return this.get(
|
|
61
|
+
return this.get('/xml');
|
|
44
62
|
}
|
|
45
63
|
|
|
46
64
|
async getTables(format?: ExportTableFormats): Promise<DocTableCsv[] | DocTableJson[]> {
|
|
47
|
-
const options:
|
|
65
|
+
const options: IRequestParams = {};
|
|
48
66
|
if (format) {
|
|
49
|
-
options.query = {format: format}
|
|
67
|
+
options.query = { format: format };
|
|
50
68
|
}
|
|
51
|
-
return this.get(
|
|
69
|
+
return this.get('/tables', options);
|
|
52
70
|
}
|
|
53
71
|
|
|
54
72
|
async getImages(): Promise<DocImage[]> {
|
|
55
|
-
return this.get(
|
|
73
|
+
return this.get('/images');
|
|
56
74
|
}
|
|
57
75
|
|
|
58
76
|
async getAnnotated(): Promise<{ url: string }> {
|
|
59
|
-
return this.get(
|
|
77
|
+
return this.get('/annotated');
|
|
60
78
|
}
|
|
61
|
-
}
|
|
79
|
+
}
|
|
@@ -1,42 +1,40 @@
|
|
|
1
|
-
import { ApiTopic, ClientBase } from
|
|
2
|
-
import {
|
|
1
|
+
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
2
|
+
import type {
|
|
3
3
|
Collection,
|
|
4
4
|
ComplexCollectionSearchQuery,
|
|
5
5
|
ComplexSearchPayload,
|
|
6
6
|
ComputeCollectionFacetPayload,
|
|
7
|
-
ComputeObjectFacetPayload,
|
|
8
7
|
ComputedFacetResponse,
|
|
8
|
+
ComputeObjectFacetPayload,
|
|
9
9
|
ContentObjectItem,
|
|
10
10
|
ContentObjectStatus,
|
|
11
11
|
CreateCollectionPayload,
|
|
12
12
|
DynamicCollection,
|
|
13
|
-
ObjectSearchResponse
|
|
14
|
-
} from
|
|
15
|
-
|
|
13
|
+
ObjectSearchResponse,
|
|
14
|
+
} from '@vertesia/common';
|
|
16
15
|
|
|
17
16
|
export class CollectionsApi extends ApiTopic {
|
|
18
|
-
|
|
19
17
|
constructor(parent: ClientBase) {
|
|
20
|
-
super(parent,
|
|
18
|
+
super(parent, '/api/v1/collections');
|
|
21
19
|
}
|
|
22
20
|
|
|
23
21
|
/**
|
|
24
22
|
* List collections
|
|
25
23
|
* @param payload: CollectionSearchPayload
|
|
26
24
|
* @returns Collection[] list of collections
|
|
27
|
-
|
|
25
|
+
**/
|
|
28
26
|
search(payload: ComplexCollectionSearchQuery): Promise<Collection[]> {
|
|
29
|
-
return this.post(
|
|
27
|
+
return this.post('/search', { payload });
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
/**
|
|
33
31
|
* Compute facets for List collections
|
|
34
32
|
* @param query: ComputeCollectionFacetPayload
|
|
35
33
|
* @returns ComputeFacetsResponse list of facets
|
|
36
|
-
|
|
34
|
+
**/
|
|
37
35
|
computeListFacets(query: ComputeCollectionFacetPayload): Promise<ComputedFacetResponse> {
|
|
38
|
-
return this.post(
|
|
39
|
-
payload: query
|
|
36
|
+
return this.post('/facets', {
|
|
37
|
+
payload: query,
|
|
40
38
|
});
|
|
41
39
|
}
|
|
42
40
|
|
|
@@ -51,13 +49,13 @@ export class CollectionsApi extends ApiTopic {
|
|
|
51
49
|
|
|
52
50
|
create(payload: CreateCollectionPayload): Promise<Collection> {
|
|
53
51
|
return this.post(`/`, {
|
|
54
|
-
payload
|
|
52
|
+
payload,
|
|
55
53
|
});
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
update(collectionId: string, payload: Partial<CreateCollectionPayload>): Promise<{ id: string }> {
|
|
59
57
|
return this.put(`/${collectionId}`, {
|
|
60
|
-
payload
|
|
58
|
+
payload,
|
|
61
59
|
});
|
|
62
60
|
}
|
|
63
61
|
|
|
@@ -65,27 +63,30 @@ export class CollectionsApi extends ApiTopic {
|
|
|
65
63
|
return this.post(`/${collectionId}/members`, {
|
|
66
64
|
payload: {
|
|
67
65
|
action: 'add',
|
|
68
|
-
members
|
|
69
|
-
}
|
|
66
|
+
members,
|
|
67
|
+
},
|
|
70
68
|
});
|
|
71
69
|
}
|
|
72
70
|
|
|
73
|
-
listMembers(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
71
|
+
listMembers(
|
|
72
|
+
collectionId: string,
|
|
73
|
+
payload: {
|
|
74
|
+
limit?: number;
|
|
75
|
+
offset?: number;
|
|
76
|
+
status?: ContentObjectStatus;
|
|
77
|
+
type?: string;
|
|
78
|
+
},
|
|
79
|
+
): Promise<ContentObjectItem[]> {
|
|
79
80
|
return this.get(`/${collectionId}/members`, {
|
|
80
81
|
query: {
|
|
81
|
-
...payload
|
|
82
|
-
}
|
|
82
|
+
...payload,
|
|
83
|
+
},
|
|
83
84
|
});
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
computeFacets(collectionId: string, query: ComputeObjectFacetPayload): Promise<ComputedFacetResponse> {
|
|
87
88
|
return this.post(`/${collectionId}/facets`, {
|
|
88
|
-
payload: query
|
|
89
|
+
payload: query,
|
|
89
90
|
});
|
|
90
91
|
}
|
|
91
92
|
|
|
@@ -97,8 +98,8 @@ export class CollectionsApi extends ApiTopic {
|
|
|
97
98
|
return this.post(`/${collectionId}/members`, {
|
|
98
99
|
payload: {
|
|
99
100
|
action: 'delete',
|
|
100
|
-
members
|
|
101
|
-
}
|
|
101
|
+
members,
|
|
102
|
+
},
|
|
102
103
|
});
|
|
103
104
|
}
|
|
104
105
|
|
|
@@ -106,8 +107,8 @@ export class CollectionsApi extends ApiTopic {
|
|
|
106
107
|
return this.post(`/${collectionId}/children`, {
|
|
107
108
|
payload: {
|
|
108
109
|
action: 'add',
|
|
109
|
-
children
|
|
110
|
-
}
|
|
110
|
+
children,
|
|
111
|
+
},
|
|
111
112
|
});
|
|
112
113
|
}
|
|
113
114
|
|
|
@@ -115,14 +116,14 @@ export class CollectionsApi extends ApiTopic {
|
|
|
115
116
|
return this.post(`/${collectionId}/children`, {
|
|
116
117
|
payload: {
|
|
117
118
|
action: 'delete',
|
|
118
|
-
children
|
|
119
|
-
}
|
|
119
|
+
children,
|
|
120
|
+
},
|
|
120
121
|
});
|
|
121
122
|
}
|
|
122
123
|
|
|
123
124
|
searchChildren(collectionId: string, query: ComplexCollectionSearchQuery = {}): Promise<Collection[]> {
|
|
124
125
|
return this.post(`/${collectionId}/children/search`, {
|
|
125
|
-
payload: query
|
|
126
|
+
payload: query,
|
|
126
127
|
});
|
|
127
128
|
}
|
|
128
129
|
|
|
@@ -136,12 +137,15 @@ export class CollectionsApi extends ApiTopic {
|
|
|
136
137
|
* @param permissions - Map of permission types to principal arrays
|
|
137
138
|
* @returns Object with collection id, updated security, and number of objects updated
|
|
138
139
|
*/
|
|
139
|
-
updatePermissions(
|
|
140
|
+
updatePermissions(
|
|
141
|
+
collectionId: string,
|
|
142
|
+
permissions: Record<string, string[]>,
|
|
143
|
+
): Promise<{
|
|
140
144
|
id: string;
|
|
141
145
|
security: Record<string, string[]>;
|
|
142
146
|
}> {
|
|
143
147
|
return this.put(`/${collectionId}/permissions`, {
|
|
144
|
-
payload: permissions
|
|
148
|
+
payload: permissions,
|
|
145
149
|
});
|
|
146
150
|
}
|
|
147
151
|
|
|
@@ -168,10 +172,8 @@ export class CollectionsApi extends ApiTopic {
|
|
|
168
172
|
propagateSharedProperties(collectionId: string): Promise<{
|
|
169
173
|
id: string;
|
|
170
174
|
message: string;
|
|
171
|
-
shared_properties: string[]
|
|
175
|
+
shared_properties: string[];
|
|
172
176
|
}> {
|
|
173
177
|
return this.post(`/${collectionId}/propagate-shared-props`);
|
|
174
178
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
179
|
}
|
package/src/store/CostApi.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiTopic, ClientBase } from '@vertesia/api-fetch-client';
|
|
2
|
-
import {
|
|
1
|
+
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
2
|
+
import type {
|
|
3
3
|
CostAnalyticsQuery,
|
|
4
4
|
CostAnalyticsResponse,
|
|
5
5
|
CostExportQuery,
|
|
@@ -19,9 +19,7 @@ export class CostApi extends ApiTopic {
|
|
|
19
19
|
* Returns cost breakdown by model/environment with pricing from billing export.
|
|
20
20
|
* Covers all inference types: direct, agent, embedding.
|
|
21
21
|
*/
|
|
22
|
-
getAnalytics(
|
|
23
|
-
query: CostAnalyticsQuery = {}
|
|
24
|
-
): Promise<CostAnalyticsResponse> {
|
|
22
|
+
getAnalytics(query: CostAnalyticsQuery = {}): Promise<CostAnalyticsResponse> {
|
|
25
23
|
return this.post('/analytics', { payload: query });
|
|
26
24
|
}
|
|
27
25
|
|
|
@@ -29,36 +27,28 @@ export class CostApi extends ApiTopic {
|
|
|
29
27
|
* Get platform-wide cost analytics across all customers.
|
|
30
28
|
* Requires Vertesia staff privileges. Defaults to group_by='account'.
|
|
31
29
|
*/
|
|
32
|
-
getGlobalAnalytics(
|
|
33
|
-
query: CostAnalyticsQuery = {}
|
|
34
|
-
): Promise<CostAnalyticsResponse> {
|
|
30
|
+
getGlobalAnalytics(query: CostAnalyticsQuery = {}): Promise<CostAnalyticsResponse> {
|
|
35
31
|
return this.post('/analytics/global', { payload: query });
|
|
36
32
|
}
|
|
37
33
|
|
|
38
34
|
/**
|
|
39
35
|
* Get current list prices and effective prices for the selected period.
|
|
40
36
|
*/
|
|
41
|
-
getModelPrices(
|
|
42
|
-
query: CostModelPricesQuery = {}
|
|
43
|
-
): Promise<ModelPriceComparisonResponse> {
|
|
37
|
+
getModelPrices(query: CostModelPricesQuery = {}): Promise<ModelPriceComparisonResponse> {
|
|
44
38
|
return this.get('/model-prices', { query: { ...query } });
|
|
45
39
|
}
|
|
46
40
|
|
|
47
41
|
/**
|
|
48
42
|
* Price a single interaction run or agent run.
|
|
49
43
|
*/
|
|
50
|
-
getRunPrice(
|
|
51
|
-
query: CostRunPriceQuery
|
|
52
|
-
): Promise<CostRunPriceResponse> {
|
|
44
|
+
getRunPrice(query: CostRunPriceQuery): Promise<CostRunPriceResponse> {
|
|
53
45
|
return this.post('/run-price', { payload: query });
|
|
54
46
|
}
|
|
55
47
|
|
|
56
48
|
/**
|
|
57
49
|
* Price a run and include the full model pricing catalog for comparison.
|
|
58
50
|
*/
|
|
59
|
-
getRunPriceComparison(
|
|
60
|
-
query: CostRunPriceQuery
|
|
61
|
-
): Promise<CostRunPriceResponse> {
|
|
51
|
+
getRunPriceComparison(query: CostRunPriceQuery): Promise<CostRunPriceResponse> {
|
|
62
52
|
return this.post('/run-price', { payload: { ...query, include_comparison_pricing: true } });
|
|
63
53
|
}
|
|
64
54
|
|
|
@@ -67,8 +57,13 @@ export class CostApi extends ApiTopic {
|
|
|
67
57
|
*/
|
|
68
58
|
getExportUrl(params?: CostExportQuery): string {
|
|
69
59
|
const searchParams = new URLSearchParams();
|
|
70
|
-
if (params?.from)
|
|
71
|
-
|
|
60
|
+
if (params?.from)
|
|
61
|
+
searchParams.set(
|
|
62
|
+
'from',
|
|
63
|
+
typeof params.from === 'number' ? new Date(params.from).toISOString() : params.from,
|
|
64
|
+
);
|
|
65
|
+
if (params?.to)
|
|
66
|
+
searchParams.set('to', typeof params.to === 'number' ? new Date(params.to).toISOString() : params.to);
|
|
72
67
|
if (params?.scope) searchParams.set('scope', params.scope);
|
|
73
68
|
if (params?.project_id) searchParams.set('project_id', params.project_id);
|
|
74
69
|
if (params?.workflow_id) searchParams.set('workflow_id', params.workflow_id);
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ApiTopic, ClientBase } from
|
|
1
|
+
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
2
2
|
import {
|
|
3
|
-
CreateDashboardPayload,
|
|
4
|
-
CreateDashboardSnapshotPayload,
|
|
5
|
-
Dashboard,
|
|
6
|
-
DashboardArchiveResult,
|
|
7
|
-
DashboardBulkArchiveResult,
|
|
8
|
-
DashboardBulkDeleteResult,
|
|
9
|
-
DashboardItem,
|
|
10
|
-
DashboardStatus,
|
|
11
|
-
DashboardVersion,
|
|
12
|
-
DashboardVersionItem,
|
|
13
|
-
DashboardVersioningStatusResponse,
|
|
3
|
+
type CreateDashboardPayload,
|
|
4
|
+
type CreateDashboardSnapshotPayload,
|
|
5
|
+
type Dashboard,
|
|
6
|
+
type DashboardArchiveResult,
|
|
7
|
+
type DashboardBulkArchiveResult,
|
|
8
|
+
type DashboardBulkDeleteResult,
|
|
9
|
+
type DashboardItem,
|
|
10
|
+
type DashboardStatus,
|
|
11
|
+
type DashboardVersion,
|
|
12
|
+
type DashboardVersionItem,
|
|
13
|
+
type DashboardVersioningStatusResponse,
|
|
14
14
|
DataStoreApiHeaders,
|
|
15
|
-
PromoteDashboardVersionPayload,
|
|
16
|
-
UpdateDashboardPayload,
|
|
17
|
-
} from
|
|
15
|
+
type PromoteDashboardVersionPayload,
|
|
16
|
+
type UpdateDashboardPayload,
|
|
17
|
+
} from '@vertesia/common';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Client API for managing Vega-based dashboards linked to data stores.
|
|
@@ -86,7 +86,7 @@ export class DashboardApi extends ApiTopic {
|
|
|
86
86
|
* ```
|
|
87
87
|
*/
|
|
88
88
|
create(payload: CreateDashboardPayload): Promise<Dashboard> {
|
|
89
|
-
return this.post(
|
|
89
|
+
return this.post('/', { payload, headers: this.storeHeaders() });
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
/**
|
|
@@ -153,7 +153,7 @@ export class DashboardApi extends ApiTopic {
|
|
|
153
153
|
*/
|
|
154
154
|
listVersions(
|
|
155
155
|
dashboardId: string,
|
|
156
|
-
options?: { snapshotsOnly?: boolean; limit?: number }
|
|
156
|
+
options?: { snapshotsOnly?: boolean; limit?: number },
|
|
157
157
|
): Promise<DashboardVersionItem[]> {
|
|
158
158
|
const params = new URLSearchParams();
|
|
159
159
|
if (options?.snapshotsOnly) params.set('snapshots_only', 'true');
|
|
@@ -180,10 +180,7 @@ export class DashboardApi extends ApiTopic {
|
|
|
180
180
|
* @param payload - Snapshot name and message
|
|
181
181
|
* @returns The created snapshot version
|
|
182
182
|
*/
|
|
183
|
-
createSnapshot(
|
|
184
|
-
dashboardId: string,
|
|
185
|
-
payload: CreateDashboardSnapshotPayload
|
|
186
|
-
): Promise<DashboardVersionItem> {
|
|
183
|
+
createSnapshot(dashboardId: string, payload: CreateDashboardSnapshotPayload): Promise<DashboardVersionItem> {
|
|
187
184
|
return this.post(`/${dashboardId}/versions`, { payload, headers: this.storeHeaders() });
|
|
188
185
|
}
|
|
189
186
|
|
|
@@ -199,9 +196,12 @@ export class DashboardApi extends ApiTopic {
|
|
|
199
196
|
promoteVersion(
|
|
200
197
|
dashboardId: string,
|
|
201
198
|
versionId: string,
|
|
202
|
-
payload?: PromoteDashboardVersionPayload
|
|
199
|
+
payload?: PromoteDashboardVersionPayload,
|
|
203
200
|
): Promise<Dashboard> {
|
|
204
|
-
return this.post(`/${dashboardId}/versions/${versionId}/promote`, {
|
|
201
|
+
return this.post(`/${dashboardId}/versions/${versionId}/promote`, {
|
|
202
|
+
payload: payload || {},
|
|
203
|
+
headers: this.storeHeaders(),
|
|
204
|
+
});
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
/**
|
|
@@ -211,10 +211,7 @@ export class DashboardApi extends ApiTopic {
|
|
|
211
211
|
* @param enabled - Whether versioning should be enabled
|
|
212
212
|
* @returns The updated versioning state
|
|
213
213
|
*/
|
|
214
|
-
setVersioningEnabled(
|
|
215
|
-
dashboardId: string,
|
|
216
|
-
enabled: boolean
|
|
217
|
-
): Promise<DashboardVersioningStatusResponse> {
|
|
214
|
+
setVersioningEnabled(dashboardId: string, enabled: boolean): Promise<DashboardVersioningStatusResponse> {
|
|
218
215
|
return this.put(`/${dashboardId}/versioning`, { payload: { enabled }, headers: this.storeHeaders() });
|
|
219
216
|
}
|
|
220
217
|
}
|
package/src/store/DataApi.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { ApiTopic, ClientBase } from
|
|
1
|
+
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
2
2
|
import {
|
|
3
|
-
AlterTablePayload,
|
|
4
|
-
BatchQueryResult,
|
|
5
|
-
CreateDataStorePayload,
|
|
6
|
-
CreateSnapshotPayload,
|
|
7
|
-
CreateTablesPayload,
|
|
8
|
-
DataSchema,
|
|
9
|
-
DataSchemaForAI,
|
|
10
|
-
|
|
11
|
-
DataStore,
|
|
3
|
+
type AlterTablePayload,
|
|
4
|
+
type BatchQueryResult,
|
|
5
|
+
type CreateDataStorePayload,
|
|
6
|
+
type CreateSnapshotPayload,
|
|
7
|
+
type CreateTablesPayload,
|
|
8
|
+
type DataSchema,
|
|
9
|
+
type DataSchemaForAI,
|
|
10
|
+
type DataStore,
|
|
12
11
|
DataStoreApiHeaders,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
12
|
+
type DataStoreArchiveResult,
|
|
13
|
+
type DataStoreDownloadInfo,
|
|
14
|
+
type DataStoreItem,
|
|
15
|
+
type DataStoreTableDetail,
|
|
16
|
+
type DataStoreTableDropResult,
|
|
17
|
+
type DataStoreVersion,
|
|
18
|
+
type DataTable,
|
|
19
|
+
type DataTableSummary,
|
|
20
|
+
type ImportDataPayload,
|
|
21
|
+
type ImportJob,
|
|
22
|
+
type QueryPayload,
|
|
23
|
+
type QueryResult,
|
|
24
|
+
type QueryValidationResult,
|
|
25
|
+
type UpdateSchemaPayload,
|
|
26
|
+
} from '@vertesia/common';
|
|
27
|
+
import { DashboardApi } from './DashboardApi.js';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Client API for managing versioned analytical data stores.
|
|
@@ -37,7 +37,7 @@ import { DashboardApi } from "./DashboardApi.js";
|
|
|
37
37
|
*/
|
|
38
38
|
export class DataApi extends ApiTopic {
|
|
39
39
|
constructor(parent: ClientBase) {
|
|
40
|
-
super(parent,
|
|
40
|
+
super(parent, '/api/v1/data');
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/**
|
|
@@ -56,7 +56,7 @@ export class DataApi extends ApiTopic {
|
|
|
56
56
|
* List all data stores in the project.
|
|
57
57
|
*/
|
|
58
58
|
list(): Promise<DataStoreItem[]> {
|
|
59
|
-
return this.get(
|
|
59
|
+
return this.get('/');
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/**
|
|
@@ -74,7 +74,7 @@ export class DataApi extends ApiTopic {
|
|
|
74
74
|
* ```
|
|
75
75
|
*/
|
|
76
76
|
create(payload: CreateDataStorePayload): Promise<DataStore> {
|
|
77
|
-
return this.post(
|
|
77
|
+
return this.post('/', { payload });
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/**
|
|
@@ -418,10 +418,7 @@ export class DataApi extends ApiTopic {
|
|
|
418
418
|
* }
|
|
419
419
|
* ```
|
|
420
420
|
*/
|
|
421
|
-
validateQueries(
|
|
422
|
-
id: string,
|
|
423
|
-
queries: Array<{ name: string; sql: string }>
|
|
424
|
-
): Promise<QueryValidationResult> {
|
|
421
|
+
validateQueries(id: string, queries: Array<{ name: string; sql: string }>): Promise<QueryValidationResult> {
|
|
425
422
|
return this.post(`/${id}/query/validate`, { payload: { queries }, headers: this.storeHeaders(id) });
|
|
426
423
|
}
|
|
427
424
|
|
package/src/store/EmailApi.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiTopic, ClientBase } from
|
|
2
|
-
import { EmailRouteData } from
|
|
1
|
+
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
2
|
+
import type { EmailRouteData } from '@vertesia/common';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Request payload for sending an email via the agent.
|
|
@@ -110,7 +110,7 @@ export interface CreateRouteRequest {
|
|
|
110
110
|
*/
|
|
111
111
|
export class EmailApi extends ApiTopic {
|
|
112
112
|
constructor(parent: ClientBase) {
|
|
113
|
-
super(parent,
|
|
113
|
+
super(parent, '/api/v1/email');
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
/**
|
|
@@ -118,7 +118,7 @@ export class EmailApi extends ApiTopic {
|
|
|
118
118
|
* Creates a route key if not provided, sends via Resend, and returns routing info.
|
|
119
119
|
*/
|
|
120
120
|
send(request: SendEmailRequest): Promise<SendEmailResponse> {
|
|
121
|
-
return this.post(
|
|
121
|
+
return this.post('/send', { payload: request });
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
/**
|
|
@@ -127,7 +127,7 @@ export class EmailApi extends ApiTopic {
|
|
|
127
127
|
* @deprecated Use getRoute() instead
|
|
128
128
|
*/
|
|
129
129
|
resolveRoute(routeKey: string): Promise<EmailRouteData> {
|
|
130
|
-
return this.post(
|
|
130
|
+
return this.post('/resolve-route', { payload: { route_key: routeKey } });
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
// ============================================================================
|
|
@@ -151,7 +151,7 @@ export class EmailApi extends ApiTopic {
|
|
|
151
151
|
* ```
|
|
152
152
|
*/
|
|
153
153
|
createRoute(request: CreateRouteRequest): Promise<CreateRouteResponse> {
|
|
154
|
-
return this.post(
|
|
154
|
+
return this.post('/routes', { payload: request });
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
/**
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { ApiTopic, ClientBase } from
|
|
2
|
-
import {
|
|
1
|
+
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
2
|
+
import type {
|
|
3
3
|
EmbeddingsStatusResponse,
|
|
4
4
|
GenericCommandResponse,
|
|
5
|
-
|
|
5
|
+
ProjectConfigurationEmbeddingEnablePayload,
|
|
6
6
|
SupportedEmbeddingTypes,
|
|
7
|
-
} from
|
|
7
|
+
} from '@vertesia/common';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* @since 0.52.0
|
|
11
11
|
*/
|
|
12
12
|
export class EmbeddingsApi extends ApiTopic {
|
|
13
|
-
|
|
14
|
-
constructor(parent: ClientBase, basePath: string = "/api/v1/embeddings") {
|
|
13
|
+
constructor(parent: ClientBase, basePath: string = '/api/v1/embeddings') {
|
|
15
14
|
super(parent, basePath);
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
async status(type: SupportedEmbeddingTypes): Promise<EmbeddingsStatusResponse> {
|
|
19
|
-
return this.get(type
|
|
18
|
+
return this.get(`${type}/status`);
|
|
20
19
|
}
|
|
21
20
|
|
|
22
|
-
async activate(
|
|
23
|
-
|
|
21
|
+
async activate(
|
|
22
|
+
type: SupportedEmbeddingTypes,
|
|
23
|
+
config: ProjectConfigurationEmbeddingEnablePayload,
|
|
24
|
+
): Promise<GenericCommandResponse> {
|
|
24
25
|
if (!config.environment) {
|
|
25
|
-
throw new Error(
|
|
26
|
+
throw new Error('Invalid configuration: select environment');
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
return this.post(type
|
|
29
|
+
return this.post(`${type}/enable`, { payload: config });
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
async disable(type: SupportedEmbeddingTypes): Promise<GenericCommandResponse> {
|
|
32
|
-
return this.post(type
|
|
33
|
+
return this.post(`${type}/disable`);
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
async recalculate(type: SupportedEmbeddingTypes): Promise<GenericCommandResponse> {
|
|
36
|
-
return this.post(type
|
|
37
|
+
return this.post(`${type}/recalculate`);
|
|
37
38
|
}
|
|
38
|
-
|
|
39
|
-
}
|
|
39
|
+
}
|