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
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module OpenApiSDK
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
|
11
|
+
class WorkspaceSettings < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :workspace_id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('workspace_id') } }
|
16
|
+
|
17
|
+
field :webhook_url, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('webhook_url') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(workspace_id: ::String, webhook_url: T.nilable(::String)).void }
|
21
|
+
def initialize(workspace_id: nil, webhook_url: nil)
|
22
|
+
@workspace_id = workspace_id
|
23
|
+
@webhook_url = webhook_url
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module OpenApiSDK
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# Workspace team response
|
11
|
+
class WorkspaceTeamResponse < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :users, T::Array[::OpenApiSDK::Shared::User], { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('users') } }
|
16
|
+
# SSO metadata for a workspace
|
17
|
+
field :sso_metadata, T.nilable(::OpenApiSDK::Shared::SSOMetadata), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('sso_metadata') } }
|
18
|
+
|
19
|
+
|
20
|
+
sig { params(users: T::Array[::OpenApiSDK::Shared::User], sso_metadata: T.nilable(::OpenApiSDK::Shared::SSOMetadata)).void }
|
21
|
+
def initialize(users: nil, sso_metadata: nil)
|
22
|
+
@users = users
|
23
|
+
@sso_metadata = sso_metadata
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
|
7
|
+
module OpenApiSDK
|
8
|
+
module Shared
|
9
|
+
|
10
|
+
# A workspace token
|
11
|
+
class WorkspaceToken < ::OpenApiSDK::Utils::FieldAugmented
|
12
|
+
extend T::Sig
|
13
|
+
|
14
|
+
|
15
|
+
field :alg, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('alg') } }
|
16
|
+
|
17
|
+
field :created_at, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('created_at') } }
|
18
|
+
|
19
|
+
field :id, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('id') } }
|
20
|
+
|
21
|
+
field :key, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('key') } }
|
22
|
+
|
23
|
+
field :name, ::String, { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('name') } }
|
24
|
+
|
25
|
+
field :created_by, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('created_by') } }
|
26
|
+
|
27
|
+
field :email, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('email') } }
|
28
|
+
|
29
|
+
field :last_used, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('last_used') } }
|
30
|
+
|
31
|
+
field :workspace_id, T.nilable(::String), { 'format_json': { 'letter_case': ::OpenApiSDK::Utils.field_name('workspace_id') } }
|
32
|
+
|
33
|
+
|
34
|
+
sig { params(alg: ::String, created_at: ::String, id: ::String, key: ::String, name: ::String, created_by: T.nilable(::String), email: T.nilable(::String), last_used: T.nilable(::String), workspace_id: T.nilable(::String)).void }
|
35
|
+
def initialize(alg: nil, created_at: nil, id: nil, key: nil, name: nil, created_by: nil, email: nil, last_used: nil, workspace_id: nil)
|
36
|
+
@alg = alg
|
37
|
+
@created_at = created_at
|
38
|
+
@id = id
|
39
|
+
@key = key
|
40
|
+
@name = name
|
41
|
+
@created_by = created_by
|
42
|
+
@email = email
|
43
|
+
@last_used = last_used
|
44
|
+
@workspace_id = workspace_id
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
2
|
+
|
3
|
+
# typed: true
|
4
|
+
# frozen_string_literal: true
|
5
|
+
|
6
|
+
module OpenApiSDK
|
7
|
+
module Shared
|
8
|
+
autoload :Error, 'open_api_sdk/models/shared/error.rb'
|
9
|
+
autoload :Api, 'open_api_sdk/models/shared/api.rb'
|
10
|
+
autoload :ApiInput, 'open_api_sdk/models/shared/api_input.rb'
|
11
|
+
autoload :GenerateOpenApiSpecDiff, 'open_api_sdk/models/shared/generateopenapispecdiff.rb'
|
12
|
+
autoload :ApiEndpoint, 'open_api_sdk/models/shared/apiendpoint.rb'
|
13
|
+
autoload :ApiEndpointInput, 'open_api_sdk/models/shared/apiendpoint_input.rb'
|
14
|
+
autoload :VersionMetadata, 'open_api_sdk/models/shared/versionmetadata.rb'
|
15
|
+
autoload :VersionMetadataInput, 'open_api_sdk/models/shared/versionmetadata_input.rb'
|
16
|
+
autoload :Schema, 'open_api_sdk/models/shared/schema.rb'
|
17
|
+
autoload :ValueChange, 'open_api_sdk/models/shared/valuechange.rb'
|
18
|
+
autoload :SchemaDiff, 'open_api_sdk/models/shared/schemadiff.rb'
|
19
|
+
autoload :ApiKeyDetails, 'open_api_sdk/models/shared/apikeydetails.rb'
|
20
|
+
autoload :AccountType, 'open_api_sdk/models/shared/accounttype.rb'
|
21
|
+
autoload :User, 'open_api_sdk/models/shared/user.rb'
|
22
|
+
autoload :Claims, 'open_api_sdk/models/shared/claims.rb'
|
23
|
+
autoload :AccessTokenUser, 'open_api_sdk/models/shared/accesstoken_user.rb'
|
24
|
+
autoload :Workspaces, 'open_api_sdk/models/shared/workspaces.rb'
|
25
|
+
autoload :AccessToken, 'open_api_sdk/models/shared/accesstoken.rb'
|
26
|
+
autoload :FeatureFlag, 'open_api_sdk/models/shared/featureflag.rb'
|
27
|
+
autoload :Level, 'open_api_sdk/models/shared/level.rb'
|
28
|
+
autoload :AccessDetails, 'open_api_sdk/models/shared/accessdetails.rb'
|
29
|
+
autoload :BoundedRequest, 'open_api_sdk/models/shared/boundedrequest.rb'
|
30
|
+
autoload :RequestMetadata, 'open_api_sdk/models/shared/requestmetadata.rb'
|
31
|
+
autoload :Filters, 'open_api_sdk/models/shared/filters.rb'
|
32
|
+
autoload :Filter, 'open_api_sdk/models/shared/filter.rb'
|
33
|
+
autoload :UnboundedRequest, 'open_api_sdk/models/shared/unboundedrequest.rb'
|
34
|
+
autoload :GithubPublishingPRResponse, 'open_api_sdk/models/shared/githubpublishingprresponse.rb'
|
35
|
+
autoload :GithubMissingPublishingSecretsResponse, 'open_api_sdk/models/shared/githubmissingpublishingsecretsresponse.rb'
|
36
|
+
autoload :GithubStorePublishingSecretsRequest, 'open_api_sdk/models/shared/githubstorepublishingsecretsrequest.rb'
|
37
|
+
autoload :GithubConfigureCodeSamplesResponse, 'open_api_sdk/models/shared/githubconfigurecodesamplesresponse.rb'
|
38
|
+
autoload :Auth, 'open_api_sdk/models/shared/auth.rb'
|
39
|
+
autoload :WorkflowDocument, 'open_api_sdk/models/shared/workflowdocument.rb'
|
40
|
+
autoload :GithubConfigureCodeSamplesRequest, 'open_api_sdk/models/shared/githubconfigurecodesamplesrequest.rb'
|
41
|
+
autoload :GithubConfigureMintlifyRepoRequest, 'open_api_sdk/models/shared/githubconfiguremintlifyreporequest.rb'
|
42
|
+
autoload :GithubConfigureTargetRequest, 'open_api_sdk/models/shared/githubconfiguretargetrequest.rb'
|
43
|
+
autoload :GithubTriggerActionRequest, 'open_api_sdk/models/shared/githubtriggeractionrequest.rb'
|
44
|
+
autoload :GithubGetActionResponse, 'open_api_sdk/models/shared/githubgetactionresponse.rb'
|
45
|
+
autoload :Organization, 'open_api_sdk/models/shared/organization.rb'
|
46
|
+
autoload :OrganizationUsageResponse, 'open_api_sdk/models/shared/organizationusageresponse.rb'
|
47
|
+
autoload :OrganizationUsage, 'open_api_sdk/models/shared/organizationusage.rb'
|
48
|
+
autoload :EmbedAccessTokenResponse, 'open_api_sdk/models/shared/embedaccesstokenresponse.rb'
|
49
|
+
autoload :EmbedToken, 'open_api_sdk/models/shared/embedtoken.rb'
|
50
|
+
autoload :Workspace, 'open_api_sdk/models/shared/workspace.rb'
|
51
|
+
autoload :WorkspaceAndOrganization, 'open_api_sdk/models/shared/workspaceandorganization.rb'
|
52
|
+
autoload :WorkspaceSettings, 'open_api_sdk/models/shared/workspacesettings.rb'
|
53
|
+
autoload :WorkspaceTeamResponse, 'open_api_sdk/models/shared/workspaceteamresponse.rb'
|
54
|
+
autoload :SSOMetadata, 'open_api_sdk/models/shared/ssometadata.rb'
|
55
|
+
autoload :Relationship, 'open_api_sdk/models/shared/relationship.rb'
|
56
|
+
autoload :WorkspaceInviteResponse, 'open_api_sdk/models/shared/workspaceinviteresponse.rb'
|
57
|
+
autoload :WorkspaceToken, 'open_api_sdk/models/shared/workspacetoken.rb'
|
58
|
+
autoload :WorkspaceFeatureFlagResponse, 'open_api_sdk/models/shared/workspacefeatureflagresponse.rb'
|
59
|
+
autoload :GenerateBumpType, 'open_api_sdk/models/shared/generate_bump_type.rb'
|
60
|
+
autoload :OpenapiDiffBumpType, 'open_api_sdk/models/shared/openapi_diff_bump_type.rb'
|
61
|
+
autoload :CliEvent, 'open_api_sdk/models/shared/clievent.rb'
|
62
|
+
autoload :InteractionType, 'open_api_sdk/models/shared/interactiontype.rb'
|
63
|
+
autoload :TargetSDK, 'open_api_sdk/models/shared/targetsdk.rb'
|
64
|
+
autoload :PreflightToken, 'open_api_sdk/models/shared/preflighttoken.rb'
|
65
|
+
autoload :PreflightRequest, 'open_api_sdk/models/shared/preflightrequest.rb'
|
66
|
+
autoload :GetNamespacesResponse, 'open_api_sdk/models/shared/getnamespacesresponse.rb'
|
67
|
+
autoload :Namespace, 'open_api_sdk/models/shared/namespace.rb'
|
68
|
+
autoload :GetRevisionsResponse, 'open_api_sdk/models/shared/getrevisionsresponse.rb'
|
69
|
+
autoload :Revision, 'open_api_sdk/models/shared/revision.rb'
|
70
|
+
autoload :GetTagsResponse, 'open_api_sdk/models/shared/gettagsresponse.rb'
|
71
|
+
autoload :Tag, 'open_api_sdk/models/shared/tag.rb'
|
72
|
+
autoload :AddTags, 'open_api_sdk/models/shared/addtags.rb'
|
73
|
+
autoload :Manifest, 'open_api_sdk/models/shared/manifest.rb'
|
74
|
+
autoload :V2Descriptor, 'open_api_sdk/models/shared/v2descriptor.rb'
|
75
|
+
autoload :Annotations, 'open_api_sdk/models/shared/annotations.rb'
|
76
|
+
autoload :Type, 'open_api_sdk/models/shared/type.rb'
|
77
|
+
autoload :Report, 'open_api_sdk/models/shared/report.rb'
|
78
|
+
autoload :SuggestionType, 'open_api_sdk/models/shared/suggestion_type.rb'
|
79
|
+
autoload :SuggestOptsOld, 'open_api_sdk/models/shared/suggestoptsold.rb'
|
80
|
+
autoload :Diagnostic, 'open_api_sdk/models/shared/diagnostic.rb'
|
81
|
+
autoload :SuggestRequestBodySuggestionType, 'open_api_sdk/models/shared/suggestrequestbody_suggestion_type.rb'
|
82
|
+
autoload :SuggestRequestBody, 'open_api_sdk/models/shared/suggestrequestbody.rb'
|
83
|
+
autoload :OASSummary, 'open_api_sdk/models/shared/oassummary.rb'
|
84
|
+
autoload :OASOperation, 'open_api_sdk/models/shared/oasoperation.rb'
|
85
|
+
autoload :License, 'open_api_sdk/models/shared/license.rb'
|
86
|
+
autoload :OASInfo, 'open_api_sdk/models/shared/oasinfo.rb'
|
87
|
+
autoload :ShortURL, 'open_api_sdk/models/shared/shorturl.rb'
|
88
|
+
autoload :Security, 'open_api_sdk/models/shared/security.rb'
|
89
|
+
end
|
90
|
+
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 Organizations
|
13
13
|
extend T::Sig
|
@@ -19,32 +19,81 @@ module SpeakeasyClientSDK
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
sig { returns(::
|
23
|
-
def
|
24
|
-
#
|
25
|
-
#
|
22
|
+
sig { returns(::OpenApiSDK::Operations::GetOrganizationsResponse) }
|
23
|
+
def get_all
|
24
|
+
# get_all - Get organizations for a user
|
25
|
+
# Returns a list of organizations a user has access too
|
26
26
|
url, params = @sdk_configuration.get_server_details
|
27
27
|
base_url = Utils.template_url(url, params)
|
28
|
-
url = "#{base_url}/v1/
|
28
|
+
url = "#{base_url}/v1/organizations"
|
29
|
+
headers = {}
|
30
|
+
headers['Accept'] = 'application/json'
|
31
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
32
|
+
|
33
|
+
r = @sdk_configuration.client.get(url) do |req|
|
34
|
+
req.headers = headers
|
35
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
36
|
+
end
|
37
|
+
|
38
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
39
|
+
|
40
|
+
res = ::OpenApiSDK::Operations::GetOrganizationsResponse.new(
|
41
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
42
|
+
)
|
43
|
+
if r.status >= 200 && r.status < 300
|
44
|
+
if Utils.match_content_type(content_type, 'application/json')
|
45
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::Organization])
|
46
|
+
res.organizations = out
|
47
|
+
end
|
48
|
+
elsif r.status >= 400 && r.status < 500
|
49
|
+
if Utils.match_content_type(content_type, 'application/json')
|
50
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
51
|
+
res.error = out
|
52
|
+
end
|
53
|
+
end
|
54
|
+
res
|
55
|
+
end
|
56
|
+
|
57
|
+
|
58
|
+
sig { params(request: ::OpenApiSDK::Shared::Organization).returns(::OpenApiSDK::Operations::CreateOrganizationResponse) }
|
59
|
+
def create(request)
|
60
|
+
# create - Create an organization
|
61
|
+
# Creates an organization
|
62
|
+
url, params = @sdk_configuration.get_server_details
|
63
|
+
base_url = Utils.template_url(url, params)
|
64
|
+
url = "#{base_url}/v1/organization"
|
29
65
|
headers = {}
|
66
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request, :json)
|
67
|
+
headers['content-type'] = req_content_type
|
68
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
30
69
|
headers['Accept'] = 'application/json'
|
31
70
|
headers['user-agent'] = @sdk_configuration.user_agent
|
32
71
|
|
33
72
|
r = @sdk_configuration.client.post(url) do |req|
|
34
73
|
req.headers = headers
|
35
74
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
75
|
+
if form
|
76
|
+
req.body = Utils.encode_form(form)
|
77
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
78
|
+
req.body = URI.encode_www_form(data)
|
79
|
+
else
|
80
|
+
req.body = data
|
81
|
+
end
|
36
82
|
end
|
37
83
|
|
38
84
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
39
85
|
|
40
|
-
res = ::
|
86
|
+
res = ::OpenApiSDK::Operations::CreateOrganizationResponse.new(
|
41
87
|
status_code: r.status, content_type: content_type, raw_response: r
|
42
88
|
)
|
43
|
-
if r.status
|
44
|
-
|
45
|
-
|
89
|
+
if r.status >= 200 && r.status < 300
|
90
|
+
if Utils.match_content_type(content_type, 'application/json')
|
91
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Organization)
|
92
|
+
res.organization = out
|
93
|
+
end
|
94
|
+
elsif r.status >= 400 && r.status < 500
|
46
95
|
if Utils.match_content_type(content_type, 'application/json')
|
47
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
96
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
48
97
|
res.error = out
|
49
98
|
end
|
50
99
|
end
|
@@ -52,14 +101,18 @@ module SpeakeasyClientSDK
|
|
52
101
|
end
|
53
102
|
|
54
103
|
|
55
|
-
sig { params(
|
56
|
-
def
|
57
|
-
#
|
104
|
+
sig { params(organization_id: ::String).returns(::OpenApiSDK::Operations::GetOrganizationResponse) }
|
105
|
+
def get(organization_id)
|
106
|
+
# get - Get organization
|
58
107
|
# Get information about a particular organization.
|
108
|
+
request = ::OpenApiSDK::Operations::GetOrganizationRequest.new(
|
109
|
+
|
110
|
+
organization_id: organization_id
|
111
|
+
)
|
59
112
|
url, params = @sdk_configuration.get_server_details
|
60
113
|
base_url = Utils.template_url(url, params)
|
61
114
|
url = Utils.generate_url(
|
62
|
-
::
|
115
|
+
::OpenApiSDK::Operations::GetOrganizationRequest,
|
63
116
|
base_url,
|
64
117
|
'/v1/organization/{organizationID}',
|
65
118
|
request,
|
@@ -76,18 +129,17 @@ module SpeakeasyClientSDK
|
|
76
129
|
|
77
130
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
78
131
|
|
79
|
-
res = ::
|
132
|
+
res = ::OpenApiSDK::Operations::GetOrganizationResponse.new(
|
80
133
|
status_code: r.status, content_type: content_type, raw_response: r
|
81
134
|
)
|
82
|
-
if r.status
|
135
|
+
if r.status >= 200 && r.status < 300
|
83
136
|
if Utils.match_content_type(content_type, 'application/json')
|
84
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
137
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Organization)
|
85
138
|
res.organization = out
|
86
139
|
end
|
87
|
-
|
88
|
-
|
140
|
+
elsif r.status >= 400 && r.status < 500
|
89
141
|
if Utils.match_content_type(content_type, 'application/json')
|
90
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
142
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
91
143
|
res.error = out
|
92
144
|
end
|
93
145
|
end
|
@@ -95,36 +147,31 @@ module SpeakeasyClientSDK
|
|
95
147
|
end
|
96
148
|
|
97
149
|
|
98
|
-
sig { returns(::
|
99
|
-
def
|
100
|
-
#
|
101
|
-
#
|
150
|
+
sig { returns(::OpenApiSDK::Operations::CreateFreeTrialResponse) }
|
151
|
+
def create_free_trial
|
152
|
+
# create_free_trial - Create a free trial for an organization
|
153
|
+
# Creates a free trial for an organization
|
102
154
|
url, params = @sdk_configuration.get_server_details
|
103
155
|
base_url = Utils.template_url(url, params)
|
104
|
-
url = "#{base_url}/v1/organization/
|
156
|
+
url = "#{base_url}/v1/organization/free_trial"
|
105
157
|
headers = {}
|
106
158
|
headers['Accept'] = 'application/json'
|
107
159
|
headers['user-agent'] = @sdk_configuration.user_agent
|
108
160
|
|
109
|
-
r = @sdk_configuration.client.
|
161
|
+
r = @sdk_configuration.client.post(url) do |req|
|
110
162
|
req.headers = headers
|
111
163
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
112
164
|
end
|
113
165
|
|
114
166
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
115
167
|
|
116
|
-
res = ::
|
168
|
+
res = ::OpenApiSDK::Operations::CreateFreeTrialResponse.new(
|
117
169
|
status_code: r.status, content_type: content_type, raw_response: r
|
118
170
|
)
|
119
|
-
if r.status
|
120
|
-
|
121
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::OrganizationUsageResponse)
|
122
|
-
res.organization_usage_response = out
|
123
|
-
end
|
124
|
-
else
|
125
|
-
|
171
|
+
if r.status >= 200 && r.status < 300
|
172
|
+
elsif r.status >= 400 && r.status < 500
|
126
173
|
if Utils.match_content_type(content_type, 'application/json')
|
127
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
174
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
128
175
|
res.error = out
|
129
176
|
end
|
130
177
|
end
|
@@ -132,13 +179,13 @@ module SpeakeasyClientSDK
|
|
132
179
|
end
|
133
180
|
|
134
181
|
|
135
|
-
sig { returns(::
|
136
|
-
def
|
137
|
-
#
|
138
|
-
# Returns a
|
182
|
+
sig { returns(::OpenApiSDK::Operations::GetOrganizationUsageResponse) }
|
183
|
+
def get_usage
|
184
|
+
# get_usage - Get billing usage summary for a particular organization
|
185
|
+
# Returns a billing usage summary by target languages for a particular organization
|
139
186
|
url, params = @sdk_configuration.get_server_details
|
140
187
|
base_url = Utils.template_url(url, params)
|
141
|
-
url = "#{base_url}/v1/organization"
|
188
|
+
url = "#{base_url}/v1/organization/usage"
|
142
189
|
headers = {}
|
143
190
|
headers['Accept'] = 'application/json'
|
144
191
|
headers['user-agent'] = @sdk_configuration.user_agent
|
@@ -150,18 +197,17 @@ module SpeakeasyClientSDK
|
|
150
197
|
|
151
198
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
152
199
|
|
153
|
-
res = ::
|
200
|
+
res = ::OpenApiSDK::Operations::GetOrganizationUsageResponse.new(
|
154
201
|
status_code: r.status, content_type: content_type, raw_response: r
|
155
202
|
)
|
156
|
-
if r.status
|
203
|
+
if r.status >= 200 && r.status < 300
|
157
204
|
if Utils.match_content_type(content_type, 'application/json')
|
158
|
-
out = Utils.unmarshal_complex(r.env.response_body,
|
159
|
-
res.
|
205
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::OrganizationUsageResponse)
|
206
|
+
res.organization_usage_response = out
|
160
207
|
end
|
161
|
-
|
162
|
-
|
208
|
+
elsif r.status >= 400 && r.status < 500
|
163
209
|
if Utils.match_content_type(content_type, 'application/json')
|
164
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
210
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
165
211
|
res.error = out
|
166
212
|
end
|
167
213
|
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 Reports
|
13
13
|
extend T::Sig
|
@@ -19,49 +19,57 @@ module SpeakeasyClientSDK
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
sig { params(request:
|
23
|
-
def
|
24
|
-
#
|
22
|
+
sig { params(request: ::OpenApiSDK::Operations::UploadReportRequestBody).returns(::OpenApiSDK::Operations::UploadReportResponse) }
|
23
|
+
def upload(request)
|
24
|
+
# upload - Upload a report.
|
25
25
|
url, params = @sdk_configuration.get_server_details
|
26
26
|
base_url = Utils.template_url(url, params)
|
27
|
-
url =
|
28
|
-
::SpeakeasyClientSDK::Operations::GetChangesReportSignedUrlRequest,
|
29
|
-
base_url,
|
30
|
-
'/v1/reports/changes/{documentChecksum}',
|
31
|
-
request,
|
32
|
-
@sdk_configuration.globals
|
33
|
-
)
|
27
|
+
url = "#{base_url}/v1/reports"
|
34
28
|
headers = {}
|
29
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request, :multipart)
|
30
|
+
headers['content-type'] = req_content_type
|
31
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
35
32
|
headers['Accept'] = 'application/json'
|
36
33
|
headers['user-agent'] = @sdk_configuration.user_agent
|
37
34
|
|
38
|
-
r = @sdk_configuration.client.
|
35
|
+
r = @sdk_configuration.client.post(url) do |req|
|
39
36
|
req.headers = headers
|
40
37
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
38
|
+
if form
|
39
|
+
req.body = Utils.encode_form(form)
|
40
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
41
|
+
req.body = URI.encode_www_form(data)
|
42
|
+
else
|
43
|
+
req.body = data
|
44
|
+
end
|
41
45
|
end
|
42
46
|
|
43
47
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
44
48
|
|
45
|
-
res = ::
|
49
|
+
res = ::OpenApiSDK::Operations::UploadReportResponse.new(
|
46
50
|
status_code: r.status, content_type: content_type, raw_response: r
|
47
51
|
)
|
48
|
-
if r.status
|
52
|
+
if r.status >= 200 && r.status < 300
|
49
53
|
if Utils.match_content_type(content_type, 'application/json')
|
50
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
51
|
-
res.
|
54
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::UploadReportUploadedReport)
|
55
|
+
res.uploaded_report = out
|
52
56
|
end
|
53
57
|
end
|
54
58
|
res
|
55
59
|
end
|
56
60
|
|
57
61
|
|
58
|
-
sig { params(
|
59
|
-
def
|
60
|
-
#
|
62
|
+
sig { params(document_checksum: ::String).returns(::OpenApiSDK::Operations::GetLintingReportSignedUrlResponse) }
|
63
|
+
def get_signed_url(document_checksum)
|
64
|
+
# get_signed_url - Get the signed access url for the linting reports for a particular document.
|
65
|
+
request = ::OpenApiSDK::Operations::GetLintingReportSignedUrlRequest.new(
|
66
|
+
|
67
|
+
document_checksum: document_checksum
|
68
|
+
)
|
61
69
|
url, params = @sdk_configuration.get_server_details
|
62
70
|
base_url = Utils.template_url(url, params)
|
63
71
|
url = Utils.generate_url(
|
64
|
-
::
|
72
|
+
::OpenApiSDK::Operations::GetLintingReportSignedUrlRequest,
|
65
73
|
base_url,
|
66
74
|
'/v1/reports/linting/{documentChecksum}',
|
67
75
|
request,
|
@@ -78,12 +86,12 @@ module SpeakeasyClientSDK
|
|
78
86
|
|
79
87
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
80
88
|
|
81
|
-
res = ::
|
89
|
+
res = ::OpenApiSDK::Operations::GetLintingReportSignedUrlResponse.new(
|
82
90
|
status_code: r.status, content_type: content_type, raw_response: r
|
83
91
|
)
|
84
|
-
if r.status
|
92
|
+
if r.status >= 200 && r.status < 300
|
85
93
|
if Utils.match_content_type(content_type, 'application/json')
|
86
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
94
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::GetLintingReportSignedUrlSignedAccess)
|
87
95
|
res.signed_access = out
|
88
96
|
end
|
89
97
|
end
|
@@ -91,40 +99,40 @@ module SpeakeasyClientSDK
|
|
91
99
|
end
|
92
100
|
|
93
101
|
|
94
|
-
sig { params(
|
95
|
-
def
|
96
|
-
#
|
102
|
+
sig { params(document_checksum: ::String).returns(::OpenApiSDK::Operations::GetChangesReportSignedUrlResponse) }
|
103
|
+
def get_changes_signed_url(document_checksum)
|
104
|
+
# get_changes_signed_url - Get the signed access url for the change reports for a particular document.
|
105
|
+
request = ::OpenApiSDK::Operations::GetChangesReportSignedUrlRequest.new(
|
106
|
+
|
107
|
+
document_checksum: document_checksum
|
108
|
+
)
|
97
109
|
url, params = @sdk_configuration.get_server_details
|
98
110
|
base_url = Utils.template_url(url, params)
|
99
|
-
url =
|
111
|
+
url = Utils.generate_url(
|
112
|
+
::OpenApiSDK::Operations::GetChangesReportSignedUrlRequest,
|
113
|
+
base_url,
|
114
|
+
'/v1/reports/changes/{documentChecksum}',
|
115
|
+
request,
|
116
|
+
@sdk_configuration.globals
|
117
|
+
)
|
100
118
|
headers = {}
|
101
|
-
req_content_type, data, form = Utils.serialize_request_body(request, :request, :multipart)
|
102
|
-
headers['content-type'] = req_content_type
|
103
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
104
119
|
headers['Accept'] = 'application/json'
|
105
120
|
headers['user-agent'] = @sdk_configuration.user_agent
|
106
121
|
|
107
|
-
r = @sdk_configuration.client.
|
122
|
+
r = @sdk_configuration.client.get(url) do |req|
|
108
123
|
req.headers = headers
|
109
124
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
110
|
-
if form
|
111
|
-
req.body = Utils.encode_form(form)
|
112
|
-
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
113
|
-
req.body = URI.encode_www_form(data)
|
114
|
-
else
|
115
|
-
req.body = data
|
116
|
-
end
|
117
125
|
end
|
118
126
|
|
119
127
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
120
128
|
|
121
|
-
res = ::
|
129
|
+
res = ::OpenApiSDK::Operations::GetChangesReportSignedUrlResponse.new(
|
122
130
|
status_code: r.status, content_type: content_type, raw_response: r
|
123
131
|
)
|
124
|
-
if r.status
|
132
|
+
if r.status >= 200 && r.status < 300
|
125
133
|
if Utils.match_content_type(content_type, 'application/json')
|
126
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
127
|
-
res.
|
134
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Operations::GetChangesReportSignedUrlSignedAccess)
|
135
|
+
res.signed_access = out
|
128
136
|
end
|
129
137
|
end
|
130
138
|
res
|