Skip to content
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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
!/**/*.map

/eslint.config.mjs
/.oxlintrc.json
/cjs
/.tshy
/.tshy-*
Expand Down
2,273 changes: 1,418 additions & 855 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
speakeasyVersion: 1.736.1
speakeasyVersion: 1.786.1
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:b2a524854e5ca52cdd7bec6ad83685feaf1fa49010e9da4f990a337908e630e3
sourceBlobDigest: sha256:d4720c8b89c02fb53a33d4c58b04b0661044bc4a2c02226a328e0d35772defc9
sourceRevisionDigest: sha256:cb6d81a7240885b8fd1ec1b3337633bd712a766af0495d8b02b49039cb2b91c2
sourceBlobDigest: sha256:b52b712a4fbc22652fafe9dce91309e0db72fa8c8755b9821e56ec1775681978
tags:
- latest
- speakeasy-sdk-regen-1753835013
- 0.4.0
targets:
speakeasy-client-sdk-typescript:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:b2a524854e5ca52cdd7bec6ad83685feaf1fa49010e9da4f990a337908e630e3
sourceBlobDigest: sha256:d4720c8b89c02fb53a33d4c58b04b0661044bc4a2c02226a328e0d35772defc9
sourceRevisionDigest: sha256:cb6d81a7240885b8fd1ec1b3337633bd712a766af0495d8b02b49039cb2b91c2
sourceBlobDigest: sha256:b52b712a4fbc22652fafe9dce91309e0db72fa8c8755b9821e56ec1775681978
codeSamplesNamespace: my-source-typescript-code-samples
codeSamplesRevisionDigest: sha256:63ed5704a7f9637a517c123c4e07b4b68c5e10eb327ff226e07d9686087bb6f7
codeSamplesRevisionDigest: sha256:9b1f30bf17dc47711769e9573866318ef5fb75413def8d1fe92b9c01b3aebe3e
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
10 changes: 3 additions & 7 deletions FUNCTIONS.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Standalone Functions

> [!NOTE]
> This section is useful if you are using a bundler and targetting browsers and
> This section is useful if you are using a bundler and targeting browsers and
> runtimes where the size of an application affects performance and load times.

Every method in this SDK is also available as a standalone function. This
alternative API is suitable when targetting the browser or serverless runtimes
alternative API is suitable when targeting the browser or serverless runtimes
and using a bundler to build your application since all unused functionality
will be tree-shaken away. This includes code for unused methods, Zod schemas,
encoding helpers and response handlers. The result is dramatically smaller
Expand All @@ -24,11 +24,7 @@ import { artifactsCreateRemoteSource } from "@speakeasy-api/speakeasy-client-sdk

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

async function run() {
const res = await artifactsCreateRemoteSource(speakeasy);
Expand Down
22 changes: 6 additions & 16 deletions REACT_QUERY.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ import { SpeakeasyCore } from "@speakeasy-api/speakeasy-client-sdk-typescript";
import { SpeakeasyProvider } from "@speakeasy-api/speakeasy-client-sdk-typescript/react-query";

const queryClient = new QueryClient();
const speakeasy = new SpeakeasyCore({
security: {
apiKey: "<YOUR_API_KEY_HERE>",
},
});
const speakeasy = new SpeakeasyCore();

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

export function Example() {
const { data, error, status, fetchNextPage, hasNextPage } = useEventsGetTargetsSummaryInfinite({});
const { data, error, status, fetchNextPage, hasNextPage } = useEventsGetTargetsSummaryInfinite({
apiKey: "<YOUR_API_KEY_HERE>",
}, {});

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

const queryClient = new QueryClient();
const speakeasy = new SpeakeasyCore({
security: {
apiKey: "<YOUR_API_KEY_HERE>",
},
});
const speakeasy = new SpeakeasyCore();

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

export default async function Page() {
const queryClient = new QueryClient();
const speakeasy = new SpeakeasyCore({
security: {
apiKey: "<YOUR_API_KEY_HERE>",
},
});
const speakeasy = new SpeakeasyCore();

await prefetchArtifactsGetBlob(queryClient, speakeasy, {
organizationSlug: "<value>",
Expand Down
Loading
Loading