@@ -85,42 +85,201 @@ 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+
8899 /**
89100 * Unique identifier for the agent
90101 */
91102 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+ }
92120}
93121
94122export interface CreateAgentRequest {
95123 /**
96124 * A name for the agent
97125 */
98126 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+ }
99159}
100160
101161export interface ListAgentIdentitiesResponse {
102162 agents : Array < AgentResponse > ;
103163}
104164
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+ */
105172export 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+
106179 /**
107180 * The new name for the agent
108181 */
109182 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+ }
110207}
111208
112209export interface AgentCreateParams {
113210 /**
114211 * A name for the agent
115212 */
116213 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+ }
117246}
118247
119248export 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+
120255 /**
121256 * The new name for the agent
122257 */
123258 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+ }
124283}
125284
126285export declare namespace Agent {
0 commit comments