Skip to content

Commit

Permalink
Merge pull request #79 from dubinc/speakeasy-sdk-regen-1738628770
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.2.2-alpha.60
  • Loading branch information
devkiran authored Feb 4, 2025
2 parents 6ce09cd + 87aaebd commit 828f596
Show file tree
Hide file tree
Showing 18 changed files with 472 additions and 19 deletions.
41 changes: 36 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: 35e4c58336f3289dc7d36cd16ac407d9
docChecksum: 3221eb44e26e0b7b6262f2e3cf1c786a
docVersion: 0.0.1
speakeasyVersion: 1.481.1
generationVersion: 2.500.5
releaseVersion: 0.2.2-alpha.59
configChecksum: 07f8c5e6cf1fe76e341758cb8b0ba8aa
speakeasyVersion: 1.483.0
generationVersion: 2.502.0
releaseVersion: 0.2.2-alpha.60
configChecksum: 8bca03315bcd90a5ae26d298bc60493f
repoURL: https://github.com/dubinc/dub-ruby.git
installationURL: https://github.com/dubinc/dub-ruby
published: true
Expand Down Expand Up @@ -53,6 +53,9 @@ generatedFiles:
- docs/models/operations/createlinkresponse.md
- docs/models/operations/createpartnerdiscount.md
- docs/models/operations/createpartnerinterval.md
- docs/models/operations/createpartnerlinklinkprops.md
- docs/models/operations/createpartnerlinkrequestbody.md
- docs/models/operations/createpartnerlinkresponse.md
- docs/models/operations/createpartnerrequestbody.md
- docs/models/operations/createpartnerresponse.md
- docs/models/operations/createpartnerresponsebody.md
Expand Down Expand Up @@ -264,6 +267,9 @@ generatedFiles:
- lib/open_api_sdk/models/operations/createpartner_response.rb
- lib/open_api_sdk/models/operations/createpartner_responsebody.rb
- lib/open_api_sdk/models/operations/createpartner_type.rb
- lib/open_api_sdk/models/operations/createpartnerlink_linkprops.rb
- lib/open_api_sdk/models/operations/createpartnerlink_requestbody.rb
- lib/open_api_sdk/models/operations/createpartnerlink_response.rb
- lib/open_api_sdk/models/operations/createtag_requestbody.rb
- lib/open_api_sdk/models/operations/createtag_response.rb
- lib/open_api_sdk/models/operations/customer.rb
Expand Down Expand Up @@ -1307,5 +1313,30 @@ examples:
application/json: {"error": {"code": "rate_limit_exceeded", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#rate-limit_exceeded"}}
"500":
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"}}
createPartnerLink:
speakeasy-default-create-partner-link:
requestBody:
application/json: {"programId": "<id>", "url": "https://necessary-brief.name", "linkProps": {"externalId": "123456", "tagIds": ["clux0rgak00011..."]}}
responses:
"201":
application/json: {"id": "<id>", "domain": "inferior-louse.org", "key": "<key>", "url": "https://lighthearted-subexpression.net", "trackConversion": true, "externalId": "<id>", "tenantId": "<id>", "programId": "<id>", "partnerId": "<id>", "archived": false, "expiresAt": "1754305632811", "expiredUrl": "https://acceptable-solution.com", "password": "CRFmmigZdFo7_Sd", "proxy": true, "title": "<value>", "description": "merrily stay ouch starch glittering repeat", "image": "https://picsum.photos/seed/qQVGzy2/555/2692", "video": "https://picsum.videos/seed/tYFhXY/1788/3108", "rewrite": true, "doIndex": false, "ios": "<value>", "android": "<id>", "geo": {}, "publicStats": false, "tagId": "<id>", "tags": [{"id": "<id>", "name": "<value>", "color": "purple"}], "webhookIds": ["<value>"], "comments": "per blissfully maintainer moist lest unless", "shortLink": "https://equatorial-mouser.biz", "qrCode": "https://wry-baritone.net/", "utm_source": "<value>", "utm_medium": "<value>", "utm_campaign": "<value>", "utm_term": "<value>", "utm_content": "<value>", "userId": "<id>", "workspaceId": "<id>", "clicks": 2531.62, "lastClicked": "<value>", "leads": 189.59, "sales": 4658.39, "saleAmount": 9705.38, "createdAt": "1719659714941", "updatedAt": "1738625113730", "projectId": "<id>"}
"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":
application/json: {"error": {"code": "unauthorized", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unauthorized"}}
"403":
application/json: {"error": {"code": "forbidden", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#forbidden"}}
"404":
application/json: {"error": {"code": "not_found", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#not-found"}}
"409":
application/json: {"error": {"code": "conflict", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#conflict"}}
"410":
application/json: {"error": {"code": "invite_expired", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#invite-expired"}}
"422":
application/json: {"error": {"code": "unprocessable_entity", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#unprocessable-entity"}}
"429":
application/json: {"error": {"code": "rate_limit_exceeded", "message": "The requested resource was not found.", "doc_url": "https://dub.co/docs/api-reference/errors#rate-limit_exceeded"}}
"500":
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"}}
examplesVersion: 1.0.0
generatedTests: {}
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.59
version: 0.2.2-alpha.60
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.481.1
speakeasyVersion: 1.483.0
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:35e0d43bc22466f2b3123c89af55fb2795faab7ba45d389e579d3e5a35b5b788
sourceBlobDigest: sha256:451be136201f6f2abfe71e31c9d268f24d14c1a911aad964414e9e62d708dda3
sourceRevisionDigest: sha256:3a88f242a386976ac33526c0985b9764422ced71d5bfd20486c90a013d7e0087
sourceBlobDigest: sha256:07d9325feb01f432d02cf3ae4943fed8a9f9c9fdacf649eb143973253d0348ac
tags:
- latest
- speakeasy-sdk-regen-1738369717
- speakeasy-sdk-regen-1738628770
- 0.0.1
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:35e0d43bc22466f2b3123c89af55fb2795faab7ba45d389e579d3e5a35b5b788
sourceBlobDigest: sha256:451be136201f6f2abfe71e31c9d268f24d14c1a911aad964414e9e62d708dda3
sourceRevisionDigest: sha256:3a88f242a386976ac33526c0985b9764422ced71d5bfd20486c90a013d7e0087
sourceBlobDigest: sha256:07d9325feb01f432d02cf3ae4943fed8a9f9c9fdacf649eb143973253d0348ac
codeSamplesNamespace: code-samples-ruby-my-first-target
codeSamplesRevisionDigest: sha256:594b3c73bd192d59f28e76933b794bf931fc02131877af3bdba5a5d4cc2dd1e7
codeSamplesRevisionDigest: sha256:96db8b1fcdfb3b696fda1765fdb9606fc139cd5bf8f0fbea5916c135f1f92b1d
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.59)
dub (0.2.2.pre.alpha.60)
faraday
faraday-multipart
rack
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ end
### [partners](docs/sdks/partners/README.md)

* [create](docs/sdks/partners/README.md#create) - Create a new partner
* [create_link](docs/sdks/partners/README.md#create_link) - Create a link for a partner

### [qr_codes](docs/sdks/qrcodes/README.md)

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -738,4 +738,14 @@ Based on:
### Generated
- [ruby v0.2.2-alpha.59] .
### Releases
- [Ruby Gems v0.2.2-alpha.59] https://rubygems.org/gems/dub/versions/0.2.2-alpha.59 - .
- [Ruby Gems v0.2.2-alpha.59] https://rubygems.org/gems/dub/versions/0.2.2-alpha.59 - .

## 2025-02-04 00:25:56
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.483.0 (2.502.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [ruby v0.2.2-alpha.60] .
### Releases
- [Ruby Gems v0.2.2-alpha.60] https://rubygems.org/gems/dub/versions/0.2.2-alpha.60 - .
6 changes: 6 additions & 0 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ actions:
- "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 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"]["/partners/links"]["post"]
update:
"x-codeSamples":
- "lang": "ruby"
"label": "createPartnerLink"
"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::CreatePartnerLinkRequestBody.new(\n program_id: \"<id>\",\n url: \"https://necessary-brief.name\",\n link_props: ::OpenApiSDK::Operations::CreatePartnerLinkLinkProps.new(\n external_id: \"123456\",\n tag_ids: [\n \"clux0rgak00011...\",\n ],\n ),\n)\n \nres = s.partners.create_link(req)\n\nif ! res.link_schema.nil?\n # handle response\nend"
- target: $["paths"]["/qr"]["get"]
update:
"x-codeSamples":
Expand Down
Loading

0 comments on commit 828f596

Please sign in to comment.