dub 0.2.2.pre.alpha.59 → 0.2.2.pre.alpha.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2cfde8a87a466f41432b0d4d1bb76e0068de82aa133c82047151dd42624a085
4
- data.tar.gz: 00f5f19a0e7fc54ce27c319a87194dd1e728e2f5789dc7640eb478869e93fa73
3
+ metadata.gz: 44081d1ebd3c2256f1a92129db2263cb64962d94e809691a0c5e9bf3289ed034
4
+ data.tar.gz: 3e75b504e802b928e6c042d4f24821d697d222ddd07ebf5a69a08bfcc1baacc0
5
5
  SHA512:
6
- metadata.gz: a47a8c28caed7e17c3d30317a1be327abba96f8d4ef0e108807867b7bb4add8c12f63c0d9b737a988285330dd85028e862f339a075d1571ae601e95aaa5d7a1d
7
- data.tar.gz: 229e535927c07f59002818d137b5161033d3a1962f3c1be890c797163b9cba82f5a9592076de353e8ca6848a8ea8ab4289e121a7b44e8c7f2dd058b7b4e775f4
6
+ metadata.gz: f818d866e17043b0ccbd1ce99fefba287a53f3ba79dbb8ca1833e7fbffa8b95942fece6636370d6251502cd89a6fa3f3e9bcd8d390a7892224484ac87d3696b9
7
+ data.tar.gz: 99980b966b3143afbe709dfc777f662780cfd6dc3f098e4defe4a97cb92152bd4fe19c902c9faffd9b8f911faa61b7d0d4044bb0cb5add9cdfff5aad9aacef87
@@ -0,0 +1,99 @@
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
+ # Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner.
11
+ class CreatePartnerLinkLinkProps < ::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. Defaults to `false` if not provided.
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 custom link preview description (og:description). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og
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
+ # The ID of the link in your database. If set, it can be used to identify the link in future API requests (must be prefixed with 'ext_' when passed as a query parameter). This key is unique across your workspace.
29
+ field :external_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('externalId') } }
30
+ # The custom link preview image (og:image). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og
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 ID of the partner the short link is associated with.
35
+ field :partner_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnerId') } }
36
+ # The password required to access the destination URL of the short link.
37
+ field :password, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('password') } }
38
+ # The prefix of the short link slug for randomly-generated keys (e.g. if prefix is `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key` is provided.
39
+ field :prefix, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('prefix') } }
40
+ # Whether the short link uses Custom Social Media Cards feature. Defaults to `false` if not provided.
41
+ field :proxy, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('proxy') } }
42
+ # The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL.
43
+ field :ref, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('ref') } }
44
+ # Whether the short link uses link cloaking. Defaults to `false` if not provided.
45
+ field :rewrite, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('rewrite') } }
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 ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant.
51
+ field :tenant_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tenantId') } }
52
+ # The custom link preview title (og:title). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og
53
+ field :title, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('title') } }
54
+ # The UTM campaign of the short link. If set, this will populate or override the UTM campaign in the destination URL.
55
+ field :utm_campaign, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_campaign') } }
56
+ # The UTM content of the short link. If set, this will populate or override the UTM content in the destination URL.
57
+ field :utm_content, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_content') } }
58
+ # The UTM medium of the short link. If set, this will populate or override the UTM medium in the destination URL.
59
+ field :utm_medium, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_medium') } }
60
+ # The UTM source of the short link. If set, this will populate or override the UTM source in the destination URL.
61
+ field :utm_source, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_source') } }
62
+ # The UTM term of the short link. If set, this will populate or override the UTM term in the destination URL.
63
+ field :utm_term, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('utm_term') } }
64
+ # The custom link preview video (og:video). Will be used for Custom Social Media Cards if `proxy` is true. Learn more: https://d.to/og
65
+ field :video, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('video') } }
66
+
67
+
68
+ 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), external_id: T.nilable(::String), image: T.nilable(::String), ios: T.nilable(::String), partner_id: T.nilable(::String), password: T.nilable(::String), prefix: T.nilable(::String), proxy: T.nilable(T::Boolean), ref: T.nilable(::String), rewrite: T.nilable(T::Boolean), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), tenant_id: T.nilable(::String), title: T.nilable(::String), utm_campaign: T.nilable(::String), utm_content: T.nilable(::String), utm_medium: T.nilable(::String), utm_source: T.nilable(::String), utm_term: T.nilable(::String), video: T.nilable(::String)).void }
69
+ def initialize(android: nil, archived: nil, comments: nil, description: nil, do_index: nil, expired_url: nil, expires_at: nil, external_id: nil, image: nil, ios: nil, partner_id: nil, password: nil, prefix: nil, proxy: nil, ref: nil, rewrite: nil, tag_ids: nil, tag_names: nil, tenant_id: nil, title: nil, utm_campaign: nil, utm_content: nil, utm_medium: nil, utm_source: nil, utm_term: nil, video: nil)
70
+ @android = android
71
+ @archived = archived
72
+ @comments = comments
73
+ @description = description
74
+ @do_index = do_index
75
+ @expired_url = expired_url
76
+ @expires_at = expires_at
77
+ @external_id = external_id
78
+ @image = image
79
+ @ios = ios
80
+ @partner_id = partner_id
81
+ @password = password
82
+ @prefix = prefix
83
+ @proxy = proxy
84
+ @ref = ref
85
+ @rewrite = rewrite
86
+ @tag_ids = tag_ids
87
+ @tag_names = tag_names
88
+ @tenant_id = tenant_id
89
+ @title = title
90
+ @utm_campaign = utm_campaign
91
+ @utm_content = utm_content
92
+ @utm_medium = utm_medium
93
+ @utm_source = utm_source
94
+ @utm_term = utm_term
95
+ @video = video
96
+ end
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,39 @@
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 CreatePartnerLinkRequestBody < ::OpenApiSDK::Utils::FieldAugmented
12
+ extend T::Sig
13
+
14
+ # The ID of the program that the partner is enrolled in.
15
+ field :program_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
16
+ # The URL to shorten. Will throw an error if the domain doesn't match the program's default URL domain.
17
+ field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
18
+ # The short link slug. If not provided, a random 7-character slug will be generated.
19
+ field :key, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }
20
+ # Additional properties that you can pass to the partner's short link. Will be used to override the default link properties for this partner.
21
+ field :link_props, T.nilable(::OpenApiSDK::Operations::CreatePartnerLinkLinkProps), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('linkProps') } }
22
+ # The ID of the partner to create a link for. Will take precedence over `tenantId` if provided.
23
+ field :partner_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partnerId') } }
24
+ # The ID of the partner in your system. If both `partnerId` and `tenantId` are not provided, an error will be thrown.
25
+ field :tenant_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('tenantId') } }
26
+
27
+
28
+ sig { params(program_id: ::String, url: ::String, key: T.nilable(::String), link_props: T.nilable(::OpenApiSDK::Operations::CreatePartnerLinkLinkProps), partner_id: T.nilable(::String), tenant_id: T.nilable(::String)).void }
29
+ def initialize(program_id: nil, url: nil, key: nil, link_props: nil, partner_id: nil, tenant_id: nil)
30
+ @program_id = program_id
31
+ @url = url
32
+ @key = key
33
+ @link_props = link_props
34
+ @partner_id = partner_id
35
+ @tenant_id = tenant_id
36
+ end
37
+ end
38
+ end
39
+ 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 CreatePartnerLinkResponse < ::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 created partner
31
+ field :link_schema, T.nilable(::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_schema: T.nilable(::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_schema: 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_schema = link_schema
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
@@ -127,6 +127,9 @@ module OpenApiSDK
127
127
  autoload :CreatePartnerDiscount, 'open_api_sdk/models/operations/createpartner_discount.rb'
128
128
  autoload :CreatePartnerResponseBody, 'open_api_sdk/models/operations/createpartner_responsebody.rb'
129
129
  autoload :CreatePartnerResponse, 'open_api_sdk/models/operations/createpartner_response.rb'
130
+ autoload :CreatePartnerLinkLinkProps, 'open_api_sdk/models/operations/createpartnerlink_linkprops.rb'
131
+ autoload :CreatePartnerLinkRequestBody, 'open_api_sdk/models/operations/createpartnerlink_requestbody.rb'
132
+ autoload :CreatePartnerLinkResponse, 'open_api_sdk/models/operations/createpartnerlink_response.rb'
130
133
  autoload :GetWorkspaceRequest, 'open_api_sdk/models/operations/getworkspace_request.rb'
131
134
  autoload :GetWorkspaceResponse, 'open_api_sdk/models/operations/getworkspace_response.rb'
132
135
  autoload :UpdateWorkspaceRequestBody, 'open_api_sdk/models/operations/updateworkspace_requestbody.rb'
@@ -34,13 +34,15 @@ module OpenApiSDK
34
34
 
35
35
  field :region, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('region') } }
36
36
 
37
+ field :timestamp, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('timestamp') } }
38
+
37
39
  field :url, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('url') } }
38
40
 
39
41
  field :qr, T.nilable(T::Boolean), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('qr') } }
40
42
 
41
43
 
42
- sig { params(browser: ::String, city: ::String, continent: ::String, country: ::String, device: ::String, id: ::String, ip: ::String, os: ::String, referer: ::String, referer_url: ::String, region: ::String, url: ::String, qr: T.nilable(T::Boolean)).void }
43
- def initialize(browser: nil, city: nil, continent: nil, country: nil, device: nil, id: nil, ip: nil, os: nil, referer: nil, referer_url: nil, region: nil, url: nil, qr: nil)
44
+ sig { params(browser: ::String, city: ::String, continent: ::String, country: ::String, device: ::String, id: ::String, ip: ::String, os: ::String, referer: ::String, referer_url: ::String, region: ::String, timestamp: ::String, url: ::String, qr: T.nilable(T::Boolean)).void }
45
+ def initialize(browser: nil, city: nil, continent: nil, country: nil, device: nil, id: nil, ip: nil, os: nil, referer: nil, referer_url: nil, region: nil, timestamp: nil, url: nil, qr: nil)
44
46
  @browser = browser
45
47
  @city = city
46
48
  @continent = continent
@@ -52,6 +54,7 @@ module OpenApiSDK
52
54
  @referer = referer
53
55
  @referer_url = referer_url
54
56
  @region = region
57
+ @timestamp = timestamp
55
58
  @url = url
56
59
  @qr = qr
57
60
  end
@@ -103,5 +103,91 @@ module OpenApiSDK
103
103
 
104
104
  res
105
105
  end
106
+
107
+
108
+ sig { params(request: T.nilable(::OpenApiSDK::Operations::CreatePartnerLinkRequestBody)).returns(::OpenApiSDK::Operations::CreatePartnerLinkResponse) }
109
+ def create_link(request)
110
+ # create_link - Create a link for a partner
111
+ # Create a new link for a partner that is enrolled in your program
112
+ url, params = @sdk_configuration.get_server_details
113
+ base_url = Utils.template_url(url, params)
114
+ url = "#{base_url}/partners/links"
115
+ headers = {}
116
+ req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
117
+ headers['content-type'] = req_content_type
118
+ headers['Accept'] = 'application/json'
119
+ headers['user-agent'] = @sdk_configuration.user_agent
120
+
121
+ r = @sdk_configuration.client.post(url) do |req|
122
+ req.headers = headers
123
+ Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
124
+ if form
125
+ req.body = Utils.encode_form(form)
126
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
127
+ req.body = URI.encode_www_form(data)
128
+ else
129
+ req.body = data
130
+ end
131
+ end
132
+
133
+ content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
134
+
135
+ res = ::OpenApiSDK::Operations::CreatePartnerLinkResponse.new(
136
+ status_code: r.status, content_type: content_type, raw_response: r
137
+ )
138
+ if r.status == 201
139
+ if Utils.match_content_type(content_type, 'application/json')
140
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::LinkSchema)
141
+ res.link_schema = out
142
+ end
143
+ elsif r.status == 400
144
+ if Utils.match_content_type(content_type, 'application/json')
145
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
146
+ res.bad_request = out
147
+ end
148
+ elsif r.status == 401
149
+ if Utils.match_content_type(content_type, 'application/json')
150
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
151
+ res.unauthorized = out
152
+ end
153
+ elsif r.status == 403
154
+ if Utils.match_content_type(content_type, 'application/json')
155
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
156
+ res.forbidden = out
157
+ end
158
+ elsif r.status == 404
159
+ if Utils.match_content_type(content_type, 'application/json')
160
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
161
+ res.not_found = out
162
+ end
163
+ elsif r.status == 409
164
+ if Utils.match_content_type(content_type, 'application/json')
165
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
166
+ res.conflict = out
167
+ end
168
+ elsif r.status == 410
169
+ if Utils.match_content_type(content_type, 'application/json')
170
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
171
+ res.invite_expired = out
172
+ end
173
+ elsif r.status == 422
174
+ if Utils.match_content_type(content_type, 'application/json')
175
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
176
+ res.unprocessable_entity = out
177
+ end
178
+ elsif r.status == 429
179
+ if Utils.match_content_type(content_type, 'application/json')
180
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
181
+ res.rate_limit_exceeded = out
182
+ end
183
+ elsif r.status == 500
184
+ if Utils.match_content_type(content_type, 'application/json')
185
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
186
+ res.internal_server_error = out
187
+ end
188
+ end
189
+
190
+ res
191
+ end
106
192
  end
107
193
  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.59'
42
- @gen_version = '2.500.5'
43
- @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.59 2.500.5 0.0.1 dub'
41
+ @sdk_version = '0.2.2-alpha.61'
42
+ @gen_version = '2.503.2'
43
+ @user_agent = 'speakeasy-sdk/ruby 0.2.2-alpha.61 2.503.2 0.0.1 dub'
44
44
  end
45
45
 
46
46
  sig { returns([String, T::Hash[Symbol, String]]) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2.pre.alpha.59
4
+ version: 0.2.2.pre.alpha.61
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-03 00:00:00.000000000 Z
11
+ date: 2025-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -182,6 +182,9 @@ files:
182
182
  - lib/open_api_sdk/models/operations/createpartner_response.rb
183
183
  - lib/open_api_sdk/models/operations/createpartner_responsebody.rb
184
184
  - lib/open_api_sdk/models/operations/createpartner_type.rb
185
+ - lib/open_api_sdk/models/operations/createpartnerlink_linkprops.rb
186
+ - lib/open_api_sdk/models/operations/createpartnerlink_requestbody.rb
187
+ - lib/open_api_sdk/models/operations/createpartnerlink_response.rb
185
188
  - lib/open_api_sdk/models/operations/createtag_requestbody.rb
186
189
  - lib/open_api_sdk/models/operations/createtag_response.rb
187
190
  - lib/open_api_sdk/models/operations/customer.rb