Skip to content

Commit

Permalink
Merge pull request #91 from dubinc/speakeasy-sdk-regen-1740789016
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.2.2-alpha.72
  • Loading branch information
devkiran authored Mar 1, 2025
2 parents cdb21d8 + 9564440 commit 3b2ddbe
Show file tree
Hide file tree
Showing 13 changed files with 57 additions and 28 deletions.
14 changes: 9 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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": "<id>", "name": "<value>", "accessLevel": "write", "linkCount": 6783.17, "createdAt": "1713388175774", "updatedAt": "1739253472019"}, {"id": "<id>", "name": "<value>", "accessLevel": "read", "linkCount": 6355.32, "createdAt": "1727947722137", "updatedAt": "1739235143393"}, {"id": "<id>", "name": "<value>", "accessLevel": "write", "linkCount": 861.4, "createdAt": "1709944391778", "updatedAt": "1739293063749"}]
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 - .
- [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 - .
2 changes: 1 addition & 1 deletion codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
9 changes: 6 additions & 3 deletions docs/models/operations/listfoldersrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

## Fields

| Field | Type | Required | Description |
| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- |
| `search` | *T.nilable(::String)* | :heavy_minus_sign: | The search term to filter the folders by. |
| 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 |
5 changes: 4 additions & 1 deletion docs/sdks/folders/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion dub.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down
2 changes: 1 addition & 1 deletion lib/open_api_sdk/models/operations/getlinks_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
13 changes: 11 additions & 2 deletions lib/open_api_sdk/models/operations/listfolders_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions lib/open_api_sdk/sdkconfiguration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]]) }
Expand Down

0 comments on commit 3b2ddbe

Please sign in to comment.