@atlanai/sdk 0.2.2 → 0.2.3
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 +6 -2
- package/dist/client.d.ts +4 -1
- package/dist/client.js +13 -1
- package/dist/errors.d.ts +1 -0
- package/dist/errors.js +12 -1
- package/dist/evals.d.ts +5 -1
- package/dist/evals.js +285 -70
- package/dist/index.d.ts +1 -0
- package/dist/manifest.json +84 -11
- package/dist/raw/agent/apis/AgentsApi.d.ts +29 -0
- package/dist/raw/agent/apis/AgentsApi.js +62 -1
- package/dist/raw/agent/apis/SessionsApi.d.ts +2 -2
- package/dist/raw/agent/apis/SessionsApi.js +2 -2
- package/dist/raw/agent/models/AgentAgentArtifactView.d.ts +48 -0
- package/dist/raw/agent/models/AgentAgentArtifactView.js +13 -0
- package/dist/raw/agent/models/AgentAgentEnvironmentArtifactView.d.ts +12 -0
- package/dist/raw/agent/models/AgentAgentEnvironmentArtifactView.js +2 -0
- package/dist/raw/agent/models/AgentAgentEnvironmentMeta.d.ts +12 -0
- package/dist/raw/agent/models/AgentAgentEnvironmentMeta.js +2 -0
- package/dist/raw/agent/models/AgentAgentMeta.d.ts +48 -0
- package/dist/raw/agent/models/AgentAgentMeta.js +13 -0
- package/dist/raw/agent/models/AgentAgentProviderArtifactView.d.ts +55 -2
- package/dist/raw/agent/models/AgentAgentProviderArtifactView.js +8 -0
- package/dist/raw/agent/models/AgentAgentProviderCreate.d.ts +24 -3
- package/dist/raw/agent/models/AgentAgentProviderCreate.js +4 -0
- package/dist/raw/agent/models/AgentAgentProviderMeta.d.ts +56 -13
- package/dist/raw/agent/models/AgentAgentProviderMeta.js +8 -0
- package/dist/raw/agent/models/AgentAgentProviderPatch.d.ts +13 -0
- package/dist/raw/agent/models/AgentAgentProviderPatch.js +4 -0
- package/dist/raw/agent/models/AgentAgentProviderType.d.ts +19 -9
- package/dist/raw/agent/models/AgentAgentProviderType.js +18 -8
- package/dist/raw/agent/models/AgentListAgentFrameworks401Response.d.ts +1 -0
- package/dist/raw/agent/models/AgentListAgentFrameworks401Response.js +1 -0
- package/dist/raw/agent/models/AgentPageSessionEventView.d.ts +3 -3
- package/dist/raw/agent/models/AgentPageSessionEventView.js +3 -3
- package/dist/raw/agent/models/AgentRemoteSessionEvent.d.ts +38 -0
- package/dist/raw/agent/models/AgentRemoteSessionEvent.js +58 -0
- package/dist/raw/agent/models/AgentSessionArtifactView.d.ts +25 -0
- package/dist/raw/agent/models/AgentSessionArtifactView.js +2 -0
- package/dist/raw/agent/models/AgentSessionEventView.d.ts +30 -0
- package/dist/raw/agent/models/AgentSessionEventView.js +57 -0
- package/dist/raw/agent/models/AgentSessionMeta.d.ts +25 -0
- package/dist/raw/agent/models/AgentSessionMeta.js +2 -0
- package/dist/raw/agent/models/AgentSessionStreamFrame.d.ts +8 -6
- package/dist/raw/agent/models/AgentSessionStreamFrame.js +7 -0
- package/dist/raw/agent/models/AgentSyncState.d.ts +27 -0
- package/dist/raw/agent/models/AgentSyncState.js +55 -0
- package/dist/raw/agent/models/TriggerBody.d.ts +52 -0
- package/dist/raw/agent/models/TriggerBody.js +58 -0
- package/dist/raw/agent/models/index.d.ts +4 -1
- package/dist/raw/agent/models/index.js +4 -1
- package/dist/raw/eval/models/EvalListDatasets401Response.d.ts +1 -0
- package/dist/raw/eval/models/EvalListDatasets401Response.js +1 -0
- package/dist/raw/file/models/FileList401Response.d.ts +1 -0
- package/dist/raw/file/models/FileList401Response.js +1 -0
- package/dist/raw/mcp/apis/ServersApi.d.ts +2 -2
- package/dist/raw/mcp/apis/ServersApi.js +2 -2
- package/dist/raw/mcp/models/McpConnectionState.d.ts +2 -1
- package/dist/raw/mcp/models/McpConnectionState.js +2 -1
- package/dist/raw/mcp/models/McpListServers401Response.d.ts +1 -0
- package/dist/raw/mcp/models/McpListServers401Response.js +1 -0
- package/dist/raw/mcp/models/McpServerTestResponse.d.ts +13 -2
- package/dist/raw/model/models/ModelListProviders401Response.d.ts +1 -0
- package/dist/raw/model/models/ModelListProviders401Response.js +1 -0
- package/dist/raw/registry/apis/WorkspacesApi.d.ts +28 -0
- package/dist/raw/registry/apis/WorkspacesApi.js +61 -1
- package/dist/raw/registry/models/CreateWorkspaceBody.d.ts +9 -0
- package/dist/raw/registry/models/CreateWorkspaceBody.js +2 -0
- package/dist/raw/registry/models/RegistryAggregate401Response.d.ts +1 -0
- package/dist/raw/registry/models/RegistryAggregate401Response.js +1 -0
- package/dist/raw/registry/models/RegistryWorkspaceView.d.ts +9 -0
- package/dist/raw/registry/models/RegistryWorkspaceView.js +4 -0
- package/dist/raw/registry/models/SearchRequest.d.ts +1 -1
- package/dist/raw/registry/models/SetVisibilityBody.d.ts +33 -0
- package/dist/raw/registry/models/SetVisibilityBody.js +50 -0
- package/dist/raw/registry/models/index.d.ts +1 -0
- package/dist/raw/registry/models/index.js +1 -0
- package/dist/raw/secret/apis/OauthApi.d.ts +143 -0
- package/dist/raw/secret/apis/OauthApi.js +335 -0
- package/dist/raw/secret/apis/index.d.ts +1 -0
- package/dist/raw/secret/apis/index.js +19 -0
- package/dist/raw/secret/index.d.ts +1 -0
- package/dist/raw/secret/index.js +1 -0
- package/dist/raw/secret/models/GatewayOauthCompleteRequest.d.ts +32 -0
- package/dist/raw/secret/models/GatewayOauthCompleteRequest.js +50 -0
- package/dist/raw/secret/models/GatewayOauthCompletion.d.ts +46 -0
- package/dist/raw/secret/models/GatewayOauthCompletion.js +55 -0
- package/dist/raw/secret/models/GatewayOauthConnection.d.ts +83 -0
- package/dist/raw/secret/models/GatewayOauthConnection.js +83 -0
- package/dist/raw/secret/models/GatewayOauthOwner.d.ts +31 -0
- package/dist/raw/secret/models/GatewayOauthOwner.js +59 -0
- package/dist/raw/secret/models/GatewayOauthProviderView.d.ts +69 -0
- package/dist/raw/secret/models/GatewayOauthProviderView.js +69 -0
- package/dist/raw/secret/models/GatewayOauthStartRequest.d.ts +52 -0
- package/dist/raw/secret/models/GatewayOauthStartRequest.js +59 -0
- package/dist/raw/secret/models/GatewayOauthStarted.d.ts +39 -0
- package/dist/raw/secret/models/GatewayOauthStarted.js +54 -0
- package/dist/raw/secret/models/SecretCompleteOauth400Response.d.ts +70 -0
- package/dist/raw/secret/models/SecretCompleteOauth400Response.js +80 -0
- package/dist/raw/secret/models/SecretCompleteOauth413Response.d.ts +64 -0
- package/dist/raw/secret/models/SecretCompleteOauth413Response.js +74 -0
- package/dist/raw/secret/models/SecretCompleteOauth415Response.d.ts +64 -0
- package/dist/raw/secret/models/SecretCompleteOauth415Response.js +74 -0
- package/dist/raw/secret/models/SecretCompleteOauth422Response.d.ts +63 -0
- package/dist/raw/secret/models/SecretCompleteOauth422Response.js +75 -0
- package/dist/raw/secret/models/SecretDisconnectOauth400Response.d.ts +67 -0
- package/dist/raw/secret/models/SecretDisconnectOauth400Response.js +77 -0
- package/dist/raw/secret/models/SecretOauthCallback400Response.d.ts +68 -0
- package/dist/raw/secret/models/SecretOauthCallback400Response.js +78 -0
- package/dist/raw/secret/models/SecretOauthCallback401Response.d.ts +80 -0
- package/dist/raw/secret/models/SecretOauthCallback401Response.js +90 -0
- package/dist/raw/secret/models/SecretOauthCallback403Response.d.ts +66 -0
- package/dist/raw/secret/models/SecretOauthCallback403Response.js +76 -0
- package/dist/raw/secret/models/SecretOauthCallback404Response.d.ts +65 -0
- package/dist/raw/secret/models/SecretOauthCallback404Response.js +75 -0
- package/dist/raw/secret/models/SecretOauthCallback500Response.d.ts +64 -0
- package/dist/raw/secret/models/SecretOauthCallback500Response.js +74 -0
- package/dist/raw/secret/models/SecretOauthCallback503Response.d.ts +66 -0
- package/dist/raw/secret/models/SecretOauthCallback503Response.js +76 -0
- package/dist/raw/secret/models/SecretOauthCallback504Response.d.ts +63 -0
- package/dist/raw/secret/models/SecretOauthCallback504Response.js +75 -0
- package/dist/raw/secret/models/index.d.ts +19 -0
- package/dist/raw/secret/models/index.js +19 -0
- package/dist/raw/skill/models/SkillInsightSchemas401Response.d.ts +1 -0
- package/dist/raw/skill/models/SkillInsightSchemas401Response.js +1 -0
- package/dist/resource-types.d.ts +670 -0
- package/dist/resource-types.js +2 -0
- package/dist/resources.json +86 -0
- package/dist/tracing/client.d.ts +8 -1
- package/dist/tracing/client.js +43 -16
- package/dist/tracing/config.d.ts +3 -1
- package/dist/tracing/config.js +7 -2
- package/dist/tracing/exporter.d.ts +19 -1
- package/dist/tracing/exporter.js +56 -14
- package/dist/tracing/propagation.d.ts +2 -0
- package/dist/tracing/propagation.js +16 -0
- package/dist/tracing/semconv.d.ts +4 -0
- package/dist/tracing/semconv.js +14 -2
- package/dist/tracing/spans.d.ts +2 -0
- package/dist/tracing/spans.js +12 -1
- package/dist/tracing/version.d.ts +1 -1
- package/dist/tracing/version.js +1 -1
- package/package.json +1 -1
- package/dist/raw/agent/models/Box.d.ts +0 -342
- package/dist/raw/agent/models/Box.js +0 -167
package/dist/manifest.json
CHANGED
|
@@ -599,9 +599,18 @@
|
|
|
599
599
|
"stability": "stable",
|
|
600
600
|
"summary": "Set a workspace's release policy for a channel",
|
|
601
601
|
"visibility": "public"
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"error_contract": "native",
|
|
605
|
+
"method": "PATCH",
|
|
606
|
+
"operation_id": "registry.setWorkspaceVisibility",
|
|
607
|
+
"path": "/workspaces/{workspace_id}/visibility",
|
|
608
|
+
"stability": "stable",
|
|
609
|
+
"summary": "Change a workspace's visibility",
|
|
610
|
+
"visibility": "public"
|
|
602
611
|
}
|
|
603
612
|
],
|
|
604
|
-
"spec_sha256": "
|
|
613
|
+
"spec_sha256": "d290102ee63724bda78bbb7138ba9072db9aa4d01bdae3a106acd727b971b612"
|
|
605
614
|
},
|
|
606
615
|
{
|
|
607
616
|
"api_version": "v1",
|
|
@@ -762,7 +771,7 @@
|
|
|
762
771
|
"visibility": "public"
|
|
763
772
|
}
|
|
764
773
|
],
|
|
765
|
-
"spec_sha256": "
|
|
774
|
+
"spec_sha256": "744f5927f216bc3ed7da2fa43f06c97f8197b72d77c24ac8ef97598582d6e8e5"
|
|
766
775
|
},
|
|
767
776
|
{
|
|
768
777
|
"api_version": "v1",
|
|
@@ -815,7 +824,7 @@
|
|
|
815
824
|
"visibility": "public"
|
|
816
825
|
}
|
|
817
826
|
],
|
|
818
|
-
"spec_sha256": "
|
|
827
|
+
"spec_sha256": "e715f2be247e7209d78401d2d15602c081adc94a7194bfefc6a60020cf4d3287"
|
|
819
828
|
},
|
|
820
829
|
{
|
|
821
830
|
"api_version": "v1",
|
|
@@ -1002,6 +1011,15 @@
|
|
|
1002
1011
|
"summary": "List an agent's sessions",
|
|
1003
1012
|
"visibility": "public"
|
|
1004
1013
|
},
|
|
1014
|
+
{
|
|
1015
|
+
"error_contract": "native",
|
|
1016
|
+
"method": "POST",
|
|
1017
|
+
"operation_id": "agent.createSession",
|
|
1018
|
+
"path": "/agents/{agent_id}/sessions",
|
|
1019
|
+
"stability": "stable",
|
|
1020
|
+
"summary": "Trigger an agent run",
|
|
1021
|
+
"visibility": "public"
|
|
1022
|
+
},
|
|
1005
1023
|
{
|
|
1006
1024
|
"error_contract": "native",
|
|
1007
1025
|
"method": "GET",
|
|
@@ -1534,7 +1552,7 @@
|
|
|
1534
1552
|
"visibility": "public"
|
|
1535
1553
|
}
|
|
1536
1554
|
],
|
|
1537
|
-
"spec_sha256": "
|
|
1555
|
+
"spec_sha256": "826ed751c40e27f9039f58a42d6955eb44613fc7f20f4a629c7cfbcb31aec9af"
|
|
1538
1556
|
},
|
|
1539
1557
|
{
|
|
1540
1558
|
"api_version": "v1",
|
|
@@ -1632,14 +1650,69 @@
|
|
|
1632
1650
|
"visibility": "public"
|
|
1633
1651
|
}
|
|
1634
1652
|
],
|
|
1635
|
-
"spec_sha256": "
|
|
1653
|
+
"spec_sha256": "afc3aff4ae51935c22f0edba307ffeb0ccd8f4553d0a65e4a203d5ed731126bf"
|
|
1636
1654
|
},
|
|
1637
1655
|
{
|
|
1638
1656
|
"api_version": "v1",
|
|
1639
1657
|
"base_path": "/secret/v1",
|
|
1640
1658
|
"name": "secret",
|
|
1641
|
-
"operations": [
|
|
1642
|
-
|
|
1659
|
+
"operations": [
|
|
1660
|
+
{
|
|
1661
|
+
"error_contract": "native",
|
|
1662
|
+
"method": "GET",
|
|
1663
|
+
"operation_id": "secret.oauthCallback",
|
|
1664
|
+
"path": "/oauth/callback/{provider}",
|
|
1665
|
+
"stability": "stable",
|
|
1666
|
+
"summary": "`GET /<ext>/v1/oauth/callback/{provider}` — the provider's redirect target.",
|
|
1667
|
+
"visibility": "public"
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
"error_contract": "native",
|
|
1671
|
+
"method": "POST",
|
|
1672
|
+
"operation_id": "secret.completeOauth",
|
|
1673
|
+
"path": "/oauth/complete",
|
|
1674
|
+
"stability": "stable",
|
|
1675
|
+
"summary": "`POST /<ext>/v1/oauth/complete` — polled until it answers `connected`.",
|
|
1676
|
+
"visibility": "public"
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
"error_contract": "native",
|
|
1680
|
+
"method": "GET",
|
|
1681
|
+
"operation_id": "secret.listOauthConnections",
|
|
1682
|
+
"path": "/oauth/connections",
|
|
1683
|
+
"stability": "stable",
|
|
1684
|
+
"summary": "`GET /<ext>/v1/oauth/connections`.",
|
|
1685
|
+
"visibility": "public"
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
"error_contract": "native",
|
|
1689
|
+
"method": "DELETE",
|
|
1690
|
+
"operation_id": "secret.disconnectOauth",
|
|
1691
|
+
"path": "/oauth/connections/{secret_id}",
|
|
1692
|
+
"stability": "stable",
|
|
1693
|
+
"summary": "`DELETE /<ext>/v1/oauth/connections/{secret_id}`.",
|
|
1694
|
+
"visibility": "public"
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
"error_contract": "native",
|
|
1698
|
+
"method": "GET",
|
|
1699
|
+
"operation_id": "secret.listOauthProviders",
|
|
1700
|
+
"path": "/oauth/providers",
|
|
1701
|
+
"stability": "stable",
|
|
1702
|
+
"summary": "`GET /<ext>/v1/oauth/providers` — what can be connected, and the callback URL\nto register for each.",
|
|
1703
|
+
"visibility": "public"
|
|
1704
|
+
},
|
|
1705
|
+
{
|
|
1706
|
+
"error_contract": "native",
|
|
1707
|
+
"method": "POST",
|
|
1708
|
+
"operation_id": "secret.startOauth",
|
|
1709
|
+
"path": "/oauth/start",
|
|
1710
|
+
"stability": "stable",
|
|
1711
|
+
"summary": "`POST /<ext>/v1/oauth/start`.",
|
|
1712
|
+
"visibility": "public"
|
|
1713
|
+
}
|
|
1714
|
+
],
|
|
1715
|
+
"spec_sha256": "c855f6078dfc25e600930a9d5a9be59db749a65cf8e7b746251fd21fd99604b3"
|
|
1643
1716
|
},
|
|
1644
1717
|
{
|
|
1645
1718
|
"api_version": "v1",
|
|
@@ -1692,7 +1765,7 @@
|
|
|
1692
1765
|
"visibility": "public"
|
|
1693
1766
|
}
|
|
1694
1767
|
],
|
|
1695
|
-
"spec_sha256": "
|
|
1768
|
+
"spec_sha256": "aff59c7f80ccdbbcaf50ca49dc7a8df37bcf3758212d6006befd4caf29693b41"
|
|
1696
1769
|
},
|
|
1697
1770
|
{
|
|
1698
1771
|
"api_version": "v1",
|
|
@@ -2039,12 +2112,12 @@
|
|
|
2039
2112
|
"visibility": "public"
|
|
2040
2113
|
}
|
|
2041
2114
|
],
|
|
2042
|
-
"spec_sha256": "
|
|
2115
|
+
"spec_sha256": "bd475939af81ccbc86afeb3946826aad6f293fc48c67d771d04a9fa549da6fd8"
|
|
2043
2116
|
}
|
|
2044
2117
|
],
|
|
2045
2118
|
"source": {
|
|
2046
|
-
"fetched_at": "2026-09-
|
|
2119
|
+
"fetched_at": "2026-09-17T12:52:47Z",
|
|
2047
2120
|
"kind": "deployment",
|
|
2048
|
-
"origin": "https://
|
|
2121
|
+
"origin": "https://api.atlan.com"
|
|
2049
2122
|
}
|
|
2050
2123
|
}
|
|
@@ -20,6 +20,8 @@ import { type AgentArtifactAggregateResponse } from '../models/AgentArtifactAggr
|
|
|
20
20
|
import { type AgentArtifactSearchRequest } from '../models/AgentArtifactSearchRequest';
|
|
21
21
|
import { type AgentPageAgentArtifactView } from '../models/AgentPageAgentArtifactView';
|
|
22
22
|
import { type AgentPageSessionArtifactView } from '../models/AgentPageSessionArtifactView';
|
|
23
|
+
import { type AgentSessionArtifactView } from '../models/AgentSessionArtifactView';
|
|
24
|
+
import { type TriggerBody } from '../models/TriggerBody';
|
|
23
25
|
export interface AgentAggregateAgentsRequest {
|
|
24
26
|
agentArtifactAggregateRequest: AgentArtifactAggregateRequest;
|
|
25
27
|
contentEncoding?: AgentAggregateAgentsContentEncodingEnum;
|
|
@@ -31,6 +33,11 @@ export interface AgentCreateAgentRequest {
|
|
|
31
33
|
agentAgentCreate: AgentAgentCreate;
|
|
32
34
|
contentEncoding?: AgentCreateAgentContentEncodingEnum;
|
|
33
35
|
}
|
|
36
|
+
export interface AgentCreateSessionRequest {
|
|
37
|
+
agentId: string;
|
|
38
|
+
triggerBody: TriggerBody;
|
|
39
|
+
contentEncoding?: AgentCreateSessionContentEncodingEnum;
|
|
40
|
+
}
|
|
34
41
|
export interface AgentDeleteAgentProfileImageRequest {
|
|
35
42
|
agentId: string;
|
|
36
43
|
}
|
|
@@ -120,6 +127,20 @@ export declare class AgentsApi extends runtime.BaseAPI {
|
|
|
120
127
|
* Create an agent
|
|
121
128
|
*/
|
|
122
129
|
agentCreateAgent(requestParameters: AgentCreateAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentAgentArtifactView>;
|
|
130
|
+
/**
|
|
131
|
+
* Creates request options for agentCreateSession without sending the request
|
|
132
|
+
*/
|
|
133
|
+
agentCreateSessionRequestOpts(requestParameters: AgentCreateSessionRequest): Promise<runtime.RequestOpts>;
|
|
134
|
+
/**
|
|
135
|
+
* Create a remote session for this agent on the named `agent_provider`, which must be `claude_managed` — the gateway executes nothing itself and dials no other provider type. Pushes the agent\'s spec (reusing the last pushed version when it is unchanged), ensures the agent\'s credential vault and sandbox environment exist, creates the remote session pinned to that version, queues the opening `user.message`, and records a governed `session` artifact carrying the remote handle. Returns that artifact. There is no harness equivalent — a harness runs on the customer\'s machine and its transcript is uploaded.
|
|
136
|
+
* Trigger an agent run
|
|
137
|
+
*/
|
|
138
|
+
agentCreateSessionRaw(requestParameters: AgentCreateSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentSessionArtifactView>>;
|
|
139
|
+
/**
|
|
140
|
+
* Create a remote session for this agent on the named `agent_provider`, which must be `claude_managed` — the gateway executes nothing itself and dials no other provider type. Pushes the agent\'s spec (reusing the last pushed version when it is unchanged), ensures the agent\'s credential vault and sandbox environment exist, creates the remote session pinned to that version, queues the opening `user.message`, and records a governed `session` artifact carrying the remote handle. Returns that artifact. There is no harness equivalent — a harness runs on the customer\'s machine and its transcript is uploaded.
|
|
141
|
+
* Trigger an agent run
|
|
142
|
+
*/
|
|
143
|
+
agentCreateSession(requestParameters: AgentCreateSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentSessionArtifactView>;
|
|
123
144
|
/**
|
|
124
145
|
* Creates request options for agentDeleteAgentProfileImage without sending the request
|
|
125
146
|
*/
|
|
@@ -277,6 +298,14 @@ export declare enum AgentCreateAgentContentEncodingEnum {
|
|
|
277
298
|
Base64 = "base64",
|
|
278
299
|
GzipBase64 = "gzip, base64"
|
|
279
300
|
}
|
|
301
|
+
/**
|
|
302
|
+
* @export
|
|
303
|
+
* @enum {string}
|
|
304
|
+
*/
|
|
305
|
+
export declare enum AgentCreateSessionContentEncodingEnum {
|
|
306
|
+
Base64 = "base64",
|
|
307
|
+
GzipBase64 = "gzip, base64"
|
|
308
|
+
}
|
|
280
309
|
/**
|
|
281
310
|
* @export
|
|
282
311
|
* @enum {string}
|
|
@@ -46,7 +46,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
46
46
|
};
|
|
47
47
|
})();
|
|
48
48
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
-
exports.AgentUploadAgentProfileImageContentEncodingEnum = exports.AgentSearchAgentsContentEncodingEnum = exports.AgentPatchAgentContentEncodingEnum = exports.AgentCreateAgentContentEncodingEnum = exports.AgentAggregateAgentsContentEncodingEnum = exports.AgentsApi = void 0;
|
|
49
|
+
exports.AgentUploadAgentProfileImageContentEncodingEnum = exports.AgentSearchAgentsContentEncodingEnum = exports.AgentPatchAgentContentEncodingEnum = exports.AgentCreateSessionContentEncodingEnum = exports.AgentCreateAgentContentEncodingEnum = exports.AgentAggregateAgentsContentEncodingEnum = exports.AgentsApi = void 0;
|
|
50
50
|
const runtime = __importStar(require("../runtime"));
|
|
51
51
|
const AgentAgentArtifactView_1 = require("../models/AgentAgentArtifactView");
|
|
52
52
|
const AgentAgentCreate_1 = require("../models/AgentAgentCreate");
|
|
@@ -58,6 +58,8 @@ const AgentArtifactAggregateResponse_1 = require("../models/AgentArtifactAggrega
|
|
|
58
58
|
const AgentArtifactSearchRequest_1 = require("../models/AgentArtifactSearchRequest");
|
|
59
59
|
const AgentPageAgentArtifactView_1 = require("../models/AgentPageAgentArtifactView");
|
|
60
60
|
const AgentPageSessionArtifactView_1 = require("../models/AgentPageSessionArtifactView");
|
|
61
|
+
const AgentSessionArtifactView_1 = require("../models/AgentSessionArtifactView");
|
|
62
|
+
const TriggerBody_1 = require("../models/TriggerBody");
|
|
61
63
|
/**
|
|
62
64
|
*
|
|
63
65
|
*/
|
|
@@ -196,6 +198,56 @@ class AgentsApi extends runtime.BaseAPI {
|
|
|
196
198
|
const response = await this.agentCreateAgentRaw(requestParameters, initOverrides);
|
|
197
199
|
return await response.value();
|
|
198
200
|
}
|
|
201
|
+
/**
|
|
202
|
+
* Creates request options for agentCreateSession without sending the request
|
|
203
|
+
*/
|
|
204
|
+
async agentCreateSessionRequestOpts(requestParameters) {
|
|
205
|
+
if (requestParameters['agentId'] == null) {
|
|
206
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling agentCreateSession().');
|
|
207
|
+
}
|
|
208
|
+
if (requestParameters['triggerBody'] == null) {
|
|
209
|
+
throw new runtime.RequiredError('triggerBody', 'Required parameter "triggerBody" was null or undefined when calling agentCreateSession().');
|
|
210
|
+
}
|
|
211
|
+
const queryParameters = {};
|
|
212
|
+
const headerParameters = {};
|
|
213
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
214
|
+
if (requestParameters['contentEncoding'] != null) {
|
|
215
|
+
headerParameters['Content-Encoding'] = String(requestParameters['contentEncoding']);
|
|
216
|
+
}
|
|
217
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
218
|
+
const token = this.configuration.accessToken;
|
|
219
|
+
const tokenString = await token("bearer", []);
|
|
220
|
+
if (tokenString) {
|
|
221
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
let urlPath = `/agents/{agent_id}/sessions`;
|
|
225
|
+
urlPath = urlPath.replace('{agent_id}', encodeURIComponent(String(requestParameters['agentId'])));
|
|
226
|
+
return {
|
|
227
|
+
path: urlPath,
|
|
228
|
+
method: 'POST',
|
|
229
|
+
headers: headerParameters,
|
|
230
|
+
query: queryParameters,
|
|
231
|
+
body: (0, TriggerBody_1.TriggerBodyToJSON)(requestParameters['triggerBody']),
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Create a remote session for this agent on the named `agent_provider`, which must be `claude_managed` — the gateway executes nothing itself and dials no other provider type. Pushes the agent\'s spec (reusing the last pushed version when it is unchanged), ensures the agent\'s credential vault and sandbox environment exist, creates the remote session pinned to that version, queues the opening `user.message`, and records a governed `session` artifact carrying the remote handle. Returns that artifact. There is no harness equivalent — a harness runs on the customer\'s machine and its transcript is uploaded.
|
|
236
|
+
* Trigger an agent run
|
|
237
|
+
*/
|
|
238
|
+
async agentCreateSessionRaw(requestParameters, initOverrides) {
|
|
239
|
+
const requestOptions = await this.agentCreateSessionRequestOpts(requestParameters);
|
|
240
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
241
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentSessionArtifactView_1.AgentSessionArtifactViewFromJSON)(jsonValue));
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Create a remote session for this agent on the named `agent_provider`, which must be `claude_managed` — the gateway executes nothing itself and dials no other provider type. Pushes the agent\'s spec (reusing the last pushed version when it is unchanged), ensures the agent\'s credential vault and sandbox environment exist, creates the remote session pinned to that version, queues the opening `user.message`, and records a governed `session` artifact carrying the remote handle. Returns that artifact. There is no harness equivalent — a harness runs on the customer\'s machine and its transcript is uploaded.
|
|
245
|
+
* Trigger an agent run
|
|
246
|
+
*/
|
|
247
|
+
async agentCreateSession(requestParameters, initOverrides) {
|
|
248
|
+
const response = await this.agentCreateSessionRaw(requestParameters, initOverrides);
|
|
249
|
+
return await response.value();
|
|
250
|
+
}
|
|
199
251
|
/**
|
|
200
252
|
* Creates request options for agentDeleteAgentProfileImage without sending the request
|
|
201
253
|
*/
|
|
@@ -679,6 +731,15 @@ var AgentCreateAgentContentEncodingEnum;
|
|
|
679
731
|
AgentCreateAgentContentEncodingEnum["Base64"] = "base64";
|
|
680
732
|
AgentCreateAgentContentEncodingEnum["GzipBase64"] = "gzip, base64";
|
|
681
733
|
})(AgentCreateAgentContentEncodingEnum || (exports.AgentCreateAgentContentEncodingEnum = AgentCreateAgentContentEncodingEnum = {}));
|
|
734
|
+
/**
|
|
735
|
+
* @export
|
|
736
|
+
* @enum {string}
|
|
737
|
+
*/
|
|
738
|
+
var AgentCreateSessionContentEncodingEnum;
|
|
739
|
+
(function (AgentCreateSessionContentEncodingEnum) {
|
|
740
|
+
AgentCreateSessionContentEncodingEnum["Base64"] = "base64";
|
|
741
|
+
AgentCreateSessionContentEncodingEnum["GzipBase64"] = "gzip, base64";
|
|
742
|
+
})(AgentCreateSessionContentEncodingEnum || (exports.AgentCreateSessionContentEncodingEnum = AgentCreateSessionContentEncodingEnum = {}));
|
|
682
743
|
/**
|
|
683
744
|
* @export
|
|
684
745
|
* @enum {string}
|
|
@@ -210,12 +210,12 @@ export declare class SessionsApi extends runtime.BaseAPI {
|
|
|
210
210
|
*/
|
|
211
211
|
agentStreamEventsRequestOpts(requestParameters: AgentStreamEventsRequest): Promise<runtime.RequestOpts>;
|
|
212
212
|
/**
|
|
213
|
-
* Tail the session\'s turns as Server-Sent Events until it reaches a terminal status. Each `data:` line is one JSON frame: an uploaded turn\'s metadata object, or — for an agent run on a `claude_managed` provider — a provider-native event, since the upstream SSE has no replay so the gateway polls the persisted history by watermark instead. A final `{\"type\":\"completed\"|\"failed\"}` frame closes the stream. The stream also closes without a terminal frame if the tail exceeds its poll ceiling (~6 minutes), which bounds an orphaned connection — treat an absent terminal frame as \"still running\" and re-open.
|
|
213
|
+
* Tail the session\'s turns as Server-Sent Events until it reaches a terminal status. Each `data:` line is one JSON frame: an uploaded turn\'s metadata object, or — for an agent run on a `claude_managed` provider — a provider-native event, since the upstream SSE has no replay so the gateway polls the persisted history by watermark instead. A final `{\"type\":\"completed\"|\"failed\"}` frame closes the stream. Failures after headers carry a generic `error` in the failed terminal frame. The stream also closes without a terminal frame if the tail exceeds its poll ceiling (~6 minutes), which bounds an orphaned connection — treat an absent terminal frame as \"still running\" and re-open.
|
|
214
214
|
* Stream session turns over SSE
|
|
215
215
|
*/
|
|
216
216
|
agentStreamEventsRaw(requestParameters: AgentStreamEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentSessionStreamFrame>>;
|
|
217
217
|
/**
|
|
218
|
-
* Tail the session\'s turns as Server-Sent Events until it reaches a terminal status. Each `data:` line is one JSON frame: an uploaded turn\'s metadata object, or — for an agent run on a `claude_managed` provider — a provider-native event, since the upstream SSE has no replay so the gateway polls the persisted history by watermark instead. A final `{\"type\":\"completed\"|\"failed\"}` frame closes the stream. The stream also closes without a terminal frame if the tail exceeds its poll ceiling (~6 minutes), which bounds an orphaned connection — treat an absent terminal frame as \"still running\" and re-open.
|
|
218
|
+
* Tail the session\'s turns as Server-Sent Events until it reaches a terminal status. Each `data:` line is one JSON frame: an uploaded turn\'s metadata object, or — for an agent run on a `claude_managed` provider — a provider-native event, since the upstream SSE has no replay so the gateway polls the persisted history by watermark instead. A final `{\"type\":\"completed\"|\"failed\"}` frame closes the stream. Failures after headers carry a generic `error` in the failed terminal frame. The stream also closes without a terminal frame if the tail exceeds its poll ceiling (~6 minutes), which bounds an orphaned connection — treat an absent terminal frame as \"still running\" and re-open.
|
|
219
219
|
* Stream session turns over SSE
|
|
220
220
|
*/
|
|
221
221
|
agentStreamEvents(requestParameters: AgentStreamEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentSessionStreamFrame>;
|
|
@@ -532,7 +532,7 @@ class SessionsApi extends runtime.BaseAPI {
|
|
|
532
532
|
};
|
|
533
533
|
}
|
|
534
534
|
/**
|
|
535
|
-
* Tail the session\'s turns as Server-Sent Events until it reaches a terminal status. Each `data:` line is one JSON frame: an uploaded turn\'s metadata object, or — for an agent run on a `claude_managed` provider — a provider-native event, since the upstream SSE has no replay so the gateway polls the persisted history by watermark instead. A final `{\"type\":\"completed\"|\"failed\"}` frame closes the stream. The stream also closes without a terminal frame if the tail exceeds its poll ceiling (~6 minutes), which bounds an orphaned connection — treat an absent terminal frame as \"still running\" and re-open.
|
|
535
|
+
* Tail the session\'s turns as Server-Sent Events until it reaches a terminal status. Each `data:` line is one JSON frame: an uploaded turn\'s metadata object, or — for an agent run on a `claude_managed` provider — a provider-native event, since the upstream SSE has no replay so the gateway polls the persisted history by watermark instead. A final `{\"type\":\"completed\"|\"failed\"}` frame closes the stream. Failures after headers carry a generic `error` in the failed terminal frame. The stream also closes without a terminal frame if the tail exceeds its poll ceiling (~6 minutes), which bounds an orphaned connection — treat an absent terminal frame as \"still running\" and re-open.
|
|
536
536
|
* Stream session turns over SSE
|
|
537
537
|
*/
|
|
538
538
|
async agentStreamEventsRaw(requestParameters, initOverrides) {
|
|
@@ -541,7 +541,7 @@ class SessionsApi extends runtime.BaseAPI {
|
|
|
541
541
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentSessionStreamFrame_1.AgentSessionStreamFrameFromJSON)(jsonValue));
|
|
542
542
|
}
|
|
543
543
|
/**
|
|
544
|
-
* Tail the session\'s turns as Server-Sent Events until it reaches a terminal status. Each `data:` line is one JSON frame: an uploaded turn\'s metadata object, or — for an agent run on a `claude_managed` provider — a provider-native event, since the upstream SSE has no replay so the gateway polls the persisted history by watermark instead. A final `{\"type\":\"completed\"|\"failed\"}` frame closes the stream. The stream also closes without a terminal frame if the tail exceeds its poll ceiling (~6 minutes), which bounds an orphaned connection — treat an absent terminal frame as \"still running\" and re-open.
|
|
544
|
+
* Tail the session\'s turns as Server-Sent Events until it reaches a terminal status. Each `data:` line is one JSON frame: an uploaded turn\'s metadata object, or — for an agent run on a `claude_managed` provider — a provider-native event, since the upstream SSE has no replay so the gateway polls the persisted history by watermark instead. A final `{\"type\":\"completed\"|\"failed\"}` frame closes the stream. Failures after headers carry a generic `error` in the failed terminal frame. The stream also closes without a terminal frame if the tail exceeds its poll ceiling (~6 minutes), which bounds an orphaned connection — treat an absent terminal frame as \"still running\" and re-open.
|
|
545
545
|
* Stream session turns over SSE
|
|
546
546
|
*/
|
|
547
547
|
async agentStreamEvents(requestParameters, initOverrides) {
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { GatewayArtifactIdentityRevealView } from './GatewayArtifactIdentityRevealView';
|
|
13
13
|
import type { GatewayToolRef } from './GatewayToolRef';
|
|
14
14
|
import type { RegistryRelationshipsView } from './RegistryRelationshipsView';
|
|
15
|
+
import type { AgentSyncState } from './AgentSyncState';
|
|
15
16
|
/**
|
|
16
17
|
* An `agent` artifact: the shared artifact fields, its typed metadata, and the
|
|
17
18
|
* derived address of its profile image.
|
|
@@ -340,6 +341,53 @@ export interface AgentAgentArtifactView {
|
|
|
340
341
|
* @memberof AgentAgentArtifactView
|
|
341
342
|
*/
|
|
342
343
|
publicUrl?: string | null;
|
|
344
|
+
/**
|
|
345
|
+
* The provider's remote agent id this row is synced to. Hook-owned.
|
|
346
|
+
* @type {string}
|
|
347
|
+
* @memberof AgentAgentArtifactView
|
|
348
|
+
*/
|
|
349
|
+
remoteAgentId?: string | null;
|
|
350
|
+
/**
|
|
351
|
+
* The remote vault holding this agent's gateway credential, provisioned
|
|
352
|
+
* lazily at the first run-trigger. Hook-owned.
|
|
353
|
+
* @type {string}
|
|
354
|
+
* @memberof AgentAgentArtifactView
|
|
355
|
+
*/
|
|
356
|
+
remoteVaultId?: string | null;
|
|
357
|
+
/**
|
|
358
|
+
* The immutable remote agent version the last push minted. Hook-owned.
|
|
359
|
+
*
|
|
360
|
+
* Gateway versions map 1:1 onto the provider's immutable agent versions, and
|
|
361
|
+
* a session pins `{id, version}` — so a spec edit after a run cannot
|
|
362
|
+
* retroactively change what that run executed.
|
|
363
|
+
* @type {number}
|
|
364
|
+
* @memberof AgentAgentArtifactView
|
|
365
|
+
*/
|
|
366
|
+
remoteVersionOrdinal?: number | null;
|
|
367
|
+
/**
|
|
368
|
+
* The last remote-sync failure's bounded gateway code, so a failed push is
|
|
369
|
+
* visible on a `GET` without persisting the provider's response text.
|
|
370
|
+
* Hook-owned.
|
|
371
|
+
* @type {string}
|
|
372
|
+
* @memberof AgentAgentArtifactView
|
|
373
|
+
*/
|
|
374
|
+
syncError?: string | null;
|
|
375
|
+
/**
|
|
376
|
+
* Value of the `sync_state` field.
|
|
377
|
+
* @type {AgentSyncState}
|
|
378
|
+
* @memberof AgentAgentArtifactView
|
|
379
|
+
*/
|
|
380
|
+
syncState?: AgentSyncState | null;
|
|
381
|
+
/**
|
|
382
|
+
* A hash of the spec fields that map onto the remote agent config
|
|
383
|
+
* (`instructions`, `model_id`, `tools`, `max_step_count`). A re-trigger reuses
|
|
384
|
+
* the pushed version when it matches and pushes a new one when it does not,
|
|
385
|
+
* so repeated runs of an unchanged agent do not mint a version each time.
|
|
386
|
+
* Hook-owned.
|
|
387
|
+
* @type {string}
|
|
388
|
+
* @memberof AgentAgentArtifactView
|
|
389
|
+
*/
|
|
390
|
+
syncedSpecHash?: string | null;
|
|
343
391
|
/**
|
|
344
392
|
* Declarative tool references the agent may call.
|
|
345
393
|
* @type {Array<GatewayToolRef>}
|
|
@@ -21,6 +21,7 @@ exports.AgentAgentArtifactViewToJSONTyped = AgentAgentArtifactViewToJSONTyped;
|
|
|
21
21
|
const GatewayArtifactIdentityRevealView_1 = require("./GatewayArtifactIdentityRevealView");
|
|
22
22
|
const GatewayToolRef_1 = require("./GatewayToolRef");
|
|
23
23
|
const RegistryRelationshipsView_1 = require("./RegistryRelationshipsView");
|
|
24
|
+
const AgentSyncState_1 = require("./AgentSyncState");
|
|
24
25
|
/**
|
|
25
26
|
* Check if a given object implements the AgentAgentArtifactView interface.
|
|
26
27
|
*/
|
|
@@ -101,6 +102,12 @@ function AgentAgentArtifactViewFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
101
102
|
'maxStepCount': json['max_step_count'] == null ? undefined : json['max_step_count'],
|
|
102
103
|
'modelId': json['model_id'] === undefined ? undefined : json['model_id'] === null ? null : json['model_id'],
|
|
103
104
|
'publicUrl': json['public_url'] === undefined ? undefined : json['public_url'] === null ? null : json['public_url'],
|
|
105
|
+
'remoteAgentId': json['remote_agent_id'] === undefined ? undefined : json['remote_agent_id'] === null ? null : json['remote_agent_id'],
|
|
106
|
+
'remoteVaultId': json['remote_vault_id'] === undefined ? undefined : json['remote_vault_id'] === null ? null : json['remote_vault_id'],
|
|
107
|
+
'remoteVersionOrdinal': json['remote_version_ordinal'] === undefined ? undefined : json['remote_version_ordinal'] === null ? null : json['remote_version_ordinal'],
|
|
108
|
+
'syncError': json['sync_error'] === undefined ? undefined : json['sync_error'] === null ? null : json['sync_error'],
|
|
109
|
+
'syncState': json['sync_state'] === undefined ? undefined : json['sync_state'] === null ? null : (0, AgentSyncState_1.AgentSyncStateFromJSON)(json['sync_state']),
|
|
110
|
+
'syncedSpecHash': json['synced_spec_hash'] === undefined ? undefined : json['synced_spec_hash'] === null ? null : json['synced_spec_hash'],
|
|
104
111
|
'tools': json['tools'] == null ? undefined : (json['tools'].map(GatewayToolRef_1.GatewayToolRefFromJSON)),
|
|
105
112
|
'permissions': json['permissions'] === undefined ? undefined : json['permissions'] === null ? null : json['permissions'],
|
|
106
113
|
'profileImageUrl': json['profile_image_url'] === undefined ? undefined : json['profile_image_url'] === null ? null : json['profile_image_url'],
|
|
@@ -155,6 +162,12 @@ function AgentAgentArtifactViewToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
155
162
|
'max_step_count': value['maxStepCount'],
|
|
156
163
|
'model_id': value['modelId'],
|
|
157
164
|
'public_url': value['publicUrl'],
|
|
165
|
+
'remote_agent_id': value['remoteAgentId'],
|
|
166
|
+
'remote_vault_id': value['remoteVaultId'],
|
|
167
|
+
'remote_version_ordinal': value['remoteVersionOrdinal'],
|
|
168
|
+
'sync_error': value['syncError'],
|
|
169
|
+
'sync_state': (0, AgentSyncState_1.AgentSyncStateToJSON)(value['syncState']),
|
|
170
|
+
'synced_spec_hash': value['syncedSpecHash'],
|
|
158
171
|
'tools': value['tools'] == null ? undefined : (value['tools'].map(GatewayToolRef_1.GatewayToolRefToJSON)),
|
|
159
172
|
'permissions': value['permissions'],
|
|
160
173
|
'profile_image_url': value['profileImageUrl'],
|
|
@@ -304,6 +304,18 @@ export interface AgentAgentEnvironmentArtifactView {
|
|
|
304
304
|
* @memberof AgentAgentEnvironmentArtifactView
|
|
305
305
|
*/
|
|
306
306
|
packages?: AgentEnvironmentPackages;
|
|
307
|
+
/**
|
|
308
|
+
* The provider's id for the sandbox template this row was pushed to.
|
|
309
|
+
* Hook-owned, and set only once a run on a delegating provider has pushed it.
|
|
310
|
+
*
|
|
311
|
+
* Environments are **unversioned** on the provider, so there is nothing to
|
|
312
|
+
* optimistic-lock against: a config change archives the pushed template and
|
|
313
|
+
* clears this, and the next trigger re-creates one. That is why the column is
|
|
314
|
+
* nullable rather than a permanent handle.
|
|
315
|
+
* @type {string}
|
|
316
|
+
* @memberof AgentAgentEnvironmentArtifactView
|
|
317
|
+
*/
|
|
318
|
+
remoteEnvironmentId?: string | null;
|
|
307
319
|
/**
|
|
308
320
|
* Value of the `permissions` field.
|
|
309
321
|
* @type {{ [key: string]: boolean; }}
|
|
@@ -104,6 +104,7 @@ function AgentAgentEnvironmentArtifactViewFromJSONTyped(json, ignoreDiscriminato
|
|
|
104
104
|
'isSystem': json['is_system'] == null ? undefined : json['is_system'],
|
|
105
105
|
'networkMode': json['network_mode'] == null ? undefined : (0, AgentNetworkMode_1.AgentNetworkModeFromJSON)(json['network_mode']),
|
|
106
106
|
'packages': json['packages'] == null ? undefined : (0, AgentEnvironmentPackages_1.AgentEnvironmentPackagesFromJSON)(json['packages']),
|
|
107
|
+
'remoteEnvironmentId': json['remote_environment_id'] === undefined ? undefined : json['remote_environment_id'] === null ? null : json['remote_environment_id'],
|
|
107
108
|
'permissions': json['permissions'] === undefined ? undefined : json['permissions'] === null ? null : json['permissions'],
|
|
108
109
|
'relationships': json['relationships'] === undefined ? undefined : json['relationships'] === null ? null : (0, RegistryRelationshipsView_1.RegistryRelationshipsViewFromJSON)(json['relationships']),
|
|
109
110
|
};
|
|
@@ -157,6 +158,7 @@ function AgentAgentEnvironmentArtifactViewToJSONTyped(value, ignoreDiscriminator
|
|
|
157
158
|
'is_system': value['isSystem'],
|
|
158
159
|
'network_mode': (0, AgentNetworkMode_1.AgentNetworkModeToJSON)(value['networkMode']),
|
|
159
160
|
'packages': (0, AgentEnvironmentPackages_1.AgentEnvironmentPackagesToJSON)(value['packages']),
|
|
161
|
+
'remote_environment_id': value['remoteEnvironmentId'],
|
|
160
162
|
'permissions': value['permissions'],
|
|
161
163
|
'relationships': (0, RegistryRelationshipsView_1.RegistryRelationshipsViewToJSON)(value['relationships']),
|
|
162
164
|
};
|
|
@@ -70,6 +70,18 @@ export interface AgentAgentEnvironmentMeta {
|
|
|
70
70
|
* @memberof AgentAgentEnvironmentMeta
|
|
71
71
|
*/
|
|
72
72
|
packages?: AgentEnvironmentPackages;
|
|
73
|
+
/**
|
|
74
|
+
* The provider's id for the sandbox template this row was pushed to.
|
|
75
|
+
* Hook-owned, and set only once a run on a delegating provider has pushed it.
|
|
76
|
+
*
|
|
77
|
+
* Environments are **unversioned** on the provider, so there is nothing to
|
|
78
|
+
* optimistic-lock against: a config change archives the pushed template and
|
|
79
|
+
* clears this, and the next trigger re-creates one. That is why the column is
|
|
80
|
+
* nullable rather than a permanent handle.
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof AgentAgentEnvironmentMeta
|
|
83
|
+
*/
|
|
84
|
+
remoteEnvironmentId?: string | null;
|
|
73
85
|
}
|
|
74
86
|
/**
|
|
75
87
|
* Check if a given object implements the AgentAgentEnvironmentMeta interface.
|
|
@@ -47,6 +47,7 @@ function AgentAgentEnvironmentMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'isSystem': json['is_system'] == null ? undefined : json['is_system'],
|
|
48
48
|
'networkMode': (0, AgentNetworkMode_1.AgentNetworkModeFromJSON)(json['network_mode']),
|
|
49
49
|
'packages': json['packages'] == null ? undefined : (0, AgentEnvironmentPackages_1.AgentEnvironmentPackagesFromJSON)(json['packages']),
|
|
50
|
+
'remoteEnvironmentId': json['remote_environment_id'] === undefined ? undefined : json['remote_environment_id'] === null ? null : json['remote_environment_id'],
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
53
|
function AgentAgentEnvironmentMetaToJSON(json) {
|
|
@@ -65,5 +66,6 @@ function AgentAgentEnvironmentMetaToJSONTyped(value, ignoreDiscriminator = false
|
|
|
65
66
|
'is_system': value['isSystem'],
|
|
66
67
|
'network_mode': (0, AgentNetworkMode_1.AgentNetworkModeToJSON)(value['networkMode']),
|
|
67
68
|
'packages': (0, AgentEnvironmentPackages_1.AgentEnvironmentPackagesToJSON)(value['packages']),
|
|
69
|
+
'remote_environment_id': value['remoteEnvironmentId'],
|
|
68
70
|
};
|
|
69
71
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { GatewayToolRef } from './GatewayToolRef';
|
|
13
|
+
import type { AgentSyncState } from './AgentSyncState';
|
|
13
14
|
/**
|
|
14
15
|
* The `agent` artifact kind: something that runs autonomously somewhere, as
|
|
15
16
|
* opposed to a [`HarnessMeta`], which is a tool a human drives.
|
|
@@ -114,6 +115,53 @@ export interface AgentAgentMeta {
|
|
|
114
115
|
* @memberof AgentAgentMeta
|
|
115
116
|
*/
|
|
116
117
|
publicUrl?: string | null;
|
|
118
|
+
/**
|
|
119
|
+
* The provider's remote agent id this row is synced to. Hook-owned.
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof AgentAgentMeta
|
|
122
|
+
*/
|
|
123
|
+
remoteAgentId?: string | null;
|
|
124
|
+
/**
|
|
125
|
+
* The remote vault holding this agent's gateway credential, provisioned
|
|
126
|
+
* lazily at the first run-trigger. Hook-owned.
|
|
127
|
+
* @type {string}
|
|
128
|
+
* @memberof AgentAgentMeta
|
|
129
|
+
*/
|
|
130
|
+
remoteVaultId?: string | null;
|
|
131
|
+
/**
|
|
132
|
+
* The immutable remote agent version the last push minted. Hook-owned.
|
|
133
|
+
*
|
|
134
|
+
* Gateway versions map 1:1 onto the provider's immutable agent versions, and
|
|
135
|
+
* a session pins `{id, version}` — so a spec edit after a run cannot
|
|
136
|
+
* retroactively change what that run executed.
|
|
137
|
+
* @type {number}
|
|
138
|
+
* @memberof AgentAgentMeta
|
|
139
|
+
*/
|
|
140
|
+
remoteVersionOrdinal?: number | null;
|
|
141
|
+
/**
|
|
142
|
+
* The last remote-sync failure's bounded gateway code, so a failed push is
|
|
143
|
+
* visible on a `GET` without persisting the provider's response text.
|
|
144
|
+
* Hook-owned.
|
|
145
|
+
* @type {string}
|
|
146
|
+
* @memberof AgentAgentMeta
|
|
147
|
+
*/
|
|
148
|
+
syncError?: string | null;
|
|
149
|
+
/**
|
|
150
|
+
* Value of the `sync_state` field.
|
|
151
|
+
* @type {AgentSyncState}
|
|
152
|
+
* @memberof AgentAgentMeta
|
|
153
|
+
*/
|
|
154
|
+
syncState?: AgentSyncState | null;
|
|
155
|
+
/**
|
|
156
|
+
* A hash of the spec fields that map onto the remote agent config
|
|
157
|
+
* (`instructions`, `model_id`, `tools`, `max_step_count`). A re-trigger reuses
|
|
158
|
+
* the pushed version when it matches and pushes a new one when it does not,
|
|
159
|
+
* so repeated runs of an unchanged agent do not mint a version each time.
|
|
160
|
+
* Hook-owned.
|
|
161
|
+
* @type {string}
|
|
162
|
+
* @memberof AgentAgentMeta
|
|
163
|
+
*/
|
|
164
|
+
syncedSpecHash?: string | null;
|
|
117
165
|
/**
|
|
118
166
|
* Declarative tool references the agent may call.
|
|
119
167
|
* @type {Array<GatewayToolRef>}
|
|
@@ -19,6 +19,7 @@ exports.AgentAgentMetaFromJSONTyped = AgentAgentMetaFromJSONTyped;
|
|
|
19
19
|
exports.AgentAgentMetaToJSON = AgentAgentMetaToJSON;
|
|
20
20
|
exports.AgentAgentMetaToJSONTyped = AgentAgentMetaToJSONTyped;
|
|
21
21
|
const GatewayToolRef_1 = require("./GatewayToolRef");
|
|
22
|
+
const AgentSyncState_1 = require("./AgentSyncState");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the AgentAgentMeta interface.
|
|
24
25
|
*/
|
|
@@ -40,6 +41,12 @@ function AgentAgentMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
'maxStepCount': json['max_step_count'] == null ? undefined : json['max_step_count'],
|
|
41
42
|
'modelId': json['model_id'] === undefined ? undefined : json['model_id'] === null ? null : json['model_id'],
|
|
42
43
|
'publicUrl': json['public_url'] === undefined ? undefined : json['public_url'] === null ? null : json['public_url'],
|
|
44
|
+
'remoteAgentId': json['remote_agent_id'] === undefined ? undefined : json['remote_agent_id'] === null ? null : json['remote_agent_id'],
|
|
45
|
+
'remoteVaultId': json['remote_vault_id'] === undefined ? undefined : json['remote_vault_id'] === null ? null : json['remote_vault_id'],
|
|
46
|
+
'remoteVersionOrdinal': json['remote_version_ordinal'] === undefined ? undefined : json['remote_version_ordinal'] === null ? null : json['remote_version_ordinal'],
|
|
47
|
+
'syncError': json['sync_error'] === undefined ? undefined : json['sync_error'] === null ? null : json['sync_error'],
|
|
48
|
+
'syncState': json['sync_state'] === undefined ? undefined : json['sync_state'] === null ? null : (0, AgentSyncState_1.AgentSyncStateFromJSON)(json['sync_state']),
|
|
49
|
+
'syncedSpecHash': json['synced_spec_hash'] === undefined ? undefined : json['synced_spec_hash'] === null ? null : json['synced_spec_hash'],
|
|
43
50
|
'tools': json['tools'] == null ? undefined : (json['tools'].map(GatewayToolRef_1.GatewayToolRefFromJSON)),
|
|
44
51
|
};
|
|
45
52
|
}
|
|
@@ -58,6 +65,12 @@ function AgentAgentMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
65
|
'max_step_count': value['maxStepCount'],
|
|
59
66
|
'model_id': value['modelId'],
|
|
60
67
|
'public_url': value['publicUrl'],
|
|
68
|
+
'remote_agent_id': value['remoteAgentId'],
|
|
69
|
+
'remote_vault_id': value['remoteVaultId'],
|
|
70
|
+
'remote_version_ordinal': value['remoteVersionOrdinal'],
|
|
71
|
+
'sync_error': value['syncError'],
|
|
72
|
+
'sync_state': (0, AgentSyncState_1.AgentSyncStateToJSON)(value['syncState']),
|
|
73
|
+
'synced_spec_hash': value['syncedSpecHash'],
|
|
61
74
|
'tools': value['tools'] == null ? undefined : (value['tools'].map(GatewayToolRef_1.GatewayToolRefToJSON)),
|
|
62
75
|
};
|
|
63
76
|
}
|