dub 0.2.2 → 0.3.0
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 +4 -4
- data/lib/{open_api_sdk/utils → crystalline}/metadata_fields.rb +33 -20
- data/lib/{open_api_sdk/utils → crystalline}/t.rb +1 -1
- data/lib/crystalline/utils.rb +65 -0
- data/lib/crystalline.rb +12 -0
- data/lib/dub.rb +10 -6
- data/lib/open_api_sdk/analytics.rb +72 -17
- data/lib/open_api_sdk/commissions.rb +298 -0
- data/lib/open_api_sdk/customers.rb +709 -0
- data/lib/open_api_sdk/domains.rb +574 -88
- data/lib/open_api_sdk/dub.rb +57 -46
- data/lib/open_api_sdk/embed_tokens.rb +163 -0
- data/lib/open_api_sdk/events.rb +154 -0
- data/lib/open_api_sdk/folders.rb +570 -0
- data/lib/open_api_sdk/links.rb +799 -188
- data/lib/open_api_sdk/models/operations/accesslevel.rb +18 -0
- data/lib/open_api_sdk/models/operations/bulkcreatelinks_response.rb +7 -7
- data/lib/open_api_sdk/models/operations/bulkcreatelinks_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/bulkdeletelinks_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb +9 -6
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/checkdomainstatus_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/checkdomainstatus_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/click.rb +24 -0
- data/lib/open_api_sdk/models/operations/color.rb +1 -2
- data/lib/open_api_sdk/models/operations/country.rb +266 -0
- data/lib/open_api_sdk/models/operations/createcustomer_discount.rb +48 -0
- data/lib/open_api_sdk/models/operations/createcustomer_link.rb +39 -0
- data/lib/open_api_sdk/models/operations/createcustomer_partner.rb +33 -0
- data/lib/open_api_sdk/models/operations/createcustomer_requestbody.rb +33 -0
- data/lib/open_api_sdk/models/operations/createcustomer_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/createcustomer_responsebody.rb +60 -0
- data/lib/open_api_sdk/models/operations/createcustomer_type.rb +18 -0
- data/lib/open_api_sdk/models/operations/createdomain_requestbody.rb +16 -4
- data/lib/open_api_sdk/models/operations/createdomain_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/createfolder_requestbody.rb +27 -0
- data/lib/open_api_sdk/models/operations/createfolder_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/createlink_requestbody.rb +63 -13
- data/lib/open_api_sdk/models/operations/createlink_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/createpartner_link.rb +48 -0
- data/lib/open_api_sdk/models/operations/createpartner_requestbody.rb +45 -0
- data/lib/open_api_sdk/models/operations/{trackcustomer_response.rb → createpartner_response.rb} +5 -5
- data/lib/open_api_sdk/models/operations/createpartner_responsebody.rb +104 -0
- data/lib/open_api_sdk/models/operations/createpartner_status.rb +23 -0
- data/lib/open_api_sdk/models/operations/createpartner_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/createpartnerlink_linkprops.rb +111 -0
- data/lib/open_api_sdk/models/operations/createpartnerlink_requestbody.rb +39 -0
- data/lib/open_api_sdk/models/operations/createpartnerlink_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/createpartnerlink_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_country.rb +266 -0
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_linkprops.rb +111 -0
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_requestbody.rb +30 -0
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_responsebody.rb +27 -0
- data/lib/open_api_sdk/models/operations/createreferralsembedtoken_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/createtag_requestbody.rb +2 -2
- data/lib/open_api_sdk/models/operations/createtag_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/customer.rb +33 -0
- data/lib/open_api_sdk/models/operations/data.rb +59 -12
- data/lib/open_api_sdk/models/operations/deletecustomer_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/deletecustomer_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/deletecustomer_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/deletedomain_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletedomain_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletedomain_responsebody.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletefolder_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/deletefolder_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/deletefolder_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/deletelink_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/deletelink_response.rb +3 -3
- data/lib/open_api_sdk/models/operations/deletelink_responsebody.rb +3 -3
- data/lib/open_api_sdk/models/operations/deletetag_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/deletetag_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/deletetag_responsebody.rb +24 -0
- data/lib/open_api_sdk/models/operations/discount.rb +48 -0
- data/lib/open_api_sdk/models/operations/event.rb +2 -3
- data/lib/open_api_sdk/models/operations/getcustomer_discount.rb +48 -0
- data/lib/open_api_sdk/models/operations/getcustomer_link.rb +39 -0
- data/lib/open_api_sdk/models/operations/getcustomer_partner.rb +33 -0
- data/lib/open_api_sdk/models/operations/getcustomer_request.rb +27 -0
- data/lib/open_api_sdk/models/operations/getcustomer_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/getcustomer_responsebody.rb +60 -0
- data/lib/open_api_sdk/models/operations/getcustomer_type.rb +18 -0
- data/lib/open_api_sdk/models/operations/getcustomers_link.rb +39 -0
- data/lib/open_api_sdk/models/operations/getcustomers_partner.rb +33 -0
- data/lib/open_api_sdk/models/operations/getcustomers_queryparam_sortby.rb +18 -0
- data/lib/open_api_sdk/models/operations/getcustomers_queryparam_sortorder.rb +18 -0
- data/lib/open_api_sdk/models/operations/getcustomers_request.rb +51 -0
- data/lib/open_api_sdk/models/operations/getcustomers_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/getcustomers_responsebody.rb +60 -0
- data/lib/open_api_sdk/models/operations/getcustomers_type.rb +18 -0
- data/lib/open_api_sdk/models/operations/getlinkinfo_request.rb +3 -3
- data/lib/open_api_sdk/models/operations/getlinkinfo_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/getlinks_request.rb +26 -11
- data/lib/open_api_sdk/models/operations/getlinks_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/getlinkscount_request.rb +14 -8
- data/lib/open_api_sdk/models/operations/getlinkscount_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/getqrcode_request.rb +14 -5
- data/lib/open_api_sdk/models/operations/getqrcode_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/gettags_queryparam_sortby.rb +18 -0
- data/lib/open_api_sdk/models/operations/gettags_queryparam_sortorder.rb +18 -0
- data/lib/open_api_sdk/models/operations/gettags_request.rb +39 -0
- data/lib/open_api_sdk/models/operations/gettags_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/getworkspace_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/getworkspace_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/groupby.rb +13 -4
- data/lib/open_api_sdk/models/operations/interval.rb +5 -5
- data/lib/open_api_sdk/models/operations/level.rb +1 -2
- data/lib/open_api_sdk/models/operations/link.rb +48 -0
- data/lib/open_api_sdk/models/operations/linkprops.rb +111 -0
- data/lib/open_api_sdk/models/operations/listcommissions_queryparam_interval.rb +25 -0
- data/lib/open_api_sdk/models/operations/listcommissions_queryparam_sortby.rb +18 -0
- data/lib/open_api_sdk/models/operations/listcommissions_queryparam_sortorder.rb +18 -0
- data/lib/open_api_sdk/models/operations/listcommissions_request.rb +60 -0
- data/lib/open_api_sdk/models/operations/listcommissions_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/listcommissions_responsebody.rb +51 -0
- data/lib/open_api_sdk/models/operations/listcommissions_status.rb +23 -0
- data/lib/open_api_sdk/models/operations/listcommissions_type.rb +20 -0
- data/lib/open_api_sdk/models/operations/listdomains_request.rb +33 -0
- data/lib/open_api_sdk/models/operations/listdomains_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/listevents_request.rb +138 -0
- data/lib/open_api_sdk/models/operations/listevents_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/listfolders_request.rb +30 -0
- data/lib/open_api_sdk/models/operations/listfolders_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/mode.rb +18 -0
- data/lib/open_api_sdk/models/operations/order.rb +20 -0
- data/lib/open_api_sdk/models/operations/partner.rb +45 -0
- data/lib/open_api_sdk/models/operations/paymentprocessor.rb +3 -2
- data/lib/open_api_sdk/models/operations/queryparam_event.rb +19 -0
- data/lib/open_api_sdk/models/operations/queryparam_groupby.rb +19 -0
- data/lib/open_api_sdk/models/operations/queryparam_interval.rb +25 -0
- data/lib/open_api_sdk/models/operations/queryparam_sortby.rb +17 -0
- data/lib/open_api_sdk/models/operations/queryparam_sortorder.rb +18 -0
- data/lib/open_api_sdk/models/operations/queryparam_status.rb +23 -0
- data/lib/open_api_sdk/models/operations/queryparam_trigger.rb +18 -0
- data/lib/open_api_sdk/models/operations/registerdomain_requestbody.rb +24 -0
- data/lib/open_api_sdk/models/operations/registerdomain_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/registerdomain_responsebody.rb +30 -0
- data/lib/open_api_sdk/models/operations/requestbody.rb +63 -13
- data/lib/open_api_sdk/models/operations/responsebody.rb +33 -0
- data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +60 -15
- data/lib/open_api_sdk/models/operations/retrieveanalytics_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/retrievelinks_request.rb +27 -0
- data/lib/open_api_sdk/models/operations/retrievelinks_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/retrievepartneranalytics_queryparam_interval.rb +25 -0
- data/lib/open_api_sdk/models/operations/retrievepartneranalytics_request.rb +42 -0
- data/lib/open_api_sdk/models/operations/retrievepartneranalytics_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/sale.rb +36 -0
- data/lib/open_api_sdk/models/operations/sort.rb +5 -3
- data/lib/open_api_sdk/models/operations/sortby.rb +20 -0
- data/lib/open_api_sdk/models/operations/sortorder.rb +18 -0
- data/lib/open_api_sdk/models/operations/status.rb +20 -0
- data/lib/open_api_sdk/models/operations/testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/tracklead_requestbody.rb +19 -13
- data/lib/open_api_sdk/models/operations/tracklead_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/tracklead_responsebody.rb +8 -23
- data/lib/open_api_sdk/models/operations/tracksale_customer.rb +36 -0
- data/lib/open_api_sdk/models/operations/tracksale_requestbody.rb +15 -12
- data/lib/open_api_sdk/models/operations/tracksale_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/tracksale_responsebody.rb +8 -20
- data/lib/open_api_sdk/models/operations/trigger.rb +18 -0
- data/lib/open_api_sdk/models/operations/type.rb +20 -0
- data/lib/open_api_sdk/models/operations/updatecommission_request.rb +27 -0
- data/lib/open_api_sdk/models/operations/updatecommission_requestbody.rb +33 -0
- data/lib/open_api_sdk/models/operations/updatecommission_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/updatecommission_responsebody.rb +51 -0
- data/lib/open_api_sdk/models/operations/updatecommission_status.rb +23 -0
- data/lib/open_api_sdk/models/operations/updatecommission_type.rb +20 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_discount.rb +48 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_link.rb +39 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_partner.rb +33 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_request.rb +30 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_requestbody.rb +33 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_responsebody.rb +60 -0
- data/lib/open_api_sdk/models/operations/updatecustomer_type.rb +18 -0
- data/lib/open_api_sdk/models/operations/updatedomain_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatedomain_requestbody.rb +16 -4
- data/lib/open_api_sdk/models/operations/updatedomain_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatefolder_accesslevel.rb +18 -0
- data/lib/open_api_sdk/models/operations/updatefolder_request.rb +27 -0
- data/lib/open_api_sdk/models/operations/updatefolder_requestbody.rb +27 -0
- data/lib/open_api_sdk/models/operations/updatefolder_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/updatelink_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatelink_requestbody.rb +61 -17
- data/lib/open_api_sdk/models/operations/updatelink_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatelink_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/updatetag_color.rb +1 -2
- data/lib/open_api_sdk/models/operations/updatetag_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatetag_requestbody.rb +2 -2
- data/lib/open_api_sdk/models/operations/updatetag_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/updateworkspace_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/updateworkspace_requestbody.rb +13 -4
- data/lib/open_api_sdk/models/operations/updateworkspace_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/upsertlink_requestbody.rb +63 -13
- data/lib/open_api_sdk/models/operations/upsertlink_response.rb +2 -2
- data/lib/open_api_sdk/models/operations/upsertlink_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_linkprops.rb +111 -0
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_requestbody.rb +39 -0
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_response.rb +60 -0
- data/lib/open_api_sdk/models/operations/upsertpartnerlink_testvariants.rb +27 -0
- data/lib/open_api_sdk/models/operations.rb +149 -25
- data/lib/open_api_sdk/models/shared/accesslevel.rb +18 -0
- data/lib/open_api_sdk/models/shared/badrequest.rb +3 -3
- data/lib/open_api_sdk/models/shared/code.rb +1 -2
- data/lib/open_api_sdk/models/shared/color.rb +1 -2
- data/lib/open_api_sdk/models/shared/conflict.rb +3 -3
- data/lib/open_api_sdk/models/shared/conflict_code.rb +1 -2
- data/lib/open_api_sdk/models/shared/conflict_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/continentcode.rb +23 -0
- data/lib/open_api_sdk/models/shared/countrycode.rb +2 -3
- data/lib/open_api_sdk/models/shared/domains.rb +7 -4
- data/lib/open_api_sdk/models/shared/domainschema.rb +19 -4
- data/lib/open_api_sdk/models/shared/error.rb +2 -2
- data/lib/open_api_sdk/models/shared/folderschema.rb +39 -0
- data/lib/open_api_sdk/models/shared/forbidden.rb +3 -3
- data/lib/open_api_sdk/models/shared/forbidden_code.rb +1 -2
- data/lib/open_api_sdk/models/shared/forbidden_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/geo.rb +2 -2
- data/lib/open_api_sdk/models/shared/internalservererror.rb +3 -3
- data/lib/open_api_sdk/models/shared/internalservererror_code.rb +1 -2
- data/lib/open_api_sdk/models/shared/internalservererror_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/inviteexpired.rb +3 -3
- data/lib/open_api_sdk/models/shared/inviteexpired_code.rb +1 -2
- data/lib/open_api_sdk/models/shared/inviteexpired_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/linkgeotargeting.rb +2 -2
- data/lib/open_api_sdk/models/shared/linkschema.rb +42 -12
- data/lib/open_api_sdk/models/shared/notfound.rb +3 -3
- data/lib/open_api_sdk/models/shared/notfound_code.rb +1 -2
- data/lib/open_api_sdk/models/shared/notfound_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/plan.rb +2 -2
- data/lib/open_api_sdk/models/shared/ratelimitexceeded.rb +3 -3
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_code.rb +1 -2
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/registereddomain.rb +30 -0
- data/lib/open_api_sdk/models/shared/role.rb +1 -2
- data/lib/open_api_sdk/models/shared/security.rb +4 -4
- data/lib/open_api_sdk/models/shared/tagschema.rb +2 -2
- data/lib/open_api_sdk/models/shared/testvariants.rb +27 -0
- data/lib/open_api_sdk/models/shared/type.rb +18 -0
- data/lib/open_api_sdk/models/shared/unauthorized.rb +3 -3
- data/lib/open_api_sdk/models/shared/unauthorized_code.rb +1 -2
- data/lib/open_api_sdk/models/shared/unauthorized_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/unprocessableentity.rb +3 -3
- data/lib/open_api_sdk/models/shared/unprocessableentity_code.rb +1 -2
- data/lib/open_api_sdk/models/shared/unprocessableentity_error.rb +2 -2
- data/lib/open_api_sdk/models/shared/users.rb +7 -4
- data/lib/open_api_sdk/models/shared/workspaceschema.rb +50 -8
- data/lib/open_api_sdk/models/shared.rb +8 -2
- data/lib/open_api_sdk/partners.rb +701 -0
- data/lib/open_api_sdk/qr_codes.rb +71 -17
- data/lib/open_api_sdk/sdk_hooks/hooks.rb +103 -0
- data/lib/open_api_sdk/sdk_hooks/registration.rb +35 -0
- data/lib/open_api_sdk/sdk_hooks/types.rb +152 -0
- data/lib/open_api_sdk/sdkconfiguration.rb +33 -10
- data/lib/open_api_sdk/tags.rb +366 -68
- data/lib/open_api_sdk/track.rb +148 -122
- data/lib/open_api_sdk/utils/retries.rb +95 -0
- data/lib/open_api_sdk/utils/utils.rb +26 -60
- data/lib/open_api_sdk/workspaces.rb +145 -36
- metadata +198 -15
- data/lib/open_api_sdk/metatags.rb +0 -54
- data/lib/open_api_sdk/models/operations/getmetatags_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/getmetatags_response.rb +0 -33
- data/lib/open_api_sdk/models/operations/getmetatags_responsebody.rb +0 -30
- data/lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb +0 -33
- data/lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb +0 -33
@@ -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 GetCustomersResponse < ::Crystalline::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# HTTP response content type for this operation
|
15
|
+
field :content_type, ::String
|
16
|
+
# Raw HTTP response; suitable for custom response parsing
|
17
|
+
field :raw_response, ::Faraday::Response
|
18
|
+
# HTTP response status code for this operation
|
19
|
+
field :status_code, ::Integer
|
20
|
+
# The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).
|
21
|
+
field :bad_request, T.nilable(::OpenApiSDK::Shared::BadRequest)
|
22
|
+
# This response is sent when a request conflicts with the current state of the server.
|
23
|
+
field :conflict, T.nilable(::OpenApiSDK::Shared::Conflict)
|
24
|
+
# The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.
|
25
|
+
field :forbidden, T.nilable(::OpenApiSDK::Shared::Forbidden)
|
26
|
+
# The server has encountered a situation it does not know how to handle.
|
27
|
+
field :internal_server_error, T.nilable(::OpenApiSDK::Shared::InternalServerError)
|
28
|
+
# This response is sent when the requested content has been permanently deleted from server, with no forwarding address.
|
29
|
+
field :invite_expired, T.nilable(::OpenApiSDK::Shared::InviteExpired)
|
30
|
+
# The server cannot find the requested resource.
|
31
|
+
field :not_found, T.nilable(::OpenApiSDK::Shared::NotFound)
|
32
|
+
# The user has sent too many requests in a given amount of time ("rate limiting")
|
33
|
+
field :rate_limit_exceeded, T.nilable(::OpenApiSDK::Shared::RateLimitExceeded)
|
34
|
+
# The list of customers.
|
35
|
+
field :response_bodies, T.nilable(T::Array[::OpenApiSDK::Operations::GetCustomersResponseBody])
|
36
|
+
# Although the HTTP standard specifies "unauthorized", semantically this response means "unauthenticated". That is, the client must authenticate itself to get the requested response.
|
37
|
+
field :unauthorized, T.nilable(::OpenApiSDK::Shared::Unauthorized)
|
38
|
+
# The request was well-formed but was unable to be followed due to semantic errors.
|
39
|
+
field :unprocessable_entity, T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)
|
40
|
+
|
41
|
+
|
42
|
+
sig { params(content_type: ::String, raw_response: ::Faraday::Response, status_code: ::Integer, bad_request: T.nilable(::OpenApiSDK::Shared::BadRequest), conflict: T.nilable(::OpenApiSDK::Shared::Conflict), forbidden: T.nilable(::OpenApiSDK::Shared::Forbidden), internal_server_error: T.nilable(::OpenApiSDK::Shared::InternalServerError), invite_expired: T.nilable(::OpenApiSDK::Shared::InviteExpired), not_found: T.nilable(::OpenApiSDK::Shared::NotFound), rate_limit_exceeded: T.nilable(::OpenApiSDK::Shared::RateLimitExceeded), response_bodies: T.nilable(T::Array[::OpenApiSDK::Operations::GetCustomersResponseBody]), unauthorized: T.nilable(::OpenApiSDK::Shared::Unauthorized), unprocessable_entity: T.nilable(::OpenApiSDK::Shared::UnprocessableEntity)).void }
|
43
|
+
def initialize(content_type: nil, raw_response: nil, status_code: nil, bad_request: nil, conflict: nil, forbidden: nil, internal_server_error: nil, invite_expired: nil, not_found: nil, rate_limit_exceeded: nil, response_bodies: nil, unauthorized: nil, unprocessable_entity: nil)
|
44
|
+
@content_type = content_type
|
45
|
+
@raw_response = raw_response
|
46
|
+
@status_code = status_code
|
47
|
+
@bad_request = bad_request
|
48
|
+
@conflict = conflict
|
49
|
+
@forbidden = forbidden
|
50
|
+
@internal_server_error = internal_server_error
|
51
|
+
@invite_expired = invite_expired
|
52
|
+
@not_found = not_found
|
53
|
+
@rate_limit_exceeded = rate_limit_exceeded
|
54
|
+
@response_bodies = response_bodies
|
55
|
+
@unauthorized = unauthorized
|
56
|
+
@unprocessable_entity = unprocessable_entity
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
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 GetCustomersResponseBody < ::Crystalline::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# The date the customer was created.
|
15
|
+
field :created_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('createdAt') } }
|
16
|
+
# Unique identifier for the customer in the client's app.
|
17
|
+
field :external_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('externalId') } }
|
18
|
+
# The unique ID of the customer. You may use either the customer's `id` on Dub (obtained via `/customers` endpoint) or their `externalId` (unique ID within your system, prefixed with `ext_`, e.g. `ext_123`).
|
19
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
20
|
+
# Name of the customer.
|
21
|
+
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
22
|
+
# Avatar URL of the customer.
|
23
|
+
field :avatar, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('avatar') } }
|
24
|
+
# Country of the customer.
|
25
|
+
field :country, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('country') } }
|
26
|
+
|
27
|
+
field :discount, T.nilable(::OpenApiSDK::Operations::Discount), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('discount') } }
|
28
|
+
# Email of the customer.
|
29
|
+
field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
30
|
+
|
31
|
+
field :link, T.nilable(::OpenApiSDK::Operations::GetCustomersLink), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('link') } }
|
32
|
+
|
33
|
+
field :partner, T.nilable(::OpenApiSDK::Operations::GetCustomersPartner), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('partner') } }
|
34
|
+
|
35
|
+
field :program_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('programId') } }
|
36
|
+
# Total amount of sales for the customer.
|
37
|
+
field :sale_amount, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('saleAmount') } }
|
38
|
+
# Total number of sales for the customer.
|
39
|
+
field :sales, T.nilable(::Float), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('sales') } }
|
40
|
+
|
41
|
+
|
42
|
+
sig { params(created_at: ::String, external_id: ::String, id: ::String, name: ::String, avatar: T.nilable(::String), country: T.nilable(::String), discount: T.nilable(::OpenApiSDK::Operations::Discount), email: T.nilable(::String), link: T.nilable(::OpenApiSDK::Operations::GetCustomersLink), partner: T.nilable(::OpenApiSDK::Operations::GetCustomersPartner), program_id: T.nilable(::String), sale_amount: T.nilable(::Float), sales: T.nilable(::Float)).void }
|
43
|
+
def initialize(created_at: nil, external_id: nil, id: nil, name: nil, avatar: nil, country: nil, discount: nil, email: nil, link: nil, partner: nil, program_id: nil, sale_amount: nil, sales: nil)
|
44
|
+
@created_at = created_at
|
45
|
+
@external_id = external_id
|
46
|
+
@id = id
|
47
|
+
@name = name
|
48
|
+
@avatar = avatar
|
49
|
+
@country = country
|
50
|
+
@discount = discount
|
51
|
+
@email = email
|
52
|
+
@link = link
|
53
|
+
@partner = partner
|
54
|
+
@program_id = program_id
|
55
|
+
@sale_amount = sale_amount
|
56
|
+
@sales = sales
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,18 @@
|
|
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 GetCustomersType < T::Enum
|
12
|
+
enums do
|
13
|
+
PERCENTAGE = new('percentage')
|
14
|
+
FLAT = new('flat')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -8,12 +8,12 @@ module OpenApiSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class GetLinkInfoRequest < ::
|
11
|
+
class GetLinkInfoRequest < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
|
15
15
|
field :domain, T.nilable(::String), { 'query_param': { 'field_name': 'domain', 'style': 'form', 'explode': true } }
|
16
|
-
# This is the ID of the link in the your database.
|
16
|
+
# This is the ID of the link in the your database.
|
17
17
|
field :external_id, T.nilable(::String), { 'query_param': { 'field_name': 'externalId', 'style': 'form', 'explode': true } }
|
18
18
|
# The key of the link to retrieve. E.g. for `d.to/github`, the key is `github`.
|
19
19
|
field :key, T.nilable(::String), { 'query_param': { 'field_name': 'key', 'style': 'form', 'explode': true } }
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -8,7 +8,7 @@ module OpenApiSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class GetLinkInfoResponse < ::
|
11
|
+
class GetLinkInfoResponse < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# HTTP response content type for this operation
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -8,41 +8,56 @@ module OpenApiSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class GetLinksRequest < ::
|
11
|
+
class GetLinksRequest < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# The domain to filter the links by. E.g. `ac.me`. If not provided, all links for the workspace will be returned.
|
15
15
|
field :domain, T.nilable(::String), { 'query_param': { 'field_name': 'domain', 'style': 'form', 'explode': true } }
|
16
|
-
# The
|
17
|
-
field :
|
16
|
+
# The folder ID to filter the links by.
|
17
|
+
field :folder_id, T.nilable(::String), { 'query_param': { 'field_name': 'folderId', 'style': 'form', 'explode': true } }
|
18
|
+
# The page number for pagination.
|
19
|
+
field :page, T.nilable(::Float), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
20
|
+
# The number of items per page.
|
21
|
+
field :page_size, T.nilable(::Float), { 'query_param': { 'field_name': 'pageSize', 'style': 'form', 'explode': true } }
|
18
22
|
# The search term to filter the links by. The search term will be matched against the short link slug and the destination url.
|
19
23
|
field :search, T.nilable(::String), { 'query_param': { 'field_name': 'search', 'style': 'form', 'explode': true } }
|
20
24
|
# Whether to include archived links in the response. Defaults to `false` if not provided.
|
21
25
|
field :show_archived, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'showArchived', 'style': 'form', 'explode': true } }
|
22
|
-
#
|
26
|
+
# DEPRECATED. Use `sortBy` instead.
|
23
27
|
field :sort, T.nilable(::OpenApiSDK::Operations::Sort), { 'query_param': { 'field_name': 'sort', 'style': 'form', 'explode': true } }
|
24
|
-
# The
|
28
|
+
# The field to sort the links by. The default is `createdAt`.
|
29
|
+
field :sort_by, T.nilable(::OpenApiSDK::Operations::SortBy), { 'query_param': { 'field_name': 'sortBy', 'style': 'form', 'explode': true } }
|
30
|
+
# The sort order. The default is `desc`.
|
31
|
+
field :sort_order, T.nilable(::OpenApiSDK::Operations::SortOrder), { 'query_param': { 'field_name': 'sortOrder', 'style': 'form', 'explode': true } }
|
32
|
+
# Deprecated. Use `tagIds` instead. The tag ID to filter the links by.
|
25
33
|
field :tag_id, T.nilable(::String), { 'query_param': { 'field_name': 'tagId', 'style': 'form', 'explode': true } }
|
26
34
|
# The tag IDs to filter the links by.
|
27
|
-
field :tag_ids, T.nilable(::Object), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode':
|
35
|
+
field :tag_ids, T.nilable(::Object), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode': false } }
|
28
36
|
# The unique name of the tags assigned to the short link (case insensitive).
|
29
|
-
field :tag_names, T.nilable(::Object), { 'query_param': { 'field_name': 'tagNames', 'style': 'form', 'explode':
|
37
|
+
field :tag_names, T.nilable(::Object), { 'query_param': { 'field_name': 'tagNames', 'style': 'form', 'explode': false } }
|
38
|
+
# The ID of the tenant that created the link inside your system. If set, will only return links for the specified tenant.
|
39
|
+
field :tenant_id, T.nilable(::String), { 'query_param': { 'field_name': 'tenantId', 'style': 'form', 'explode': true } }
|
30
40
|
# The user ID to filter the links by.
|
31
41
|
field :user_id, T.nilable(::String), { 'query_param': { 'field_name': 'userId', 'style': 'form', 'explode': true } }
|
32
|
-
#
|
42
|
+
# DEPRECATED. Filter for links that have at least one tag assigned to them.
|
33
43
|
field :with_tags, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'withTags', 'style': 'form', 'explode': true } }
|
34
44
|
|
35
45
|
|
36
|
-
sig { params(domain: T.nilable(::String), page: T.nilable(::
|
37
|
-
def initialize(domain: nil, page: nil, search: nil, show_archived: nil, sort: nil, tag_id: nil, tag_ids: nil, tag_names: nil, user_id: nil, with_tags: nil)
|
46
|
+
sig { params(domain: T.nilable(::String), folder_id: T.nilable(::String), page: T.nilable(::Float), page_size: T.nilable(::Float), search: T.nilable(::String), show_archived: T.nilable(T::Boolean), sort: T.nilable(::OpenApiSDK::Operations::Sort), sort_by: T.nilable(::OpenApiSDK::Operations::SortBy), sort_order: T.nilable(::OpenApiSDK::Operations::SortOrder), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), tenant_id: T.nilable(::String), user_id: T.nilable(::String), with_tags: T.nilable(T::Boolean)).void }
|
47
|
+
def initialize(domain: nil, folder_id: nil, page: nil, page_size: nil, search: nil, show_archived: nil, sort: nil, sort_by: nil, sort_order: nil, tag_id: nil, tag_ids: nil, tag_names: nil, tenant_id: nil, user_id: nil, with_tags: nil)
|
38
48
|
@domain = domain
|
49
|
+
@folder_id = folder_id
|
39
50
|
@page = page
|
51
|
+
@page_size = page_size
|
40
52
|
@search = search
|
41
53
|
@show_archived = show_archived
|
42
54
|
@sort = sort
|
55
|
+
@sort_by = sort_by
|
56
|
+
@sort_order = sort_order
|
43
57
|
@tag_id = tag_id
|
44
58
|
@tag_ids = tag_ids
|
45
59
|
@tag_names = tag_names
|
60
|
+
@tenant_id = tenant_id
|
46
61
|
@user_id = user_id
|
47
62
|
@with_tags = with_tags
|
48
63
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -8,7 +8,7 @@ module OpenApiSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class GetLinksResponse < ::
|
11
|
+
class GetLinksResponse < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# HTTP response content type for this operation
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -8,38 +8,44 @@ module OpenApiSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class GetLinksCountRequest < ::
|
11
|
+
class GetLinksCountRequest < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# The domain to filter the links by. E.g. `ac.me`. If not provided, all links for the workspace will be returned.
|
15
15
|
field :domain, T.nilable(::String), { 'query_param': { 'field_name': 'domain', 'style': 'form', 'explode': true } }
|
16
|
+
# The folder ID to filter the links by.
|
17
|
+
field :folder_id, T.nilable(::String), { 'query_param': { 'field_name': 'folderId', 'style': 'form', 'explode': true } }
|
16
18
|
# The field to group the links by.
|
17
19
|
field :group_by, T.nilable(::Object), { 'query_param': { 'field_name': 'groupBy', 'style': 'form', 'explode': true } }
|
18
20
|
# The search term to filter the links by. The search term will be matched against the short link slug and the destination url.
|
19
21
|
field :search, T.nilable(::String), { 'query_param': { 'field_name': 'search', 'style': 'form', 'explode': true } }
|
20
22
|
# Whether to include archived links in the response. Defaults to `false` if not provided.
|
21
23
|
field :show_archived, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'showArchived', 'style': 'form', 'explode': true } }
|
22
|
-
# The tag ID to filter the links by.
|
24
|
+
# Deprecated. Use `tagIds` instead. The tag ID to filter the links by.
|
23
25
|
field :tag_id, T.nilable(::String), { 'query_param': { 'field_name': 'tagId', 'style': 'form', 'explode': true } }
|
24
26
|
# The tag IDs to filter the links by.
|
25
|
-
field :tag_ids, T.nilable(::Object), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode':
|
27
|
+
field :tag_ids, T.nilable(::Object), { 'query_param': { 'field_name': 'tagIds', 'style': 'form', 'explode': false } }
|
26
28
|
# The unique name of the tags assigned to the short link (case insensitive).
|
27
|
-
field :tag_names, T.nilable(::Object), { 'query_param': { 'field_name': 'tagNames', 'style': 'form', 'explode':
|
29
|
+
field :tag_names, T.nilable(::Object), { 'query_param': { 'field_name': 'tagNames', 'style': 'form', 'explode': false } }
|
30
|
+
# The ID of the tenant that created the link inside your system. If set, will only return links for the specified tenant.
|
31
|
+
field :tenant_id, T.nilable(::String), { 'query_param': { 'field_name': 'tenantId', 'style': 'form', 'explode': true } }
|
28
32
|
# The user ID to filter the links by.
|
29
33
|
field :user_id, T.nilable(::String), { 'query_param': { 'field_name': 'userId', 'style': 'form', 'explode': true } }
|
30
|
-
#
|
34
|
+
# DEPRECATED. Filter for links that have at least one tag assigned to them.
|
31
35
|
field :with_tags, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'withTags', 'style': 'form', 'explode': true } }
|
32
36
|
|
33
37
|
|
34
|
-
sig { params(domain: T.nilable(::String), group_by: T.nilable(::Object), search: T.nilable(::String), show_archived: T.nilable(T::Boolean), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), user_id: T.nilable(::String), with_tags: T.nilable(T::Boolean)).void }
|
35
|
-
def initialize(domain: nil, group_by: nil, search: nil, show_archived: nil, tag_id: nil, tag_ids: nil, tag_names: nil, user_id: nil, with_tags: nil)
|
38
|
+
sig { params(domain: T.nilable(::String), folder_id: T.nilable(::String), group_by: T.nilable(::Object), search: T.nilable(::String), show_archived: T.nilable(T::Boolean), tag_id: T.nilable(::String), tag_ids: T.nilable(::Object), tag_names: T.nilable(::Object), tenant_id: T.nilable(::String), user_id: T.nilable(::String), with_tags: T.nilable(T::Boolean)).void }
|
39
|
+
def initialize(domain: nil, folder_id: nil, group_by: nil, search: nil, show_archived: nil, tag_id: nil, tag_ids: nil, tag_names: nil, tenant_id: nil, user_id: nil, with_tags: nil)
|
36
40
|
@domain = domain
|
41
|
+
@folder_id = folder_id
|
37
42
|
@group_by = group_by
|
38
43
|
@search = search
|
39
44
|
@show_archived = show_archived
|
40
45
|
@tag_id = tag_id
|
41
46
|
@tag_ids = tag_ids
|
42
47
|
@tag_names = tag_names
|
48
|
+
@tenant_id = tenant_id
|
43
49
|
@user_id = user_id
|
44
50
|
@with_tags = with_tags
|
45
51
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -8,7 +8,7 @@ module OpenApiSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class GetLinksCountResponse < ::
|
11
|
+
class GetLinksCountResponse < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# HTTP response content type for this operation
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -8,7 +8,7 @@ module OpenApiSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class GetQRCodeRequest < ::
|
11
|
+
class GetQRCodeRequest < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# The URL to generate a QR code for.
|
@@ -17,21 +17,30 @@ module OpenApiSDK
|
|
17
17
|
field :bg_color, T.nilable(::String), { 'query_param': { 'field_name': 'bgColor', 'style': 'form', 'explode': true } }
|
18
18
|
# The foreground color of the QR code in hex format. Defaults to `#000000` if not provided.
|
19
19
|
field :fg_color, T.nilable(::String), { 'query_param': { 'field_name': 'fgColor', 'style': 'form', 'explode': true } }
|
20
|
-
# Whether to
|
20
|
+
# Whether to hide the logo in the QR code. Can only be used with a paid plan on Dub.
|
21
|
+
field :hide_logo, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'hideLogo', 'style': 'form', 'explode': true } }
|
22
|
+
# DEPRECATED: Margin is included by default. Use the `margin` prop to customize the margin size.
|
21
23
|
field :include_margin, T.nilable(T::Boolean), { 'query_param': { 'field_name': 'includeMargin', 'style': 'form', 'explode': true } }
|
22
24
|
# The level of error correction to use for the QR code. Defaults to `L` if not provided.
|
23
25
|
field :level, T.nilable(::OpenApiSDK::Operations::Level), { 'query_param': { 'field_name': 'level', 'style': 'form', 'explode': true } }
|
26
|
+
# The logo to include in the QR code. Can only be used with a paid plan on Dub.
|
27
|
+
field :logo, T.nilable(::String), { 'query_param': { 'field_name': 'logo', 'style': 'form', 'explode': true } }
|
28
|
+
# The size of the margin around the QR code. Defaults to 2 if not provided.
|
29
|
+
field :margin, T.nilable(::Float), { 'query_param': { 'field_name': 'margin', 'style': 'form', 'explode': true } }
|
24
30
|
# The size of the QR code in pixels. Defaults to `600` if not provided.
|
25
31
|
field :size, T.nilable(::Float), { 'query_param': { 'field_name': 'size', 'style': 'form', 'explode': true } }
|
26
32
|
|
27
33
|
|
28
|
-
sig { params(url: ::String, bg_color: T.nilable(::String), fg_color: T.nilable(::String), include_margin: T.nilable(T::Boolean), level: T.nilable(::OpenApiSDK::Operations::Level), size: T.nilable(::Float)).void }
|
29
|
-
def initialize(url: nil, bg_color: nil, fg_color: nil, include_margin: nil, level: nil, size: nil)
|
34
|
+
sig { params(url: ::String, bg_color: T.nilable(::String), fg_color: T.nilable(::String), hide_logo: T.nilable(T::Boolean), include_margin: T.nilable(T::Boolean), level: T.nilable(::OpenApiSDK::Operations::Level), logo: T.nilable(::String), margin: T.nilable(::Float), size: T.nilable(::Float)).void }
|
35
|
+
def initialize(url: nil, bg_color: nil, fg_color: nil, hide_logo: nil, include_margin: nil, level: nil, logo: nil, margin: nil, size: nil)
|
30
36
|
@url = url
|
31
37
|
@bg_color = bg_color
|
32
38
|
@fg_color = fg_color
|
39
|
+
@hide_logo = hide_logo
|
33
40
|
@include_margin = include_margin
|
34
41
|
@level = level
|
42
|
+
@logo = logo
|
43
|
+
@margin = margin
|
35
44
|
@size = size
|
36
45
|
end
|
37
46
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -8,7 +8,7 @@ module OpenApiSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class GetQRCodeResponse < ::
|
11
|
+
class GetQRCodeResponse < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# HTTP response content type for this operation
|
@@ -0,0 +1,18 @@
|
|
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
|
+
# GetTagsQueryParamSortBy - The field to sort the tags by.
|
11
|
+
class GetTagsQueryParamSortBy < T::Enum
|
12
|
+
enums do
|
13
|
+
NAME = new('name')
|
14
|
+
CREATED_AT = new('createdAt')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
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
|
+
# GetTagsQueryParamSortOrder - The order to sort the tags by.
|
11
|
+
class GetTagsQueryParamSortOrder < T::Enum
|
12
|
+
enums do
|
13
|
+
ASC = new('asc')
|
14
|
+
DESC = new('desc')
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
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 GetTagsRequest < ::Crystalline::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
# IDs of tags to filter by.
|
15
|
+
field :ids, T.nilable(::Object), { 'query_param': { 'field_name': 'ids', 'style': 'form', 'explode': true } }
|
16
|
+
# The page number for pagination.
|
17
|
+
field :page, T.nilable(::Float), { 'query_param': { 'field_name': 'page', 'style': 'form', 'explode': true } }
|
18
|
+
# The number of items per page.
|
19
|
+
field :page_size, T.nilable(::Float), { 'query_param': { 'field_name': 'pageSize', 'style': 'form', 'explode': true } }
|
20
|
+
# The search term to filter the tags by.
|
21
|
+
field :search, T.nilable(::String), { 'query_param': { 'field_name': 'search', 'style': 'form', 'explode': true } }
|
22
|
+
# The field to sort the tags by.
|
23
|
+
field :sort_by, T.nilable(::OpenApiSDK::Operations::GetTagsQueryParamSortBy), { 'query_param': { 'field_name': 'sortBy', 'style': 'form', 'explode': true } }
|
24
|
+
# The order to sort the tags by.
|
25
|
+
field :sort_order, T.nilable(::OpenApiSDK::Operations::GetTagsQueryParamSortOrder), { 'query_param': { 'field_name': 'sortOrder', 'style': 'form', 'explode': true } }
|
26
|
+
|
27
|
+
|
28
|
+
sig { params(ids: T.nilable(::Object), page: T.nilable(::Float), page_size: T.nilable(::Float), search: T.nilable(::String), sort_by: T.nilable(::OpenApiSDK::Operations::GetTagsQueryParamSortBy), sort_order: T.nilable(::OpenApiSDK::Operations::GetTagsQueryParamSortOrder)).void }
|
29
|
+
def initialize(ids: nil, page: nil, page_size: nil, search: nil, sort_by: nil, sort_order: nil)
|
30
|
+
@ids = ids
|
31
|
+
@page = page
|
32
|
+
@page_size = page_size
|
33
|
+
@search = search
|
34
|
+
@sort_by = sort_by
|
35
|
+
@sort_order = sort_order
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -8,7 +8,7 @@ module OpenApiSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class GetTagsResponse < ::
|
11
|
+
class GetTagsResponse < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# HTTP response content type for this operation
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -8,7 +8,7 @@ module OpenApiSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class GetWorkspaceRequest < ::
|
11
|
+
class GetWorkspaceRequest < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# The ID or slug of the workspace.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -8,7 +8,7 @@ module OpenApiSDK
|
|
8
8
|
module Operations
|
9
9
|
|
10
10
|
|
11
|
-
class GetWorkspaceResponse < ::
|
11
|
+
class GetWorkspaceResponse < ::Crystalline::FieldAugmented
|
12
12
|
extend T::Sig
|
13
13
|
|
14
14
|
# HTTP response content type for this operation
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -7,22 +7,31 @@
|
|
7
7
|
module OpenApiSDK
|
8
8
|
module Operations
|
9
9
|
|
10
|
-
# GroupBy - The parameter to group the analytics data points by. Defaults to
|
10
|
+
# GroupBy - The parameter to group the analytics data points by. Defaults to `count` if undefined.
|
11
11
|
class GroupBy < T::Enum
|
12
12
|
enums do
|
13
13
|
COUNT = new('count')
|
14
14
|
TIMESERIES = new('timeseries')
|
15
|
+
CONTINENTS = new('continents')
|
16
|
+
REGIONS = new('regions')
|
15
17
|
COUNTRIES = new('countries')
|
16
18
|
CITIES = new('cities')
|
17
19
|
DEVICES = new('devices')
|
18
20
|
BROWSERS = new('browsers')
|
19
21
|
OS = new('os')
|
22
|
+
TRIGGER = new('trigger')
|
23
|
+
TRIGGERS = new('triggers')
|
20
24
|
REFERERS = new('referers')
|
25
|
+
REFERER_URLS = new('referer_urls')
|
26
|
+
TOP_PARTNERS = new('top_partners')
|
21
27
|
TOP_LINKS = new('top_links')
|
22
28
|
TOP_URLS = new('top_urls')
|
23
|
-
|
29
|
+
UTM_SOURCES = new('utm_sources')
|
30
|
+
UTM_MEDIUMS = new('utm_mediums')
|
31
|
+
UTM_CAMPAIGNS = new('utm_campaigns')
|
32
|
+
UTM_TERMS = new('utm_terms')
|
33
|
+
UTM_CONTENTS = new('utm_contents')
|
24
34
|
end
|
25
35
|
end
|
26
|
-
|
27
36
|
end
|
28
37
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -7,19 +7,19 @@
|
|
7
7
|
module OpenApiSDK
|
8
8
|
module Operations
|
9
9
|
|
10
|
-
# Interval - The interval to retrieve analytics for.
|
10
|
+
# Interval - The interval to retrieve analytics for. If undefined, defaults to 24h.
|
11
11
|
class Interval < T::Enum
|
12
12
|
enums do
|
13
13
|
TWENTY_FOURH = new('24h')
|
14
14
|
SEVEND = new('7d')
|
15
15
|
THIRTYD = new('30d')
|
16
16
|
NINETYD = new('90d')
|
17
|
-
YTD = new('ytd')
|
18
17
|
ONEY = new('1y')
|
18
|
+
MTD = new('mtd')
|
19
|
+
QTD = new('qtd')
|
20
|
+
YTD = new('ytd')
|
19
21
|
ALL = new('all')
|
20
|
-
ALL_UNFILTERED = new('all_unfiltered')
|
21
22
|
end
|
22
23
|
end
|
23
|
-
|
24
24
|
end
|
25
25
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Code generated by Speakeasy (https://
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
2
|
|
3
3
|
# typed: true
|
4
4
|
# frozen_string_literal: true
|
@@ -16,6 +16,5 @@ module OpenApiSDK
|
|
16
16
|
H = new('H')
|
17
17
|
end
|
18
18
|
end
|
19
|
-
|
20
19
|
end
|
21
20
|
end
|