dub 0.2.2.pre.alpha.42 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dub.rb +3 -6
- data/lib/open_api_sdk/analytics.rb +1 -2
- data/lib/open_api_sdk/domains.rb +55 -61
- data/lib/open_api_sdk/dub.rb +4 -7
- data/lib/open_api_sdk/links.rb +55 -143
- data/lib/open_api_sdk/metatags.rb +1 -2
- data/lib/open_api_sdk/models/operations/bulkcreatelinks_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb +5 -8
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/color.rb +2 -1
- data/lib/open_api_sdk/models/operations/createdomain_requestbody.rb +3 -9
- data/lib/open_api_sdk/models/operations/createdomain_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/createlink_requestbody.rb +7 -39
- data/lib/open_api_sdk/models/operations/createlink_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/createtag_requestbody.rb +1 -1
- data/lib/open_api_sdk/models/operations/createtag_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/data.rb +7 -36
- data/lib/open_api_sdk/models/operations/deletedomain_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/deletedomain_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/deletedomain_responsebody.rb +1 -1
- data/lib/open_api_sdk/models/operations/deletelink_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/deletelink_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletelink_responsebody.rb +2 -2
- data/lib/open_api_sdk/models/operations/event.rb +3 -2
- data/lib/open_api_sdk/models/operations/getlinkinfo_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/getlinkinfo_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/getlinks_request.rb +7 -10
- data/lib/open_api_sdk/models/operations/getlinks_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/getlinkscount_request.rb +3 -3
- data/lib/open_api_sdk/models/operations/getlinkscount_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/getmetatags_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/getmetatags_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/getmetatags_responsebody.rb +1 -1
- data/lib/open_api_sdk/models/operations/getqrcode_request.rb +4 -13
- data/lib/open_api_sdk/models/operations/getqrcode_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/gettags_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/getworkspace_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/getworkspace_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/groupby.rb +4 -7
- data/lib/open_api_sdk/models/operations/interval.rb +3 -2
- data/lib/open_api_sdk/models/operations/level.rb +2 -1
- data/lib/open_api_sdk/models/operations/listdomains_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/paymentprocessor.rb +2 -1
- data/lib/open_api_sdk/models/operations/requestbody.rb +7 -39
- data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +10 -25
- data/lib/open_api_sdk/models/operations/retrieveanalytics_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/sort.rb +2 -1
- data/lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb +1 -1
- data/lib/open_api_sdk/models/operations/trackcustomer_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb +1 -1
- data/lib/open_api_sdk/models/operations/tracklead_requestbody.rb +7 -12
- data/lib/open_api_sdk/models/operations/tracklead_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/tracklead_responsebody.rb +22 -7
- data/lib/open_api_sdk/models/operations/tracksale_requestbody.rb +6 -11
- data/lib/open_api_sdk/models/operations/tracksale_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/tracksale_responsebody.rb +19 -7
- data/lib/open_api_sdk/models/operations/updatedomain_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/updatedomain_requestbody.rb +3 -9
- data/lib/open_api_sdk/models/operations/updatedomain_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/updatelink_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/updatelink_requestbody.rb +8 -40
- data/lib/open_api_sdk/models/operations/updatelink_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/updatetag_color.rb +2 -1
- data/lib/open_api_sdk/models/operations/updatetag_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/updatetag_requestbody.rb +1 -1
- data/lib/open_api_sdk/models/operations/updatetag_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/updateworkspace_request.rb +1 -1
- data/lib/open_api_sdk/models/operations/updateworkspace_requestbody.rb +3 -6
- data/lib/open_api_sdk/models/operations/updateworkspace_response.rb +1 -1
- data/lib/open_api_sdk/models/operations/upsertlink_requestbody.rb +7 -39
- data/lib/open_api_sdk/models/operations/upsertlink_response.rb +1 -1
- data/lib/open_api_sdk/models/operations.rb +19 -56
- data/lib/open_api_sdk/models/shared/badrequest.rb +2 -2
- data/lib/open_api_sdk/models/shared/code.rb +2 -1
- data/lib/open_api_sdk/models/shared/color.rb +2 -1
- data/lib/open_api_sdk/models/shared/conflict.rb +2 -2
- data/lib/open_api_sdk/models/shared/conflict_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/conflict_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/countrycode.rb +2 -1
- data/lib/open_api_sdk/models/shared/domains.rb +3 -6
- data/lib/open_api_sdk/models/shared/domainschema.rb +3 -12
- data/lib/open_api_sdk/models/shared/error.rb +1 -1
- data/lib/open_api_sdk/models/shared/forbidden.rb +2 -2
- data/lib/open_api_sdk/models/shared/forbidden_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/forbidden_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/geo.rb +1 -1
- data/lib/open_api_sdk/models/shared/internalservererror.rb +2 -2
- data/lib/open_api_sdk/models/shared/internalservererror_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/internalservererror_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/inviteexpired.rb +2 -2
- data/lib/open_api_sdk/models/shared/inviteexpired_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/inviteexpired_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/linkgeotargeting.rb +1 -1
- data/lib/open_api_sdk/models/shared/linkschema.rb +4 -19
- data/lib/open_api_sdk/models/shared/notfound.rb +2 -2
- data/lib/open_api_sdk/models/shared/notfound_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/notfound_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/plan.rb +2 -1
- data/lib/open_api_sdk/models/shared/ratelimitexceeded.rb +2 -2
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/role.rb +2 -1
- data/lib/open_api_sdk/models/shared/security.rb +3 -3
- data/lib/open_api_sdk/models/shared/tagschema.rb +1 -1
- data/lib/open_api_sdk/models/shared/unauthorized.rb +2 -2
- data/lib/open_api_sdk/models/shared/unauthorized_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/unauthorized_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/unprocessableentity.rb +2 -2
- data/lib/open_api_sdk/models/shared/unprocessableentity_code.rb +2 -1
- data/lib/open_api_sdk/models/shared/unprocessableentity_error.rb +1 -1
- data/lib/open_api_sdk/models/shared/users.rb +1 -1
- data/lib/open_api_sdk/models/shared/workspaceschema.rb +7 -46
- data/lib/open_api_sdk/models/shared.rb +2 -9
- data/lib/open_api_sdk/qr_codes.rb +2 -2
- data/lib/open_api_sdk/sdkconfiguration.rb +4 -4
- data/lib/open_api_sdk/tags.rb +28 -113
- data/lib/open_api_sdk/track.rb +1 -6
- data/lib/open_api_sdk/utils/metadata_fields.rb +1 -1
- data/lib/open_api_sdk/utils/t.rb +1 -1
- data/lib/open_api_sdk/utils/utils.rb +1 -1
- data/lib/open_api_sdk/workspaces.rb +1 -3
- metadata +10 -57
- data/lib/open_api_sdk/customers.rb +0 -439
- data/lib/open_api_sdk/embed_tokens.rb +0 -107
- data/lib/open_api_sdk/events.rb +0 -100
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/click.rb +0 -24
- data/lib/open_api_sdk/models/operations/createcustomer_requestbody.rb +0 -33
- data/lib/open_api_sdk/models/operations/createcustomer_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/createcustomer_responsebody.rb +0 -39
- data/lib/open_api_sdk/models/operations/createembedtoken_requestbody.rb +0 -24
- data/lib/open_api_sdk/models/operations/createembedtoken_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/createembedtoken_responsebody.rb +0 -27
- data/lib/open_api_sdk/models/operations/customer.rb +0 -33
- data/lib/open_api_sdk/models/operations/deletecustomer_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletecustomer_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/deletecustomer_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletetag_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletetag_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/deletetag_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/getcustomer_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/getcustomer_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/getcustomer_responsebody.rb +0 -39
- data/lib/open_api_sdk/models/operations/getcustomers_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/listdomains_request.rb +0 -33
- data/lib/open_api_sdk/models/operations/listevents_request.rb +0 -105
- data/lib/open_api_sdk/models/operations/listevents_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/order.rb +0 -18
- data/lib/open_api_sdk/models/operations/queryparam_event.rb +0 -19
- data/lib/open_api_sdk/models/operations/queryparam_interval.rb +0 -23
- data/lib/open_api_sdk/models/operations/queryparam_trigger.rb +0 -18
- data/lib/open_api_sdk/models/operations/responsebody.rb +0 -39
- data/lib/open_api_sdk/models/operations/sale.rb +0 -36
- data/lib/open_api_sdk/models/operations/sortby.rb +0 -17
- data/lib/open_api_sdk/models/operations/tracksale_customer.rb +0 -36
- data/lib/open_api_sdk/models/operations/trigger.rb +0 -18
- data/lib/open_api_sdk/models/operations/updatecustomer_request.rb +0 -27
- data/lib/open_api_sdk/models/operations/updatecustomer_requestbody.rb +0 -33
- data/lib/open_api_sdk/models/operations/updatecustomer_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/updatecustomer_responsebody.rb +0 -39
- data/lib/open_api_sdk/models/shared/click.rb +0 -60
- data/lib/open_api_sdk/models/shared/clickevent.rb +0 -98
- data/lib/open_api_sdk/models/shared/clickevent_geo.rb +0 -771
- data/lib/open_api_sdk/models/shared/continentcode.rb +0 -23
- data/lib/open_api_sdk/models/shared/event.rb +0 -17
- data/lib/open_api_sdk/models/shared/link.rb +0 -157
- data/lib/open_api_sdk/models/shared/registereddomain.rb +0 -30
@@ -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
|
@@ -1,107 +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 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
|
data/lib/open_api_sdk/events.rb
DELETED
@@ -1,100 +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 Events
|
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::ListEventsRequest)).returns(::OpenApiSDK::Operations::ListEventsResponse) }
|
23
|
-
def list(request)
|
24
|
-
# list - Retrieve a list of events
|
25
|
-
# Retrieve a paginated list of events for the authenticated workspace.
|
26
|
-
url, params = @sdk_configuration.get_server_details
|
27
|
-
base_url = Utils.template_url(url, params)
|
28
|
-
url = "#{base_url}/events"
|
29
|
-
headers = {}
|
30
|
-
query_params = Utils.get_query_params(::OpenApiSDK::Operations::ListEventsRequest, request)
|
31
|
-
headers['Accept'] = 'application/json'
|
32
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
33
|
-
|
34
|
-
r = @sdk_configuration.client.get(url) do |req|
|
35
|
-
req.headers = headers
|
36
|
-
req.params = query_params
|
37
|
-
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
38
|
-
end
|
39
|
-
|
40
|
-
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
41
|
-
|
42
|
-
res = ::OpenApiSDK::Operations::ListEventsResponse.new(
|
43
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
44
|
-
)
|
45
|
-
if r.status == 200
|
46
|
-
if Utils.match_content_type(content_type, 'application/json')
|
47
|
-
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::ClickEvent])
|
48
|
-
res.click_events = out
|
49
|
-
end
|
50
|
-
elsif r.status == 400
|
51
|
-
if Utils.match_content_type(content_type, 'application/json')
|
52
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
53
|
-
res.bad_request = out
|
54
|
-
end
|
55
|
-
elsif r.status == 401
|
56
|
-
if Utils.match_content_type(content_type, 'application/json')
|
57
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
58
|
-
res.unauthorized = out
|
59
|
-
end
|
60
|
-
elsif r.status == 403
|
61
|
-
if Utils.match_content_type(content_type, 'application/json')
|
62
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
63
|
-
res.forbidden = out
|
64
|
-
end
|
65
|
-
elsif r.status == 404
|
66
|
-
if Utils.match_content_type(content_type, 'application/json')
|
67
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
68
|
-
res.not_found = out
|
69
|
-
end
|
70
|
-
elsif r.status == 409
|
71
|
-
if Utils.match_content_type(content_type, 'application/json')
|
72
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
73
|
-
res.conflict = out
|
74
|
-
end
|
75
|
-
elsif r.status == 410
|
76
|
-
if Utils.match_content_type(content_type, 'application/json')
|
77
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
78
|
-
res.invite_expired = out
|
79
|
-
end
|
80
|
-
elsif r.status == 422
|
81
|
-
if Utils.match_content_type(content_type, 'application/json')
|
82
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
83
|
-
res.unprocessable_entity = out
|
84
|
-
end
|
85
|
-
elsif r.status == 429
|
86
|
-
if Utils.match_content_type(content_type, 'application/json')
|
87
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
88
|
-
res.rate_limit_exceeded = out
|
89
|
-
end
|
90
|
-
elsif r.status == 500
|
91
|
-
if Utils.match_content_type(content_type, 'application/json')
|
92
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
93
|
-
res.internal_server_error = out
|
94
|
-
end
|
95
|
-
end
|
96
|
-
|
97
|
-
res
|
98
|
-
end
|
99
|
-
end
|
100
|
-
end
|
@@ -1,24 +0,0 @@
|
|
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 BulkDeleteLinksRequest < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
-
extend T::Sig
|
13
|
-
|
14
|
-
# Comma-separated list of link IDs to delete. Maximum of 100 IDs. Non-existing IDs will be ignored.
|
15
|
-
field :link_ids, T::Array[::String], { 'query_param': { 'field_name': 'linkIds', 'style': 'form', 'explode': false } }
|
16
|
-
|
17
|
-
|
18
|
-
sig { params(link_ids: T::Array[::String]).void }
|
19
|
-
def initialize(link_ids: nil)
|
20
|
-
@link_ids = link_ids
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|