dub 0.2.2.pre.alpha.83 → 0.2.2.pre.alpha.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/dub.rb +0 -1
- data/lib/open_api_sdk/dub.rb +1 -2
- data/lib/open_api_sdk/models/operations/bulkcreatelinks_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/createcustomer_responsebody.rb +5 -2
- data/lib/open_api_sdk/models/operations/createlink_requestbody.rb +11 -2
- data/lib/open_api_sdk/models/operations/createpartner_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/createpartnerlink_linkprops.rb +11 -2
- data/lib/open_api_sdk/models/operations/createpartnerlink_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_linkprops.rb +11 -2
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/data.rb +11 -2
- data/lib/open_api_sdk/models/operations/discount.rb +2 -2
- data/lib/open_api_sdk/models/operations/getcustomer_responsebody.rb +5 -2
- data/lib/open_api_sdk/models/operations/getcustomers_type.rb +18 -0
- data/lib/open_api_sdk/models/operations/linkprops.rb +11 -2
- data/lib/open_api_sdk/models/operations/listevents_request.rb +5 -2
- data/lib/open_api_sdk/models/operations/requestbody.rb +11 -2
- data/lib/open_api_sdk/models/operations/responsebody.rb +5 -2
- data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +5 -2
- data/lib/open_api_sdk/models/operations/testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/tracklead_requestbody.rb +11 -16
- data/lib/open_api_sdk/models/operations/tracksale_requestbody.rb +8 -13
- data/lib/open_api_sdk/models/operations/type.rb +3 -2
- data/lib/open_api_sdk/models/operations/updatecustomer_responsebody.rb +5 -2
- data/lib/open_api_sdk/models/operations/updatelink_requestbody.rb +11 -2
- data/lib/open_api_sdk/models/operations/updatelink_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/updatepartnersale_responsebody.rb +5 -2
- data/lib/open_api_sdk/models/operations/upsertlink_requestbody.rb +11 -2
- data/lib/open_api_sdk/models/operations/upsertlink_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_linkprops.rb +11 -2
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations.rb +11 -4
- data/lib/open_api_sdk/models/shared/clickevent_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/shared/link.rb +14 -5
- data/lib/open_api_sdk/models/shared/linkschema.rb +14 -5
- data/lib/open_api_sdk/models/shared/testvariants.rb +27 -0
- data/lib/open_api_sdk/models/shared.rb +2 -0
- data/lib/open_api_sdk/sdkconfiguration.rb +2 -2
- metadata +15 -7
- data/lib/open_api_sdk/metatags.rb +0 -109
- data/lib/open_api_sdk/models/operations/getmetatags_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/getmetatags_response.rb +0 -33
- data/lib/open_api_sdk/models/operations/getmetatags_responsebody.rb +0 -30
@@ -21,7 +21,7 @@ module OpenApiSDK
|
|
21
21
|
field :comments, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('comments') } }
|
22
22
|
# The date and time when the short link was created.
|
23
23
|
field :created_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('createdAt') } }
|
24
|
-
# The description of the short link
|
24
|
+
# The description of the short link. Will be used for Custom Social Media Cards if `proxy` is true.
|
25
25
|
field :description, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
|
26
26
|
# Whether to allow search engines to index the short link.
|
27
27
|
field :do_index, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('doIndex') } }
|
@@ -39,7 +39,7 @@ module OpenApiSDK
|
|
39
39
|
field :geo, ::OpenApiSDK::Shared::Geo, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('geo') } }
|
40
40
|
# The unique ID of the short link.
|
41
41
|
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
42
|
-
# The image of the short link
|
42
|
+
# The image of the short link. Will be used for Custom Social Media Cards if `proxy` is true.
|
43
43
|
field :image, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
44
44
|
# The iOS destination URL for the short link for iOS device targeting.
|
45
45
|
field :ios, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ios') } }
|
@@ -81,7 +81,7 @@ module OpenApiSDK
|
|
81
81
|
field :tags, T::Array[::OpenApiSDK::Shared::TagSchema], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tags') } }
|
82
82
|
# The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant.
|
83
83
|
field :tenant_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tenantId') } }
|
84
|
-
# The title of the short link
|
84
|
+
# The title of the short link. Will be used for Custom Social Media Cards if `proxy` is true.
|
85
85
|
field :title, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('title') } }
|
86
86
|
# Whether to track conversions for the short link.
|
87
87
|
field :track_conversion, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('trackConversion') } }
|
@@ -107,10 +107,16 @@ module OpenApiSDK
|
|
107
107
|
field :webhook_ids, T::Array[::String], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhookIds') } }
|
108
108
|
# The workspace ID of the short link.
|
109
109
|
field :workspace_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('workspaceId') } }
|
110
|
+
# The date and time when the tests were or will be completed.
|
111
|
+
field :test_completed_at, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('testCompletedAt') } }
|
112
|
+
# The date and time when the tests started.
|
113
|
+
field :test_started_at, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('testStartedAt') } }
|
114
|
+
# An array of A/B test URLs and the percentage of traffic to send to each URL.
|
115
|
+
field :test_variants, T.nilable(T::Array[::OpenApiSDK::Shared::TestVariants]), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('testVariants') } }
|
110
116
|
|
111
117
|
|
112
|
-
sig { params(android: ::String, archived: T::Boolean, clicks: ::Float, comments: ::String, created_at: ::String, description: ::String, do_index: T::Boolean, domain: ::String, expired_url: ::String, expires_at: ::String, external_id: ::String, folder_id: ::String, geo: ::OpenApiSDK::Shared::Geo, id: ::String, image: ::String, ios: ::String, key: ::String, last_clicked: ::String, leads: ::Float, partner_id: ::String, password: ::String, program_id: ::String, project_id: ::String, proxy: T::Boolean, public_stats: T::Boolean, qr_code: ::String, rewrite: T::Boolean, sale_amount: ::Float, sales: ::Float, short_link: ::String, tag_id: ::String, tags: T::Array[::OpenApiSDK::Shared::TagSchema], tenant_id: ::String, title: ::String, track_conversion: T::Boolean, 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, webhook_ids: T::Array[::String], workspace_id: ::String).void }
|
113
|
-
def initialize(android: nil, archived: nil, clicks: nil, comments: nil, created_at: nil, description: nil, do_index: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, folder_id: nil, geo: nil, id: nil, image: nil, ios: nil, key: nil, last_clicked: nil, leads: nil, partner_id: nil, password: nil, program_id: nil, project_id: nil, proxy: nil, public_stats: nil, qr_code: nil, rewrite: nil, sale_amount: nil, sales: nil, short_link: nil, tag_id: nil, tags: nil, tenant_id: nil, title: nil, track_conversion: 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, webhook_ids: nil, workspace_id: nil)
|
118
|
+
sig { params(android: ::String, archived: T::Boolean, clicks: ::Float, comments: ::String, created_at: ::String, description: ::String, do_index: T::Boolean, domain: ::String, expired_url: ::String, expires_at: ::String, external_id: ::String, folder_id: ::String, geo: ::OpenApiSDK::Shared::Geo, id: ::String, image: ::String, ios: ::String, key: ::String, last_clicked: ::String, leads: ::Float, partner_id: ::String, password: ::String, program_id: ::String, project_id: ::String, proxy: T::Boolean, public_stats: T::Boolean, qr_code: ::String, rewrite: T::Boolean, sale_amount: ::Float, sales: ::Float, short_link: ::String, tag_id: ::String, tags: T::Array[::OpenApiSDK::Shared::TagSchema], tenant_id: ::String, title: ::String, track_conversion: T::Boolean, 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, webhook_ids: T::Array[::String], workspace_id: ::String, test_completed_at: T.nilable(::String), test_started_at: T.nilable(::String), test_variants: T.nilable(T::Array[::OpenApiSDK::Shared::TestVariants])).void }
|
119
|
+
def initialize(android: nil, archived: nil, clicks: nil, comments: nil, created_at: nil, description: nil, do_index: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, folder_id: nil, geo: nil, id: nil, image: nil, ios: nil, key: nil, last_clicked: nil, leads: nil, partner_id: nil, password: nil, program_id: nil, project_id: nil, proxy: nil, public_stats: nil, qr_code: nil, rewrite: nil, sale_amount: nil, sales: nil, short_link: nil, tag_id: nil, tags: nil, tenant_id: nil, title: nil, track_conversion: 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, webhook_ids: nil, workspace_id: nil, test_completed_at: nil, test_started_at: nil, test_variants: nil)
|
114
120
|
@android = android
|
115
121
|
@archived = archived
|
116
122
|
@clicks = clicks
|
@@ -157,6 +163,9 @@ module OpenApiSDK
|
|
157
163
|
@video = video
|
158
164
|
@webhook_ids = webhook_ids
|
159
165
|
@workspace_id = workspace_id
|
166
|
+
@test_completed_at = test_completed_at
|
167
|
+
@test_started_at = test_started_at
|
168
|
+
@test_variants = test_variants
|
160
169
|
end
|
161
170
|
end
|
162
171
|
end
|
@@ -0,0 +1,27 @@
|
|
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 TestVariants < ::Crystalline::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :percentage, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('percentage') } }
|
16
|
+
|
17
|
+
field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(percentage: ::Float, url: ::String).void }
|
21
|
+
def initialize(percentage: nil, url: nil)
|
22
|
+
@percentage = percentage
|
23
|
+
@url = url
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -33,6 +33,7 @@ module OpenApiSDK
|
|
33
33
|
autoload :Error, 'open_api_sdk/models/shared/error.rb'
|
34
34
|
autoload :BadRequest, 'open_api_sdk/models/shared/badrequest.rb'
|
35
35
|
autoload :Geo, 'open_api_sdk/models/shared/geo.rb'
|
36
|
+
autoload :TestVariants, 'open_api_sdk/models/shared/testvariants.rb'
|
36
37
|
autoload :LinkSchema, 'open_api_sdk/models/shared/linkschema.rb'
|
37
38
|
autoload :Color, 'open_api_sdk/models/shared/color.rb'
|
38
39
|
autoload :TagSchema, 'open_api_sdk/models/shared/tagschema.rb'
|
@@ -42,6 +43,7 @@ module OpenApiSDK
|
|
42
43
|
autoload :Event, 'open_api_sdk/models/shared/event.rb'
|
43
44
|
autoload :Click, 'open_api_sdk/models/shared/click.rb'
|
44
45
|
autoload :ClickEventGeo, 'open_api_sdk/models/shared/clickevent_geo.rb'
|
46
|
+
autoload :ClickEventTestVariants, 'open_api_sdk/models/shared/clickevent_testvariants.rb'
|
45
47
|
autoload :Link, 'open_api_sdk/models/shared/link.rb'
|
46
48
|
autoload :ClickEvent, 'open_api_sdk/models/shared/clickevent.rb'
|
47
49
|
autoload :Type, 'open_api_sdk/models/shared/type.rb'
|
@@ -61,9 +61,9 @@ module OpenApiSDK
|
|
61
61
|
end
|
62
62
|
@language = 'ruby'
|
63
63
|
@openapi_doc_version = '0.0.1'
|
64
|
-
@sdk_version = '0.2.2-alpha.
|
64
|
+
@sdk_version = '0.2.2-alpha.85'
|
65
65
|
@gen_version = '2.563.0'
|
66
|
-
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.
|
66
|
+
@user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.85 2.563.0 0.0.1 dub'
|
67
67
|
end
|
68
68
|
|
69
69
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
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.85
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -197,15 +197,16 @@ files:
|
|
197
197
|
- lib/open_api_sdk/events.rb
|
198
198
|
- lib/open_api_sdk/folders.rb
|
199
199
|
- lib/open_api_sdk/links.rb
|
200
|
-
- lib/open_api_sdk/metatags.rb
|
201
200
|
- lib/open_api_sdk/models/operations.rb
|
202
201
|
- lib/open_api_sdk/models/operations/accesslevel.rb
|
203
202
|
- lib/open_api_sdk/models/operations/bulkcreatelinks_response.rb
|
203
|
+
- lib/open_api_sdk/models/operations/bulkcreatelinks_testvariants.rb
|
204
204
|
- lib/open_api_sdk/models/operations/bulkdeletelinks_request.rb
|
205
205
|
- lib/open_api_sdk/models/operations/bulkdeletelinks_response.rb
|
206
206
|
- lib/open_api_sdk/models/operations/bulkdeletelinks_responsebody.rb
|
207
207
|
- lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb
|
208
208
|
- lib/open_api_sdk/models/operations/bulkupdatelinks_response.rb
|
209
|
+
- lib/open_api_sdk/models/operations/bulkupdatelinks_testvariants.rb
|
209
210
|
- lib/open_api_sdk/models/operations/click.rb
|
210
211
|
- lib/open_api_sdk/models/operations/color.rb
|
211
212
|
- lib/open_api_sdk/models/operations/country.rb
|
@@ -225,14 +226,17 @@ files:
|
|
225
226
|
- lib/open_api_sdk/models/operations/createpartner_requestbody.rb
|
226
227
|
- lib/open_api_sdk/models/operations/createpartner_response.rb
|
227
228
|
- lib/open_api_sdk/models/operations/createpartner_responsebody.rb
|
229
|
+
- lib/open_api_sdk/models/operations/createpartner_testvariants.rb
|
228
230
|
- lib/open_api_sdk/models/operations/createpartnerlink_linkprops.rb
|
229
231
|
- lib/open_api_sdk/models/operations/createpartnerlink_requestbody.rb
|
230
232
|
- lib/open_api_sdk/models/operations/createpartnerlink_response.rb
|
233
|
+
- lib/open_api_sdk/models/operations/createpartnerlink_testvariants.rb
|
231
234
|
- lib/open_api_sdk/models/operations/createreferralsembedtoken_country.rb
|
232
235
|
- lib/open_api_sdk/models/operations/createreferralsembedtoken_linkprops.rb
|
233
236
|
- lib/open_api_sdk/models/operations/createreferralsembedtoken_requestbody.rb
|
234
237
|
- lib/open_api_sdk/models/operations/createreferralsembedtoken_response.rb
|
235
238
|
- lib/open_api_sdk/models/operations/createreferralsembedtoken_responsebody.rb
|
239
|
+
- lib/open_api_sdk/models/operations/createreferralsembedtoken_testvariants.rb
|
236
240
|
- lib/open_api_sdk/models/operations/createtag_requestbody.rb
|
237
241
|
- lib/open_api_sdk/models/operations/createtag_response.rb
|
238
242
|
- lib/open_api_sdk/models/operations/customer.rb
|
@@ -264,15 +268,13 @@ files:
|
|
264
268
|
- lib/open_api_sdk/models/operations/getcustomers_partner.rb
|
265
269
|
- lib/open_api_sdk/models/operations/getcustomers_request.rb
|
266
270
|
- lib/open_api_sdk/models/operations/getcustomers_response.rb
|
271
|
+
- lib/open_api_sdk/models/operations/getcustomers_type.rb
|
267
272
|
- lib/open_api_sdk/models/operations/getlinkinfo_request.rb
|
268
273
|
- lib/open_api_sdk/models/operations/getlinkinfo_response.rb
|
269
274
|
- lib/open_api_sdk/models/operations/getlinks_request.rb
|
270
275
|
- lib/open_api_sdk/models/operations/getlinks_response.rb
|
271
276
|
- lib/open_api_sdk/models/operations/getlinkscount_request.rb
|
272
277
|
- lib/open_api_sdk/models/operations/getlinkscount_response.rb
|
273
|
-
- lib/open_api_sdk/models/operations/getmetatags_request.rb
|
274
|
-
- lib/open_api_sdk/models/operations/getmetatags_response.rb
|
275
|
-
- lib/open_api_sdk/models/operations/getmetatags_responsebody.rb
|
276
278
|
- lib/open_api_sdk/models/operations/getqrcode_request.rb
|
277
279
|
- lib/open_api_sdk/models/operations/getqrcode_response.rb
|
278
280
|
- lib/open_api_sdk/models/operations/gettags_queryparam_sortby.rb
|
@@ -318,6 +320,7 @@ files:
|
|
318
320
|
- lib/open_api_sdk/models/operations/sortby.rb
|
319
321
|
- lib/open_api_sdk/models/operations/sortorder.rb
|
320
322
|
- lib/open_api_sdk/models/operations/status.rb
|
323
|
+
- lib/open_api_sdk/models/operations/testvariants.rb
|
321
324
|
- lib/open_api_sdk/models/operations/tracklead_requestbody.rb
|
322
325
|
- lib/open_api_sdk/models/operations/tracklead_response.rb
|
323
326
|
- lib/open_api_sdk/models/operations/tracklead_responsebody.rb
|
@@ -345,6 +348,7 @@ files:
|
|
345
348
|
- lib/open_api_sdk/models/operations/updatelink_request.rb
|
346
349
|
- lib/open_api_sdk/models/operations/updatelink_requestbody.rb
|
347
350
|
- lib/open_api_sdk/models/operations/updatelink_response.rb
|
351
|
+
- lib/open_api_sdk/models/operations/updatelink_testvariants.rb
|
348
352
|
- lib/open_api_sdk/models/operations/updatepartnersale_requestbody.rb
|
349
353
|
- lib/open_api_sdk/models/operations/updatepartnersale_response.rb
|
350
354
|
- lib/open_api_sdk/models/operations/updatepartnersale_responsebody.rb
|
@@ -358,15 +362,18 @@ files:
|
|
358
362
|
- lib/open_api_sdk/models/operations/updateworkspace_response.rb
|
359
363
|
- lib/open_api_sdk/models/operations/upsertlink_requestbody.rb
|
360
364
|
- lib/open_api_sdk/models/operations/upsertlink_response.rb
|
365
|
+
- lib/open_api_sdk/models/operations/upsertlink_testvariants.rb
|
361
366
|
- lib/open_api_sdk/models/operations/upsertpartnerlink_linkprops.rb
|
362
367
|
- lib/open_api_sdk/models/operations/upsertpartnerlink_requestbody.rb
|
363
368
|
- lib/open_api_sdk/models/operations/upsertpartnerlink_response.rb
|
369
|
+
- lib/open_api_sdk/models/operations/upsertpartnerlink_testvariants.rb
|
364
370
|
- lib/open_api_sdk/models/shared.rb
|
365
371
|
- lib/open_api_sdk/models/shared/accesslevel.rb
|
366
372
|
- lib/open_api_sdk/models/shared/badrequest.rb
|
367
373
|
- lib/open_api_sdk/models/shared/click.rb
|
368
374
|
- lib/open_api_sdk/models/shared/clickevent.rb
|
369
375
|
- lib/open_api_sdk/models/shared/clickevent_geo.rb
|
376
|
+
- lib/open_api_sdk/models/shared/clickevent_testvariants.rb
|
370
377
|
- lib/open_api_sdk/models/shared/code.rb
|
371
378
|
- lib/open_api_sdk/models/shared/color.rb
|
372
379
|
- lib/open_api_sdk/models/shared/conflict.rb
|
@@ -403,6 +410,7 @@ files:
|
|
403
410
|
- lib/open_api_sdk/models/shared/role.rb
|
404
411
|
- lib/open_api_sdk/models/shared/security.rb
|
405
412
|
- lib/open_api_sdk/models/shared/tagschema.rb
|
413
|
+
- lib/open_api_sdk/models/shared/testvariants.rb
|
406
414
|
- lib/open_api_sdk/models/shared/type.rb
|
407
415
|
- lib/open_api_sdk/models/shared/unauthorized.rb
|
408
416
|
- lib/open_api_sdk/models/shared/unauthorized_code.rb
|
@@ -445,7 +453,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
445
453
|
- !ruby/object:Gem::Version
|
446
454
|
version: 1.3.1
|
447
455
|
requirements: []
|
448
|
-
rubygems_version: 3.
|
456
|
+
rubygems_version: 3.4.19
|
449
457
|
signing_key:
|
450
458
|
specification_version: 4
|
451
459
|
summary: ''
|
@@ -1,109 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
require 'faraday'
|
7
|
-
require 'faraday/multipart'
|
8
|
-
require 'faraday/retry'
|
9
|
-
require 'sorbet-runtime'
|
10
|
-
require_relative 'sdk_hooks/hooks'
|
11
|
-
require_relative 'utils/retries'
|
12
|
-
|
13
|
-
module OpenApiSDK
|
14
|
-
extend T::Sig
|
15
|
-
class Metatags
|
16
|
-
extend T::Sig
|
17
|
-
|
18
|
-
|
19
|
-
sig { params(sdk_config: SDKConfiguration).void }
|
20
|
-
def initialize(sdk_config)
|
21
|
-
@sdk_configuration = sdk_config
|
22
|
-
end
|
23
|
-
|
24
|
-
|
25
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::GetMetatagsRequest), timeout_ms: T.nilable(Integer)).returns(::OpenApiSDK::Operations::GetMetatagsResponse) }
|
26
|
-
def get(request, timeout_ms = nil)
|
27
|
-
# get - Retrieve the metatags for a URL
|
28
|
-
# Retrieve the metatags for a URL.
|
29
|
-
url, params = @sdk_configuration.get_server_details
|
30
|
-
base_url = Utils.template_url(url, params)
|
31
|
-
url = "#{base_url}/metatags"
|
32
|
-
headers = {}
|
33
|
-
query_params = Utils.get_query_params(::OpenApiSDK::Operations::GetMetatagsRequest, request)
|
34
|
-
headers['Accept'] = 'application/json'
|
35
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
36
|
-
|
37
|
-
security = !@sdk_configuration.nil? && !@sdk_configuration.security_source.nil? ? @sdk_configuration.security_source.call : nil
|
38
|
-
|
39
|
-
timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil?
|
40
|
-
timeout ||= @sdk_configuration.timeout
|
41
|
-
|
42
|
-
connection = @sdk_configuration.client
|
43
|
-
|
44
|
-
hook_ctx = SDKHooks::HookContext.new(
|
45
|
-
base_url: base_url,
|
46
|
-
oauth2_scopes: nil,
|
47
|
-
operation_id: 'getMetatags',
|
48
|
-
security_source: @sdk_configuration.security_source
|
49
|
-
)
|
50
|
-
|
51
|
-
error = T.let(nil, T.nilable(StandardError))
|
52
|
-
r = T.let(nil, T.nilable(Faraday::Response))
|
53
|
-
|
54
|
-
begin
|
55
|
-
r = connection.get(url) do |req|
|
56
|
-
req.headers.merge!(headers)
|
57
|
-
req.options.timeout = timeout unless timeout.nil?
|
58
|
-
req.params = query_params
|
59
|
-
Utils.configure_request_security(req, security)
|
60
|
-
|
61
|
-
@sdk_configuration.hooks.before_request(
|
62
|
-
hook_ctx: SDKHooks::BeforeRequestHookContext.new(
|
63
|
-
hook_ctx: hook_ctx
|
64
|
-
),
|
65
|
-
request: req
|
66
|
-
)
|
67
|
-
end
|
68
|
-
rescue StandardError => e
|
69
|
-
error = e
|
70
|
-
ensure
|
71
|
-
if r.nil? || Utils.error_status?(r.status)
|
72
|
-
r = @sdk_configuration.hooks.after_error(
|
73
|
-
error: error,
|
74
|
-
hook_ctx: SDKHooks::AfterErrorHookContext.new(
|
75
|
-
hook_ctx: hook_ctx
|
76
|
-
),
|
77
|
-
response: r
|
78
|
-
)
|
79
|
-
else
|
80
|
-
r = @sdk_configuration.hooks.after_success(
|
81
|
-
hook_ctx: SDKHooks::AfterSuccessHookContext.new(
|
82
|
-
hook_ctx: hook_ctx
|
83
|
-
),
|
84
|
-
response: r
|
85
|
-
)
|
86
|
-
end
|
87
|
-
|
88
|
-
if r.nil?
|
89
|
-
raise error if !error.nil?
|
90
|
-
raise 'no response'
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
95
|
-
|
96
|
-
res = ::OpenApiSDK::Operations::GetMetatagsResponse.new(
|
97
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
98
|
-
)
|
99
|
-
if r.status == 200
|
100
|
-
if Utils.match_content_type(content_type, 'application/json')
|
101
|
-
out = Crystalline.unmarshal_json(JSON.parse(r.env.response_body), ::OpenApiSDK::Operations::GetMetatagsResponseBody)
|
102
|
-
res.object = out
|
103
|
-
end
|
104
|
-
end
|
105
|
-
|
106
|
-
res
|
107
|
-
end
|
108
|
-
end
|
109
|
-
end
|
@@ -1,24 +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 GetMetatagsRequest < ::Crystalline::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# The URL to retrieve metatags for.
|
15
|
-
field :url, ::String, { 'query_param': { 'field_name': 'url', 'style': 'form', 'explode': true } }
|
16
|
-
|
17
|
-
|
18
|
-
sig { params(url: ::String).void }
|
19
|
-
def initialize(url: nil)
|
20
|
-
@url = url
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
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
|
-
|
11
|
-
class GetMetatagsResponse < ::Crystalline::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 retrieved metatags
|
21
|
-
field :object, T.nilable(::OpenApiSDK::Operations::GetMetatagsResponseBody)
|
22
|
-
|
23
|
-
|
24
|
-
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, object: T.nilable(::OpenApiSDK::Operations::GetMetatagsResponseBody)).void }
|
25
|
-
def initialize(content_type: nil, raw_response: nil, status_code: nil, object: nil)
|
26
|
-
@content_type = content_type
|
27
|
-
@raw_response = raw_response
|
28
|
-
@status_code = status_code
|
29
|
-
@object = object
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
@@ -1,30 +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
|
-
# The retrieved metatags
|
11
|
-
class GetMetatagsResponseBody < ::Crystalline::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# The meta description tag for the URL.
|
15
|
-
field :description, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
|
16
|
-
# The OpenGraph image for the URL.
|
17
|
-
field :image, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
18
|
-
# The meta title tag for the URL.
|
19
|
-
field :title, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('title') } }
|
20
|
-
|
21
|
-
|
22
|
-
sig { params(description: ::String, image: ::String, title: ::String).void }
|
23
|
-
def initialize(description: nil, image: nil, title: nil)
|
24
|
-
@description = description
|
25
|
-
@image = image
|
26
|
-
@title = title
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|