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
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/instal
rmdir samples || true
mkdir samples

npm install
npm install -g ts-node
npm install --ignore-scripts
npm install -g ts-node --ignore-scripts
npm link
npm link @speakeasy-sdks/bluesky
TS_CONFIG_CONTENT=$(cat <<EOL
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/examples/node_modules
.DS_Store
**/.speakeasy/temp/
**/.speakeasy/logs/
.DS_Store
.env
.env.local
.env.*.local
/mcp-server
/bin
/.eslintcache
Expand Down
5,679 changes: 5,098 additions & 581 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

31 changes: 30 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,53 @@ generation:
maintainOpenAPIOrder: true
usageSnippets:
optionalPropertyRendering: withExample
sdkInitStyle: constructor
useClassNamesForArrayFields: true
fixes:
nameResolutionDec2023: true
nameResolutionFeb2025: true
parameterOrderingFeb2024: true
requestResponseComponentNamesFeb2024: true
securityFeb2025: false
sharedErrorComponentsApr2025: false
auth:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
hoistGlobalSecurity: true
schemas:
allOfMergeStrategy: shallowMerge
requestBodyFieldName: ""
tests:
generateTests: true
generateNewTests: false
skipResponseBodyAssertions: false
typescript:
version: 0.2.0
version: 0.3.0
acceptHeaderEnum: true
additionalDependencies:
dependencies: {}
devDependencies: {}
peerDependencies: {}
additionalPackageJSON: {}
additionalScripts: {}
alwaysIncludeInboundAndOutbound: false
author: Speakeasy
baseErrorName: BlueskyError
clientServerStatusCodesAsErrors: true
constFieldsAlwaysOptional: true
defaultErrorName: APIError
enableCustomCodeRegions: false
enableMCPServer: true
enableReactQuery: true
enumFormat: union
envVarPrefix: BLUESKY
exportZodModelNamespace: false
flattenGlobalSecurity: true
flatteningOrder: parameters-first
formStringArrayEncodeMode: encoded-string
forwardCompatibleEnumsByDefault: false
forwardCompatibleUnionsByDefault: "false"
generateExamples: true
imports:
option: openapi
paths:
Expand All @@ -42,12 +62,21 @@ typescript:
operations: models/operations
shared: models/components
webhooks: models/webhooks
inferUnionDiscriminators: true
inputModelSuffix: input
jsonpath: legacy
laxMode: strict
maxMethodParams: 0
methodArguments: infer-optional-args
modelPropertyCasing: camel
moduleFormat: esm
multipartArrayFormat: legacy
outputModelSuffix: output
packageName: '@speakeasy-sdks/bluesky'
responseFormat: flat
sseFlatResponse: false
templateVersion: v2
unionStrategy: left-to-right
usageSDKInitImports: []
useIndexModules: true
zodVersion: v3
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.502.0
speakeasyVersion: 1.665.0
sources:
OAS:
sourceNamespace: oas
sourceRevisionDigest: sha256:e1219e25d26c16987db000021f18323b34f8a5887ac8aa7c73e807baff6e3263
sourceBlobDigest: sha256:fc611c3f426fda575a39f6881e166ba50f7760e7c81a8a7d094b851ae6f3fbb8
sourceRevisionDigest: sha256:d6657a856c6af4fe59a19f3c0e9f494f0244365b1bdacb3c8bac54214ca743f2
sourceBlobDigest: sha256:063686bb0b805dbbd27321bed15a14dc6d24f11e568ebee4598d7863f56fbc61
tags:
- latest
- speakeasy-sdk-regen-1740161432
- speakeasy-sdk-regen-1758760356
- 0.0.0
targets:
bluesky:
source: OAS
sourceNamespace: oas
sourceRevisionDigest: sha256:e1219e25d26c16987db000021f18323b34f8a5887ac8aa7c73e807baff6e3263
sourceBlobDigest: sha256:fc611c3f426fda575a39f6881e166ba50f7760e7c81a8a7d094b851ae6f3fbb8
sourceRevisionDigest: sha256:d6657a856c6af4fe59a19f3c0e9f494f0244365b1bdacb3c8bac54214ca743f2
sourceBlobDigest: sha256:063686bb0b805dbbd27321bed15a14dc6d24f11e568ebee4598d7863f56fbc61
codeSamplesNamespace: oas-typescript-code-samples
codeSamplesRevisionDigest: sha256:e022cc6f30be05153433d64c6f8644170041b02aea03d095c774b0d146f1de23
codeSamplesRevisionDigest: sha256:2243b5aaa4b736609d93dc2b0635741f8f0c6790f46cd823a87e212b5ae6f345
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
27 changes: 5 additions & 22 deletions FUNCTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ specific category of applications.
```typescript
import { BlueskyCore } from "@speakeasy-sdks/bluesky/core.js";
import { actorsGetProfile } from "@speakeasy-sdks/bluesky/funcs/actorsGetProfile.js";
import { SDKValidationError } from "@speakeasy-sdks/bluesky/models/errors/sdkvalidationerror.js";

// Use `BlueskyCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
Expand All @@ -33,28 +32,12 @@ async function run() {
const res = await actorsGetProfile(bluesky, {
actor: "did:plc:z72i7hdynmk6r22z27h6tvur",
});

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("actorsGetProfile failed:", res.error);
}


const { value: result } = res;

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

run();
Expand Down
7 changes: 0 additions & 7 deletions REACT_QUERY.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,6 @@ export function Example() {
mutate({
preferences: [
{},
{
labelers: [
{
did: "<id>",
},
],
},
],
});
}}
Expand Down
Loading