Skip to content

Commit 8e21bd6

Browse files
feat(api): manual updates
1 parent e50a380 commit 8e21bd6

File tree

8 files changed

+47
-36
lines changed

8 files changed

+47
-36
lines changed

.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
@@ -8,6 +8,7 @@ from oz_agent_sdk.types import (
88
AmbientAgentConfig,
99
CloudEnvironmentConfig,
1010
McpServerConfig,
11+
Scope,
1112
UserProfile,
1213
AgentListResponse,
1314
AgentGetArtifactResponse,
@@ -48,6 +49,7 @@ Types:
4849

4950
```python
5051
from oz_agent_sdk.types.agent import (
52+
ScheduledAgentHistoryItem,
5153
ScheduledAgentItem,
5254
ScheduleListResponse,
5355
ScheduleDeleteResponse,

src/oz_agent_sdk/types/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from __future__ import annotations
44

5+
from .scope import Scope as Scope
56
from .agent_skill import AgentSkill as AgentSkill
67
from .user_profile import UserProfile as UserProfile
78
from .agent_run_params import AgentRunParams as AgentRunParams

src/oz_agent_sdk/types/agent/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@
1414
from .schedule_list_response import ScheduleListResponse as ScheduleListResponse
1515
from .schedule_update_params import ScheduleUpdateParams as ScheduleUpdateParams
1616
from .schedule_delete_response import ScheduleDeleteResponse as ScheduleDeleteResponse
17+
from .scheduled_agent_history_item import ScheduledAgentHistoryItem as ScheduledAgentHistoryItem
1718
from .session_check_redirect_response import SessionCheckRedirectResponse as SessionCheckRedirectResponse

src/oz_agent_sdk/types/agent/run_item.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
from typing import List, Optional
44
from datetime import datetime
5-
from typing_extensions import Literal
65

6+
from ..scope import Scope
77
from ..._models import BaseModel
88
from .run_state import RunState
99
from ..user_profile import UserProfile
1010
from .artifact_item import ArtifactItem
1111
from .run_source_type import RunSourceType
1212
from ..ambient_agent_config import AmbientAgentConfig
1313

14-
__all__ = ["RunItem", "AgentSkill", "RequestUsage", "Schedule", "Scope", "StatusMessage"]
14+
__all__ = ["RunItem", "AgentSkill", "RequestUsage", "Schedule", "StatusMessage"]
1515

1616

1717
class AgentSkill(BaseModel):
@@ -58,16 +58,6 @@ class Schedule(BaseModel):
5858
"""Name of the schedule at the time the run was created"""
5959

6060

61-
class Scope(BaseModel):
62-
"""Ownership scope for a resource (team or personal)"""
63-
64-
type: Literal["User", "Team"]
65-
"""Type of ownership ("User" for personal, "Team" for team-owned)"""
66-
67-
uid: Optional[str] = None
68-
"""UID of the owning user or team"""
69-
70-
7161
class StatusMessage(BaseModel):
7262
message: Optional[str] = None
7363
"""Human-readable status message"""
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from typing import Optional
4+
from datetime import datetime
5+
6+
from ..._models import BaseModel
7+
8+
__all__ = ["ScheduledAgentHistoryItem"]
9+
10+
11+
class ScheduledAgentHistoryItem(BaseModel):
12+
"""Scheduler-derived history metadata for a scheduled agent"""
13+
14+
last_ran: Optional[datetime] = None
15+
"""Timestamp of the last successful run (RFC3339)"""
16+
17+
next_run: Optional[datetime] = None
18+
"""Timestamp of the next scheduled run (RFC3339)"""

src/oz_agent_sdk/types/agent/scheduled_agent_item.py

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,15 @@
22

33
from typing import Optional
44
from datetime import datetime
5-
from typing_extensions import Literal
65

6+
from ..scope import Scope
77
from ..._models import BaseModel
88
from ..user_profile import UserProfile
99
from ..ambient_agent_config import AmbientAgentConfig
1010
from ..cloud_environment_config import CloudEnvironmentConfig
11+
from .scheduled_agent_history_item import ScheduledAgentHistoryItem
1112

12-
__all__ = ["ScheduledAgentItem", "History", "Scope"]
13-
14-
15-
class History(BaseModel):
16-
"""Scheduler-derived history metadata for a scheduled agent"""
17-
18-
last_ran: Optional[datetime] = None
19-
"""Timestamp of the last successful run (RFC3339)"""
20-
21-
next_run: Optional[datetime] = None
22-
"""Timestamp of the next scheduled run (RFC3339)"""
23-
24-
25-
class Scope(BaseModel):
26-
"""Ownership scope for a resource (team or personal)"""
27-
28-
type: Literal["User", "Team"]
29-
"""Type of ownership ("User" for personal, "Team" for team-owned)"""
30-
31-
uid: Optional[str] = None
32-
"""UID of the owning user or team"""
13+
__all__ = ["ScheduledAgentItem"]
3314

3415

3516
class ScheduledAgentItem(BaseModel):
@@ -65,7 +46,7 @@ class ScheduledAgentItem(BaseModel):
6546
environment: Optional[CloudEnvironmentConfig] = None
6647
"""Configuration for a cloud environment used by scheduled agents"""
6748

68-
history: Optional[History] = None
49+
history: Optional[ScheduledAgentHistoryItem] = None
6950
"""Scheduler-derived history metadata for a scheduled agent"""
7051

7152
last_spawn_error: Optional[str] = None

src/oz_agent_sdk/types/scope.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from typing import Optional
4+
from typing_extensions import Literal
5+
6+
from .._models import BaseModel
7+
8+
__all__ = ["Scope"]
9+
10+
11+
class Scope(BaseModel):
12+
"""Ownership scope for a resource (team or personal)"""
13+
14+
type: Literal["User", "Team"]
15+
"""Type of ownership ("User" for personal, "Team" for team-owned)"""
16+
17+
uid: Optional[str] = None
18+
"""UID of the owning user or team"""

0 commit comments

Comments
 (0)