dub 0.2.2 → 1.0.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.
Potentially problematic release.
This version of dub might be problematic. Click here for more details.
- data/History.txt +92 -0
- data/LICENSE +20 -0
- data/README.rdoc +115 -0
- data/Rakefile +59 -0
- data/dub.gemspec +197 -0
- data/lib/dub/argument.rb +286 -0
- data/lib/dub/entities_unescape.rb +9 -0
- data/lib/dub/function.rb +177 -0
- data/lib/dub/function_group.rb +72 -0
- data/lib/dub/generator.rb +15 -0
- data/lib/dub/group.rb +20 -0
- data/lib/dub/klass.rb +338 -0
- data/lib/dub/lua/class.cpp.erb +114 -0
- data/lib/dub/lua/class_gen.rb +96 -0
- data/lib/dub/lua/function.cpp.erb +15 -0
- data/lib/dub/lua/function_gen.rb +329 -0
- data/lib/dub/lua/group.cpp.erb +9 -0
- data/lib/dub/lua/lua_cpp_helper.cpp +259 -0
- data/lib/dub/lua/lua_cpp_helper.h +219 -0
- data/lib/dub/lua/lua_object.cpp +158 -0
- data/lib/dub/lua/lua_object.h +69 -0
- data/lib/dub/lua/namespace.cpp.erb +42 -0
- data/lib/dub/lua/namespace_gen.rb +69 -0
- data/lib/dub/lua.rb +24 -0
- data/lib/dub/member_extraction.rb +128 -0
- data/lib/dub/namespace.rb +295 -0
- data/lib/dub/opts_parser.rb +30 -0
- data/lib/dub/parser.rb +46 -0
- data/lib/dub/templates/lua_template.erb +21 -0
- data/lib/dub/version.rb +3 -0
- data/lib/dub.rb +24 -20
- data/test/argument_test.rb +581 -0
- data/test/fixtures/app/CMakeLists.txt +54 -0
- data/test/fixtures/app/Doxyfile +1600 -0
- data/test/fixtures/app/bindings/all_lua.cpp +299 -0
- data/test/fixtures/app/include/matrix.h +283 -0
- data/test/fixtures/app/make_lua_bindings.rb +13 -0
- data/test/fixtures/app/vendor/lua/CMakeLists.txt +25 -0
- data/test/fixtures/app/vendor/lua/COPYRIGHT +34 -0
- data/test/fixtures/app/vendor/lua/HISTORY +183 -0
- data/test/fixtures/app/vendor/lua/INSTALL +99 -0
- data/test/fixtures/app/vendor/lua/Makefile +183 -0
- data/test/fixtures/app/vendor/lua/README +37 -0
- data/test/fixtures/app/vendor/lua/lapi.c +1080 -0
- data/test/fixtures/app/vendor/lua/lapi.h +16 -0
- data/test/fixtures/app/vendor/lua/lauxlib.c +653 -0
- data/test/fixtures/app/vendor/lua/lauxlib.h +174 -0
- data/test/fixtures/app/vendor/lua/lbaselib.c +643 -0
- data/test/fixtures/app/vendor/lua/lcode.c +839 -0
- data/test/fixtures/app/vendor/lua/lcode.h +76 -0
- data/test/fixtures/app/vendor/lua/ldblib.c +397 -0
- data/test/fixtures/app/vendor/lua/ldebug.c +622 -0
- data/test/fixtures/app/vendor/lua/ldebug.h +33 -0
- data/test/fixtures/app/vendor/lua/ldo.c +516 -0
- data/test/fixtures/app/vendor/lua/ldo.h +57 -0
- data/test/fixtures/app/vendor/lua/ldump.c +164 -0
- data/test/fixtures/app/vendor/lua/lfunc.c +174 -0
- data/test/fixtures/app/vendor/lua/lfunc.h +34 -0
- data/test/fixtures/app/vendor/lua/lgc.c +711 -0
- data/test/fixtures/app/vendor/lua/lgc.h +110 -0
- data/test/fixtures/app/vendor/lua/liblua.a +0 -0
- data/test/fixtures/app/vendor/lua/linit.c +38 -0
- data/test/fixtures/app/vendor/lua/liolib.c +532 -0
- data/test/fixtures/app/vendor/lua/llex.c +461 -0
- data/test/fixtures/app/vendor/lua/llex.h +81 -0
- data/test/fixtures/app/vendor/lua/llimits.h +128 -0
- data/test/fixtures/app/vendor/lua/lmathlib.c +263 -0
- data/test/fixtures/app/vendor/lua/lmem.c +86 -0
- data/test/fixtures/app/vendor/lua/lmem.h +49 -0
- data/test/fixtures/app/vendor/lua/loadlib.c +664 -0
- data/test/fixtures/app/vendor/lua/lobject.c +214 -0
- data/test/fixtures/app/vendor/lua/lobject.h +381 -0
- data/test/fixtures/app/vendor/lua/lopcodes.c +102 -0
- data/test/fixtures/app/vendor/lua/lopcodes.h +268 -0
- data/test/fixtures/app/vendor/lua/loslib.c +244 -0
- data/test/fixtures/app/vendor/lua/lparser.c +1337 -0
- data/test/fixtures/app/vendor/lua/lparser.h +82 -0
- data/test/fixtures/app/vendor/lua/lstate.c +214 -0
- data/test/fixtures/app/vendor/lua/lstate.h +168 -0
- data/test/fixtures/app/vendor/lua/lstring.c +111 -0
- data/test/fixtures/app/vendor/lua/lstring.h +31 -0
- data/test/fixtures/app/vendor/lua/lstrlib.c +868 -0
- data/test/fixtures/app/vendor/lua/ltable.c +588 -0
- data/test/fixtures/app/vendor/lua/ltable.h +40 -0
- data/test/fixtures/app/vendor/lua/ltablib.c +278 -0
- data/test/fixtures/app/vendor/lua/ltm.c +75 -0
- data/test/fixtures/app/vendor/lua/ltm.h +54 -0
- data/test/fixtures/app/vendor/lua/lua.c +695 -0
- data/test/fixtures/app/vendor/lua/lua.h +385 -0
- data/test/fixtures/app/vendor/lua/lua_dub_helper.h +77 -0
- data/test/fixtures/app/vendor/lua/luac +0 -0
- data/test/fixtures/app/vendor/lua/luac.c +200 -0
- data/test/fixtures/app/vendor/lua/luaconf.h +762 -0
- data/test/fixtures/app/vendor/lua/lualib.h +53 -0
- data/test/fixtures/app/vendor/lua/lundump.c +223 -0
- data/test/fixtures/app/vendor/lua/lundump.h +36 -0
- data/test/fixtures/app/vendor/lua/lvm.c +765 -0
- data/test/fixtures/app/vendor/lua/lvm.h +36 -0
- data/test/fixtures/app/vendor/lua/lzio.c +82 -0
- data/test/fixtures/app/vendor/lua/lzio.h +67 -0
- data/test/fixtures/app/vendor/lua/matrix.h +102 -0
- data/test/fixtures/app/vendor/lua/print.c +227 -0
- data/test/fixtures/app/vendor/lua/test/README +26 -0
- data/test/fixtures/app/vendor/lua/test/bisect.lua +27 -0
- data/test/fixtures/app/vendor/lua/test/cf.lua +16 -0
- data/test/fixtures/app/vendor/lua/test/echo.lua +5 -0
- data/test/fixtures/app/vendor/lua/test/env.lua +7 -0
- data/test/fixtures/app/vendor/lua/test/factorial.lua +32 -0
- data/test/fixtures/app/vendor/lua/test/fib.lua +40 -0
- data/test/fixtures/app/vendor/lua/test/fibfor.lua +13 -0
- data/test/fixtures/app/vendor/lua/test/globals.lua +13 -0
- data/test/fixtures/app/vendor/lua/test/hello.lua +3 -0
- data/test/fixtures/app/vendor/lua/test/life.lua +111 -0
- data/test/fixtures/app/vendor/lua/test/luac.lua +7 -0
- data/test/fixtures/app/vendor/lua/test/printf.lua +7 -0
- data/test/fixtures/app/vendor/lua/test/readonly.lua +12 -0
- data/test/fixtures/app/vendor/lua/test/sieve.lua +29 -0
- data/test/fixtures/app/vendor/lua/test/sort.lua +66 -0
- data/test/fixtures/app/vendor/lua/test/table.lua +12 -0
- data/test/fixtures/app/vendor/lua/test/trace-calls.lua +32 -0
- data/test/fixtures/app/vendor/lua/test/trace-globals.lua +38 -0
- data/test/fixtures/app/vendor/lua/test/xd.lua +14 -0
- data/test/fixtures/app/xml/classdub_1_1_base.xml +85 -0
- data/test/fixtures/app/xml/classdub_1_1_custom_destructor.xml +67 -0
- data/test/fixtures/app/xml/classdub_1_1_deletable_out_of_lua.xml +43 -0
- data/test/fixtures/app/xml/classdub_1_1_matrix.xml +482 -0
- data/test/fixtures/app/xml/classdub_1_1_no_destructor.xml +49 -0
- data/test/fixtures/app/xml/classdub_1_1_priv_sub_base.xml +89 -0
- data/test/fixtures/app/xml/classdub_1_1_private_constr.xml +68 -0
- data/test/fixtures/app/xml/classdub_1_1_static_constr.xml +69 -0
- data/test/fixtures/app/xml/classdub_1_1_sub_base.xml +89 -0
- data/test/fixtures/app/xml/classdub_1_1_t_mat.xml +252 -0
- data/test/fixtures/app/xml/combine.xslt +15 -0
- data/test/fixtures/app/xml/compound.xsd +814 -0
- data/test/fixtures/app/xml/dir_53661a2bdeb1d55e60581a7e15deb763.xml +12 -0
- data/test/fixtures/app/xml/index.xml +91 -0
- data/test/fixtures/app/xml/index.xsd +66 -0
- data/test/fixtures/app/xml/matrix_8h.xml +310 -0
- data/test/fixtures/app/xml/namespacedub.xml +48 -0
- data/test/fixtures/classcv_1_1_mat.xml +1996 -0
- data/test/fixtures/classcv_1_1_point__.xml +341 -0
- data/test/fixtures/classcv_1_1_scalar__.xml +269 -0
- data/test/fixtures/classcv_1_1_size__.xml +270 -0
- data/test/fixtures/dummy_class.cpp.erb +1 -0
- data/test/fixtures/dummy_function.cpp.erb +1 -0
- data/test/fixtures/group___magic_type.xml +406 -0
- data/test/fixtures/namespacecv.xml +12659 -0
- data/test/function_group_test.rb +43 -0
- data/test/function_test.rb +405 -0
- data/test/group_test.rb +241 -0
- data/test/helper.rb +34 -0
- data/test/klass_test.rb +551 -0
- data/test/lua_function_gen_test.rb +242 -0
- data/test/namespace_test.rb +220 -0
- data/test/parser_test.rb +36 -0
- metadata +229 -272
- checksums.yaml +0 -7
- data/lib/open_api_sdk/analytics.rb +0 -99
- data/lib/open_api_sdk/domains.rb +0 -353
- data/lib/open_api_sdk/dub.rb +0 -88
- data/lib/open_api_sdk/links.rb +0 -766
- data/lib/open_api_sdk/metatags.rb +0 -54
- data/lib/open_api_sdk/models/operations/bulkcreatelinks_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb +0 -27
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/color.rb +0 -24
- data/lib/open_api_sdk/models/operations/createdomain_requestbody.rb +0 -33
- data/lib/open_api_sdk/models/operations/createdomain_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/createlink_requestbody.rb +0 -95
- data/lib/open_api_sdk/models/operations/createlink_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/createtag_requestbody.rb +0 -32
- data/lib/open_api_sdk/models/operations/createtag_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/data.rb +0 -83
- data/lib/open_api_sdk/models/operations/deletedomain_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletedomain_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/deletedomain_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletelink_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletelink_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/deletelink_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/event.rb +0 -21
- data/lib/open_api_sdk/models/operations/getlinkinfo_request.rb +0 -33
- data/lib/open_api_sdk/models/operations/getlinkinfo_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/getlinks_request.rb +0 -51
- data/lib/open_api_sdk/models/operations/getlinks_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/getlinkscount_request.rb +0 -48
- data/lib/open_api_sdk/models/operations/getlinkscount_response.rb +0 -60
- 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/getqrcode_request.rb +0 -39
- data/lib/open_api_sdk/models/operations/getqrcode_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/gettags_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/getworkspace_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/getworkspace_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/groupby.rb +0 -28
- data/lib/open_api_sdk/models/operations/interval.rb +0 -25
- data/lib/open_api_sdk/models/operations/level.rb +0 -21
- data/lib/open_api_sdk/models/operations/listdomains_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/paymentprocessor.rb +0 -20
- data/lib/open_api_sdk/models/operations/requestbody.rb +0 -95
- data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +0 -81
- data/lib/open_api_sdk/models/operations/retrieveanalytics_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/sort.rb +0 -20
- data/lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb +0 -33
- data/lib/open_api_sdk/models/operations/trackcustomer_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb +0 -33
- data/lib/open_api_sdk/models/operations/tracklead_requestbody.rb +0 -42
- data/lib/open_api_sdk/models/operations/tracklead_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/tracklead_responsebody.rb +0 -42
- data/lib/open_api_sdk/models/operations/tracksale_requestbody.rb +0 -42
- data/lib/open_api_sdk/models/operations/tracksale_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/tracksale_responsebody.rb +0 -42
- data/lib/open_api_sdk/models/operations/updatedomain_request.rb +0 -27
- data/lib/open_api_sdk/models/operations/updatedomain_requestbody.rb +0 -33
- data/lib/open_api_sdk/models/operations/updatedomain_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/updatelink_request.rb +0 -27
- data/lib/open_api_sdk/models/operations/updatelink_requestbody.rb +0 -95
- data/lib/open_api_sdk/models/operations/updatelink_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/updatetag_color.rb +0 -24
- data/lib/open_api_sdk/models/operations/updatetag_request.rb +0 -27
- data/lib/open_api_sdk/models/operations/updatetag_requestbody.rb +0 -32
- data/lib/open_api_sdk/models/operations/updatetag_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/updateworkspace_request.rb +0 -27
- data/lib/open_api_sdk/models/operations/updateworkspace_requestbody.rb +0 -27
- data/lib/open_api_sdk/models/operations/updateworkspace_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/upsertlink_requestbody.rb +0 -95
- data/lib/open_api_sdk/models/operations/upsertlink_response.rb +0 -60
- data/lib/open_api_sdk/models/operations.rb +0 -74
- data/lib/open_api_sdk/models/shared/badrequest.rb +0 -24
- data/lib/open_api_sdk/models/shared/code.rb +0 -18
- data/lib/open_api_sdk/models/shared/color.rb +0 -24
- data/lib/open_api_sdk/models/shared/conflict.rb +0 -24
- data/lib/open_api_sdk/models/shared/conflict_code.rb +0 -18
- data/lib/open_api_sdk/models/shared/conflict_error.rb +0 -30
- data/lib/open_api_sdk/models/shared/countrycode.rb +0 -267
- data/lib/open_api_sdk/models/shared/domains.rb +0 -27
- data/lib/open_api_sdk/models/shared/domainschema.rb +0 -48
- data/lib/open_api_sdk/models/shared/error.rb +0 -30
- data/lib/open_api_sdk/models/shared/forbidden.rb +0 -24
- data/lib/open_api_sdk/models/shared/forbidden_code.rb +0 -18
- data/lib/open_api_sdk/models/shared/forbidden_error.rb +0 -30
- data/lib/open_api_sdk/models/shared/geo.rb +0 -771
- data/lib/open_api_sdk/models/shared/internalservererror.rb +0 -24
- data/lib/open_api_sdk/models/shared/internalservererror_code.rb +0 -18
- data/lib/open_api_sdk/models/shared/internalservererror_error.rb +0 -30
- data/lib/open_api_sdk/models/shared/inviteexpired.rb +0 -24
- data/lib/open_api_sdk/models/shared/inviteexpired_code.rb +0 -18
- data/lib/open_api_sdk/models/shared/inviteexpired_error.rb +0 -30
- data/lib/open_api_sdk/models/shared/linkgeotargeting.rb +0 -771
- data/lib/open_api_sdk/models/shared/linkschema.rb +0 -142
- data/lib/open_api_sdk/models/shared/notfound.rb +0 -24
- data/lib/open_api_sdk/models/shared/notfound_code.rb +0 -18
- data/lib/open_api_sdk/models/shared/notfound_error.rb +0 -30
- data/lib/open_api_sdk/models/shared/plan.rb +0 -24
- data/lib/open_api_sdk/models/shared/ratelimitexceeded.rb +0 -24
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_code.rb +0 -18
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_error.rb +0 -30
- data/lib/open_api_sdk/models/shared/role.rb +0 -19
- data/lib/open_api_sdk/models/shared/security.rb +0 -24
- data/lib/open_api_sdk/models/shared/tagschema.rb +0 -30
- data/lib/open_api_sdk/models/shared/unauthorized.rb +0 -24
- data/lib/open_api_sdk/models/shared/unauthorized_code.rb +0 -18
- data/lib/open_api_sdk/models/shared/unauthorized_error.rb +0 -30
- data/lib/open_api_sdk/models/shared/unprocessableentity.rb +0 -24
- data/lib/open_api_sdk/models/shared/unprocessableentity_code.rb +0 -18
- data/lib/open_api_sdk/models/shared/unprocessableentity_error.rb +0 -30
- data/lib/open_api_sdk/models/shared/users.rb +0 -24
- data/lib/open_api_sdk/models/shared/workspaceschema.rb +0 -81
- data/lib/open_api_sdk/models/shared.rb +0 -49
- data/lib/open_api_sdk/qr_codes.rb +0 -97
- data/lib/open_api_sdk/sdkconfiguration.rb +0 -52
- data/lib/open_api_sdk/tags.rb +0 -272
- data/lib/open_api_sdk/track.rb +0 -276
- data/lib/open_api_sdk/utils/metadata_fields.rb +0 -150
- data/lib/open_api_sdk/utils/t.rb +0 -59
- data/lib/open_api_sdk/utils/utils.rb +0 -772
- data/lib/open_api_sdk/workspaces.rb +0 -192
@@ -1,49 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
2
|
-
|
3
|
-
# typed: true
|
4
|
-
# frozen_string_literal: true
|
5
|
-
|
6
|
-
module OpenApiSDK
|
7
|
-
module Shared
|
8
|
-
autoload :InternalServerErrorCode, 'open_api_sdk/models/shared/internalservererror_code.rb'
|
9
|
-
autoload :InternalServerErrorError, 'open_api_sdk/models/shared/internalservererror_error.rb'
|
10
|
-
autoload :InternalServerError, 'open_api_sdk/models/shared/internalservererror.rb'
|
11
|
-
autoload :RateLimitExceededCode, 'open_api_sdk/models/shared/ratelimitexceeded_code.rb'
|
12
|
-
autoload :RateLimitExceededError, 'open_api_sdk/models/shared/ratelimitexceeded_error.rb'
|
13
|
-
autoload :RateLimitExceeded, 'open_api_sdk/models/shared/ratelimitexceeded.rb'
|
14
|
-
autoload :UnprocessableEntityCode, 'open_api_sdk/models/shared/unprocessableentity_code.rb'
|
15
|
-
autoload :UnprocessableEntityError, 'open_api_sdk/models/shared/unprocessableentity_error.rb'
|
16
|
-
autoload :UnprocessableEntity, 'open_api_sdk/models/shared/unprocessableentity.rb'
|
17
|
-
autoload :InviteExpiredCode, 'open_api_sdk/models/shared/inviteexpired_code.rb'
|
18
|
-
autoload :InviteExpiredError, 'open_api_sdk/models/shared/inviteexpired_error.rb'
|
19
|
-
autoload :InviteExpired, 'open_api_sdk/models/shared/inviteexpired.rb'
|
20
|
-
autoload :ConflictCode, 'open_api_sdk/models/shared/conflict_code.rb'
|
21
|
-
autoload :ConflictError, 'open_api_sdk/models/shared/conflict_error.rb'
|
22
|
-
autoload :Conflict, 'open_api_sdk/models/shared/conflict.rb'
|
23
|
-
autoload :NotFoundCode, 'open_api_sdk/models/shared/notfound_code.rb'
|
24
|
-
autoload :NotFoundError, 'open_api_sdk/models/shared/notfound_error.rb'
|
25
|
-
autoload :NotFound, 'open_api_sdk/models/shared/notfound.rb'
|
26
|
-
autoload :ForbiddenCode, 'open_api_sdk/models/shared/forbidden_code.rb'
|
27
|
-
autoload :ForbiddenError, 'open_api_sdk/models/shared/forbidden_error.rb'
|
28
|
-
autoload :Forbidden, 'open_api_sdk/models/shared/forbidden.rb'
|
29
|
-
autoload :UnauthorizedCode, 'open_api_sdk/models/shared/unauthorized_code.rb'
|
30
|
-
autoload :UnauthorizedError, 'open_api_sdk/models/shared/unauthorized_error.rb'
|
31
|
-
autoload :Unauthorized, 'open_api_sdk/models/shared/unauthorized.rb'
|
32
|
-
autoload :Code, 'open_api_sdk/models/shared/code.rb'
|
33
|
-
autoload :Error, 'open_api_sdk/models/shared/error.rb'
|
34
|
-
autoload :BadRequest, 'open_api_sdk/models/shared/badrequest.rb'
|
35
|
-
autoload :Geo, 'open_api_sdk/models/shared/geo.rb'
|
36
|
-
autoload :LinkSchema, 'open_api_sdk/models/shared/linkschema.rb'
|
37
|
-
autoload :Color, 'open_api_sdk/models/shared/color.rb'
|
38
|
-
autoload :TagSchema, 'open_api_sdk/models/shared/tagschema.rb'
|
39
|
-
autoload :LinkGeoTargeting, 'open_api_sdk/models/shared/linkgeotargeting.rb'
|
40
|
-
autoload :CountryCode, 'open_api_sdk/models/shared/countrycode.rb'
|
41
|
-
autoload :Plan, 'open_api_sdk/models/shared/plan.rb'
|
42
|
-
autoload :Role, 'open_api_sdk/models/shared/role.rb'
|
43
|
-
autoload :Users, 'open_api_sdk/models/shared/users.rb'
|
44
|
-
autoload :Domains, 'open_api_sdk/models/shared/domains.rb'
|
45
|
-
autoload :WorkspaceSchema, 'open_api_sdk/models/shared/workspaceschema.rb'
|
46
|
-
autoload :DomainSchema, 'open_api_sdk/models/shared/domainschema.rb'
|
47
|
-
autoload :Security, 'open_api_sdk/models/shared/security.rb'
|
48
|
-
end
|
49
|
-
end
|
@@ -1,97 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). 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 QRCodes
|
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::GetQRCodeRequest)).returns(::OpenApiSDK::Operations::GetQRCodeResponse) }
|
23
|
-
def get(request)
|
24
|
-
# get - Retrieve a QR code
|
25
|
-
# Retrieve a QR code for a link.
|
26
|
-
url, params = @sdk_configuration.get_server_details
|
27
|
-
base_url = Utils.template_url(url, params)
|
28
|
-
url = "#{base_url}/qr"
|
29
|
-
headers = {}
|
30
|
-
query_params = Utils.get_query_params(::OpenApiSDK::Operations::GetQRCodeRequest, request)
|
31
|
-
headers['Accept'] = 'application/json;q=1, image/png;q=0'
|
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::GetQRCodeResponse.new(
|
43
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
44
|
-
)
|
45
|
-
if r.status == 200
|
46
|
-
res.res = r.env.response_body if Utils.match_content_type(content_type, 'image/png')
|
47
|
-
|
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
|
-
res
|
95
|
-
end
|
96
|
-
end
|
97
|
-
end
|
@@ -1,52 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). 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
|
-
|
13
|
-
SERVERS = [
|
14
|
-
'https://api.dub.co', # 1 - Production API
|
15
|
-
].freeze
|
16
|
-
# Contains the list of servers available to the SDK
|
17
|
-
|
18
|
-
class SDKConfiguration < ::OpenApiSDK::Utils::FieldAugmented
|
19
|
-
extend T::Sig
|
20
|
-
|
21
|
-
field :client, T.nilable(Faraday::Connection)
|
22
|
-
field :security, T.nilable(::OpenApiSDK::Shared::Security)
|
23
|
-
field :server_url, T.nilable(String)
|
24
|
-
field :server_idx, T.nilable(Integer)
|
25
|
-
field :language, String
|
26
|
-
field :openapi_doc_version, String
|
27
|
-
field :sdk_version, String
|
28
|
-
field :gen_version, String
|
29
|
-
field :user_agent, String
|
30
|
-
|
31
|
-
|
32
|
-
sig { params(client: Faraday::Connection, security: T.nilable(::OpenApiSDK::Shared::Security), server_url: T.nilable(String), server_idx: T.nilable(Integer)).void }
|
33
|
-
def initialize(client, security, server_url, server_idx)
|
34
|
-
@client = client
|
35
|
-
@server_url = server_url
|
36
|
-
@server_idx = server_idx.nil? ? 0 : server_idx
|
37
|
-
raise StandardError, "Invalid server index #{server_idx}" if @server_idx.negative? || @server_idx >= SERVERS.length
|
38
|
-
@security = security
|
39
|
-
@language = 'ruby'
|
40
|
-
@openapi_doc_version = '0.0.1'
|
41
|
-
@sdk_version = '0.2.2'
|
42
|
-
@gen_version = '2.365.0'
|
43
|
-
@user_agent = 'speakeasy-sdk/ruby 0.2.2 2.365.0 0.0.1 dub'
|
44
|
-
end
|
45
|
-
|
46
|
-
sig { returns([String, T::Hash[Symbol, String]]) }
|
47
|
-
def get_server_details
|
48
|
-
return [@server_url.delete_suffix('/'), {}] if !@server_url.nil?
|
49
|
-
[SERVERS[@server_idx], {}]
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
data/lib/open_api_sdk/tags.rb
DELETED
@@ -1,272 +0,0 @@
|
|
1
|
-
# Code generated by Speakeasy (https://speakeasyapi.dev). 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 Tags
|
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::GetTagsResponse) }
|
23
|
-
def list
|
24
|
-
# list - Retrieve a list of tags
|
25
|
-
# Retrieve a list of tags for the authenticated workspace.
|
26
|
-
url, params = @sdk_configuration.get_server_details
|
27
|
-
base_url = Utils.template_url(url, params)
|
28
|
-
url = "#{base_url}/tags"
|
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::GetTagsResponse.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::Shared::TagSchema])
|
46
|
-
res.tag_schemas = 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
|
-
res
|
95
|
-
end
|
96
|
-
|
97
|
-
|
98
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::CreateTagRequestBody)).returns(::OpenApiSDK::Operations::CreateTagResponse) }
|
99
|
-
def create(request)
|
100
|
-
# create - Create a new tag
|
101
|
-
# Create a new tag for the authenticated workspace.
|
102
|
-
url, params = @sdk_configuration.get_server_details
|
103
|
-
base_url = Utils.template_url(url, params)
|
104
|
-
url = "#{base_url}/tags"
|
105
|
-
headers = {}
|
106
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
107
|
-
headers['content-type'] = req_content_type
|
108
|
-
headers['Accept'] = 'application/json'
|
109
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
110
|
-
|
111
|
-
r = @sdk_configuration.client.post(url) do |req|
|
112
|
-
req.headers = headers
|
113
|
-
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
114
|
-
if form
|
115
|
-
req.body = Utils.encode_form(form)
|
116
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
117
|
-
req.body = URI.encode_www_form(data)
|
118
|
-
else
|
119
|
-
req.body = data
|
120
|
-
end
|
121
|
-
end
|
122
|
-
|
123
|
-
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
124
|
-
|
125
|
-
res = ::OpenApiSDK::Operations::CreateTagResponse.new(
|
126
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
127
|
-
)
|
128
|
-
if r.status == 201
|
129
|
-
if Utils.match_content_type(content_type, 'application/json')
|
130
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::TagSchema)
|
131
|
-
res.tag_schema = out
|
132
|
-
end
|
133
|
-
elsif r.status == 400
|
134
|
-
if Utils.match_content_type(content_type, 'application/json')
|
135
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
136
|
-
res.bad_request = out
|
137
|
-
end
|
138
|
-
elsif r.status == 401
|
139
|
-
if Utils.match_content_type(content_type, 'application/json')
|
140
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
141
|
-
res.unauthorized = out
|
142
|
-
end
|
143
|
-
elsif r.status == 403
|
144
|
-
if Utils.match_content_type(content_type, 'application/json')
|
145
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
146
|
-
res.forbidden = out
|
147
|
-
end
|
148
|
-
elsif r.status == 404
|
149
|
-
if Utils.match_content_type(content_type, 'application/json')
|
150
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
151
|
-
res.not_found = out
|
152
|
-
end
|
153
|
-
elsif r.status == 409
|
154
|
-
if Utils.match_content_type(content_type, 'application/json')
|
155
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
156
|
-
res.conflict = out
|
157
|
-
end
|
158
|
-
elsif r.status == 410
|
159
|
-
if Utils.match_content_type(content_type, 'application/json')
|
160
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
161
|
-
res.invite_expired = out
|
162
|
-
end
|
163
|
-
elsif r.status == 422
|
164
|
-
if Utils.match_content_type(content_type, 'application/json')
|
165
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
166
|
-
res.unprocessable_entity = out
|
167
|
-
end
|
168
|
-
elsif r.status == 429
|
169
|
-
if Utils.match_content_type(content_type, 'application/json')
|
170
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
171
|
-
res.rate_limit_exceeded = out
|
172
|
-
end
|
173
|
-
elsif r.status == 500
|
174
|
-
if Utils.match_content_type(content_type, 'application/json')
|
175
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
176
|
-
res.internal_server_error = out
|
177
|
-
end
|
178
|
-
end
|
179
|
-
res
|
180
|
-
end
|
181
|
-
|
182
|
-
|
183
|
-
sig { params(request: T.nilable(::OpenApiSDK::Operations::UpdateTagRequest)).returns(::OpenApiSDK::Operations::UpdateTagResponse) }
|
184
|
-
def update(request)
|
185
|
-
# update - Update a tag
|
186
|
-
# Update a tag in the workspace.
|
187
|
-
url, params = @sdk_configuration.get_server_details
|
188
|
-
base_url = Utils.template_url(url, params)
|
189
|
-
url = Utils.generate_url(
|
190
|
-
::OpenApiSDK::Operations::UpdateTagRequest,
|
191
|
-
base_url,
|
192
|
-
'/tags/{id}',
|
193
|
-
request
|
194
|
-
)
|
195
|
-
headers = {}
|
196
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :json)
|
197
|
-
headers['content-type'] = req_content_type
|
198
|
-
headers['Accept'] = 'application/json'
|
199
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
200
|
-
|
201
|
-
r = @sdk_configuration.client.patch(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
|
-
if form
|
205
|
-
req.body = Utils.encode_form(form)
|
206
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
207
|
-
req.body = URI.encode_www_form(data)
|
208
|
-
else
|
209
|
-
req.body = data
|
210
|
-
end
|
211
|
-
end
|
212
|
-
|
213
|
-
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
214
|
-
|
215
|
-
res = ::OpenApiSDK::Operations::UpdateTagResponse.new(
|
216
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
217
|
-
)
|
218
|
-
if r.status == 200
|
219
|
-
if Utils.match_content_type(content_type, 'application/json')
|
220
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::TagSchema)
|
221
|
-
res.tag_schema = out
|
222
|
-
end
|
223
|
-
elsif r.status == 400
|
224
|
-
if Utils.match_content_type(content_type, 'application/json')
|
225
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::BadRequest)
|
226
|
-
res.bad_request = out
|
227
|
-
end
|
228
|
-
elsif r.status == 401
|
229
|
-
if Utils.match_content_type(content_type, 'application/json')
|
230
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Unauthorized)
|
231
|
-
res.unauthorized = out
|
232
|
-
end
|
233
|
-
elsif r.status == 403
|
234
|
-
if Utils.match_content_type(content_type, 'application/json')
|
235
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Forbidden)
|
236
|
-
res.forbidden = out
|
237
|
-
end
|
238
|
-
elsif r.status == 404
|
239
|
-
if Utils.match_content_type(content_type, 'application/json')
|
240
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::NotFound)
|
241
|
-
res.not_found = out
|
242
|
-
end
|
243
|
-
elsif r.status == 409
|
244
|
-
if Utils.match_content_type(content_type, 'application/json')
|
245
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Conflict)
|
246
|
-
res.conflict = out
|
247
|
-
end
|
248
|
-
elsif r.status == 410
|
249
|
-
if Utils.match_content_type(content_type, 'application/json')
|
250
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InviteExpired)
|
251
|
-
res.invite_expired = out
|
252
|
-
end
|
253
|
-
elsif r.status == 422
|
254
|
-
if Utils.match_content_type(content_type, 'application/json')
|
255
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::UnprocessableEntity)
|
256
|
-
res.unprocessable_entity = out
|
257
|
-
end
|
258
|
-
elsif r.status == 429
|
259
|
-
if Utils.match_content_type(content_type, 'application/json')
|
260
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::RateLimitExceeded)
|
261
|
-
res.rate_limit_exceeded = out
|
262
|
-
end
|
263
|
-
elsif r.status == 500
|
264
|
-
if Utils.match_content_type(content_type, 'application/json')
|
265
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::InternalServerError)
|
266
|
-
res.internal_server_error = out
|
267
|
-
end
|
268
|
-
end
|
269
|
-
res
|
270
|
-
end
|
271
|
-
end
|
272
|
-
end
|