SpeakeasySDK 5.0.0
See the version list below for details.
dotnet add package SpeakeasySDK --version 5.0.0
NuGet\Install-Package SpeakeasySDK -Version 5.0.0
<PackageReference Include="SpeakeasySDK" Version="5.0.0" />
paket add SpeakeasySDK --version 5.0.0
#r "nuget: SpeakeasySDK, 5.0.0"
// Install SpeakeasySDK as a Cake Addin #addin nuget:?package=SpeakeasySDK&version=5.0.0 // Install SpeakeasySDK as a Cake Tool #tool nuget:?package=SpeakeasySDK&version=5.0.0
Speakeasy
SDK Installation
Nuget
dotnet add package SpeakeasySDK
SDK Example Usage
Example
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Models.Operations;
using System.Collections.Generic;
var sdk = new Speakeasy(
security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
},
workspaceID: "string");
GetApisRequest req = new GetApisRequest() {
Metadata = new Dictionary<string, List<string>>() {
{ "key", new List<string>() {
"string",
} },
},
Op = new QueryParamOp() {
And = false,
},
};
var res = await sdk.Apis.GetApisAsync(req);
// handle response
Available Resources and Operations
Apis
- DeleteApi - Delete an Api.
- GenerateOpenApiSpec - Generate an OpenAPI specification for a particular Api.
- GeneratePostmanCollection - Generate a Postman collection for a particular Api.
- GetAllApiVersions - Get all Api versions for a particular ApiEndpoint.
- GetApis - Get a list of Apis for a given workspace
- UpsertApi - Upsert an Api
ApiEndpoints
- DeleteApiEndpoint - Delete an ApiEndpoint.
- FindApiEndpoint - Find an ApiEndpoint via its displayName.
- GenerateOpenApiSpecForApiEndpoint - Generate an OpenAPI specification for a particular ApiEndpoint.
- GeneratePostmanCollectionForApiEndpoint - Generate a Postman collection for a particular ApiEndpoint.
- GetAllApiEndpoints - Get all Api endpoints for a particular apiID.
- GetAllForVersionApiEndpoints - Get all ApiEndpoints for a particular apiID and versionID.
- GetApiEndpoint - Get an ApiEndpoint.
- UpsertApiEndpoint - Upsert an ApiEndpoint.
Metadata
- DeleteVersionMetadata - Delete metadata for a particular apiID and versionID.
- GetVersionMetadata - Get all metadata for a particular apiID and versionID.
- InsertVersionMetadata - Insert metadata for a particular apiID and versionID.
Schemas
- DeleteSchema - Delete a particular schema revision for an Api.
- DownloadSchema - Download the latest schema for a particular apiID.
- DownloadSchemaRevision - Download a particular schema revision for an Api.
- GetSchema - Get information about the latest schema.
- GetSchemaDiff - Get a diff of two schema revisions for an Api.
- GetSchemaRevision - Get information about a particular schema revision for an Api.
- GetSchemas - Get information about all schemas associated with a particular apiID.
- RegisterSchema - Register a schema.
Auth
- ValidateApiKey - Validate the current api key.
Requests
- GenerateRequestPostmanCollection - Generate a Postman collection for a particular request.
- GetRequestFromEventLog - Get information about a particular request.
- QueryEventLog - Query the event log to retrieve a list of requests.
Embeds
- GetEmbedAccessToken - Get an embed access token for the current workspace.
- GetValidEmbedAccessTokens - Get all valid embed access tokens for the current workspace.
- RevokeEmbedAccessToken - Revoke an embed access EmbedToken.
Events
- PostWorkspaceEvents - Post events for a specific workspace
Server Selection
Server Selection
Select Server by Name
You can override the default server globally by passing a server name to the server: string
optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:
Name | Server | Variables |
---|---|---|
prod |
https://api.prod.speakeasyapi.dev |
None |
Override Server URL Per-Client
The default server can also be overridden globally by passing a URL to the serverUrl: str
optional parameter when initializing the SDK client instance. For example:
Authentication
Per-Client Security Schemes
This SDK supports the following security scheme globally:
Name | Type | Scheme |
---|---|---|
apiKey |
apiKey | API key |
You can set the security parameters through the security
optional parameter when initializing the SDK client instance. For example:
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Models.Operations;
var sdk = new Speakeasy(
security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
},
workspaceID: "string");
DeleteApiRequest req = new DeleteApiRequest() {
ApiID = "string",
VersionID = "string",
};
var res = await sdk.Apis.DeleteApiAsync(req);
// handle response
Global Parameters
Global Parameters
A parameter is configured globally. This parameter may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed.
For example, you can set workspaceID
to "string"
at SDK initialization and then you do not have to pass the same value on calls to operations like PostWorkspaceEvents
. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
Available Globals
The following global parameter is available.
Name | Type | Required | Description |
---|---|---|---|
workspaceID | string | The WorkspaceID parameter. |
Example
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
using SpeakeasySDK.Models.Operations;
using System.Collections.Generic;
var sdk = new Speakeasy(
security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
},
workspaceID: "string");
PostWorkspaceEventsRequest req = new PostWorkspaceEventsRequest() {
RequestBody = new List<CliEvent>() {
new CliEvent() {
CreatedAt = System.DateTime.Parse("2024-11-21T06:58:42.120Z"),
ExecutionId = "string",
Id = "<ID>",
InteractionType = InteractionType.CliExec,
LocalStartedAt = System.DateTime.Parse("2024-05-07T12:35:47.182Z"),
SpeakeasyApiKeyName = "string",
SpeakeasyVersion = "string",
Success = false,
WorkspaceId = "string",
},
},
};
var res = await sdk.Events.PostWorkspaceEventsAsync(req);
// handle response
Maturity
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.
Contributions
While we value open-source contributions to this SDK, this library is generated programmatically. Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release!
SDK Created by Speakeasy
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net5.0
- newtonsoft.json (>= 13.0.3)
- nodatime (>= 3.1.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
5.10.0 | 95 | 9/20/2024 |
5.9.28 | 74 | 9/19/2024 |
5.9.27 | 66 | 7/31/2024 |
5.9.25 | 84 | 7/18/2024 |
5.9.23 | 89 | 7/17/2024 |
5.9.22 | 86 | 7/17/2024 |
5.9.21 | 89 | 7/17/2024 |
5.9.18 | 88 | 7/16/2024 |
5.9.17 | 91 | 7/2/2024 |
5.9.16 | 109 | 6/20/2024 |
5.9.15 | 103 | 6/20/2024 |
5.9.14 | 104 | 6/20/2024 |
5.9.10 | 101 | 6/18/2024 |
5.9.9 | 97 | 6/11/2024 |
5.9.8 | 94 | 6/11/2024 |
5.3.0 | 115 | 4/2/2024 |
5.2.0 | 120 | 3/27/2024 |
5.1.2 | 118 | 3/22/2024 |
5.1.1 | 124 | 3/20/2024 |
5.1.0 | 128 | 3/12/2024 |
5.0.3 | 112 | 2/17/2024 |
5.0.2 | 110 | 2/15/2024 |
5.0.1 | 122 | 2/9/2024 |
5.0.0 | 115 | 2/8/2024 |
4.0.0 | 126 | 2/6/2024 |
3.0.0 | 112 | 2/1/2024 |
2.3.1 | 108 | 1/19/2024 |
2.3.0 | 153 | 12/12/2023 |
2.2.2 | 150 | 12/1/2023 |
2.2.1 | 153 | 11/18/2023 |
2.2.0 | 127 | 11/16/2023 |
2.1.0 | 132 | 11/9/2023 |
2.0.0 | 115 | 11/7/2023 |
1.17.0 | 158 | 10/21/2023 |
1.16.4 | 153 | 10/18/2023 |
1.16.3 | 149 | 10/17/2023 |
1.16.2 | 160 | 10/7/2023 |
1.16.1 | 156 | 10/2/2023 |
1.16.0 | 146 | 10/1/2023 |
1.15.0 | 133 | 9/29/2023 |
1.14.1 | 150 | 9/27/2023 |
1.14.0 | 147 | 9/26/2023 |
1.13.7 | 146 | 9/20/2023 |
1.13.6 | 141 | 9/16/2023 |
1.13.5 | 135 | 9/8/2023 |
1.13.4 | 156 | 9/7/2023 |
1.13.3 | 166 | 9/5/2023 |
1.13.2 | 159 | 9/3/2023 |
1.13.1 | 170 | 9/2/2023 |
1.13.0 | 161 | 9/1/2023 |
1.12.0 | 167 | 8/31/2023 |
1.11.0 | 166 | 8/26/2023 |
1.10.1 | 163 | 8/25/2023 |
1.10.0 | 171 | 8/15/2023 |
1.9.0 | 193 | 8/8/2023 |
1.8.0 | 189 | 8/4/2023 |
1.7.0 | 187 | 8/3/2023 |
1.6.1 | 187 | 8/1/2023 |
1.6.0 | 163 | 7/28/2023 |
1.5.1 | 189 | 7/27/2023 |
1.5.0 | 184 | 7/26/2023 |
1.4.0 | 205 | 7/22/2023 |
1.3.1 | 187 | 7/19/2023 |
1.3.0 | 200 | 7/18/2023 |
1.2.0 | 190 | 7/14/2023 |
1.1.0 | 195 | 7/13/2023 |
1.0.6 | 191 | 7/12/2023 |
1.0.5 | 180 | 7/11/2023 |
1.0.4 | 192 | 7/11/2023 |
1.0.3 | 199 | 7/11/2023 |