From 8d3e0fe606611be8a41f72f81a1ee9c185098881 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 10 Nov 2025 09:12:18 +0000 Subject: [PATCH 1/2] ## Ruby SDK Changes Detected: * `stack_one.actions.rpc_action()`: * `request.query` **Changed** **Breaking** :warning: * `response.data` **Changed** * `stack_one.hris.get_employee()`: `response.data.bank_details.[].is_primary` **Changed** **Breaking** :warning: * `stack_one.hris.list_employees()`: `response.data.[].bank_details.[].is_primary` **Changed** **Breaking** :warning: * `stack_one.actions.list_actions_meta()`: * `request.include` **Changed** * `stack_one.mcp.mcp_delete()`: `request` **Changed** * `stack_one.mcp.mcp_get()`: `request` **Changed** * `stack_one.mcp.mcp_post()`: `request` **Changed** * `stack_one.proxy.proxy_request()`: `response` **Changed** --- .speakeasy/gen.lock | 52 ++++++++++++------- .speakeasy/workflow.lock | 14 ++--- RELEASES.md | 12 ++++- codeSamples.yaml | 20 +++---- .../atsgetapplicationofferrequest.md | 16 +++--- docs/models/operations/atsgetofferrequest.md | 14 ++--- .../atslistapplicationsoffersrequest.md | 2 +- .../models/operations/atslistoffersrequest.md | 2 +- docs/models/operations/include.md | 6 +-- .../stackonelistactionsmetarequest.md | 2 +- .../operations/stackonemcpdeleterequest.md | 9 ++-- .../operations/stackonemcpgetrequest.md | 9 ++-- .../operations/stackonemcppostrequest.md | 11 ++-- .../stackoneproxyrequestresponse.md | 13 ++--- docs/models/shared/actionsrpcrequestdto.md | 14 ++--- docs/models/shared/actionsrpcresponse.md | 8 +-- docs/models/shared/actionsrpcresponse2.md | 7 --- .../shared/applicationattachmentvalue.md | 3 ++ docs/models/shared/attachmentvalue.md | 3 ++ docs/models/shared/hrisbankdetails.md | 2 +- docs/models/shared/hrisbankdetails2.md | 9 ++++ docs/models/shared/isprimary.md | 4 ++ docs/models/shared/one.md | 7 --- docs/models/shared/proxyresponseapimodel.md | 11 ++++ .../shared/proxyresponseapimodeldata.md | 4 ++ docs/models/shared/query.md | 11 ++++ docs/sdks/actions/README.md | 9 ++-- docs/sdks/ats/README.md | 8 +-- docs/sdks/mcp/README.md | 35 +++++++------ docs/sdks/proxy/README.md | 2 +- gen.yaml | 3 +- lib/stack_one/mcp.rb | 27 ++++++---- lib/stack_one/models/operations/include.rb | 2 +- .../operations/stackone_mcp_delete_request.rb | 12 +++-- .../stackone_mcp_delete_request.rbi | 2 + .../operations/stackone_mcp_get_request.rb | 12 +++-- .../operations/stackone_mcp_get_request.rbi | 2 + .../operations/stackone_mcp_post_request.rb | 16 +++--- .../operations/stackone_mcp_post_request.rbi | 6 ++- .../stackone_proxy_request_response.rb | 8 ++- .../stackone_proxy_request_response.rbi | 2 + lib/stack_one/models/shared.rb | 7 ++- .../models/shared/actionsrpcrequestdto.rb | 4 +- .../models/shared/actionsrpcresponse.rb | 4 +- .../shared/applicationattachment_value.rb | 3 ++ .../models/shared/attachment_value.rb | 3 ++ .../models/shared/hrisbankdetails.rb | 4 +- .../models/shared/hrisbankdetails_2.rb | 22 ++++++++ ...pcresponse_2.rbi => hrisbankdetails_2.rbi} | 4 +- .../models/shared/{one.rb => is_primary.rb} | 4 +- .../models/shared/{one.rbi => is_primary.rbi} | 4 +- .../models/shared/proxyresponseapimodel.rb | 45 ++++++++++++++++ .../models/shared/proxyresponseapimodel.rbi | 19 +++++++ ...nse_2.rb => proxyresponseapimodel_data.rb} | 4 +- .../shared/proxyresponseapimodel_data.rbi | 11 ++++ lib/stack_one/models/shared/query.rb | 37 +++++++++++++ lib/stack_one/models/shared/query.rbi | 15 ++++++ lib/stack_one/proxy.rb | 33 +++++++----- lib/stack_one/sdkconfiguration.rb | 6 +-- stackone_client.gemspec | 2 +- 60 files changed, 451 insertions(+), 191 deletions(-) delete mode 100644 docs/models/shared/actionsrpcresponse2.md create mode 100644 docs/models/shared/hrisbankdetails2.md create mode 100644 docs/models/shared/isprimary.md delete mode 100644 docs/models/shared/one.md create mode 100644 docs/models/shared/proxyresponseapimodel.md create mode 100644 docs/models/shared/proxyresponseapimodeldata.md create mode 100644 docs/models/shared/query.md create mode 100644 lib/stack_one/models/shared/hrisbankdetails_2.rb rename lib/stack_one/models/shared/{actionsrpcresponse_2.rbi => hrisbankdetails_2.rbi} (50%) rename lib/stack_one/models/shared/{one.rb => is_primary.rb} (86%) rename lib/stack_one/models/shared/{one.rbi => is_primary.rbi} (56%) create mode 100644 lib/stack_one/models/shared/proxyresponseapimodel.rb create mode 100644 lib/stack_one/models/shared/proxyresponseapimodel.rbi rename lib/stack_one/models/shared/{actionsrpcresponse_2.rb => proxyresponseapimodel_data.rb} (78%) create mode 100644 lib/stack_one/models/shared/proxyresponseapimodel_data.rbi create mode 100644 lib/stack_one/models/shared/query.rb create mode 100644 lib/stack_one/models/shared/query.rbi diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 8e48672c4..11e6f9ae0 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,25 +1,26 @@ lockVersion: 2.0.0 id: 482384cc-3b98-4ced-bd0b-14aa8b3e0053 management: - docChecksum: 703bb5d315bf9406483f810480d1fe0f + docChecksum: 272ef01e59f8a902c5169c69c4e541ae docVersion: 1.0.0 - speakeasyVersion: 1.639.2 - generationVersion: 2.730.5 - releaseVersion: 0.38.1 - configChecksum: f3dd68130d071a70cacce3aebe1df535 + speakeasyVersion: 1.651.0 + generationVersion: 2.745.2 + releaseVersion: 0.39.0 + configChecksum: aab2cc2dbef9bb49c4c39fd5be033176 repoURL: https://github.com/StackOneHQ/stackone-client-ruby.git repoSubDirectory: . installationURL: https://github.com/StackOneHQ/stackone-client-ruby published: true features: ruby: + additionalProperties: 0.1.0 constsAndDefaults: 0.1.1 - core: 3.11.0 + core: 3.11.2 deprecations: 2.81.2 examples: 2.81.6 flattening: 2.81.1 globalSecurity: 2.81.9 - globalServerURLs: 2.82.4 + globalServerURLs: 2.83.0 groups: 2.81.3 methodSecurity: 2.82.2 nameOverrides: 2.81.2 @@ -827,7 +828,6 @@ generatedFiles: - docs/models/shared/actionsmetapaginated.md - docs/models/shared/actionsrpcrequestdto.md - docs/models/shared/actionsrpcresponse.md - - docs/models/shared/actionsrpcresponse2.md - docs/models/shared/actionsrpcresponsedata.md - docs/models/shared/active.md - docs/models/shared/actor.md @@ -1401,6 +1401,7 @@ generatedFiles: - docs/models/shared/hierarchy.md - docs/models/shared/homelocation.md - docs/models/shared/hrisbankdetails.md + - docs/models/shared/hrisbankdetails2.md - docs/models/shared/hrisbankdetails4.md - docs/models/shared/hrisbankdetailscurrencycode.md - docs/models/shared/hrisbankdetailsschemas4.md @@ -1874,6 +1875,7 @@ generatedFiles: - docs/models/shared/inviteemployeeresult.md - docs/models/shared/isbotuser.md - docs/models/shared/ispaid.md + - docs/models/shared/isprimary.md - docs/models/shared/isroot.md - docs/models/shared/issuedby.md - docs/models/shared/isunlimited.md @@ -2073,7 +2075,6 @@ generatedFiles: - docs/models/shared/offersresult.md - docs/models/shared/offerstatus.md - docs/models/shared/offervalue.md - - docs/models/shared/one.md - docs/models/shared/organization.md - docs/models/shared/overallrecommendation.md - docs/models/shared/package.md @@ -2106,6 +2107,8 @@ generatedFiles: - docs/models/shared/providererrorapimodelheaders.md - docs/models/shared/providererrorapimodelraw.md - docs/models/shared/proxyrequestbody.md + - docs/models/shared/proxyresponseapimodel.md + - docs/models/shared/proxyresponseapimodeldata.md - docs/models/shared/pushmessagecontentsschemas.md - docs/models/shared/pushmessages.md - docs/models/shared/pushmessages4.md @@ -2116,6 +2119,7 @@ generatedFiles: - docs/models/shared/pushtemplate.md - docs/models/shared/pushtemplateresult.md - docs/models/shared/pushtemplatespaginated.md + - docs/models/shared/query.md - docs/models/shared/question.md - docs/models/shared/question2.md - docs/models/shared/question4.md @@ -4083,8 +4087,6 @@ generatedFiles: - lib/stack_one/models/shared/actionsrpcrequestdto.rbi - lib/stack_one/models/shared/actionsrpcresponse.rb - lib/stack_one/models/shared/actionsrpcresponse.rbi - - lib/stack_one/models/shared/actionsrpcresponse_2.rb - - lib/stack_one/models/shared/actionsrpcresponse_2.rbi - lib/stack_one/models/shared/actionsrpcresponse_data.rb - lib/stack_one/models/shared/actionsrpcresponse_data.rbi - lib/stack_one/models/shared/active.rb @@ -5231,6 +5233,8 @@ generatedFiles: - lib/stack_one/models/shared/home_location.rbi - lib/stack_one/models/shared/hrisbankdetails.rb - lib/stack_one/models/shared/hrisbankdetails.rbi + - lib/stack_one/models/shared/hrisbankdetails_2.rb + - lib/stack_one/models/shared/hrisbankdetails_2.rbi - lib/stack_one/models/shared/hrisbankdetails_4.rb - lib/stack_one/models/shared/hrisbankdetails_4.rbi - lib/stack_one/models/shared/hrisbankdetails_currency_code.rb @@ -6177,6 +6181,8 @@ generatedFiles: - lib/stack_one/models/shared/is_bot_user.rbi - lib/stack_one/models/shared/is_paid.rb - lib/stack_one/models/shared/is_paid.rbi + - lib/stack_one/models/shared/is_primary.rb + - lib/stack_one/models/shared/is_primary.rbi - lib/stack_one/models/shared/is_root.rb - lib/stack_one/models/shared/is_root.rbi - lib/stack_one/models/shared/is_unlimited.rb @@ -6575,8 +6581,6 @@ generatedFiles: - lib/stack_one/models/shared/offerspaginated.rbi - lib/stack_one/models/shared/offersresult.rb - lib/stack_one/models/shared/offersresult.rbi - - lib/stack_one/models/shared/one.rb - - lib/stack_one/models/shared/one.rbi - lib/stack_one/models/shared/organization.rb - lib/stack_one/models/shared/organization.rbi - lib/stack_one/models/shared/overall_recommendation.rb @@ -6641,6 +6645,10 @@ generatedFiles: - lib/stack_one/models/shared/providererrorapimodel_raw.rbi - lib/stack_one/models/shared/proxyrequestbody.rb - lib/stack_one/models/shared/proxyrequestbody.rbi + - lib/stack_one/models/shared/proxyresponseapimodel.rb + - lib/stack_one/models/shared/proxyresponseapimodel.rbi + - lib/stack_one/models/shared/proxyresponseapimodel_data.rb + - lib/stack_one/models/shared/proxyresponseapimodel_data.rbi - lib/stack_one/models/shared/pushmessagecontents_schemas.rb - lib/stack_one/models/shared/pushmessagecontents_schemas.rbi - lib/stack_one/models/shared/pushmessages.rb @@ -6661,6 +6669,8 @@ generatedFiles: - lib/stack_one/models/shared/pushtemplateresult.rbi - lib/stack_one/models/shared/pushtemplatespaginated.rb - lib/stack_one/models/shared/pushtemplatespaginated.rbi + - lib/stack_one/models/shared/query.rb + - lib/stack_one/models/shared/query.rbi - lib/stack_one/models/shared/question.rb - lib/stack_one/models/shared/question.rbi - lib/stack_one/models/shared/question_2.rb @@ -8675,7 +8685,7 @@ examples: id: "" subResourceId: "" query: - fields: "id,remote_id,application_id,remote_application_id,start_date,status,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields" + fields: "id,remote_id,application_id,remote_application_id,start_date,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields" header: x-account-id: "" responses: @@ -9295,7 +9305,7 @@ examples: path: id: "" query: - fields: "id,remote_id,application_id,remote_application_id,start_date,status,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields" + fields: "id,remote_id,application_id,remote_application_id,start_date,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields" header: x-account-id: "" responses: @@ -9658,7 +9668,7 @@ examples: path: id: "" query: - fields: "id,remote_id,application_id,remote_application_id,start_date,status,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields" + fields: "id,remote_id,application_id,remote_application_id,start_date,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields" filter: {"updated_after": "2020-01-01T00:00:00.000Z"} header: x-account-id: "" @@ -10227,7 +10237,7 @@ examples: speakeasy-default-ats-list-offers: parameters: query: - fields: "id,remote_id,application_id,remote_application_id,start_date,status,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields" + fields: "id,remote_id,application_id,remote_application_id,start_date,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields" filter: {"updated_after": "2020-01-01T00:00:00.000Z"} header: x-account-id: "" @@ -16602,6 +16612,8 @@ examples: application/json: {"message": "Not Implemented", "statusCode": 501, "timestamp": "2023-05-30T00:00:00.000Z"} "502": application/json: {"message": "Bad Gateway", "statusCode": 502, "timestamp": "2023-05-30T00:00:00.000Z"} + "200": + application/json: {"data": {"id": "123", "name": "John Doe", "email": "john.doe@example.com"}, "headers": {"content-type": "application/json", "x-request-id": "123e4567-e89b-12d3-a456-426614174000"}, "provider_errors": [{"headers": {}, "raw": {}, "status": 400, "url": "https://api.someprovider.com/v1/endpoint"}], "status": 200} screening_create_screening_order: speakeasy-default-screening-create-screening-order: parameters: @@ -17434,7 +17446,7 @@ examples: query: group_by: "[\"connector\"]" filter: {"account_ids": "account1,account2", "action_key": "action1", "connectors": "connector1,connector2"} - include: ["operation_details"] + include: ["action_details"] responses: "200": application/json: {} @@ -17463,7 +17475,7 @@ examples: stackone_rpc_action: speakeasy-default-stackone-rpc-action: requestBody: - application/json: {"action": "create_employee", "body": {"data": "example"}, "headers": {"Content-Type": "application/json"}, "path": {"id": "123"}, "query": {"param1": "value1", "param2": "value2"}} + application/json: {"action": "create_employee", "body": {"data": "example"}, "headers": {"Content-Type": "application/json"}, "path": {"id": "123"}, "query": {"debug": false}} responses: "200": application/json: {} @@ -17779,4 +17791,4 @@ examples: application/json: {"message": "Bad Gateway", "statusCode": 502, "timestamp": "2023-05-30T00:00:00.000Z"} examplesVersion: 1.0.2 generatedTests: {} -releaseNotes: "## Ruby SDK Changes Detected:\n* `stack_one.hris.create_employee()`: \n * `request.hris_create_employee_request_dto.employment_status.source_value` **Changed** **Breaking** :warning:\n* `stack_one.lms.create_user_assignment()`: \n * `request.lms_create_assignment_request_dto.learning_object_external_reference` **Changed** **Breaking** :warning:\n* `stack_one.accounts.list_linked_accounts()`: `response.[].setup_information` **Changed** **Breaking** :warning:\n* `stack_one.accounts.update_account()`: `response.setup_information` **Changed** **Breaking** :warning:\n* `stack_one.lms.upsert_content()`: \n * `request.lms_upsert_content_request_dto.external_reference` **Changed** **Breaking** :warning:\n* `stack_one.lms.update_content()`: \n * `request.lms_create_content_request_dto.external_reference` **Changed** **Breaking** :warning:\n* `stack_one.accounts.get_account()`: `response.setup_information` **Changed** **Breaking** :warning:\n* `stack_one.lms.batch_upsert_content()`: \n * `request.lms_batch_upsert_content_request_dto.items.[].external_reference` **Changed** **Breaking** :warning:\n* `stack_one.accounts.delete_account()`: `response.setup_information` **Changed** **Breaking** :warning:\n* `stack_one.hris.update_employee()`: \n * `request.hris_update_employee_request_dto.employment_status.source_value` **Changed** **Breaking** :warning:\n* `stack_one.lms.create_user_completion()`: \n * `request.lms_create_completion_request_dto.learning_object_external_reference` **Changed** **Breaking** :warning:\n* `stack_one.ats.get_candidate()`: `response.data.tags` **Added**\n* `stack_one.hris.get_employee()`: `response.data` **Changed**\n* `stack_one.ats.list_candidates()`: `response.data.[].tags` **Added**\n* `stack_one.hris.list_employees()`: `response.data.[]` **Changed**\n" +releaseNotes: "## Ruby SDK Changes Detected:\n* `stack_one.actions.rpc_action()`: \n * `request.query` **Changed** **Breaking** :warning:\n * `response.data` **Changed**\n* `stack_one.hris.get_employee()`: `response.data.bank_details.[].is_primary` **Changed** **Breaking** :warning:\n* `stack_one.hris.list_employees()`: `response.data.[].bank_details.[].is_primary` **Changed** **Breaking** :warning:\n* `stack_one.actions.list_actions_meta()`: \n * `request.include` **Changed**\n* `stack_one.mcp.mcp_delete()`: `request` **Changed**\n* `stack_one.mcp.mcp_get()`: `request` **Changed**\n* `stack_one.mcp.mcp_post()`: `request` **Changed**\n* `stack_one.proxy.proxy_request()`: `response` **Changed**\n" diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index a2e7f6912..7e43bc575 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.639.2 +speakeasyVersion: 1.651.0 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:554f9dd66a9e286f8d65d3ae126e9f548a5c31bec0abfc6abc7def2e01e0ca9c - sourceBlobDigest: sha256:877ca7a93314891e0c65d7a48d1b7ce75e9b3888d7f7cb66ce2a49ff026295d6 + sourceRevisionDigest: sha256:b2992edee9719fc67b0e1370ea5807bc42a39e786047dcc1490678fdd70888c4 + sourceBlobDigest: sha256:1b6a479dafdc0ac095d85da110db5014f74d5cccf2c1703870e61f4bdd71c81c tags: - latest - - speakeasy-sdk-regen-1761310131 + - speakeasy-sdk-regen-1762765294 - 1.0.0 targets: StackOneRubyClient: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:554f9dd66a9e286f8d65d3ae126e9f548a5c31bec0abfc6abc7def2e01e0ca9c - sourceBlobDigest: sha256:877ca7a93314891e0c65d7a48d1b7ce75e9b3888d7f7cb66ce2a49ff026295d6 + sourceRevisionDigest: sha256:b2992edee9719fc67b0e1370ea5807bc42a39e786047dcc1490678fdd70888c4 + sourceBlobDigest: sha256:1b6a479dafdc0ac095d85da110db5014f74d5cccf2c1703870e61f4bdd71c81c codeSamplesNamespace: code-samples-ruby-stackonerubyclient - codeSamplesRevisionDigest: sha256:64bbc7123982d42a6108d1861d958dc85b6ec37c7ff9d4db41e8a9a255f503a7 + codeSamplesRevisionDigest: sha256:07bf70ffff1e7dba556a77d8430b4d01149de9e4bbf064c93df33a3213abccb2 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index fb1c22f20..739b1b7c9 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1028,4 +1028,14 @@ Based on: ### Generated - [ruby v0.38.1] . ### Releases -- [Ruby Gems v0.38.1] https://rubygems.org/gems/stackone_client/versions/0.38.1 - . \ No newline at end of file +- [Ruby Gems v0.38.1] https://rubygems.org/gems/stackone_client/versions/0.38.1 - . + +## 2025-11-10 09:01:13 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.651.0 (2.745.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [ruby v0.39.0] . +### Releases +- [Ruby Gems v0.39.0] https://rubygems.org/gems/stackone_client/versions/0.39.0 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 28e27de1f..9f31fc6f4 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -38,13 +38,13 @@ actions: "x-codeSamples": - "lang": "ruby" "label": "stackone_list_actions_meta" - "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\nreq = Models::Operations::StackoneListActionsMetaRequest.new(\n group_by: '[\"connector\"]',\n filter: Models::Operations::StackoneListActionsMetaQueryParamFilter.new(\n connectors: 'connector1,connector2',\n account_ids: 'account1,account2',\n action_key: 'action1',\n ),\n include: [\n Models::Operations::StackoneListActionsMetaQueryParamInclude::OPERATION_DETAILS,\n ],\n)\n\nres = s.actions.list_actions_meta(request: req)\n\nunless res.actions_meta_paginated.nil?\n # handle response\nend" + "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\nreq = Models::Operations::StackoneListActionsMetaRequest.new(\n group_by: '[\"connector\"]',\n filter: Models::Operations::StackoneListActionsMetaQueryParamFilter.new(\n connectors: 'connector1,connector2',\n account_ids: 'account1,account2',\n action_key: 'action1',\n ),\n include: [\n Models::Operations::StackoneListActionsMetaQueryParamInclude::ACTION_DETAILS,\n ],\n)\n\nres = s.actions.list_actions_meta(request: req)\n\nunless res.actions_meta_paginated.nil?\n # handle response\nend" - target: $["paths"]["/actions/rpc"]["post"] update: "x-codeSamples": - "lang": "ruby" "label": "stackone_rpc_action" - "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\nreq = Models::Shared::ActionsRpcRequestDto.new(\n action: 'create_employee',\n path: {\n \"id\": '123',\n },\n query: {\n \"param1\": 'value1',\n \"param2\": 'value2',\n },\n headers: {\n \"Content-Type\": 'application/json',\n },\n body: {\n \"data\": 'example',\n },\n)\n\nres = s.actions.rpc_action(request: req)\n\nunless res.actions_rpc_response.nil?\n # handle response\nend" + "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\nreq = Models::Shared::ActionsRpcRequestDto.new(\n action: 'create_employee',\n path: {\n \"id\": '123',\n },\n query: Models::Shared::Query.new(\n debug: false,\n ),\n headers: {\n \"Content-Type\": 'application/json',\n },\n body: {\n \"data\": 'example',\n },\n)\n\nres = s.actions.rpc_action(request: req)\n\nunless res.actions_rpc_response.nil?\n # handle response\nend" - target: $["paths"]["/connect_sessions"]["post"] update: "x-codeSamples": @@ -74,19 +74,19 @@ actions: "x-codeSamples": - "lang": "ruby" "label": "stackone_mcp_delete" - "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new\n\nres = s.mcp.mcp_delete(security: Models::Operations::StackoneMcpDeleteSecurity.new(\n basic: Models::Shared::SchemeBasic.new(\n username: '',\n password: '',\n ),\n ), x_account_id: '', mcp_session_id: '')\n\nif res.status_code == 200\n # handle response\nend" + "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new\n\nres = s.mcp.mcp_delete(security: Models::Operations::StackoneMcpDeleteSecurity.new(\n basic: Models::Shared::SchemeBasic.new(\n username: '',\n password: '',\n ),\n ), mcp_session_id: '')\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/mcp"]["get"] update: "x-codeSamples": - "lang": "ruby" "label": "stackone_mcp_get" - "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new\n\nres = s.mcp.mcp_get(security: Models::Operations::StackoneMcpGetSecurity.new(\n basic: Models::Shared::SchemeBasic.new(\n username: '',\n password: '',\n ),\n ), x_account_id: '', mcp_session_id: '')\n\nif res.status_code == 200\n # handle response\nend" + "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new\n\nres = s.mcp.mcp_get(security: Models::Operations::StackoneMcpGetSecurity.new(\n basic: Models::Shared::SchemeBasic.new(\n username: '',\n password: '',\n ),\n ), mcp_session_id: '')\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/mcp"]["post"] update: "x-codeSamples": - "lang": "ruby" "label": "stackone_mcp_post" - "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new\n\nres = s.mcp.mcp_post(security: Models::Operations::StackoneMcpPostSecurity.new(\n basic: Models::Shared::SchemeBasic.new(\n username: '',\n password: '',\n ),\n ), x_account_id: '', json_rpc_message_dto: Models::Shared::JsonRpcMessageDto.new(\n jsonrpc: '2.0',\n method: 'initialize',\n params: Models::Shared::Params.new(),\n id: Models::Shared::Id.new(),\n))\n\nif res.status_code == 200\n # handle response\nend" + "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new\n\nres = s.mcp.mcp_post(security: Models::Operations::StackoneMcpPostSecurity.new(\n basic: Models::Shared::SchemeBasic.new(\n username: '',\n password: '',\n ),\n ), json_rpc_message_dto: Models::Shared::JsonRpcMessageDto.new(\n jsonrpc: '2.0',\n method: 'initialize',\n params: Models::Shared::Params.new(),\n id: Models::Shared::Id.new(),\n))\n\nif res.status_code == 200\n # handle response\nend" - target: $["paths"]["/requests/logs"]["get"] update: "x-codeSamples": @@ -272,13 +272,13 @@ actions: "x-codeSamples": - "lang": "ruby" "label": "ats_list_applications_offers" - "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\nreq = Models::Operations::AtsListApplicationsOffersRequest.new(\n id: '',\n fields_: 'id,remote_id,application_id,remote_application_id,start_date,status,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields',\n filter: Models::Operations::AtsListApplicationsOffersQueryParamFilter.new(\n updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z'),\n ),\n x_account_id: '',\n)\n\nres = s.ats.list_applications_offers(request: req)\n\nunless res.offers_paginated.nil?\n # handle response\nend" + "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\nreq = Models::Operations::AtsListApplicationsOffersRequest.new(\n id: '',\n fields_: 'id,remote_id,application_id,remote_application_id,start_date,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields',\n filter: Models::Operations::AtsListApplicationsOffersQueryParamFilter.new(\n updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z'),\n ),\n x_account_id: '',\n)\n\nres = s.ats.list_applications_offers(request: req)\n\nunless res.offers_paginated.nil?\n # handle response\nend" - target: $["paths"]["/unified/ats/applications/{id}/offers/{subResourceId}"]["get"] update: "x-codeSamples": - "lang": "ruby" "label": "ats_get_application_offer" - "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\nreq = Models::Operations::AtsGetApplicationOfferRequest.new(\n id: '',\n sub_resource_id: '',\n fields_: 'id,remote_id,application_id,remote_application_id,start_date,status,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields',\n x_account_id: '',\n)\n\nres = s.ats.get_application_offer(request: req)\n\nunless res.offers_result.nil?\n # handle response\nend" + "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\nreq = Models::Operations::AtsGetApplicationOfferRequest.new(\n id: '',\n sub_resource_id: '',\n fields_: 'id,remote_id,application_id,remote_application_id,start_date,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields',\n x_account_id: '',\n)\n\nres = s.ats.get_application_offer(request: req)\n\nunless res.offers_result.nil?\n # handle response\nend" - target: $["paths"]["/unified/ats/applications/{id}/reject"]["post"] update: "x-codeSamples": @@ -566,7 +566,7 @@ actions: "x-codeSamples": - "lang": "ruby" "label": "ats_list_offers" - "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\nreq = Models::Operations::AtsListOffersRequest.new(\n fields_: 'id,remote_id,application_id,remote_application_id,start_date,status,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields',\n filter: Models::Operations::AtsListOffersQueryParamFilter.new(\n updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z'),\n ),\n x_account_id: '',\n)\n\nres = s.ats.list_offers(request: req)\n\nunless res.offers_paginated.nil?\n # handle response\nend" + "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\nreq = Models::Operations::AtsListOffersRequest.new(\n fields_: 'id,remote_id,application_id,remote_application_id,start_date,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields',\n filter: Models::Operations::AtsListOffersQueryParamFilter.new(\n updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z'),\n ),\n x_account_id: '',\n)\n\nres = s.ats.list_offers(request: req)\n\nunless res.offers_paginated.nil?\n # handle response\nend" - target: $["paths"]["/unified/ats/offers"]["post"] update: "x-codeSamples": @@ -578,7 +578,7 @@ actions: "x-codeSamples": - "lang": "ruby" "label": "ats_get_offer" - "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\nreq = Models::Operations::AtsGetOfferRequest.new(\n id: '',\n fields_: 'id,remote_id,application_id,remote_application_id,start_date,status,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields',\n x_account_id: '',\n)\n\nres = s.ats.get_offer(request: req)\n\nunless res.offers_result.nil?\n # handle response\nend" + "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\nreq = Models::Operations::AtsGetOfferRequest.new(\n id: '',\n fields_: 'id,remote_id,application_id,remote_application_id,start_date,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields',\n x_account_id: '',\n)\n\nres = s.ats.get_offer(request: req)\n\nunless res.offers_result.nil?\n # handle response\nend" - target: $["paths"]["/unified/ats/rejected_reasons"]["get"] update: "x-codeSamples": @@ -1550,7 +1550,7 @@ actions: "x-codeSamples": - "lang": "ruby" "label": "stackone_proxy_request" - "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\nres = s.proxy.proxy_request(x_account_id: '', proxy_request_body: Models::Shared::ProxyRequestBody.new(\n url: 'https://api.sample-integration.com/v1',\n path: '/employees/directory',\n headers: {\n \"Content-Type\": 'application/json',\n },\n))\n\nif res.status_code == 200\n # handle response\nend" + "source": "require 'stackone_client'\n\nModels = ::StackOne::Models\ns = ::StackOne::StackOne.new(\n security: Models::Shared::Security.new(\n username: '',\n password: '',\n ),\n )\n\nres = s.proxy.proxy_request(x_account_id: '', proxy_request_body: Models::Shared::ProxyRequestBody.new(\n url: 'https://api.sample-integration.com/v1',\n path: '/employees/directory',\n headers: {\n \"Content-Type\": 'application/json',\n },\n))\n\nunless res.proxy_response_api_model.nil?\n # handle response\nend" - target: $["paths"]["/unified/screening/orders"]["post"] update: "x-codeSamples": diff --git a/docs/models/operations/atsgetapplicationofferrequest.md b/docs/models/operations/atsgetapplicationofferrequest.md index 0f6b52e55..37ea61e08 100644 --- a/docs/models/operations/atsgetapplicationofferrequest.md +++ b/docs/models/operations/atsgetapplicationofferrequest.md @@ -3,11 +3,11 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `fields_` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,application_id,remote_application_id,start_date,status,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields | -| `id` | *::String* | :heavy_check_mark: | N/A | | -| `proxy` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | -| `raw` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | -| `sub_resource_id` | *::String* | :heavy_check_mark: | N/A | | -| `x_account_id` | *::String* | :heavy_check_mark: | The account identifier | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | +| `fields_` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,application_id,remote_application_id,start_date,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields | +| `id` | *::String* | :heavy_check_mark: | N/A | | +| `proxy` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | +| `raw` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | +| `sub_resource_id` | *::String* | :heavy_check_mark: | N/A | | +| `x_account_id` | *::String* | :heavy_check_mark: | The account identifier | | \ No newline at end of file diff --git a/docs/models/operations/atsgetofferrequest.md b/docs/models/operations/atsgetofferrequest.md index 77259612d..8c7b5d72a 100644 --- a/docs/models/operations/atsgetofferrequest.md +++ b/docs/models/operations/atsgetofferrequest.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `fields_` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,application_id,remote_application_id,start_date,status,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields | -| `id` | *::String* | :heavy_check_mark: | N/A | | -| `proxy` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | -| `raw` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | -| `x_account_id` | *::String* | :heavy_check_mark: | The account identifier | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | +| `fields_` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,application_id,remote_application_id,start_date,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields | +| `id` | *::String* | :heavy_check_mark: | N/A | | +| `proxy` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Query parameters that can be used to pass through parameters to the underlying provider request by surrounding them with 'proxy' key | | +| `raw` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Indicates that the raw request result should be returned in addition to the mapped result (default value is false) | | +| `x_account_id` | *::String* | :heavy_check_mark: | The account identifier | | \ No newline at end of file diff --git a/docs/models/operations/atslistapplicationsoffersrequest.md b/docs/models/operations/atslistapplicationsoffersrequest.md index b880a60b8..6dba76872 100644 --- a/docs/models/operations/atslistapplicationsoffersrequest.md +++ b/docs/models/operations/atslistapplicationsoffersrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `fields_` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,application_id,remote_application_id,start_date,status,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields | +| `fields_` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,application_id,remote_application_id,start_date,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields | | `filter` | [T.nilable(Models::Operations::AtsListApplicationsOffersQueryParamFilter)](../../models/operations/atslistapplicationsoffersqueryparamfilter.md) | :heavy_minus_sign: | Filter parameters that allow greater customisation of the list response | | | `id` | *::String* | :heavy_check_mark: | N/A | | | `next_` | *T.nilable(::String)* | :heavy_minus_sign: | The unified cursor | | diff --git a/docs/models/operations/atslistoffersrequest.md b/docs/models/operations/atslistoffersrequest.md index cb567407c..85a561c93 100644 --- a/docs/models/operations/atslistoffersrequest.md +++ b/docs/models/operations/atslistoffersrequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `fields_` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,application_id,remote_application_id,start_date,status,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields | +| `fields_` | *T.nilable(::String)* | :heavy_minus_sign: | The comma separated list of fields that will be returned in the response (if empty, all fields are returned) | id,remote_id,application_id,remote_application_id,start_date,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields | | `filter` | [T.nilable(Models::Operations::AtsListOffersQueryParamFilter)](../../models/operations/atslistoffersqueryparamfilter.md) | :heavy_minus_sign: | Filter parameters that allow greater customisation of the list response | | | `next_` | *T.nilable(::String)* | :heavy_minus_sign: | The unified cursor | | | ~~`page`~~ | *T.nilable(::String)* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The page number of the results to fetch | | diff --git a/docs/models/operations/include.md b/docs/models/operations/include.md index 5acb048a1..7e3dceec7 100644 --- a/docs/models/operations/include.md +++ b/docs/models/operations/include.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ------------------- | ------------------- | -| `OPERATION_DETAILS` | operation_details | \ No newline at end of file +| Name | Value | +| ---------------- | ---------------- | +| `ACTION_DETAILS` | action_details | \ No newline at end of file diff --git a/docs/models/operations/stackonelistactionsmetarequest.md b/docs/models/operations/stackonelistactionsmetarequest.md index 1b95c336e..66681f743 100644 --- a/docs/models/operations/stackonelistactionsmetarequest.md +++ b/docs/models/operations/stackonelistactionsmetarequest.md @@ -7,7 +7,7 @@ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `filter` | [T.nilable(Models::Operations::Filter)](../../models/operations/filter.md) | :heavy_minus_sign: | Actions Metadata filters | | | `group_by` | *T.nilable(::String)* | :heavy_minus_sign: | The relation to group the results by | [
"connector"
] | -| `include` | T::Array<[Models::Operations::Include](../../models/operations/include.md)> | :heavy_minus_sign: | Additional data to include in the response | [
"operation_details"
] | +| `include` | T::Array<[Models::Operations::Include](../../models/operations/include.md)> | :heavy_minus_sign: | Additional data to include in the response | [
"action_details"
] | | `next_` | *T.nilable(::String)* | :heavy_minus_sign: | The unified cursor | | | ~~`page`~~ | *T.nilable(::String)* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

The page number of the results to fetch | | | `page_size` | *T.nilable(::String)* | :heavy_minus_sign: | The number of results per page (default value is 25) | | \ No newline at end of file diff --git a/docs/models/operations/stackonemcpdeleterequest.md b/docs/models/operations/stackonemcpdeleterequest.md index 9bf9a886b..674f3cf4d 100644 --- a/docs/models/operations/stackonemcpdeleterequest.md +++ b/docs/models/operations/stackonemcpdeleterequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `mcp_session_id` | *::String* | :heavy_check_mark: | Session id | -| `x_account_id` | *::String* | :heavy_check_mark: | Account secure id for the target provider account | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `mcp_session_id` | *::String* | :heavy_check_mark: | Session id | +| `x_account_id` | *T.nilable(::String)* | :heavy_minus_sign: | Account secure id for the target provider account (optional if x-account-id query parameter is provided) | +| `x_account_id_query_parameter` | *T.nilable(::Object)* | :heavy_minus_sign: | Account secure id (alternative to x-account-id header) | \ No newline at end of file diff --git a/docs/models/operations/stackonemcpgetrequest.md b/docs/models/operations/stackonemcpgetrequest.md index 954889030..d5dd4407f 100644 --- a/docs/models/operations/stackonemcpgetrequest.md +++ b/docs/models/operations/stackonemcpgetrequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `mcp_session_id` | *::String* | :heavy_check_mark: | Session id | -| `x_account_id` | *::String* | :heavy_check_mark: | Account secure id for the target provider account | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `mcp_session_id` | *::String* | :heavy_check_mark: | Session id | +| `x_account_id` | *T.nilable(::String)* | :heavy_minus_sign: | Account secure id for the target provider account (optional if x-account-id query parameter is provided) | +| `x_account_id_query_parameter` | *T.nilable(::Object)* | :heavy_minus_sign: | Account secure id (alternative to x-account-id header) | \ No newline at end of file diff --git a/docs/models/operations/stackonemcppostrequest.md b/docs/models/operations/stackonemcppostrequest.md index 06ab180ba..cc14cb9dc 100644 --- a/docs/models/operations/stackonemcppostrequest.md +++ b/docs/models/operations/stackonemcppostrequest.md @@ -3,8 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `json_rpc_message_dto` | [Models::Shared::JsonRpcMessageDto](../../models/shared/jsonrpcmessagedto.md) | :heavy_check_mark: | JSON-RPC 2.0 message | -| `mcp_session_id` | *T.nilable(::String)* | :heavy_minus_sign: | Session id; omit for initialize, include for subsequent calls | -| `x_account_id` | *::String* | :heavy_check_mark: | Account secure id for the target provider account | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `json_rpc_message_dto` | [Models::Shared::JsonRpcMessageDto](../../models/shared/jsonrpcmessagedto.md) | :heavy_check_mark: | JSON-RPC 2.0 message | +| `mcp_session_id` | *T.nilable(::String)* | :heavy_minus_sign: | Session id; omit for initialize, include for subsequent calls | +| `x_account_id` | *T.nilable(::String)* | :heavy_minus_sign: | Account secure id for the target provider account (optional if x-account-id query parameter is provided) | +| `x_account_id_query_parameter` | *T.nilable(::Object)* | :heavy_minus_sign: | Account secure id (alternative to x-account-id header) | \ No newline at end of file diff --git a/docs/models/operations/stackoneproxyrequestresponse.md b/docs/models/operations/stackoneproxyrequestresponse.md index 6ff088aff..6cdcddd1f 100644 --- a/docs/models/operations/stackoneproxyrequestresponse.md +++ b/docs/models/operations/stackoneproxyrequestresponse.md @@ -3,9 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `content_type` | *::String* | :heavy_check_mark: | HTTP response content type for this operation | -| `headers` | T::Hash[Symbol, T::Array<*::String*>] | :heavy_check_mark: | N/A | -| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation | -| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `content_type` | *::String* | :heavy_check_mark: | HTTP response content type for this operation | +| `headers` | T::Hash[Symbol, T::Array<*::String*>] | :heavy_check_mark: | N/A | +| `proxy_response_api_model` | [T.nilable(Models::Shared::ProxyResponseApiModel)](../../models/shared/proxyresponseapimodel.md) | :heavy_minus_sign: | The proxy request was successful. | +| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/shared/actionsrpcrequestdto.md b/docs/models/shared/actionsrpcrequestdto.md index 0dda8eb4b..93da110c8 100644 --- a/docs/models/shared/actionsrpcrequestdto.md +++ b/docs/models/shared/actionsrpcrequestdto.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `action` | *::String* | :heavy_check_mark: | The action to execute | create_employee | -| `body` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Request body for the action | {
"data": "example"
} | -| `headers` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Headers for the action | {
"Content-Type": "application/json"
} | -| `path` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Path parameters for the action | {
"id": "123"
} | -| `query` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Query parameters for the action | {
"param1": "value1",
"param2": "value2"
} | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `action` | *::String* | :heavy_check_mark: | The action to execute | create_employee | +| `body` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Request body for the action | {
"data": "example"
} | +| `headers` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Headers for the action | {
"Content-Type": "application/json"
} | +| `path` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | Path parameters for the action | {
"id": "123"
} | +| `query` | [T.nilable(Models::Shared::Query)](../../models/shared/query.md) | :heavy_minus_sign: | Query parameters for the action | | \ No newline at end of file diff --git a/docs/models/shared/actionsrpcresponse.md b/docs/models/shared/actionsrpcresponse.md index bbbff2169..82a81a72e 100644 --- a/docs/models/shared/actionsrpcresponse.md +++ b/docs/models/shared/actionsrpcresponse.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| `data` | [T.nilable(T.any(Models::Shared::One, T::Array[Models::Shared::ActionsRpcResponse2]))](../../models/shared/actionsrpcresponsedata.md) | :heavy_minus_sign: | The response data from the action RPC call | -| `next_` | *T.nilable(::String)* | :heavy_minus_sign: | Cursor for fetching the next page of results | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | +| `data` | [T.nilable(T.any(T::Hash[Symbol, ::Object], T::Array[T::Hash[Symbol, ::Object]]))](../../models/shared/actionsrpcresponsedata.md) | :heavy_minus_sign: | The response data from the action RPC call | +| `next_` | *T.nilable(::String)* | :heavy_minus_sign: | Cursor for fetching the next page of results | \ No newline at end of file diff --git a/docs/models/shared/actionsrpcresponse2.md b/docs/models/shared/actionsrpcresponse2.md deleted file mode 100644 index 4eb5add09..000000000 --- a/docs/models/shared/actionsrpcresponse2.md +++ /dev/null @@ -1,7 +0,0 @@ -# ActionsRpcResponse2 - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/applicationattachmentvalue.md b/docs/models/shared/applicationattachmentvalue.md index 69bdb1ff3..53c9b129f 100644 --- a/docs/models/shared/applicationattachmentvalue.md +++ b/docs/models/shared/applicationattachmentvalue.md @@ -8,4 +8,7 @@ The content type of the attachment. | Name | Value | | ---------------- | ---------------- | | `TEXT` | text | +| `PDF` | pdf | +| `VIDEO` | video | +| `OTHER` | other | | `UNMAPPED_VALUE` | unmapped_value | \ No newline at end of file diff --git a/docs/models/shared/attachmentvalue.md b/docs/models/shared/attachmentvalue.md index fdb731856..4a8d972ac 100644 --- a/docs/models/shared/attachmentvalue.md +++ b/docs/models/shared/attachmentvalue.md @@ -8,4 +8,7 @@ The content type of the attachment. | Name | Value | | ---------------- | ---------------- | | `TEXT` | text | +| `PDF` | pdf | +| `VIDEO` | video | +| `OTHER` | other | | `UNMAPPED_VALUE` | unmapped_value | \ No newline at end of file diff --git a/docs/models/shared/hrisbankdetails.md b/docs/models/shared/hrisbankdetails.md index d79082792..14bb7ccbf 100644 --- a/docs/models/shared/hrisbankdetails.md +++ b/docs/models/shared/hrisbankdetails.md @@ -13,7 +13,7 @@ | `currency_code` | [T.nilable(Models::Shared::HRISBankDetailsCurrencyCode)](../../models/shared/hrisbankdetailscurrencycode.md) | :heavy_minus_sign: | The currency code for the account | | | `iban` | *T.nilable(::String)* | :heavy_minus_sign: | International Bank Account Number (IBAN) | GB82WEST12345698765432 | | `id` | *T.nilable(::String)* | :heavy_minus_sign: | Unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | -| `is_primary` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether this is the primary bank account | true | +| `is_primary` | [T.nilable(T.any(T::Boolean, Models::Shared::HRISBankDetails2))](../../models/shared/isprimary.md) | :heavy_minus_sign: | Whether this is the primary bank account | true | | `local_account_number` | *T.nilable(::String)* | :heavy_minus_sign: | Local account number (used when IBAN is not available) | 1234567890 | | `remote_id` | *T.nilable(::String)* | :heavy_minus_sign: | Provider's unique identifier | 8187e5da-dc77-475e-9949-af0f1fa4e4e3 | | `swift_bic` | *T.nilable(::String)* | :heavy_minus_sign: | SWIFT/BIC code for international transfers | CHASUS33 | \ No newline at end of file diff --git a/docs/models/shared/hrisbankdetails2.md b/docs/models/shared/hrisbankdetails2.md new file mode 100644 index 000000000..c951d8539 --- /dev/null +++ b/docs/models/shared/hrisbankdetails2.md @@ -0,0 +1,9 @@ +# HRISBankDetails2 + + +## Values + +| Name | Value | +| ------- | ------- | +| `TRUE` | true | +| `FALSE` | false | \ No newline at end of file diff --git a/docs/models/shared/isprimary.md b/docs/models/shared/isprimary.md new file mode 100644 index 000000000..ec6717ea9 --- /dev/null +++ b/docs/models/shared/isprimary.md @@ -0,0 +1,4 @@ +# IsPrimary + +Whether this is the primary bank account + diff --git a/docs/models/shared/one.md b/docs/models/shared/one.md deleted file mode 100644 index 223341fda..000000000 --- a/docs/models/shared/one.md +++ /dev/null @@ -1,7 +0,0 @@ -# One - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/proxyresponseapimodel.md b/docs/models/shared/proxyresponseapimodel.md new file mode 100644 index 000000000..14cb40f69 --- /dev/null +++ b/docs/models/shared/proxyresponseapimodel.md @@ -0,0 +1,11 @@ +# ProxyResponseApiModel + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `data` | [T.nilable(T.any(T::Hash[Symbol, ::Object], T::Array[T::Hash[Symbol, ::Object]], ::String, ::Float, T::Boolean))](../../models/shared/proxyresponseapimodeldata.md) | :heavy_minus_sign: | The response data from the provider. Can be an object, array, or primitive value. | {
"id": "123",
"name": "John Doe",
"email": "john.doe@example.com"
} | +| `headers` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | The headers returned by the provider | {
"content-type": "application/json",
"x-request-id": "123e4567-e89b-12d3-a456-426614174000"
} | +| `provider_errors` | T::Array<[Models::Shared::ProviderErrorApiModel](../../models/shared/providererrorapimodel.md)> | :heavy_minus_sign: | Provider-specific errors if any occurred | [
{
"status": 400,
"url": "https://api.someprovider.com/v1/endpoint",
"raw": {
"error": "Bad Request",
"message": "The supplied data is invalid"
},
"headers": {
"date": "Tue, 02 Apr 2024 13:52:01 GMT",
"content-type": "application/json; charset=utf-8"
}
}
] | +| `status` | *::Float* | :heavy_check_mark: | The HTTP status code returned by the provider | 200 | \ No newline at end of file diff --git a/docs/models/shared/proxyresponseapimodeldata.md b/docs/models/shared/proxyresponseapimodeldata.md new file mode 100644 index 000000000..d949eae87 --- /dev/null +++ b/docs/models/shared/proxyresponseapimodeldata.md @@ -0,0 +1,4 @@ +# ProxyResponseApiModelData + +The response data from the provider. Can be an object, array, or primitive value. + diff --git a/docs/models/shared/query.md b/docs/models/shared/query.md new file mode 100644 index 000000000..0ce0480da --- /dev/null +++ b/docs/models/shared/query.md @@ -0,0 +1,11 @@ +# Query + +Query parameters for the action + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `additional_properties` | T::Hash[Symbol, *::Object*] | :heavy_minus_sign: | N/A | | +| `debug` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Enable debug mode for the action execution | false | \ No newline at end of file diff --git a/docs/sdks/actions/README.md b/docs/sdks/actions/README.md index 651320974..6f5d9995b 100644 --- a/docs/sdks/actions/README.md +++ b/docs/sdks/actions/README.md @@ -36,7 +36,7 @@ req = Models::Operations::StackoneListActionsMetaRequest.new( ), group_by: '["connector"]', include: [ - Models::Operations::Include::OPERATION_DETAILS, + Models::Operations::Include::ACTION_DETAILS, ], ) @@ -104,10 +104,9 @@ req = Models::Shared::ActionsRpcRequestDto.new( path: { "id": '123', }, - query: { - "param1": 'value1', - "param2": 'value2', - }, + query: Models::Shared::Query.new( + debug: false, + ), ) res = s.actions.rpc_action(request: req) diff --git a/docs/sdks/ats/README.md b/docs/sdks/ats/README.md index 6b819b397..a76e23d23 100644 --- a/docs/sdks/ats/README.md +++ b/docs/sdks/ats/README.md @@ -1140,7 +1140,7 @@ s = ::StackOne::StackOne.new( ) req = Models::Operations::AtsGetApplicationOfferRequest.new( - fields_: 'id,remote_id,application_id,remote_application_id,start_date,status,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields', + fields_: 'id,remote_id,application_id,remote_application_id,start_date,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields', id: '', sub_resource_id: '', x_account_id: '', @@ -2236,7 +2236,7 @@ s = ::StackOne::StackOne.new( ) req = Models::Operations::AtsGetOfferRequest.new( - fields_: 'id,remote_id,application_id,remote_application_id,start_date,status,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields', + fields_: 'id,remote_id,application_id,remote_application_id,start_date,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields', id: '', x_account_id: '', ) @@ -2917,7 +2917,7 @@ s = ::StackOne::StackOne.new( ) req = Models::Operations::AtsListApplicationsOffersRequest.new( - fields_: 'id,remote_id,application_id,remote_application_id,start_date,status,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields', + fields_: 'id,remote_id,application_id,remote_application_id,start_date,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields', filter: Models::Operations::AtsListApplicationsOffersQueryParamFilter.new( updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z'), ), @@ -3920,7 +3920,7 @@ s = ::StackOne::StackOne.new( ) req = Models::Operations::AtsListOffersRequest.new( - fields_: 'id,remote_id,application_id,remote_application_id,start_date,status,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields', + fields_: 'id,remote_id,application_id,remote_application_id,start_date,offer_status,salary,currency,created_at,updated_at,offer_history,unified_custom_fields', filter: Models::Operations::AtsListOffersQueryParamFilter.new( updated_after: DateTime.iso8601('2020-01-01T00:00:00.000Z'), ), diff --git a/docs/sdks/mcp/README.md b/docs/sdks/mcp/README.md index 84ae45b65..430da28c8 100644 --- a/docs/sdks/mcp/README.md +++ b/docs/sdks/mcp/README.md @@ -36,11 +36,12 @@ end ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `security` | [Models::Operations::StackoneMcpDeleteSecurity](../../models/operations/stackonemcpdeletesecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | -| `mcp_session_id` | *::String* | :heavy_check_mark: | Session id | -| `x_account_id` | *::String* | :heavy_check_mark: | Account secure id for the target provider account | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `security` | [Models::Operations::StackoneMcpDeleteSecurity](../../models/operations/stackonemcpdeletesecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `mcp_session_id` | *::String* | :heavy_check_mark: | Session id | +| `x_account_id` | *T.nilable(::String)* | :heavy_minus_sign: | Account secure id for the target provider account (optional if x-account-id query parameter is provided) | +| `x_account_id_query_parameter` | *T.nilable(::Object)* | :heavy_minus_sign: | Account secure id (alternative to x-account-id header) | ### Response @@ -88,11 +89,12 @@ end ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | -| `security` | [Models::Operations::StackoneMcpGetSecurity](../../models/operations/stackonemcpgetsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | -| `mcp_session_id` | *::String* | :heavy_check_mark: | Session id | -| `x_account_id` | *::String* | :heavy_check_mark: | Account secure id for the target provider account | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `security` | [Models::Operations::StackoneMcpGetSecurity](../../models/operations/stackonemcpgetsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `mcp_session_id` | *::String* | :heavy_check_mark: | Session id | +| `x_account_id` | *T.nilable(::String)* | :heavy_minus_sign: | Account secure id for the target provider account (optional if x-account-id query parameter is provided) | +| `x_account_id_query_parameter` | *T.nilable(::Object)* | :heavy_minus_sign: | Account secure id (alternative to x-account-id header) | ### Response @@ -145,12 +147,13 @@ end ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `security` | [Models::Operations::StackoneMcpPostSecurity](../../models/operations/stackonemcppostsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | -| `json_rpc_message_dto` | [Models::Shared::JsonRpcMessageDto](../../models/shared/jsonrpcmessagedto.md) | :heavy_check_mark: | JSON-RPC 2.0 message | -| `x_account_id` | *::String* | :heavy_check_mark: | Account secure id for the target provider account | -| `mcp_session_id` | *T.nilable(::String)* | :heavy_minus_sign: | Session id; omit for initialize, include for subsequent calls | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `security` | [Models::Operations::StackoneMcpPostSecurity](../../models/operations/stackonemcppostsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `json_rpc_message_dto` | [Models::Shared::JsonRpcMessageDto](../../models/shared/jsonrpcmessagedto.md) | :heavy_check_mark: | JSON-RPC 2.0 message | +| `mcp_session_id` | *T.nilable(::String)* | :heavy_minus_sign: | Session id; omit for initialize, include for subsequent calls | +| `x_account_id` | *T.nilable(::String)* | :heavy_minus_sign: | Account secure id for the target provider account (optional if x-account-id query parameter is provided) | +| `x_account_id_query_parameter` | *T.nilable(::Object)* | :heavy_minus_sign: | Account secure id (alternative to x-account-id header) | ### Response diff --git a/docs/sdks/proxy/README.md b/docs/sdks/proxy/README.md index ab4733346..74606f979 100644 --- a/docs/sdks/proxy/README.md +++ b/docs/sdks/proxy/README.md @@ -35,7 +35,7 @@ res = s.proxy.proxy_request(proxy_request_body: Models::Shared::ProxyRequestBody url: 'https://api.sample-integration.com/v1', ), x_account_id: '') -if res.status_code == 200 +unless res.proxy_response_api_model.nil? # handle response end diff --git a/gen.yaml b/gen.yaml index 026a04e88..cc4abd73e 100644 --- a/gen.yaml +++ b/gen.yaml @@ -17,12 +17,13 @@ generation: hoistGlobalSecurity: true schemas: allOfMergeStrategy: shallowMerge + requestBodyFieldName: "" tests: generateTests: true generateNewTests: false skipResponseBodyAssertions: false ruby: - version: 0.38.1 + version: 0.39.0 additionalDependencies: development: {} runtime: {} diff --git a/lib/stack_one/mcp.rb b/lib/stack_one/mcp.rb index 091e148b7..e6bfc69c9 100644 --- a/lib/stack_one/mcp.rb +++ b/lib/stack_one/mcp.rb @@ -39,19 +39,21 @@ def get_url(base_url:, url_variables: nil) end - 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) } - def mcp_delete(security:, mcp_session_id:, x_account_id:, retries: nil, timeout_ms: nil) + 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) } + def mcp_delete(security:, mcp_session_id:, x_account_id: nil, x_account_id_query_parameter: nil, retries: nil, timeout_ms: nil) # mcp_delete - Delete MCP session # Close an existing MCP session for the provided session id request = Models::Operations::StackoneMcpDeleteRequest.new( mcp_session_id: mcp_session_id, - x_account_id: x_account_id + x_account_id: x_account_id, + x_account_id_query_parameter: x_account_id_query_parameter ) url, params = @sdk_configuration.get_server_details base_url = Utils.template_url(url, params) url = "#{base_url}/mcp" headers = Utils.get_headers(request) headers = T.cast(headers, T::Hash[String, String]) + query_params = Utils.get_query_params(Models::Operations::StackoneMcpDeleteRequest, request, nil) headers['Accept'] = 'application/json' headers['user-agent'] = @sdk_configuration.user_agent retries ||= @sdk_configuration.retry_config @@ -91,6 +93,7 @@ def mcp_delete(security:, mcp_session_id:, x_account_id:, retries: nil, timeout_ http_response = T.must(connection).delete(url) do |req| req.headers.merge!(headers) req.options.timeout = timeout unless timeout.nil? + req.params = query_params Utils.configure_request_security(req, security) @sdk_configuration.hooks.before_request( @@ -305,19 +308,21 @@ def mcp_delete(security:, mcp_session_id:, x_account_id:, retries: nil, timeout_ end - 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) } - def mcp_get(security:, mcp_session_id:, x_account_id:, retries: nil, timeout_ms: nil) + 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) } + def mcp_get(security:, mcp_session_id:, x_account_id: nil, x_account_id_query_parameter: nil, retries: nil, timeout_ms: nil) # mcp_get - Open MCP SSE stream # Open a dedicated Server-Sent Events stream for MCP notifications request = Models::Operations::StackoneMcpGetRequest.new( mcp_session_id: mcp_session_id, - x_account_id: x_account_id + x_account_id: x_account_id, + x_account_id_query_parameter: x_account_id_query_parameter ) url, params = @sdk_configuration.get_server_details base_url = Utils.template_url(url, params) url = "#{base_url}/mcp" headers = Utils.get_headers(request) headers = T.cast(headers, T::Hash[String, String]) + query_params = Utils.get_query_params(Models::Operations::StackoneMcpGetRequest, request, nil) headers['Accept'] = 'application/json' headers['user-agent'] = @sdk_configuration.user_agent retries ||= @sdk_configuration.retry_config @@ -357,6 +362,7 @@ def mcp_get(security:, mcp_session_id:, x_account_id:, retries: nil, timeout_ms: http_response = T.must(connection).get(url) do |req| req.headers.merge!(headers) req.options.timeout = timeout unless timeout.nil? + req.params = query_params Utils.configure_request_security(req, security) @sdk_configuration.hooks.before_request( @@ -571,14 +577,15 @@ def mcp_get(security:, mcp_session_id:, x_account_id:, retries: nil, timeout_ms: end - sig { params(security: Models::Operations::StackoneMcpPostSecurity, json_rpc_message_dto: Models::Shared::JsonRpcMessageDto, x_account_id: ::String, mcp_session_id: T.nilable(::String), retries: T.nilable(Utils::RetryConfig), timeout_ms: T.nilable(Integer)).returns(Models::Operations::StackoneMcpPostResponse) } - def mcp_post(security:, json_rpc_message_dto:, x_account_id:, mcp_session_id: nil, retries: nil, timeout_ms: nil) + 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) } + 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) # mcp_post - Send MCP JSON-RPC message # Send JSON-RPC request to the MCP server over HTTP streaming transport request = Models::Operations::StackoneMcpPostRequest.new( json_rpc_message_dto: json_rpc_message_dto, + mcp_session_id: mcp_session_id, x_account_id: x_account_id, - mcp_session_id: mcp_session_id + x_account_id_query_parameter: x_account_id_query_parameter ) url, params = @sdk_configuration.get_server_details base_url = Utils.template_url(url, params) @@ -596,6 +603,7 @@ def mcp_post(security:, json_rpc_message_dto:, x_account_id:, mcp_session_id: ni else body = data end + query_params = Utils.get_query_params(Models::Operations::StackoneMcpPostRequest, request, nil) headers['Accept'] = 'application/json' headers['user-agent'] = @sdk_configuration.user_agent retries ||= @sdk_configuration.retry_config @@ -636,6 +644,7 @@ def mcp_post(security:, json_rpc_message_dto:, x_account_id:, mcp_session_id: ni req.body = body req.headers.merge!(headers) req.options.timeout = timeout unless timeout.nil? + req.params = query_params Utils.configure_request_security(req, security) @sdk_configuration.hooks.before_request( diff --git a/lib/stack_one/models/operations/include.rb b/lib/stack_one/models/operations/include.rb index e26b1f1af..bc93fb39c 100644 --- a/lib/stack_one/models/operations/include.rb +++ b/lib/stack_one/models/operations/include.rb @@ -13,7 +13,7 @@ class Include < T::Enum enums do - OPERATION_DETAILS = new('operation_details') + ACTION_DETAILS = new('action_details') end end end diff --git a/lib/stack_one/models/operations/stackone_mcp_delete_request.rb b/lib/stack_one/models/operations/stackone_mcp_delete_request.rb index 944993eea..a9cf85a5d 100644 --- a/lib/stack_one/models/operations/stackone_mcp_delete_request.rb +++ b/lib/stack_one/models/operations/stackone_mcp_delete_request.rb @@ -15,13 +15,16 @@ class StackoneMcpDeleteRequest # Session id field :mcp_session_id, ::String, { 'header': { 'field_name': 'mcp-session-id', 'style': 'simple', 'explode': false } } - # Account secure id for the target provider account - field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } } + # Account secure id for the target provider account (optional if x-account-id query parameter is provided) + field :x_account_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } } + # Account secure id (alternative to x-account-id header) + field :x_account_id_query_parameter, Crystalline::Nilable.new(::Object), { 'query_param': { 'field_name': 'x-account-id', 'style': 'form', 'explode': true } } - sig { params(mcp_session_id: ::String, x_account_id: ::String).void } - def initialize(mcp_session_id:, x_account_id:) + sig { params(mcp_session_id: ::String, x_account_id: T.nilable(::String), x_account_id_query_parameter: T.nilable(::Object)).void } + def initialize(mcp_session_id:, x_account_id: nil, x_account_id_query_parameter: nil) @mcp_session_id = mcp_session_id @x_account_id = x_account_id + @x_account_id_query_parameter = x_account_id_query_parameter end sig { params(other: T.untyped).returns(T::Boolean) } @@ -29,6 +32,7 @@ def ==(other) return false unless other.is_a? self.class return false unless @mcp_session_id == other.mcp_session_id return false unless @x_account_id == other.x_account_id + return false unless @x_account_id_query_parameter == other.x_account_id_query_parameter true end end diff --git a/lib/stack_one/models/operations/stackone_mcp_delete_request.rbi b/lib/stack_one/models/operations/stackone_mcp_delete_request.rbi index 3b2fc3889..4ab059e48 100644 --- a/lib/stack_one/models/operations/stackone_mcp_delete_request.rbi +++ b/lib/stack_one/models/operations/stackone_mcp_delete_request.rbi @@ -12,4 +12,6 @@ class StackOne::Models::Operations::StackoneMcpDeleteRequest def mcp_session_id=(str_); end def x_account_id(); end def x_account_id=(str_); end + def x_account_id_query_parameter(); end + def x_account_id_query_parameter=(str_); end end \ No newline at end of file diff --git a/lib/stack_one/models/operations/stackone_mcp_get_request.rb b/lib/stack_one/models/operations/stackone_mcp_get_request.rb index 71086ade4..fd0004c79 100644 --- a/lib/stack_one/models/operations/stackone_mcp_get_request.rb +++ b/lib/stack_one/models/operations/stackone_mcp_get_request.rb @@ -15,13 +15,16 @@ class StackoneMcpGetRequest # Session id field :mcp_session_id, ::String, { 'header': { 'field_name': 'mcp-session-id', 'style': 'simple', 'explode': false } } - # Account secure id for the target provider account - field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } } + # Account secure id for the target provider account (optional if x-account-id query parameter is provided) + field :x_account_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } } + # Account secure id (alternative to x-account-id header) + field :x_account_id_query_parameter, Crystalline::Nilable.new(::Object), { 'query_param': { 'field_name': 'x-account-id', 'style': 'form', 'explode': true } } - sig { params(mcp_session_id: ::String, x_account_id: ::String).void } - def initialize(mcp_session_id:, x_account_id:) + sig { params(mcp_session_id: ::String, x_account_id: T.nilable(::String), x_account_id_query_parameter: T.nilable(::Object)).void } + def initialize(mcp_session_id:, x_account_id: nil, x_account_id_query_parameter: nil) @mcp_session_id = mcp_session_id @x_account_id = x_account_id + @x_account_id_query_parameter = x_account_id_query_parameter end sig { params(other: T.untyped).returns(T::Boolean) } @@ -29,6 +32,7 @@ def ==(other) return false unless other.is_a? self.class return false unless @mcp_session_id == other.mcp_session_id return false unless @x_account_id == other.x_account_id + return false unless @x_account_id_query_parameter == other.x_account_id_query_parameter true end end diff --git a/lib/stack_one/models/operations/stackone_mcp_get_request.rbi b/lib/stack_one/models/operations/stackone_mcp_get_request.rbi index 9fb77a311..6d29cee72 100644 --- a/lib/stack_one/models/operations/stackone_mcp_get_request.rbi +++ b/lib/stack_one/models/operations/stackone_mcp_get_request.rbi @@ -12,4 +12,6 @@ class StackOne::Models::Operations::StackoneMcpGetRequest def mcp_session_id=(str_); end def x_account_id(); end def x_account_id=(str_); end + def x_account_id_query_parameter(); end + def x_account_id_query_parameter=(str_); end end \ No newline at end of file diff --git a/lib/stack_one/models/operations/stackone_mcp_post_request.rb b/lib/stack_one/models/operations/stackone_mcp_post_request.rb index 39397bf7c..81ae9662b 100644 --- a/lib/stack_one/models/operations/stackone_mcp_post_request.rb +++ b/lib/stack_one/models/operations/stackone_mcp_post_request.rb @@ -15,24 +15,28 @@ class StackoneMcpPostRequest # JSON-RPC 2.0 message field :json_rpc_message_dto, Models::Shared::JsonRpcMessageDto, { 'request': { 'media_type': 'application/json' } } - # Account secure id for the target provider account - field :x_account_id, ::String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } } # Session id; omit for initialize, include for subsequent calls field :mcp_session_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'mcp-session-id', 'style': 'simple', 'explode': false } } + # Account secure id for the target provider account (optional if x-account-id query parameter is provided) + field :x_account_id, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } } + # Account secure id (alternative to x-account-id header) + field :x_account_id_query_parameter, Crystalline::Nilable.new(::Object), { 'query_param': { 'field_name': 'x-account-id', 'style': 'form', 'explode': true } } - sig { params(json_rpc_message_dto: Models::Shared::JsonRpcMessageDto, x_account_id: ::String, mcp_session_id: T.nilable(::String)).void } - def initialize(json_rpc_message_dto:, x_account_id:, mcp_session_id: nil) + 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 } + def initialize(json_rpc_message_dto:, mcp_session_id: nil, x_account_id: nil, x_account_id_query_parameter: nil) @json_rpc_message_dto = json_rpc_message_dto - @x_account_id = x_account_id @mcp_session_id = mcp_session_id + @x_account_id = x_account_id + @x_account_id_query_parameter = x_account_id_query_parameter end sig { params(other: T.untyped).returns(T::Boolean) } def ==(other) return false unless other.is_a? self.class return false unless @json_rpc_message_dto == other.json_rpc_message_dto - return false unless @x_account_id == other.x_account_id return false unless @mcp_session_id == other.mcp_session_id + return false unless @x_account_id == other.x_account_id + return false unless @x_account_id_query_parameter == other.x_account_id_query_parameter true end end diff --git a/lib/stack_one/models/operations/stackone_mcp_post_request.rbi b/lib/stack_one/models/operations/stackone_mcp_post_request.rbi index 3817525c2..2de02b70b 100644 --- a/lib/stack_one/models/operations/stackone_mcp_post_request.rbi +++ b/lib/stack_one/models/operations/stackone_mcp_post_request.rbi @@ -10,8 +10,10 @@ end class StackOne::Models::Operations::StackoneMcpPostRequest def json_rpc_message_dto(); end def json_rpc_message_dto=(str_); end - def x_account_id(); end - def x_account_id=(str_); end def mcp_session_id(); end def mcp_session_id=(str_); end + def x_account_id(); end + def x_account_id=(str_); end + def x_account_id_query_parameter(); end + def x_account_id_query_parameter=(str_); end end \ No newline at end of file diff --git a/lib/stack_one/models/operations/stackone_proxy_request_response.rb b/lib/stack_one/models/operations/stackone_proxy_request_response.rb index eb81c6e51..cc0abe1a5 100644 --- a/lib/stack_one/models/operations/stackone_proxy_request_response.rb +++ b/lib/stack_one/models/operations/stackone_proxy_request_response.rb @@ -21,13 +21,16 @@ class StackoneProxyRequestResponse field :status_code, ::Integer # Raw HTTP response; suitable for custom response parsing field :raw_response, ::Faraday::Response + # The proxy request was successful. + field :proxy_response_api_model, Crystalline::Nilable.new(Models::Shared::ProxyResponseApiModel) - sig { params(content_type: ::String, headers: T::Hash[Symbol, T::Array[::String]], status_code: ::Integer, raw_response: ::Faraday::Response).void } - def initialize(content_type:, headers:, status_code:, raw_response:) + 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 } + def initialize(content_type:, headers:, status_code:, raw_response:, proxy_response_api_model: nil) @content_type = content_type @headers = headers @status_code = status_code @raw_response = raw_response + @proxy_response_api_model = proxy_response_api_model end sig { params(other: T.untyped).returns(T::Boolean) } @@ -37,6 +40,7 @@ def ==(other) return false unless @headers == other.headers return false unless @status_code == other.status_code return false unless @raw_response == other.raw_response + return false unless @proxy_response_api_model == other.proxy_response_api_model true end end diff --git a/lib/stack_one/models/operations/stackone_proxy_request_response.rbi b/lib/stack_one/models/operations/stackone_proxy_request_response.rbi index e628dbf28..0205b6486 100644 --- a/lib/stack_one/models/operations/stackone_proxy_request_response.rbi +++ b/lib/stack_one/models/operations/stackone_proxy_request_response.rbi @@ -16,4 +16,6 @@ class StackOne::Models::Operations::StackoneProxyRequestResponse def status_code=(str_); end def raw_response(); end def raw_response=(str_); end + def proxy_response_api_model(); end + def proxy_response_api_model=(str_); end end \ No newline at end of file diff --git a/lib/stack_one/models/shared.rb b/lib/stack_one/models/shared.rb index 0ee54cecf..ac75dcb30 100644 --- a/lib/stack_one/models/shared.rb +++ b/lib/stack_one/models/shared.rb @@ -6,7 +6,6 @@ module StackOne module Models module Shared - autoload :One, 'stack_one/models/shared/one.rb' autoload :Two, 'stack_one/models/shared/two.rb' autoload :Four, 'stack_one/models/shared/four.rb' autoload :ATSLocation, 'stack_one/models/shared/atslocation.rb' @@ -74,7 +73,6 @@ module Shared autoload :ActionsMetaPaginated, 'stack_one/models/shared/actionsmetapaginated.rb' autoload :ActionsRpcRequestDto, 'stack_one/models/shared/actionsrpcrequestdto.rb' autoload :ActionsRpcResponse, 'stack_one/models/shared/actionsrpcresponse.rb' - autoload :ActionsRpcResponse2, 'stack_one/models/shared/actionsrpcresponse_2.rb' autoload :ActionsRpcResponseData, 'stack_one/models/shared/actionsrpcresponse_data.rb' autoload :AdditionalData, 'stack_one/models/shared/additionaldata.rb' autoload :Answer, 'stack_one/models/shared/answer.rb' @@ -601,6 +599,7 @@ module Shared autoload :FoldersHasChildren, 'stack_one/models/shared/folders_has_children.rb' autoload :FoldersHasContent, 'stack_one/models/shared/folders_has_content.rb' autoload :HRISBankDetails, 'stack_one/models/shared/hrisbankdetails.rb' + autoload :HRISBankDetails2, 'stack_one/models/shared/hrisbankdetails_2.rb' autoload :HRISBankDetails4, 'stack_one/models/shared/hrisbankdetails_4.rb' autoload :HRISBankDetailsSchemas4, 'stack_one/models/shared/hrisbankdetails_schemas_4.rb' autoload :HRISBankDetailsSchemasCurrencyCode4, 'stack_one/models/shared/hrisbankdetails_schemas_currency_code_4.rb' @@ -1266,6 +1265,8 @@ module Shared autoload :ProviderErrorApiModelHeaders, 'stack_one/models/shared/providererrorapimodel_headers.rb' autoload :ProviderErrorApiModelRaw, 'stack_one/models/shared/providererrorapimodel_raw.rb' autoload :ProxyRequestBody, 'stack_one/models/shared/proxyrequestbody.rb' + autoload :ProxyResponseApiModel, 'stack_one/models/shared/proxyresponseapimodel.rb' + autoload :ProxyResponseApiModelData, 'stack_one/models/shared/proxyresponseapimodel_data.rb' autoload :PushMessageContentsSchemas, 'stack_one/models/shared/pushmessagecontents_schemas.rb' autoload :PushMessages, 'stack_one/models/shared/pushmessages.rb' autoload :PushMessages4, 'stack_one/models/shared/pushmessages_4.rb' @@ -1639,6 +1640,7 @@ module Shared autoload :InterviewStatus, 'stack_one/models/shared/interview_status.rb' autoload :IsBotUser, 'stack_one/models/shared/is_bot_user.rb' autoload :IsPaid, 'stack_one/models/shared/is_paid.rb' + autoload :IsPrimary, 'stack_one/models/shared/is_primary.rb' autoload :IsRoot, 'stack_one/models/shared/is_root.rb' autoload :IsUnlimited, 'stack_one/models/shared/is_unlimited.rb' autoload :IssuedBy, 'stack_one/models/shared/issued_by.rb' @@ -1672,6 +1674,7 @@ module Shared autoload :PreferredLanguage, 'stack_one/models/shared/preferred_language.rb' autoload :Priority, 'stack_one/models/shared/priority.rb' autoload :Private, 'stack_one/models/shared/private.rb' + autoload :Query, 'stack_one/models/shared/query.rb' autoload :Raw, 'stack_one/models/shared/raw.rb' autoload :RejectedReasonType, 'stack_one/models/shared/rejected_reason_type.rb' autoload :Request, 'stack_one/models/shared/request.rb' diff --git a/lib/stack_one/models/shared/actionsrpcrequestdto.rb b/lib/stack_one/models/shared/actionsrpcrequestdto.rb index de1724c9d..bf29d6eee 100644 --- a/lib/stack_one/models/shared/actionsrpcrequestdto.rb +++ b/lib/stack_one/models/shared/actionsrpcrequestdto.rb @@ -22,9 +22,9 @@ class ActionsRpcRequestDto # Path parameters for the action field :path, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('path') } } # Query parameters for the action - field :query, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('query') } } + field :query, Crystalline::Nilable.new(Models::Shared::Query), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('query') } } - 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(T::Hash[Symbol, ::Object])).void } + 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 } def initialize(action:, body: nil, headers: nil, path: nil, query: nil) @action = action @body = body diff --git a/lib/stack_one/models/shared/actionsrpcresponse.rb b/lib/stack_one/models/shared/actionsrpcresponse.rb index 98e7288e0..f8d58e321 100644 --- a/lib/stack_one/models/shared/actionsrpcresponse.rb +++ b/lib/stack_one/models/shared/actionsrpcresponse.rb @@ -14,11 +14,11 @@ class ActionsRpcResponse include Crystalline::MetadataFields # The response data from the action RPC call - field :data, Crystalline::Nilable.new(Crystalline::Union.new(Models::Shared::One, Crystalline::Array.new(Models::Shared::ActionsRpcResponse2))), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } } + 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') } } # Cursor for fetching the next page of results field :next_, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('next') } } - sig { params(data: T.nilable(T.any(Models::Shared::One, T::Array[Models::Shared::ActionsRpcResponse2])), next_: T.nilable(::String)).void } + sig { params(data: T.nilable(T.any(T::Hash[Symbol, ::Object], T::Array[T::Hash[Symbol, ::Object]])), next_: T.nilable(::String)).void } def initialize(data: nil, next_: nil) @data = data @next_ = next_ diff --git a/lib/stack_one/models/shared/applicationattachment_value.rb b/lib/stack_one/models/shared/applicationattachment_value.rb index 0138c978c..4b65fbb71 100644 --- a/lib/stack_one/models/shared/applicationattachment_value.rb +++ b/lib/stack_one/models/shared/applicationattachment_value.rb @@ -14,6 +14,9 @@ class ApplicationAttachmentValue < T::Enum enums do TEXT = new('text') + PDF = new('pdf') + VIDEO = new('video') + OTHER = new('other') UNMAPPED_VALUE = new('unmapped_value') end end diff --git a/lib/stack_one/models/shared/attachment_value.rb b/lib/stack_one/models/shared/attachment_value.rb index ce209cd08..b51dc8e26 100644 --- a/lib/stack_one/models/shared/attachment_value.rb +++ b/lib/stack_one/models/shared/attachment_value.rb @@ -14,6 +14,9 @@ class AttachmentValue < T::Enum enums do TEXT = new('text') + PDF = new('pdf') + VIDEO = new('video') + OTHER = new('other') UNMAPPED_VALUE = new('unmapped_value') end end diff --git a/lib/stack_one/models/shared/hrisbankdetails.rb b/lib/stack_one/models/shared/hrisbankdetails.rb index 77e625894..a48fca96b 100644 --- a/lib/stack_one/models/shared/hrisbankdetails.rb +++ b/lib/stack_one/models/shared/hrisbankdetails.rb @@ -30,7 +30,7 @@ class HRISBankDetails # Unique identifier field :id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('id') } } # Whether this is the primary bank account - field :is_primary, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('is_primary') } } + field :is_primary, Crystalline::Nilable.new(Crystalline::Union.new(Crystalline::Boolean.new, Models::Shared::HRISBankDetails2)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('is_primary') } } # Local account number (used when IBAN is not available) field :local_account_number, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('local_account_number') } } # Provider's unique identifier @@ -38,7 +38,7 @@ class HRISBankDetails # SWIFT/BIC code for international transfers field :swift_bic, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('swift_bic') } } - sig { params(account_name: T.nilable(::String), account_type: T.nilable(Models::Shared::AccountType), bank_name: T.nilable(::String), clearing_codes: T.nilable(T::Array[Models::Shared::ClearingCode]), country_code: T.nilable(Models::Shared::CountryCode), currency_code: T.nilable(Models::Shared::HRISBankDetailsCurrencyCode), iban: T.nilable(::String), id: T.nilable(::String), is_primary: T.nilable(T::Boolean), local_account_number: T.nilable(::String), remote_id: T.nilable(::String), swift_bic: T.nilable(::String)).void } + sig { params(account_name: T.nilable(::String), account_type: T.nilable(Models::Shared::AccountType), bank_name: T.nilable(::String), clearing_codes: T.nilable(T::Array[Models::Shared::ClearingCode]), country_code: T.nilable(Models::Shared::CountryCode), currency_code: T.nilable(Models::Shared::HRISBankDetailsCurrencyCode), iban: T.nilable(::String), id: T.nilable(::String), is_primary: T.nilable(T.any(T::Boolean, Models::Shared::HRISBankDetails2)), local_account_number: T.nilable(::String), remote_id: T.nilable(::String), swift_bic: T.nilable(::String)).void } def initialize(account_name: nil, account_type: nil, bank_name: nil, clearing_codes: nil, country_code: nil, currency_code: nil, iban: nil, id: nil, is_primary: nil, local_account_number: nil, remote_id: nil, swift_bic: nil) @account_name = account_name @account_type = account_type diff --git a/lib/stack_one/models/shared/hrisbankdetails_2.rb b/lib/stack_one/models/shared/hrisbankdetails_2.rb new file mode 100644 index 000000000..ae65439db --- /dev/null +++ b/lib/stack_one/models/shared/hrisbankdetails_2.rb @@ -0,0 +1,22 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module StackOne + module Models + module Shared + + + class HRISBankDetails2 < T::Enum + + + enums do + TRUE = new('true') + FALSE = new('false') + end + end + end + end +end diff --git a/lib/stack_one/models/shared/actionsrpcresponse_2.rbi b/lib/stack_one/models/shared/hrisbankdetails_2.rbi similarity index 50% rename from lib/stack_one/models/shared/actionsrpcresponse_2.rbi rename to lib/stack_one/models/shared/hrisbankdetails_2.rbi index d22654ace..936855fbb 100644 --- a/lib/stack_one/models/shared/actionsrpcresponse_2.rbi +++ b/lib/stack_one/models/shared/hrisbankdetails_2.rbi @@ -2,10 +2,10 @@ # frozen_string_literal: true -class StackOne::Models::Shared::ActionsRpcResponse2 +class StackOne::Models::Shared::HRISBankDetails2 extend ::Crystalline::MetadataFields::ClassMethods end -class StackOne::Models::Shared::ActionsRpcResponse2 +class StackOne::Models::Shared::HRISBankDetails2 end \ No newline at end of file diff --git a/lib/stack_one/models/shared/one.rb b/lib/stack_one/models/shared/is_primary.rb similarity index 86% rename from lib/stack_one/models/shared/one.rb rename to lib/stack_one/models/shared/is_primary.rb index b960dec8a..3ae160d7d 100644 --- a/lib/stack_one/models/shared/one.rb +++ b/lib/stack_one/models/shared/is_primary.rb @@ -8,8 +8,8 @@ module StackOne module Models module Shared - - class One + # Whether this is the primary bank account + class IsPrimary extend T::Sig include Crystalline::MetadataFields diff --git a/lib/stack_one/models/shared/one.rbi b/lib/stack_one/models/shared/is_primary.rbi similarity index 56% rename from lib/stack_one/models/shared/one.rbi rename to lib/stack_one/models/shared/is_primary.rbi index b869697bf..3f9460cb8 100644 --- a/lib/stack_one/models/shared/one.rbi +++ b/lib/stack_one/models/shared/is_primary.rbi @@ -2,10 +2,10 @@ # frozen_string_literal: true -class StackOne::Models::Shared::One +class StackOne::Models::Shared::IsPrimary extend ::Crystalline::MetadataFields::ClassMethods end -class StackOne::Models::Shared::One +class StackOne::Models::Shared::IsPrimary end \ No newline at end of file diff --git a/lib/stack_one/models/shared/proxyresponseapimodel.rb b/lib/stack_one/models/shared/proxyresponseapimodel.rb new file mode 100644 index 000000000..952853698 --- /dev/null +++ b/lib/stack_one/models/shared/proxyresponseapimodel.rb @@ -0,0 +1,45 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module StackOne + module Models + module Shared + + + class ProxyResponseApiModel + extend T::Sig + include Crystalline::MetadataFields + + # The HTTP status code returned by the provider + field :status, ::Float, { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('status'), required: true } } + # The response data from the provider. Can be an object, array, or primitive value. + field :data, Crystalline::Nilable.new(Crystalline::Union.new(Crystalline::Hash.new(Symbol, ::Object), Crystalline::Array.new(Crystalline::Hash.new(Symbol, ::Object)), ::String, ::Float, Crystalline::Boolean.new)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('data') } } + # The headers returned by the provider + field :headers, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('headers') } } + # Provider-specific errors if any occurred + field :provider_errors, Crystalline::Nilable.new(Crystalline::Array.new(Models::Shared::ProviderErrorApiModel)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('provider_errors') } } + + sig { params(status: ::Float, data: T.nilable(T.any(T::Hash[Symbol, ::Object], T::Array[T::Hash[Symbol, ::Object]], ::String, ::Float, T::Boolean)), headers: T.nilable(T::Hash[Symbol, ::Object]), provider_errors: T.nilable(T::Array[Models::Shared::ProviderErrorApiModel])).void } + def initialize(status:, data: nil, headers: nil, provider_errors: nil) + @status = status + @data = data + @headers = headers + @provider_errors = provider_errors + end + + sig { params(other: T.untyped).returns(T::Boolean) } + def ==(other) + return false unless other.is_a? self.class + return false unless @status == other.status + return false unless @data == other.data + return false unless @headers == other.headers + return false unless @provider_errors == other.provider_errors + true + end + end + end + end +end diff --git a/lib/stack_one/models/shared/proxyresponseapimodel.rbi b/lib/stack_one/models/shared/proxyresponseapimodel.rbi new file mode 100644 index 000000000..c9d9da443 --- /dev/null +++ b/lib/stack_one/models/shared/proxyresponseapimodel.rbi @@ -0,0 +1,19 @@ +# typed: true +# frozen_string_literal: true + + +class StackOne::Models::Shared::ProxyResponseApiModel + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class StackOne::Models::Shared::ProxyResponseApiModel + def status(); end + def status=(str_); end + def data(); end + def data=(str_); end + def headers(); end + def headers=(str_); end + def provider_errors(); end + def provider_errors=(str_); end +end \ No newline at end of file diff --git a/lib/stack_one/models/shared/actionsrpcresponse_2.rb b/lib/stack_one/models/shared/proxyresponseapimodel_data.rb similarity index 78% rename from lib/stack_one/models/shared/actionsrpcresponse_2.rb rename to lib/stack_one/models/shared/proxyresponseapimodel_data.rb index 34a607597..ac2f39bc2 100644 --- a/lib/stack_one/models/shared/actionsrpcresponse_2.rb +++ b/lib/stack_one/models/shared/proxyresponseapimodel_data.rb @@ -8,8 +8,8 @@ module StackOne module Models module Shared - - class ActionsRpcResponse2 + # The response data from the provider. Can be an object, array, or primitive value. + class ProxyResponseApiModelData extend T::Sig include Crystalline::MetadataFields diff --git a/lib/stack_one/models/shared/proxyresponseapimodel_data.rbi b/lib/stack_one/models/shared/proxyresponseapimodel_data.rbi new file mode 100644 index 000000000..47011dc39 --- /dev/null +++ b/lib/stack_one/models/shared/proxyresponseapimodel_data.rbi @@ -0,0 +1,11 @@ +# typed: true +# frozen_string_literal: true + + +class StackOne::Models::Shared::ProxyResponseApiModelData + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class StackOne::Models::Shared::ProxyResponseApiModelData +end \ No newline at end of file diff --git a/lib/stack_one/models/shared/query.rb b/lib/stack_one/models/shared/query.rb new file mode 100644 index 000000000..9b1cc818b --- /dev/null +++ b/lib/stack_one/models/shared/query.rb @@ -0,0 +1,37 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module StackOne + module Models + module Shared + + # Query parameters for the action + class Query + extend T::Sig + include Crystalline::MetadataFields + + + field :additional_properties, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('additional_properties') } } + # Enable debug mode for the action execution + field :debug, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::StackOne::Utils.field_name('debug') } } + + sig { params(additional_properties: T.nilable(T::Hash[Symbol, ::Object]), debug: T.nilable(T::Boolean)).void } + def initialize(additional_properties: nil, debug: nil) + @additional_properties = additional_properties + @debug = debug + end + + sig { params(other: T.untyped).returns(T::Boolean) } + def ==(other) + return false unless other.is_a? self.class + return false unless @additional_properties == other.additional_properties + return false unless @debug == other.debug + true + end + end + end + end +end diff --git a/lib/stack_one/models/shared/query.rbi b/lib/stack_one/models/shared/query.rbi new file mode 100644 index 000000000..cbdd86a51 --- /dev/null +++ b/lib/stack_one/models/shared/query.rbi @@ -0,0 +1,15 @@ +# typed: true +# frozen_string_literal: true + + +class StackOne::Models::Shared::Query + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class StackOne::Models::Shared::Query + def additional_properties(); end + def additional_properties=(str_); end + def debug(); end + def debug=(str_); end +end \ No newline at end of file diff --git a/lib/stack_one/proxy.rb b/lib/stack_one/proxy.rb index 7cfcfd372..d61fdd81d 100644 --- a/lib/stack_one/proxy.rb +++ b/lib/stack_one/proxy.rb @@ -141,18 +141,27 @@ def proxy_request(proxy_request_body:, x_account_id:, retries: nil, timeout_ms: content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200', '201', '202', '204']) - http_response = @sdk_configuration.hooks.after_success( - hook_ctx: SDKHooks::AfterSuccessHookContext.new( - hook_ctx: hook_ctx - ), - response: http_response - ) - return Models::Operations::StackoneProxyRequestResponse.new( - status_code: http_response.status, - content_type: content_type, - raw_response: http_response, - headers: {} - ) + if Utils.match_content_type(content_type, 'application/json') + http_response = @sdk_configuration.hooks.after_success( + hook_ctx: SDKHooks::AfterSuccessHookContext.new( + hook_ctx: hook_ctx + ), + response: http_response + ) + response_data = http_response.env.response_body + obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Shared::ProxyResponseApiModel) + response = Models::Operations::StackoneProxyRequestResponse.new( + status_code: http_response.status, + content_type: content_type, + raw_response: http_response, + headers: {}, + proxy_response_api_model: T.unsafe(obj) + ) + + return response + else + raise ::StackOne::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' + end elsif Utils.match_status_code(http_response.status, ['400']) if Utils.match_content_type(content_type, 'application/json') http_response = @sdk_configuration.hooks.after_success( diff --git a/lib/stack_one/sdkconfiguration.rb b/lib/stack_one/sdkconfiguration.rb index 48d2405e7..d590f4597 100644 --- a/lib/stack_one/sdkconfiguration.rb +++ b/lib/stack_one/sdkconfiguration.rb @@ -89,9 +89,9 @@ def initialize(client, hooks, retry_config, timeout_ms, security, security_sourc end @language = 'ruby' @openapi_doc_version = '1.0.0' - @sdk_version = '0.38.1' - @gen_version = '2.730.5' - @user_agent = 'speakeasy-sdk/ruby 0.38.1 2.730.5 1.0.0 stackone_client' + @sdk_version = '0.39.0' + @gen_version = '2.745.2' + @user_agent = 'speakeasy-sdk/ruby 0.39.0 2.745.2 1.0.0 stackone_client' end sig { returns([String, T::Hash[Symbol, String]]) } diff --git a/stackone_client.gemspec b/stackone_client.gemspec index 0e9e02a55..4353faf81 100644 --- a/stackone_client.gemspec +++ b/stackone_client.gemspec @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__) Gem::Specification.new do |s| s.name = 'stackone_client' - s.version = '0.38.1' + s.version = '0.39.0' s.platform = Gem::Platform::RUBY s.licenses = ['Apache-2.0'] s.summary = '' From 6863c04866e2e4fa4dc2d869875bf3af1135d389 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 09:12:23 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow