dub 0.2.2.pre.alpha.42 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dub.rb +3 -6
- data/lib/open_api_sdk/analytics.rb +1 -2
- data/lib/open_api_sdk/domains.rb +55 -61
- data/lib/open_api_sdk/dub.rb +4 -7
- data/lib/open_api_sdk/links.rb +55 -143
- data/lib/open_api_sdk/metatags.rb +1 -2
- data/lib/open_api_sdk/models/operations/bulkcreatelinks_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb +5 -8
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/color.rb +2 -1
- data/lib/open_api_sdk/models/operations/createdomain_requestbody.rb +3 -9
- data/lib/open_api_sdk/models/operations/createdomain_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/createlink_requestbody.rb +7 -39
- data/lib/open_api_sdk/models/operations/createlink_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/createtag_requestbody.rb +1 -1
- data/lib/open_api_sdk/models/operations/createtag_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/data.rb +7 -36
- data/lib/open_api_sdk/models/operations/deletedomain_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/deletedomain_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/deletedomain_responsebody.rb +1 -1
- data/lib/open_api_sdk/models/operations/deletelink_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/deletelink_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletelink_responsebody.rb +2 -2
- data/lib/open_api_sdk/models/operations/event.rb +3 -2
- data/lib/open_api_sdk/models/operations/getlinkinfo_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/getlinkinfo_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/getlinks_request.rb +7 -10
- data/lib/open_api_sdk/models/operations/getlinks_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/getlinkscount_request.rb +3 -3
- data/lib/open_api_sdk/models/operations/getlinkscount_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/getmetatags_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/getmetatags_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/getmetatags_responsebody.rb +1 -1
- data/lib/open_api_sdk/models/operations/getqrcode_request.rb +4 -13
- data/lib/open_api_sdk/models/operations/getqrcode_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/gettags_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/getworkspace_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/getworkspace_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/groupby.rb +4 -7
- data/lib/open_api_sdk/models/operations/interval.rb +3 -2
- data/lib/open_api_sdk/models/operations/level.rb +2 -1
- data/lib/open_api_sdk/models/operations/listdomains_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/paymentprocessor.rb +2 -1
- data/lib/open_api_sdk/models/operations/requestbody.rb +7 -39
- data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +10 -25
- data/lib/open_api_sdk/models/operations/retrieveanalytics_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/sort.rb +2 -1
- data/lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb +1 -1
- data/lib/open_api_sdk/models/operations/trackcustomer_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb +1 -1
- data/lib/open_api_sdk/models/operations/tracklead_requestbody.rb +7 -12
- data/lib/open_api_sdk/models/operations/tracklead_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/tracklead_responsebody.rb +22 -7
- data/lib/open_api_sdk/models/operations/tracksale_requestbody.rb +6 -11
- data/lib/open_api_sdk/models/operations/tracksale_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/tracksale_responsebody.rb +19 -7
- data/lib/open_api_sdk/models/operations/updatedomain_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/updatedomain_requestbody.rb +3 -9
- data/lib/open_api_sdk/models/operations/updatedomain_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/updatelink_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/updatelink_requestbody.rb +8 -40
- data/lib/open_api_sdk/models/operations/updatelink_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/updatetag_color.rb +2 -1
- data/lib/open_api_sdk/models/operations/updatetag_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/updatetag_requestbody.rb +1 -1
- data/lib/open_api_sdk/models/operations/updatetag_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/updateworkspace_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/updateworkspace_requestbody.rb +3 -6
- data/lib/open_api_sdk/models/operations/updateworkspace_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/upsertlink_requestbody.rb +7 -39
- data/lib/open_api_sdk/models/operations/upsertlink_response.rb +1 -1
- data/lib/open_api_sdk/models/operations.rb +19 -56
- data/lib/open_api_sdk/models/shared/badrequest.rb +2 -2
- data/lib/open_api_sdk/models/shared/code.rb +2 -1
- data/lib/open_api_sdk/models/shared/color.rb +2 -1
- data/lib/open_api_sdk/models/shared/conflict.rb +2 -2
- data/lib/open_api_sdk/models/shared/conflict_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/conflict_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/countrycode.rb +2 -1
- data/lib/open_api_sdk/models/shared/domains.rb +3 -6
- data/lib/open_api_sdk/models/shared/domainschema.rb +3 -12
- data/lib/open_api_sdk/models/shared/error.rb +1 -1
- data/lib/open_api_sdk/models/shared/forbidden.rb +2 -2
- data/lib/open_api_sdk/models/shared/forbidden_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/forbidden_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/geo.rb +1 -1
- data/lib/open_api_sdk/models/shared/internalservererror.rb +2 -2
- data/lib/open_api_sdk/models/shared/internalservererror_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/internalservererror_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/inviteexpired.rb +2 -2
- data/lib/open_api_sdk/models/shared/inviteexpired_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/inviteexpired_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/linkgeotargeting.rb +1 -1
- data/lib/open_api_sdk/models/shared/linkschema.rb +4 -19
- data/lib/open_api_sdk/models/shared/notfound.rb +2 -2
- data/lib/open_api_sdk/models/shared/notfound_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/notfound_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/plan.rb +2 -1
- data/lib/open_api_sdk/models/shared/ratelimitexceeded.rb +2 -2
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/role.rb +2 -1
- data/lib/open_api_sdk/models/shared/security.rb +3 -3
- data/lib/open_api_sdk/models/shared/tagschema.rb +1 -1
- data/lib/open_api_sdk/models/shared/unauthorized.rb +2 -2
- data/lib/open_api_sdk/models/shared/unauthorized_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/unauthorized_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/unprocessableentity.rb +2 -2
- data/lib/open_api_sdk/models/shared/unprocessableentity_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/unprocessableentity_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/users.rb +1 -1
- data/lib/open_api_sdk/models/shared/workspaceschema.rb +7 -46
- data/lib/open_api_sdk/models/shared.rb +2 -9
- data/lib/open_api_sdk/qr_codes.rb +2 -2
- data/lib/open_api_sdk/sdkconfiguration.rb +4 -4
- data/lib/open_api_sdk/tags.rb +28 -113
- data/lib/open_api_sdk/track.rb +1 -6
- data/lib/open_api_sdk/utils/metadata_fields.rb +1 -1
- data/lib/open_api_sdk/utils/t.rb +1 -1
- data/lib/open_api_sdk/utils/utils.rb +1 -1
- data/lib/open_api_sdk/workspaces.rb +1 -3
- metadata +10 -57
- data/lib/open_api_sdk/customers.rb +0 -439
- data/lib/open_api_sdk/embed_tokens.rb +0 -107
- data/lib/open_api_sdk/events.rb +0 -100
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/click.rb +0 -24
- data/lib/open_api_sdk/models/operations/createcustomer_requestbody.rb +0 -33
- data/lib/open_api_sdk/models/operations/createcustomer_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/createcustomer_responsebody.rb +0 -39
- data/lib/open_api_sdk/models/operations/createembedtoken_requestbody.rb +0 -24
- data/lib/open_api_sdk/models/operations/createembedtoken_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/createembedtoken_responsebody.rb +0 -27
- data/lib/open_api_sdk/models/operations/customer.rb +0 -33
- data/lib/open_api_sdk/models/operations/deletecustomer_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletecustomer_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/deletecustomer_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletetag_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletetag_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/deletetag_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/getcustomer_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/getcustomer_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/getcustomer_responsebody.rb +0 -39
- data/lib/open_api_sdk/models/operations/getcustomers_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/listdomains_request.rb +0 -33
- data/lib/open_api_sdk/models/operations/listevents_request.rb +0 -105
- data/lib/open_api_sdk/models/operations/listevents_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/order.rb +0 -18
- data/lib/open_api_sdk/models/operations/queryparam_event.rb +0 -19
- data/lib/open_api_sdk/models/operations/queryparam_interval.rb +0 -23
- data/lib/open_api_sdk/models/operations/queryparam_trigger.rb +0 -18
- data/lib/open_api_sdk/models/operations/responsebody.rb +0 -39
- data/lib/open_api_sdk/models/operations/sale.rb +0 -36
- data/lib/open_api_sdk/models/operations/sortby.rb +0 -17
- data/lib/open_api_sdk/models/operations/tracksale_customer.rb +0 -36
- data/lib/open_api_sdk/models/operations/trigger.rb +0 -18
- data/lib/open_api_sdk/models/operations/updatecustomer_request.rb +0 -27
- data/lib/open_api_sdk/models/operations/updatecustomer_requestbody.rb +0 -33
- data/lib/open_api_sdk/models/operations/updatecustomer_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/updatecustomer_responsebody.rb +0 -39
- data/lib/open_api_sdk/models/shared/click.rb +0 -60
- data/lib/open_api_sdk/models/shared/clickevent.rb +0 -98
- data/lib/open_api_sdk/models/shared/clickevent_geo.rb +0 -771
- data/lib/open_api_sdk/models/shared/continentcode.rb +0 -23
- data/lib/open_api_sdk/models/shared/event.rb +0 -17
- data/lib/open_api_sdk/models/shared/link.rb +0 -157
- data/lib/open_api_sdk/models/shared/registereddomain.rb +0 -30
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -31,14 +31,12 @@ module OpenApiSDK
|
|
31
31
|
field :expired_url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiredUrl') } }
|
32
32
|
# The date and time when the short link will expire in ISO-8601 format.
|
33
33
|
field :expires_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiresAt') } }
|
34
|
-
# This is the ID of the link in your database
|
34
|
+
# 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.
|
35
35
|
field :external_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('externalId') } }
|
36
36
|
# Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`. Learn more: https://d.to/geo
|
37
37
|
field :geo, ::OpenApiSDK::Shared::Geo, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('geo') } }
|
38
38
|
# The unique ID of the short link.
|
39
39
|
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
40
|
-
# The identifier of the short link that is unique across your workspace. If set, it can be used to identify your short link for client-side click tracking.
|
41
|
-
field :identifier, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('identifier') } }
|
42
40
|
# The image of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
|
43
41
|
field :image, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
44
42
|
# The iOS destination URL for the short link for iOS device targeting.
|
@@ -51,8 +49,6 @@ module OpenApiSDK
|
|
51
49
|
field :leads, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('leads') } }
|
52
50
|
# The password required to access the destination URL of the short link.
|
53
51
|
field :password, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('password') } }
|
54
|
-
# The ID of the program the short link is associated with.
|
55
|
-
field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
56
52
|
# The project ID of the short link. This field is deprecated – use `workspaceId` instead.
|
57
53
|
#
|
58
54
|
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
@@ -65,8 +61,6 @@ module OpenApiSDK
|
|
65
61
|
field :qr_code, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('qrCode') } }
|
66
62
|
# Whether the short link uses link cloaking.
|
67
63
|
field :rewrite, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rewrite') } }
|
68
|
-
# [BETA]: The total dollar amount of sales the short links has generated (in cents).
|
69
|
-
field :sale_amount, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
|
70
64
|
# [BETA]: The number of sales the short links has generated.
|
71
65
|
field :sales, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('sales') } }
|
72
66
|
# The full URL of the short link, including the https protocol (e.g. `https://dub.sh/try`).
|
@@ -97,16 +91,12 @@ module OpenApiSDK
|
|
97
91
|
field :utm_source, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_source') } }
|
98
92
|
# The UTM term of the short link.
|
99
93
|
field :utm_term, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_term') } }
|
100
|
-
# 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
|
101
|
-
field :video, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('video') } }
|
102
|
-
# The IDs of the webhooks that the short link is associated with.
|
103
|
-
field :webhook_ids, T::Array[::String], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhookIds') } }
|
104
94
|
# The workspace ID of the short link.
|
105
95
|
field :workspace_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('workspaceId') } }
|
106
96
|
|
107
97
|
|
108
|
-
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, geo: ::OpenApiSDK::Shared::Geo, id: ::String,
|
109
|
-
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, geo: nil, id: nil,
|
98
|
+
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, geo: ::OpenApiSDK::Shared::Geo, id: ::String, image: ::String, ios: ::String, key: ::String, last_clicked: ::String, leads: ::Float, password: ::String, project_id: ::String, proxy: T::Boolean, public_stats: T::Boolean, qr_code: ::String, rewrite: T::Boolean, sales: ::Float, short_link: ::String, tag_id: ::String, tags: T::Array[::OpenApiSDK::Shared::TagSchema], 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, workspace_id: ::String).void }
|
99
|
+
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, geo: nil, id: nil, image: nil, ios: nil, key: nil, last_clicked: nil, leads: nil, password: nil, project_id: nil, proxy: nil, public_stats: nil, qr_code: nil, rewrite: nil, sales: nil, short_link: nil, tag_id: nil, tags: 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, workspace_id: nil)
|
110
100
|
@android = android
|
111
101
|
@archived = archived
|
112
102
|
@clicks = clicks
|
@@ -120,20 +110,17 @@ module OpenApiSDK
|
|
120
110
|
@external_id = external_id
|
121
111
|
@geo = geo
|
122
112
|
@id = id
|
123
|
-
@identifier = identifier
|
124
113
|
@image = image
|
125
114
|
@ios = ios
|
126
115
|
@key = key
|
127
116
|
@last_clicked = last_clicked
|
128
117
|
@leads = leads
|
129
118
|
@password = password
|
130
|
-
@program_id = program_id
|
131
119
|
@project_id = project_id
|
132
120
|
@proxy = proxy
|
133
121
|
@public_stats = public_stats
|
134
122
|
@qr_code = qr_code
|
135
123
|
@rewrite = rewrite
|
136
|
-
@sale_amount = sale_amount
|
137
124
|
@sales = sales
|
138
125
|
@short_link = short_link
|
139
126
|
@tag_id = tag_id
|
@@ -148,8 +135,6 @@ module OpenApiSDK
|
|
148
135
|
@utm_medium = utm_medium
|
149
136
|
@utm_source = utm_source
|
150
137
|
@utm_term = utm_term
|
151
|
-
@video = video
|
152
|
-
@webhook_ids = webhook_ids
|
153
138
|
@workspace_id = workspace_id
|
154
139
|
end
|
155
140
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -7,7 +7,7 @@
|
|
7
7
|
module OpenApiSDK
|
8
8
|
module Shared
|
9
9
|
|
10
|
-
|
10
|
+
|
11
11
|
class NotFound < ::OpenApiSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -13,5 +13,6 @@ module OpenApiSDK
|
|
13
13
|
NOT_FOUND = new('not_found')
|
14
14
|
end
|
15
15
|
end
|
16
|
+
|
16
17
|
end
|
17
18
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -19,5 +19,6 @@ module OpenApiSDK
|
|
19
19
|
ENTERPRISE = new('enterprise')
|
20
20
|
end
|
21
21
|
end
|
22
|
+
|
22
23
|
end
|
23
24
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -7,7 +7,7 @@
|
|
7
7
|
module OpenApiSDK
|
8
8
|
module Shared
|
9
9
|
|
10
|
-
|
10
|
+
|
11
11
|
class RateLimitExceeded < ::OpenApiSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -13,5 +13,6 @@ module OpenApiSDK
|
|
13
13
|
RATE_LIMIT_EXCEEDED = new('rate_limit_exceeded')
|
14
14
|
end
|
15
15
|
end
|
16
|
+
|
16
17
|
end
|
17
18
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -14,5 +14,6 @@ module OpenApiSDK
|
|
14
14
|
MEMBER = new('member')
|
15
15
|
end
|
16
16
|
end
|
17
|
+
|
17
18
|
end
|
18
19
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -12,10 +12,10 @@ module OpenApiSDK
|
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
|
15
|
-
field :token, ::String, { 'security': { 'scheme': true, 'type': 'http', 'sub_type': 'bearer', 'field_name': 'Authorization' } }
|
15
|
+
field :token, T.nilable(::String), { 'security': { 'scheme': true, 'type': 'http', 'sub_type': 'bearer', 'field_name': 'Authorization' } }
|
16
16
|
|
17
17
|
|
18
|
-
sig { params(token: ::String).void }
|
18
|
+
sig { params(token: T.nilable(::String)).void }
|
19
19
|
def initialize(token: nil)
|
20
20
|
@token = token
|
21
21
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -7,7 +7,7 @@
|
|
7
7
|
module OpenApiSDK
|
8
8
|
module Shared
|
9
9
|
|
10
|
-
|
10
|
+
|
11
11
|
class Unauthorized < ::OpenApiSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -13,5 +13,6 @@ module OpenApiSDK
|
|
13
13
|
UNAUTHORIZED = new('unauthorized')
|
14
14
|
end
|
15
15
|
end
|
16
|
+
|
16
17
|
end
|
17
18
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -7,7 +7,7 @@
|
|
7
7
|
module OpenApiSDK
|
8
8
|
module Shared
|
9
9
|
|
10
|
-
|
10
|
+
|
11
11
|
class UnprocessableEntity < ::OpenApiSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -13,5 +13,6 @@ module OpenApiSDK
|
|
13
13
|
UNPROCESSABLE_ENTITY = new('unprocessable_entity')
|
14
14
|
end
|
15
15
|
end
|
16
|
+
|
16
17
|
end
|
17
18
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -11,26 +11,14 @@ module OpenApiSDK
|
|
11
11
|
class WorkspaceSchema < ::OpenApiSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
# The AI limit of the workspace.
|
15
|
-
field :ai_limit, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('aiLimit') } }
|
16
|
-
# The AI usage of the workspace.
|
17
|
-
field :ai_usage, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('aiUsage') } }
|
18
|
-
# [BETA – Dub Partners]: The name of the connected bank account.
|
19
|
-
field :bank_account_name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('bankAccountName') } }
|
20
|
-
# [BETA – Dub Partners]: Whether the bank account is verified.
|
21
|
-
field :bank_account_verified, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('bankAccountVerified') } }
|
22
14
|
# The date and time when the billing cycle starts for the workspace.
|
23
15
|
field :billing_cycle_start, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('billingCycleStart') } }
|
24
|
-
# Whether the workspace has conversion tracking enabled (d.to/conversions).
|
25
|
-
field :conversion_enabled, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('conversionEnabled') } }
|
26
16
|
# The date and time when the workspace was created.
|
27
17
|
field :created_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('createdAt') } }
|
28
18
|
# The domains of the workspace.
|
29
19
|
field :domains, T::Array[::OpenApiSDK::Shared::Domains], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domains') } }
|
30
20
|
# The domains limit of the workspace.
|
31
21
|
field :domains_limit, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domainsLimit') } }
|
32
|
-
# Whether the workspace has claimed a free .link domain. (dub.link/free)
|
33
|
-
field :dot_link_claimed, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('dotLinkClaimed') } }
|
34
22
|
# The unique ID of the workspace.
|
35
23
|
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
36
24
|
# The invite code of the workspace.
|
@@ -43,25 +31,11 @@ module OpenApiSDK
|
|
43
31
|
field :logo, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('logo') } }
|
44
32
|
# The name of the workspace.
|
45
33
|
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
46
|
-
# [BETA – Dub Partners]: The partial account number of the bank account.
|
47
|
-
field :partial_account_number, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partialAccountNumber') } }
|
48
|
-
# The date and time when the payment failed for the workspace.
|
49
|
-
field :payment_failed_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('paymentFailedAt') } }
|
50
34
|
# The plan of the workspace.
|
51
35
|
field :plan, ::OpenApiSDK::Shared::Plan, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('plan'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Shared::Plan, false) } }
|
52
|
-
# The publishable key of the workspace.
|
53
|
-
field :publishable_key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('publishableKey') } }
|
54
|
-
# The ID of the referral link of the workspace.
|
55
|
-
field :referral_link_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('referralLinkId') } }
|
56
|
-
# [BETA – Dub Partners]: The routing number of the bank account.
|
57
|
-
field :routing_number, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('routingNumber') } }
|
58
|
-
# The limit of tracked revenue in the current billing cycle (in cents).
|
59
|
-
field :sales_limit, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('salesLimit') } }
|
60
|
-
# The dollar amount of tracked revenue in the current billing cycle (in cents).
|
61
|
-
field :sales_usage, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('salesUsage') } }
|
62
36
|
# The slug of the workspace.
|
63
37
|
field :slug, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('slug') } }
|
64
|
-
# [BETA
|
38
|
+
# [BETA]: The Stripe Connect ID of the workspace.
|
65
39
|
field :stripe_connect_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('stripeConnectId') } }
|
66
40
|
# The Stripe ID of the workspace.
|
67
41
|
field :stripe_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('stripeId') } }
|
@@ -75,36 +49,23 @@ module OpenApiSDK
|
|
75
49
|
field :users, T::Array[::OpenApiSDK::Shared::Users], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('users') } }
|
76
50
|
# The users limit of the workspace.
|
77
51
|
field :users_limit, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('usersLimit') } }
|
78
|
-
#
|
79
|
-
field :
|
52
|
+
# Whether the workspace is enrolled in the beta testing program.
|
53
|
+
field :beta_tester, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('betaTester') } }
|
80
54
|
|
81
55
|
|
82
|
-
sig { params(
|
83
|
-
def initialize(
|
84
|
-
@ai_limit = ai_limit
|
85
|
-
@ai_usage = ai_usage
|
86
|
-
@bank_account_name = bank_account_name
|
87
|
-
@bank_account_verified = bank_account_verified
|
56
|
+
sig { params(billing_cycle_start: ::Float, 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, 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, beta_tester: T.nilable(T::Boolean)).void }
|
57
|
+
def initialize(billing_cycle_start: 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, slug: nil, stripe_connect_id: nil, stripe_id: nil, tags_limit: nil, usage: nil, usage_limit: nil, users: nil, users_limit: nil, beta_tester: nil)
|
88
58
|
@billing_cycle_start = billing_cycle_start
|
89
|
-
@conversion_enabled = conversion_enabled
|
90
59
|
@created_at = created_at
|
91
60
|
@domains = domains
|
92
61
|
@domains_limit = domains_limit
|
93
|
-
@dot_link_claimed = dot_link_claimed
|
94
62
|
@id = id
|
95
63
|
@invite_code = invite_code
|
96
64
|
@links_limit = links_limit
|
97
65
|
@links_usage = links_usage
|
98
66
|
@logo = logo
|
99
67
|
@name = name
|
100
|
-
@partial_account_number = partial_account_number
|
101
|
-
@payment_failed_at = payment_failed_at
|
102
68
|
@plan = plan
|
103
|
-
@publishable_key = publishable_key
|
104
|
-
@referral_link_id = referral_link_id
|
105
|
-
@routing_number = routing_number
|
106
|
-
@sales_limit = sales_limit
|
107
|
-
@sales_usage = sales_usage
|
108
69
|
@slug = slug
|
109
70
|
@stripe_connect_id = stripe_connect_id
|
110
71
|
@stripe_id = stripe_id
|
@@ -113,7 +74,7 @@ module OpenApiSDK
|
|
113
74
|
@usage_limit = usage_limit
|
114
75
|
@users = users
|
115
76
|
@users_limit = users_limit
|
116
|
-
@
|
77
|
+
@beta_tester = beta_tester
|
117
78
|
end
|
118
79
|
end
|
119
80
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -37,20 +37,13 @@ module OpenApiSDK
|
|
37
37
|
autoload :Color, 'open_api_sdk/models/shared/color.rb'
|
38
38
|
autoload :TagSchema, 'open_api_sdk/models/shared/tagschema.rb'
|
39
39
|
autoload :LinkGeoTargeting, 'open_api_sdk/models/shared/linkgeotargeting.rb'
|
40
|
-
autoload :ContinentCode, 'open_api_sdk/models/shared/continentcode.rb'
|
41
40
|
autoload :CountryCode, 'open_api_sdk/models/shared/countrycode.rb'
|
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'
|
46
|
-
autoload :ClickEvent, 'open_api_sdk/models/shared/clickevent.rb'
|
47
|
-
autoload :RegisteredDomain, 'open_api_sdk/models/shared/registereddomain.rb'
|
48
|
-
autoload :DomainSchema, 'open_api_sdk/models/shared/domainschema.rb'
|
49
41
|
autoload :Plan, 'open_api_sdk/models/shared/plan.rb'
|
50
42
|
autoload :Role, 'open_api_sdk/models/shared/role.rb'
|
51
43
|
autoload :Users, 'open_api_sdk/models/shared/users.rb'
|
52
44
|
autoload :Domains, 'open_api_sdk/models/shared/domains.rb'
|
53
45
|
autoload :WorkspaceSchema, 'open_api_sdk/models/shared/workspaceschema.rb'
|
46
|
+
autoload :DomainSchema, 'open_api_sdk/models/shared/domainschema.rb'
|
54
47
|
autoload :Security, 'open_api_sdk/models/shared/security.rb'
|
55
48
|
end
|
56
49
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -44,6 +44,7 @@ module OpenApiSDK
|
|
44
44
|
)
|
45
45
|
if r.status == 200
|
46
46
|
res.res = r.env.response_body if Utils.match_content_type(content_type, 'image/png')
|
47
|
+
|
47
48
|
elsif r.status == 400
|
48
49
|
if Utils.match_content_type(content_type, 'application/json')
|
49
50
|
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
@@ -90,7 +91,6 @@ module OpenApiSDK
|
|
90
91
|
res.internal_server_error = out
|
91
92
|
end
|
92
93
|
end
|
93
|
-
|
94
94
|
res
|
95
95
|
end
|
96
96
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -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
|
42
|
-
@gen_version = '2.
|
43
|
-
@user_agent = 'speakeasy-sdk/ruby 0.2.2
|
41
|
+
@sdk_version = '0.2.2'
|
42
|
+
@gen_version = '2.365.0'
|
43
|
+
@user_agent = 'speakeasy-sdk/ruby 0.2.2 2.365.0 0.0.1 dub'
|
44
44
|
end
|
45
45
|
|
46
46
|
sig { returns([String, T::Hash[Symbol, String]]) }
|