@vertesia/client 1.2.0 → 1.3.0-dev.20260620.091720Z
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TrainingApi.js","sourceRoot":"","sources":["../../src/TrainingApi.ts"],"names":[],"mappings":";;AAEA,iEAAkE;AAGlE,MAAqB,WAAY,SAAQ,2BAAQ;IAE7C,YAAY,MAAkB;QAC1B,KAAK,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAA;IACrC,CAAC;IAED,YAAY,CAAC,QAAmC,EAAE;QAC9C,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,KAAY,EAAE,CAAC,CAAC;IAClD,CAAC;IAED,gBAAgB,CAAC,QAAmC,EAAE;QAClD,OAAO,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,KAAY,EAAE,CAAC,CAAC;IACvD,CAAC;IAED,aAAa,CAAC,OAAqC;QAC/C,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,CAAC,CAAA;IACtC,CAAC;IAED,UAAU,CAAC,SAAiB;QACxB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,SAAS,CAAC,CAAA;IACpC,CAAC;IAED,YAAY,CAAC,SAAiB,EAAE,IAAc;QAC1C,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,SAAS,GAAG,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAA;IACrE,CAAC;IAED,eAAe,CAAC,SAAiB,EAAE,KAAK,GAAG,GAAG,EAAE,MAAM,GAAG,CAAC;QACtD,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG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O,EAAE,IAAI,EAAE,EAAE,CAAC,CAAA;IAClF,CAAC;CAEJ;AAjED,8BAiEC"}
|
package/lib/cjs/UsersApi.js
DELETED
|
@@ -1,19 +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 UsersApi extends api_fetch_client_1.ApiTopic {
|
|
5
|
-
constructor(parent) {
|
|
6
|
-
super(parent, '/api/v1/users');
|
|
7
|
-
}
|
|
8
|
-
retrieve(userId) {
|
|
9
|
-
return this.get('/' + userId);
|
|
10
|
-
}
|
|
11
|
-
update(userId, payload) {
|
|
12
|
-
return this.put('/' + userId, { payload });
|
|
13
|
-
}
|
|
14
|
-
delete(userId) {
|
|
15
|
-
return this.del('/' + userId);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.default = UsersApi;
|
|
19
|
-
//# sourceMappingURL=UsersApi.js.map
|
package/lib/cjs/UsersApi.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UsersApi.js","sourceRoot":"","sources":["../../src/UsersApi.ts"],"names":[],"mappings":";;AACA,iEAAkE;AAGlE,MAAqB,QAAS,SAAQ,2BAAQ;IAE1C,YAAY,MAAkB;QAC1B,KAAK,CAAC,MAAM,EAAE,eAAe,CAAC,CAAA;IAClC,CAAC;IAED,QAAQ,CAAC,MAAc;QACnB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,MAAM,CAAC,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,MAAc,EAAE,OAA0B;QAC7C,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IAC/C,CAAC;IAED,MAAM,CAAC,MAAc;QACjB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,MAAM,CAAC,CAAC;IAClC,CAAC;CACJ;AAjBD,2BAiBC"}
|
package/lib/cjs/client.js
DELETED
|
@@ -1,375 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.VertesiaClient = void 0;
|
|
7
|
-
exports.decodeJWT = decodeJWT;
|
|
8
|
-
exports.decodeEndpoints = decodeEndpoints;
|
|
9
|
-
const api_fetch_client_1 = require("@vertesia/api-fetch-client");
|
|
10
|
-
const AccountApi_js_1 = __importDefault(require("./AccountApi.js"));
|
|
11
|
-
const AccountsApi_js_1 = __importDefault(require("./AccountsApi.js"));
|
|
12
|
-
const AnalyticsApi_js_1 = __importDefault(require("./AnalyticsApi.js"));
|
|
13
|
-
const ApiKeysApi_js_1 = require("./ApiKeysApi.js");
|
|
14
|
-
const AppsApi_js_1 = __importDefault(require("./AppsApi.js"));
|
|
15
|
-
const AuditTrailApi_js_1 = __importDefault(require("./AuditTrailApi.js"));
|
|
16
|
-
const CommandsApi_js_1 = __importDefault(require("./CommandsApi.js"));
|
|
17
|
-
const EnvironmentsApi_js_1 = __importDefault(require("./EnvironmentsApi.js"));
|
|
18
|
-
const IamApi_js_1 = require("./IamApi.js");
|
|
19
|
-
const InteractionsApi_js_1 = __importDefault(require("./InteractionsApi.js"));
|
|
20
|
-
const OAuthClientsApi_js_1 = __importDefault(require("./OAuthClientsApi.js"));
|
|
21
|
-
const OAuthGrantsApi_js_1 = __importDefault(require("./OAuthGrantsApi.js"));
|
|
22
|
-
const OAuthProvidersApi_js_1 = __importDefault(require("./OAuthProvidersApi.js"));
|
|
23
|
-
const OAuthServerApi_js_1 = __importDefault(require("./OAuthServerApi.js"));
|
|
24
|
-
const ProjectsApi_js_1 = __importDefault(require("./ProjectsApi.js"));
|
|
25
|
-
const PromptsApi_js_1 = __importDefault(require("./PromptsApi.js"));
|
|
26
|
-
const RefsApi_js_1 = require("./RefsApi.js");
|
|
27
|
-
const RemoteMcpConnectionsApi_js_1 = __importDefault(require("./RemoteMcpConnectionsApi.js"));
|
|
28
|
-
const RunsApi_js_1 = require("./RunsApi.js");
|
|
29
|
-
const SkillsApi_js_1 = __importDefault(require("./SkillsApi.js"));
|
|
30
|
-
const client_js_1 = require("./store/client.js");
|
|
31
|
-
const version_js_1 = require("./store/version.js");
|
|
32
|
-
const TrainingApi_js_1 = __importDefault(require("./TrainingApi.js"));
|
|
33
|
-
const UsersApi_js_1 = __importDefault(require("./UsersApi.js"));
|
|
34
|
-
/**
|
|
35
|
-
* 1 min threshold constant in ms
|
|
36
|
-
*/
|
|
37
|
-
const EXPIRATION_THRESHOLD = 60000;
|
|
38
|
-
class VertesiaClient extends api_fetch_client_1.AbstractFetchClient {
|
|
39
|
-
/**
|
|
40
|
-
* The JWT token linked to the API KEY (sk or pk)
|
|
41
|
-
*/
|
|
42
|
-
_jwt = null;
|
|
43
|
-
/**
|
|
44
|
-
* The store client
|
|
45
|
-
*/
|
|
46
|
-
store;
|
|
47
|
-
/**
|
|
48
|
-
* The session name will be sent when executing an interaction as a tag
|
|
49
|
-
*/
|
|
50
|
-
sessionTags;
|
|
51
|
-
/**
|
|
52
|
-
* tokenServerUrl
|
|
53
|
-
*/
|
|
54
|
-
tokenServerUrl;
|
|
55
|
-
oauthClients;
|
|
56
|
-
oauthGrants;
|
|
57
|
-
oauthServer;
|
|
58
|
-
oauthProviders;
|
|
59
|
-
remoteMcpConnections;
|
|
60
|
-
/**
|
|
61
|
-
* Create a client from the given token.
|
|
62
|
-
* If you already have the decoded token you can pass it as the second argument to avoid decodinf it again.
|
|
63
|
-
*
|
|
64
|
-
* @param token the raw JWT token
|
|
65
|
-
* @param payload the decoded JWT token as an AuthTokenPayload - optional
|
|
66
|
-
* @param endpoints optional endpoints to override those in the payload
|
|
67
|
-
*/
|
|
68
|
-
static async fromAuthToken(token, payload, endpoints) {
|
|
69
|
-
if (!payload) {
|
|
70
|
-
payload = decodeJWT(token);
|
|
71
|
-
}
|
|
72
|
-
const resolvedEndpoints = endpoints || decodeEndpoints(payload.endpoints);
|
|
73
|
-
return await new VertesiaClient({
|
|
74
|
-
serverUrl: resolvedEndpoints.studio,
|
|
75
|
-
storeUrl: resolvedEndpoints.store,
|
|
76
|
-
tokenServerUrl: resolvedEndpoints.token || payload.iss,
|
|
77
|
-
}).withApiKey(token);
|
|
78
|
-
}
|
|
79
|
-
static decodeEndpoints() { }
|
|
80
|
-
constructor(opts = {
|
|
81
|
-
site: "api.vertesia.io",
|
|
82
|
-
}) {
|
|
83
|
-
let studioServerUrl;
|
|
84
|
-
let zenoServerUrl;
|
|
85
|
-
if (opts.serverUrl) {
|
|
86
|
-
studioServerUrl = opts.serverUrl;
|
|
87
|
-
}
|
|
88
|
-
else if (opts.site) {
|
|
89
|
-
studioServerUrl = `https://${opts.site}`;
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
throw new Error("Parameter 'site' or 'serverUrl' is required for VertesiaClient");
|
|
93
|
-
}
|
|
94
|
-
if (opts.storeUrl) {
|
|
95
|
-
zenoServerUrl = opts.storeUrl;
|
|
96
|
-
}
|
|
97
|
-
else if (opts.site) {
|
|
98
|
-
zenoServerUrl = `https://${opts.site}`;
|
|
99
|
-
}
|
|
100
|
-
else {
|
|
101
|
-
throw new Error("Parameter 'site' or 'storeUrl' is required for VertesiaClient");
|
|
102
|
-
}
|
|
103
|
-
super(studioServerUrl);
|
|
104
|
-
if (opts.tokenServerUrl) {
|
|
105
|
-
this.tokenServerUrl = opts.tokenServerUrl;
|
|
106
|
-
}
|
|
107
|
-
else if (opts.site) {
|
|
108
|
-
// Strip -preview (preview uses the same STS as production for the same region),
|
|
109
|
-
// then replace api prefix with sts.
|
|
110
|
-
// Examples:
|
|
111
|
-
// api.vertesia.io -> sts.vertesia.io
|
|
112
|
-
// api-preview.vertesia.io -> sts.vertesia.io
|
|
113
|
-
// api.us1.vertesia.io -> sts.us1.vertesia.io
|
|
114
|
-
// api-preview.eu1.vertesia.io -> sts.eu1.vertesia.io
|
|
115
|
-
const stsHost = opts.site.replace('api-preview.', 'api.').replace(/^api/, 'sts');
|
|
116
|
-
this.tokenServerUrl = `https://${stsHost}`;
|
|
117
|
-
}
|
|
118
|
-
else if (opts.serverUrl || opts.storeUrl) {
|
|
119
|
-
// Determine STS URL based on environment in serverUrl or storeUrl
|
|
120
|
-
const urlToCheck = opts.serverUrl || opts.storeUrl || "";
|
|
121
|
-
try {
|
|
122
|
-
const url = new URL(urlToCheck);
|
|
123
|
-
if (url.hostname.startsWith("api")) {
|
|
124
|
-
// Strip -preview and replace api with sts.
|
|
125
|
-
// api.us1.vertesia.io -> sts.us1.vertesia.io
|
|
126
|
-
// api-preview.us1.vertesia.io -> sts.us1.vertesia.io
|
|
127
|
-
// api.vertesia.io -> sts.vertesia.io
|
|
128
|
-
const stsHost = url.hostname.replace('api-preview.', 'api.').replace(/^api/, 'sts');
|
|
129
|
-
this.tokenServerUrl = `https://${stsHost}`;
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
this.tokenServerUrl = "https://sts.dev1.vertesia.io";
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
catch (e) {
|
|
136
|
-
this.tokenServerUrl = "https://sts.dev1.vertesia.io";
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
this.tokenServerUrl = "https://sts.dev1.vertesia.io";
|
|
141
|
-
}
|
|
142
|
-
this.store = new client_js_1.ZenoClient({
|
|
143
|
-
serverUrl: zenoServerUrl,
|
|
144
|
-
tokenServerUrl: this.tokenServerUrl,
|
|
145
|
-
apikey: opts.apikey,
|
|
146
|
-
onRequest: opts.onRequest,
|
|
147
|
-
onResponse: opts.onResponse,
|
|
148
|
-
});
|
|
149
|
-
if (opts.apikey) {
|
|
150
|
-
this.withApiKey(opts.apikey);
|
|
151
|
-
}
|
|
152
|
-
this.onRequest = opts.onRequest;
|
|
153
|
-
this.onResponse = opts.onResponse;
|
|
154
|
-
this.sessionTags = opts.sessionTags;
|
|
155
|
-
this.oauthClients = new OAuthClientsApi_js_1.default(this);
|
|
156
|
-
this.oauthGrants = new OAuthGrantsApi_js_1.default(this);
|
|
157
|
-
this.oauthServer = new OAuthServerApi_js_1.default(this);
|
|
158
|
-
this.oauthProviders = new OAuthProvidersApi_js_1.default(this);
|
|
159
|
-
this.remoteMcpConnections = new RemoteMcpConnectionsApi_js_1.default(this);
|
|
160
|
-
}
|
|
161
|
-
withApiVersion(version) {
|
|
162
|
-
if (!version) {
|
|
163
|
-
delete this.headers[version_js_1.VERSION_HEADER];
|
|
164
|
-
}
|
|
165
|
-
else {
|
|
166
|
-
this.headers[version_js_1.VERSION_HEADER] = String(version);
|
|
167
|
-
}
|
|
168
|
-
return this;
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* Overwrite to keep store and composable clients synchronized on the auth callback
|
|
172
|
-
* @param authCb
|
|
173
|
-
* @returns
|
|
174
|
-
*/
|
|
175
|
-
withAuthCallback(authCb) {
|
|
176
|
-
this.store.withAuthCallback(authCb);
|
|
177
|
-
return super.withAuthCallback(authCb);
|
|
178
|
-
}
|
|
179
|
-
async withApiKey(apiKey) {
|
|
180
|
-
return this.withAuthCallback(apiKey
|
|
181
|
-
? async () => {
|
|
182
|
-
if (!isApiKey(apiKey)) {
|
|
183
|
-
return `Bearer ${apiKey}`;
|
|
184
|
-
}
|
|
185
|
-
if (isTokenExpired(this._jwt)) {
|
|
186
|
-
const jwt = await this.getAuthToken(apiKey);
|
|
187
|
-
this._jwt = jwt.token;
|
|
188
|
-
}
|
|
189
|
-
return `Bearer ${this._jwt}`;
|
|
190
|
-
}
|
|
191
|
-
: undefined);
|
|
192
|
-
}
|
|
193
|
-
async getRawJWT() {
|
|
194
|
-
if (!this._jwt && this._auth) {
|
|
195
|
-
const auth = await this._auth();
|
|
196
|
-
if (!this._jwt) {
|
|
197
|
-
// the _jwt may be set by the auth callback
|
|
198
|
-
this._jwt = auth.trim().split(" ")[1]; // remove Bearer prefix
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
return this._jwt || null;
|
|
202
|
-
}
|
|
203
|
-
async getDecodedJWT() {
|
|
204
|
-
const jwt = await this.getRawJWT();
|
|
205
|
-
return jwt ? decodeJWT(jwt) : null;
|
|
206
|
-
}
|
|
207
|
-
async getProject() {
|
|
208
|
-
const jwt = await this.getDecodedJWT();
|
|
209
|
-
return jwt?.project || null;
|
|
210
|
-
}
|
|
211
|
-
async getAccount() {
|
|
212
|
-
const jwt = await this.getDecodedJWT();
|
|
213
|
-
return jwt?.account || null;
|
|
214
|
-
}
|
|
215
|
-
/**
|
|
216
|
-
* Alias for store.agents
|
|
217
|
-
*/
|
|
218
|
-
get agents() {
|
|
219
|
-
return this.store.agents;
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Alias for store.workflows
|
|
223
|
-
*/
|
|
224
|
-
get workflows() {
|
|
225
|
-
return this.store.workflows;
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* Alias for store.objects
|
|
229
|
-
*/
|
|
230
|
-
get objects() {
|
|
231
|
-
return this.store.objects;
|
|
232
|
-
}
|
|
233
|
-
get files() {
|
|
234
|
-
return this.store.files;
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* Alias for store.types
|
|
238
|
-
*/
|
|
239
|
-
get types() {
|
|
240
|
-
return this.store.types;
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* Alias for store.data
|
|
244
|
-
*/
|
|
245
|
-
get data() {
|
|
246
|
-
return this.store.data;
|
|
247
|
-
}
|
|
248
|
-
get storeUrl() {
|
|
249
|
-
return this.store.baseUrl;
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
*
|
|
253
|
-
* Generate a token for use with other Vertesia's services
|
|
254
|
-
*
|
|
255
|
-
* @returns AuthTokenResponse
|
|
256
|
-
*/
|
|
257
|
-
async getAuthToken(token) {
|
|
258
|
-
return fetch(`${this.tokenServerUrl}/token/issue`, {
|
|
259
|
-
method: "POST",
|
|
260
|
-
headers: {
|
|
261
|
-
"Content-Type": "application/json",
|
|
262
|
-
Authorization: `Bearer ${token}`,
|
|
263
|
-
},
|
|
264
|
-
})
|
|
265
|
-
.then((response) => response.json())
|
|
266
|
-
.then((data) => data)
|
|
267
|
-
.catch((error) => {
|
|
268
|
-
console.error(`Error fetching token from ${this.tokenServerUrl}:`, { error });
|
|
269
|
-
throw error;
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
get initialHeaders() {
|
|
273
|
-
return {
|
|
274
|
-
...super.initialHeaders,
|
|
275
|
-
[version_js_1.VERSION_HEADER]: version_js_1.VERSION
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
|
-
projects = new ProjectsApi_js_1.default(this);
|
|
279
|
-
environments = new EnvironmentsApi_js_1.default(this);
|
|
280
|
-
interactions = new InteractionsApi_js_1.default(this);
|
|
281
|
-
skills = new SkillsApi_js_1.default(this);
|
|
282
|
-
prompts = new PromptsApi_js_1.default(this);
|
|
283
|
-
runs = new RunsApi_js_1.RunsApi(this);
|
|
284
|
-
account = new AccountApi_js_1.default(this);
|
|
285
|
-
accounts = new AccountsApi_js_1.default(this);
|
|
286
|
-
apikeys = new ApiKeysApi_js_1.ApiKeysApi(this);
|
|
287
|
-
analytics = new AnalyticsApi_js_1.default(this);
|
|
288
|
-
auditTrail = new AuditTrailApi_js_1.default(this);
|
|
289
|
-
training = new TrainingApi_js_1.default(this);
|
|
290
|
-
users = new UsersApi_js_1.default(this);
|
|
291
|
-
iam = new IamApi_js_1.IamApi(this);
|
|
292
|
-
refs = new RefsApi_js_1.RefsApi(this);
|
|
293
|
-
commands = new CommandsApi_js_1.default(this);
|
|
294
|
-
apps = new AppsApi_js_1.default(this);
|
|
295
|
-
}
|
|
296
|
-
exports.VertesiaClient = VertesiaClient;
|
|
297
|
-
function isApiKey(apiKey) {
|
|
298
|
-
return apiKey.startsWith("pk-") || apiKey.startsWith("sk-");
|
|
299
|
-
}
|
|
300
|
-
function isTokenExpired(token) {
|
|
301
|
-
if (!token) {
|
|
302
|
-
return true;
|
|
303
|
-
}
|
|
304
|
-
const decoded = decodeJWT(token);
|
|
305
|
-
const exp = decoded.exp;
|
|
306
|
-
const currentTime = Date.now();
|
|
307
|
-
return currentTime <= exp * 1000 - EXPIRATION_THRESHOLD;
|
|
308
|
-
}
|
|
309
|
-
function decodeJWT(jwt) {
|
|
310
|
-
const payloadBase64 = jwt.split(".")[1];
|
|
311
|
-
const decodedJson = base64UrlDecode(payloadBase64);
|
|
312
|
-
return JSON.parse(decodedJson);
|
|
313
|
-
}
|
|
314
|
-
function getRuntimeBuffer() {
|
|
315
|
-
return globalThis.Buffer;
|
|
316
|
-
}
|
|
317
|
-
function getRuntimeStsUrl() {
|
|
318
|
-
const runtimeProcess = globalThis.process;
|
|
319
|
-
return runtimeProcess?.env?.STS_URL;
|
|
320
|
-
}
|
|
321
|
-
function base64UrlDecode(input) {
|
|
322
|
-
// Convert base64url to base64
|
|
323
|
-
const base64 = input
|
|
324
|
-
.replace(/-/g, "+")
|
|
325
|
-
.replace(/_/g, "/")
|
|
326
|
-
// Pad with '=' to make length a multiple of 4
|
|
327
|
-
.padEnd(Math.ceil(input.length / 4) * 4, "=");
|
|
328
|
-
const runtimeBuffer = getRuntimeBuffer();
|
|
329
|
-
if (runtimeBuffer) {
|
|
330
|
-
// Node.js
|
|
331
|
-
return runtimeBuffer.from(base64, "base64").toString("utf-8");
|
|
332
|
-
}
|
|
333
|
-
else if (typeof atob !== "undefined" &&
|
|
334
|
-
typeof TextDecoder !== "undefined") {
|
|
335
|
-
// Browser
|
|
336
|
-
const binary = atob(base64);
|
|
337
|
-
const bytes = Uint8Array.from(binary, (c) => c.charCodeAt(0));
|
|
338
|
-
// decode to utf8
|
|
339
|
-
return new TextDecoder().decode(bytes);
|
|
340
|
-
}
|
|
341
|
-
else {
|
|
342
|
-
throw new Error("No base64 decoder available");
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
function decodeEndpoints(endpoints) {
|
|
346
|
-
if (!endpoints) {
|
|
347
|
-
return getEndpointsFromDomain("api.vertesia.io");
|
|
348
|
-
}
|
|
349
|
-
if (typeof endpoints === "string") {
|
|
350
|
-
return getEndpointsFromDomain(endpoints);
|
|
351
|
-
}
|
|
352
|
-
else {
|
|
353
|
-
return endpoints;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
function getEndpointsFromDomain(domain) {
|
|
357
|
-
if (domain === "local") {
|
|
358
|
-
return {
|
|
359
|
-
studio: `http://localhost:8091`,
|
|
360
|
-
store: `http://localhost:8092`,
|
|
361
|
-
token: getRuntimeStsUrl() ?? "https://sts.dev1.vertesia.io",
|
|
362
|
-
};
|
|
363
|
-
}
|
|
364
|
-
else {
|
|
365
|
-
const url = `https://${domain}`;
|
|
366
|
-
// Supports both dot-separated (api.us1.vertesia.io → sts.us1.vertesia.io)
|
|
367
|
-
// and legacy (api.vertesia.io → sts.vertesia.io)
|
|
368
|
-
return {
|
|
369
|
-
studio: url,
|
|
370
|
-
store: url,
|
|
371
|
-
token: url.replace("api", "sts"),
|
|
372
|
-
};
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
//# sourceMappingURL=client.js.map
|
package/lib/cjs/client.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":";;;;;;AA0XA,8BAIC;AA+CD,0CAWC;AAxbD,iEAAiE;AAEjE,oEAAyC;AACzC,sEAA2C;AAC3C,wEAA6C;AAC7C,mDAA6C;AAC7C,8DAAmC;AACnC,0EAA+C;AAC/C,sEAA2C;AAC3C,8EAAmD;AACnD,2CAAqC;AACrC,8EAAmD;AACnD,8EAAmD;AACnD,4EAAiD;AACjD,kFAAuD;AACvD,4EAAiD;AACjD,sEAA2C;AAC3C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eAAe,CAC3B,SAAsD;IAEtD,IAAI,CAAC,SAAS,EAAE,CAAC;QACb,OAAO,sBAAsB,CAAC,iBAAiB,CAAC,CAAC;IACrD,CAAC;IACD,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE,CAAC;QAChC,OAAO,sBAAsB,CAAC,SAAS,CAAC,CAAC;IAC7C,CAAC;SAAM,CAAC;QACJ,OAAO,SAAS,CAAC;IACrB,CAAC;AACL,CAAC;AAED,SAAS,sBAAsB,CAAC,MAAc;IAC1C,IAAI,MAAM,KAAK,OAAO,EAAE,CAAC;QACrB,OAAO;YACH,MAAM,EAAE,uBAAuB;YAC/B,KAAK,EAAE,uBAAuB;YAC9B,KAAK,EAAE,gBAAgB,EAAE,IAAI,8BAA8B;SAC9D,CAAC;IACN,CAAC;SAAM,CAAC;QACJ,MAAM,GAAG,GAAG,WAAW,MAAM,EAAE,CAAC;QAChC,0EAA0E;QAC1E,iDAAiD;QACjD,OAAO;YACH,MAAM,EAAE,GAAG;YACX,KAAK,EAAE,GAAG;YACV,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC;SACnC,CAAC;IACN,CAAC;AACL,CAAC"}
|
package/lib/cjs/execute.js
DELETED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.EventSourceProvider = EventSourceProvider;
|
|
37
|
-
exports.executeInteraction = executeInteraction;
|
|
38
|
-
exports.executeInteractionByName = executeInteractionByName;
|
|
39
|
-
exports.executeInteractionAsync = executeInteractionAsync;
|
|
40
|
-
exports.checkRateLimit = checkRateLimit;
|
|
41
|
-
const common_1 = require("@vertesia/common");
|
|
42
|
-
async function EventSourceProvider() {
|
|
43
|
-
if (typeof globalThis.EventSource === 'function') {
|
|
44
|
-
return globalThis.EventSource;
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
return (await Promise.resolve().then(() => __importStar(require('eventsource')))).EventSource;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* Execute an interaction and return a promise which will be resolved with the executed run when
|
|
53
|
-
* the run completes or fails.
|
|
54
|
-
* If the onChunk callback is passed then the streaming of the result is enabled.
|
|
55
|
-
* The onChunk callback with be called with the next chunk of the result as soon as it is available.
|
|
56
|
-
* When all chunks are received the function will return the resolved promise
|
|
57
|
-
* @param id of the interaction to execute
|
|
58
|
-
* @param payload InteractionExecutionPayload
|
|
59
|
-
* @param onChunk callback to be called when the next chunk of the response is available
|
|
60
|
-
*/
|
|
61
|
-
async function executeInteraction(client, interactionId, payload = {}, onChunk) {
|
|
62
|
-
const stream = !!onChunk;
|
|
63
|
-
const response = await client.runs.create({
|
|
64
|
-
...payload, interaction: interactionId, stream
|
|
65
|
-
});
|
|
66
|
-
if (stream) {
|
|
67
|
-
if (response.status === common_1.ExecutionRunStatus.failed) {
|
|
68
|
-
return response;
|
|
69
|
-
}
|
|
70
|
-
await handleStreaming(client, response.id, onChunk);
|
|
71
|
-
}
|
|
72
|
-
return response;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Same as executeInteraction but uses the interaction name selector instead of the id.
|
|
76
|
-
* A name selector is the interaction endpoint name suffixed with an optional tag or version which is starting with a `@` character.
|
|
77
|
-
* The special `draft` tag is used to select the draft version of the interaction. If no tag or version is specified then the latest version is selected.
|
|
78
|
-
* Examples of selectors:
|
|
79
|
-
* - `ReviewContract` - select the latest version of the ReviewContract interaction
|
|
80
|
-
* - `ReviewContract@1` - select the version 1 of the ReviewContract interaction
|
|
81
|
-
* - `ReviewContract@draft` - select the draft version of the ReviewContract interaction
|
|
82
|
-
* - `ReviewContract@fixed` - select the ReviewContract interaction which is tagged with 'fixed' tag.
|
|
83
|
-
*
|
|
84
|
-
* @param client
|
|
85
|
-
* @param interaction
|
|
86
|
-
* @param payload
|
|
87
|
-
* @param onChunk
|
|
88
|
-
* @returns
|
|
89
|
-
*/
|
|
90
|
-
async function executeInteractionByName(client, interaction, payload = {}, onChunk) {
|
|
91
|
-
const stream = !!onChunk;
|
|
92
|
-
const response = await client.post('/api/v1/execute', {
|
|
93
|
-
payload: {
|
|
94
|
-
...payload,
|
|
95
|
-
interaction,
|
|
96
|
-
stream
|
|
97
|
-
},
|
|
98
|
-
});
|
|
99
|
-
if (stream) {
|
|
100
|
-
if (response.status === common_1.ExecutionRunStatus.failed) {
|
|
101
|
-
return response;
|
|
102
|
-
}
|
|
103
|
-
await handleStreaming(client, response.id, onChunk);
|
|
104
|
-
}
|
|
105
|
-
return response;
|
|
106
|
-
}
|
|
107
|
-
function handleStreaming(client, runId, onChunk) {
|
|
108
|
-
return new Promise((resolve, reject) => {
|
|
109
|
-
(async () => {
|
|
110
|
-
try {
|
|
111
|
-
const EventSourceImpl = await EventSourceProvider();
|
|
112
|
-
const streamUrl = new URL(client.runs.baseUrl + '/' + runId + '/stream');
|
|
113
|
-
const bearerToken = client._auth ? await client._auth() : undefined;
|
|
114
|
-
if (bearerToken) {
|
|
115
|
-
const token = bearerToken.split(' ')[1];
|
|
116
|
-
streamUrl.searchParams.set('access_token', token);
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
throw new Error('No auth token available');
|
|
120
|
-
}
|
|
121
|
-
const sse = new EventSourceImpl(streamUrl.href);
|
|
122
|
-
sse.addEventListener("message", ev => {
|
|
123
|
-
try {
|
|
124
|
-
const data = JSON.parse(ev.data);
|
|
125
|
-
if (data) {
|
|
126
|
-
onChunk && onChunk(data);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
catch (err) {
|
|
130
|
-
reject(err);
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
sse.addEventListener("close", (ev) => {
|
|
134
|
-
try {
|
|
135
|
-
sse.close();
|
|
136
|
-
const msg = JSON.parse(ev.data);
|
|
137
|
-
resolve(msg);
|
|
138
|
-
}
|
|
139
|
-
catch (err) {
|
|
140
|
-
reject(err);
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
catch (err) {
|
|
145
|
-
reject(err);
|
|
146
|
-
}
|
|
147
|
-
})();
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
async function executeInteractionAsync(client, payload) {
|
|
151
|
-
return await client.post('/api/v1/execute/async', {
|
|
152
|
-
payload,
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
async function checkRateLimit(client, payload) {
|
|
156
|
-
return await client.post('/api/v1/execute/rate-limit/request', {
|
|
157
|
-
payload
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
//# sourceMappingURL=execute.js.map
|
package/lib/cjs/execute.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execute.js","sourceRoot":"","sources":["../../src/execute.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,kDAMC;AAYD,gDAeC;AAkBD,4DAmBC;AA4CD,0DAIC;AAED,wCAIC;AA/HD,6CAAiP;AAG1O,KAAK,UAAU,mBAAmB;IACrC,IAAI,OAAO,UAAU,CAAC,WAAW,KAAK,UAAU,EAAE,CAAC;QAC/C,OAAO,UAAU,CAAC,WAAW,CAAC;IAClC,CAAC;SAAM,CAAC;QACJ,OAAO,CAAC,wDAAa,aAAa,GAAC,CAAC,CAAC,WAAW,CAAC;IACrD,CAAC;AACL,CAAC;AACD;;;;;;;;;;GAUG;AACI,KAAK,UAAU,kBAAkB,CAAU,MAAsB,EACpE,aAAqB,EACrB,UAAuC,EAAE,EACzC,OAAiC;IACjC,MAAM,MAAM,GAAG,CAAC,CAAC,OAAO,CAAC;IACzB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;QACtC,GAAG,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM;KACjD,CAAC,CAAC;IACH,IAAI,MAAM,EAAE,CAAC;QACT,IAAI,QAAQ,CAAC,MAAM,KAAK,2BAAkB,CAAC,MAAM,EAAE,CAAC;YAChD,OAAO,QAAQ,CAAC;QACpB,CAAC;QACD,MAAM,eAAe,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC,C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AC;AACP,CAAC;AAEM,KAAK,UAAU,cAAc,CAAC,MAAsB,EAAE,OAAgC;IACzF,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,oCAAoC,EAAE;QAC3D,OAAO;KACV,CAAC,CAAC;AACP,CAAC"}
|
package/lib/cjs/index.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
-
};
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.RemoteMcpConnectionsApi = exports.OAuthServerApi = exports.OAuthProvidersApi = exports.OAuthGrantsApi = exports.OAuthClientsApi = void 0;
|
|
21
|
-
__exportStar(require("./client.js"), exports);
|
|
22
|
-
__exportStar(require("./InteractionBase.js"), exports);
|
|
23
|
-
__exportStar(require("./InteractionOutput.js"), exports);
|
|
24
|
-
var OAuthClientsApi_js_1 = require("./OAuthClientsApi.js");
|
|
25
|
-
Object.defineProperty(exports, "OAuthClientsApi", { enumerable: true, get: function () { return __importDefault(OAuthClientsApi_js_1).default; } });
|
|
26
|
-
var OAuthGrantsApi_js_1 = require("./OAuthGrantsApi.js");
|
|
27
|
-
Object.defineProperty(exports, "OAuthGrantsApi", { enumerable: true, get: function () { return __importDefault(OAuthGrantsApi_js_1).default; } });
|
|
28
|
-
var OAuthProvidersApi_js_1 = require("./OAuthProvidersApi.js");
|
|
29
|
-
Object.defineProperty(exports, "OAuthProvidersApi", { enumerable: true, get: function () { return __importDefault(OAuthProvidersApi_js_1).default; } });
|
|
30
|
-
var OAuthServerApi_js_1 = require("./OAuthServerApi.js");
|
|
31
|
-
Object.defineProperty(exports, "OAuthServerApi", { enumerable: true, get: function () { return __importDefault(OAuthServerApi_js_1).default; } });
|
|
32
|
-
var RemoteMcpConnectionsApi_js_1 = require("./RemoteMcpConnectionsApi.js");
|
|
33
|
-
Object.defineProperty(exports, "RemoteMcpConnectionsApi", { enumerable: true, get: function () { return __importDefault(RemoteMcpConnectionsApi_js_1).default; } });
|
|
34
|
-
__exportStar(require("./store/index.js"), exports);
|
|
35
|
-
__exportStar(require("./StreamSource.js"), exports);
|
|
36
|
-
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAGA,8CAA4B;AAE5B,uDAAqC;AACrC,yDAAuC;AACvC,2DAAkE;AAAzD,sIAAA,OAAO,OAAmB;AACnC,yDAAgE;AAAvD,oIAAA,OAAO,OAAkB;AAClC,+DAAsE;AAA7D,0IAAA,OAAO,OAAqB;AACrC,yDAAgE;AAAvD,oIAAA,OAAO,OAAkB;AAClC,2EAAkF;AAAzE,sJAAA,OAAO,OAA2B;AAM3C,mDAAiC;AACjC,oDAAkC"}
|