dub 0.2.2.pre.alpha.45 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dub.rb +3 -6
  3. data/lib/open_api_sdk/analytics.rb +1 -2
  4. data/lib/open_api_sdk/domains.rb +55 -61
  5. data/lib/open_api_sdk/dub.rb +4 -7
  6. data/lib/open_api_sdk/links.rb +55 -143
  7. data/lib/open_api_sdk/metatags.rb +1 -2
  8. data/lib/open_api_sdk/models/operations/bulkcreatelinks_response.rb +1 -1
  9. data/lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb +5 -8
  10. data/lib/open_api_sdk/models/operations/bulkupdatelinks_response.rb +1 -1
  11. data/lib/open_api_sdk/models/operations/color.rb +2 -1
  12. data/lib/open_api_sdk/models/operations/createdomain_requestbody.rb +3 -9
  13. data/lib/open_api_sdk/models/operations/createdomain_response.rb +1 -1
  14. data/lib/open_api_sdk/models/operations/createlink_requestbody.rb +7 -36
  15. data/lib/open_api_sdk/models/operations/createlink_response.rb +1 -1
  16. data/lib/open_api_sdk/models/operations/createtag_requestbody.rb +1 -1
  17. data/lib/open_api_sdk/models/operations/createtag_response.rb +1 -1
  18. data/lib/open_api_sdk/models/operations/data.rb +7 -36
  19. data/lib/open_api_sdk/models/operations/deletedomain_request.rb +1 -1
  20. data/lib/open_api_sdk/models/operations/deletedomain_response.rb +1 -1
  21. data/lib/open_api_sdk/models/operations/deletedomain_responsebody.rb +1 -1
  22. data/lib/open_api_sdk/models/operations/deletelink_request.rb +1 -1
  23. data/lib/open_api_sdk/models/operations/deletelink_response.rb +2 -2
  24. data/lib/open_api_sdk/models/operations/deletelink_responsebody.rb +2 -2
  25. data/lib/open_api_sdk/models/operations/event.rb +3 -2
  26. data/lib/open_api_sdk/models/operations/getlinkinfo_request.rb +2 -2
  27. data/lib/open_api_sdk/models/operations/getlinkinfo_response.rb +1 -1
  28. data/lib/open_api_sdk/models/operations/getlinks_request.rb +7 -10
  29. data/lib/open_api_sdk/models/operations/getlinks_response.rb +1 -1
  30. data/lib/open_api_sdk/models/operations/getlinkscount_request.rb +3 -3
  31. data/lib/open_api_sdk/models/operations/getlinkscount_response.rb +1 -1
  32. data/lib/open_api_sdk/models/operations/getmetatags_request.rb +1 -1
  33. data/lib/open_api_sdk/models/operations/getmetatags_response.rb +1 -1
  34. data/lib/open_api_sdk/models/operations/getmetatags_responsebody.rb +1 -1
  35. data/lib/open_api_sdk/models/operations/getqrcode_request.rb +4 -13
  36. data/lib/open_api_sdk/models/operations/getqrcode_response.rb +1 -1
  37. data/lib/open_api_sdk/models/operations/gettags_response.rb +1 -1
  38. data/lib/open_api_sdk/models/operations/getworkspace_request.rb +1 -1
  39. data/lib/open_api_sdk/models/operations/getworkspace_response.rb +1 -1
  40. data/lib/open_api_sdk/models/operations/groupby.rb +4 -7
  41. data/lib/open_api_sdk/models/operations/interval.rb +3 -2
  42. data/lib/open_api_sdk/models/operations/level.rb +2 -1
  43. data/lib/open_api_sdk/models/operations/listdomains_response.rb +1 -1
  44. data/lib/open_api_sdk/models/operations/paymentprocessor.rb +2 -1
  45. data/lib/open_api_sdk/models/operations/requestbody.rb +7 -36
  46. data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +10 -25
  47. data/lib/open_api_sdk/models/operations/retrieveanalytics_response.rb +1 -1
  48. data/lib/open_api_sdk/models/operations/sort.rb +2 -1
  49. data/lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb +1 -1
  50. data/lib/open_api_sdk/models/operations/trackcustomer_response.rb +1 -1
  51. data/lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb +1 -1
  52. data/lib/open_api_sdk/models/operations/tracklead_requestbody.rb +7 -12
  53. data/lib/open_api_sdk/models/operations/tracklead_response.rb +1 -1
  54. data/lib/open_api_sdk/models/operations/tracklead_responsebody.rb +22 -7
  55. data/lib/open_api_sdk/models/operations/tracksale_requestbody.rb +6 -11
  56. data/lib/open_api_sdk/models/operations/tracksale_response.rb +1 -1
  57. data/lib/open_api_sdk/models/operations/tracksale_responsebody.rb +19 -7
  58. data/lib/open_api_sdk/models/operations/updatedomain_request.rb +1 -1
  59. data/lib/open_api_sdk/models/operations/updatedomain_requestbody.rb +3 -9
  60. data/lib/open_api_sdk/models/operations/updatedomain_response.rb +1 -1
  61. data/lib/open_api_sdk/models/operations/updatelink_request.rb +1 -1
  62. data/lib/open_api_sdk/models/operations/updatelink_requestbody.rb +8 -37
  63. data/lib/open_api_sdk/models/operations/updatelink_response.rb +1 -1
  64. data/lib/open_api_sdk/models/operations/updatetag_color.rb +2 -1
  65. data/lib/open_api_sdk/models/operations/updatetag_request.rb +1 -1
  66. data/lib/open_api_sdk/models/operations/updatetag_requestbody.rb +1 -1
  67. data/lib/open_api_sdk/models/operations/updatetag_response.rb +1 -1
  68. data/lib/open_api_sdk/models/operations/updateworkspace_request.rb +1 -1
  69. data/lib/open_api_sdk/models/operations/updateworkspace_requestbody.rb +3 -6
  70. data/lib/open_api_sdk/models/operations/updateworkspace_response.rb +1 -1
  71. data/lib/open_api_sdk/models/operations/upsertlink_requestbody.rb +7 -36
  72. data/lib/open_api_sdk/models/operations/upsertlink_response.rb +1 -1
  73. data/lib/open_api_sdk/models/operations.rb +19 -56
  74. data/lib/open_api_sdk/models/shared/badrequest.rb +2 -2
  75. data/lib/open_api_sdk/models/shared/code.rb +2 -1
  76. data/lib/open_api_sdk/models/shared/color.rb +2 -1
  77. data/lib/open_api_sdk/models/shared/conflict.rb +2 -2
  78. data/lib/open_api_sdk/models/shared/conflict_code.rb +2 -1
  79. data/lib/open_api_sdk/models/shared/conflict_error.rb +1 -1
  80. data/lib/open_api_sdk/models/shared/countrycode.rb +2 -1
  81. data/lib/open_api_sdk/models/shared/domains.rb +3 -6
  82. data/lib/open_api_sdk/models/shared/domainschema.rb +3 -12
  83. data/lib/open_api_sdk/models/shared/error.rb +1 -1
  84. data/lib/open_api_sdk/models/shared/forbidden.rb +2 -2
  85. data/lib/open_api_sdk/models/shared/forbidden_code.rb +2 -1
  86. data/lib/open_api_sdk/models/shared/forbidden_error.rb +1 -1
  87. data/lib/open_api_sdk/models/shared/geo.rb +1 -1
  88. data/lib/open_api_sdk/models/shared/internalservererror.rb +2 -2
  89. data/lib/open_api_sdk/models/shared/internalservererror_code.rb +2 -1
  90. data/lib/open_api_sdk/models/shared/internalservererror_error.rb +1 -1
  91. data/lib/open_api_sdk/models/shared/inviteexpired.rb +2 -2
  92. data/lib/open_api_sdk/models/shared/inviteexpired_code.rb +2 -1
  93. data/lib/open_api_sdk/models/shared/inviteexpired_error.rb +1 -1
  94. data/lib/open_api_sdk/models/shared/linkgeotargeting.rb +1 -1
  95. data/lib/open_api_sdk/models/shared/linkschema.rb +4 -16
  96. data/lib/open_api_sdk/models/shared/notfound.rb +2 -2
  97. data/lib/open_api_sdk/models/shared/notfound_code.rb +2 -1
  98. data/lib/open_api_sdk/models/shared/notfound_error.rb +1 -1
  99. data/lib/open_api_sdk/models/shared/plan.rb +2 -1
  100. data/lib/open_api_sdk/models/shared/ratelimitexceeded.rb +2 -2
  101. data/lib/open_api_sdk/models/shared/ratelimitexceeded_code.rb +2 -1
  102. data/lib/open_api_sdk/models/shared/ratelimitexceeded_error.rb +1 -1
  103. data/lib/open_api_sdk/models/shared/role.rb +2 -1
  104. data/lib/open_api_sdk/models/shared/security.rb +3 -3
  105. data/lib/open_api_sdk/models/shared/tagschema.rb +1 -1
  106. data/lib/open_api_sdk/models/shared/unauthorized.rb +2 -2
  107. data/lib/open_api_sdk/models/shared/unauthorized_code.rb +2 -1
  108. data/lib/open_api_sdk/models/shared/unauthorized_error.rb +1 -1
  109. data/lib/open_api_sdk/models/shared/unprocessableentity.rb +2 -2
  110. data/lib/open_api_sdk/models/shared/unprocessableentity_code.rb +2 -1
  111. data/lib/open_api_sdk/models/shared/unprocessableentity_error.rb +1 -1
  112. data/lib/open_api_sdk/models/shared/users.rb +1 -1
  113. data/lib/open_api_sdk/models/shared/workspaceschema.rb +7 -40
  114. data/lib/open_api_sdk/models/shared.rb +2 -9
  115. data/lib/open_api_sdk/qr_codes.rb +2 -2
  116. data/lib/open_api_sdk/sdkconfiguration.rb +4 -4
  117. data/lib/open_api_sdk/tags.rb +28 -113
  118. data/lib/open_api_sdk/track.rb +1 -6
  119. data/lib/open_api_sdk/utils/metadata_fields.rb +1 -1
  120. data/lib/open_api_sdk/utils/t.rb +1 -1
  121. data/lib/open_api_sdk/utils/utils.rb +2 -2
  122. data/lib/open_api_sdk/workspaces.rb +1 -3
  123. metadata +10 -57
  124. data/lib/open_api_sdk/customers.rb +0 -439
  125. data/lib/open_api_sdk/embed_tokens.rb +0 -107
  126. data/lib/open_api_sdk/events.rb +0 -100
  127. data/lib/open_api_sdk/models/operations/bulkdeletelinks_request.rb +0 -24
  128. data/lib/open_api_sdk/models/operations/bulkdeletelinks_response.rb +0 -60
  129. data/lib/open_api_sdk/models/operations/bulkdeletelinks_responsebody.rb +0 -24
  130. data/lib/open_api_sdk/models/operations/click.rb +0 -24
  131. data/lib/open_api_sdk/models/operations/createcustomer_requestbody.rb +0 -33
  132. data/lib/open_api_sdk/models/operations/createcustomer_response.rb +0 -60
  133. data/lib/open_api_sdk/models/operations/createcustomer_responsebody.rb +0 -39
  134. data/lib/open_api_sdk/models/operations/createembedtoken_requestbody.rb +0 -24
  135. data/lib/open_api_sdk/models/operations/createembedtoken_response.rb +0 -60
  136. data/lib/open_api_sdk/models/operations/createembedtoken_responsebody.rb +0 -27
  137. data/lib/open_api_sdk/models/operations/customer.rb +0 -33
  138. data/lib/open_api_sdk/models/operations/deletecustomer_request.rb +0 -24
  139. data/lib/open_api_sdk/models/operations/deletecustomer_response.rb +0 -60
  140. data/lib/open_api_sdk/models/operations/deletecustomer_responsebody.rb +0 -24
  141. data/lib/open_api_sdk/models/operations/deletetag_request.rb +0 -24
  142. data/lib/open_api_sdk/models/operations/deletetag_response.rb +0 -60
  143. data/lib/open_api_sdk/models/operations/deletetag_responsebody.rb +0 -24
  144. data/lib/open_api_sdk/models/operations/getcustomer_request.rb +0 -24
  145. data/lib/open_api_sdk/models/operations/getcustomer_response.rb +0 -60
  146. data/lib/open_api_sdk/models/operations/getcustomer_responsebody.rb +0 -39
  147. data/lib/open_api_sdk/models/operations/getcustomers_response.rb +0 -60
  148. data/lib/open_api_sdk/models/operations/listdomains_request.rb +0 -33
  149. data/lib/open_api_sdk/models/operations/listevents_request.rb +0 -105
  150. data/lib/open_api_sdk/models/operations/listevents_response.rb +0 -60
  151. data/lib/open_api_sdk/models/operations/order.rb +0 -18
  152. data/lib/open_api_sdk/models/operations/queryparam_event.rb +0 -19
  153. data/lib/open_api_sdk/models/operations/queryparam_interval.rb +0 -23
  154. data/lib/open_api_sdk/models/operations/queryparam_trigger.rb +0 -18
  155. data/lib/open_api_sdk/models/operations/responsebody.rb +0 -39
  156. data/lib/open_api_sdk/models/operations/sale.rb +0 -36
  157. data/lib/open_api_sdk/models/operations/sortby.rb +0 -17
  158. data/lib/open_api_sdk/models/operations/tracksale_customer.rb +0 -36
  159. data/lib/open_api_sdk/models/operations/trigger.rb +0 -18
  160. data/lib/open_api_sdk/models/operations/updatecustomer_request.rb +0 -27
  161. data/lib/open_api_sdk/models/operations/updatecustomer_requestbody.rb +0 -33
  162. data/lib/open_api_sdk/models/operations/updatecustomer_response.rb +0 -60
  163. data/lib/open_api_sdk/models/operations/updatecustomer_responsebody.rb +0 -39
  164. data/lib/open_api_sdk/models/shared/click.rb +0 -60
  165. data/lib/open_api_sdk/models/shared/clickevent.rb +0 -98
  166. data/lib/open_api_sdk/models/shared/clickevent_geo.rb +0 -771
  167. data/lib/open_api_sdk/models/shared/continentcode.rb +0 -23
  168. data/lib/open_api_sdk/models/shared/event.rb +0 -17
  169. data/lib/open_api_sdk/models/shared/link.rb +0 -154
  170. data/lib/open_api_sdk/models/shared/registereddomain.rb +0 -30
@@ -1,4 +1,4 @@
1
- # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
2
 
3
3
  # typed: true
4
4
  # frozen_string_literal: true
@@ -358,7 +358,7 @@ module OpenApiSDK
358
358
 
359
359
  sig { params(content_type: String, pattern: String).returns(T::Boolean) }
360
360
  def self.match_content_type(content_type, pattern)
361
- return true if content_type == pattern || ['*', '*/*'].include?(pattern)
361
+ return true if content_type == pattern || pattern == '*' || pattern == '*/*'
362
362
 
363
363
  pieces = content_type.split(';')
364
364
  pieces.each do |piece|
@@ -1,4 +1,4 @@
1
- # Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
1
+ # Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
2
2
 
3
3
  # typed: true
4
4
  # frozen_string_literal: true
@@ -96,7 +96,6 @@ module OpenApiSDK
96
96
  res.internal_server_error = out
97
97
  end
98
98
  end
99
-
100
99
  res
101
100
  end
102
101
 
@@ -187,7 +186,6 @@ module OpenApiSDK
187
186
  res.internal_server_error = out
188
187
  end
189
188
  end
190
-
191
189
  res
192
190
  end
193
191
  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.45
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-11 00:00:00.000000000 Z
11
+ date: 2024-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: sorbet-runtime
70
+ name: sorbet
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -98,18 +98,18 @@ dependencies:
98
98
  name: rubocop
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: 1.60.2
103
+ version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: 1.60.2
110
+ version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: sorbet
112
+ name: sorbet-runtime
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - ">="
@@ -144,53 +144,29 @@ extra_rdoc_files: []
144
144
  files:
145
145
  - lib/dub.rb
146
146
  - lib/open_api_sdk/analytics.rb
147
- - lib/open_api_sdk/customers.rb
148
147
  - lib/open_api_sdk/domains.rb
149
148
  - lib/open_api_sdk/dub.rb
150
- - lib/open_api_sdk/embed_tokens.rb
151
- - lib/open_api_sdk/events.rb
152
149
  - lib/open_api_sdk/links.rb
153
150
  - lib/open_api_sdk/metatags.rb
154
151
  - lib/open_api_sdk/models/operations.rb
155
152
  - lib/open_api_sdk/models/operations/bulkcreatelinks_response.rb
156
- - lib/open_api_sdk/models/operations/bulkdeletelinks_request.rb
157
- - lib/open_api_sdk/models/operations/bulkdeletelinks_response.rb
158
- - lib/open_api_sdk/models/operations/bulkdeletelinks_responsebody.rb
159
153
  - lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb
160
154
  - lib/open_api_sdk/models/operations/bulkupdatelinks_response.rb
161
- - lib/open_api_sdk/models/operations/click.rb
162
155
  - lib/open_api_sdk/models/operations/color.rb
163
- - lib/open_api_sdk/models/operations/createcustomer_requestbody.rb
164
- - lib/open_api_sdk/models/operations/createcustomer_response.rb
165
- - lib/open_api_sdk/models/operations/createcustomer_responsebody.rb
166
156
  - lib/open_api_sdk/models/operations/createdomain_requestbody.rb
167
157
  - 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
171
158
  - lib/open_api_sdk/models/operations/createlink_requestbody.rb
172
159
  - lib/open_api_sdk/models/operations/createlink_response.rb
173
160
  - lib/open_api_sdk/models/operations/createtag_requestbody.rb
174
161
  - lib/open_api_sdk/models/operations/createtag_response.rb
175
- - lib/open_api_sdk/models/operations/customer.rb
176
162
  - lib/open_api_sdk/models/operations/data.rb
177
- - lib/open_api_sdk/models/operations/deletecustomer_request.rb
178
- - lib/open_api_sdk/models/operations/deletecustomer_response.rb
179
- - lib/open_api_sdk/models/operations/deletecustomer_responsebody.rb
180
163
  - lib/open_api_sdk/models/operations/deletedomain_request.rb
181
164
  - lib/open_api_sdk/models/operations/deletedomain_response.rb
182
165
  - lib/open_api_sdk/models/operations/deletedomain_responsebody.rb
183
166
  - lib/open_api_sdk/models/operations/deletelink_request.rb
184
167
  - lib/open_api_sdk/models/operations/deletelink_response.rb
185
168
  - lib/open_api_sdk/models/operations/deletelink_responsebody.rb
186
- - lib/open_api_sdk/models/operations/deletetag_request.rb
187
- - lib/open_api_sdk/models/operations/deletetag_response.rb
188
- - lib/open_api_sdk/models/operations/deletetag_responsebody.rb
189
169
  - lib/open_api_sdk/models/operations/event.rb
190
- - lib/open_api_sdk/models/operations/getcustomer_request.rb
191
- - lib/open_api_sdk/models/operations/getcustomer_response.rb
192
- - lib/open_api_sdk/models/operations/getcustomer_responsebody.rb
193
- - lib/open_api_sdk/models/operations/getcustomers_response.rb
194
170
  - lib/open_api_sdk/models/operations/getlinkinfo_request.rb
195
171
  - lib/open_api_sdk/models/operations/getlinkinfo_response.rb
196
172
  - lib/open_api_sdk/models/operations/getlinks_request.rb
@@ -208,37 +184,21 @@ files:
208
184
  - lib/open_api_sdk/models/operations/groupby.rb
209
185
  - lib/open_api_sdk/models/operations/interval.rb
210
186
  - lib/open_api_sdk/models/operations/level.rb
211
- - lib/open_api_sdk/models/operations/listdomains_request.rb
212
187
  - lib/open_api_sdk/models/operations/listdomains_response.rb
213
- - lib/open_api_sdk/models/operations/listevents_request.rb
214
- - lib/open_api_sdk/models/operations/listevents_response.rb
215
- - lib/open_api_sdk/models/operations/order.rb
216
188
  - lib/open_api_sdk/models/operations/paymentprocessor.rb
217
- - lib/open_api_sdk/models/operations/queryparam_event.rb
218
- - lib/open_api_sdk/models/operations/queryparam_interval.rb
219
- - lib/open_api_sdk/models/operations/queryparam_trigger.rb
220
189
  - lib/open_api_sdk/models/operations/requestbody.rb
221
- - lib/open_api_sdk/models/operations/responsebody.rb
222
190
  - lib/open_api_sdk/models/operations/retrieveanalytics_request.rb
223
191
  - lib/open_api_sdk/models/operations/retrieveanalytics_response.rb
224
- - lib/open_api_sdk/models/operations/sale.rb
225
192
  - lib/open_api_sdk/models/operations/sort.rb
226
- - lib/open_api_sdk/models/operations/sortby.rb
227
193
  - lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb
228
194
  - lib/open_api_sdk/models/operations/trackcustomer_response.rb
229
195
  - lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb
230
196
  - lib/open_api_sdk/models/operations/tracklead_requestbody.rb
231
197
  - lib/open_api_sdk/models/operations/tracklead_response.rb
232
198
  - lib/open_api_sdk/models/operations/tracklead_responsebody.rb
233
- - lib/open_api_sdk/models/operations/tracksale_customer.rb
234
199
  - lib/open_api_sdk/models/operations/tracksale_requestbody.rb
235
200
  - lib/open_api_sdk/models/operations/tracksale_response.rb
236
201
  - lib/open_api_sdk/models/operations/tracksale_responsebody.rb
237
- - lib/open_api_sdk/models/operations/trigger.rb
238
- - lib/open_api_sdk/models/operations/updatecustomer_request.rb
239
- - lib/open_api_sdk/models/operations/updatecustomer_requestbody.rb
240
- - lib/open_api_sdk/models/operations/updatecustomer_response.rb
241
- - lib/open_api_sdk/models/operations/updatecustomer_responsebody.rb
242
202
  - lib/open_api_sdk/models/operations/updatedomain_request.rb
243
203
  - lib/open_api_sdk/models/operations/updatedomain_requestbody.rb
244
204
  - lib/open_api_sdk/models/operations/updatedomain_response.rb
@@ -256,20 +216,15 @@ files:
256
216
  - lib/open_api_sdk/models/operations/upsertlink_response.rb
257
217
  - lib/open_api_sdk/models/shared.rb
258
218
  - lib/open_api_sdk/models/shared/badrequest.rb
259
- - lib/open_api_sdk/models/shared/click.rb
260
- - lib/open_api_sdk/models/shared/clickevent.rb
261
- - lib/open_api_sdk/models/shared/clickevent_geo.rb
262
219
  - lib/open_api_sdk/models/shared/code.rb
263
220
  - lib/open_api_sdk/models/shared/color.rb
264
221
  - lib/open_api_sdk/models/shared/conflict.rb
265
222
  - lib/open_api_sdk/models/shared/conflict_code.rb
266
223
  - lib/open_api_sdk/models/shared/conflict_error.rb
267
- - lib/open_api_sdk/models/shared/continentcode.rb
268
224
  - lib/open_api_sdk/models/shared/countrycode.rb
269
225
  - lib/open_api_sdk/models/shared/domains.rb
270
226
  - lib/open_api_sdk/models/shared/domainschema.rb
271
227
  - lib/open_api_sdk/models/shared/error.rb
272
- - lib/open_api_sdk/models/shared/event.rb
273
228
  - lib/open_api_sdk/models/shared/forbidden.rb
274
229
  - lib/open_api_sdk/models/shared/forbidden_code.rb
275
230
  - lib/open_api_sdk/models/shared/forbidden_error.rb
@@ -280,7 +235,6 @@ files:
280
235
  - lib/open_api_sdk/models/shared/inviteexpired.rb
281
236
  - lib/open_api_sdk/models/shared/inviteexpired_code.rb
282
237
  - lib/open_api_sdk/models/shared/inviteexpired_error.rb
283
- - lib/open_api_sdk/models/shared/link.rb
284
238
  - lib/open_api_sdk/models/shared/linkgeotargeting.rb
285
239
  - lib/open_api_sdk/models/shared/linkschema.rb
286
240
  - lib/open_api_sdk/models/shared/notfound.rb
@@ -290,7 +244,6 @@ files:
290
244
  - lib/open_api_sdk/models/shared/ratelimitexceeded.rb
291
245
  - lib/open_api_sdk/models/shared/ratelimitexceeded_code.rb
292
246
  - lib/open_api_sdk/models/shared/ratelimitexceeded_error.rb
293
- - lib/open_api_sdk/models/shared/registereddomain.rb
294
247
  - lib/open_api_sdk/models/shared/role.rb
295
248
  - lib/open_api_sdk/models/shared/security.rb
296
249
  - lib/open_api_sdk/models/shared/tagschema.rb
@@ -328,9 +281,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
328
281
  version: '3.0'
329
282
  required_rubygems_version: !ruby/object:Gem::Requirement
330
283
  requirements:
331
- - - ">"
284
+ - - ">="
332
285
  - !ruby/object:Gem::Version
333
- version: 1.3.1
286
+ version: '0'
334
287
  requirements: []
335
288
  rubygems_version: 3.3.26
336
289
  signing_key:
@@ -1,439 +0,0 @@
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 Customers
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 { returns(::OpenApiSDK::Operations::GetCustomersResponse) }
23
- def list
24
- # list - Retrieve a list of customers
25
- # Retrieve a list of customers for the authenticated workspace.
26
- url, params = @sdk_configuration.get_server_details
27
- base_url = Utils.template_url(url, params)
28
- url = "#{base_url}/customers"
29
- headers = {}
30
- headers['Accept'] = 'application/json'
31
- headers['user-agent'] = @sdk_configuration.user_agent
32
-
33
- r = @sdk_configuration.client.get(url) do |req|
34
- req.headers = headers
35
- Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
36
- end
37
-
38
- content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
39
-
40
- res = ::OpenApiSDK::Operations::GetCustomersResponse.new(
41
- status_code: r.status, content_type: content_type, raw_response: r
42
- )
43
- if r.status == 200
44
- if Utils.match_content_type(content_type, 'application/json')
45
- out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Operations::ResponseBody])
46
- res.response_bodies = out
47
- end
48
- elsif r.status == 400
49
- if Utils.match_content_type(content_type, 'application/json')
50
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
51
- res.bad_request = out
52
- end
53
- elsif r.status == 401
54
- if Utils.match_content_type(content_type, 'application/json')
55
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
56
- res.unauthorized = out
57
- end
58
- elsif r.status == 403
59
- if Utils.match_content_type(content_type, 'application/json')
60
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
61
- res.forbidden = out
62
- end
63
- elsif r.status == 404
64
- if Utils.match_content_type(content_type, 'application/json')
65
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
66
- res.not_found = out
67
- end
68
- elsif r.status == 409
69
- if Utils.match_content_type(content_type, 'application/json')
70
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
71
- res.conflict = out
72
- end
73
- elsif r.status == 410
74
- if Utils.match_content_type(content_type, 'application/json')
75
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
76
- res.invite_expired = out
77
- end
78
- elsif r.status == 422
79
- if Utils.match_content_type(content_type, 'application/json')
80
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
81
- res.unprocessable_entity = out
82
- end
83
- elsif r.status == 429
84
- if Utils.match_content_type(content_type, 'application/json')
85
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
86
- res.rate_limit_exceeded = out
87
- end
88
- elsif r.status == 500
89
- if Utils.match_content_type(content_type, 'application/json')
90
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
91
- res.internal_server_error = out
92
- end
93
- end
94
-
95
- res
96
- end
97
-
98
-
99
- sig { params(request: T.nilable(::OpenApiSDK::Operations::CreateCustomerRequestBody)).returns(::OpenApiSDK::Operations::CreateCustomerResponse) }
100
- def create(request)
101
- # create - Create a customer
102
- # Create a customer for the authenticated workspace.
103
- url, params = @sdk_configuration.get_server_details
104
- base_url = Utils.template_url(url, params)
105
- url = "#{base_url}/customers"
106
- headers = {}
107
- req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
108
- headers['content-type'] = req_content_type
109
- headers['Accept'] = 'application/json'
110
- headers['user-agent'] = @sdk_configuration.user_agent
111
-
112
- r = @sdk_configuration.client.post(url) do |req|
113
- req.headers = headers
114
- Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
115
- if form
116
- req.body = Utils.encode_form(form)
117
- elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
118
- req.body = URI.encode_www_form(data)
119
- else
120
- req.body = data
121
- end
122
- end
123
-
124
- content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
125
-
126
- res = ::OpenApiSDK::Operations::CreateCustomerResponse.new(
127
- status_code: r.status, content_type: content_type, raw_response: r
128
- )
129
- if r.status == 201
130
- if Utils.match_content_type(content_type, 'application/json')
131
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::CreateCustomerResponseBody)
132
- res.object = out
133
- end
134
- elsif r.status == 400
135
- if Utils.match_content_type(content_type, 'application/json')
136
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
137
- res.bad_request = out
138
- end
139
- elsif r.status == 401
140
- if Utils.match_content_type(content_type, 'application/json')
141
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
142
- res.unauthorized = out
143
- end
144
- elsif r.status == 403
145
- if Utils.match_content_type(content_type, 'application/json')
146
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
147
- res.forbidden = out
148
- end
149
- elsif r.status == 404
150
- if Utils.match_content_type(content_type, 'application/json')
151
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
152
- res.not_found = out
153
- end
154
- elsif r.status == 409
155
- if Utils.match_content_type(content_type, 'application/json')
156
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
157
- res.conflict = out
158
- end
159
- elsif r.status == 410
160
- if Utils.match_content_type(content_type, 'application/json')
161
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
162
- res.invite_expired = out
163
- end
164
- elsif r.status == 422
165
- if Utils.match_content_type(content_type, 'application/json')
166
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
167
- res.unprocessable_entity = out
168
- end
169
- elsif r.status == 429
170
- if Utils.match_content_type(content_type, 'application/json')
171
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
172
- res.rate_limit_exceeded = out
173
- end
174
- elsif r.status == 500
175
- if Utils.match_content_type(content_type, 'application/json')
176
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
177
- res.internal_server_error = out
178
- end
179
- end
180
-
181
- res
182
- end
183
-
184
-
185
- sig { params(request: T.nilable(::OpenApiSDK::Operations::GetCustomerRequest)).returns(::OpenApiSDK::Operations::GetCustomerResponse) }
186
- def get(request)
187
- # get - Retrieve a customer
188
- # Retrieve a customer by ID for the authenticated workspace.
189
- url, params = @sdk_configuration.get_server_details
190
- base_url = Utils.template_url(url, params)
191
- url = Utils.generate_url(
192
- ::OpenApiSDK::Operations::GetCustomerRequest,
193
- base_url,
194
- '/customers/{id}',
195
- request
196
- )
197
- headers = {}
198
- headers['Accept'] = 'application/json'
199
- headers['user-agent'] = @sdk_configuration.user_agent
200
-
201
- r = @sdk_configuration.client.get(url) do |req|
202
- req.headers = headers
203
- Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
204
- end
205
-
206
- content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
207
-
208
- res = ::OpenApiSDK::Operations::GetCustomerResponse.new(
209
- status_code: r.status, content_type: content_type, raw_response: r
210
- )
211
- if r.status == 200
212
- if Utils.match_content_type(content_type, 'application/json')
213
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::GetCustomerResponseBody)
214
- res.object = out
215
- end
216
- elsif r.status == 400
217
- if Utils.match_content_type(content_type, 'application/json')
218
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
219
- res.bad_request = out
220
- end
221
- elsif r.status == 401
222
- if Utils.match_content_type(content_type, 'application/json')
223
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
224
- res.unauthorized = out
225
- end
226
- elsif r.status == 403
227
- if Utils.match_content_type(content_type, 'application/json')
228
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
229
- res.forbidden = out
230
- end
231
- elsif r.status == 404
232
- if Utils.match_content_type(content_type, 'application/json')
233
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
234
- res.not_found = out
235
- end
236
- elsif r.status == 409
237
- if Utils.match_content_type(content_type, 'application/json')
238
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
239
- res.conflict = out
240
- end
241
- elsif r.status == 410
242
- if Utils.match_content_type(content_type, 'application/json')
243
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
244
- res.invite_expired = out
245
- end
246
- elsif r.status == 422
247
- if Utils.match_content_type(content_type, 'application/json')
248
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
249
- res.unprocessable_entity = out
250
- end
251
- elsif r.status == 429
252
- if Utils.match_content_type(content_type, 'application/json')
253
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
254
- res.rate_limit_exceeded = out
255
- end
256
- elsif r.status == 500
257
- if Utils.match_content_type(content_type, 'application/json')
258
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
259
- res.internal_server_error = out
260
- end
261
- end
262
-
263
- res
264
- end
265
-
266
-
267
- sig { params(request: T.nilable(::OpenApiSDK::Operations::UpdateCustomerRequest)).returns(::OpenApiSDK::Operations::UpdateCustomerResponse) }
268
- def update(request)
269
- # update - Update a customer
270
- # Update a customer for the authenticated workspace.
271
- url, params = @sdk_configuration.get_server_details
272
- base_url = Utils.template_url(url, params)
273
- url = Utils.generate_url(
274
- ::OpenApiSDK::Operations::UpdateCustomerRequest,
275
- base_url,
276
- '/customers/{id}',
277
- request
278
- )
279
- headers = {}
280
- req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :json)
281
- headers['content-type'] = req_content_type
282
- headers['Accept'] = 'application/json'
283
- headers['user-agent'] = @sdk_configuration.user_agent
284
-
285
- r = @sdk_configuration.client.patch(url) do |req|
286
- req.headers = headers
287
- Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
288
- if form
289
- req.body = Utils.encode_form(form)
290
- elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
291
- req.body = URI.encode_www_form(data)
292
- else
293
- req.body = data
294
- end
295
- end
296
-
297
- content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
298
-
299
- res = ::OpenApiSDK::Operations::UpdateCustomerResponse.new(
300
- status_code: r.status, content_type: content_type, raw_response: r
301
- )
302
- if r.status == 200
303
- if Utils.match_content_type(content_type, 'application/json')
304
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::UpdateCustomerResponseBody)
305
- res.object = out
306
- end
307
- elsif r.status == 400
308
- if Utils.match_content_type(content_type, 'application/json')
309
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
310
- res.bad_request = out
311
- end
312
- elsif r.status == 401
313
- if Utils.match_content_type(content_type, 'application/json')
314
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
315
- res.unauthorized = out
316
- end
317
- elsif r.status == 403
318
- if Utils.match_content_type(content_type, 'application/json')
319
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
320
- res.forbidden = out
321
- end
322
- elsif r.status == 404
323
- if Utils.match_content_type(content_type, 'application/json')
324
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
325
- res.not_found = out
326
- end
327
- elsif r.status == 409
328
- if Utils.match_content_type(content_type, 'application/json')
329
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
330
- res.conflict = out
331
- end
332
- elsif r.status == 410
333
- if Utils.match_content_type(content_type, 'application/json')
334
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
335
- res.invite_expired = out
336
- end
337
- elsif r.status == 422
338
- if Utils.match_content_type(content_type, 'application/json')
339
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
340
- res.unprocessable_entity = out
341
- end
342
- elsif r.status == 429
343
- if Utils.match_content_type(content_type, 'application/json')
344
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
345
- res.rate_limit_exceeded = out
346
- end
347
- elsif r.status == 500
348
- if Utils.match_content_type(content_type, 'application/json')
349
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
350
- res.internal_server_error = out
351
- end
352
- end
353
-
354
- res
355
- end
356
-
357
-
358
- sig { params(request: T.nilable(::OpenApiSDK::Operations::DeleteCustomerRequest)).returns(::OpenApiSDK::Operations::DeleteCustomerResponse) }
359
- def delete(request)
360
- # delete - Delete a customer
361
- # Delete a customer from a workspace.
362
- url, params = @sdk_configuration.get_server_details
363
- base_url = Utils.template_url(url, params)
364
- url = Utils.generate_url(
365
- ::OpenApiSDK::Operations::DeleteCustomerRequest,
366
- base_url,
367
- '/customers/{id}',
368
- request
369
- )
370
- headers = {}
371
- headers['Accept'] = 'application/json'
372
- headers['user-agent'] = @sdk_configuration.user_agent
373
-
374
- r = @sdk_configuration.client.delete(url) do |req|
375
- req.headers = headers
376
- Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
377
- end
378
-
379
- content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
380
-
381
- res = ::OpenApiSDK::Operations::DeleteCustomerResponse.new(
382
- status_code: r.status, content_type: content_type, raw_response: r
383
- )
384
- if r.status == 200
385
- if Utils.match_content_type(content_type, 'application/json')
386
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::DeleteCustomerResponseBody)
387
- res.object = out
388
- end
389
- elsif r.status == 400
390
- if Utils.match_content_type(content_type, 'application/json')
391
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
392
- res.bad_request = out
393
- end
394
- elsif r.status == 401
395
- if Utils.match_content_type(content_type, 'application/json')
396
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
397
- res.unauthorized = out
398
- end
399
- elsif r.status == 403
400
- if Utils.match_content_type(content_type, 'application/json')
401
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
402
- res.forbidden = out
403
- end
404
- elsif r.status == 404
405
- if Utils.match_content_type(content_type, 'application/json')
406
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
407
- res.not_found = out
408
- end
409
- elsif r.status == 409
410
- if Utils.match_content_type(content_type, 'application/json')
411
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
412
- res.conflict = out
413
- end
414
- elsif r.status == 410
415
- if Utils.match_content_type(content_type, 'application/json')
416
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
417
- res.invite_expired = out
418
- end
419
- elsif r.status == 422
420
- if Utils.match_content_type(content_type, 'application/json')
421
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
422
- res.unprocessable_entity = out
423
- end
424
- elsif r.status == 429
425
- if Utils.match_content_type(content_type, 'application/json')
426
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
427
- res.rate_limit_exceeded = out
428
- end
429
- elsif r.status == 500
430
- if Utils.match_content_type(content_type, 'application/json')
431
- out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
432
- res.internal_server_error = out
433
- end
434
- end
435
-
436
- res
437
- end
438
- end
439
- end