From 8be8470d76912e5de19d7a6905da924444ed7aec Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Sat, 1 Mar 2025 00:31:13 +0000 Subject: [PATCH 1/2] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.508.0 --- .speakeasy/gen.lock | 14 +++++++++----- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 14 +++++++------- Gemfile.lock | 2 +- RELEASES.md | 12 +++++++++++- codeSamples.yaml | 2 +- docs/models/operations/listfoldersrequest.md | 9 ++++++--- docs/sdks/folders/README.md | 5 ++++- dub.gemspec | 2 +- .../models/operations/getlinks_request.rb | 2 +- .../models/operations/getlinkscount_request.rb | 2 +- .../models/operations/listfolders_request.rb | 13 +++++++++++-- lib/open_api_sdk/sdkconfiguration.rb | 6 +++--- 13 files changed, 57 insertions(+), 28 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index a9262c6..ca7d01c 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 5a2dd83e-da98-455b-8ef9-0100a914efdf management: - docChecksum: db8c112e1f254ff516b8ce26ffe28dd4 + docChecksum: 41e78ddd52d7d4173557ba931d2272dc docVersion: 0.0.1 - speakeasyVersion: 1.505.1 - generationVersion: 2.531.0 - releaseVersion: 0.2.2-alpha.71 - configChecksum: caaf8aa4367afb51da3efe908e408d56 + speakeasyVersion: 1.508.0 + generationVersion: 2.536.0 + releaseVersion: 0.2.2-alpha.72 + configChecksum: 98d4f891f928d7b9648b1a99413f2476 repoURL: https://github.com/dubinc/dub-ruby.git installationURL: https://github.com/dubinc/dub-ruby published: true @@ -1430,6 +1430,10 @@ examples: application/json: {"error": {"code": "internal_server_error", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#internal-server_error"}} listFolders: speakeasy-default-list-folders: + parameters: + query: + page: 1 + pageSize: 50 responses: "200": application/json: [{"id": "", "name": "", "accessLevel": "write", "linkCount": 6783.17, "createdAt": "1713388175774", "updatedAt": "1739253472019"}, {"id": "", "name": "", "accessLevel": "read", "linkCount": 6355.32, "createdAt": "1727947722137", "updatedAt": "1739235143393"}, {"id": "", "name": "", "accessLevel": "write", "linkCount": 861.4, "createdAt": "1709944391778", "updatedAt": "1739293063749"}] diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index a0be810..39e872f 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -15,7 +15,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false ruby: - version: 0.2.2-alpha.71 + version: 0.2.2-alpha.72 author: Dub description: Ruby Client SDK Generated by Speakeasy imports: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index bc0e793..e476b14 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.505.1 +speakeasyVersion: 1.508.0 sources: dub: sourceNamespace: dub - sourceRevisionDigest: sha256:4048f9d0377dfdd025eb1546e58ab9a52ac34a91bb7cc919675be58b334c3482 - sourceBlobDigest: sha256:85580cf3773dfd87c3d9151ace8544c7687d1298a05dfbd2c310d6e816fa61a0 + sourceRevisionDigest: sha256:57e0ea165909640b78e3c442f4daf067017fcf262de86dc5a65998ed0daac478 + sourceBlobDigest: sha256:adedf20cbe668ed6bd859f2b03eb747d151a978f4dbcd1f321b9fe9662dda97f tags: - latest - - speakeasy-sdk-regen-1740616053 + - speakeasy-sdk-regen-1740789016 - 0.0.1 targets: my-first-target: source: dub sourceNamespace: dub - sourceRevisionDigest: sha256:4048f9d0377dfdd025eb1546e58ab9a52ac34a91bb7cc919675be58b334c3482 - sourceBlobDigest: sha256:85580cf3773dfd87c3d9151ace8544c7687d1298a05dfbd2c310d6e816fa61a0 + sourceRevisionDigest: sha256:57e0ea165909640b78e3c442f4daf067017fcf262de86dc5a65998ed0daac478 + sourceBlobDigest: sha256:adedf20cbe668ed6bd859f2b03eb747d151a978f4dbcd1f321b9fe9662dda97f codeSamplesNamespace: code-samples-ruby-my-first-target - codeSamplesRevisionDigest: sha256:825d5cbe91b96a123b4ab64fb6f2fb71773c47144cf8fa9a5c7078c4406f0066 + codeSamplesRevisionDigest: sha256:183e971541c3800f0ce478d56329b56995e12e0f3192ceac99579e4ebf1c852a workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/Gemfile.lock b/Gemfile.lock index 0288911..b697846 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - dub (0.2.2.pre.alpha.71) + dub (0.2.2.pre.alpha.72) faraday faraday-multipart rack diff --git a/RELEASES.md b/RELEASES.md index 8a322f0..f747b87 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -858,4 +858,14 @@ Based on: ### Generated - [ruby v0.2.2-alpha.71] . ### Releases -- [Ruby Gems v0.2.2-alpha.71] https://rubygems.org/gems/dub/versions/0.2.2-alpha.71 - . \ No newline at end of file +- [Ruby Gems v0.2.2-alpha.71] https://rubygems.org/gems/dub/versions/0.2.2-alpha.71 - . + +## 2025-03-01 00:30:00 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.508.0 (2.536.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [ruby v0.2.2-alpha.72] . +### Releases +- [Ruby Gems v0.2.2-alpha.72] https://rubygems.org/gems/dub/versions/0.2.2-alpha.72 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 2930939..1248faf 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -68,7 +68,7 @@ actions: "x-codeSamples": - "lang": "ruby" "label": "listFolders" - "source": "require 'dub'\n\n\ns = ::OpenApiSDK::Dub.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n )\n)\n\n\nreq = ::OpenApiSDK::Operations::ListFoldersRequest.new()\n \nres = s.folders.list(req)\n\nif ! res.folder_schemas.nil?\n # handle response\nend" + "source": "require 'dub'\n\n\ns = ::OpenApiSDK::Dub.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n )\n)\n\n\nreq = ::OpenApiSDK::Operations::ListFoldersRequest.new(\n page: 1.0,\n page_size: 50.0,\n)\n \nres = s.folders.list(req)\n\nif ! res.folder_schemas.nil?\n # handle response\nend" - target: $["paths"]["/folders"]["post"] update: "x-codeSamples": diff --git a/docs/models/operations/listfoldersrequest.md b/docs/models/operations/listfoldersrequest.md index 2017063..484473f 100644 --- a/docs/models/operations/listfoldersrequest.md +++ b/docs/models/operations/listfoldersrequest.md @@ -3,6 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| `search` | *T.nilable(::String)* | :heavy_minus_sign: | The search term to filter the folders by. | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `search` | *T.nilable(::String)* | :heavy_minus_sign: | The search term to filter the folders by. | | +| `include_link_count` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether to include the link count in the response. | | +| `page` | *T.nilable(::Float)* | :heavy_minus_sign: | The page number for pagination. | 1 | +| `page_size` | *T.nilable(::Float)* | :heavy_minus_sign: | The number of items per page. | 50 | \ No newline at end of file diff --git a/docs/sdks/folders/README.md b/docs/sdks/folders/README.md index c4d06f1..4b97f19 100644 --- a/docs/sdks/folders/README.md +++ b/docs/sdks/folders/README.md @@ -70,7 +70,10 @@ s.config_security( ) -req = ::OpenApiSDK::Operations::ListFoldersRequest.new() +req = ::OpenApiSDK::Operations::ListFoldersRequest.new( + page: 1.0, + page_size: 50.0, +) res = s.folders.list(req) diff --git a/dub.gemspec b/dub.gemspec index 8aa6974..a0ad212 100644 --- a/dub.gemspec +++ b/dub.gemspec @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__) Gem::Specification.new do |s| s.name = 'dub' - s.version = '0.2.2-alpha.71' + s.version = '0.2.2-alpha.72' s.platform = Gem::Platform::RUBY s.licenses = ['Apache-2.0'] s.summary = '' diff --git a/lib/open_api_sdk/models/operations/getlinks_request.rb b/lib/open_api_sdk/models/operations/getlinks_request.rb index 3d2b940..916f8f6 100644 --- a/lib/open_api_sdk/models/operations/getlinks_request.rb +++ b/lib/open_api_sdk/models/operations/getlinks_request.rb @@ -32,7 +32,7 @@ class GetLinksRequest < ::Crystalline::FieldAugmented # Deprecated. Use `tagIds` instead. The tag ID to filter the links by. field :tag_id, T.nilable(::String), { 'query_param': { 'field_name': 'tagId', 'style': 'form', 'explode': true } } # The tag IDs to filter the links by. - field :tag_ids, T.nilable(::Object), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode': true } } + field :tag_ids, T.nilable(::Object), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode': false } } # The unique name of the tags assigned to the short link (case insensitive). field :tag_names, T.nilable(::Object), { 'query_param': { 'field_name': 'tagNames', 'style': 'form', 'explode': true } } # The ID of the tenant that created the link inside your system. If set, will only return links for the specified tenant. diff --git a/lib/open_api_sdk/models/operations/getlinkscount_request.rb b/lib/open_api_sdk/models/operations/getlinkscount_request.rb index e9a2a72..8f3df5a 100644 --- a/lib/open_api_sdk/models/operations/getlinkscount_request.rb +++ b/lib/open_api_sdk/models/operations/getlinkscount_request.rb @@ -24,7 +24,7 @@ class GetLinksCountRequest < ::Crystalline::FieldAugmented # Deprecated. Use `tagIds` instead. The tag ID to filter the links by. field :tag_id, T.nilable(::String), { 'query_param': { 'field_name': 'tagId', 'style': 'form', 'explode': true } } # The tag IDs to filter the links by. - field :tag_ids, T.nilable(::Object), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode': true } } + field :tag_ids, T.nilable(::Object), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode': false } } # The unique name of the tags assigned to the short link (case insensitive). field :tag_names, T.nilable(::Object), { 'query_param': { 'field_name': 'tagNames', 'style': 'form', 'explode': true } } # The ID of the tenant that created the link inside your system. If set, will only return links for the specified tenant. diff --git a/lib/open_api_sdk/models/operations/listfolders_request.rb b/lib/open_api_sdk/models/operations/listfolders_request.rb index ee9962d..ce166ff 100644 --- a/lib/open_api_sdk/models/operations/listfolders_request.rb +++ b/lib/open_api_sdk/models/operations/listfolders_request.rb @@ -11,12 +11,21 @@ module Operations class ListFoldersRequest < ::Crystalline::FieldAugmented extend T::Sig + # Whether to include the link count in the response. + field :include_link_count, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'includeLinkCount', 'style': 'form', 'explode': true } } + # The page number for pagination. + field :page, T.nilable(::Float), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } } + # The number of items per page. + field :page_size, T.nilable(::Float), { 'query_param': { 'field_name': 'pageSize', 'style': 'form', 'explode': true } } # The search term to filter the folders by. field :search, T.nilable(::String), { 'query_param': { 'field_name': 'search', 'style': 'form', 'explode': true } } - sig { params(search: T.nilable(::String)).void } - def initialize(search: nil) + sig { params(include_link_count: T.nilable(T::Boolean), page: T.nilable(::Float), page_size: T.nilable(::Float), search: T.nilable(::String)).void } + def initialize(include_link_count: nil, page: nil, page_size: nil, search: nil) + @include_link_count = include_link_count + @page = page + @page_size = page_size @search = search end end diff --git a/lib/open_api_sdk/sdkconfiguration.rb b/lib/open_api_sdk/sdkconfiguration.rb index fdae077..cd154ec 100644 --- a/lib/open_api_sdk/sdkconfiguration.rb +++ b/lib/open_api_sdk/sdkconfiguration.rb @@ -38,9 +38,9 @@ def initialize(client, security, server_url, server_idx) @security = security @language = 'ruby' @openapi_doc_version = '0.0.1' - @sdk_version = '0.2.2-alpha.71' - @gen_version = '2.531.0' - @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.71 2.531.0 0.0.1 dub' + @sdk_version = '0.2.2-alpha.72' + @gen_version = '2.536.0' + @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.72 2.536.0 0.0.1 dub' end sig { returns([String, T::Hash[Symbol, String]]) } From 956444018629d165dd172eb5eb8c0da3b8558891 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Sat, 1 Mar 2025 00:31:16 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow