Skip to content

Commit 5b2d8f2

Browse files
feat(api): api update
1 parent e919ec0 commit 5b2d8f2

File tree

7 files changed

+18
-16
lines changed

7 files changed

+18
-16
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 46
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-73c284d36c1ed2d9963fc733e421005fad76e559de8efe9baa6511a43dd72668.yml
3-
openapi_spec_hash: 1e58c4445919b71c77e5c7f16bd6fa7d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch%2Ffinch-d5e464682bd08cc19d0c41aa783238846cdc1162a8765083bd5c7e3ca78655d5.yml
3+
openapi_spec_hash: 40b39b0a6fcd33ce59c96bec3ebb5985
44
config_hash: 5146b12344dae76238940989dac1e8a0

lib/finch_api/models/jobs/automated_async_job.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class AutomatedAsyncJob < FinchAPI::Internal::Type::BaseModel
4040
# @!attribute scheduled_at
4141
# The datetime a job is scheduled to be run. For scheduled jobs, this datetime can
4242
# be in the future if the job has not yet been enqueued. For ad-hoc jobs, this
43-
# field will be null.
43+
# field will be null.
4444
#
4545
# @return [Time, nil]
4646
required :scheduled_at, Time, nil?: true

lib/finch_api/models/jobs/manual_async_job.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ class ManualAsyncJob < FinchAPI::Internal::Type::BaseModel
88
# @!attribute body
99
# Specific information about the job, such as individual statuses for batch jobs.
1010
#
11-
# @return [Array<Object>, nil]
12-
required :body, FinchAPI::Internal::Type::ArrayOf[FinchAPI::Internal::Type::Unknown], nil?: true
11+
# @return [Array<Object, nil>, nil]
12+
required :body,
13+
FinchAPI::Internal::Type::ArrayOf[FinchAPI::Internal::Type::Unknown, nil?: true],
14+
nil?: true
1315

1416
# @!attribute job_id
1517
#
@@ -22,7 +24,7 @@ class ManualAsyncJob < FinchAPI::Internal::Type::BaseModel
2224
required :status, enum: -> { FinchAPI::Jobs::ManualAsyncJob::Status }
2325

2426
# @!method initialize(body:, job_id:, status:)
25-
# @param body [Array<Object>, nil] Specific information about the job, such as individual statuses for batch jobs.
27+
# @param body [Array<Object, nil>, nil] Specific information about the job, such as individual statuses for batch jobs.
2628
#
2729
# @param job_id [String]
2830
#

rbi/finch_api/models/jobs/automated_async_job.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module FinchAPI
4343

4444
# The datetime a job is scheduled to be run. For scheduled jobs, this datetime can
4545
# be in the future if the job has not yet been enqueued. For ad-hoc jobs, this
46-
# field will be null.
46+
# field will be null.
4747
sig { returns(T.nilable(Time)) }
4848
attr_accessor :scheduled_at
4949

@@ -87,7 +87,7 @@ module FinchAPI
8787
params:,
8888
# The datetime a job is scheduled to be run. For scheduled jobs, this datetime can
8989
# be in the future if the job has not yet been enqueued. For ad-hoc jobs, this
90-
# field will be null.
90+
# field will be null.
9191
scheduled_at:,
9292
# The datetime a job entered into the job queue.
9393
started_at:,

rbi/finch_api/models/jobs/manual_async_job.rbi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module FinchAPI
1010
end
1111

1212
# Specific information about the job, such as individual statuses for batch jobs.
13-
sig { returns(T.nilable(T::Array[T.anything])) }
13+
sig { returns(T.nilable(T::Array[T.nilable(T.anything)])) }
1414
attr_accessor :body
1515

1616
sig { returns(String) }
@@ -21,7 +21,7 @@ module FinchAPI
2121

2222
sig do
2323
params(
24-
body: T.nilable(T::Array[T.anything]),
24+
body: T.nilable(T::Array[T.nilable(T.anything)]),
2525
job_id: String,
2626
status: FinchAPI::Jobs::ManualAsyncJob::Status::OrSymbol
2727
).returns(T.attached_class)
@@ -37,7 +37,7 @@ module FinchAPI
3737
sig do
3838
override.returns(
3939
{
40-
body: T.nilable(T::Array[T.anything]),
40+
body: T.nilable(T::Array[T.nilable(T.anything)]),
4141
job_id: String,
4242
status: FinchAPI::Jobs::ManualAsyncJob::Status::TaggedSymbol
4343
}

sig/finch_api/models/jobs/manual_async_job.rbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,26 @@ module FinchAPI
33
module Jobs
44
type manual_async_job =
55
{
6-
body: ::Array[top]?,
6+
body: ::Array[top?]?,
77
job_id: String,
88
status: FinchAPI::Models::Jobs::ManualAsyncJob::status
99
}
1010

1111
class ManualAsyncJob < FinchAPI::Internal::Type::BaseModel
12-
attr_accessor body: ::Array[top]?
12+
attr_accessor body: ::Array[top?]?
1313

1414
attr_accessor job_id: String
1515

1616
attr_accessor status: FinchAPI::Models::Jobs::ManualAsyncJob::status
1717

1818
def initialize: (
19-
body: ::Array[top]?,
19+
body: ::Array[top?]?,
2020
job_id: String,
2121
status: FinchAPI::Models::Jobs::ManualAsyncJob::status
2222
) -> void
2323

2424
def to_hash: -> {
25-
body: ::Array[top]?,
25+
body: ::Array[top?]?,
2626
job_id: String,
2727
status: FinchAPI::Models::Jobs::ManualAsyncJob::status
2828
}

test/finch_api/resources/jobs/manual_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def test_retrieve
1212

1313
assert_pattern do
1414
response => {
15-
body: ^(FinchAPI::Internal::Type::ArrayOf[FinchAPI::Internal::Type::Unknown]) | nil,
15+
body: ^(FinchAPI::Internal::Type::ArrayOf[FinchAPI::Internal::Type::Unknown, nil?: true]) | nil,
1616
job_id: String,
1717
status: FinchAPI::Jobs::ManualAsyncJob::Status
1818
}

0 commit comments

Comments
 (0)