Skip to content

Commit 2ae7d09

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.441.0
1 parent 644c15f commit 2ae7d09

File tree

136 files changed

+2499
-305
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+2499
-305
lines changed

.speakeasy/gen.lock

+135-12
Large diffs are not rendered by default.

.speakeasy/gen.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ generation:
1111
requestResponseComponentNamesFeb2024: true
1212
auth:
1313
oAuth2ClientCredentialsEnabled: true
14+
oAuth2PasswordEnabled: false
1415
ruby:
15-
version: 4.2.24
16+
version: 4.3.0
1617
author: Speakeasy
1718
description: Ruby Client SDK Generated by Speakeasy
1819
imports:

.speakeasy/workflow.lock

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.405.8
1+
speakeasyVersion: 1.441.0
22
sources: {}
33
targets:
44
speakeasy-client-sdk:
@@ -21,3 +21,7 @@ workflow:
2121
publish:
2222
rubygems:
2323
token: $rubygems_auth_token
24+
codeSamples:
25+
registry:
26+
location: registry.speakeasyapi.dev/speakeasy-self/speakeasy-self/-oas-code-samples
27+
blocking: false

.speakeasy/workflow.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,7 @@ targets:
1515
publish:
1616
rubygems:
1717
token: $rubygems_auth_token
18+
codeSamples:
19+
registry:
20+
location: registry.speakeasyapi.dev/speakeasy-self/speakeasy-self/-oas-code-samples
21+
blocking: false

README.md

+141-31
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Developer-friendly & type-safe Ruby SDK specifically catered to leverage *speake
1717
<!-- Start Summary [summary] -->
1818
## Summary
1919

20-
Speakeasy API: The Speakeasy API allows teams to manage common operations with their APIs
20+
Speakeasy API: The Subscriptions API manages subscriptions for CLI and registry events
2121

2222
For more information about the API: [The Speakeasy Platform Documentation](/docs)
2323
<!-- End Summary [summary] -->
@@ -28,6 +28,7 @@ For more information about the API: [The Speakeasy Platform Documentation](/docs
2828
* [SDK Installation](#sdk-installation)
2929
* [SDK Example Usage](#sdk-example-usage)
3030
* [Available Resources and Operations](#available-resources-and-operations)
31+
* [Global Parameters](#global-parameters)
3132
* [Server Selection](#server-selection)
3233
<!-- End Table of Contents [toc] -->
3334

@@ -79,11 +80,21 @@ end
7980
<details open>
8081
<summary>Available methods</summary>
8182

82-
### [Apiendpoints](docs/sdks/apiendpoints/README.md)
83+
### [api_endpoints](docs/sdks/speakeasyclientsdkapiendpoints/README.md)
84+
85+
* [get_all](docs/sdks/speakeasyclientsdkapiendpoints/README.md#get_all) - Get all ApiEndpoints for a particular apiID and versionID.
86+
* [find](docs/sdks/speakeasyclientsdkapiendpoints/README.md#find) - Find an ApiEndpoint via its displayName.
87+
* [delete](docs/sdks/speakeasyclientsdkapiendpoints/README.md#delete) - Delete an ApiEndpoint.
88+
* [get](docs/sdks/speakeasyclientsdkapiendpoints/README.md#get) - Get an ApiEndpoint.
89+
* [upsert](docs/sdks/speakeasyclientsdkapiendpoints/README.md#upsert) - Upsert an ApiEndpoint.
90+
* [generate_open_api_spec](docs/sdks/speakeasyclientsdkapiendpoints/README.md#generate_open_api_spec) - Generate an OpenAPI specification for a particular ApiEndpoint.
91+
* [generate_postman_collection](docs/sdks/speakeasyclientsdkapiendpoints/README.md#generate_postman_collection) - Generate a Postman collection for a particular ApiEndpoint.
92+
93+
### [apiendpoints](docs/sdks/apiendpoints/README.md)
8394

8495
* [list](docs/sdks/apiendpoints/README.md#list) - Get all Api endpoints for a particular apiID.
8596

86-
### [Apis](docs/sdks/apis/README.md)
97+
### [apis](docs/sdks/apis/README.md)
8798

8899
* [get_all](docs/sdks/apis/README.md#get_all) - Get a list of Apis for a given workspace
89100
* [get_all_versions](docs/sdks/apis/README.md#get_all_versions) - Get all Api versions for a particular ApiEndpoint.
@@ -92,40 +103,43 @@ end
92103
* [generate_open_api](docs/sdks/apis/README.md#generate_open_api) - Generate an OpenAPI specification for a particular Api.
93104
* [generate_postman](docs/sdks/apis/README.md#generate_postman) - Generate a Postman collection for a particular Api.
94105

95-
### [Artifacts](docs/sdks/artifacts/README.md)
106+
### [artifacts](docs/sdks/artifacts/README.md)
96107

97108
* [preflight](docs/sdks/artifacts/README.md#preflight) - Get access token for communicating with OCI distribution endpoints
98109
* [get_namespaces](docs/sdks/artifacts/README.md#get_namespaces) - Each namespace contains many revisions.
99110
* [get_revisions](docs/sdks/artifacts/README.md#get_revisions)
100111
* [get_tags](docs/sdks/artifacts/README.md#get_tags)
101112
* [post_tags](docs/sdks/artifacts/README.md#post_tags) - Add tags to an existing revision
113+
* [list_remote_sources](docs/sdks/artifacts/README.md#list_remote_sources) - Get remote sources attached to a particular namespace
114+
* [create_remote_source](docs/sdks/artifacts/README.md#create_remote_source) - Configure a new remote source
102115
* [get_manifest](docs/sdks/artifacts/README.md#get_manifest) - Get manifest for a particular reference
103116
* [get_blob](docs/sdks/artifacts/README.md#get_blob) - Get blob for a particular digest
104117

105-
### [Auth](docs/sdks/auth/README.md)
118+
### [auth](docs/sdks/auth/README.md)
106119

107120
* [validate_api_key](docs/sdks/auth/README.md#validate_api_key) - Validate the current api key.
108121
* [get_user](docs/sdks/auth/README.md#get_user) - Get information about the current user.
109122
* [get_access_token](docs/sdks/auth/README.md#get_access_token) - Get or refresh an access token for the current workspace.
110123
* [get_allowances](docs/sdks/auth/README.md#get_allowances) - Get access allowances for a particular workspace
111124

112-
### [Embeds](docs/sdks/embeds/README.md)
125+
### [embeds](docs/sdks/embeds/README.md)
113126

114127
* [get_access_token](docs/sdks/embeds/README.md#get_access_token) - Get an embed access token for the current workspace.
115128
* [get_valid](docs/sdks/embeds/README.md#get_valid) - Get all valid embed access tokens for the current workspace.
116129
* [delete](docs/sdks/embeds/README.md#delete) - Revoke an embed access EmbedToken.
117130

118-
### [Events](docs/sdks/events/README.md)
131+
### [events](docs/sdks/events/README.md)
119132

120133
* [search](docs/sdks/events/README.md#search) - Search events for a particular workspace by any field
121134
* [post](docs/sdks/events/README.md#post) - Post events for a specific workspace
122135
* [get_by_target](docs/sdks/events/README.md#get_by_target) - Load recent events for a particular workspace
123136
* [get_targets](docs/sdks/events/README.md#get_targets) - Load targets for a particular workspace
124137
* [get_targets_deprecated](docs/sdks/events/README.md#get_targets_deprecated) - Load targets for a particular workspace
125138

126-
### [Github](docs/sdks/github/README.md)
139+
### [github](docs/sdks/github/README.md)
127140

128141
* [check_access](docs/sdks/github/README.md#check_access)
142+
* [link_github](docs/sdks/github/README.md#link_github)
129143
* [check_publishing_p_rs](docs/sdks/github/README.md#check_publishing_p_rs)
130144
* [check_publishing_secrets](docs/sdks/github/README.md#check_publishing_secrets)
131145
* [store_publishing_secrets](docs/sdks/github/README.md#store_publishing_secrets)
@@ -135,33 +149,33 @@ end
135149
* [trigger_action](docs/sdks/github/README.md#trigger_action)
136150
* [get_action](docs/sdks/github/README.md#get_action)
137151

138-
### [Metadata](docs/sdks/metadata/README.md)
152+
### [metadata](docs/sdks/metadata/README.md)
139153

140154
* [get](docs/sdks/metadata/README.md#get) - Get all metadata for a particular apiID and versionID.
141155
* [insert_version](docs/sdks/metadata/README.md#insert_version) - Insert metadata for a particular apiID and versionID.
142156
* [delete_version](docs/sdks/metadata/README.md#delete_version) - Delete metadata for a particular apiID and versionID.
143157

144-
### [Organizations](docs/sdks/organizations/README.md)
158+
### [organizations](docs/sdks/organizations/README.md)
145159

146160
* [get_all](docs/sdks/organizations/README.md#get_all) - Get organizations for a user
147161
* [create](docs/sdks/organizations/README.md#create) - Create an organization
148162
* [get](docs/sdks/organizations/README.md#get) - Get organization
149163
* [create_free_trial](docs/sdks/organizations/README.md#create_free_trial) - Create a free trial for an organization
150164
* [get_usage](docs/sdks/organizations/README.md#get_usage) - Get billing usage summary for a particular organization
151165

152-
### [Reports](docs/sdks/reports/README.md)
166+
### [reports](docs/sdks/reports/README.md)
153167

154168
* [upload](docs/sdks/reports/README.md#upload) - Upload a report.
155169
* [get_signed_url](docs/sdks/reports/README.md#get_signed_url) - Get the signed access url for the linting reports for a particular document.
156170
* [get_changes_signed_url](docs/sdks/reports/README.md#get_changes_signed_url) - Get the signed access url for the change reports for a particular document.
157171

158-
### [Requests](docs/sdks/requests/README.md)
172+
### [requests](docs/sdks/requests/README.md)
159173

160174
* [query](docs/sdks/requests/README.md#query) - Query the event log to retrieve a list of requests.
161175
* [get](docs/sdks/requests/README.md#get) - Get information about a particular request.
162176
* [generate_postman_collection](docs/sdks/requests/README.md#generate_postman_collection) - Generate a Postman collection for a particular request.
163177

164-
### [Schemas](docs/sdks/schemas/README.md)
178+
### [schemas](docs/sdks/schemas/README.md)
165179

166180
* [get_latest](docs/sdks/schemas/README.md#get_latest) - Get information about the latest schema.
167181
* [post](docs/sdks/schemas/README.md#post) - Register a schema.
@@ -172,28 +186,29 @@ end
172186
* [download_revision](docs/sdks/schemas/README.md#download_revision) - Download a particular schema revision for an Api.
173187
* [get](docs/sdks/schemas/README.md#get) - Get information about all schemas associated with a particular apiID.
174188

175-
### [ShortURLs](docs/sdks/shorturls/README.md)
189+
### [short_ur_ls](docs/sdks/shorturls/README.md)
176190

177191
* [create](docs/sdks/shorturls/README.md#create) - Shorten a URL.
178192

193+
### [SpeakeasyClientSDK](docs/sdks/speakeasyclientsdk/README.md)
179194

180-
### [SpeakeasyClientSDKApiEndpoints](docs/sdks/speakeasyclientsdkapiendpoints/README.md)
195+
* [generate_code_sample_preview](docs/sdks/speakeasyclientsdk/README.md#generate_code_sample_preview) - Generate Code Sample previews from a file and configuration parameters.
196+
* [generate_code_sample_preview_async](docs/sdks/speakeasyclientsdk/README.md#generate_code_sample_preview_async) - Initiate asynchronous Code Sample preview generation from a file and configuration parameters, receiving an async JobID response for polling.
197+
* [get_code_sample_preview_async](docs/sdks/speakeasyclientsdk/README.md#get_code_sample_preview_async) - Poll for the result of an asynchronous Code Sample preview generation.
181198

182-
* [get_all](docs/sdks/speakeasyclientsdkapiendpoints/README.md#get_all) - Get all ApiEndpoints for a particular apiID and versionID.
183-
* [find](docs/sdks/speakeasyclientsdkapiendpoints/README.md#find) - Find an ApiEndpoint via its displayName.
184-
* [delete](docs/sdks/speakeasyclientsdkapiendpoints/README.md#delete) - Delete an ApiEndpoint.
185-
* [get](docs/sdks/speakeasyclientsdkapiendpoints/README.md#get) - Get an ApiEndpoint.
186-
* [upsert](docs/sdks/speakeasyclientsdkapiendpoints/README.md#upsert) - Upsert an ApiEndpoint.
187-
* [generate_open_api_spec](docs/sdks/speakeasyclientsdkapiendpoints/README.md#generate_open_api_spec) - Generate an OpenAPI specification for a particular ApiEndpoint.
188-
* [generate_postman_collection](docs/sdks/speakeasyclientsdkapiendpoints/README.md#generate_postman_collection) - Generate a Postman collection for a particular ApiEndpoint.
199+
### [subscriptions](docs/sdks/subscriptions/README.md)
189200

190-
### [Suggest](docs/sdks/suggest/README.md)
201+
* [list_registry_subscriptions](docs/sdks/subscriptions/README.md#list_registry_subscriptions) - List Subscriptions
202+
* [create_subscription](docs/sdks/subscriptions/README.md#create_subscription) - Create Subscription
203+
204+
### [suggest](docs/sdks/suggest/README.md)
191205

192206
* [openapi](docs/sdks/suggest/README.md#openapi) - (DEPRECATED) Generate suggestions for improving an OpenAPI document.
193207
* [generate](docs/sdks/suggest/README.md#generate) - Generate suggestions for improving an OpenAPI document.
208+
* [suggest_items](docs/sdks/suggest/README.md#suggest_items) - Generate generic suggestions for a list of items.
194209
* [openapi_registry](docs/sdks/suggest/README.md#openapi_registry) - Generate suggestions for improving an OpenAPI document stored in the registry.
195210

196-
### [Workspaces](docs/sdks/workspaces/README.md)
211+
### [workspaces](docs/sdks/workspaces/README.md)
197212

198213
* [get_all](docs/sdks/workspaces/README.md#get_all) - Get workspaces for a user
199214
* [get](docs/sdks/workspaces/README.md#get) - Get workspace by context
@@ -213,24 +228,119 @@ end
213228
</details>
214229
<!-- End Available Resources and Operations [operations] -->
215230

216-
<!-- Start Server Selection [server] -->
217-
## Server Selection
231+
<!-- Start Global Parameters [global-parameters] -->
232+
## Global Parameters
233+
234+
A parameter is configured globally. This parameter may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed.
235+
236+
For example, you can set `workspace_id` to `"<id>"` at SDK initialization and then you do not have to pass the same value on calls to operations like `get_access_token`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
218237

238+
239+
### Available Globals
240+
241+
The following global parameter is available.
242+
243+
| Name | Type | Description |
244+
| ------------ | -------- | --------------------------- |
245+
| workspace_id | ::String | The workspace_id parameter. |
246+
247+
### Example
248+
249+
```ruby
250+
require 'speakeasy_client_sdk_ruby'
251+
252+
253+
s = ::OpenApiSDK::SpeakeasyClientSDK.new
254+
255+
256+
res = s.auth.get_access_token(workspace_id="<id>")
257+
258+
if ! res.access_token.nil?
259+
# handle response
260+
end
261+
262+
```
263+
<!-- End Global Parameters [global-parameters] -->
264+
265+
<!-- Start Server Selection [server] -->
219266
## Server Selection
220267

221268
### Select Server by Name
222269

223-
You can override the default server globally by passing a server name to the `server: str` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:
270+
You can override the default server globally by passing a server name to the `server (Symbol)` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:
224271

225-
| Name | Server | Variables |
226-
| ----- | ------ | --------- |
227-
| `prod` | `https://api.prod.speakeasyapi.dev` | None |
272+
| Name | Server |
273+
| ------ | ----------------------------------- |
274+
| `prod` | `https://api.prod.speakeasyapi.dev` |
228275

276+
#### Example
229277

278+
```ruby
279+
require 'speakeasy_client_sdk_ruby'
280+
281+
282+
s = ::OpenApiSDK::SpeakeasyClientSDK.new(
283+
server: "prod",
284+
)
285+
s.config_security(
286+
::OpenApiSDK::Shared::Security.new(
287+
api_key: "<YOUR_API_KEY_HERE>",
288+
)
289+
)
290+
291+
292+
req = ::OpenApiSDK::Shared::CodeSampleSchemaInput.new(
293+
languages: [
294+
"<value>",
295+
],
296+
schema_file: ::OpenApiSDK::Shared::SchemaFile.new(
297+
file_name: "example.file",
298+
content: "0xc3dD8BfBef".encode(),
299+
),
300+
)
301+
302+
res = s.generate_code_sample_preview(req)
303+
304+
if ! res.two_hundred_application_x_yaml_bytes.nil?
305+
# handle response
306+
end
307+
308+
```
230309

231310
### Override Server URL Per-Client
232311

233-
The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
312+
The default server can also be overridden globally by passing a URL to the `server_url (String)` optional parameter when initializing the SDK client instance. For example:
313+
```ruby
314+
require 'speakeasy_client_sdk_ruby'
315+
316+
317+
s = ::OpenApiSDK::SpeakeasyClientSDK.new(
318+
server_url: "https://api.prod.speakeasyapi.dev",
319+
)
320+
s.config_security(
321+
::OpenApiSDK::Shared::Security.new(
322+
api_key: "<YOUR_API_KEY_HERE>",
323+
)
324+
)
325+
326+
327+
req = ::OpenApiSDK::Shared::CodeSampleSchemaInput.new(
328+
languages: [
329+
"<value>",
330+
],
331+
schema_file: ::OpenApiSDK::Shared::SchemaFile.new(
332+
file_name: "example.file",
333+
content: "0xc3dD8BfBef".encode(),
334+
),
335+
)
336+
337+
res = s.generate_code_sample_preview(req)
338+
339+
if ! res.two_hundred_application_x_yaml_bytes.nil?
340+
# handle response
341+
end
342+
343+
```
234344
<!-- End Server Selection [server] -->
235345

236346
<!-- Placeholder for Future Speakeasy SDK Sections -->

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,14 @@ Based on:
3434
### Generated
3535
- [ruby v4.2.24] .
3636
### Releases
37-
- [Ruby Gems v4.2.24] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.2.24 - .
37+
- [Ruby Gems v4.2.24] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.2.24 - .
38+
39+
## 2024-11-20 00:12:52
40+
### Changes
41+
Based on:
42+
- OpenAPI Doc
43+
- Speakeasy CLI 1.441.0 (2.460.1) https://github.com/speakeasy-api/speakeasy
44+
### Generated
45+
- [ruby v4.3.0] .
46+
### Releases
47+
- [Ruby Gems v4.3.0] https://rubygems.org/gems/speakeasy_client_sdk_ruby/versions/4.3.0 - .
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# CreateRemoteSourceResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
8+
| `content_type` | *::String* | :heavy_check_mark: | HTTP response content type for this operation |
9+
| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation |
10+
| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11+
| `error` | [T.nilable(::OpenApiSDK::Shared::Error)](../../models/shared/error.md) | :heavy_minus_sign: | Default error response |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# CreateSubscriptionRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
8+
| `registry_subscription` | [::OpenApiSDK::Shared::RegistrySubscription](../../models/shared/registrysubscription.md) | :heavy_check_mark: | The subscription to create |
9+
| `workspace_id` | *T.nilable(::String)* | :heavy_minus_sign: | The workspace ID |

0 commit comments

Comments
 (0)