Skip to content

Commit ca67139

Browse files
authored
Merge pull request #636 from codatio/speakeasy-sdk-regen-1731929393
chore: 🐝 Update SDK - Generate Lending library LENDING-LIBRARY 6.0.0
2 parents 97419dc + 1eb7198 commit ca67139

File tree

675 files changed

+10510
-933
lines changed

Some content is hidden

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

675 files changed

+10510
-933
lines changed

.speakeasy/workflow.lock

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.431.0
1+
speakeasyVersion: 1.440.1
22
sources:
33
bank-feeds-source:
44
sourceNamespace: bank-feeds-source
@@ -9,11 +9,11 @@ sources:
99
- main
1010
lending-source:
1111
sourceNamespace: lending-source
12-
sourceRevisionDigest: sha256:bd7877dd3f3d99abd879a74e4be10c6181664007b1474c4ab8235112a43564e6
13-
sourceBlobDigest: sha256:4525ee073b57729cfcb4c57cd3715fd634d44b091eb42b011966d87654980fc2
12+
sourceRevisionDigest: sha256:b3548be46af843e3792df7d5d24e0b1cbf514587a99c9f58d2ad68781f4568bd
13+
sourceBlobDigest: sha256:0bb930c7190c9e61384e5af6224f76ea004ad9bc0788b264aaa35b9ebad5699f
1414
tags:
1515
- latest
16-
- main
16+
- speakeasy-sdk-regen-1731929393
1717
platform-source:
1818
sourceNamespace: platform-source
1919
sourceRevisionDigest: sha256:a1a4c526fcfc87fde0b60e9b93d029b97f71ddefc60ac7e114d8195c03ba60a2
@@ -65,8 +65,10 @@ targets:
6565
lending-library:
6666
source: lending-source
6767
sourceNamespace: lending-source
68-
sourceRevisionDigest: sha256:bd7877dd3f3d99abd879a74e4be10c6181664007b1474c4ab8235112a43564e6
69-
sourceBlobDigest: sha256:4525ee073b57729cfcb4c57cd3715fd634d44b091eb42b011966d87654980fc2
68+
sourceRevisionDigest: sha256:b3548be46af843e3792df7d5d24e0b1cbf514587a99c9f58d2ad68781f4568bd
69+
sourceBlobDigest: sha256:0bb930c7190c9e61384e5af6224f76ea004ad9bc0788b264aaa35b9ebad5699f
70+
codeSamplesNamespace: lending-source-code-samples
71+
codeSamplesRevisionDigest: sha256:95281315f00396773c4691cce5871db7b7afce89c5a0fc4264e9fd374e0d5021
7072
platform-library:
7173
source: platform-source
7274
sourceNamespace: platform-source
@@ -226,6 +228,10 @@ workflow:
226228
publish:
227229
npm:
228230
token: $npm_token
231+
codeSamples:
232+
registry:
233+
location: registry.speakeasyapi.dev/codat/codat/lending-source-code-samples
234+
blocking: false
229235
platform-library:
230236
target: typescript
231237
source: platform-source

.speakeasy/workflow.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ targets:
126126
publish:
127127
npm:
128128
token: $npm_token
129+
codeSamples:
130+
registry:
131+
location: registry.speakeasyapi.dev/codat/codat/lending-source-code-samples
132+
blocking: false
129133
platform-library:
130134
target: typescript
131135
source: platform-source

lending/.speakeasy/gen.lock

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

lending/.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ generation:
1414
oAuth2PasswordEnabled: false
1515
telemetryEnabled: true
1616
typescript:
17-
version: 5.0.0
17+
version: 6.0.0
1818
additionalDependencies:
1919
dependencies: {}
2020
devDependencies: {}
2121
peerDependencies: {}
2222
additionalPackageJSON: {}
2323
author: Codat
2424
clientServerStatusCodesAsErrors: true
25+
defaultErrorName: SDKError
2526
description: Make credit decisions backed by enhanced financials, metrics, reports, and data integrity features.
2627
enumFormat: union
2728
flattenGlobalSecurity: true

lending/README.md

Lines changed: 8 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -769,10 +769,10 @@ If a HTTP request fails, an operation my also throw an error from the `sdk/model
769769

770770
In addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `list` method may throw the following errors:
771771

772-
| Error Type | Status Code | Content Type |
773-
| -------------------------------------- | -------------------------------------- | -------------------------------------- |
774-
| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json |
775-
| errors.SDKError | 4XX, 5XX | \*/\* |
772+
| Error Type | Status Code | Content Type |
773+
| ------------------- | -------------------------------------- | ---------------- |
774+
| errors.ErrorMessage | 400, 401, 402, 403, 404, 429, 500, 503 | application/json |
775+
| errors.SDKError | 4XX, 5XX | \*/\* |
776776

777777
```typescript
778778
import { CodatLending } from "@codat/lending";
@@ -828,43 +828,9 @@ Validation errors can also occur when either method arguments or data returned f
828828
<!-- Start Server Selection [server] -->
829829
## Server Selection
830830

831-
### Select Server by Index
832-
833-
You can override the default server globally by passing a server index to the `serverIdx` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
834-
835-
| # | Server | Variables |
836-
| - | ------ | --------- |
837-
| 0 | `https://api.codat.io` | None |
838-
839-
```typescript
840-
import { CodatLending } from "@codat/lending";
841-
842-
const codatLending = new CodatLending({
843-
serverIdx: 0,
844-
authHeader: "Basic BASE_64_ENCODED(API_KEY)",
845-
});
846-
847-
async function run() {
848-
const result = await codatLending.companies.list({
849-
page: 1,
850-
pageSize: 100,
851-
query: "id=e3334455-1aed-4e71-ab43-6bccf12092ee",
852-
orderBy: "-modifiedDate",
853-
});
854-
855-
// Handle the result
856-
console.log(result);
857-
}
858-
859-
run();
860-
861-
```
862-
863-
864831
### Override Server URL Per-Client
865832

866-
The default server can also be overridden globally by passing a URL to the `serverURL` optional parameter when initializing the SDK client instance. For example:
867-
833+
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:
868834
```typescript
869835
import { CodatLending } from "@codat/lending";
870836

@@ -946,9 +912,9 @@ const sdk = new CodatLending({ httpClient });
946912

947913
This SDK supports the following security scheme globally:
948914

949-
| Name | Type | Scheme |
950-
| ------------ | ------------ | ------------ |
951-
| `authHeader` | apiKey | API key |
915+
| Name | Type | Scheme |
916+
| ------------ | ------ | ------- |
917+
| `authHeader` | apiKey | API key |
952918

953919
To authenticate with the API the `authHeader` parameter must be set when initializing the SDK client instance. For example:
954920
```typescript

lending/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,14 @@ Based on:
118118
### Generated
119119
- [typescript v5.0.0] lending
120120
### Releases
121-
- [NPM v5.0.0] https://www.npmjs.com/package/@codat/lending/v/5.0.0 - lending
121+
- [NPM v5.0.0] https://www.npmjs.com/package/@codat/lending/v/5.0.0 - lending
122+
123+
## 2024-11-18 11:29:43
124+
### Changes
125+
Based on:
126+
- OpenAPI Doc
127+
- Speakeasy CLI 1.440.1 (2.460.1) https://github.com/speakeasy-api/speakeasy
128+
### Generated
129+
- [typescript v6.0.0] lending
130+
### Releases
131+
- [NPM v6.0.0] https://www.npmjs.com/package/@codat/lending/v/6.0.0 - lending

lending/docs/sdk/models/operations/createaccountrequest.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ let value: CreateAccountRequest = {
1515
description:
1616
"Invoices the business has issued but has not yet collected payment on.",
1717
fullyQualifiedCategory: "Asset.Current",
18-
fullyQualifiedName: "Fixed Asset",
19-
currency: "GBP",
18+
fullyQualifiedName: "Cash On Hand",
19+
currency: "EUR",
2020
currentBalance: new Decimal("0"),
2121
type: "Asset",
2222
status: "Active",

lending/docs/sdk/models/operations/createsourceaccountrequest.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,24 @@ let value: CreateSourceAccountRequest = {
1111
connectionId: "2e9d2c44-f675-40ba-8049-353bfcb5e171",
1212
requestBody: {
1313
id: "acc-002",
14-
accountName: "account-081",
15-
accountType: "Credit",
16-
accountNumber: "12345670",
17-
sortCode: "123456",
14+
accountName: "account-083",
15+
accountType: "savings",
16+
accountNumber: "23456789",
17+
routingInfo: {
18+
bankCode: "21001088",
19+
type: "bankcode",
20+
},
1821
currency: "GBP",
19-
balance: new Decimal("99.99"),
20-
modifiedDate: "2023-01-09T14:14:14.1057478Z",
22+
balance: new Decimal("400"),
23+
accountInfo: {
24+
description: "account description 2",
25+
nickname: "account 1290",
26+
accountOpenDate: "2023-05-23T00:00:00Z",
27+
availableBalance: new Decimal("400"),
28+
},
29+
modifiedDate: "2024-08-02T00:00:00.000Z",
2130
status: "pending",
22-
feedStartDate: "2022-10-23T00:00:00Z",
31+
feedStartDate: "2024-05-01T00:00:00Z",
2332
},
2433
};
2534
```

lending/docs/sdk/models/operations/createsourceaccountrequestbody.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77

88
```typescript
99
const value: shared.SourceAccountV2 = {
10-
id: "acc-002",
11-
accountName: "account-083",
12-
accountType: "savings",
13-
accountNumber: "23456789",
10+
id: "acc-001",
11+
accountName: "account-081",
12+
accountType: "checking",
13+
accountNumber: "12345670",
1414
routingInfo: {
1515
bankCode: "21001088",
1616
type: "bankcode",
1717
},
1818
currency: "GBP",
19-
balance: new Decimal("400"),
19+
balance: new Decimal("99.99"),
2020
accountInfo: {
21-
description: "account description 2",
22-
nickname: "account 1290",
23-
accountOpenDate: "2023-05-23T00:00:00Z",
24-
availableBalance: new Decimal("400"),
21+
description: "account description 1",
22+
nickname: "account 123",
23+
accountOpenDate: "2023-05-06T00:00:00Z",
24+
availableBalance: new Decimal("10"),
2525
},
2626
modifiedDate: "2024-08-02T00:00:00.000Z",
2727
status: "pending",
@@ -33,13 +33,13 @@ const value: shared.SourceAccountV2 = {
3333

3434
```typescript
3535
const value: shared.SourceAccount = {
36-
id: "acc-002",
37-
accountName: "account-081",
36+
id: "acc-003",
37+
accountName: "account-095",
3838
accountType: "Credit",
39-
accountNumber: "12345670",
39+
accountNumber: "12345671",
4040
sortCode: "123456",
41-
currency: "GBP",
42-
balance: new Decimal("99.99"),
41+
currency: "USD",
42+
balance: new Decimal("0"),
4343
modifiedDate: "2023-01-09T14:14:14.1057478Z",
4444
status: "pending",
4545
feedStartDate: "2022-10-23T00:00:00Z",

lending/docs/sdk/models/operations/createtransferrequest.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ let value: CreateTransferRequest = {
1313
sourceModifiedDate: "2022-10-23T00:00:00Z",
1414
date: "2022-10-23T00:00:00Z",
1515
from: {
16-
accountRef: {},
16+
accountRef: {
17+
dataType: "invoice",
18+
},
1719
currency: "GBP",
1820
},
1921
to: {
20-
accountRef: {},
22+
accountRef: {
23+
dataType: "invoice",
24+
},
2125
currency: "GBP",
2226
},
2327
depositedRecordRefs: [

0 commit comments

Comments
 (0)