Skip to content

chore: 🐝 Update SDK - Generate #15

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
424 changes: 212 additions & 212 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
speakeasyVersion: 1.300.1
speakeasyVersion: 1.303.4
sources:
speakeasy:
sourceNamespace: speakeasy
sourceRevisionDigest: sha256:81dfe70544c7661046cce71d816228095f7b7067c287c0a53821b809f0c49ed3
sourceBlobDigest: sha256:b140ffbff4b14cb3dc8380f8f47a672ee911cf46cee03a3703633ddc16a06ae8
sourceRevisionDigest: sha256:da62f2c7f2ad41b9a016b76317a8210b7d3eab4c77c84c8b5c379c8b4e3017dc
sourceBlobDigest: sha256:5134f1d8c7889a2563e5a4187f62f6f8bab0df4ebce9fd67b46009154c828a46
tags:
- latest
- main
targets:
speakeasy-client-sdk-csharp:
source: speakeasy
sourceNamespace: speakeasy
sourceRevisionDigest: sha256:81dfe70544c7661046cce71d816228095f7b7067c287c0a53821b809f0c49ed3
sourceBlobDigest: sha256:b140ffbff4b14cb3dc8380f8f47a672ee911cf46cee03a3703633ddc16a06ae8
sourceRevisionDigest: sha256:da62f2c7f2ad41b9a016b76317a8210b7d3eab4c77c84c8b5c379c8b4e3017dc
sourceBlobDigest: sha256:5134f1d8c7889a2563e5a4187f62f6f8bab0df4ebce9fd67b46009154c828a46
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 SpeakeasySDK
dotnet add package Speakeasy.Client.SDK
```
<!-- End SDK Installation [installation] -->

Expand All @@ -16,12 +16,12 @@ dotnet add package SpeakeasySDK
### Example

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

var sdk = new Speakeasy(security: new Security() {
var sdk = new SpeakeasySDK(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 SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Models.Operations;
using Speakeasy.Client.SDK;
using Speakeasy.Client.SDK.Models.Shared;
using Speakeasy.Client.SDK.Models.Operations;

var sdk = new Speakeasy(security: new Security() {
var sdk = new SpeakeasySDK(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 SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Models.Operations;
using Speakeasy.Client.SDK;
using Speakeasy.Client.SDK.Models.Shared;
using Speakeasy.Client.SDK.Models.Operations;

var sdk = new Speakeasy(security: new Security() {
var sdk = new SpeakeasySDK(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 |
| --------------------------------------- | --------------------------------------- | --------------------------------------- |
| SpeakeasySDK.Models.Errors.Error | 5XX | application/json |
| SpeakeasySDK.Models.Errors.SDKException | 4xx-5xx | */* |
| Error Object | Status Code | Content Type |
| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- |
| Speakeasy.Client.SDK.Models.Errors.Error | 5XX | application/json |
| Speakeasy.Client.SDK.Models.Errors.SDKException | 4xx-5xx | */* |

### Example

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

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

Expand All @@ -263,7 +263,7 @@ catch (Exception ex)
{
// handle exception
}
else if (ex is SpeakeasySDK.Models.Errors.SDKException)
else if (ex is Speakeasy.Client.SDK.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 SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Models.Operations;
using Speakeasy.Client.SDK;
using Speakeasy.Client.SDK.Models.Shared;
using Speakeasy.Client.SDK.Models.Operations;

var sdk = new Speakeasy(security: new Security() {
var sdk = new SpeakeasySDK(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 SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Models.Operations;
using Speakeasy.Client.SDK;
using Speakeasy.Client.SDK.Models.Shared;
using Speakeasy.Client.SDK.Models.Operations;

var sdk = new Speakeasy(
var sdk = new SpeakeasySDK(
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 @@ -738,4 +738,14 @@ Based on:
### Generated
- [csharp v5.9.6] .
### Releases
- [NuGet v5.9.6] https://www.nuget.org/packages/SpeakeasySDK/5.9.6 - .
- [NuGet v5.9.6] https://www.nuget.org/packages/SpeakeasySDK/5.9.6 - .

## 2024-06-11 14:33:23
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.303.4 (2.340.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [csharp v5.9.7] .
### Releases
- [NuGet v5.9.7] https://www.nuget.org/packages/Speakeasy.Client.SDK/5.9.7 - .
2 changes: 1 addition & 1 deletion SpeakeasySDK.sln → Speakeasy.Client.SDK.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}") = "SpeakeasySDK", "SpeakeasySDK\SpeakeasySDK.csproj", "{F0CE92B5-F3CC-45A2-AA83-118C38724EB1}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Speakeasy.Client.SDK", "Speakeasy\Client\SDK\Speakeasy.Client.SDK.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 SpeakeasySDK
namespace Speakeasy.Client.SDK
{
using Newtonsoft.Json;
using SpeakeasySDK.Hooks;
using SpeakeasySDK.Models.Errors;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Utils.Retries;
using SpeakeasySDK.Utils;
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 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.6";
private const string _sdkGenVersion = "2.339.1";
private const string _sdkVersion = "5.9.7";
private const string _sdkGenVersion = "2.340.2";
private const string _openapiDocVersion = "0.4.0 .";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.6 2.339.1 0.4.0 . SpeakeasySDK";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.7 2.340.2 0.4.0 . Speakeasy.Client.SDK";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Security>? _securitySource;
Expand Down
20 changes: 10 additions & 10 deletions SpeakeasySDK/Apis.cs → Speakeasy/Client/SDK/Apis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace SpeakeasySDK
namespace Speakeasy.Client.SDK
{
using Newtonsoft.Json;
using SpeakeasySDK.Hooks;
using SpeakeasySDK.Models.Errors;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Utils.Retries;
using SpeakeasySDK.Utils;
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 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.6";
private const string _sdkGenVersion = "2.339.1";
private const string _sdkVersion = "5.9.7";
private const string _sdkGenVersion = "2.340.2";
private const string _openapiDocVersion = "0.4.0 .";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.6 2.339.1 0.4.0 . SpeakeasySDK";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.7 2.340.2 0.4.0 . Speakeasy.Client.SDK";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Security>? _securitySource;
Expand Down
20 changes: 10 additions & 10 deletions SpeakeasySDK/Artifacts.cs → Speakeasy/Client/SDK/Artifacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace SpeakeasySDK
namespace Speakeasy.Client.SDK
{
using Newtonsoft.Json;
using SpeakeasySDK.Hooks;
using SpeakeasySDK.Models.Errors;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Utils.Retries;
using SpeakeasySDK.Utils;
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 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.6";
private const string _sdkGenVersion = "2.339.1";
private const string _sdkVersion = "5.9.7";
private const string _sdkGenVersion = "2.340.2";
private const string _openapiDocVersion = "0.4.0 .";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.6 2.339.1 0.4.0 . SpeakeasySDK";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.7 2.340.2 0.4.0 . Speakeasy.Client.SDK";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Security>? _securitySource;
Expand Down
22 changes: 11 additions & 11 deletions SpeakeasySDK/Auth.cs → Speakeasy/Client/SDK/Auth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace SpeakeasySDK
namespace Speakeasy.Client.SDK
{
using Newtonsoft.Json;
using SpeakeasySDK.Hooks;
using SpeakeasySDK.Models.Errors;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Utils.Retries;
using SpeakeasySDK.Utils;
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 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.6";
private const string _sdkGenVersion = "2.339.1";
private const string _sdkVersion = "5.9.7";
private const string _sdkGenVersion = "2.340.2";
private const string _openapiDocVersion = "0.4.0 .";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.6 2.339.1 0.4.0 . SpeakeasySDK";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.7 2.340.2 0.4.0 . Speakeasy.Client.SDK";
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 SpeakeasySDK.Utils.Retries.Retries(retrySend, retryConfig, statusCodes);
var retries = new Speakeasy.Client.SDK.Utils.Retries.Retries(retrySend, retryConfig, statusCodes);

HttpResponseMessage httpResponse;
try
Expand Down
20 changes: 10 additions & 10 deletions SpeakeasySDK/Embeds.cs → Speakeasy/Client/SDK/Embeds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace SpeakeasySDK
namespace Speakeasy.Client.SDK
{
using Newtonsoft.Json;
using SpeakeasySDK.Hooks;
using SpeakeasySDK.Models.Errors;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Utils.Retries;
using SpeakeasySDK.Utils;
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 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.6";
private const string _sdkGenVersion = "2.339.1";
private const string _sdkVersion = "5.9.7";
private const string _sdkGenVersion = "2.340.2";
private const string _openapiDocVersion = "0.4.0 .";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.6 2.339.1 0.4.0 . SpeakeasySDK";
private const string _userAgent = "speakeasy-sdk/csharp 5.9.7 2.340.2 0.4.0 . Speakeasy.Client.SDK";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<Security>? _securitySource;
Expand Down
Loading