dub 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16c23f65dff97941455ad65a1033c9a2e313a3e13d2c542de4759e69ceaa0e8d
4
- data.tar.gz: 897e1cd3c5ebcc1a3419e22e8b42957b43ac3a4cd8378ed4eb459b46149bbbd0
3
+ metadata.gz: b4f41e79f14bdd9930875503f1ca3b99ce74fb8defc34bd9a85a9fa4869671db
4
+ data.tar.gz: f464c25231b501efae279b922407434375fbe7085053ce65e383c9202158d509
5
5
  SHA512:
6
- metadata.gz: 557f6f210fdad5f89c679350ab5a7563f4760e2bf1656b0428afa3e174303848c16f5a59aa33afaaf6302ca14a453a3d2facf83d78453ea8b800130c663c5b15
7
- data.tar.gz: cbbe0712ced025ef24a4bce0737dbad16a62d666ed32acff73424ab3c25b2c7ac0c5d7df2a8a78790631870e7bc52c227521df3f449656048319be69c9784999
6
+ metadata.gz: c13e4829b7ffd660cc5a5578fd5bb85ca4a4b8f8928e8b9c0d8e6afa0b59ff092d2c288974b61975b49b70dad47df190bf290d4b910979ee9af1028cf55ad6a6
7
+ data.tar.gz: '082f875fc76929cbb25169da5c9b150668ab3e2596dab8081abee3db2db4b517d25eed4de657c57ea4c3f1949a6c6751cbec2ffb30bad02704904848cae353d8'
@@ -102,11 +102,11 @@ module OpenApiSDK
102
102
  end
103
103
 
104
104
 
105
- sig { params(workspace_id: T.nilable(::String), project_slug: T.nilable(::String), request_body: T.nilable(::OpenApiSDK::Operations::AddDomainRequestBody)).returns(::OpenApiSDK::Operations::AddDomainResponse) }
106
- def add(workspace_id = nil, project_slug = nil, request_body = nil)
107
- # add - Add a domain
108
- # Add a domain to the authenticated workspace.
109
- request = ::OpenApiSDK::Operations::AddDomainRequest.new(
105
+ sig { params(workspace_id: T.nilable(::String), project_slug: T.nilable(::String), request_body: T.nilable(::OpenApiSDK::Operations::CreateDomainRequestBody)).returns(::OpenApiSDK::Operations::CreateDomainResponse) }
106
+ def create(workspace_id = nil, project_slug = nil, request_body = nil)
107
+ # create - Create a domain
108
+ # Create a domain for the authenticated workspace.
109
+ request = ::OpenApiSDK::Operations::CreateDomainRequest.new(
110
110
 
111
111
  workspace_id: workspace_id,
112
112
  project_slug: project_slug,
@@ -118,7 +118,7 @@ module OpenApiSDK
118
118
  headers = {}
119
119
  req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :json)
120
120
  headers['content-type'] = req_content_type
121
- query_params = Utils.get_query_params(::OpenApiSDK::Operations::AddDomainRequest, request, @sdk_configuration.globals)
121
+ query_params = Utils.get_query_params(::OpenApiSDK::Operations::CreateDomainRequest, request, @sdk_configuration.globals)
122
122
  headers['Accept'] = 'application/json'
123
123
  headers['user-agent'] = @sdk_configuration.user_agent
124
124
 
@@ -137,7 +137,7 @@ module OpenApiSDK
137
137
 
138
138
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
139
139
 
140
- res = ::OpenApiSDK::Operations::AddDomainResponse.new(
140
+ res = ::OpenApiSDK::Operations::CreateDomainResponse.new(
141
141
  status_code: r.status, content_type: content_type, raw_response: r
142
142
  )
143
143
  if r.status == 201
@@ -8,18 +8,18 @@ module OpenApiSDK
8
8
  module Operations
9
9
 
10
10
 
11
- class AddDomainRequest < ::OpenApiSDK::Utils::FieldAugmented
11
+ class CreateDomainRequest < ::OpenApiSDK::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
  # The slug of the project. This field is deprecated – use `workspaceId` instead.
15
15
  field :project_slug, T.nilable(::String), { 'query_param': { 'field_name': 'projectSlug', 'style': 'form', 'explode': true } }
16
16
 
17
- field :request_body, T.nilable(::OpenApiSDK::Operations::AddDomainRequestBody), { 'request': { 'media_type': 'application/json' } }
17
+ field :request_body, T.nilable(::OpenApiSDK::Operations::CreateDomainRequestBody), { 'request': { 'media_type': 'application/json' } }
18
18
  # The ID of the workspace.
19
19
  field :workspace_id, T.nilable(::String), { 'query_param': { 'field_name': 'workspaceId', 'style': 'form', 'explode': true } }
20
20
 
21
21
 
22
- sig { params(project_slug: T.nilable(::String), request_body: T.nilable(::OpenApiSDK::Operations::AddDomainRequestBody), workspace_id: T.nilable(::String)).void }
22
+ sig { params(project_slug: T.nilable(::String), request_body: T.nilable(::OpenApiSDK::Operations::CreateDomainRequestBody), workspace_id: T.nilable(::String)).void }
23
23
  def initialize(project_slug: nil, request_body: nil, workspace_id: nil)
24
24
  @project_slug = project_slug
25
25
  @request_body = request_body
@@ -8,7 +8,7 @@ module OpenApiSDK
8
8
  module Operations
9
9
 
10
10
 
11
- class AddDomainRequestBody < ::OpenApiSDK::Utils::FieldAugmented
11
+ class CreateDomainRequestBody < ::OpenApiSDK::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
  # Name of the domain.
@@ -17,25 +17,16 @@ module OpenApiSDK
17
17
  field :archived, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('archived') } }
18
18
  # Redirect users to a specific URL when any link under this domain has expired.
19
19
  field :expired_url, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiredUrl') } }
20
- # Prevent search engines from indexing the domain. Defaults to `false`.
21
- field :noindex, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('noindex') } }
22
20
  # Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.
23
21
  field :placeholder, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('placeholder') } }
24
- # The page your users will get redirected to when they visit your domain.
25
- field :target, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('target') } }
26
- # The type of redirect to use for this domain.
27
- field :type, T.nilable(::OpenApiSDK::Operations::Type), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::Type, true) } }
28
22
 
29
23
 
30
- sig { params(slug: ::String, archived: T.nilable(T::Boolean), expired_url: T.nilable(::String), noindex: T.nilable(T::Boolean), placeholder: T.nilable(::String), target: T.nilable(::String), type: T.nilable(::OpenApiSDK::Operations::Type)).void }
31
- def initialize(slug: nil, archived: nil, expired_url: nil, noindex: nil, placeholder: nil, target: nil, type: nil)
24
+ sig { params(slug: ::String, archived: T.nilable(T::Boolean), expired_url: T.nilable(::String), placeholder: T.nilable(::String)).void }
25
+ def initialize(slug: nil, archived: nil, expired_url: nil, placeholder: nil)
32
26
  @slug = slug
33
27
  @archived = archived
34
28
  @expired_url = expired_url
35
- @noindex = noindex
36
29
  @placeholder = placeholder
37
- @target = target
38
- @type = type
39
30
  end
40
31
  end
41
32
  end
@@ -8,7 +8,7 @@ module OpenApiSDK
8
8
  module Operations
9
9
 
10
10
 
11
- class AddDomainResponse < ::OpenApiSDK::Utils::FieldAugmented
11
+ class CreateDomainResponse < ::OpenApiSDK::Utils::FieldAugmented
12
12
  extend T::Sig
13
13
 
14
14
  # HTTP response content type for this operation
@@ -21,7 +21,7 @@ module OpenApiSDK
21
21
  field :bad_request, T.nilable(::OpenApiSDK::Shared::BadRequest)
22
22
  # This response is sent when a request conflicts with the current state of the server.
23
23
  field :conflict, T.nilable(::OpenApiSDK::Shared::Conflict)
24
- # The domain was added.
24
+ # The domain was created.
25
25
  field :domain_schema, T.nilable(::OpenApiSDK::Shared::DomainSchema)
26
26
  # 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.
27
27
  field :forbidden, T.nilable(::OpenApiSDK::Shared::Forbidden)
@@ -21,6 +21,8 @@ module OpenApiSDK
21
21
  field :comments, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('comments') } }
22
22
  # The description of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
23
23
  field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
24
+ # Allow search engines to index your short link. Defaults to `false` if not provided. Learn more: https://d.to/noindex
25
+ field :do_index, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('doIndex') } }
24
26
  # The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
25
27
  field :domain, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
26
28
  # The URL to redirect to when the short link has expired.
@@ -61,13 +63,14 @@ module OpenApiSDK
61
63
  field :track_conversion, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('trackConversion') } }
62
64
 
63
65
 
64
- sig { params(url: ::String, android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), domain: T.nilable(::String), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), key: T.nilable(::String), password: T.nilable(::String), prefix: 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)).void }
65
- def initialize(url: nil, android: nil, archived: nil, comments: nil, description: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, image: nil, ios: nil, key: nil, password: nil, prefix: nil, proxy: nil, public_stats: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, title: nil, track_conversion: nil)
66
+ sig { params(url: ::String, android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), domain: T.nilable(::String), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), key: T.nilable(::String), password: T.nilable(::String), prefix: 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)).void }
67
+ def initialize(url: nil, android: nil, archived: nil, comments: nil, description: nil, do_index: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, image: nil, ios: nil, key: nil, password: nil, prefix: nil, proxy: nil, public_stats: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, title: nil, track_conversion: nil)
66
68
  @url = url
67
69
  @android = android
68
70
  @archived = archived
69
71
  @comments = comments
70
72
  @description = description
73
+ @do_index = do_index
71
74
  @domain = domain
72
75
  @expired_url = expired_url
73
76
  @expires_at = expires_at
@@ -21,6 +21,8 @@ module OpenApiSDK
21
21
  field :comments, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('comments') } }
22
22
  # The description of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
23
23
  field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
24
+ # Allow search engines to index your short link. Defaults to `false` if not provided. Learn more: https://d.to/noindex
25
+ field :do_index, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('doIndex') } }
24
26
  # The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
25
27
  field :domain, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
26
28
  # The URL to redirect to when the short link has expired.
@@ -61,13 +63,14 @@ module OpenApiSDK
61
63
  field :track_conversion, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('trackConversion') } }
62
64
 
63
65
 
64
- sig { params(url: ::String, android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), domain: T.nilable(::String), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), key: T.nilable(::String), password: T.nilable(::String), prefix: 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)).void }
65
- def initialize(url: nil, android: nil, archived: nil, comments: nil, description: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, image: nil, ios: nil, key: nil, password: nil, prefix: nil, proxy: nil, public_stats: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, title: nil, track_conversion: nil)
66
+ sig { params(url: ::String, android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), domain: T.nilable(::String), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), key: T.nilable(::String), password: T.nilable(::String), prefix: 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)).void }
67
+ def initialize(url: nil, android: nil, archived: nil, comments: nil, description: nil, do_index: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, image: nil, ios: nil, key: nil, password: nil, prefix: nil, proxy: nil, public_stats: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, title: nil, track_conversion: nil)
66
68
  @url = url
67
69
  @android = android
68
70
  @archived = archived
69
71
  @comments = comments
70
72
  @description = description
73
+ @do_index = do_index
71
74
  @domain = domain
72
75
  @expired_url = expired_url
73
76
  @expires_at = expires_at
@@ -15,27 +15,18 @@ module OpenApiSDK
15
15
  field :archived, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('archived') } }
16
16
  # Redirect users to a specific URL when any link under this domain has expired.
17
17
  field :expired_url, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiredUrl') } }
18
- # Prevent search engines from indexing the domain. Defaults to `false`.
19
- field :noindex, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('noindex') } }
20
18
  # Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.
21
19
  field :placeholder, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('placeholder') } }
22
20
  # Name of the domain.
23
21
  field :slug, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('slug') } }
24
- # The page your users will get redirected to when they visit your domain.
25
- field :target, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('target') } }
26
- # The type of redirect to use for this domain.
27
- field :type, T.nilable(::OpenApiSDK::Operations::UpdateDomainType), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Operations::UpdateDomainType, true) } }
28
22
 
29
23
 
30
- sig { params(archived: T.nilable(T::Boolean), expired_url: T.nilable(::String), noindex: T.nilable(T::Boolean), placeholder: T.nilable(::String), slug: T.nilable(::String), target: T.nilable(::String), type: T.nilable(::OpenApiSDK::Operations::UpdateDomainType)).void }
31
- def initialize(archived: nil, expired_url: nil, noindex: nil, placeholder: nil, slug: nil, target: nil, type: nil)
24
+ sig { params(archived: T.nilable(T::Boolean), expired_url: T.nilable(::String), placeholder: T.nilable(::String), slug: T.nilable(::String)).void }
25
+ def initialize(archived: nil, expired_url: nil, placeholder: nil, slug: nil)
32
26
  @archived = archived
33
27
  @expired_url = expired_url
34
- @noindex = noindex
35
28
  @placeholder = placeholder
36
29
  @slug = slug
37
- @target = target
38
- @type = type
39
30
  end
40
31
  end
41
32
  end
@@ -21,6 +21,8 @@ module OpenApiSDK
21
21
  field :comments, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('comments') } }
22
22
  # The description of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
23
23
  field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
24
+ # Allow search engines to index your short link. Defaults to `false` if not provided. Learn more: https://d.to/noindex
25
+ field :do_index, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('doIndex') } }
24
26
  # The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
25
27
  field :domain, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
26
28
  # The URL to redirect to when the short link has expired.
@@ -61,13 +63,14 @@ module OpenApiSDK
61
63
  field :track_conversion, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('trackConversion') } }
62
64
 
63
65
 
64
- sig { params(url: ::String, android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), domain: T.nilable(::String), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), key: T.nilable(::String), password: T.nilable(::String), prefix: 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)).void }
65
- def initialize(url: nil, android: nil, archived: nil, comments: nil, description: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, image: nil, ios: nil, key: nil, password: nil, prefix: nil, proxy: nil, public_stats: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, title: nil, track_conversion: nil)
66
+ sig { params(url: ::String, android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), domain: T.nilable(::String), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), key: T.nilable(::String), password: T.nilable(::String), prefix: 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)).void }
67
+ def initialize(url: nil, android: nil, archived: nil, comments: nil, description: nil, do_index: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, image: nil, ios: nil, key: nil, password: nil, prefix: nil, proxy: nil, public_stats: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, title: nil, track_conversion: nil)
66
68
  @url = url
67
69
  @android = android
68
70
  @archived = archived
69
71
  @comments = comments
70
72
  @description = description
73
+ @do_index = do_index
71
74
  @domain = domain
72
75
  @expired_url = expired_url
73
76
  @expires_at = expires_at
@@ -21,6 +21,8 @@ module OpenApiSDK
21
21
  field :comments, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('comments') } }
22
22
  # The description of the short link generated via `api.dub.co/metatags`. Will be used for Custom Social Media Cards if `proxy` is true.
23
23
  field :description, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('description') } }
24
+ # Allow search engines to index your short link. Defaults to `false` if not provided. Learn more: https://d.to/noindex
25
+ field :do_index, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('doIndex') } }
24
26
  # The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
25
27
  field :domain, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
26
28
  # The URL to redirect to when the short link has expired.
@@ -61,13 +63,14 @@ module OpenApiSDK
61
63
  field :track_conversion, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('trackConversion') } }
62
64
 
63
65
 
64
- sig { params(url: ::String, android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), domain: T.nilable(::String), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), key: T.nilable(::String), password: T.nilable(::String), prefix: 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)).void }
65
- def initialize(url: nil, android: nil, archived: nil, comments: nil, description: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, image: nil, ios: nil, key: nil, password: nil, prefix: nil, proxy: nil, public_stats: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, title: nil, track_conversion: nil)
66
+ sig { params(url: ::String, android: T.nilable(::String), archived: T.nilable(T::Boolean), comments: T.nilable(::String), description: T.nilable(::String), do_index: T.nilable(T::Boolean), domain: T.nilable(::String), expired_url: T.nilable(::String), expires_at: T.nilable(::String), external_id: T.nilable(::String), geo: T.nilable(::OpenApiSDK::Shared::LinkGeoTargeting), image: T.nilable(::String), ios: T.nilable(::String), key: T.nilable(::String), password: T.nilable(::String), prefix: 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)).void }
67
+ def initialize(url: nil, android: nil, archived: nil, comments: nil, description: nil, do_index: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, image: nil, ios: nil, key: nil, password: nil, prefix: nil, proxy: nil, public_stats: nil, rewrite: nil, tag_id: nil, tag_ids: nil, tag_names: nil, title: nil, track_conversion: nil)
66
68
  @url = url
67
69
  @android = android
68
70
  @archived = archived
69
71
  @comments = comments
70
72
  @description = description
73
+ @do_index = do_index
71
74
  @domain = domain
72
75
  @expired_url = expired_url
73
76
  @expires_at = expires_at
@@ -48,14 +48,12 @@ module OpenApiSDK
48
48
  autoload :CreateTagResponse, 'open_api_sdk/models/operations/createtag_response.rb'
49
49
  autoload :ListDomainsRequest, 'open_api_sdk/models/operations/listdomains_request.rb'
50
50
  autoload :ListDomainsResponse, 'open_api_sdk/models/operations/listdomains_response.rb'
51
- autoload :Type, 'open_api_sdk/models/operations/type.rb'
52
- autoload :AddDomainRequestBody, 'open_api_sdk/models/operations/adddomain_requestbody.rb'
53
- autoload :AddDomainRequest, 'open_api_sdk/models/operations/adddomain_request.rb'
54
- autoload :AddDomainResponse, 'open_api_sdk/models/operations/adddomain_response.rb'
51
+ autoload :CreateDomainRequestBody, 'open_api_sdk/models/operations/createdomain_requestbody.rb'
52
+ autoload :CreateDomainRequest, 'open_api_sdk/models/operations/createdomain_request.rb'
53
+ autoload :CreateDomainResponse, 'open_api_sdk/models/operations/createdomain_response.rb'
55
54
  autoload :DeleteDomainRequest, 'open_api_sdk/models/operations/deletedomain_request.rb'
56
55
  autoload :DeleteDomainResponseBody, 'open_api_sdk/models/operations/deletedomain_responsebody.rb'
57
56
  autoload :DeleteDomainResponse, 'open_api_sdk/models/operations/deletedomain_response.rb'
58
- autoload :UpdateDomainType, 'open_api_sdk/models/operations/updatedomain_type.rb'
59
57
  autoload :UpdateDomainRequestBody, 'open_api_sdk/models/operations/updatedomain_requestbody.rb'
60
58
  autoload :UpdateDomainRequest, 'open_api_sdk/models/operations/updatedomain_request.rb'
61
59
  autoload :UpdateDomainResponse, 'open_api_sdk/models/operations/updatedomain_response.rb'
@@ -13,40 +13,34 @@ module OpenApiSDK
13
13
 
14
14
  # Whether the domain is archived.
15
15
  field :archived, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('archived') } }
16
- # The number of clicks on the domain.
17
- field :clicks, ::Float, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('clicks') } }
16
+ # The date the domain was created.
17
+ field :created_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('createdAt') } }
18
18
  # The URL to redirect to when a link under this domain has expired.
19
19
  field :expired_url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expiredUrl') } }
20
20
  # The unique identifier of the domain.
21
21
  field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
22
- # Prevent search engines from indexing the domain.
23
- field :noindex, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('noindex') } }
24
22
  # Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.
25
23
  field :placeholder, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('placeholder') } }
26
24
  # Whether the domain is the primary domain for the workspace.
27
25
  field :primary, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('primary') } }
28
26
  # The domain name.
29
27
  field :slug, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('slug') } }
30
- # The page your users will get redirected to when they visit your domain.
31
- field :target, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('target') } }
32
- # The type of redirect to use for this domain.
33
- field :type, ::OpenApiSDK::Shared::Type, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('type'), 'decoder': Utils.enum_from_string(::OpenApiSDK::Shared::Type, false) } }
28
+ # The date the domain was last updated.
29
+ field :updated_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('updatedAt') } }
34
30
  # Whether the domain is verified.
35
31
  field :verified, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('verified') } }
36
32
 
37
33
 
38
- sig { params(archived: T::Boolean, clicks: ::Float, expired_url: ::String, id: ::String, noindex: T::Boolean, placeholder: ::String, primary: T::Boolean, slug: ::String, target: ::String, type: ::OpenApiSDK::Shared::Type, verified: T::Boolean).void }
39
- def initialize(archived: nil, clicks: nil, expired_url: nil, id: nil, noindex: nil, placeholder: nil, primary: nil, slug: nil, target: nil, type: nil, verified: nil)
34
+ sig { params(archived: T::Boolean, created_at: ::String, expired_url: ::String, id: ::String, placeholder: ::String, primary: T::Boolean, slug: ::String, updated_at: ::String, verified: T::Boolean).void }
35
+ def initialize(archived: nil, created_at: nil, expired_url: nil, id: nil, placeholder: nil, primary: nil, slug: nil, updated_at: nil, verified: nil)
40
36
  @archived = archived
41
- @clicks = clicks
37
+ @created_at = created_at
42
38
  @expired_url = expired_url
43
39
  @id = id
44
- @noindex = noindex
45
40
  @placeholder = placeholder
46
41
  @primary = primary
47
42
  @slug = slug
48
- @target = target
49
- @type = type
43
+ @updated_at = updated_at
50
44
  @verified = verified
51
45
  end
52
46
  end
@@ -23,6 +23,8 @@ module OpenApiSDK
23
23
  field :created_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('createdAt') } }
24
24
  # The description of the short link generated via `api.dub.co/metatags`. 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
+ # Whether to allow search engines to index the short link.
27
+ field :do_index, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('doIndex') } }
26
28
  # The domain of the short link. If not provided, the primary domain for the workspace will be used (or `dub.sh` if the workspace has no domains).
27
29
  field :domain, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('domain') } }
28
30
  # The URL to redirect to when the short link has expired.
@@ -93,14 +95,15 @@ module OpenApiSDK
93
95
  field :workspace_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('workspaceId') } }
94
96
 
95
97
 
96
- sig { params(android: ::String, archived: T::Boolean, clicks: ::Float, comments: ::String, created_at: ::String, description: ::String, 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 }
97
- def initialize(android: nil, archived: nil, clicks: nil, comments: nil, created_at: nil, description: nil, domain: nil, expired_url: nil, expires_at: nil, external_id: nil, geo: nil, id: nil, image: nil, ios: nil, key: nil, last_clicked: nil, leads: nil, password: nil, project_id: nil, 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)
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)
98
100
  @android = android
99
101
  @archived = archived
100
102
  @clicks = clicks
101
103
  @comments = comments
102
104
  @created_at = created_at
103
105
  @description = description
106
+ @do_index = do_index
104
107
  @domain = domain
105
108
  @expired_url = expired_url
106
109
  @expires_at = expires_at
@@ -43,7 +43,6 @@ module OpenApiSDK
43
43
  autoload :Users, 'open_api_sdk/models/shared/users.rb'
44
44
  autoload :Domains, 'open_api_sdk/models/shared/domains.rb'
45
45
  autoload :WorkspaceSchema, 'open_api_sdk/models/shared/workspaceschema.rb'
46
- autoload :Type, 'open_api_sdk/models/shared/type.rb'
47
46
  autoload :DomainSchema, 'open_api_sdk/models/shared/domainschema.rb'
48
47
  autoload :Security, 'open_api_sdk/models/shared/security.rb'
49
48
  end
@@ -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.0.5'
44
- @gen_version = '2.339.1'
45
- @user_agent = 'speakeasy-sdk/ruby 0.0.5 2.339.1 0.0.1 dub'
43
+ @sdk_version = '0.0.6'
44
+ @gen_version = '2.354.2'
45
+ @user_agent = 'speakeasy-sdk/ruby 0.0.6 2.354.2 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.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-10 00:00:00.000000000 Z
11
+ date: 2024-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -149,12 +149,12 @@ files:
149
149
  - lib/open_api_sdk/links.rb
150
150
  - lib/open_api_sdk/metatags.rb
151
151
  - lib/open_api_sdk/models/operations.rb
152
- - lib/open_api_sdk/models/operations/adddomain_request.rb
153
- - lib/open_api_sdk/models/operations/adddomain_requestbody.rb
154
- - lib/open_api_sdk/models/operations/adddomain_response.rb
155
152
  - lib/open_api_sdk/models/operations/bulkcreatelinks_request.rb
156
153
  - lib/open_api_sdk/models/operations/bulkcreatelinks_response.rb
157
154
  - lib/open_api_sdk/models/operations/color.rb
155
+ - lib/open_api_sdk/models/operations/createdomain_request.rb
156
+ - lib/open_api_sdk/models/operations/createdomain_requestbody.rb
157
+ - lib/open_api_sdk/models/operations/createdomain_response.rb
158
158
  - lib/open_api_sdk/models/operations/createlink_request.rb
159
159
  - lib/open_api_sdk/models/operations/createlink_requestbody.rb
160
160
  - lib/open_api_sdk/models/operations/createlink_response.rb
@@ -213,11 +213,9 @@ files:
213
213
  - lib/open_api_sdk/models/operations/transferdomain_request.rb
214
214
  - lib/open_api_sdk/models/operations/transferdomain_requestbody.rb
215
215
  - lib/open_api_sdk/models/operations/transferdomain_response.rb
216
- - lib/open_api_sdk/models/operations/type.rb
217
216
  - lib/open_api_sdk/models/operations/updatedomain_request.rb
218
217
  - lib/open_api_sdk/models/operations/updatedomain_requestbody.rb
219
218
  - lib/open_api_sdk/models/operations/updatedomain_response.rb
220
- - lib/open_api_sdk/models/operations/updatedomain_type.rb
221
219
  - lib/open_api_sdk/models/operations/updatelink_request.rb
222
220
  - lib/open_api_sdk/models/operations/updatelink_requestbody.rb
223
221
  - lib/open_api_sdk/models/operations/updatelink_response.rb
@@ -257,7 +255,6 @@ files:
257
255
  - lib/open_api_sdk/models/shared/role.rb
258
256
  - lib/open_api_sdk/models/shared/security.rb
259
257
  - lib/open_api_sdk/models/shared/tagschema.rb
260
- - lib/open_api_sdk/models/shared/type.rb
261
258
  - lib/open_api_sdk/models/shared/unauthorized.rb
262
259
  - lib/open_api_sdk/models/shared/unauthorized_code.rb
263
260
  - lib/open_api_sdk/models/shared/unauthorized_error.rb
@@ -1,19 +0,0 @@
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
- # Type - The type of redirect to use for this domain.
11
- class Type < T::Enum
12
- enums do
13
- REDIRECT = new('redirect')
14
- REWRITE = new('rewrite')
15
- end
16
- end
17
-
18
- end
19
- end
@@ -1,19 +0,0 @@
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
- # UpdateDomainType - The type of redirect to use for this domain.
11
- class UpdateDomainType < T::Enum
12
- enums do
13
- REDIRECT = new('redirect')
14
- REWRITE = new('rewrite')
15
- end
16
- end
17
-
18
- end
19
- end
@@ -1,19 +0,0 @@
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 Shared
9
-
10
- # Type - The type of redirect to use for this domain.
11
- class Type < T::Enum
12
- enums do
13
- REDIRECT = new('redirect')
14
- REWRITE = new('rewrite')
15
- end
16
- end
17
-
18
- end
19
- end