dub 0.2.2.pre.alpha.46 → 0.2.2.pre.alpha.48

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1cde24f7949ee723b59f8d7bf5e095cd4d43e2fe9847de1efb24537f39eb6723
4
- data.tar.gz: 3ac5d4f3728220cf09e4282d449c265f5c5a1af731c6d0fff2b2d9571eb6e90b
3
+ metadata.gz: f7c0d16eb5df406b81bf171a706fded6aa33c5c92dfff09738eca84fe3195e8f
4
+ data.tar.gz: e56fcdc2085359327040fc1af8fdd954320b26a04afc60bb89db6036adfadfdf
5
5
  SHA512:
6
- metadata.gz: 6c8209a9afdcc3e4de7aad3313cc0b37cc1150ef4a49e5c99d55ff56a89c386ecec06664341eba5ee4a4efb0064a840a407eaa28a7fd19e8f716513df77ec5ed
7
- data.tar.gz: 12e56a2229daea3a6c6886f1bf5e18f16df4ee255f38a7de3e543392cb59cd86ae4acb270a6bce70edef8206f1c5580cbd0d4da97752d56a8f334a54c5ff5bcd
6
+ metadata.gz: 2919454146f18d83e11a5d0624dccb99f149e70d37e67fe96d64bfec639537f779a753b84d0386ce8b6f4e3d3f9b6fd8e0c75b1a6869c8fe5cc379524276a297
7
+ data.tar.gz: f5408b52192133df005cf41b759eb6a4beae1bb8bc8bbd6bc383679c27cbb9c978b7efecf81c7ebe97600002518e2542efe15ec28ca8d9fab05d90792fad6ae1
@@ -0,0 +1,36 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module OpenApiSDK
8
+ module Operations
9
+
10
+
11
+ class CreateCustomerLink < ::OpenApiSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # 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).
15
+ field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
16
+ # The unique ID of the short link.
17
+ field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
18
+ # The short link slug. If not provided, a random 7-character slug will be generated.
19
+ field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }
20
+ # The ID of the program the short link is associated with.
21
+ field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
22
+ # The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
23
+ field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } }
24
+
25
+
26
+ sig { params(domain: ::String, id: ::String, key: ::String, program_id: ::String, short_link: ::String).void }
27
+ def initialize(domain: nil, id: nil, key: nil, program_id: nil, short_link: nil)
28
+ @domain = domain
29
+ @id = id
30
+ @key = key
31
+ @program_id = program_id
32
+ @short_link = short_link
33
+ end
34
+ end
35
+ end
36
+ end
@@ -21,18 +21,24 @@ module OpenApiSDK
21
21
  field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
22
22
  # Avatar URL of the customer.
23
23
  field :avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } }
24
+ # Country of the customer.
25
+ field :country, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } }
24
26
  # Email of the customer.
25
27
  field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
26
28
 
29
+ field :link, T.nilable(::OpenApiSDK::Operations::CreateCustomerLink), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } }
27
30
 
28
- sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), email: T.nilable(::String)).void }
29
- def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, email: nil)
31
+
32
+ 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 }
33
+ def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, email: nil, link: nil)
30
34
  @created_at = created_at
31
35
  @external_id = external_id
32
36
  @id = id
33
37
  @name = name
34
38
  @avatar = avatar
39
+ @country = country
35
40
  @email = email
41
+ @link = link
36
42
  end
37
43
  end
38
44
  end
@@ -0,0 +1,36 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module OpenApiSDK
8
+ module Operations
9
+
10
+
11
+ class GetCustomerLink < ::OpenApiSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # 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).
15
+ field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
16
+ # The unique ID of the short link.
17
+ field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
18
+ # The short link slug. If not provided, a random 7-character slug will be generated.
19
+ field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }
20
+ # The ID of the program the short link is associated with.
21
+ field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
22
+ # The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
23
+ field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } }
24
+
25
+
26
+ sig { params(domain: ::String, id: ::String, key: ::String, program_id: ::String, short_link: ::String).void }
27
+ def initialize(domain: nil, id: nil, key: nil, program_id: nil, short_link: nil)
28
+ @domain = domain
29
+ @id = id
30
+ @key = key
31
+ @program_id = program_id
32
+ @short_link = short_link
33
+ end
34
+ end
35
+ end
36
+ end
@@ -21,18 +21,24 @@ module OpenApiSDK
21
21
  field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
22
22
  # Avatar URL of the customer.
23
23
  field :avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } }
24
+ # Country of the customer.
25
+ field :country, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } }
24
26
  # Email of the customer.
25
27
  field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
26
28
 
29
+ field :link, T.nilable(::OpenApiSDK::Operations::GetCustomerLink), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } }
27
30
 
28
- sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), email: T.nilable(::String)).void }
29
- def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, email: nil)
31
+
32
+ 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 }
33
+ def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, email: nil, link: nil)
30
34
  @created_at = created_at
31
35
  @external_id = external_id
32
36
  @id = id
33
37
  @name = name
34
38
  @avatar = avatar
39
+ @country = country
35
40
  @email = email
41
+ @link = link
36
42
  end
37
43
  end
38
44
  end
@@ -0,0 +1,36 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module OpenApiSDK
8
+ module Operations
9
+
10
+
11
+ class Link < ::OpenApiSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # 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).
15
+ field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
16
+ # The unique ID of the short link.
17
+ field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
18
+ # The short link slug. If not provided, a random 7-character slug will be generated.
19
+ field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }
20
+ # The ID of the program the short link is associated with.
21
+ field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
22
+ # The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
23
+ field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } }
24
+
25
+
26
+ sig { params(domain: ::String, id: ::String, key: ::String, program_id: ::String, short_link: ::String).void }
27
+ def initialize(domain: nil, id: nil, key: nil, program_id: nil, short_link: nil)
28
+ @domain = domain
29
+ @id = id
30
+ @key = key
31
+ @program_id = program_id
32
+ @short_link = short_link
33
+ end
34
+ end
35
+ end
36
+ end
@@ -21,18 +21,24 @@ module OpenApiSDK
21
21
  field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
22
22
  # Avatar URL of the customer.
23
23
  field :avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } }
24
+ # Country of the customer.
25
+ field :country, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } }
24
26
  # Email of the customer.
25
27
  field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
26
28
 
29
+ field :link, T.nilable(::OpenApiSDK::Operations::Link), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } }
27
30
 
28
- sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), email: T.nilable(::String)).void }
29
- def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, email: nil)
31
+
32
+ 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 }
33
+ def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, email: nil, link: nil)
30
34
  @created_at = created_at
31
35
  @external_id = external_id
32
36
  @id = id
33
37
  @name = name
34
38
  @avatar = avatar
39
+ @country = country
35
40
  @email = email
41
+ @link = link
36
42
  end
37
43
  end
38
44
  end
@@ -0,0 +1,36 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module OpenApiSDK
8
+ module Operations
9
+
10
+
11
+ class UpdateCustomerLink < ::OpenApiSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # 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).
15
+ field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
16
+ # The unique ID of the short link.
17
+ field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
18
+ # The short link slug. If not provided, a random 7-character slug will be generated.
19
+ field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }
20
+ # The ID of the program the short link is associated with.
21
+ field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
22
+ # The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
23
+ field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } }
24
+
25
+
26
+ sig { params(domain: ::String, id: ::String, key: ::String, program_id: ::String, short_link: ::String).void }
27
+ def initialize(domain: nil, id: nil, key: nil, program_id: nil, short_link: nil)
28
+ @domain = domain
29
+ @id = id
30
+ @key = key
31
+ @program_id = program_id
32
+ @short_link = short_link
33
+ end
34
+ end
35
+ end
36
+ end
@@ -21,18 +21,24 @@ module OpenApiSDK
21
21
  field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
22
22
  # Avatar URL of the customer.
23
23
  field :avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } }
24
+ # Country of the customer.
25
+ field :country, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } }
24
26
  # Email of the customer.
25
27
  field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
26
28
 
29
+ field :link, T.nilable(::OpenApiSDK::Operations::UpdateCustomerLink), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } }
27
30
 
28
- sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), email: T.nilable(::String)).void }
29
- def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, email: nil)
31
+
32
+ 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 }
33
+ def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, email: nil, link: nil)
30
34
  @created_at = created_at
31
35
  @external_id = external_id
32
36
  @id = id
33
37
  @name = name
34
38
  @avatar = avatar
39
+ @country = country
35
40
  @email = email
41
+ @link = link
36
42
  end
37
43
  end
38
44
  end
@@ -75,19 +75,20 @@ module OpenApiSDK
75
75
  autoload :Sale, 'open_api_sdk/models/operations/sale.rb'
76
76
  autoload :TrackSaleResponseBody, 'open_api_sdk/models/operations/tracksale_responsebody.rb'
77
77
  autoload :TrackSaleResponse, 'open_api_sdk/models/operations/tracksale_response.rb'
78
- autoload :TrackCustomerRequestBody, 'open_api_sdk/models/operations/trackcustomer_requestbody.rb'
79
- autoload :TrackCustomerResponseBody, 'open_api_sdk/models/operations/trackcustomer_responsebody.rb'
80
- autoload :TrackCustomerResponse, 'open_api_sdk/models/operations/trackcustomer_response.rb'
78
+ autoload :Link, 'open_api_sdk/models/operations/link.rb'
81
79
  autoload :ResponseBody, 'open_api_sdk/models/operations/responsebody.rb'
82
80
  autoload :GetCustomersResponse, 'open_api_sdk/models/operations/getcustomers_response.rb'
83
81
  autoload :CreateCustomerRequestBody, 'open_api_sdk/models/operations/createcustomer_requestbody.rb'
82
+ autoload :CreateCustomerLink, 'open_api_sdk/models/operations/createcustomer_link.rb'
84
83
  autoload :CreateCustomerResponseBody, 'open_api_sdk/models/operations/createcustomer_responsebody.rb'
85
84
  autoload :CreateCustomerResponse, 'open_api_sdk/models/operations/createcustomer_response.rb'
86
85
  autoload :GetCustomerRequest, 'open_api_sdk/models/operations/getcustomer_request.rb'
86
+ autoload :GetCustomerLink, 'open_api_sdk/models/operations/getcustomer_link.rb'
87
87
  autoload :GetCustomerResponseBody, 'open_api_sdk/models/operations/getcustomer_responsebody.rb'
88
88
  autoload :GetCustomerResponse, 'open_api_sdk/models/operations/getcustomer_response.rb'
89
89
  autoload :UpdateCustomerRequestBody, 'open_api_sdk/models/operations/updatecustomer_requestbody.rb'
90
90
  autoload :UpdateCustomerRequest, 'open_api_sdk/models/operations/updatecustomer_request.rb'
91
+ autoload :UpdateCustomerLink, 'open_api_sdk/models/operations/updatecustomer_link.rb'
91
92
  autoload :UpdateCustomerResponseBody, 'open_api_sdk/models/operations/updatecustomer_responsebody.rb'
92
93
  autoload :UpdateCustomerResponse, 'open_api_sdk/models/operations/updatecustomer_response.rb'
93
94
  autoload :DeleteCustomerRequest, 'open_api_sdk/models/operations/deletecustomer_request.rb'
@@ -39,6 +39,8 @@ module OpenApiSDK
39
39
  field :logo, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('logo') } }
40
40
  # The name of the workspace.
41
41
  field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
42
+ # Whether the workspace has Dub Partners enabled.
43
+ field :partners_enabled, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnersEnabled') } }
42
44
  # The date and time when the payment failed for the workspace.
43
45
  field :payment_failed_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('paymentFailedAt') } }
44
46
  # [BETA – Dub Partners]: The ID of the payment method for partner payouts.
@@ -69,8 +71,8 @@ module OpenApiSDK
69
71
  field :flags, T.nilable(T::Hash[Symbol, T::Boolean]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('flags') } }
70
72
 
71
73
 
72
- sig { params(ai_limit: ::Float, ai_usage: ::Float, billing_cycle_start: ::Float, conversion_enabled: T::Boolean, created_at: ::String, domains: T::Array[::OpenApiSDK::Shared::Domains], domains_limit: ::Float, dot_link_claimed: T::Boolean, id: ::String, invite_code: ::String, links_limit: ::Float, links_usage: ::Float, logo: ::String, name: ::String, payment_failed_at: ::String, payout_method_id: ::String, plan: ::OpenApiSDK::Shared::Plan, sales_limit: ::Float, sales_usage: ::Float, slug: ::String, stripe_connect_id: ::String, stripe_id: ::String, tags_limit: ::Float, usage: ::Float, usage_limit: ::Float, users: T::Array[::OpenApiSDK::Shared::Users], users_limit: ::Float, flags: T.nilable(T::Hash[Symbol, T::Boolean])).void }
73
- def initialize(ai_limit: nil, ai_usage: nil, billing_cycle_start: nil, conversion_enabled: nil, created_at: nil, domains: nil, domains_limit: nil, dot_link_claimed: nil, id: nil, invite_code: nil, links_limit: nil, links_usage: nil, logo: nil, name: nil, payment_failed_at: nil, payout_method_id: nil, plan: nil, sales_limit: nil, sales_usage: nil, slug: nil, stripe_connect_id: nil, stripe_id: nil, tags_limit: nil, usage: nil, usage_limit: nil, users: nil, users_limit: nil, flags: nil)
74
+ sig { params(ai_limit: ::Float, ai_usage: ::Float, billing_cycle_start: ::Float, conversion_enabled: T::Boolean, created_at: ::String, domains: T::Array[::OpenApiSDK::Shared::Domains], domains_limit: ::Float, dot_link_claimed: T::Boolean, id: ::String, invite_code: ::String, links_limit: ::Float, links_usage: ::Float, logo: ::String, name: ::String, partners_enabled: T::Boolean, payment_failed_at: ::String, payout_method_id: ::String, plan: ::OpenApiSDK::Shared::Plan, sales_limit: ::Float, sales_usage: ::Float, slug: ::String, stripe_connect_id: ::String, stripe_id: ::String, tags_limit: ::Float, usage: ::Float, usage_limit: ::Float, users: T::Array[::OpenApiSDK::Shared::Users], users_limit: ::Float, flags: T.nilable(T::Hash[Symbol, T::Boolean])).void }
75
+ def initialize(ai_limit: nil, ai_usage: nil, billing_cycle_start: nil, conversion_enabled: nil, created_at: nil, domains: nil, domains_limit: nil, dot_link_claimed: nil, id: nil, invite_code: nil, links_limit: nil, links_usage: nil, logo: nil, name: nil, partners_enabled: nil, payment_failed_at: nil, payout_method_id: nil, plan: nil, sales_limit: nil, sales_usage: nil, slug: nil, stripe_connect_id: nil, stripe_id: nil, tags_limit: nil, usage: nil, usage_limit: nil, users: nil, users_limit: nil, flags: nil)
74
76
  @ai_limit = ai_limit
75
77
  @ai_usage = ai_usage
76
78
  @billing_cycle_start = billing_cycle_start
@@ -85,6 +87,7 @@ module OpenApiSDK
85
87
  @links_usage = links_usage
86
88
  @logo = logo
87
89
  @name = name
90
+ @partners_enabled = partners_enabled
88
91
  @payment_failed_at = payment_failed_at
89
92
  @payout_method_id = payout_method_id
90
93
  @plan = plan
@@ -38,9 +38,9 @@ module OpenApiSDK
38
38
  @security = security
39
39
  @language = 'ruby'
40
40
  @openapi_doc_version = '0.0.1'
41
- @sdk_version = '0.2.2-alpha.46'
42
- @gen_version = '2.481.0'
43
- @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.46 2.481.0 0.0.1 dub'
41
+ @sdk_version = '0.2.2-alpha.48'
42
+ @gen_version = '2.483.1'
43
+ @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.48 2.483.1 0.0.1 dub'
44
44
  end
45
45
 
46
46
  sig { returns([String, T::Hash[Symbol, String]]) }
@@ -189,93 +189,5 @@ module OpenApiSDK
189
189
 
190
190
  res
191
191
  end
192
-
193
-
194
- sig { params(request: T.nilable(::OpenApiSDK::Operations::TrackCustomerRequestBody)).returns(::OpenApiSDK::Operations::TrackCustomerResponse) }
195
- def customer(request)
196
- # customer - Track a customer
197
- # Track a customer for an authenticated workspace.
198
- #
199
- # @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
200
- url, params = @sdk_configuration.get_server_details
201
- base_url = Utils.template_url(url, params)
202
- url = "#{base_url}/track/customer"
203
- headers = {}
204
- req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
205
- headers['content-type'] = req_content_type
206
- headers['Accept'] = 'application/json'
207
- headers['user-agent'] = @sdk_configuration.user_agent
208
-
209
- r = @sdk_configuration.client.post(url) do |req|
210
- req.headers = headers
211
- Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
212
- if form
213
- req.body = Utils.encode_form(form)
214
- elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
215
- req.body = URI.encode_www_form(data)
216
- else
217
- req.body = data
218
- end
219
- end
220
-
221
- content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
222
-
223
- res = ::OpenApiSDK::Operations::TrackCustomerResponse.new(
224
- status_code: r.status, content_type: content_type, raw_response: r
225
- )
226
- if r.status == 200
227
- if Utils.match_content_type(content_type, 'application/json')
228
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::TrackCustomerResponseBody)
229
- res.object = out
230
- end
231
- elsif r.status == 400
232
- if Utils.match_content_type(content_type, 'application/json')
233
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
234
- res.bad_request = out
235
- end
236
- elsif r.status == 401
237
- if Utils.match_content_type(content_type, 'application/json')
238
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
239
- res.unauthorized = out
240
- end
241
- elsif r.status == 403
242
- if Utils.match_content_type(content_type, 'application/json')
243
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
244
- res.forbidden = out
245
- end
246
- elsif r.status == 404
247
- if Utils.match_content_type(content_type, 'application/json')
248
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
249
- res.not_found = out
250
- end
251
- elsif r.status == 409
252
- if Utils.match_content_type(content_type, 'application/json')
253
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
254
- res.conflict = out
255
- end
256
- elsif r.status == 410
257
- if Utils.match_content_type(content_type, 'application/json')
258
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
259
- res.invite_expired = out
260
- end
261
- elsif r.status == 422
262
- if Utils.match_content_type(content_type, 'application/json')
263
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
264
- res.unprocessable_entity = out
265
- end
266
- elsif r.status == 429
267
- if Utils.match_content_type(content_type, 'application/json')
268
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
269
- res.rate_limit_exceeded = out
270
- end
271
- elsif r.status == 500
272
- if Utils.match_content_type(content_type, 'application/json')
273
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
274
- res.internal_server_error = out
275
- end
276
- end
277
-
278
- res
279
- end
280
192
  end
281
193
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2.pre.alpha.46
4
+ version: 0.2.2.pre.alpha.48
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-18 00:00:00.000000000 Z
11
+ date: 2024-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -160,6 +160,7 @@ files:
160
160
  - lib/open_api_sdk/models/operations/bulkupdatelinks_response.rb
161
161
  - lib/open_api_sdk/models/operations/click.rb
162
162
  - lib/open_api_sdk/models/operations/color.rb
163
+ - lib/open_api_sdk/models/operations/createcustomer_link.rb
163
164
  - lib/open_api_sdk/models/operations/createcustomer_requestbody.rb
164
165
  - lib/open_api_sdk/models/operations/createcustomer_response.rb
165
166
  - lib/open_api_sdk/models/operations/createcustomer_responsebody.rb
@@ -187,6 +188,7 @@ files:
187
188
  - lib/open_api_sdk/models/operations/deletetag_response.rb
188
189
  - lib/open_api_sdk/models/operations/deletetag_responsebody.rb
189
190
  - lib/open_api_sdk/models/operations/event.rb
191
+ - lib/open_api_sdk/models/operations/getcustomer_link.rb
190
192
  - lib/open_api_sdk/models/operations/getcustomer_request.rb
191
193
  - lib/open_api_sdk/models/operations/getcustomer_response.rb
192
194
  - lib/open_api_sdk/models/operations/getcustomer_responsebody.rb
@@ -208,6 +210,7 @@ files:
208
210
  - lib/open_api_sdk/models/operations/groupby.rb
209
211
  - lib/open_api_sdk/models/operations/interval.rb
210
212
  - lib/open_api_sdk/models/operations/level.rb
213
+ - lib/open_api_sdk/models/operations/link.rb
211
214
  - lib/open_api_sdk/models/operations/listdomains_request.rb
212
215
  - lib/open_api_sdk/models/operations/listdomains_response.rb
213
216
  - lib/open_api_sdk/models/operations/listevents_request.rb
@@ -224,9 +227,6 @@ files:
224
227
  - lib/open_api_sdk/models/operations/sale.rb
225
228
  - lib/open_api_sdk/models/operations/sort.rb
226
229
  - lib/open_api_sdk/models/operations/sortby.rb
227
- - lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb
228
- - lib/open_api_sdk/models/operations/trackcustomer_response.rb
229
- - lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb
230
230
  - lib/open_api_sdk/models/operations/tracklead_requestbody.rb
231
231
  - lib/open_api_sdk/models/operations/tracklead_response.rb
232
232
  - lib/open_api_sdk/models/operations/tracklead_responsebody.rb
@@ -235,6 +235,7 @@ files:
235
235
  - lib/open_api_sdk/models/operations/tracksale_response.rb
236
236
  - lib/open_api_sdk/models/operations/tracksale_responsebody.rb
237
237
  - lib/open_api_sdk/models/operations/trigger.rb
238
+ - lib/open_api_sdk/models/operations/updatecustomer_link.rb
238
239
  - lib/open_api_sdk/models/operations/updatecustomer_request.rb
239
240
  - lib/open_api_sdk/models/operations/updatecustomer_requestbody.rb
240
241
  - lib/open_api_sdk/models/operations/updatecustomer_response.rb
@@ -1,33 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
-
7
- module OpenApiSDK
8
- module Operations
9
-
10
-
11
- class TrackCustomerRequestBody < ::OpenApiSDK::Utils::FieldAugmented
12
- extend T::Sig
13
-
14
- # This is the unique identifier for the customer in the client's app. This is used to track the customer's journey.
15
- field :customer_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerId') } }
16
- # Avatar of the customer in the client's app.
17
- field :customer_avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerAvatar') } }
18
- # Email of the customer in the client's app.
19
- field :customer_email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerEmail') } }
20
- # Name of the customer in the client's app.
21
- field :customer_name, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerName') } }
22
-
23
-
24
- sig { params(customer_id: ::String, customer_avatar: T.nilable(::String), customer_email: T.nilable(::String), customer_name: T.nilable(::String)).void }
25
- def initialize(customer_id: nil, customer_avatar: nil, customer_email: nil, customer_name: nil)
26
- @customer_id = customer_id
27
- @customer_avatar = customer_avatar
28
- @customer_email = customer_email
29
- @customer_name = customer_name
30
- end
31
- end
32
- end
33
- end
@@ -1,60 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
-
7
- module OpenApiSDK
8
- module Operations
9
-
10
-
11
- class TrackCustomerResponse < ::OpenApiSDK::Utils::FieldAugmented
12
- extend T::Sig
13
-
14
- # HTTP response content type for this operation
15
- field :content_type, ::String
16
- # Raw HTTP response; suitable for custom response parsing
17
- field :raw_response, ::Faraday::Response
18
- # HTTP response status code for this operation
19
- field :status_code, ::Integer
20
- # 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).
21
- field :bad_request, T.nilable(::OpenApiSDK::Shared::BadRequest)
22
- # This response is sent when a request conflicts with the current state of the server.
23
- field :conflict, T.nilable(::OpenApiSDK::Shared::Conflict)
24
- # 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.
25
- field :forbidden, T.nilable(::OpenApiSDK::Shared::Forbidden)
26
- # The server has encountered a situation it does not know how to handle.
27
- field :internal_server_error, T.nilable(::OpenApiSDK::Shared::InternalServerError)
28
- # This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
29
- field :invite_expired, T.nilable(::OpenApiSDK::Shared::InviteExpired)
30
- # The server cannot find the requested resource.
31
- field :not_found, T.nilable(::OpenApiSDK::Shared::NotFound)
32
- # A customer was tracked.
33
- field :object, T.nilable(::OpenApiSDK::Operations::TrackCustomerResponseBody)
34
- # The user has sent too many requests in a given amount of time ("rate limiting")
35
- field :rate_limit_exceeded, T.nilable(::OpenApiSDK::Shared::RateLimitExceeded)
36
- # Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
37
- field :unauthorized, T.nilable(::OpenApiSDK::Shared::Unauthorized)
38
- # The request was well-formed but was unable to be followed due to semantic errors.
39
- field :unprocessable_entity, T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)
40
-
41
-
42
- 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 }
43
- 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)
44
- @content_type = content_type
45
- @raw_response = raw_response
46
- @status_code = status_code
47
- @bad_request = bad_request
48
- @conflict = conflict
49
- @forbidden = forbidden
50
- @internal_server_error = internal_server_error
51
- @invite_expired = invite_expired
52
- @not_found = not_found
53
- @object = object
54
- @rate_limit_exceeded = rate_limit_exceeded
55
- @unauthorized = unauthorized
56
- @unprocessable_entity = unprocessable_entity
57
- end
58
- end
59
- end
60
- end
@@ -1,33 +0,0 @@
1
- # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
-
3
- # typed: true
4
- # frozen_string_literal: true
5
-
6
-
7
- module OpenApiSDK
8
- module Operations
9
-
10
- # A customer was tracked.
11
- class TrackCustomerResponseBody < ::OpenApiSDK::Utils::FieldAugmented
12
- extend T::Sig
13
-
14
-
15
- field :customer_avatar, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerAvatar') } }
16
-
17
- field :customer_email, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerEmail') } }
18
-
19
- field :customer_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerId') } }
20
-
21
- field :customer_name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('customerName') } }
22
-
23
-
24
- sig { params(customer_avatar: ::String, customer_email: ::String, customer_id: ::String, customer_name: ::String).void }
25
- def initialize(customer_avatar: nil, customer_email: nil, customer_id: nil, customer_name: nil)
26
- @customer_avatar = customer_avatar
27
- @customer_email = customer_email
28
- @customer_id = customer_id
29
- @customer_name = customer_name
30
- end
31
- end
32
- end
33
- end