Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.469.12
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Jan 22, 2025
1 parent d25b67a commit 0aa1279
Show file tree
Hide file tree
Showing 31 changed files with 403 additions and 1,106 deletions.
968 changes: 239 additions & 729 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.468.2
speakeasyVersion: 1.469.12
sources:
speakeasy:
sourceNamespace: speakeasy
sourceRevisionDigest: sha256:8af7ebde12785185cdbd700c1b3b6b8848b43d34f1fe8c06fff5ae4af471faf2
sourceBlobDigest: sha256:952a58da1511e3191ea8e470c7f01a4e3785d11d9152f490a3e5a7173c8542e7
sourceRevisionDigest: sha256:0fad8ef1cd8d1144e0da37999992b7f55e0a88811d16202a2bcf9dad7e0e48b1
sourceBlobDigest: sha256:89100d40a58b27e5294c921a7c698253b084d037635894f0a7c15ab40e224589
tags:
- latest
- speakeasy-sdk-regen-1735949986
- speakeasy-sdk-regen-1736900413
- 0.4.0
targets:
speakeasy-client-sdk-csharp:
source: speakeasy
sourceNamespace: speakeasy
sourceRevisionDigest: sha256:8af7ebde12785185cdbd700c1b3b6b8848b43d34f1fe8c06fff5ae4af471faf2
sourceBlobDigest: sha256:952a58da1511e3191ea8e470c7f01a4e3785d11d9152f490a3e5a7173c8542e7
sourceRevisionDigest: sha256:0fad8ef1cd8d1144e0da37999992b7f55e0a88811d16202a2bcf9dad7e0e48b1
sourceBlobDigest: sha256:89100d40a58b27e5294c921a7c698253b084d037635894f0a7c15ab40e224589
codeSamplesNamespace: code-samples-csharp-speakeasy-client-sdk-csharp
codeSamplesRevisionDigest: sha256:aacf508e82244f7628670bda7c73bdda3a36059c4143c3566f2b4d4935251ec8
codeSamplesRevisionDigest: sha256:88e1187f0edd3aa0ed463f32a915d88e23142e166a92b6a88321943a4ffe2f5b
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
26 changes: 26 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Contributing to This Repository

Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements.

## How to Report Issues

If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes:

- A clear and descriptive title
- Steps to reproduce the issue
- Expected and actual behavior
- Any relevant logs, screenshots, or error messages
- Information about your environment (e.g., operating system, software versions)
- For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed

## Issue Triage and Upstream Fixes

We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code.

## Contact

If you have any questions or need further assistance, please feel free to reach out by opening an issue.

Thank you for your understanding and cooperation!

The Maintainers
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ var res = await sdk.Artifacts.CreateRemoteSourceAsync(req);

* [GenerateCodeSamplePreview](docs/sdks/codesamples/README.md#generatecodesamplepreview) - Generate Code Sample previews from a file and configuration parameters.
* [GenerateCodeSamplePreviewAsync](docs/sdks/codesamples/README.md#generatecodesamplepreviewasync) - Initiate asynchronous Code Sample preview generation from a file and configuration parameters, receiving an async JobID response for polling.
* [Get](docs/sdks/codesamples/README.md#get) - Retrieve usage snippets from document stored in the registry
* [GetCodeSamplePreviewAsync](docs/sdks/codesamples/README.md#getcodesamplepreviewasync) - Poll for the result of an asynchronous Code Sample preview generation.

### [Events](docs/sdks/events/README.md)
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -949,4 +949,14 @@ Based on:
### Generated
- [csharp v5.12.0] .
### Releases
- [NuGet v5.12.0] https://www.nuget.org/packages/SpeakeasySDK/5.12.0 - .
- [NuGet v5.12.0] https://www.nuget.org/packages/SpeakeasySDK/5.12.0 - .

## 2025-01-22 00:19:57
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.469.12 (2.493.34) https://github.com/speakeasy-api/speakeasy
### Generated
- [csharp v5.12.1] .
### Releases
- [NuGet v5.12.1] https://www.nuget.org/packages/SpeakeasySDK/5.12.1 - .
21 changes: 0 additions & 21 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,27 +205,6 @@ actions:
var res = await sdk.Auth.ValidateApiKeyAsync();
// handle response
- target: $["paths"]["/v1/code_sample"]["get"]
update:
x-codeSamples:
- lang: csharp
label: getCodeSamples
source: |-
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;
var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});
GetCodeSamplesRequest req = new GetCodeSamplesRequest() {
RegistryUrl = "https://normal-making.name",
};
var res = await sdk.CodeSamples.GetAsync(req);
// handle response
- target: $["paths"]["/v1/code_sample/preview"]["post"]
update:
Expand Down
10 changes: 0 additions & 10 deletions docs/Models/Operations/GetCodeSamplesRequest.md

This file was deleted.

11 changes: 0 additions & 11 deletions docs/Models/Operations/GetCodeSamplesResponse.md

This file was deleted.

10 changes: 0 additions & 10 deletions docs/Models/Shared/UsageSnippet.md

This file was deleted.

8 changes: 0 additions & 8 deletions docs/Models/Shared/UsageSnippets.md

This file was deleted.

1 change: 1 addition & 0 deletions docs/Models/Shared/User.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
| `Internal` | *bool* | :heavy_minus_sign: | Indicates whether the user is internal. |
| `LastLoginAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | Timestamp of the last login. |
| `PhotoUrl` | *string* | :heavy_minus_sign: | URL of the user's photo. |
| `PylonIdentityHash` | *string* | :heavy_minus_sign: | Hash used for pylon identity verification returned on v1/user. |
| `UpdatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | Timestamp of the user's last update. |
| `Whitelisted` | *bool* | :heavy_check_mark: | Indicates whether the user has been whitelisted. |
51 changes: 6 additions & 45 deletions docs/sdks/codesamples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ REST APIs for retrieving Code Samples

* [GenerateCodeSamplePreview](#generatecodesamplepreview) - Generate Code Sample previews from a file and configuration parameters.
* [GenerateCodeSamplePreviewAsync](#generatecodesamplepreviewasync) - Initiate asynchronous Code Sample preview generation from a file and configuration parameters, receiving an async JobID response for polling.
* [Get](#get) - Retrieve usage snippets from document stored in the registry
* [GetCodeSamplePreviewAsync](#getcodesamplepreviewasync) - Poll for the result of an asynchronous Code Sample preview generation.

## GenerateCodeSamplePreview
Expand Down Expand Up @@ -57,7 +56,8 @@ var res = await sdk.CodeSamples.GenerateCodeSamplePreviewAsync(req);

| Error Type | Status Code | Content Type |
| -------------------------------- | -------------------------------- | -------------------------------- |
| SpeakeasySDK.Models.Errors.Error | 4XX, 5XX | application/json |
| SpeakeasySDK.Models.Errors.Error | 4XX | application/json |
| SpeakeasySDK.Models.Errors.Error | 5XX | application/json |

## GenerateCodeSamplePreviewAsync

Expand Down Expand Up @@ -104,48 +104,8 @@ var res = await sdk.CodeSamples.GenerateCodeSamplePreviewAsyncAsync(req);

| Error Type | Status Code | Content Type |
| -------------------------------- | -------------------------------- | -------------------------------- |
| SpeakeasySDK.Models.Errors.Error | 4XX, 5XX | application/json |

## Get

Retrieve usage snippets from document stored in the registry. Supports filtering by language and operation ID.

### Example Usage

```csharp
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;
using SpeakeasySDK.Models.Shared;

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

GetCodeSamplesRequest req = new GetCodeSamplesRequest() {
RegistryUrl = "https://normal-making.name",
};

var res = await sdk.CodeSamples.GetAsync(req);

// handle response
```

### Parameters

| Parameter | Type | Required | Description |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| `request` | [GetCodeSamplesRequest](../../Models/Operations/GetCodeSamplesRequest.md) | :heavy_check_mark: | The request object to use for the request. |

### Response

**[GetCodeSamplesResponse](../../Models/Operations/GetCodeSamplesResponse.md)**

### Errors

| Error Type | Status Code | Content Type |
| --------------------------------------- | --------------------------------------- | --------------------------------------- |
| SpeakeasySDK.Models.Errors.Error | 4XX | application/json |
| SpeakeasySDK.Models.Errors.SDKException | 5XX | \*/\* |
| SpeakeasySDK.Models.Errors.Error | 4XX | application/json |
| SpeakeasySDK.Models.Errors.Error | 5XX | application/json |

## GetCodeSamplePreviewAsync

Expand Down Expand Up @@ -185,4 +145,5 @@ var res = await sdk.CodeSamples.GetCodeSamplePreviewAsyncAsync(req);

| Error Type | Status Code | Content Type |
| -------------------------------- | -------------------------------- | -------------------------------- |
| SpeakeasySDK.Models.Errors.Error | 4XX, 5XX | application/json |
| SpeakeasySDK.Models.Errors.Error | 4XX | application/json |
| SpeakeasySDK.Models.Errors.Error | 5XX | application/json |
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
csharp:
version: 5.12.0
version: 5.12.1
additionalDependencies: []
author: Speakeasy
clientServerStatusCodesAsErrors: true
Expand Down
6 changes: 3 additions & 3 deletions src/SpeakeasySDK/Artifacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ public class Artifacts: IArtifacts
{
public SDKConfig SDKConfiguration { get; private set; }
private const string _language = "csharp";
private const string _sdkVersion = "5.12.0";
private const string _sdkGenVersion = "2.493.4";
private const string _sdkVersion = "5.12.1";
private const string _sdkGenVersion = "2.493.34";
private const string _openapiDocVersion = "0.4.0";
private const string _userAgent = "speakeasy-sdk/csharp 5.12.0 2.493.4 0.4.0 SpeakeasySDK";
private const string _userAgent = "speakeasy-sdk/csharp 5.12.1 2.493.34 0.4.0 SpeakeasySDK";
private string _serverUrl = "";
private ISpeakeasyHttpClient _client;
private Func<SpeakeasySDK.Models.Shared.Security>? _securitySource;
Expand Down
Loading

0 comments on commit 0aa1279

Please sign in to comment.