-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): add types for application jobs (#171)
- Loading branch information
1 parent
49e58c8
commit e73ec53
Showing
7 changed files
with
61 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/writerai/types/applications/application_jobs_list_response.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from typing import List, Optional | ||
|
||
from pydantic import Field as FieldInfo | ||
|
||
from ..._models import BaseModel | ||
from .application_generate_async_response import ApplicationGenerateAsyncResponse | ||
|
||
__all__ = ["ApplicationJobsListResponse", "Pagination"] | ||
|
||
|
||
class Pagination(BaseModel): | ||
limit: Optional[int] = None | ||
"""The pagination limit for retrieving the jobs.""" | ||
|
||
offset: Optional[int] = None | ||
"""The pagination offset for retrieving the jobs.""" | ||
|
||
|
||
class ApplicationJobsListResponse(BaseModel): | ||
result: List[ApplicationGenerateAsyncResponse] | ||
|
||
pagination: Optional[Pagination] = None | ||
|
||
total_count: Optional[int] = FieldInfo(alias="totalCount", default=None) | ||
"""The total number of jobs associated with the application.""" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters