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
data/lib/{speakeasy_client_sdk/apiendpoints.rb → open_api_sdk/speakeasyclientsdk_apiendpoints.rb}
RENAMED
@@ -7,9 +7,9 @@ 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
|
-
class
|
12
|
+
class SpeakeasyClientSDKApiEndpoints
|
13
13
|
extend T::Sig
|
14
14
|
# REST APIs for managing ApiEndpoint entities
|
15
15
|
|
@@ -19,16 +19,20 @@ module SpeakeasyClientSDK
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
sig { params(
|
23
|
-
def
|
24
|
-
#
|
25
|
-
|
22
|
+
sig { params(api_id: ::String, version_id: ::String).returns(::OpenApiSDK::Operations::GetAllForVersionApiEndpointsResponse) }
|
23
|
+
def get_all(api_id, version_id)
|
24
|
+
# get_all - Get all ApiEndpoints for a particular apiID and versionID.
|
25
|
+
request = ::OpenApiSDK::Operations::GetAllForVersionApiEndpointsRequest.new(
|
26
|
+
|
27
|
+
api_id: api_id,
|
28
|
+
version_id: version_id
|
29
|
+
)
|
26
30
|
url, params = @sdk_configuration.get_server_details
|
27
31
|
base_url = Utils.template_url(url, params)
|
28
32
|
url = Utils.generate_url(
|
29
|
-
::
|
33
|
+
::OpenApiSDK::Operations::GetAllForVersionApiEndpointsRequest,
|
30
34
|
base_url,
|
31
|
-
'/v1/apis/{apiID}/version/{versionID}/api_endpoints
|
35
|
+
'/v1/apis/{apiID}/version/{versionID}/api_endpoints',
|
32
36
|
request,
|
33
37
|
@sdk_configuration.globals
|
34
38
|
)
|
@@ -36,21 +40,24 @@ module SpeakeasyClientSDK
|
|
36
40
|
headers['Accept'] = 'application/json'
|
37
41
|
headers['user-agent'] = @sdk_configuration.user_agent
|
38
42
|
|
39
|
-
r = @sdk_configuration.client.
|
43
|
+
r = @sdk_configuration.client.get(url) do |req|
|
40
44
|
req.headers = headers
|
41
45
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
42
46
|
end
|
43
47
|
|
44
48
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
45
49
|
|
46
|
-
res = ::
|
50
|
+
res = ::OpenApiSDK::Operations::GetAllForVersionApiEndpointsResponse.new(
|
47
51
|
status_code: r.status, content_type: content_type, raw_response: r
|
48
52
|
)
|
49
|
-
if r.status
|
50
|
-
else
|
51
|
-
|
53
|
+
if r.status >= 200 && r.status < 300
|
52
54
|
if Utils.match_content_type(content_type, 'application/json')
|
53
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
55
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::ApiEndpoint])
|
56
|
+
res.api_endpoints = out
|
57
|
+
end
|
58
|
+
elsif r.status >= 400 && r.status < 500
|
59
|
+
if Utils.match_content_type(content_type, 'application/json')
|
60
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
54
61
|
res.error = out
|
55
62
|
end
|
56
63
|
end
|
@@ -58,15 +65,21 @@ module SpeakeasyClientSDK
|
|
58
65
|
end
|
59
66
|
|
60
67
|
|
61
|
-
sig { params(
|
62
|
-
def
|
63
|
-
#
|
68
|
+
sig { params(api_id: ::String, version_id: ::String, display_name: ::String).returns(::OpenApiSDK::Operations::FindApiEndpointResponse) }
|
69
|
+
def find(api_id, version_id, display_name)
|
70
|
+
# find - Find an ApiEndpoint via its displayName.
|
64
71
|
# Find an ApiEndpoint via its displayName (set by operationId from a registered OpenAPI schema).
|
65
72
|
# This is useful for finding the ID of an ApiEndpoint to use in the /v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID} endpoints.
|
73
|
+
request = ::OpenApiSDK::Operations::FindApiEndpointRequest.new(
|
74
|
+
|
75
|
+
api_id: api_id,
|
76
|
+
version_id: version_id,
|
77
|
+
display_name: display_name
|
78
|
+
)
|
66
79
|
url, params = @sdk_configuration.get_server_details
|
67
80
|
base_url = Utils.template_url(url, params)
|
68
81
|
url = Utils.generate_url(
|
69
|
-
::
|
82
|
+
::OpenApiSDK::Operations::FindApiEndpointRequest,
|
70
83
|
base_url,
|
71
84
|
'/v1/apis/{apiID}/version/{versionID}/api_endpoints/find/{displayName}',
|
72
85
|
request,
|
@@ -83,18 +96,17 @@ module SpeakeasyClientSDK
|
|
83
96
|
|
84
97
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
85
98
|
|
86
|
-
res = ::
|
99
|
+
res = ::OpenApiSDK::Operations::FindApiEndpointResponse.new(
|
87
100
|
status_code: r.status, content_type: content_type, raw_response: r
|
88
101
|
)
|
89
|
-
if r.status
|
102
|
+
if r.status >= 200 && r.status < 300
|
90
103
|
if Utils.match_content_type(content_type, 'application/json')
|
91
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
104
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::ApiEndpoint)
|
92
105
|
res.api_endpoint = out
|
93
106
|
end
|
94
|
-
|
95
|
-
|
107
|
+
elsif r.status >= 400 && r.status < 500
|
96
108
|
if Utils.match_content_type(content_type, 'application/json')
|
97
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
109
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
98
110
|
res.error = out
|
99
111
|
end
|
100
112
|
end
|
@@ -102,17 +114,22 @@ module SpeakeasyClientSDK
|
|
102
114
|
end
|
103
115
|
|
104
116
|
|
105
|
-
sig { params(
|
106
|
-
def
|
107
|
-
#
|
108
|
-
#
|
109
|
-
|
117
|
+
sig { params(api_id: ::String, version_id: ::String, api_endpoint_id: ::String).returns(::OpenApiSDK::Operations::DeleteApiEndpointResponse) }
|
118
|
+
def delete(api_id, version_id, api_endpoint_id)
|
119
|
+
# delete - Delete an ApiEndpoint.
|
120
|
+
# Delete an ApiEndpoint. This will also delete all associated Request Logs (if using a Postgres datastore).
|
121
|
+
request = ::OpenApiSDK::Operations::DeleteApiEndpointRequest.new(
|
122
|
+
|
123
|
+
api_id: api_id,
|
124
|
+
version_id: version_id,
|
125
|
+
api_endpoint_id: api_endpoint_id
|
126
|
+
)
|
110
127
|
url, params = @sdk_configuration.get_server_details
|
111
128
|
base_url = Utils.template_url(url, params)
|
112
129
|
url = Utils.generate_url(
|
113
|
-
::
|
130
|
+
::OpenApiSDK::Operations::DeleteApiEndpointRequest,
|
114
131
|
base_url,
|
115
|
-
'/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}
|
132
|
+
'/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}',
|
116
133
|
request,
|
117
134
|
@sdk_configuration.globals
|
118
135
|
)
|
@@ -120,25 +137,20 @@ module SpeakeasyClientSDK
|
|
120
137
|
headers['Accept'] = 'application/json'
|
121
138
|
headers['user-agent'] = @sdk_configuration.user_agent
|
122
139
|
|
123
|
-
r = @sdk_configuration.client.
|
140
|
+
r = @sdk_configuration.client.delete(url) do |req|
|
124
141
|
req.headers = headers
|
125
142
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
126
143
|
end
|
127
144
|
|
128
145
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
129
146
|
|
130
|
-
res = ::
|
147
|
+
res = ::OpenApiSDK::Operations::DeleteApiEndpointResponse.new(
|
131
148
|
status_code: r.status, content_type: content_type, raw_response: r
|
132
149
|
)
|
133
|
-
if r.status
|
150
|
+
if r.status >= 200 && r.status < 300
|
151
|
+
elsif r.status >= 400 && r.status < 500
|
134
152
|
if Utils.match_content_type(content_type, 'application/json')
|
135
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
136
|
-
res.generate_open_api_spec_diff = out
|
137
|
-
end
|
138
|
-
else
|
139
|
-
|
140
|
-
if Utils.match_content_type(content_type, 'application/json')
|
141
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
153
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
142
154
|
res.error = out
|
143
155
|
end
|
144
156
|
end
|
@@ -146,56 +158,21 @@ module SpeakeasyClientSDK
|
|
146
158
|
end
|
147
159
|
|
148
160
|
|
149
|
-
sig { params(
|
150
|
-
def
|
151
|
-
#
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
base_url,
|
158
|
-
'/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}/generate/postman',
|
159
|
-
request,
|
160
|
-
@sdk_configuration.globals
|
161
|
-
)
|
162
|
-
headers = {}
|
163
|
-
headers['Accept'] = 'application/json;q=1, application/octet-stream;q=0'
|
164
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
165
|
-
|
166
|
-
r = @sdk_configuration.client.get(url) do |req|
|
167
|
-
req.headers = headers
|
168
|
-
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
169
|
-
end
|
170
|
-
|
171
|
-
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
172
|
-
|
173
|
-
res = ::SpeakeasyClientSDK::Operations::GeneratePostmanCollectionForApiEndpointResponse.new(
|
174
|
-
status_code: r.status, content_type: content_type, raw_response: r
|
161
|
+
sig { params(api_id: ::String, version_id: ::String, api_endpoint_id: ::String).returns(::OpenApiSDK::Operations::GetApiEndpointResponse) }
|
162
|
+
def get(api_id, version_id, api_endpoint_id)
|
163
|
+
# get - Get an ApiEndpoint.
|
164
|
+
request = ::OpenApiSDK::Operations::GetApiEndpointRequest.new(
|
165
|
+
|
166
|
+
api_id: api_id,
|
167
|
+
version_id: version_id,
|
168
|
+
api_endpoint_id: api_endpoint_id
|
175
169
|
)
|
176
|
-
if r.status == 200
|
177
|
-
res.postman_collection = r.env.response_body if Utils.match_content_type(content_type, 'application/octet-stream')
|
178
|
-
|
179
|
-
else
|
180
|
-
|
181
|
-
if Utils.match_content_type(content_type, 'application/json')
|
182
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
183
|
-
res.error = out
|
184
|
-
end
|
185
|
-
end
|
186
|
-
res
|
187
|
-
end
|
188
|
-
|
189
|
-
|
190
|
-
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetAllApiEndpointsRequest)).returns(::SpeakeasyClientSDK::Operations::GetAllApiEndpointsResponse) }
|
191
|
-
def get_all_api_endpoints(request)
|
192
|
-
# get_all_api_endpoints - Get all Api endpoints for a particular apiID.
|
193
170
|
url, params = @sdk_configuration.get_server_details
|
194
171
|
base_url = Utils.template_url(url, params)
|
195
172
|
url = Utils.generate_url(
|
196
|
-
::
|
173
|
+
::OpenApiSDK::Operations::GetApiEndpointRequest,
|
197
174
|
base_url,
|
198
|
-
'/v1/apis/{apiID}/api_endpoints',
|
175
|
+
'/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}',
|
199
176
|
request,
|
200
177
|
@sdk_configuration.globals
|
201
178
|
)
|
@@ -210,18 +187,17 @@ module SpeakeasyClientSDK
|
|
210
187
|
|
211
188
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
212
189
|
|
213
|
-
res = ::
|
190
|
+
res = ::OpenApiSDK::Operations::GetApiEndpointResponse.new(
|
214
191
|
status_code: r.status, content_type: content_type, raw_response: r
|
215
192
|
)
|
216
|
-
if r.status
|
193
|
+
if r.status >= 200 && r.status < 300
|
217
194
|
if Utils.match_content_type(content_type, 'application/json')
|
218
|
-
out = Utils.unmarshal_complex(r.env.response_body,
|
219
|
-
res.
|
195
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::ApiEndpoint)
|
196
|
+
res.api_endpoint = out
|
220
197
|
end
|
221
|
-
|
222
|
-
|
198
|
+
elsif r.status >= 400 && r.status < 500
|
223
199
|
if Utils.match_content_type(content_type, 'application/json')
|
224
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
200
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
225
201
|
res.error = out
|
226
202
|
end
|
227
203
|
end
|
@@ -229,41 +205,58 @@ module SpeakeasyClientSDK
|
|
229
205
|
end
|
230
206
|
|
231
207
|
|
232
|
-
sig { params(
|
233
|
-
def
|
234
|
-
#
|
208
|
+
sig { params(api_id: ::String, version_id: ::String, api_endpoint_id: ::String, api_endpoint: ::OpenApiSDK::Shared::ApiEndpointInput).returns(::OpenApiSDK::Operations::UpsertApiEndpointResponse) }
|
209
|
+
def upsert(api_id, version_id, api_endpoint_id, api_endpoint)
|
210
|
+
# upsert - Upsert an ApiEndpoint.
|
211
|
+
# Upsert an ApiEndpoint. If the ApiEndpoint does not exist it will be created, otherwise it will be updated.
|
212
|
+
request = ::OpenApiSDK::Operations::UpsertApiEndpointRequest.new(
|
213
|
+
|
214
|
+
api_id: api_id,
|
215
|
+
version_id: version_id,
|
216
|
+
api_endpoint_id: api_endpoint_id,
|
217
|
+
api_endpoint: api_endpoint
|
218
|
+
)
|
235
219
|
url, params = @sdk_configuration.get_server_details
|
236
220
|
base_url = Utils.template_url(url, params)
|
237
221
|
url = Utils.generate_url(
|
238
|
-
::
|
222
|
+
::OpenApiSDK::Operations::UpsertApiEndpointRequest,
|
239
223
|
base_url,
|
240
|
-
'/v1/apis/{apiID}/version/{versionID}/api_endpoints',
|
224
|
+
'/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}',
|
241
225
|
request,
|
242
226
|
@sdk_configuration.globals
|
243
227
|
)
|
244
228
|
headers = {}
|
229
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :api_endpoint, :json)
|
230
|
+
headers['content-type'] = req_content_type
|
231
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
245
232
|
headers['Accept'] = 'application/json'
|
246
233
|
headers['user-agent'] = @sdk_configuration.user_agent
|
247
234
|
|
248
|
-
r = @sdk_configuration.client.
|
235
|
+
r = @sdk_configuration.client.put(url) do |req|
|
249
236
|
req.headers = headers
|
250
237
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
238
|
+
if form
|
239
|
+
req.body = Utils.encode_form(form)
|
240
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
241
|
+
req.body = URI.encode_www_form(data)
|
242
|
+
else
|
243
|
+
req.body = data
|
244
|
+
end
|
251
245
|
end
|
252
246
|
|
253
247
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
254
248
|
|
255
|
-
res = ::
|
249
|
+
res = ::OpenApiSDK::Operations::UpsertApiEndpointResponse.new(
|
256
250
|
status_code: r.status, content_type: content_type, raw_response: r
|
257
251
|
)
|
258
|
-
if r.status
|
252
|
+
if r.status >= 200 && r.status < 300
|
259
253
|
if Utils.match_content_type(content_type, 'application/json')
|
260
|
-
out = Utils.unmarshal_complex(r.env.response_body,
|
261
|
-
res.
|
254
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::ApiEndpoint)
|
255
|
+
res.api_endpoint = out
|
262
256
|
end
|
263
|
-
|
264
|
-
|
257
|
+
elsif r.status >= 400 && r.status < 500
|
265
258
|
if Utils.match_content_type(content_type, 'application/json')
|
266
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
259
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
267
260
|
res.error = out
|
268
261
|
end
|
269
262
|
end
|
@@ -271,15 +264,23 @@ module SpeakeasyClientSDK
|
|
271
264
|
end
|
272
265
|
|
273
266
|
|
274
|
-
sig { params(
|
275
|
-
def
|
276
|
-
#
|
267
|
+
sig { params(api_id: ::String, version_id: ::String, api_endpoint_id: ::String).returns(::OpenApiSDK::Operations::GenerateOpenApiSpecForApiEndpointResponse) }
|
268
|
+
def generate_open_api_spec(api_id, version_id, api_endpoint_id)
|
269
|
+
# generate_open_api_spec - Generate an OpenAPI specification for a particular ApiEndpoint.
|
270
|
+
# This endpoint will generate a new operation in any registered OpenAPI document if the operation does not already exist in the document.
|
271
|
+
# Returns the original document and the newly generated document allowing a diff to be performed to see what has changed.
|
272
|
+
request = ::OpenApiSDK::Operations::GenerateOpenApiSpecForApiEndpointRequest.new(
|
273
|
+
|
274
|
+
api_id: api_id,
|
275
|
+
version_id: version_id,
|
276
|
+
api_endpoint_id: api_endpoint_id
|
277
|
+
)
|
277
278
|
url, params = @sdk_configuration.get_server_details
|
278
279
|
base_url = Utils.template_url(url, params)
|
279
280
|
url = Utils.generate_url(
|
280
|
-
::
|
281
|
+
::OpenApiSDK::Operations::GenerateOpenApiSpecForApiEndpointRequest,
|
281
282
|
base_url,
|
282
|
-
'/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}',
|
283
|
+
'/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}/generate/openapi',
|
283
284
|
request,
|
284
285
|
@sdk_configuration.globals
|
285
286
|
)
|
@@ -294,18 +295,17 @@ module SpeakeasyClientSDK
|
|
294
295
|
|
295
296
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
296
297
|
|
297
|
-
res = ::
|
298
|
+
res = ::OpenApiSDK::Operations::GenerateOpenApiSpecForApiEndpointResponse.new(
|
298
299
|
status_code: r.status, content_type: content_type, raw_response: r
|
299
300
|
)
|
300
|
-
if r.status
|
301
|
+
if r.status >= 200 && r.status < 300
|
301
302
|
if Utils.match_content_type(content_type, 'application/json')
|
302
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
303
|
-
res.
|
303
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::GenerateOpenApiSpecDiff)
|
304
|
+
res.generate_open_api_spec_diff = out
|
304
305
|
end
|
305
|
-
|
306
|
-
|
306
|
+
elsif r.status >= 400 && r.status < 500
|
307
307
|
if Utils.match_content_type(content_type, 'application/json')
|
308
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
308
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
309
309
|
res.error = out
|
310
310
|
end
|
311
311
|
end
|
@@ -313,52 +313,45 @@ module SpeakeasyClientSDK
|
|
313
313
|
end
|
314
314
|
|
315
315
|
|
316
|
-
sig { params(
|
317
|
-
def
|
318
|
-
#
|
319
|
-
#
|
316
|
+
sig { params(api_id: ::String, version_id: ::String, api_endpoint_id: ::String).returns(::OpenApiSDK::Operations::GeneratePostmanCollectionForApiEndpointResponse) }
|
317
|
+
def generate_postman_collection(api_id, version_id, api_endpoint_id)
|
318
|
+
# generate_postman_collection - Generate a Postman collection for a particular ApiEndpoint.
|
319
|
+
# Generates a postman collection that allows the endpoint to be called from postman variables produced for any path/query/header parameters included in the OpenAPI document.
|
320
|
+
request = ::OpenApiSDK::Operations::GeneratePostmanCollectionForApiEndpointRequest.new(
|
321
|
+
|
322
|
+
api_id: api_id,
|
323
|
+
version_id: version_id,
|
324
|
+
api_endpoint_id: api_endpoint_id
|
325
|
+
)
|
320
326
|
url, params = @sdk_configuration.get_server_details
|
321
327
|
base_url = Utils.template_url(url, params)
|
322
328
|
url = Utils.generate_url(
|
323
|
-
::
|
329
|
+
::OpenApiSDK::Operations::GeneratePostmanCollectionForApiEndpointRequest,
|
324
330
|
base_url,
|
325
|
-
'/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}',
|
331
|
+
'/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}/generate/postman',
|
326
332
|
request,
|
327
333
|
@sdk_configuration.globals
|
328
334
|
)
|
329
335
|
headers = {}
|
330
|
-
|
331
|
-
headers['content-type'] = req_content_type
|
332
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
333
|
-
headers['Accept'] = 'application/json'
|
336
|
+
headers['Accept'] = 'application/json;q=1, application/octet-stream;q=0'
|
334
337
|
headers['user-agent'] = @sdk_configuration.user_agent
|
335
338
|
|
336
|
-
r = @sdk_configuration.client.
|
339
|
+
r = @sdk_configuration.client.get(url) do |req|
|
337
340
|
req.headers = headers
|
338
341
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
339
|
-
if form
|
340
|
-
req.body = Utils.encode_form(form)
|
341
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
342
|
-
req.body = URI.encode_www_form(data)
|
343
|
-
else
|
344
|
-
req.body = data
|
345
|
-
end
|
346
342
|
end
|
347
343
|
|
348
344
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
349
345
|
|
350
|
-
res = ::
|
346
|
+
res = ::OpenApiSDK::Operations::GeneratePostmanCollectionForApiEndpointResponse.new(
|
351
347
|
status_code: r.status, content_type: content_type, raw_response: r
|
352
348
|
)
|
353
|
-
if r.status
|
354
|
-
if Utils.match_content_type(content_type, 'application/
|
355
|
-
|
356
|
-
|
357
|
-
end
|
358
|
-
else
|
359
|
-
|
349
|
+
if r.status >= 200 && r.status < 300
|
350
|
+
res.postman_collection = r.env.response_body if Utils.match_content_type(content_type, 'application/octet-stream')
|
351
|
+
|
352
|
+
elsif r.status >= 400 && r.status < 500
|
360
353
|
if Utils.match_content_type(content_type, 'application/json')
|
361
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
354
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
362
355
|
res.error = out
|
363
356
|
end
|
364
357
|
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
|
class Suggest
|
13
13
|
extend T::Sig
|
@@ -19,15 +19,20 @@ module SpeakeasyClientSDK
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
sig { params(
|
23
|
-
def
|
24
|
-
#
|
22
|
+
sig { params(x_session_id: ::String, request_body: ::OpenApiSDK::Operations::SuggestOpenAPIRequestBody).returns(::OpenApiSDK::Operations::SuggestOpenAPIResponse) }
|
23
|
+
def openapi(x_session_id, request_body)
|
24
|
+
# openapi - (DEPRECATED) Generate suggestions for improving an OpenAPI document.
|
25
25
|
# Get suggestions from an LLM model for improving an OpenAPI document.
|
26
|
+
request = ::OpenApiSDK::Operations::SuggestOpenAPIRequest.new(
|
27
|
+
|
28
|
+
x_session_id: x_session_id,
|
29
|
+
request_body: request_body
|
30
|
+
)
|
26
31
|
url, params = @sdk_configuration.get_server_details
|
27
32
|
base_url = Utils.template_url(url, params)
|
28
|
-
url = "#{base_url}/v1/suggest/
|
33
|
+
url = "#{base_url}/v1/suggest/openapi"
|
29
34
|
headers = Utils.get_headers(request, @sdk_configuration.globals)
|
30
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :
|
35
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :multipart)
|
31
36
|
headers['content-type'] = req_content_type
|
32
37
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
33
38
|
headers['Accept'] = 'application/json'
|
@@ -47,10 +52,10 @@ module SpeakeasyClientSDK
|
|
47
52
|
|
48
53
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
49
54
|
|
50
|
-
res = ::
|
55
|
+
res = ::OpenApiSDK::Operations::SuggestOpenAPIResponse.new(
|
51
56
|
status_code: r.status, content_type: content_type, raw_response: r
|
52
57
|
)
|
53
|
-
if r.status
|
58
|
+
if r.status >= 200 && r.status < 300
|
54
59
|
res.schema = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
|
55
60
|
|
56
61
|
end
|
@@ -58,15 +63,20 @@ module SpeakeasyClientSDK
|
|
58
63
|
end
|
59
64
|
|
60
65
|
|
61
|
-
sig { params(
|
62
|
-
def
|
63
|
-
#
|
66
|
+
sig { params(x_session_id: ::String, suggest_request_body: ::OpenApiSDK::Shared::SuggestRequestBody).returns(::OpenApiSDK::Operations::SuggestResponse) }
|
67
|
+
def generate(x_session_id, suggest_request_body)
|
68
|
+
# generate - Generate suggestions for improving an OpenAPI document.
|
64
69
|
# Get suggestions from an LLM model for improving an OpenAPI document.
|
70
|
+
request = ::OpenApiSDK::Operations::SuggestRequest.new(
|
71
|
+
|
72
|
+
x_session_id: x_session_id,
|
73
|
+
suggest_request_body: suggest_request_body
|
74
|
+
)
|
65
75
|
url, params = @sdk_configuration.get_server_details
|
66
76
|
base_url = Utils.template_url(url, params)
|
67
|
-
url = "#{base_url}/v1/suggest/
|
77
|
+
url = "#{base_url}/v1/suggest/openapi_from_summary"
|
68
78
|
headers = Utils.get_headers(request, @sdk_configuration.globals)
|
69
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :
|
79
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :suggest_request_body, :json)
|
70
80
|
headers['content-type'] = req_content_type
|
71
81
|
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
72
82
|
headers['Accept'] = 'application/json'
|
@@ -86,10 +96,10 @@ module SpeakeasyClientSDK
|
|
86
96
|
|
87
97
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
88
98
|
|
89
|
-
res = ::
|
99
|
+
res = ::OpenApiSDK::Operations::SuggestResponse.new(
|
90
100
|
status_code: r.status, content_type: content_type, raw_response: r
|
91
101
|
)
|
92
|
-
if r.status
|
102
|
+
if r.status >= 200 && r.status < 300
|
93
103
|
res.schema = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
|
94
104
|
|
95
105
|
end
|
@@ -97,14 +107,21 @@ module SpeakeasyClientSDK
|
|
97
107
|
end
|
98
108
|
|
99
109
|
|
100
|
-
sig { params(
|
101
|
-
def
|
102
|
-
#
|
110
|
+
sig { params(x_session_id: ::String, namespace_name: ::String, revision_reference: ::String, suggest_request_body: T.nilable(::OpenApiSDK::Shared::SuggestRequestBody)).returns(::OpenApiSDK::Operations::SuggestOpenAPIRegistryResponse) }
|
111
|
+
def openapi_registry(x_session_id, namespace_name, revision_reference, suggest_request_body = nil)
|
112
|
+
# openapi_registry - Generate suggestions for improving an OpenAPI document stored in the registry.
|
103
113
|
# Get suggestions from an LLM model for improving an OpenAPI document stored in the registry.
|
114
|
+
request = ::OpenApiSDK::Operations::SuggestOpenAPIRegistryRequest.new(
|
115
|
+
|
116
|
+
x_session_id: x_session_id,
|
117
|
+
namespace_name: namespace_name,
|
118
|
+
revision_reference: revision_reference,
|
119
|
+
suggest_request_body: suggest_request_body
|
120
|
+
)
|
104
121
|
url, params = @sdk_configuration.get_server_details
|
105
122
|
base_url = Utils.template_url(url, params)
|
106
123
|
url = Utils.generate_url(
|
107
|
-
::
|
124
|
+
::OpenApiSDK::Operations::SuggestOpenAPIRegistryRequest,
|
108
125
|
base_url,
|
109
126
|
'/v1/suggest/openapi/{namespace_name}/{revision_reference}',
|
110
127
|
request,
|
@@ -130,10 +147,10 @@ module SpeakeasyClientSDK
|
|
130
147
|
|
131
148
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
132
149
|
|
133
|
-
res = ::
|
150
|
+
res = ::OpenApiSDK::Operations::SuggestOpenAPIRegistryResponse.new(
|
134
151
|
status_code: r.status, content_type: content_type, raw_response: r
|
135
152
|
)
|
136
|
-
if r.status
|
153
|
+
if r.status >= 200 && r.status < 300
|
137
154
|
res.schema = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
|
138
155
|
|
139
156
|
end
|