finch-api 0.1.0.pre.alpha.25 → 0.1.0.pre.alpha.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +29 -0
  3. data/README.md +1 -1
  4. data/lib/finch_api/client.rb +3 -1
  5. data/lib/finch_api/internal/transport/pooled_net_requester.rb +1 -9
  6. data/lib/finch_api/internal/type/array_of.rb +1 -0
  7. data/lib/finch_api/internal/type/base_model.rb +4 -9
  8. data/lib/finch_api/internal/type/converter.rb +27 -0
  9. data/lib/finch_api/internal/type/hash_of.rb +1 -0
  10. data/lib/finch_api/internal/type/union.rb +9 -7
  11. data/lib/finch_api/internal/util.rb +1 -1
  12. data/lib/finch_api/models/account_update_event.rb +28 -84
  13. data/lib/finch_api/models/disconnect_response.rb +2 -2
  14. data/lib/finch_api/models/hris/benefit_create_params.rb +1 -3
  15. data/lib/finch_api/models/hris/benefits/individual_enroll_many_params.rb +6 -18
  16. data/lib/finch_api/models/hris/company/pay_statement_item/rule_create_params.rb +3 -10
  17. data/lib/finch_api/models/hris/company/pay_statement_item_list_params.rb +1 -3
  18. data/lib/finch_api/models/hris/company_benefit.rb +1 -3
  19. data/lib/finch_api/models/hris/document_list_params.rb +1 -4
  20. data/lib/finch_api/models/hris/employment_retrieve_many_params.rb +1 -3
  21. data/lib/finch_api/models/hris/individual_retrieve_many_params.rb +1 -3
  22. data/lib/finch_api/models/hris/pay_statement.rb +1 -4
  23. data/lib/finch_api/models/hris/pay_statement_retrieve_many_params.rb +1 -3
  24. data/lib/finch_api/models/jobs/automated_async_job.rb +1 -1
  25. data/lib/finch_api/models/jobs/automated_list_params.rb +14 -1
  26. data/lib/finch_api/models/jobs/automated_retrieve_params.rb +14 -1
  27. data/lib/finch_api/models/jobs/manual_async_job.rb +5 -3
  28. data/lib/finch_api/models/jobs/manual_retrieve_params.rb +14 -1
  29. data/lib/finch_api/models/provider.rb +19 -68
  30. data/lib/finch_api/models/request_forwarding_forward_response.rb +10 -10
  31. data/lib/finch_api/models/sandbox/connection_create_params.rb +1 -4
  32. data/lib/finch_api/models/sandbox/directory_create_params.rb +1 -4
  33. data/lib/finch_api/models/sandbox/payment_create_params.rb +7 -22
  34. data/lib/finch_api/resources/jobs/automated.rb +16 -3
  35. data/lib/finch_api/resources/jobs/manual.rb +10 -2
  36. data/lib/finch_api/resources/request_forwarding.rb +2 -2
  37. data/lib/finch_api/version.rb +1 -1
  38. data/rbi/finch_api/errors.rbi +2 -2
  39. data/rbi/finch_api/internal/type/converter.rbi +54 -0
  40. data/rbi/finch_api/internal/type/union.rbi +9 -2
  41. data/rbi/finch_api/models/disconnect_response.rbi +2 -2
  42. data/rbi/finch_api/models/jobs/automated_async_job.rbi +2 -2
  43. data/rbi/finch_api/models/jobs/automated_list_params.rbi +15 -0
  44. data/rbi/finch_api/models/jobs/automated_retrieve_params.rbi +25 -5
  45. data/rbi/finch_api/models/jobs/manual_async_job.rbi +3 -3
  46. data/rbi/finch_api/models/jobs/manual_retrieve_params.rbi +25 -5
  47. data/rbi/finch_api/models/request_forwarding_forward_response.rbi +14 -14
  48. data/rbi/finch_api/resources/jobs/automated.rbi +14 -1
  49. data/rbi/finch_api/resources/jobs/manual.rbi +9 -1
  50. data/rbi/finch_api/resources/request_forwarding.rbi +2 -2
  51. data/sig/finch_api/internal/type/converter.rbs +17 -0
  52. data/sig/finch_api/internal/type/union.rbs +2 -2
  53. data/sig/finch_api/models/jobs/automated_list_params.rbs +7 -1
  54. data/sig/finch_api/models/jobs/automated_retrieve_params.rbs +13 -3
  55. data/sig/finch_api/models/jobs/manual_async_job.rbs +4 -4
  56. data/sig/finch_api/models/jobs/manual_retrieve_params.rbs +13 -3
  57. data/sig/finch_api/resources/jobs/automated.rbs +2 -0
  58. data/sig/finch_api/resources/jobs/manual.rbs +1 -0
  59. metadata +2 -2
@@ -59,10 +59,10 @@ module FinchAPI
59
59
  end
60
60
 
61
61
  class APIConnectionError < FinchAPI::Errors::APIError
62
- sig { void }
62
+ sig { returns(NilClass) }
63
63
  attr_accessor :status
64
64
 
65
- sig { void }
65
+ sig { returns(NilClass) }
66
66
  attr_accessor :body
67
67
 
68
68
  # @api private
@@ -90,6 +90,60 @@ module FinchAPI
90
90
  def self.type_info(spec)
91
91
  end
92
92
 
93
+ # @api private
94
+ sig do
95
+ params(
96
+ type_info:
97
+ T.any(
98
+ {
99
+ const:
100
+ T.nilable(
101
+ T.any(NilClass, T::Boolean, Integer, Float, Symbol)
102
+ ),
103
+ enum:
104
+ T.nilable(
105
+ T.proc.returns(
106
+ FinchAPI::Internal::Type::Converter::Input
107
+ )
108
+ ),
109
+ union:
110
+ T.nilable(
111
+ T.proc.returns(
112
+ FinchAPI::Internal::Type::Converter::Input
113
+ )
114
+ )
115
+ },
116
+ T.proc.returns(FinchAPI::Internal::Type::Converter::Input),
117
+ FinchAPI::Internal::Type::Converter::Input
118
+ ),
119
+ spec:
120
+ T.any(
121
+ {
122
+ const:
123
+ T.nilable(
124
+ T.any(NilClass, T::Boolean, Integer, Float, Symbol)
125
+ ),
126
+ enum:
127
+ T.nilable(
128
+ T.proc.returns(
129
+ FinchAPI::Internal::Type::Converter::Input
130
+ )
131
+ ),
132
+ union:
133
+ T.nilable(
134
+ T.proc.returns(
135
+ FinchAPI::Internal::Type::Converter::Input
136
+ )
137
+ )
138
+ },
139
+ T.proc.returns(FinchAPI::Internal::Type::Converter::Input),
140
+ FinchAPI::Internal::Type::Converter::Input
141
+ )
142
+ ).returns(FinchAPI::Internal::AnyHash)
143
+ end
144
+ def self.meta_info(type_info, spec)
145
+ end
146
+
93
147
  # @api private
94
148
  sig do
95
149
  params(translate_names: T::Boolean).returns(
@@ -16,7 +16,8 @@ module FinchAPI
16
16
  T::Array[
17
17
  [
18
18
  T.nilable(Symbol),
19
- T.proc.returns(FinchAPI::Internal::Type::Converter::Input)
19
+ T.proc.returns(FinchAPI::Internal::Type::Converter::Input),
20
+ FinchAPI::Internal::AnyHash
20
21
  ]
21
22
  ]
22
23
  )
@@ -25,7 +26,13 @@ module FinchAPI
25
26
  end
26
27
 
27
28
  # @api private
28
- sig { returns(T::Array[[T.nilable(Symbol), T.anything]]) }
29
+ sig do
30
+ returns(
31
+ T::Array[
32
+ [T.nilable(Symbol), T.anything, FinchAPI::Internal::AnyHash]
33
+ ]
34
+ )
35
+ end
29
36
  protected def derefed_variants
30
37
  end
31
38
 
@@ -8,13 +8,13 @@ module FinchAPI
8
8
  T.any(FinchAPI::DisconnectResponse, FinchAPI::Internal::AnyHash)
9
9
  end
10
10
 
11
- # If the request is successful, Finch will return success (HTTP 200 status).
11
+ # If the request is successful, Finch will return "success" (HTTP 200 status).
12
12
  sig { returns(String) }
13
13
  attr_accessor :status
14
14
 
15
15
  sig { params(status: String).returns(T.attached_class) }
16
16
  def self.new(
17
- # If the request is successful, Finch will return success (HTTP 200 status).
17
+ # If the request is successful, Finch will return "success" (HTTP 200 status).
18
18
  status:
19
19
  )
20
20
  end
@@ -43,7 +43,7 @@ module FinchAPI
43
43
 
44
44
  # The datetime a job is scheduled to be run. For scheduled jobs, this datetime can
45
45
  # 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.
47
47
  sig { returns(T.nilable(Time)) }
48
48
  attr_accessor :scheduled_at
49
49
 
@@ -87,7 +87,7 @@ module FinchAPI
87
87
  params:,
88
88
  # The datetime a job is scheduled to be run. For scheduled jobs, this datetime can
89
89
  # 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.
91
91
  scheduled_at:,
92
92
  # The datetime a job entered into the job queue.
93
93
  started_at:,
@@ -15,6 +15,15 @@ module FinchAPI
15
15
  )
16
16
  end
17
17
 
18
+ # The entity ID to use when authenticating with a multi-account token. Required
19
+ # when using a multi-account token to specify which entity's data to access.
20
+ # Example: `123e4567-e89b-12d3-a456-426614174000`
21
+ sig { returns(T.nilable(String)) }
22
+ attr_reader :entity_id
23
+
24
+ sig { params(entity_id: String).void }
25
+ attr_writer :entity_id
26
+
18
27
  # Number of items to return
19
28
  sig { returns(T.nilable(Integer)) }
20
29
  attr_reader :limit
@@ -31,12 +40,17 @@ module FinchAPI
31
40
 
32
41
  sig do
33
42
  params(
43
+ entity_id: String,
34
44
  limit: Integer,
35
45
  offset: Integer,
36
46
  request_options: FinchAPI::RequestOptions::OrHash
37
47
  ).returns(T.attached_class)
38
48
  end
39
49
  def self.new(
50
+ # The entity ID to use when authenticating with a multi-account token. Required
51
+ # when using a multi-account token to specify which entity's data to access.
52
+ # Example: `123e4567-e89b-12d3-a456-426614174000`
53
+ entity_id: nil,
40
54
  # Number of items to return
41
55
  limit: nil,
42
56
  # Index to start from (defaults to 0)
@@ -48,6 +62,7 @@ module FinchAPI
48
62
  sig do
49
63
  override.returns(
50
64
  {
65
+ entity_id: String,
51
66
  limit: Integer,
52
67
  offset: Integer,
53
68
  request_options: FinchAPI::RequestOptions
@@ -15,15 +15,35 @@ module FinchAPI
15
15
  )
16
16
  end
17
17
 
18
+ # The entity ID to use when authenticating with a multi-account token. Required
19
+ # when using a multi-account token to specify which entity's data to access.
20
+ # Example: `123e4567-e89b-12d3-a456-426614174000`
21
+ sig { returns(T.nilable(String)) }
22
+ attr_reader :entity_id
23
+
24
+ sig { params(entity_id: String).void }
25
+ attr_writer :entity_id
26
+
18
27
  sig do
19
- params(request_options: FinchAPI::RequestOptions::OrHash).returns(
20
- T.attached_class
21
- )
28
+ params(
29
+ entity_id: String,
30
+ request_options: FinchAPI::RequestOptions::OrHash
31
+ ).returns(T.attached_class)
22
32
  end
23
- def self.new(request_options: {})
33
+ def self.new(
34
+ # The entity ID to use when authenticating with a multi-account token. Required
35
+ # when using a multi-account token to specify which entity's data to access.
36
+ # Example: `123e4567-e89b-12d3-a456-426614174000`
37
+ entity_id: nil,
38
+ request_options: {}
39
+ )
24
40
  end
25
41
 
26
- sig { override.returns({ request_options: FinchAPI::RequestOptions }) }
42
+ sig do
43
+ override.returns(
44
+ { entity_id: String, request_options: FinchAPI::RequestOptions }
45
+ )
46
+ end
27
47
  def to_hash
28
48
  end
29
49
  end
@@ -10,7 +10,7 @@ module FinchAPI
10
10
  end
11
11
 
12
12
  # 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)])) }
14
14
  attr_accessor :body
15
15
 
16
16
  sig { returns(String) }
@@ -21,7 +21,7 @@ module FinchAPI
21
21
 
22
22
  sig do
23
23
  params(
24
- body: T.nilable(T::Array[T.anything]),
24
+ body: T.nilable(T::Array[T.nilable(T.anything)]),
25
25
  job_id: String,
26
26
  status: FinchAPI::Jobs::ManualAsyncJob::Status::OrSymbol
27
27
  ).returns(T.attached_class)
@@ -37,7 +37,7 @@ module FinchAPI
37
37
  sig do
38
38
  override.returns(
39
39
  {
40
- body: T.nilable(T::Array[T.anything]),
40
+ body: T.nilable(T::Array[T.nilable(T.anything)]),
41
41
  job_id: String,
42
42
  status: FinchAPI::Jobs::ManualAsyncJob::Status::TaggedSymbol
43
43
  }
@@ -15,15 +15,35 @@ module FinchAPI
15
15
  )
16
16
  end
17
17
 
18
+ # The entity ID to use when authenticating with a multi-account token. Required
19
+ # when using a multi-account token to specify which entity's data to access.
20
+ # Example: `123e4567-e89b-12d3-a456-426614174000`
21
+ sig { returns(T.nilable(String)) }
22
+ attr_reader :entity_id
23
+
24
+ sig { params(entity_id: String).void }
25
+ attr_writer :entity_id
26
+
18
27
  sig do
19
- params(request_options: FinchAPI::RequestOptions::OrHash).returns(
20
- T.attached_class
21
- )
28
+ params(
29
+ entity_id: String,
30
+ request_options: FinchAPI::RequestOptions::OrHash
31
+ ).returns(T.attached_class)
22
32
  end
23
- def self.new(request_options: {})
33
+ def self.new(
34
+ # The entity ID to use when authenticating with a multi-account token. Required
35
+ # when using a multi-account token to specify which entity's data to access.
36
+ # Example: `123e4567-e89b-12d3-a456-426614174000`
37
+ entity_id: nil,
38
+ request_options: {}
39
+ )
24
40
  end
25
41
 
26
- sig { override.returns({ request_options: FinchAPI::RequestOptions }) }
42
+ sig do
43
+ override.returns(
44
+ { entity_id: String, request_options: FinchAPI::RequestOptions }
45
+ )
46
+ end
27
47
  def to_hash
28
48
  end
29
49
  end
@@ -11,14 +11,14 @@ module FinchAPI
11
11
  )
12
12
  end
13
13
 
14
- # A string representation of the HTTP response body of the forwarded requests
15
- # response received from the underlying integrations API. This field may be null
16
- # in the case where the upstream systems response is empty.
14
+ # A string representation of the HTTP response body of the forwarded request's
15
+ # response received from the underlying integration's API. This field may be null
16
+ # in the case where the upstream system's response is empty.
17
17
  sig { returns(T.nilable(String)) }
18
18
  attr_accessor :data
19
19
 
20
- # The HTTP headers of the forwarded requests response, exactly as received from
21
- # the underlying integrations API.
20
+ # The HTTP headers of the forwarded request's response, exactly as received from
21
+ # the underlying integration's API.
22
22
  sig { returns(T.nilable(T.anything)) }
23
23
  attr_accessor :headers
24
24
 
@@ -37,8 +37,8 @@ module FinchAPI
37
37
  end
38
38
  attr_writer :request
39
39
 
40
- # The HTTP status code of the forwarded requests response, exactly received from
41
- # the underlying integrations API. This value will be returned as an integer.
40
+ # The HTTP status code of the forwarded request's response, exactly received from
41
+ # the underlying integration's API. This value will be returned as an integer.
42
42
  sig { returns(Integer) }
43
43
  attr_accessor :status_code
44
44
 
@@ -52,18 +52,18 @@ module FinchAPI
52
52
  ).returns(T.attached_class)
53
53
  end
54
54
  def self.new(
55
- # A string representation of the HTTP response body of the forwarded requests
56
- # response received from the underlying integrations API. This field may be null
57
- # in the case where the upstream systems response is empty.
55
+ # A string representation of the HTTP response body of the forwarded request's
56
+ # response received from the underlying integration's API. This field may be null
57
+ # in the case where the upstream system's response is empty.
58
58
  data:,
59
- # The HTTP headers of the forwarded requests response, exactly as received from
60
- # the underlying integrations API.
59
+ # The HTTP headers of the forwarded request's response, exactly as received from
60
+ # the underlying integration's API.
61
61
  headers:,
62
62
  # An object containing details of your original forwarded request, for your ease
63
63
  # of reference.
64
64
  request:,
65
- # The HTTP status code of the forwarded requests response, exactly received from
66
- # the underlying integrations API. This value will be returned as an integer.
65
+ # The HTTP status code of the forwarded request's response, exactly received from
66
+ # the underlying integration's API. This value will be returned as an integer.
67
67
  status_code:
68
68
  )
69
69
  end
@@ -37,10 +37,18 @@ module FinchAPI
37
37
  sig do
38
38
  params(
39
39
  job_id: String,
40
+ entity_id: String,
40
41
  request_options: FinchAPI::RequestOptions::OrHash
41
42
  ).returns(FinchAPI::Jobs::AutomatedAsyncJob)
42
43
  end
43
- def retrieve(job_id, request_options: {})
44
+ def retrieve(
45
+ job_id,
46
+ # The entity ID to use when authenticating with a multi-account token. Required
47
+ # when using a multi-account token to specify which entity's data to access.
48
+ # Example: `123e4567-e89b-12d3-a456-426614174000`
49
+ entity_id: nil,
50
+ request_options: {}
51
+ )
44
52
  end
45
53
 
46
54
  # Get all automated jobs. Automated jobs are completed by a machine. By default,
@@ -48,12 +56,17 @@ module FinchAPI
48
56
  # as data syncs, only the next scheduled job is shown.
49
57
  sig do
50
58
  params(
59
+ entity_id: String,
51
60
  limit: Integer,
52
61
  offset: Integer,
53
62
  request_options: FinchAPI::RequestOptions::OrHash
54
63
  ).returns(FinchAPI::Models::Jobs::AutomatedListResponse)
55
64
  end
56
65
  def list(
66
+ # The entity ID to use when authenticating with a multi-account token. Required
67
+ # when using a multi-account token to specify which entity's data to access.
68
+ # Example: `123e4567-e89b-12d3-a456-426614174000`
69
+ entity_id: nil,
57
70
  # Number of items to return
58
71
  limit: nil,
59
72
  # Index to start from (defaults to 0)
@@ -9,10 +9,18 @@ module FinchAPI
9
9
  sig do
10
10
  params(
11
11
  job_id: String,
12
+ entity_id: String,
12
13
  request_options: FinchAPI::RequestOptions::OrHash
13
14
  ).returns(FinchAPI::Jobs::ManualAsyncJob)
14
15
  end
15
- def retrieve(job_id, request_options: {})
16
+ def retrieve(
17
+ job_id,
18
+ # The entity ID to use when authenticating with a multi-account token. Required
19
+ # when using a multi-account token to specify which entity's data to access.
20
+ # Example: `123e4567-e89b-12d3-a456-426614174000`
21
+ entity_id: nil,
22
+ request_options: {}
23
+ )
16
24
  end
17
25
 
18
26
  # @api private
@@ -4,8 +4,8 @@ module FinchAPI
4
4
  module Resources
5
5
  class RequestForwarding
6
6
  # The Forward API allows you to make direct requests to an employment system. If
7
- # Finchs unified API doesnt have a data model that cleanly fits your needs, then
8
- # Forward allows you to push or pull data models directly against an integrations
7
+ # Finch's unified API doesn't have a data model that cleanly fits your needs, then
8
+ # Forward allows you to push or pull data models directly against an integration's
9
9
  # API.
10
10
  sig do
11
11
  params(
@@ -39,6 +39,23 @@ module FinchAPI
39
39
  | FinchAPI::Internal::Type::Converter::input spec
40
40
  ) -> (^-> top)
41
41
 
42
+ def self.meta_info: (
43
+ {
44
+ const: (nil | bool | Integer | Float | Symbol)?,
45
+ enum: ^-> FinchAPI::Internal::Type::Converter::input?,
46
+ union: ^-> FinchAPI::Internal::Type::Converter::input?
47
+ }
48
+ | ^-> FinchAPI::Internal::Type::Converter::input
49
+ | FinchAPI::Internal::Type::Converter::input type_info,
50
+ {
51
+ const: (nil | bool | Integer | Float | Symbol)?,
52
+ enum: ^-> FinchAPI::Internal::Type::Converter::input?,
53
+ union: ^-> FinchAPI::Internal::Type::Converter::input?
54
+ }
55
+ | ^-> FinchAPI::Internal::Type::Converter::input
56
+ | FinchAPI::Internal::Type::Converter::input spec
57
+ ) -> ::Hash[Symbol, top]
58
+
42
59
  def self.new_coerce_state: (
43
60
  ?translate_names: bool
44
61
  ) -> FinchAPI::Internal::Type::Converter::coerce_state
@@ -5,9 +5,9 @@ module FinchAPI
5
5
  include FinchAPI::Internal::Type::Converter
6
6
  include FinchAPI::Internal::Util::SorbetRuntimeSupport
7
7
 
8
- private def self.known_variants: -> ::Array[[Symbol?, (^-> FinchAPI::Internal::Type::Converter::input)]]
8
+ private def self.known_variants: -> ::Array[[Symbol?, (^-> FinchAPI::Internal::Type::Converter::input), ::Hash[Symbol, top]]]
9
9
 
10
- def self.derefed_variants: -> ::Array[[Symbol?, top]]
10
+ def self.derefed_variants: -> ::Array[[Symbol?, top, ::Hash[Symbol, top]]]
11
11
 
12
12
  def self.variants: -> ::Array[top]
13
13
 
@@ -2,13 +2,17 @@ module FinchAPI
2
2
  module Models
3
3
  module Jobs
4
4
  type automated_list_params =
5
- { limit: Integer, offset: Integer }
5
+ { entity_id: String, limit: Integer, offset: Integer }
6
6
  & FinchAPI::Internal::Type::request_parameters
7
7
 
8
8
  class AutomatedListParams < FinchAPI::Internal::Type::BaseModel
9
9
  extend FinchAPI::Internal::Type::RequestParameters::Converter
10
10
  include FinchAPI::Internal::Type::RequestParameters
11
11
 
12
+ attr_reader entity_id: String?
13
+
14
+ def entity_id=: (String) -> String
15
+
12
16
  attr_reader limit: Integer?
13
17
 
14
18
  def limit=: (Integer) -> Integer
@@ -18,12 +22,14 @@ module FinchAPI
18
22
  def offset=: (Integer) -> Integer
19
23
 
20
24
  def initialize: (
25
+ ?entity_id: String,
21
26
  ?limit: Integer,
22
27
  ?offset: Integer,
23
28
  ?request_options: FinchAPI::request_opts
24
29
  ) -> void
25
30
 
26
31
  def to_hash: -> {
32
+ entity_id: String,
27
33
  limit: Integer,
28
34
  offset: Integer,
29
35
  request_options: FinchAPI::RequestOptions
@@ -2,15 +2,25 @@ module FinchAPI
2
2
  module Models
3
3
  module Jobs
4
4
  type automated_retrieve_params =
5
- { } & FinchAPI::Internal::Type::request_parameters
5
+ { entity_id: String } & FinchAPI::Internal::Type::request_parameters
6
6
 
7
7
  class AutomatedRetrieveParams < FinchAPI::Internal::Type::BaseModel
8
8
  extend FinchAPI::Internal::Type::RequestParameters::Converter
9
9
  include FinchAPI::Internal::Type::RequestParameters
10
10
 
11
- def initialize: (?request_options: FinchAPI::request_opts) -> void
11
+ attr_reader entity_id: String?
12
12
 
13
- def to_hash: -> { request_options: FinchAPI::RequestOptions }
13
+ def entity_id=: (String) -> String
14
+
15
+ def initialize: (
16
+ ?entity_id: String,
17
+ ?request_options: FinchAPI::request_opts
18
+ ) -> void
19
+
20
+ def to_hash: -> {
21
+ entity_id: String,
22
+ request_options: FinchAPI::RequestOptions
23
+ }
14
24
  end
15
25
  end
16
26
  end
@@ -3,26 +3,26 @@ module FinchAPI
3
3
  module Jobs
4
4
  type manual_async_job =
5
5
  {
6
- body: ::Array[top]?,
6
+ body: ::Array[top?]?,
7
7
  job_id: String,
8
8
  status: FinchAPI::Models::Jobs::ManualAsyncJob::status
9
9
  }
10
10
 
11
11
  class ManualAsyncJob < FinchAPI::Internal::Type::BaseModel
12
- attr_accessor body: ::Array[top]?
12
+ attr_accessor body: ::Array[top?]?
13
13
 
14
14
  attr_accessor job_id: String
15
15
 
16
16
  attr_accessor status: FinchAPI::Models::Jobs::ManualAsyncJob::status
17
17
 
18
18
  def initialize: (
19
- body: ::Array[top]?,
19
+ body: ::Array[top?]?,
20
20
  job_id: String,
21
21
  status: FinchAPI::Models::Jobs::ManualAsyncJob::status
22
22
  ) -> void
23
23
 
24
24
  def to_hash: -> {
25
- body: ::Array[top]?,
25
+ body: ::Array[top?]?,
26
26
  job_id: String,
27
27
  status: FinchAPI::Models::Jobs::ManualAsyncJob::status
28
28
  }
@@ -2,15 +2,25 @@ module FinchAPI
2
2
  module Models
3
3
  module Jobs
4
4
  type manual_retrieve_params =
5
- { } & FinchAPI::Internal::Type::request_parameters
5
+ { entity_id: String } & FinchAPI::Internal::Type::request_parameters
6
6
 
7
7
  class ManualRetrieveParams < FinchAPI::Internal::Type::BaseModel
8
8
  extend FinchAPI::Internal::Type::RequestParameters::Converter
9
9
  include FinchAPI::Internal::Type::RequestParameters
10
10
 
11
- def initialize: (?request_options: FinchAPI::request_opts) -> void
11
+ attr_reader entity_id: String?
12
12
 
13
- def to_hash: -> { request_options: FinchAPI::RequestOptions }
13
+ def entity_id=: (String) -> String
14
+
15
+ def initialize: (
16
+ ?entity_id: String,
17
+ ?request_options: FinchAPI::request_opts
18
+ ) -> void
19
+
20
+ def to_hash: -> {
21
+ entity_id: String,
22
+ request_options: FinchAPI::RequestOptions
23
+ }
14
24
  end
15
25
  end
16
26
  end
@@ -10,10 +10,12 @@ module FinchAPI
10
10
 
11
11
  def retrieve: (
12
12
  String job_id,
13
+ ?entity_id: String,
13
14
  ?request_options: FinchAPI::request_opts
14
15
  ) -> FinchAPI::Jobs::AutomatedAsyncJob
15
16
 
16
17
  def list: (
18
+ ?entity_id: String,
17
19
  ?limit: Integer,
18
20
  ?offset: Integer,
19
21
  ?request_options: FinchAPI::request_opts
@@ -4,6 +4,7 @@ module FinchAPI
4
4
  class Manual
5
5
  def retrieve: (
6
6
  String job_id,
7
+ ?entity_id: String,
7
8
  ?request_options: FinchAPI::request_opts
8
9
  ) -> FinchAPI::Jobs::ManualAsyncJob
9
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: finch-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.25
4
+ version: 0.1.0.pre.alpha.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Finch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-07 00:00:00.000000000 Z
11
+ date: 2025-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool