stackone_client 0.38.0 → 0.39.0
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.
- checksums.yaml +4 -4
- data/lib/stack_one/mcp.rb +18 -9
- data/lib/stack_one/models/operations/include.rb +1 -1
- data/lib/stack_one/models/operations/stackone_mcp_delete_request.rb +8 -4
- data/lib/stack_one/models/operations/stackone_mcp_delete_request.rbi +2 -0
- data/lib/stack_one/models/operations/stackone_mcp_get_request.rb +8 -4
- data/lib/stack_one/models/operations/stackone_mcp_get_request.rbi +2 -0
- data/lib/stack_one/models/operations/stackone_mcp_post_request.rb +10 -6
- data/lib/stack_one/models/operations/stackone_mcp_post_request.rbi +4 -2
- data/lib/stack_one/models/operations/stackone_proxy_request_response.rb +6 -2
- data/lib/stack_one/models/operations/stackone_proxy_request_response.rbi +2 -0
- data/lib/stack_one/models/shared/account_type.rb +5 -5
- data/lib/stack_one/models/shared/actionsrpcrequestdto.rb +2 -2
- data/lib/stack_one/models/shared/actionsrpcresponse.rb +2 -2
- data/lib/stack_one/models/shared/applicationattachment_value.rb +3 -0
- data/lib/stack_one/models/shared/attachment_value.rb +3 -0
- data/lib/stack_one/models/shared/candidate.rb +6 -2
- data/lib/stack_one/models/shared/candidate.rbi +2 -0
- data/lib/stack_one/models/shared/clearingcode.rb +37 -0
- data/lib/stack_one/models/shared/clearingcode.rbi +15 -0
- data/lib/stack_one/models/shared/{actionsrpcresponse_2.rb → clearingcode_4.rb} +1 -1
- data/lib/stack_one/models/shared/clearingcode_4.rbi +11 -0
- data/lib/stack_one/models/shared/{patchaccountexternaldto_setup_information.rb → clearingcode_source_value.rb} +1 -1
- data/lib/stack_one/models/shared/clearingcode_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/clearingcode_type.rb +37 -0
- data/lib/stack_one/models/shared/clearingcode_type.rbi +15 -0
- data/lib/stack_one/models/shared/clearingcode_value.rb +41 -0
- data/lib/stack_one/models/shared/clearingcode_value.rbi +11 -0
- data/lib/stack_one/models/shared/country_code.rb +37 -0
- data/lib/stack_one/models/shared/country_code.rbi +15 -0
- data/lib/stack_one/models/shared/employee.rb +6 -2
- data/lib/stack_one/models/shared/employee.rbi +2 -0
- data/lib/stack_one/models/shared/{one.rb → employee_2.rb} +1 -1
- data/lib/stack_one/models/shared/{one.rbi → employee_2.rbi} +2 -2
- data/lib/stack_one/models/shared/employment_status.rb +2 -2
- data/lib/stack_one/models/shared/hrisbankdetails.rb +77 -0
- data/lib/stack_one/models/shared/hrisbankdetails.rbi +35 -0
- data/lib/stack_one/models/shared/hrisbankdetails_2.rb +22 -0
- data/lib/stack_one/models/shared/hrisbankdetails_2.rbi +11 -0
- data/lib/stack_one/models/shared/hrisbankdetails_4.rb +28 -0
- data/lib/stack_one/models/shared/hrisbankdetails_4.rbi +11 -0
- data/lib/stack_one/models/shared/hrisbankdetails_currency_code.rb +37 -0
- data/lib/stack_one/models/shared/hrisbankdetails_currency_code.rbi +15 -0
- data/lib/stack_one/models/shared/hrisbankdetails_schemas_4.rb +28 -0
- data/lib/stack_one/models/shared/hrisbankdetails_schemas_4.rbi +11 -0
- data/lib/stack_one/models/shared/hrisbankdetails_schemas_currency_code_4.rb +28 -0
- data/lib/stack_one/models/shared/hrisbankdetails_schemas_currency_code_4.rbi +11 -0
- data/lib/stack_one/models/shared/hrisbankdetails_schemas_currency_code_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hrisbankdetails_schemas_currency_code_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisbankdetails_schemas_currency_code_value.rb +178 -0
- data/lib/stack_one/models/shared/hrisbankdetails_schemas_currency_code_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisbankdetails_schemas_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hrisbankdetails_schemas_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisbankdetails_schemas_value.rb +269 -0
- data/lib/stack_one/models/shared/hrisbankdetails_schemas_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisbankdetails_source_value.rb +28 -0
- data/lib/stack_one/models/shared/hrisbankdetails_source_value.rbi +11 -0
- data/lib/stack_one/models/shared/hrisbankdetails_value.rb +27 -0
- data/lib/stack_one/models/shared/hrisbankdetails_value.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_2.rb +28 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_2.rbi +11 -0
- data/lib/stack_one/models/shared/hriscreateemployeerequestdto_employment_status.rb +2 -2
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_2.rb +28 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_2.rbi +11 -0
- data/lib/stack_one/models/shared/hrisupdateemployeerequestdto_employment_status.rb +2 -2
- data/lib/stack_one/models/shared/is_primary.rb +28 -0
- data/lib/stack_one/models/shared/is_primary.rbi +11 -0
- data/lib/stack_one/models/shared/journalline.rb +2 -2
- data/lib/stack_one/models/shared/journalline_account_type.rb +37 -0
- data/lib/stack_one/models/shared/journalline_account_type.rbi +15 -0
- data/lib/stack_one/models/shared/linkedaccount.rb +2 -2
- data/lib/stack_one/models/shared/lmscreateassignmentrequestdto.rb +6 -6
- data/lib/stack_one/models/shared/lmscreateassignmentrequestdto.rbi +2 -2
- data/lib/stack_one/models/shared/lmscreatecompletionrequestdto.rb +6 -6
- data/lib/stack_one/models/shared/lmscreatecompletionrequestdto.rbi +2 -2
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto.rb +6 -6
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto.rbi +2 -2
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto_content_type.rb +2 -2
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto_source_value.rb +1 -1
- data/lib/stack_one/models/shared/lmscreatecontentrequestdto_value.rb +6 -1
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rb +6 -6
- data/lib/stack_one/models/shared/lmsupsertcontentrequestdto.rbi +2 -2
- data/lib/stack_one/models/shared/patchaccountexternaldto.rb +2 -2
- data/lib/stack_one/models/shared/proxyresponseapimodel.rb +45 -0
- data/lib/stack_one/models/shared/proxyresponseapimodel.rbi +19 -0
- data/lib/stack_one/models/shared/proxyresponseapimodel_data.rb +28 -0
- data/lib/stack_one/models/shared/proxyresponseapimodel_data.rbi +11 -0
- data/lib/stack_one/models/shared/query.rb +37 -0
- data/lib/stack_one/models/shared/query.rbi +15 -0
- data/lib/stack_one/models/shared/tag.rb +37 -0
- data/lib/stack_one/models/shared/tag.rbi +15 -0
- data/lib/stack_one/models/shared.rb +27 -3
- data/lib/stack_one/proxy.rb +21 -12
- data/lib/stack_one/sdkconfiguration.rb +3 -3
- metadata +56 -8
- data/lib/stack_one/models/shared/actionsrpcresponse_2.rbi +0 -11
- data/lib/stack_one/models/shared/patchaccountexternaldto_setup_information.rbi +0 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ddc7e76bd7dc74ea2683bd7379e628b4bd11fb26a8b9c3e5ad625413d7bfd1e5
|
|
4
|
+
data.tar.gz: e1e81b45097cbdcde82412e5960a7e989f2c3eb5c9cb369805ee26186b4a4ad7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 801aa8f8073144fa8022effa9e81f22ff43eab1d7365abf6ec8302af6436aeca67ee292bd4078e907e5a3f4352d53ae0fe2e833b845d47d7bd892db826abcee0
|
|
7
|
+
data.tar.gz: 9b27410e7cc3382d0a5a77442379a91467ebd311aacfb65657b4bf5184d3183c99a6e7d5007ea96cf314aec627301dabdcf0a1c77d304ad61f82bb5ac013ec2f
|
data/lib/stack_one/mcp.rb
CHANGED
|
@@ -39,19 +39,21 @@ module StackOne
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
sig { params(security: Models::Operations::StackoneMcpDeleteSecurity, mcp_session_id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::StackoneMcpDeleteResponse) }
|
|
43
|
-
def mcp_delete(security:, mcp_session_id:, x_account_id
|
|
42
|
+
sig { params(security: Models::Operations::StackoneMcpDeleteSecurity, mcp_session_id: ::String, x_account_id: T.nilable(::String), x_account_id_query_parameter: T.nilable(::Object), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::StackoneMcpDeleteResponse) }
|
|
43
|
+
def mcp_delete(security:, mcp_session_id:, x_account_id: nil, x_account_id_query_parameter: nil, retries: nil, timeout_ms: nil)
|
|
44
44
|
# mcp_delete - Delete MCP session
|
|
45
45
|
# Close an existing MCP session for the provided session id
|
|
46
46
|
request = Models::Operations::StackoneMcpDeleteRequest.new(
|
|
47
47
|
mcp_session_id: mcp_session_id,
|
|
48
|
-
x_account_id: x_account_id
|
|
48
|
+
x_account_id: x_account_id,
|
|
49
|
+
x_account_id_query_parameter: x_account_id_query_parameter
|
|
49
50
|
)
|
|
50
51
|
url, params = @sdk_configuration.get_server_details
|
|
51
52
|
base_url = Utils.template_url(url, params)
|
|
52
53
|
url = "#{base_url}/mcp"
|
|
53
54
|
headers = Utils.get_headers(request)
|
|
54
55
|
headers = T.cast(headers, T::Hash[String, String])
|
|
56
|
+
query_params = Utils.get_query_params(Models::Operations::StackoneMcpDeleteRequest, request, nil)
|
|
55
57
|
headers['Accept'] = 'application/json'
|
|
56
58
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
57
59
|
retries ||= @sdk_configuration.retry_config
|
|
@@ -91,6 +93,7 @@ module StackOne
|
|
|
91
93
|
http_response = T.must(connection).delete(url) do |req|
|
|
92
94
|
req.headers.merge!(headers)
|
|
93
95
|
req.options.timeout = timeout unless timeout.nil?
|
|
96
|
+
req.params = query_params
|
|
94
97
|
Utils.configure_request_security(req, security)
|
|
95
98
|
|
|
96
99
|
@sdk_configuration.hooks.before_request(
|
|
@@ -305,19 +308,21 @@ module StackOne
|
|
|
305
308
|
end
|
|
306
309
|
|
|
307
310
|
|
|
308
|
-
sig { params(security: Models::Operations::StackoneMcpGetSecurity, mcp_session_id: ::String, x_account_id: ::String, retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::StackoneMcpGetResponse) }
|
|
309
|
-
def mcp_get(security:, mcp_session_id:, x_account_id
|
|
311
|
+
sig { params(security: Models::Operations::StackoneMcpGetSecurity, mcp_session_id: ::String, x_account_id: T.nilable(::String), x_account_id_query_parameter: T.nilable(::Object), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::StackoneMcpGetResponse) }
|
|
312
|
+
def mcp_get(security:, mcp_session_id:, x_account_id: nil, x_account_id_query_parameter: nil, retries: nil, timeout_ms: nil)
|
|
310
313
|
# mcp_get - Open MCP SSE stream
|
|
311
314
|
# Open a dedicated Server-Sent Events stream for MCP notifications
|
|
312
315
|
request = Models::Operations::StackoneMcpGetRequest.new(
|
|
313
316
|
mcp_session_id: mcp_session_id,
|
|
314
|
-
x_account_id: x_account_id
|
|
317
|
+
x_account_id: x_account_id,
|
|
318
|
+
x_account_id_query_parameter: x_account_id_query_parameter
|
|
315
319
|
)
|
|
316
320
|
url, params = @sdk_configuration.get_server_details
|
|
317
321
|
base_url = Utils.template_url(url, params)
|
|
318
322
|
url = "#{base_url}/mcp"
|
|
319
323
|
headers = Utils.get_headers(request)
|
|
320
324
|
headers = T.cast(headers, T::Hash[String, String])
|
|
325
|
+
query_params = Utils.get_query_params(Models::Operations::StackoneMcpGetRequest, request, nil)
|
|
321
326
|
headers['Accept'] = 'application/json'
|
|
322
327
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
323
328
|
retries ||= @sdk_configuration.retry_config
|
|
@@ -357,6 +362,7 @@ module StackOne
|
|
|
357
362
|
http_response = T.must(connection).get(url) do |req|
|
|
358
363
|
req.headers.merge!(headers)
|
|
359
364
|
req.options.timeout = timeout unless timeout.nil?
|
|
365
|
+
req.params = query_params
|
|
360
366
|
Utils.configure_request_security(req, security)
|
|
361
367
|
|
|
362
368
|
@sdk_configuration.hooks.before_request(
|
|
@@ -571,14 +577,15 @@ module StackOne
|
|
|
571
577
|
end
|
|
572
578
|
|
|
573
579
|
|
|
574
|
-
sig { params(security: Models::Operations::StackoneMcpPostSecurity, json_rpc_message_dto: Models::Shared::JsonRpcMessageDto,
|
|
575
|
-
def mcp_post(security:, json_rpc_message_dto:, x_account_id
|
|
580
|
+
sig { params(security: Models::Operations::StackoneMcpPostSecurity, json_rpc_message_dto: Models::Shared::JsonRpcMessageDto, mcp_session_id: T.nilable(::String), x_account_id: T.nilable(::String), x_account_id_query_parameter: T.nilable(::Object), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::StackoneMcpPostResponse) }
|
|
581
|
+
def mcp_post(security:, json_rpc_message_dto:, mcp_session_id: nil, x_account_id: nil, x_account_id_query_parameter: nil, retries: nil, timeout_ms: nil)
|
|
576
582
|
# mcp_post - Send MCP JSON-RPC message
|
|
577
583
|
# Send JSON-RPC request to the MCP server over HTTP streaming transport
|
|
578
584
|
request = Models::Operations::StackoneMcpPostRequest.new(
|
|
579
585
|
json_rpc_message_dto: json_rpc_message_dto,
|
|
586
|
+
mcp_session_id: mcp_session_id,
|
|
580
587
|
x_account_id: x_account_id,
|
|
581
|
-
|
|
588
|
+
x_account_id_query_parameter: x_account_id_query_parameter
|
|
582
589
|
)
|
|
583
590
|
url, params = @sdk_configuration.get_server_details
|
|
584
591
|
base_url = Utils.template_url(url, params)
|
|
@@ -596,6 +603,7 @@ module StackOne
|
|
|
596
603
|
else
|
|
597
604
|
body = data
|
|
598
605
|
end
|
|
606
|
+
query_params = Utils.get_query_params(Models::Operations::StackoneMcpPostRequest, request, nil)
|
|
599
607
|
headers['Accept'] = 'application/json'
|
|
600
608
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
601
609
|
retries ||= @sdk_configuration.retry_config
|
|
@@ -636,6 +644,7 @@ module StackOne
|
|
|
636
644
|
req.body = body
|
|
637
645
|
req.headers.merge!(headers)
|
|
638
646
|
req.options.timeout = timeout unless timeout.nil?
|
|
647
|
+
req.params = query_params
|
|
639
648
|
Utils.configure_request_security(req, security)
|
|
640
649
|
|
|
641
650
|
@sdk_configuration.hooks.before_request(
|
|
@@ -15,13 +15,16 @@ module StackOne
|
|
|
15
15
|
|
|
16
16
|
# Session id
|
|
17
17
|
field :mcp_session_id, ::String, { 'header': { 'field_name': 'mcp-session-id', 'style': 'simple', 'explode': false } }
|
|
18
|
-
# Account secure id for the target provider account
|
|
19
|
-
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
18
|
+
# Account secure id for the target provider account (optional if x-account-id query parameter is provided)
|
|
19
|
+
field :x_account_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
20
|
+
# Account secure id (alternative to x-account-id header)
|
|
21
|
+
field :x_account_id_query_parameter, Crystalline::Nilable.new(::Object), { 'query_param': { 'field_name': 'x-account-id', 'style': 'form', 'explode': true } }
|
|
20
22
|
|
|
21
|
-
sig { params(mcp_session_id: ::String, x_account_id: ::String).void }
|
|
22
|
-
def initialize(mcp_session_id:, x_account_id:)
|
|
23
|
+
sig { params(mcp_session_id: ::String, x_account_id: T.nilable(::String), x_account_id_query_parameter: T.nilable(::Object)).void }
|
|
24
|
+
def initialize(mcp_session_id:, x_account_id: nil, x_account_id_query_parameter: nil)
|
|
23
25
|
@mcp_session_id = mcp_session_id
|
|
24
26
|
@x_account_id = x_account_id
|
|
27
|
+
@x_account_id_query_parameter = x_account_id_query_parameter
|
|
25
28
|
end
|
|
26
29
|
|
|
27
30
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -29,6 +32,7 @@ module StackOne
|
|
|
29
32
|
return false unless other.is_a? self.class
|
|
30
33
|
return false unless @mcp_session_id == other.mcp_session_id
|
|
31
34
|
return false unless @x_account_id == other.x_account_id
|
|
35
|
+
return false unless @x_account_id_query_parameter == other.x_account_id_query_parameter
|
|
32
36
|
true
|
|
33
37
|
end
|
|
34
38
|
end
|
|
@@ -15,13 +15,16 @@ module StackOne
|
|
|
15
15
|
|
|
16
16
|
# Session id
|
|
17
17
|
field :mcp_session_id, ::String, { 'header': { 'field_name': 'mcp-session-id', 'style': 'simple', 'explode': false } }
|
|
18
|
-
# Account secure id for the target provider account
|
|
19
|
-
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
18
|
+
# Account secure id for the target provider account (optional if x-account-id query parameter is provided)
|
|
19
|
+
field :x_account_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
20
|
+
# Account secure id (alternative to x-account-id header)
|
|
21
|
+
field :x_account_id_query_parameter, Crystalline::Nilable.new(::Object), { 'query_param': { 'field_name': 'x-account-id', 'style': 'form', 'explode': true } }
|
|
20
22
|
|
|
21
|
-
sig { params(mcp_session_id: ::String, x_account_id: ::String).void }
|
|
22
|
-
def initialize(mcp_session_id:, x_account_id:)
|
|
23
|
+
sig { params(mcp_session_id: ::String, x_account_id: T.nilable(::String), x_account_id_query_parameter: T.nilable(::Object)).void }
|
|
24
|
+
def initialize(mcp_session_id:, x_account_id: nil, x_account_id_query_parameter: nil)
|
|
23
25
|
@mcp_session_id = mcp_session_id
|
|
24
26
|
@x_account_id = x_account_id
|
|
27
|
+
@x_account_id_query_parameter = x_account_id_query_parameter
|
|
25
28
|
end
|
|
26
29
|
|
|
27
30
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -29,6 +32,7 @@ module StackOne
|
|
|
29
32
|
return false unless other.is_a? self.class
|
|
30
33
|
return false unless @mcp_session_id == other.mcp_session_id
|
|
31
34
|
return false unless @x_account_id == other.x_account_id
|
|
35
|
+
return false unless @x_account_id_query_parameter == other.x_account_id_query_parameter
|
|
32
36
|
true
|
|
33
37
|
end
|
|
34
38
|
end
|
|
@@ -15,24 +15,28 @@ module StackOne
|
|
|
15
15
|
|
|
16
16
|
# JSON-RPC 2.0 message
|
|
17
17
|
field :json_rpc_message_dto, Models::Shared::JsonRpcMessageDto, { 'request': { 'media_type': 'application/json' } }
|
|
18
|
-
# Account secure id for the target provider account
|
|
19
|
-
field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
20
18
|
# Session id; omit for initialize, include for subsequent calls
|
|
21
19
|
field :mcp_session_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'mcp-session-id', 'style': 'simple', 'explode': false } }
|
|
20
|
+
# Account secure id for the target provider account (optional if x-account-id query parameter is provided)
|
|
21
|
+
field :x_account_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } }
|
|
22
|
+
# Account secure id (alternative to x-account-id header)
|
|
23
|
+
field :x_account_id_query_parameter, Crystalline::Nilable.new(::Object), { 'query_param': { 'field_name': 'x-account-id', 'style': 'form', 'explode': true } }
|
|
22
24
|
|
|
23
|
-
sig { params(json_rpc_message_dto: Models::Shared::JsonRpcMessageDto,
|
|
24
|
-
def initialize(json_rpc_message_dto:, x_account_id
|
|
25
|
+
sig { params(json_rpc_message_dto: Models::Shared::JsonRpcMessageDto, mcp_session_id: T.nilable(::String), x_account_id: T.nilable(::String), x_account_id_query_parameter: T.nilable(::Object)).void }
|
|
26
|
+
def initialize(json_rpc_message_dto:, mcp_session_id: nil, x_account_id: nil, x_account_id_query_parameter: nil)
|
|
25
27
|
@json_rpc_message_dto = json_rpc_message_dto
|
|
26
|
-
@x_account_id = x_account_id
|
|
27
28
|
@mcp_session_id = mcp_session_id
|
|
29
|
+
@x_account_id = x_account_id
|
|
30
|
+
@x_account_id_query_parameter = x_account_id_query_parameter
|
|
28
31
|
end
|
|
29
32
|
|
|
30
33
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
31
34
|
def ==(other)
|
|
32
35
|
return false unless other.is_a? self.class
|
|
33
36
|
return false unless @json_rpc_message_dto == other.json_rpc_message_dto
|
|
34
|
-
return false unless @x_account_id == other.x_account_id
|
|
35
37
|
return false unless @mcp_session_id == other.mcp_session_id
|
|
38
|
+
return false unless @x_account_id == other.x_account_id
|
|
39
|
+
return false unless @x_account_id_query_parameter == other.x_account_id_query_parameter
|
|
36
40
|
true
|
|
37
41
|
end
|
|
38
42
|
end
|
|
@@ -10,8 +10,10 @@ end
|
|
|
10
10
|
class StackOne::Models::Operations::StackoneMcpPostRequest
|
|
11
11
|
def json_rpc_message_dto(); end
|
|
12
12
|
def json_rpc_message_dto=(str_); end
|
|
13
|
-
def x_account_id(); end
|
|
14
|
-
def x_account_id=(str_); end
|
|
15
13
|
def mcp_session_id(); end
|
|
16
14
|
def mcp_session_id=(str_); end
|
|
15
|
+
def x_account_id(); end
|
|
16
|
+
def x_account_id=(str_); end
|
|
17
|
+
def x_account_id_query_parameter(); end
|
|
18
|
+
def x_account_id_query_parameter=(str_); end
|
|
17
19
|
end
|
|
@@ -21,13 +21,16 @@ module StackOne
|
|
|
21
21
|
field :status_code, ::Integer
|
|
22
22
|
# Raw HTTP response; suitable for custom response parsing
|
|
23
23
|
field :raw_response, ::Faraday::Response
|
|
24
|
+
# The proxy request was successful.
|
|
25
|
+
field :proxy_response_api_model, Crystalline::Nilable.new(Models::Shared::ProxyResponseApiModel)
|
|
24
26
|
|
|
25
|
-
sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], status_code: ::Integer, raw_response: ::Faraday::Response).void }
|
|
26
|
-
def initialize(content_type:, headers:, status_code:, raw_response:)
|
|
27
|
+
sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], status_code: ::Integer, raw_response: ::Faraday::Response, proxy_response_api_model: T.nilable(Models::Shared::ProxyResponseApiModel)).void }
|
|
28
|
+
def initialize(content_type:, headers:, status_code:, raw_response:, proxy_response_api_model: nil)
|
|
27
29
|
@content_type = content_type
|
|
28
30
|
@headers = headers
|
|
29
31
|
@status_code = status_code
|
|
30
32
|
@raw_response = raw_response
|
|
33
|
+
@proxy_response_api_model = proxy_response_api_model
|
|
31
34
|
end
|
|
32
35
|
|
|
33
36
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -37,6 +40,7 @@ module StackOne
|
|
|
37
40
|
return false unless @headers == other.headers
|
|
38
41
|
return false unless @status_code == other.status_code
|
|
39
42
|
return false unless @raw_response == other.raw_response
|
|
43
|
+
return false unless @proxy_response_api_model == other.proxy_response_api_model
|
|
40
44
|
true
|
|
41
45
|
end
|
|
42
46
|
end
|
|
@@ -8,17 +8,17 @@ module StackOne
|
|
|
8
8
|
module Models
|
|
9
9
|
module Shared
|
|
10
10
|
|
|
11
|
-
#
|
|
11
|
+
# The type of bank account
|
|
12
12
|
class AccountType
|
|
13
13
|
extend T::Sig
|
|
14
14
|
include Crystalline::MetadataFields
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
field :source_value, Crystalline::Nilable.new(Crystalline::Union.new(::String, ::Float, Crystalline::Boolean.new, Models::Shared::
|
|
18
|
-
#
|
|
19
|
-
field :value, Crystalline::Nilable.new(Models::Shared::
|
|
17
|
+
field :source_value, Crystalline::Nilable.new(Crystalline::Union.new(::String, ::Float, Crystalline::Boolean.new, Models::Shared::HRISBankDetails4, Crystalline::Array.new(::Object))), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
|
18
|
+
# The type of bank account
|
|
19
|
+
field :value, Crystalline::Nilable.new(Models::Shared::HRISBankDetailsValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Models::Shared::HRISBankDetailsValue, true) } }
|
|
20
20
|
|
|
21
|
-
sig { params(source_value: T.nilable(T.any(::String, ::Float, T::Boolean, Models::Shared::
|
|
21
|
+
sig { params(source_value: T.nilable(T.any(::String, ::Float, T::Boolean, Models::Shared::HRISBankDetails4, T::Array[::Object])), value: T.nilable(Models::Shared::HRISBankDetailsValue)).void }
|
|
22
22
|
def initialize(source_value: nil, value: nil)
|
|
23
23
|
@source_value = source_value
|
|
24
24
|
@value = value
|
|
@@ -22,9 +22,9 @@ module StackOne
|
|
|
22
22
|
# Path parameters for the action
|
|
23
23
|
field :path, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } }
|
|
24
24
|
# Query parameters for the action
|
|
25
|
-
field :query, Crystalline::Nilable.new(
|
|
25
|
+
field :query, Crystalline::Nilable.new(Models::Shared::Query), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('query') } }
|
|
26
26
|
|
|
27
|
-
sig { params(action: ::String, body: T.nilable(T::Hash[Symbol, ::Object]), headers: T.nilable(T::Hash[Symbol, ::Object]), path: T.nilable(T::Hash[Symbol, ::Object]), query: T.nilable(
|
|
27
|
+
sig { params(action: ::String, body: T.nilable(T::Hash[Symbol, ::Object]), headers: T.nilable(T::Hash[Symbol, ::Object]), path: T.nilable(T::Hash[Symbol, ::Object]), query: T.nilable(Models::Shared::Query)).void }
|
|
28
28
|
def initialize(action:, body: nil, headers: nil, path: nil, query: nil)
|
|
29
29
|
@action = action
|
|
30
30
|
@body = body
|
|
@@ -14,11 +14,11 @@ module StackOne
|
|
|
14
14
|
include Crystalline::MetadataFields
|
|
15
15
|
|
|
16
16
|
# The response data from the action RPC call
|
|
17
|
-
field :data, Crystalline::Nilable.new(Crystalline::Union.new(
|
|
17
|
+
field :data, Crystalline::Nilable.new(Crystalline::Union.new(Crystalline::Hash.new(Symbol, ::Object), Crystalline::Array.new(Crystalline::Hash.new(Symbol, ::Object)))), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } }
|
|
18
18
|
# Cursor for fetching the next page of results
|
|
19
19
|
field :next_, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } }
|
|
20
20
|
|
|
21
|
-
sig { params(data: T.nilable(T.any(
|
|
21
|
+
sig { params(data: T.nilable(T.any(T::Hash[Symbol, ::Object], T::Array[T::Hash[Symbol, ::Object]])), next_: T.nilable(::String)).void }
|
|
22
22
|
def initialize(data: nil, next_: nil)
|
|
23
23
|
@data = data
|
|
24
24
|
@next_ = next_
|
|
@@ -49,6 +49,8 @@ module StackOne
|
|
|
49
49
|
field :remote_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('remote_id') } }
|
|
50
50
|
# List of candidate social links
|
|
51
51
|
field :social_links, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::SocialLink)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('social_links') } }
|
|
52
|
+
# List of candidate tags indicating metadata associated with the candidate
|
|
53
|
+
field :tags, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::Tag)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('tags') } }
|
|
52
54
|
# Candidate title
|
|
53
55
|
field :title, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('title') } }
|
|
54
56
|
# Custom Unified Fields configured in your StackOne project
|
|
@@ -56,8 +58,8 @@ module StackOne
|
|
|
56
58
|
# Candidate updated date
|
|
57
59
|
field :updated_at, Crystalline::Nilable.new(::DateTime), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('updated_at'), 'decoder': Utils.datetime_from_iso_format(true) } }
|
|
58
60
|
|
|
59
|
-
sig { params(application_ids: T.nilable(T::Array[::String]), company: T.nilable(::String), country: T.nilable(::String), created_at: T.nilable(::DateTime), custom_fields: T.nilable(T::Array[Models::Shared::CustomFields]), email: T.nilable(::String), emails: T.nilable(T::Array[Models::Shared::CandidateEmail]), first_name: T.nilable(::String), hired_at: T.nilable(::DateTime), id: T.nilable(::String), last_name: T.nilable(::String), name: T.nilable(::String), phone: T.nilable(::String), phone_numbers: T.nilable(T::Array[Models::Shared::PhoneNumber]), remote_application_ids: T.nilable(T::Array[::String]), remote_id: T.nilable(::String), social_links: T.nilable(T::Array[Models::Shared::SocialLink]), title: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::DateTime)).void }
|
|
60
|
-
def initialize(application_ids: nil, company: nil, country: nil, created_at: nil, custom_fields: nil, email: nil, emails: nil, first_name: nil, hired_at: nil, id: nil, last_name: nil, name: nil, phone: nil, phone_numbers: nil, remote_application_ids: nil, remote_id: nil, social_links: nil, title: nil, unified_custom_fields: nil, updated_at: nil)
|
|
61
|
+
sig { params(application_ids: T.nilable(T::Array[::String]), company: T.nilable(::String), country: T.nilable(::String), created_at: T.nilable(::DateTime), custom_fields: T.nilable(T::Array[Models::Shared::CustomFields]), email: T.nilable(::String), emails: T.nilable(T::Array[Models::Shared::CandidateEmail]), first_name: T.nilable(::String), hired_at: T.nilable(::DateTime), id: T.nilable(::String), last_name: T.nilable(::String), name: T.nilable(::String), phone: T.nilable(::String), phone_numbers: T.nilable(T::Array[Models::Shared::PhoneNumber]), remote_application_ids: T.nilable(T::Array[::String]), remote_id: T.nilable(::String), social_links: T.nilable(T::Array[Models::Shared::SocialLink]), tags: T.nilable(T::Array[Models::Shared::Tag]), title: T.nilable(::String), unified_custom_fields: T.nilable(T::Hash[Symbol, ::Object]), updated_at: T.nilable(::DateTime)).void }
|
|
62
|
+
def initialize(application_ids: nil, company: nil, country: nil, created_at: nil, custom_fields: nil, email: nil, emails: nil, first_name: nil, hired_at: nil, id: nil, last_name: nil, name: nil, phone: nil, phone_numbers: nil, remote_application_ids: nil, remote_id: nil, social_links: nil, tags: nil, title: nil, unified_custom_fields: nil, updated_at: nil)
|
|
61
63
|
@application_ids = application_ids
|
|
62
64
|
@company = company
|
|
63
65
|
@country = country
|
|
@@ -75,6 +77,7 @@ module StackOne
|
|
|
75
77
|
@remote_application_ids = remote_application_ids
|
|
76
78
|
@remote_id = remote_id
|
|
77
79
|
@social_links = social_links
|
|
80
|
+
@tags = tags
|
|
78
81
|
@title = title
|
|
79
82
|
@unified_custom_fields = unified_custom_fields
|
|
80
83
|
@updated_at = updated_at
|
|
@@ -100,6 +103,7 @@ module StackOne
|
|
|
100
103
|
return false unless @remote_application_ids == other.remote_application_ids
|
|
101
104
|
return false unless @remote_id == other.remote_id
|
|
102
105
|
return false unless @social_links == other.social_links
|
|
106
|
+
return false unless @tags == other.tags
|
|
103
107
|
return false unless @title == other.title
|
|
104
108
|
return false unless @unified_custom_fields == other.unified_custom_fields
|
|
105
109
|
return false unless @updated_at == other.updated_at
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module StackOne
|
|
8
|
+
module Models
|
|
9
|
+
module Shared
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ClearingCode
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
# The type of clearing code
|
|
17
|
+
field :type, Crystalline::Nilable.new(Models::Shared::ClearingCodeType), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('type') } }
|
|
18
|
+
# The clearing code value
|
|
19
|
+
field :value, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value') } }
|
|
20
|
+
|
|
21
|
+
sig { params(type: T.nilable(Models::Shared::ClearingCodeType), value: T.nilable(::String)).void }
|
|
22
|
+
def initialize(type: nil, value: nil)
|
|
23
|
+
@type = type
|
|
24
|
+
@value = value
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
28
|
+
def ==(other)
|
|
29
|
+
return false unless other.is_a? self.class
|
|
30
|
+
return false unless @type == other.type
|
|
31
|
+
return false unless @value == other.value
|
|
32
|
+
true
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class StackOne::Models::Shared::ClearingCode
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class StackOne::Models::Shared::ClearingCode
|
|
11
|
+
def type(); end
|
|
12
|
+
def type=(str_); end
|
|
13
|
+
def value(); end
|
|
14
|
+
def value=(str_); end
|
|
15
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module StackOne
|
|
8
|
+
module Models
|
|
9
|
+
module Shared
|
|
10
|
+
|
|
11
|
+
# The type of clearing code
|
|
12
|
+
class ClearingCodeType
|
|
13
|
+
extend T::Sig
|
|
14
|
+
include Crystalline::MetadataFields
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
field :source_value, Crystalline::Nilable.new(Crystalline::Union.new(::String, ::Float, Crystalline::Boolean.new, Models::Shared::ClearingCode4, Crystalline::Array.new(::Object))), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('source_value') } }
|
|
18
|
+
# The type of clearing code
|
|
19
|
+
field :value, Crystalline::Nilable.new(Models::Shared::ClearingCodeValue), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('value'), 'decoder': Utils.enum_from_string(Models::Shared::ClearingCodeValue, true) } }
|
|
20
|
+
|
|
21
|
+
sig { params(source_value: T.nilable(T.any(::String, ::Float, T::Boolean, Models::Shared::ClearingCode4, T::Array[::Object])), value: T.nilable(Models::Shared::ClearingCodeValue)).void }
|
|
22
|
+
def initialize(source_value: nil, value: nil)
|
|
23
|
+
@source_value = source_value
|
|
24
|
+
@value = value
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
28
|
+
def ==(other)
|
|
29
|
+
return false unless other.is_a? self.class
|
|
30
|
+
return false unless @source_value == other.source_value
|
|
31
|
+
return false unless @value == other.value
|
|
32
|
+
true
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class StackOne::Models::Shared::ClearingCodeType
|
|
6
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class StackOne::Models::Shared::ClearingCodeType
|
|
11
|
+
def source_value(); end
|
|
12
|
+
def source_value=(str_); end
|
|
13
|
+
def value(); end
|
|
14
|
+
def value=(str_); end
|
|
15
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module StackOne
|
|
8
|
+
module Models
|
|
9
|
+
module Shared
|
|
10
|
+
|
|
11
|
+
# ClearingCodeValue - The type of clearing code
|
|
12
|
+
class ClearingCodeValue < T::Enum
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
enums do
|
|
16
|
+
SORT_CODE = new('sort_code')
|
|
17
|
+
BUILDING_SOCIETY_REFERENCE = new('building_society_reference')
|
|
18
|
+
ABA_ROUTING = new('aba_routing')
|
|
19
|
+
CHIPS_PARTICIPANT_ID = new('chips_participant_id')
|
|
20
|
+
TRANSIT_NUMBER = new('transit_number')
|
|
21
|
+
INSTITUTION_NUMBER = new('institution_number')
|
|
22
|
+
BSB_CODE = new('bsb_code')
|
|
23
|
+
IFSC_CODE = new('ifsc_code')
|
|
24
|
+
MICR_CODE = new('micr_code')
|
|
25
|
+
CLABE = new('clabe')
|
|
26
|
+
CNAPS_CODE = new('cnaps_code')
|
|
27
|
+
CH_BANK_CLEARING_CODE = new('ch_bank_clearing_code')
|
|
28
|
+
CH_SIC_CODE = new('ch_sic_code')
|
|
29
|
+
ZENGIN_CODE = new('zengin_code')
|
|
30
|
+
NZ_CLEARING_CODE = new('nz_clearing_code')
|
|
31
|
+
HK_BANK_CODE = new('hk_bank_code')
|
|
32
|
+
BLZ = new('blz')
|
|
33
|
+
AT_BANKLEITZAHL = new('at_bankleitzahl')
|
|
34
|
+
NUBAN = new('nuban')
|
|
35
|
+
SE_BANKGIRO_CODE = new('se_bankgiro_code')
|
|
36
|
+
UNMAPPED_VALUE = new('unmapped_value')
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|