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 Embeds
|
13
13
|
extend T::Sig
|
@@ -19,16 +19,22 @@ module SpeakeasyClientSDK
|
|
19
19
|
end
|
20
20
|
|
21
21
|
|
22
|
-
sig { params(
|
23
|
-
def
|
24
|
-
#
|
22
|
+
sig { params(description: T.nilable(::String), duration: T.nilable(::Integer), filters: T.nilable(::OpenApiSDK::Shared::Filters)).returns(::OpenApiSDK::Operations::GetEmbedAccessTokenResponse) }
|
23
|
+
def get_access_token(description = nil, duration = nil, filters = nil)
|
24
|
+
# get_access_token - Get an embed access token for the current workspace.
|
25
25
|
# Returns an embed access token for the current workspace. This can be used to authenticate access to externally embedded content.
|
26
26
|
# Filters can be applied allowing views to be filtered to things like particular customerIds.
|
27
|
+
request = ::OpenApiSDK::Operations::GetEmbedAccessTokenRequest.new(
|
28
|
+
|
29
|
+
description: description,
|
30
|
+
duration: duration,
|
31
|
+
filters: filters
|
32
|
+
)
|
27
33
|
url, params = @sdk_configuration.get_server_details
|
28
34
|
base_url = Utils.template_url(url, params)
|
29
35
|
url = "#{base_url}/v1/workspace/embed-access-token"
|
30
36
|
headers = {}
|
31
|
-
query_params = Utils.get_query_params(::
|
37
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::GetEmbedAccessTokenRequest, request, @sdk_configuration.globals)
|
32
38
|
headers['Accept'] = 'application/json'
|
33
39
|
headers['user-agent'] = @sdk_configuration.user_agent
|
34
40
|
|
@@ -40,18 +46,17 @@ module SpeakeasyClientSDK
|
|
40
46
|
|
41
47
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
42
48
|
|
43
|
-
res = ::
|
49
|
+
res = ::OpenApiSDK::Operations::GetEmbedAccessTokenResponse.new(
|
44
50
|
status_code: r.status, content_type: content_type, raw_response: r
|
45
51
|
)
|
46
|
-
if r.status
|
52
|
+
if r.status >= 200 && r.status < 300
|
47
53
|
if Utils.match_content_type(content_type, 'application/json')
|
48
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
54
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::EmbedAccessTokenResponse)
|
49
55
|
res.embed_access_token_response = out
|
50
56
|
end
|
51
|
-
|
52
|
-
|
57
|
+
elsif r.status >= 400 && r.status < 500
|
53
58
|
if Utils.match_content_type(content_type, 'application/json')
|
54
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
59
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
55
60
|
res.error = out
|
56
61
|
end
|
57
62
|
end
|
@@ -59,9 +64,9 @@ module SpeakeasyClientSDK
|
|
59
64
|
end
|
60
65
|
|
61
66
|
|
62
|
-
sig { returns(::
|
63
|
-
def
|
64
|
-
#
|
67
|
+
sig { returns(::OpenApiSDK::Operations::GetValidEmbedAccessTokensResponse) }
|
68
|
+
def get_valid
|
69
|
+
# get_valid - Get all valid embed access tokens for the current workspace.
|
65
70
|
url, params = @sdk_configuration.get_server_details
|
66
71
|
base_url = Utils.template_url(url, params)
|
67
72
|
url = "#{base_url}/v1/workspace/embed-access-tokens/valid"
|
@@ -76,18 +81,17 @@ module SpeakeasyClientSDK
|
|
76
81
|
|
77
82
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
78
83
|
|
79
|
-
res = ::
|
84
|
+
res = ::OpenApiSDK::Operations::GetValidEmbedAccessTokensResponse.new(
|
80
85
|
status_code: r.status, content_type: content_type, raw_response: r
|
81
86
|
)
|
82
|
-
if r.status
|
87
|
+
if r.status >= 200 && r.status < 300
|
83
88
|
if Utils.match_content_type(content_type, 'application/json')
|
84
|
-
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::
|
89
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::EmbedToken])
|
85
90
|
res.embed_tokens = out
|
86
91
|
end
|
87
|
-
|
88
|
-
|
92
|
+
elsif r.status >= 400 && r.status < 500
|
89
93
|
if Utils.match_content_type(content_type, 'application/json')
|
90
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
94
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
91
95
|
res.error = out
|
92
96
|
end
|
93
97
|
end
|
@@ -95,13 +99,17 @@ module SpeakeasyClientSDK
|
|
95
99
|
end
|
96
100
|
|
97
101
|
|
98
|
-
sig { params(
|
99
|
-
def
|
100
|
-
#
|
102
|
+
sig { params(token_id: ::String).returns(::OpenApiSDK::Operations::RevokeEmbedAccessTokenResponse) }
|
103
|
+
def delete(token_id)
|
104
|
+
# delete - Revoke an embed access EmbedToken.
|
105
|
+
request = ::OpenApiSDK::Operations::RevokeEmbedAccessTokenRequest.new(
|
106
|
+
|
107
|
+
token_id: token_id
|
108
|
+
)
|
101
109
|
url, params = @sdk_configuration.get_server_details
|
102
110
|
base_url = Utils.template_url(url, params)
|
103
111
|
url = Utils.generate_url(
|
104
|
-
::
|
112
|
+
::OpenApiSDK::Operations::RevokeEmbedAccessTokenRequest,
|
105
113
|
base_url,
|
106
114
|
'/v1/workspace/embed-access-tokens/{tokenID}',
|
107
115
|
request,
|
@@ -118,14 +126,13 @@ module SpeakeasyClientSDK
|
|
118
126
|
|
119
127
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
120
128
|
|
121
|
-
res = ::
|
129
|
+
res = ::OpenApiSDK::Operations::RevokeEmbedAccessTokenResponse.new(
|
122
130
|
status_code: r.status, content_type: content_type, raw_response: r
|
123
131
|
)
|
124
|
-
if r.status
|
125
|
-
|
126
|
-
|
132
|
+
if r.status >= 200 && r.status < 300
|
133
|
+
elsif r.status >= 400 && r.status < 500
|
127
134
|
if Utils.match_content_type(content_type, 'application/json')
|
128
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
135
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
129
136
|
res.error = out
|
130
137
|
end
|
131
138
|
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 Events
|
13
13
|
extend T::Sig
|
@@ -19,20 +19,20 @@ 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::Operations::SearchWorkspaceEventsRequest)).returns(::OpenApiSDK::Operations::SearchWorkspaceEventsResponse) }
|
23
|
+
def search(request)
|
24
|
+
# search - Search events for a particular workspace by any field
|
25
25
|
url, params = @sdk_configuration.get_server_details
|
26
26
|
base_url = Utils.template_url(url, params)
|
27
27
|
url = Utils.generate_url(
|
28
|
-
::
|
28
|
+
::OpenApiSDK::Operations::SearchWorkspaceEventsRequest,
|
29
29
|
base_url,
|
30
|
-
'/v1/workspace/{
|
30
|
+
'/v1/workspace/{workspace_id}/events',
|
31
31
|
request,
|
32
32
|
@sdk_configuration.globals
|
33
33
|
)
|
34
34
|
headers = {}
|
35
|
-
query_params = Utils.get_query_params(::
|
35
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::SearchWorkspaceEventsRequest, request, @sdk_configuration.globals)
|
36
36
|
headers['Accept'] = 'application/json'
|
37
37
|
headers['user-agent'] = @sdk_configuration.user_agent
|
38
38
|
|
@@ -44,17 +44,17 @@ module SpeakeasyClientSDK
|
|
44
44
|
|
45
45
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
46
46
|
|
47
|
-
res = ::
|
47
|
+
res = ::OpenApiSDK::Operations::SearchWorkspaceEventsResponse.new(
|
48
48
|
status_code: r.status, content_type: content_type, raw_response: r
|
49
49
|
)
|
50
50
|
if r.status == 200
|
51
51
|
if Utils.match_content_type(content_type, 'application/json')
|
52
|
-
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::
|
52
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::CliEvent])
|
53
53
|
res.cli_event_batch = out
|
54
54
|
end
|
55
55
|
elsif r.status >= 500 && r.status < 600
|
56
56
|
if Utils.match_content_type(content_type, 'application/json')
|
57
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
57
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
58
58
|
res.error = out
|
59
59
|
end
|
60
60
|
end
|
@@ -62,42 +62,52 @@ module SpeakeasyClientSDK
|
|
62
62
|
end
|
63
63
|
|
64
64
|
|
65
|
-
sig { params(
|
66
|
-
def
|
67
|
-
#
|
65
|
+
sig { params(workspace_id: ::String, request_body: T::Array[::OpenApiSDK::Shared::CliEvent]).returns(::OpenApiSDK::Operations::PostWorkspaceEventsResponse) }
|
66
|
+
def post(workspace_id, request_body)
|
67
|
+
# post - Post events for a specific workspace
|
68
|
+
# Sends an array of events to be stored for a particular workspace.
|
69
|
+
request = ::OpenApiSDK::Operations::PostWorkspaceEventsRequest.new(
|
70
|
+
|
71
|
+
workspace_id: workspace_id,
|
72
|
+
request_body: request_body
|
73
|
+
)
|
68
74
|
url, params = @sdk_configuration.get_server_details
|
69
75
|
base_url = Utils.template_url(url, params)
|
70
76
|
url = Utils.generate_url(
|
71
|
-
::
|
77
|
+
::OpenApiSDK::Operations::PostWorkspaceEventsRequest,
|
72
78
|
base_url,
|
73
|
-
'/v1/workspace/{
|
79
|
+
'/v1/workspace/{workspace_id}/events',
|
74
80
|
request,
|
75
81
|
@sdk_configuration.globals
|
76
82
|
)
|
77
83
|
headers = {}
|
78
|
-
|
84
|
+
req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :json)
|
85
|
+
headers['content-type'] = req_content_type
|
86
|
+
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
79
87
|
headers['Accept'] = 'application/json'
|
80
88
|
headers['user-agent'] = @sdk_configuration.user_agent
|
81
89
|
|
82
|
-
r = @sdk_configuration.client.
|
90
|
+
r = @sdk_configuration.client.post(url) do |req|
|
83
91
|
req.headers = headers
|
84
|
-
req.params = query_params
|
85
92
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
93
|
+
if form
|
94
|
+
req.body = Utils.encode_form(form)
|
95
|
+
elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
|
96
|
+
req.body = URI.encode_www_form(data)
|
97
|
+
else
|
98
|
+
req.body = data
|
99
|
+
end
|
86
100
|
end
|
87
101
|
|
88
102
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
89
103
|
|
90
|
-
res = ::
|
104
|
+
res = ::OpenApiSDK::Operations::PostWorkspaceEventsResponse.new(
|
91
105
|
status_code: r.status, content_type: content_type, raw_response: r
|
92
106
|
)
|
93
|
-
if r.status
|
94
|
-
if Utils.match_content_type(content_type, 'application/json')
|
95
|
-
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::TargetSDK])
|
96
|
-
res.target_sdk_list = out
|
97
|
-
end
|
107
|
+
if r.status >= 200 && r.status < 300
|
98
108
|
elsif r.status >= 500 && r.status < 600
|
99
109
|
if Utils.match_content_type(content_type, 'application/json')
|
100
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
110
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
101
111
|
res.error = out
|
102
112
|
end
|
103
113
|
end
|
@@ -105,47 +115,89 @@ module SpeakeasyClientSDK
|
|
105
115
|
end
|
106
116
|
|
107
117
|
|
108
|
-
sig { params(
|
109
|
-
def
|
110
|
-
#
|
111
|
-
|
118
|
+
sig { params(workspace_id: ::String, target_id: ::String, after_created_at: T.nilable(::DateTime)).returns(::OpenApiSDK::Operations::GetWorkspaceEventsByTargetResponse) }
|
119
|
+
def get_by_target(workspace_id, target_id, after_created_at = nil)
|
120
|
+
# get_by_target - Load recent events for a particular workspace
|
121
|
+
request = ::OpenApiSDK::Operations::GetWorkspaceEventsByTargetRequest.new(
|
122
|
+
|
123
|
+
workspace_id: workspace_id,
|
124
|
+
target_id: target_id,
|
125
|
+
after_created_at: after_created_at
|
126
|
+
)
|
112
127
|
url, params = @sdk_configuration.get_server_details
|
113
128
|
base_url = Utils.template_url(url, params)
|
114
129
|
url = Utils.generate_url(
|
115
|
-
::
|
130
|
+
::OpenApiSDK::Operations::GetWorkspaceEventsByTargetRequest,
|
116
131
|
base_url,
|
117
|
-
'/v1/workspace/{
|
132
|
+
'/v1/workspace/{workspace_id}/events/targets/{target_id}/events',
|
118
133
|
request,
|
119
134
|
@sdk_configuration.globals
|
120
135
|
)
|
121
136
|
headers = {}
|
122
|
-
|
123
|
-
headers['content-type'] = req_content_type
|
124
|
-
raise StandardError, 'request body is required' if data.nil? && form.nil?
|
137
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::GetWorkspaceEventsByTargetRequest, request, @sdk_configuration.globals)
|
125
138
|
headers['Accept'] = 'application/json'
|
126
139
|
headers['user-agent'] = @sdk_configuration.user_agent
|
127
140
|
|
128
|
-
r = @sdk_configuration.client.
|
141
|
+
r = @sdk_configuration.client.get(url) do |req|
|
129
142
|
req.headers = headers
|
143
|
+
req.params = query_params
|
130
144
|
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
145
|
+
end
|
146
|
+
|
147
|
+
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
148
|
+
|
149
|
+
res = ::OpenApiSDK::Operations::GetWorkspaceEventsByTargetResponse.new(
|
150
|
+
status_code: r.status, content_type: content_type, raw_response: r
|
151
|
+
)
|
152
|
+
if r.status == 200
|
153
|
+
if Utils.match_content_type(content_type, 'application/json')
|
154
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::CliEvent])
|
155
|
+
res.cli_event_batch = out
|
156
|
+
end
|
157
|
+
elsif r.status >= 500 && r.status < 600
|
158
|
+
if Utils.match_content_type(content_type, 'application/json')
|
159
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
160
|
+
res.error = out
|
137
161
|
end
|
138
162
|
end
|
163
|
+
res
|
164
|
+
end
|
165
|
+
|
166
|
+
|
167
|
+
sig { params(after_last_event_created_at: T.nilable(::DateTime)).returns(::OpenApiSDK::Operations::GetWorkspaceTargetsResponse) }
|
168
|
+
def get_targets(after_last_event_created_at = nil)
|
169
|
+
# get_targets - Load targets for a particular workspace
|
170
|
+
request = ::OpenApiSDK::Operations::GetWorkspaceTargetsRequest.new(
|
171
|
+
|
172
|
+
after_last_event_created_at: after_last_event_created_at
|
173
|
+
)
|
174
|
+
url, params = @sdk_configuration.get_server_details
|
175
|
+
base_url = Utils.template_url(url, params)
|
176
|
+
url = "#{base_url}/v1/workspace/events/targets"
|
177
|
+
headers = {}
|
178
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::GetWorkspaceTargetsRequest, request, @sdk_configuration.globals)
|
179
|
+
headers['Accept'] = 'application/json'
|
180
|
+
headers['user-agent'] = @sdk_configuration.user_agent
|
181
|
+
|
182
|
+
r = @sdk_configuration.client.get(url) do |req|
|
183
|
+
req.headers = headers
|
184
|
+
req.params = query_params
|
185
|
+
Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
|
186
|
+
end
|
139
187
|
|
140
188
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
141
189
|
|
142
|
-
res = ::
|
190
|
+
res = ::OpenApiSDK::Operations::GetWorkspaceTargetsResponse.new(
|
143
191
|
status_code: r.status, content_type: content_type, raw_response: r
|
144
192
|
)
|
145
|
-
if r.status
|
193
|
+
if r.status == 200
|
194
|
+
if Utils.match_content_type(content_type, 'application/json')
|
195
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::TargetSDK])
|
196
|
+
res.target_sdk_list = out
|
197
|
+
end
|
146
198
|
elsif r.status >= 500 && r.status < 600
|
147
199
|
if Utils.match_content_type(content_type, 'application/json')
|
148
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
200
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
149
201
|
res.error = out
|
150
202
|
end
|
151
203
|
end
|
@@ -153,20 +205,25 @@ module SpeakeasyClientSDK
|
|
153
205
|
end
|
154
206
|
|
155
207
|
|
156
|
-
sig { params(
|
157
|
-
def
|
158
|
-
#
|
208
|
+
sig { params(workspace_id: ::String, after_last_event_created_at: T.nilable(::DateTime)).returns(::OpenApiSDK::Operations::GetWorkspaceTargetsDeprecatedResponse) }
|
209
|
+
def get_targets_deprecated(workspace_id, after_last_event_created_at = nil)
|
210
|
+
# get_targets_deprecated - Load targets for a particular workspace
|
211
|
+
request = ::OpenApiSDK::Operations::GetWorkspaceTargetsDeprecatedRequest.new(
|
212
|
+
|
213
|
+
workspace_id: workspace_id,
|
214
|
+
after_last_event_created_at: after_last_event_created_at
|
215
|
+
)
|
159
216
|
url, params = @sdk_configuration.get_server_details
|
160
217
|
base_url = Utils.template_url(url, params)
|
161
218
|
url = Utils.generate_url(
|
162
|
-
::
|
219
|
+
::OpenApiSDK::Operations::GetWorkspaceTargetsDeprecatedRequest,
|
163
220
|
base_url,
|
164
|
-
'/v1/workspace/{
|
221
|
+
'/v1/workspace/{workspace_id}/events/targets',
|
165
222
|
request,
|
166
223
|
@sdk_configuration.globals
|
167
224
|
)
|
168
225
|
headers = {}
|
169
|
-
query_params = Utils.get_query_params(::
|
226
|
+
query_params = Utils.get_query_params(::OpenApiSDK::Operations::GetWorkspaceTargetsDeprecatedRequest, request, @sdk_configuration.globals)
|
170
227
|
headers['Accept'] = 'application/json'
|
171
228
|
headers['user-agent'] = @sdk_configuration.user_agent
|
172
229
|
|
@@ -178,17 +235,17 @@ module SpeakeasyClientSDK
|
|
178
235
|
|
179
236
|
content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
|
180
237
|
|
181
|
-
res = ::
|
238
|
+
res = ::OpenApiSDK::Operations::GetWorkspaceTargetsDeprecatedResponse.new(
|
182
239
|
status_code: r.status, content_type: content_type, raw_response: r
|
183
240
|
)
|
184
241
|
if r.status == 200
|
185
242
|
if Utils.match_content_type(content_type, 'application/json')
|
186
|
-
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::
|
187
|
-
res.
|
243
|
+
out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::TargetSDK])
|
244
|
+
res.target_sdk_list = out
|
188
245
|
end
|
189
246
|
elsif r.status >= 500 && r.status < 600
|
190
247
|
if Utils.match_content_type(content_type, 'application/json')
|
191
|
-
out = Utils.unmarshal_complex(r.env.response_body, ::
|
248
|
+
out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
|
192
249
|
res.error = out
|
193
250
|
end
|
194
251
|
end
|