Skip to content

Commit cd4bd4a

Browse files
authored
Merge pull request #8 from solarwinds/speakeasy-sdk-regen-1758672211
chore: 🐝 Update SDK - Generate SWOV1 0.6.0
2 parents aff1963 + e8e1bcd commit cd4bd4a

243 files changed

Lines changed: 5685 additions & 2895 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.speakeasy/workflow.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.615.0
1+
speakeasyVersion: 1.656.2
22
sources:
33
SolarWinds Observability:
44
sourceNamespace: solar-winds-observability
@@ -9,12 +9,12 @@ sources:
99
- 1.0.5
1010
swov1:
1111
sourceNamespace: solar-winds-observability
12-
sourceRevisionDigest: sha256:2e887253ddc57e7a648e63eabf3491707494137e2b6610e196f57876e4db89ec
13-
sourceBlobDigest: sha256:76c9315a1b59f2260e5476653c467d252db39d3bfbbc15deeb977460a2cd7497
12+
sourceRevisionDigest: sha256:26baae1ac6f98ee8a1e4f541758ce8d22d1ac295dbc3f34ff5ec96a0f6dc60c2
13+
sourceBlobDigest: sha256:401e2f4f18f65917d584c3bb07cd8e6fb7f732de5cbf4e001ba39e0c69e51bee
1414
tags:
1515
- latest
16-
- speakeasy-sdk-regen-1754438640
17-
- 1.0.9
16+
- speakeasy-sdk-regen-1758672211
17+
- 1.0.11
1818
targets:
1919
swo:
2020
source: SolarWinds Observability
@@ -26,10 +26,10 @@ targets:
2626
swov1:
2727
source: swov1
2828
sourceNamespace: solar-winds-observability
29-
sourceRevisionDigest: sha256:2e887253ddc57e7a648e63eabf3491707494137e2b6610e196f57876e4db89ec
30-
sourceBlobDigest: sha256:76c9315a1b59f2260e5476653c467d252db39d3bfbbc15deeb977460a2cd7497
29+
sourceRevisionDigest: sha256:26baae1ac6f98ee8a1e4f541758ce8d22d1ac295dbc3f34ff5ec96a0f6dc60c2
30+
sourceBlobDigest: sha256:401e2f4f18f65917d584c3bb07cd8e6fb7f732de5cbf4e001ba39e0c69e51bee
3131
codeSamplesNamespace: solar-winds-observability-typescript-code-samples
32-
codeSamplesRevisionDigest: sha256:886e591ad75430cec21ef1e8b813d126f01914efcf7d44607663840d273bbabd
32+
codeSamplesRevisionDigest: sha256:33acc67628ee97ae3212d464f10e349c4e7f30a3fa57948d3998eede1ad517da
3333
workflow:
3434
workflowVersion: 1.0.0
3535
speakeasyVersion: latest

swov1/.devcontainer/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/instal
77
rmdir samples || true
88
mkdir samples
99

10-
npm install
11-
npm install -g ts-node
10+
npm install --ignore-scripts
11+
npm install -g ts-node --ignore-scripts
1212
npm link
1313
npm link @solarwinds/swo-sdk-typescript
1414
TS_CONFIG_CONTENT=$(cat <<EOL

swov1/.speakeasy/gen.lock

Lines changed: 176 additions & 18 deletions
Large diffs are not rendered by default.

swov1/.speakeasy/gen.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,24 @@ generation:
1919
auth:
2020
oAuth2ClientCredentialsEnabled: true
2121
oAuth2PasswordEnabled: true
22+
hoistGlobalSecurity: true
23+
schemas:
24+
allOfMergeStrategy: shallowMerge
25+
requestBodyFieldName: ""
2226
tests:
2327
generateTests: true
2428
generateNewTests: false
2529
skipResponseBodyAssertions: false
2630
typescript:
27-
version: 0.5.0
31+
version: 0.6.0
32+
acceptHeaderEnum: true
2833
additionalDependencies:
2934
dependencies: {}
3035
devDependencies: {}
3136
peerDependencies: {}
3237
additionalPackageJSON: {}
38+
additionalScripts: {}
39+
alwaysIncludeInboundAndOutbound: false
3340
author: Speakeasy
3441
baseErrorName: SwoError
3542
clientServerStatusCodesAsErrors: true
@@ -40,6 +47,7 @@ typescript:
4047
enableReactQuery: false
4148
enumFormat: union
4249
envVarPrefix: SWO
50+
exportZodModelNamespace: false
4351
flattenGlobalSecurity: true
4452
flatteningOrder: parameters-first
4553
generateExamples: true
@@ -55,11 +63,14 @@ typescript:
5563
jsonpath: rfc9535
5664
maxMethodParams: 0
5765
methodArguments: require-security-and-request
66+
modelPropertyCasing: camel
5867
moduleFormat: dual
5968
outputModelSuffix: output
6069
packageName: '@solarwinds/swo-sdk-typescript'
6170
responseFormat: flat
6271
sseFlatResponse: false
6372
templateVersion: v2
73+
unionStrategy: left-to-right
6474
usageSDKInitImports: []
6575
useIndexModules: true
76+
zodVersion: v3

swov1/README.md

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,7 @@ bun add @solarwinds/swo-sdk-typescript
6969
### Yarn
7070

7171
```bash
72-
yarn add @solarwinds/swo-sdk-typescript zod
73-
74-
# Note that Yarn does not install peer dependencies automatically. You will need
75-
# to install zod as shown above.
72+
yarn add @solarwinds/swo-sdk-typescript
7673
```
7774

7875
> [!NOTE]
@@ -274,6 +271,8 @@ run();
274271
### [dbo](docs/sdks/dbo/README.md)
275272

276273
* [observeDatabase](docs/sdks/dbo/README.md#observedatabase) - Add database observability to a database
274+
* [getConfig](docs/sdks/dbo/README.md#getconfig) - Get organization-level configuration for database observability agents/plugins
275+
* [setConfig](docs/sdks/dbo/README.md#setconfig) - Set organization-level configuration for database observability agents/plugins
277276
* [getPublicKey](docs/sdks/dbo/README.md#getpublickey) - Get public key for encrypting database credentials locally
278277
* [updateDatabase](docs/sdks/dbo/README.md#updatedatabase) - Update an observed database
279278
* [deleteDatabase](docs/sdks/dbo/README.md#deletedatabase) - Delete an observed database
@@ -286,6 +285,12 @@ run();
286285
* [listProbes](docs/sdks/dem/README.md#listprobes) - Get a list of existing synthetic probes
287286
* [getDemSettings](docs/sdks/dem/README.md#getdemsettings) - Get DEM settings
288287
* [setDemSettings](docs/sdks/dem/README.md#setdemsettings) - Set DEM settings
288+
* [createTransaction](docs/sdks/dem/README.md#createtransaction) - Create transaction monitoring configuration
289+
* [getTransaction](docs/sdks/dem/README.md#gettransaction) - Get transaction monitoring configuration
290+
* [updateTransaction](docs/sdks/dem/README.md#updatetransaction) - Update transaction monitoring configuration
291+
* [deleteTransaction](docs/sdks/dem/README.md#deletetransaction) - Delete transaction
292+
* [pauseTransactionMonitoring](docs/sdks/dem/README.md#pausetransactionmonitoring) - Pause monitoring of the transaction
293+
* [unpauseTransactionMonitoring](docs/sdks/dem/README.md#unpausetransactionmonitoring) - Unpause monitoring of the transaction
289294
* [createUri](docs/sdks/dem/README.md#createuri) - Create URI monitoring configuration
290295
* [getUri](docs/sdks/dem/README.md#geturi) - Get URI monitoring configuration
291296
* [updateUri](docs/sdks/dem/README.md#updateuri) - Update URI monitoring configuration
@@ -327,7 +332,6 @@ run();
327332
* [listMetricAttributeValues](docs/sdks/metrics/README.md#listmetricattributevalues) - List metric attribute values
328333
* [listMetricMeasurements](docs/sdks/metrics/README.md#listmetricmeasurements) - List metric measurement values, grouped by attributes, filtered by the filter. An empty list indicates no data points are available for the given parameters.
329334

330-
331335
### [tokens](docs/sdks/tokens/README.md)
332336

333337
* [createToken](docs/sdks/tokens/README.md#createtoken) - Create ingestion token
@@ -356,25 +360,33 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
356360
- [`cloudAccountsUpdateAwsIntegration`](docs/sdks/cloudaccounts/README.md#updateawsintegration) - Update AWS Integration
357361
- [`cloudAccountsValidateMgmtAccountOnboarding`](docs/sdks/cloudaccounts/README.md#validatemgmtaccountonboarding) - Validate Management Account Onboarding
358362
- [`dboDeleteDatabase`](docs/sdks/dbo/README.md#deletedatabase) - Delete an observed database
363+
- [`dboGetConfig`](docs/sdks/dbo/README.md#getconfig) - Get organization-level configuration for database observability agents/plugins
359364
- [`dboGetPluginConfig`](docs/sdks/dbo/README.md#getpluginconfig) - Get configuration of plugins observing a database
360365
- [`dboGetPlugins`](docs/sdks/dbo/README.md#getplugins) - Get status of plugins observing a database
361366
- [`dboGetPublicKey`](docs/sdks/dbo/README.md#getpublickey) - Get public key for encrypting database credentials locally
362367
- [`dboObserveDatabase`](docs/sdks/dbo/README.md#observedatabase) - Add database observability to a database
363368
- [`dboPluginOperation`](docs/sdks/dbo/README.md#pluginoperation) - Apply an operation on a database observability plugin
369+
- [`dboSetConfig`](docs/sdks/dbo/README.md#setconfig) - Set organization-level configuration for database observability agents/plugins
364370
- [`dboUpdateDatabase`](docs/sdks/dbo/README.md#updatedatabase) - Update an observed database
371+
- [`demCreateTransaction`](docs/sdks/dem/README.md#createtransaction) - Create transaction monitoring configuration
365372
- [`demCreateUri`](docs/sdks/dem/README.md#createuri) - Create URI monitoring configuration
366373
- [`demCreateWebsite`](docs/sdks/dem/README.md#createwebsite) - Create website monitoring configuration
374+
- [`demDeleteTransaction`](docs/sdks/dem/README.md#deletetransaction) - Delete transaction
367375
- [`demDeleteUri`](docs/sdks/dem/README.md#deleteuri) - Delete URI
368376
- [`demDeleteWebsite`](docs/sdks/dem/README.md#deletewebsite) - Delete website
369377
- [`demGetDemSettings`](docs/sdks/dem/README.md#getdemsettings) - Get DEM settings
378+
- [`demGetTransaction`](docs/sdks/dem/README.md#gettransaction) - Get transaction monitoring configuration
370379
- [`demGetUri`](docs/sdks/dem/README.md#geturi) - Get URI monitoring configuration
371380
- [`demGetWebsite`](docs/sdks/dem/README.md#getwebsite) - Get website monitoring configuration
372381
- [`demListProbes`](docs/sdks/dem/README.md#listprobes) - Get a list of existing synthetic probes
382+
- [`demPauseTransactionMonitoring`](docs/sdks/dem/README.md#pausetransactionmonitoring) - Pause monitoring of the transaction
373383
- [`demPauseUriMonitoring`](docs/sdks/dem/README.md#pauseurimonitoring) - Pause monitoring of the URI
374384
- [`demPauseWebsiteMonitoring`](docs/sdks/dem/README.md#pausewebsitemonitoring) - Pause monitoring of a website
375385
- [`demSetDemSettings`](docs/sdks/dem/README.md#setdemsettings) - Set DEM settings
386+
- [`demUnpauseTransactionMonitoring`](docs/sdks/dem/README.md#unpausetransactionmonitoring) - Unpause monitoring of the transaction
376387
- [`demUnpauseUriMonitoring`](docs/sdks/dem/README.md#unpauseurimonitoring) - Unpause monitoring of the URI
377388
- [`demUnpauseWebsiteMonitoring`](docs/sdks/dem/README.md#unpausewebsitemonitoring) - Unpause monitoring of a website
389+
- [`demUpdateTransaction`](docs/sdks/dem/README.md#updatetransaction) - Update transaction monitoring configuration
378390
- [`demUpdateUri`](docs/sdks/dem/README.md#updateuri) - Update URI monitoring configuration
379391
- [`demUpdateWebsite`](docs/sdks/dem/README.md#updatewebsite) - Update website monitoring configuration
380392
- [`entitiesGetEntityById`](docs/sdks/entities/README.md#getentitybyid) - Get an entity by ID
@@ -612,12 +624,12 @@ run();
612624

613625

614626
**Inherit from [`SwoError`](./src/models/errors/swoerror.ts)**:
615-
* [`CommonNotFoundErrorResponse`](./src/models/errors/commonnotfounderrorresponse.ts): The server cannot find the requested resource. Status code `404`. Applicable to 27 of 44 methods.*
616-
* [`CommonBadRequestErrorResponse`](./src/models/errors/commonbadrequesterrorresponse.ts): The server could not understand the request due to invalid syntax. Status code `400`. Applicable to 25 of 44 methods.*
617-
* [`MetricsMetricForbiddenErrorResponse`](./src/models/errors/metricsmetricforbiddenerrorresponse.ts): Access is forbidden. Status code `403`. Applicable to 2 of 44 methods.*
618-
* [`CommonForbiddenErrorResponse`](./src/models/errors/commonforbiddenerrorresponse.ts): Access is forbidden. Status code `403`. Applicable to 1 of 44 methods.*
619-
* [`CommonConflictErrorResponse`](./src/models/errors/commonconflicterrorresponse.ts): The request conflicts with the current state of the server. Status code `409`. Applicable to 1 of 44 methods.*
620-
* [`CommonUnavailableErrorResponse`](./src/models/errors/commonunavailableerrorresponse.ts): Service unavailable. Status code `503`. Applicable to 1 of 44 methods.*
627+
* [`CommonNotFoundErrorResponse`](./src/models/errors/commonnotfounderrorresponse.ts): The server cannot find the requested resource. Status code `404`. Applicable to 32 of 52 methods.*
628+
* [`CommonBadRequestErrorResponse`](./src/models/errors/commonbadrequesterrorresponse.ts): The server could not understand the request due to invalid syntax. Status code `400`. Applicable to 28 of 52 methods.*
629+
* [`MetricsMetricForbiddenErrorResponse`](./src/models/errors/metricsmetricforbiddenerrorresponse.ts): Access is forbidden. Status code `403`. Applicable to 2 of 52 methods.*
630+
* [`CommonForbiddenErrorResponse`](./src/models/errors/commonforbiddenerrorresponse.ts): Access is forbidden. Status code `403`. Applicable to 1 of 52 methods.*
631+
* [`CommonConflictErrorResponse`](./src/models/errors/commonconflicterrorresponse.ts): The request conflicts with the current state of the server. Status code `409`. Applicable to 1 of 52 methods.*
632+
* [`CommonUnavailableErrorResponse`](./src/models/errors/commonunavailableerrorresponse.ts): Service unavailable. Status code `503`. Applicable to 1 of 52 methods.*
621633
* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
622634

623635
</details>
@@ -642,7 +654,8 @@ The default server `https://api.na-01.cloud.solarwinds.com` contains variables a
642654
import { Swo } from "@solarwinds/swo-sdk-typescript";
643655

644656
const swo = new Swo({
645-
region: "<value>",
657+
serverIdx: 0,
658+
region: "na-01",
646659
apiToken: process.env["SWO_API_TOKEN"] ?? "",
647660
});
648661

@@ -755,7 +768,7 @@ httpClient.addHook("requestError", (error, request) => {
755768
console.groupEnd();
756769
});
757770

758-
const sdk = new Swo({ httpClient });
771+
const sdk = new Swo({ httpClient: httpClient });
759772
```
760773
<!-- End Custom HTTP Client [http-client] -->
761774

swov1/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,14 @@ Based on:
4444
### Generated
4545
- [typescript v0.5.0] swov1
4646
### Releases
47-
- [NPM v0.5.0] https://www.npmjs.com/package/@solarwinds/swo-sdk-typescript/v/0.5.0 - swov1
47+
- [NPM v0.5.0] https://www.npmjs.com/package/@solarwinds/swo-sdk-typescript/v/0.5.0 - swov1
48+
49+
## 2025-11-14 00:03:17
50+
### Changes
51+
Based on:
52+
- OpenAPI Doc
53+
- Speakeasy CLI 1.656.2 (2.753.6) https://github.com/speakeasy-api/speakeasy
54+
### Generated
55+
- [typescript v0.6.0] swov1
56+
### Releases
57+
- [NPM v0.6.0] https://www.npmjs.com/package/@solarwinds/swo-sdk-typescript/v/0.6.0 - swov1

swov1/RUNTIMES.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features:
44

5-
* [Web Fetch API][web-fetch]
6-
* [Web Streams API][web-streams] and in particular `ReadableStream`
7-
* [Async iterables][async-iter] using `Symbol.asyncIterator`
5+
- [Web Fetch API][web-fetch]
6+
- [Web Streams API][web-streams] and in particular `ReadableStream`
7+
- [Async iterables][async-iter] using `Symbol.asyncIterator`
88

99
[web-fetch]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
1010
[web-streams]: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API
@@ -25,7 +25,7 @@ Runtime environments that are explicitly supported are:
2525

2626
The following `tsconfig.json` options are recommended for projects using this
2727
SDK in order to get static type support for features like async iterables,
28-
streams and `fetch`-related APIs ([`for await...of`][for-await-of],
28+
streams and `fetch`-related APIs ([`for await...of`][for-await-of],
2929
[`AbortSignal`][abort-signal], [`Request`][request], [`Response`][response] and
3030
so on):
3131

@@ -38,11 +38,11 @@ so on):
3838
{
3939
"compilerOptions": {
4040
"target": "es2020", // or higher
41-
"lib": ["es2020", "dom", "dom.iterable"],
41+
"lib": ["es2020", "dom", "dom.iterable"]
4242
}
4343
}
4444
```
4545

4646
While `target` can be set to older ECMAScript versions, it may result in extra,
4747
unnecessary compatibility code being generated if you are not targeting old
48-
runtimes.
48+
runtimes.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# DboConfig
2+
3+
## Example Usage
4+
5+
```typescript
6+
import { DboConfig } from "@solarwinds/swo-sdk-typescript/models/components";
7+
8+
let value: DboConfig = {
9+
configOptions: [
10+
{
11+
key: "<key>",
12+
value: "<value>",
13+
},
14+
],
15+
};
16+
```
17+
18+
## Fields
19+
20+
| Field | Type | Required | Description |
21+
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
22+
| `configOptions` | [components.CommonKeyValuePair](../../models/components/commonkeyvaluepair.md)[] | :heavy_check_mark: | Organization-level configuration options for database observability agents/plugins |

0 commit comments

Comments
 (0)