From 4a6cf140cd3eac559321a2a9fffe6a7e81e76cf2 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 17 Jul 2024 20:20:46 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.339.0 --- .speakeasy/gen.lock | 4 +- .speakeasy/workflow.lock | 10 +- RELEASES.md | 12 +- SpeakeasySDK/ApiEndpoints.cs | 4 +- SpeakeasySDK/Apis.cs | 4 +- SpeakeasySDK/Artifacts.cs | 4 +- SpeakeasySDK/Auth.cs | 4 +- SpeakeasySDK/Embeds.cs | 4 +- SpeakeasySDK/Events.cs | 4 +- SpeakeasySDK/Github.cs | 4 +- SpeakeasySDK/Metadata.cs | 4 +- SpeakeasySDK/Organizations.cs | 4 +- SpeakeasySDK/Reports.cs | 4 +- SpeakeasySDK/Requests.cs | 4 +- SpeakeasySDK/SDK.cs | 4 +- SpeakeasySDK/Schemas.cs | 4 +- SpeakeasySDK/ShortURLs.cs | 4 +- SpeakeasySDK/Suggest.cs | 4 +- codeSamples.yaml | 852 +++++++++++++++++----------------- gen.yaml | 2 +- 20 files changed, 475 insertions(+), 465 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 8d8ba528..572b2565 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -5,8 +5,8 @@ management: docVersion: 0.4.0 . speakeasyVersion: 1.339.0 generationVersion: 2.375.5 - releaseVersion: 5.9.21 - configChecksum: 2ea6bcaecc8126db43ccb4d934abbf1c + releaseVersion: 5.9.22 + configChecksum: d6a9c615f50f77bbc30a3ce50f160447 repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-csharp.git repoSubDirectory: . published: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index dfecafd5..45dc1309 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.339.0 sources: speakeasy: sourceNamespace: speakeasy - sourceRevisionDigest: sha256:1634c24a24b68d32af192316a3a8ace8f269e533d64e7787b1e7db8019bf2931 - sourceBlobDigest: sha256:83b61f149e32a497ddbe99c944832b8de15959121ab3ab2d00d50e8cab5add24 + sourceRevisionDigest: sha256:4a8b1be8111486ce2e0e7a9ddc5df3679500818543eae42590ca112313f0546e + sourceBlobDigest: sha256:931716f9778f1311c240362f5c2e8390e077d42eca969528a4128f8ee1a57ac8 tags: - latest - main @@ -11,10 +11,10 @@ targets: speakeasy-client-sdk-csharp: source: speakeasy sourceNamespace: speakeasy - sourceRevisionDigest: sha256:1634c24a24b68d32af192316a3a8ace8f269e533d64e7787b1e7db8019bf2931 - sourceBlobDigest: sha256:83b61f149e32a497ddbe99c944832b8de15959121ab3ab2d00d50e8cab5add24 + sourceRevisionDigest: sha256:4a8b1be8111486ce2e0e7a9ddc5df3679500818543eae42590ca112313f0546e + sourceBlobDigest: sha256:931716f9778f1311c240362f5c2e8390e077d42eca969528a4128f8ee1a57ac8 codeSamplesNamespace: code-samples-csharp-speakeasy-client-sdk-csharp - codeSamplesRevisionDigest: sha256:53200dd890d686adb6dd2b81e9d6b46e3b69510eede5594f19a4718eda0cfc78 + codeSamplesRevisionDigest: sha256:7636ff699a3582a14b41ab33ef84e6f190336b304acff7b7f55d63904abf234a outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/RELEASES.md b/RELEASES.md index a7370062..e8b06f4b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -858,4 +858,14 @@ Based on: ### Generated - [csharp v5.9.21] . ### Releases -- [NuGet v5.9.21] https://www.nuget.org/packages/SpeakeasySDK/5.9.21 - . \ No newline at end of file +- [NuGet v5.9.21] https://www.nuget.org/packages/SpeakeasySDK/5.9.21 - . + +## 2024-07-17 20:19:57 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.339.0 (2.375.5) https://github.com/speakeasy-api/speakeasy +### Generated +- [csharp v5.9.22] . +### Releases +- [NuGet v5.9.22] https://www.nuget.org/packages/SpeakeasySDK/5.9.22 - . \ No newline at end of file diff --git a/SpeakeasySDK/ApiEndpoints.cs b/SpeakeasySDK/ApiEndpoints.cs index 52812f16..9cad7fb8 100644 --- a/SpeakeasySDK/ApiEndpoints.cs +++ b/SpeakeasySDK/ApiEndpoints.cs @@ -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.21"; + private const string _sdkVersion = "5.9.22"; private const string _sdkGenVersion = "2.375.5"; private const string _openapiDocVersion = "0.4.0 ."; - private const string _userAgent = "speakeasy-sdk/csharp 5.9.21 2.375.5 0.4.0 . SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.9.22 2.375.5 0.4.0 . SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/SpeakeasySDK/Apis.cs b/SpeakeasySDK/Apis.cs index 1d65d6cc..9546f7ee 100644 --- a/SpeakeasySDK/Apis.cs +++ b/SpeakeasySDK/Apis.cs @@ -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.21"; + private const string _sdkVersion = "5.9.22"; private const string _sdkGenVersion = "2.375.5"; private const string _openapiDocVersion = "0.4.0 ."; - private const string _userAgent = "speakeasy-sdk/csharp 5.9.21 2.375.5 0.4.0 . SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.9.22 2.375.5 0.4.0 . SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/SpeakeasySDK/Artifacts.cs b/SpeakeasySDK/Artifacts.cs index 4739f719..0ea7ffe0 100644 --- a/SpeakeasySDK/Artifacts.cs +++ b/SpeakeasySDK/Artifacts.cs @@ -64,10 +64,10 @@ public class Artifacts: IArtifacts { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.9.21"; + private const string _sdkVersion = "5.9.22"; private const string _sdkGenVersion = "2.375.5"; private const string _openapiDocVersion = "0.4.0 ."; - private const string _userAgent = "speakeasy-sdk/csharp 5.9.21 2.375.5 0.4.0 . SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.9.22 2.375.5 0.4.0 . SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/SpeakeasySDK/Auth.cs b/SpeakeasySDK/Auth.cs index bb6aad80..1b435d66 100644 --- a/SpeakeasySDK/Auth.cs +++ b/SpeakeasySDK/Auth.cs @@ -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.21"; + private const string _sdkVersion = "5.9.22"; private const string _sdkGenVersion = "2.375.5"; private const string _openapiDocVersion = "0.4.0 ."; - private const string _userAgent = "speakeasy-sdk/csharp 5.9.21 2.375.5 0.4.0 . SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.9.22 2.375.5 0.4.0 . SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/SpeakeasySDK/Embeds.cs b/SpeakeasySDK/Embeds.cs index 08523fef..a575087a 100644 --- a/SpeakeasySDK/Embeds.cs +++ b/SpeakeasySDK/Embeds.cs @@ -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.21"; + private const string _sdkVersion = "5.9.22"; private const string _sdkGenVersion = "2.375.5"; private const string _openapiDocVersion = "0.4.0 ."; - private const string _userAgent = "speakeasy-sdk/csharp 5.9.21 2.375.5 0.4.0 . SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.9.22 2.375.5 0.4.0 . SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/SpeakeasySDK/Events.cs b/SpeakeasySDK/Events.cs index e5a10d59..59cfb110 100644 --- a/SpeakeasySDK/Events.cs +++ b/SpeakeasySDK/Events.cs @@ -60,10 +60,10 @@ public class Events: IEvents { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.9.21"; + private const string _sdkVersion = "5.9.22"; private const string _sdkGenVersion = "2.375.5"; private const string _openapiDocVersion = "0.4.0 ."; - private const string _userAgent = "speakeasy-sdk/csharp 5.9.21 2.375.5 0.4.0 . SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.9.22 2.375.5 0.4.0 . SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/SpeakeasySDK/Github.cs b/SpeakeasySDK/Github.cs index 25b080cc..27ed026b 100644 --- a/SpeakeasySDK/Github.cs +++ b/SpeakeasySDK/Github.cs @@ -39,10 +39,10 @@ public class Github: IGithub { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.9.21"; + private const string _sdkVersion = "5.9.22"; private const string _sdkGenVersion = "2.375.5"; private const string _openapiDocVersion = "0.4.0 ."; - private const string _userAgent = "speakeasy-sdk/csharp 5.9.21 2.375.5 0.4.0 . SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.9.22 2.375.5 0.4.0 . SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/SpeakeasySDK/Metadata.cs b/SpeakeasySDK/Metadata.cs index 6e4f46f4..ca97a435 100644 --- a/SpeakeasySDK/Metadata.cs +++ b/SpeakeasySDK/Metadata.cs @@ -51,10 +51,10 @@ public class Metadata: IMetadata { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.9.21"; + private const string _sdkVersion = "5.9.22"; private const string _sdkGenVersion = "2.375.5"; private const string _openapiDocVersion = "0.4.0 ."; - private const string _userAgent = "speakeasy-sdk/csharp 5.9.21 2.375.5 0.4.0 . SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.9.22 2.375.5 0.4.0 . SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/SpeakeasySDK/Organizations.cs b/SpeakeasySDK/Organizations.cs index 3088ec91..407aa091 100644 --- a/SpeakeasySDK/Organizations.cs +++ b/SpeakeasySDK/Organizations.cs @@ -56,10 +56,10 @@ public class Organizations: IOrganizations { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.9.21"; + private const string _sdkVersion = "5.9.22"; private const string _sdkGenVersion = "2.375.5"; private const string _openapiDocVersion = "0.4.0 ."; - private const string _userAgent = "speakeasy-sdk/csharp 5.9.21 2.375.5 0.4.0 . SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.9.22 2.375.5 0.4.0 . SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/SpeakeasySDK/Reports.cs b/SpeakeasySDK/Reports.cs index a6118cbc..423fce1b 100644 --- a/SpeakeasySDK/Reports.cs +++ b/SpeakeasySDK/Reports.cs @@ -51,10 +51,10 @@ public class Reports: IReports { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.9.21"; + private const string _sdkVersion = "5.9.22"; private const string _sdkGenVersion = "2.375.5"; private const string _openapiDocVersion = "0.4.0 ."; - private const string _userAgent = "speakeasy-sdk/csharp 5.9.21 2.375.5 0.4.0 . SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.9.22 2.375.5 0.4.0 . SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/SpeakeasySDK/Requests.cs b/SpeakeasySDK/Requests.cs index 46b1bd62..38ef426b 100644 --- a/SpeakeasySDK/Requests.cs +++ b/SpeakeasySDK/Requests.cs @@ -61,10 +61,10 @@ public class Requests: IRequests { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.9.21"; + private const string _sdkVersion = "5.9.22"; private const string _sdkGenVersion = "2.375.5"; private const string _openapiDocVersion = "0.4.0 ."; - private const string _userAgent = "speakeasy-sdk/csharp 5.9.21 2.375.5 0.4.0 . SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.9.22 2.375.5 0.4.0 . SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/SpeakeasySDK/SDK.cs b/SpeakeasySDK/SDK.cs index 9fe984a2..b5c99af9 100644 --- a/SpeakeasySDK/SDK.cs +++ b/SpeakeasySDK/SDK.cs @@ -156,10 +156,10 @@ public class SDK: ISDK public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.9.21"; + private const string _sdkVersion = "5.9.22"; private const string _sdkGenVersion = "2.375.5"; private const string _openapiDocVersion = "0.4.0 ."; - private const string _userAgent = "speakeasy-sdk/csharp 5.9.21 2.375.5 0.4.0 . SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.9.22 2.375.5 0.4.0 . SpeakeasySDK"; private string _serverUrl = ""; private SDKConfig.Server? _server = null; private ISpeakeasyHttpClient _client; diff --git a/SpeakeasySDK/Schemas.cs b/SpeakeasySDK/Schemas.cs index e6f1ebd3..ea29ff52 100644 --- a/SpeakeasySDK/Schemas.cs +++ b/SpeakeasySDK/Schemas.cs @@ -96,10 +96,10 @@ public class Schemas: ISchemas { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.9.21"; + private const string _sdkVersion = "5.9.22"; private const string _sdkGenVersion = "2.375.5"; private const string _openapiDocVersion = "0.4.0 ."; - private const string _userAgent = "speakeasy-sdk/csharp 5.9.21 2.375.5 0.4.0 . SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.9.22 2.375.5 0.4.0 . SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/SpeakeasySDK/ShortURLs.cs b/SpeakeasySDK/ShortURLs.cs index c99d5c89..9da8037b 100644 --- a/SpeakeasySDK/ShortURLs.cs +++ b/SpeakeasySDK/ShortURLs.cs @@ -41,10 +41,10 @@ public class ShortURLs: IShortURLs { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.9.21"; + private const string _sdkVersion = "5.9.22"; private const string _sdkGenVersion = "2.375.5"; private const string _openapiDocVersion = "0.4.0 ."; - private const string _userAgent = "speakeasy-sdk/csharp 5.9.21 2.375.5 0.4.0 . SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.9.22 2.375.5 0.4.0 . SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/SpeakeasySDK/Suggest.cs b/SpeakeasySDK/Suggest.cs index e5dc0edd..e5bdd633 100644 --- a/SpeakeasySDK/Suggest.cs +++ b/SpeakeasySDK/Suggest.cs @@ -59,10 +59,10 @@ public class Suggest: ISuggest { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.9.21"; + private const string _sdkVersion = "5.9.22"; private const string _sdkGenVersion = "2.375.5"; private const string _openapiDocVersion = "0.4.0 ."; - private const string _userAgent = "speakeasy-sdk/csharp 5.9.21 2.375.5 0.4.0 . SpeakeasySDK"; + private const string _userAgent = "speakeasy-sdk/csharp 5.9.22 2.375.5 0.4.0 . SpeakeasySDK"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; diff --git a/codeSamples.yaml b/codeSamples.yaml index 14301ec3..aaf3a951 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -3,11 +3,11 @@ info: title: CodeSamples overlay for csharp target version: 0.0.0 actions: - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}/generate/postman"]["get"] + - target: $["paths"]["/v1/oci/v2/{organization_slug}/{workspace_slug}/{namespace_name}/manifests/{revision_reference}"]["get"] update: x-codeSamples: - lang: csharp - label: generatePostmanCollectionForApiEndpoint + label: getManifest source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -17,20 +17,21 @@ actions: APIKey = "", }); - GeneratePostmanCollectionForApiEndpointRequest req = new GeneratePostmanCollectionForApiEndpointRequest() { - ApiID = "", - VersionID = "", - ApiEndpointID = "", + GetManifestRequest req = new GetManifestRequest() { + OrganizationSlug = "", + WorkspaceSlug = "", + NamespaceName = "", + RevisionReference = "", }; - var res = await sdk.ApiEndpoints.GeneratePostmanCollectionForApiEndpointAsync(req); + var res = await sdk.Artifacts.GetManifestAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schemas"]["get"] + - target: $["paths"]["/v1/short_urls"]["post"] update: x-codeSamples: - lang: csharp - label: getSchemas + label: create source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -40,51 +41,18 @@ actions: APIKey = "", }); - GetSchemasRequest req = new GetSchemasRequest() { - ApiID = "", - VersionID = "", + CreateRequestBody req = new CreateRequestBody() { + Url = "http://limp-pastry.org", }; - var res = await sdk.Schemas.GetSchemasAsync(req); - - // handle response - - target: $["paths"]["/v1/organization/usage"]["get"] - update: - x-codeSamples: - - lang: csharp - label: getOrganizationUsage - source: |- - using SpeakeasySDK; - using SpeakeasySDK.Models.Shared; - - var sdk = new SDK(security: new Security() { - APIKey = "", - }); - - var res = await sdk.Organizations.GetOrganizationUsageAsync(); - - // handle response - - target: $["paths"]["/v1/artifacts/namespaces"]["get"] - update: - x-codeSamples: - - lang: csharp - label: getNamespaces - source: |- - using SpeakeasySDK; - using SpeakeasySDK.Models.Shared; - - var sdk = new SDK(security: new Security() { - APIKey = "", - }); - - var res = await sdk.Artifacts.GetNamespacesAsync(); + var res = await sdk.ShortURLs.CreateAsync(req); // handle response - - target: $["paths"]["/v1/suggest/operation_ids/apply"]["post"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/metadata/{metaKey}/{metaValue}"]["delete"] update: x-codeSamples: - lang: csharp - label: applyOperationIDs + label: deleteVersionMetadata source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -94,41 +62,41 @@ actions: APIKey = "", }); - ApplyOperationIDsRequest req = new ApplyOperationIDsRequest() { - XSessionId = "", + DeleteVersionMetadataRequest req = new DeleteVersionMetadataRequest() { + ApiID = "", + VersionID = "", + MetaKey = "", + MetaValue = "", }; - var res = await sdk.Suggest.ApplyOperationIDsAsync(req); + var res = await sdk.Metadata.DeleteVersionMetadataAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}"]["delete"] + - target: $["paths"]["/v1/eventlog/query"]["get"] update: x-codeSamples: - lang: csharp - label: deleteSchema + label: queryEventLog source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; using SpeakeasySDK.Models.Shared; + using System.Collections.Generic; var sdk = new SDK(security: new Security() { APIKey = "", }); - DeleteSchemaRequest req = new DeleteSchemaRequest() { - ApiID = "", - VersionID = "", - RevisionID = "", - }; + QueryEventLogRequest req = new QueryEventLogRequest() {}; - var res = await sdk.Schemas.DeleteSchemaAsync(req); + var res = await sdk.Requests.QueryEventLogAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}"]["get"] + - target: $["paths"]["/v1/github/publishing_prs"]["get"] update: x-codeSamples: - lang: csharp - label: getApiEndpoint + label: fetchPublishingPRs source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -138,39 +106,42 @@ actions: APIKey = "", }); - GetApiEndpointRequest req = new GetApiEndpointRequest() { - ApiID = "", - VersionID = "", - ApiEndpointID = "", + FetchPublishingPRsRequest req = new FetchPublishingPRsRequest() { + GenerateGenLockId = "", + Org = "", + Repo = "", }; - var res = await sdk.ApiEndpoints.GetApiEndpointAsync(req); + var res = await sdk.Github.FetchPublishingPRsAsync(req); // handle response - - target: $["paths"]["/v1/workspace/access"]["get"] + - target: $["paths"]["/v1/github/configure_code_samples"]["post"] update: x-codeSamples: - lang: csharp - label: getWorkspaceAccess + label: configureCodeSamples source: |- using SpeakeasySDK; - using SpeakeasySDK.Models.Operations; using SpeakeasySDK.Models.Shared; var sdk = new SDK(security: new Security() { APIKey = "", }); - GetWorkspaceAccessRequest req = new GetWorkspaceAccessRequest() {}; + GithubConfigureCodeSamplesRequest req = new GithubConfigureCodeSamplesRequest() { + Org = "", + Repo = "", + TargetName = "", + }; - var res = await sdk.Auth.GetWorkspaceAccessAsync(req); + var res = await sdk.Github.ConfigureCodeSamplesAsync(req); // handle response - - target: $["paths"]["/v1/artifacts/namespaces/{namespace_name}/revisions/{revision_reference}/summary"]["get"] + - target: $["paths"]["/v1/github/check_access"]["get"] update: x-codeSamples: - lang: csharp - label: getOASSummary + label: checkAccess source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -180,39 +151,41 @@ actions: APIKey = "", }); - GetOASSummaryRequest req = new GetOASSummaryRequest() { - NamespaceName = "", - RevisionReference = "", + CheckAccessRequest req = new CheckAccessRequest() { + Org = "", + Repo = "", }; - var res = await sdk.Artifacts.GetOASSummaryAsync(req); + var res = await sdk.Github.CheckAccessAsync(req); // handle response - - target: $["paths"]["/v1/apis"]["get"] + - target: $["paths"]["/v1/github/trigger_action"]["post"] update: x-codeSamples: - lang: csharp - label: getApis + label: triggerAction source: |- using SpeakeasySDK; - using SpeakeasySDK.Models.Operations; - using System.Collections.Generic; using SpeakeasySDK.Models.Shared; var sdk = new SDK(security: new Security() { APIKey = "", }); - GetApisRequest req = new GetApisRequest() {}; + GithubTriggerActionRequest req = new GithubTriggerActionRequest() { + Org = "", + RepoName = "", + GenLockId = "", + }; - var res = await sdk.Apis.GetApisAsync(req); + var res = await sdk.Github.TriggerActionAsync(req); // handle response - - target: $["paths"]["/v1/suggest/operation_ids"]["post"] + - target: $["paths"]["/v1/workspace/embed-access-tokens/{tokenID}"]["delete"] update: x-codeSamples: - lang: csharp - label: suggestOperationIDs + label: revokeEmbedAccessToken source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -222,17 +195,11 @@ actions: APIKey = "", }); - SuggestOperationIDsRequest req = new SuggestOperationIDsRequest() { - XSessionId = "", - RequestBody = new SuggestOperationIDsRequestBody() { - Schema = new Models.Operations.Schema() { - FileName = "your_file_here", - Content = System.Text.Encoding.UTF8.GetBytes("0xb2de88c98a"), - }, - }, + RevokeEmbedAccessTokenRequest req = new RevokeEmbedAccessTokenRequest() { + TokenID = "", }; - var res = await sdk.Suggest.SuggestOperationIDsAsync(req); + var res = await sdk.Embeds.RevokeEmbedAccessTokenAsync(req); // handle response - target: $["paths"]["/v1/apis/{apiID}"]["put"] @@ -304,11 +271,11 @@ actions: var res = await sdk.Requests.GenerateRequestPostmanCollectionAsync(req); // handle response - - target: $["paths"]["/v1/github/check_access"]["get"] + - target: $["paths"]["/v1/suggest/operation_ids"]["post"] update: x-codeSamples: - lang: csharp - label: checkAccess + label: suggestOperationIDs source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -318,19 +285,24 @@ actions: APIKey = "", }); - CheckAccessRequest req = new CheckAccessRequest() { - Org = "", - Repo = "", + SuggestOperationIDsRequest req = new SuggestOperationIDsRequest() { + XSessionId = "", + RequestBody = new SuggestOperationIDsRequestBody() { + Schema = new Models.Operations.Schema() { + FileName = "your_file_here", + Content = System.Text.Encoding.UTF8.GetBytes("0xb2de88c98a"), + }, + }, }; - var res = await sdk.Github.CheckAccessAsync(req); + var res = await sdk.Suggest.SuggestOperationIDsAsync(req); // handle response - - target: $["paths"]["/v1/workspace/{workspaceID}/events"]["get"] + - target: $["paths"]["/v1/suggest/operation_ids/apply"]["post"] update: x-codeSamples: - lang: csharp - label: searchWorkspaceEvents + label: applyOperationIDs source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -340,39 +312,40 @@ actions: APIKey = "", }); - SearchWorkspaceEventsRequest req = new SearchWorkspaceEventsRequest() {}; + ApplyOperationIDsRequest req = new ApplyOperationIDsRequest() { + XSessionId = "", + }; - var res = await sdk.Events.SearchWorkspaceEventsAsync(req); + var res = await sdk.Suggest.ApplyOperationIDsAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/find/{displayName}"]["get"] + - target: $["paths"]["/v1/apis/{apiID}"]["get"] update: x-codeSamples: - lang: csharp - label: findApiEndpoint + label: getAllApiVersions source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; + using System.Collections.Generic; using SpeakeasySDK.Models.Shared; var sdk = new SDK(security: new Security() { APIKey = "", }); - FindApiEndpointRequest req = new FindApiEndpointRequest() { + GetAllApiVersionsRequest req = new GetAllApiVersionsRequest() { ApiID = "", - VersionID = "", - DisplayName = "Don.Strosin", }; - var res = await sdk.ApiEndpoints.FindApiEndpointAsync(req); + var res = await sdk.Apis.GetAllApiVersionsAsync(req); // handle response - - target: $["paths"]["/v1/eventlog/{requestID}"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}"]["delete"] update: x-codeSamples: - lang: csharp - label: getRequestFromEventLog + label: deleteApi source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -382,18 +355,19 @@ actions: APIKey = "", }); - GetRequestFromEventLogRequest req = new GetRequestFromEventLogRequest() { - RequestID = "", + DeleteApiRequest req = new DeleteApiRequest() { + ApiID = "", + VersionID = "", }; - var res = await sdk.Requests.GetRequestFromEventLogAsync(req); + var res = await sdk.Apis.DeleteApiAsync(req); // handle response - - target: $["paths"]["/v1/github/action"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/{baseRevisionID}/diff/{targetRevisionID}"]["get"] update: x-codeSamples: - lang: csharp - label: getAction + label: getSchemaDiff source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -403,35 +377,44 @@ actions: APIKey = "", }); - GetActionRequest req = new GetActionRequest() { - Org = "", - Repo = "", + GetSchemaDiffRequest req = new GetSchemaDiffRequest() { + ApiID = "", + VersionID = "", + BaseRevisionID = "", + TargetRevisionID = "", }; - var res = await sdk.Github.GetActionAsync(req); + var res = await sdk.Schemas.GetSchemaDiffAsync(req); // handle response - - target: $["paths"]["/v1/workspace/embed-access-tokens/valid"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}"]["delete"] update: x-codeSamples: - lang: csharp - label: getValidEmbedAccessTokens + label: deleteSchema source: |- using SpeakeasySDK; + using SpeakeasySDK.Models.Operations; using SpeakeasySDK.Models.Shared; var sdk = new SDK(security: new Security() { APIKey = "", }); - var res = await sdk.Embeds.GetValidEmbedAccessTokensAsync(); + DeleteSchemaRequest req = new DeleteSchemaRequest() { + ApiID = "", + VersionID = "", + RevisionID = "", + }; + + var res = await sdk.Schemas.DeleteSchemaAsync(req); // handle response - - target: $["paths"]["/v1/reports"]["post"] + - target: $["paths"]["/v1/workspace/access"]["get"] update: x-codeSamples: - lang: csharp - label: uploadReport + label: getWorkspaceAccess source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -441,67 +424,114 @@ actions: APIKey = "", }); - UploadReportRequestBody req = new UploadReportRequestBody() { - Data = new Report() {}, - File = new UploadReportFile() { - FileName = "your_file_here", - Content = System.Text.Encoding.UTF8.GetBytes("0xA329C0ad85"), - }, - }; + GetWorkspaceAccessRequest req = new GetWorkspaceAccessRequest() {}; - var res = await sdk.Reports.UploadReportAsync(req); + var res = await sdk.Auth.GetWorkspaceAccessAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}/generate/openapi"]["get"] + - target: $["paths"]["/v1/workspace/embed-access-tokens/valid"]["get"] update: x-codeSamples: - lang: csharp - label: generateOpenApiSpecForApiEndpoint + label: getValidEmbedAccessTokens source: |- using SpeakeasySDK; - using SpeakeasySDK.Models.Operations; using SpeakeasySDK.Models.Shared; var sdk = new SDK(security: new Security() { APIKey = "", }); - GenerateOpenApiSpecForApiEndpointRequest req = new GenerateOpenApiSpecForApiEndpointRequest() { - ApiID = "", - VersionID = "", - ApiEndpointID = "", - }; - - var res = await sdk.ApiEndpoints.GenerateOpenApiSpecForApiEndpointAsync(req); + var res = await sdk.Embeds.GetValidEmbedAccessTokensAsync(); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema"]["get"] + - target: $["paths"]["/v1/workspace/{workspaceID}/events"]["post"] update: x-codeSamples: - lang: csharp - label: getSchema + label: postWorkspaceEvents source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; + using System.Collections.Generic; using SpeakeasySDK.Models.Shared; var sdk = new SDK(security: new Security() { APIKey = "", }); - GetSchemaRequest req = new GetSchemaRequest() { + PostWorkspaceEventsRequest req = new PostWorkspaceEventsRequest() { + RequestBody = new List() { + new CliEvent() { + Id = "", + ExecutionId = "", + WorkspaceId = "", + SpeakeasyApiKeyName = "", + InteractionType = SpeakeasySDK.Models.Shared.InteractionType.Publish, + LocalStartedAt = System.DateTime.Parse("2022-05-18T11:28:11.328Z"), + CreatedAt = System.DateTime.Parse("2024-05-07T12:35:47.182Z"), + SpeakeasyVersion = "", + Success = false, + }, + }, + }; + + var res = await sdk.Events.PostWorkspaceEventsAsync(req); + + // handle response + - target: $["paths"]["/v1/reports"]["post"] + update: + x-codeSamples: + - lang: csharp + label: uploadReport + source: |- + using SpeakeasySDK; + using SpeakeasySDK.Models.Operations; + using SpeakeasySDK.Models.Shared; + + var sdk = new SDK(security: new Security() { + APIKey = "", + }); + + UploadReportRequestBody req = new UploadReportRequestBody() { + Data = new Report() {}, + File = new UploadReportFile() { + FileName = "your_file_here", + Content = System.Text.Encoding.UTF8.GetBytes("0xA329C0ad85"), + }, + }; + + var res = await sdk.Reports.UploadReportAsync(req); + + // handle response + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}"]["delete"] + update: + x-codeSamples: + - lang: csharp + label: deleteApiEndpoint + source: |- + using SpeakeasySDK; + using SpeakeasySDK.Models.Operations; + using SpeakeasySDK.Models.Shared; + + var sdk = new SDK(security: new Security() { + APIKey = "", + }); + + DeleteApiEndpointRequest req = new DeleteApiEndpointRequest() { ApiID = "", VersionID = "", + ApiEndpointID = "", }; - var res = await sdk.Schemas.GetSchemaAsync(req); + var res = await sdk.ApiEndpoints.DeleteApiEndpointAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/download"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/metadata"]["get"] update: x-codeSamples: - lang: csharp - label: downloadSchema + label: getVersionMetadata source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -511,28 +541,33 @@ actions: APIKey = "", }); - DownloadSchemaRequest req = new DownloadSchemaRequest() { + GetVersionMetadataRequest req = new GetVersionMetadataRequest() { ApiID = "", VersionID = "", }; - var res = await sdk.Schemas.DownloadSchemaAsync(req); + var res = await sdk.Metadata.GetVersionMetadataAsync(req); // handle response - - target: $["paths"]["/v1/auth/validate"]["get"] + - target: $["paths"]["/v1/artifacts/namespaces/{namespace_name}/tags"]["get"] update: x-codeSamples: - lang: csharp - label: validateApiKey + label: getTags source: |- using SpeakeasySDK; + using SpeakeasySDK.Models.Operations; using SpeakeasySDK.Models.Shared; var sdk = new SDK(security: new Security() { APIKey = "", }); - var res = await sdk.Auth.ValidateApiKeyAsync(); + GetTagsRequest req = new GetTagsRequest() { + NamespaceName = "", + }; + + var res = await sdk.Artifacts.GetTagsAsync(req); // handle response - target: $["paths"]["/v1/artifacts/namespaces/{namespace_name}/revisions"]["get"] @@ -556,11 +591,11 @@ actions: var res = await sdk.Artifacts.GetRevisionsAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}"]["put"] + - target: $["paths"]["/v1/reports/changes/{documentChecksum}"]["get"] update: x-codeSamples: - lang: csharp - label: upsertApiEndpoint + label: getChangesReportSignedUrl source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -570,28 +605,18 @@ actions: APIKey = "", }); - UpsertApiEndpointRequest req = new UpsertApiEndpointRequest() { - ApiID = "", - VersionID = "", - ApiEndpointID = "", - ApiEndpoint = new ApiEndpointInput() { - ApiEndpointId = "", - Description = "Public-key systematic attitude", - DisplayName = "Camille.Schaefer11", - Method = "", - Path = "/Library", - VersionId = "", - }, + GetChangesReportSignedUrlRequest req = new GetChangesReportSignedUrlRequest() { + DocumentChecksum = "", }; - var res = await sdk.ApiEndpoints.UpsertApiEndpointAsync(req); + var res = await sdk.Reports.GetChangesReportSignedUrlAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/metadata/{metaKey}/{metaValue}"]["delete"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}/generate/postman"]["get"] update: x-codeSamples: - lang: csharp - label: deleteVersionMetadata + label: generatePostmanCollectionForApiEndpoint source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -601,65 +626,66 @@ actions: APIKey = "", }); - DeleteVersionMetadataRequest req = new DeleteVersionMetadataRequest() { + GeneratePostmanCollectionForApiEndpointRequest req = new GeneratePostmanCollectionForApiEndpointRequest() { ApiID = "", VersionID = "", - MetaKey = "", - MetaValue = "", + ApiEndpointID = "", }; - var res = await sdk.Metadata.DeleteVersionMetadataAsync(req); + var res = await sdk.ApiEndpoints.GeneratePostmanCollectionForApiEndpointAsync(req); // handle response - - target: $["paths"]["/v1/github/publishing_prs"]["get"] + - target: $["paths"]["/v1/github/configure_mintlify_repo"]["post"] update: x-codeSamples: - lang: csharp - label: fetchPublishingPRs + label: configureMintlifyRepo source: |- using SpeakeasySDK; - using SpeakeasySDK.Models.Operations; using SpeakeasySDK.Models.Shared; + using System.Collections.Generic; var sdk = new SDK(security: new Security() { APIKey = "", }); - FetchPublishingPRsRequest req = new FetchPublishingPRsRequest() { - GenerateGenLockId = "", + GithubConfigureMintlifyRepoRequest req = new GithubConfigureMintlifyRepoRequest() { Org = "", Repo = "", + Input = "", + Overlays = new List() { + "", + }, }; - var res = await sdk.Github.FetchPublishingPRsAsync(req); + var res = await sdk.Github.ConfigureMintlifyRepoAsync(req); // handle response - - target: $["paths"]["/v1/workspace/{workspaceID}/events/targets/{targetID}/events"]["get"] + - target: $["paths"]["/v1/workspace/embed-access-token"]["get"] update: x-codeSamples: - lang: csharp - label: getWorkspaceEventsByTarget + label: getEmbedAccessToken source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; using SpeakeasySDK.Models.Shared; + using System.Collections.Generic; var sdk = new SDK(security: new Security() { APIKey = "", }); - GetWorkspaceEventsByTargetRequest req = new GetWorkspaceEventsByTargetRequest() { - TargetID = "", - }; + GetEmbedAccessTokenRequest req = new GetEmbedAccessTokenRequest() {}; - var res = await sdk.Events.GetWorkspaceEventsByTargetAsync(req); + var res = await sdk.Embeds.GetEmbedAccessTokenAsync(req); // handle response - - target: $["paths"]["/v1/oci/v2/{organization_slug}/{workspace_slug}/{namespace_name}/blobs/{digest}"]["get"] + - target: $["paths"]["/v1/workspace/{workspaceID}/events"]["get"] update: x-codeSamples: - lang: csharp - label: getBlob + label: searchWorkspaceEvents source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -669,105 +695,90 @@ actions: APIKey = "", }); - GetBlobRequest req = new GetBlobRequest() { - OrganizationSlug = "", - WorkspaceSlug = "", - NamespaceName = "", - Digest = "", - }; + SearchWorkspaceEventsRequest req = new SearchWorkspaceEventsRequest() {}; - var res = await sdk.Artifacts.GetBlobAsync(req); + var res = await sdk.Events.SearchWorkspaceEventsAsync(req); // handle response - - target: $["paths"]["/v1/workspace/{workspaceID}/events/targets"]["get"] + - target: $["paths"]["/v1/user"]["get"] update: x-codeSamples: - lang: csharp - label: getWorkspaceTargets + label: getUser source: |- using SpeakeasySDK; - using SpeakeasySDK.Models.Operations; using SpeakeasySDK.Models.Shared; var sdk = new SDK(security: new Security() { APIKey = "", }); - GetWorkspaceTargetsRequest req = new GetWorkspaceTargetsRequest() {}; - - var res = await sdk.Events.GetWorkspaceTargetsAsync(req); + var res = await sdk.Auth.GetUserAsync(); // handle response - - target: $["paths"]["/v1/artifacts/namespaces/{namespace_name}/tags"]["post"] + - target: $["paths"]["/v1/github/action"]["get"] update: x-codeSamples: - lang: csharp - label: postTags + label: getAction source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; using SpeakeasySDK.Models.Shared; - using System.Collections.Generic; var sdk = new SDK(security: new Security() { APIKey = "", }); - PostTagsRequest req = new PostTagsRequest() { - NamespaceName = "", + GetActionRequest req = new GetActionRequest() { + Org = "", + Repo = "", }; - var res = await sdk.Artifacts.PostTagsAsync(req); + var res = await sdk.Github.GetActionAsync(req); // handle response - - target: $["paths"]["/v1/short_urls"]["post"] + - target: $["paths"]["/v1/organization/free_trial"]["post"] update: x-codeSamples: - lang: csharp - label: create + label: createFreeTrial source: |- using SpeakeasySDK; - using SpeakeasySDK.Models.Operations; using SpeakeasySDK.Models.Shared; var sdk = new SDK(security: new Security() { APIKey = "", }); - CreateRequestBody req = new CreateRequestBody() { - Url = "http://limp-pastry.org", - }; - - var res = await sdk.ShortURLs.CreateAsync(req); + var res = await sdk.Organizations.CreateFreeTrialAsync(); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/generate/openapi"]["get"] + - target: $["paths"]["/v1/artifacts/preflight"]["post"] update: x-codeSamples: - lang: csharp - label: generateOpenApiSpec + label: preflight source: |- using SpeakeasySDK; - using SpeakeasySDK.Models.Operations; using SpeakeasySDK.Models.Shared; var sdk = new SDK(security: new Security() { APIKey = "", }); - GenerateOpenApiSpecRequest req = new GenerateOpenApiSpecRequest() { - ApiID = "", - VersionID = "", + PreflightRequest req = new PreflightRequest() { + NamespaceName = "", }; - var res = await sdk.Apis.GenerateOpenApiSpecAsync(req); + var res = await sdk.Artifacts.PreflightAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/metadata"]["post"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}"]["get"] update: x-codeSamples: - lang: csharp - label: insertVersionMetadata + label: getSchemaRevision source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -777,23 +788,20 @@ actions: APIKey = "", }); - InsertVersionMetadataRequest req = new InsertVersionMetadataRequest() { + GetSchemaRevisionRequest req = new GetSchemaRevisionRequest() { ApiID = "", VersionID = "", - VersionMetadata = new VersionMetadataInput() { - MetaKey = "", - MetaValue = "", - }, + RevisionID = "", }; - var res = await sdk.Metadata.InsertVersionMetadataAsync(req); + var res = await sdk.Schemas.GetSchemaRevisionAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/{baseRevisionID}/diff/{targetRevisionID}"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}/download"]["get"] update: x-codeSamples: - lang: csharp - label: getSchemaDiff + label: downloadSchemaRevision source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -803,21 +811,20 @@ actions: APIKey = "", }); - GetSchemaDiffRequest req = new GetSchemaDiffRequest() { + DownloadSchemaRevisionRequest req = new DownloadSchemaRevisionRequest() { ApiID = "", VersionID = "", - BaseRevisionID = "", - TargetRevisionID = "", + RevisionID = "", }; - var res = await sdk.Schemas.GetSchemaDiffAsync(req); + var res = await sdk.Schemas.DownloadSchemaRevisionAsync(req); // handle response - - target: $["paths"]["/v1/github/configure_code_samples"]["post"] + - target: $["paths"]["/v1/organization/usage"]["get"] update: x-codeSamples: - lang: csharp - label: configureCodeSamples + label: getOrganizationUsage source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Shared; @@ -826,75 +833,78 @@ actions: APIKey = "", }); - GithubConfigureCodeSamplesRequest req = new GithubConfigureCodeSamplesRequest() { - Org = "", - Repo = "", - TargetName = "", - }; - - var res = await sdk.Github.ConfigureCodeSamplesAsync(req); + var res = await sdk.Organizations.GetOrganizationUsageAsync(); // handle response - - target: $["paths"]["/v1/workspace/embed-access-token"]["get"] + - target: $["paths"]["/v1/workspace/{workspaceID}/events/targets/{targetID}/events"]["get"] update: x-codeSamples: - lang: csharp - label: getEmbedAccessToken + label: getWorkspaceEventsByTarget source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; using SpeakeasySDK.Models.Shared; - using System.Collections.Generic; var sdk = new SDK(security: new Security() { APIKey = "", }); - GetEmbedAccessTokenRequest req = new GetEmbedAccessTokenRequest() {}; + GetWorkspaceEventsByTargetRequest req = new GetWorkspaceEventsByTargetRequest() { + TargetID = "", + }; - var res = await sdk.Embeds.GetEmbedAccessTokenAsync(req); + var res = await sdk.Events.GetWorkspaceEventsByTargetAsync(req); // handle response - - target: $["paths"]["/v1/user"]["get"] + - target: $["paths"]["/v1/suggest/operation_ids/{namespace_name}/{revision_reference}"]["post"] update: x-codeSamples: - lang: csharp - label: getUser + label: suggestOperationIDsRegistry source: |- using SpeakeasySDK; + using SpeakeasySDK.Models.Operations; using SpeakeasySDK.Models.Shared; var sdk = new SDK(security: new Security() { APIKey = "", }); - var res = await sdk.Auth.GetUserAsync(); + SuggestOperationIDsRegistryRequest req = new SuggestOperationIDsRegistryRequest() { + NamespaceName = "", + RevisionReference = "", + XSessionId = "", + }; + + var res = await sdk.Suggest.SuggestOperationIDsRegistryAsync(req); // handle response - - target: $["paths"]["/v1/auth/access_token"]["get"] + - target: $["paths"]["/v1/apis"]["get"] update: x-codeSamples: - lang: csharp - label: getAccessToken + label: getApis source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; + using System.Collections.Generic; using SpeakeasySDK.Models.Shared; - var sdk = new SDK(); + var sdk = new SDK(security: new Security() { + APIKey = "", + }); - GetAccessTokenRequest req = new GetAccessTokenRequest() { - WorkspaceId = "", - }; + GetApisRequest req = new GetApisRequest() {}; - var res = await sdk.Auth.GetAccessTokenAsync(req); + var res = await sdk.Apis.GetApisAsync(req); // handle response - - target: $["paths"]["/v1/reports/linting/{documentChecksum}"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/metadata"]["post"] update: x-codeSamples: - lang: csharp - label: getLintingReportSignedUrl + label: insertVersionMetadata source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -904,18 +914,23 @@ actions: APIKey = "", }); - GetLintingReportSignedUrlRequest req = new GetLintingReportSignedUrlRequest() { - DocumentChecksum = "", + InsertVersionMetadataRequest req = new InsertVersionMetadataRequest() { + ApiID = "", + VersionID = "", + VersionMetadata = new VersionMetadataInput() { + MetaKey = "", + MetaValue = "", + }, }; - var res = await sdk.Reports.GetLintingReportSignedUrlAsync(req); + var res = await sdk.Metadata.InsertVersionMetadataAsync(req); // handle response - - target: $["paths"]["/v1/reports/changes/{documentChecksum}"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema"]["post"] update: x-codeSamples: - lang: csharp - label: getChangesReportSignedUrl + label: registerSchema source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -925,18 +940,25 @@ actions: APIKey = "", }); - GetChangesReportSignedUrlRequest req = new GetChangesReportSignedUrlRequest() { - DocumentChecksum = "", + RegisterSchemaRequest req = new RegisterSchemaRequest() { + ApiID = "", + VersionID = "", + RequestBody = new RegisterSchemaRequestBody() { + File = new File() { + FileName = "your_file_here", + Content = System.Text.Encoding.UTF8.GetBytes("0xCAFCA03e0e"), + }, + }, }; - var res = await sdk.Reports.GetChangesReportSignedUrlAsync(req); + var res = await sdk.Schemas.RegisterSchemaAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/generate/postman"]["get"] + - target: $["paths"]["/v1/workspace/{workspaceID}/events/targets"]["get"] update: x-codeSamples: - lang: csharp - label: generatePostmanCollection + label: getWorkspaceTargets source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -946,19 +968,16 @@ actions: APIKey = "", }); - GeneratePostmanCollectionRequest req = new GeneratePostmanCollectionRequest() { - ApiID = "", - VersionID = "", - }; + GetWorkspaceTargetsRequest req = new GetWorkspaceTargetsRequest() {}; - var res = await sdk.Apis.GeneratePostmanCollectionAsync(req); + var res = await sdk.Events.GetWorkspaceTargetsAsync(req); // handle response - - target: $["paths"]["/v1/github/publishing_secrets"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints"]["get"] update: x-codeSamples: - lang: csharp - label: githubCheckPublishingSecrets + label: getAllForVersionApiEndpoints source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -968,85 +987,79 @@ actions: APIKey = "", }); - GithubCheckPublishingSecretsRequest req = new GithubCheckPublishingSecretsRequest() { - GenerateGenLockId = "", + GetAllForVersionApiEndpointsRequest req = new GetAllForVersionApiEndpointsRequest() { + ApiID = "", + VersionID = "", }; - var res = await sdk.Github.GithubCheckPublishingSecretsAsync(req); + var res = await sdk.ApiEndpoints.GetAllForVersionApiEndpointsAsync(req); // handle response - - target: $["paths"]["/v1/github/configure_target"]["post"] + - target: $["paths"]["/v1/auth/validate"]["get"] update: x-codeSamples: - lang: csharp - label: configureTarget + label: validateApiKey source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Shared; var sdk = new SDK(security: new Security() { APIKey = "", - }); - - GithubConfigureTargetRequest req = new GithubConfigureTargetRequest() { - Org = "", - RepoName = "", - }; + }); - var res = await sdk.Github.ConfigureTargetAsync(req); + var res = await sdk.Auth.ValidateApiKeyAsync(); // handle response - - target: $["paths"]["/v1/artifacts/preflight"]["post"] + - target: $["paths"]["/v1/apis/{apiID}/api_endpoints"]["get"] update: x-codeSamples: - lang: csharp - label: preflight + label: getAllApiEndpoints source: |- using SpeakeasySDK; + using SpeakeasySDK.Models.Operations; using SpeakeasySDK.Models.Shared; var sdk = new SDK(security: new Security() { APIKey = "", }); - PreflightRequest req = new PreflightRequest() { - NamespaceName = "", + GetAllApiEndpointsRequest req = new GetAllApiEndpointsRequest() { + ApiID = "", }; - var res = await sdk.Artifacts.PreflightAsync(req); + var res = await sdk.ApiEndpoints.GetAllApiEndpointsAsync(req); // handle response - - target: $["paths"]["/v1/github/configure_mintlify_repo"]["post"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}"]["get"] update: x-codeSamples: - lang: csharp - label: configureMintlifyRepo + label: getApiEndpoint source: |- using SpeakeasySDK; + using SpeakeasySDK.Models.Operations; using SpeakeasySDK.Models.Shared; - using System.Collections.Generic; var sdk = new SDK(security: new Security() { APIKey = "", }); - GithubConfigureMintlifyRepoRequest req = new GithubConfigureMintlifyRepoRequest() { - Org = "", - Repo = "", - Input = "", - Overlays = new List() { - "", - }, + GetApiEndpointRequest req = new GetApiEndpointRequest() { + ApiID = "", + VersionID = "", + ApiEndpointID = "", }; - var res = await sdk.Github.ConfigureMintlifyRepoAsync(req); + var res = await sdk.ApiEndpoints.GetApiEndpointAsync(req); // handle response - - target: $["paths"]["/v1/organization"]["get"] + - target: $["paths"]["/v1/artifacts/namespaces"]["get"] update: x-codeSamples: - lang: csharp - label: getOrganizations + label: getNamespaces source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Shared; @@ -1055,57 +1068,54 @@ actions: APIKey = "", }); - var res = await sdk.Organizations.GetOrganizationsAsync(); + var res = await sdk.Artifacts.GetNamespacesAsync(); // handle response - - target: $["paths"]["/v1/artifacts/namespaces/{namespace_name}/tags"]["get"] + - target: $["paths"]["/v1/auth/access_token"]["get"] update: x-codeSamples: - lang: csharp - label: getTags + label: getAccessToken source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; using SpeakeasySDK.Models.Shared; - var sdk = new SDK(security: new Security() { - APIKey = "", - }); + var sdk = new SDK(); - GetTagsRequest req = new GetTagsRequest() { - NamespaceName = "", + GetAccessTokenRequest req = new GetAccessTokenRequest() { + WorkspaceId = "", }; - var res = await sdk.Artifacts.GetTagsAsync(req); + var res = await sdk.Auth.GetAccessTokenAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}"]["get"] + - target: $["paths"]["/v1/eventlog/{requestID}"]["get"] update: x-codeSamples: - lang: csharp - label: getAllApiVersions + label: getRequestFromEventLog source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; - using System.Collections.Generic; using SpeakeasySDK.Models.Shared; var sdk = new SDK(security: new Security() { APIKey = "", }); - GetAllApiVersionsRequest req = new GetAllApiVersionsRequest() { - ApiID = "", + GetRequestFromEventLogRequest req = new GetRequestFromEventLogRequest() { + RequestID = "", }; - var res = await sdk.Apis.GetAllApiVersionsAsync(req); + var res = await sdk.Requests.GetRequestFromEventLogAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}"]["delete"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/generate/openapi"]["get"] update: x-codeSamples: - lang: csharp - label: deleteApi + label: generateOpenApiSpec source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -1115,19 +1125,19 @@ actions: APIKey = "", }); - DeleteApiRequest req = new DeleteApiRequest() { + GenerateOpenApiSpecRequest req = new GenerateOpenApiSpecRequest() { ApiID = "", VersionID = "", }; - var res = await sdk.Apis.DeleteApiAsync(req); + var res = await sdk.Apis.GenerateOpenApiSpecAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/generate/postman"]["get"] update: x-codeSamples: - lang: csharp - label: getAllForVersionApiEndpoints + label: generatePostmanCollection source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -1137,19 +1147,19 @@ actions: APIKey = "", }); - GetAllForVersionApiEndpointsRequest req = new GetAllForVersionApiEndpointsRequest() { + GeneratePostmanCollectionRequest req = new GeneratePostmanCollectionRequest() { ApiID = "", VersionID = "", }; - var res = await sdk.ApiEndpoints.GetAllForVersionApiEndpointsAsync(req); + var res = await sdk.Apis.GeneratePostmanCollectionAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}/download"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}/generate/openapi"]["get"] update: x-codeSamples: - lang: csharp - label: downloadSchemaRevision + label: generateOpenApiSpecForApiEndpoint source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -1159,40 +1169,42 @@ actions: APIKey = "", }); - DownloadSchemaRevisionRequest req = new DownloadSchemaRevisionRequest() { + GenerateOpenApiSpecForApiEndpointRequest req = new GenerateOpenApiSpecForApiEndpointRequest() { ApiID = "", VersionID = "", - RevisionID = "", + ApiEndpointID = "", }; - var res = await sdk.Schemas.DownloadSchemaRevisionAsync(req); + var res = await sdk.ApiEndpoints.GenerateOpenApiSpecForApiEndpointAsync(req); // handle response - - target: $["paths"]["/v1/eventlog/query"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema"]["get"] update: x-codeSamples: - lang: csharp - label: queryEventLog + label: getSchema source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; using SpeakeasySDK.Models.Shared; - using System.Collections.Generic; var sdk = new SDK(security: new Security() { APIKey = "", }); - QueryEventLogRequest req = new QueryEventLogRequest() {}; + GetSchemaRequest req = new GetSchemaRequest() { + ApiID = "", + VersionID = "", + }; - var res = await sdk.Requests.QueryEventLogAsync(req); + var res = await sdk.Schemas.GetSchemaAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/metadata"]["get"] + - target: $["paths"]["/v1/reports/linting/{documentChecksum}"]["get"] update: x-codeSamples: - lang: csharp - label: getVersionMetadata + label: getLintingReportSignedUrl source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -1202,19 +1214,18 @@ actions: APIKey = "", }); - GetVersionMetadataRequest req = new GetVersionMetadataRequest() { - ApiID = "", - VersionID = "", + GetLintingReportSignedUrlRequest req = new GetLintingReportSignedUrlRequest() { + DocumentChecksum = "", }; - var res = await sdk.Metadata.GetVersionMetadataAsync(req); + var res = await sdk.Reports.GetLintingReportSignedUrlAsync(req); // handle response - - target: $["paths"]["/v1/workspace/embed-access-tokens/{tokenID}"]["delete"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/find/{displayName}"]["get"] update: x-codeSamples: - lang: csharp - label: revokeEmbedAccessToken + label: findApiEndpoint source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -1224,18 +1235,20 @@ actions: APIKey = "", }); - RevokeEmbedAccessTokenRequest req = new RevokeEmbedAccessTokenRequest() { - TokenID = "", + FindApiEndpointRequest req = new FindApiEndpointRequest() { + ApiID = "", + VersionID = "", + DisplayName = "Don.Strosin", }; - var res = await sdk.Embeds.RevokeEmbedAccessTokenAsync(req); + var res = await sdk.ApiEndpoints.FindApiEndpointAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}/api_endpoints"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}"]["put"] update: x-codeSamples: - lang: csharp - label: getAllApiEndpoints + label: upsertApiEndpoint source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -1245,18 +1258,28 @@ actions: APIKey = "", }); - GetAllApiEndpointsRequest req = new GetAllApiEndpointsRequest() { + UpsertApiEndpointRequest req = new UpsertApiEndpointRequest() { ApiID = "", + VersionID = "", + ApiEndpointID = "", + ApiEndpoint = new ApiEndpointInput() { + ApiEndpointId = "", + Description = "Public-key systematic attitude", + DisplayName = "Camille.Schaefer11", + Method = "", + Path = "/Library", + VersionId = "", + }, }; - var res = await sdk.ApiEndpoints.GetAllApiEndpointsAsync(req); + var res = await sdk.ApiEndpoints.UpsertApiEndpointAsync(req); // handle response - - target: $["paths"]["/v1/github/trigger_action"]["post"] + - target: $["paths"]["/v1/organization"]["get"] update: x-codeSamples: - lang: csharp - label: triggerAction + label: getOrganizations source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Shared; @@ -1265,20 +1288,14 @@ actions: APIKey = "", }); - GithubTriggerActionRequest req = new GithubTriggerActionRequest() { - Org = "", - RepoName = "", - GenLockId = "", - }; - - var res = await sdk.Github.TriggerActionAsync(req); + var res = await sdk.Organizations.GetOrganizationsAsync(); // handle response - - target: $["paths"]["/v1/suggest/operation_ids/{namespace_name}/{revision_reference}"]["post"] + - target: $["paths"]["/v1/oci/v2/{organization_slug}/{workspace_slug}/{namespace_name}/blobs/{digest}"]["get"] update: x-codeSamples: - lang: csharp - label: suggestOperationIDsRegistry + label: getBlob source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -1288,20 +1305,21 @@ actions: APIKey = "", }); - SuggestOperationIDsRegistryRequest req = new SuggestOperationIDsRegistryRequest() { + GetBlobRequest req = new GetBlobRequest() { + OrganizationSlug = "", + WorkspaceSlug = "", NamespaceName = "", - RevisionReference = "", - XSessionId = "", + Digest = "", }; - var res = await sdk.Suggest.SuggestOperationIDsRegistryAsync(req); + var res = await sdk.Artifacts.GetBlobAsync(req); // handle response - - target: $["paths"]["/v1/oci/v2/{organization_slug}/{workspace_slug}/{namespace_name}/manifests/{revision_reference}"]["get"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/download"]["get"] update: x-codeSamples: - lang: csharp - label: getManifest + label: downloadSchema source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -1311,21 +1329,19 @@ actions: APIKey = "", }); - GetManifestRequest req = new GetManifestRequest() { - OrganizationSlug = "", - WorkspaceSlug = "", - NamespaceName = "", - RevisionReference = "", + DownloadSchemaRequest req = new DownloadSchemaRequest() { + ApiID = "", + VersionID = "", }; - var res = await sdk.Artifacts.GetManifestAsync(req); + var res = await sdk.Schemas.DownloadSchemaAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID}"]["delete"] + - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schemas"]["get"] update: x-codeSamples: - lang: csharp - label: deleteApiEndpoint + label: getSchemas source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -1335,48 +1351,41 @@ actions: APIKey = "", }); - DeleteApiEndpointRequest req = new DeleteApiEndpointRequest() { + GetSchemasRequest req = new GetSchemasRequest() { ApiID = "", VersionID = "", - ApiEndpointID = "", }; - var res = await sdk.ApiEndpoints.DeleteApiEndpointAsync(req); + var res = await sdk.Schemas.GetSchemasAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema"]["post"] + - target: $["paths"]["/v1/artifacts/namespaces/{namespace_name}/tags"]["post"] update: x-codeSamples: - lang: csharp - label: registerSchema + label: postTags source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; using SpeakeasySDK.Models.Shared; + using System.Collections.Generic; var sdk = new SDK(security: new Security() { APIKey = "", }); - RegisterSchemaRequest req = new RegisterSchemaRequest() { - ApiID = "", - VersionID = "", - RequestBody = new RegisterSchemaRequestBody() { - File = new File() { - FileName = "your_file_here", - Content = System.Text.Encoding.UTF8.GetBytes("0xCAFCA03e0e"), - }, - }, + PostTagsRequest req = new PostTagsRequest() { + NamespaceName = "", }; - var res = await sdk.Schemas.RegisterSchemaAsync(req); + var res = await sdk.Artifacts.PostTagsAsync(req); // handle response - - target: $["paths"]["/v1/apis/{apiID}/version/{versionID}/schema/{revisionID}"]["get"] + - target: $["paths"]["/v1/github/publishing_secrets"]["get"] update: x-codeSamples: - lang: csharp - label: getSchemaRevision + label: githubCheckPublishingSecrets source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; @@ -1386,20 +1395,18 @@ actions: APIKey = "", }); - GetSchemaRevisionRequest req = new GetSchemaRevisionRequest() { - ApiID = "", - VersionID = "", - RevisionID = "", + GithubCheckPublishingSecretsRequest req = new GithubCheckPublishingSecretsRequest() { + GenerateGenLockId = "", }; - var res = await sdk.Schemas.GetSchemaRevisionAsync(req); + var res = await sdk.Github.GithubCheckPublishingSecretsAsync(req); // handle response - - target: $["paths"]["/v1/organization/free_trial"]["post"] + - target: $["paths"]["/v1/github/configure_target"]["post"] update: x-codeSamples: - lang: csharp - label: createFreeTrial + label: configureTarget source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Shared; @@ -1408,40 +1415,33 @@ actions: APIKey = "", }); - var res = await sdk.Organizations.CreateFreeTrialAsync(); + GithubConfigureTargetRequest req = new GithubConfigureTargetRequest() { + Org = "", + RepoName = "", + }; + + var res = await sdk.Github.ConfigureTargetAsync(req); // handle response - - target: $["paths"]["/v1/workspace/{workspaceID}/events"]["post"] + - target: $["paths"]["/v1/artifacts/namespaces/{namespace_name}/revisions/{revision_reference}/summary"]["get"] update: x-codeSamples: - lang: csharp - label: postWorkspaceEvents + label: getOASSummary source: |- using SpeakeasySDK; using SpeakeasySDK.Models.Operations; - using System.Collections.Generic; using SpeakeasySDK.Models.Shared; var sdk = new SDK(security: new Security() { APIKey = "", }); - PostWorkspaceEventsRequest req = new PostWorkspaceEventsRequest() { - RequestBody = new List() { - new CliEvent() { - Id = "", - ExecutionId = "", - WorkspaceId = "", - SpeakeasyApiKeyName = "", - InteractionType = SpeakeasySDK.Models.Shared.InteractionType.Publish, - LocalStartedAt = System.DateTime.Parse("2022-05-18T11:28:11.328Z"), - CreatedAt = System.DateTime.Parse("2024-05-07T12:35:47.182Z"), - SpeakeasyVersion = "", - Success = false, - }, - }, + GetOASSummaryRequest req = new GetOASSummaryRequest() { + NamespaceName = "", + RevisionReference = "", }; - var res = await sdk.Events.PostWorkspaceEventsAsync(req); + var res = await sdk.Artifacts.GetOASSummaryAsync(req); // handle response diff --git a/gen.yaml b/gen.yaml index 9aeb11d8..71918f77 100755 --- a/gen.yaml +++ b/gen.yaml @@ -10,7 +10,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false csharp: - version: 5.9.21 + version: 5.9.22 additionalDependencies: [] author: Speakeasy clientServerStatusCodesAsErrors: true