dub 0.2.2.pre.alpha.40 → 0.2.2.pre.alpha.42

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: 27fa989667872225aeb6e44ed3c3cb8ab7bbf8b630780fb1b00ea062e972d45a
4
- data.tar.gz: 71b20cbc9df5130f3a5d1bb312c35c7e07cc51044e6d54638e4109a42bc7eacd
3
+ metadata.gz: f7a3dd10b7bacc03582dd46fa092e9c88d577f92adba0e7041f727fff1e46840
4
+ data.tar.gz: 44fe07a957c3d5147e328a41ad1a8cd3651717b4309ed0c97565069a2a1917db
5
5
  SHA512:
6
- metadata.gz: 925b5a6026b3b429edf24873bc52cb8f6cc2396f3f818b1e4e71fe83e54d5061a9db0270fd067f12dc7aa77be890f5f522b8e9ff8e73dd2b365926a5ca8e2cb6
7
- data.tar.gz: 8ca66253a800c9a00f2a2a19330b28dce2711bff95079176cd0285036382cf4a3f8df45ee2670b2b83445178276dbdb7a1237b1dccc10ec6d85bed65c930a72a
6
+ metadata.gz: 4cd8e2632a718d6e4715fc297f3ffc00e67cd6cac36919e4bb5a2207afd167038f8e25d460236860d8c3b9b689f6bd5966b30a1ec8661d41275290e6e69259bf
7
+ data.tar.gz: e0cf1121ba4ce44291f3d68fe575fc68ccec92c75987488038ae7be83d9572cfebdb7a637386c05b9dacd44f4db6b4f13cb5f2972479d216880d9deacae0925d
data/lib/dub.rb CHANGED
@@ -15,6 +15,7 @@ module OpenApiSDK
15
15
  autoload :Track, 'open_api_sdk/track'
16
16
  autoload :Customers, 'open_api_sdk/customers'
17
17
  autoload :Workspaces, 'open_api_sdk/workspaces'
18
+ autoload :EmbedTokens, 'open_api_sdk/embed_tokens'
18
19
  autoload :QRCodes, 'open_api_sdk/qr_codes'
19
20
  autoload :Metatags, 'open_api_sdk/metatags'
20
21
  end
@@ -93,6 +93,7 @@ module OpenApiSDK
93
93
  res.internal_server_error = out
94
94
  end
95
95
  end
96
+
96
97
  res
97
98
  end
98
99
  end
@@ -91,6 +91,7 @@ module OpenApiSDK
91
91
  res.internal_server_error = out
92
92
  end
93
93
  end
94
+
94
95
  res
95
96
  end
96
97
 
@@ -176,6 +177,7 @@ module OpenApiSDK
176
177
  res.internal_server_error = out
177
178
  end
178
179
  end
180
+
179
181
  res
180
182
  end
181
183
 
@@ -257,6 +259,7 @@ module OpenApiSDK
257
259
  res.internal_server_error = out
258
260
  end
259
261
  end
262
+
260
263
  res
261
264
  end
262
265
 
@@ -347,6 +350,7 @@ module OpenApiSDK
347
350
  res.internal_server_error = out
348
351
  end
349
352
  end
353
+
350
354
  res
351
355
  end
352
356
 
@@ -428,6 +432,7 @@ module OpenApiSDK
428
432
  res.internal_server_error = out
429
433
  end
430
434
  end
435
+
431
436
  res
432
437
  end
433
438
  end
@@ -100,6 +100,7 @@ module OpenApiSDK
100
100
  res.internal_server_error = out
101
101
  end
102
102
  end
103
+
103
104
  res
104
105
  end
105
106
 
@@ -178,6 +179,7 @@ module OpenApiSDK
178
179
  res.internal_server_error = out
179
180
  end
180
181
  end
182
+
181
183
  res
182
184
  end
183
185
 
@@ -268,6 +270,7 @@ module OpenApiSDK
268
270
  res.internal_server_error = out
269
271
  end
270
272
  end
273
+
271
274
  res
272
275
  end
273
276
 
@@ -349,6 +352,7 @@ module OpenApiSDK
349
352
  res.internal_server_error = out
350
353
  end
351
354
  end
355
+
352
356
  res
353
357
  end
354
358
  end
@@ -13,7 +13,7 @@ module OpenApiSDK
13
13
  class Dub
14
14
  extend T::Sig
15
15
 
16
- attr_accessor :links, :analytics, :events, :tags, :domains, :track, :customers, :workspaces, :qr_codes, :metatags
16
+ attr_accessor :links, :analytics, :events, :tags, :domains, :track, :customers, :workspaces, :embed_tokens, :qr_codes, :metatags
17
17
 
18
18
  sig do
19
19
  params(client: Faraday::Request,
@@ -83,6 +83,7 @@ module OpenApiSDK
83
83
  @track = Track.new(@sdk_configuration)
84
84
  @customers = Customers.new(@sdk_configuration)
85
85
  @workspaces = Workspaces.new(@sdk_configuration)
86
+ @embed_tokens = EmbedTokens.new(@sdk_configuration)
86
87
  @qr_codes = QRCodes.new(@sdk_configuration)
87
88
  @metatags = Metatags.new(@sdk_configuration)
88
89
  end
@@ -0,0 +1,107 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+ require 'faraday'
7
+ require 'faraday/multipart'
8
+ require 'sorbet-runtime'
9
+
10
+ module OpenApiSDK
11
+ extend T::Sig
12
+ class EmbedTokens
13
+ extend T::Sig
14
+
15
+
16
+ sig { params(sdk_config: SDKConfiguration).void }
17
+ def initialize(sdk_config)
18
+ @sdk_configuration = sdk_config
19
+ end
20
+
21
+
22
+ sig { params(request: T.nilable(::OpenApiSDK::Operations::CreateEmbedTokenRequestBody)).returns(::OpenApiSDK::Operations::CreateEmbedTokenResponse) }
23
+ def create(request)
24
+ # create - Create a new embed token
25
+ # Create a new embed token for the referral link.
26
+ url, params = @sdk_configuration.get_server_details
27
+ base_url = Utils.template_url(url, params)
28
+ url = "#{base_url}/tokens/embed"
29
+ headers = {}
30
+ req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
31
+ headers['content-type'] = req_content_type
32
+ headers['Accept'] = 'application/json'
33
+ headers['user-agent'] = @sdk_configuration.user_agent
34
+
35
+ r = @sdk_configuration.client.post(url) do |req|
36
+ req.headers = headers
37
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
38
+ if form
39
+ req.body = Utils.encode_form(form)
40
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
41
+ req.body = URI.encode_www_form(data)
42
+ else
43
+ req.body = data
44
+ end
45
+ end
46
+
47
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
48
+
49
+ res = ::OpenApiSDK::Operations::CreateEmbedTokenResponse.new(
50
+ status_code: r.status, content_type: content_type, raw_response: r
51
+ )
52
+ if r.status == 201
53
+ if Utils.match_content_type(content_type, 'application/json')
54
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::CreateEmbedTokenResponseBody)
55
+ res.object = out
56
+ end
57
+ elsif r.status == 400
58
+ if Utils.match_content_type(content_type, 'application/json')
59
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
60
+ res.bad_request = out
61
+ end
62
+ elsif r.status == 401
63
+ if Utils.match_content_type(content_type, 'application/json')
64
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
65
+ res.unauthorized = out
66
+ end
67
+ elsif r.status == 403
68
+ if Utils.match_content_type(content_type, 'application/json')
69
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
70
+ res.forbidden = out
71
+ end
72
+ elsif r.status == 404
73
+ if Utils.match_content_type(content_type, 'application/json')
74
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
75
+ res.not_found = out
76
+ end
77
+ elsif r.status == 409
78
+ if Utils.match_content_type(content_type, 'application/json')
79
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
80
+ res.conflict = out
81
+ end
82
+ elsif r.status == 410
83
+ if Utils.match_content_type(content_type, 'application/json')
84
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
85
+ res.invite_expired = out
86
+ end
87
+ elsif r.status == 422
88
+ if Utils.match_content_type(content_type, 'application/json')
89
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
90
+ res.unprocessable_entity = out
91
+ end
92
+ elsif r.status == 429
93
+ if Utils.match_content_type(content_type, 'application/json')
94
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
95
+ res.rate_limit_exceeded = out
96
+ end
97
+ elsif r.status == 500
98
+ if Utils.match_content_type(content_type, 'application/json')
99
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
100
+ res.internal_server_error = out
101
+ end
102
+ end
103
+
104
+ res
105
+ end
106
+ end
107
+ end
@@ -93,6 +93,7 @@ module OpenApiSDK
93
93
  res.internal_server_error = out
94
94
  end
95
95
  end
96
+
96
97
  res
97
98
  end
98
99
  end
@@ -100,6 +100,7 @@ module OpenApiSDK
100
100
  res.internal_server_error = out
101
101
  end
102
102
  end
103
+
103
104
  res
104
105
  end
105
106
 
@@ -178,6 +179,7 @@ module OpenApiSDK
178
179
  res.internal_server_error = out
179
180
  end
180
181
  end
182
+
181
183
  res
182
184
  end
183
185
 
@@ -256,6 +258,7 @@ module OpenApiSDK
256
258
  res.internal_server_error = out
257
259
  end
258
260
  end
261
+
259
262
  res
260
263
  end
261
264
 
@@ -334,6 +337,7 @@ module OpenApiSDK
334
337
  res.internal_server_error = out
335
338
  end
336
339
  end
340
+
337
341
  res
338
342
  end
339
343
 
@@ -424,6 +428,7 @@ module OpenApiSDK
424
428
  res.internal_server_error = out
425
429
  end
426
430
  end
431
+
427
432
  res
428
433
  end
429
434
 
@@ -505,6 +510,7 @@ module OpenApiSDK
505
510
  res.internal_server_error = out
506
511
  end
507
512
  end
513
+
508
514
  res
509
515
  end
510
516
 
@@ -590,6 +596,7 @@ module OpenApiSDK
590
596
  res.internal_server_error = out
591
597
  end
592
598
  end
599
+
593
600
  res
594
601
  end
595
602
 
@@ -675,6 +682,7 @@ module OpenApiSDK
675
682
  res.internal_server_error = out
676
683
  end
677
684
  end
685
+
678
686
  res
679
687
  end
680
688
 
@@ -753,6 +761,7 @@ module OpenApiSDK
753
761
  res.internal_server_error = out
754
762
  end
755
763
  end
764
+
756
765
  res
757
766
  end
758
767
 
@@ -838,6 +847,7 @@ module OpenApiSDK
838
847
  res.internal_server_error = out
839
848
  end
840
849
  end
850
+
841
851
  res
842
852
  end
843
853
  end
@@ -48,6 +48,7 @@ module OpenApiSDK
48
48
  res.object = out
49
49
  end
50
50
  end
51
+
51
52
  res
52
53
  end
53
54
  end
@@ -17,17 +17,20 @@ 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
+ # The logo of the domain.
21
+ field :logo, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('logo') } }
20
22
  # Redirect users to a specific URL when a link under this domain doesn't exist.
21
23
  field :not_found_url, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('notFoundUrl') } }
22
24
  # Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.
23
25
  field :placeholder, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('placeholder') } }
24
26
 
25
27
 
26
- sig { params(slug: ::String, archived: T.nilable(T::Boolean), expired_url: T.nilable(::String), not_found_url: T.nilable(::String), placeholder: T.nilable(::String)).void }
27
- def initialize(slug: nil, archived: nil, expired_url: nil, not_found_url: nil, placeholder: nil)
28
+ sig { params(slug: ::String, archived: T.nilable(T::Boolean), expired_url: T.nilable(::String), logo: T.nilable(::String), not_found_url: T.nilable(::String), placeholder: T.nilable(::String)).void }
29
+ def initialize(slug: nil, archived: nil, expired_url: nil, logo: nil, not_found_url: nil, placeholder: nil)
28
30
  @slug = slug
29
31
  @archived = archived
30
32
  @expired_url = expired_url
33
+ @logo = logo
31
34
  @not_found_url = not_found_url
32
35
  @placeholder = placeholder
33
36
  end
@@ -0,0 +1,24 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module OpenApiSDK
8
+ module Operations
9
+
10
+
11
+ class CreateEmbedTokenRequestBody < ::OpenApiSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :link_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('linkId') } }
16
+
17
+
18
+ sig { params(link_id: ::String).void }
19
+ def initialize(link_id: nil)
20
+ @link_id = link_id
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,60 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module OpenApiSDK
8
+ module Operations
9
+
10
+
11
+ class CreateEmbedTokenResponse < ::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 server cannot find the requested resource.
31
+ field :not_found, T.nilable(::OpenApiSDK::Shared::NotFound)
32
+ # The created public embed token.
33
+ field :object, T.nilable(::OpenApiSDK::Operations::CreateEmbedTokenResponseBody)
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), not_found: T.nilable(::OpenApiSDK::Shared::NotFound), object: T.nilable(::OpenApiSDK::Operations::CreateEmbedTokenResponseBody), 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, not_found: nil, object: 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
+ @not_found = not_found
53
+ @object = object
54
+ @rate_limit_exceeded = rate_limit_exceeded
55
+ @unauthorized = unauthorized
56
+ @unprocessable_entity = unprocessable_entity
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,27 @@
1
+ # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
2
+
3
+ # typed: true
4
+ # frozen_string_literal: true
5
+
6
+
7
+ module OpenApiSDK
8
+ module Operations
9
+
10
+ # The created public embed token.
11
+ class CreateEmbedTokenResponseBody < ::OpenApiSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+
15
+ field :expires, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('expires') } }
16
+
17
+ field :public_token, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('publicToken') } }
18
+
19
+
20
+ sig { params(expires: ::String, public_token: ::String).void }
21
+ def initialize(expires: nil, public_token: nil)
22
+ @expires = expires
23
+ @public_token = public_token
24
+ end
25
+ end
26
+ end
27
+ end
@@ -15,6 +15,8 @@ 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
+ # The logo of the domain.
19
+ field :logo, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('logo') } }
18
20
  # Redirect users to a specific URL when a link under this domain doesn't exist.
19
21
  field :not_found_url, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('notFoundUrl') } }
20
22
  # Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.
@@ -23,10 +25,11 @@ module OpenApiSDK
23
25
  field :slug, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('slug') } }
24
26
 
25
27
 
26
- sig { params(archived: T.nilable(T::Boolean), expired_url: T.nilable(::String), not_found_url: T.nilable(::String), placeholder: T.nilable(::String), slug: T.nilable(::String)).void }
27
- def initialize(archived: nil, expired_url: nil, not_found_url: nil, placeholder: nil, slug: nil)
28
+ sig { params(archived: T.nilable(T::Boolean), expired_url: T.nilable(::String), logo: T.nilable(::String), not_found_url: T.nilable(::String), placeholder: T.nilable(::String), slug: T.nilable(::String)).void }
29
+ def initialize(archived: nil, expired_url: nil, logo: nil, not_found_url: nil, placeholder: nil, slug: nil)
28
30
  @archived = archived
29
31
  @expired_url = expired_url
32
+ @logo = logo
30
33
  @not_found_url = not_found_url
31
34
  @placeholder = placeholder
32
35
  @slug = slug
@@ -12,13 +12,16 @@ module OpenApiSDK
12
12
  extend T::Sig
13
13
 
14
14
 
15
+ field :logo, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('logo') } }
16
+
15
17
  field :name, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
16
18
 
17
19
  field :slug, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('slug') } }
18
20
 
19
21
 
20
- sig { params(name: T.nilable(::String), slug: T.nilable(::String)).void }
21
- def initialize(name: nil, slug: nil)
22
+ sig { params(logo: T.nilable(::String), name: T.nilable(::String), slug: T.nilable(::String)).void }
23
+ def initialize(logo: nil, name: nil, slug: nil)
24
+ @logo = logo
22
25
  @name = name
23
26
  @slug = slug
24
27
  end
@@ -98,6 +98,9 @@ module OpenApiSDK
98
98
  autoload :UpdateWorkspaceRequestBody, 'open_api_sdk/models/operations/updateworkspace_requestbody.rb'
99
99
  autoload :UpdateWorkspaceRequest, 'open_api_sdk/models/operations/updateworkspace_request.rb'
100
100
  autoload :UpdateWorkspaceResponse, 'open_api_sdk/models/operations/updateworkspace_response.rb'
101
+ autoload :CreateEmbedTokenRequestBody, 'open_api_sdk/models/operations/createembedtoken_requestbody.rb'
102
+ autoload :CreateEmbedTokenResponseBody, 'open_api_sdk/models/operations/createembedtoken_responsebody.rb'
103
+ autoload :CreateEmbedTokenResponse, 'open_api_sdk/models/operations/createembedtoken_response.rb'
101
104
  autoload :Level, 'open_api_sdk/models/operations/level.rb'
102
105
  autoload :GetQRCodeRequest, 'open_api_sdk/models/operations/getqrcode_request.rb'
103
106
  autoload :GetQRCodeResponse, 'open_api_sdk/models/operations/getqrcode_response.rb'
@@ -19,6 +19,8 @@ module OpenApiSDK
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
+ # The logo of the domain.
23
+ field :logo, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('logo') } }
22
24
  # The URL to redirect to when a link under this domain doesn't exist.
23
25
  field :not_found_url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('notFoundUrl') } }
24
26
  # Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.
@@ -35,12 +37,13 @@ module OpenApiSDK
35
37
  field :verified, T::Boolean, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('verified') } }
36
38
 
37
39
 
38
- sig { params(archived: T::Boolean, created_at: ::String, expired_url: ::String, id: ::String, not_found_url: ::String, placeholder: ::String, primary: T::Boolean, registered_domain: ::OpenApiSDK::Shared::RegisteredDomain, slug: ::String, updated_at: ::String, verified: T::Boolean).void }
39
- def initialize(archived: nil, created_at: nil, expired_url: nil, id: nil, not_found_url: nil, placeholder: nil, primary: nil, registered_domain: nil, slug: nil, updated_at: nil, verified: nil)
40
+ sig { params(archived: T::Boolean, created_at: ::String, expired_url: ::String, id: ::String, logo: ::String, not_found_url: ::String, placeholder: ::String, primary: T::Boolean, registered_domain: ::OpenApiSDK::Shared::RegisteredDomain, slug: ::String, updated_at: ::String, verified: T::Boolean).void }
41
+ def initialize(archived: nil, created_at: nil, expired_url: nil, id: nil, logo: nil, not_found_url: nil, placeholder: nil, primary: nil, registered_domain: nil, slug: nil, updated_at: nil, verified: nil)
40
42
  @archived = archived
41
43
  @created_at = created_at
42
44
  @expired_url = expired_url
43
45
  @id = id
46
+ @logo = logo
44
47
  @not_found_url = not_found_url
45
48
  @placeholder = placeholder
46
49
  @primary = primary
@@ -44,7 +44,6 @@ 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
-
48
47
  elsif r.status == 400
49
48
  if Utils.match_content_type(content_type, 'application/json')
50
49
  out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
@@ -91,6 +90,7 @@ module OpenApiSDK
91
90
  res.internal_server_error = out
92
91
  end
93
92
  end
93
+
94
94
  res
95
95
  end
96
96
  end
@@ -38,9 +38,9 @@ module OpenApiSDK
38
38
  @security = security
39
39
  @language = 'ruby'
40
40
  @openapi_doc_version = '0.0.1'
41
- @sdk_version = '0.2.2-alpha.40'
42
- @gen_version = '2.466.0'
43
- @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.40 2.466.0 0.0.1 dub'
41
+ @sdk_version = '0.2.2-alpha.42'
42
+ @gen_version = '2.467.4'
43
+ @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.42 2.467.4 0.0.1 dub'
44
44
  end
45
45
 
46
46
  sig { returns([String, T::Hash[Symbol, String]]) }
@@ -100,6 +100,7 @@ module OpenApiSDK
100
100
  res.internal_server_error = out
101
101
  end
102
102
  end
103
+
103
104
  res
104
105
  end
105
106
 
@@ -176,6 +177,7 @@ module OpenApiSDK
176
177
  res.internal_server_error = out
177
178
  end
178
179
  end
180
+
179
181
  res
180
182
  end
181
183
 
@@ -266,6 +268,7 @@ module OpenApiSDK
266
268
  res.internal_server_error = out
267
269
  end
268
270
  end
271
+
269
272
  res
270
273
  end
271
274
 
@@ -347,6 +350,7 @@ module OpenApiSDK
347
350
  res.internal_server_error = out
348
351
  end
349
352
  end
353
+
350
354
  res
351
355
  end
352
356
  end
@@ -100,6 +100,7 @@ module OpenApiSDK
100
100
  res.internal_server_error = out
101
101
  end
102
102
  end
103
+
103
104
  res
104
105
  end
105
106
 
@@ -185,6 +186,7 @@ module OpenApiSDK
185
186
  res.internal_server_error = out
186
187
  end
187
188
  end
189
+
188
190
  res
189
191
  end
190
192
 
@@ -272,6 +274,7 @@ module OpenApiSDK
272
274
  res.internal_server_error = out
273
275
  end
274
276
  end
277
+
275
278
  res
276
279
  end
277
280
  end
@@ -96,6 +96,7 @@ module OpenApiSDK
96
96
  res.internal_server_error = out
97
97
  end
98
98
  end
99
+
99
100
  res
100
101
  end
101
102
 
@@ -186,6 +187,7 @@ module OpenApiSDK
186
187
  res.internal_server_error = out
187
188
  end
188
189
  end
190
+
189
191
  res
190
192
  end
191
193
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2.pre.alpha.40
4
+ version: 0.2.2.pre.alpha.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-27 00:00:00.000000000 Z
11
+ date: 2024-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -147,6 +147,7 @@ files:
147
147
  - lib/open_api_sdk/customers.rb
148
148
  - lib/open_api_sdk/domains.rb
149
149
  - lib/open_api_sdk/dub.rb
150
+ - lib/open_api_sdk/embed_tokens.rb
150
151
  - lib/open_api_sdk/events.rb
151
152
  - lib/open_api_sdk/links.rb
152
153
  - lib/open_api_sdk/metatags.rb
@@ -164,6 +165,9 @@ files:
164
165
  - lib/open_api_sdk/models/operations/createcustomer_responsebody.rb
165
166
  - lib/open_api_sdk/models/operations/createdomain_requestbody.rb
166
167
  - lib/open_api_sdk/models/operations/createdomain_response.rb
168
+ - lib/open_api_sdk/models/operations/createembedtoken_requestbody.rb
169
+ - lib/open_api_sdk/models/operations/createembedtoken_response.rb
170
+ - lib/open_api_sdk/models/operations/createembedtoken_responsebody.rb
167
171
  - lib/open_api_sdk/models/operations/createlink_requestbody.rb
168
172
  - lib/open_api_sdk/models/operations/createlink_response.rb
169
173
  - lib/open_api_sdk/models/operations/createtag_requestbody.rb