Skip to content

Commit 884c14e

Browse files
committed
ci: regenerated with OpenAPI Doc 0.4.0, Speakeasy CLI 1.193.4
1 parent e169ff0 commit 884c14e

25 files changed

+415
-62
lines changed

.speakeasy/gen.lock

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
lockVersion: 2.0.0
22
id: b0b519b1-d1d3-43b2-82dd-b4292eadd4b0
33
management:
4-
docChecksum: 10893fff3e9a4e77b8628de48190cd77
4+
docChecksum: 1e1fbb7b85b19b149be8f6b8a6916f76
55
docVersion: 0.4.0
66
speakeasyVersion: internal
7-
generationVersion: 2.269.0
8-
releaseVersion: 5.2.5
9-
configChecksum: 5fd79df4352833b4f341c2b7935cdca0
7+
generationVersion: 2.272.4
8+
releaseVersion: 5.2.6
9+
configChecksum: 2dc1bbd1d3acd05910347da339cd3b92
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-python.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-python.git
1313
published: true
1414
features:
1515
python:
16-
core: 4.4.6
16+
core: 4.4.7
1717
downloadStreams: 0.0.2
1818
examples: 2.81.3
19-
globalSecurity: 2.83.2
19+
globalSecurity: 2.83.3
2020
globalServerURLs: 2.82.1
2121
globals: 2.81.1
2222
inputOutputModels: 2.83.1
@@ -74,6 +74,8 @@ generatedFiles:
7474
- src/speakeasy/models/operations/getembedaccesstoken.py
7575
- src/speakeasy/models/operations/getvalidembedaccesstokens.py
7676
- src/speakeasy/models/operations/revokeembedaccesstoken.py
77+
- src/speakeasy/models/operations/getworkspaceevents.py
78+
- src/speakeasy/models/operations/getworkspacetargets.py
7779
- src/speakeasy/models/operations/postworkspaceevents.py
7880
- src/speakeasy/models/errors/error.py
7981
- src/speakeasy/models/shared/generateopenapispecdiff.py
@@ -95,6 +97,7 @@ generatedFiles:
9597
- src/speakeasy/models/shared/embedaccesstokenresponse.py
9698
- src/speakeasy/models/shared/embedtoken.py
9799
- src/speakeasy/models/shared/clievent.py
100+
- src/speakeasy/models/shared/targetsdk.py
98101
- src/speakeasy/models/shared/security.py
99102
- src/speakeasy/models/__init__.py
100103
- src/speakeasy/models/errors/__init__.py
@@ -168,6 +171,10 @@ generatedFiles:
168171
- docs/models/operations/getvalidembedaccesstokensresponse.md
169172
- docs/models/operations/revokeembedaccesstokenrequest.md
170173
- docs/models/operations/revokeembedaccesstokenresponse.md
174+
- docs/models/operations/getworkspaceeventsrequest.md
175+
- docs/models/operations/getworkspaceeventsresponse.md
176+
- docs/models/operations/getworkspacetargetsrequest.md
177+
- docs/models/operations/getworkspacetargetsresponse.md
171178
- docs/models/operations/postworkspaceeventsrequest.md
172179
- docs/models/operations/postworkspaceeventsresponse.md
173180
- docs/models/errors/error.md
@@ -194,6 +201,7 @@ generatedFiles:
194201
- docs/models/shared/generatebumptype.md
195202
- docs/models/shared/interactiontype.md
196203
- docs/models/shared/clievent.md
204+
- docs/models/shared/targetsdk.md
197205
- docs/models/shared/security.md
198206
- docs/sdks/speakeasy/README.md
199207
- docs/sdks/apis/README.md

README.md

Lines changed: 15 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ if res.apis is not None:
9393

9494
### [events](docs/sdks/events/README.md)
9595

96+
* [get_workspace_events](docs/sdks/events/README.md#get_workspace_events) - Load recent events for a particular workspace
97+
* [get_workspace_targets](docs/sdks/events/README.md#get_workspace_targets) - Load targets for a particular workspace
9698
* [post_workspace_events](docs/sdks/events/README.md#post_workspace_events) - Post events for a specific workspace
9799
<!-- End Available Resources and Operations [operations] -->
98100

@@ -125,19 +127,19 @@ s = speakeasy.Speakeasy(
125127
workspace_id='<value>',
126128
)
127129

128-
req = operations.GetWorkspaceAccessRequest()
130+
req = operations.GetWorkspaceEventsRequest()
129131

130132
res = None
131133
try:
132-
res = s.auth.get_workspace_access(req)
134+
res = s.events.get_workspace_events(req)
133135
except errors.Error as e:
134136
# handle exception
135137
raise(e)
136138
except errors.SDKError as e:
137139
# handle exception
138140
raise(e)
139141

140-
if res.access_details is not None:
142+
if res.cli_event_batch is not None:
141143
# handle response
142144
pass
143145
```
@@ -236,13 +238,14 @@ s = speakeasy.Speakeasy(client: http_client)
236238

237239
### Per-Client Security Schemes
238240

239-
This SDK supports the following security scheme globally:
241+
This SDK supports the following security schemes globally:
240242

241-
| Name | Type | Scheme |
242-
| --------- | --------- | --------- |
243-
| `api_key` | apiKey | API key |
243+
| Name | Type | Scheme |
244+
| ----------- | ----------- | ----------- |
245+
| `api_key` | apiKey | API key |
246+
| `bearer` | http | HTTP Bearer |
244247

245-
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. For example:
248+
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. The selected scheme will be used by default to authenticate with the API for all operations that support it. For example:
246249
```python
247250
import speakeasy
248251
from speakeasy.models import operations, shared
@@ -272,7 +275,7 @@ if res.status_code == 200:
272275

273276
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.
274277

275-
For example, you can set `workspaceID` to `'<value>'` at SDK initialization and then you do not have to pass the same value on calls to operations like `post_workspace_events`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
278+
For example, you can set `workspaceID` to `'<value>'` at SDK initialization and then you do not have to pass the same value on calls to operations like `get_workspace_events`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
276279

277280

278281
### Available Globals
@@ -287,7 +290,6 @@ The following global parameter is available.
287290
### Example
288291

289292
```python
290-
import dateutil.parser
291293
import speakeasy
292294
from speakeasy.models import operations, shared
293295

@@ -298,25 +300,11 @@ s = speakeasy.Speakeasy(
298300
workspace_id='<value>',
299301
)
300302

301-
req = operations.PostWorkspaceEventsRequest(
302-
request_body=[
303-
shared.CliEvent(
304-
created_at=dateutil.parser.isoparse('2024-11-21T06:58:42.120Z'),
305-
execution_id='<value>',
306-
id='<id>',
307-
interaction_type=shared.InteractionType.CLI_EXEC,
308-
local_started_at=dateutil.parser.isoparse('2024-05-07T12:35:47.182Z'),
309-
speakeasy_api_key_name='<value>',
310-
speakeasy_version='<value>',
311-
success=False,
312-
workspace_id='<value>',
313-
),
314-
],
315-
)
303+
req = operations.GetWorkspaceEventsRequest()
316304

317-
res = s.events.post_workspace_events(req)
305+
res = s.events.get_workspace_events(req)
318306

319-
if res.status_code == 200:
307+
if res.cli_event_batch is not None:
320308
# handle response
321309
pass
322310
```

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,4 +1256,14 @@ Based on:
12561256
### Generated
12571257
- [python v5.2.5] .
12581258
### Releases
1259-
- [PyPI v5.2.5] https://pypi.org/project/speakeasy-client-sdk-python/5.2.5 - .
1259+
- [PyPI v5.2.5] https://pypi.org/project/speakeasy-client-sdk-python/5.2.5 - .
1260+
1261+
## 2024-02-25 00:11:15
1262+
### Changes
1263+
Based on:
1264+
- OpenAPI Doc 0.4.0 https://docs.speakeasyapi.dev/openapi.yaml
1265+
- Speakeasy CLI 1.193.4 (2.272.4) https://github.com/speakeasy-api/speakeasy
1266+
### Generated
1267+
- [python v5.2.6] .
1268+
### Releases
1269+
- [PyPI v5.2.6] https://pypi.org/project/speakeasy-client-sdk-python/5.2.6 - .
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# GetWorkspaceEventsRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
8+
| `generate_gen_lock_id` | *Optional[str]* | :heavy_minus_sign: | Filter to only return events corresponding to a particular gen_lock_id |
9+
| `workspace_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier of the workspace. |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# GetWorkspaceEventsResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
8+
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
9+
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
10+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11+
| `cli_event_batch` | List[[shared.CliEvent](../../models/shared/clievent.md)] | :heavy_minus_sign: | Success |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# GetWorkspaceTargetsRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- |
8+
| `workspace_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier of the workspace. |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# GetWorkspaceTargetsResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
8+
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
9+
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
10+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11+
| `target_sdk_list` | List[[shared.TargetSDK](../../models/shared/targetsdk.md)] | :heavy_minus_sign: | Success |

0 commit comments

Comments
 (0)