Skip to content

Commit fe082cb

Browse files
feat(api): api update (#585)
1 parent 79bb13f commit fe082cb

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 41
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-33c66e078bce0755ba6ffea89b65cd065f406dae750be8a23dd0315b736f1c9f.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-97bf4795deec23d1bfd3b0b5fd77c2a93c87f10e5fa3375ab30f4a877be97f53.yml

src/finch/types/jobs/automated_async_job.py

+11-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66

77
from ..._models import BaseModel
88

9-
__all__ = ["AutomatedAsyncJob"]
9+
__all__ = ["AutomatedAsyncJob", "Params"]
10+
11+
12+
class Params(BaseModel):
13+
individual_id: Optional[str] = None
14+
"""The ID of the individual that the job was completed for."""
1015

1116

1217
class AutomatedAsyncJob(BaseModel):
@@ -26,6 +31,9 @@ class AutomatedAsyncJob(BaseModel):
2631
job_url: str
2732
"""The url that can be used to retrieve the job status"""
2833

34+
params: Optional[Params] = None
35+
"""The input parameters for the job."""
36+
2937
scheduled_at: Optional[datetime] = None
3038
"""The datetime a job is scheduled to be run.
3139
@@ -38,5 +46,5 @@ class AutomatedAsyncJob(BaseModel):
3846

3947
status: Literal["pending", "in_progress", "complete", "error", "reauth_error", "permissions_error"]
4048

41-
type: Literal["data_sync_all"]
42-
"""Only `data_sync_all` currently supported"""
49+
type: Literal["data_sync_all", "w4_form_employee_sync"]
50+
"""The type of automated job"""

0 commit comments

Comments
 (0)