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.
Files changed (291) hide show
  1. checksums.yaml +4 -4
  2. data/lib/open_api_sdk/apiendpoints.rb +66 -0
  3. data/lib/{speakeasy_client_sdk → open_api_sdk}/apis.rb +134 -109
  4. data/lib/{speakeasy_client_sdk → open_api_sdk}/artifacts.rb +129 -150
  5. data/lib/{speakeasy_client_sdk → open_api_sdk}/auth.rb +53 -46
  6. data/lib/{speakeasy_client_sdk → open_api_sdk}/embeds.rb +36 -29
  7. data/lib/{speakeasy_client_sdk → open_api_sdk}/events.rb +111 -54
  8. data/lib/{speakeasy_client_sdk → open_api_sdk}/github.rb +139 -127
  9. data/lib/{speakeasy_client_sdk → open_api_sdk}/metadata.rb +63 -48
  10. data/lib/{speakeasy_client_sdk/models/operations/checkaccess_request.rb → open_api_sdk/models/operations/checkgithubaccess_request.rb} +2 -2
  11. data/lib/{speakeasy_client_sdk/models/operations/deleteapi_response.rb → open_api_sdk/models/operations/checkgithubaccess_response.rb} +4 -4
  12. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/create_requestbody.rb +3 -3
  13. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/create_response.rb +4 -4
  14. data/lib/open_api_sdk/models/operations/createfreetrial_response.rb +33 -0
  15. data/lib/open_api_sdk/models/operations/createorganization_response.rb +36 -0
  16. data/lib/open_api_sdk/models/operations/createworkspace_response.rb +36 -0
  17. data/lib/open_api_sdk/models/operations/createworkspacetoken_request.rb +27 -0
  18. data/lib/{speakeasy_client_sdk/models/operations/deleteschema_response.rb → open_api_sdk/models/operations/createworkspacetoken_response.rb} +4 -4
  19. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/deleteapi_request.rb +2 -2
  20. data/lib/open_api_sdk/models/operations/deleteapi_response.rb +33 -0
  21. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/deleteapiendpoint_request.rb +2 -2
  22. data/lib/open_api_sdk/models/operations/deleteapiendpoint_response.rb +33 -0
  23. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/deleteschema_request.rb +2 -2
  24. data/lib/open_api_sdk/models/operations/deleteschema_response.rb +33 -0
  25. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/deleteversionmetadata_request.rb +2 -2
  26. data/lib/{speakeasy_client_sdk/models/operations/triggeraction_response.rb → open_api_sdk/models/operations/deleteversionmetadata_response.rb} +4 -4
  27. data/lib/open_api_sdk/models/operations/deleteworkspacetoken_request.rb +27 -0
  28. data/lib/open_api_sdk/models/operations/deleteworkspacetoken_response.rb +33 -0
  29. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/downloadschema_request.rb +2 -2
  30. data/lib/open_api_sdk/models/operations/downloadschema_response.rb +39 -0
  31. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/downloadschemarevision_request.rb +2 -2
  32. data/lib/open_api_sdk/models/operations/downloadschemarevision_response.rb +39 -0
  33. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/file.rb +2 -2
  34. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/findapiendpoint_request.rb +2 -2
  35. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/findapiendpoint_response.rb +5 -5
  36. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generateopenapispec_request.rb +2 -2
  37. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generateopenapispec_response.rb +5 -5
  38. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generateopenapispecforapiendpoint_request.rb +2 -2
  39. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generateopenapispecforapiendpoint_response.rb +5 -5
  40. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generatepostmancollection_request.rb +2 -2
  41. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generatepostmancollection_response.rb +4 -4
  42. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generatepostmancollectionforapiendpoint_request.rb +2 -2
  43. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generatepostmancollectionforapiendpoint_response.rb +4 -4
  44. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generaterequestpostmancollection_request.rb +2 -2
  45. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/generaterequestpostmancollection_response.rb +4 -4
  46. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getaccesstoken_request.rb +2 -2
  47. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getaccesstoken_response.rb +5 -5
  48. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getallapiendpoints_request.rb +2 -2
  49. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getallapiendpoints_response.rb +5 -5
  50. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getallapiversions_request.rb +4 -4
  51. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getallapiversions_response.rb +5 -5
  52. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getallforversionapiendpoints_request.rb +2 -2
  53. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getallforversionapiendpoints_response.rb +5 -5
  54. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getapiendpoint_request.rb +2 -2
  55. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getapiendpoint_response.rb +5 -5
  56. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getapis_request.rb +4 -4
  57. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getapis_response.rb +5 -5
  58. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getblob_request.rb +2 -2
  59. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getblob_response.rb +4 -4
  60. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getchangesreportsignedurl_request.rb +2 -2
  61. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getchangesreportsignedurl_response.rb +4 -4
  62. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getchangesreportsignedurl_signedaccess.rb +3 -3
  63. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getembedaccesstoken_request.rb +4 -4
  64. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getembedaccesstoken_response.rb +5 -5
  65. data/lib/{speakeasy_client_sdk/models/operations/getaction_request.rb → open_api_sdk/models/operations/getgithubaction_request.rb} +2 -2
  66. data/lib/{speakeasy_client_sdk/models/operations/getaction_response.rb → open_api_sdk/models/operations/getgithubaction_response.rb} +5 -5
  67. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getlintingreportsignedurl_request.rb +2 -2
  68. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getlintingreportsignedurl_response.rb +4 -4
  69. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getlintingreportsignedurl_signedaccess.rb +3 -3
  70. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getmanifest_request.rb +2 -2
  71. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getmanifest_response.rb +5 -5
  72. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getnamespaces_response.rb +5 -5
  73. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getorganization_request.rb +2 -2
  74. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getorganization_response.rb +5 -5
  75. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getorganizations_response.rb +5 -5
  76. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getorganizationusage_response.rb +5 -5
  77. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getrequestfromeventlog_request.rb +2 -2
  78. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getrequestfromeventlog_response.rb +5 -5
  79. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getrevisions_request.rb +2 -2
  80. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getrevisions_response.rb +5 -5
  81. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getschema_request.rb +2 -2
  82. data/lib/{speakeasy_client_sdk/models/operations/getschemarevision_response.rb → open_api_sdk/models/operations/getschema_response.rb} +5 -5
  83. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getschemadiff_request.rb +2 -2
  84. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getschemadiff_response.rb +5 -5
  85. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getschemarevision_request.rb +2 -2
  86. data/lib/{speakeasy_client_sdk/models/operations/getschema_response.rb → open_api_sdk/models/operations/getschemarevision_response.rb} +5 -5
  87. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getschemas_request.rb +2 -2
  88. data/lib/open_api_sdk/models/operations/getschemas_response.rb +36 -0
  89. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/gettags_request.rb +2 -2
  90. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/gettags_response.rb +5 -5
  91. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getuser_response.rb +5 -5
  92. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getvalidembedaccesstokens_response.rb +5 -5
  93. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getversionmetadata_request.rb +2 -2
  94. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getversionmetadata_response.rb +5 -5
  95. data/lib/open_api_sdk/models/operations/getworkspace_request.rb +24 -0
  96. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspace_response.rb +5 -5
  97. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspaceaccess_request.rb +2 -2
  98. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspaceaccess_response.rb +4 -4
  99. data/lib/{speakeasy_client_sdk/models/operations/getoassummary_response.rb → open_api_sdk/models/operations/getworkspacebycontext_response.rb} +7 -7
  100. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspaceeventsbytarget_request.rb +8 -8
  101. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspaceeventsbytarget_response.rb +5 -5
  102. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspacefeatureflags_request.rb +4 -4
  103. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspacefeatureflags_response.rb +5 -5
  104. data/lib/open_api_sdk/models/operations/getworkspaces_response.rb +36 -0
  105. data/lib/{speakeasy_client_sdk/models/operations/getworkspace_request.rb → open_api_sdk/models/operations/getworkspacesettings_request.rb} +4 -4
  106. data/lib/open_api_sdk/models/operations/getworkspacesettings_response.rb +36 -0
  107. data/lib/open_api_sdk/models/operations/getworkspacetargets_request.rb +24 -0
  108. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/getworkspacetargets_response.rb +5 -5
  109. data/lib/{speakeasy_client_sdk/models/operations/getworkspacetargets_request.rb → open_api_sdk/models/operations/getworkspacetargetsdeprecated_request.rb} +7 -7
  110. data/lib/{speakeasy_client_sdk/models/operations/deleteversionmetadata_response.rb → open_api_sdk/models/operations/getworkspacetargetsdeprecated_response.rb} +9 -6
  111. data/lib/open_api_sdk/models/operations/getworkspaceteam_request.rb +24 -0
  112. data/lib/open_api_sdk/models/operations/getworkspaceteam_response.rb +36 -0
  113. data/lib/open_api_sdk/models/operations/getworkspacetokens_request.rb +24 -0
  114. data/lib/{speakeasy_client_sdk/models/operations/getschemas_response.rb → open_api_sdk/models/operations/getworkspacetokens_response.rb} +8 -8
  115. data/lib/{speakeasy_client_sdk/models/operations/fetchpublishingprs_request.rb → open_api_sdk/models/operations/githubcheckpublishingprs_request.rb} +2 -2
  116. data/lib/{speakeasy_client_sdk/models/operations/fetchpublishingprs_response.rb → open_api_sdk/models/operations/githubcheckpublishingprs_response.rb} +5 -5
  117. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/githubcheckpublishingsecrets_request.rb +2 -2
  118. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/githubcheckpublishingsecrets_response.rb +5 -5
  119. data/lib/{speakeasy_client_sdk/models/operations/configurecodesamples_response.rb → open_api_sdk/models/operations/githubconfigurecodesamples_response.rb} +5 -5
  120. data/lib/open_api_sdk/models/operations/githubconfiguremintlifyrepo_response.rb +33 -0
  121. data/lib/open_api_sdk/models/operations/githubconfiguretarget_response.rb +33 -0
  122. data/lib/open_api_sdk/models/operations/githubstorepublishingsecrets_response.rb +33 -0
  123. data/lib/{speakeasy_client_sdk/models/operations/checkaccess_response.rb → open_api_sdk/models/operations/githubtriggeraction_response.rb} +4 -4
  124. data/lib/open_api_sdk/models/operations/grantuseraccesstoworkspace_request.rb +27 -0
  125. data/lib/{speakeasy_client_sdk/models/operations/configuremintlifyrepo_response.rb → open_api_sdk/models/operations/grantuseraccesstoworkspace_response.rb} +8 -5
  126. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/insertversionmetadata_request.rb +4 -4
  127. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/insertversionmetadata_response.rb +5 -5
  128. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/op.rb +2 -2
  129. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/posttags_request.rb +4 -4
  130. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/posttags_response.rb +4 -4
  131. data/lib/open_api_sdk/models/operations/postworkspaceevents_request.rb +27 -0
  132. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/postworkspaceevents_response.rb +4 -4
  133. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/preflight_response.rb +5 -5
  134. data/lib/open_api_sdk/models/operations/queryeventlog_request.rb +24 -0
  135. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/queryeventlog_response.rb +5 -5
  136. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/queryparam_op.rb +2 -2
  137. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/registerschema_request.rb +4 -4
  138. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/registerschema_requestbody.rb +4 -4
  139. data/lib/open_api_sdk/models/operations/registerschema_response.rb +33 -0
  140. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/revokeembedaccesstoken_request.rb +2 -2
  141. data/lib/{speakeasy_client_sdk/models/operations/registerschema_response.rb → open_api_sdk/models/operations/revokeembedaccesstoken_response.rb} +4 -4
  142. data/lib/open_api_sdk/models/operations/revokeuseraccesstoworkspace_request.rb +27 -0
  143. data/lib/open_api_sdk/models/operations/revokeuseraccesstoworkspace_response.rb +33 -0
  144. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/schema.rb +2 -2
  145. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/searchworkspaceevents_request.rb +8 -8
  146. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/searchworkspaceevents_response.rb +5 -5
  147. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/suggest_request.rb +4 -4
  148. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/suggest_response.rb +2 -2
  149. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/suggestopenapi_request.rb +4 -4
  150. data/lib/open_api_sdk/models/operations/suggestopenapi_requestbody.rb +27 -0
  151. data/lib/{speakeasy_client_sdk/models/operations/suggestopenapiregistry_response.rb → open_api_sdk/models/operations/suggestopenapi_response.rb} +2 -2
  152. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/suggestopenapiregistry_request.rb +4 -4
  153. data/lib/{speakeasy_client_sdk/models/operations/suggestopenapi_response.rb → open_api_sdk/models/operations/suggestopenapiregistry_response.rb} +2 -2
  154. data/lib/open_api_sdk/models/operations/updateworkspacedetails_request.rb +27 -0
  155. data/lib/open_api_sdk/models/operations/updateworkspacedetails_response.rb +33 -0
  156. data/lib/open_api_sdk/models/operations/updateworkspacesettings_request.rb +27 -0
  157. data/lib/{speakeasy_client_sdk/models/operations/configuretarget_response.rb → open_api_sdk/models/operations/updateworkspacesettings_response.rb} +4 -4
  158. data/lib/{speakeasy_client_sdk/models/operations/registerschema_file.rb → open_api_sdk/models/operations/uploadreport_file.rb} +2 -2
  159. data/lib/open_api_sdk/models/operations/uploadreport_requestbody.rb +27 -0
  160. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/uploadreport_response.rb +4 -4
  161. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/uploadreport_uploadedreport.rb +3 -3
  162. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/upsertapi_request.rb +4 -4
  163. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/upsertapi_response.rb +5 -5
  164. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/upsertapiendpoint_request.rb +4 -4
  165. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/upsertapiendpoint_response.rb +5 -5
  166. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/operations/validateapikey_response.rb +5 -5
  167. data/lib/open_api_sdk/models/operations.rb +166 -0
  168. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/accessdetails.rb +6 -6
  169. data/lib/open_api_sdk/models/shared/accesstoken.rb +36 -0
  170. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/accesstoken_user.rb +8 -8
  171. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/accounttype.rb +1 -1
  172. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/addtags.rb +4 -4
  173. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/annotations.rb +14 -14
  174. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/api.rb +10 -10
  175. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/api_input.rb +6 -6
  176. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/apiendpoint.rb +13 -13
  177. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/apiendpoint_input.rb +8 -8
  178. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/apikeydetails.rb +11 -11
  179. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/auth.rb +4 -4
  180. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/boundedrequest.rb +17 -17
  181. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/claims.rb +2 -2
  182. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/clievent.rb +81 -81
  183. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/diagnostic.rb +6 -6
  184. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/embedaccesstokenresponse.rb +3 -3
  185. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/embedtoken.rb +12 -12
  186. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/error.rb +4 -4
  187. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/featureflag.rb +4 -4
  188. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/filter.rb +5 -5
  189. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/filters.rb +7 -7
  190. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/generate_bump_type.rb +1 -1
  191. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/generateopenapispecdiff.rb +4 -4
  192. data/lib/open_api_sdk/models/shared/getnamespacesresponse.rb +24 -0
  193. data/lib/open_api_sdk/models/shared/getrevisionsresponse.rb +27 -0
  194. data/lib/open_api_sdk/models/shared/gettagsresponse.rb +24 -0
  195. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubconfigurecodesamplesrequest.rb +5 -5
  196. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubconfigurecodesamplesresponse.rb +6 -6
  197. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubconfiguremintlifyreporequest.rb +7 -7
  198. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubconfiguretargetrequest.rb +4 -4
  199. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubgetactionresponse.rb +4 -4
  200. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubmissingpublishingsecretsresponse.rb +3 -3
  201. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubpublishingprresponse.rb +4 -4
  202. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubstorepublishingsecretsrequest.rb +4 -4
  203. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/githubtriggeractionrequest.rb +8 -8
  204. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/interactiontype.rb +1 -1
  205. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/level.rb +1 -1
  206. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/license.rb +3 -3
  207. data/lib/open_api_sdk/models/shared/manifest.rb +36 -0
  208. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/namespace.rb +6 -6
  209. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/oasinfo.rb +8 -8
  210. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/oasoperation.rb +9 -9
  211. data/lib/open_api_sdk/models/shared/oassummary.rb +27 -0
  212. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/openapi_diff_bump_type.rb +1 -1
  213. data/lib/open_api_sdk/models/shared/organization.rb +45 -0
  214. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/organizationusage.rb +9 -9
  215. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/organizationusageresponse.rb +7 -7
  216. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/preflightrequest.rb +3 -3
  217. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/preflighttoken.rb +3 -3
  218. data/lib/open_api_sdk/models/shared/relationship.rb +27 -0
  219. data/lib/open_api_sdk/models/shared/report.rb +24 -0
  220. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/requestmetadata.rb +4 -4
  221. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/revision.rb +8 -8
  222. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/schema.rb +8 -8
  223. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/schemadiff.rb +6 -6
  224. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/security.rb +7 -4
  225. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/shorturl.rb +4 -4
  226. data/lib/open_api_sdk/models/shared/ssometadata.rb +27 -0
  227. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/suggestion_type.rb +1 -1
  228. data/lib/open_api_sdk/models/shared/suggestoptsold.rb +27 -0
  229. data/lib/open_api_sdk/models/shared/suggestrequestbody.rb +30 -0
  230. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/suggestrequestbody_suggestion_type.rb +1 -1
  231. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/tag.rb +6 -6
  232. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/targetsdk.rb +52 -40
  233. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/type.rb +1 -1
  234. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/unboundedrequest.rb +7 -7
  235. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/user.rb +19 -19
  236. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/v2descriptor.rb +7 -7
  237. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/valuechange.rb +4 -4
  238. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/versionmetadata.rb +8 -8
  239. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/versionmetadata_input.rb +4 -4
  240. data/lib/open_api_sdk/models/shared/workflowdocument.rb +27 -0
  241. data/lib/{speakeasy_client_sdk → open_api_sdk}/models/shared/workspace.rb +12 -12
  242. data/lib/open_api_sdk/models/shared/workspaceandorganization.rb +27 -0
  243. data/lib/open_api_sdk/models/shared/workspacefeatureflagresponse.rb +24 -0
  244. data/lib/open_api_sdk/models/shared/workspaceinviteresponse.rb +27 -0
  245. data/lib/open_api_sdk/models/shared/workspaces.rb +33 -0
  246. data/lib/open_api_sdk/models/shared/workspacesettings.rb +27 -0
  247. data/lib/open_api_sdk/models/shared/workspaceteamresponse.rb +27 -0
  248. data/lib/open_api_sdk/models/shared/workspacetoken.rb +48 -0
  249. data/lib/open_api_sdk/models/shared.rb +90 -0
  250. data/lib/{speakeasy_client_sdk → open_api_sdk}/organizations.rb +94 -48
  251. data/lib/{speakeasy_client_sdk → open_api_sdk}/reports.rb +50 -42
  252. data/lib/{speakeasy_client_sdk → open_api_sdk}/requests.rb +58 -49
  253. data/lib/{speakeasy_client_sdk → open_api_sdk}/schemas.rb +157 -119
  254. data/lib/{speakeasy_client_sdk → open_api_sdk}/sdkconfiguration.rb +7 -7
  255. data/lib/{speakeasy_client_sdk → open_api_sdk}/shorturls.rb +5 -5
  256. data/lib/{speakeasy_client_sdk/sdk.rb → open_api_sdk/speakeasyclientsdk.rb} +10 -9
  257. data/lib/{speakeasy_client_sdk/apiendpoints.rb → open_api_sdk/speakeasyclientsdk_apiendpoints.rb} +138 -145
  258. data/lib/{speakeasy_client_sdk → open_api_sdk}/suggest.rb +38 -21
  259. data/lib/{speakeasy_client_sdk → open_api_sdk}/utils/metadata_fields.rb +1 -1
  260. data/lib/{speakeasy_client_sdk → open_api_sdk}/utils/utils.rb +1 -1
  261. data/lib/open_api_sdk/workspaces.rb +654 -0
  262. data/lib/speakeasy_client_sdk_ruby.rb +24 -23
  263. metadata +263 -233
  264. data/lib/speakeasy_client_sdk/models/operations/createfreetrial_response.rb +0 -33
  265. data/lib/speakeasy_client_sdk/models/operations/deleteapiendpoint_response.rb +0 -33
  266. data/lib/speakeasy_client_sdk/models/operations/downloadschema_response.rb +0 -39
  267. data/lib/speakeasy_client_sdk/models/operations/downloadschemarevision_response.rb +0 -39
  268. data/lib/speakeasy_client_sdk/models/operations/getoassummary_request.rb +0 -27
  269. data/lib/speakeasy_client_sdk/models/operations/githubstorepublishingsecrets_response.rb +0 -33
  270. data/lib/speakeasy_client_sdk/models/operations/postworkspaceevents_request.rb +0 -27
  271. data/lib/speakeasy_client_sdk/models/operations/queryeventlog_request.rb +0 -24
  272. data/lib/speakeasy_client_sdk/models/operations/revokeembedaccesstoken_response.rb +0 -33
  273. data/lib/speakeasy_client_sdk/models/operations/suggestopenapi_requestbody.rb +0 -27
  274. data/lib/speakeasy_client_sdk/models/operations/uploadreport_requestbody.rb +0 -27
  275. data/lib/speakeasy_client_sdk/models/operations.rb +0 -144
  276. data/lib/speakeasy_client_sdk/models/shared/accesstoken.rb +0 -36
  277. data/lib/speakeasy_client_sdk/models/shared/getnamespacesresponse.rb +0 -24
  278. data/lib/speakeasy_client_sdk/models/shared/getrevisionsresponse.rb +0 -27
  279. data/lib/speakeasy_client_sdk/models/shared/gettagsresponse.rb +0 -24
  280. data/lib/speakeasy_client_sdk/models/shared/manifest.rb +0 -36
  281. data/lib/speakeasy_client_sdk/models/shared/oassummary.rb +0 -27
  282. data/lib/speakeasy_client_sdk/models/shared/organization.rb +0 -45
  283. data/lib/speakeasy_client_sdk/models/shared/report.rb +0 -24
  284. data/lib/speakeasy_client_sdk/models/shared/suggestoptsold.rb +0 -27
  285. data/lib/speakeasy_client_sdk/models/shared/suggestrequestbody.rb +0 -30
  286. data/lib/speakeasy_client_sdk/models/shared/workflowdocument.rb +0 -27
  287. data/lib/speakeasy_client_sdk/models/shared/workspacefeatureflagresponse.rb +0 -24
  288. data/lib/speakeasy_client_sdk/models/shared/workspaces.rb +0 -33
  289. data/lib/speakeasy_client_sdk/models/shared.rb +0 -83
  290. data/lib/speakeasy_client_sdk/workspaces.rb +0 -105
  291. /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 SpeakeasyClientSDK
10
+ module OpenApiSDK
11
11
  extend T::Sig
12
12
  class Schemas
13
13
  extend T::Sig
@@ -19,15 +19,22 @@ module SpeakeasyClientSDK
19
19
  end
20
20
 
21
21
 
22
- sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::DeleteSchemaRequest)).returns(::SpeakeasyClientSDK::Operations::DeleteSchemaResponse) }
23
- def delete_schema(request)
24
- # delete_schema - Delete a particular schema revision for an Api.
22
+ sig { params(api_id: ::String, version_id: ::String).returns(::OpenApiSDK::Operations::GetSchemaResponse) }
23
+ def get_latest(api_id, version_id)
24
+ # get_latest - Get information about the latest schema.
25
+ # Returns information about the last uploaded schema for a particular API version.
26
+ # This won't include the schema itself, that can be retrieved via the downloadSchema operation.
27
+ request = ::OpenApiSDK::Operations::GetSchemaRequest.new(
28
+
29
+ api_id: api_id,
30
+ version_id: version_id
31
+ )
25
32
  url, params = @sdk_configuration.get_server_details
26
33
  base_url = Utils.template_url(url, params)
27
34
  url = Utils.generate_url(
28
- ::SpeakeasyClientSDK::Operations::DeleteSchemaRequest,
35
+ ::OpenApiSDK::Operations::GetSchemaRequest,
29
36
  base_url,
30
- '/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}',
37
+ '/v1/apis/{apiID}/version/{versionID}/schema',
31
38
  request,
32
39
  @sdk_configuration.globals
33
40
  )
@@ -35,21 +42,24 @@ module SpeakeasyClientSDK
35
42
  headers['Accept'] = 'application/json'
36
43
  headers['user-agent'] = @sdk_configuration.user_agent
37
44
 
38
- r = @sdk_configuration.client.delete(url) do |req|
45
+ r = @sdk_configuration.client.get(url) do |req|
39
46
  req.headers = headers
40
47
  Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
41
48
  end
42
49
 
43
50
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
44
51
 
45
- res = ::SpeakeasyClientSDK::Operations::DeleteSchemaResponse.new(
52
+ res = ::OpenApiSDK::Operations::GetSchemaResponse.new(
46
53
  status_code: r.status, content_type: content_type, raw_response: r
47
54
  )
48
- if r.status == 200
49
- else
50
-
55
+ if r.status >= 200 && r.status < 300
51
56
  if Utils.match_content_type(content_type, 'application/json')
52
- out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
57
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Schema)
58
+ res.schema = out
59
+ end
60
+ elsif r.status >= 400 && r.status < 500
61
+ if Utils.match_content_type(content_type, 'application/json')
62
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
53
63
  res.error = out
54
64
  end
55
65
  end
@@ -57,41 +67,54 @@ module SpeakeasyClientSDK
57
67
  end
58
68
 
59
69
 
60
- sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::DownloadSchemaRequest)).returns(::SpeakeasyClientSDK::Operations::DownloadSchemaResponse) }
61
- def download_schema(request)
62
- # download_schema - Download the latest schema for a particular apiID.
70
+ sig { params(api_id: ::String, version_id: ::String, request_body: ::OpenApiSDK::Operations::RegisterSchemaRequestBody).returns(::OpenApiSDK::Operations::RegisterSchemaResponse) }
71
+ def post(api_id, version_id, request_body)
72
+ # post - Register a schema.
73
+ # Allows uploading a schema for a particular API version.
74
+ # This will be used to populate ApiEndpoints and used as a base for any schema generation if present.
75
+ request = ::OpenApiSDK::Operations::RegisterSchemaRequest.new(
76
+
77
+ api_id: api_id,
78
+ version_id: version_id,
79
+ request_body: request_body
80
+ )
63
81
  url, params = @sdk_configuration.get_server_details
64
82
  base_url = Utils.template_url(url, params)
65
83
  url = Utils.generate_url(
66
- ::SpeakeasyClientSDK::Operations::DownloadSchemaRequest,
84
+ ::OpenApiSDK::Operations::RegisterSchemaRequest,
67
85
  base_url,
68
- '/v1/apis/{apiID}/version/{versionID}/schema/download',
86
+ '/v1/apis/{apiID}/version/{versionID}/schema',
69
87
  request,
70
88
  @sdk_configuration.globals
71
89
  )
72
90
  headers = {}
73
- headers['Accept'] = 'application/json;q=1, application/x-yaml;q=0'
91
+ req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :multipart)
92
+ headers['content-type'] = req_content_type
93
+ raise StandardError, 'request body is required' if data.nil? && form.nil?
94
+ headers['Accept'] = 'application/json'
74
95
  headers['user-agent'] = @sdk_configuration.user_agent
75
96
 
76
- r = @sdk_configuration.client.get(url) do |req|
97
+ r = @sdk_configuration.client.post(url) do |req|
77
98
  req.headers = headers
78
99
  Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
100
+ if form
101
+ req.body = Utils.encode_form(form)
102
+ elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
103
+ req.body = URI.encode_www_form(data)
104
+ else
105
+ req.body = data
106
+ end
79
107
  end
80
108
 
81
109
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
82
110
 
83
- res = ::SpeakeasyClientSDK::Operations::DownloadSchemaResponse.new(
111
+ res = ::OpenApiSDK::Operations::RegisterSchemaResponse.new(
84
112
  status_code: r.status, content_type: content_type, raw_response: r
85
113
  )
86
- if r.status == 200
87
- res.two_hundred_application_json_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
88
-
89
- res.two_hundred_application_x_yaml_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/x-yaml')
90
-
91
- else
92
-
114
+ if r.status >= 200 && r.status < 300
115
+ elsif r.status >= 400 && r.status < 500
93
116
  if Utils.match_content_type(content_type, 'application/json')
94
- out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
117
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
95
118
  res.error = out
96
119
  end
97
120
  end
@@ -99,15 +122,20 @@ module SpeakeasyClientSDK
99
122
  end
100
123
 
101
124
 
102
- sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::DownloadSchemaRevisionRequest)).returns(::SpeakeasyClientSDK::Operations::DownloadSchemaRevisionResponse) }
103
- def download_schema_revision(request)
104
- # download_schema_revision - Download a particular schema revision for an Api.
125
+ sig { params(api_id: ::String, version_id: ::String).returns(::OpenApiSDK::Operations::DownloadSchemaResponse) }
126
+ def download(api_id, version_id)
127
+ # download - Download the latest schema for a particular apiID.
128
+ request = ::OpenApiSDK::Operations::DownloadSchemaRequest.new(
129
+
130
+ api_id: api_id,
131
+ version_id: version_id
132
+ )
105
133
  url, params = @sdk_configuration.get_server_details
106
134
  base_url = Utils.template_url(url, params)
107
135
  url = Utils.generate_url(
108
- ::SpeakeasyClientSDK::Operations::DownloadSchemaRevisionRequest,
136
+ ::OpenApiSDK::Operations::DownloadSchemaRequest,
109
137
  base_url,
110
- '/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}/download',
138
+ '/v1/apis/{apiID}/version/{versionID}/schema/download',
111
139
  request,
112
140
  @sdk_configuration.globals
113
141
  )
@@ -122,18 +150,17 @@ module SpeakeasyClientSDK
122
150
 
123
151
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
124
152
 
125
- res = ::SpeakeasyClientSDK::Operations::DownloadSchemaRevisionResponse.new(
153
+ res = ::OpenApiSDK::Operations::DownloadSchemaResponse.new(
126
154
  status_code: r.status, content_type: content_type, raw_response: r
127
155
  )
128
- if r.status == 200
129
- res.two_hundred_application_json_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
156
+ if r.status >= 200 && r.status < 300
157
+ res.two_xx_application_json_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
130
158
 
131
- res.two_hundred_application_x_yaml_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/x-yaml')
159
+ res.two_xx_application_x_yaml_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/x-yaml')
132
160
 
133
- else
134
-
161
+ elsif r.status >= 400 && r.status < 500
135
162
  if Utils.match_content_type(content_type, 'application/json')
136
- out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
163
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
137
164
  res.error = out
138
165
  end
139
166
  end
@@ -141,17 +168,22 @@ module SpeakeasyClientSDK
141
168
  end
142
169
 
143
170
 
144
- sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetSchemaRequest)).returns(::SpeakeasyClientSDK::Operations::GetSchemaResponse) }
145
- def get_schema(request)
146
- # get_schema - Get information about the latest schema.
147
- # Returns information about the last uploaded schema for a particular API version.
148
- # This won't include the schema itself, that can be retrieved via the downloadSchema operation.
171
+ sig { params(api_id: ::String, version_id: ::String, base_revision_id: ::String, target_revision_id: ::String).returns(::OpenApiSDK::Operations::GetSchemaDiffResponse) }
172
+ def get_diff(api_id, version_id, base_revision_id, target_revision_id)
173
+ # get_diff - Get a diff of two schema revisions for an Api.
174
+ request = ::OpenApiSDK::Operations::GetSchemaDiffRequest.new(
175
+
176
+ api_id: api_id,
177
+ version_id: version_id,
178
+ base_revision_id: base_revision_id,
179
+ target_revision_id: target_revision_id
180
+ )
149
181
  url, params = @sdk_configuration.get_server_details
150
182
  base_url = Utils.template_url(url, params)
151
183
  url = Utils.generate_url(
152
- ::SpeakeasyClientSDK::Operations::GetSchemaRequest,
184
+ ::OpenApiSDK::Operations::GetSchemaDiffRequest,
153
185
  base_url,
154
- '/v1/apis/{apiID}/version/{versionID}/schema',
186
+ '/v1/apis/{apiID}/version/{versionID}/schema/{baseRevisionID}/diff/{targetRevisionID}',
155
187
  request,
156
188
  @sdk_configuration.globals
157
189
  )
@@ -166,18 +198,17 @@ module SpeakeasyClientSDK
166
198
 
167
199
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
168
200
 
169
- res = ::SpeakeasyClientSDK::Operations::GetSchemaResponse.new(
201
+ res = ::OpenApiSDK::Operations::GetSchemaDiffResponse.new(
170
202
  status_code: r.status, content_type: content_type, raw_response: r
171
203
  )
172
- if r.status == 200
204
+ if r.status >= 200 && r.status < 300
173
205
  if Utils.match_content_type(content_type, 'application/json')
174
- out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Schema)
175
- res.schema = out
206
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::SchemaDiff)
207
+ res.schema_diff = out
176
208
  end
177
- else
178
-
209
+ elsif r.status >= 400 && r.status < 500
179
210
  if Utils.match_content_type(content_type, 'application/json')
180
- out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
211
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
181
212
  res.error = out
182
213
  end
183
214
  end
@@ -185,15 +216,21 @@ module SpeakeasyClientSDK
185
216
  end
186
217
 
187
218
 
188
- sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetSchemaDiffRequest)).returns(::SpeakeasyClientSDK::Operations::GetSchemaDiffResponse) }
189
- def get_schema_diff(request)
190
- # get_schema_diff - Get a diff of two schema revisions for an Api.
219
+ sig { params(api_id: ::String, version_id: ::String, revision_id: ::String).returns(::OpenApiSDK::Operations::DeleteSchemaResponse) }
220
+ def delete(api_id, version_id, revision_id)
221
+ # delete - Delete a particular schema revision for an Api.
222
+ request = ::OpenApiSDK::Operations::DeleteSchemaRequest.new(
223
+
224
+ api_id: api_id,
225
+ version_id: version_id,
226
+ revision_id: revision_id
227
+ )
191
228
  url, params = @sdk_configuration.get_server_details
192
229
  base_url = Utils.template_url(url, params)
193
230
  url = Utils.generate_url(
194
- ::SpeakeasyClientSDK::Operations::GetSchemaDiffRequest,
231
+ ::OpenApiSDK::Operations::DeleteSchemaRequest,
195
232
  base_url,
196
- '/v1/apis/{apiID}/version/{versionID}/schema/{baseRevisionID}/diff/{targetRevisionID}',
233
+ '/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}',
197
234
  request,
198
235
  @sdk_configuration.globals
199
236
  )
@@ -201,25 +238,20 @@ module SpeakeasyClientSDK
201
238
  headers['Accept'] = 'application/json'
202
239
  headers['user-agent'] = @sdk_configuration.user_agent
203
240
 
204
- r = @sdk_configuration.client.get(url) do |req|
241
+ r = @sdk_configuration.client.delete(url) do |req|
205
242
  req.headers = headers
206
243
  Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
207
244
  end
208
245
 
209
246
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
210
247
 
211
- res = ::SpeakeasyClientSDK::Operations::GetSchemaDiffResponse.new(
248
+ res = ::OpenApiSDK::Operations::DeleteSchemaResponse.new(
212
249
  status_code: r.status, content_type: content_type, raw_response: r
213
250
  )
214
- if r.status == 200
251
+ if r.status >= 200 && r.status < 300
252
+ elsif r.status >= 400 && r.status < 500
215
253
  if Utils.match_content_type(content_type, 'application/json')
216
- out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::SchemaDiff)
217
- res.schema_diff = out
218
- end
219
- else
220
-
221
- if Utils.match_content_type(content_type, 'application/json')
222
- out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
254
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
223
255
  res.error = out
224
256
  end
225
257
  end
@@ -227,15 +259,21 @@ module SpeakeasyClientSDK
227
259
  end
228
260
 
229
261
 
230
- sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetSchemaRevisionRequest)).returns(::SpeakeasyClientSDK::Operations::GetSchemaRevisionResponse) }
231
- def get_schema_revision(request)
232
- # get_schema_revision - Get information about a particular schema revision for an Api.
262
+ sig { params(api_id: ::String, version_id: ::String, revision_id: ::String).returns(::OpenApiSDK::Operations::GetSchemaRevisionResponse) }
263
+ def get_revision(api_id, version_id, revision_id)
264
+ # get_revision - Get information about a particular schema revision for an Api.
233
265
  # Returns information about the last uploaded schema for a particular schema revision.
234
266
  # This won't include the schema itself, that can be retrieved via the downloadSchema operation.
267
+ request = ::OpenApiSDK::Operations::GetSchemaRevisionRequest.new(
268
+
269
+ api_id: api_id,
270
+ version_id: version_id,
271
+ revision_id: revision_id
272
+ )
235
273
  url, params = @sdk_configuration.get_server_details
236
274
  base_url = Utils.template_url(url, params)
237
275
  url = Utils.generate_url(
238
- ::SpeakeasyClientSDK::Operations::GetSchemaRevisionRequest,
276
+ ::OpenApiSDK::Operations::GetSchemaRevisionRequest,
239
277
  base_url,
240
278
  '/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}',
241
279
  request,
@@ -252,18 +290,17 @@ module SpeakeasyClientSDK
252
290
 
253
291
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
254
292
 
255
- res = ::SpeakeasyClientSDK::Operations::GetSchemaRevisionResponse.new(
293
+ res = ::OpenApiSDK::Operations::GetSchemaRevisionResponse.new(
256
294
  status_code: r.status, content_type: content_type, raw_response: r
257
295
  )
258
- if r.status == 200
296
+ if r.status >= 200 && r.status < 300
259
297
  if Utils.match_content_type(content_type, 'application/json')
260
- out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Schema)
298
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Schema)
261
299
  res.schema = out
262
300
  end
263
- else
264
-
301
+ elsif r.status >= 400 && r.status < 500
265
302
  if Utils.match_content_type(content_type, 'application/json')
266
- out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
303
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
267
304
  res.error = out
268
305
  end
269
306
  end
@@ -271,22 +308,26 @@ module SpeakeasyClientSDK
271
308
  end
272
309
 
273
310
 
274
- sig { params(request: T.nilable(::SpeakeasyClientSDK::Operations::GetSchemasRequest)).returns(::SpeakeasyClientSDK::Operations::GetSchemasResponse) }
275
- def get_schemas(request)
276
- # get_schemas - Get information about all schemas associated with a particular apiID.
277
- # Returns information the schemas associated with a particular apiID.
278
- # This won't include the schemas themselves, they can be retrieved via the downloadSchema operation.
311
+ sig { params(api_id: ::String, version_id: ::String, revision_id: ::String).returns(::OpenApiSDK::Operations::DownloadSchemaRevisionResponse) }
312
+ def download_revision(api_id, version_id, revision_id)
313
+ # download_revision - Download a particular schema revision for an Api.
314
+ request = ::OpenApiSDK::Operations::DownloadSchemaRevisionRequest.new(
315
+
316
+ api_id: api_id,
317
+ version_id: version_id,
318
+ revision_id: revision_id
319
+ )
279
320
  url, params = @sdk_configuration.get_server_details
280
321
  base_url = Utils.template_url(url, params)
281
322
  url = Utils.generate_url(
282
- ::SpeakeasyClientSDK::Operations::GetSchemasRequest,
323
+ ::OpenApiSDK::Operations::DownloadSchemaRevisionRequest,
283
324
  base_url,
284
- '/v1/apis/{apiID}/version/{versionID}/schemas',
325
+ '/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}/download',
285
326
  request,
286
327
  @sdk_configuration.globals
287
328
  )
288
329
  headers = {}
289
- headers['Accept'] = 'application/json'
330
+ headers['Accept'] = 'application/json;q=1, application/x-yaml;q=0'
290
331
  headers['user-agent'] = @sdk_configuration.user_agent
291
332
 
292
333
  r = @sdk_configuration.client.get(url) do |req|
@@ -296,18 +337,17 @@ module SpeakeasyClientSDK
296
337
 
297
338
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
298
339
 
299
- res = ::SpeakeasyClientSDK::Operations::GetSchemasResponse.new(
340
+ res = ::OpenApiSDK::Operations::DownloadSchemaRevisionResponse.new(
300
341
  status_code: r.status, content_type: content_type, raw_response: r
301
342
  )
302
- if r.status == 200
303
- if Utils.match_content_type(content_type, 'application/json')
304
- out = Utils.unmarshal_complex(r.env.response_body, T::Array[::SpeakeasyClientSDK::Shared::Schema])
305
- res.classes = out
306
- end
307
- else
308
-
343
+ if r.status >= 200 && r.status < 300
344
+ res.two_xx_application_json_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/json')
345
+
346
+ res.two_xx_application_x_yaml_schema = r.env.response_body if Utils.match_content_type(content_type, 'application/x-yaml')
347
+
348
+ elsif r.status >= 400 && r.status < 500
309
349
  if Utils.match_content_type(content_type, 'application/json')
310
- out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
350
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
311
351
  res.error = out
312
352
  end
313
353
  end
@@ -315,49 +355,47 @@ module SpeakeasyClientSDK
315
355
  end
316
356
 
317
357
 
318
- sig { params(request: ::SpeakeasyClientSDK::Operations::RegisterSchemaRequest).returns(::SpeakeasyClientSDK::Operations::RegisterSchemaResponse) }
319
- def register_schema(request)
320
- # register_schema - Register a schema.
321
- # Allows uploading a schema for a particular API version.
322
- # This will be used to populate ApiEndpoints and used as a base for any schema generation if present.
358
+ sig { params(api_id: ::String, version_id: ::String).returns(::OpenApiSDK::Operations::GetSchemasResponse) }
359
+ def get(api_id, version_id)
360
+ # get - Get information about all schemas associated with a particular apiID.
361
+ # Returns information the schemas associated with a particular apiID.
362
+ # This won't include the schemas themselves, they can be retrieved via the downloadSchema operation.
363
+ request = ::OpenApiSDK::Operations::GetSchemasRequest.new(
364
+
365
+ api_id: api_id,
366
+ version_id: version_id
367
+ )
323
368
  url, params = @sdk_configuration.get_server_details
324
369
  base_url = Utils.template_url(url, params)
325
370
  url = Utils.generate_url(
326
- ::SpeakeasyClientSDK::Operations::RegisterSchemaRequest,
371
+ ::OpenApiSDK::Operations::GetSchemasRequest,
327
372
  base_url,
328
- '/v1/apis/{apiID}/version/{versionID}/schema',
373
+ '/v1/apis/{apiID}/version/{versionID}/schemas',
329
374
  request,
330
375
  @sdk_configuration.globals
331
376
  )
332
377
  headers = {}
333
- req_content_type, data, form = Utils.serialize_request_body(request, :request_body, :multipart)
334
- headers['content-type'] = req_content_type
335
- raise StandardError, 'request body is required' if data.nil? && form.nil?
336
378
  headers['Accept'] = 'application/json'
337
379
  headers['user-agent'] = @sdk_configuration.user_agent
338
380
 
339
- r = @sdk_configuration.client.post(url) do |req|
381
+ r = @sdk_configuration.client.get(url) do |req|
340
382
  req.headers = headers
341
383
  Utils.configure_request_security(req, @sdk_configuration.security) if !@sdk_configuration.nil? && !@sdk_configuration.security.nil?
342
- if form
343
- req.body = Utils.encode_form(form)
344
- elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded')
345
- req.body = URI.encode_www_form(data)
346
- else
347
- req.body = data
348
- end
349
384
  end
350
385
 
351
386
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
352
387
 
353
- res = ::SpeakeasyClientSDK::Operations::RegisterSchemaResponse.new(
388
+ res = ::OpenApiSDK::Operations::GetSchemasResponse.new(
354
389
  status_code: r.status, content_type: content_type, raw_response: r
355
390
  )
356
- if r.status == 200
357
- else
358
-
391
+ if r.status >= 200 && r.status < 300
392
+ if Utils.match_content_type(content_type, 'application/json')
393
+ out = Utils.unmarshal_complex(r.env.response_body, T::Array[::OpenApiSDK::Shared::Schema])
394
+ res.schemata = out
395
+ end
396
+ elsif r.status >= 400 && r.status < 500
359
397
  if Utils.match_content_type(content_type, 'application/json')
360
- out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::Error)
398
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::Error)
361
399
  res.error = out
362
400
  end
363
401
  end
@@ -7,7 +7,7 @@ require 'faraday'
7
7
  require 'faraday/multipart'
8
8
  require 'sorbet-runtime'
9
9
 
10
- module SpeakeasyClientSDK
10
+ module OpenApiSDK
11
11
  extend T::Sig
12
12
 
13
13
  SERVER_PROD = :prod
@@ -16,11 +16,11 @@ module SpeakeasyClientSDK
16
16
  }.freeze
17
17
  # Contains the list of servers available to the SDK
18
18
 
19
- class SDKConfiguration < ::SpeakeasyClientSDK::Utils::FieldAugmented
19
+ class SDKConfiguration < ::OpenApiSDK::Utils::FieldAugmented
20
20
  extend T::Sig
21
21
 
22
22
  field :client, T.nilable(Faraday::Connection)
23
- field :security, T.nilable(::SpeakeasyClientSDK::Shared::Security)
23
+ field :security, T.nilable(::OpenApiSDK::Shared::Security)
24
24
  field :server_url, T.nilable(String)
25
25
  field :server, Symbol
26
26
  field :globals, Hash[Symbol, Hash[Symbol, Hash[Symbol, Object]]]
@@ -31,7 +31,7 @@ module SpeakeasyClientSDK
31
31
  field :user_agent, String
32
32
 
33
33
 
34
- sig { params(client: Faraday::Connection, security: T.nilable(::SpeakeasyClientSDK::Shared::Security), server_url: T.nilable(String), server: T.nilable(Symbol), globals: T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]]).void }
34
+ sig { params(client: Faraday::Connection, security: T.nilable(::OpenApiSDK::Shared::Security), server_url: T.nilable(String), server: T.nilable(Symbol), globals: T::Hash[Symbol, T::Hash[Symbol, T::Hash[Symbol, Object]]]).void }
35
35
  def initialize(client, security, server_url, server, globals)
36
36
  @client = client
37
37
  @server_url = server_url
@@ -41,9 +41,9 @@ module SpeakeasyClientSDK
41
41
  @globals = globals.nil? ? {} : globals
42
42
  @language = 'ruby'
43
43
  @openapi_doc_version = '0.4.0 .'
44
- @sdk_version = '4.2.22'
45
- @gen_version = '2.415.8'
46
- @user_agent = 'speakeasy-sdk/ruby 4.2.22 2.415.8 0.4.0 . speakeasy_client_sdk_ruby'
44
+ @sdk_version = '4.2.24'
45
+ @gen_version = '2.429.0'
46
+ @user_agent = 'speakeasy-sdk/ruby 4.2.24 2.429.0 0.4.0 . speakeasy_client_sdk_ruby'
47
47
  end
48
48
 
49
49
  sig { returns([String, T::Hash[Symbol, String]]) }
@@ -7,7 +7,7 @@ require 'faraday'
7
7
  require 'faraday/multipart'
8
8
  require 'sorbet-runtime'
9
9
 
10
- module SpeakeasyClientSDK
10
+ module OpenApiSDK
11
11
  extend T::Sig
12
12
  class ShortURLs
13
13
  extend T::Sig
@@ -19,7 +19,7 @@ module SpeakeasyClientSDK
19
19
  end
20
20
 
21
21
 
22
- sig { params(request: ::SpeakeasyClientSDK::Operations::CreateRequestBody).returns(::SpeakeasyClientSDK::Operations::CreateResponse) }
22
+ sig { params(request: ::OpenApiSDK::Operations::CreateRequestBody).returns(::OpenApiSDK::Operations::CreateResponse) }
23
23
  def create(request)
24
24
  # create - Shorten a URL.
25
25
  url, params = @sdk_configuration.get_server_details
@@ -46,12 +46,12 @@ module SpeakeasyClientSDK
46
46
 
47
47
  content_type = r.headers.fetch('Content-Type', 'application/octet-stream')
48
48
 
49
- res = ::SpeakeasyClientSDK::Operations::CreateResponse.new(
49
+ res = ::OpenApiSDK::Operations::CreateResponse.new(
50
50
  status_code: r.status, content_type: content_type, raw_response: r
51
51
  )
52
- if r.status == 200
52
+ if r.status >= 200 && r.status < 300
53
53
  if Utils.match_content_type(content_type, 'application/json')
54
- out = Utils.unmarshal_complex(r.env.response_body, ::SpeakeasyClientSDK::Shared::ShortURL)
54
+ out = Utils.unmarshal_complex(r.env.response_body, ::OpenApiSDK::Shared::ShortURL)
55
55
  res.short_url = out
56
56
  end
57
57
  end
@@ -7,13 +7,13 @@ require 'faraday'
7
7
  require 'faraday/multipart'
8
8
  require 'sorbet-runtime'
9
9
 
10
- module SpeakeasyClientSDK
10
+ module OpenApiSDK
11
11
  extend T::Sig
12
12
 
13
- class SDK
13
+ class SpeakeasyClientSDK
14
14
  extend T::Sig
15
15
 
16
- attr_accessor :apis, :api_endpoints, :metadata, :schemas, :artifacts, :auth, :requests, :github, :organizations, :reports, :short_ur_ls, :suggest, :embeds, :workspaces, :events
16
+ attr_accessor :apis, :apiendpoints, :speakeasy_client_sdk_api_endpoints, :metadata, :schemas, :auth, :requests, :github, :organizations, :embeds, :workspaces, :events, :artifacts, :reports, :suggest, :short_ur_ls
17
17
 
18
18
  sig do
19
19
  params(client: Faraday::Request,
@@ -82,7 +82,7 @@ module SpeakeasyClientSDK
82
82
  init_sdks
83
83
  end
84
84
 
85
- sig { params(security: ::SpeakeasyClientSDK::Shared::Security).void }
85
+ sig { params(security: ::OpenApiSDK::Shared::Security).void }
86
86
  def config_security(security)
87
87
  @sdk_configuration.security = security
88
88
  end
@@ -90,20 +90,21 @@ module SpeakeasyClientSDK
90
90
  sig { void }
91
91
  def init_sdks
92
92
  @apis = Apis.new(@sdk_configuration)
93
- @api_endpoints = ApiEndpoints.new(@sdk_configuration)
93
+ @apiendpoints = Apiendpoints.new(@sdk_configuration)
94
+ @api_endpoints = SpeakeasyClientSDKApiEndpoints.new(@sdk_configuration)
94
95
  @metadata = Metadata.new(@sdk_configuration)
95
96
  @schemas = Schemas.new(@sdk_configuration)
96
- @artifacts = Artifacts.new(@sdk_configuration)
97
97
  @auth = Auth.new(@sdk_configuration)
98
98
  @requests = Requests.new(@sdk_configuration)
99
99
  @github = Github.new(@sdk_configuration)
100
100
  @organizations = Organizations.new(@sdk_configuration)
101
- @reports = Reports.new(@sdk_configuration)
102
- @short_ur_ls = ShortURLs.new(@sdk_configuration)
103
- @suggest = Suggest.new(@sdk_configuration)
104
101
  @embeds = Embeds.new(@sdk_configuration)
105
102
  @workspaces = Workspaces.new(@sdk_configuration)
106
103
  @events = Events.new(@sdk_configuration)
104
+ @artifacts = Artifacts.new(@sdk_configuration)
105
+ @reports = Reports.new(@sdk_configuration)
106
+ @suggest = Suggest.new(@sdk_configuration)
107
+ @short_ur_ls = ShortURLs.new(@sdk_configuration)
107
108
  end
108
109
  end
109
110
  end