Skip to content

Commit dc975aa

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.402.12
1 parent b22efa4 commit dc975aa

Some content is hidden

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

41 files changed

+670
-891
lines changed

.speakeasy/gen.lock

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: f73d2126-985b-4d69-88ee-b7c69254d8bf
33
management:
4-
docChecksum: 40626f73138958b2117c67a0ddff344f
4+
docChecksum: d879ec64eec0ec08ccf22092442669ba
55
docVersion: 0.4.0 .
6-
speakeasyVersion: 1.400.0
7-
generationVersion: 2.420.2
8-
releaseVersion: 5.10.0
9-
configChecksum: f3ada6a9f429b9cc251b45306c168a16
6+
speakeasyVersion: 1.402.12
7+
generationVersion: 2.422.15
8+
releaseVersion: 5.10.1
9+
configChecksum: 805ca20657be18496a57561150f226a9
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-csharp.git
1111
repoSubDirectory: .
1212
published: true
@@ -96,8 +96,6 @@ generatedFiles:
9696
- docs/Models/Operations/GetManifestRequest.md
9797
- docs/Models/Operations/GetManifestResponse.md
9898
- docs/Models/Operations/GetNamespacesResponse.md
99-
- docs/Models/Operations/GetOASSummaryRequest.md
100-
- docs/Models/Operations/GetOASSummaryResponse.md
10199
- docs/Models/Operations/GetOrganizationRequest.md
102100
- docs/Models/Operations/GetOrganizationResponse.md
103101
- docs/Models/Operations/GetOrganizationUsageResponse.md
@@ -122,6 +120,7 @@ generatedFiles:
122120
- docs/Models/Operations/GetVersionMetadataResponse.md
123121
- docs/Models/Operations/GetWorkspaceAccessRequest.md
124122
- docs/Models/Operations/GetWorkspaceAccessResponse.md
123+
- docs/Models/Operations/GetWorkspaceByContextResponse.md
125124
- docs/Models/Operations/GetWorkspaceEventsByTargetRequest.md
126125
- docs/Models/Operations/GetWorkspaceEventsByTargetResponse.md
127126
- docs/Models/Operations/GetWorkspaceFeatureFlagsRequest.md
@@ -237,6 +236,7 @@ generatedFiles:
237236
- docs/Models/Shared/VersionMetadata.md
238237
- docs/Models/Shared/WorkflowDocument.md
239238
- docs/Models/Shared/Workspace.md
239+
- docs/Models/Shared/WorkspaceAndOrganization.md
240240
- docs/Models/Shared/WorkspaceFeatureFlagResponse.md
241241
- docs/Models/Shared/Workspaces.md
242242
- docs/sdks/apiendpoints/README.md
@@ -330,8 +330,6 @@ generatedFiles:
330330
- src/SpeakeasySDK/Models/Operations/GetManifestRequest.cs
331331
- src/SpeakeasySDK/Models/Operations/GetManifestResponse.cs
332332
- src/SpeakeasySDK/Models/Operations/GetNamespacesResponse.cs
333-
- src/SpeakeasySDK/Models/Operations/GetOASSummaryRequest.cs
334-
- src/SpeakeasySDK/Models/Operations/GetOASSummaryResponse.cs
335333
- src/SpeakeasySDK/Models/Operations/GetOrganizationRequest.cs
336334
- src/SpeakeasySDK/Models/Operations/GetOrganizationResponse.cs
337335
- src/SpeakeasySDK/Models/Operations/GetOrganizationUsageResponse.cs
@@ -356,6 +354,7 @@ generatedFiles:
356354
- src/SpeakeasySDK/Models/Operations/GetVersionMetadataResponse.cs
357355
- src/SpeakeasySDK/Models/Operations/GetWorkspaceAccessRequest.cs
358356
- src/SpeakeasySDK/Models/Operations/GetWorkspaceAccessResponse.cs
357+
- src/SpeakeasySDK/Models/Operations/GetWorkspaceByContextResponse.cs
359358
- src/SpeakeasySDK/Models/Operations/GetWorkspaceEventsByTargetRequest.cs
360359
- src/SpeakeasySDK/Models/Operations/GetWorkspaceEventsByTargetResponse.cs
361360
- src/SpeakeasySDK/Models/Operations/GetWorkspaceFeatureFlagsRequest.cs
@@ -474,6 +473,7 @@ generatedFiles:
474473
- src/SpeakeasySDK/Models/Shared/VersionMetadataInput.cs
475474
- src/SpeakeasySDK/Models/Shared/WorkflowDocument.cs
476475
- src/SpeakeasySDK/Models/Shared/Workspace.cs
476+
- src/SpeakeasySDK/Models/Shared/WorkspaceAndOrganization.cs
477477
- src/SpeakeasySDK/Models/Shared/WorkspaceFeatureFlagResponse.cs
478478
- src/SpeakeasySDK/Models/Shared/Workspaces.cs
479479
- src/SpeakeasySDK/Organizations.cs
@@ -1153,3 +1153,10 @@ examples:
11531153
application/json: []
11541154
5XX:
11551155
application/json: {"message": "<value>", "status_code": 750032}
1156+
getWorkspaceByContext:
1157+
speakeasy-default-get-workspace-by-context:
1158+
responses:
1159+
"200":
1160+
application/json: {"organization": {"account_type": "scale-up", "id": "<id>", "name": "<value>", "telemetry_disabled": true}, "workspace": {"created_at": "2022-07-12T11:34:21.219Z", "id": "<id>", "name": "<value>", "organization_id": "<value>", "slug": "<value>", "telemetry_disabled": true, "updated_at": "2024-08-05T18:10:01.152Z", "verified": false}}
1161+
default:
1162+
application/json: {"message": "<value>", "status_code": 567858}

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
speakeasyVersion: 1.400.0
1+
speakeasyVersion: 1.402.12
22
sources:
33
speakeasy:
44
sourceNamespace: speakeasy
5-
sourceRevisionDigest: sha256:780f67279a06564bd229dec0bc85843b7304309e58668de26325742aa8c7b921
6-
sourceBlobDigest: sha256:88704527b94e0f552679a1b9305054543883de59097a5102e669d5f049d7929e
5+
sourceRevisionDigest: sha256:8c85473bb9365d963628034bc3853d45602b7d96113d20cf6fc8702dfc69ddac
6+
sourceBlobDigest: sha256:c631a3d49dc602f7258899ba657fffa1c794ebe2c1f3211a3c728186c7577f54
77
tags:
88
- latest
99
- main
1010
targets:
1111
speakeasy-client-sdk-csharp:
1212
source: speakeasy
1313
sourceNamespace: speakeasy
14-
sourceRevisionDigest: sha256:780f67279a06564bd229dec0bc85843b7304309e58668de26325742aa8c7b921
15-
sourceBlobDigest: sha256:88704527b94e0f552679a1b9305054543883de59097a5102e669d5f049d7929e
14+
sourceRevisionDigest: sha256:8c85473bb9365d963628034bc3853d45602b7d96113d20cf6fc8702dfc69ddac
15+
sourceBlobDigest: sha256:c631a3d49dc602f7258899ba657fffa1c794ebe2c1f3211a3c728186c7577f54
1616
codeSamplesNamespace: code-samples-csharp-speakeasy-client-sdk-csharp
17-
codeSamplesRevisionDigest: sha256:f4c81795d8921b1fc5c4ada4b7c29196d1435a034ec4c259d2c889209884384e
17+
codeSamplesRevisionDigest: sha256:9d99c41bf21ce0ca60cf9215366a71ff0908791cfa6871083dfa08c494bc920f
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: latest

NUGET.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ var res = await sdk.Auth.GetWorkspaceAccessAsync(
8989
exponent: 1.1
9090
),
9191
retryConnectionErrors: false
92-
),req);
92+
),
93+
req
94+
);
9395

9496
// handle response
9597
```
@@ -159,11 +161,13 @@ catch (Exception ex)
159161
{
160162
if (ex is Error)
161163
{
162-
// handle exception
164+
// Handle exception data
165+
throw;
163166
}
164-
else if (ex is SpeakeasySDK.Models.Errors.SDKException)
167+
else if (ex is Models.Errors.SDKException)
165168
{
166-
// handle exception
169+
// Handle default exception
170+
throw;
167171
}
168172
}
169173
```
@@ -194,10 +198,11 @@ The default server can also be overridden globally by passing a URL to the `serv
194198

195199
This SDK supports the following security schemes globally:
196200

197-
| Name | Type | Scheme |
198-
| ----------- | ----------- | ----------- |
199-
| `APIKey` | apiKey | API key |
200-
| `Bearer` | http | HTTP Bearer |
201+
| Name | Type | Scheme |
202+
| --------------------- | --------------------- | --------------------- |
203+
| `APIKey` | apiKey | API key |
204+
| `Bearer` | http | HTTP Bearer |
205+
| `WorkspaceIdentifier` | apiKey | API key |
201206

202207
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:
203208
```csharp

README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ var res = await sdk.Apis.GetApisAsync(req);
9393
* [GetBlob](docs/sdks/artifacts/README.md#getblob) - Get blob for a particular digest
9494
* [GetManifest](docs/sdks/artifacts/README.md#getmanifest) - Get manifest for a particular reference
9595
* [GetNamespaces](docs/sdks/artifacts/README.md#getnamespaces) - Each namespace contains many revisions.
96-
* [GetOASSummary](docs/sdks/artifacts/README.md#getoassummary)
9796
* [GetRevisions](docs/sdks/artifacts/README.md#getrevisions)
9897
* [GetTags](docs/sdks/artifacts/README.md#gettags)
9998
* [PostTags](docs/sdks/artifacts/README.md#posttags) - Add tags to an existing revision
@@ -181,6 +180,7 @@ var res = await sdk.Apis.GetApisAsync(req);
181180
### [Workspaces](docs/sdks/workspaces/README.md)
182181

183182
* [GetWorkspace](docs/sdks/workspaces/README.md#getworkspace) - Get workspace
183+
* [GetWorkspaceByContext](docs/sdks/workspaces/README.md#getworkspacebycontext) - Get workspace by context
184184
* [GetWorkspaceFeatureFlags](docs/sdks/workspaces/README.md#getworkspacefeatureflags) - Get workspace feature flags
185185

186186
</details>
@@ -213,10 +213,11 @@ The default server can also be overridden globally by passing a URL to the `serv
213213

214214
This SDK supports the following security schemes globally:
215215

216-
| Name | Type | Scheme |
217-
| ----------- | ----------- | ----------- |
218-
| `APIKey` | apiKey | API key |
219-
| `Bearer` | http | HTTP Bearer |
216+
| Name | Type | Scheme |
217+
| --------------------- | --------------------- | --------------------- |
218+
| `APIKey` | apiKey | API key |
219+
| `Bearer` | http | HTTP Bearer |
220+
| `WorkspaceIdentifier` | apiKey | API key |
220221

221222
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:
222223
```csharp
@@ -312,11 +313,13 @@ catch (Exception ex)
312313
{
313314
if (ex is Error)
314315
{
315-
// handle exception
316+
// Handle exception data
317+
throw;
316318
}
317-
else if (ex is SpeakeasySDK.Models.Errors.SDKException)
319+
else if (ex is Models.Errors.SDKException)
318320
{
319-
// handle exception
321+
// Handle default exception
322+
throw;
320323
}
321324
}
322325
```
@@ -349,7 +352,9 @@ var res = await sdk.Auth.GetWorkspaceAccessAsync(
349352
exponent: 1.1
350353
),
351354
retryConnectionErrors: false
352-
),req);
355+
),
356+
req
357+
);
353358

354359
// handle response
355360
```

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,4 +928,14 @@ Based on:
928928
### Generated
929929
- [csharp v5.10.0] .
930930
### Releases
931-
- [NuGet v5.10.0] https://www.nuget.org/packages/SpeakeasySDK/5.10.0 - .
931+
- [NuGet v5.10.0] https://www.nuget.org/packages/SpeakeasySDK/5.10.0 - .
932+
933+
## 2024-09-25 00:19:53
934+
### Changes
935+
Based on:
936+
- OpenAPI Doc
937+
- Speakeasy CLI 1.402.12 (2.422.15) https://github.com/speakeasy-api/speakeasy
938+
### Generated
939+
- [csharp v5.10.1] .
940+
### Releases
941+
- [NuGet v5.10.1] https://www.nuget.org/packages/SpeakeasySDK/5.10.1 - .

codeSamples.yaml

Lines changed: 31 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ actions:
6464
ApiID = "<value>",
6565
Api = new ApiInput() {
6666
ApiId = "<value>",
67-
Description = "Synchronised 5th generation knowledge user",
67+
Description = "Synchronised leading edge utilisation",
6868
VersionId = "<value>",
6969
},
7070
};
@@ -154,7 +154,7 @@ actions:
154154
FindApiEndpointRequest req = new FindApiEndpointRequest() {
155155
ApiID = "<value>",
156156
VersionID = "<value>",
157-
DisplayName = "Don.Strosin",
157+
DisplayName = "Don_Kihn39",
158158
};
159159
160160
var res = await sdk.ApiEndpoints.FindApiEndpointAsync(req);
@@ -226,10 +226,10 @@ actions:
226226
ApiEndpointID = "<value>",
227227
ApiEndpoint = new ApiEndpointInput() {
228228
ApiEndpointId = "<value>",
229-
Description = "Public-key systematic attitude",
230-
DisplayName = "Camille.Schaefer11",
229+
Description = "Public-key background productivity",
230+
DisplayName = "Jailyn_Turner",
231231
Method = "<value>",
232-
Path = "/Library",
232+
Path = "/home/user",
233233
VersionId = "<value>",
234234
},
235235
};
@@ -441,7 +441,7 @@ actions:
441441
RequestBody = new RegisterSchemaRequestBody() {
442442
File = new File() {
443443
FileName = "example.file",
444-
Content = System.Text.Encoding.UTF8.GetBytes("0xCAFCA03e0e"),
444+
Content = System.Text.Encoding.UTF8.GetBytes("0xCFA30D144c"),
445445
},
446446
},
447447
};
@@ -622,28 +622,6 @@ actions:
622622
623623
var res = await sdk.Artifacts.GetRevisionsAsync(req);
624624
625-
// handle response
626-
- target: $["paths"]["/v1/artifacts/namespaces/{namespace_name}/revisions/{revision_reference}/summary"]["get"]
627-
update:
628-
x-codeSamples:
629-
- lang: csharp
630-
label: getOASSummary
631-
source: |-
632-
using SpeakeasySDK;
633-
using SpeakeasySDK.Models.Operations;
634-
using SpeakeasySDK.Models.Shared;
635-
636-
var sdk = new SDK(security: new Security() {
637-
APIKey = "<YOUR_API_KEY_HERE>",
638-
});
639-
640-
GetOASSummaryRequest req = new GetOASSummaryRequest() {
641-
NamespaceName = "<value>",
642-
RevisionReference = "<value>",
643-
};
644-
645-
var res = await sdk.Artifacts.GetOASSummaryAsync(req);
646-
647625
// handle response
648626
- target: $["paths"]["/v1/artifacts/namespaces/{namespace_name}/tags"]["get"]
649627
update:
@@ -1140,7 +1118,7 @@ actions:
11401118
Data = new Report() {},
11411119
File = new UploadReportFile() {
11421120
FileName = "example.file",
1143-
Content = System.Text.Encoding.UTF8.GetBytes("0xA329C0ad85"),
1121+
Content = System.Text.Encoding.UTF8.GetBytes("0xA2Ca85EFA5"),
11441122
},
11451123
};
11461124
@@ -1204,7 +1182,7 @@ actions:
12041182
});
12051183
12061184
CreateRequestBody req = new CreateRequestBody() {
1207-
Url = "http://limp-pastry.org",
1185+
Url = "https://probable-heating.com/",
12081186
};
12091187
12101188
var res = await sdk.ShortURLs.CreateAsync(req);
@@ -1230,7 +1208,7 @@ actions:
12301208
RequestBody = new SuggestOpenAPIRequestBody() {
12311209
Schema = new Models.Operations.Schema() {
12321210
FileName = "example.file",
1233-
Content = System.Text.Encoding.UTF8.GetBytes("0x0FbfeAEcc8"),
1211+
Content = System.Text.Encoding.UTF8.GetBytes("0x0beEcB7cF6"),
12341212
},
12351213
},
12361214
};
@@ -1284,16 +1262,16 @@ actions:
12841262
Info = new OASInfo() {
12851263
Title = "<value>",
12861264
Summary = "<value>",
1287-
Description = "Operative impactful monitoring",
1265+
Description = "Operative multi-tasking framework",
12881266
Version = "<value>",
12891267
License = new License() {},
12901268
},
12911269
Operations = new List<OASOperation>() {
12921270
new OASOperation() {
12931271
Method = "<value>",
1294-
Path = "/usr/libdata",
1272+
Path = "/opt/share",
12951273
OperationId = "<value>",
1296-
Description = "Innovative tangible hierarchy",
1274+
Description = "De-engineered system-worthy task-force",
12971275
Tags = new List<string>() {
12981276
"<value>",
12991277
},
@@ -1305,7 +1283,7 @@ actions:
13051283
new Diagnostic() {
13061284
Message = "<value>",
13071285
Path = new List<string>() {
1308-
"/etc/periodic",
1286+
"/private/var",
13091287
},
13101288
Type = "<value>",
13111289
},
@@ -1331,6 +1309,22 @@ actions:
13311309
13321310
var res = await sdk.Auth.GetUserAsync();
13331311
1312+
// handle response
1313+
- target: $["paths"]["/v1/workspace"]["get"]
1314+
update:
1315+
x-codeSamples:
1316+
- lang: csharp
1317+
label: getWorkspaceByContext
1318+
source: |-
1319+
using SpeakeasySDK;
1320+
using SpeakeasySDK.Models.Shared;
1321+
1322+
var sdk = new SDK(security: new Security() {
1323+
APIKey = "<YOUR_API_KEY_HERE>",
1324+
});
1325+
1326+
var res = await sdk.Workspaces.GetWorkspaceByContextAsync();
1327+
13341328
// handle response
13351329
- target: $["paths"]["/v1/workspace/access"]["get"]
13361330
update:
@@ -1469,8 +1463,8 @@ actions:
14691463
WorkspaceId = "<value>",
14701464
SpeakeasyApiKeyName = "<value>",
14711465
InteractionType = SpeakeasySDK.Models.Shared.InteractionType.Publish,
1472-
LocalStartedAt = System.DateTime.Parse("2022-05-18T11:28:11.328Z"),
1473-
CreatedAt = System.DateTime.Parse("2024-05-07T12:35:47.182Z"),
1466+
LocalStartedAt = System.DateTime.Parse("2024-05-07T12:35:47.500Z"),
1467+
CreatedAt = System.DateTime.Parse("2023-02-23T15:36:59.809Z"),
14741468
SpeakeasyVersion = "<value>",
14751469
Success = false,
14761470
},

docs/Models/Operations/GetOASSummaryRequest.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)