@vertesia/client 1.1.1-dev.20260505.163000Z → 1.3.0-dev.20260620.061059Z
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -0
- package/lib/{types/AccountApi.d.ts → AccountApi.d.ts} +5 -10
- package/lib/AccountApi.d.ts.map +1 -0
- package/lib/{esm/AccountApi.js → AccountApi.js} +5 -13
- package/lib/AccountApi.js.map +1 -0
- package/lib/{types/AccountsApi.d.ts → AccountsApi.d.ts} +3 -2
- package/lib/AccountsApi.d.ts.map +1 -0
- package/lib/{esm/AccountsApi.js → AccountsApi.js} +2 -2
- package/lib/AccountsApi.js.map +1 -0
- package/lib/{types/AnalyticsApi.d.ts → AnalyticsApi.d.ts} +3 -2
- package/lib/AnalyticsApi.d.ts.map +1 -0
- package/lib/{esm/AnalyticsApi.js → AnalyticsApi.js} +5 -5
- package/lib/AnalyticsApi.js.map +1 -0
- package/lib/{types/ApiKeysApi.d.ts → ApiKeysApi.d.ts} +3 -2
- package/lib/ApiKeysApi.d.ts.map +1 -0
- package/lib/ApiKeysApi.js.map +1 -0
- package/lib/{types/AppsApi.d.ts → AppsApi.d.ts} +40 -2
- package/lib/AppsApi.d.ts.map +1 -0
- package/lib/{esm/AppsApi.js → AppsApi.js} +87 -14
- package/lib/AppsApi.js.map +1 -0
- package/lib/{types/AuditTrailApi.d.ts → AuditTrailApi.d.ts} +2 -1
- package/lib/AuditTrailApi.d.ts.map +1 -0
- package/lib/{esm/AuditTrailApi.js → AuditTrailApi.js} +1 -1
- package/lib/AuditTrailApi.js.map +1 -0
- package/lib/{types/CommandsApi.d.ts → CommandsApi.d.ts} +3 -2
- package/lib/CommandsApi.d.ts.map +1 -0
- package/lib/{esm/CommandsApi.js → CommandsApi.js} +3 -3
- package/lib/CommandsApi.js.map +1 -0
- package/lib/{types/EnvironmentsApi.d.ts → EnvironmentsApi.d.ts} +5 -4
- package/lib/EnvironmentsApi.d.ts.map +1 -0
- package/lib/{esm/EnvironmentsApi.js → EnvironmentsApi.js} +13 -13
- package/lib/EnvironmentsApi.js.map +1 -0
- package/lib/{types/GroupsApi.d.ts → GroupsApi.d.ts} +3 -2
- package/lib/GroupsApi.d.ts.map +1 -0
- package/lib/{esm/GroupsApi.js → GroupsApi.js} +8 -8
- package/lib/GroupsApi.js.map +1 -0
- package/lib/IamApi.d.ts +58 -0
- package/lib/IamApi.d.ts.map +1 -0
- package/lib/IamApi.js +76 -0
- package/lib/IamApi.js.map +1 -0
- package/lib/{types/InteractionBase.d.ts → InteractionBase.d.ts} +6 -5
- package/lib/InteractionBase.d.ts.map +1 -0
- package/lib/{esm/InteractionBase.js → InteractionBase.js} +4 -4
- package/lib/InteractionBase.js.map +1 -0
- package/lib/{types/InteractionCatalogApi.d.ts → InteractionCatalogApi.d.ts} +3 -2
- package/lib/InteractionCatalogApi.d.ts.map +1 -0
- package/lib/{esm/InteractionCatalogApi.js → InteractionCatalogApi.js} +12 -12
- package/lib/InteractionCatalogApi.js.map +1 -0
- package/lib/{types/InteractionOutput.d.ts → InteractionOutput.d.ts} +13 -12
- package/lib/InteractionOutput.d.ts.map +1 -0
- package/lib/{esm/InteractionOutput.js → InteractionOutput.js} +22 -25
- package/lib/InteractionOutput.js.map +1 -0
- package/lib/{types/InteractionResult.example.d.ts → InteractionResult.example.d.ts} +1 -0
- package/lib/InteractionResult.example.d.ts.map +1 -0
- package/lib/{esm/InteractionResult.example.js → InteractionResult.example.js} +4 -4
- package/lib/InteractionResult.example.js.map +1 -0
- package/lib/{types/InteractionsApi.d.ts → InteractionsApi.d.ts} +17 -6
- package/lib/InteractionsApi.d.ts.map +1 -0
- package/lib/{esm/InteractionsApi.js → InteractionsApi.js} +45 -28
- package/lib/InteractionsApi.js.map +1 -0
- package/lib/{types/OAuthClientsApi.d.ts → OAuthClientsApi.d.ts} +4 -2
- package/lib/OAuthClientsApi.d.ts.map +1 -0
- package/lib/{esm/OAuthClientsApi.js → OAuthClientsApi.js} +3 -0
- package/lib/OAuthClientsApi.js.map +1 -0
- package/lib/{types/OAuthGrantsApi.d.ts → OAuthGrantsApi.d.ts} +2 -1
- package/lib/OAuthGrantsApi.d.ts.map +1 -0
- package/lib/OAuthGrantsApi.js.map +1 -0
- package/lib/{types/OAuthProvidersApi.d.ts → OAuthProvidersApi.d.ts} +3 -2
- package/lib/OAuthProvidersApi.d.ts.map +1 -0
- package/lib/OAuthProvidersApi.js.map +1 -0
- package/lib/OAuthServerApi.d.ts +19 -0
- package/lib/OAuthServerApi.d.ts.map +1 -0
- package/lib/OAuthServerApi.js +48 -0
- package/lib/OAuthServerApi.js.map +1 -0
- package/lib/{types/ProjectsApi.d.ts → ProjectsApi.d.ts} +8 -5
- package/lib/ProjectsApi.d.ts.map +1 -0
- package/lib/{esm/ProjectsApi.js → ProjectsApi.js} +21 -12
- package/lib/ProjectsApi.js.map +1 -0
- package/lib/{types/PromptsApi.d.ts → PromptsApi.d.ts} +17 -9
- package/lib/PromptsApi.d.ts.map +1 -0
- package/lib/{esm/PromptsApi.js → PromptsApi.js} +16 -18
- package/lib/PromptsApi.js.map +1 -0
- package/lib/RefsApi.d.ts +7 -0
- package/lib/RefsApi.d.ts.map +1 -0
- package/lib/{esm/RefsApi.js → RefsApi.js} +2 -2
- package/lib/RefsApi.js.map +1 -0
- package/lib/{types/RemoteMcpConnectionsApi.d.ts → RemoteMcpConnectionsApi.d.ts} +3 -2
- package/lib/RemoteMcpConnectionsApi.d.ts.map +1 -0
- package/lib/{esm/RemoteMcpConnectionsApi.js → RemoteMcpConnectionsApi.js} +3 -3
- package/lib/RemoteMcpConnectionsApi.js.map +1 -0
- package/lib/{types/RunsApi.d.ts → RunsApi.d.ts} +11 -7
- package/lib/RunsApi.d.ts.map +1 -0
- package/lib/{esm/RunsApi.js → RunsApi.js} +14 -12
- package/lib/RunsApi.js.map +1 -0
- package/lib/SecretsApi.d.ts +18 -0
- package/lib/SecretsApi.d.ts.map +1 -0
- package/lib/SecretsApi.js +30 -0
- package/lib/SecretsApi.js.map +1 -0
- package/lib/{types/SkillsApi.d.ts → SkillsApi.d.ts} +3 -2
- package/lib/SkillsApi.d.ts.map +1 -0
- package/lib/{esm/SkillsApi.js → SkillsApi.js} +3 -3
- package/lib/SkillsApi.js.map +1 -0
- package/lib/{types/StreamSource.d.ts → StreamSource.d.ts} +1 -0
- package/lib/StreamSource.d.ts.map +1 -0
- package/lib/StreamSource.js.map +1 -0
- package/lib/ToolsApi.d.ts +36 -0
- package/lib/ToolsApi.d.ts.map +1 -0
- package/lib/ToolsApi.js +46 -0
- package/lib/ToolsApi.js.map +1 -0
- package/lib/{types/TrainingApi.d.ts → TrainingApi.d.ts} +7 -6
- package/lib/TrainingApi.d.ts.map +1 -0
- package/lib/TrainingApi.js +51 -0
- package/lib/TrainingApi.js.map +1 -0
- package/lib/{types/UsersApi.d.ts → UsersApi.d.ts} +3 -2
- package/lib/UsersApi.d.ts.map +1 -0
- package/lib/{esm/UsersApi.js → UsersApi.js} +3 -3
- package/lib/UsersApi.js.map +1 -0
- package/lib/{types/client.d.ts → client.d.ts} +55 -27
- package/lib/client.d.ts.map +1 -0
- package/lib/{esm/client.js → client.js} +113 -61
- package/lib/client.js.map +1 -0
- package/lib/{types/execute.d.ts → execute.d.ts} +5 -4
- package/lib/execute.d.ts.map +1 -0
- package/lib/{esm/execute.js → execute.js} +29 -11
- package/lib/execute.js.map +1 -0
- package/lib/{types/index.d.ts → index.d.ts} +9 -8
- package/lib/index.d.ts.map +1 -0
- package/lib/{esm/index.js → index.js} +4 -2
- package/lib/index.js.map +1 -0
- package/lib/{types/nodejs → nodejs}/NodeStreamSource.d.ts +3 -2
- package/lib/nodejs/NodeStreamSource.d.ts.map +1 -0
- package/lib/{esm/nodejs → nodejs}/NodeStreamSource.js +3 -3
- package/lib/nodejs/NodeStreamSource.js.map +1 -0
- package/lib/nodejs/index.d.ts +2 -0
- package/lib/nodejs/index.d.ts.map +1 -0
- package/lib/nodejs/index.js +2 -0
- package/lib/nodejs/index.js.map +1 -0
- package/lib/{types/store → store}/AgentsApi.d.ts +60 -9
- package/lib/store/AgentsApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/AgentsApi.js +174 -53
- package/lib/store/AgentsApi.js.map +1 -0
- package/lib/{types/store → store}/AnalyzeDocApi.d.ts +3 -2
- package/lib/store/AnalyzeDocApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/AnalyzeDocApi.js +10 -10
- package/lib/store/AnalyzeDocApi.js.map +1 -0
- package/lib/{types/store → store}/CollectionsApi.d.ts +6 -5
- package/lib/store/CollectionsApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/CollectionsApi.js +22 -22
- package/lib/store/CollectionsApi.js.map +1 -0
- package/lib/{types/store → store}/CostApi.d.ts +3 -2
- package/lib/store/CostApi.d.ts.map +1 -0
- package/lib/store/CostApi.js.map +1 -0
- package/lib/{types/store → store}/DashboardApi.d.ts +3 -2
- package/lib/store/DashboardApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/DashboardApi.js +7 -4
- package/lib/store/DashboardApi.js.map +1 -0
- package/lib/{types/store → store}/DataApi.d.ts +4 -3
- package/lib/store/DataApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/DataApi.js +6 -6
- package/lib/store/DataApi.js.map +1 -0
- package/lib/{types/store → store}/EmailApi.d.ts +3 -2
- package/lib/store/EmailApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/EmailApi.js +5 -5
- package/lib/store/EmailApi.js.map +1 -0
- package/lib/store/EmbeddingsApi.d.ts +13 -0
- package/lib/store/EmbeddingsApi.d.ts.map +1 -0
- package/lib/store/EmbeddingsApi.js +25 -0
- package/lib/store/EmbeddingsApi.js.map +1 -0
- package/lib/{types/store → store}/FilesApi.d.ts +22 -7
- package/lib/store/FilesApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/FilesApi.js +56 -51
- package/lib/store/FilesApi.js.map +1 -0
- package/lib/{types/store → store}/HiveMemoryApi.d.ts +3 -2
- package/lib/store/HiveMemoryApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/HiveMemoryApi.js +11 -11
- package/lib/{esm/store → store}/HiveMemoryApi.js.map +1 -1
- package/lib/{types/store → store}/IndexingApi.d.ts +16 -10
- package/lib/store/IndexingApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/IndexingApi.js +57 -45
- package/lib/store/IndexingApi.js.map +1 -0
- package/lib/{types/store → store}/ObjectsApi.d.ts +16 -11
- package/lib/store/ObjectsApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/ObjectsApi.js +46 -63
- package/lib/store/ObjectsApi.js.map +1 -0
- package/lib/{types/store → store}/PendingAsksApi.d.ts +5 -2
- package/lib/store/PendingAsksApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/PendingAsksApi.js +4 -4
- package/lib/store/PendingAsksApi.js.map +1 -0
- package/lib/store/ProcessApi.d.ts +25 -0
- package/lib/store/ProcessApi.d.ts.map +1 -0
- package/lib/store/ProcessApi.js +42 -0
- package/lib/store/ProcessApi.js.map +1 -0
- package/lib/{types/store → store}/QueryApi.d.ts +2 -1
- package/lib/store/QueryApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/QueryApi.js +3 -3
- package/lib/store/QueryApi.js.map +1 -0
- package/lib/{types/store → store}/RenderingApi.d.ts +3 -2
- package/lib/store/RenderingApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/RenderingApi.js +8 -8
- package/lib/store/RenderingApi.js.map +1 -0
- package/lib/{types/store → store}/SchedulesApi.d.ts +3 -2
- package/lib/store/SchedulesApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/SchedulesApi.js +4 -4
- package/lib/store/SchedulesApi.js.map +1 -0
- package/lib/store/TaskApi.d.ts +16 -0
- package/lib/store/TaskApi.d.ts.map +1 -0
- package/lib/store/TaskApi.js +42 -0
- package/lib/store/TaskApi.js.map +1 -0
- package/lib/{types/store → store}/ToolsApi.d.ts +3 -2
- package/lib/store/ToolsApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/ToolsApi.js +2 -2
- package/lib/store/ToolsApi.js.map +1 -0
- package/lib/{types/store → store}/TypeCatalogApi.d.ts +4 -3
- package/lib/store/TypeCatalogApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/TypeCatalogApi.js +5 -5
- package/lib/store/TypeCatalogApi.js.map +1 -0
- package/lib/{types/store → store}/TypesApi.d.ts +5 -4
- package/lib/store/TypesApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/TypesApi.js +12 -12
- package/lib/store/TypesApi.js.map +1 -0
- package/lib/{types/store → store}/WorkflowsApi.d.ts +11 -9
- package/lib/store/WorkflowsApi.d.ts.map +1 -0
- package/lib/{esm/store → store}/WorkflowsApi.js +62 -52
- package/lib/store/WorkflowsApi.js.map +1 -0
- package/lib/store/client.d.ts +62 -0
- package/lib/store/client.d.ts.map +1 -0
- package/lib/store/client.js +106 -0
- package/lib/store/client.js.map +1 -0
- package/lib/{types/store → store}/errors.d.ts +2 -1
- package/lib/store/errors.d.ts.map +1 -0
- package/lib/store/errors.js +7 -0
- package/lib/store/errors.js.map +1 -0
- package/lib/store/index.d.ts +21 -0
- package/lib/store/index.d.ts.map +1 -0
- package/lib/store/index.js +21 -0
- package/lib/store/index.js.map +1 -0
- package/lib/store/signed-url.d.ts +39 -0
- package/lib/store/signed-url.d.ts.map +1 -0
- package/lib/store/signed-url.js +153 -0
- package/lib/store/signed-url.js.map +1 -0
- package/lib/store/stream-termination.d.ts +4 -0
- package/lib/store/stream-termination.d.ts.map +1 -0
- package/lib/store/stream-termination.js +31 -0
- package/lib/store/stream-termination.js.map +1 -0
- package/lib/{types/store → store}/version.d.ts +2 -0
- package/lib/store/version.d.ts.map +1 -0
- package/lib/{esm/store → store}/version.js +1 -0
- package/lib/store/version.js.map +1 -0
- package/lib/vertesia-client.js +1 -1
- package/lib/vertesia-client.js.map +1 -1
- package/package.json +26 -38
- package/src/AccountApi.ts +10 -22
- package/src/AccountsApi.ts +3 -9
- package/src/AnalyticsApi.ts +6 -8
- package/src/ApiKeysApi.ts +10 -2
- package/src/AppsApi.ts +131 -27
- package/src/AuditTrailApi.ts +4 -4
- package/src/CommandsApi.ts +7 -8
- package/src/EnvironmentsApi.ts +27 -23
- package/src/GroupsApi.ts +15 -10
- package/src/IamApi.ts +56 -22
- package/src/InteractionBase.ts +18 -9
- package/src/InteractionCatalogApi.ts +15 -20
- package/src/InteractionOutput.test.ts +40 -57
- package/src/InteractionOutput.ts +55 -47
- package/src/InteractionResult.example.ts +30 -18
- package/src/InteractionsApi.ts +113 -59
- package/src/OAuthClientsApi.ts +6 -1
- package/src/OAuthGrantsApi.ts +1 -1
- package/src/OAuthProvidersApi.ts +3 -4
- package/src/OAuthServerApi.ts +53 -6
- package/src/ProjectsApi.ts +70 -31
- package/src/PromptsApi.ts +44 -29
- package/src/RefsApi.ts +4 -10
- package/src/RemoteMcpConnectionsApi.ts +6 -7
- package/src/RunsApi.ts +25 -20
- package/src/SecretsApi.ts +56 -0
- package/src/SkillsApi.ts +5 -12
- package/src/StreamSource.ts +6 -1
- package/src/ToolsApi.ts +52 -0
- package/src/TrainingApi.ts +27 -25
- package/src/UsersApi.ts +6 -8
- package/src/client.test.ts +68 -2
- package/src/client.ts +160 -103
- package/src/execute.ts +60 -20
- package/src/index.ts +8 -8
- package/src/nodejs/NodeStreamSource.ts +4 -5
- package/src/nodejs/index.ts +1 -1
- package/src/store/AgentsApi.ts +308 -148
- package/src/store/AnalyzeDocApi.ts +39 -21
- package/src/store/CollectionsApi.ts +40 -38
- package/src/store/CostApi.ts +14 -19
- package/src/store/DashboardApi.ts +24 -27
- package/src/store/DataApi.ts +29 -32
- package/src/store/EmailApi.ts +6 -6
- package/src/store/EmbeddingsApi.ts +15 -15
- package/src/store/FilesApi.ts +80 -85
- package/src/store/HiveMemoryApi.ts +17 -28
- package/src/store/IndexingApi.ts +113 -76
- package/src/store/ObjectsApi.ts +100 -131
- package/src/store/PendingAsksApi.ts +7 -5
- package/src/store/ProcessApi.ts +61 -0
- package/src/store/QueryApi.ts +3 -4
- package/src/store/RenderingApi.ts +14 -17
- package/src/store/SchedulesApi.ts +6 -6
- package/src/store/TaskApi.ts +45 -0
- package/src/store/ToolsApi.ts +3 -3
- package/src/store/TypeCatalogApi.ts +56 -53
- package/src/store/TypesApi.ts +26 -18
- package/src/store/WorkflowsApi.ts +158 -152
- package/src/store/client.ts +58 -39
- package/src/store/errors.ts +3 -3
- package/src/store/index.ts +20 -18
- package/src/store/signed-url.test.ts +182 -0
- package/src/store/signed-url.ts +184 -0
- package/src/store/stream-gap.test.ts +230 -0
- package/src/store/stream-termination.test.ts +58 -0
- package/src/store/stream-termination.ts +40 -0
- package/src/store/version.ts +2 -1
- package/lib/cjs/AccountApi.js +0 -85
- package/lib/cjs/AccountApi.js.map +0 -1
- package/lib/cjs/AccountsApi.js +0 -16
- package/lib/cjs/AccountsApi.js.map +0 -1
- package/lib/cjs/AnalyticsApi.js +0 -43
- package/lib/cjs/AnalyticsApi.js.map +0 -1
- package/lib/cjs/ApiKeysApi.js +0 -61
- package/lib/cjs/ApiKeysApi.js.map +0 -1
- package/lib/cjs/AppsApi.js +0 -137
- package/lib/cjs/AppsApi.js.map +0 -1
- package/lib/cjs/AuditTrailApi.js +0 -39
- package/lib/cjs/AuditTrailApi.js.map +0 -1
- package/lib/cjs/CommandsApi.js +0 -19
- package/lib/cjs/CommandsApi.js.map +0 -1
- package/lib/cjs/EnvironmentsApi.js +0 -72
- package/lib/cjs/EnvironmentsApi.js.map +0 -1
- package/lib/cjs/GroupsApi.js +0 -86
- package/lib/cjs/GroupsApi.js.map +0 -1
- package/lib/cjs/IamApi.js +0 -53
- package/lib/cjs/IamApi.js.map +0 -1
- package/lib/cjs/InteractionBase.js +0 -44
- package/lib/cjs/InteractionBase.js.map +0 -1
- package/lib/cjs/InteractionCatalogApi.js +0 -64
- package/lib/cjs/InteractionCatalogApi.js.map +0 -1
- package/lib/cjs/InteractionOutput.js +0 -300
- package/lib/cjs/InteractionOutput.js.map +0 -1
- package/lib/cjs/InteractionResult.example.js +0 -57
- package/lib/cjs/InteractionResult.example.js.map +0 -1
- package/lib/cjs/InteractionsApi.js +0 -260
- package/lib/cjs/InteractionsApi.js.map +0 -1
- package/lib/cjs/OAuthClientsApi.js +0 -25
- package/lib/cjs/OAuthClientsApi.js.map +0 -1
- package/lib/cjs/OAuthGrantsApi.js +0 -30
- package/lib/cjs/OAuthGrantsApi.js.map +0 -1
- package/lib/cjs/OAuthProvidersApi.js +0 -43
- package/lib/cjs/OAuthProvidersApi.js.map +0 -1
- package/lib/cjs/OAuthServerApi.js +0 -22
- package/lib/cjs/OAuthServerApi.js.map +0 -1
- package/lib/cjs/ProjectsApi.js +0 -105
- package/lib/cjs/ProjectsApi.js.map +0 -1
- package/lib/cjs/PromptsApi.js +0 -135
- package/lib/cjs/PromptsApi.js.map +0 -1
- package/lib/cjs/RefsApi.js +0 -14
- package/lib/cjs/RefsApi.js.map +0 -1
- package/lib/cjs/RemoteMcpConnectionsApi.js +0 -38
- package/lib/cjs/RemoteMcpConnectionsApi.js.map +0 -1
- package/lib/cjs/RunsApi.js +0 -115
- package/lib/cjs/RunsApi.js.map +0 -1
- package/lib/cjs/SkillsApi.js +0 -39
- package/lib/cjs/SkillsApi.js.map +0 -1
- package/lib/cjs/StreamSource.js +0 -17
- package/lib/cjs/StreamSource.js.map +0 -1
- package/lib/cjs/TrainingApi.js +0 -54
- package/lib/cjs/TrainingApi.js.map +0 -1
- package/lib/cjs/UsersApi.js +0 -19
- package/lib/cjs/UsersApi.js.map +0 -1
- package/lib/cjs/client.js +0 -375
- package/lib/cjs/client.js.map +0 -1
- package/lib/cjs/execute.js +0 -160
- package/lib/cjs/execute.js.map +0 -1
- package/lib/cjs/index.js +0 -36
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/nodejs/NodeStreamSource.js +0 -45
- package/lib/cjs/nodejs/NodeStreamSource.js.map +0 -1
- package/lib/cjs/nodejs/index.js +0 -18
- package/lib/cjs/nodejs/index.js.map +0 -1
- package/lib/cjs/package.json +0 -3
- package/lib/cjs/store/AgentsApi.js +0 -663
- package/lib/cjs/store/AgentsApi.js.map +0 -1
- package/lib/cjs/store/AnalyzeDocApi.js +0 -56
- package/lib/cjs/store/AnalyzeDocApi.js.map +0 -1
- package/lib/cjs/store/CollectionsApi.js +0 -131
- package/lib/cjs/store/CollectionsApi.js.map +0 -1
- package/lib/cjs/store/CommandsApi.js +0 -17
- package/lib/cjs/store/CommandsApi.js.map +0 -1
- package/lib/cjs/store/CostApi.js +0 -62
- package/lib/cjs/store/CostApi.js.map +0 -1
- package/lib/cjs/store/DashboardApi.js +0 -182
- package/lib/cjs/store/DashboardApi.js.map +0 -1
- package/lib/cjs/store/DataApi.js +0 -436
- package/lib/cjs/store/DataApi.js.map +0 -1
- package/lib/cjs/store/EmailApi.js +0 -103
- package/lib/cjs/store/EmailApi.js.map +0 -1
- package/lib/cjs/store/EmbeddingsApi.js +0 -29
- package/lib/cjs/store/EmbeddingsApi.js.map +0 -1
- package/lib/cjs/store/FilesApi.js +0 -286
- package/lib/cjs/store/FilesApi.js.map +0 -1
- package/lib/cjs/store/HiveMemoryApi.js +0 -174
- package/lib/cjs/store/HiveMemoryApi.js.map +0 -1
- package/lib/cjs/store/IndexingApi.js +0 -308
- package/lib/cjs/store/IndexingApi.js.map +0 -1
- package/lib/cjs/store/ObjectsApi.js +0 -340
- package/lib/cjs/store/ObjectsApi.js.map +0 -1
- package/lib/cjs/store/PendingAsksApi.js +0 -43
- package/lib/cjs/store/PendingAsksApi.js.map +0 -1
- package/lib/cjs/store/QueryApi.js +0 -67
- package/lib/cjs/store/QueryApi.js.map +0 -1
- package/lib/cjs/store/RenderingApi.js +0 -84
- package/lib/cjs/store/RenderingApi.js.map +0 -1
- package/lib/cjs/store/SchedulesApi.js +0 -103
- package/lib/cjs/store/SchedulesApi.js.map +0 -1
- package/lib/cjs/store/ToolsApi.js +0 -21
- package/lib/cjs/store/ToolsApi.js.map +0 -1
- package/lib/cjs/store/TypeCatalogApi.js +0 -50
- package/lib/cjs/store/TypeCatalogApi.js.map +0 -1
- package/lib/cjs/store/TypesApi.js +0 -60
- package/lib/cjs/store/TypesApi.js.map +0 -1
- package/lib/cjs/store/WorkersApi.js +0 -16
- package/lib/cjs/store/WorkersApi.js.map +0 -1
- package/lib/cjs/store/WorkflowsApi.js +0 -621
- package/lib/cjs/store/WorkflowsApi.js.map +0 -1
- package/lib/cjs/store/client.js +0 -93
- package/lib/cjs/store/client.js.map +0 -1
- package/lib/cjs/store/errors.js +0 -11
- package/lib/cjs/store/errors.js.map +0 -1
- package/lib/cjs/store/index.js +0 -34
- package/lib/cjs/store/index.js.map +0 -1
- package/lib/cjs/store/version.js +0 -6
- package/lib/cjs/store/version.js.map +0 -1
- package/lib/esm/AccountApi.js.map +0 -1
- package/lib/esm/AccountsApi.js.map +0 -1
- package/lib/esm/AnalyticsApi.js.map +0 -1
- package/lib/esm/ApiKeysApi.js.map +0 -1
- package/lib/esm/AppsApi.js.map +0 -1
- package/lib/esm/AuditTrailApi.js.map +0 -1
- package/lib/esm/CommandsApi.js.map +0 -1
- package/lib/esm/EnvironmentsApi.js.map +0 -1
- package/lib/esm/GroupsApi.js.map +0 -1
- package/lib/esm/IamApi.js +0 -47
- package/lib/esm/IamApi.js.map +0 -1
- package/lib/esm/InteractionBase.js.map +0 -1
- package/lib/esm/InteractionCatalogApi.js.map +0 -1
- package/lib/esm/InteractionOutput.js.map +0 -1
- package/lib/esm/InteractionResult.example.js.map +0 -1
- package/lib/esm/InteractionsApi.js.map +0 -1
- package/lib/esm/OAuthClientsApi.js.map +0 -1
- package/lib/esm/OAuthGrantsApi.js.map +0 -1
- package/lib/esm/OAuthProvidersApi.js.map +0 -1
- package/lib/esm/OAuthServerApi.js +0 -19
- package/lib/esm/OAuthServerApi.js.map +0 -1
- package/lib/esm/ProjectsApi.js.map +0 -1
- package/lib/esm/PromptsApi.js.map +0 -1
- package/lib/esm/RefsApi.js.map +0 -1
- package/lib/esm/RemoteMcpConnectionsApi.js.map +0 -1
- package/lib/esm/RunsApi.js.map +0 -1
- package/lib/esm/SkillsApi.js.map +0 -1
- package/lib/esm/StreamSource.js.map +0 -1
- package/lib/esm/TrainingApi.js +0 -51
- package/lib/esm/TrainingApi.js.map +0 -1
- package/lib/esm/UsersApi.js.map +0 -1
- package/lib/esm/client.js.map +0 -1
- package/lib/esm/execute.js.map +0 -1
- package/lib/esm/index.js.map +0 -1
- package/lib/esm/nodejs/NodeStreamSource.js.map +0 -1
- package/lib/esm/nodejs/index.js +0 -2
- package/lib/esm/nodejs/index.js.map +0 -1
- package/lib/esm/store/AgentsApi.js.map +0 -1
- package/lib/esm/store/AnalyzeDocApi.js.map +0 -1
- package/lib/esm/store/CollectionsApi.js.map +0 -1
- package/lib/esm/store/CommandsApi.js +0 -13
- package/lib/esm/store/CommandsApi.js.map +0 -1
- package/lib/esm/store/CostApi.js.map +0 -1
- package/lib/esm/store/DashboardApi.js.map +0 -1
- package/lib/esm/store/DataApi.js.map +0 -1
- package/lib/esm/store/EmailApi.js.map +0 -1
- package/lib/esm/store/EmbeddingsApi.js +0 -25
- package/lib/esm/store/EmbeddingsApi.js.map +0 -1
- package/lib/esm/store/FilesApi.js.map +0 -1
- package/lib/esm/store/IndexingApi.js.map +0 -1
- package/lib/esm/store/ObjectsApi.js.map +0 -1
- package/lib/esm/store/PendingAsksApi.js.map +0 -1
- package/lib/esm/store/QueryApi.js.map +0 -1
- package/lib/esm/store/RenderingApi.js.map +0 -1
- package/lib/esm/store/SchedulesApi.js.map +0 -1
- package/lib/esm/store/ToolsApi.js.map +0 -1
- package/lib/esm/store/TypeCatalogApi.js.map +0 -1
- package/lib/esm/store/TypesApi.js.map +0 -1
- package/lib/esm/store/WorkersApi.js +0 -12
- package/lib/esm/store/WorkersApi.js.map +0 -1
- package/lib/esm/store/WorkflowsApi.js.map +0 -1
- package/lib/esm/store/client.js +0 -89
- package/lib/esm/store/client.js.map +0 -1
- package/lib/esm/store/errors.js +0 -7
- package/lib/esm/store/errors.js.map +0 -1
- package/lib/esm/store/index.js +0 -18
- package/lib/esm/store/index.js.map +0 -1
- package/lib/esm/store/version.js.map +0 -1
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/lib/types/AccountApi.d.ts.map +0 -1
- package/lib/types/AccountsApi.d.ts.map +0 -1
- package/lib/types/AnalyticsApi.d.ts.map +0 -1
- package/lib/types/ApiKeysApi.d.ts.map +0 -1
- package/lib/types/AppsApi.d.ts.map +0 -1
- package/lib/types/AuditTrailApi.d.ts.map +0 -1
- package/lib/types/CommandsApi.d.ts.map +0 -1
- package/lib/types/EnvironmentsApi.d.ts.map +0 -1
- package/lib/types/GroupsApi.d.ts.map +0 -1
- package/lib/types/IamApi.d.ts +0 -36
- package/lib/types/IamApi.d.ts.map +0 -1
- package/lib/types/InteractionBase.d.ts.map +0 -1
- package/lib/types/InteractionCatalogApi.d.ts.map +0 -1
- package/lib/types/InteractionOutput.d.ts.map +0 -1
- package/lib/types/InteractionResult.example.d.ts.map +0 -1
- package/lib/types/InteractionsApi.d.ts.map +0 -1
- package/lib/types/OAuthClientsApi.d.ts.map +0 -1
- package/lib/types/OAuthGrantsApi.d.ts.map +0 -1
- package/lib/types/OAuthProvidersApi.d.ts.map +0 -1
- package/lib/types/OAuthServerApi.d.ts +0 -10
- package/lib/types/OAuthServerApi.d.ts.map +0 -1
- package/lib/types/ProjectsApi.d.ts.map +0 -1
- package/lib/types/PromptsApi.d.ts.map +0 -1
- package/lib/types/RefsApi.d.ts +0 -6
- package/lib/types/RefsApi.d.ts.map +0 -1
- package/lib/types/RemoteMcpConnectionsApi.d.ts.map +0 -1
- package/lib/types/RunsApi.d.ts.map +0 -1
- package/lib/types/SkillsApi.d.ts.map +0 -1
- package/lib/types/StreamSource.d.ts.map +0 -1
- package/lib/types/TrainingApi.d.ts.map +0 -1
- package/lib/types/UsersApi.d.ts.map +0 -1
- package/lib/types/client.d.ts.map +0 -1
- package/lib/types/execute.d.ts.map +0 -1
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/nodejs/NodeStreamSource.d.ts.map +0 -1
- package/lib/types/nodejs/index.d.ts +0 -1
- package/lib/types/nodejs/index.d.ts.map +0 -1
- package/lib/types/store/AgentsApi.d.ts.map +0 -1
- package/lib/types/store/AnalyzeDocApi.d.ts.map +0 -1
- package/lib/types/store/CollectionsApi.d.ts.map +0 -1
- package/lib/types/store/CommandsApi.d.ts +0 -10
- package/lib/types/store/CommandsApi.d.ts.map +0 -1
- package/lib/types/store/CostApi.d.ts.map +0 -1
- package/lib/types/store/DashboardApi.d.ts.map +0 -1
- package/lib/types/store/DataApi.d.ts.map +0 -1
- package/lib/types/store/EmailApi.d.ts.map +0 -1
- package/lib/types/store/EmbeddingsApi.d.ts +0 -12
- package/lib/types/store/EmbeddingsApi.d.ts.map +0 -1
- package/lib/types/store/FilesApi.d.ts.map +0 -1
- package/lib/types/store/HiveMemoryApi.d.ts.map +0 -1
- package/lib/types/store/IndexingApi.d.ts.map +0 -1
- package/lib/types/store/ObjectsApi.d.ts.map +0 -1
- package/lib/types/store/PendingAsksApi.d.ts.map +0 -1
- package/lib/types/store/QueryApi.d.ts.map +0 -1
- package/lib/types/store/RenderingApi.d.ts.map +0 -1
- package/lib/types/store/SchedulesApi.d.ts.map +0 -1
- package/lib/types/store/ToolsApi.d.ts.map +0 -1
- package/lib/types/store/TypeCatalogApi.d.ts.map +0 -1
- package/lib/types/store/TypesApi.d.ts.map +0 -1
- package/lib/types/store/WorkersApi.d.ts +0 -6
- package/lib/types/store/WorkersApi.d.ts.map +0 -1
- package/lib/types/store/WorkflowsApi.d.ts.map +0 -1
- package/lib/types/store/client.d.ts +0 -57
- package/lib/types/store/client.d.ts.map +0 -1
- package/lib/types/store/errors.d.ts.map +0 -1
- package/lib/types/store/index.d.ts +0 -17
- package/lib/types/store/index.d.ts.map +0 -1
- package/lib/types/store/version.d.ts.map +0 -1
- package/src/store/CommandsApi.ts +0 -15
- package/src/store/WorkersApi.ts +0 -17
- /package/lib/{esm/ApiKeysApi.js → ApiKeysApi.js} +0 -0
- /package/lib/{esm/OAuthGrantsApi.js → OAuthGrantsApi.js} +0 -0
- /package/lib/{esm/OAuthProvidersApi.js → OAuthProvidersApi.js} +0 -0
- /package/lib/{esm/StreamSource.js → StreamSource.js} +0 -0
- /package/lib/{esm/store → store}/CostApi.js +0 -0
package/src/OAuthGrantsApi.ts
CHANGED
package/src/OAuthProvidersApi.ts
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { ApiTopic, ClientBase } from '@vertesia/api-fetch-client';
|
|
1
|
+
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
2
2
|
import type {
|
|
3
3
|
CreateOAuthProviderPayload,
|
|
4
|
-
OAuthProviderAccessTokenResponse,
|
|
5
4
|
OAuthProvider,
|
|
6
|
-
|
|
5
|
+
OAuthProviderAccessTokenResponse,
|
|
7
6
|
OAuthProviderAuthorizeResponse,
|
|
7
|
+
OAuthProviderAuthStatus,
|
|
8
8
|
SuccessResponse,
|
|
9
9
|
UpdateOAuthProviderPayload,
|
|
10
10
|
} from '@vertesia/common';
|
|
11
11
|
|
|
12
12
|
export default class OAuthProvidersApi extends ApiTopic {
|
|
13
|
-
|
|
14
13
|
constructor(parent: ClientBase) {
|
|
15
14
|
super(parent, '/api/v1/oauth-providers');
|
|
16
15
|
}
|
package/src/OAuthServerApi.ts
CHANGED
|
@@ -1,26 +1,73 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ClientBase, type IRequestParamsWithPayload } from '@vertesia/api-fetch-client';
|
|
2
2
|
import type {
|
|
3
3
|
ApproveOAuthAuthorizationRequestPayload,
|
|
4
4
|
CreateOAuthAuthorizationRequestPayload,
|
|
5
5
|
OAuthAuthorizationDecisionResponse,
|
|
6
6
|
OAuthAuthorizationRequest,
|
|
7
|
+
OAuthDeviceAuthorizationRequest,
|
|
8
|
+
OAuthDeviceAuthorizationResponse,
|
|
9
|
+
OAuthGrantableScopesResponse,
|
|
7
10
|
} from '@vertesia/common';
|
|
8
|
-
import type { ClientBase } from '@vertesia/api-fetch-client';
|
|
9
11
|
|
|
10
|
-
export default class OAuthServerApi extends
|
|
11
|
-
constructor(
|
|
12
|
-
|
|
12
|
+
export default class OAuthServerApi extends ClientBase {
|
|
13
|
+
constructor(
|
|
14
|
+
private readonly parent: ClientBase,
|
|
15
|
+
baseUrl?: string,
|
|
16
|
+
) {
|
|
17
|
+
super(new URL('/oauth', `${baseUrl || parent.baseUrl}/`).toString(), parent._fetch);
|
|
18
|
+
this.createServerError = parent.createServerError;
|
|
19
|
+
this.errorFactory = parent.errorFactory;
|
|
20
|
+
this.verboseErrors = parent.verboseErrors;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
get headers() {
|
|
24
|
+
return this.parent.headers;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
createRequest(url: string, init: RequestInit): Promise<Request> {
|
|
28
|
+
return this.parent.createRequest(url, init);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
handleResponse<T = unknown>(
|
|
32
|
+
req: Request,
|
|
33
|
+
res: Response,
|
|
34
|
+
params: IRequestParamsWithPayload | undefined,
|
|
35
|
+
): T | Promise<T> {
|
|
36
|
+
return this.parent.handleResponse<T>(req, res, params);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
handleFetchResponse(req: Request, res: Response): void {
|
|
40
|
+
this.parent.handleFetchResponse(req, res);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
getRetryPolicy() {
|
|
44
|
+
return this.parent.getRetryPolicy();
|
|
13
45
|
}
|
|
14
46
|
|
|
15
47
|
createAuthorizationRequest(payload: CreateOAuthAuthorizationRequestPayload): Promise<OAuthAuthorizationRequest> {
|
|
16
48
|
return this.post('/requests', { payload });
|
|
17
49
|
}
|
|
18
50
|
|
|
51
|
+
createDeviceAuthorization(payload: OAuthDeviceAuthorizationRequest): Promise<OAuthDeviceAuthorizationResponse> {
|
|
52
|
+
return this.post('/device_authorization', { payload });
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
retrieveDeviceRequest(userCode: string): Promise<OAuthAuthorizationRequest> {
|
|
56
|
+
return this.get(`/device/${encodeURIComponent(userCode)}`);
|
|
57
|
+
}
|
|
58
|
+
|
|
19
59
|
retrieveRequest(requestId: string): Promise<OAuthAuthorizationRequest> {
|
|
20
60
|
return this.get(`/requests/${requestId}`);
|
|
21
61
|
}
|
|
22
62
|
|
|
23
|
-
|
|
63
|
+
retrieveGrantableScopes(requestId: string, projectId: string): Promise<OAuthGrantableScopesResponse> {
|
|
64
|
+
return this.get(`/requests/${requestId}/grantable-scopes`, { query: { project_id: projectId } });
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
approveRequest(
|
|
68
|
+
requestId: string,
|
|
69
|
+
payload: ApproveOAuthAuthorizationRequestPayload,
|
|
70
|
+
): Promise<OAuthAuthorizationDecisionResponse> {
|
|
24
71
|
return this.post(`/requests/${requestId}/approve`, { payload });
|
|
25
72
|
}
|
|
26
73
|
|
package/src/ProjectsApi.ts
CHANGED
|
@@ -1,9 +1,31 @@
|
|
|
1
|
-
import { ApiTopic, ClientBase, ServerError } from
|
|
2
|
-
import {
|
|
1
|
+
import { ApiTopic, type ClientBase, type ServerError } from '@vertesia/api-fetch-client';
|
|
2
|
+
import type {
|
|
3
|
+
CompositeAppConfig,
|
|
4
|
+
CompositeAppConfigPayload,
|
|
5
|
+
CountResult,
|
|
6
|
+
DeleteByIdResult,
|
|
7
|
+
ICreateProjectPayload,
|
|
8
|
+
InCodeProcessDefinition,
|
|
9
|
+
InCodeTypeDefinition,
|
|
10
|
+
Project,
|
|
11
|
+
ProjectConfiguration,
|
|
12
|
+
ProjectIntegrationConfigRequest,
|
|
13
|
+
ProjectIntegrationConfigResponse,
|
|
14
|
+
ProjectIntegrationListEntry,
|
|
15
|
+
ProjectIntegrationListResponse,
|
|
16
|
+
ProjectRef,
|
|
17
|
+
ProjectToolInfo,
|
|
18
|
+
RenderingTemplateDefinition,
|
|
19
|
+
RenderingTemplateDefinitionRef,
|
|
20
|
+
SupportedIntegrations,
|
|
21
|
+
} from '@vertesia/common';
|
|
3
22
|
|
|
4
23
|
export default class ProjectsApi extends ApiTopic {
|
|
24
|
+
integrations: IntegrationsConfigurationApi;
|
|
25
|
+
|
|
5
26
|
constructor(parent: ClientBase) {
|
|
6
|
-
super(parent,
|
|
27
|
+
super(parent, '/api/v1/projects');
|
|
28
|
+
this.integrations = new IntegrationsConfigurationApi(this);
|
|
7
29
|
}
|
|
8
30
|
|
|
9
31
|
list(account?: string[]): Promise<ProjectRef[]> {
|
|
@@ -16,13 +38,13 @@ export default class ProjectsApi extends ApiTopic {
|
|
|
16
38
|
|
|
17
39
|
create(payload: ICreateProjectPayload): Promise<Project> {
|
|
18
40
|
return this.post('/', {
|
|
19
|
-
payload
|
|
41
|
+
payload,
|
|
20
42
|
});
|
|
21
43
|
}
|
|
22
44
|
|
|
23
45
|
update(projectId: string, payload: Partial<Project>): Promise<Project> {
|
|
24
46
|
return this.put(`/${projectId}`, {
|
|
25
|
-
payload
|
|
47
|
+
payload,
|
|
26
48
|
});
|
|
27
49
|
}
|
|
28
50
|
|
|
@@ -32,12 +54,10 @@ export default class ProjectsApi extends ApiTopic {
|
|
|
32
54
|
|
|
33
55
|
updateConfiguration(projectId: string, payload: Partial<ProjectConfiguration>): Promise<ProjectConfiguration> {
|
|
34
56
|
return this.put(`/${projectId}/configuration`, {
|
|
35
|
-
payload
|
|
57
|
+
payload,
|
|
36
58
|
});
|
|
37
59
|
}
|
|
38
60
|
|
|
39
|
-
integrations: IntegrationsConfigurationApi = new IntegrationsConfigurationApi(this);
|
|
40
|
-
|
|
41
61
|
/**
|
|
42
62
|
* List all tools available in the project with their app installation info.
|
|
43
63
|
* Settings are only included for agent tokens (security: may contain API keys).
|
|
@@ -51,7 +71,7 @@ export default class ProjectsApi extends ApiTopic {
|
|
|
51
71
|
* Returns null if the tool is not found.
|
|
52
72
|
*/
|
|
53
73
|
getToolByName(projectId: string, toolName: string): Promise<ProjectToolInfo | null> {
|
|
54
|
-
return this.get(`/${projectId}/tools/${toolName}`).catch((err: ServerError) => {
|
|
74
|
+
return this.get<ProjectToolInfo>(`/${projectId}/tools/${toolName}`).catch((err: ServerError) => {
|
|
55
75
|
if (err.status === 404) {
|
|
56
76
|
return null;
|
|
57
77
|
}
|
|
@@ -61,7 +81,7 @@ export default class ProjectsApi extends ApiTopic {
|
|
|
61
81
|
|
|
62
82
|
listAppContentTypes(projectId: string, tag?: string): Promise<InCodeTypeDefinition[]> {
|
|
63
83
|
return this.get(`/${projectId}/app-types`, {
|
|
64
|
-
query: { tag }
|
|
84
|
+
query: { tag },
|
|
65
85
|
});
|
|
66
86
|
}
|
|
67
87
|
|
|
@@ -69,9 +89,19 @@ export default class ProjectsApi extends ApiTopic {
|
|
|
69
89
|
return this.get(`/${projectId}/app-types/${typeId}`);
|
|
70
90
|
}
|
|
71
91
|
|
|
92
|
+
listAppProcesses(projectId: string, tag?: string): Promise<InCodeProcessDefinition[]> {
|
|
93
|
+
return this.get(`/${projectId}/app-processes`, {
|
|
94
|
+
query: { tag },
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
getAppProcess(projectId: string, processId: string): Promise<InCodeProcessDefinition> {
|
|
99
|
+
return this.get(`/${projectId}/app-processes/${processId}`);
|
|
100
|
+
}
|
|
101
|
+
|
|
72
102
|
listAppRenderingTemplates(projectId: string, tag?: string): Promise<RenderingTemplateDefinitionRef[]> {
|
|
73
103
|
return this.get(`/${projectId}/app-templates`, {
|
|
74
|
-
query: { tag }
|
|
104
|
+
query: { tag },
|
|
75
105
|
});
|
|
76
106
|
}
|
|
77
107
|
|
|
@@ -83,36 +113,46 @@ export default class ProjectsApi extends ApiTopic {
|
|
|
83
113
|
return this.get(`/${projectId}/composite-app`);
|
|
84
114
|
}
|
|
85
115
|
|
|
86
|
-
updateCompositeAppConfiguration(
|
|
116
|
+
updateCompositeAppConfiguration(
|
|
117
|
+
projectId: string,
|
|
118
|
+
payload: CompositeAppConfigPayload,
|
|
119
|
+
): Promise<CompositeAppConfig> {
|
|
87
120
|
return this.put(`/${projectId}/composite-app`, {
|
|
88
|
-
payload
|
|
121
|
+
payload,
|
|
89
122
|
});
|
|
90
123
|
}
|
|
91
|
-
|
|
92
124
|
}
|
|
93
125
|
|
|
94
126
|
class IntegrationsConfigurationApi extends ApiTopic {
|
|
95
|
-
|
|
96
127
|
constructor(parent: ClientBase) {
|
|
97
|
-
super(parent,
|
|
128
|
+
super(parent, '/');
|
|
98
129
|
}
|
|
99
130
|
|
|
100
131
|
list(projectId: string): Promise<ProjectIntegrationListEntry[]> {
|
|
101
|
-
return this.get(`/${projectId}/integrations`).then((res
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
retrieve(
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
132
|
+
return this.get<ProjectIntegrationListResponse>(`/${projectId}/integrations`).then((res) => res.integrations);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
retrieve(
|
|
136
|
+
projectId: string,
|
|
137
|
+
integrationId: SupportedIntegrations,
|
|
138
|
+
): Promise<ProjectIntegrationConfigResponse | undefined> {
|
|
139
|
+
return this.get<ProjectIntegrationConfigResponse>(`/${projectId}/integrations/${integrationId}`).catch(
|
|
140
|
+
(err) => {
|
|
141
|
+
if (err.status === 404) {
|
|
142
|
+
return undefined;
|
|
143
|
+
}
|
|
144
|
+
throw err;
|
|
145
|
+
},
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
update(
|
|
150
|
+
projectId: string,
|
|
151
|
+
integrationId: string,
|
|
152
|
+
payload: ProjectIntegrationConfigRequest,
|
|
153
|
+
): Promise<ProjectIntegrationConfigResponse> {
|
|
114
154
|
return this.put(`/${projectId}/integrations/${integrationId}`, {
|
|
115
|
-
payload
|
|
155
|
+
payload,
|
|
116
156
|
});
|
|
117
157
|
}
|
|
118
158
|
|
|
@@ -123,5 +163,4 @@ class IntegrationsConfigurationApi extends ApiTopic {
|
|
|
123
163
|
listPlugins(projectId: string): Promise<string[]> {
|
|
124
164
|
return this.get(`/${projectId}/plugins`);
|
|
125
165
|
}
|
|
126
|
-
|
|
127
166
|
}
|
package/src/PromptsApi.ts
CHANGED
|
@@ -1,14 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ApiTopic, ClientBase } from
|
|
1
|
+
import type { PromptRole } from '@llumiverse/common';
|
|
2
|
+
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
3
|
+
import type {
|
|
4
|
+
ComputePromptFacetPayload,
|
|
5
|
+
PromptSearchPayload,
|
|
6
|
+
PromptSearchQuery,
|
|
7
|
+
PromptTemplate,
|
|
8
|
+
PromptTemplateCreatePayload,
|
|
9
|
+
PromptTemplateForkPayload,
|
|
10
|
+
PromptTemplateRef,
|
|
11
|
+
PromptTemplateUpdatePayload,
|
|
12
|
+
TemplateType,
|
|
13
|
+
} from '@vertesia/common';
|
|
3
14
|
|
|
4
15
|
export interface ComputePromptFacetsResponse {
|
|
5
|
-
role?: { _id: string
|
|
16
|
+
role?: { _id: string; count: number }[];
|
|
6
17
|
total?: { count: number }[];
|
|
7
18
|
}
|
|
8
19
|
|
|
20
|
+
export interface PromptRenderResponse {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
role: PromptRole;
|
|
24
|
+
content_type: TemplateType;
|
|
25
|
+
rendered: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
9
28
|
export default class PromptsApi extends ApiTopic {
|
|
10
29
|
constructor(parent: ClientBase) {
|
|
11
|
-
super(parent,
|
|
30
|
+
super(parent, '/api/v1/prompts');
|
|
12
31
|
}
|
|
13
32
|
|
|
14
33
|
/**
|
|
@@ -17,12 +36,12 @@ export default class PromptsApi extends ApiTopic {
|
|
|
17
36
|
* @returns PromptTemplateRef[]
|
|
18
37
|
**/
|
|
19
38
|
list(payload: PromptSearchPayload = {}): Promise<PromptTemplateRef[]> {
|
|
20
|
-
const query = payload.query || {} as PromptSearchQuery;
|
|
39
|
+
const query = payload.query || ({} as PromptSearchQuery);
|
|
21
40
|
|
|
22
|
-
return this.get(
|
|
41
|
+
return this.get('/', {
|
|
23
42
|
query: {
|
|
24
|
-
...query
|
|
25
|
-
}
|
|
43
|
+
...query,
|
|
44
|
+
},
|
|
26
45
|
});
|
|
27
46
|
}
|
|
28
47
|
|
|
@@ -32,8 +51,8 @@ export default class PromptsApi extends ApiTopic {
|
|
|
32
51
|
* @returns ComputePromptFacetsResponse[]
|
|
33
52
|
**/
|
|
34
53
|
computeFacets(query: ComputePromptFacetPayload): Promise<ComputePromptFacetsResponse> {
|
|
35
|
-
return this.post(
|
|
36
|
-
payload: query
|
|
54
|
+
return this.post('/facets', {
|
|
55
|
+
payload: query,
|
|
37
56
|
});
|
|
38
57
|
}
|
|
39
58
|
|
|
@@ -47,7 +66,7 @@ export default class PromptsApi extends ApiTopic {
|
|
|
47
66
|
**/
|
|
48
67
|
create(payload: PromptTemplateCreatePayload): Promise<PromptTemplate> {
|
|
49
68
|
return this.post('/', {
|
|
50
|
-
payload
|
|
69
|
+
payload,
|
|
51
70
|
});
|
|
52
71
|
}
|
|
53
72
|
|
|
@@ -72,7 +91,7 @@ export default class PromptsApi extends ApiTopic {
|
|
|
72
91
|
**/
|
|
73
92
|
update(id: string, payload: PromptTemplateUpdatePayload): Promise<PromptTemplate> {
|
|
74
93
|
return this.put(`/${id}`, {
|
|
75
|
-
payload
|
|
94
|
+
payload,
|
|
76
95
|
});
|
|
77
96
|
}
|
|
78
97
|
|
|
@@ -93,24 +112,22 @@ export default class PromptsApi extends ApiTopic {
|
|
|
93
112
|
*/
|
|
94
113
|
fork(id: string, payload: PromptTemplateForkPayload): Promise<PromptTemplate> {
|
|
95
114
|
return this.post(`/${id}/fork`, {
|
|
96
|
-
payload
|
|
115
|
+
payload,
|
|
97
116
|
});
|
|
98
117
|
}
|
|
99
118
|
|
|
100
|
-
//TODO - Does this exist?
|
|
101
119
|
/**
|
|
102
|
-
* Render a prompt template
|
|
120
|
+
* Render a prompt template with the given variables.
|
|
103
121
|
* @param id of the prompt template to render
|
|
104
|
-
* @param payload
|
|
105
|
-
* @returns
|
|
122
|
+
* @param payload variables to apply to the template
|
|
123
|
+
* @returns { id, name, role, content_type, rendered }
|
|
106
124
|
* @throws ApiError
|
|
107
125
|
* @throws 404 if not found
|
|
108
|
-
* @throws
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
render(id: string, payload: object): Promise<PromptTemplate> {
|
|
126
|
+
* @throws 403 if the prompt is not in the current project
|
|
127
|
+
*/
|
|
128
|
+
render(id: string, payload: object): Promise<PromptRenderResponse> {
|
|
112
129
|
return this.post(`/${id}/render`, {
|
|
113
|
-
payload
|
|
130
|
+
payload,
|
|
114
131
|
});
|
|
115
132
|
}
|
|
116
133
|
|
|
@@ -133,7 +150,6 @@ export default class PromptsApi extends ApiTopic {
|
|
|
133
150
|
return this.get(`/${id}/versions`);
|
|
134
151
|
}
|
|
135
152
|
|
|
136
|
-
|
|
137
153
|
/**
|
|
138
154
|
* Retrieve list of interactions that use the prompt template
|
|
139
155
|
*/
|
|
@@ -149,14 +165,13 @@ export default class PromptsApi extends ApiTopic {
|
|
|
149
165
|
listForks(id: string): Promise<PromptTemplateRef[]> {
|
|
150
166
|
return this.get(`/${id}/forks`);
|
|
151
167
|
}
|
|
152
|
-
|
|
153
168
|
}
|
|
154
169
|
|
|
155
170
|
export interface ListInteractionsResponse {
|
|
156
|
-
prompt: string
|
|
171
|
+
prompt: string;
|
|
157
172
|
interactions: {
|
|
158
|
-
id: string
|
|
159
|
-
name: string
|
|
160
|
-
versions: string[]
|
|
161
|
-
}[]
|
|
173
|
+
id: string;
|
|
174
|
+
name: string;
|
|
175
|
+
versions: string[];
|
|
176
|
+
}[];
|
|
162
177
|
}
|
package/src/RefsApi.ts
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
2
|
+
import type { ResolvableRef, ResourceRef } from '@vertesia/common';
|
|
4
3
|
|
|
5
4
|
export class RefsApi extends ApiTopic {
|
|
6
|
-
|
|
7
5
|
constructor(parent: ClientBase) {
|
|
8
|
-
super(parent,
|
|
6
|
+
super(parent, '/api/v1/refs');
|
|
9
7
|
}
|
|
10
8
|
|
|
11
|
-
|
|
12
9
|
resolve(refs: ResolvableRef[]): Promise<ResourceRef[]> {
|
|
13
|
-
|
|
14
|
-
return this.post('/resolve', { payload: { refs } })
|
|
15
|
-
|
|
10
|
+
return this.post('/resolve', { payload: { refs } });
|
|
16
11
|
}
|
|
17
|
-
|
|
18
12
|
}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { ApiTopic, ClientBase } from
|
|
1
|
+
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
2
2
|
import type {
|
|
3
3
|
McpOAuthConnectResponse,
|
|
4
4
|
McpOAuthDisconnectResponse,
|
|
5
5
|
McpOAuthTokenRequest,
|
|
6
6
|
McpOAuthTokenResponse,
|
|
7
|
-
OAuthAuthStatus,
|
|
8
7
|
OAuthAuthorizeResponse,
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
OAuthAuthStatus,
|
|
9
|
+
OAuthMetadataResponse,
|
|
10
|
+
} from '@vertesia/common';
|
|
11
11
|
|
|
12
12
|
export default class RemoteMcpConnectionsApi extends ApiTopic {
|
|
13
|
-
|
|
14
13
|
constructor(parent: ClientBase) {
|
|
15
|
-
super(parent,
|
|
14
|
+
super(parent, '/api/v1/remote-mcp-connections');
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
getStatus(appInstallId: string): Promise<OAuthAuthStatus[]> {
|
|
@@ -47,7 +46,7 @@ export default class RemoteMcpConnectionsApi extends ApiTopic {
|
|
|
47
46
|
|
|
48
47
|
getToken(mcpServerUrl: string): Promise<McpOAuthTokenResponse> {
|
|
49
48
|
return this.post('/token', {
|
|
50
|
-
payload: { mcp_server_url: mcpServerUrl } satisfies McpOAuthTokenRequest
|
|
49
|
+
payload: { mcp_server_url: mcpServerUrl } satisfies McpOAuthTokenRequest,
|
|
51
50
|
});
|
|
52
51
|
}
|
|
53
52
|
}
|
package/src/RunsApi.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import type { ExecutionResponse } from
|
|
2
|
-
import { ApiTopic, ClientBase } from
|
|
3
|
-
import {
|
|
1
|
+
import type { ExecutionResponse } from '@llumiverse/common';
|
|
2
|
+
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
3
|
+
import type {
|
|
4
4
|
ComputeRunFacetPayload,
|
|
5
5
|
ExecutionRun,
|
|
6
|
+
ExecutionRunDocRef,
|
|
6
7
|
ExecutionRunRef,
|
|
7
8
|
FindPayload,
|
|
8
9
|
PopulatedExecutionRun,
|
|
9
|
-
RunCreatePayload,
|
|
10
|
-
ExecutionRunDocRef,
|
|
11
10
|
RunClonePayload,
|
|
11
|
+
RunCreatePayload,
|
|
12
12
|
RunListingFilters,
|
|
13
13
|
RunListingQueryOptions,
|
|
14
14
|
RunSearchPayload,
|
|
15
15
|
ToolResultsPayload,
|
|
16
16
|
UserMessagePayload,
|
|
17
|
-
} from
|
|
18
|
-
import { VertesiaClient } from
|
|
19
|
-
import { EnhancedExecutionRun, enhanceExecutionRun } from
|
|
17
|
+
} from '@vertesia/common';
|
|
18
|
+
import type { VertesiaClient } from './client.js';
|
|
19
|
+
import { type EnhancedExecutionRun, enhanceExecutionRun } from './InteractionOutput.js';
|
|
20
20
|
|
|
21
21
|
export interface FilterOption {
|
|
22
22
|
id: string;
|
|
@@ -35,7 +35,7 @@ export interface ComputeRunFacetsResponse {
|
|
|
35
35
|
|
|
36
36
|
export class RunsApi extends ApiTopic {
|
|
37
37
|
constructor(parent: ClientBase) {
|
|
38
|
-
super(parent,
|
|
38
|
+
super(parent, '/api/v1/runs');
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/**
|
|
@@ -51,11 +51,11 @@ export class RunsApi extends ApiTopic {
|
|
|
51
51
|
...filters,
|
|
52
52
|
};
|
|
53
53
|
|
|
54
|
-
return this.get(
|
|
54
|
+
return this.get('/', { query: query });
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
find(payload: FindPayload): Promise<ExecutionRun[]> {
|
|
58
|
-
return this.post(
|
|
58
|
+
return this.post('/find', {
|
|
59
59
|
payload,
|
|
60
60
|
});
|
|
61
61
|
}
|
|
@@ -66,14 +66,14 @@ export class RunsApi extends ApiTopic {
|
|
|
66
66
|
* @param id
|
|
67
67
|
* @returns InteractionResult
|
|
68
68
|
**/
|
|
69
|
-
async retrieve<ResultT =
|
|
70
|
-
const r = await this.get(
|
|
69
|
+
async retrieve<ResultT = unknown, ParamsT = unknown>(id: string): Promise<EnhancedExecutionRun<ResultT, ParamsT>> {
|
|
70
|
+
const r = await this.get<ExecutionRun<ParamsT>>(`/${id}`);
|
|
71
71
|
return enhanceExecutionRun<ResultT, ParamsT>(r);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
retrievePopulated<P =
|
|
75
|
-
return this.get(
|
|
76
|
-
query: { populate:
|
|
74
|
+
retrievePopulated<P = unknown>(id: string): Promise<PopulatedExecutionRun<P>> {
|
|
75
|
+
return this.get(`/${id}`, {
|
|
76
|
+
query: { populate: 'true' },
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -88,7 +88,10 @@ export class RunsApi extends ApiTopic {
|
|
|
88
88
|
return this.get(`/filter-options/${field}`, { query });
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
async create<ResultT =
|
|
91
|
+
async create<ResultT = unknown, ParamsT = unknown>(
|
|
92
|
+
payload: RunCreatePayload,
|
|
93
|
+
options?: { timeoutMs?: number | false | null; signal?: AbortSignal },
|
|
94
|
+
): Promise<EnhancedExecutionRun<ResultT, ParamsT>> {
|
|
92
95
|
const sessionTags = (this.client as VertesiaClient).sessionTags;
|
|
93
96
|
if (sessionTags) {
|
|
94
97
|
let tags = Array.isArray(sessionTags) ? sessionTags : [sessionTags];
|
|
@@ -99,8 +102,10 @@ export class RunsApi extends ApiTopic {
|
|
|
99
102
|
}
|
|
100
103
|
payload = { ...payload, tags };
|
|
101
104
|
}
|
|
102
|
-
const r = await this.post(
|
|
105
|
+
const r = await this.post<ExecutionRun<ParamsT>>('/', {
|
|
103
106
|
payload,
|
|
107
|
+
timeoutMs: options?.timeoutMs,
|
|
108
|
+
signal: options?.signal,
|
|
104
109
|
});
|
|
105
110
|
return enhanceExecutionRun<ResultT, ParamsT>(r);
|
|
106
111
|
}
|
|
@@ -133,13 +138,13 @@ export class RunsApi extends ApiTopic {
|
|
|
133
138
|
* @returns ComputeRunFacetsResponse[]
|
|
134
139
|
**/
|
|
135
140
|
computeFacets(query: ComputeRunFacetPayload): Promise<ComputeRunFacetsResponse> {
|
|
136
|
-
return this.post(
|
|
141
|
+
return this.post('/facets', {
|
|
137
142
|
payload: query,
|
|
138
143
|
});
|
|
139
144
|
}
|
|
140
145
|
|
|
141
146
|
search(payload: RunSearchPayload): Promise<ExecutionRunRef[]> {
|
|
142
|
-
return this.post(
|
|
147
|
+
return this.post('/search', {
|
|
143
148
|
payload,
|
|
144
149
|
});
|
|
145
150
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ApiTopic, type ClientBase } from '@vertesia/api-fetch-client';
|
|
2
|
+
import type {
|
|
3
|
+
CreateSecretRequest,
|
|
4
|
+
ListSecretsQuery,
|
|
5
|
+
SecretKind,
|
|
6
|
+
SecretRecord,
|
|
7
|
+
UpdateSecretRequest,
|
|
8
|
+
WebsiteCredentialFillRequest,
|
|
9
|
+
WebsiteCredentialFillResponse,
|
|
10
|
+
} from '@vertesia/common';
|
|
11
|
+
|
|
12
|
+
export default class SecretsApi extends ApiTopic {
|
|
13
|
+
constructor(parent: ClientBase) {
|
|
14
|
+
super(parent, '/api/v1/secrets');
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
list(projectId: string, query?: Omit<ListSecretsQuery, 'project_id'>): Promise<SecretRecord[]> {
|
|
18
|
+
return this.get<{ secrets: SecretRecord[] }>('/', { query: { ...query, project_id: projectId } }).then(
|
|
19
|
+
(res) => res.secrets,
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
retrieve(projectId: string, secretId: string, query?: { kind?: SecretKind }): Promise<SecretRecord | undefined> {
|
|
24
|
+
return this.get<SecretRecord>(`/${secretId}`, { query: { ...query, project_id: projectId } }).catch((err) => {
|
|
25
|
+
if (err.status === 404) {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
throw err;
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
create(projectId: string, payload: CreateSecretRequest): Promise<SecretRecord> {
|
|
33
|
+
return this.post('/', { query: { project_id: projectId }, payload });
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
update(
|
|
37
|
+
projectId: string,
|
|
38
|
+
secretId: string,
|
|
39
|
+
payload: UpdateSecretRequest,
|
|
40
|
+
query?: { kind?: SecretKind },
|
|
41
|
+
): Promise<SecretRecord> {
|
|
42
|
+
return this.put(`/${secretId}`, { query: { ...query, project_id: projectId }, payload });
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
remove(projectId: string, secretId: string, query?: { kind?: SecretKind }): Promise<void> {
|
|
46
|
+
return this.del(`/${secretId}`, { query: { ...query, project_id: projectId } });
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
fillWebsiteCredential(
|
|
50
|
+
projectId: string,
|
|
51
|
+
secretId: string,
|
|
52
|
+
payload: WebsiteCredentialFillRequest,
|
|
53
|
+
): Promise<WebsiteCredentialFillResponse> {
|
|
54
|
+
return this.post(`/${secretId}/actions/fill-browser`, { query: { project_id: projectId }, payload });
|
|
55
|
+
}
|
|
56
|
+
}
|