Skip to content

Commit 2ef732a

Browse files
feat(api): add support for Claude Managed Agents
1 parent d644830 commit 2ef732a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+7090
-24
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 34
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-04225437444990f383d0581df2f07022baab6ad510de0f3a8bd6b07c38d83cc9.yml
3-
openapi_spec_hash: cae9199aabfd7b87f0ff2dcc10760c92
4-
config_hash: fcc34074db6eaf64bc99b578c6c82c61
1+
configured_endpoints: 72
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-69486316563eb49043ec1ef0b8e1d4164b6fadb58c7ae27477f9971448ede066.yml
3+
openapi_spec_hash: 24c3be07d605d11323afa51c7808fa00
4+
config_hash: 60af716d2229a28075dace69c52e5aa1

MIGRATION.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ client.parents.children.retrieve('c_456', { parent_id: 'p_123' });
5454

5555
This affects the following methods:
5656

57+
- `client.beta.sessions.resources.retrieve()`
58+
- `client.beta.sessions.resources.update()`
59+
- `client.beta.sessions.resources.delete()`
60+
- `client.beta.vaults.credentials.retrieve()`
61+
- `client.beta.vaults.credentials.update()`
62+
- `client.beta.vaults.credentials.delete()`
63+
- `client.beta.vaults.credentials.archive()`
5764
- `client.beta.skills.versions.retrieve()`
5865
- `client.beta.skills.versions.delete()`
5966

@@ -84,7 +91,9 @@ client.example.list(undefined, { headers: { ... } });
8491
+ client.example.list({}, { headers: { ... } });
8592
```
8693

87-
This affects the following methods:
94+
<details>
95+
96+
<summary>This affects the following methods</summary>
8897

8998
- `client.messages.batches.list()`
9099
- `client.models.retrieve()`
@@ -96,6 +105,26 @@ This affects the following methods:
96105
- `client.beta.messages.batches.delete()`
97106
- `client.beta.messages.batches.cancel()`
98107
- `client.beta.messages.batches.results()`
108+
- `client.beta.agents.retrieve()`
109+
- `client.beta.agents.list()`
110+
- `client.beta.agents.archive()`
111+
- `client.beta.agents.versions.list()`
112+
- `client.beta.environments.retrieve()`
113+
- `client.beta.environments.list()`
114+
- `client.beta.environments.delete()`
115+
- `client.beta.environments.archive()`
116+
- `client.beta.sessions.retrieve()`
117+
- `client.beta.sessions.list()`
118+
- `client.beta.sessions.delete()`
119+
- `client.beta.sessions.archive()`
120+
- `client.beta.sessions.events.list()`
121+
- `client.beta.sessions.events.stream()`
122+
- `client.beta.sessions.resources.list()`
123+
- `client.beta.vaults.retrieve()`
124+
- `client.beta.vaults.list()`
125+
- `client.beta.vaults.delete()`
126+
- `client.beta.vaults.archive()`
127+
- `client.beta.vaults.credentials.list()`
99128
- `client.beta.files.list()`
100129
- `client.beta.files.delete()`
101130
- `client.beta.files.download()`
@@ -107,6 +136,8 @@ This affects the following methods:
107136
- `client.beta.skills.versions.create()`
108137
- `client.beta.skills.versions.list()`
109138

139+
</details>
140+
110141
### Removed `httpAgent` in favor of `fetchOptions`
111142

112143
The `httpAgent` client option has been removed in favor of a [platform-specific `fetchOptions` property](https://github.com/anthropics/anthropic-sdk-typescript#fetch-options).

api.md

Lines changed: 227 additions & 0 deletions
Large diffs are not rendered by default.

bin/migration-config.json

Lines changed: 259 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,265 @@
44
"clientClass": "Anthropic",
55
"baseClientClass": "BaseAnthropic",
66
"methods": [
7+
{
8+
"base": "beta.sessions.resources",
9+
"name": "retrieve",
10+
"params": [
11+
{
12+
"type": "param",
13+
"key": "resource_id",
14+
"location": "path"
15+
},
16+
{
17+
"type": "params",
18+
"maybeOverload": false
19+
},
20+
{
21+
"type": "options"
22+
}
23+
],
24+
"oldParams": [
25+
{
26+
"type": "param",
27+
"key": "session_id",
28+
"location": "path"
29+
},
30+
{
31+
"type": "param",
32+
"key": "resource_id",
33+
"location": "path"
34+
},
35+
{
36+
"type": "params",
37+
"maybeOverload": true
38+
},
39+
{
40+
"type": "options"
41+
}
42+
]
43+
},
44+
{
45+
"base": "beta.sessions.resources",
46+
"name": "update",
47+
"params": [
48+
{
49+
"type": "param",
50+
"key": "resource_id",
51+
"location": "path"
52+
},
53+
{
54+
"type": "params",
55+
"maybeOverload": false
56+
},
57+
{
58+
"type": "options"
59+
}
60+
],
61+
"oldParams": [
62+
{
63+
"type": "param",
64+
"key": "session_id",
65+
"location": "path"
66+
},
67+
{
68+
"type": "param",
69+
"key": "resource_id",
70+
"location": "path"
71+
},
72+
{
73+
"type": "params",
74+
"maybeOverload": false
75+
},
76+
{
77+
"type": "options"
78+
}
79+
]
80+
},
81+
{
82+
"base": "beta.sessions.resources",
83+
"name": "delete",
84+
"params": [
85+
{
86+
"type": "param",
87+
"key": "resource_id",
88+
"location": "path"
89+
},
90+
{
91+
"type": "params",
92+
"maybeOverload": false
93+
},
94+
{
95+
"type": "options"
96+
}
97+
],
98+
"oldParams": [
99+
{
100+
"type": "param",
101+
"key": "session_id",
102+
"location": "path"
103+
},
104+
{
105+
"type": "param",
106+
"key": "resource_id",
107+
"location": "path"
108+
},
109+
{
110+
"type": "params",
111+
"maybeOverload": true
112+
},
113+
{
114+
"type": "options"
115+
}
116+
]
117+
},
118+
{
119+
"base": "beta.vaults.credentials",
120+
"name": "retrieve",
121+
"params": [
122+
{
123+
"type": "param",
124+
"key": "credential_id",
125+
"location": "path"
126+
},
127+
{
128+
"type": "params",
129+
"maybeOverload": false
130+
},
131+
{
132+
"type": "options"
133+
}
134+
],
135+
"oldParams": [
136+
{
137+
"type": "param",
138+
"key": "vault_id",
139+
"location": "path"
140+
},
141+
{
142+
"type": "param",
143+
"key": "credential_id",
144+
"location": "path"
145+
},
146+
{
147+
"type": "params",
148+
"maybeOverload": true
149+
},
150+
{
151+
"type": "options"
152+
}
153+
]
154+
},
155+
{
156+
"base": "beta.vaults.credentials",
157+
"name": "update",
158+
"params": [
159+
{
160+
"type": "param",
161+
"key": "credential_id",
162+
"location": "path"
163+
},
164+
{
165+
"type": "params",
166+
"maybeOverload": false
167+
},
168+
{
169+
"type": "options"
170+
}
171+
],
172+
"oldParams": [
173+
{
174+
"type": "param",
175+
"key": "vault_id",
176+
"location": "path"
177+
},
178+
{
179+
"type": "param",
180+
"key": "credential_id",
181+
"location": "path"
182+
},
183+
{
184+
"type": "params",
185+
"maybeOverload": false
186+
},
187+
{
188+
"type": "options"
189+
}
190+
]
191+
},
192+
{
193+
"base": "beta.vaults.credentials",
194+
"name": "delete",
195+
"params": [
196+
{
197+
"type": "param",
198+
"key": "credential_id",
199+
"location": "path"
200+
},
201+
{
202+
"type": "params",
203+
"maybeOverload": false
204+
},
205+
{
206+
"type": "options"
207+
}
208+
],
209+
"oldParams": [
210+
{
211+
"type": "param",
212+
"key": "vault_id",
213+
"location": "path"
214+
},
215+
{
216+
"type": "param",
217+
"key": "credential_id",
218+
"location": "path"
219+
},
220+
{
221+
"type": "params",
222+
"maybeOverload": true
223+
},
224+
{
225+
"type": "options"
226+
}
227+
]
228+
},
229+
{
230+
"base": "beta.vaults.credentials",
231+
"name": "archive",
232+
"params": [
233+
{
234+
"type": "param",
235+
"key": "credential_id",
236+
"location": "path"
237+
},
238+
{
239+
"type": "params",
240+
"maybeOverload": false
241+
},
242+
{
243+
"type": "options"
244+
}
245+
],
246+
"oldParams": [
247+
{
248+
"type": "param",
249+
"key": "vault_id",
250+
"location": "path"
251+
},
252+
{
253+
"type": "param",
254+
"key": "credential_id",
255+
"location": "path"
256+
},
257+
{
258+
"type": "params",
259+
"maybeOverload": true
260+
},
261+
{
262+
"type": "options"
263+
}
264+
]
265+
},
7266
{
8267
"base": "beta.skills.versions",
9268
"name": "retrieve",

0 commit comments

Comments
 (0)