Skip to content

Commit 283afdd

Browse files
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.520.1 (#648)
Co-authored-by: speakeasybot <[email protected]>
1 parent ab8d0fc commit 283afdd

File tree

690 files changed

+19589
-6345
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

690 files changed

+19589
-6345
lines changed

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.468.0
1+
speakeasyVersion: 1.520.1
22
sources:
33
bank-feeds-source:
44
sourceNamespace: bank-feeds-source
@@ -10,11 +10,11 @@ sources:
1010
- 3.0.0
1111
lending-source:
1212
sourceNamespace: lending-source
13-
sourceRevisionDigest: sha256:7d05cd24972535fa53d01b1d986bbabb603d66ecd7eed0ab05ab9b0770e247db
14-
sourceBlobDigest: sha256:3a814cec7e8eefb0c14c6ec5490201b6fb3c0355e1f030be7e554f833dcf11ff
13+
sourceRevisionDigest: sha256:3b9068eabe6cca1766c934c03a5e0bc8f03d6b4d56a510564e8eb995315047ca
14+
sourceBlobDigest: sha256:fad703aad6a553fae31d31e115afd2d96fe2e86ddcc4f86454eb37e91f4c6b68
1515
tags:
1616
- latest
17-
- speakeasy-sdk-regen-1736530513
17+
- speakeasy-sdk-regen-1742384657
1818
- 3.0.0
1919
platform-source:
2020
sourceNamespace: platform-source
@@ -73,10 +73,10 @@ targets:
7373
lending-library:
7474
source: lending-source
7575
sourceNamespace: lending-source
76-
sourceRevisionDigest: sha256:7d05cd24972535fa53d01b1d986bbabb603d66ecd7eed0ab05ab9b0770e247db
77-
sourceBlobDigest: sha256:3a814cec7e8eefb0c14c6ec5490201b6fb3c0355e1f030be7e554f833dcf11ff
76+
sourceRevisionDigest: sha256:3b9068eabe6cca1766c934c03a5e0bc8f03d6b4d56a510564e8eb995315047ca
77+
sourceBlobDigest: sha256:fad703aad6a553fae31d31e115afd2d96fe2e86ddcc4f86454eb37e91f4c6b68
7878
codeSamplesNamespace: lending-source-typescript-code-samples
79-
codeSamplesRevisionDigest: sha256:773409ca26d6e9fb770abc5f592e793837eea895ab7ae9509f69b2c40216bc83
79+
codeSamplesRevisionDigest: sha256:7cfe33cc1147abc4479f10e9e22738208c6d34ebe08c9b27cb297ee53d8d03a4
8080
platform-library:
8181
source: platform-source
8282
sourceNamespace: platform-source

lending/.eslintrc.cjs

Lines changed: 0 additions & 28 deletions
This file was deleted.

lending/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/mcp-server
2+
/bin
3+
/.eslintcache
14
/react-query
25
/.speakeasy/reports
36
/models

lending/.npmignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
!/REACT_QUERY.md
55
!/**/*.ts
66
!/**/*.js
7+
!/**/*.mjs
8+
!/**/*.json
79
!/**/*.map
810

9-
/.eslintrc.js
11+
/eslint.config.mjs
1012
/cjs
1113
/.tshy
1214
/.tshy-*

lending/.speakeasy/gen.lock

Lines changed: 957 additions & 377 deletions
Large diffs are not rendered by default.

lending/.speakeasy/gen.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ generation:
77
useClassNamesForArrayFields: true
88
fixes:
99
nameResolutionDec2023: true
10+
nameResolutionFeb2025: false
1011
parameterOrderingFeb2024: true
1112
requestResponseComponentNamesFeb2024: true
13+
securityFeb2025: false
1214
auth:
1315
oAuth2ClientCredentialsEnabled: false
1416
oAuth2PasswordEnabled: false
1517
telemetryEnabled: true
1618
typescript:
17-
version: 7.2.0
19+
version: 7.3.0
1820
additionalDependencies:
1921
dependencies: {}
2022
devDependencies: {}
@@ -24,6 +26,8 @@ typescript:
2426
clientServerStatusCodesAsErrors: true
2527
defaultErrorName: SDKError
2628
description: Make credit decisions backed by enhanced financials, metrics, reports, and data integrity features.
29+
enableCustomCodeRegions: false
30+
enableMCPServer: true
2731
enableReactQuery: false
2832
enumFormat: union
2933
flattenGlobalSecurity: true
@@ -37,6 +41,7 @@ typescript:
3741
shared: sdk/models/shared
3842
webhooks: sdk/models/webhooks
3943
inputModelSuffix: input
44+
jsonpath: legacy
4045
maxMethodParams: 0
4146
methodArguments: infer-optional-args
4247
moduleFormat: commonjs

lending/FUNCTIONS.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ const codatLending = new CodatLendingCore({
3131

3232
async function run() {
3333
const res = await companiesList(codatLending, {
34-
page: 1,
35-
pageSize: 100,
3634
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee",
3735
orderBy: "-modifiedDate",
3836
tags: "region=uk && team=invoice-finance",

lending/README.md

Lines changed: 99 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ Lending helps you make smarter credit decisions on small businesses by enabling
77
<!-- Start Summary [summary] -->
88
## Summary
99

10-
Lending API: Our Lending API helps you make smarter credit decisions on small businesses by enabling you to pull your customers' latest data from accounting, banking, and commerce software they are already using. It also includes features to help providers verify the accuracy of data and process it more efficiently.
10+
Lending: Our Lending solution helps you make smarter credit decisions on small businesses by enabling you to pull your customers' latest data from accounting, banking, and commerce software they are already using. It also includes features to help providers verify the accuracy of data and process it more efficiently.
1111

12-
The Lending API is built on top of the latest accounting, commerce, and banking data, providing you with the most important data points you need to get a full picture of SMB creditworthiness and make a comprehensive assessment of your customers.
12+
The Lending solution is built on top of the latest accounting, commerce, and banking data, providing you with the most important data points you need to get a full picture of SMB creditworthiness and make a comprehensive assessment of your customers.
1313

14-
[Explore product](https://docs.codat.io/lending/overview) | [See OpenAPI spec](https://github.com/codatio/oas)
14+
[Explore solution](https://docs.codat.io/lending/overview) | [See OpenAPI spec](https://github.com/codatio/oas)
1515

1616
<!-- Start Codat Tags Table -->
1717
## Endpoints
@@ -89,6 +89,91 @@ yarn add @codat/lending zod
8989
# Note that Yarn does not install peer dependencies automatically. You will need
9090
# to install zod as shown above.
9191
```
92+
93+
94+
95+
### Model Context Protocol (MCP) Server
96+
97+
This SDK is also an installable MCP server where the various SDK methods are
98+
exposed as tools that can be invoked by AI applications.
99+
100+
> Node.js v20 or greater is required to run the MCP server from npm.
101+
102+
<details>
103+
<summary>Claude installation steps</summary>
104+
105+
Add the following server definition to your `claude_desktop_config.json` file:
106+
107+
```json
108+
{
109+
"mcpServers": {
110+
"CodatLending": {
111+
"command": "npx",
112+
"args": [
113+
"-y", "--package", "@codat/lending",
114+
"--",
115+
"mcp", "start",
116+
"--auth-header", "..."
117+
]
118+
}
119+
}
120+
}
121+
```
122+
123+
</details>
124+
125+
<details>
126+
<summary>Cursor installation steps</summary>
127+
128+
Create a `.cursor/mcp.json` file in your project root with the following content:
129+
130+
```json
131+
{
132+
"mcpServers": {
133+
"CodatLending": {
134+
"command": "npx",
135+
"args": [
136+
"-y", "--package", "@codat/lending",
137+
"--",
138+
"mcp", "start",
139+
"--auth-header", "..."
140+
]
141+
}
142+
}
143+
}
144+
```
145+
146+
</details>
147+
148+
You can also run MCP servers as a standalone binary with no additional dependencies. You must pull these binaries from available Github releases:
149+
150+
```bash
151+
curl -L -o mcp-server \
152+
https://github.com/{org}/{repo}/releases/download/{tag}/mcp-server-bun-darwin-arm64 && \
153+
chmod +x mcp-server
154+
```
155+
156+
If the repo is a private repo you must add your Github PAT to download a release `-H "Authorization: Bearer {GITHUB_PAT}"`.
157+
158+
159+
```json
160+
{
161+
"mcpServers": {
162+
"Todos": {
163+
"command": "./DOWNLOAD/PATH/mcp-server",
164+
"args": [
165+
"start"
166+
]
167+
}
168+
}
169+
}
170+
```
171+
172+
For a full list of server arguments, run:
173+
174+
```sh
175+
npx -y --package @codat/lending -- mcp start --help
176+
```
92177
<!-- End SDK Installation [installation] -->
93178

94179
## Example Usage
@@ -704,8 +789,6 @@ const codatLending = new CodatLending({
704789

705790
async function run() {
706791
const result = await codatLending.companies.list({
707-
page: 1,
708-
pageSize: 100,
709792
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee",
710793
orderBy: "-modifiedDate",
711794
tags: "region=uk && team=invoice-finance",
@@ -750,8 +833,6 @@ const codatLending = new CodatLending({
750833

751834
async function run() {
752835
const result = await codatLending.companies.list({
753-
page: 1,
754-
pageSize: 100,
755836
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee",
756837
orderBy: "-modifiedDate",
757838
tags: "region=uk && team=invoice-finance",
@@ -771,10 +852,11 @@ run();
771852

772853
Some methods specify known errors which can be thrown. All the known errors are enumerated in the `sdk/models/errors/errors.ts` module. The known errors for a method are documented under the *Errors* tables in SDK docs. For example, the `list` method may throw the following errors:
773854

774-
| Error Type | Status Code | Content Type |
775-
| ------------------- | -------------------------------------- | ---------------- |
776-
| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json |
777-
| errors.SDKError | 4XX, 5XX | \*/\* |
855+
| Error Type | Status Code | Content Type |
856+
| ------------------- | ---------------------------- | ---------------- |
857+
| errors.ErrorMessage | 400, 401, 402, 403, 404, 429 | application/json |
858+
| errors.ErrorMessage | 500, 503 | application/json |
859+
| errors.SDKError | 4XX, 5XX | \*/\* |
778860

779861
If the method throws an error and it is not captured by the known errors, it will default to throwing a `SDKError`.
780862

@@ -793,8 +875,6 @@ async function run() {
793875
let result;
794876
try {
795877
result = await codatLending.companies.list({
796-
page: 1,
797-
pageSize: 100,
798878
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee",
799879
orderBy: "-modifiedDate",
800880
tags: "region=uk && team=invoice-finance",
@@ -817,6 +897,11 @@ async function run() {
817897
console.error(err);
818898
return;
819899
}
900+
case (err instanceof ErrorMessage): {
901+
// Handle err.data$: ErrorMessageData
902+
console.error(err);
903+
return;
904+
}
820905
default: {
821906
// Other errors such as network errors, see HTTPClientErrors for more details
822907
throw err;
@@ -847,7 +932,7 @@ In some rare cases, the SDK can fail to get a response from the server or even m
847932

848933
### Override Server URL Per-Client
849934

850-
The default server can also be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example:
935+
The default server can be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example:
851936
```typescript
852937
import { CodatLending } from "@codat/lending";
853938

@@ -858,8 +943,6 @@ const codatLending = new CodatLending({
858943

859944
async function run() {
860945
const result = await codatLending.companies.list({
861-
page: 1,
862-
pageSize: 100,
863946
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee",
864947
orderBy: "-modifiedDate",
865948
tags: "region=uk && team=invoice-finance",
@@ -944,8 +1027,6 @@ const codatLending = new CodatLending({
9441027

9451028
async function run() {
9461029
const result = await codatLending.companies.list({
947-
page: 1,
948-
pageSize: 100,
9491030
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee",
9501031
orderBy: "-modifiedDate",
9511032
tags: "region=uk && team=invoice-finance",

lending/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,14 @@ Based on:
158158
### Generated
159159
- [typescript v7.2.0] lending
160160
### Releases
161-
- [NPM v7.2.0] https://www.npmjs.com/package/@codat/lending/v/7.2.0 - lending
161+
- [NPM v7.2.0] https://www.npmjs.com/package/@codat/lending/v/7.2.0 - lending
162+
163+
## 2025-03-19 11:43:55
164+
### Changes
165+
Based on:
166+
- OpenAPI Doc
167+
- Speakeasy CLI 1.520.1 (2.556.1) https://github.com/speakeasy-api/speakeasy
168+
### Generated
169+
- [typescript v7.3.0] lending
170+
### Releases
171+
- [NPM v7.3.0] https://www.npmjs.com/package/@codat/lending/v/7.3.0 - lending

lending/USAGE.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ const codatLending = new CodatLending({
88

99
async function run() {
1010
const result = await codatLending.companies.list({
11-
page: 1,
12-
pageSize: 100,
1311
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee",
1412
orderBy: "-modifiedDate",
1513
tags: "region=uk && team=invoice-finance",

0 commit comments

Comments
 (0)