Skip to content

Commit 800b6d4

Browse files
feat(api): OpenAPI spec update via Stainless API (#325)
1 parent aebc18e commit 800b6d4

File tree

5 files changed

+5
-85
lines changed

5 files changed

+5
-85
lines changed

src/openlayer/types/commits/test_result_list_response.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,7 @@
88

99
from ..._models import BaseModel
1010

11-
__all__ = ["TestResultListResponse", "_Meta", "Item", "ItemGoal", "ItemGoalThreshold"]
12-
13-
14-
class _Meta(BaseModel):
15-
page: int
16-
"""The current page."""
17-
18-
per_page: int = FieldInfo(alias="perPage")
19-
"""The number of items per page."""
20-
21-
total_items: int = FieldInfo(alias="totalItems")
22-
"""The total number of items."""
23-
24-
total_pages: int = FieldInfo(alias="totalPages")
25-
"""The total number of pages."""
11+
__all__ = ["TestResultListResponse", "Item", "ItemGoal", "ItemGoalThreshold"]
2612

2713

2814
class ItemGoalThreshold(BaseModel):
@@ -147,6 +133,4 @@ class Item(BaseModel):
147133

148134
class TestResultListResponse(BaseModel):
149135
__test__ = False
150-
api_meta: _Meta = FieldInfo(alias="_meta")
151-
152136
items: List[Item]

src/openlayer/types/inference_pipelines/test_result_list_response.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,7 @@
88

99
from ..._models import BaseModel
1010

11-
__all__ = ["TestResultListResponse", "_Meta", "Item", "ItemGoal", "ItemGoalThreshold"]
12-
13-
14-
class _Meta(BaseModel):
15-
page: int
16-
"""The current page."""
17-
18-
per_page: int = FieldInfo(alias="perPage")
19-
"""The number of items per page."""
20-
21-
total_items: int = FieldInfo(alias="totalItems")
22-
"""The total number of items."""
23-
24-
total_pages: int = FieldInfo(alias="totalPages")
25-
"""The total number of pages."""
11+
__all__ = ["TestResultListResponse", "Item", "ItemGoal", "ItemGoalThreshold"]
2612

2713

2814
class ItemGoalThreshold(BaseModel):
@@ -147,6 +133,4 @@ class Item(BaseModel):
147133

148134
class TestResultListResponse(BaseModel):
149135
__test__ = False
150-
api_meta: _Meta = FieldInfo(alias="_meta")
151-
152136
items: List[Item]

src/openlayer/types/project_list_response.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,7 @@
88

99
from .._models import BaseModel
1010

11-
__all__ = ["ProjectListResponse", "_Meta", "Item", "ItemLinks", "ItemGitRepo"]
12-
13-
14-
class _Meta(BaseModel):
15-
page: int
16-
"""The current page."""
17-
18-
per_page: int = FieldInfo(alias="perPage")
19-
"""The number of items per page."""
20-
21-
total_items: int = FieldInfo(alias="totalItems")
22-
"""The total number of items."""
23-
24-
total_pages: int = FieldInfo(alias="totalPages")
25-
"""The total number of pages."""
11+
__all__ = ["ProjectListResponse", "Item", "ItemLinks", "ItemGitRepo"]
2612

2713

2814
class ItemLinks(BaseModel):
@@ -107,6 +93,4 @@ class Item(BaseModel):
10793

10894

10995
class ProjectListResponse(BaseModel):
110-
api_meta: _Meta = FieldInfo(alias="_meta")
111-
11296
items: List[Item]

src/openlayer/types/projects/commit_list_response.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,7 @@
88

99
from ..._models import BaseModel
1010

11-
__all__ = ["CommitListResponse", "_Meta", "Item", "ItemCommit", "ItemLinks"]
12-
13-
14-
class _Meta(BaseModel):
15-
page: int
16-
"""The current page."""
17-
18-
per_page: int = FieldInfo(alias="perPage")
19-
"""The number of items per page."""
20-
21-
total_items: int = FieldInfo(alias="totalItems")
22-
"""The total number of items."""
23-
24-
total_pages: int = FieldInfo(alias="totalPages")
25-
"""The total number of pages."""
11+
__all__ = ["CommitListResponse", "Item", "ItemCommit", "ItemLinks"]
2612

2713

2814
class ItemCommit(BaseModel):
@@ -121,6 +107,4 @@ class Item(BaseModel):
121107

122108

123109
class CommitListResponse(BaseModel):
124-
api_meta: _Meta = FieldInfo(alias="_meta")
125-
126110
items: List[Item]

src/openlayer/types/projects/inference_pipeline_list_response.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,7 @@
88

99
from ..._models import BaseModel
1010

11-
__all__ = ["InferencePipelineListResponse", "_Meta", "Item", "ItemLinks"]
12-
13-
14-
class _Meta(BaseModel):
15-
page: int
16-
"""The current page."""
17-
18-
per_page: int = FieldInfo(alias="perPage")
19-
"""The number of items per page."""
20-
21-
total_items: int = FieldInfo(alias="totalItems")
22-
"""The total number of items."""
23-
24-
total_pages: int = FieldInfo(alias="totalPages")
25-
"""The total number of pages."""
11+
__all__ = ["InferencePipelineListResponse", "Item", "ItemLinks"]
2612

2713

2814
class ItemLinks(BaseModel):
@@ -76,6 +62,4 @@ class Item(BaseModel):
7662

7763

7864
class InferencePipelineListResponse(BaseModel):
79-
api_meta: _Meta = FieldInfo(alias="_meta")
80-
8165
items: List[Item]

0 commit comments

Comments
 (0)