Skip to content

Commit 8b16106

Browse files
committed
## Typescript SDK Changes:
* `speakeasy.auth.getAccess()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.auth.getUser()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.auth.validateApiKey()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.codeSamples.generateCodeSamplePreview()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.codeSamples.generateCodeSamplePreviewAsync()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.codeSamples.get()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.codeSamples.getCodeSamplePreviewAsync()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.github.checkAccess()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.github.checkPublishingPRs()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.github.checkPublishingSecrets()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.github.configureCodeSamples()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.github.configureMintlifyRepo()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.github.configureTarget()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.github.getAction()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.github.getSetup()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.github.linkGithub()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.github.storePublishingSecrets()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.github.triggerAction()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.organizations.create()`: * `request` **Changed** (Breaking ⚠️) * `response.workosId` **Added** * `speakeasy.organizations.createBillingAddOns()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.organizations.createFreeTrial()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.organizations.deleteBillingAddOn()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.organizations.get()`: * `request.security` **Added** (Breaking ⚠️) * `response.workosId` **Added** * `speakeasy.organizations.getAll()`: * `request.security` **Added** (Breaking ⚠️) * `response.[].workosId` **Added** * `speakeasy.organizations.getBillingAddOns()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.organizations.getBillingOperations()`: * `request` **Changed** (Breaking ⚠️) * `response` **Changed** (Breaking ⚠️) * `speakeasy.organizations.getUsage()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.publishingTokens.create()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.publishingTokens.delete()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.publishingTokens.get()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.publishingTokens.list()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.publishingTokens.resolveMetadata()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.publishingTokens.resolveTarget()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.publishingTokens.update()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.reports.getChangesReportSignedUrl()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.reports.getLintingReportSignedUrl()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.reports.uploadReport()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.schemaStore.createSchemaStoreItem()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.shortUrLs.create()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.suggest.suggest()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.suggest.suggestItems()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.suggest.suggestOpenApi()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.suggest.suggestOpenApiRegistry()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.workspaces.create()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.workspaces.createToken()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.workspaces.deleteToken()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.workspaces.get()`: * `request.security` **Added** (Breaking ⚠️) * `response.organization.workosId` **Added** * `speakeasy.workspaces.getAll()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.workspaces.getById()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.workspaces.getFeatureFlags()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.workspaces.getSettings()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.workspaces.getTeam()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.workspaces.getTokens()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.workspaces.grantAccess()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.workspaces.revokeAccess()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.workspaces.setFeatureFlags()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.workspaces.update()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.workspaces.updateSettings()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.events.getEventsByTarget()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.events.getTargets()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.events.getTargetsDeprecated()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.events.getTargetsSummary()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.events.post()`: `request.security` **Added** (Breaking ⚠️) * `speakeasy.events.search()`: `request.security` **Added** (Breaking ⚠️)
1 parent d67fd88 commit 8b16106

429 files changed

Lines changed: 9418 additions & 4667 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.

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
!/**/*.map
1313

1414
/eslint.config.mjs
15+
/.oxlintrc.json
1516
/cjs
1617
/.tshy
1718
/.tshy-*

.speakeasy/gen.lock

Lines changed: 899 additions & 821 deletions
Large diffs are not rendered by default.

.speakeasy/workflow.lock

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
speakeasyVersion: 1.736.1
1+
speakeasyVersion: 1.757.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:b2a524854e5ca52cdd7bec6ad83685feaf1fa49010e9da4f990a337908e630e3
6-
sourceBlobDigest: sha256:d4720c8b89c02fb53a33d4c58b04b0661044bc4a2c02226a328e0d35772defc9
5+
sourceRevisionDigest: sha256:00924c7d2db0f0445fdada9f2355791d575e6d55f9db1e03bda8a8c6168643f7
6+
sourceBlobDigest: sha256:014016abd23006868fb600997cce487037650cb710311e168954143c1686b96e
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1753835013
109
- 0.4.0
1110
targets:
1211
speakeasy-client-sdk-typescript:
1312
source: my-source
1413
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:b2a524854e5ca52cdd7bec6ad83685feaf1fa49010e9da4f990a337908e630e3
16-
sourceBlobDigest: sha256:d4720c8b89c02fb53a33d4c58b04b0661044bc4a2c02226a328e0d35772defc9
14+
sourceRevisionDigest: sha256:00924c7d2db0f0445fdada9f2355791d575e6d55f9db1e03bda8a8c6168643f7
15+
sourceBlobDigest: sha256:014016abd23006868fb600997cce487037650cb710311e168954143c1686b96e
1716
codeSamplesNamespace: my-source-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:63ed5704a7f9637a517c123c4e07b4b68c5e10eb327ff226e07d9686087bb6f7
17+
codeSamplesRevisionDigest: sha256:cd2bc5bbaa64c27c2021ea1bcbce6fdd377bc7c1fbe6a5c845184c9f66db734e
1918
workflow:
2019
workflowVersion: 1.0.0
2120
speakeasyVersion: latest

FUNCTIONS.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,7 @@ import { artifactsCreateRemoteSource } from "@speakeasy-api/speakeasy-client-sdk
2424

2525
// Use `SpeakeasyCore` for best tree-shaking performance.
2626
// You can create one instance of it to use across an application.
27-
const speakeasy = new SpeakeasyCore({
28-
security: {
29-
apiKey: "<YOUR_API_KEY_HERE>",
30-
},
31-
});
27+
const speakeasy = new SpeakeasyCore();
3228

3329
async function run() {
3430
const res = await artifactsCreateRemoteSource(speakeasy);

REACT_QUERY.md

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@ import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript";
2222
import { SpeakeasyProvider } from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query";
2323

2424
const queryClient = new QueryClient();
25-
const speakeasy = new SpeakeasyCore({
26-
security: {
27-
apiKey: "<YOUR_API_KEY_HERE>",
28-
},
29-
});
25+
const speakeasy = new SpeakeasyCore();
3026

3127
// Retries are handled by the underlying SDK.
3228
queryClient.setQueryDefaults(["@speakeasy-api/speakeasy-client-sdk-typescript"], { retry: false });
@@ -233,7 +229,9 @@ infinite scrolling and "load more" user interfaces.
233229
import { useEventsGetTargetsSummaryInfinite } from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/eventsGetTargetsSummary.js";
234230

235231
export function Example() {
236-
const { data, error, status, fetchNextPage, hasNextPage } = useEventsGetTargetsSummaryInfinite({});
232+
const { data, error, status, fetchNextPage, hasNextPage } = useEventsGetTargetsSummaryInfinite({
233+
apiKey: "<YOUR_API_KEY_HERE>",
234+
}, {});
237235

238236
return (
239237
<div>
@@ -267,11 +265,7 @@ import { SpeakeasyProvider } from "@speakeasy-api/speakeasy-client-sdk-typescrip
267265
import { useArtifactsGetBlobSuspense } from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query/artifactsGetBlob.js";
268266

269267
const queryClient = new QueryClient();
270-
const speakeasy = new SpeakeasyCore({
271-
security: {
272-
apiKey: "<YOUR_API_KEY_HERE>",
273-
},
274-
});
268+
const speakeasy = new SpeakeasyCore();
275269

276270
export function App() {
277271
return (
@@ -330,11 +324,7 @@ import { prefetchArtifactsGetBlob } from "@speakeasy-api/speakeasy-client-sdk-ty
330324

331325
export default async function Page() {
332326
const queryClient = new QueryClient();
333-
const speakeasy = new SpeakeasyCore({
334-
security: {
335-
apiKey: "<YOUR_API_KEY_HERE>",
336-
},
337-
});
327+
const speakeasy = new SpeakeasyCore();
338328

339329
await prefetchArtifactsGetBlob(queryClient, speakeasy, {
340330
organizationSlug: "<value>",

README.md

Lines changed: 36 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
<!-- Start Summary [summary] -->
1717
## Summary
1818

19-
Speakeasy API: The Subscriptions API manages subscriptions for CLI and registry events
19+
Speakeasy API: The Speakeasy API allows teams to manage common operations with their APIs
20+
The Subscriptions API manages subscriptions for CLI and registry events
2021

2122
For more information about the API: [The Speakeasy Platform Documentation](/docs)
2223
<!-- End Summary [summary] -->
@@ -103,8 +104,6 @@ Add the following server definition to your `claude_desktop_config.json` file:
103104
"--",
104105
"mcp", "start",
105106
"--api-key", "...",
106-
"--bearer", "...",
107-
"--workspace-identifier", "...",
108107
"--workspace-id", "..."
109108
]
110109
}
@@ -129,8 +128,6 @@ Create a `.cursor/mcp.json` file in your project root with the following content
129128
"--",
130129
"mcp", "start",
131130
"--api-key", "...",
132-
"--bearer", "...",
133-
"--workspace-identifier", "...",
134131
"--workspace-id", "..."
135132
]
136133
}
@@ -179,11 +176,7 @@ npx -y --package @speakeasy-api/speakeasy-client-sdk-typescript -- mcp start --h
179176
```typescript
180177
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
181178

182-
const speakeasy = new Speakeasy({
183-
security: {
184-
apiKey: "<YOUR_API_KEY_HERE>",
185-
},
186-
});
179+
const speakeasy = new Speakeasy();
187180

188181
async function run() {
189182
await speakeasy.artifacts.createRemoteSource();
@@ -345,11 +338,7 @@ run();
345338
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
346339
import * as errors from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/errors";
347340

348-
const speakeasy = new Speakeasy({
349-
security: {
350-
apiKey: "<YOUR_API_KEY_HERE>",
351-
},
352-
});
341+
const speakeasy = new Speakeasy();
353342

354343
async function run() {
355344
try {
@@ -420,9 +409,6 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
420409

421410
const speakeasy = new Speakeasy({
422411
server: "prod",
423-
security: {
424-
apiKey: "<YOUR_API_KEY_HERE>",
425-
},
426412
});
427413

428414
async function run() {
@@ -441,9 +427,6 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
441427

442428
const speakeasy = new Speakeasy({
443429
serverURL: "https://api.prod.speakeasy.com",
444-
security: {
445-
apiKey: "<YOUR_API_KEY_HERE>",
446-
},
447430
});
448431

449432
async function run() {
@@ -517,22 +500,18 @@ const sdk = new Speakeasy({ httpClient: httpClient });
517500

518501
### Per-Client Security Schemes
519502

520-
This SDK supports the following security schemes globally:
503+
This SDK supports the following security scheme globally:
521504

522-
| Name | Type | Scheme |
523-
| --------------------- | ------ | ----------- |
524-
| `apiKey` | apiKey | API key |
525-
| `bearer` | http | HTTP Bearer |
526-
| `workspaceIdentifier` | apiKey | API key |
505+
| Name | Type | Scheme |
506+
| -------- | ------ | ------- |
507+
| `apiKey` | apiKey | API key |
527508

528-
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. The selected scheme will be used by default to authenticate with the API for all operations that support it. For example:
509+
To authenticate with the API the `apiKey` parameter must be set when initializing the SDK client instance. For example:
529510
```typescript
530511
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
531512

532513
const speakeasy = new Speakeasy({
533-
security: {
534-
apiKey: "<YOUR_API_KEY_HERE>",
535-
},
514+
apiKey: "<YOUR_API_KEY_HERE>",
536515
});
537516

538517
async function run() {
@@ -541,6 +520,24 @@ async function run() {
541520

542521
run();
543522

523+
```
524+
525+
### Per-Operation Security Schemes
526+
527+
Some operations in this SDK require the security scheme to be specified at the request level. For example:
528+
```typescript
529+
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
530+
531+
const speakeasy = new Speakeasy();
532+
533+
async function run() {
534+
const result = await speakeasy.auth.getAccess({}, {});
535+
536+
console.log(result);
537+
}
538+
539+
run();
540+
544541
```
545542
<!-- End Authentication [security] -->
546543

@@ -553,11 +550,7 @@ To change the default retry strategy for a single API call, simply provide a ret
553550
```typescript
554551
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
555552

556-
const speakeasy = new Speakeasy({
557-
security: {
558-
apiKey: "<YOUR_API_KEY_HERE>",
559-
},
560-
});
553+
const speakeasy = new Speakeasy();
561554

562555
async function run() {
563556
await speakeasy.artifacts.createRemoteSource(undefined, {
@@ -593,9 +586,6 @@ const speakeasy = new Speakeasy({
593586
},
594587
retryConnectionErrors: false,
595588
},
596-
security: {
597-
apiKey: "<YOUR_API_KEY_HERE>",
598-
},
599589
});
600590

601591
async function run() {
@@ -867,14 +857,12 @@ Here's an example of one such pagination call:
867857
```typescript
868858
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
869859

870-
const speakeasy = new Speakeasy({
871-
security: {
872-
apiKey: "<YOUR_API_KEY_HERE>",
873-
},
874-
});
860+
const speakeasy = new Speakeasy();
875861

876862
async function run() {
877-
const result = await speakeasy.events.getTargetsSummary({});
863+
const result = await speakeasy.events.getTargetsSummary({
864+
apiKey: "<YOUR_API_KEY_HERE>",
865+
}, {});
878866

879867
for await (const page of result) {
880868
console.log(page);
@@ -904,14 +892,12 @@ Certain SDK methods accept files as part of a multi-part request. It is possible
904892
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
905893
import { openAsBlob } from "node:fs";
906894

907-
const speakeasy = new Speakeasy({
908-
security: {
909-
apiKey: "<YOUR_API_KEY_HERE>",
910-
},
911-
});
895+
const speakeasy = new Speakeasy();
912896

913897
async function run() {
914898
const result = await speakeasy.codeSamples.generateCodeSamplePreview({
899+
apiKey: "<YOUR_API_KEY_HERE>",
900+
}, {
915901
language: "<value>",
916902
schemaFile: await openAsBlob("example.file"),
917903
});

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1716,4 +1716,14 @@ Based on:
17161716
### Generated
17171717
- [typescript v5.0.0-rc.5] .
17181718
### Releases
1719-
- [NPM v5.0.0-rc.5] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/5.0.0-rc.5 - .
1719+
- [NPM v5.0.0-rc.5] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/5.0.0-rc.5 - .
1720+
1721+
## 2026-03-18 00:30:59
1722+
### Changes
1723+
Based on:
1724+
- OpenAPI Doc
1725+
- Speakeasy CLI 1.757.0 (2.866.0) https://github.com/speakeasy-api/speakeasy
1726+
### Generated
1727+
- [typescript v5.0.0-rc.6] .
1728+
### Releases
1729+
- [NPM v5.0.0-rc.6] https://www.npmjs.com/package/@speakeasy-api/speakeasy-client-sdk-typescript/v/5.0.0-rc.6 - .

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
await speakeasy.artifacts.createRemoteSource();
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# CheckGithubAccessSecurity
2+
3+
## Example Usage
4+
5+
```typescript
6+
import { CheckGithubAccessSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations";
7+
8+
let value: CheckGithubAccessSecurity = {};
9+
```
10+
11+
## Fields
12+
13+
| Field | Type | Required | Description |
14+
| --------------------- | --------------------- | --------------------- | --------------------- |
15+
| `apiKey` | *string* | :heavy_minus_sign: | N/A |
16+
| `bearer` | *string* | :heavy_minus_sign: | N/A |
17+
| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A |
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# CreateBillingAddOnsSecurity
2+
3+
## Example Usage
4+
5+
```typescript
6+
import { CreateBillingAddOnsSecurity } from "@speakeasy-api/speakeasy-client-sdk-typescript/sdk/models/operations";
7+
8+
let value: CreateBillingAddOnsSecurity = {};
9+
```
10+
11+
## Fields
12+
13+
| Field | Type | Required | Description |
14+
| --------------------- | --------------------- | --------------------- | --------------------- |
15+
| `apiKey` | *string* | :heavy_minus_sign: | N/A |
16+
| `bearer` | *string* | :heavy_minus_sign: | N/A |
17+
| `workspaceIdentifier` | *string* | :heavy_minus_sign: | N/A |

0 commit comments

Comments
 (0)