@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
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const api_fetch_client_1 = require("@vertesia/api-fetch-client");
|
|
4
|
-
function toQueryRecord(query) {
|
|
5
|
-
if (!query) {
|
|
6
|
-
return undefined;
|
|
7
|
-
}
|
|
8
|
-
return Object.fromEntries(Object.entries(query)
|
|
9
|
-
.filter(([, value]) => value !== undefined)
|
|
10
|
-
.map(([key, value]) => [key, String(value)]));
|
|
11
|
-
}
|
|
12
|
-
class OAuthGrantsApi extends api_fetch_client_1.ApiTopic {
|
|
13
|
-
constructor(parent) {
|
|
14
|
-
super(parent, '/api/v1/oauth-grants');
|
|
15
|
-
}
|
|
16
|
-
list(query) {
|
|
17
|
-
return this.get('/', { query: toQueryRecord(query) });
|
|
18
|
-
}
|
|
19
|
-
retrieve(grantId) {
|
|
20
|
-
return this.get(`/${grantId}`);
|
|
21
|
-
}
|
|
22
|
-
revoke(grantId, query) {
|
|
23
|
-
return this.del(`/${grantId}`, { query });
|
|
24
|
-
}
|
|
25
|
-
revokeBulk(payload) {
|
|
26
|
-
return this.post('/revoke', { payload });
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.default = OAuthGrantsApi;
|
|
30
|
-
//# sourceMappingURL=OAuthGrantsApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OAuthGrantsApi.js","sourceRoot":"","sources":["../../src/OAuthGrantsApi.ts"],"names":[],"mappings":";;AAAA,iEAAkE;AASlE,SAAS,aAAa,CAAC,KAA4B;IAC/C,IAAI,CAAC,KAAK,EAAE,CAAC;QACT,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,OAAO,MAAM,CAAC,WAAW,CACrB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;SAChB,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC;SAC1C,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CACnD,CAAC;AACN,CAAC;AAED,MAAqB,cAAe,SAAQ,2BAAQ;IAChD,YAAY,MAAkB;QAC1B,KAAK,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;IAC1C,CAAC;IAED,IAAI,CAAC,KAA4B;QAC7B,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED,QAAQ,CAAC,OAAe;QACpB,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,OAAO,EAAE,CAAC,CAAC;IACnC,CAAC;IAED,MAAM,CAAC,OAAe,EAAE,KAAqC;QACzD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED,UAAU,CAAC,OAAqC;QAC5C,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IAC7C,CAAC;CACJ;AApBD,iCAoBC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const api_fetch_client_1 = require("@vertesia/api-fetch-client");
|
|
4
|
-
class OAuthProvidersApi extends api_fetch_client_1.ApiTopic {
|
|
5
|
-
constructor(parent) {
|
|
6
|
-
super(parent, '/api/v1/oauth-providers');
|
|
7
|
-
}
|
|
8
|
-
list() {
|
|
9
|
-
return this.get('/');
|
|
10
|
-
}
|
|
11
|
-
retrieve(id) {
|
|
12
|
-
return this.get(`/${id}`);
|
|
13
|
-
}
|
|
14
|
-
create(payload) {
|
|
15
|
-
return this.post('/', { payload });
|
|
16
|
-
}
|
|
17
|
-
update(id, payload) {
|
|
18
|
-
return this.put(`/${id}`, { payload });
|
|
19
|
-
}
|
|
20
|
-
remove(id) {
|
|
21
|
-
return this.del(`/${id}`);
|
|
22
|
-
}
|
|
23
|
-
authorize(id) {
|
|
24
|
-
return this.get(`/${id}/authorize`);
|
|
25
|
-
}
|
|
26
|
-
exchange(code, state) {
|
|
27
|
-
return this.post('/exchange', { payload: { code, state } });
|
|
28
|
-
}
|
|
29
|
-
getStatus(id) {
|
|
30
|
-
return this.get(`/${id}/status`);
|
|
31
|
-
}
|
|
32
|
-
connect(id) {
|
|
33
|
-
return this.post(`/${id}/connect`, { payload: {} });
|
|
34
|
-
}
|
|
35
|
-
getToken(id) {
|
|
36
|
-
return this.post(`/${id}/token`, { payload: {} });
|
|
37
|
-
}
|
|
38
|
-
disconnect(id) {
|
|
39
|
-
return this.del(`/${id}/disconnect`);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.default = OAuthProvidersApi;
|
|
43
|
-
//# sourceMappingURL=OAuthProvidersApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OAuthProvidersApi.js","sourceRoot":"","sources":["../../src/OAuthProvidersApi.ts"],"names":[],"mappings":";;AAAA,iEAAkE;AAWlE,MAAqB,iBAAkB,SAAQ,2BAAQ;IAEnD,YAAY,MAAkB;QAC1B,KAAK,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IAED,IAAI;QACA,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACzB,CAAC;IAED,QAAQ,CAAC,EAAU;QAC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
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const api_fetch_client_1 = require("@vertesia/api-fetch-client");
|
|
4
|
-
class OAuthServerApi extends api_fetch_client_1.ApiTopic {
|
|
5
|
-
constructor(parent) {
|
|
6
|
-
super(parent, '/oauth');
|
|
7
|
-
}
|
|
8
|
-
createAuthorizationRequest(payload) {
|
|
9
|
-
return this.post('/requests', { payload });
|
|
10
|
-
}
|
|
11
|
-
retrieveRequest(requestId) {
|
|
12
|
-
return this.get(`/requests/${requestId}`);
|
|
13
|
-
}
|
|
14
|
-
approveRequest(requestId, payload) {
|
|
15
|
-
return this.post(`/requests/${requestId}/approve`, { payload });
|
|
16
|
-
}
|
|
17
|
-
denyRequest(requestId) {
|
|
18
|
-
return this.post(`/requests/${requestId}/deny`, { payload: {} });
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.default = OAuthServerApi;
|
|
22
|
-
//# sourceMappingURL=OAuthServerApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OAuthServerApi.js","sourceRoot":"","sources":["../../src/OAuthServerApi.ts"],"names":[],"mappings":";;AAAA,iEAAsD;AAStD,MAAqB,cAAe,SAAQ,2BAAQ;IAChD,YAAY,MAAkB;QAC1B,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC5B,CAAC;IAED,0BAA0B,CAAC,OAA+C;QACtE,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IAC/C,CAAC;IAED,eAAe,CAAC,SAAiB;QAC7B,OAAO,IAAI,CAAC,GAAG,CAAC,aAAa,SAAS,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED,cAAc,CAAC,SAAiB,EAAE,OAAgD;QAC9E,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,SAAS,UAAU,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,WAAW,CAAC,SAAiB;QACzB,OAAO,IAAI,CAAC,IAAI,CAAC,aAAa,SAAS,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;CACJ;AApBD,iCAoBC"}
|
package/lib/cjs/ProjectsApi.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const api_fetch_client_1 = require("@vertesia/api-fetch-client");
|
|
4
|
-
class ProjectsApi extends api_fetch_client_1.ApiTopic {
|
|
5
|
-
constructor(parent) {
|
|
6
|
-
super(parent, "/api/v1/projects");
|
|
7
|
-
}
|
|
8
|
-
list(account) {
|
|
9
|
-
return this.get('/', { query: { account } });
|
|
10
|
-
}
|
|
11
|
-
retrieve(projectId) {
|
|
12
|
-
return this.get(`/${projectId}`);
|
|
13
|
-
}
|
|
14
|
-
create(payload) {
|
|
15
|
-
return this.post('/', {
|
|
16
|
-
payload
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
update(projectId, payload) {
|
|
20
|
-
return this.put(`/${projectId}`, {
|
|
21
|
-
payload
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
delete(projectId) {
|
|
25
|
-
return this.del(`/${projectId}`);
|
|
26
|
-
}
|
|
27
|
-
updateConfiguration(projectId, payload) {
|
|
28
|
-
return this.put(`/${projectId}/configuration`, {
|
|
29
|
-
payload
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
integrations = new IntegrationsConfigurationApi(this);
|
|
33
|
-
/**
|
|
34
|
-
* List all tools available in the project with their app installation info.
|
|
35
|
-
* Settings are only included for agent tokens (security: may contain API keys).
|
|
36
|
-
*/
|
|
37
|
-
getTools(projectId) {
|
|
38
|
-
return this.get(`/${projectId}/tools`);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Get a specific tool by name with its app installation info.
|
|
42
|
-
* Returns null if the tool is not found.
|
|
43
|
-
*/
|
|
44
|
-
getToolByName(projectId, toolName) {
|
|
45
|
-
return this.get(`/${projectId}/tools/${toolName}`).catch((err) => {
|
|
46
|
-
if (err.status === 404) {
|
|
47
|
-
return null;
|
|
48
|
-
}
|
|
49
|
-
throw err;
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
listAppContentTypes(projectId, tag) {
|
|
53
|
-
return this.get(`/${projectId}/app-types`, {
|
|
54
|
-
query: { tag }
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
getAppContentType(projectId, typeId) {
|
|
58
|
-
return this.get(`/${projectId}/app-types/${typeId}`);
|
|
59
|
-
}
|
|
60
|
-
listAppRenderingTemplates(projectId, tag) {
|
|
61
|
-
return this.get(`/${projectId}/app-templates`, {
|
|
62
|
-
query: { tag }
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
getAppRenderingTemplate(projectId, templateUri) {
|
|
66
|
-
return this.get(`/${projectId}/app-templates/${templateUri}`);
|
|
67
|
-
}
|
|
68
|
-
getCompositeAppConfiguration(projectId) {
|
|
69
|
-
return this.get(`/${projectId}/composite-app`);
|
|
70
|
-
}
|
|
71
|
-
updateCompositeAppConfiguration(projectId, payload) {
|
|
72
|
-
return this.put(`/${projectId}/composite-app`, {
|
|
73
|
-
payload
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
exports.default = ProjectsApi;
|
|
78
|
-
class IntegrationsConfigurationApi extends api_fetch_client_1.ApiTopic {
|
|
79
|
-
constructor(parent) {
|
|
80
|
-
super(parent, "/");
|
|
81
|
-
}
|
|
82
|
-
list(projectId) {
|
|
83
|
-
return this.get(`/${projectId}/integrations`).then((res) => res.integrations);
|
|
84
|
-
}
|
|
85
|
-
retrieve(projectId, integrationId) {
|
|
86
|
-
return this.get(`/${projectId}/integrations/${integrationId}`).catch(err => {
|
|
87
|
-
if (err.status === 404) {
|
|
88
|
-
return undefined;
|
|
89
|
-
}
|
|
90
|
-
throw err;
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
update(projectId, integrationId, payload) {
|
|
94
|
-
return this.put(`/${projectId}/integrations/${integrationId}`, {
|
|
95
|
-
payload
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
updatePlugins(projectId, plugins) {
|
|
99
|
-
return this.post(`/${projectId}/plugins`, { payload: { plugins } });
|
|
100
|
-
}
|
|
101
|
-
listPlugins(projectId) {
|
|
102
|
-
return this.get(`/${projectId}/plugins`);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
//# sourceMappingURL=ProjectsApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectsApi.js","sourceRoot":"","sources":["../../src/ProjectsApi.ts"],"names":[],"mappings":";;AAAA,iEAA+E;AAG/E,MAAqB,WAAY,SAAQ,2BAAQ;IAC7C,YAAY,MAAkB;QAC1B,KAAK,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IACtC,CAAC;IAED,IAAI,CAAC,OAAkB;QACnB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC;IACjD,CAAC;IAED,QAAQ,CAAC,SAAiB;QACtB,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC;IACrC,CAAC;IAED,MAAM,CAAC,OAA8B;QACjC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;YAClB,OAAO;SACV,CAAC,CAAC;IACP,CAAC;IAED,MAAM,CAAC,SAAiB,EAAE,OAAyB;QAC/C,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,SAAS,EAAE,EAAE;YAC7B,OAAO;SACV,CAAC,CAAC;IACP,CAAC;IAED,MAAM,CAAC,SAAiB;QACpB,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC;IACrC,CAAC;IAED,mBAAmB,CAAC,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CAAC,IAAI,SAAS,UAAU,CAAC,CAAC;IAC7C,CAAC;CAEJ"}
|
package/lib/cjs/PromptsApi.js
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const api_fetch_client_1 = require("@vertesia/api-fetch-client");
|
|
4
|
-
class PromptsApi extends api_fetch_client_1.ApiTopic {
|
|
5
|
-
constructor(parent) {
|
|
6
|
-
super(parent, "/api/v1/prompts");
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Get the list of all prompt templates
|
|
10
|
-
* @param payload query payload to filter search
|
|
11
|
-
* @returns PromptTemplateRef[]
|
|
12
|
-
**/
|
|
13
|
-
list(payload = {}) {
|
|
14
|
-
const query = payload.query || {};
|
|
15
|
-
return this.get("/", {
|
|
16
|
-
query: {
|
|
17
|
-
...query
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Get the list of all prompt facets
|
|
23
|
-
* @param payload query payload to filter facet search
|
|
24
|
-
* @returns ComputePromptFacetsResponse[]
|
|
25
|
-
**/
|
|
26
|
-
computeFacets(query) {
|
|
27
|
-
return this.post("/facets", {
|
|
28
|
-
payload: query
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Create a new prompt template
|
|
33
|
-
* @param payload PromptTemplateCreatePayload
|
|
34
|
-
* @returns PromptTemplate
|
|
35
|
-
* @throws ApiError
|
|
36
|
-
* @throws 400 if payload is invalid
|
|
37
|
-
* @throws 500 if creation fails
|
|
38
|
-
**/
|
|
39
|
-
create(payload) {
|
|
40
|
-
return this.post('/', {
|
|
41
|
-
payload
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Retrieve an existing prompt template
|
|
46
|
-
* @param id of the prompt template to retrieve
|
|
47
|
-
* @returns PromptTemplate
|
|
48
|
-
**/
|
|
49
|
-
retrieve(id) {
|
|
50
|
-
return this.get(`/${id}`);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Update an existing prompt template
|
|
54
|
-
* @param id of the prompt template to update
|
|
55
|
-
* @param payload PromptTemplateCreatePayload
|
|
56
|
-
* @returns PromptTemplate
|
|
57
|
-
* @throws ApiError
|
|
58
|
-
* @throws 400 if payload is invalid
|
|
59
|
-
* @throws 500 if update fails
|
|
60
|
-
* @throws 404 if not found
|
|
61
|
-
**/
|
|
62
|
-
update(id, payload) {
|
|
63
|
-
return this.put(`/${id}`, {
|
|
64
|
-
payload
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Delete an existing prompt template
|
|
69
|
-
* @param id of the prompt template to delete
|
|
70
|
-
* @returns void
|
|
71
|
-
*/
|
|
72
|
-
delete(id) {
|
|
73
|
-
return this.del(`/${id}`);
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Fork an existing prompt template
|
|
77
|
-
* @param id of the prompt template to fork
|
|
78
|
-
* @param payload PromptTemplateForkPayload
|
|
79
|
-
* @returns Forked PromptTemplate
|
|
80
|
-
*/
|
|
81
|
-
fork(id, payload) {
|
|
82
|
-
return this.post(`/${id}/fork`, {
|
|
83
|
-
payload
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
//TODO - Does this exist?
|
|
87
|
-
/**
|
|
88
|
-
* Render a prompt template
|
|
89
|
-
* @param id of the prompt template to render
|
|
90
|
-
* @param payload that will be passed to the prompt template to generate the prompts
|
|
91
|
-
* @returns PromptTemplate
|
|
92
|
-
* @throws ApiError
|
|
93
|
-
* @throws 404 if not found
|
|
94
|
-
* @throws 400 if payload is invalid
|
|
95
|
-
* @throws 500 if render fails
|
|
96
|
-
**/
|
|
97
|
-
render(id, payload) {
|
|
98
|
-
return this.post(`/${id}/render`, {
|
|
99
|
-
payload
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
//TODO - Does this exist?
|
|
103
|
-
/**
|
|
104
|
-
* Get options for a field
|
|
105
|
-
* @param field name to get options for
|
|
106
|
-
* @returns string[]
|
|
107
|
-
*/
|
|
108
|
-
options(field) {
|
|
109
|
-
return this.get(`/options/${field}`);
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* List the versions of the prompt template. Returns an empty array if no versions are found
|
|
113
|
-
* @param id
|
|
114
|
-
* @returns the versions list or an empty array if no versions are found
|
|
115
|
-
*/
|
|
116
|
-
listVersions(id) {
|
|
117
|
-
return this.get(`/${id}/versions`);
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Retrieve list of interactions that use the prompt template
|
|
121
|
-
*/
|
|
122
|
-
listInteractions(id) {
|
|
123
|
-
return this.get(`/${id}/interactions`);
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* List the forks of the prompt. Returns an empty array if no forks are found
|
|
127
|
-
* @param id of the prompt to search forks
|
|
128
|
-
* @returns the versions list or an empty array if no forks are found
|
|
129
|
-
*/
|
|
130
|
-
listForks(id) {
|
|
131
|
-
return this.get(`/${id}/forks`);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
exports.default = PromptsApi;
|
|
135
|
-
//# sourceMappingURL=PromptsApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PromptsApi.js","sourceRoot":"","sources":["../../src/PromptsApi.ts"],"names":[],"mappings":";;AACA,iEAAkE;AAOlE,MAAqB,UAAW,SAAQ,2BAAQ;IAC5C,YAAY,MAAkB;QAC1B,KAAK,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;IACpC,CAAC;IAED;;;;QAII;IACJ,IAAI,CAAC,UAA+B,EAAE;QAClC,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,IAAI,EAAuB,CAAC;QAEvD,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE;YACjB,KAAK,EAAE;gBACH,GAAG,KAAK;aACX;SACJ,CAAC,CA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C;IACvC,CAAC;IAGD;;OAEG;IACH,gBAAgB,CAAC,EAAU;QACvB,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC;IAC3C,CAAC;IAED;;;;OAIG;IACH,SAAS,CAAC,EAAU;QAChB,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACpC,CAAC;CAEJ;AAhJD,6BAgJC"}
|
package/lib/cjs/RefsApi.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RefsApi = void 0;
|
|
4
|
-
const api_fetch_client_1 = require("@vertesia/api-fetch-client");
|
|
5
|
-
class RefsApi extends api_fetch_client_1.ApiTopic {
|
|
6
|
-
constructor(parent) {
|
|
7
|
-
super(parent, "/api/v1/refs");
|
|
8
|
-
}
|
|
9
|
-
resolve(refs) {
|
|
10
|
-
return this.post('/resolve', { payload: { refs } });
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.RefsApi = RefsApi;
|
|
14
|
-
//# sourceMappingURL=RefsApi.js.map
|
package/lib/cjs/RefsApi.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RefsApi.js","sourceRoot":"","sources":["../../src/RefsApi.ts"],"names":[],"mappings":";;;AACA,iEAAiE;AAGjE,MAAa,OAAQ,SAAQ,2BAAQ;IAEjC,YAAY,MAAkB;QAC1B,KAAK,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IACjC,CAAC;IAGD,OAAO,CAAC,IAAqB;QAEzB,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAA;IAEvD,CAAC;CAEJ;AAbD,0BAaC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const api_fetch_client_1 = require("@vertesia/api-fetch-client");
|
|
4
|
-
class RemoteMcpConnectionsApi extends api_fetch_client_1.ApiTopic {
|
|
5
|
-
constructor(parent) {
|
|
6
|
-
super(parent, "/api/v1/remote-mcp-connections");
|
|
7
|
-
}
|
|
8
|
-
getStatus(appInstallId) {
|
|
9
|
-
return this.get(`/status/${appInstallId}`);
|
|
10
|
-
}
|
|
11
|
-
getCollectionStatus(appInstallId, collectionId) {
|
|
12
|
-
return this.get(`/status/${appInstallId}/${collectionId}`);
|
|
13
|
-
}
|
|
14
|
-
getMetadata(appInstallId, collectionId) {
|
|
15
|
-
return this.get(`/metadata/${appInstallId}/${collectionId}`);
|
|
16
|
-
}
|
|
17
|
-
authorize(appInstallId, collectionId) {
|
|
18
|
-
return this.get(`/authorize/${appInstallId}/${collectionId}`);
|
|
19
|
-
}
|
|
20
|
-
connect(appInstallId, collectionId) {
|
|
21
|
-
return this.post(`/connect/${appInstallId}/${collectionId}`, {});
|
|
22
|
-
}
|
|
23
|
-
disconnect(appInstallId, collectionId) {
|
|
24
|
-
return this.del(`/disconnect/${appInstallId}/${collectionId}`);
|
|
25
|
-
}
|
|
26
|
-
getCollectionToken(appInstallId, collectionId) {
|
|
27
|
-
return this.post('/token', {
|
|
28
|
-
payload: { app_install_id: appInstallId, collection_id: collectionId },
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
getToken(mcpServerUrl) {
|
|
32
|
-
return this.post('/token', {
|
|
33
|
-
payload: { mcp_server_url: mcpServerUrl }
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.default = RemoteMcpConnectionsApi;
|
|
38
|
-
//# sourceMappingURL=RemoteMcpConnectionsApi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RemoteMcpConnectionsApi.js","sourceRoot":"","sources":["../../src/RemoteMcpConnectionsApi.ts"],"names":[],"mappings":";;AAAA,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AAC;CACJ;AAzCD,0CAyCC"}
|
package/lib/cjs/RunsApi.js
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RunsApi = void 0;
|
|
4
|
-
const api_fetch_client_1 = require("@vertesia/api-fetch-client");
|
|
5
|
-
const InteractionOutput_js_1 = require("./InteractionOutput.js");
|
|
6
|
-
class RunsApi extends api_fetch_client_1.ApiTopic {
|
|
7
|
-
constructor(parent) {
|
|
8
|
-
super(parent, "/api/v1/runs");
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Get the list of all runs
|
|
12
|
-
* @param project optional project id to filter by
|
|
13
|
-
* @param interaction optional interaction id to filter by
|
|
14
|
-
* @returns InteractionResult[]
|
|
15
|
-
**/
|
|
16
|
-
list({ limit, offset, filters }) {
|
|
17
|
-
const query = {
|
|
18
|
-
limit,
|
|
19
|
-
offset,
|
|
20
|
-
...filters,
|
|
21
|
-
};
|
|
22
|
-
return this.get("/", { query: query });
|
|
23
|
-
}
|
|
24
|
-
find(payload) {
|
|
25
|
-
return this.post("/find", {
|
|
26
|
-
payload,
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Get a run by id
|
|
31
|
-
*
|
|
32
|
-
* @param id
|
|
33
|
-
* @returns InteractionResult
|
|
34
|
-
**/
|
|
35
|
-
async retrieve(id) {
|
|
36
|
-
const r = await this.get("/" + id);
|
|
37
|
-
return (0, InteractionOutput_js_1.enhanceExecutionRun)(r);
|
|
38
|
-
}
|
|
39
|
-
retrievePopulated(id) {
|
|
40
|
-
return this.get("/" + id, {
|
|
41
|
-
query: { populate: "true" },
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Get filter options for a field
|
|
46
|
-
* return FilterOption[]
|
|
47
|
-
*/
|
|
48
|
-
filterOptions(field, filters) {
|
|
49
|
-
const query = {
|
|
50
|
-
...filters,
|
|
51
|
-
};
|
|
52
|
-
return this.get(`/filter-options/${field}`, { query });
|
|
53
|
-
}
|
|
54
|
-
async create(payload) {
|
|
55
|
-
const sessionTags = this.client.sessionTags;
|
|
56
|
-
if (sessionTags) {
|
|
57
|
-
let tags = Array.isArray(sessionTags) ? sessionTags : [sessionTags];
|
|
58
|
-
if (Array.isArray(payload.tags)) {
|
|
59
|
-
tags = tags.concat(payload.tags);
|
|
60
|
-
}
|
|
61
|
-
else if (payload.tags) {
|
|
62
|
-
tags = tags.concat([payload.tags]);
|
|
63
|
-
}
|
|
64
|
-
payload = { ...payload, tags };
|
|
65
|
-
}
|
|
66
|
-
const r = await this.post("/", {
|
|
67
|
-
payload,
|
|
68
|
-
});
|
|
69
|
-
return (0, InteractionOutput_js_1.enhanceExecutionRun)(r);
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Send tool results and continues the conversation
|
|
73
|
-
* @param payload
|
|
74
|
-
* @returns
|
|
75
|
-
*/
|
|
76
|
-
sendToolResults(payload) {
|
|
77
|
-
return this.post(`/tool-results`, {
|
|
78
|
-
payload,
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @param payload
|
|
84
|
-
* @returns
|
|
85
|
-
*/
|
|
86
|
-
sendUserMessage(payload) {
|
|
87
|
-
return this.post(`/user-message`, {
|
|
88
|
-
payload,
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Get the list of all runs facets
|
|
93
|
-
* @param payload query payload to filter facet search
|
|
94
|
-
* @returns ComputeRunFacetsResponse[]
|
|
95
|
-
**/
|
|
96
|
-
computeFacets(query) {
|
|
97
|
-
return this.post("/facets", {
|
|
98
|
-
payload: query,
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
search(payload) {
|
|
102
|
-
return this.post("/search", {
|
|
103
|
-
payload,
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Clone an existing ExecutionRun for fork workflows.
|
|
108
|
-
* Creates a new run with the same interaction/config but fresh status.
|
|
109
|
-
*/
|
|
110
|
-
clone(payload) {
|
|
111
|
-
return this.post('/clone', { payload });
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
exports.RunsApi = RunsApi;
|
|
115
|
-
//# sourceMappingURL=RunsApi.js.map
|
package/lib/cjs/RunsApi.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RunsApi.js","sourceRoot":"","sources":["../../src/RunsApi.ts"],"names":[],"mappings":";;;AACA,iEAAkE;AAiBlE,iEAAmF;AAiBnF,MAAa,OAAQ,SAAQ,2BAAQ;IACjC,YAAY,MAAkB;QAC1B,KAAK,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAClC,CAAC;IAED;;;;;QAKI;IACJ,IAAI,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAA0B;QACnD,MAAM,KAAK,GAAG;YACV,KAAK;YACL,MAAM;YACN,GAAG,OAAO;SACb,CAAC;QAEF,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IAC3C,CAAC;IAED,IAAI,CAAC,OAAoB;QACrB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACtB,OAAO;SACV,CAAC,CAAC;IACP,CAAC;IAED;;;;;QAKI;IACJ,KAAK,CAAC,QAAQ,CAA+B,EAAU;QACnD,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC;QACnC,OAAO,IAAA,0CAAmB,EAAmB,CAAC,CAAC,CAAC;IACpD,CAAC;IAED,iBAAiB,CAAU,EAAU;QACjC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,EAAE,EAAE;YACtB,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE;SA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C9B,OAAO;SACV,CAAC,CAAC;IACP,CAAC;IAED;;;;QAII;IACJ,aAAa,CAAC,KAA6B;QACvC,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACxB,OAAO,EAAE,KAAK;SACjB,CAAC,CAAC;IACP,CAAC;IAED,MAAM,CAAC,OAAyB;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACxB,OAAO;SACV,CAAC,CAAC;IACP,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,OAAwB;QAC1B,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IAC5C,CAAC;CACJ;AAtHD,0BAsHC"}
|
package/lib/cjs/SkillsApi.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const api_fetch_client_1 = require("@vertesia/api-fetch-client");
|
|
4
|
-
/**
|
|
5
|
-
* API client for skill operations.
|
|
6
|
-
* Skills are interactions with agent_runner_options.is_skill = true.
|
|
7
|
-
* They provide contextual instructions to agents by executing/rendering
|
|
8
|
-
* the interaction and returning the result.
|
|
9
|
-
*/
|
|
10
|
-
class SkillsApi extends api_fetch_client_1.ApiTopic {
|
|
11
|
-
constructor(parent) {
|
|
12
|
-
super(parent, "/api/v1/skills");
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Find skills relevant to a given context.
|
|
16
|
-
* This is the core skill matching API for auto-injection.
|
|
17
|
-
* @param context The context to match against
|
|
18
|
-
* @param limit Maximum number of skills to return (default: 5)
|
|
19
|
-
* @returns Array of injected skills with match scores
|
|
20
|
-
*/
|
|
21
|
-
findRelevant(context, limit) {
|
|
22
|
-
const payload = { context, limit };
|
|
23
|
-
return this.post("/find-relevant", { payload });
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Convenience method to find relevant skills by task description
|
|
27
|
-
* @param taskDescription The task or prompt to match
|
|
28
|
-
* @param toolNames Optional list of tools being used
|
|
29
|
-
* @returns Array of injected skills
|
|
30
|
-
*/
|
|
31
|
-
findRelevantForTask(taskDescription, toolNames) {
|
|
32
|
-
return this.findRelevant({
|
|
33
|
-
task_description: taskDescription,
|
|
34
|
-
tool_names: toolNames,
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.default = SkillsApi;
|
|
39
|
-
//# sourceMappingURL=SkillsApi.js.map
|
package/lib/cjs/SkillsApi.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SkillsApi.js","sourceRoot":"","sources":["../../src/SkillsApi.ts"],"names":[],"mappings":";;AAAA,iEAAkE;AAOlE;;;;;GAKG;AACH,MAAqB,SAAU,SAAQ,2BAAQ;IAC3C,YAAY,MAAkB;QAC1B,KAAK,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACpC,CAAC;IAED;;;;;;OAMG;IACH,YAAY,CAAC,OAAqB,EAAE,KAAc;QAC9C,MAAM,OAAO,GAA8B,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;QAC9D,OAAO,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IACpD,CAAC;IAED;;;;;OAKG;IACH,mBAAmB,CACf,eAAuB,EACvB,SAAoB;QAEpB,OAAO,IAAI,CAAC,YAAY,CAAC;YACrB,gBAAgB,EAAE,eAAe;YACjC,UAAU,EAAE,SAAS;SACxB,CAAC,CAAC;IACP,CAAC;CACJ;AAhCD,4BAgCC"}
|
package/lib/cjs/StreamSource.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StreamSource = void 0;
|
|
4
|
-
class StreamSource {
|
|
5
|
-
stream;
|
|
6
|
-
name;
|
|
7
|
-
type;
|
|
8
|
-
id;
|
|
9
|
-
constructor(stream, name, type, id) {
|
|
10
|
-
this.stream = stream;
|
|
11
|
-
this.name = name;
|
|
12
|
-
this.type = type;
|
|
13
|
-
this.id = id;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.StreamSource = StreamSource;
|
|
17
|
-
//# sourceMappingURL=StreamSource.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StreamSource.js","sourceRoot":"","sources":["../../src/StreamSource.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAY;IACF;IAA+B;IAAqB;IAAsB;IAA7F,YAAmB,MAAsB,EAAS,IAAY,EAAS,IAAa,EAAS,EAAW;QAArF,WAAM,GAAN,MAAM,CAAgB;QAAS,SAAI,GAAJ,IAAI,CAAQ;QAAS,SAAI,GAAJ,IAAI,CAAS;QAAS,OAAE,GAAF,EAAE,CAAS;IAAI,CAAC;CAChH;AAFD,oCAEC"}
|
package/lib/cjs/TrainingApi.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const api_fetch_client_1 = require("@vertesia/api-fetch-client");
|
|
4
|
-
class TrainingApi extends api_fetch_client_1.ApiTopic {
|
|
5
|
-
constructor(parent) {
|
|
6
|
-
super(parent, "/api/v1/training");
|
|
7
|
-
}
|
|
8
|
-
listSessions(query = {}) {
|
|
9
|
-
return this.get('/', { query: query });
|
|
10
|
-
}
|
|
11
|
-
listSessionNames(query = {}) {
|
|
12
|
-
return this.get('/names', { query: query });
|
|
13
|
-
}
|
|
14
|
-
createSession(payload) {
|
|
15
|
-
return this.post('/', { payload });
|
|
16
|
-
}
|
|
17
|
-
getSession(sessionId) {
|
|
18
|
-
return this.get('/' + sessionId);
|
|
19
|
-
}
|
|
20
|
-
addToSession(sessionId, runs) {
|
|
21
|
-
return this.post('/' + sessionId + '/add', { payload: { runs } });
|
|
22
|
-
}
|
|
23
|
-
listSessionRuns(sessionId, limit = 100, offset = 0) {
|
|
24
|
-
return this.get('/' + sessionId + '/runs', { query: { limit, offset } });
|
|
25
|
-
}
|
|
26
|
-
buildSession(sessionId) {
|
|
27
|
-
return this.post('/' + sessionId + '/build');
|
|
28
|
-
}
|
|
29
|
-
getDataUrl(sessionId) {
|
|
30
|
-
return this.get('/' + sessionId + '/url');
|
|
31
|
-
}
|
|
32
|
-
getDataUploadUrl(sessionId, isResumable = false) {
|
|
33
|
-
return this.get('/' + sessionId + '/upload-url', isResumable ? { query: { resumable: 'true' } } : {});
|
|
34
|
-
}
|
|
35
|
-
startTraining(sessionId) {
|
|
36
|
-
return this.post('/' + sessionId + '/start');
|
|
37
|
-
}
|
|
38
|
-
cancelTraining(sessionId) {
|
|
39
|
-
return this.post('/' + sessionId + '/cancel');
|
|
40
|
-
}
|
|
41
|
-
getTrainingJob(jobId) {
|
|
42
|
-
return this.get(`/job/${jobId}`);
|
|
43
|
-
}
|
|
44
|
-
getAndSyncTrainingJob(jobId) {
|
|
45
|
-
return this.get(`/job/${jobId}`, {
|
|
46
|
-
query: { sync: 'true' }
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
setDataset(sessionId, name = "default") {
|
|
50
|
-
return this.post('/' + sessionId + '/dataset', { payload: { dataset: name } });
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.default = TrainingApi;
|
|
54
|
-
//# sourceMappingURL=TrainingApi.js.map
|