Skip to content

chore: 🐝 Update SDK - Generate SWOV1 0.3.0 #4

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 10 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.544.0
speakeasyVersion: 1.564.0
sources:
SolarWinds Observability:
sourceNamespace: solar-winds-observability
Expand All @@ -9,11 +9,11 @@ sources:
- 1.0.5
swov1:
sourceNamespace: solar-winds-observability
sourceRevisionDigest: sha256:497ba59b0679735cf007ad4dc32e8ff9e4bb9f989efd06b0032cc64e0cdc21b7
sourceBlobDigest: sha256:63f72a00d701ceb5cabc7f120a563af340b18802c95a74cc919e7228ab89659c
sourceRevisionDigest: sha256:2b5e36ce90af45f1acb414b90f3e10fa27d799a0338d501146d02b8683a8d6d5
sourceBlobDigest: sha256:26271d4c6d5d17a2003484c97284a76661b24de2e5171d6b3b74df78d1864a4c
tags:
- latest
- speakeasy-sdk-regen-1743639567
- speakeasy-sdk-regen-1747267414
- 1.0.8
targets:
swo:
Expand All @@ -26,10 +26,10 @@ targets:
swov1:
source: swov1
sourceNamespace: solar-winds-observability
sourceRevisionDigest: sha256:497ba59b0679735cf007ad4dc32e8ff9e4bb9f989efd06b0032cc64e0cdc21b7
sourceBlobDigest: sha256:63f72a00d701ceb5cabc7f120a563af340b18802c95a74cc919e7228ab89659c
sourceRevisionDigest: sha256:2b5e36ce90af45f1acb414b90f3e10fa27d799a0338d501146d02b8683a8d6d5
sourceBlobDigest: sha256:26271d4c6d5d17a2003484c97284a76661b24de2e5171d6b3b74df78d1864a4c
codeSamplesNamespace: solar-winds-observability-typescript-code-samples
codeSamplesRevisionDigest: sha256:62329997f68a2482f69e190e3289b4760e725bb0d62fa4537e747359a6428897
codeSamplesRevisionDigest: sha256:eb9d3817f0bf4c24a19dda49c119618668f7514f682c3ab849f6717f326dc44e
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand All @@ -46,6 +46,9 @@ workflow:
target: typescript
source: swov1
output: swov1
publish:
npm:
token: $npm_token
codeSamples:
registry:
location: registry.speakeasyapi.dev/swo/swo/solar-winds-observability-typescript-code-samples
Expand Down
278 changes: 142 additions & 136 deletions swov1/.speakeasy/gen.lock

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion swov1/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ generation:
maintainOpenAPIOrder: true
usageSnippets:
optionalPropertyRendering: withExample
sdkInitStyle: constructor
useClassNamesForArrayFields: true
fixes:
nameResolutionDec2023: true
Expand All @@ -19,14 +20,16 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: true
typescript:
version: 0.2.0
version: 0.3.0
additionalDependencies:
dependencies: {}
devDependencies: {}
peerDependencies: {}
additionalPackageJSON: {}
author: Speakeasy
baseErrorName: SwoError
clientServerStatusCodesAsErrors: true
constFieldsAlwaysOptional: true
defaultErrorName: APIError
enableCustomCodeRegions: false
enableMCPServer: true
Expand Down
27 changes: 5 additions & 22 deletions swov1/FUNCTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ specific category of applications.
```typescript
import { SwoCore } from "@solarwinds/swo-sdk-typescript/core.js";
import { changeEventsCreateChangeEvent } from "@solarwinds/swo-sdk-typescript/funcs/changeEventsCreateChangeEvent.js";
import { SDKValidationError } from "@solarwinds/swo-sdk-typescript/models/errors/sdkvalidationerror.js";

// Use `SwoCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
Expand All @@ -47,28 +46,12 @@ async function run() {
},
],
});

switch (true) {
case res.ok:
// The success case will be handled outside of the switch block
break;
case res.error instanceof SDKValidationError:
// Pretty-print validation errors.
return console.log(res.error.pretty());
case res.error instanceof Error:
return console.log(res.error);
default:
// TypeScript's type checking will fail on the following line if the above
// cases were not exhaustive.
res.error satisfies never;
throw new Error("Assertion failed: expected error checks to be exhaustive: " + res.error);
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("changeEventsCreateChangeEvent failed:", res.error);
}


const { value: result } = res;

// Handle the result
console.log(result);
}

run();
Expand Down
186 changes: 111 additions & 75 deletions swov1/README.md

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion swov1/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,14 @@ Based on:
- OpenAPI Doc
- Speakeasy CLI 1.544.0 (2.599.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.2.0] swov1
- [typescript v0.2.0] swov1

## 2025-06-18 00:03:05
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.564.0 (2.630.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.3.0] swov1
### Releases
- [NPM v0.3.0] https://www.npmjs.com/package/@solarwinds/swo-sdk-typescript/v/0.3.0 - swov1
1 change: 0 additions & 1 deletion swov1/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ async function run() {
],
});

// Handle the result
console.log(result);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { ActivateAwsIntegrationRequest } from "@solarwinds/swo-sdk-typescript/mo
let value: ActivateAwsIntegrationRequest = {
managementAccountId: "<id>",
accountId: "<id>",
enable: false,
enable: true,
};
```

Expand Down
17 changes: 0 additions & 17 deletions swov1/docs/models/components/capturemethod.md

This file was deleted.

15 changes: 0 additions & 15 deletions swov1/docs/models/components/checkforstringoperator.md

This file was deleted.

10 changes: 5 additions & 5 deletions swov1/docs/models/components/createtokenrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ let value: CreateTokenRequest = {

## Fields

| Field | Type | Required | Description |
| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- |
| `name` | *string* | :heavy_check_mark: | N/A |
| `tags` | [components.Tags](../../models/components/tags.md) | :heavy_check_mark: | N/A |
| `type` | [components.Type](../../models/components/type.md) | :heavy_check_mark: | N/A |
| Field | Type | Required | Description |
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| `name` | *string* | :heavy_check_mark: | N/A |
| `tags` | [components.Tags](../../models/components/tags.md) | :heavy_check_mark: | N/A |
| `type` | [components.CreateTokenRequestType](../../models/components/createtokenrequesttype.md) | :heavy_check_mark: | N/A |
15 changes: 15 additions & 0 deletions swov1/docs/models/components/createtokenrequesttype.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# CreateTokenRequestType

## Example Usage

```typescript
import { CreateTokenRequestType } from "@solarwinds/swo-sdk-typescript/models/components";

let value: CreateTokenRequestType = "ingestion";
```

## Values

```typescript
"ingestion"
```
17 changes: 17 additions & 0 deletions swov1/docs/models/components/createtokenresponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# CreateTokenResponse

## Example Usage

```typescript
import { CreateTokenResponse } from "@solarwinds/swo-sdk-typescript/models/components";

let value: CreateTokenResponse = {
token: "1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
};
```

## Fields

| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- |
| `token` | *string* | :heavy_check_mark: | API token. | 1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef |
12 changes: 6 additions & 6 deletions swov1/docs/models/components/customheaders.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
import { CustomHeaders } from "@solarwinds/swo-sdk-typescript/models/components";

let value: CustomHeaders = {
name: "<value>",
value: "<value>",
name: "string",
value: "string",
};
```

## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| `name` | *string* | :heavy_check_mark: | Name of a request header. Must contain only characters allowed by RFC: a-z, A-Z, 0-9, - and _. |
| `value` | *string* | :heavy_check_mark: | Value of a request header. |
| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| `name` | *string* | :heavy_check_mark: | Name of a request header. Must contain only characters allowed by RFC: a-z, A-Z, 0-9, - and _. | string |
| `value` | *string* | :heavy_check_mark: | Value of a request header. | string |
2 changes: 1 addition & 1 deletion swov1/docs/models/components/databaseauthmethod.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ let value: DatabaseAuthMethod = "basic";
## Values

```typescript
"basic" | "awsiam" | "windows" | "entraclientcert" | "entraclientsecret" | "cert"
"basic" | "awsiam" | "windows" | "entraclientsecret" | "entraclientcert" | "cert"
```
Loading