Skip to content

Commit e065fb0

Browse files
feat(api): manual updates
1 parent 94a6f32 commit e065fb0

8 files changed

Lines changed: 45 additions & 51 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: 14
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-d3d485104a1c344076e6268935d0a5371036c95885b3fa6200c635f1351d2e25.yml
33
openapi_spec_hash: 34c237455d4b5b60f9db14068d1a9999
4-
config_hash: 25c1059aa958c8c2ad60ef16c318514d
4+
config_hash: 0884847870200ee9d34bb00ce94aaa8e

api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Types:
66
- <code><a href="./src/resources/agent/agent.ts">AmbientAgentConfig</a></code>
77
- <code><a href="./src/resources/agent/agent.ts">CloudEnvironmentConfig</a></code>
88
- <code><a href="./src/resources/agent/agent.ts">McpServerConfig</a></code>
9+
- <code><a href="./src/resources/agent/agent.ts">Scope</a></code>
910
- <code><a href="./src/resources/agent/agent.ts">UserProfile</a></code>
1011
- <code><a href="./src/resources/agent/agent.ts">AgentListResponse</a></code>
1112
- <code><a href="./src/resources/agent/agent.ts">AgentGetArtifactResponse</a></code>
@@ -38,6 +39,7 @@ Methods:
3839

3940
Types:
4041

42+
- <code><a href="./src/resources/agent/schedules.ts">ScheduledAgentHistoryItem</a></code>
4143
- <code><a href="./src/resources/agent/schedules.ts">ScheduledAgentItem</a></code>
4244
- <code><a href="./src/resources/agent/schedules.ts">ScheduleListResponse</a></code>
4345
- <code><a href="./src/resources/agent/schedules.ts">ScheduleDeleteResponse</a></code>

src/client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import {
2828
AmbientAgentConfig,
2929
CloudEnvironmentConfig,
3030
McpServerConfig,
31+
Scope,
3132
UserProfile,
3233
} from './resources/agent/agent';
3334
import { type Fetch } from './internal/builtin-types';
@@ -744,6 +745,7 @@ export declare namespace OzAPI {
744745
type AmbientAgentConfig as AmbientAgentConfig,
745746
type CloudEnvironmentConfig as CloudEnvironmentConfig,
746747
type McpServerConfig as McpServerConfig,
748+
type Scope as Scope,
747749
type UserProfile as UserProfile,
748750
type AgentListResponse as AgentListResponse,
749751
type AgentGetArtifactResponse as AgentGetArtifactResponse,

src/resources/agent/agent.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
ScheduleDeleteResponse,
1919
ScheduleListResponse,
2020
ScheduleUpdateParams,
21+
ScheduledAgentHistoryItem,
2122
ScheduledAgentItem,
2223
Schedules,
2324
} from './schedules';
@@ -297,6 +298,21 @@ export interface McpServerConfig {
297298
warp_id?: string;
298299
}
299300

301+
/**
302+
* Ownership scope for a resource (team or personal)
303+
*/
304+
export interface Scope {
305+
/**
306+
* Type of ownership ("User" for personal, "Team" for team-owned)
307+
*/
308+
type: 'User' | 'Team';
309+
310+
/**
311+
* UID of the owning user or team
312+
*/
313+
uid?: string;
314+
}
315+
300316
export interface UserProfile {
301317
/**
302318
* Display name of the creator
@@ -528,6 +544,7 @@ export declare namespace Agent {
528544
type AmbientAgentConfig as AmbientAgentConfig,
529545
type CloudEnvironmentConfig as CloudEnvironmentConfig,
530546
type McpServerConfig as McpServerConfig,
547+
type Scope as Scope,
531548
type UserProfile as UserProfile,
532549
type AgentListResponse as AgentListResponse,
533550
type AgentGetArtifactResponse as AgentGetArtifactResponse,
@@ -549,6 +566,7 @@ export declare namespace Agent {
549566

550567
export {
551568
Schedules as Schedules,
569+
type ScheduledAgentHistoryItem as ScheduledAgentHistoryItem,
552570
type ScheduledAgentItem as ScheduledAgentItem,
553571
type ScheduleListResponse as ScheduleListResponse,
554572
type ScheduleDeleteResponse as ScheduleDeleteResponse,

src/resources/agent/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export {
66
type AmbientAgentConfig,
77
type CloudEnvironmentConfig,
88
type McpServerConfig,
9+
type Scope,
910
type UserProfile,
1011
type AgentListResponse,
1112
type AgentGetArtifactResponse,
@@ -25,6 +26,7 @@ export {
2526
} from './runs';
2627
export {
2728
Schedules,
29+
type ScheduledAgentHistoryItem,
2830
type ScheduledAgentItem,
2931
type ScheduleListResponse,
3032
type ScheduleDeleteResponse,

src/resources/agent/runs.ts

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export interface RunItem {
239239
/**
240240
* Ownership scope for a resource (team or personal)
241241
*/
242-
scope?: RunItem.Scope;
242+
scope?: AgentAPI.Scope;
243243

244244
/**
245245
* UUID of the shared session (if available)
@@ -337,21 +337,6 @@ export namespace RunItem {
337337
schedule_name: string;
338338
}
339339

340-
/**
341-
* Ownership scope for a resource (team or personal)
342-
*/
343-
export interface Scope {
344-
/**
345-
* Type of ownership ("User" for personal, "Team" for team-owned)
346-
*/
347-
type: 'User' | 'Team';
348-
349-
/**
350-
* UID of the owning user or team
351-
*/
352-
uid?: string;
353-
}
354-
355340
export interface StatusMessage {
356341
/**
357342
* Human-readable status message

src/resources/agent/schedules.ts

Lines changed: 18 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,21 @@ export class Schedules extends APIResource {
122122
}
123123
}
124124

125+
/**
126+
* Scheduler-derived history metadata for a scheduled agent
127+
*/
128+
export interface ScheduledAgentHistoryItem {
129+
/**
130+
* Timestamp of the last successful run (RFC3339)
131+
*/
132+
last_ran?: string | null;
133+
134+
/**
135+
* Timestamp of the next scheduled run (RFC3339)
136+
*/
137+
next_run?: string | null;
138+
}
139+
125140
export interface ScheduledAgentItem {
126141
/**
127142
* Unique identifier for the scheduled agent
@@ -174,7 +189,7 @@ export interface ScheduledAgentItem {
174189
/**
175190
* Scheduler-derived history metadata for a scheduled agent
176191
*/
177-
history?: ScheduledAgentItem.History;
192+
history?: ScheduledAgentHistoryItem;
178193

179194
/**
180195
* Error message from the last failed spawn attempt, if any
@@ -184,43 +199,11 @@ export interface ScheduledAgentItem {
184199
/**
185200
* Ownership scope for a resource (team or personal)
186201
*/
187-
scope?: ScheduledAgentItem.Scope;
202+
scope?: AgentAPI.Scope;
188203

189204
updated_by?: AgentAPI.UserProfile;
190205
}
191206

192-
export namespace ScheduledAgentItem {
193-
/**
194-
* Scheduler-derived history metadata for a scheduled agent
195-
*/
196-
export interface History {
197-
/**
198-
* Timestamp of the last successful run (RFC3339)
199-
*/
200-
last_ran?: string | null;
201-
202-
/**
203-
* Timestamp of the next scheduled run (RFC3339)
204-
*/
205-
next_run?: string | null;
206-
}
207-
208-
/**
209-
* Ownership scope for a resource (team or personal)
210-
*/
211-
export interface Scope {
212-
/**
213-
* Type of ownership ("User" for personal, "Team" for team-owned)
214-
*/
215-
type: 'User' | 'Team';
216-
217-
/**
218-
* UID of the owning user or team
219-
*/
220-
uid?: string;
221-
}
222-
}
223-
224207
export interface ScheduleListResponse {
225208
/**
226209
* List of scheduled agents
@@ -300,6 +283,7 @@ export interface ScheduleUpdateParams {
300283

301284
export declare namespace Schedules {
302285
export {
286+
type ScheduledAgentHistoryItem as ScheduledAgentHistoryItem,
303287
type ScheduledAgentItem as ScheduledAgentItem,
304288
type ScheduleListResponse as ScheduleListResponse,
305289
type ScheduleDeleteResponse as ScheduleDeleteResponse,

src/resources/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export {
66
type AmbientAgentConfig,
77
type CloudEnvironmentConfig,
88
type McpServerConfig,
9+
type Scope,
910
type UserProfile,
1011
type AgentListResponse,
1112
type AgentGetArtifactResponse,

0 commit comments

Comments
 (0)