Skip to content
Merged
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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mkdir samples
npm install
npm install -g ts-node
npm link
npm link firehydrant-typescript-sdk
npm link firehydrant
TS_CONFIG_CONTENT=$(cat <<EOL
{
"compilerOptions": {
Expand Down
28 changes: 0 additions & 28 deletions .eslintrc.cjs

This file was deleted.

7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/mcp-server
/bin
/.eslintcache
.DS_Store
**/.speakeasy/temp/
**/.speakeasy/logs/
.DS_Store
/.speakeasy/reports
/models
/models/errors
Expand Down
4 changes: 3 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
!/REACT_QUERY.md
!/**/*.ts
!/**/*.js
!/**/*.mjs
!/**/*.json
!/**/*.map

/.eslintrc.js
/eslint.config.mjs
/cjs
/.tshy
/.tshy-*
Expand Down
10,711 changes: 3,649 additions & 7,062 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: true
typescript:
version: 0.1.13
version: 1.0.0
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
19 changes: 8 additions & 11 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
speakeasyVersion: 1.465.1
speakeasyVersion: 1.543.4
sources:
firehydrant-oas:
sourceNamespace: firehydrant-oas
sourceRevisionDigest: sha256:e512d73a7a46a2f2c3619032e3b2f10ddf25a609b2d6f02175595d3392240980
sourceBlobDigest: sha256:f6ffe4d71cbc8f195cf28218fe7c5a6212053a7fa58a4e0aa275374cfcf3c675
sourceRevisionDigest: sha256:9ea407d00bbdbe45cdedc31a2fea7f227d9b6748bf26b8ec1d3e4163f8f7c29c
sourceBlobDigest: sha256:b7e17ea5065fa99817b5397ccc5460e2410b92a032d7b95d60f2d4aa5ba580a2
tags:
- latest
- speakeasy-sdk-regen-1735863790
- speakeasy-sdk-regen-1745434787
- 0.0.1
firehydrant-typescript-sdk-OAS:
sourceNamespace: firehydrant-typescript-sdk-oas
Expand All @@ -19,20 +19,17 @@ targets:
firehydrant-typescript-sdk:
source: firehydrant-oas
sourceNamespace: firehydrant-oas
sourceRevisionDigest: sha256:e512d73a7a46a2f2c3619032e3b2f10ddf25a609b2d6f02175595d3392240980
sourceBlobDigest: sha256:f6ffe4d71cbc8f195cf28218fe7c5a6212053a7fa58a4e0aa275374cfcf3c675
sourceRevisionDigest: sha256:9ea407d00bbdbe45cdedc31a2fea7f227d9b6748bf26b8ec1d3e4163f8f7c29c
sourceBlobDigest: sha256:b7e17ea5065fa99817b5397ccc5460e2410b92a032d7b95d60f2d4aa5ba580a2
codeSamplesNamespace: firehydrant-typescript-sdk-oas-code-samples
codeSamplesRevisionDigest: sha256:91c6eb6c8fcf0eba140b3cf4dfb4da432f53f34b7f39b10f77f2e08baaf30784
codeSamplesRevisionDigest: sha256:287c59a646472087833053d43964b5f983e07c66c42b4a66576d371ff507aeb7
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
sources:
firehydrant-oas:
inputs:
- location: ./openapi.yaml
overlays:
- location: .speakeasy/speakeasy-modifications-overlay.yaml
- location: errors-overlay.yaml
- location: ${GITHUB_WORKSPACE}/openapi.json
registry:
location: registry.speakeasyapi.dev/firehydrant/firehydrant/firehydrant-oas
targets:
Expand Down
14 changes: 7 additions & 7 deletions FUNCTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ specific category of applications.
## Example

```typescript
import { FirehydrantTypescriptSDKCore } from "firehydrant-typescript-sdk/core.js";
import { accountSettingsGetAiPreferences } from "firehydrant-typescript-sdk/funcs/accountSettingsGetAiPreferences.js";
import { SDKValidationError } from "firehydrant-typescript-sdk/models/errors/sdkvalidationerror.js";
import { FirehydrantCore } from "firehydrant/core.js";
import { accountSettingsPing } from "firehydrant/funcs/accountSettingsPing.js";
import { SDKValidationError } from "firehydrant/models/errors/sdkvalidationerror.js";

// Use `FirehydrantTypescriptSDKCore` for best tree-shaking performance.
// Use `FirehydrantCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const firehydrantTypescriptSDK = new FirehydrantTypescriptSDKCore({
apiKey: process.env["FIREHYDRANTTYPESCRIPTSDK_API_KEY"] ?? "",
const firehydrant = new FirehydrantCore({
apiKey: process.env["FIREHYDRANT_API_KEY"] ?? "",
});

async function run() {
const res = await accountSettingsGetAiPreferences(firehydrantTypescriptSDK);
const res = await accountSettingsPing(firehydrant);

switch (true) {
case res.ok:
Expand Down
Loading