diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index b3d06dc..1ee5cf3 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 5a2dd83e-da98-455b-8ef9-0100a914efdf management: - docChecksum: ababac2d9647ce276a0165b7766b1087 + docChecksum: 5c400b20334e45bb5625715215fcbff4 docVersion: 0.0.1 - speakeasyVersion: 1.405.6 - generationVersion: 2.428.1 - releaseVersion: 0.2.2-alpha.21 - configChecksum: db8d5efee7030a236f53691b5e51bb21 + speakeasyVersion: 1.409.0 + generationVersion: 2.429.0 + releaseVersion: 0.2.2-alpha.22 + configChecksum: c3d6fd0cf1ca281e9a7051cc245f6ee3 repoURL: https://github.com/dubinc/dub-ruby.git installationURL: https://github.com/dubinc/dub-ruby published: true @@ -79,6 +79,7 @@ generatedFiles: - docs/models/operations/paymentprocessor.md - docs/models/operations/queryparamevent.md - docs/models/operations/queryparaminterval.md + - docs/models/operations/queryparamtrigger.md - docs/models/operations/requestbody.md - docs/models/operations/retrieveanalyticsrequest.md - docs/models/operations/retrieveanalyticsresponse.md @@ -95,6 +96,7 @@ generatedFiles: - docs/models/operations/tracksalerequestbody.md - docs/models/operations/tracksaleresponse.md - docs/models/operations/tracksaleresponsebody.md + - docs/models/operations/trigger.md - docs/models/operations/updatedomainrequest.md - docs/models/operations/updatedomainrequestbody.md - docs/models/operations/updatedomainresponse.md @@ -227,6 +229,7 @@ generatedFiles: - lib/open_api_sdk/models/operations/paymentprocessor.rb - lib/open_api_sdk/models/operations/queryparam_event.rb - lib/open_api_sdk/models/operations/queryparam_interval.rb + - lib/open_api_sdk/models/operations/queryparam_trigger.rb - lib/open_api_sdk/models/operations/requestbody.rb - lib/open_api_sdk/models/operations/retrieveanalytics_request.rb - lib/open_api_sdk/models/operations/retrieveanalytics_response.rb @@ -243,6 +246,7 @@ generatedFiles: - lib/open_api_sdk/models/operations/tracksale_requestbody.rb - lib/open_api_sdk/models/operations/tracksale_response.rb - lib/open_api_sdk/models/operations/tracksale_responsebody.rb + - lib/open_api_sdk/models/operations/trigger.rb - lib/open_api_sdk/models/operations/updatedomain_request.rb - lib/open_api_sdk/models/operations/updatedomain_requestbody.rb - lib/open_api_sdk/models/operations/updatedomain_response.rb diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 0952294..ea108a7 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: true ruby: - version: 0.2.2-alpha.21 + version: 0.2.2-alpha.22 author: Dub description: Ruby Client SDK Generated by Speakeasy imports: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 7e81a7a..0310234 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.405.6 +speakeasyVersion: 1.409.0 sources: dub: sourceNamespace: dub - sourceRevisionDigest: sha256:77f52cc56bdea8b23c2862a3ee1841272e52a16203e4560b9ef91c6205bba0dd - sourceBlobDigest: sha256:1da51010de13e5049bb0fadd8af9bdd4b2bb25ae0f7410d3d4e72a99e9b0f07b + sourceRevisionDigest: sha256:81c375a0dc66f52bb3c01b940c780d26a509a670949c7b07d38b87f52d1654ed + sourceBlobDigest: sha256:d6fef5d2315d51d2ef4e69445186824cb997ff35f71ac1b37244fb3e4d6d139b tags: - latest - main @@ -11,10 +11,10 @@ targets: my-first-target: source: dub sourceNamespace: dub - sourceRevisionDigest: sha256:77f52cc56bdea8b23c2862a3ee1841272e52a16203e4560b9ef91c6205bba0dd - sourceBlobDigest: sha256:1da51010de13e5049bb0fadd8af9bdd4b2bb25ae0f7410d3d4e72a99e9b0f07b + sourceRevisionDigest: sha256:81c375a0dc66f52bb3c01b940c780d26a509a670949c7b07d38b87f52d1654ed + sourceBlobDigest: sha256:d6fef5d2315d51d2ef4e69445186824cb997ff35f71ac1b37244fb3e4d6d139b codeSamplesNamespace: code-samples-ruby-my-first-target - codeSamplesRevisionDigest: sha256:ce6c2f6a873f5e0884dc7484439d03b1c89eeb5e6bff71f3c03bdb2e4c1e4154 + codeSamplesRevisionDigest: sha256:59372fbc90ffd46f4cc4b96e1ba5dbecae3d11e1b53b1555430e8bc937bf80f9 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/Gemfile.lock b/Gemfile.lock index 2f9f5f7..706513f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - dub (0.2.2.pre.alpha.21) + dub (0.2.2.pre.alpha.22) faraday faraday-multipart rack diff --git a/RELEASES.md b/RELEASES.md index 279b94e..13a0567 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -358,4 +358,14 @@ Based on: ### Generated - [ruby v0.2.2-alpha.21] . ### Releases -- [Ruby Gems v0.2.2-alpha.21] https://rubygems.org/gems/dub/versions/0.2.2-alpha.21 - . \ No newline at end of file +- [Ruby Gems v0.2.2-alpha.21] https://rubygems.org/gems/dub/versions/0.2.2-alpha.21 - . + +## 2024-10-06 21:30:34 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.409.0 (2.429.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [ruby v0.2.2-alpha.22] . +### Releases +- [Ruby Gems v0.2.2-alpha.22] https://rubygems.org/gems/dub/versions/0.2.2-alpha.22 - . \ No newline at end of file diff --git a/docs/models/operations/event.md b/docs/models/operations/event.md index c916060..455a400 100644 --- a/docs/models/operations/event.md +++ b/docs/models/operations/event.md @@ -1,6 +1,6 @@ # Event -The type of event to retrieve analytics for. Defaults to 'clicks'. +The type of event to retrieve analytics for. Defaults to `clicks`. ## Values diff --git a/docs/models/operations/getqrcoderequest.md b/docs/models/operations/getqrcoderequest.md index 52d6476..f9efd99 100644 --- a/docs/models/operations/getqrcoderequest.md +++ b/docs/models/operations/getqrcoderequest.md @@ -6,8 +6,10 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | | `url` | *::String* | :heavy_check_mark: | The URL to generate a QR code for. | +| `logo` | *T.nilable(::String)* | :heavy_minus_sign: | The logo to include in the QR code. Can only be used with a paid plan on Dub.co. | | `size` | *T.nilable(::Float)* | :heavy_minus_sign: | The size of the QR code in pixels. Defaults to `600` if not provided. | | `level` | [T.nilable(::OpenApiSDK::Operations::Level)](../../models/operations/level.md) | :heavy_minus_sign: | The level of error correction to use for the QR code. Defaults to `L` if not provided. | | `fg_color` | *T.nilable(::String)* | :heavy_minus_sign: | The foreground color of the QR code in hex format. Defaults to `#000000` if not provided. | | `bg_color` | *T.nilable(::String)* | :heavy_minus_sign: | The background color of the QR code in hex format. Defaults to `#ffffff` if not provided. | +| `hide_logo` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether to hide the logo in the QR code. Can only be used with a paid plan on Dub.co. | | `include_margin` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Whether to include a margin around the QR code. Defaults to `false` if not provided. | \ No newline at end of file diff --git a/docs/models/operations/groupby.md b/docs/models/operations/groupby.md index cc20f7d..8270a1b 100644 --- a/docs/models/operations/groupby.md +++ b/docs/models/operations/groupby.md @@ -1,6 +1,6 @@ # GroupBy -The parameter to group the analytics data points by. Defaults to 'count' if undefined. +The parameter to group the analytics data points by. Defaults to `count` if undefined. Note that `trigger` is deprecated (use `triggers` instead), but kept for backwards compatibility. ## Values @@ -15,8 +15,9 @@ The parameter to group the analytics data points by. Defaults to 'count' if unde | `DEVICES` | devices | | `BROWSERS` | browsers | | `OS` | os | +| `TRIGGER` | trigger | +| `TRIGGERS` | triggers | | `REFERERS` | referers | | `REFERER_URLS` | referer_urls | | `TOP_LINKS` | top_links | -| `TOP_URLS` | top_urls | -| `TRIGGER` | trigger | \ No newline at end of file +| `TOP_URLS` | top_urls | \ No newline at end of file diff --git a/docs/models/operations/listeventsrequest.md b/docs/models/operations/listeventsrequest.md index 963875d..4a64299 100644 --- a/docs/models/operations/listeventsrequest.md +++ b/docs/models/operations/listeventsrequest.md @@ -3,30 +3,31 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `event` | [T.nilable(::OpenApiSDK::Operations::QueryParamEvent)](../../models/operations/queryparamevent.md) | :heavy_minus_sign: | The type of event to retrieve analytics for. Defaults to 'clicks'. | | -| `domain` | *T.nilable(::String)* | :heavy_minus_sign: | The domain to filter analytics for. | | -| `key` | *T.nilable(::String)* | :heavy_minus_sign: | The short link slug. | | -| `link_id` | *T.nilable(::String)* | :heavy_minus_sign: | The unique ID of the short link on Dub. | | -| `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. | | -| `interval` | [T.nilable(::OpenApiSDK::Operations::QueryParamInterval)](../../models/operations/queryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve events for. Takes precedence over start and end. If undefined, defaults to 24h. | | -| `start` | *T.nilable(::String)* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | -| `end_` | *T.nilable(::String)* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | | -| `timezone` | *T.nilable(::String)* | :heavy_minus_sign: | The IANA time zone code for aligning timeseries granularity (e.g. America/New_York). Defaults to UTC. | America/New_York | -| `continent` | [T.nilable(::OpenApiSDK::Shared::ContinentCode)](../../models/shared/continentcode.md) | :heavy_minus_sign: | The continent to retrieve analytics for. | | -| `country` | [T.nilable(::OpenApiSDK::Shared::CountryCode)](../../models/shared/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | -| `city` | *T.nilable(::String)* | :heavy_minus_sign: | The city to retrieve analytics for. | New York | -| `device` | *T.nilable(::String)* | :heavy_minus_sign: | The device to retrieve analytics for. | Desktop | -| `browser` | *T.nilable(::String)* | :heavy_minus_sign: | The browser to retrieve analytics for. | Chrome | -| `os` | *T.nilable(::String)* | :heavy_minus_sign: | The OS to retrieve analytics for. | Windows | -| `referer` | *T.nilable(::String)* | :heavy_minus_sign: | The referer to retrieve analytics for. | google.com | -| `referer_url` | *T.nilable(::String)* | :heavy_minus_sign: | The full referer URL to retrieve analytics for. | https://dub.co/blog | -| `url` | *T.nilable(::String)* | :heavy_minus_sign: | The URL to retrieve analytics for. | | -| `tag_id` | *T.nilable(::String)* | :heavy_minus_sign: | The tag ID to retrieve analytics for. | | -| `qr` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. | | -| `root` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both. | | -| `page` | *T.nilable(::Float)* | :heavy_minus_sign: | N/A | | -| `limit` | *T.nilable(::Float)* | :heavy_minus_sign: | N/A | | -| `order` | [T.nilable(::OpenApiSDK::Operations::Order)](../../models/operations/order.md) | :heavy_minus_sign: | N/A | | -| `sort_by` | [T.nilable(::OpenApiSDK::Operations::SortBy)](../../models/operations/sortby.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `event` | [T.nilable(::OpenApiSDK::Operations::QueryParamEvent)](../../models/operations/queryparamevent.md) | :heavy_minus_sign: | The type of event to retrieve analytics for. Defaults to 'clicks'. | | +| `domain` | *T.nilable(::String)* | :heavy_minus_sign: | The domain to filter analytics for. | | +| `key` | *T.nilable(::String)* | :heavy_minus_sign: | The short link slug. | | +| `link_id` | *T.nilable(::String)* | :heavy_minus_sign: | The unique ID of the short link on Dub. | | +| `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. | | +| `interval` | [T.nilable(::OpenApiSDK::Operations::QueryParamInterval)](../../models/operations/queryparaminterval.md) | :heavy_minus_sign: | The interval to retrieve events for. Takes precedence over start and end. If undefined, defaults to 24h. | | +| `start` | *T.nilable(::String)* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | +| `end_` | *T.nilable(::String)* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | | +| `timezone` | *T.nilable(::String)* | :heavy_minus_sign: | The IANA time zone code for aligning timeseries granularity (e.g. America/New_York). Defaults to UTC. | America/New_York | +| `continent` | [T.nilable(::OpenApiSDK::Shared::ContinentCode)](../../models/shared/continentcode.md) | :heavy_minus_sign: | The continent to retrieve analytics for. | | +| `country` | [T.nilable(::OpenApiSDK::Shared::CountryCode)](../../models/shared/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | +| `city` | *T.nilable(::String)* | :heavy_minus_sign: | The city to retrieve analytics for. | New York | +| `device` | *T.nilable(::String)* | :heavy_minus_sign: | The device to retrieve analytics for. | Desktop | +| `browser` | *T.nilable(::String)* | :heavy_minus_sign: | The browser to retrieve analytics for. | Chrome | +| `os` | *T.nilable(::String)* | :heavy_minus_sign: | The OS to retrieve analytics for. | Windows | +| `trigger` | [T.nilable(::OpenApiSDK::Operations::QueryParamTrigger)](../../models/operations/queryparamtrigger.md) | :heavy_minus_sign: | The trigger to retrieve analytics for. If undefined, return both QR and link clicks. | | +| `referer` | *T.nilable(::String)* | :heavy_minus_sign: | The referer to retrieve analytics for. | google.com | +| `referer_url` | *T.nilable(::String)* | :heavy_minus_sign: | The full referer URL to retrieve analytics for. | https://dub.co/blog | +| `url` | *T.nilable(::String)* | :heavy_minus_sign: | The URL to retrieve analytics for. | | +| `tag_id` | *T.nilable(::String)* | :heavy_minus_sign: | The tag ID to retrieve analytics for. | | +| `qr` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Deprecated. Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. | | +| `root` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both. | | +| `page` | *T.nilable(::Float)* | :heavy_minus_sign: | N/A | | +| `limit` | *T.nilable(::Float)* | :heavy_minus_sign: | N/A | | +| `order` | [T.nilable(::OpenApiSDK::Operations::Order)](../../models/operations/order.md) | :heavy_minus_sign: | N/A | | +| `sort_by` | [T.nilable(::OpenApiSDK::Operations::SortBy)](../../models/operations/sortby.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/queryparamtrigger.md b/docs/models/operations/queryparamtrigger.md new file mode 100644 index 0000000..1323c87 --- /dev/null +++ b/docs/models/operations/queryparamtrigger.md @@ -0,0 +1,11 @@ +# QueryParamTrigger + +The trigger to retrieve analytics for. If undefined, return both QR and link clicks. + + +## Values + +| Name | Value | +| ------ | ------ | +| `QR` | qr | +| `LINK` | link | \ No newline at end of file diff --git a/docs/models/operations/retrieveanalyticsrequest.md b/docs/models/operations/retrieveanalyticsrequest.md index 6f37524..d2518dd 100644 --- a/docs/models/operations/retrieveanalyticsrequest.md +++ b/docs/models/operations/retrieveanalyticsrequest.md @@ -3,27 +3,28 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | -| `event` | [T.nilable(::OpenApiSDK::Operations::Event)](../../models/operations/event.md) | :heavy_minus_sign: | The type of event to retrieve analytics for. Defaults to 'clicks'. | | -| `group_by` | [T.nilable(::OpenApiSDK::Operations::GroupBy)](../../models/operations/groupby.md) | :heavy_minus_sign: | The parameter to group the analytics data points by. Defaults to 'count' if undefined. | | -| `domain` | *T.nilable(::String)* | :heavy_minus_sign: | The domain to filter analytics for. | | -| `key` | *T.nilable(::String)* | :heavy_minus_sign: | The short link slug. | | -| `link_id` | *T.nilable(::String)* | :heavy_minus_sign: | The unique ID of the short link on Dub. | | -| `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. | | -| `interval` | [T.nilable(::OpenApiSDK::Operations::Interval)](../../models/operations/interval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | -| `start` | *T.nilable(::String)* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | -| `end_` | *T.nilable(::String)* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | | -| `timezone` | *T.nilable(::String)* | :heavy_minus_sign: | The IANA time zone code for aligning timeseries granularity (e.g. America/New_York). Defaults to UTC. | America/New_York | -| `continent` | [T.nilable(::OpenApiSDK::Shared::ContinentCode)](../../models/shared/continentcode.md) | :heavy_minus_sign: | The continent to retrieve analytics for. | | -| `country` | [T.nilable(::OpenApiSDK::Shared::CountryCode)](../../models/shared/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | -| `city` | *T.nilable(::String)* | :heavy_minus_sign: | The city to retrieve analytics for. | New York | -| `device` | *T.nilable(::String)* | :heavy_minus_sign: | The device to retrieve analytics for. | Desktop | -| `browser` | *T.nilable(::String)* | :heavy_minus_sign: | The browser to retrieve analytics for. | Chrome | -| `os` | *T.nilable(::String)* | :heavy_minus_sign: | The OS to retrieve analytics for. | Windows | -| `referer` | *T.nilable(::String)* | :heavy_minus_sign: | The referer to retrieve analytics for. | google.com | -| `referer_url` | *T.nilable(::String)* | :heavy_minus_sign: | The full referer URL to retrieve analytics for. | https://dub.co/blog | -| `url` | *T.nilable(::String)* | :heavy_minus_sign: | The URL to retrieve analytics for. | | -| `tag_id` | *T.nilable(::String)* | :heavy_minus_sign: | The tag ID to retrieve analytics for. | | -| `qr` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. | | -| `root` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both. | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `event` | [T.nilable(::OpenApiSDK::Operations::Event)](../../models/operations/event.md) | :heavy_minus_sign: | The type of event to retrieve analytics for. Defaults to `clicks`. | | +| `group_by` | [T.nilable(::OpenApiSDK::Operations::GroupBy)](../../models/operations/groupby.md) | :heavy_minus_sign: | The parameter to group the analytics data points by. Defaults to `count` if undefined. Note that `trigger` is deprecated (use `triggers` instead), but kept for backwards compatibility. | | +| `domain` | *T.nilable(::String)* | :heavy_minus_sign: | The domain to filter analytics for. | | +| `key` | *T.nilable(::String)* | :heavy_minus_sign: | The short link slug. | | +| `link_id` | *T.nilable(::String)* | :heavy_minus_sign: | The unique ID of the short link on Dub. | | +| `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. | | +| `interval` | [T.nilable(::OpenApiSDK::Operations::Interval)](../../models/operations/interval.md) | :heavy_minus_sign: | The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. | | +| `start` | *T.nilable(::String)* | :heavy_minus_sign: | The start date and time when to retrieve analytics from. | | +| `end_` | *T.nilable(::String)* | :heavy_minus_sign: | The end date and time when to retrieve analytics from. If not provided, defaults to the current date. | | +| `timezone` | *T.nilable(::String)* | :heavy_minus_sign: | The IANA time zone code for aligning timeseries granularity (e.g. America/New_York). Defaults to UTC. | America/New_York | +| `continent` | [T.nilable(::OpenApiSDK::Shared::ContinentCode)](../../models/shared/continentcode.md) | :heavy_minus_sign: | The continent to retrieve analytics for. | | +| `country` | [T.nilable(::OpenApiSDK::Shared::CountryCode)](../../models/shared/countrycode.md) | :heavy_minus_sign: | The country to retrieve analytics for. | | +| `city` | *T.nilable(::String)* | :heavy_minus_sign: | The city to retrieve analytics for. | New York | +| `device` | *T.nilable(::String)* | :heavy_minus_sign: | The device to retrieve analytics for. | Desktop | +| `browser` | *T.nilable(::String)* | :heavy_minus_sign: | The browser to retrieve analytics for. | Chrome | +| `os` | *T.nilable(::String)* | :heavy_minus_sign: | The OS to retrieve analytics for. | Windows | +| `trigger` | [T.nilable(::OpenApiSDK::Operations::Trigger)](../../models/operations/trigger.md) | :heavy_minus_sign: | The trigger to retrieve analytics for. If undefined, return both QR and link clicks. | | +| `referer` | *T.nilable(::String)* | :heavy_minus_sign: | The referer to retrieve analytics for. | google.com | +| `referer_url` | *T.nilable(::String)* | :heavy_minus_sign: | The full referer URL to retrieve analytics for. | https://dub.co/blog | +| `url` | *T.nilable(::String)* | :heavy_minus_sign: | The URL to retrieve analytics for. | | +| `tag_id` | *T.nilable(::String)* | :heavy_minus_sign: | The tag ID to retrieve analytics for. | | +| `qr` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Deprecated. Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. | | +| `root` | *T.nilable(T::Boolean)* | :heavy_minus_sign: | Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both. | | \ No newline at end of file diff --git a/docs/models/operations/trigger.md b/docs/models/operations/trigger.md new file mode 100644 index 0000000..acdc5ee --- /dev/null +++ b/docs/models/operations/trigger.md @@ -0,0 +1,11 @@ +# Trigger + +The trigger to retrieve analytics for. If undefined, return both QR and link clicks. + + +## Values + +| Name | Value | +| ------ | ------ | +| `QR` | qr | +| `LINK` | link | \ No newline at end of file diff --git a/docs/sdks/domains/README.md b/docs/sdks/domains/README.md index 3360a72..0ea4b14 100644 --- a/docs/sdks/domains/README.md +++ b/docs/sdks/domains/README.md @@ -130,10 +130,10 @@ end ### Parameters -| Parameter | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `slug` | *::String* | :heavy_check_mark: | The domain name. | acme.com | -| `request_body` | [::OpenApiSDK::Operations::UpdateDomainRequestBody](../../models/operations/updatedomainrequestbody.md) | :heavy_minus_sign: | N/A | | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `slug` | *::String* | :heavy_check_mark: | The domain name. | acme.com | +| `request_body` | [T.nilable(::OpenApiSDK::Operations::UpdateDomainRequestBody)](../../models/operations/updatedomainrequestbody.md) | :heavy_minus_sign: | N/A | | ### Response diff --git a/docs/sdks/links/README.md b/docs/sdks/links/README.md index 83195c9..f5d95a4 100644 --- a/docs/sdks/links/README.md +++ b/docs/sdks/links/README.md @@ -224,7 +224,7 @@ end | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | | `link_id` | *::String* | :heavy_check_mark: | The id of the link to update. You may use either `linkId` (obtained via `/links/info` endpoint) or `externalId` prefixed with `ext_`. | -| `request_body` | [::OpenApiSDK::Operations::UpdateLinkRequestBody](../../models/operations/updatelinkrequestbody.md) | :heavy_minus_sign: | N/A | +| `request_body` | [T.nilable(::OpenApiSDK::Operations::UpdateLinkRequestBody)](../../models/operations/updatelinkrequestbody.md) | :heavy_minus_sign: | N/A | ### Response diff --git a/docs/sdks/tags/README.md b/docs/sdks/tags/README.md index 02e9c27..83e6b8c 100644 --- a/docs/sdks/tags/README.md +++ b/docs/sdks/tags/README.md @@ -109,10 +109,10 @@ end ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `id` | *::String* | :heavy_check_mark: | The ID of the tag to update. | -| `request_body` | [::OpenApiSDK::Operations::UpdateTagRequestBody](../../models/operations/updatetagrequestbody.md) | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `id` | *::String* | :heavy_check_mark: | The ID of the tag to update. | +| `request_body` | [T.nilable(::OpenApiSDK::Operations::UpdateTagRequestBody)](../../models/operations/updatetagrequestbody.md) | :heavy_minus_sign: | N/A | ### Response diff --git a/docs/sdks/workspaces/README.md b/docs/sdks/workspaces/README.md index d148170..f75cfbf 100644 --- a/docs/sdks/workspaces/README.md +++ b/docs/sdks/workspaces/README.md @@ -77,10 +77,10 @@ end ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `id_or_slug` | *::String* | :heavy_check_mark: | The ID or slug of the workspace to update. | -| `request_body` | [::OpenApiSDK::Operations::UpdateWorkspaceRequestBody](../../models/operations/updateworkspacerequestbody.md) | :heavy_minus_sign: | N/A | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `id_or_slug` | *::String* | :heavy_check_mark: | The ID or slug of the workspace to update. | +| `request_body` | [T.nilable(::OpenApiSDK::Operations::UpdateWorkspaceRequestBody)](../../models/operations/updateworkspacerequestbody.md) | :heavy_minus_sign: | N/A | ### Response diff --git a/dub.gemspec b/dub.gemspec index 740bd4a..413a4d1 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.21' + s.version = '0.2.2-alpha.22' s.platform = Gem::Platform::RUBY s.licenses = ['Apache-2.0'] s.summary = '' diff --git a/lib/open_api_sdk/models/operations.rb b/lib/open_api_sdk/models/operations.rb index 7b3f1e7..9b63d16 100644 --- a/lib/open_api_sdk/models/operations.rb +++ b/lib/open_api_sdk/models/operations.rb @@ -36,10 +36,12 @@ module Operations autoload :Event, 'open_api_sdk/models/operations/event.rb' autoload :GroupBy, 'open_api_sdk/models/operations/groupby.rb' autoload :Interval, 'open_api_sdk/models/operations/interval.rb' + autoload :Trigger, 'open_api_sdk/models/operations/trigger.rb' autoload :RetrieveAnalyticsRequest, 'open_api_sdk/models/operations/retrieveanalytics_request.rb' autoload :RetrieveAnalyticsResponse, 'open_api_sdk/models/operations/retrieveanalytics_response.rb' autoload :QueryParamEvent, 'open_api_sdk/models/operations/queryparam_event.rb' autoload :QueryParamInterval, 'open_api_sdk/models/operations/queryparam_interval.rb' + autoload :QueryParamTrigger, 'open_api_sdk/models/operations/queryparam_trigger.rb' autoload :Order, 'open_api_sdk/models/operations/order.rb' autoload :SortBy, 'open_api_sdk/models/operations/sortby.rb' autoload :ListEventsRequest, 'open_api_sdk/models/operations/listevents_request.rb' diff --git a/lib/open_api_sdk/models/operations/event.rb b/lib/open_api_sdk/models/operations/event.rb index faf1e0e..51e6e9d 100644 --- a/lib/open_api_sdk/models/operations/event.rb +++ b/lib/open_api_sdk/models/operations/event.rb @@ -7,7 +7,7 @@ module OpenApiSDK module Operations - # Event - The type of event to retrieve analytics for. Defaults to 'clicks'. + # Event - The type of event to retrieve analytics for. Defaults to `clicks`. class Event < T::Enum enums do CLICKS = new('clicks') diff --git a/lib/open_api_sdk/models/operations/getqrcode_request.rb b/lib/open_api_sdk/models/operations/getqrcode_request.rb index d3c8b99..edf704d 100644 --- a/lib/open_api_sdk/models/operations/getqrcode_request.rb +++ b/lib/open_api_sdk/models/operations/getqrcode_request.rb @@ -17,21 +17,27 @@ class GetQRCodeRequest < ::OpenApiSDK::Utils::FieldAugmented field :bg_color, T.nilable(::String), { 'query_param': { 'field_name': 'bgColor', 'style': 'form', 'explode': true } } # The foreground color of the QR code in hex format. Defaults to `#000000` if not provided. field :fg_color, T.nilable(::String), { 'query_param': { 'field_name': 'fgColor', 'style': 'form', 'explode': true } } + # Whether to hide the logo in the QR code. Can only be used with a paid plan on Dub.co. + field :hide_logo, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'hideLogo', 'style': 'form', 'explode': true } } # Whether to include a margin around the QR code. Defaults to `false` if not provided. field :include_margin, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'includeMargin', 'style': 'form', 'explode': true } } # The level of error correction to use for the QR code. Defaults to `L` if not provided. field :level, T.nilable(::OpenApiSDK::Operations::Level), { 'query_param': { 'field_name': 'level', 'style': 'form', 'explode': true } } + # The logo to include in the QR code. Can only be used with a paid plan on Dub.co. + field :logo, T.nilable(::String), { 'query_param': { 'field_name': 'logo', 'style': 'form', 'explode': true } } # The size of the QR code in pixels. Defaults to `600` if not provided. field :size, T.nilable(::Float), { 'query_param': { 'field_name': 'size', 'style': 'form', 'explode': true } } - sig { params(url: ::String, bg_color: T.nilable(::String), fg_color: T.nilable(::String), include_margin: T.nilable(T::Boolean), level: T.nilable(::OpenApiSDK::Operations::Level), size: T.nilable(::Float)).void } - def initialize(url: nil, bg_color: nil, fg_color: nil, include_margin: nil, level: nil, size: nil) + sig { params(url: ::String, bg_color: T.nilable(::String), fg_color: T.nilable(::String), hide_logo: T.nilable(T::Boolean), include_margin: T.nilable(T::Boolean), level: T.nilable(::OpenApiSDK::Operations::Level), logo: T.nilable(::String), size: T.nilable(::Float)).void } + def initialize(url: nil, bg_color: nil, fg_color: nil, hide_logo: nil, include_margin: nil, level: nil, logo: nil, size: nil) @url = url @bg_color = bg_color @fg_color = fg_color + @hide_logo = hide_logo @include_margin = include_margin @level = level + @logo = logo @size = size end end diff --git a/lib/open_api_sdk/models/operations/groupby.rb b/lib/open_api_sdk/models/operations/groupby.rb index 72ac46e..63b78c9 100644 --- a/lib/open_api_sdk/models/operations/groupby.rb +++ b/lib/open_api_sdk/models/operations/groupby.rb @@ -7,7 +7,7 @@ module OpenApiSDK module Operations - # GroupBy - The parameter to group the analytics data points by. Defaults to 'count' if undefined. + # GroupBy - The parameter to group the analytics data points by. Defaults to `count` if undefined. Note that `trigger` is deprecated (use `triggers` instead), but kept for backwards compatibility. class GroupBy < T::Enum enums do COUNT = new('count') @@ -18,11 +18,12 @@ class GroupBy < T::Enum DEVICES = new('devices') BROWSERS = new('browsers') OS = new('os') + TRIGGER = new('trigger') + TRIGGERS = new('triggers') REFERERS = new('referers') REFERER_URLS = new('referer_urls') TOP_LINKS = new('top_links') TOP_URLS = new('top_urls') - TRIGGER = new('trigger') end end end diff --git a/lib/open_api_sdk/models/operations/listevents_request.rb b/lib/open_api_sdk/models/operations/listevents_request.rb index 5cab893..c200cbf 100644 --- a/lib/open_api_sdk/models/operations/listevents_request.rb +++ b/lib/open_api_sdk/models/operations/listevents_request.rb @@ -43,7 +43,7 @@ class ListEventsRequest < ::OpenApiSDK::Utils::FieldAugmented field :os, T.nilable(::String), { 'query_param': { 'field_name': 'os', 'style': 'form', 'explode': true } } field :page, T.nilable(::Float), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } } - # Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. + # Deprecated. Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. field :qr, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'qr', 'style': 'form', 'explode': true } } # The referer to retrieve analytics for. field :referer, T.nilable(::String), { 'query_param': { 'field_name': 'referer', 'style': 'form', 'explode': true } } @@ -59,12 +59,14 @@ class ListEventsRequest < ::OpenApiSDK::Utils::FieldAugmented field :tag_id, T.nilable(::String), { 'query_param': { 'field_name': 'tagId', 'style': 'form', 'explode': true } } # The IANA time zone code for aligning timeseries granularity (e.g. America/New_York). Defaults to UTC. field :timezone, T.nilable(::String), { 'query_param': { 'field_name': 'timezone', 'style': 'form', 'explode': true } } + # The trigger to retrieve analytics for. If undefined, return both QR and link clicks. + field :trigger, T.nilable(::OpenApiSDK::Operations::QueryParamTrigger), { 'query_param': { 'field_name': 'trigger', 'style': 'form', 'explode': true } } # The URL to retrieve analytics for. field :url, T.nilable(::String), { 'query_param': { 'field_name': 'url', 'style': 'form', 'explode': true } } - sig { params(browser: T.nilable(::String), city: T.nilable(::String), continent: T.nilable(::OpenApiSDK::Shared::ContinentCode), country: T.nilable(::OpenApiSDK::Shared::CountryCode), device: T.nilable(::String), domain: T.nilable(::String), end_: T.nilable(::String), event: T.nilable(::OpenApiSDK::Operations::QueryParamEvent), external_id: T.nilable(::String), interval: T.nilable(::OpenApiSDK::Operations::QueryParamInterval), key: T.nilable(::String), limit: T.nilable(::Float), link_id: T.nilable(::String), order: T.nilable(::OpenApiSDK::Operations::Order), os: T.nilable(::String), page: T.nilable(::Float), qr: T.nilable(T::Boolean), referer: T.nilable(::String), referer_url: T.nilable(::String), root: T.nilable(T::Boolean), sort_by: T.nilable(::OpenApiSDK::Operations::SortBy), start: T.nilable(::String), tag_id: T.nilable(::String), timezone: T.nilable(::String), url: T.nilable(::String)).void } - def initialize(browser: nil, city: nil, continent: nil, country: nil, device: nil, domain: nil, end_: nil, event: nil, external_id: nil, interval: nil, key: nil, limit: nil, link_id: nil, order: nil, os: nil, page: nil, qr: nil, referer: nil, referer_url: nil, root: nil, sort_by: nil, start: nil, tag_id: nil, timezone: nil, url: nil) + sig { params(browser: T.nilable(::String), city: T.nilable(::String), continent: T.nilable(::OpenApiSDK::Shared::ContinentCode), country: T.nilable(::OpenApiSDK::Shared::CountryCode), device: T.nilable(::String), domain: T.nilable(::String), end_: T.nilable(::String), event: T.nilable(::OpenApiSDK::Operations::QueryParamEvent), external_id: T.nilable(::String), interval: T.nilable(::OpenApiSDK::Operations::QueryParamInterval), key: T.nilable(::String), limit: T.nilable(::Float), link_id: T.nilable(::String), order: T.nilable(::OpenApiSDK::Operations::Order), os: T.nilable(::String), page: T.nilable(::Float), qr: T.nilable(T::Boolean), referer: T.nilable(::String), referer_url: T.nilable(::String), root: T.nilable(T::Boolean), sort_by: T.nilable(::OpenApiSDK::Operations::SortBy), start: T.nilable(::String), tag_id: T.nilable(::String), timezone: T.nilable(::String), trigger: T.nilable(::OpenApiSDK::Operations::QueryParamTrigger), url: T.nilable(::String)).void } + def initialize(browser: nil, city: nil, continent: nil, country: nil, device: nil, domain: nil, end_: nil, event: nil, external_id: nil, interval: nil, key: nil, limit: nil, link_id: nil, order: nil, os: nil, page: nil, qr: nil, referer: nil, referer_url: nil, root: nil, sort_by: nil, start: nil, tag_id: nil, timezone: nil, trigger: nil, url: nil) @browser = browser @city = city @continent = continent @@ -89,6 +91,7 @@ def initialize(browser: nil, city: nil, continent: nil, country: nil, device: ni @start = start @tag_id = tag_id @timezone = timezone + @trigger = trigger @url = url end end diff --git a/lib/open_api_sdk/models/operations/queryparam_trigger.rb b/lib/open_api_sdk/models/operations/queryparam_trigger.rb new file mode 100644 index 0000000..c9cbb77 --- /dev/null +++ b/lib/open_api_sdk/models/operations/queryparam_trigger.rb @@ -0,0 +1,18 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module OpenApiSDK + module Operations + + # QueryParamTrigger - The trigger to retrieve analytics for. If undefined, return both QR and link clicks. + class QueryParamTrigger < T::Enum + enums do + QR = new('qr') + LINK = new('link') + end + end + end +end diff --git a/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb b/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb index 76bc7e3..70304c6 100644 --- a/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +++ b/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb @@ -25,11 +25,11 @@ class RetrieveAnalyticsRequest < ::OpenApiSDK::Utils::FieldAugmented field :domain, T.nilable(::String), { 'query_param': { 'field_name': 'domain', 'style': 'form', 'explode': true } } # The end date and time when to retrieve analytics from. If not provided, defaults to the current date. field :end_, T.nilable(::String), { 'query_param': { 'field_name': 'end', 'style': 'form', 'explode': true } } - # The type of event to retrieve analytics for. Defaults to 'clicks'. + # The type of event to retrieve analytics for. Defaults to `clicks`. field :event, T.nilable(::OpenApiSDK::Operations::Event), { 'query_param': { 'field_name': 'event', '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. field :external_id, T.nilable(::String), { 'query_param': { 'field_name': 'externalId', 'style': 'form', 'explode': true } } - # The parameter to group the analytics data points by. Defaults to 'count' if undefined. + # The parameter to group the analytics data points by. Defaults to `count` if undefined. Note that `trigger` is deprecated (use `triggers` instead), but kept for backwards compatibility. field :group_by, T.nilable(::OpenApiSDK::Operations::GroupBy), { 'query_param': { 'field_name': 'groupBy', 'style': 'form', 'explode': true } } # The interval to retrieve analytics for. Takes precedence over start and end. If undefined, defaults to 24h. field :interval, T.nilable(::OpenApiSDK::Operations::Interval), { 'query_param': { 'field_name': 'interval', 'style': 'form', 'explode': true } } @@ -39,7 +39,7 @@ class RetrieveAnalyticsRequest < ::OpenApiSDK::Utils::FieldAugmented field :link_id, T.nilable(::String), { 'query_param': { 'field_name': 'linkId', 'style': 'form', 'explode': true } } # The OS to retrieve analytics for. field :os, T.nilable(::String), { 'query_param': { 'field_name': 'os', 'style': 'form', 'explode': true } } - # Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. + # Deprecated. Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both. field :qr, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'qr', 'style': 'form', 'explode': true } } # The referer to retrieve analytics for. field :referer, T.nilable(::String), { 'query_param': { 'field_name': 'referer', 'style': 'form', 'explode': true } } @@ -53,12 +53,14 @@ class RetrieveAnalyticsRequest < ::OpenApiSDK::Utils::FieldAugmented field :tag_id, T.nilable(::String), { 'query_param': { 'field_name': 'tagId', 'style': 'form', 'explode': true } } # The IANA time zone code for aligning timeseries granularity (e.g. America/New_York). Defaults to UTC. field :timezone, T.nilable(::String), { 'query_param': { 'field_name': 'timezone', 'style': 'form', 'explode': true } } + # The trigger to retrieve analytics for. If undefined, return both QR and link clicks. + field :trigger, T.nilable(::OpenApiSDK::Operations::Trigger), { 'query_param': { 'field_name': 'trigger', 'style': 'form', 'explode': true } } # The URL to retrieve analytics for. field :url, T.nilable(::String), { 'query_param': { 'field_name': 'url', 'style': 'form', 'explode': true } } - sig { params(browser: T.nilable(::String), city: T.nilable(::String), continent: T.nilable(::OpenApiSDK::Shared::ContinentCode), country: T.nilable(::OpenApiSDK::Shared::CountryCode), device: T.nilable(::String), domain: T.nilable(::String), end_: T.nilable(::String), event: T.nilable(::OpenApiSDK::Operations::Event), external_id: T.nilable(::String), group_by: T.nilable(::OpenApiSDK::Operations::GroupBy), interval: T.nilable(::OpenApiSDK::Operations::Interval), key: T.nilable(::String), link_id: T.nilable(::String), os: T.nilable(::String), qr: T.nilable(T::Boolean), referer: T.nilable(::String), referer_url: T.nilable(::String), root: T.nilable(T::Boolean), start: T.nilable(::String), tag_id: T.nilable(::String), timezone: T.nilable(::String), url: T.nilable(::String)).void } - def initialize(browser: nil, city: nil, continent: nil, country: nil, device: nil, domain: nil, end_: nil, event: nil, external_id: nil, group_by: nil, interval: nil, key: nil, link_id: nil, os: nil, qr: nil, referer: nil, referer_url: nil, root: nil, start: nil, tag_id: nil, timezone: nil, url: nil) + sig { params(browser: T.nilable(::String), city: T.nilable(::String), continent: T.nilable(::OpenApiSDK::Shared::ContinentCode), country: T.nilable(::OpenApiSDK::Shared::CountryCode), device: T.nilable(::String), domain: T.nilable(::String), end_: T.nilable(::String), event: T.nilable(::OpenApiSDK::Operations::Event), external_id: T.nilable(::String), group_by: T.nilable(::OpenApiSDK::Operations::GroupBy), interval: T.nilable(::OpenApiSDK::Operations::Interval), key: T.nilable(::String), link_id: T.nilable(::String), os: T.nilable(::String), qr: T.nilable(T::Boolean), referer: T.nilable(::String), referer_url: T.nilable(::String), root: T.nilable(T::Boolean), start: T.nilable(::String), tag_id: T.nilable(::String), timezone: T.nilable(::String), trigger: T.nilable(::OpenApiSDK::Operations::Trigger), url: T.nilable(::String)).void } + def initialize(browser: nil, city: nil, continent: nil, country: nil, device: nil, domain: nil, end_: nil, event: nil, external_id: nil, group_by: nil, interval: nil, key: nil, link_id: nil, os: nil, qr: nil, referer: nil, referer_url: nil, root: nil, start: nil, tag_id: nil, timezone: nil, trigger: nil, url: nil) @browser = browser @city = city @continent = continent @@ -80,6 +82,7 @@ def initialize(browser: nil, city: nil, continent: nil, country: nil, device: ni @start = start @tag_id = tag_id @timezone = timezone + @trigger = trigger @url = url end end diff --git a/lib/open_api_sdk/models/operations/trigger.rb b/lib/open_api_sdk/models/operations/trigger.rb new file mode 100644 index 0000000..3038c68 --- /dev/null +++ b/lib/open_api_sdk/models/operations/trigger.rb @@ -0,0 +1,18 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module OpenApiSDK + module Operations + + # Trigger - The trigger to retrieve analytics for. If undefined, return both QR and link clicks. + class Trigger < T::Enum + enums do + QR = new('qr') + LINK = new('link') + end + end + end +end diff --git a/lib/open_api_sdk/sdkconfiguration.rb b/lib/open_api_sdk/sdkconfiguration.rb index 3cd899a..f53a42c 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.21' - @gen_version = '2.428.1' - @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.21 2.428.1 0.0.1 dub' + @sdk_version = '0.2.2-alpha.22' + @gen_version = '2.429.0' + @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.22 2.429.0 0.0.1 dub' end sig { returns([String, T::Hash[Symbol, String]]) }