dub 0.2.2.pre.alpha.10 → 0.2.2.pre.alpha.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletelink_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/deletelink_responsebody.rb +1 -1
- data/lib/open_api_sdk/models/operations/deletetag_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/deletetag_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/deletetag_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/listevents_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/queryparam_event.rb +0 -1
- data/lib/open_api_sdk/models/operations/queryparam_interval.rb +1 -2
- data/lib/open_api_sdk/models/operations/updatelink_requestbody.rb +1 -1
- data/lib/open_api_sdk/models/operations.rb +3 -0
- data/lib/open_api_sdk/models/shared/click.rb +54 -0
- data/lib/open_api_sdk/models/shared/clickevent.rb +48 -19
- data/lib/open_api_sdk/models/shared/clickevent_geo.rb +771 -0
- data/lib/open_api_sdk/models/shared/link.rb +148 -0
- data/lib/open_api_sdk/models/shared/workspaceschema.rb +2 -5
- data/lib/open_api_sdk/models/shared.rb +3 -0
- data/lib/open_api_sdk/sdkconfiguration.rb +3 -3
- data/lib/open_api_sdk/tags.rb +81 -0
- metadata +8 -2
@@ -0,0 +1,148 @@
|
|
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 Shared
|
9
|
+
|
10
|
+
|
11
|
+
class Link < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The Android destination URL for the short link for Android device targeting.
|
15
|
+
field :android, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('android') } }
|
16
|
+
# The number of clicks on the short link.
|
17
|
+
field :clicks, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('clicks') } }
|
18
|
+
# The comments for the short link.
|
19
|
+
field :comments, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('comments') } }
|
20
|
+
|
21
|
+
field :created_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('createdAt') } }
|
22
|
+
# The description of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
|
23
|
+
field :description, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
|
24
|
+
# 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).
|
25
|
+
field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
|
26
|
+
# The URL to redirect to when the short link has expired.
|
27
|
+
field :expired_url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiredUrl') } }
|
28
|
+
|
29
|
+
field :expires_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiresAt') } }
|
30
|
+
# This is the ID of the link in your database. If set, it can be used to identify the link in the future. Must be prefixed with 'ext_' when passed as a query parameter.
|
31
|
+
field :external_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('externalId') } }
|
32
|
+
# Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo
|
33
|
+
field :geo, ::OpenApiSDK::Shared::ClickEventGeo, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('geo') } }
|
34
|
+
# The unique ID of the short link.
|
35
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
36
|
+
# The image of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
|
37
|
+
field :image, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
38
|
+
# The iOS destination URL for the short link for iOS device targeting.
|
39
|
+
field :ios, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ios') } }
|
40
|
+
# The short link slug. If not provided, a random 7-character slug will be generated.
|
41
|
+
field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }
|
42
|
+
|
43
|
+
field :last_clicked, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('lastClicked') } }
|
44
|
+
# [BETA]: The number of leads the short links has generated.
|
45
|
+
field :leads, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('leads') } }
|
46
|
+
# The password required to access the destination URL of the short link.
|
47
|
+
field :password, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('password') } }
|
48
|
+
# The project ID of the short link. This field is deprecated – use `workspaceId` instead.
|
49
|
+
#
|
50
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
51
|
+
field :project_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('projectId') } }
|
52
|
+
# The full URL of the QR code for the short link (e.g. `https://api.dub.co/qr?url=https://dub.sh/try`).
|
53
|
+
field :qr_code, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('qrCode') } }
|
54
|
+
# [BETA]: The total dollar amount of sales the short links has generated (in cents).
|
55
|
+
field :sale_amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
|
56
|
+
# [BETA]: The number of sales the short links has generated.
|
57
|
+
field :sales, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('sales') } }
|
58
|
+
# The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
59
|
+
field :short_link, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('shortLink') } }
|
60
|
+
# The unique ID of the tag assigned to the short link. This field is deprecated – use `tags` instead.
|
61
|
+
#
|
62
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
63
|
+
field :tag_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagId') } }
|
64
|
+
# The tags assigned to the short link.
|
65
|
+
field :tags, T::Array[::OpenApiSDK::Shared::TagSchema], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tags') } }
|
66
|
+
# The title of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
|
67
|
+
field :title, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('title') } }
|
68
|
+
|
69
|
+
field :updated_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('updatedAt') } }
|
70
|
+
|
71
|
+
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
72
|
+
# The user ID of the creator of the short link.
|
73
|
+
field :user_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('userId') } }
|
74
|
+
# The UTM campaign of the short link.
|
75
|
+
field :utm_campaign, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_campaign') } }
|
76
|
+
# The UTM content of the short link.
|
77
|
+
field :utm_content, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_content') } }
|
78
|
+
# The UTM medium of the short link.
|
79
|
+
field :utm_medium, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_medium') } }
|
80
|
+
# The UTM source of the short link.
|
81
|
+
field :utm_source, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_source') } }
|
82
|
+
# The UTM term of the short link.
|
83
|
+
field :utm_term, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_term') } }
|
84
|
+
# The custom link preview video (og:video). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og
|
85
|
+
field :video, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('video') } }
|
86
|
+
# The workspace ID of the short link.
|
87
|
+
field :workspace_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('workspaceId') } }
|
88
|
+
|
89
|
+
field :archived, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('archived') } }
|
90
|
+
|
91
|
+
field :do_index, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('doIndex') } }
|
92
|
+
|
93
|
+
field :proxy, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('proxy') } }
|
94
|
+
|
95
|
+
field :public_stats, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('publicStats') } }
|
96
|
+
|
97
|
+
field :rewrite, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rewrite') } }
|
98
|
+
|
99
|
+
field :track_conversion, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('trackConversion') } }
|
100
|
+
|
101
|
+
|
102
|
+
sig { params(android: ::String, clicks: ::Float, comments: ::String, created_at: ::String, description: ::String, domain: ::String, expired_url: ::String, expires_at: ::String, external_id: ::String, geo: ::OpenApiSDK::Shared::ClickEventGeo, id: ::String, image: ::String, ios: ::String, key: ::String, last_clicked: ::String, leads: ::Float, password: ::String, project_id: ::String, qr_code: ::String, sale_amount: ::Float, sales: ::Float, short_link: ::String, tag_id: ::String, tags: T::Array[::OpenApiSDK::Shared::TagSchema], title: ::String, updated_at: ::String, url: ::String, user_id: ::String, utm_campaign: ::String, utm_content: ::String, utm_medium: ::String, utm_source: ::String, utm_term: ::String, video: ::String, workspace_id: ::String, archived: T.nilable(T::Boolean), do_index: T.nilable(T::Boolean), proxy: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), rewrite: T.nilable(T::Boolean), track_conversion: T.nilable(T::Boolean)).void }
|
103
|
+
def initialize(android: nil, clicks: nil, comments: nil, created_at: nil, description: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, id: nil, image: nil, ios: nil, key: nil, last_clicked: nil, leads: nil, password: nil, project_id: nil, qr_code: nil, sale_amount: nil, sales: nil, short_link: nil, tag_id: nil, tags: nil, title: nil, updated_at: nil, url: nil, user_id: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil, workspace_id: nil, archived: nil, do_index: nil, proxy: nil, public_stats: nil, rewrite: nil, track_conversion: nil)
|
104
|
+
@android = android
|
105
|
+
@clicks = clicks
|
106
|
+
@comments = comments
|
107
|
+
@created_at = created_at
|
108
|
+
@description = description
|
109
|
+
@domain = domain
|
110
|
+
@expired_url = expired_url
|
111
|
+
@expires_at = expires_at
|
112
|
+
@external_id = external_id
|
113
|
+
@geo = geo
|
114
|
+
@id = id
|
115
|
+
@image = image
|
116
|
+
@ios = ios
|
117
|
+
@key = key
|
118
|
+
@last_clicked = last_clicked
|
119
|
+
@leads = leads
|
120
|
+
@password = password
|
121
|
+
@project_id = project_id
|
122
|
+
@qr_code = qr_code
|
123
|
+
@sale_amount = sale_amount
|
124
|
+
@sales = sales
|
125
|
+
@short_link = short_link
|
126
|
+
@tag_id = tag_id
|
127
|
+
@tags = tags
|
128
|
+
@title = title
|
129
|
+
@updated_at = updated_at
|
130
|
+
@url = url
|
131
|
+
@user_id = user_id
|
132
|
+
@utm_campaign = utm_campaign
|
133
|
+
@utm_content = utm_content
|
134
|
+
@utm_medium = utm_medium
|
135
|
+
@utm_source = utm_source
|
136
|
+
@utm_term = utm_term
|
137
|
+
@video = video
|
138
|
+
@workspace_id = workspace_id
|
139
|
+
@archived = archived
|
140
|
+
@do_index = do_index
|
141
|
+
@proxy = proxy
|
142
|
+
@public_stats = public_stats
|
143
|
+
@rewrite = rewrite
|
144
|
+
@track_conversion = track_conversion
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
@@ -41,8 +41,6 @@ module OpenApiSDK
|
|
41
41
|
field :plan, ::OpenApiSDK::Shared::Plan, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('plan'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Shared::Plan, false) } }
|
42
42
|
# The ID of the referral link of the workspace.
|
43
43
|
field :referral_link_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('referralLinkId') } }
|
44
|
-
# The number of signups referred by the workspace.
|
45
|
-
field :referred_signups, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('referredSignups') } }
|
46
44
|
# The limit of tracked revenue in the current billing cycle (in cents).
|
47
45
|
field :sales_limit, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('salesLimit') } }
|
48
46
|
# The dollar amount of tracked revenue in the current billing cycle (in cents).
|
@@ -67,8 +65,8 @@ module OpenApiSDK
|
|
67
65
|
field :flags, T.nilable(T::Hash[Symbol, T::Boolean]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('flags') } }
|
68
66
|
|
69
67
|
|
70
|
-
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, id: ::String, invite_code: ::String, links_limit: ::Float, links_usage: ::Float, logo: ::String, name: ::String, plan: ::OpenApiSDK::Shared::Plan, referral_link_id: ::String,
|
71
|
-
def initialize(ai_limit: nil, ai_usage: nil, billing_cycle_start: nil, conversion_enabled: nil, created_at: nil, domains: nil, domains_limit: nil, id: nil, invite_code: nil, links_limit: nil, links_usage: nil, logo: nil, name: nil, plan: nil, referral_link_id: nil,
|
68
|
+
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, id: ::String, invite_code: ::String, links_limit: ::Float, links_usage: ::Float, logo: ::String, name: ::String, plan: ::OpenApiSDK::Shared::Plan, referral_link_id: ::String, 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 }
|
69
|
+
def initialize(ai_limit: nil, ai_usage: nil, billing_cycle_start: nil, conversion_enabled: nil, created_at: nil, domains: nil, domains_limit: nil, id: nil, invite_code: nil, links_limit: nil, links_usage: nil, logo: nil, name: nil, plan: nil, referral_link_id: 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)
|
72
70
|
@ai_limit = ai_limit
|
73
71
|
@ai_usage = ai_usage
|
74
72
|
@billing_cycle_start = billing_cycle_start
|
@@ -84,7 +82,6 @@ module OpenApiSDK
|
|
84
82
|
@name = name
|
85
83
|
@plan = plan
|
86
84
|
@referral_link_id = referral_link_id
|
87
|
-
@referred_signups = referred_signups
|
88
85
|
@sales_limit = sales_limit
|
89
86
|
@sales_usage = sales_usage
|
90
87
|
@slug = slug
|
@@ -40,6 +40,9 @@ module OpenApiSDK
|
|
40
40
|
autoload :CountryCode, 'open_api_sdk/models/shared/countrycode.rb'
|
41
41
|
autoload :ContinentCode, 'open_api_sdk/models/shared/continentcode.rb'
|
42
42
|
autoload :Event, 'open_api_sdk/models/shared/event.rb'
|
43
|
+
autoload :Click, 'open_api_sdk/models/shared/click.rb'
|
44
|
+
autoload :ClickEventGeo, 'open_api_sdk/models/shared/clickevent_geo.rb'
|
45
|
+
autoload :Link, 'open_api_sdk/models/shared/link.rb'
|
43
46
|
autoload :ClickEvent, 'open_api_sdk/models/shared/clickevent.rb'
|
44
47
|
autoload :Plan, 'open_api_sdk/models/shared/plan.rb'
|
45
48
|
autoload :Role, 'open_api_sdk/models/shared/role.rb'
|
@@ -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.
|
42
|
-
@gen_version = '2.
|
43
|
-
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.
|
41
|
+
@sdk_version = '0.2.2-alpha.12'
|
42
|
+
@gen_version = '2.413.0'
|
43
|
+
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.12 2.413.0 0.0.1 dub'
|
44
44
|
end
|
45
45
|
|
46
46
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
data/lib/open_api_sdk/tags.rb
CHANGED
@@ -180,6 +180,87 @@ module OpenApiSDK
|
|
180
180
|
end
|
181
181
|
|
182
182
|
|
183
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::DeleteTagRequest)).returns(::OpenApiSDK::Operations::DeleteTagResponse) }
|
184
|
+
def delete(request)
|
185
|
+
# delete - Delete a tag
|
186
|
+
# Delete a tag from the workspace. All existing links will still work, but they will no longer be associated with this tag.
|
187
|
+
url, params = @sdk_configuration.get_server_details
|
188
|
+
base_url = Utils.template_url(url, params)
|
189
|
+
url = Utils.generate_url(
|
190
|
+
::OpenApiSDK::Operations::DeleteTagRequest,
|
191
|
+
base_url,
|
192
|
+
'/tags/{id}',
|
193
|
+
request
|
194
|
+
)
|
195
|
+
headers = {}
|
196
|
+
headers['Accept'] = 'application/json'
|
197
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
198
|
+
|
199
|
+
r = @sdk_configuration.client.delete(url) do |req|
|
200
|
+
req.headers = headers
|
201
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
202
|
+
end
|
203
|
+
|
204
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
205
|
+
|
206
|
+
res = ::OpenApiSDK::Operations::DeleteTagResponse.new(
|
207
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
208
|
+
)
|
209
|
+
if r.status == 200
|
210
|
+
if Utils.match_content_type(content_type, 'application/json')
|
211
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::DeleteTagResponseBody)
|
212
|
+
res.object = out
|
213
|
+
end
|
214
|
+
elsif r.status == 400
|
215
|
+
if Utils.match_content_type(content_type, 'application/json')
|
216
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
217
|
+
res.bad_request = out
|
218
|
+
end
|
219
|
+
elsif r.status == 401
|
220
|
+
if Utils.match_content_type(content_type, 'application/json')
|
221
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
222
|
+
res.unauthorized = out
|
223
|
+
end
|
224
|
+
elsif r.status == 403
|
225
|
+
if Utils.match_content_type(content_type, 'application/json')
|
226
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
227
|
+
res.forbidden = out
|
228
|
+
end
|
229
|
+
elsif r.status == 404
|
230
|
+
if Utils.match_content_type(content_type, 'application/json')
|
231
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
232
|
+
res.not_found = out
|
233
|
+
end
|
234
|
+
elsif r.status == 409
|
235
|
+
if Utils.match_content_type(content_type, 'application/json')
|
236
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
237
|
+
res.conflict = out
|
238
|
+
end
|
239
|
+
elsif r.status == 410
|
240
|
+
if Utils.match_content_type(content_type, 'application/json')
|
241
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
242
|
+
res.invite_expired = out
|
243
|
+
end
|
244
|
+
elsif r.status == 422
|
245
|
+
if Utils.match_content_type(content_type, 'application/json')
|
246
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
247
|
+
res.unprocessable_entity = out
|
248
|
+
end
|
249
|
+
elsif r.status == 429
|
250
|
+
if Utils.match_content_type(content_type, 'application/json')
|
251
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
252
|
+
res.rate_limit_exceeded = out
|
253
|
+
end
|
254
|
+
elsif r.status == 500
|
255
|
+
if Utils.match_content_type(content_type, 'application/json')
|
256
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
257
|
+
res.internal_server_error = out
|
258
|
+
end
|
259
|
+
end
|
260
|
+
res
|
261
|
+
end
|
262
|
+
|
263
|
+
|
183
264
|
sig { params(request: T.nilable(::OpenApiSDK::Operations::UpdateTagRequest)).returns(::OpenApiSDK::Operations::UpdateTagResponse) }
|
184
265
|
def update(request)
|
185
266
|
# update - Update a tag
|
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.
|
4
|
+
version: 0.2.2.pre.alpha.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -172,6 +172,9 @@ files:
|
|
172
172
|
- lib/open_api_sdk/models/operations/deletelink_request.rb
|
173
173
|
- lib/open_api_sdk/models/operations/deletelink_response.rb
|
174
174
|
- lib/open_api_sdk/models/operations/deletelink_responsebody.rb
|
175
|
+
- lib/open_api_sdk/models/operations/deletetag_request.rb
|
176
|
+
- lib/open_api_sdk/models/operations/deletetag_response.rb
|
177
|
+
- lib/open_api_sdk/models/operations/deletetag_responsebody.rb
|
175
178
|
- lib/open_api_sdk/models/operations/event.rb
|
176
179
|
- lib/open_api_sdk/models/operations/getlinkinfo_request.rb
|
177
180
|
- lib/open_api_sdk/models/operations/getlinkinfo_response.rb
|
@@ -231,7 +234,9 @@ files:
|
|
231
234
|
- lib/open_api_sdk/models/operations/upsertlink_response.rb
|
232
235
|
- lib/open_api_sdk/models/shared.rb
|
233
236
|
- lib/open_api_sdk/models/shared/badrequest.rb
|
237
|
+
- lib/open_api_sdk/models/shared/click.rb
|
234
238
|
- lib/open_api_sdk/models/shared/clickevent.rb
|
239
|
+
- lib/open_api_sdk/models/shared/clickevent_geo.rb
|
235
240
|
- lib/open_api_sdk/models/shared/code.rb
|
236
241
|
- lib/open_api_sdk/models/shared/color.rb
|
237
242
|
- lib/open_api_sdk/models/shared/conflict.rb
|
@@ -253,6 +258,7 @@ files:
|
|
253
258
|
- lib/open_api_sdk/models/shared/inviteexpired.rb
|
254
259
|
- lib/open_api_sdk/models/shared/inviteexpired_code.rb
|
255
260
|
- lib/open_api_sdk/models/shared/inviteexpired_error.rb
|
261
|
+
- lib/open_api_sdk/models/shared/link.rb
|
256
262
|
- lib/open_api_sdk/models/shared/linkgeotargeting.rb
|
257
263
|
- lib/open_api_sdk/models/shared/linkschema.rb
|
258
264
|
- lib/open_api_sdk/models/shared/notfound.rb
|