Skip to content

chore: 🐝 Update SDK - Generate #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
418 changes: 209 additions & 209 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ speakeasyVersion: 1.303.4
sources:
speakeasy:
sourceNamespace: speakeasy
sourceRevisionDigest: sha256:da62f2c7f2ad41b9a016b76317a8210b7d3eab4c77c84c8b5c379c8b4e3017dc
sourceBlobDigest: sha256:5134f1d8c7889a2563e5a4187f62f6f8bab0df4ebce9fd67b46009154c828a46
sourceRevisionDigest: sha256:893e2efb5965c9a3d939a95ceb8331a259741baabcbefa684c19629583e54a25
sourceBlobDigest: sha256:948da304561cceb9369aaff4c1bfe218a30e5ca930fedc36a4ccb0855ccae956
tags:
- latest
- main
targets:
speakeasy-client-sdk-csharp:
source: speakeasy
sourceNamespace: speakeasy
sourceRevisionDigest: sha256:da62f2c7f2ad41b9a016b76317a8210b7d3eab4c77c84c8b5c379c8b4e3017dc
sourceBlobDigest: sha256:5134f1d8c7889a2563e5a4187f62f6f8bab0df4ebce9fd67b46009154c828a46
sourceRevisionDigest: sha256:893e2efb5965c9a3d939a95ceb8331a259741baabcbefa684c19629583e54a25
sourceBlobDigest: sha256:948da304561cceb9369aaff4c1bfe218a30e5ca930fedc36a4ccb0855ccae956
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
62 changes: 31 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
### Nuget

```bash
dotnet add package Speakeasy.Client.SDK
dotnet add package SpeakeasySDK
```
<!-- End SDK Installation [installation] -->

Expand All @@ -16,12 +16,12 @@ dotnet add package Speakeasy.Client.SDK
### Example

```csharp
using Speakeasy.Client.SDK;
using Speakeasy.Client.SDK.Models.Shared;
using Speakeasy.Client.SDK.Models.Operations;
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Models.Operations;
using System.Collections.Generic;

var sdk = new SpeakeasySDK(security: new Security() {
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});

Expand Down Expand Up @@ -166,11 +166,11 @@ This SDK supports the following security schemes globally:

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:
```csharp
using Speakeasy.Client.SDK;
using Speakeasy.Client.SDK.Models.Shared;
using Speakeasy.Client.SDK.Models.Operations;
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Models.Operations;

var sdk = new SpeakeasySDK(security: new Security() {
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});

Expand Down Expand Up @@ -207,11 +207,11 @@ The following global parameter is available.
### Example

```csharp
using Speakeasy.Client.SDK;
using Speakeasy.Client.SDK.Models.Shared;
using Speakeasy.Client.SDK.Models.Operations;
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Models.Operations;

var sdk = new SpeakeasySDK(security: new Security() {
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});

Expand All @@ -230,21 +230,21 @@ var res = await sdk.Events.GetWorkspaceEventsByTargetAsync(req);

Handling errors in this SDK should largely match your expectations. All operations return a response object or thow an exception. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate type.

| Error Object | Status Code | Content Type |
| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- |
| Speakeasy.Client.SDK.Models.Errors.Error | 5XX | application/json |
| Speakeasy.Client.SDK.Models.Errors.SDKException | 4xx-5xx | */* |
| Error Object | Status Code | Content Type |
| --------------------------------------- | --------------------------------------- | --------------------------------------- |
| SpeakeasySDK.Models.Errors.Error | 5XX | application/json |
| SpeakeasySDK.Models.Errors.SDKException | 4xx-5xx | */* |

### Example

```csharp
using Speakeasy.Client.SDK;
using Speakeasy.Client.SDK.Models.Shared;
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
using System;
using Speakeasy.Client.SDK.Models.Errors;
using Speakeasy.Client.SDK.Models.Operations;
using SpeakeasySDK.Models.Errors;
using SpeakeasySDK.Models.Operations;

var sdk = new SpeakeasySDK(security: new Security() {
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});

Expand All @@ -263,7 +263,7 @@ catch (Exception ex)
{
// handle exception
}
else if (ex is Speakeasy.Client.SDK.Models.Errors.SDKException)
else if (ex is SpeakeasySDK.Models.Errors.SDKException)
{
// handle exception
}
Expand All @@ -279,11 +279,11 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an

To change the default retry strategy for a single API call, simply pass a `RetryConfig` to the call:
```csharp
using Speakeasy.Client.SDK;
using Speakeasy.Client.SDK.Models.Shared;
using Speakeasy.Client.SDK.Models.Operations;
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Models.Operations;

var sdk = new SpeakeasySDK(security: new Security() {
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});

Expand All @@ -306,11 +306,11 @@ var res = await sdk.Auth.GetWorkspaceAccessAsync(req,

If you'd like to override the default retry strategy for all operations that support retries, you can use the `RetryConfig` optional parameter when intitializing the SDK:
```csharp
using Speakeasy.Client.SDK;
using Speakeasy.Client.SDK.Models.Shared;
using Speakeasy.Client.SDK.Models.Operations;
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Models.Operations;

var sdk = new SpeakeasySDK(
var sdk = new SDK(
retryConfig: new RetryConfig(
strategy: RetryConfig.RetryStrategy.BACKOFF,
backoff: new BackoffStrategy(
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -748,4 +748,14 @@ Based on:
### Generated
- [csharp v5.9.7] .
### Releases
- [NuGet v5.9.7] https://www.nuget.org/packages/Speakeasy.Client.SDK/5.9.7 - .
- [NuGet v5.9.7] https://www.nuget.org/packages/Speakeasy.Client.SDK/5.9.7 - .

## 2024-06-11 15:56:17
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.303.4 (2.340.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [csharp v5.9.8] .
### Releases
- [NuGet v5.9.8] https://www.nuget.org/packages/SpeakeasySDK/5.9.8 - .
2 changes: 1 addition & 1 deletion Speakeasy.Client.SDK.sln → SpeakeasySDK.sln
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Speakeasy.Client.SDK", "Speakeasy\Client\SDK\Speakeasy.Client.SDK.csproj", "{F0CE92B5-F3CC-45A2-AA83-118C38724EB1}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpeakeasySDK", "SpeakeasySDK\SpeakeasySDK.csproj", "{F0CE92B5-F3CC-45A2-AA83-118C38724EB1}"
EndProject

Global
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace Speakeasy.Client.SDK
namespace SpeakeasySDK
{
using Newtonsoft.Json;
using Speakeasy.Client.SDK.Hooks;
using Speakeasy.Client.SDK.Models.Errors;
using Speakeasy.Client.SDK.Models.Operations;
using Speakeasy.Client.SDK.Models.Shared;
using Speakeasy.Client.SDK.Utils.Retries;
using Speakeasy.Client.SDK.Utils;
using SpeakeasySDK.Hooks;
using SpeakeasySDK.Models.Errors;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Utils.Retries;
using SpeakeasySDK.Utils;
using System.Collections.Generic;
using System.Net.Http.Headers;
using System.Net.Http;
Expand Down Expand Up @@ -98,10 +98,10 @@ public class ApiEndpoints: IApiEndpoints
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.9.7";
private const string _sdkVersion = "5.9.8";
private const string _sdkGenVersion = "2.340.2";
private const string _openapiDocVersion = "0.4.0 .";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.7 2.340.2 0.4.0 . Speakeasy.Client.SDK";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.8 2.340.2 0.4.0 . SpeakeasySDK";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Security>? _securitySource;
Expand Down
18 changes: 9 additions & 9 deletions Speakeasy/Client/SDK/Apis.cs → SpeakeasySDK/Apis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace Speakeasy.Client.SDK
namespace SpeakeasySDK
{
using Newtonsoft.Json;
using Speakeasy.Client.SDK.Hooks;
using Speakeasy.Client.SDK.Models.Errors;
using Speakeasy.Client.SDK.Models.Operations;
using Speakeasy.Client.SDK.Models.Shared;
using Speakeasy.Client.SDK.Utils.Retries;
using Speakeasy.Client.SDK.Utils;
using SpeakeasySDK.Hooks;
using SpeakeasySDK.Models.Errors;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Utils.Retries;
using SpeakeasySDK.Utils;
using System.Collections.Generic;
using System.Net.Http.Headers;
using System.Net.Http;
Expand Down Expand Up @@ -94,10 +94,10 @@ public class Apis: IApis
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.9.7";
private const string _sdkVersion = "5.9.8";
private const string _sdkGenVersion = "2.340.2";
private const string _openapiDocVersion = "0.4.0 .";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.7 2.340.2 0.4.0 . Speakeasy.Client.SDK";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.8 2.340.2 0.4.0 . SpeakeasySDK";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Security>? _securitySource;
Expand Down
18 changes: 9 additions & 9 deletions Speakeasy/Client/SDK/Artifacts.cs → SpeakeasySDK/Artifacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace Speakeasy.Client.SDK
namespace SpeakeasySDK
{
using Newtonsoft.Json;
using Speakeasy.Client.SDK.Hooks;
using Speakeasy.Client.SDK.Models.Errors;
using Speakeasy.Client.SDK.Models.Operations;
using Speakeasy.Client.SDK.Models.Shared;
using Speakeasy.Client.SDK.Utils.Retries;
using Speakeasy.Client.SDK.Utils;
using SpeakeasySDK.Hooks;
using SpeakeasySDK.Models.Errors;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Utils.Retries;
using SpeakeasySDK.Utils;
using System.Collections.Generic;
using System.Net.Http.Headers;
using System.Net.Http;
Expand Down Expand Up @@ -57,10 +57,10 @@ public class Artifacts: IArtifacts
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.9.7";
private const string _sdkVersion = "5.9.8";
private const string _sdkGenVersion = "2.340.2";
private const string _openapiDocVersion = "0.4.0 .";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.7 2.340.2 0.4.0 . Speakeasy.Client.SDK";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.8 2.340.2 0.4.0 . SpeakeasySDK";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Security>? _securitySource;
Expand Down
20 changes: 10 additions & 10 deletions Speakeasy/Client/SDK/Auth.cs → SpeakeasySDK/Auth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace Speakeasy.Client.SDK
namespace SpeakeasySDK
{
using Newtonsoft.Json;
using Speakeasy.Client.SDK.Hooks;
using Speakeasy.Client.SDK.Models.Errors;
using Speakeasy.Client.SDK.Models.Operations;
using Speakeasy.Client.SDK.Models.Shared;
using Speakeasy.Client.SDK.Utils.Retries;
using Speakeasy.Client.SDK.Utils;
using SpeakeasySDK.Hooks;
using SpeakeasySDK.Models.Errors;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Utils.Retries;
using SpeakeasySDK.Utils;
using System.Collections.Generic;
using System.Net.Http.Headers;
using System.Net.Http;
Expand Down Expand Up @@ -60,10 +60,10 @@ public class Auth: IAuth
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.9.7";
private const string _sdkVersion = "5.9.8";
private const string _sdkGenVersion = "2.340.2";
private const string _openapiDocVersion = "0.4.0 .";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.7 2.340.2 0.4.0 . Speakeasy.Client.SDK";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.8 2.340.2 0.4.0 . SpeakeasySDK";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Security>? _securitySource;
Expand Down Expand Up @@ -308,7 +308,7 @@ public async Task<GetWorkspaceAccessResponse> GetWorkspaceAccessAsync(GetWorkspa
var _httpRequest = await _client.CloneAsync(httpRequest);
return await _client.SendAsync(_httpRequest);
};
var retries = new Speakeasy.Client.SDK.Utils.Retries.Retries(retrySend, retryConfig, statusCodes);
var retries = new SpeakeasySDK.Utils.Retries.Retries(retrySend, retryConfig, statusCodes);

HttpResponseMessage httpResponse;
try
Expand Down
18 changes: 9 additions & 9 deletions Speakeasy/Client/SDK/Embeds.cs → SpeakeasySDK/Embeds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace Speakeasy.Client.SDK
namespace SpeakeasySDK
{
using Newtonsoft.Json;
using Speakeasy.Client.SDK.Hooks;
using Speakeasy.Client.SDK.Models.Errors;
using Speakeasy.Client.SDK.Models.Operations;
using Speakeasy.Client.SDK.Models.Shared;
using Speakeasy.Client.SDK.Utils.Retries;
using Speakeasy.Client.SDK.Utils;
using SpeakeasySDK.Hooks;
using SpeakeasySDK.Models.Errors;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Utils.Retries;
using SpeakeasySDK.Utils;
using System.Collections.Generic;
using System.Net.Http.Headers;
using System.Net.Http;
Expand Down Expand Up @@ -56,10 +56,10 @@ public class Embeds: IEmbeds
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.9.7";
private const string _sdkVersion = "5.9.8";
private const string _sdkGenVersion = "2.340.2";
private const string _openapiDocVersion = "0.4.0 .";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.7 2.340.2 0.4.0 . Speakeasy.Client.SDK";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.8 2.340.2 0.4.0 . SpeakeasySDK";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Security>? _securitySource;
Expand Down
Loading