Skip to content

Commit 7b62832

Browse files
feat(api): api update
1 parent 59203c0 commit 7b62832

3 files changed

Lines changed: 2 additions & 166 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 22
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-348bf98eecccd80255fdcee166b5eb385d8d9743811d080f94a1ec33337abc48.yml
3-
openapi_spec_hash: 276da0f1c45cb44f9c882a505cb2f8b6
3+
openapi_spec_hash: 1952fae99172f1adaf35d800b0d63936
44
config_hash: 44a1e8f98607a5cf03815a63bae63453

src/resources/agent/agent_.ts

Lines changed: 0 additions & 159 deletions
Original file line numberDiff line numberDiff line change
@@ -85,201 +85,42 @@ export interface AgentResponse {
8585
*/
8686
name: string;
8787

88-
/**
89-
* Secrets that this agent may access by default.
90-
*/
91-
secrets: Array<AgentResponse.Secret>;
92-
93-
/**
94-
* Ordered list of normalized skill specs associated with this agent. Always
95-
* present; empty when no skills are attached.
96-
*/
97-
skills: Array<string>;
98-
9988
/**
10089
* Unique identifier for the agent
10190
*/
10291
uid: string;
103-
104-
/**
105-
* Optional description of the agent
106-
*/
107-
description?: string | null;
108-
}
109-
110-
export namespace AgentResponse {
111-
/**
112-
* Reference to a managed secret by name.
113-
*/
114-
export interface Secret {
115-
/**
116-
* Name of the managed secret.
117-
*/
118-
name: string;
119-
}
12092
}
12193

12294
export interface CreateAgentRequest {
12395
/**
12496
* A name for the agent
12597
*/
12698
name: string;
127-
128-
/**
129-
* Optional description of the agent
130-
*/
131-
description?: string | null;
132-
133-
/**
134-
* Optional list of secrets associated with the agent. Duplicate names within a
135-
* single request are rejected.
136-
*/
137-
secrets?: Array<CreateAgentRequest.Secret>;
138-
139-
/**
140-
* Optional list of skill specs to associate with the agent. Format:
141-
* "{owner}/{repo}:{skill_path}" (e.g.,
142-
* "warpdotdev/warp-server:.claude/skills/deploy/SKILL.md"). Each spec is validated
143-
* and normalized at attach time using the team's GitHub credentials; inaccessible
144-
* or malformed specs are rejected.
145-
*/
146-
skills?: Array<string>;
147-
}
148-
149-
export namespace CreateAgentRequest {
150-
/**
151-
* Reference to a managed secret by name.
152-
*/
153-
export interface Secret {
154-
/**
155-
* Name of the managed secret.
156-
*/
157-
name: string;
158-
}
15999
}
160100

161101
export interface ListAgentIdentitiesResponse {
162102
agents: Array<AgentResponse>;
163103
}
164104

165-
/**
166-
* Partial update for an agent. Each field is optional:
167-
*
168-
* - Omitted or `null`: leave the field unchanged.
169-
* - Empty value: clear the field.
170-
* - Non-empty: replace the field wholesale with the provided value.
171-
*/
172105
export interface UpdateAgentRequest {
173-
/**
174-
* Replacement description. Omit or pass `null` to leave unchanged, or use an empty
175-
* value to clear.
176-
*/
177-
description?: string | null;
178-
179106
/**
180107
* The new name for the agent
181108
*/
182109
name?: string;
183-
184-
/**
185-
* Replacement list of secrets. Omit to leave unchanged, pass an empty array to
186-
* clear, or pass a non-empty array to replace. Duplicate names are rejected.
187-
*/
188-
secrets?: Array<UpdateAgentRequest.Secret> | null;
189-
190-
/**
191-
* Replacement list of skill specs. Omit to leave unchanged, pass an empty array to
192-
* clear, or pass a non-empty array to replace.
193-
*/
194-
skills?: Array<string> | null;
195-
}
196-
197-
export namespace UpdateAgentRequest {
198-
/**
199-
* Reference to a managed secret by name.
200-
*/
201-
export interface Secret {
202-
/**
203-
* Name of the managed secret.
204-
*/
205-
name: string;
206-
}
207110
}
208111

209112
export interface AgentCreateParams {
210113
/**
211114
* A name for the agent
212115
*/
213116
name: string;
214-
215-
/**
216-
* Optional description of the agent
217-
*/
218-
description?: string | null;
219-
220-
/**
221-
* Optional list of secrets associated with the agent. Duplicate names within a
222-
* single request are rejected.
223-
*/
224-
secrets?: Array<AgentCreateParams.Secret>;
225-
226-
/**
227-
* Optional list of skill specs to associate with the agent. Format:
228-
* "{owner}/{repo}:{skill_path}" (e.g.,
229-
* "warpdotdev/warp-server:.claude/skills/deploy/SKILL.md"). Each spec is validated
230-
* and normalized at attach time using the team's GitHub credentials; inaccessible
231-
* or malformed specs are rejected.
232-
*/
233-
skills?: Array<string>;
234-
}
235-
236-
export namespace AgentCreateParams {
237-
/**
238-
* Reference to a managed secret by name.
239-
*/
240-
export interface Secret {
241-
/**
242-
* Name of the managed secret.
243-
*/
244-
name: string;
245-
}
246117
}
247118

248119
export interface AgentUpdateParams {
249-
/**
250-
* Replacement description. Omit or pass `null` to leave unchanged, or use an empty
251-
* value to clear.
252-
*/
253-
description?: string | null;
254-
255120
/**
256121
* The new name for the agent
257122
*/
258123
name?: string;
259-
260-
/**
261-
* Replacement list of secrets. Omit to leave unchanged, pass an empty array to
262-
* clear, or pass a non-empty array to replace. Duplicate names are rejected.
263-
*/
264-
secrets?: Array<AgentUpdateParams.Secret> | null;
265-
266-
/**
267-
* Replacement list of skill specs. Omit to leave unchanged, pass an empty array to
268-
* clear, or pass a non-empty array to replace.
269-
*/
270-
skills?: Array<string> | null;
271-
}
272-
273-
export namespace AgentUpdateParams {
274-
/**
275-
* Reference to a managed secret by name.
276-
*/
277-
export interface Secret {
278-
/**
279-
* Name of the managed secret.
280-
*/
281-
name: string;
282-
}
283124
}
284125

285126
export declare namespace Agent {

tests/api-resources/agent/agent_.test.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@ describe('resource agent', () => {
2222

2323
// Mock server tests are disabled
2424
test.skip('create: required and optional params', async () => {
25-
const response = await client.agent.agent.create({
26-
name: 'name',
27-
description: 'description',
28-
secrets: [{ name: 'name' }],
29-
skills: ['string'],
30-
});
25+
const response = await client.agent.agent.create({ name: 'name' });
3126
});
3227

3328
// Mock server tests are disabled

0 commit comments

Comments
 (0)