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 Artifacts
|
13
13
|
extend T::Sig
|
@@ -19,81 +19,43 @@ module SpeakeasyClientSDK
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
sig { params(request: T.nilable(::
|
23
|
-
def
|
24
|
-
#
|
22
|
+
sig { params(request: T.nilable(::OpenApiSDK::Shared::PreflightRequest)).returns(::OpenApiSDK::Operations::PreflightResponse) }
|
23
|
+
def preflight(request)
|
24
|
+
# preflight - Get access token for communicating with OCI distribution endpoints
|
25
25
|
url, params = @sdk_configuration.get_server_details
|
26
26
|
base_url = Utils.template_url(url, params)
|
27
|
-
url =
|
28
|
-
::SpeakeasyClientSDK::Operations::GetBlobRequest,
|
29
|
-
base_url,
|
30
|
-
'/v1/oci/v2/{organization_slug}/{workspace_slug}/{namespace_name}/blobs/{digest}',
|
31
|
-
request,
|
32
|
-
@sdk_configuration.globals
|
33
|
-
)
|
27
|
+
url = "#{base_url}/v1/artifacts/preflight"
|
34
28
|
headers = {}
|
35
|
-
|
29
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
30
|
+
headers['content-type'] = req_content_type
|
31
|
+
headers['Accept'] = 'application/json'
|
36
32
|
headers['user-agent'] = @sdk_configuration.user_agent
|
37
33
|
|
38
|
-
r = @sdk_configuration.client.
|
34
|
+
r = @sdk_configuration.client.post(url) do |req|
|
39
35
|
req.headers = headers
|
40
36
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
)
|
48
|
-
if r.status == 200
|
49
|
-
res.blob = r.env.response_body if Utils.match_content_type(content_type, 'application/octet-stream')
|
50
|
-
|
51
|
-
else
|
52
|
-
|
53
|
-
if Utils.match_content_type(content_type, 'application/json')
|
54
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
|
55
|
-
res.error = out
|
37
|
+
if form
|
38
|
+
req.body = Utils.encode_form(form)
|
39
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
40
|
+
req.body = URI.encode_www_form(data)
|
41
|
+
else
|
42
|
+
req.body = data
|
56
43
|
end
|
57
44
|
end
|
58
|
-
res
|
59
|
-
end
|
60
|
-
|
61
|
-
|
62
|
-
sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetManifestRequest)).returns(::SpeakeasyClientSDK::Operations::GetManifestResponse) }
|
63
|
-
def get_manifest(request)
|
64
|
-
# get_manifest - Get manifest for a particular reference
|
65
|
-
url, params = @sdk_configuration.get_server_details
|
66
|
-
base_url = Utils.template_url(url, params)
|
67
|
-
url = Utils.generate_url(
|
68
|
-
::SpeakeasyClientSDK::Operations::GetManifestRequest,
|
69
|
-
base_url,
|
70
|
-
'/v1/oci/v2/{organization_slug}/{workspace_slug}/{namespace_name}/manifests/{revision_reference}',
|
71
|
-
request,
|
72
|
-
@sdk_configuration.globals
|
73
|
-
)
|
74
|
-
headers = {}
|
75
|
-
headers['Accept'] = 'application/json;q=1, application/vnd.oci.image.manifest.v1+json;q=0'
|
76
|
-
headers['user-agent'] = @sdk_configuration.user_agent
|
77
|
-
|
78
|
-
r = @sdk_configuration.client.get(url) do |req|
|
79
|
-
req.headers = headers
|
80
|
-
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
81
|
-
end
|
82
45
|
|
83
46
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
84
47
|
|
85
|
-
res = ::
|
48
|
+
res = ::OpenApiSDK::Operations::PreflightResponse.new(
|
86
49
|
status_code: r.status, content_type: content_type, raw_response: r
|
87
50
|
)
|
88
|
-
if r.status
|
89
|
-
if Utils.match_content_type(content_type, 'application/
|
90
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
91
|
-
res.
|
51
|
+
if r.status >= 200 && r.status < 300
|
52
|
+
if Utils.match_content_type(content_type, 'application/json')
|
53
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::PreflightToken)
|
54
|
+
res.preflight_token = out
|
92
55
|
end
|
93
|
-
|
94
|
-
|
56
|
+
elsif r.status >= 400 && r.status < 500
|
95
57
|
if Utils.match_content_type(content_type, 'application/json')
|
96
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
58
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
97
59
|
res.error = out
|
98
60
|
end
|
99
61
|
end
|
@@ -101,7 +63,7 @@ module SpeakeasyClientSDK
|
|
101
63
|
end
|
102
64
|
|
103
65
|
|
104
|
-
sig { returns(::
|
66
|
+
sig { returns(::OpenApiSDK::Operations::GetNamespacesResponse) }
|
105
67
|
def get_namespaces
|
106
68
|
# get_namespaces - Each namespace contains many revisions.
|
107
69
|
url, params = @sdk_configuration.get_server_details
|
@@ -118,18 +80,17 @@ module SpeakeasyClientSDK
|
|
118
80
|
|
119
81
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
120
82
|
|
121
|
-
res = ::
|
83
|
+
res = ::OpenApiSDK::Operations::GetNamespacesResponse.new(
|
122
84
|
status_code: r.status, content_type: content_type, raw_response: r
|
123
85
|
)
|
124
|
-
if r.status
|
86
|
+
if r.status >= 200 && r.status < 300
|
125
87
|
if Utils.match_content_type(content_type, 'application/json')
|
126
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
88
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::GetNamespacesResponse)
|
127
89
|
res.get_namespaces_response = out
|
128
90
|
end
|
129
|
-
|
130
|
-
|
91
|
+
elsif r.status >= 400 && r.status < 500
|
131
92
|
if Utils.match_content_type(content_type, 'application/json')
|
132
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
93
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
133
94
|
res.error = out
|
134
95
|
end
|
135
96
|
end
|
@@ -137,41 +98,47 @@ module SpeakeasyClientSDK
|
|
137
98
|
end
|
138
99
|
|
139
100
|
|
140
|
-
sig { params(
|
141
|
-
def
|
101
|
+
sig { params(namespace_name: ::String, next_page_token: T.nilable(::String)).returns(::OpenApiSDK::Operations::GetRevisionsResponse) }
|
102
|
+
def get_revisions(namespace_name, next_page_token = nil)
|
142
103
|
|
104
|
+
request = ::OpenApiSDK::Operations::GetRevisionsRequest.new(
|
105
|
+
|
106
|
+
namespace_name: namespace_name,
|
107
|
+
next_page_token: next_page_token
|
108
|
+
)
|
143
109
|
url, params = @sdk_configuration.get_server_details
|
144
110
|
base_url = Utils.template_url(url, params)
|
145
111
|
url = Utils.generate_url(
|
146
|
-
::
|
112
|
+
::OpenApiSDK::Operations::GetRevisionsRequest,
|
147
113
|
base_url,
|
148
|
-
'/v1/artifacts/namespaces/{namespace_name}/revisions
|
114
|
+
'/v1/artifacts/namespaces/{namespace_name}/revisions',
|
149
115
|
request,
|
150
116
|
@sdk_configuration.globals
|
151
117
|
)
|
152
118
|
headers = {}
|
119
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::GetRevisionsRequest, request, @sdk_configuration.globals)
|
153
120
|
headers['Accept'] = 'application/json'
|
154
121
|
headers['user-agent'] = @sdk_configuration.user_agent
|
155
122
|
|
156
123
|
r = @sdk_configuration.client.get(url) do |req|
|
157
124
|
req.headers = headers
|
125
|
+
req.params = query_params
|
158
126
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
159
127
|
end
|
160
128
|
|
161
129
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
162
130
|
|
163
|
-
res = ::
|
131
|
+
res = ::OpenApiSDK::Operations::GetRevisionsResponse.new(
|
164
132
|
status_code: r.status, content_type: content_type, raw_response: r
|
165
133
|
)
|
166
|
-
if r.status
|
134
|
+
if r.status >= 200 && r.status < 300
|
167
135
|
if Utils.match_content_type(content_type, 'application/json')
|
168
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
169
|
-
res.
|
136
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::GetRevisionsResponse)
|
137
|
+
res.get_revisions_response = out
|
170
138
|
end
|
171
|
-
|
172
|
-
|
139
|
+
elsif r.status >= 400 && r.status < 500
|
173
140
|
if Utils.match_content_type(content_type, 'application/json')
|
174
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
141
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
175
142
|
res.error = out
|
176
143
|
end
|
177
144
|
end
|
@@ -179,43 +146,44 @@ module SpeakeasyClientSDK
|
|
179
146
|
end
|
180
147
|
|
181
148
|
|
182
|
-
sig { params(
|
183
|
-
def
|
149
|
+
sig { params(namespace_name: ::String).returns(::OpenApiSDK::Operations::GetTagsResponse) }
|
150
|
+
def get_tags(namespace_name)
|
184
151
|
|
152
|
+
request = ::OpenApiSDK::Operations::GetTagsRequest.new(
|
153
|
+
|
154
|
+
namespace_name: namespace_name
|
155
|
+
)
|
185
156
|
url, params = @sdk_configuration.get_server_details
|
186
157
|
base_url = Utils.template_url(url, params)
|
187
158
|
url = Utils.generate_url(
|
188
|
-
::
|
159
|
+
::OpenApiSDK::Operations::GetTagsRequest,
|
189
160
|
base_url,
|
190
|
-
'/v1/artifacts/namespaces/{namespace_name}/
|
161
|
+
'/v1/artifacts/namespaces/{namespace_name}/tags',
|
191
162
|
request,
|
192
163
|
@sdk_configuration.globals
|
193
164
|
)
|
194
165
|
headers = {}
|
195
|
-
query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetRevisionsRequest, request, @sdk_configuration.globals)
|
196
166
|
headers['Accept'] = 'application/json'
|
197
167
|
headers['user-agent'] = @sdk_configuration.user_agent
|
198
168
|
|
199
169
|
r = @sdk_configuration.client.get(url) do |req|
|
200
170
|
req.headers = headers
|
201
|
-
req.params = query_params
|
202
171
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
203
172
|
end
|
204
173
|
|
205
174
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
206
175
|
|
207
|
-
res = ::
|
176
|
+
res = ::OpenApiSDK::Operations::GetTagsResponse.new(
|
208
177
|
status_code: r.status, content_type: content_type, raw_response: r
|
209
178
|
)
|
210
|
-
if r.status
|
179
|
+
if r.status >= 200 && r.status < 300
|
211
180
|
if Utils.match_content_type(content_type, 'application/json')
|
212
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
213
|
-
res.
|
181
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::GetTagsResponse)
|
182
|
+
res.get_tags_response = out
|
214
183
|
end
|
215
|
-
|
216
|
-
|
184
|
+
elsif r.status >= 400 && r.status < 500
|
217
185
|
if Utils.match_content_type(content_type, 'application/json')
|
218
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
186
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
219
187
|
res.error = out
|
220
188
|
end
|
221
189
|
end
|
@@ -223,41 +191,50 @@ module SpeakeasyClientSDK
|
|
223
191
|
end
|
224
192
|
|
225
193
|
|
226
|
-
sig { params(
|
227
|
-
def
|
228
|
-
|
194
|
+
sig { params(namespace_name: ::String, add_tags: T.nilable(::OpenApiSDK::Shared::AddTags)).returns(::OpenApiSDK::Operations::PostTagsResponse) }
|
195
|
+
def post_tags(namespace_name, add_tags = nil)
|
196
|
+
# post_tags - Add tags to an existing revision
|
197
|
+
request = ::OpenApiSDK::Operations::PostTagsRequest.new(
|
198
|
+
|
199
|
+
namespace_name: namespace_name,
|
200
|
+
add_tags: add_tags
|
201
|
+
)
|
229
202
|
url, params = @sdk_configuration.get_server_details
|
230
203
|
base_url = Utils.template_url(url, params)
|
231
204
|
url = Utils.generate_url(
|
232
|
-
::
|
205
|
+
::OpenApiSDK::Operations::PostTagsRequest,
|
233
206
|
base_url,
|
234
207
|
'/v1/artifacts/namespaces/{namespace_name}/tags',
|
235
208
|
request,
|
236
209
|
@sdk_configuration.globals
|
237
210
|
)
|
238
211
|
headers = {}
|
212
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :add_tags, :json)
|
213
|
+
headers['content-type'] = req_content_type
|
239
214
|
headers['Accept'] = 'application/json'
|
240
215
|
headers['user-agent'] = @sdk_configuration.user_agent
|
241
216
|
|
242
|
-
r = @sdk_configuration.client.
|
217
|
+
r = @sdk_configuration.client.post(url) do |req|
|
243
218
|
req.headers = headers
|
244
219
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
220
|
+
if form
|
221
|
+
req.body = Utils.encode_form(form)
|
222
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
223
|
+
req.body = URI.encode_www_form(data)
|
224
|
+
else
|
225
|
+
req.body = data
|
226
|
+
end
|
245
227
|
end
|
246
228
|
|
247
229
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
248
230
|
|
249
|
-
res = ::
|
231
|
+
res = ::OpenApiSDK::Operations::PostTagsResponse.new(
|
250
232
|
status_code: r.status, content_type: content_type, raw_response: r
|
251
233
|
)
|
252
|
-
if r.status
|
253
|
-
|
254
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::GetTagsResponse)
|
255
|
-
res.get_tags_response = out
|
256
|
-
end
|
257
|
-
else
|
258
|
-
|
234
|
+
if r.status >= 200 && r.status < 300
|
235
|
+
elsif r.status >= 400 && r.status < 500
|
259
236
|
if Utils.match_content_type(content_type, 'application/json')
|
260
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
237
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
261
238
|
res.error = out
|
262
239
|
end
|
263
240
|
end
|
@@ -265,46 +242,47 @@ module SpeakeasyClientSDK
|
|
265
242
|
end
|
266
243
|
|
267
244
|
|
268
|
-
sig { params(
|
269
|
-
def
|
270
|
-
#
|
245
|
+
sig { params(organization_slug: ::String, workspace_slug: ::String, namespace_name: ::String, revision_reference: ::String).returns(::OpenApiSDK::Operations::GetManifestResponse) }
|
246
|
+
def get_manifest(organization_slug, workspace_slug, namespace_name, revision_reference)
|
247
|
+
# get_manifest - Get manifest for a particular reference
|
248
|
+
request = ::OpenApiSDK::Operations::GetManifestRequest.new(
|
249
|
+
|
250
|
+
organization_slug: organization_slug,
|
251
|
+
workspace_slug: workspace_slug,
|
252
|
+
namespace_name: namespace_name,
|
253
|
+
revision_reference: revision_reference
|
254
|
+
)
|
271
255
|
url, params = @sdk_configuration.get_server_details
|
272
256
|
base_url = Utils.template_url(url, params)
|
273
257
|
url = Utils.generate_url(
|
274
|
-
::
|
258
|
+
::OpenApiSDK::Operations::GetManifestRequest,
|
275
259
|
base_url,
|
276
|
-
'/v1/
|
260
|
+
'/v1/oci/v2/{organization_slug}/{workspace_slug}/{namespace_name}/manifests/{revision_reference}',
|
277
261
|
request,
|
278
262
|
@sdk_configuration.globals
|
279
263
|
)
|
280
264
|
headers = {}
|
281
|
-
|
282
|
-
headers['content-type'] = req_content_type
|
283
|
-
headers['Accept'] = 'application/json'
|
265
|
+
headers['Accept'] = 'application/json;q=1, application/vnd.oci.image.manifest.v1+json;q=0'
|
284
266
|
headers['user-agent'] = @sdk_configuration.user_agent
|
285
267
|
|
286
|
-
r = @sdk_configuration.client.
|
268
|
+
r = @sdk_configuration.client.get(url) do |req|
|
287
269
|
req.headers = headers
|
288
270
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
289
|
-
if form
|
290
|
-
req.body = Utils.encode_form(form)
|
291
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
292
|
-
req.body = URI.encode_www_form(data)
|
293
|
-
else
|
294
|
-
req.body = data
|
295
|
-
end
|
296
271
|
end
|
297
272
|
|
298
273
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
299
274
|
|
300
|
-
res = ::
|
275
|
+
res = ::OpenApiSDK::Operations::GetManifestResponse.new(
|
301
276
|
status_code: r.status, content_type: content_type, raw_response: r
|
302
277
|
)
|
303
|
-
if r.status
|
304
|
-
|
305
|
-
|
278
|
+
if r.status >= 200 && r.status < 300
|
279
|
+
if Utils.match_content_type(content_type, 'application/vnd.oci.image.manifest.v1+json')
|
280
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Manifest)
|
281
|
+
res.manifest = out
|
282
|
+
end
|
283
|
+
elsif r.status >= 400 && r.status < 500
|
306
284
|
if Utils.match_content_type(content_type, 'application/json')
|
307
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
285
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
308
286
|
res.error = out
|
309
287
|
end
|
310
288
|
end
|
@@ -312,44 +290,45 @@ module SpeakeasyClientSDK
|
|
312
290
|
end
|
313
291
|
|
314
292
|
|
315
|
-
sig { params(
|
316
|
-
def
|
317
|
-
#
|
293
|
+
sig { params(organization_slug: ::String, workspace_slug: ::String, namespace_name: ::String, digest: ::String).returns(::OpenApiSDK::Operations::GetBlobResponse) }
|
294
|
+
def get_blob(organization_slug, workspace_slug, namespace_name, digest)
|
295
|
+
# get_blob - Get blob for a particular digest
|
296
|
+
request = ::OpenApiSDK::Operations::GetBlobRequest.new(
|
297
|
+
|
298
|
+
organization_slug: organization_slug,
|
299
|
+
workspace_slug: workspace_slug,
|
300
|
+
namespace_name: namespace_name,
|
301
|
+
digest: digest
|
302
|
+
)
|
318
303
|
url, params = @sdk_configuration.get_server_details
|
319
304
|
base_url = Utils.template_url(url, params)
|
320
|
-
url =
|
305
|
+
url = Utils.generate_url(
|
306
|
+
::OpenApiSDK::Operations::GetBlobRequest,
|
307
|
+
base_url,
|
308
|
+
'/v1/oci/v2/{organization_slug}/{workspace_slug}/{namespace_name}/blobs/{digest}',
|
309
|
+
request,
|
310
|
+
@sdk_configuration.globals
|
311
|
+
)
|
321
312
|
headers = {}
|
322
|
-
|
323
|
-
headers['content-type'] = req_content_type
|
324
|
-
headers['Accept'] = 'application/json'
|
313
|
+
headers['Accept'] = 'application/json;q=1, application/octet-stream;q=0'
|
325
314
|
headers['user-agent'] = @sdk_configuration.user_agent
|
326
315
|
|
327
|
-
r = @sdk_configuration.client.
|
316
|
+
r = @sdk_configuration.client.get(url) do |req|
|
328
317
|
req.headers = headers
|
329
318
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
330
|
-
if form
|
331
|
-
req.body = Utils.encode_form(form)
|
332
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
333
|
-
req.body = URI.encode_www_form(data)
|
334
|
-
else
|
335
|
-
req.body = data
|
336
|
-
end
|
337
319
|
end
|
338
320
|
|
339
321
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
340
322
|
|
341
|
-
res = ::
|
323
|
+
res = ::OpenApiSDK::Operations::GetBlobResponse.new(
|
342
324
|
status_code: r.status, content_type: content_type, raw_response: r
|
343
325
|
)
|
344
|
-
if r.status
|
345
|
-
if Utils.match_content_type(content_type, 'application/
|
346
|
-
|
347
|
-
|
348
|
-
end
|
349
|
-
else
|
350
|
-
|
326
|
+
if r.status >= 200 && r.status < 300
|
327
|
+
res.blob = r.env.response_body if Utils.match_content_type(content_type, 'application/octet-stream')
|
328
|
+
|
329
|
+
elsif r.status >= 400 && r.status < 500
|
351
330
|
if Utils.match_content_type(content_type, 'application/json')
|
352
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
331
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
353
332
|
res.error = out
|
354
333
|
end
|
355
334
|
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 Auth
|
13
13
|
extend T::Sig
|
@@ -19,36 +19,34 @@ module SpeakeasyClientSDK
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
sig {
|
23
|
-
def
|
24
|
-
#
|
22
|
+
sig { returns(::OpenApiSDK::Operations::ValidateApiKeyResponse) }
|
23
|
+
def validate_api_key
|
24
|
+
# validate_api_key - Validate the current api key.
|
25
25
|
url, params = @sdk_configuration.get_server_details
|
26
26
|
base_url = Utils.template_url(url, params)
|
27
|
-
url = "#{base_url}/v1/auth/
|
27
|
+
url = "#{base_url}/v1/auth/validate"
|
28
28
|
headers = {}
|
29
|
-
query_params = Utils.get_query_params(::SpeakeasyClientSDK::Operations::GetAccessTokenRequest, request, @sdk_configuration.globals)
|
30
29
|
headers['Accept'] = 'application/json'
|
31
30
|
headers['user-agent'] = @sdk_configuration.user_agent
|
32
31
|
|
33
32
|
r = @sdk_configuration.client.get(url) do |req|
|
34
33
|
req.headers = headers
|
35
|
-
req.
|
34
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
36
35
|
end
|
37
36
|
|
38
37
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
39
38
|
|
40
|
-
res = ::
|
39
|
+
res = ::OpenApiSDK::Operations::ValidateApiKeyResponse.new(
|
41
40
|
status_code: r.status, content_type: content_type, raw_response: r
|
42
41
|
)
|
43
|
-
if r.status
|
42
|
+
if r.status >= 200 && r.status < 300
|
44
43
|
if Utils.match_content_type(content_type, 'application/json')
|
45
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
46
|
-
res.
|
44
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::ApiKeyDetails)
|
45
|
+
res.api_key_details = out
|
47
46
|
end
|
48
|
-
|
49
|
-
|
47
|
+
elsif r.status >= 400 && r.status < 500
|
50
48
|
if Utils.match_content_type(content_type, 'application/json')
|
51
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
49
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
52
50
|
res.error = out
|
53
51
|
end
|
54
52
|
end
|
@@ -56,7 +54,7 @@ module SpeakeasyClientSDK
|
|
56
54
|
end
|
57
55
|
|
58
56
|
|
59
|
-
sig { returns(::
|
57
|
+
sig { returns(::OpenApiSDK::Operations::GetUserResponse) }
|
60
58
|
def get_user
|
61
59
|
# get_user - Get information about the current user.
|
62
60
|
url, params = @sdk_configuration.get_server_details
|
@@ -73,18 +71,17 @@ module SpeakeasyClientSDK
|
|
73
71
|
|
74
72
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
75
73
|
|
76
|
-
res = ::
|
74
|
+
res = ::OpenApiSDK::Operations::GetUserResponse.new(
|
77
75
|
status_code: r.status, content_type: content_type, raw_response: r
|
78
76
|
)
|
79
|
-
if r.status
|
77
|
+
if r.status >= 200 && r.status < 300
|
80
78
|
if Utils.match_content_type(content_type, 'application/json')
|
81
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
79
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::User)
|
82
80
|
res.user = out
|
83
81
|
end
|
84
|
-
|
85
|
-
|
82
|
+
elsif r.status >= 400 && r.status < 500
|
86
83
|
if Utils.match_content_type(content_type, 'application/json')
|
87
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
84
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
88
85
|
res.error = out
|
89
86
|
end
|
90
87
|
end
|
@@ -92,69 +89,79 @@ module SpeakeasyClientSDK
|
|
92
89
|
end
|
93
90
|
|
94
91
|
|
95
|
-
sig { params(
|
96
|
-
def
|
97
|
-
#
|
98
|
-
|
92
|
+
sig { params(workspace_id: ::String).returns(::OpenApiSDK::Operations::GetAccessTokenResponse) }
|
93
|
+
def get_access_token(workspace_id)
|
94
|
+
# get_access_token - Get or refresh an access token for the current workspace.
|
95
|
+
request = ::OpenApiSDK::Operations::GetAccessTokenRequest.new(
|
96
|
+
|
97
|
+
workspace_id: workspace_id
|
98
|
+
)
|
99
99
|
url, params = @sdk_configuration.get_server_details
|
100
100
|
base_url = Utils.template_url(url, params)
|
101
|
-
url = "#{base_url}/v1/
|
101
|
+
url = "#{base_url}/v1/auth/access_token"
|
102
102
|
headers = {}
|
103
|
-
query_params = Utils.get_query_params(::
|
103
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::GetAccessTokenRequest, request, @sdk_configuration.globals)
|
104
104
|
headers['Accept'] = 'application/json'
|
105
105
|
headers['user-agent'] = @sdk_configuration.user_agent
|
106
106
|
|
107
107
|
r = @sdk_configuration.client.get(url) do |req|
|
108
108
|
req.headers = headers
|
109
109
|
req.params = query_params
|
110
|
-
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
111
110
|
end
|
112
111
|
|
113
112
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
114
113
|
|
115
|
-
res = ::
|
114
|
+
res = ::OpenApiSDK::Operations::GetAccessTokenResponse.new(
|
116
115
|
status_code: r.status, content_type: content_type, raw_response: r
|
117
116
|
)
|
118
|
-
if r.status
|
117
|
+
if r.status >= 200 && r.status < 300
|
119
118
|
if Utils.match_content_type(content_type, 'application/json')
|
120
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
121
|
-
res.
|
119
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::AccessToken)
|
120
|
+
res.access_token = out
|
121
|
+
end
|
122
|
+
elsif r.status >= 400 && r.status < 500
|
123
|
+
if Utils.match_content_type(content_type, 'application/json')
|
124
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
125
|
+
res.error = out
|
122
126
|
end
|
123
127
|
end
|
124
128
|
res
|
125
129
|
end
|
126
130
|
|
127
131
|
|
128
|
-
sig { returns(::
|
129
|
-
def
|
130
|
-
#
|
132
|
+
sig { params(gen_lock_id: T.nilable(::String), target_type: T.nilable(::String), passive: T.nilable(T::Boolean)).returns(::OpenApiSDK::Operations::GetWorkspaceAccessResponse) }
|
133
|
+
def get_allowances(gen_lock_id = nil, target_type = nil, passive = nil)
|
134
|
+
# get_allowances - Get access allowances for a particular workspace
|
135
|
+
# Checks if generation is permitted for a particular run of the CLI
|
136
|
+
request = ::OpenApiSDK::Operations::GetWorkspaceAccessRequest.new(
|
137
|
+
|
138
|
+
gen_lock_id: gen_lock_id,
|
139
|
+
target_type: target_type,
|
140
|
+
passive: passive
|
141
|
+
)
|
131
142
|
url, params = @sdk_configuration.get_server_details
|
132
143
|
base_url = Utils.template_url(url, params)
|
133
|
-
url = "#{base_url}/v1/
|
144
|
+
url = "#{base_url}/v1/workspace/access"
|
134
145
|
headers = {}
|
146
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::GetWorkspaceAccessRequest, request, @sdk_configuration.globals)
|
135
147
|
headers['Accept'] = 'application/json'
|
136
148
|
headers['user-agent'] = @sdk_configuration.user_agent
|
137
149
|
|
138
150
|
r = @sdk_configuration.client.get(url) do |req|
|
139
151
|
req.headers = headers
|
152
|
+
req.params = query_params
|
140
153
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
141
154
|
end
|
142
155
|
|
143
156
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
144
157
|
|
145
|
-
res = ::
|
158
|
+
res = ::OpenApiSDK::Operations::GetWorkspaceAccessResponse.new(
|
146
159
|
status_code: r.status, content_type: content_type, raw_response: r
|
147
160
|
)
|
148
|
-
if r.status
|
149
|
-
if Utils.match_content_type(content_type, 'application/json')
|
150
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::ApiKeyDetails)
|
151
|
-
res.api_key_details = out
|
152
|
-
end
|
153
|
-
else
|
154
|
-
|
161
|
+
if r.status >= 200 && r.status < 300
|
155
162
|
if Utils.match_content_type(content_type, 'application/json')
|
156
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
157
|
-
res.
|
163
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::AccessDetails)
|
164
|
+
res.access_details = out
|
158
165
|
end
|
159
166
|
end
|
160
167
|
res
|