Skip to content

Commit 9f974ac

Browse files
authored
Merge pull request #5 from speakeasy-api/speakeasy-sdk-regen-1722039147
chore: 🐝 Update SDK - Generate 4.1.0-rc.1
2 parents 497a397 + 253f56c commit 9f974ac

File tree

195 files changed

+1115
-883
lines changed

Some content is hidden

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

195 files changed

+1115
-883
lines changed

.speakeasy/gen.lock

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 89968bf0-a755-4d50-9acb-d47410010f05
33
management:
4-
docChecksum: 5b362866a3e7a85c830c6cb1f1cf4896
4+
docChecksum: 312822a7ccdbf7c77dbbfeef49fb2053
55
docVersion: 0.4.0 .
6-
speakeasyVersion: 1.345.3
7-
generationVersion: 2.378.3
8-
releaseVersion: 4.0.0
9-
configChecksum: 4e0644a745eb53eb49cebe97a15c01de
6+
speakeasyVersion: 1.349.0
7+
generationVersion: 2.382.0
8+
releaseVersion: 4.1.0-rc.1
9+
configChecksum: 8f67fa7cdfd65cf01e3085996f428885
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-typescript.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/speakeasy-api/speakeasy-client-sdk-typescript
@@ -15,10 +15,11 @@ features:
1515
typescript:
1616
acceptHeaders: 2.81.2
1717
additionalDependencies: 0.1.0
18-
core: 3.11.9
18+
core: 3.11.11
1919
defaultEnabledRetries: 0.1.0
2020
deprecations: 2.81.1
2121
downloadStreams: 0.1.1
22+
envVarSecurityUsage: 0.1.0
2223
examples: 2.81.4
2324
globalSecurity: 2.82.9
2425
globalSecurityCallbacks: 0.1.0
@@ -45,6 +46,7 @@ generatedFiles:
4546
- src/sdk/shorturls.ts
4647
- src/sdk/suggest.ts
4748
- src/sdk/embeds.ts
49+
- src/sdk/workspaces.ts
4850
- src/sdk/events.ts
4951
- src/sdk/sdk.ts
5052
- .eslintrc.cjs
@@ -55,6 +57,7 @@ generatedFiles:
5557
- src/index.ts
5658
- src/lib/base64.ts
5759
- src/lib/config.ts
60+
- src/lib/dlv.ts
5861
- src/lib/encodings.ts
5962
- src/lib/http.ts
6063
- src/lib/is-plain-object.ts
@@ -118,15 +121,16 @@ generatedFiles:
118121
- src/sdk/models/shared/githubmissingpublishingsecretsresponse.ts
119122
- src/sdk/models/shared/githubstorepublishingsecretsrequest.ts
120123
- src/sdk/models/shared/githubtriggeractionrequest.ts
124+
- src/sdk/models/shared/organization.ts
121125
- src/sdk/models/shared/organizationusageresponse.ts
122126
- src/sdk/models/shared/organizationusage.ts
123-
- src/sdk/models/shared/organization.ts
124127
- src/sdk/models/shared/report.ts
125128
- src/sdk/models/shared/shorturl.ts
126129
- src/sdk/models/shared/suggestedoperationids.ts
127130
- src/sdk/models/shared/suggestoperationidsopts.ts
128131
- src/sdk/models/shared/embedaccesstokenresponse.ts
129132
- src/sdk/models/shared/embedtoken.ts
133+
- src/sdk/models/shared/workspace.ts
130134
- src/sdk/models/shared/clievent.ts
131135
- src/sdk/models/shared/interactiontype.ts
132136
- src/sdk/models/shared/targetsdk.ts
@@ -176,6 +180,7 @@ generatedFiles:
176180
- src/sdk/models/operations/fetchpublishingprs.ts
177181
- src/sdk/models/operations/getaction.ts
178182
- src/sdk/models/operations/githubcheckpublishingsecrets.ts
183+
- src/sdk/models/operations/getorganization.ts
179184
- src/sdk/models/operations/getorganizationusage.ts
180185
- src/sdk/models/operations/getorganizations.ts
181186
- src/sdk/models/operations/getchangesreportsignedurl.ts
@@ -188,6 +193,7 @@ generatedFiles:
188193
- src/sdk/models/operations/getembedaccesstoken.ts
189194
- src/sdk/models/operations/getvalidembedaccesstokens.ts
190195
- src/sdk/models/operations/revokeembedaccesstoken.ts
196+
- src/sdk/models/operations/getworkspace.ts
191197
- src/sdk/models/operations/getworkspaceeventsbytarget.ts
192198
- src/sdk/models/operations/getworkspacetargets.ts
193199
- src/sdk/models/operations/postworkspaceevents.ts
@@ -249,10 +255,10 @@ generatedFiles:
249255
- docs/sdk/models/shared/githubmissingpublishingsecretsresponse.md
250256
- docs/sdk/models/shared/githubstorepublishingsecretsrequest.md
251257
- docs/sdk/models/shared/githubtriggeractionrequest.md
252-
- docs/sdk/models/shared/organizationusageresponse.md
253-
- docs/sdk/models/shared/organizationusage.md
254258
- docs/sdk/models/shared/organizationaccounttype.md
255259
- docs/sdk/models/shared/organization.md
260+
- docs/sdk/models/shared/organizationusageresponse.md
261+
- docs/sdk/models/shared/organizationusage.md
256262
- docs/sdk/models/shared/type.md
257263
- docs/sdk/models/shared/report.md
258264
- docs/sdk/models/shared/shorturl.md
@@ -262,6 +268,7 @@ generatedFiles:
262268
- docs/sdk/models/shared/suggestoperationidsopts.md
263269
- docs/sdk/models/shared/embedaccesstokenresponse.md
264270
- docs/sdk/models/shared/embedtoken.md
271+
- docs/sdk/models/shared/workspace.md
265272
- docs/sdk/models/shared/generatebumptype.md
266273
- docs/sdk/models/shared/openapidiffbumptype.md
267274
- docs/sdk/models/shared/clievent.md
@@ -349,6 +356,8 @@ generatedFiles:
349356
- docs/sdk/models/operations/getactionresponse.md
350357
- docs/sdk/models/operations/githubcheckpublishingsecretsrequest.md
351358
- docs/sdk/models/operations/githubcheckpublishingsecretsresponse.md
359+
- docs/sdk/models/operations/getorganizationrequest.md
360+
- docs/sdk/models/operations/getorganizationresponse.md
352361
- docs/sdk/models/operations/getorganizationusageresponse.md
353362
- docs/sdk/models/operations/getorganizationsresponse.md
354363
- docs/sdk/models/operations/getchangesreportsignedurlrequest.md
@@ -370,6 +379,9 @@ generatedFiles:
370379
- docs/sdk/models/operations/getembedaccesstokenresponse.md
371380
- docs/sdk/models/operations/getvalidembedaccesstokensresponse.md
372381
- docs/sdk/models/operations/revokeembedaccesstokenrequest.md
382+
- docs/sdk/models/operations/getworkspaceglobals.md
383+
- docs/sdk/models/operations/getworkspacerequest.md
384+
- docs/sdk/models/operations/getworkspaceresponse.md
373385
- docs/sdk/models/operations/getworkspaceeventsbytargetglobals.md
374386
- docs/sdk/models/operations/getworkspaceeventsbytargetrequest.md
375387
- docs/sdk/models/operations/getworkspaceeventsbytargetresponse.md
@@ -396,6 +408,7 @@ generatedFiles:
396408
- docs/sdks/shorturls/README.md
397409
- docs/sdks/suggest/README.md
398410
- docs/sdks/embeds/README.md
411+
- docs/sdks/workspaces/README.md
399412
- docs/sdks/events/README.md
400413
- USAGE.md
401414
- .gitattributes

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.345.3
1+
speakeasyVersion: 1.349.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:8848109787e4f3fff8ce742b76a440e359126a64bfbf7d296e268c07b22f0688
6-
sourceBlobDigest: sha256:df932434792c6cecedad99f00e5d48ef90cfc7410c41079062384a36eb76adf2
5+
sourceRevisionDigest: sha256:417c12e58371aea5d13d8371f6701239551b2867851855d500610693a68c7c0d
6+
sourceBlobDigest: sha256:67a2d40a2a3e329e03a5c9a9270f0996f9727863eb3083a9e38ccdc796844031
77
tags:
88
- latest
99
- main
1010
targets:
1111
speakeasy-client-sdk-typescript:
1212
source: my-source
1313
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:8848109787e4f3fff8ce742b76a440e359126a64bfbf7d296e268c07b22f0688
15-
sourceBlobDigest: sha256:df932434792c6cecedad99f00e5d48ef90cfc7410c41079062384a36eb76adf2
14+
sourceRevisionDigest: sha256:417c12e58371aea5d13d8371f6701239551b2867851855d500610693a68c7c0d
15+
sourceBlobDigest: sha256:67a2d40a2a3e329e03a5c9a9270f0996f9727863eb3083a9e38ccdc796844031
1616
outLocation: /github/workspace/repo
1717
workflow:
1818
workflowVersion: 1.0.0

README.md

Lines changed: 13 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ yarn add @speakeasy-api/speakeasy-client-sdk-typescript zod
3939
```typescript
4040
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
4141

42-
const speakeasy = new Speakeasy({
43-
security: {
44-
apiKey: "<YOUR_API_KEY_HERE>",
45-
},
46-
});
42+
const speakeasy = new Speakeasy();
4743

4844
async function run() {
4945
const result = await speakeasy.apis.getApis({});
@@ -136,6 +132,7 @@ run();
136132
### [organizations](docs/sdks/organizations/README.md)
137133

138134
* [createFreeTrial](docs/sdks/organizations/README.md#createfreetrial) - Create a free trial for an organization
135+
* [getOrganization](docs/sdks/organizations/README.md#getorganization) - Get organization
139136
* [getOrganizationUsage](docs/sdks/organizations/README.md#getorganizationusage) - Get billing usage summary for a particular organization
140137
* [getOrganizations](docs/sdks/organizations/README.md#getorganizations) - Get organizations for a user
141138

@@ -161,6 +158,10 @@ run();
161158
* [getValidEmbedAccessTokens](docs/sdks/embeds/README.md#getvalidembedaccesstokens) - Get all valid embed access tokens for the current workspace.
162159
* [revokeEmbedAccessToken](docs/sdks/embeds/README.md#revokeembedaccesstoken) - Revoke an embed access EmbedToken.
163160

161+
### [workspaces](docs/sdks/workspaces/README.md)
162+
163+
* [getWorkspace](docs/sdks/workspaces/README.md#getworkspace) - Get workspace
164+
164165
### [events](docs/sdks/events/README.md)
165166

166167
* [getWorkspaceEventsByTarget](docs/sdks/events/README.md#getworkspaceeventsbytarget) - Load recent events for a particular workspace
@@ -191,11 +192,7 @@ Validation errors can also occur when either method arguments or data returned f
191192
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
192193
import { SDKValidationError } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/errors";
193194

194-
const speakeasy = new Speakeasy({
195-
security: {
196-
apiKey: "<YOUR_API_KEY_HERE>",
197-
},
198-
});
195+
const speakeasy = new Speakeasy();
199196

200197
async function run() {
201198
let result;
@@ -246,9 +243,6 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
246243

247244
const speakeasy = new Speakeasy({
248245
server: "prod",
249-
security: {
250-
apiKey: "<YOUR_API_KEY_HERE>",
251-
},
252246
});
253247

254248
async function run() {
@@ -275,9 +269,6 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
275269

276270
const speakeasy = new Speakeasy({
277271
serverURL: "https://api.prod.speakeasyapi.dev",
278-
security: {
279-
apiKey: "<YOUR_API_KEY_HERE>",
280-
},
281272
});
282273

283274
async function run() {
@@ -364,11 +355,7 @@ You can set the security parameters through the `security` optional parameter wh
364355
```typescript
365356
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
366357

367-
const speakeasy = new Speakeasy({
368-
security: {
369-
apiKey: "<YOUR_API_KEY_HERE>",
370-
},
371-
});
358+
const speakeasy = new Speakeasy();
372359

373360
async function run() {
374361
const result = await speakeasy.apis.deleteApi({
@@ -390,7 +377,7 @@ run();
390377

391378
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.
392379

393-
For example, you can set `workspaceID` to `"<value>"` at SDK initialization and then you do not have to pass the same value on calls to operations like `getWorkspaceEventsByTarget`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
380+
For example, you can set `workspaceID` to `"<value>"` at SDK initialization and then you do not have to pass the same value on calls to operations like `getWorkspace`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.
394381

395382

396383
### Available Globals
@@ -407,16 +394,10 @@ The following global parameter is available.
407394
```typescript
408395
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
409396

410-
const speakeasy = new Speakeasy({
411-
security: {
412-
apiKey: "<YOUR_API_KEY_HERE>",
413-
},
414-
});
397+
const speakeasy = new Speakeasy();
415398

416399
async function run() {
417-
const result = await speakeasy.events.getWorkspaceEventsByTarget({
418-
targetID: "<value>",
419-
});
400+
const result = await speakeasy.workspaces.getWorkspace({});
420401

421402
// Handle the result
422403
console.log(result);
@@ -436,11 +417,7 @@ To change the default retry strategy for a single API call, simply provide a ret
436417
```typescript
437418
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
438419

439-
const speakeasy = new Speakeasy({
440-
security: {
441-
apiKey: "<YOUR_API_KEY_HERE>",
442-
},
443-
});
420+
const speakeasy = new Speakeasy();
444421

445422
async function run() {
446423
const result = await speakeasy.apis.deleteApi(
@@ -485,9 +462,6 @@ const speakeasy = new Speakeasy({
485462
},
486463
retryConnectionErrors: false,
487464
},
488-
security: {
489-
apiKey: "<YOUR_API_KEY_HERE>",
490-
},
491465
});
492466

493467
async function run() {
@@ -529,11 +503,7 @@ Certain SDK methods accept files as part of a multi-part request. It is possible
529503
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
530504
import { openAsBlob } from "node:fs";
531505

532-
const speakeasy = new Speakeasy({
533-
security: {
534-
apiKey: "<YOUR_API_KEY_HERE>",
535-
},
536-
});
506+
const speakeasy = new Speakeasy();
537507

538508
async function run() {
539509
const result = await speakeasy.schemas.registerSchema({

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1626,4 +1626,14 @@ Based on:
16261626
### Generated
16271627
- [typescript v4.0.0] .
16281628
### Releases
1629-
- [NPM v4.0.0] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/4.0.0 - .
1629+
- [NPM v4.0.0] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/4.0.0 - .
1630+
1631+
## 2024-07-31 10:17:43
1632+
### Changes
1633+
Based on:
1634+
- OpenAPI Doc
1635+
- Speakeasy CLI 1.349.0 (2.382.0) https://github.com/speakeasy-api/speakeasy
1636+
### Generated
1637+
- [typescript v4.1.0-rc.1] .
1638+
### Releases
1639+
- [NPM v4.1.0-rc.1] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/4.1.0-rc.1 - .

USAGE.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
```typescript
33
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
44

5-
const speakeasy = new Speakeasy({
6-
security: {
7-
apiKey: "<YOUR_API_KEY_HERE>",
8-
},
9-
});
5+
const speakeasy = new Speakeasy();
106

117
async function run() {
128
const result = await speakeasy.apis.getApis({});
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# GetOrganizationRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------- | -------------------------------------- | -------------------------------------- | -------------------------------------- |
8+
| `organizationID` | *string* | :heavy_check_mark: | Unique identifier of the organization. |
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# GetOrganizationResponse
2+
3+
4+
## Supported Types
5+
6+
### `shared.ErrorT`
7+
8+
```typescript
9+
const value: shared.ErrorT = /* values here */
10+
```
11+
12+
### `shared.Organization`
13+
14+
```typescript
15+
const value: shared.Organization = /* values here */
16+
```
17+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# GetWorkspaceGlobals
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `workspaceID` | *string* | :heavy_minus_sign: | N/A |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# GetWorkspaceRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- |
8+
| `workspaceID` | *string* | :heavy_minus_sign: | Unique identifier of the workspace. |
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# GetWorkspaceResponse
2+
3+
4+
## Supported Types
5+
6+
### `shared.ErrorT`
7+
8+
```typescript
9+
const value: shared.ErrorT = /* values here */
10+
```
11+
12+
### `shared.Workspace`
13+
14+
```typescript
15+
const value: shared.Workspace = /* values here */
16+
```
17+

0 commit comments

Comments
 (0)