speakeasy_client_sdk_ruby 4.2.22 → 4.2.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/open_api_sdk/apiendpoints.rb +66 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/apis.rb +134 -109
- data/lib/{speakeasy_client_sdk → open_api_sdk}/artifacts.rb +129 -150
- data/lib/{speakeasy_client_sdk → open_api_sdk}/auth.rb +53 -46
- data/lib/{speakeasy_client_sdk → open_api_sdk}/embeds.rb +36 -29
- data/lib/{speakeasy_client_sdk → open_api_sdk}/events.rb +111 -54
- data/lib/{speakeasy_client_sdk → open_api_sdk}/github.rb +139 -127
- data/lib/{speakeasy_client_sdk → open_api_sdk}/metadata.rb +63 -48
- data/lib/{speakeasy_client_sdk/models/operations/checkaccess_request.rb → open_api_sdk/models/operations/checkgithubaccess_request.rb} +2 -2
- data/lib/{speakeasy_client_sdk/models/operations/deleteapi_response.rb → open_api_sdk/models/operations/checkgithubaccess_response.rb} +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/create_requestbody.rb +3 -3
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/create_response.rb +4 -4
- data/lib/open_api_sdk/models/operations/createfreetrial_response.rb +33 -0
- data/lib/open_api_sdk/models/operations/createorganization_response.rb +36 -0
- data/lib/open_api_sdk/models/operations/createworkspace_response.rb +36 -0
- data/lib/open_api_sdk/models/operations/createworkspacetoken_request.rb +27 -0
- data/lib/{speakeasy_client_sdk/models/operations/deleteschema_response.rb → open_api_sdk/models/operations/createworkspacetoken_response.rb} +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/deleteapi_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/deleteapi_response.rb +33 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/deleteapiendpoint_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/deleteapiendpoint_response.rb +33 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/deleteschema_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/deleteschema_response.rb +33 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/deleteversionmetadata_request.rb +2 -2
- data/lib/{speakeasy_client_sdk/models/operations/triggeraction_response.rb → open_api_sdk/models/operations/deleteversionmetadata_response.rb} +4 -4
- data/lib/open_api_sdk/models/operations/deleteworkspacetoken_request.rb +27 -0
- data/lib/open_api_sdk/models/operations/deleteworkspacetoken_response.rb +33 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/downloadschema_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/downloadschema_response.rb +39 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/downloadschemarevision_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/downloadschemarevision_response.rb +39 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/file.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/findapiendpoint_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/findapiendpoint_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generateopenapispec_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generateopenapispec_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generateopenapispecforapiendpoint_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generateopenapispecforapiendpoint_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generatepostmancollection_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generatepostmancollection_response.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generatepostmancollectionforapiendpoint_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generatepostmancollectionforapiendpoint_response.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generaterequestpostmancollection_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generaterequestpostmancollection_response.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getaccesstoken_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getaccesstoken_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getallapiendpoints_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getallapiendpoints_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getallapiversions_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getallapiversions_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getallforversionapiendpoints_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getallforversionapiendpoints_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getapiendpoint_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getapiendpoint_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getapis_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getapis_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getblob_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getblob_response.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getchangesreportsignedurl_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getchangesreportsignedurl_response.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getchangesreportsignedurl_signedaccess.rb +3 -3
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getembedaccesstoken_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getembedaccesstoken_response.rb +5 -5
- data/lib/{speakeasy_client_sdk/models/operations/getaction_request.rb → open_api_sdk/models/operations/getgithubaction_request.rb} +2 -2
- data/lib/{speakeasy_client_sdk/models/operations/getaction_response.rb → open_api_sdk/models/operations/getgithubaction_response.rb} +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getlintingreportsignedurl_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getlintingreportsignedurl_response.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getlintingreportsignedurl_signedaccess.rb +3 -3
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getmanifest_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getmanifest_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getnamespaces_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getorganization_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getorganization_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getorganizations_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getorganizationusage_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getrequestfromeventlog_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getrequestfromeventlog_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getrevisions_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getrevisions_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getschema_request.rb +2 -2
- data/lib/{speakeasy_client_sdk/models/operations/getschemarevision_response.rb → open_api_sdk/models/operations/getschema_response.rb} +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getschemadiff_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getschemadiff_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getschemarevision_request.rb +2 -2
- data/lib/{speakeasy_client_sdk/models/operations/getschema_response.rb → open_api_sdk/models/operations/getschemarevision_response.rb} +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getschemas_request.rb +2 -2
- data/lib/open_api_sdk/models/operations/getschemas_response.rb +36 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/gettags_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/gettags_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getuser_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getvalidembedaccesstokens_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getversionmetadata_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getversionmetadata_response.rb +5 -5
- data/lib/open_api_sdk/models/operations/getworkspace_request.rb +24 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspace_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspaceaccess_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspaceaccess_response.rb +4 -4
- data/lib/{speakeasy_client_sdk/models/operations/getoassummary_response.rb → open_api_sdk/models/operations/getworkspacebycontext_response.rb} +7 -7
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspaceeventsbytarget_request.rb +8 -8
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspaceeventsbytarget_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspacefeatureflags_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspacefeatureflags_response.rb +5 -5
- data/lib/open_api_sdk/models/operations/getworkspaces_response.rb +36 -0
- data/lib/{speakeasy_client_sdk/models/operations/getworkspace_request.rb → open_api_sdk/models/operations/getworkspacesettings_request.rb} +4 -4
- data/lib/open_api_sdk/models/operations/getworkspacesettings_response.rb +36 -0
- data/lib/open_api_sdk/models/operations/getworkspacetargets_request.rb +24 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspacetargets_response.rb +5 -5
- data/lib/{speakeasy_client_sdk/models/operations/getworkspacetargets_request.rb → open_api_sdk/models/operations/getworkspacetargetsdeprecated_request.rb} +7 -7
- data/lib/{speakeasy_client_sdk/models/operations/deleteversionmetadata_response.rb → open_api_sdk/models/operations/getworkspacetargetsdeprecated_response.rb} +9 -6
- data/lib/open_api_sdk/models/operations/getworkspaceteam_request.rb +24 -0
- data/lib/open_api_sdk/models/operations/getworkspaceteam_response.rb +36 -0
- data/lib/open_api_sdk/models/operations/getworkspacetokens_request.rb +24 -0
- data/lib/{speakeasy_client_sdk/models/operations/getschemas_response.rb → open_api_sdk/models/operations/getworkspacetokens_response.rb} +8 -8
- data/lib/{speakeasy_client_sdk/models/operations/fetchpublishingprs_request.rb → open_api_sdk/models/operations/githubcheckpublishingprs_request.rb} +2 -2
- data/lib/{speakeasy_client_sdk/models/operations/fetchpublishingprs_response.rb → open_api_sdk/models/operations/githubcheckpublishingprs_response.rb} +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/githubcheckpublishingsecrets_request.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/githubcheckpublishingsecrets_response.rb +5 -5
- data/lib/{speakeasy_client_sdk/models/operations/configurecodesamples_response.rb → open_api_sdk/models/operations/githubconfigurecodesamples_response.rb} +5 -5
- data/lib/open_api_sdk/models/operations/githubconfiguremintlifyrepo_response.rb +33 -0
- data/lib/open_api_sdk/models/operations/githubconfiguretarget_response.rb +33 -0
- data/lib/open_api_sdk/models/operations/githubstorepublishingsecrets_response.rb +33 -0
- data/lib/{speakeasy_client_sdk/models/operations/checkaccess_response.rb → open_api_sdk/models/operations/githubtriggeraction_response.rb} +4 -4
- data/lib/open_api_sdk/models/operations/grantuseraccesstoworkspace_request.rb +27 -0
- data/lib/{speakeasy_client_sdk/models/operations/configuremintlifyrepo_response.rb → open_api_sdk/models/operations/grantuseraccesstoworkspace_response.rb} +8 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/insertversionmetadata_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/insertversionmetadata_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/op.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/posttags_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/posttags_response.rb +4 -4
- data/lib/open_api_sdk/models/operations/postworkspaceevents_request.rb +27 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/postworkspaceevents_response.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/preflight_response.rb +5 -5
- data/lib/open_api_sdk/models/operations/queryeventlog_request.rb +24 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/queryeventlog_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/queryparam_op.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/registerschema_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/registerschema_requestbody.rb +4 -4
- data/lib/open_api_sdk/models/operations/registerschema_response.rb +33 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/revokeembedaccesstoken_request.rb +2 -2
- data/lib/{speakeasy_client_sdk/models/operations/registerschema_response.rb → open_api_sdk/models/operations/revokeembedaccesstoken_response.rb} +4 -4
- data/lib/open_api_sdk/models/operations/revokeuseraccesstoworkspace_request.rb +27 -0
- data/lib/open_api_sdk/models/operations/revokeuseraccesstoworkspace_response.rb +33 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/schema.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/searchworkspaceevents_request.rb +8 -8
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/searchworkspaceevents_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/suggest_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/suggest_response.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/suggestopenapi_request.rb +4 -4
- data/lib/open_api_sdk/models/operations/suggestopenapi_requestbody.rb +27 -0
- data/lib/{speakeasy_client_sdk/models/operations/suggestopenapiregistry_response.rb → open_api_sdk/models/operations/suggestopenapi_response.rb} +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/suggestopenapiregistry_request.rb +4 -4
- data/lib/{speakeasy_client_sdk/models/operations/suggestopenapi_response.rb → open_api_sdk/models/operations/suggestopenapiregistry_response.rb} +2 -2
- data/lib/open_api_sdk/models/operations/updateworkspacedetails_request.rb +27 -0
- data/lib/open_api_sdk/models/operations/updateworkspacedetails_response.rb +33 -0
- data/lib/open_api_sdk/models/operations/updateworkspacesettings_request.rb +27 -0
- data/lib/{speakeasy_client_sdk/models/operations/configuretarget_response.rb → open_api_sdk/models/operations/updateworkspacesettings_response.rb} +4 -4
- data/lib/{speakeasy_client_sdk/models/operations/registerschema_file.rb → open_api_sdk/models/operations/uploadreport_file.rb} +2 -2
- data/lib/open_api_sdk/models/operations/uploadreport_requestbody.rb +27 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/uploadreport_response.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/uploadreport_uploadedreport.rb +3 -3
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/upsertapi_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/upsertapi_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/upsertapiendpoint_request.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/upsertapiendpoint_response.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/validateapikey_response.rb +5 -5
- data/lib/open_api_sdk/models/operations.rb +166 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/accessdetails.rb +6 -6
- data/lib/open_api_sdk/models/shared/accesstoken.rb +36 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/accesstoken_user.rb +8 -8
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/accounttype.rb +1 -1
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/addtags.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/annotations.rb +14 -14
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/api.rb +10 -10
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/api_input.rb +6 -6
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/apiendpoint.rb +13 -13
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/apiendpoint_input.rb +8 -8
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/apikeydetails.rb +11 -11
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/auth.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/boundedrequest.rb +17 -17
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/claims.rb +2 -2
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/clievent.rb +81 -81
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/diagnostic.rb +6 -6
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/embedaccesstokenresponse.rb +3 -3
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/embedtoken.rb +12 -12
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/error.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/featureflag.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/filter.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/filters.rb +7 -7
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/generate_bump_type.rb +1 -1
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/generateopenapispecdiff.rb +4 -4
- data/lib/open_api_sdk/models/shared/getnamespacesresponse.rb +24 -0
- data/lib/open_api_sdk/models/shared/getrevisionsresponse.rb +27 -0
- data/lib/open_api_sdk/models/shared/gettagsresponse.rb +24 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubconfigurecodesamplesrequest.rb +5 -5
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubconfigurecodesamplesresponse.rb +6 -6
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubconfiguremintlifyreporequest.rb +7 -7
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubconfiguretargetrequest.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubgetactionresponse.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubmissingpublishingsecretsresponse.rb +3 -3
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubpublishingprresponse.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubstorepublishingsecretsrequest.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubtriggeractionrequest.rb +8 -8
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/interactiontype.rb +1 -1
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/level.rb +1 -1
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/license.rb +3 -3
- data/lib/open_api_sdk/models/shared/manifest.rb +36 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/namespace.rb +6 -6
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/oasinfo.rb +8 -8
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/oasoperation.rb +9 -9
- data/lib/open_api_sdk/models/shared/oassummary.rb +27 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/openapi_diff_bump_type.rb +1 -1
- data/lib/open_api_sdk/models/shared/organization.rb +45 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/organizationusage.rb +9 -9
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/organizationusageresponse.rb +7 -7
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/preflightrequest.rb +3 -3
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/preflighttoken.rb +3 -3
- data/lib/open_api_sdk/models/shared/relationship.rb +27 -0
- data/lib/open_api_sdk/models/shared/report.rb +24 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/requestmetadata.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/revision.rb +8 -8
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/schema.rb +8 -8
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/schemadiff.rb +6 -6
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/security.rb +7 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/shorturl.rb +4 -4
- data/lib/open_api_sdk/models/shared/ssometadata.rb +27 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/suggestion_type.rb +1 -1
- data/lib/open_api_sdk/models/shared/suggestoptsold.rb +27 -0
- data/lib/open_api_sdk/models/shared/suggestrequestbody.rb +30 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/suggestrequestbody_suggestion_type.rb +1 -1
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/tag.rb +6 -6
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/targetsdk.rb +52 -40
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/type.rb +1 -1
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/unboundedrequest.rb +7 -7
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/user.rb +19 -19
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/v2descriptor.rb +7 -7
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/valuechange.rb +4 -4
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/versionmetadata.rb +8 -8
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/versionmetadata_input.rb +4 -4
- data/lib/open_api_sdk/models/shared/workflowdocument.rb +27 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/workspace.rb +12 -12
- data/lib/open_api_sdk/models/shared/workspaceandorganization.rb +27 -0
- data/lib/open_api_sdk/models/shared/workspacefeatureflagresponse.rb +24 -0
- data/lib/open_api_sdk/models/shared/workspaceinviteresponse.rb +27 -0
- data/lib/open_api_sdk/models/shared/workspaces.rb +33 -0
- data/lib/open_api_sdk/models/shared/workspacesettings.rb +27 -0
- data/lib/open_api_sdk/models/shared/workspaceteamresponse.rb +27 -0
- data/lib/open_api_sdk/models/shared/workspacetoken.rb +48 -0
- data/lib/open_api_sdk/models/shared.rb +90 -0
- data/lib/{speakeasy_client_sdk → open_api_sdk}/organizations.rb +94 -48
- data/lib/{speakeasy_client_sdk → open_api_sdk}/reports.rb +50 -42
- data/lib/{speakeasy_client_sdk → open_api_sdk}/requests.rb +58 -49
- data/lib/{speakeasy_client_sdk → open_api_sdk}/schemas.rb +157 -119
- data/lib/{speakeasy_client_sdk → open_api_sdk}/sdkconfiguration.rb +7 -7
- data/lib/{speakeasy_client_sdk → open_api_sdk}/shorturls.rb +5 -5
- data/lib/{speakeasy_client_sdk/sdk.rb → open_api_sdk/speakeasyclientsdk.rb} +10 -9
- data/lib/{speakeasy_client_sdk/apiendpoints.rb → open_api_sdk/speakeasyclientsdk_apiendpoints.rb} +138 -145
- data/lib/{speakeasy_client_sdk → open_api_sdk}/suggest.rb +38 -21
- data/lib/{speakeasy_client_sdk → open_api_sdk}/utils/metadata_fields.rb +1 -1
- data/lib/{speakeasy_client_sdk → open_api_sdk}/utils/utils.rb +1 -1
- data/lib/open_api_sdk/workspaces.rb +654 -0
- data/lib/speakeasy_client_sdk_ruby.rb +24 -23
- metadata +263 -233
- data/lib/speakeasy_client_sdk/models/operations/createfreetrial_response.rb +0 -33
- data/lib/speakeasy_client_sdk/models/operations/deleteapiendpoint_response.rb +0 -33
- data/lib/speakeasy_client_sdk/models/operations/downloadschema_response.rb +0 -39
- data/lib/speakeasy_client_sdk/models/operations/downloadschemarevision_response.rb +0 -39
- data/lib/speakeasy_client_sdk/models/operations/getoassummary_request.rb +0 -27
- data/lib/speakeasy_client_sdk/models/operations/githubstorepublishingsecrets_response.rb +0 -33
- data/lib/speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb +0 -27
- data/lib/speakeasy_client_sdk/models/operations/queryeventlog_request.rb +0 -24
- data/lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb +0 -33
- data/lib/speakeasy_client_sdk/models/operations/suggestopenapi_requestbody.rb +0 -27
- data/lib/speakeasy_client_sdk/models/operations/uploadreport_requestbody.rb +0 -27
- data/lib/speakeasy_client_sdk/models/operations.rb +0 -144
- data/lib/speakeasy_client_sdk/models/shared/accesstoken.rb +0 -36
- data/lib/speakeasy_client_sdk/models/shared/getnamespacesresponse.rb +0 -24
- data/lib/speakeasy_client_sdk/models/shared/getrevisionsresponse.rb +0 -27
- data/lib/speakeasy_client_sdk/models/shared/gettagsresponse.rb +0 -24
- data/lib/speakeasy_client_sdk/models/shared/manifest.rb +0 -36
- data/lib/speakeasy_client_sdk/models/shared/oassummary.rb +0 -27
- data/lib/speakeasy_client_sdk/models/shared/organization.rb +0 -45
- data/lib/speakeasy_client_sdk/models/shared/report.rb +0 -24
- data/lib/speakeasy_client_sdk/models/shared/suggestoptsold.rb +0 -27
- data/lib/speakeasy_client_sdk/models/shared/suggestrequestbody.rb +0 -30
- data/lib/speakeasy_client_sdk/models/shared/workflowdocument.rb +0 -27
- data/lib/speakeasy_client_sdk/models/shared/workspacefeatureflagresponse.rb +0 -24
- data/lib/speakeasy_client_sdk/models/shared/workspaces.rb +0 -33
- data/lib/speakeasy_client_sdk/models/shared.rb +0 -83
- data/lib/speakeasy_client_sdk/workspaces.rb +0 -105
- /data/lib/{speakeasy_client_sdk → open_api_sdk}/utils/t.rb +0 -0
@@ -7,7 +7,7 @@ require 'faraday'
|
|
7
7
|
require 'faraday/multipart'
|
8
8
|
require 'sorbet-runtime'
|
9
9
|
|
10
|
-
module
|
10
|
+
module OpenApiSDK
|
11
11
|
extend T::Sig
|
12
12
|
class Schemas
|
13
13
|
extend T::Sig
|
@@ -19,15 +19,22 @@ module SpeakeasyClientSDK
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
sig { params(
|
23
|
-
def
|
24
|
-
#
|
22
|
+
sig { params(api_id: ::String, version_id: ::String).returns(::OpenApiSDK::Operations::GetSchemaResponse) }
|
23
|
+
def get_latest(api_id, version_id)
|
24
|
+
# get_latest - Get information about the latest schema.
|
25
|
+
# Returns information about the last uploaded schema for a particular API version.
|
26
|
+
# This won't include the schema itself, that can be retrieved via the downloadSchema operation.
|
27
|
+
request = ::OpenApiSDK::Operations::GetSchemaRequest.new(
|
28
|
+
|
29
|
+
api_id: api_id,
|
30
|
+
version_id: version_id
|
31
|
+
)
|
25
32
|
url, params = @sdk_configuration.get_server_details
|
26
33
|
base_url = Utils.template_url(url, params)
|
27
34
|
url = Utils.generate_url(
|
28
|
-
::
|
35
|
+
::OpenApiSDK::Operations::GetSchemaRequest,
|
29
36
|
base_url,
|
30
|
-
'/v1/apis/{apiID}/version/{versionID}/schema
|
37
|
+
'/v1/apis/{apiID}/version/{versionID}/schema',
|
31
38
|
request,
|
32
39
|
@sdk_configuration.globals
|
33
40
|
)
|
@@ -35,21 +42,24 @@ module SpeakeasyClientSDK
|
|
35
42
|
headers['Accept'] = 'application/json'
|
36
43
|
headers['user-agent'] = @sdk_configuration.user_agent
|
37
44
|
|
38
|
-
r = @sdk_configuration.client.
|
45
|
+
r = @sdk_configuration.client.get(url) do |req|
|
39
46
|
req.headers = headers
|
40
47
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
41
48
|
end
|
42
49
|
|
43
50
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
44
51
|
|
45
|
-
res = ::
|
52
|
+
res = ::OpenApiSDK::Operations::GetSchemaResponse.new(
|
46
53
|
status_code: r.status, content_type: content_type, raw_response: r
|
47
54
|
)
|
48
|
-
if r.status
|
49
|
-
else
|
50
|
-
|
55
|
+
if r.status >= 200 && r.status < 300
|
51
56
|
if Utils.match_content_type(content_type, 'application/json')
|
52
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
57
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Schema)
|
58
|
+
res.schema = out
|
59
|
+
end
|
60
|
+
elsif r.status >= 400 && r.status < 500
|
61
|
+
if Utils.match_content_type(content_type, 'application/json')
|
62
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
53
63
|
res.error = out
|
54
64
|
end
|
55
65
|
end
|
@@ -57,41 +67,54 @@ module SpeakeasyClientSDK
|
|
57
67
|
end
|
58
68
|
|
59
69
|
|
60
|
-
sig { params(
|
61
|
-
def
|
62
|
-
#
|
70
|
+
sig { params(api_id: ::String, version_id: ::String, request_body: ::OpenApiSDK::Operations::RegisterSchemaRequestBody).returns(::OpenApiSDK::Operations::RegisterSchemaResponse) }
|
71
|
+
def post(api_id, version_id, request_body)
|
72
|
+
# post - Register a schema.
|
73
|
+
# Allows uploading a schema for a particular API version.
|
74
|
+
# This will be used to populate ApiEndpoints and used as a base for any schema generation if present.
|
75
|
+
request = ::OpenApiSDK::Operations::RegisterSchemaRequest.new(
|
76
|
+
|
77
|
+
api_id: api_id,
|
78
|
+
version_id: version_id,
|
79
|
+
request_body: request_body
|
80
|
+
)
|
63
81
|
url, params = @sdk_configuration.get_server_details
|
64
82
|
base_url = Utils.template_url(url, params)
|
65
83
|
url = Utils.generate_url(
|
66
|
-
::
|
84
|
+
::OpenApiSDK::Operations::RegisterSchemaRequest,
|
67
85
|
base_url,
|
68
|
-
'/v1/apis/{apiID}/version/{versionID}/schema
|
86
|
+
'/v1/apis/{apiID}/version/{versionID}/schema',
|
69
87
|
request,
|
70
88
|
@sdk_configuration.globals
|
71
89
|
)
|
72
90
|
headers = {}
|
73
|
-
|
91
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :multipart)
|
92
|
+
headers['content-type'] = req_content_type
|
93
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
94
|
+
headers['Accept'] = 'application/json'
|
74
95
|
headers['user-agent'] = @sdk_configuration.user_agent
|
75
96
|
|
76
|
-
r = @sdk_configuration.client.
|
97
|
+
r = @sdk_configuration.client.post(url) do |req|
|
77
98
|
req.headers = headers
|
78
99
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
100
|
+
if form
|
101
|
+
req.body = Utils.encode_form(form)
|
102
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
103
|
+
req.body = URI.encode_www_form(data)
|
104
|
+
else
|
105
|
+
req.body = data
|
106
|
+
end
|
79
107
|
end
|
80
108
|
|
81
109
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
82
110
|
|
83
|
-
res = ::
|
111
|
+
res = ::OpenApiSDK::Operations::RegisterSchemaResponse.new(
|
84
112
|
status_code: r.status, content_type: content_type, raw_response: r
|
85
113
|
)
|
86
|
-
if r.status
|
87
|
-
|
88
|
-
|
89
|
-
res.two_hundred_application_x_yaml_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/x-yaml')
|
90
|
-
|
91
|
-
else
|
92
|
-
|
114
|
+
if r.status >= 200 && r.status < 300
|
115
|
+
elsif r.status >= 400 && r.status < 500
|
93
116
|
if Utils.match_content_type(content_type, 'application/json')
|
94
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
117
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
95
118
|
res.error = out
|
96
119
|
end
|
97
120
|
end
|
@@ -99,15 +122,20 @@ module SpeakeasyClientSDK
|
|
99
122
|
end
|
100
123
|
|
101
124
|
|
102
|
-
sig { params(
|
103
|
-
def
|
104
|
-
#
|
125
|
+
sig { params(api_id: ::String, version_id: ::String).returns(::OpenApiSDK::Operations::DownloadSchemaResponse) }
|
126
|
+
def download(api_id, version_id)
|
127
|
+
# download - Download the latest schema for a particular apiID.
|
128
|
+
request = ::OpenApiSDK::Operations::DownloadSchemaRequest.new(
|
129
|
+
|
130
|
+
api_id: api_id,
|
131
|
+
version_id: version_id
|
132
|
+
)
|
105
133
|
url, params = @sdk_configuration.get_server_details
|
106
134
|
base_url = Utils.template_url(url, params)
|
107
135
|
url = Utils.generate_url(
|
108
|
-
::
|
136
|
+
::OpenApiSDK::Operations::DownloadSchemaRequest,
|
109
137
|
base_url,
|
110
|
-
'/v1/apis/{apiID}/version/{versionID}/schema/
|
138
|
+
'/v1/apis/{apiID}/version/{versionID}/schema/download',
|
111
139
|
request,
|
112
140
|
@sdk_configuration.globals
|
113
141
|
)
|
@@ -122,18 +150,17 @@ module SpeakeasyClientSDK
|
|
122
150
|
|
123
151
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
124
152
|
|
125
|
-
res = ::
|
153
|
+
res = ::OpenApiSDK::Operations::DownloadSchemaResponse.new(
|
126
154
|
status_code: r.status, content_type: content_type, raw_response: r
|
127
155
|
)
|
128
|
-
if r.status
|
129
|
-
res.
|
156
|
+
if r.status >= 200 && r.status < 300
|
157
|
+
res.two_xx_application_json_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
|
130
158
|
|
131
|
-
res.
|
159
|
+
res.two_xx_application_x_yaml_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/x-yaml')
|
132
160
|
|
133
|
-
|
134
|
-
|
161
|
+
elsif r.status >= 400 && r.status < 500
|
135
162
|
if Utils.match_content_type(content_type, 'application/json')
|
136
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
163
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
137
164
|
res.error = out
|
138
165
|
end
|
139
166
|
end
|
@@ -141,17 +168,22 @@ module SpeakeasyClientSDK
|
|
141
168
|
end
|
142
169
|
|
143
170
|
|
144
|
-
sig { params(
|
145
|
-
def
|
146
|
-
#
|
147
|
-
|
148
|
-
|
171
|
+
sig { params(api_id: ::String, version_id: ::String, base_revision_id: ::String, target_revision_id: ::String).returns(::OpenApiSDK::Operations::GetSchemaDiffResponse) }
|
172
|
+
def get_diff(api_id, version_id, base_revision_id, target_revision_id)
|
173
|
+
# get_diff - Get a diff of two schema revisions for an Api.
|
174
|
+
request = ::OpenApiSDK::Operations::GetSchemaDiffRequest.new(
|
175
|
+
|
176
|
+
api_id: api_id,
|
177
|
+
version_id: version_id,
|
178
|
+
base_revision_id: base_revision_id,
|
179
|
+
target_revision_id: target_revision_id
|
180
|
+
)
|
149
181
|
url, params = @sdk_configuration.get_server_details
|
150
182
|
base_url = Utils.template_url(url, params)
|
151
183
|
url = Utils.generate_url(
|
152
|
-
::
|
184
|
+
::OpenApiSDK::Operations::GetSchemaDiffRequest,
|
153
185
|
base_url,
|
154
|
-
'/v1/apis/{apiID}/version/{versionID}/schema',
|
186
|
+
'/v1/apis/{apiID}/version/{versionID}/schema/{baseRevisionID}/diff/{targetRevisionID}',
|
155
187
|
request,
|
156
188
|
@sdk_configuration.globals
|
157
189
|
)
|
@@ -166,18 +198,17 @@ module SpeakeasyClientSDK
|
|
166
198
|
|
167
199
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
168
200
|
|
169
|
-
res = ::
|
201
|
+
res = ::OpenApiSDK::Operations::GetSchemaDiffResponse.new(
|
170
202
|
status_code: r.status, content_type: content_type, raw_response: r
|
171
203
|
)
|
172
|
-
if r.status
|
204
|
+
if r.status >= 200 && r.status < 300
|
173
205
|
if Utils.match_content_type(content_type, 'application/json')
|
174
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
175
|
-
res.
|
206
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::SchemaDiff)
|
207
|
+
res.schema_diff = out
|
176
208
|
end
|
177
|
-
|
178
|
-
|
209
|
+
elsif r.status >= 400 && r.status < 500
|
179
210
|
if Utils.match_content_type(content_type, 'application/json')
|
180
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
211
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
181
212
|
res.error = out
|
182
213
|
end
|
183
214
|
end
|
@@ -185,15 +216,21 @@ module SpeakeasyClientSDK
|
|
185
216
|
end
|
186
217
|
|
187
218
|
|
188
|
-
sig { params(
|
189
|
-
def
|
190
|
-
#
|
219
|
+
sig { params(api_id: ::String, version_id: ::String, revision_id: ::String).returns(::OpenApiSDK::Operations::DeleteSchemaResponse) }
|
220
|
+
def delete(api_id, version_id, revision_id)
|
221
|
+
# delete - Delete a particular schema revision for an Api.
|
222
|
+
request = ::OpenApiSDK::Operations::DeleteSchemaRequest.new(
|
223
|
+
|
224
|
+
api_id: api_id,
|
225
|
+
version_id: version_id,
|
226
|
+
revision_id: revision_id
|
227
|
+
)
|
191
228
|
url, params = @sdk_configuration.get_server_details
|
192
229
|
base_url = Utils.template_url(url, params)
|
193
230
|
url = Utils.generate_url(
|
194
|
-
::
|
231
|
+
::OpenApiSDK::Operations::DeleteSchemaRequest,
|
195
232
|
base_url,
|
196
|
-
'/v1/apis/{apiID}/version/{versionID}/schema/{
|
233
|
+
'/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}',
|
197
234
|
request,
|
198
235
|
@sdk_configuration.globals
|
199
236
|
)
|
@@ -201,25 +238,20 @@ module SpeakeasyClientSDK
|
|
201
238
|
headers['Accept'] = 'application/json'
|
202
239
|
headers['user-agent'] = @sdk_configuration.user_agent
|
203
240
|
|
204
|
-
r = @sdk_configuration.client.
|
241
|
+
r = @sdk_configuration.client.delete(url) do |req|
|
205
242
|
req.headers = headers
|
206
243
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
207
244
|
end
|
208
245
|
|
209
246
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
210
247
|
|
211
|
-
res = ::
|
248
|
+
res = ::OpenApiSDK::Operations::DeleteSchemaResponse.new(
|
212
249
|
status_code: r.status, content_type: content_type, raw_response: r
|
213
250
|
)
|
214
|
-
if r.status
|
251
|
+
if r.status >= 200 && r.status < 300
|
252
|
+
elsif r.status >= 400 && r.status < 500
|
215
253
|
if Utils.match_content_type(content_type, 'application/json')
|
216
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
217
|
-
res.schema_diff = out
|
218
|
-
end
|
219
|
-
else
|
220
|
-
|
221
|
-
if Utils.match_content_type(content_type, 'application/json')
|
222
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
254
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
223
255
|
res.error = out
|
224
256
|
end
|
225
257
|
end
|
@@ -227,15 +259,21 @@ module SpeakeasyClientSDK
|
|
227
259
|
end
|
228
260
|
|
229
261
|
|
230
|
-
sig { params(
|
231
|
-
def
|
232
|
-
#
|
262
|
+
sig { params(api_id: ::String, version_id: ::String, revision_id: ::String).returns(::OpenApiSDK::Operations::GetSchemaRevisionResponse) }
|
263
|
+
def get_revision(api_id, version_id, revision_id)
|
264
|
+
# get_revision - Get information about a particular schema revision for an Api.
|
233
265
|
# Returns information about the last uploaded schema for a particular schema revision.
|
234
266
|
# This won't include the schema itself, that can be retrieved via the downloadSchema operation.
|
267
|
+
request = ::OpenApiSDK::Operations::GetSchemaRevisionRequest.new(
|
268
|
+
|
269
|
+
api_id: api_id,
|
270
|
+
version_id: version_id,
|
271
|
+
revision_id: revision_id
|
272
|
+
)
|
235
273
|
url, params = @sdk_configuration.get_server_details
|
236
274
|
base_url = Utils.template_url(url, params)
|
237
275
|
url = Utils.generate_url(
|
238
|
-
::
|
276
|
+
::OpenApiSDK::Operations::GetSchemaRevisionRequest,
|
239
277
|
base_url,
|
240
278
|
'/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}',
|
241
279
|
request,
|
@@ -252,18 +290,17 @@ module SpeakeasyClientSDK
|
|
252
290
|
|
253
291
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
254
292
|
|
255
|
-
res = ::
|
293
|
+
res = ::OpenApiSDK::Operations::GetSchemaRevisionResponse.new(
|
256
294
|
status_code: r.status, content_type: content_type, raw_response: r
|
257
295
|
)
|
258
|
-
if r.status
|
296
|
+
if r.status >= 200 && r.status < 300
|
259
297
|
if Utils.match_content_type(content_type, 'application/json')
|
260
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
298
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Schema)
|
261
299
|
res.schema = out
|
262
300
|
end
|
263
|
-
|
264
|
-
|
301
|
+
elsif r.status >= 400 && r.status < 500
|
265
302
|
if Utils.match_content_type(content_type, 'application/json')
|
266
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
303
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
267
304
|
res.error = out
|
268
305
|
end
|
269
306
|
end
|
@@ -271,22 +308,26 @@ module SpeakeasyClientSDK
|
|
271
308
|
end
|
272
309
|
|
273
310
|
|
274
|
-
sig { params(
|
275
|
-
def
|
276
|
-
#
|
277
|
-
|
278
|
-
|
311
|
+
sig { params(api_id: ::String, version_id: ::String, revision_id: ::String).returns(::OpenApiSDK::Operations::DownloadSchemaRevisionResponse) }
|
312
|
+
def download_revision(api_id, version_id, revision_id)
|
313
|
+
# download_revision - Download a particular schema revision for an Api.
|
314
|
+
request = ::OpenApiSDK::Operations::DownloadSchemaRevisionRequest.new(
|
315
|
+
|
316
|
+
api_id: api_id,
|
317
|
+
version_id: version_id,
|
318
|
+
revision_id: revision_id
|
319
|
+
)
|
279
320
|
url, params = @sdk_configuration.get_server_details
|
280
321
|
base_url = Utils.template_url(url, params)
|
281
322
|
url = Utils.generate_url(
|
282
|
-
::
|
323
|
+
::OpenApiSDK::Operations::DownloadSchemaRevisionRequest,
|
283
324
|
base_url,
|
284
|
-
'/v1/apis/{apiID}/version/{versionID}/
|
325
|
+
'/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}/download',
|
285
326
|
request,
|
286
327
|
@sdk_configuration.globals
|
287
328
|
)
|
288
329
|
headers = {}
|
289
|
-
headers['Accept'] = 'application/json'
|
330
|
+
headers['Accept'] = 'application/json;q=1, application/x-yaml;q=0'
|
290
331
|
headers['user-agent'] = @sdk_configuration.user_agent
|
291
332
|
|
292
333
|
r = @sdk_configuration.client.get(url) do |req|
|
@@ -296,18 +337,17 @@ module SpeakeasyClientSDK
|
|
296
337
|
|
297
338
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
298
339
|
|
299
|
-
res = ::
|
340
|
+
res = ::OpenApiSDK::Operations::DownloadSchemaRevisionResponse.new(
|
300
341
|
status_code: r.status, content_type: content_type, raw_response: r
|
301
342
|
)
|
302
|
-
if r.status
|
303
|
-
if Utils.match_content_type(content_type, 'application/json')
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
343
|
+
if r.status >= 200 && r.status < 300
|
344
|
+
res.two_xx_application_json_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
|
345
|
+
|
346
|
+
res.two_xx_application_x_yaml_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/x-yaml')
|
347
|
+
|
348
|
+
elsif r.status >= 400 && r.status < 500
|
309
349
|
if Utils.match_content_type(content_type, 'application/json')
|
310
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
350
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
311
351
|
res.error = out
|
312
352
|
end
|
313
353
|
end
|
@@ -315,49 +355,47 @@ module SpeakeasyClientSDK
|
|
315
355
|
end
|
316
356
|
|
317
357
|
|
318
|
-
sig { params(
|
319
|
-
def
|
320
|
-
#
|
321
|
-
#
|
322
|
-
# This
|
358
|
+
sig { params(api_id: ::String, version_id: ::String).returns(::OpenApiSDK::Operations::GetSchemasResponse) }
|
359
|
+
def get(api_id, version_id)
|
360
|
+
# get - Get information about all schemas associated with a particular apiID.
|
361
|
+
# Returns information the schemas associated with a particular apiID.
|
362
|
+
# This won't include the schemas themselves, they can be retrieved via the downloadSchema operation.
|
363
|
+
request = ::OpenApiSDK::Operations::GetSchemasRequest.new(
|
364
|
+
|
365
|
+
api_id: api_id,
|
366
|
+
version_id: version_id
|
367
|
+
)
|
323
368
|
url, params = @sdk_configuration.get_server_details
|
324
369
|
base_url = Utils.template_url(url, params)
|
325
370
|
url = Utils.generate_url(
|
326
|
-
::
|
371
|
+
::OpenApiSDK::Operations::GetSchemasRequest,
|
327
372
|
base_url,
|
328
|
-
'/v1/apis/{apiID}/version/{versionID}/
|
373
|
+
'/v1/apis/{apiID}/version/{versionID}/schemas',
|
329
374
|
request,
|
330
375
|
@sdk_configuration.globals
|
331
376
|
)
|
332
377
|
headers = {}
|
333
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :multipart)
|
334
|
-
headers['content-type'] = req_content_type
|
335
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
336
378
|
headers['Accept'] = 'application/json'
|
337
379
|
headers['user-agent'] = @sdk_configuration.user_agent
|
338
380
|
|
339
|
-
r = @sdk_configuration.client.
|
381
|
+
r = @sdk_configuration.client.get(url) do |req|
|
340
382
|
req.headers = headers
|
341
383
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
342
|
-
if form
|
343
|
-
req.body = Utils.encode_form(form)
|
344
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
345
|
-
req.body = URI.encode_www_form(data)
|
346
|
-
else
|
347
|
-
req.body = data
|
348
|
-
end
|
349
384
|
end
|
350
385
|
|
351
386
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
352
387
|
|
353
|
-
res = ::
|
388
|
+
res = ::OpenApiSDK::Operations::GetSchemasResponse.new(
|
354
389
|
status_code: r.status, content_type: content_type, raw_response: r
|
355
390
|
)
|
356
|
-
if r.status
|
357
|
-
|
358
|
-
|
391
|
+
if r.status >= 200 && r.status < 300
|
392
|
+
if Utils.match_content_type(content_type, 'application/json')
|
393
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::Schema])
|
394
|
+
res.schemata = out
|
395
|
+
end
|
396
|
+
elsif r.status >= 400 && r.status < 500
|
359
397
|
if Utils.match_content_type(content_type, 'application/json')
|
360
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
398
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
361
399
|
res.error = out
|
362
400
|
end
|
363
401
|
end
|
@@ -7,7 +7,7 @@ require 'faraday'
|
|
7
7
|
require 'faraday/multipart'
|
8
8
|
require 'sorbet-runtime'
|
9
9
|
|
10
|
-
module
|
10
|
+
module OpenApiSDK
|
11
11
|
extend T::Sig
|
12
12
|
|
13
13
|
SERVER_PROD = :prod
|
@@ -16,11 +16,11 @@ module SpeakeasyClientSDK
|
|
16
16
|
}.freeze
|
17
17
|
# Contains the list of servers available to the SDK
|
18
18
|
|
19
|
-
class SDKConfiguration < ::
|
19
|
+
class SDKConfiguration < ::OpenApiSDK::Utils::FieldAugmented
|
20
20
|
extend T::Sig
|
21
21
|
|
22
22
|
field :client, T.nilable(Faraday::Connection)
|
23
|
-
field :security, T.nilable(::
|
23
|
+
field :security, T.nilable(::OpenApiSDK::Shared::Security)
|
24
24
|
field :server_url, T.nilable(String)
|
25
25
|
field :server, Symbol
|
26
26
|
field :globals, Hash[Symbol, Hash[Symbol, Hash[Symbol, Object]]]
|
@@ -31,7 +31,7 @@ module SpeakeasyClientSDK
|
|
31
31
|
field :user_agent, String
|
32
32
|
|
33
33
|
|
34
|
-
sig { params(client: Faraday::Connection, security: T.nilable(::
|
34
|
+
sig { params(client: Faraday::Connection, security: T.nilable(::OpenApiSDK::Shared::Security), server_url: T.nilable(String), server: T.nilable(Symbol), globals: T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]]).void }
|
35
35
|
def initialize(client, security, server_url, server, globals)
|
36
36
|
@client = client
|
37
37
|
@server_url = server_url
|
@@ -41,9 +41,9 @@ module SpeakeasyClientSDK
|
|
41
41
|
@globals = globals.nil? ? {} : globals
|
42
42
|
@language = 'ruby'
|
43
43
|
@openapi_doc_version = '0.4.0 .'
|
44
|
-
@sdk_version = '4.2.
|
45
|
-
@gen_version = '2.
|
46
|
-
@user_agent = 'speakeasy-sdk/ruby 4.2.
|
44
|
+
@sdk_version = '4.2.24'
|
45
|
+
@gen_version = '2.429.0'
|
46
|
+
@user_agent = 'speakeasy-sdk/ruby 4.2.24 2.429.0 0.4.0 . speakeasy_client_sdk_ruby'
|
47
47
|
end
|
48
48
|
|
49
49
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
@@ -7,7 +7,7 @@ require 'faraday'
|
|
7
7
|
require 'faraday/multipart'
|
8
8
|
require 'sorbet-runtime'
|
9
9
|
|
10
|
-
module
|
10
|
+
module OpenApiSDK
|
11
11
|
extend T::Sig
|
12
12
|
class ShortURLs
|
13
13
|
extend T::Sig
|
@@ -19,7 +19,7 @@ module SpeakeasyClientSDK
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
sig { params(request: ::
|
22
|
+
sig { params(request: ::OpenApiSDK::Operations::CreateRequestBody).returns(::OpenApiSDK::Operations::CreateResponse) }
|
23
23
|
def create(request)
|
24
24
|
# create - Shorten a URL.
|
25
25
|
url, params = @sdk_configuration.get_server_details
|
@@ -46,12 +46,12 @@ module SpeakeasyClientSDK
|
|
46
46
|
|
47
47
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
48
48
|
|
49
|
-
res = ::
|
49
|
+
res = ::OpenApiSDK::Operations::CreateResponse.new(
|
50
50
|
status_code: r.status, content_type: content_type, raw_response: r
|
51
51
|
)
|
52
|
-
if r.status
|
52
|
+
if r.status >= 200 && r.status < 300
|
53
53
|
if Utils.match_content_type(content_type, 'application/json')
|
54
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
54
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::ShortURL)
|
55
55
|
res.short_url = out
|
56
56
|
end
|
57
57
|
end
|
@@ -7,13 +7,13 @@ require 'faraday'
|
|
7
7
|
require 'faraday/multipart'
|
8
8
|
require 'sorbet-runtime'
|
9
9
|
|
10
|
-
module
|
10
|
+
module OpenApiSDK
|
11
11
|
extend T::Sig
|
12
12
|
|
13
|
-
class
|
13
|
+
class SpeakeasyClientSDK
|
14
14
|
extend T::Sig
|
15
15
|
|
16
|
-
attr_accessor :apis, :
|
16
|
+
attr_accessor :apis, :apiendpoints, :speakeasy_client_sdk_api_endpoints, :metadata, :schemas, :auth, :requests, :github, :organizations, :embeds, :workspaces, :events, :artifacts, :reports, :suggest, :short_ur_ls
|
17
17
|
|
18
18
|
sig do
|
19
19
|
params(client: Faraday::Request,
|
@@ -82,7 +82,7 @@ module SpeakeasyClientSDK
|
|
82
82
|
init_sdks
|
83
83
|
end
|
84
84
|
|
85
|
-
sig { params(security: ::
|
85
|
+
sig { params(security: ::OpenApiSDK::Shared::Security).void }
|
86
86
|
def config_security(security)
|
87
87
|
@sdk_configuration.security = security
|
88
88
|
end
|
@@ -90,20 +90,21 @@ module SpeakeasyClientSDK
|
|
90
90
|
sig { void }
|
91
91
|
def init_sdks
|
92
92
|
@apis = Apis.new(@sdk_configuration)
|
93
|
-
@
|
93
|
+
@apiendpoints = Apiendpoints.new(@sdk_configuration)
|
94
|
+
@api_endpoints = SpeakeasyClientSDKApiEndpoints.new(@sdk_configuration)
|
94
95
|
@metadata = Metadata.new(@sdk_configuration)
|
95
96
|
@schemas = Schemas.new(@sdk_configuration)
|
96
|
-
@artifacts = Artifacts.new(@sdk_configuration)
|
97
97
|
@auth = Auth.new(@sdk_configuration)
|
98
98
|
@requests = Requests.new(@sdk_configuration)
|
99
99
|
@github = Github.new(@sdk_configuration)
|
100
100
|
@organizations = Organizations.new(@sdk_configuration)
|
101
|
-
@reports = Reports.new(@sdk_configuration)
|
102
|
-
@short_ur_ls = ShortURLs.new(@sdk_configuration)
|
103
|
-
@suggest = Suggest.new(@sdk_configuration)
|
104
101
|
@embeds = Embeds.new(@sdk_configuration)
|
105
102
|
@workspaces = Workspaces.new(@sdk_configuration)
|
106
103
|
@events = Events.new(@sdk_configuration)
|
104
|
+
@artifacts = Artifacts.new(@sdk_configuration)
|
105
|
+
@reports = Reports.new(@sdk_configuration)
|
106
|
+
@suggest = Suggest.new(@sdk_configuration)
|
107
|
+
@short_ur_ls = ShortURLs.new(@sdk_configuration)
|
107
108
|
end
|
108
109
|
end
|
109
110
|
end
|