diff --git a/README.md b/README.md index 9e59ca3..4038513 100644 --- a/README.md +++ b/README.md @@ -420,8 +420,8 @@ This API is used internally and is not directly supported. #### Inspecting the Request -All client methods return an instance of `SeamRequest`. -Inspect the request before it is sent to the server by intentionally not awaiting the `SeamRequest`: +All client methods return an instance of `SeamHttpRequest`. +Inspect the request before it is sent to the server by intentionally not awaiting the `SeamHttpRequest`: ```ts const seam = new Seam('your-api-key') diff --git a/generate-readme.ts b/generate-readme.ts index 3d45ce8..840404e 100644 --- a/generate-readme.ts +++ b/generate-readme.ts @@ -62,6 +62,7 @@ async function writeReadmeUsage(content: string): Promise { .replaceAll('@seamapi/webhook', 'seam') .replaceAll('@seamapi/http', 'seam') .replaceAll('SeamHttp', 'Seam') + .replaceAll('SeamRequest', 'SeamHttpRequest') .replaceAll('seam/connect', 'seam') const currentUsageSection = matches[1] diff --git a/package.json b/package.json index 83663e7..5c2f3ed 100644 --- a/package.json +++ b/package.json @@ -52,8 +52,9 @@ "lint": "eslint --ignore-path .gitignore .", "prelint": "prettier --check --ignore-path .gitignore .", "postversion": "git push --follow-tags", - "generate": "tsx generate-readme.ts", - "postgenerate": "markdown-toc -i README.md --bullets '-'", + "generate": "markdown-toc -i README.md --bullets '-'", + "pregenerate": "tsx generate-readme.ts", + "postgenerate": "prettier --write README.md", "example": "tsx examples", "example:inspect": "tsx --inspect examples", "format": "eslint --ignore-path .gitignore --fix .", diff --git a/src/index.ts b/src/index.ts index 0512856..1b07e48 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,6 +1,12 @@ -import { SeamHttp as Seam } from '@seamapi/http/connect' +import { + SeamHttp as Seam, + SeamHttpMultiWorkspace as SeamMultiWorkspace, + type SeamHttpMultiWorkspaceOptions as SeamMultiWorkspaceOptions, + type SeamHttpOptions as SeamOptions, +} from '@seamapi/http/connect' export * from '@seamapi/http/connect' export type * from '@seamapi/types/connect' export * from '@seamapi/webhook' -export { Seam } +export { Seam, SeamMultiWorkspace } +export type { SeamMultiWorkspaceOptions, SeamOptions }