Skip to content

Commit

Permalink
Merge pull request #77 from dubinc/speakeasy-sdk-regen-1738110370
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.2.2-alpha.58
  • Loading branch information
devkiran authored Jan 29, 2025
2 parents 0bf7a47 + 8447ca6 commit 2451c6f
Show file tree
Hide file tree
Showing 18 changed files with 224 additions and 61 deletions.
18 changes: 11 additions & 7 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: adaa2bd5ce5c9f12fb83c88e3ea2c2e0
docChecksum: 84dee82a0645f42cc2cc52337e45fbfb
docVersion: 0.0.1
speakeasyVersion: 1.476.2
generationVersion: 2.495.1
releaseVersion: 0.2.2-alpha.57
configChecksum: 4b084241f224f90d8192f4124d14dce3
speakeasyVersion: 1.477.0
generationVersion: 2.497.0
releaseVersion: 0.2.2-alpha.58
configChecksum: cdcf090c7d699c5ee81a4ae42eeb164b
repoURL: https://github.com/dubinc/dub-ruby.git
installationURL: https://github.com/dubinc/dub-ruby
published: true
Expand Down Expand Up @@ -108,6 +108,7 @@ generatedFiles:
- docs/models/operations/interval.md
- docs/models/operations/level.md
- docs/models/operations/link.md
- docs/models/operations/linkprops.md
- docs/models/operations/listdomainsrequest.md
- docs/models/operations/listdomainsresponse.md
- docs/models/operations/listeventsrequest.md
Expand Down Expand Up @@ -314,6 +315,7 @@ generatedFiles:
- lib/open_api_sdk/models/operations/interval.rb
- lib/open_api_sdk/models/operations/level.rb
- lib/open_api_sdk/models/operations/link.rb
- lib/open_api_sdk/models/operations/linkprops.rb
- lib/open_api_sdk/models/operations/listdomains_request.rb
- lib/open_api_sdk/models/operations/listdomains_response.rb
- lib/open_api_sdk/models/operations/listevents_request.rb
Expand Down Expand Up @@ -1178,7 +1180,7 @@ examples:
idOrSlug: "<value>"
responses:
"200":
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "logo": "<value>", "inviteCode": "<value>", "plan": "business extra", "stripeId": "<id>", "billingCycleStart": 5588.34, "paymentFailedAt": "<value>", "stripeConnectId": "<id>", "usage": 5442.21, "usageLimit": 5212.35, "linksUsage": 9699.61, "linksLimit": 4580.49, "salesUsage": 4508.24, "salesLimit": 2627.95, "domainsLimit": 2134.57, "tagsLimit": 9371.46, "usersLimit": 4381.42, "aiUsage": 8013.73, "aiLimit": 788.88, "conversionEnabled": true, "dotLinkClaimed": true, "partnersEnabled": true, "createdAt": "1723223056781", "users": [{"role": "owner"}, {"role": "member"}, {"role": "member"}], "domains": [{"slug": "acme.com", "primary": true, "verified": true}, {"slug": "acme.com", "primary": true, "verified": true}], "store": {"key": "<value>", "key1": "<value>", "key2": "<value>"}}
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "logo": "<value>", "inviteCode": "<value>", "plan": "business extra", "stripeId": "<id>", "billingCycleStart": 5588.34, "paymentFailedAt": "<value>", "stripeConnectId": "<id>", "usage": 5442.21, "usageLimit": 5212.35, "linksUsage": 9699.61, "linksLimit": 4580.49, "salesUsage": 4508.24, "salesLimit": 2627.95, "domainsLimit": 2134.57, "tagsLimit": 9371.46, "usersLimit": 4381.42, "aiUsage": 8013.73, "aiLimit": 788.88, "conversionEnabled": true, "dotLinkClaimed": true, "partnersEnabled": true, "createdAt": "1723223056781", "users": [{"role": "owner"}, {"role": "member"}, {"role": "member"}], "domains": [{"slug": "acme.com", "primary": true, "verified": true}, {"slug": "acme.com", "primary": true, "verified": true}], "store": {"key": "<value>", "key1": "<value>", "key2": "<value>"}, "allowedHostnames": ["dub.sh"]}
"400":
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
"401":
Expand All @@ -1204,7 +1206,7 @@ examples:
idOrSlug: "<value>"
responses:
"200":
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "logo": "<value>", "inviteCode": "<value>", "plan": "enterprise", "stripeId": "<id>", "billingCycleStart": 5971.29, "paymentFailedAt": "<value>", "stripeConnectId": "<id>", "usage": 3446.2, "usageLimit": 9914.64, "linksUsage": 6276.9, "linksLimit": 4888.52, "salesUsage": 9840.08, "salesLimit": 540.62, "domainsLimit": 8965.01, "tagsLimit": 4468.63, "usersLimit": 3115.07, "aiUsage": 2494.4, "aiLimit": 1395.79, "conversionEnabled": false, "dotLinkClaimed": false, "partnersEnabled": true, "createdAt": "1720441680204", "users": [{"role": "member"}, {"role": "owner"}, {"role": "owner"}], "domains": [{"slug": "acme.com", "primary": false, "verified": true}, {"slug": "acme.com", "primary": false, "verified": true}, {"slug": "acme.com", "primary": true, "verified": true}], "store": {"key": "<value>", "key1": "<value>", "key2": "<value>"}}
application/json: {"id": "<id>", "name": "<value>", "slug": "<value>", "logo": "<value>", "inviteCode": "<value>", "plan": "enterprise", "stripeId": "<id>", "billingCycleStart": 5971.29, "paymentFailedAt": "<value>", "stripeConnectId": "<id>", "usage": 3446.2, "usageLimit": 9914.64, "linksUsage": 6276.9, "linksLimit": 4888.52, "salesUsage": 9840.08, "salesLimit": 540.62, "domainsLimit": 8965.01, "tagsLimit": 4468.63, "usersLimit": 3115.07, "aiUsage": 2494.4, "aiLimit": 1395.79, "conversionEnabled": false, "dotLinkClaimed": false, "partnersEnabled": true, "createdAt": "1720441680204", "users": [{"role": "member"}, {"role": "owner"}, {"role": "owner"}], "domains": [{"slug": "acme.com", "primary": false, "verified": true}, {"slug": "acme.com", "primary": false, "verified": true}, {"slug": "acme.com", "primary": true, "verified": true}], "store": {"key": "<value>", "key1": "<value>", "key2": "<value>"}, "allowedHostnames": ["dub.sh"]}
"400":
application/json: {"error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#bad-request"}}
"401":
Expand Down Expand Up @@ -1282,6 +1284,8 @@ examples:
application/json: {"title": "Dub.co - Link Management for Modern Marketing Teams", "description": "Dub.co is the open-source link management infrastructure ...", "image": "https://assets.dub.co/thumbnail.jpg"}
createPartner:
speakeasy-default-create-partner:
requestBody:
application/json: {"programId": "<id>", "name": "<value>", "email": "[email protected]", "username": "Aaliyah_Borer", "linkProps": {"externalId": "123456", "tagIds": ["clux0rgak00011..."]}}
responses:
"201":
application/json: {"id": "<id>", "name": "<value>", "email": "[email protected]", "image": "https://loremflickr.com/1/679?lock=7139282333236917", "country": "Slovenia", "bio": "<value>", "stripeConnectId": "<id>", "payoutsEnabled": false, "createdAt": "1730216871840", "updatedAt": "1738020328182", "status": "pending", "link": {"id": "<id>", "shortLink": "https://agile-defendant.biz/", "domain": "better-fedora.biz", "key": "<key>", "url": "https://calculating-pearl.info/", "clicks": 365.21, "leads": 6216.36, "sales": 6502.37, "saleAmount": 2006.64}, "commissionAmount": 155.52, "earnings": 5235.23}
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
ruby:
version: 0.2.2-alpha.57
version: 0.2.2-alpha.58
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.476.2
speakeasyVersion: 1.477.0
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:4cfc6c3e5a0150848c4433a25247910cb655a21dfa1d8877e065e1d45dada6ba
sourceBlobDigest: sha256:cb6f4266fa1867dc7c1addc33802928e6153d0ec07a01270b22fdc25cc192efa
sourceRevisionDigest: sha256:741f258e975991e1862c4e4bf614f410b7bf65c212ac0e4a3500641ae08dab6f
sourceBlobDigest: sha256:66e1ba2210a453339342266aa844ea89fedd7423aaae1e43745b01bb4d9ab7a5
tags:
- latest
- speakeasy-sdk-regen-1738023995
- speakeasy-sdk-regen-1738110370
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:4cfc6c3e5a0150848c4433a25247910cb655a21dfa1d8877e065e1d45dada6ba
sourceBlobDigest: sha256:cb6f4266fa1867dc7c1addc33802928e6153d0ec07a01270b22fdc25cc192efa
sourceRevisionDigest: sha256:741f258e975991e1862c4e4bf614f410b7bf65c212ac0e4a3500641ae08dab6f
sourceBlobDigest: sha256:66e1ba2210a453339342266aa844ea89fedd7423aaae1e43745b01bb4d9ab7a5
codeSamplesNamespace: code-samples-ruby-my-first-target
codeSamplesRevisionDigest: sha256:7376b548e6bef83ac1b43749296a465fe288d779fd9783e1801fbf9d1e97a35f
codeSamplesRevisionDigest: sha256:ef2bbbce3e5eb952a66cfb5bc8ef315217f8fd0b415a4a701b153f335718b000
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.57)
dub (0.2.2.pre.alpha.58)
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 @@ -718,4 +718,14 @@ Based on:
### Generated
- [ruby v0.2.2-alpha.57] .
### Releases
- [Ruby Gems v0.2.2-alpha.57] https://rubygems.org/gems/dub/versions/0.2.2-alpha.57 - .
- [Ruby Gems v0.2.2-alpha.57] https://rubygems.org/gems/dub/versions/0.2.2-alpha.57 - .

## 2025-01-29 00:25:56
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.477.0 (2.497.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [ruby v0.2.2-alpha.58] .
### Releases
- [Ruby Gems v0.2.2-alpha.58] https://rubygems.org/gems/dub/versions/0.2.2-alpha.58 - .
2 changes: 1 addition & 1 deletion codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ actions:
"x-codeSamples":
- "lang": "ruby"
"label": "createPartner"
"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::CreatePartnerRequestBody.new(\n program_id: \"<id>\",\n name: \"<value>\",\n email: \"[email protected]\",\n username: \"Aaliyah_Borer\",\n)\n \nres = s.partners.create(req)\n\nif ! res.object.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::CreatePartnerRequestBody.new(\n program_id: \"<id>\",\n name: \"<value>\",\n email: \"[email protected]\",\n username: \"Aaliyah_Borer\",\n link_props: ::OpenApiSDK::Operations::LinkProps.new(\n external_id: \"123456\",\n tag_ids: [\n \"clux0rgak00011...\",\n ],\n ),\n)\n \nres = s.partners.create(req)\n\nif ! res.object.nil?\n # handle response\nend"
- target: $["paths"]["/qr"]["get"]
update:
"x-codeSamples":
Expand Down
3 changes: 2 additions & 1 deletion docs/models/operations/createpartnerrequestbody.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@
| `username` | *::String* | :heavy_check_mark: | A unique username for the partner in your system. This will be used to create a short link for the partner using your program's default domain. |
| `image` | *T.nilable(::String)* | :heavy_minus_sign: | Avatar image for the partner – if not provided, a default avatar will be used. |
| `country` | [T.nilable(::OpenApiSDK::Operations::Country)](../../models/operations/country.md) | :heavy_minus_sign: | Country where the partner is based. |
| `description` | *T.nilable(::String)* | :heavy_minus_sign: | A brief description of the partner and their background. |
| `description` | *T.nilable(::String)* | :heavy_minus_sign: | A brief description of the partner and their background. |
| `link_props` | [T.nilable(::OpenApiSDK::Operations::LinkProps)](../../models/operations/linkprops.md) | :heavy_minus_sign: | Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner. |
Loading

0 comments on commit 2451c6f

Please sign in to comment.