Skip to content

Commit

Permalink
Merge pull request #39 from dubinc/speakeasy-sdk-regen-1727483135
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate 0.2.2-alpha.20
  • Loading branch information
devkiran authored Sep 28, 2024
2 parents e49a600 + 3966c25 commit 64dc70b
Show file tree
Hide file tree
Showing 33 changed files with 93 additions and 61 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ Metrics:
Enabled: false
Style/IfInsideElse:
Enabled: false
# Temporary until Ruby deals with empty responses correctly
Style/EmptyElse:
Enabled: false
Style/GuardClause:
Enabled: false
Style/ConditionalAssignment:
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
lockVersion: 2.0.0
id: 5a2dd83e-da98-455b-8ef9-0100a914efdf
management:
docChecksum: b6e0f68b0350f243f5aab5565767940a
docChecksum: 596f43d83d9b42d6000040c93ba5018d
docVersion: 0.0.1
speakeasyVersion: 1.402.14
generationVersion: 2.422.22
releaseVersion: 0.2.2-alpha.19
configChecksum: 32cb535a89cfd2284794dfbd03dde1c7
speakeasyVersion: 1.404.5
generationVersion: 2.426.2
releaseVersion: 0.2.2-alpha.20
configChecksum: 96c720d42460bdf5af4e46aa363d3881
repoURL: https://github.com/dubinc/dub-ruby.git
installationURL: https://github.com/dubinc/dub-ruby
published: true
features:
ruby:
core: 3.2.24
core: 3.2.25
deprecations: 2.81.1
examples: 2.81.3
flattening: 2.81.1
Expand Down Expand Up @@ -435,7 +435,7 @@ examples:
parameters:
query:
linkId: "clux0rgak00011..."
externalId: "ext_123456"
externalId: "123456"
responses:
"200":
application/json: {"id": "<id>", "domain": "ringed-blow.name", "key": "<key>", "externalId": "<value>", "url": "https://monumental-spaghetti.name", "trackConversion": false, "archived": true, "expiresAt": "<value>", "expiredUrl": "https://joyous-relative.info", "password": "H9v5zJBmg5IWAUj", "proxy": false, "title": "<value>", "description": "Seamless exuding focus group", "image": "https://loremflickr.com/640/480", "video": "<value>", "rewrite": true, "doIndex": true, "ios": "<value>", "android": "<value>", "publicStats": true, "tagId": "<value>", "tags": [], "comments": "<value>", "shortLink": "http://mundane-bee.biz", "qrCode": "http://fuzzy-fishbone.biz", "utm_source": "<value>", "utm_medium": "<value>", "utm_campaign": "<value>", "utm_term": "<value>", "utm_content": "<value>", "userId": "<value>", "workspaceId": "<value>", "clicks": "8930.92", "lastClicked": "<value>", "leads": "2433.54", "sales": "21.08", "saleAmount": "7802.62", "createdAt": "<value>", "updatedAt": "<value>", "projectId": "<value>"}
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
ruby:
version: 0.2.2-alpha.19
version: 0.2.2-alpha.20
author: Dub
description: Ruby Client SDK Generated by Speakeasy
imports:
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
speakeasyVersion: 1.402.14
speakeasyVersion: 1.404.5
sources:
dub:
sourceNamespace: dub
sourceRevisionDigest: sha256:f01cf74ff9328c2e96356aa0aea2feaa5cec56a2456b2fe8b8a9692388f82c1a
sourceBlobDigest: sha256:33d3cacfd69c4ff6ff86a3c755cfd2f755deda34808afb53d850c36707d6a713
sourceRevisionDigest: sha256:a8ea391405177766b80bc4a56733148ac322f1fd33b6af5a1dc498d52b25b619
sourceBlobDigest: sha256:a6fc7aee6dd5b9b472698933d66c1cbcf2ec27b786ff443fa20991bb5281f50e
tags:
- latest
- main
targets:
my-first-target:
source: dub
sourceNamespace: dub
sourceRevisionDigest: sha256:f01cf74ff9328c2e96356aa0aea2feaa5cec56a2456b2fe8b8a9692388f82c1a
sourceBlobDigest: sha256:33d3cacfd69c4ff6ff86a3c755cfd2f755deda34808afb53d850c36707d6a713
sourceRevisionDigest: sha256:a8ea391405177766b80bc4a56733148ac322f1fd33b6af5a1dc498d52b25b619
sourceBlobDigest: sha256:a6fc7aee6dd5b9b472698933d66c1cbcf2ec27b786ff443fa20991bb5281f50e
codeSamplesNamespace: code-samples-ruby-my-first-target
codeSamplesRevisionDigest: sha256:26c4208b579c1ca497bf8f8bf9afaf873adecabbb69d20e17f4bea1c19d2037f
codeSamplesRevisionDigest: sha256:206029030ed38e6caa75a15e23b71e88d31e0da28c2a5d98fd5505af7cc7872c
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.19)
dub (0.2.2.pre.alpha.20)
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 @@ -338,4 +338,14 @@ Based on:
### Generated
- [ruby v0.2.2-alpha.19] .
### Releases
- [Ruby Gems v0.2.2-alpha.19] https://rubygems.org/gems/dub/versions/0.2.2-alpha.19 - .
- [Ruby Gems v0.2.2-alpha.19] https://rubygems.org/gems/dub/versions/0.2.2-alpha.19 - .

## 2024-09-28 00:25:30
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.404.5 (2.426.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [ruby v0.2.2-alpha.20] .
### Releases
- [Ruby Gems v0.2.2-alpha.20] https://rubygems.org/gems/dub/versions/0.2.2-alpha.20 - .
14 changes: 7 additions & 7 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ actions:
"x-codeSamples":
- "lang": "ruby"
"label": "bulkUpdateLinks"
"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::BulkUpdateLinksRequestBody.new(\n link_ids: [\n \"<value>\",\n ],\n data: ::OpenApiSDK::Operations::Data.new(\n url: \"https://google.com\",\n tag_ids: [\n \"clux0rgak00011...\",\n ],\n ),\n)\n \nres = s.links.update_many(req)\n\nif ! res.link_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::BulkUpdateLinksRequestBody.new(\n data: ::OpenApiSDK::Operations::Data.new(\n url: \"https://google.com\",\n tag_ids: [\n \"clux0rgak00011...\",\n ],\n ),\n)\n \nres = s.links.update_many(req)\n\nif ! res.link_schemas.nil?\n # handle response\nend"
- target: $["paths"]["/links/bulk"]["post"]
update:
"x-codeSamples":
Expand All @@ -80,7 +80,7 @@ actions:
"x-codeSamples":
- "lang": "ruby"
"label": "getLinkInfo"
"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::GetLinkInfoRequest.new(\n link_id: \"clux0rgak00011...\",\n external_id: \"ext_123456\",\n)\n \nres = s.links.get(req)\n\nif ! res.link_schema.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::GetLinkInfoRequest.new(\n link_id: \"clux0rgak00011...\",\n external_id: \"123456\",\n)\n \nres = s.links.get(req)\n\nif ! res.link_schema.nil?\n # handle response\nend"
- target: $["paths"]["/links/upsert"]["put"]
update:
"x-codeSamples":
Expand All @@ -92,13 +92,13 @@ actions:
"x-codeSamples":
- "lang": "ruby"
"label": "deleteLink"
"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 \nres = s.links.delete(link_id=\"<value>\")\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 \nres = s.links.delete(link_id=\"<id>\")\n\nif ! res.object.nil?\n # handle response\nend"
- target: $["paths"]["/links/{linkId}"]["patch"]
update:
"x-codeSamples":
- "lang": "ruby"
"label": "updateLink"
"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 \nres = s.links.update(link_id=\"<value>\", request_body=::OpenApiSDK::Operations::UpdateLinkRequestBody.new(\n url: \"https://google.com\",\n external_id: \"123456\",\n tag_ids: [\n \"clux0rgak00011...\",\n ],\n))\n\nif ! res.link_schema.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 \nres = s.links.update(link_id=\"<id>\", request_body=::OpenApiSDK::Operations::UpdateLinkRequestBody.new(\n url: \"https://google.com\",\n external_id: \"123456\",\n tag_ids: [\n \"clux0rgak00011...\",\n ],\n))\n\nif ! res.link_schema.nil?\n # handle response\nend"
- target: $["paths"]["/metatags"]["get"]
update:
"x-codeSamples":
Expand Down Expand Up @@ -140,19 +140,19 @@ actions:
"x-codeSamples":
- "lang": "ruby"
"label": "trackCustomer"
"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::TrackCustomerRequestBody.new(\n customer_id: \"<value>\",\n)\n \nres = s.track.customer(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::TrackCustomerRequestBody.new(\n customer_id: \"<id>\",\n)\n \nres = s.track.customer(req)\n\nif ! res.object.nil?\n # handle response\nend"
- target: $["paths"]["/track/lead"]["post"]
update:
"x-codeSamples":
- "lang": "ruby"
"label": "trackLead"
"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::TrackLeadRequestBody.new(\n click_id: \"<value>\",\n event_name: \"Sign up\",\n customer_id: \"<value>\",\n)\n \nres = s.track.lead(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::TrackLeadRequestBody.new(\n click_id: \"<id>\",\n event_name: \"Sign up\",\n customer_id: \"<id>\",\n)\n \nres = s.track.lead(req)\n\nif ! res.object.nil?\n # handle response\nend"
- target: $["paths"]["/track/sale"]["post"]
update:
"x-codeSamples":
- "lang": "ruby"
"label": "trackSale"
"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::TrackSaleRequestBody.new(\n customer_id: \"<value>\",\n amount: 996500,\n payment_processor: ::OpenApiSDK::Operations::PaymentProcessor::PADDLE,\n event_name: \"Purchase\",\n)\n \nres = s.track.sale(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::TrackSaleRequestBody.new(\n customer_id: \"<id>\",\n amount: 996500,\n payment_processor: ::OpenApiSDK::Operations::PaymentProcessor::PADDLE,\n event_name: \"Purchase\",\n)\n \nres = s.track.sale(req)\n\nif ! res.object.nil?\n # handle response\nend"
- target: $["paths"]["/workspaces/{idOrSlug}"]["get"]
update:
"x-codeSamples":
Expand Down
9 changes: 5 additions & 4 deletions docs/models/operations/bulkupdatelinksrequestbody.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

## Fields

| Field | Type | Required | Description |
| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- |
| `link_ids` | T::Array<*::String*> | :heavy_check_mark: | N/A |
| `data` | [::OpenApiSDK::Operations::Data](../../models/operations/data.md) | :heavy_check_mark: | N/A |
| Field | Type | Required | Description |
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
| `link_ids` | T::Array<*::String*> | :heavy_minus_sign: | The IDs of the links to update. Takes precedence over `externalIds`. |
| `external_ids` | T::Array<*::String*> | :heavy_minus_sign: | The external IDs of the links to update as stored in your database. |
| `data` | [::OpenApiSDK::Operations::Data](../../models/operations/data.md) | :heavy_check_mark: | N/A |
12 changes: 6 additions & 6 deletions docs/models/operations/getlinkinforequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

## Fields

| Field | Type | Required | Description | Example |
| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| `domain` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | |
| `key` | *T.nilable(::String)* | :heavy_minus_sign: | The key of the link to retrieve. E.g. for `d.to/github`, the key is `github`. | |
| `link_id` | *T.nilable(::String)* | :heavy_minus_sign: | The unique ID of the short link. | clux0rgak00011... |
| `external_id` | *T.nilable(::String)* | :heavy_minus_sign: | This is the ID of the link in the your database. Must be prefixed with `ext_` when passed as a query parameter. | ext_123456 |
| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| `domain` | *T.nilable(::String)* | :heavy_minus_sign: | N/A | |
| `key` | *T.nilable(::String)* | :heavy_minus_sign: | The key of the link to retrieve. E.g. for `d.to/github`, the key is `github`. | |
| `link_id` | *T.nilable(::String)* | :heavy_minus_sign: | The unique ID of the short link. | clux0rgak00011... |
| `external_id` | *T.nilable(::String)* | :heavy_minus_sign: | This is the ID of the link in the your database. | 123456 |
2 changes: 2 additions & 0 deletions docs/models/shared/badrequest.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# BadRequest

The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).


## Fields

Expand Down
2 changes: 2 additions & 0 deletions docs/models/shared/conflict.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Conflict

This response is sent when a request conflicts with the current state of the server.


## Fields

Expand Down
Loading

0 comments on commit 64dc70b

Please sign in to comment.