dub 0.1.1 → 0.1.3
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/links.rb +88 -3
- data/lib/open_api_sdk/models/operations/bulkcreatelinks_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb +27 -0
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/createdomain_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/createlink_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/createtag_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/data.rb +83 -0
- data/lib/open_api_sdk/models/operations/deletedomain_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/deletelink_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/getlinkinfo_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/getlinks_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/getlinkscount_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/gettags_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/listdomains_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/trackcustomer_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/tracklead_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/tracksale_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/updatedomain_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/updatelink_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/updatetag_request.rb +2 -5
- data/lib/open_api_sdk/models/operations/upsertlink_request.rb +2 -5
- data/lib/open_api_sdk/models/operations.rb +3 -0
- data/lib/open_api_sdk/sdkconfiguration.rb +3 -3
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2416524af036560cb330648a97df0e29cc1cd000633c8f8eee809874a21958d4
|
4
|
+
data.tar.gz: edb7102b2eaeedf40a0cef2c8bfd69eb48e6afb66777a851c30a04710035e68b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b50d5c9d7be235f657cdd4eb9eb60aff58a0b1cdbc8852e2510af07496db4dbec6ef186489a87d5f9410dc3f8c1d066f3b38a365bea4c35f78e9690ee7b6b3b
|
7
|
+
data.tar.gz: d0a194e354d3b6ce1cef475818febf521abc9e89d25020107279b7413d7a85072c0e6b4494b7e12439cbd92fda3d2c1372e833391348e59b5f657ae3c409706c
|
data/lib/open_api_sdk/links.rb
CHANGED
@@ -22,7 +22,7 @@ module OpenApiSDK
|
|
22
22
|
sig { params(request: T.nilable(::OpenApiSDK::Operations::GetLinksRequest)).returns(::OpenApiSDK::Operations::GetLinksResponse) }
|
23
23
|
def list(request)
|
24
24
|
# list - Retrieve a list of links
|
25
|
-
# Retrieve a list of links for the authenticated workspace.
|
25
|
+
# Retrieve a paginated list of links for the authenticated workspace.
|
26
26
|
url, params = @sdk_configuration.get_server_details
|
27
27
|
base_url = Utils.template_url(url, params)
|
28
28
|
url = "#{base_url}/links"
|
@@ -186,8 +186,8 @@ module OpenApiSDK
|
|
186
186
|
|
187
187
|
sig { params(request: T.nilable(::OpenApiSDK::Operations::GetLinksCountRequest)).returns(::OpenApiSDK::Operations::GetLinksCountResponse) }
|
188
188
|
def count(request)
|
189
|
-
# count - Retrieve
|
190
|
-
# Retrieve the number of links for the authenticated workspace.
|
189
|
+
# count - Retrieve links count
|
190
|
+
# Retrieve the number of links for the authenticated workspace.
|
191
191
|
url, params = @sdk_configuration.get_server_details
|
192
192
|
base_url = Utils.template_url(url, params)
|
193
193
|
url = "#{base_url}/links/count"
|
@@ -604,6 +604,91 @@ module OpenApiSDK
|
|
604
604
|
end
|
605
605
|
|
606
606
|
|
607
|
+
sig { params(request: T.nilable(::OpenApiSDK::Operations::BulkUpdateLinksRequestBody)).returns(::OpenApiSDK::Operations::BulkUpdateLinksResponse) }
|
608
|
+
def update_many(request)
|
609
|
+
# update_many - Bulk update links
|
610
|
+
# Bulk update up to 100 links with the same data for the authenticated workspace.
|
611
|
+
url, params = @sdk_configuration.get_server_details
|
612
|
+
base_url = Utils.template_url(url, params)
|
613
|
+
url = "#{base_url}/links/bulk"
|
614
|
+
headers = {}
|
615
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
616
|
+
headers['content-type'] = req_content_type
|
617
|
+
headers['Accept'] = 'application/json'
|
618
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
619
|
+
|
620
|
+
r = @sdk_configuration.client.patch(url) do |req|
|
621
|
+
req.headers = headers
|
622
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
623
|
+
if form
|
624
|
+
req.body = Utils.encode_form(form)
|
625
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
626
|
+
req.body = URI.encode_www_form(data)
|
627
|
+
else
|
628
|
+
req.body = data
|
629
|
+
end
|
630
|
+
end
|
631
|
+
|
632
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
633
|
+
|
634
|
+
res = ::OpenApiSDK::Operations::BulkUpdateLinksResponse.new(
|
635
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
636
|
+
)
|
637
|
+
if r.status == 200
|
638
|
+
if Utils.match_content_type(content_type, 'application/json')
|
639
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::LinkSchema])
|
640
|
+
res.link_schemas = out
|
641
|
+
end
|
642
|
+
elsif r.status == 400
|
643
|
+
if Utils.match_content_type(content_type, 'application/json')
|
644
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
645
|
+
res.bad_request = out
|
646
|
+
end
|
647
|
+
elsif r.status == 401
|
648
|
+
if Utils.match_content_type(content_type, 'application/json')
|
649
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
650
|
+
res.unauthorized = out
|
651
|
+
end
|
652
|
+
elsif r.status == 403
|
653
|
+
if Utils.match_content_type(content_type, 'application/json')
|
654
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
655
|
+
res.forbidden = out
|
656
|
+
end
|
657
|
+
elsif r.status == 404
|
658
|
+
if Utils.match_content_type(content_type, 'application/json')
|
659
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
660
|
+
res.not_found = out
|
661
|
+
end
|
662
|
+
elsif r.status == 409
|
663
|
+
if Utils.match_content_type(content_type, 'application/json')
|
664
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
665
|
+
res.conflict = out
|
666
|
+
end
|
667
|
+
elsif r.status == 410
|
668
|
+
if Utils.match_content_type(content_type, 'application/json')
|
669
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
670
|
+
res.invite_expired = out
|
671
|
+
end
|
672
|
+
elsif r.status == 422
|
673
|
+
if Utils.match_content_type(content_type, 'application/json')
|
674
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
675
|
+
res.unprocessable_entity = out
|
676
|
+
end
|
677
|
+
elsif r.status == 429
|
678
|
+
if Utils.match_content_type(content_type, 'application/json')
|
679
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
680
|
+
res.rate_limit_exceeded = out
|
681
|
+
end
|
682
|
+
elsif r.status == 500
|
683
|
+
if Utils.match_content_type(content_type, 'application/json')
|
684
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
685
|
+
res.internal_server_error = out
|
686
|
+
end
|
687
|
+
end
|
688
|
+
res
|
689
|
+
end
|
690
|
+
|
691
|
+
|
607
692
|
sig { params(request: T.nilable(::OpenApiSDK::Operations::UpsertLinkRequest)).returns(::OpenApiSDK::Operations::UpsertLinkResponse) }
|
608
693
|
def upsert(request)
|
609
694
|
# upsert - Upsert a link
|
@@ -11,17 +11,14 @@ module OpenApiSDK
|
|
11
11
|
class BulkCreateLinksRequest < ::OpenApiSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
15
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
16
14
|
|
17
15
|
field :request_body, T.nilable(T::Array[::OpenApiSDK::Operations::RequestBody]), { 'request': { 'media_type': 'application/json' } }
|
18
16
|
# The ID of the workspace.
|
19
17
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
20
18
|
|
21
19
|
|
22
|
-
sig { params(
|
23
|
-
def initialize(
|
24
|
-
@project_slug = project_slug
|
20
|
+
sig { params(request_body: T.nilable(T::Array[::OpenApiSDK::Operations::RequestBody]), workspace_id: T.nilable(::String)).void }
|
21
|
+
def initialize(request_body: nil, workspace_id: nil)
|
25
22
|
@request_body = request_body
|
26
23
|
@workspace_id = workspace_id
|
27
24
|
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module OpenApiSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class BulkUpdateLinksRequestBody < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :data, ::OpenApiSDK::Operations::Data, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('data') } }
|
16
|
+
|
17
|
+
field :link_ids, T::Array[::String], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('linkIds') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(data: ::OpenApiSDK::Operations::Data, link_ids: T::Array[::String]).void }
|
21
|
+
def initialize(data: nil, link_ids: nil)
|
22
|
+
@data = data
|
23
|
+
@link_ids = link_ids
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module OpenApiSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class BulkUpdateLinksResponse < ::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 updated links
|
31
|
+
field :link_schemas, T.nilable(T::Array[::OpenApiSDK::Shared::LinkSchema])
|
32
|
+
# The server cannot find the requested resource.
|
33
|
+
field :not_found, T.nilable(::OpenApiSDK::Shared::NotFound)
|
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), link_schemas: T.nilable(T::Array[::OpenApiSDK::Shared::LinkSchema]), not_found: T.nilable(::OpenApiSDK::Shared::NotFound), 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, link_schemas: nil, not_found: 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
|
+
@link_schemas = link_schemas
|
53
|
+
@not_found = not_found
|
54
|
+
@rate_limit_exceeded = rate_limit_exceeded
|
55
|
+
@unauthorized = unauthorized
|
56
|
+
@unprocessable_entity = unprocessable_entity
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -11,17 +11,14 @@ module OpenApiSDK
|
|
11
11
|
class CreateDomainRequest < ::OpenApiSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
15
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
16
14
|
|
17
15
|
field :request_body, T.nilable(::OpenApiSDK::Operations::CreateDomainRequestBody), { 'request': { 'media_type': 'application/json' } }
|
18
16
|
# The ID of the workspace.
|
19
17
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
20
18
|
|
21
19
|
|
22
|
-
sig { params(
|
23
|
-
def initialize(
|
24
|
-
@project_slug = project_slug
|
20
|
+
sig { params(request_body: T.nilable(::OpenApiSDK::Operations::CreateDomainRequestBody), workspace_id: T.nilable(::String)).void }
|
21
|
+
def initialize(request_body: nil, workspace_id: nil)
|
25
22
|
@request_body = request_body
|
26
23
|
@workspace_id = workspace_id
|
27
24
|
end
|
@@ -11,17 +11,14 @@ module OpenApiSDK
|
|
11
11
|
class CreateLinkRequest < ::OpenApiSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
15
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
16
14
|
|
17
15
|
field :request_body, T.nilable(::OpenApiSDK::Operations::CreateLinkRequestBody), { 'request': { 'media_type': 'application/json' } }
|
18
16
|
# The ID of the workspace.
|
19
17
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
20
18
|
|
21
19
|
|
22
|
-
sig { params(
|
23
|
-
def initialize(
|
24
|
-
@project_slug = project_slug
|
20
|
+
sig { params(request_body: T.nilable(::OpenApiSDK::Operations::CreateLinkRequestBody), workspace_id: T.nilable(::String)).void }
|
21
|
+
def initialize(request_body: nil, workspace_id: nil)
|
25
22
|
@request_body = request_body
|
26
23
|
@workspace_id = workspace_id
|
27
24
|
end
|
@@ -11,17 +11,14 @@ module OpenApiSDK
|
|
11
11
|
class CreateTagRequest < ::OpenApiSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
15
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
16
14
|
|
17
15
|
field :request_body, T.nilable(::OpenApiSDK::Operations::CreateTagRequestBody), { 'request': { 'media_type': 'application/json' } }
|
18
16
|
# The ID of the workspace.
|
19
17
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
20
18
|
|
21
19
|
|
22
|
-
sig { params(
|
23
|
-
def initialize(
|
24
|
-
@project_slug = project_slug
|
20
|
+
sig { params(request_body: T.nilable(::OpenApiSDK::Operations::CreateTagRequestBody), workspace_id: T.nilable(::String)).void }
|
21
|
+
def initialize(request_body: nil, workspace_id: nil)
|
25
22
|
@request_body = request_body
|
26
23
|
@workspace_id = workspace_id
|
27
24
|
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module OpenApiSDK
|
8
|
+
module Operations
|
9
|
+
|
10
|
+
|
11
|
+
class Data < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The Android destination URL for the short link for Android device targeting.
|
15
|
+
field :android, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('android') } }
|
16
|
+
# Whether the short link is archived.
|
17
|
+
field :archived, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('archived') } }
|
18
|
+
# The comments for the short link.
|
19
|
+
field :comments, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('comments') } }
|
20
|
+
# The description of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
|
21
|
+
field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
|
22
|
+
# Allow search engines to index your short link. Defaults to `false` if not provided. Learn more: https://d.to/noindex
|
23
|
+
field :do_index, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('doIndex') } }
|
24
|
+
# The URL to redirect to when the short link has expired.
|
25
|
+
field :expired_url, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiredUrl') } }
|
26
|
+
# The date and time when the short link will expire at.
|
27
|
+
field :expires_at, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiresAt') } }
|
28
|
+
# Geo targeting information for the short link in JSON format `{[COUNTRY]: https://example.com }`.
|
29
|
+
field :geo, T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('geo') } }
|
30
|
+
# The image of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
|
31
|
+
field :image, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('image') } }
|
32
|
+
# The iOS destination URL for the short link for iOS device targeting.
|
33
|
+
field :ios, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ios') } }
|
34
|
+
# The password required to access the destination URL of the short link.
|
35
|
+
field :password, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('password') } }
|
36
|
+
# Whether the short link uses Custom Social Media Cards feature.
|
37
|
+
field :proxy, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('proxy') } }
|
38
|
+
# Whether the short link's stats are publicly accessible.
|
39
|
+
field :public_stats, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('publicStats') } }
|
40
|
+
# Whether the short link uses link cloaking.
|
41
|
+
field :rewrite, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rewrite') } }
|
42
|
+
# The unique ID of the tag assigned to the short link. This field is deprecated – use `tagIds` instead.
|
43
|
+
#
|
44
|
+
# @deprecated true: This will be removed in a future release, please migrate away from it as soon as possible.
|
45
|
+
field :tag_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagId') } }
|
46
|
+
# The unique IDs of the tags assigned to the short link.
|
47
|
+
field :tag_ids, T.nilable(::Object), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagIds') } }
|
48
|
+
# The unique name of the tags assigned to the short link (case insensitive).
|
49
|
+
field :tag_names, T.nilable(::Object), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tagNames') } }
|
50
|
+
# The title of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
|
51
|
+
field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('title') } }
|
52
|
+
# Whether to track conversions for the short link.
|
53
|
+
field :track_conversion, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('trackConversion') } }
|
54
|
+
# The destination URL of the short link.
|
55
|
+
field :url, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
|
56
|
+
|
57
|
+
|
58
|
+
sig { params(android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), expired_url: T.nilable(::String), expires_at: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), password: T.nilable(::String), proxy: T.nilable(T::Boolean), public_stats: T.nilable(T::Boolean), rewrite: T.nilable(T::Boolean), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), title: T.nilable(::String), track_conversion: T.nilable(T::Boolean), url: T.nilable(::String)).void }
|
59
|
+
def initialize(android: nil, archived: nil, comments: nil, description: nil, do_index: nil, expired_url: nil, expires_at: nil, geo: nil, image: nil, ios: nil, password: nil, proxy: nil, public_stats: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, title: nil, track_conversion: nil, url: nil)
|
60
|
+
@android = android
|
61
|
+
@archived = archived
|
62
|
+
@comments = comments
|
63
|
+
@description = description
|
64
|
+
@do_index = do_index
|
65
|
+
@expired_url = expired_url
|
66
|
+
@expires_at = expires_at
|
67
|
+
@geo = geo
|
68
|
+
@image = image
|
69
|
+
@ios = ios
|
70
|
+
@password = password
|
71
|
+
@proxy = proxy
|
72
|
+
@public_stats = public_stats
|
73
|
+
@rewrite = rewrite
|
74
|
+
@tag_id = tag_id
|
75
|
+
@tag_ids = tag_ids
|
76
|
+
@tag_names = tag_names
|
77
|
+
@title = title
|
78
|
+
@track_conversion = track_conversion
|
79
|
+
@url = url
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -13,16 +13,13 @@ module OpenApiSDK
|
|
13
13
|
|
14
14
|
# The domain name.
|
15
15
|
field :slug, ::String, { 'path_param': { 'field_name': 'slug', 'style': 'simple', 'explode': false } }
|
16
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
17
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
18
16
|
# The ID of the workspace.
|
19
17
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
20
18
|
|
21
19
|
|
22
|
-
sig { params(slug: ::String,
|
23
|
-
def initialize(slug: nil,
|
20
|
+
sig { params(slug: ::String, workspace_id: T.nilable(::String)).void }
|
21
|
+
def initialize(slug: nil, workspace_id: nil)
|
24
22
|
@slug = slug
|
25
|
-
@project_slug = project_slug
|
26
23
|
@workspace_id = workspace_id
|
27
24
|
end
|
28
25
|
end
|
@@ -13,16 +13,13 @@ module OpenApiSDK
|
|
13
13
|
|
14
14
|
# The id of the link to delete. You may use either `linkId` (obtained via `/links/info` endpoint) or `externalId` prefixed with `ext_`.
|
15
15
|
field :link_id, ::String, { 'path_param': { 'field_name': 'linkId', 'style': 'simple', 'explode': false } }
|
16
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
17
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
18
16
|
# The ID of the workspace.
|
19
17
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
20
18
|
|
21
19
|
|
22
|
-
sig { params(link_id: ::String,
|
23
|
-
def initialize(link_id: nil,
|
20
|
+
sig { params(link_id: ::String, workspace_id: T.nilable(::String)).void }
|
21
|
+
def initialize(link_id: nil, workspace_id: nil)
|
24
22
|
@link_id = link_id
|
25
|
-
@project_slug = project_slug
|
26
23
|
@workspace_id = workspace_id
|
27
24
|
end
|
28
25
|
end
|
@@ -19,19 +19,16 @@ module OpenApiSDK
|
|
19
19
|
field :key, T.nilable(::String), { 'query_param': { 'field_name': 'key', 'style': 'form', 'explode': true } }
|
20
20
|
# The unique ID of the short link.
|
21
21
|
field :link_id, T.nilable(::String), { 'query_param': { 'field_name': 'linkId', 'style': 'form', 'explode': true } }
|
22
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
23
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
24
22
|
# The ID of the workspace.
|
25
23
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
26
24
|
|
27
25
|
|
28
|
-
sig { params(domain: T.nilable(::String), external_id: T.nilable(::String), key: T.nilable(::String), link_id: T.nilable(::String),
|
29
|
-
def initialize(domain: nil, external_id: nil, key: nil, link_id: nil,
|
26
|
+
sig { params(domain: T.nilable(::String), external_id: T.nilable(::String), key: T.nilable(::String), link_id: T.nilable(::String), workspace_id: T.nilable(::String)).void }
|
27
|
+
def initialize(domain: nil, external_id: nil, key: nil, link_id: nil, workspace_id: nil)
|
30
28
|
@domain = domain
|
31
29
|
@external_id = external_id
|
32
30
|
@key = key
|
33
31
|
@link_id = link_id
|
34
|
-
@project_slug = project_slug
|
35
32
|
@workspace_id = workspace_id
|
36
33
|
end
|
37
34
|
end
|
@@ -15,8 +15,6 @@ module OpenApiSDK
|
|
15
15
|
field :domain, T.nilable(::String), { 'query_param': { 'field_name': 'domain', 'style': 'form', 'explode': true } }
|
16
16
|
# The page number for pagination (each page contains 100 links).
|
17
17
|
field :page, T.nilable(::Integer), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
18
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
19
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
20
18
|
# The search term to filter the links by. The search term will be matched against the short link slug and the destination url.
|
21
19
|
field :search, T.nilable(::String), { 'query_param': { 'field_name': 'search', 'style': 'form', 'explode': true } }
|
22
20
|
# Whether to include archived links in the response. Defaults to `false` if not provided.
|
@@ -37,11 +35,10 @@ module OpenApiSDK
|
|
37
35
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
38
36
|
|
39
37
|
|
40
|
-
sig { params(domain: T.nilable(::String), page: T.nilable(::Integer),
|
41
|
-
def initialize(domain: nil, page: nil,
|
38
|
+
sig { params(domain: T.nilable(::String), page: T.nilable(::Integer), search: T.nilable(::String), show_archived: T.nilable(T::Boolean), sort: T.nilable(::OpenApiSDK::Operations::Sort), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), user_id: T.nilable(::String), with_tags: T.nilable(T::Boolean), workspace_id: T.nilable(::String)).void }
|
39
|
+
def initialize(domain: nil, page: nil, search: nil, show_archived: nil, sort: nil, tag_id: nil, tag_ids: nil, tag_names: nil, user_id: nil, with_tags: nil, workspace_id: nil)
|
42
40
|
@domain = domain
|
43
41
|
@page = page
|
44
|
-
@project_slug = project_slug
|
45
42
|
@search = search
|
46
43
|
@show_archived = show_archived
|
47
44
|
@sort = sort
|
@@ -15,8 +15,6 @@ module OpenApiSDK
|
|
15
15
|
field :domain, T.nilable(::String), { 'query_param': { 'field_name': 'domain', 'style': 'form', 'explode': true } }
|
16
16
|
# The field to group the links by.
|
17
17
|
field :group_by, T.nilable(::Object), { 'query_param': { 'field_name': 'groupBy', 'style': 'form', 'explode': true } }
|
18
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
19
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
20
18
|
# The search term to filter the links by. The search term will be matched against the short link slug and the destination url.
|
21
19
|
field :search, T.nilable(::String), { 'query_param': { 'field_name': 'search', 'style': 'form', 'explode': true } }
|
22
20
|
# Whether to include archived links in the response. Defaults to `false` if not provided.
|
@@ -35,11 +33,10 @@ module OpenApiSDK
|
|
35
33
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
36
34
|
|
37
35
|
|
38
|
-
sig { params(domain: T.nilable(::String), group_by: T.nilable(::Object),
|
39
|
-
def initialize(domain: nil, group_by: nil,
|
36
|
+
sig { params(domain: T.nilable(::String), group_by: T.nilable(::Object), search: T.nilable(::String), show_archived: T.nilable(T::Boolean), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), user_id: T.nilable(::String), with_tags: T.nilable(T::Boolean), workspace_id: T.nilable(::String)).void }
|
37
|
+
def initialize(domain: nil, group_by: nil, search: nil, show_archived: nil, tag_id: nil, tag_ids: nil, tag_names: nil, user_id: nil, with_tags: nil, workspace_id: nil)
|
40
38
|
@domain = domain
|
41
39
|
@group_by = group_by
|
42
|
-
@project_slug = project_slug
|
43
40
|
@search = search
|
44
41
|
@show_archived = show_archived
|
45
42
|
@tag_id = tag_id
|
@@ -11,15 +11,12 @@ module OpenApiSDK
|
|
11
11
|
class GetTagsRequest < ::OpenApiSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
15
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
16
14
|
# The ID of the workspace.
|
17
15
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
18
16
|
|
19
17
|
|
20
|
-
sig { params(
|
21
|
-
def initialize(
|
22
|
-
@project_slug = project_slug
|
18
|
+
sig { params(workspace_id: T.nilable(::String)).void }
|
19
|
+
def initialize(workspace_id: nil)
|
23
20
|
@workspace_id = workspace_id
|
24
21
|
end
|
25
22
|
end
|
@@ -11,15 +11,12 @@ module OpenApiSDK
|
|
11
11
|
class ListDomainsRequest < ::OpenApiSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
15
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
16
14
|
# The ID of the workspace.
|
17
15
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
18
16
|
|
19
17
|
|
20
|
-
sig { params(
|
21
|
-
def initialize(
|
22
|
-
@project_slug = project_slug
|
18
|
+
sig { params(workspace_id: T.nilable(::String)).void }
|
19
|
+
def initialize(workspace_id: nil)
|
23
20
|
@workspace_id = workspace_id
|
24
21
|
end
|
25
22
|
end
|
@@ -37,8 +37,6 @@ module OpenApiSDK
|
|
37
37
|
field :link_id, T.nilable(::String), { 'query_param': { 'field_name': 'linkId', 'style': 'form', 'explode': true } }
|
38
38
|
# The OS to retrieve analytics for.
|
39
39
|
field :os, T.nilable(::String), { 'query_param': { 'field_name': 'os', 'style': 'form', 'explode': true } }
|
40
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
41
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
42
40
|
# Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both.
|
43
41
|
field :qr, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'qr', 'style': 'form', 'explode': true } }
|
44
42
|
# The referer to retrieve analytics for.
|
@@ -57,8 +55,8 @@ module OpenApiSDK
|
|
57
55
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
58
56
|
|
59
57
|
|
60
|
-
sig { params(browser: T.nilable(::String), city: T.nilable(::String), country: T.nilable(::OpenApiSDK::Shared::CountryCode), device: T.nilable(::String), domain: T.nilable(::String), end_: T.nilable(::String), event: T.nilable(::OpenApiSDK::Operations::Event), external_id: T.nilable(::String), group_by: T.nilable(::OpenApiSDK::Operations::GroupBy), interval: T.nilable(::OpenApiSDK::Operations::Interval), key: T.nilable(::String), link_id: T.nilable(::String), os: T.nilable(::String),
|
61
|
-
def initialize(browser: nil, city: nil, country: nil, device: nil, domain: nil, end_: nil, event: nil, external_id: nil, group_by: nil, interval: nil, key: nil, link_id: nil, os: nil,
|
58
|
+
sig { params(browser: T.nilable(::String), city: T.nilable(::String), country: T.nilable(::OpenApiSDK::Shared::CountryCode), device: T.nilable(::String), domain: T.nilable(::String), end_: T.nilable(::String), event: T.nilable(::OpenApiSDK::Operations::Event), external_id: T.nilable(::String), group_by: T.nilable(::OpenApiSDK::Operations::GroupBy), interval: T.nilable(::OpenApiSDK::Operations::Interval), key: T.nilable(::String), link_id: T.nilable(::String), os: T.nilable(::String), qr: T.nilable(T::Boolean), referer: T.nilable(::String), root: T.nilable(T::Boolean), start: T.nilable(::String), tag_id: T.nilable(::String), timezone: T.nilable(::String), url: T.nilable(::String), workspace_id: T.nilable(::String)).void }
|
59
|
+
def initialize(browser: nil, city: nil, country: nil, device: nil, domain: nil, end_: nil, event: nil, external_id: nil, group_by: nil, interval: nil, key: nil, link_id: nil, os: nil, qr: nil, referer: nil, root: nil, start: nil, tag_id: nil, timezone: nil, url: nil, workspace_id: nil)
|
62
60
|
@browser = browser
|
63
61
|
@city = city
|
64
62
|
@country = country
|
@@ -72,7 +70,6 @@ module OpenApiSDK
|
|
72
70
|
@key = key
|
73
71
|
@link_id = link_id
|
74
72
|
@os = os
|
75
|
-
@project_slug = project_slug
|
76
73
|
@qr = qr
|
77
74
|
@referer = referer
|
78
75
|
@root = root
|
@@ -11,17 +11,14 @@ module OpenApiSDK
|
|
11
11
|
class TrackCustomerRequest < ::OpenApiSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
15
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
16
14
|
|
17
15
|
field :request_body, T.nilable(::OpenApiSDK::Operations::TrackCustomerRequestBody), { 'request': { 'media_type': 'application/json' } }
|
18
16
|
# The ID of the workspace.
|
19
17
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
20
18
|
|
21
19
|
|
22
|
-
sig { params(
|
23
|
-
def initialize(
|
24
|
-
@project_slug = project_slug
|
20
|
+
sig { params(request_body: T.nilable(::OpenApiSDK::Operations::TrackCustomerRequestBody), workspace_id: T.nilable(::String)).void }
|
21
|
+
def initialize(request_body: nil, workspace_id: nil)
|
25
22
|
@request_body = request_body
|
26
23
|
@workspace_id = workspace_id
|
27
24
|
end
|
@@ -11,17 +11,14 @@ module OpenApiSDK
|
|
11
11
|
class TrackLeadRequest < ::OpenApiSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
15
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
16
14
|
|
17
15
|
field :request_body, T.nilable(::OpenApiSDK::Operations::TrackLeadRequestBody), { 'request': { 'media_type': 'application/json' } }
|
18
16
|
# The ID of the workspace.
|
19
17
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
20
18
|
|
21
19
|
|
22
|
-
sig { params(
|
23
|
-
def initialize(
|
24
|
-
@project_slug = project_slug
|
20
|
+
sig { params(request_body: T.nilable(::OpenApiSDK::Operations::TrackLeadRequestBody), workspace_id: T.nilable(::String)).void }
|
21
|
+
def initialize(request_body: nil, workspace_id: nil)
|
25
22
|
@request_body = request_body
|
26
23
|
@workspace_id = workspace_id
|
27
24
|
end
|
@@ -11,17 +11,14 @@ module OpenApiSDK
|
|
11
11
|
class TrackSaleRequest < ::OpenApiSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
15
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
16
14
|
|
17
15
|
field :request_body, T.nilable(::OpenApiSDK::Operations::TrackSaleRequestBody), { 'request': { 'media_type': 'application/json' } }
|
18
16
|
# The ID of the workspace.
|
19
17
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
20
18
|
|
21
19
|
|
22
|
-
sig { params(
|
23
|
-
def initialize(
|
24
|
-
@project_slug = project_slug
|
20
|
+
sig { params(request_body: T.nilable(::OpenApiSDK::Operations::TrackSaleRequestBody), workspace_id: T.nilable(::String)).void }
|
21
|
+
def initialize(request_body: nil, workspace_id: nil)
|
25
22
|
@request_body = request_body
|
26
23
|
@workspace_id = workspace_id
|
27
24
|
end
|
@@ -13,18 +13,15 @@ module OpenApiSDK
|
|
13
13
|
|
14
14
|
# The domain name.
|
15
15
|
field :slug, ::String, { 'path_param': { 'field_name': 'slug', 'style': 'simple', 'explode': false } }
|
16
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
17
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
18
16
|
|
19
17
|
field :request_body, T.nilable(::OpenApiSDK::Operations::UpdateDomainRequestBody), { 'request': { 'media_type': 'application/json' } }
|
20
18
|
# The ID of the workspace.
|
21
19
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
22
20
|
|
23
21
|
|
24
|
-
sig { params(slug: ::String,
|
25
|
-
def initialize(slug: nil,
|
22
|
+
sig { params(slug: ::String, request_body: T.nilable(::OpenApiSDK::Operations::UpdateDomainRequestBody), workspace_id: T.nilable(::String)).void }
|
23
|
+
def initialize(slug: nil, request_body: nil, workspace_id: nil)
|
26
24
|
@slug = slug
|
27
|
-
@project_slug = project_slug
|
28
25
|
@request_body = request_body
|
29
26
|
@workspace_id = workspace_id
|
30
27
|
end
|
@@ -13,18 +13,15 @@ module OpenApiSDK
|
|
13
13
|
|
14
14
|
# The id of the link to update. You may use either `linkId` (obtained via `/links/info` endpoint) or `externalId` prefixed with `ext_`.
|
15
15
|
field :link_id, ::String, { 'path_param': { 'field_name': 'linkId', 'style': 'simple', 'explode': false } }
|
16
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
17
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
18
16
|
|
19
17
|
field :request_body, T.nilable(::OpenApiSDK::Operations::UpdateLinkRequestBody), { 'request': { 'media_type': 'application/json' } }
|
20
18
|
# The ID of the workspace.
|
21
19
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
22
20
|
|
23
21
|
|
24
|
-
sig { params(link_id: ::String,
|
25
|
-
def initialize(link_id: nil,
|
22
|
+
sig { params(link_id: ::String, request_body: T.nilable(::OpenApiSDK::Operations::UpdateLinkRequestBody), workspace_id: T.nilable(::String)).void }
|
23
|
+
def initialize(link_id: nil, request_body: nil, workspace_id: nil)
|
26
24
|
@link_id = link_id
|
27
|
-
@project_slug = project_slug
|
28
25
|
@request_body = request_body
|
29
26
|
@workspace_id = workspace_id
|
30
27
|
end
|
@@ -13,18 +13,15 @@ module OpenApiSDK
|
|
13
13
|
|
14
14
|
# The ID of the tag
|
15
15
|
field :id, ::String, { 'path_param': { 'field_name': 'id', 'style': 'simple', 'explode': false } }
|
16
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
17
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
18
16
|
|
19
17
|
field :request_body, T.nilable(::OpenApiSDK::Operations::UpdateTagRequestBody), { 'request': { 'media_type': 'application/json' } }
|
20
18
|
# The ID of the workspace.
|
21
19
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
22
20
|
|
23
21
|
|
24
|
-
sig { params(id: ::String,
|
25
|
-
def initialize(id: nil,
|
22
|
+
sig { params(id: ::String, request_body: T.nilable(::OpenApiSDK::Operations::UpdateTagRequestBody), workspace_id: T.nilable(::String)).void }
|
23
|
+
def initialize(id: nil, request_body: nil, workspace_id: nil)
|
26
24
|
@id = id
|
27
|
-
@project_slug = project_slug
|
28
25
|
@request_body = request_body
|
29
26
|
@workspace_id = workspace_id
|
30
27
|
end
|
@@ -11,17 +11,14 @@ module OpenApiSDK
|
|
11
11
|
class UpsertLinkRequest < ::OpenApiSDK::Utils::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
|
-
# The slug of the project. This field is deprecated – use `workspaceId` instead.
|
15
|
-
field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
|
16
14
|
|
17
15
|
field :request_body, T.nilable(::OpenApiSDK::Operations::UpsertLinkRequestBody), { 'request': { 'media_type': 'application/json' } }
|
18
16
|
# The ID of the workspace.
|
19
17
|
field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
|
20
18
|
|
21
19
|
|
22
|
-
sig { params(
|
23
|
-
def initialize(
|
24
|
-
@project_slug = project_slug
|
20
|
+
sig { params(request_body: T.nilable(::OpenApiSDK::Operations::UpsertLinkRequestBody), workspace_id: T.nilable(::String)).void }
|
21
|
+
def initialize(request_body: nil, workspace_id: nil)
|
25
22
|
@request_body = request_body
|
26
23
|
@workspace_id = workspace_id
|
27
24
|
end
|
@@ -24,6 +24,9 @@ module OpenApiSDK
|
|
24
24
|
autoload :RequestBody, 'open_api_sdk/models/operations/requestbody.rb'
|
25
25
|
autoload :BulkCreateLinksRequest, 'open_api_sdk/models/operations/bulkcreatelinks_request.rb'
|
26
26
|
autoload :BulkCreateLinksResponse, 'open_api_sdk/models/operations/bulkcreatelinks_response.rb'
|
27
|
+
autoload :Data, 'open_api_sdk/models/operations/data.rb'
|
28
|
+
autoload :BulkUpdateLinksRequestBody, 'open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb'
|
29
|
+
autoload :BulkUpdateLinksResponse, 'open_api_sdk/models/operations/bulkupdatelinks_response.rb'
|
27
30
|
autoload :UpsertLinkRequestBody, 'open_api_sdk/models/operations/upsertlink_requestbody.rb'
|
28
31
|
autoload :UpsertLinkRequest, 'open_api_sdk/models/operations/upsertlink_request.rb'
|
29
32
|
autoload :UpsertLinkResponse, 'open_api_sdk/models/operations/upsertlink_response.rb'
|
@@ -40,9 +40,9 @@ module OpenApiSDK
|
|
40
40
|
@globals = globals.nil? ? {} : globals
|
41
41
|
@language = 'ruby'
|
42
42
|
@openapi_doc_version = '0.0.1'
|
43
|
-
@sdk_version = '0.1.
|
44
|
-
@gen_version = '2.
|
45
|
-
@user_agent = 'speakeasy-sdk/ruby 0.1.
|
43
|
+
@sdk_version = '0.1.3'
|
44
|
+
@gen_version = '2.359.6'
|
45
|
+
@user_agent = 'speakeasy-sdk/ruby 0.1.3 2.359.6 0.0.1 dub'
|
46
46
|
end
|
47
47
|
|
48
48
|
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.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dub
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -151,6 +151,8 @@ files:
|
|
151
151
|
- lib/open_api_sdk/models/operations.rb
|
152
152
|
- lib/open_api_sdk/models/operations/bulkcreatelinks_request.rb
|
153
153
|
- lib/open_api_sdk/models/operations/bulkcreatelinks_response.rb
|
154
|
+
- lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb
|
155
|
+
- lib/open_api_sdk/models/operations/bulkupdatelinks_response.rb
|
154
156
|
- lib/open_api_sdk/models/operations/color.rb
|
155
157
|
- lib/open_api_sdk/models/operations/createdomain_request.rb
|
156
158
|
- lib/open_api_sdk/models/operations/createdomain_requestbody.rb
|
@@ -161,6 +163,7 @@ files:
|
|
161
163
|
- lib/open_api_sdk/models/operations/createtag_request.rb
|
162
164
|
- lib/open_api_sdk/models/operations/createtag_requestbody.rb
|
163
165
|
- lib/open_api_sdk/models/operations/createtag_response.rb
|
166
|
+
- lib/open_api_sdk/models/operations/data.rb
|
164
167
|
- lib/open_api_sdk/models/operations/deletedomain_request.rb
|
165
168
|
- lib/open_api_sdk/models/operations/deletedomain_response.rb
|
166
169
|
- lib/open_api_sdk/models/operations/deletedomain_responsebody.rb
|