@vertesia/client 1.3.0 → 1.4.0-dev.20260615.042033Z
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/{types/IamApi.d.ts → IamApi.d.ts} +12 -3
- package/lib/IamApi.d.ts.map +1 -0
- package/lib/{esm/IamApi.js → IamApi.js} +18 -8
- 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 +54 -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 +24 -37
- 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 +35 -24
- 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 +110 -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 -63
- 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 -311
- 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.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.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
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertesia/client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0-dev.20260615.042033Z",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"
|
|
5
|
+
"main": "./lib/index.js",
|
|
6
|
+
"types": "./lib/index.d.ts",
|
|
6
7
|
"files": [
|
|
7
8
|
"lib",
|
|
8
9
|
"src",
|
|
@@ -10,38 +11,30 @@
|
|
|
10
11
|
],
|
|
11
12
|
"license": "Apache-2.0",
|
|
12
13
|
"devDependencies": {
|
|
13
|
-
"@
|
|
14
|
-
"@rollup/plugin-
|
|
15
|
-
"@rollup/plugin-
|
|
16
|
-
"@
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"ts-dual-module": "^0.6.3",
|
|
22
|
-
"typescript": "^6.0.2",
|
|
23
|
-
"typescript-eslint": "^8.58.1",
|
|
24
|
-
"vitest": "^4.0.16"
|
|
14
|
+
"@rollup/plugin-commonjs": "^29.0.3",
|
|
15
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
16
|
+
"@rollup/plugin-terser": "^1.0.0",
|
|
17
|
+
"@types/node": "^24.12.4",
|
|
18
|
+
"rollup": "^4.61.0",
|
|
19
|
+
"typescript": "^6.0.3",
|
|
20
|
+
"vitest": "^4.1.8",
|
|
21
|
+
"@vertesia/tsconfig": "0.1.0"
|
|
25
22
|
},
|
|
26
23
|
"dependencies": {
|
|
27
|
-
"eventsource": "^
|
|
24
|
+
"eventsource": "^4.1.0",
|
|
28
25
|
"@llumiverse/common": "1.3.0",
|
|
29
|
-
"@vertesia/
|
|
30
|
-
"@vertesia/
|
|
31
|
-
},
|
|
32
|
-
"ts_dual_module": {
|
|
33
|
-
"outDir": "lib"
|
|
26
|
+
"@vertesia/api-fetch-client": "1.4.0-dev.20260615.042033Z",
|
|
27
|
+
"@vertesia/common": "1.4.0-dev.20260615.042033Z"
|
|
34
28
|
},
|
|
35
29
|
"exports": {
|
|
36
30
|
".": {
|
|
37
|
-
"types": "./lib/
|
|
38
|
-
"
|
|
39
|
-
"require": "./lib/cjs/index.js"
|
|
31
|
+
"types": "./lib/index.d.ts",
|
|
32
|
+
"default": "./lib/index.js"
|
|
40
33
|
},
|
|
34
|
+
"./package.json": "./package.json",
|
|
41
35
|
"./node": {
|
|
42
|
-
"types": "./lib/
|
|
43
|
-
"
|
|
44
|
-
"require": "./lib/cjs/nodejs/index.js"
|
|
36
|
+
"types": "./lib/nodejs/index.d.ts",
|
|
37
|
+
"default": "./lib/nodejs/index.js"
|
|
45
38
|
}
|
|
46
39
|
},
|
|
47
40
|
"repository": {
|
|
@@ -58,17 +51,11 @@
|
|
|
58
51
|
"ai",
|
|
59
52
|
"typescript"
|
|
60
53
|
],
|
|
61
|
-
"typesVersions": {
|
|
62
|
-
"*": {
|
|
63
|
-
"node": [
|
|
64
|
-
"./lib/types/nodejs/index.d.ts"
|
|
65
|
-
]
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
54
|
"scripts": {
|
|
69
|
-
"lint": "
|
|
70
|
-
"build": "
|
|
71
|
-
"clean": "
|
|
72
|
-
"test": "vitest run"
|
|
55
|
+
"lint": "biome lint src",
|
|
56
|
+
"build": "rm -rf ./lib ./tsconfig.tsbuildinfo && tsc && pnpm exec rollup -c",
|
|
57
|
+
"clean": "rm -rf ./node_modules ./lib ./tsconfig.tsbuildinfo",
|
|
58
|
+
"test": "vitest run",
|
|
59
|
+
"typecheck:test": "tsc -p tsconfig.test.json --noEmit"
|
|
73
60
|
}
|
|
74
61
|
}
|
package/src/AccountApi.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ApiTopic, ClientBase } from
|
|
2
|
-
import {
|
|
1
|
+
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
2
|
+
import type {
|
|
3
3
|
Account,
|
|
4
4
|
AccountProjectsResponse,
|
|
5
|
-
GoogleProjectTokenResponse,
|
|
6
5
|
InviteAcceptanceResponse,
|
|
7
6
|
InviteDeclineResponse,
|
|
8
7
|
InviteUserRequestPayload,
|
|
@@ -14,12 +13,11 @@ import {
|
|
|
14
13
|
UpdateAccountPayload,
|
|
15
14
|
User,
|
|
16
15
|
UserInviteTokenData,
|
|
17
|
-
} from
|
|
16
|
+
} from '@vertesia/common';
|
|
18
17
|
|
|
19
18
|
export default class AccountApi extends ApiTopic {
|
|
20
|
-
|
|
21
19
|
constructor(parent: ClientBase) {
|
|
22
|
-
super(parent,
|
|
20
|
+
super(parent, '/api/v1/account');
|
|
23
21
|
}
|
|
24
22
|
|
|
25
23
|
/**
|
|
@@ -40,13 +38,13 @@ export default class AccountApi extends ApiTopic {
|
|
|
40
38
|
|
|
41
39
|
/**
|
|
42
40
|
* Get all projects for account
|
|
43
|
-
|
|
41
|
+
*/
|
|
44
42
|
projects(): Promise<ProjectRef[]> {
|
|
45
|
-
return this.get('/projects').then((res
|
|
43
|
+
return this.get<AccountProjectsResponse>('/projects').then((res) => res.data);
|
|
46
44
|
}
|
|
47
45
|
|
|
48
46
|
members(): Promise<User[]> {
|
|
49
|
-
return this.get('/members')
|
|
47
|
+
return this.get('/members');
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
/**
|
|
@@ -68,7 +66,7 @@ export default class AccountApi extends ApiTopic {
|
|
|
68
66
|
* @param type Filter for the type of invitation, either "project" or "account"
|
|
69
67
|
* @returns UserInviteTokenData[]
|
|
70
68
|
* */
|
|
71
|
-
listInvitation(type:
|
|
69
|
+
listInvitation(type: 'project' | 'account' = 'project'): Promise<TransientToken<UserInviteTokenData>[]> {
|
|
72
70
|
return this.get(`/invites/${type}`);
|
|
73
71
|
}
|
|
74
72
|
|
|
@@ -85,7 +83,7 @@ export default class AccountApi extends ApiTopic {
|
|
|
85
83
|
* @returns InviteDeclineResponse
|
|
86
84
|
* */
|
|
87
85
|
rejectInvite(id: string): Promise<InviteDeclineResponse> {
|
|
88
|
-
return this.
|
|
86
|
+
return this.del(`/invites/${id}`);
|
|
89
87
|
}
|
|
90
88
|
|
|
91
89
|
/**
|
|
@@ -95,17 +93,7 @@ export default class AccountApi extends ApiTopic {
|
|
|
95
93
|
return this.get('/onboarding');
|
|
96
94
|
}
|
|
97
95
|
|
|
98
|
-
/**
|
|
99
|
-
* Get a google auth token for the current project.
|
|
100
|
-
* This token can be used to access exposed google cloud services
|
|
101
|
-
* @returns
|
|
102
|
-
*/
|
|
103
|
-
getGoogleToken(): Promise<GoogleProjectTokenResponse> {
|
|
104
|
-
return this.get('/google-token');
|
|
105
|
-
}
|
|
106
|
-
|
|
107
96
|
getStripeBillingStatus(): Promise<StripeBillingStatusResponse> {
|
|
108
|
-
return this.get('/stripe-billing-status')
|
|
97
|
+
return this.get('/stripe-billing-status');
|
|
109
98
|
}
|
|
110
|
-
|
|
111
99
|
}
|
package/src/AccountsApi.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
2
|
+
import type { Account } from '@vertesia/common';
|
|
3
3
|
|
|
4
4
|
export default class AccountsApi extends ApiTopic {
|
|
5
|
-
|
|
6
5
|
constructor(parent: ClientBase) {
|
|
7
|
-
super(parent,
|
|
6
|
+
super(parent, '/api/v1/accounts');
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
create(name: string): Promise<Account> {
|
|
@@ -14,9 +13,4 @@ export default class AccountsApi extends ApiTopic {
|
|
|
14
13
|
list(): Promise<Account[]> {
|
|
15
14
|
return this.get('/');
|
|
16
15
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
16
|
}
|
package/src/AnalyticsApi.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { ApiTopic, ClientBase } from
|
|
2
|
-
import { DateRangeQuery, RunsAnalyticsSummary, TokenUsageSummary } from
|
|
1
|
+
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
2
|
+
import type { DateRangeQuery, RunsAnalyticsSummary, TokenUsageSummary } from '@vertesia/common';
|
|
3
3
|
|
|
4
4
|
export default class AnalyticsApi extends ApiTopic {
|
|
5
|
-
|
|
6
5
|
constructor(parent: ClientBase) {
|
|
7
|
-
super(parent,
|
|
6
|
+
super(parent, '/api/v1/analytics');
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
runsSummary(query?: DateRangeQuery, environmentId?: string): Promise<RunsAnalyticsSummary> {
|
|
@@ -13,7 +12,7 @@ export default class AnalyticsApi extends ApiTopic {
|
|
|
13
12
|
if (query?.end) params.set('end', query.end);
|
|
14
13
|
if (environmentId) params.set('environment', environmentId);
|
|
15
14
|
const qs = params.toString();
|
|
16
|
-
return this.get(
|
|
15
|
+
return this.get(`/runs/summary${qs ? `?${qs}` : ''}`);
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
runsTimeSeries(query?: DateRangeQuery, environmentId?: string): Promise<Array<{ timestamp: Date; count: number }>> {
|
|
@@ -22,7 +21,7 @@ export default class AnalyticsApi extends ApiTopic {
|
|
|
22
21
|
if (query?.end) params.set('end', query.end);
|
|
23
22
|
if (environmentId) params.set('environment', environmentId);
|
|
24
23
|
const qs = params.toString();
|
|
25
|
-
return this.get(
|
|
24
|
+
return this.get(`/runs/time-series${qs ? `?${qs}` : ''}`);
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
runsTokenUsage(query?: DateRangeQuery, environmentId?: string): Promise<TokenUsageSummary> {
|
|
@@ -31,7 +30,6 @@ export default class AnalyticsApi extends ApiTopic {
|
|
|
31
30
|
if (query?.end) params.set('end', query.end);
|
|
32
31
|
if (environmentId) params.set('environment', environmentId);
|
|
33
32
|
const qs = params.toString();
|
|
34
|
-
return this.get(
|
|
33
|
+
return this.get(`/runs/token-usage${qs ? `?${qs}` : ''}`);
|
|
35
34
|
}
|
|
36
|
-
|
|
37
35
|
}
|
package/src/ApiKeysApi.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
2
|
+
import type {
|
|
3
|
+
ApiKey,
|
|
4
|
+
ApiKeyReadResponse,
|
|
5
|
+
ApiKeyWithValue,
|
|
6
|
+
AuthTokenResponse,
|
|
7
|
+
CreateOrUpdateApiKeyPayload,
|
|
8
|
+
CreatePublicKeyPayload,
|
|
9
|
+
DeleteOperationResult,
|
|
10
|
+
} from '@vertesia/common';
|
|
3
11
|
|
|
4
12
|
export class ApiKeysApi extends ApiTopic {
|
|
5
13
|
constructor(parent: ClientBase) {
|
package/src/AppsApi.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { ApiTopic, ClientBase, ServerError } from
|
|
1
|
+
import { ApiTopic, type ClientBase, type ServerError } from '@vertesia/api-fetch-client';
|
|
2
2
|
import type {
|
|
3
|
+
ActivateAppVersionResponse,
|
|
4
|
+
AppBuildProgress,
|
|
5
|
+
AppDeleteSummary,
|
|
6
|
+
AppInspectionResult,
|
|
3
7
|
AppInstallation,
|
|
4
8
|
AppInstallationKind,
|
|
5
9
|
AppInstallationListEntry,
|
|
@@ -7,19 +11,29 @@ import type {
|
|
|
7
11
|
AppInstallationWithManifest,
|
|
8
12
|
AppManifest,
|
|
9
13
|
AppManifestData,
|
|
14
|
+
AppPackage,
|
|
15
|
+
AppPackageScope,
|
|
10
16
|
AppToolCollection,
|
|
17
|
+
AppVersionListQuery,
|
|
18
|
+
AppVersionRecord,
|
|
11
19
|
CountResult,
|
|
12
20
|
ProjectRef,
|
|
13
21
|
RequireAtLeastOne,
|
|
22
|
+
StartAppBuildRequest,
|
|
23
|
+
StartAppBuildResponse,
|
|
14
24
|
UpdateAppInstallationToolAllowlistPayload,
|
|
25
|
+
UpsertAppVersionRequest,
|
|
15
26
|
ValidateUrlRequest,
|
|
16
27
|
ValidateUrlResponse,
|
|
17
|
-
} from
|
|
28
|
+
} from '@vertesia/common';
|
|
18
29
|
|
|
19
|
-
export
|
|
30
|
+
export interface OrphanedAppInstallation extends Omit<AppInstallation, 'manifest'> {
|
|
31
|
+
manifest: null;
|
|
32
|
+
}
|
|
20
33
|
|
|
34
|
+
export default class AppsApi extends ApiTopic {
|
|
21
35
|
constructor(parent: ClientBase) {
|
|
22
|
-
super(parent,
|
|
36
|
+
super(parent, '/api/v1/apps');
|
|
23
37
|
}
|
|
24
38
|
|
|
25
39
|
create(manifest: AppManifestData): Promise<AppManifest> {
|
|
@@ -30,13 +44,96 @@ export default class AppsApi extends ApiTopic {
|
|
|
30
44
|
return this.put(`/${id}`, { payload: manifest });
|
|
31
45
|
}
|
|
32
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Preview what the cascade delete would remove. Calls DELETE without confirm,
|
|
49
|
+
* which the server treats as a dry-run and returns counts + paths.
|
|
50
|
+
*/
|
|
51
|
+
previewDelete(id: string): Promise<AppDeleteSummary> {
|
|
52
|
+
return this.del(`/${id}`);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Cascade-delete an app and everything attached to it (versions,
|
|
57
|
+
* installations + ACEs, git repo on the app-git server). Pass through
|
|
58
|
+
* the dry-run summary; confirm flag is required server-side.
|
|
59
|
+
*/
|
|
60
|
+
deleteApp(id: string): Promise<AppDeleteSummary> {
|
|
61
|
+
return this.del(`/${id}`, { query: { confirm: 'true' } });
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
listVersions(query?: AppVersionListQuery): Promise<AppVersionRecord[]> {
|
|
65
|
+
return this.get('/versions', {
|
|
66
|
+
query: {
|
|
67
|
+
...(query?.app_id && { app_id: query.app_id }),
|
|
68
|
+
...(query?.kind && { kind: query.kind }),
|
|
69
|
+
...(query?.include_expired !== undefined && { include_expired: query.include_expired }),
|
|
70
|
+
...(query?.limit !== undefined && { limit: query.limit }),
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
upsertVersion(payload: UpsertAppVersionRequest): Promise<AppVersionRecord> {
|
|
76
|
+
return this.post('/versions', { payload });
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
getVersion(recordId: string): Promise<AppVersionRecord> {
|
|
80
|
+
return this.get(`/versions/${recordId}`);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
activateVersion(recordId: string): Promise<ActivateAppVersionResponse> {
|
|
84
|
+
return this.post(`/versions/${recordId}/activate`);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
startBuild(appIdOrRecordId: string, payload: StartAppBuildRequest): Promise<StartAppBuildResponse> {
|
|
88
|
+
return this.post(`/${encodeURIComponent(appIdOrRecordId)}/builds`, { payload });
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
getBuildProgress(appIdOrRecordId: string, workflowId: string, runId: string): Promise<AppBuildProgress> {
|
|
92
|
+
return this.get(
|
|
93
|
+
`/${encodeURIComponent(appIdOrRecordId)}/builds/${encodeURIComponent(workflowId)}/${encodeURIComponent(runId)}/progress`,
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
33
97
|
/**
|
|
34
98
|
* Get the list if tools provided by the given app.
|
|
35
|
-
* @param appId
|
|
36
|
-
* @returns
|
|
99
|
+
* @param appId
|
|
100
|
+
* @returns
|
|
37
101
|
*/
|
|
38
102
|
listAppInstallationTools(appInstallId: string): Promise<AppToolCollection[]> {
|
|
39
|
-
return this.get(`/installations/${appInstallId}/tools`)
|
|
103
|
+
return this.get(`/installations/${appInstallId}/tools`);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Inspect an app's registration: resolved manifest state, what the published
|
|
108
|
+
* package actually exposes per capability, endpoint reachability, install
|
|
109
|
+
* state, and diagnostics. Use this to verify what an app registers vs what it
|
|
110
|
+
* declares, instead of inferring it from failed object/import calls.
|
|
111
|
+
*/
|
|
112
|
+
inspect(appIdOrName: string): Promise<AppInspectionResult> {
|
|
113
|
+
return this.get(`/${appIdOrName}/inspect`);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Get package capabilities exposed by an app installation.
|
|
118
|
+
*/
|
|
119
|
+
getAppInstallationPackage(
|
|
120
|
+
appInstallId: string,
|
|
121
|
+
scope: AppPackageScope | AppPackageScope[] = 'all',
|
|
122
|
+
): Promise<AppPackage> {
|
|
123
|
+
return this.get(`/installations/${appInstallId}/package`, {
|
|
124
|
+
query: {
|
|
125
|
+
scope: Array.isArray(scope) ? scope.join(',') : scope,
|
|
126
|
+
},
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Fetch the always-on system tools package served by studio-server.
|
|
132
|
+
* Tools and skills (`learn_*`) are returned on separate fields so UIs can
|
|
133
|
+
* render them distinctly. URLs are already resolved per deployment.
|
|
134
|
+
*/
|
|
135
|
+
getSystemToolsPackage(scope: string = 'tools'): Promise<AppPackage> {
|
|
136
|
+
return this.get('/studio-tools/package', { query: { scope } });
|
|
40
137
|
}
|
|
41
138
|
|
|
42
139
|
/**
|
|
@@ -63,7 +160,7 @@ export default class AppsApi extends ApiTopic {
|
|
|
63
160
|
settings,
|
|
64
161
|
oauth_params: oauthParams,
|
|
65
162
|
oauth_provider_params: oauthProviderParams,
|
|
66
|
-
} satisfies AppInstallationPayload
|
|
163
|
+
} satisfies AppInstallationPayload,
|
|
67
164
|
});
|
|
68
165
|
}
|
|
69
166
|
|
|
@@ -78,35 +175,39 @@ export default class AppsApi extends ApiTopic {
|
|
|
78
175
|
|
|
79
176
|
/**
|
|
80
177
|
* get an app unstallation given its name or null if the app is not installed
|
|
81
|
-
* @returns
|
|
178
|
+
* @returns
|
|
82
179
|
*/
|
|
83
180
|
getAppInstallationByName(appName: string): Promise<AppInstallationWithManifest | null> {
|
|
84
|
-
return this.get(`/installations/name/${appName}`).catch((err: ServerError) => {
|
|
181
|
+
return this.get<AppInstallationWithManifest>(`/installations/name/${appName}`).catch((err: ServerError) => {
|
|
85
182
|
if (err.status === 404) {
|
|
86
183
|
return null;
|
|
87
184
|
} else {
|
|
88
185
|
throw err;
|
|
89
186
|
}
|
|
90
|
-
})
|
|
187
|
+
});
|
|
91
188
|
}
|
|
92
189
|
|
|
93
190
|
/**
|
|
94
191
|
* Get the project refs where the application is visible by the current user.
|
|
95
192
|
* The application is specified either by id or by name.
|
|
96
|
-
* @param param0
|
|
97
|
-
* @returns
|
|
193
|
+
* @param param0
|
|
194
|
+
* @returns
|
|
98
195
|
*/
|
|
99
|
-
getAppInstallationProjects(
|
|
196
|
+
getAppInstallationProjects(
|
|
197
|
+
app: RequireAtLeastOne<{ id?: string; name?: string }, 'id' | 'name'>,
|
|
198
|
+
): Promise<ProjectRef[]> {
|
|
100
199
|
if (!app.id && !app.name) {
|
|
101
|
-
throw new Error(
|
|
102
|
-
}
|
|
103
|
-
const query = app.id ? {
|
|
104
|
-
id: app.id
|
|
105
|
-
} : {
|
|
106
|
-
name: app.name
|
|
200
|
+
throw new Error('Invalid arguments: appId or appName must be specified');
|
|
107
201
|
}
|
|
108
|
-
|
|
109
|
-
|
|
202
|
+
const query = app.id
|
|
203
|
+
? {
|
|
204
|
+
id: app.id,
|
|
205
|
+
}
|
|
206
|
+
: {
|
|
207
|
+
name: app.name,
|
|
208
|
+
};
|
|
209
|
+
return this.get('/installations/projects', {
|
|
210
|
+
query,
|
|
110
211
|
});
|
|
111
212
|
}
|
|
112
213
|
|
|
@@ -118,7 +219,7 @@ export default class AppsApi extends ApiTopic {
|
|
|
118
219
|
return this.get('/installations', {
|
|
119
220
|
query: {
|
|
120
221
|
kind,
|
|
121
|
-
}
|
|
222
|
+
},
|
|
122
223
|
});
|
|
123
224
|
}
|
|
124
225
|
|
|
@@ -127,7 +228,7 @@ export default class AppsApi extends ApiTopic {
|
|
|
127
228
|
* including orphaned installations
|
|
128
229
|
* This requires project admin since access is not checked on the insytallations.
|
|
129
230
|
* For a user level list of available installations (with user permission check) use getInstalledApps
|
|
130
|
-
* @returns
|
|
231
|
+
* @returns
|
|
131
232
|
*/
|
|
132
233
|
getAllAppInstallations(): Promise<AppInstallationListEntry[]> {
|
|
133
234
|
return this.get('/installations/all');
|
|
@@ -144,8 +245,12 @@ export default class AppsApi extends ApiTopic {
|
|
|
144
245
|
return this.put(`/installations/settings/${settingsPayload.app_id}`, {
|
|
145
246
|
payload: {
|
|
146
247
|
app_id: settingsPayload.app_id,
|
|
147
|
-
settings: settingsPayload.settings
|
|
148
|
-
|
|
248
|
+
settings: settingsPayload.settings,
|
|
249
|
+
// Forward access_control when the caller provided it (including explicit null to
|
|
250
|
+
// clear an override). The server uses `'access_control' in payload` to distinguish
|
|
251
|
+
// "leave unchanged" from "clear", so only spread the key when it was supplied.
|
|
252
|
+
...('access_control' in settingsPayload ? { access_control: settingsPayload.access_control } : {}),
|
|
253
|
+
} satisfies AppInstallationPayload,
|
|
149
254
|
});
|
|
150
255
|
}
|
|
151
256
|
|
|
@@ -166,5 +271,4 @@ export default class AppsApi extends ApiTopic {
|
|
|
166
271
|
validateUrl(url: string): Promise<ValidateUrlResponse> {
|
|
167
272
|
return this.post('/validate-url', { payload: { url } satisfies ValidateUrlRequest });
|
|
168
273
|
}
|
|
169
|
-
|
|
170
274
|
}
|
package/src/AuditTrailApi.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ApiTopic, ClientBase } from '@vertesia/api-fetch-client';
|
|
1
|
+
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
2
2
|
import type { AuditTrailQuery, AuditTrailResponse } from '@vertesia/common';
|
|
3
3
|
|
|
4
4
|
export default class AuditTrailApi extends ApiTopic {
|
|
5
|
-
|
|
6
5
|
constructor(parent: ClientBase) {
|
|
7
6
|
super(parent, '/api/v1/audit-trail');
|
|
8
7
|
}
|
|
@@ -15,13 +14,14 @@ export default class AuditTrailApi extends ApiTopic {
|
|
|
15
14
|
if (query?.principalId) params.set('principalId', query.principalId);
|
|
16
15
|
if (query?.principalType) params.set('principalType', query.principalType);
|
|
17
16
|
if (query?.effectivePrincipalId) params.set('effectivePrincipalId', query.effectivePrincipalId);
|
|
18
|
-
if (query?.hasEffectivePrincipal !== undefined)
|
|
17
|
+
if (query?.hasEffectivePrincipal !== undefined)
|
|
18
|
+
params.set('hasEffectivePrincipal', String(query.hasEffectivePrincipal));
|
|
19
19
|
if (query?.projectId) params.set('projectId', query.projectId);
|
|
20
20
|
if (query?.from) params.set('from', query.from);
|
|
21
21
|
if (query?.to) params.set('to', query.to);
|
|
22
22
|
if (query?.limit) params.set('limit', String(query.limit));
|
|
23
23
|
if (query?.offset) params.set('offset', String(query.offset));
|
|
24
24
|
const qs = params.toString();
|
|
25
|
-
return this.get(
|
|
25
|
+
return this.get(`/${qs ? `?${qs}` : ''}`);
|
|
26
26
|
}
|
|
27
27
|
}
|
package/src/CommandsApi.ts
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { ApiTopic, ClientBase } from
|
|
2
|
-
import { GenericCommandResponse } from
|
|
3
|
-
|
|
1
|
+
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
2
|
+
import type { GenericCommandResponse } from '@vertesia/common';
|
|
4
3
|
|
|
5
4
|
/**
|
|
6
5
|
* Various utility commands
|
|
7
6
|
*/
|
|
8
7
|
|
|
9
8
|
export default class CommandsApi extends ApiTopic {
|
|
10
|
-
|
|
11
9
|
constructor(parent: ClientBase) {
|
|
12
|
-
super(parent,
|
|
10
|
+
super(parent, '/api/v1/commands');
|
|
13
11
|
}
|
|
14
12
|
|
|
15
13
|
async isNamespaceAvailable(name: string): Promise<boolean> {
|
|
16
|
-
return this.get(`/namespaces/${name}/is_available`).then(
|
|
14
|
+
return this.get<{ available: boolean }>(`/namespaces/${name}/is_available`).then(
|
|
15
|
+
(response) => response.available,
|
|
16
|
+
);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
async initSamples(): Promise<GenericCommandResponse> {
|
|
20
|
-
return this.post(
|
|
20
|
+
return this.post('/onboarding/init-samples');
|
|
21
21
|
}
|
|
22
|
-
|
|
23
22
|
}
|
package/src/EnvironmentsApi.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import type { AIModel, ModelSearchPayload } from '@llumiverse/common';
|
|
2
|
+
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
3
|
+
import type {
|
|
4
|
+
EmbeddingsApiRequest,
|
|
5
|
+
EmbeddingsApiResult,
|
|
4
6
|
ExecutionEnvironment,
|
|
5
7
|
ExecutionEnvironmentCreatePayload,
|
|
6
8
|
ExecutionEnvironmentRef,
|
|
@@ -8,12 +10,12 @@ import {
|
|
|
8
10
|
LoadBalancingEnvConfig,
|
|
9
11
|
MediatorEnvConfig,
|
|
10
12
|
MigrateInteractionsPayload,
|
|
11
|
-
MigrateInteractionsResult
|
|
12
|
-
} from
|
|
13
|
+
MigrateInteractionsResult,
|
|
14
|
+
} from '@vertesia/common';
|
|
13
15
|
|
|
14
16
|
export default class EnvironmentsApi extends ApiTopic {
|
|
15
17
|
constructor(parent: ClientBase) {
|
|
16
|
-
super(parent,
|
|
18
|
+
super(parent, '/api/v1/environments');
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
/**
|
|
@@ -28,17 +30,17 @@ export default class EnvironmentsApi extends ApiTopic {
|
|
|
28
30
|
|
|
29
31
|
create(payload: ExecutionEnvironmentCreatePayload): Promise<ExecutionEnvironment> {
|
|
30
32
|
return this.post('/', {
|
|
31
|
-
payload
|
|
33
|
+
payload,
|
|
32
34
|
});
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
retrieve(id: string): Promise<ExecutionEnvironment> {
|
|
36
|
-
return this.get(
|
|
38
|
+
return this.get(`/${id}`);
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
update(id: string, payload: ExecutionEnvironmentUpdatePayload): Promise<ExecutionEnvironment> {
|
|
40
|
-
return this.put(
|
|
41
|
-
payload
|
|
42
|
+
return this.put(`/${id}`, {
|
|
43
|
+
payload,
|
|
42
44
|
});
|
|
43
45
|
}
|
|
44
46
|
|
|
@@ -51,18 +53,21 @@ export default class EnvironmentsApi extends ApiTopic {
|
|
|
51
53
|
* @param payload
|
|
52
54
|
* @returns
|
|
53
55
|
*/
|
|
54
|
-
updateConfig(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
updateConfig(
|
|
57
|
+
id: string,
|
|
58
|
+
payload: {
|
|
59
|
+
enabled_models?: AIModel[];
|
|
60
|
+
config?: MediatorEnvConfig | LoadBalancingEnvConfig;
|
|
61
|
+
},
|
|
62
|
+
): Promise<ExecutionEnvironment> {
|
|
63
|
+
return this.put(`/${id}/config`, {
|
|
64
|
+
payload,
|
|
60
65
|
});
|
|
61
66
|
}
|
|
62
67
|
|
|
63
68
|
listModels(id: string, payload?: ModelSearchPayload): Promise<AIModel[]> {
|
|
64
|
-
return this.get(
|
|
65
|
-
query: payload ? { ...payload } : undefined
|
|
69
|
+
return this.get(`/${id}/models`, {
|
|
70
|
+
query: payload ? { ...payload } : undefined,
|
|
66
71
|
});
|
|
67
72
|
}
|
|
68
73
|
|
|
@@ -70,9 +75,9 @@ export default class EnvironmentsApi extends ApiTopic {
|
|
|
70
75
|
return this.get(`/${id}/trainable-models`);
|
|
71
76
|
}
|
|
72
77
|
|
|
73
|
-
embeddings(id: string, payload
|
|
74
|
-
return this.post(
|
|
75
|
-
payload
|
|
78
|
+
embeddings(id: string, payload: EmbeddingsApiRequest): Promise<EmbeddingsApiResult> {
|
|
79
|
+
return this.post(`/${id}/embeddings`, {
|
|
80
|
+
payload,
|
|
76
81
|
});
|
|
77
82
|
}
|
|
78
83
|
|
|
@@ -87,8 +92,7 @@ export default class EnvironmentsApi extends ApiTopic {
|
|
|
87
92
|
*/
|
|
88
93
|
migrateInteractions(payload: MigrateInteractionsPayload): Promise<MigrateInteractionsResult> {
|
|
89
94
|
return this.post(`/migrate-interactions`, {
|
|
90
|
-
payload
|
|
95
|
+
payload,
|
|
91
96
|
});
|
|
92
97
|
}
|
|
93
|
-
|
|
94
98
|
}
|