diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index b060026..3ae60d8 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: 91f8a271509d1f385478a60c83339f25 + docChecksum: 8242eb9b26c7e6790d67cbbd98b96b1b docVersion: 0.0.1 - speakeasyVersion: 1.456.1 - generationVersion: 2.481.0 - releaseVersion: 0.2.2-alpha.47 - configChecksum: 838c8fcc3fb0ce95c9cb76e268acb261 + speakeasyVersion: 1.459.2 + generationVersion: 2.483.1 + releaseVersion: 0.2.2-alpha.48 + configChecksum: 4f1db4ea760a806230a2d0f991bcbc4a repoURL: https://github.com/dubinc/dub-ruby.git installationURL: https://github.com/dubinc/dub-ruby published: true @@ -36,6 +36,7 @@ generatedFiles: - docs/models/operations/bulkupdatelinksresponse.md - docs/models/operations/click.md - docs/models/operations/color.md + - docs/models/operations/createcustomerlink.md - docs/models/operations/createcustomerrequestbody.md - docs/models/operations/createcustomerresponse.md - docs/models/operations/createcustomerresponsebody.md @@ -63,6 +64,7 @@ generatedFiles: - docs/models/operations/deletetagresponse.md - docs/models/operations/deletetagresponsebody.md - docs/models/operations/event.md + - docs/models/operations/getcustomerlink.md - docs/models/operations/getcustomerrequest.md - docs/models/operations/getcustomerresponse.md - docs/models/operations/getcustomerresponsebody.md @@ -84,6 +86,7 @@ generatedFiles: - docs/models/operations/groupby.md - docs/models/operations/interval.md - docs/models/operations/level.md + - docs/models/operations/link.md - docs/models/operations/listdomainsrequest.md - docs/models/operations/listdomainsresponse.md - docs/models/operations/listeventsrequest.md @@ -100,9 +103,6 @@ generatedFiles: - docs/models/operations/sale.md - docs/models/operations/sort.md - docs/models/operations/sortby.md - - docs/models/operations/trackcustomerrequestbody.md - - docs/models/operations/trackcustomerresponse.md - - docs/models/operations/trackcustomerresponsebody.md - docs/models/operations/trackleadrequestbody.md - docs/models/operations/trackleadresponse.md - docs/models/operations/trackleadresponsebody.md @@ -111,6 +111,7 @@ generatedFiles: - docs/models/operations/tracksaleresponse.md - docs/models/operations/tracksaleresponsebody.md - docs/models/operations/trigger.md + - docs/models/operations/updatecustomerlink.md - docs/models/operations/updatecustomerrequest.md - docs/models/operations/updatecustomerrequestbody.md - docs/models/operations/updatecustomerresponse.md @@ -208,6 +209,7 @@ generatedFiles: - lib/open_api_sdk/models/operations/bulkupdatelinks_response.rb - lib/open_api_sdk/models/operations/click.rb - lib/open_api_sdk/models/operations/color.rb + - lib/open_api_sdk/models/operations/createcustomer_link.rb - lib/open_api_sdk/models/operations/createcustomer_requestbody.rb - lib/open_api_sdk/models/operations/createcustomer_response.rb - lib/open_api_sdk/models/operations/createcustomer_responsebody.rb @@ -235,6 +237,7 @@ generatedFiles: - lib/open_api_sdk/models/operations/deletetag_response.rb - lib/open_api_sdk/models/operations/deletetag_responsebody.rb - lib/open_api_sdk/models/operations/event.rb + - lib/open_api_sdk/models/operations/getcustomer_link.rb - lib/open_api_sdk/models/operations/getcustomer_request.rb - lib/open_api_sdk/models/operations/getcustomer_response.rb - lib/open_api_sdk/models/operations/getcustomer_responsebody.rb @@ -256,6 +259,7 @@ generatedFiles: - lib/open_api_sdk/models/operations/groupby.rb - lib/open_api_sdk/models/operations/interval.rb - lib/open_api_sdk/models/operations/level.rb + - lib/open_api_sdk/models/operations/link.rb - lib/open_api_sdk/models/operations/listdomains_request.rb - lib/open_api_sdk/models/operations/listdomains_response.rb - lib/open_api_sdk/models/operations/listevents_request.rb @@ -272,9 +276,6 @@ generatedFiles: - lib/open_api_sdk/models/operations/sale.rb - lib/open_api_sdk/models/operations/sort.rb - lib/open_api_sdk/models/operations/sortby.rb - - lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb - - lib/open_api_sdk/models/operations/trackcustomer_response.rb - - lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb - lib/open_api_sdk/models/operations/tracklead_requestbody.rb - lib/open_api_sdk/models/operations/tracklead_response.rb - lib/open_api_sdk/models/operations/tracklead_responsebody.rb @@ -283,6 +284,7 @@ generatedFiles: - 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/updatecustomer_link.rb - lib/open_api_sdk/models/operations/updatecustomer_request.rb - lib/open_api_sdk/models/operations/updatecustomer_requestbody.rb - lib/open_api_sdk/models/operations/updatecustomer_response.rb diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 5410f82..ed10cb6 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false ruby: - version: 0.2.2-alpha.47 + version: 0.2.2-alpha.48 author: Dub description: Ruby Client SDK Generated by Speakeasy imports: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 9bfa541..846ee1b 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.456.1 +speakeasyVersion: 1.459.2 sources: dub: sourceNamespace: dub - sourceRevisionDigest: sha256:4f4e0885892e981bdfec1fe92ab00a4a502ae6598d5de2a731a909e20b8de75a - sourceBlobDigest: sha256:dd73501fb0082ccb7033caed86fb515bcb93da12c57f60ee5448c42448cd0d8f + sourceRevisionDigest: sha256:5b8b7d6c3e575ae437812568041a4f6179ec2488d4bdff0105ac163d0f742159 + sourceBlobDigest: sha256:31c3bc85b042d5d18b7291d6a5247793acae15f938e3f4dc7c42709e91b8670b tags: - latest - - speakeasy-sdk-regen-1734568088 + - speakeasy-sdk-regen-1734654406 - 0.0.1 targets: my-first-target: source: dub sourceNamespace: dub - sourceRevisionDigest: sha256:4f4e0885892e981bdfec1fe92ab00a4a502ae6598d5de2a731a909e20b8de75a - sourceBlobDigest: sha256:dd73501fb0082ccb7033caed86fb515bcb93da12c57f60ee5448c42448cd0d8f + sourceRevisionDigest: sha256:5b8b7d6c3e575ae437812568041a4f6179ec2488d4bdff0105ac163d0f742159 + sourceBlobDigest: sha256:31c3bc85b042d5d18b7291d6a5247793acae15f938e3f4dc7c42709e91b8670b codeSamplesNamespace: code-samples-ruby-my-first-target - codeSamplesRevisionDigest: sha256:f9eecbda18d847bc0441a0486d55fcdb2e1651b674e0be17b764add1f9ae4e98 + codeSamplesRevisionDigest: sha256:e38c3c247fbd53253979f9634b86aa9a28ad9b41e2cf04d846c4a96423a3c515 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/Gemfile.lock b/Gemfile.lock index 417c9df..bbc3611 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - dub (0.2.2.pre.alpha.47) + dub (0.2.2.pre.alpha.48) faraday faraday-multipart rack @@ -23,7 +23,7 @@ GEM net-http (>= 0.5.0) json (2.8.2) language_server-protocol (3.17.0.3) - logger (1.6.3) + logger (1.6.4) minitest (5.25.2) multipart-post (2.4.1) net-http (0.6.0) diff --git a/README.md b/README.md index b7435df..8a5a18d 100644 --- a/README.md +++ b/README.md @@ -169,7 +169,6 @@ end * [lead](docs/sdks/track/README.md#lead) - Track a lead * [sale](docs/sdks/track/README.md#sale) - Track a sale -* [~~customer~~](docs/sdks/track/README.md#customer) - Track a customer :warning: **Deprecated** ### [workspaces](docs/sdks/workspaces/README.md) diff --git a/RELEASES.md b/RELEASES.md index 8dccc9e..cb9b639 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -618,4 +618,14 @@ Based on: ### Generated - [ruby v0.2.2-alpha.47] . ### Releases -- [Ruby Gems v0.2.2-alpha.47] https://rubygems.org/gems/dub/versions/0.2.2-alpha.47 - . \ No newline at end of file +- [Ruby Gems v0.2.2-alpha.47] https://rubygems.org/gems/dub/versions/0.2.2-alpha.47 - . + +## 2024-12-23 00:27:50 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.459.2 (2.483.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [ruby v0.2.2-alpha.48] . +### Releases +- [Ruby Gems v0.2.2-alpha.48] https://rubygems.org/gems/dub/versions/0.2.2-alpha.48 - . \ No newline at end of file diff --git a/docs/models/operations/createcustomerlink.md b/docs/models/operations/createcustomerlink.md new file mode 100644 index 0000000..179640a --- /dev/null +++ b/docs/models/operations/createcustomerlink.md @@ -0,0 +1,12 @@ +# CreateCustomerLink + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *::String* | :heavy_check_mark: | The unique ID of the short link. | +| `domain` | *::String* | :heavy_check_mark: | The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains). | +| `key` | *::String* | :heavy_check_mark: | The short link slug. If not provided, a random 7-character slug will be generated. | +| `short_link` | *::String* | :heavy_check_mark: | The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`). | +| `program_id` | *::String* | :heavy_check_mark: | The ID of the program the short link is associated with. | \ No newline at end of file diff --git a/docs/models/operations/createcustomerresponsebody.md b/docs/models/operations/createcustomerresponsebody.md index cd0b8f8..2c01a31 100644 --- a/docs/models/operations/createcustomerresponsebody.md +++ b/docs/models/operations/createcustomerresponsebody.md @@ -5,11 +5,13 @@ The customer was created. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `id` | *::String* | :heavy_check_mark: | The unique identifier of the customer in Dub. | -| `external_id` | *::String* | :heavy_check_mark: | Unique identifier for the customer in the client's app. | -| `name` | *::String* | :heavy_check_mark: | Name of the customer. | -| `email` | *T.nilable(::String)* | :heavy_minus_sign: | Email of the customer. | -| `avatar` | *T.nilable(::String)* | :heavy_minus_sign: | Avatar URL of the customer. | -| `created_at` | *::String* | :heavy_check_mark: | The date the customer was created. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `id` | *::String* | :heavy_check_mark: | The unique identifier of the customer in Dub. | +| `external_id` | *::String* | :heavy_check_mark: | Unique identifier for the customer in the client's app. | +| `name` | *::String* | :heavy_check_mark: | Name of the customer. | +| `email` | *T.nilable(::String)* | :heavy_minus_sign: | Email of the customer. | +| `avatar` | *T.nilable(::String)* | :heavy_minus_sign: | Avatar URL of the customer. | +| `country` | *T.nilable(::String)* | :heavy_minus_sign: | Country of the customer. | +| `created_at` | *::String* | :heavy_check_mark: | The date the customer was created. | +| `link` | [T.nilable(::OpenApiSDK::Operations::CreateCustomerLink)](../../models/operations/createcustomerlink.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getcustomerlink.md b/docs/models/operations/getcustomerlink.md new file mode 100644 index 0000000..bc6d038 --- /dev/null +++ b/docs/models/operations/getcustomerlink.md @@ -0,0 +1,12 @@ +# GetCustomerLink + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *::String* | :heavy_check_mark: | The unique ID of the short link. | +| `domain` | *::String* | :heavy_check_mark: | The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains). | +| `key` | *::String* | :heavy_check_mark: | The short link slug. If not provided, a random 7-character slug will be generated. | +| `short_link` | *::String* | :heavy_check_mark: | The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`). | +| `program_id` | *::String* | :heavy_check_mark: | The ID of the program the short link is associated with. | \ No newline at end of file diff --git a/docs/models/operations/getcustomerresponsebody.md b/docs/models/operations/getcustomerresponsebody.md index 21dbe2a..216f210 100644 --- a/docs/models/operations/getcustomerresponsebody.md +++ b/docs/models/operations/getcustomerresponsebody.md @@ -5,11 +5,13 @@ The customer object. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `id` | *::String* | :heavy_check_mark: | The unique identifier of the customer in Dub. | -| `external_id` | *::String* | :heavy_check_mark: | Unique identifier for the customer in the client's app. | -| `name` | *::String* | :heavy_check_mark: | Name of the customer. | -| `email` | *T.nilable(::String)* | :heavy_minus_sign: | Email of the customer. | -| `avatar` | *T.nilable(::String)* | :heavy_minus_sign: | Avatar URL of the customer. | -| `created_at` | *::String* | :heavy_check_mark: | The date the customer was created. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `id` | *::String* | :heavy_check_mark: | The unique identifier of the customer in Dub. | +| `external_id` | *::String* | :heavy_check_mark: | Unique identifier for the customer in the client's app. | +| `name` | *::String* | :heavy_check_mark: | Name of the customer. | +| `email` | *T.nilable(::String)* | :heavy_minus_sign: | Email of the customer. | +| `avatar` | *T.nilable(::String)* | :heavy_minus_sign: | Avatar URL of the customer. | +| `country` | *T.nilable(::String)* | :heavy_minus_sign: | Country of the customer. | +| `created_at` | *::String* | :heavy_check_mark: | The date the customer was created. | +| `link` | [T.nilable(::OpenApiSDK::Operations::GetCustomerLink)](../../models/operations/getcustomerlink.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/link.md b/docs/models/operations/link.md new file mode 100644 index 0000000..3ca7e71 --- /dev/null +++ b/docs/models/operations/link.md @@ -0,0 +1,12 @@ +# Link + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *::String* | :heavy_check_mark: | The unique ID of the short link. | +| `domain` | *::String* | :heavy_check_mark: | The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains). | +| `key` | *::String* | :heavy_check_mark: | The short link slug. If not provided, a random 7-character slug will be generated. | +| `short_link` | *::String* | :heavy_check_mark: | The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`). | +| `program_id` | *::String* | :heavy_check_mark: | The ID of the program the short link is associated with. | \ No newline at end of file diff --git a/docs/models/operations/responsebody.md b/docs/models/operations/responsebody.md index 2395172..310dfa3 100644 --- a/docs/models/operations/responsebody.md +++ b/docs/models/operations/responsebody.md @@ -3,11 +3,13 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `id` | *::String* | :heavy_check_mark: | The unique identifier of the customer in Dub. | -| `external_id` | *::String* | :heavy_check_mark: | Unique identifier for the customer in the client's app. | -| `name` | *::String* | :heavy_check_mark: | Name of the customer. | -| `email` | *T.nilable(::String)* | :heavy_minus_sign: | Email of the customer. | -| `avatar` | *T.nilable(::String)* | :heavy_minus_sign: | Avatar URL of the customer. | -| `created_at` | *::String* | :heavy_check_mark: | The date the customer was created. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `id` | *::String* | :heavy_check_mark: | The unique identifier of the customer in Dub. | +| `external_id` | *::String* | :heavy_check_mark: | Unique identifier for the customer in the client's app. | +| `name` | *::String* | :heavy_check_mark: | Name of the customer. | +| `email` | *T.nilable(::String)* | :heavy_minus_sign: | Email of the customer. | +| `avatar` | *T.nilable(::String)* | :heavy_minus_sign: | Avatar URL of the customer. | +| `country` | *T.nilable(::String)* | :heavy_minus_sign: | Country of the customer. | +| `created_at` | *::String* | :heavy_check_mark: | The date the customer was created. | +| `link` | [T.nilable(::OpenApiSDK::Operations::Link)](../../models/operations/link.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/trackcustomerrequestbody.md b/docs/models/operations/trackcustomerrequestbody.md deleted file mode 100644 index 10dc092..0000000 --- a/docs/models/operations/trackcustomerrequestbody.md +++ /dev/null @@ -1,11 +0,0 @@ -# TrackCustomerRequestBody - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `customer_id` | *::String* | :heavy_check_mark: | This is the unique identifier for the customer in the client's app. This is used to track the customer's journey. | -| `customer_name` | *T.nilable(::String)* | :heavy_minus_sign: | Name of the customer in the client's app. | -| `customer_email` | *T.nilable(::String)* | :heavy_minus_sign: | Email of the customer in the client's app. | -| `customer_avatar` | *T.nilable(::String)* | :heavy_minus_sign: | Avatar of the customer in the client's app. | \ No newline at end of file diff --git a/docs/models/operations/trackcustomerresponse.md b/docs/models/operations/trackcustomerresponse.md deleted file mode 100644 index f23dacc..0000000 --- a/docs/models/operations/trackcustomerresponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# TrackCustomerResponse - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `content_type` | *::String* | :heavy_check_mark: | HTTP response content type for this operation | -| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation | -| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [T.nilable(::OpenApiSDK::Operations::TrackCustomerResponseBody)](../../models/operations/trackcustomerresponsebody.md) | :heavy_minus_sign: | A customer was tracked. | -| `bad_request` | [T.nilable(::OpenApiSDK::Shared::BadRequest)](../../models/shared/badrequest.md) | :heavy_minus_sign: | 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). | -| `unauthorized` | [T.nilable(::OpenApiSDK::Shared::Unauthorized)](../../models/shared/unauthorized.md) | :heavy_minus_sign: | Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response. | -| `forbidden` | [T.nilable(::OpenApiSDK::Shared::Forbidden)](../../models/shared/forbidden.md) | :heavy_minus_sign: | 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. | -| `not_found` | [T.nilable(::OpenApiSDK::Shared::NotFound)](../../models/shared/notfound.md) | :heavy_minus_sign: | The server cannot find the requested resource. | -| `conflict` | [T.nilable(::OpenApiSDK::Shared::Conflict)](../../models/shared/conflict.md) | :heavy_minus_sign: | This response is sent when a request conflicts with the current state of the server. | -| `invite_expired` | [T.nilable(::OpenApiSDK::Shared::InviteExpired)](../../models/shared/inviteexpired.md) | :heavy_minus_sign: | This response is sent when the requested content has been permanently deleted from server, with no forwarding address. | -| `unprocessable_entity` | [T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)](../../models/shared/unprocessableentity.md) | :heavy_minus_sign: | The request was well-formed but was unable to be followed due to semantic errors. | -| `rate_limit_exceeded` | [T.nilable(::OpenApiSDK::Shared::RateLimitExceeded)](../../models/shared/ratelimitexceeded.md) | :heavy_minus_sign: | The user has sent too many requests in a given amount of time ("rate limiting") | -| `internal_server_error` | [T.nilable(::OpenApiSDK::Shared::InternalServerError)](../../models/shared/internalservererror.md) | :heavy_minus_sign: | The server has encountered a situation it does not know how to handle. | \ No newline at end of file diff --git a/docs/models/operations/trackcustomerresponsebody.md b/docs/models/operations/trackcustomerresponsebody.md deleted file mode 100644 index d2a675d..0000000 --- a/docs/models/operations/trackcustomerresponsebody.md +++ /dev/null @@ -1,13 +0,0 @@ -# TrackCustomerResponseBody - -A customer was tracked. - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `customer_id` | *::String* | :heavy_check_mark: | N/A | -| `customer_name` | *::String* | :heavy_check_mark: | N/A | -| `customer_email` | *::String* | :heavy_check_mark: | N/A | -| `customer_avatar` | *::String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updatecustomerlink.md b/docs/models/operations/updatecustomerlink.md new file mode 100644 index 0000000..0648b61 --- /dev/null +++ b/docs/models/operations/updatecustomerlink.md @@ -0,0 +1,12 @@ +# UpdateCustomerLink + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | +| `id` | *::String* | :heavy_check_mark: | The unique ID of the short link. | +| `domain` | *::String* | :heavy_check_mark: | The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains). | +| `key` | *::String* | :heavy_check_mark: | The short link slug. If not provided, a random 7-character slug will be generated. | +| `short_link` | *::String* | :heavy_check_mark: | The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`). | +| `program_id` | *::String* | :heavy_check_mark: | The ID of the program the short link is associated with. | \ No newline at end of file diff --git a/docs/models/operations/updatecustomerresponsebody.md b/docs/models/operations/updatecustomerresponsebody.md index 408363c..c2a54be 100644 --- a/docs/models/operations/updatecustomerresponsebody.md +++ b/docs/models/operations/updatecustomerresponsebody.md @@ -5,11 +5,13 @@ The customer was updated. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `id` | *::String* | :heavy_check_mark: | The unique identifier of the customer in Dub. | -| `external_id` | *::String* | :heavy_check_mark: | Unique identifier for the customer in the client's app. | -| `name` | *::String* | :heavy_check_mark: | Name of the customer. | -| `email` | *T.nilable(::String)* | :heavy_minus_sign: | Email of the customer. | -| `avatar` | *T.nilable(::String)* | :heavy_minus_sign: | Avatar URL of the customer. | -| `created_at` | *::String* | :heavy_check_mark: | The date the customer was created. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `id` | *::String* | :heavy_check_mark: | The unique identifier of the customer in Dub. | +| `external_id` | *::String* | :heavy_check_mark: | Unique identifier for the customer in the client's app. | +| `name` | *::String* | :heavy_check_mark: | Name of the customer. | +| `email` | *T.nilable(::String)* | :heavy_minus_sign: | Email of the customer. | +| `avatar` | *T.nilable(::String)* | :heavy_minus_sign: | Avatar URL of the customer. | +| `country` | *T.nilable(::String)* | :heavy_minus_sign: | Country of the customer. | +| `created_at` | *::String* | :heavy_check_mark: | The date the customer was created. | +| `link` | [T.nilable(::OpenApiSDK::Operations::UpdateCustomerLink)](../../models/operations/updatecustomerlink.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdks/track/README.md b/docs/sdks/track/README.md index 06566ea..061d26f 100644 --- a/docs/sdks/track/README.md +++ b/docs/sdks/track/README.md @@ -7,7 +7,6 @@ * [lead](#lead) - Track a lead * [sale](#sale) - Track a sale -* [~~customer~~](#customer) - Track a customer :warning: **Deprecated** ## lead @@ -94,47 +93,3 @@ end **[T.nilable(::OpenApiSDK::Operations::TrackSaleResponse)](../../models/operations/tracksaleresponse.md)** - - -## ~~customer~~ - -Track a customer for an authenticated workspace. - -> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. - -### Example Usage - -```ruby -require 'dub' - - -s = ::OpenApiSDK::Dub.new -s.config_security( - ::OpenApiSDK::Shared::Security.new( - token: "DUB_API_KEY", - ) -) - - -req = ::OpenApiSDK::Operations::TrackCustomerRequestBody.new( - customer_id: "", -) - -res = s.track.customer(req) - -if ! res.object.nil? - # handle response -end - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | -| `request` | [::OpenApiSDK::Operations::TrackCustomerRequestBody](../../models/operations/trackcustomerrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[T.nilable(::OpenApiSDK::Operations::TrackCustomerResponse)](../../models/operations/trackcustomerresponse.md)** - diff --git a/dub.gemspec b/dub.gemspec index df6d897..2cc7b4c 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.47' + s.version = '0.2.2-alpha.48' 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 5bac9a9..a2f9a64 100644 --- a/lib/open_api_sdk/models/operations.rb +++ b/lib/open_api_sdk/models/operations.rb @@ -75,19 +75,20 @@ module Operations autoload :Sale, 'open_api_sdk/models/operations/sale.rb' autoload :TrackSaleResponseBody, 'open_api_sdk/models/operations/tracksale_responsebody.rb' autoload :TrackSaleResponse, 'open_api_sdk/models/operations/tracksale_response.rb' - autoload :TrackCustomerRequestBody, 'open_api_sdk/models/operations/trackcustomer_requestbody.rb' - autoload :TrackCustomerResponseBody, 'open_api_sdk/models/operations/trackcustomer_responsebody.rb' - autoload :TrackCustomerResponse, 'open_api_sdk/models/operations/trackcustomer_response.rb' + autoload :Link, 'open_api_sdk/models/operations/link.rb' autoload :ResponseBody, 'open_api_sdk/models/operations/responsebody.rb' autoload :GetCustomersResponse, 'open_api_sdk/models/operations/getcustomers_response.rb' autoload :CreateCustomerRequestBody, 'open_api_sdk/models/operations/createcustomer_requestbody.rb' + autoload :CreateCustomerLink, 'open_api_sdk/models/operations/createcustomer_link.rb' autoload :CreateCustomerResponseBody, 'open_api_sdk/models/operations/createcustomer_responsebody.rb' autoload :CreateCustomerResponse, 'open_api_sdk/models/operations/createcustomer_response.rb' autoload :GetCustomerRequest, 'open_api_sdk/models/operations/getcustomer_request.rb' + autoload :GetCustomerLink, 'open_api_sdk/models/operations/getcustomer_link.rb' autoload :GetCustomerResponseBody, 'open_api_sdk/models/operations/getcustomer_responsebody.rb' autoload :GetCustomerResponse, 'open_api_sdk/models/operations/getcustomer_response.rb' autoload :UpdateCustomerRequestBody, 'open_api_sdk/models/operations/updatecustomer_requestbody.rb' autoload :UpdateCustomerRequest, 'open_api_sdk/models/operations/updatecustomer_request.rb' + autoload :UpdateCustomerLink, 'open_api_sdk/models/operations/updatecustomer_link.rb' autoload :UpdateCustomerResponseBody, 'open_api_sdk/models/operations/updatecustomer_responsebody.rb' autoload :UpdateCustomerResponse, 'open_api_sdk/models/operations/updatecustomer_response.rb' autoload :DeleteCustomerRequest, 'open_api_sdk/models/operations/deletecustomer_request.rb' diff --git a/lib/open_api_sdk/models/operations/createcustomer_link.rb b/lib/open_api_sdk/models/operations/createcustomer_link.rb new file mode 100644 index 0000000..885c8a7 --- /dev/null +++ b/lib/open_api_sdk/models/operations/createcustomer_link.rb @@ -0,0 +1,36 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module OpenApiSDK + module Operations + + + class CreateCustomerLink < ::OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + # The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains). + field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } } + # The unique ID of the short link. + field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } } + # The short link slug. If not provided, a random 7-character slug will be generated. + field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } } + # The ID of the program the short link is associated with. + field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } } + # The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`). + field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } } + + + sig { params(domain: ::String, id: ::String, key: ::String, program_id: ::String, short_link: ::String).void } + def initialize(domain: nil, id: nil, key: nil, program_id: nil, short_link: nil) + @domain = domain + @id = id + @key = key + @program_id = program_id + @short_link = short_link + end + end + end +end diff --git a/lib/open_api_sdk/models/operations/createcustomer_responsebody.rb b/lib/open_api_sdk/models/operations/createcustomer_responsebody.rb index bafac9c..fd02b2a 100644 --- a/lib/open_api_sdk/models/operations/createcustomer_responsebody.rb +++ b/lib/open_api_sdk/models/operations/createcustomer_responsebody.rb @@ -21,18 +21,24 @@ class CreateCustomerResponseBody < ::OpenApiSDK::Utils::FieldAugmented field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } } # Avatar URL of the customer. field :avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } } + # Country of the customer. + field :country, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } } # Email of the customer. field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } } + field :link, T.nilable(::OpenApiSDK::Operations::CreateCustomerLink), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } } - sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), email: T.nilable(::String)).void } - def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, email: nil) + + sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::CreateCustomerLink)).void } + def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, email: nil, link: nil) @created_at = created_at @external_id = external_id @id = id @name = name @avatar = avatar + @country = country @email = email + @link = link end end end diff --git a/lib/open_api_sdk/models/operations/getcustomer_link.rb b/lib/open_api_sdk/models/operations/getcustomer_link.rb new file mode 100644 index 0000000..1fe1b3a --- /dev/null +++ b/lib/open_api_sdk/models/operations/getcustomer_link.rb @@ -0,0 +1,36 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module OpenApiSDK + module Operations + + + class GetCustomerLink < ::OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + # The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains). + field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } } + # The unique ID of the short link. + field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } } + # The short link slug. If not provided, a random 7-character slug will be generated. + field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } } + # The ID of the program the short link is associated with. + field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } } + # The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`). + field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } } + + + sig { params(domain: ::String, id: ::String, key: ::String, program_id: ::String, short_link: ::String).void } + def initialize(domain: nil, id: nil, key: nil, program_id: nil, short_link: nil) + @domain = domain + @id = id + @key = key + @program_id = program_id + @short_link = short_link + end + end + end +end diff --git a/lib/open_api_sdk/models/operations/getcustomer_responsebody.rb b/lib/open_api_sdk/models/operations/getcustomer_responsebody.rb index dbe080f..9655d9b 100644 --- a/lib/open_api_sdk/models/operations/getcustomer_responsebody.rb +++ b/lib/open_api_sdk/models/operations/getcustomer_responsebody.rb @@ -21,18 +21,24 @@ class GetCustomerResponseBody < ::OpenApiSDK::Utils::FieldAugmented field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } } # Avatar URL of the customer. field :avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } } + # Country of the customer. + field :country, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } } # Email of the customer. field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } } + field :link, T.nilable(::OpenApiSDK::Operations::GetCustomerLink), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } } - sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), email: T.nilable(::String)).void } - def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, email: nil) + + sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::GetCustomerLink)).void } + def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, email: nil, link: nil) @created_at = created_at @external_id = external_id @id = id @name = name @avatar = avatar + @country = country @email = email + @link = link end end end diff --git a/lib/open_api_sdk/models/operations/link.rb b/lib/open_api_sdk/models/operations/link.rb new file mode 100644 index 0000000..a90ffdc --- /dev/null +++ b/lib/open_api_sdk/models/operations/link.rb @@ -0,0 +1,36 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module OpenApiSDK + module Operations + + + class Link < ::OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + # The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains). + field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } } + # The unique ID of the short link. + field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } } + # The short link slug. If not provided, a random 7-character slug will be generated. + field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } } + # The ID of the program the short link is associated with. + field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } } + # The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`). + field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } } + + + sig { params(domain: ::String, id: ::String, key: ::String, program_id: ::String, short_link: ::String).void } + def initialize(domain: nil, id: nil, key: nil, program_id: nil, short_link: nil) + @domain = domain + @id = id + @key = key + @program_id = program_id + @short_link = short_link + end + end + end +end diff --git a/lib/open_api_sdk/models/operations/responsebody.rb b/lib/open_api_sdk/models/operations/responsebody.rb index f70656a..caa5ad7 100644 --- a/lib/open_api_sdk/models/operations/responsebody.rb +++ b/lib/open_api_sdk/models/operations/responsebody.rb @@ -21,18 +21,24 @@ class ResponseBody < ::OpenApiSDK::Utils::FieldAugmented field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } } # Avatar URL of the customer. field :avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } } + # Country of the customer. + field :country, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } } # Email of the customer. field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } } + field :link, T.nilable(::OpenApiSDK::Operations::Link), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } } - sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), email: T.nilable(::String)).void } - def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, email: nil) + + sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::Link)).void } + def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, email: nil, link: nil) @created_at = created_at @external_id = external_id @id = id @name = name @avatar = avatar + @country = country @email = email + @link = link end end end diff --git a/lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb b/lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb deleted file mode 100644 index 10afc6a..0000000 --- a/lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module OpenApiSDK - module Operations - - - class TrackCustomerRequestBody < ::OpenApiSDK::Utils::FieldAugmented - extend T::Sig - - # This is the unique identifier for the customer in the client's app. This is used to track the customer's journey. - field :customer_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerId') } } - # Avatar of the customer in the client's app. - field :customer_avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerAvatar') } } - # Email of the customer in the client's app. - field :customer_email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerEmail') } } - # Name of the customer in the client's app. - field :customer_name, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerName') } } - - - sig { params(customer_id: ::String, customer_avatar: T.nilable(::String), customer_email: T.nilable(::String), customer_name: T.nilable(::String)).void } - def initialize(customer_id: nil, customer_avatar: nil, customer_email: nil, customer_name: nil) - @customer_id = customer_id - @customer_avatar = customer_avatar - @customer_email = customer_email - @customer_name = customer_name - end - end - end -end diff --git a/lib/open_api_sdk/models/operations/trackcustomer_response.rb b/lib/open_api_sdk/models/operations/trackcustomer_response.rb deleted file mode 100644 index 624a4d0..0000000 --- a/lib/open_api_sdk/models/operations/trackcustomer_response.rb +++ /dev/null @@ -1,60 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module OpenApiSDK - module Operations - - - class TrackCustomerResponse < ::OpenApiSDK::Utils::FieldAugmented - extend T::Sig - - # HTTP response content type for this operation - field :content_type, ::String - # Raw HTTP response; suitable for custom response parsing - field :raw_response, ::Faraday::Response - # HTTP response status code for this operation - field :status_code, ::Integer - # 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). - field :bad_request, T.nilable(::OpenApiSDK::Shared::BadRequest) - # This response is sent when a request conflicts with the current state of the server. - field :conflict, T.nilable(::OpenApiSDK::Shared::Conflict) - # 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. - field :forbidden, T.nilable(::OpenApiSDK::Shared::Forbidden) - # The server has encountered a situation it does not know how to handle. - field :internal_server_error, T.nilable(::OpenApiSDK::Shared::InternalServerError) - # This response is sent when the requested content has been permanently deleted from server, with no forwarding address. - field :invite_expired, T.nilable(::OpenApiSDK::Shared::InviteExpired) - # The server cannot find the requested resource. - field :not_found, T.nilable(::OpenApiSDK::Shared::NotFound) - # A customer was tracked. - field :object, T.nilable(::OpenApiSDK::Operations::TrackCustomerResponseBody) - # The user has sent too many requests in a given amount of time ("rate limiting") - field :rate_limit_exceeded, T.nilable(::OpenApiSDK::Shared::RateLimitExceeded) - # Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response. - field :unauthorized, T.nilable(::OpenApiSDK::Shared::Unauthorized) - # The request was well-formed but was unable to be followed due to semantic errors. - field :unprocessable_entity, T.nilable(::OpenApiSDK::Shared::UnprocessableEntity) - - - sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::OpenApiSDK::Shared::BadRequest), conflict: T.nilable(::OpenApiSDK::Shared::Conflict), forbidden: T.nilable(::OpenApiSDK::Shared::Forbidden), internal_server_error: T.nilable(::OpenApiSDK::Shared::InternalServerError), invite_expired: T.nilable(::OpenApiSDK::Shared::InviteExpired), not_found: T.nilable(::OpenApiSDK::Shared::NotFound), object: T.nilable(::OpenApiSDK::Operations::TrackCustomerResponseBody), rate_limit_exceeded: T.nilable(::OpenApiSDK::Shared::RateLimitExceeded), unauthorized: T.nilable(::OpenApiSDK::Shared::Unauthorized), unprocessable_entity: T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)).void } - def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, conflict: nil, forbidden: nil, internal_server_error: nil, invite_expired: nil, not_found: nil, object: nil, rate_limit_exceeded: nil, unauthorized: nil, unprocessable_entity: nil) - @content_type = content_type - @raw_response = raw_response - @status_code = status_code - @bad_request = bad_request - @conflict = conflict - @forbidden = forbidden - @internal_server_error = internal_server_error - @invite_expired = invite_expired - @not_found = not_found - @object = object - @rate_limit_exceeded = rate_limit_exceeded - @unauthorized = unauthorized - @unprocessable_entity = unprocessable_entity - end - end - end -end diff --git a/lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb b/lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb deleted file mode 100644 index cfbabdf..0000000 --- a/lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb +++ /dev/null @@ -1,33 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: true -# frozen_string_literal: true - - -module OpenApiSDK - module Operations - - # A customer was tracked. - class TrackCustomerResponseBody < ::OpenApiSDK::Utils::FieldAugmented - extend T::Sig - - - field :customer_avatar, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerAvatar') } } - - field :customer_email, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerEmail') } } - - field :customer_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerId') } } - - field :customer_name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerName') } } - - - sig { params(customer_avatar: ::String, customer_email: ::String, customer_id: ::String, customer_name: ::String).void } - def initialize(customer_avatar: nil, customer_email: nil, customer_id: nil, customer_name: nil) - @customer_avatar = customer_avatar - @customer_email = customer_email - @customer_id = customer_id - @customer_name = customer_name - end - end - end -end diff --git a/lib/open_api_sdk/models/operations/updatecustomer_link.rb b/lib/open_api_sdk/models/operations/updatecustomer_link.rb new file mode 100644 index 0000000..30db9a0 --- /dev/null +++ b/lib/open_api_sdk/models/operations/updatecustomer_link.rb @@ -0,0 +1,36 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: true +# frozen_string_literal: true + + +module OpenApiSDK + module Operations + + + class UpdateCustomerLink < ::OpenApiSDK::Utils::FieldAugmented + extend T::Sig + + # The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains). + field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } } + # The unique ID of the short link. + field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } } + # The short link slug. If not provided, a random 7-character slug will be generated. + field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } } + # The ID of the program the short link is associated with. + field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } } + # The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`). + field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } } + + + sig { params(domain: ::String, id: ::String, key: ::String, program_id: ::String, short_link: ::String).void } + def initialize(domain: nil, id: nil, key: nil, program_id: nil, short_link: nil) + @domain = domain + @id = id + @key = key + @program_id = program_id + @short_link = short_link + end + end + end +end diff --git a/lib/open_api_sdk/models/operations/updatecustomer_responsebody.rb b/lib/open_api_sdk/models/operations/updatecustomer_responsebody.rb index 0e8061b..0c816fa 100644 --- a/lib/open_api_sdk/models/operations/updatecustomer_responsebody.rb +++ b/lib/open_api_sdk/models/operations/updatecustomer_responsebody.rb @@ -21,18 +21,24 @@ class UpdateCustomerResponseBody < ::OpenApiSDK::Utils::FieldAugmented field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } } # Avatar URL of the customer. field :avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } } + # Country of the customer. + field :country, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } } # Email of the customer. field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } } + field :link, T.nilable(::OpenApiSDK::Operations::UpdateCustomerLink), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } } - sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), email: T.nilable(::String)).void } - def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, email: nil) + + sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::UpdateCustomerLink)).void } + def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, email: nil, link: nil) @created_at = created_at @external_id = external_id @id = id @name = name @avatar = avatar + @country = country @email = email + @link = link end end end diff --git a/lib/open_api_sdk/sdkconfiguration.rb b/lib/open_api_sdk/sdkconfiguration.rb index 54e2753..ccb62c0 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.47' - @gen_version = '2.481.0' - @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.47 2.481.0 0.0.1 dub' + @sdk_version = '0.2.2-alpha.48' + @gen_version = '2.483.1' + @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.48 2.483.1 0.0.1 dub' end sig { returns([String, T::Hash[Symbol, String]]) } diff --git a/lib/open_api_sdk/track.rb b/lib/open_api_sdk/track.rb index 0feac98..857d959 100644 --- a/lib/open_api_sdk/track.rb +++ b/lib/open_api_sdk/track.rb @@ -189,93 +189,5 @@ def sale(request) res end - - - sig { params(request: T.nilable(::OpenApiSDK::Operations::TrackCustomerRequestBody)).returns(::OpenApiSDK::Operations::TrackCustomerResponse) } - def customer(request) - # customer - Track a customer - # Track a customer for an authenticated workspace. - # - # @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - url, params = @sdk_configuration.get_server_details - base_url = Utils.template_url(url, params) - url = "#{base_url}/track/customer" - headers = {} - req_content_type, data, form = Utils.serialize_request_body(request, :request, :json) - headers['content-type'] = req_content_type - headers['Accept'] = 'application/json' - headers['user-agent'] = @sdk_configuration.user_agent - - r = @sdk_configuration.client.post(url) do |req| - req.headers = headers - Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil? - if form - req.body = Utils.encode_form(form) - elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded') - req.body = URI.encode_www_form(data) - else - req.body = data - end - end - - content_type = r.headers.fetch('Content-Type', 'application/octet-stream') - - res = ::OpenApiSDK::Operations::TrackCustomerResponse.new( - status_code: r.status, content_type: content_type, raw_response: r - ) - if r.status == 200 - if Utils.match_content_type(content_type, 'application/json') - out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::TrackCustomerResponseBody) - res.object = out - end - elsif r.status == 400 - if Utils.match_content_type(content_type, 'application/json') - out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest) - res.bad_request = out - end - elsif r.status == 401 - if Utils.match_content_type(content_type, 'application/json') - out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized) - res.unauthorized = out - end - elsif r.status == 403 - if Utils.match_content_type(content_type, 'application/json') - out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden) - res.forbidden = out - end - elsif r.status == 404 - if Utils.match_content_type(content_type, 'application/json') - out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound) - res.not_found = out - end - elsif r.status == 409 - if Utils.match_content_type(content_type, 'application/json') - out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict) - res.conflict = out - end - elsif r.status == 410 - if Utils.match_content_type(content_type, 'application/json') - out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired) - res.invite_expired = out - end - elsif r.status == 422 - if Utils.match_content_type(content_type, 'application/json') - out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity) - res.unprocessable_entity = out - end - elsif r.status == 429 - if Utils.match_content_type(content_type, 'application/json') - out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded) - res.rate_limit_exceeded = out - end - elsif r.status == 500 - if Utils.match_content_type(content_type, 'application/json') - out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError) - res.internal_server_error = out - end - end - - res - end end end