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 Github
|
13
13
|
extend T::Sig
|
@@ -19,14 +19,19 @@ module SpeakeasyClientSDK
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
sig { params(
|
23
|
-
def check_access(
|
22
|
+
sig { params(org: ::String, repo: ::String).returns(::OpenApiSDK::Operations::CheckGithubAccessResponse) }
|
23
|
+
def check_access(org, repo)
|
24
24
|
|
25
|
+
request = ::OpenApiSDK::Operations::CheckGithubAccessRequest.new(
|
26
|
+
|
27
|
+
org: org,
|
28
|
+
repo: repo
|
29
|
+
)
|
25
30
|
url, params = @sdk_configuration.get_server_details
|
26
31
|
base_url = Utils.template_url(url, params)
|
27
32
|
url = "#{base_url}/v1/github/check_access"
|
28
33
|
headers = {}
|
29
|
-
query_params = Utils.get_query_params(::
|
34
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::CheckGithubAccessRequest, request, @sdk_configuration.globals)
|
30
35
|
headers['Accept'] = 'application/json'
|
31
36
|
headers['user-agent'] = @sdk_configuration.user_agent
|
32
37
|
|
@@ -38,14 +43,13 @@ module SpeakeasyClientSDK
|
|
38
43
|
|
39
44
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
40
45
|
|
41
|
-
res = ::
|
46
|
+
res = ::OpenApiSDK::Operations::CheckGithubAccessResponse.new(
|
42
47
|
status_code: r.status, content_type: content_type, raw_response: r
|
43
48
|
)
|
44
|
-
if r.status
|
45
|
-
|
46
|
-
|
49
|
+
if r.status >= 200 && r.status < 300
|
50
|
+
elsif r.status >= 400 && r.status < 500
|
47
51
|
if Utils.match_content_type(content_type, 'application/json')
|
48
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
52
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
49
53
|
res.error = out
|
50
54
|
end
|
51
55
|
end
|
@@ -53,45 +57,42 @@ module SpeakeasyClientSDK
|
|
53
57
|
end
|
54
58
|
|
55
59
|
|
56
|
-
sig { params(
|
57
|
-
def
|
60
|
+
sig { params(generate_gen_lock_id: ::String, org: ::String, repo: ::String).returns(::OpenApiSDK::Operations::GithubCheckPublishingPRsResponse) }
|
61
|
+
def check_publishing_p_rs(generate_gen_lock_id, org, repo)
|
58
62
|
|
63
|
+
request = ::OpenApiSDK::Operations::GithubCheckPublishingPRsRequest.new(
|
64
|
+
|
65
|
+
generate_gen_lock_id: generate_gen_lock_id,
|
66
|
+
org: org,
|
67
|
+
repo: repo
|
68
|
+
)
|
59
69
|
url, params = @sdk_configuration.get_server_details
|
60
70
|
base_url = Utils.template_url(url, params)
|
61
|
-
url = "#{base_url}/v1/github/
|
71
|
+
url = "#{base_url}/v1/github/publishing_prs"
|
62
72
|
headers = {}
|
63
|
-
|
64
|
-
headers['content-type'] = req_content_type
|
65
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
73
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::GithubCheckPublishingPRsRequest, request, @sdk_configuration.globals)
|
66
74
|
headers['Accept'] = 'application/json'
|
67
75
|
headers['user-agent'] = @sdk_configuration.user_agent
|
68
76
|
|
69
|
-
r = @sdk_configuration.client.
|
77
|
+
r = @sdk_configuration.client.get(url) do |req|
|
70
78
|
req.headers = headers
|
79
|
+
req.params = query_params
|
71
80
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
72
|
-
if form
|
73
|
-
req.body = Utils.encode_form(form)
|
74
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
75
|
-
req.body = URI.encode_www_form(data)
|
76
|
-
else
|
77
|
-
req.body = data
|
78
|
-
end
|
79
81
|
end
|
80
82
|
|
81
83
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
82
84
|
|
83
|
-
res = ::
|
85
|
+
res = ::OpenApiSDK::Operations::GithubCheckPublishingPRsResponse.new(
|
84
86
|
status_code: r.status, content_type: content_type, raw_response: r
|
85
87
|
)
|
86
|
-
if r.status
|
88
|
+
if r.status >= 200 && r.status < 300
|
87
89
|
if Utils.match_content_type(content_type, 'application/json')
|
88
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
89
|
-
res.
|
90
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::GithubPublishingPRResponse)
|
91
|
+
res.github_publishing_pr_response = out
|
90
92
|
end
|
91
|
-
|
92
|
-
|
93
|
+
elsif r.status >= 400 && r.status < 500
|
93
94
|
if Utils.match_content_type(content_type, 'application/json')
|
94
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
95
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
95
96
|
res.error = out
|
96
97
|
end
|
97
98
|
end
|
@@ -99,41 +100,40 @@ module SpeakeasyClientSDK
|
|
99
100
|
end
|
100
101
|
|
101
102
|
|
102
|
-
sig { params(
|
103
|
-
def
|
103
|
+
sig { params(generate_gen_lock_id: ::String).returns(::OpenApiSDK::Operations::GithubCheckPublishingSecretsResponse) }
|
104
|
+
def check_publishing_secrets(generate_gen_lock_id)
|
104
105
|
|
106
|
+
request = ::OpenApiSDK::Operations::GithubCheckPublishingSecretsRequest.new(
|
107
|
+
|
108
|
+
generate_gen_lock_id: generate_gen_lock_id
|
109
|
+
)
|
105
110
|
url, params = @sdk_configuration.get_server_details
|
106
111
|
base_url = Utils.template_url(url, params)
|
107
|
-
url = "#{base_url}/v1/github/
|
112
|
+
url = "#{base_url}/v1/github/publishing_secrets"
|
108
113
|
headers = {}
|
109
|
-
|
110
|
-
headers['content-type'] = req_content_type
|
111
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
114
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::GithubCheckPublishingSecretsRequest, request, @sdk_configuration.globals)
|
112
115
|
headers['Accept'] = 'application/json'
|
113
116
|
headers['user-agent'] = @sdk_configuration.user_agent
|
114
117
|
|
115
|
-
r = @sdk_configuration.client.
|
118
|
+
r = @sdk_configuration.client.get(url) do |req|
|
116
119
|
req.headers = headers
|
120
|
+
req.params = query_params
|
117
121
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
118
|
-
if form
|
119
|
-
req.body = Utils.encode_form(form)
|
120
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
121
|
-
req.body = URI.encode_www_form(data)
|
122
|
-
else
|
123
|
-
req.body = data
|
124
|
-
end
|
125
122
|
end
|
126
123
|
|
127
124
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
128
125
|
|
129
|
-
res = ::
|
126
|
+
res = ::OpenApiSDK::Operations::GithubCheckPublishingSecretsResponse.new(
|
130
127
|
status_code: r.status, content_type: content_type, raw_response: r
|
131
128
|
)
|
132
|
-
if r.status
|
133
|
-
else
|
134
|
-
|
129
|
+
if r.status >= 200 && r.status < 300
|
135
130
|
if Utils.match_content_type(content_type, 'application/json')
|
136
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
131
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::GithubMissingPublishingSecretsResponse)
|
132
|
+
res.github_missing_publishing_secrets_response = out
|
133
|
+
end
|
134
|
+
elsif r.status >= 400 && r.status < 500
|
135
|
+
if Utils.match_content_type(content_type, 'application/json')
|
136
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
137
137
|
res.error = out
|
138
138
|
end
|
139
139
|
end
|
@@ -141,12 +141,12 @@ module SpeakeasyClientSDK
|
|
141
141
|
end
|
142
142
|
|
143
143
|
|
144
|
-
sig { params(request: ::
|
145
|
-
def
|
144
|
+
sig { params(request: ::OpenApiSDK::Shared::GithubStorePublishingSecretsRequest).returns(::OpenApiSDK::Operations::GithubStorePublishingSecretsResponse) }
|
145
|
+
def store_publishing_secrets(request)
|
146
146
|
|
147
147
|
url, params = @sdk_configuration.get_server_details
|
148
148
|
base_url = Utils.template_url(url, params)
|
149
|
-
url = "#{base_url}/v1/github/
|
149
|
+
url = "#{base_url}/v1/github/publishing_secrets"
|
150
150
|
headers = {}
|
151
151
|
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
152
152
|
headers['content-type'] = req_content_type
|
@@ -168,14 +168,13 @@ module SpeakeasyClientSDK
|
|
168
168
|
|
169
169
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
170
170
|
|
171
|
-
res = ::
|
171
|
+
res = ::OpenApiSDK::Operations::GithubStorePublishingSecretsResponse.new(
|
172
172
|
status_code: r.status, content_type: content_type, raw_response: r
|
173
173
|
)
|
174
|
-
if r.status
|
175
|
-
|
176
|
-
|
174
|
+
if r.status >= 200 && r.status < 300
|
175
|
+
elsif r.status >= 400 && r.status < 500
|
177
176
|
if Utils.match_content_type(content_type, 'application/json')
|
178
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
177
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
179
178
|
res.error = out
|
180
179
|
end
|
181
180
|
end
|
@@ -183,37 +182,44 @@ module SpeakeasyClientSDK
|
|
183
182
|
end
|
184
183
|
|
185
184
|
|
186
|
-
sig { params(request:
|
187
|
-
def
|
185
|
+
sig { params(request: ::OpenApiSDK::Shared::GithubConfigureCodeSamplesRequest).returns(::OpenApiSDK::Operations::GithubConfigureCodeSamplesResponse) }
|
186
|
+
def configure_code_samples(request)
|
188
187
|
|
189
188
|
url, params = @sdk_configuration.get_server_details
|
190
189
|
base_url = Utils.template_url(url, params)
|
191
|
-
url = "#{base_url}/v1/github/
|
190
|
+
url = "#{base_url}/v1/github/configure_code_samples"
|
192
191
|
headers = {}
|
193
|
-
|
192
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
193
|
+
headers['content-type'] = req_content_type
|
194
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
194
195
|
headers['Accept'] = 'application/json'
|
195
196
|
headers['user-agent'] = @sdk_configuration.user_agent
|
196
197
|
|
197
|
-
r = @sdk_configuration.client.
|
198
|
+
r = @sdk_configuration.client.post(url) do |req|
|
198
199
|
req.headers = headers
|
199
|
-
req.params = query_params
|
200
200
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
201
|
+
if form
|
202
|
+
req.body = Utils.encode_form(form)
|
203
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
204
|
+
req.body = URI.encode_www_form(data)
|
205
|
+
else
|
206
|
+
req.body = data
|
207
|
+
end
|
201
208
|
end
|
202
209
|
|
203
210
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
204
211
|
|
205
|
-
res = ::
|
212
|
+
res = ::OpenApiSDK::Operations::GithubConfigureCodeSamplesResponse.new(
|
206
213
|
status_code: r.status, content_type: content_type, raw_response: r
|
207
214
|
)
|
208
|
-
if r.status
|
215
|
+
if r.status >= 200 && r.status < 300
|
209
216
|
if Utils.match_content_type(content_type, 'application/json')
|
210
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
211
|
-
res.
|
217
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::GithubConfigureCodeSamplesResponse)
|
218
|
+
res.github_configure_code_samples_response = out
|
212
219
|
end
|
213
|
-
|
214
|
-
|
220
|
+
elsif r.status >= 400 && r.status < 500
|
215
221
|
if Utils.match_content_type(content_type, 'application/json')
|
216
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
222
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
217
223
|
res.error = out
|
218
224
|
end
|
219
225
|
end
|
@@ -221,37 +227,40 @@ module SpeakeasyClientSDK
|
|
221
227
|
end
|
222
228
|
|
223
229
|
|
224
|
-
sig { params(request:
|
225
|
-
def
|
230
|
+
sig { params(request: ::OpenApiSDK::Shared::GithubConfigureMintlifyRepoRequest).returns(::OpenApiSDK::Operations::GithubConfigureMintlifyRepoResponse) }
|
231
|
+
def configure_mintlify_repo(request)
|
226
232
|
|
227
233
|
url, params = @sdk_configuration.get_server_details
|
228
234
|
base_url = Utils.template_url(url, params)
|
229
|
-
url = "#{base_url}/v1/github/
|
235
|
+
url = "#{base_url}/v1/github/configure_mintlify_repo"
|
230
236
|
headers = {}
|
231
|
-
|
237
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
238
|
+
headers['content-type'] = req_content_type
|
239
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
232
240
|
headers['Accept'] = 'application/json'
|
233
241
|
headers['user-agent'] = @sdk_configuration.user_agent
|
234
242
|
|
235
|
-
r = @sdk_configuration.client.
|
243
|
+
r = @sdk_configuration.client.post(url) do |req|
|
236
244
|
req.headers = headers
|
237
|
-
req.params = query_params
|
238
245
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
246
|
+
if form
|
247
|
+
req.body = Utils.encode_form(form)
|
248
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
249
|
+
req.body = URI.encode_www_form(data)
|
250
|
+
else
|
251
|
+
req.body = data
|
252
|
+
end
|
239
253
|
end
|
240
254
|
|
241
255
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
242
256
|
|
243
|
-
res = ::
|
257
|
+
res = ::OpenApiSDK::Operations::GithubConfigureMintlifyRepoResponse.new(
|
244
258
|
status_code: r.status, content_type: content_type, raw_response: r
|
245
259
|
)
|
246
|
-
if r.status
|
260
|
+
if r.status >= 200 && r.status < 300
|
261
|
+
elsif r.status >= 400 && r.status < 500
|
247
262
|
if Utils.match_content_type(content_type, 'application/json')
|
248
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
249
|
-
res.github_get_action_response = out
|
250
|
-
end
|
251
|
-
else
|
252
|
-
|
253
|
-
if Utils.match_content_type(content_type, 'application/json')
|
254
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
263
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
255
264
|
res.error = out
|
256
265
|
end
|
257
266
|
end
|
@@ -259,37 +268,40 @@ module SpeakeasyClientSDK
|
|
259
268
|
end
|
260
269
|
|
261
270
|
|
262
|
-
sig { params(request:
|
263
|
-
def
|
271
|
+
sig { params(request: ::OpenApiSDK::Shared::GithubConfigureTargetRequest).returns(::OpenApiSDK::Operations::GithubConfigureTargetResponse) }
|
272
|
+
def configure_target(request)
|
264
273
|
|
265
274
|
url, params = @sdk_configuration.get_server_details
|
266
275
|
base_url = Utils.template_url(url, params)
|
267
|
-
url = "#{base_url}/v1/github/
|
276
|
+
url = "#{base_url}/v1/github/configure_target"
|
268
277
|
headers = {}
|
269
|
-
|
278
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
279
|
+
headers['content-type'] = req_content_type
|
280
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
270
281
|
headers['Accept'] = 'application/json'
|
271
282
|
headers['user-agent'] = @sdk_configuration.user_agent
|
272
283
|
|
273
|
-
r = @sdk_configuration.client.
|
284
|
+
r = @sdk_configuration.client.post(url) do |req|
|
274
285
|
req.headers = headers
|
275
|
-
req.params = query_params
|
276
286
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
287
|
+
if form
|
288
|
+
req.body = Utils.encode_form(form)
|
289
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
290
|
+
req.body = URI.encode_www_form(data)
|
291
|
+
else
|
292
|
+
req.body = data
|
293
|
+
end
|
277
294
|
end
|
278
295
|
|
279
296
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
280
297
|
|
281
|
-
res = ::
|
298
|
+
res = ::OpenApiSDK::Operations::GithubConfigureTargetResponse.new(
|
282
299
|
status_code: r.status, content_type: content_type, raw_response: r
|
283
300
|
)
|
284
|
-
if r.status
|
301
|
+
if r.status >= 200 && r.status < 300
|
302
|
+
elsif r.status >= 400 && r.status < 500
|
285
303
|
if Utils.match_content_type(content_type, 'application/json')
|
286
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
287
|
-
res.github_missing_publishing_secrets_response = out
|
288
|
-
end
|
289
|
-
else
|
290
|
-
|
291
|
-
if Utils.match_content_type(content_type, 'application/json')
|
292
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
304
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
293
305
|
res.error = out
|
294
306
|
end
|
295
307
|
end
|
@@ -297,12 +309,12 @@ module SpeakeasyClientSDK
|
|
297
309
|
end
|
298
310
|
|
299
311
|
|
300
|
-
sig { params(request: ::
|
301
|
-
def
|
312
|
+
sig { params(request: ::OpenApiSDK::Shared::GithubTriggerActionRequest).returns(::OpenApiSDK::Operations::GithubTriggerActionResponse) }
|
313
|
+
def trigger_action(request)
|
302
314
|
|
303
315
|
url, params = @sdk_configuration.get_server_details
|
304
316
|
base_url = Utils.template_url(url, params)
|
305
|
-
url = "#{base_url}/v1/github/
|
317
|
+
url = "#{base_url}/v1/github/trigger_action"
|
306
318
|
headers = {}
|
307
319
|
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
308
320
|
headers['content-type'] = req_content_type
|
@@ -324,14 +336,13 @@ module SpeakeasyClientSDK
|
|
324
336
|
|
325
337
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
326
338
|
|
327
|
-
res = ::
|
339
|
+
res = ::OpenApiSDK::Operations::GithubTriggerActionResponse.new(
|
328
340
|
status_code: r.status, content_type: content_type, raw_response: r
|
329
341
|
)
|
330
|
-
if r.status
|
331
|
-
|
332
|
-
|
342
|
+
if r.status >= 200 && r.status < 300
|
343
|
+
elsif r.status >= 400 && r.status < 500
|
333
344
|
if Utils.match_content_type(content_type, 'application/json')
|
334
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
345
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
335
346
|
res.error = out
|
336
347
|
end
|
337
348
|
end
|
@@ -339,41 +350,42 @@ module SpeakeasyClientSDK
|
|
339
350
|
end
|
340
351
|
|
341
352
|
|
342
|
-
sig { params(
|
343
|
-
def
|
353
|
+
sig { params(org: ::String, repo: ::String, target_name: T.nilable(::String)).returns(::OpenApiSDK::Operations::GetGitHubActionResponse) }
|
354
|
+
def get_action(org, repo, target_name = nil)
|
344
355
|
|
356
|
+
request = ::OpenApiSDK::Operations::GetGitHubActionRequest.new(
|
357
|
+
|
358
|
+
org: org,
|
359
|
+
repo: repo,
|
360
|
+
target_name: target_name
|
361
|
+
)
|
345
362
|
url, params = @sdk_configuration.get_server_details
|
346
363
|
base_url = Utils.template_url(url, params)
|
347
|
-
url = "#{base_url}/v1/github/
|
364
|
+
url = "#{base_url}/v1/github/action"
|
348
365
|
headers = {}
|
349
|
-
|
350
|
-
headers['content-type'] = req_content_type
|
351
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
366
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::GetGitHubActionRequest, request, @sdk_configuration.globals)
|
352
367
|
headers['Accept'] = 'application/json'
|
353
368
|
headers['user-agent'] = @sdk_configuration.user_agent
|
354
369
|
|
355
|
-
r = @sdk_configuration.client.
|
370
|
+
r = @sdk_configuration.client.get(url) do |req|
|
356
371
|
req.headers = headers
|
372
|
+
req.params = query_params
|
357
373
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
358
|
-
if form
|
359
|
-
req.body = Utils.encode_form(form)
|
360
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
361
|
-
req.body = URI.encode_www_form(data)
|
362
|
-
else
|
363
|
-
req.body = data
|
364
|
-
end
|
365
374
|
end
|
366
375
|
|
367
376
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
368
377
|
|
369
|
-
res = ::
|
378
|
+
res = ::OpenApiSDK::Operations::GetGitHubActionResponse.new(
|
370
379
|
status_code: r.status, content_type: content_type, raw_response: r
|
371
380
|
)
|
372
|
-
if r.status
|
373
|
-
|
374
|
-
|
381
|
+
if r.status >= 200 && r.status < 300
|
382
|
+
if Utils.match_content_type(content_type, 'application/json')
|
383
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::GithubGetActionResponse)
|
384
|
+
res.github_get_action_response = out
|
385
|
+
end
|
386
|
+
elsif r.status >= 400 && r.status < 500
|
375
387
|
if Utils.match_content_type(content_type, 'application/json')
|
376
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
388
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
377
389
|
res.error = out
|
378
390
|
end
|
379
391
|
end
|