diff --git a/.rubocop.yml b/.rubocop.yml index 7b9c01e..f229c5a 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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: diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index e5a0f81..274550e 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -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 @@ -435,7 +435,7 @@ examples: parameters: query: linkId: "clux0rgak00011..." - externalId: "ext_123456" + externalId: "123456" responses: "200": application/json: {"id": "", "domain": "ringed-blow.name", "key": "", "externalId": "", "url": "https://monumental-spaghetti.name", "trackConversion": false, "archived": true, "expiresAt": "", "expiredUrl": "https://joyous-relative.info", "password": "H9v5zJBmg5IWAUj", "proxy": false, "title": "", "description": "Seamless exuding focus group", "image": "https://loremflickr.com/640/480", "video": "", "rewrite": true, "doIndex": true, "ios": "", "android": "", "publicStats": true, "tagId": "", "tags": [], "comments": "", "shortLink": "http://mundane-bee.biz", "qrCode": "http://fuzzy-fishbone.biz", "utm_source": "", "utm_medium": "", "utm_campaign": "", "utm_term": "", "utm_content": "", "userId": "", "workspaceId": "", "clicks": "8930.92", "lastClicked": "", "leads": "2433.54", "sales": "21.08", "saleAmount": "7802.62", "createdAt": "", "updatedAt": "", "projectId": ""} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 5a77127..6cd096a 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -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: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 472c307..dce6ca7 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -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 @@ -11,10 +11,10 @@ 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 diff --git a/Gemfile.lock b/Gemfile.lock index 3f2097f..290fb7e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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 diff --git a/RELEASES.md b/RELEASES.md index 876e2ed..d776660 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -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 - . \ No newline at end of file +- [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 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 0f65e8c..be98dbd 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -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 \"\",\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": @@ -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": @@ -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=\"\")\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=\"\")\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=\"\", 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=\"\", 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": @@ -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: \"\",\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: \"\",\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: \"\",\n event_name: \"Sign up\",\n customer_id: \"\",\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: \"\",\n event_name: \"Sign up\",\n customer_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: \"\",\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: \"\",\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": diff --git a/docs/models/operations/bulkupdatelinksrequestbody.md b/docs/models/operations/bulkupdatelinksrequestbody.md index bbf4710..e619792 100644 --- a/docs/models/operations/bulkupdatelinksrequestbody.md +++ b/docs/models/operations/bulkupdatelinksrequestbody.md @@ -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 | \ No newline at end of file +| 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 | \ No newline at end of file diff --git a/docs/models/operations/getlinkinforequest.md b/docs/models/operations/getlinkinforequest.md index c2feaea..c6175ba 100644 --- a/docs/models/operations/getlinkinforequest.md +++ b/docs/models/operations/getlinkinforequest.md @@ -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 | \ No newline at end of file +| 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 | \ No newline at end of file diff --git a/docs/models/shared/badrequest.md b/docs/models/shared/badrequest.md index 7d24d9a..a69ee31 100644 --- a/docs/models/shared/badrequest.md +++ b/docs/models/shared/badrequest.md @@ -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 diff --git a/docs/models/shared/conflict.md b/docs/models/shared/conflict.md index 8dc0ea4..93dc4f7 100644 --- a/docs/models/shared/conflict.md +++ b/docs/models/shared/conflict.md @@ -1,5 +1,7 @@ # Conflict +This response is sent when a request conflicts with the current state of the server. + ## Fields diff --git a/docs/models/shared/forbidden.md b/docs/models/shared/forbidden.md index 615200a..37e511a 100644 --- a/docs/models/shared/forbidden.md +++ b/docs/models/shared/forbidden.md @@ -1,5 +1,7 @@ # Forbidden +The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server. + ## Fields diff --git a/docs/models/shared/internalservererror.md b/docs/models/shared/internalservererror.md index f8fc2cf..d16a025 100644 --- a/docs/models/shared/internalservererror.md +++ b/docs/models/shared/internalservererror.md @@ -1,5 +1,7 @@ # InternalServerError +The server has encountered a situation it does not know how to handle. + ## Fields diff --git a/docs/models/shared/inviteexpired.md b/docs/models/shared/inviteexpired.md index 9c9d05a..73c7bb0 100644 --- a/docs/models/shared/inviteexpired.md +++ b/docs/models/shared/inviteexpired.md @@ -1,5 +1,7 @@ # InviteExpired +This response is sent when the requested content has been permanently deleted from server, with no forwarding address. + ## Fields diff --git a/docs/models/shared/notfound.md b/docs/models/shared/notfound.md index 28639e4..c5d484e 100644 --- a/docs/models/shared/notfound.md +++ b/docs/models/shared/notfound.md @@ -1,5 +1,7 @@ # NotFound +The server cannot find the requested resource. + ## Fields diff --git a/docs/models/shared/ratelimitexceeded.md b/docs/models/shared/ratelimitexceeded.md index cc29427..96a8afc 100644 --- a/docs/models/shared/ratelimitexceeded.md +++ b/docs/models/shared/ratelimitexceeded.md @@ -1,5 +1,7 @@ # RateLimitExceeded +The user has sent too many requests in a given amount of time ("rate limiting") + ## Fields diff --git a/docs/models/shared/unauthorized.md b/docs/models/shared/unauthorized.md index 26596f2..d7d5949 100644 --- a/docs/models/shared/unauthorized.md +++ b/docs/models/shared/unauthorized.md @@ -1,5 +1,7 @@ # Unauthorized +Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response. + ## Fields diff --git a/docs/models/shared/unprocessableentity.md b/docs/models/shared/unprocessableentity.md index 494d212..0159072 100644 --- a/docs/models/shared/unprocessableentity.md +++ b/docs/models/shared/unprocessableentity.md @@ -1,5 +1,7 @@ # UnprocessableEntity +The request was well-formed but was unable to be followed due to semantic errors. + ## Fields diff --git a/docs/sdks/links/README.md b/docs/sdks/links/README.md index f89f66c..f91564c 100644 --- a/docs/sdks/links/README.md +++ b/docs/sdks/links/README.md @@ -167,7 +167,7 @@ s.config_security( req = ::OpenApiSDK::Operations::GetLinkInfoRequest.new( link_id: "clux0rgak00011...", - external_id: "ext_123456", + external_id: "123456", ) res = s.links.get(req) @@ -209,7 +209,7 @@ s.config_security( ) -res = s.links.update(link_id="", request_body=::OpenApiSDK::Operations::UpdateLinkRequestBody.new( +res = s.links.update(link_id="", request_body=::OpenApiSDK::Operations::UpdateLinkRequestBody.new( url: "https://google.com", external_id: "123456", tag_ids: [ @@ -255,7 +255,7 @@ s.config_security( ) -res = s.links.delete(link_id="") +res = s.links.delete(link_id="") if ! res.object.nil? # handle response @@ -344,9 +344,6 @@ s.config_security( req = ::OpenApiSDK::Operations::BulkUpdateLinksRequestBody.new( - link_ids: [ - "", - ], data: ::OpenApiSDK::Operations::Data.new( url: "https://google.com", tag_ids: [ diff --git a/docs/sdks/track/README.md b/docs/sdks/track/README.md index c6f06f7..6feeb40 100644 --- a/docs/sdks/track/README.md +++ b/docs/sdks/track/README.md @@ -27,9 +27,9 @@ s.config_security( req = ::OpenApiSDK::Operations::TrackLeadRequestBody.new( - click_id: "", + click_id: "", event_name: "Sign up", - customer_id: "", + customer_id: "", ) res = s.track.lead(req) @@ -72,7 +72,7 @@ s.config_security( req = ::OpenApiSDK::Operations::TrackSaleRequestBody.new( - customer_id: "", + customer_id: "", amount: 996500, payment_processor: ::OpenApiSDK::Operations::PaymentProcessor::PADDLE, event_name: "Purchase", @@ -118,7 +118,7 @@ s.config_security( req = ::OpenApiSDK::Operations::TrackCustomerRequestBody.new( - customer_id: "", + customer_id: "", ) res = s.track.customer(req) diff --git a/dub.gemspec b/dub.gemspec index c9c35c7..bbed2e1 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.19' + s.version = '0.2.2-alpha.20' s.platform = Gem::Platform::RUBY s.licenses = ['Apache-2.0'] s.summary = '' diff --git a/lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb b/lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb index b5cd2a1..986ffa9 100644 --- a/lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb +++ b/lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb @@ -13,13 +13,16 @@ class BulkUpdateLinksRequestBody < ::OpenApiSDK::Utils::FieldAugmented field :data, ::OpenApiSDK::Operations::Data, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('data') } } + # The external IDs of the links to update as stored in your database. + field :external_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('externalIds') } } + # The IDs of the links to update. Takes precedence over `externalIds`. + field :link_ids, T.nilable(T::Array[::String]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('linkIds') } } - field :link_ids, T::Array[::String], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('linkIds') } } - - sig { params(data: ::OpenApiSDK::Operations::Data, link_ids: T::Array[::String]).void } - def initialize(data: nil, link_ids: nil) + sig { params(data: ::OpenApiSDK::Operations::Data, external_ids: T.nilable(T::Array[::String]), link_ids: T.nilable(T::Array[::String])).void } + def initialize(data: nil, external_ids: nil, link_ids: nil) @data = data + @external_ids = external_ids @link_ids = link_ids end end diff --git a/lib/open_api_sdk/models/operations/getlinkinfo_request.rb b/lib/open_api_sdk/models/operations/getlinkinfo_request.rb index 7985090..4261a46 100644 --- a/lib/open_api_sdk/models/operations/getlinkinfo_request.rb +++ b/lib/open_api_sdk/models/operations/getlinkinfo_request.rb @@ -13,7 +13,7 @@ class GetLinkInfoRequest < ::OpenApiSDK::Utils::FieldAugmented field :domain, T.nilable(::String), { 'query_param': { 'field_name': 'domain', 'style': 'form', 'explode': true } } - # This is the ID of the link in the your database. Must be prefixed with `ext_` when passed as a query parameter. + # This is the ID of the link in the your database. field :external_id, T.nilable(::String), { 'query_param': { 'field_name': 'externalId', 'style': 'form', 'explode': true } } # The key of the link to retrieve. E.g. for `d.to/github`, the key is `github`. field :key, T.nilable(::String), { 'query_param': { 'field_name': 'key', 'style': 'form', 'explode': true } } diff --git a/lib/open_api_sdk/models/shared/badrequest.rb b/lib/open_api_sdk/models/shared/badrequest.rb index 5bfd0a1..e9512ae 100644 --- a/lib/open_api_sdk/models/shared/badrequest.rb +++ b/lib/open_api_sdk/models/shared/badrequest.rb @@ -7,7 +7,7 @@ module OpenApiSDK module Shared - + # 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). class BadRequest < ::OpenApiSDK::Utils::FieldAugmented extend T::Sig diff --git a/lib/open_api_sdk/models/shared/conflict.rb b/lib/open_api_sdk/models/shared/conflict.rb index 3860b09..3cf5239 100644 --- a/lib/open_api_sdk/models/shared/conflict.rb +++ b/lib/open_api_sdk/models/shared/conflict.rb @@ -7,7 +7,7 @@ module OpenApiSDK module Shared - + # This response is sent when a request conflicts with the current state of the server. class Conflict < ::OpenApiSDK::Utils::FieldAugmented extend T::Sig diff --git a/lib/open_api_sdk/models/shared/forbidden.rb b/lib/open_api_sdk/models/shared/forbidden.rb index c4475d5..4ad4b30 100644 --- a/lib/open_api_sdk/models/shared/forbidden.rb +++ b/lib/open_api_sdk/models/shared/forbidden.rb @@ -7,7 +7,7 @@ module OpenApiSDK module Shared - + # The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server. class Forbidden < ::OpenApiSDK::Utils::FieldAugmented extend T::Sig diff --git a/lib/open_api_sdk/models/shared/internalservererror.rb b/lib/open_api_sdk/models/shared/internalservererror.rb index 2dd187b..3122df3 100644 --- a/lib/open_api_sdk/models/shared/internalservererror.rb +++ b/lib/open_api_sdk/models/shared/internalservererror.rb @@ -7,7 +7,7 @@ module OpenApiSDK module Shared - + # The server has encountered a situation it does not know how to handle. class InternalServerError < ::OpenApiSDK::Utils::FieldAugmented extend T::Sig diff --git a/lib/open_api_sdk/models/shared/inviteexpired.rb b/lib/open_api_sdk/models/shared/inviteexpired.rb index dfe28e1..77e9104 100644 --- a/lib/open_api_sdk/models/shared/inviteexpired.rb +++ b/lib/open_api_sdk/models/shared/inviteexpired.rb @@ -7,7 +7,7 @@ module OpenApiSDK module Shared - + # This response is sent when the requested content has been permanently deleted from server, with no forwarding address. class InviteExpired < ::OpenApiSDK::Utils::FieldAugmented extend T::Sig diff --git a/lib/open_api_sdk/models/shared/notfound.rb b/lib/open_api_sdk/models/shared/notfound.rb index 7f5b340..17636bc 100644 --- a/lib/open_api_sdk/models/shared/notfound.rb +++ b/lib/open_api_sdk/models/shared/notfound.rb @@ -7,7 +7,7 @@ module OpenApiSDK module Shared - + # The server cannot find the requested resource. class NotFound < ::OpenApiSDK::Utils::FieldAugmented extend T::Sig diff --git a/lib/open_api_sdk/models/shared/ratelimitexceeded.rb b/lib/open_api_sdk/models/shared/ratelimitexceeded.rb index c993305..67773ef 100644 --- a/lib/open_api_sdk/models/shared/ratelimitexceeded.rb +++ b/lib/open_api_sdk/models/shared/ratelimitexceeded.rb @@ -7,7 +7,7 @@ module OpenApiSDK module Shared - + # The user has sent too many requests in a given amount of time ("rate limiting") class RateLimitExceeded < ::OpenApiSDK::Utils::FieldAugmented extend T::Sig diff --git a/lib/open_api_sdk/models/shared/unauthorized.rb b/lib/open_api_sdk/models/shared/unauthorized.rb index a32da93..4181f7e 100644 --- a/lib/open_api_sdk/models/shared/unauthorized.rb +++ b/lib/open_api_sdk/models/shared/unauthorized.rb @@ -7,7 +7,7 @@ module OpenApiSDK module Shared - + # Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response. class Unauthorized < ::OpenApiSDK::Utils::FieldAugmented extend T::Sig diff --git a/lib/open_api_sdk/models/shared/unprocessableentity.rb b/lib/open_api_sdk/models/shared/unprocessableentity.rb index 7bcc66e..f02faf1 100644 --- a/lib/open_api_sdk/models/shared/unprocessableentity.rb +++ b/lib/open_api_sdk/models/shared/unprocessableentity.rb @@ -7,7 +7,7 @@ module OpenApiSDK module Shared - + # The request was well-formed but was unable to be followed due to semantic errors. class UnprocessableEntity < ::OpenApiSDK::Utils::FieldAugmented extend T::Sig diff --git a/lib/open_api_sdk/sdkconfiguration.rb b/lib/open_api_sdk/sdkconfiguration.rb index 7c4d993..8959e44 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.19' - @gen_version = '2.422.22' - @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.19 2.422.22 0.0.1 dub' + @sdk_version = '0.2.2-alpha.20' + @gen_version = '2.426.2' + @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.20 2.426.2 0.0.1 dub' end sig { returns([String, T::Hash[Symbol, String]]) }