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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
speakeasyVersion: 1.761.9
speakeasyVersion: 1.770.0
sources:
bank-feeds-source:
sourceNamespace: bank-feeds-source
Expand Down Expand Up @@ -38,8 +38,8 @@ sources:
- prealpha
sync-for-payables-source:
sourceNamespace: sync-for-payables-source
sourceRevisionDigest: sha256:f8f51f03b09f4db12dcb5b5f8dd785e924b34acf95c2963148d6332a539e20ee
sourceBlobDigest: sha256:7a4b9e31f75380f0764d515e7533741e4f7b0da48e595c9f0fcac4506d869725
sourceRevisionDigest: sha256:3621ee3e6bae473e6a9b1c4d2228429c674380bab3c6aaf15459a6d1edb8da77
sourceBlobDigest: sha256:92619250ae83235bba95fdeed9ebc16f33ce6dc96b3b92b1da6147089f4ed4b7
tags:
- latest
- 3.0.0
Expand Down Expand Up @@ -97,10 +97,10 @@ targets:
sync-for-payables-library:
source: sync-for-payables-source
sourceNamespace: sync-for-payables-source
sourceRevisionDigest: sha256:f8f51f03b09f4db12dcb5b5f8dd785e924b34acf95c2963148d6332a539e20ee
sourceBlobDigest: sha256:7a4b9e31f75380f0764d515e7533741e4f7b0da48e595c9f0fcac4506d869725
sourceRevisionDigest: sha256:3621ee3e6bae473e6a9b1c4d2228429c674380bab3c6aaf15459a6d1edb8da77
sourceBlobDigest: sha256:92619250ae83235bba95fdeed9ebc16f33ce6dc96b3b92b1da6147089f4ed4b7
codeSamplesNamespace: sync-for-payables-source-typescript-code-samples
codeSamplesRevisionDigest: sha256:bca188400a7dd41a94d6c53322cd571a2489ebb774f917bb3b25302bd311b569
codeSamplesRevisionDigest: sha256:668a75aa8d076b5feaceac58f3d941c95dedda7052301342f700f3dbf430a040
sync-for-payables-version-1-library:
source: sync-for-payables-version-1-source
sourceNamespace: sync-for-payables-version-1-source
Expand Down
208 changes: 86 additions & 122 deletions sync-for-payables/.speakeasy/gen.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion sync-for-payables/.speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ generation:
skipResponseBodyAssertions: false
telemetryEnabled: true
typescript:
version: 9.3.2
version: 9.4.0
acceptHeaderEnum: true
additionalDependencies:
dependencies: {}
Expand Down Expand Up @@ -80,6 +80,7 @@ typescript:
packageName: '@codat/sync-for-payables'
preApplyUnionDiscriminators: true
preserveModelFieldNames: false
privateIdentifierPrefix: '#'
responseFormat: flat
sseFlatResponse: false
templateVersion: v2
Expand Down
4 changes: 2 additions & 2 deletions sync-for-payables/FUNCTIONS.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Standalone Functions

> [!NOTE]
> This section is useful if you are using a bundler and targetting browsers and
> This section is useful if you are using a bundler and targeting browsers and
> runtimes where the size of an application affects performance and load times.

Every method in this SDK is also available as a standalone function. This
alternative API is suitable when targetting the browser or serverless runtimes
alternative API is suitable when targeting the browser or serverless runtimes
and using a bundler to build your application since all unused functionality
will be tree-shaken away. This includes code for unused methods, Zod schemas,
encoding helpers and response handlers. The result is dramatically smaller
Expand Down
12 changes: 11 additions & 1 deletion sync-for-payables/RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,14 @@ Based on:
### Generated
- [typescript v9.3.2] sync-for-payables
### Releases
- [NPM v9.3.2] https://www.npmjs.com/package/@codat/sync-for-payables/v/9.3.2 - sync-for-payables
- [NPM v9.3.2] https://www.npmjs.com/package/@codat/sync-for-payables/v/9.3.2 - sync-for-payables

## 2026-06-05 08:40:04
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.770.0 (2.893.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v9.4.0] sync-for-payables
### Releases
- [NPM v9.4.0] https://www.npmjs.com/package/@codat/sync-for-payables/v/9.4.0 - sync-for-payables
25 changes: 0 additions & 25 deletions sync-for-payables/docs/sdk/models/shared/clientratelimitwebhook.md

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions sync-for-payables/docs/sdks/bills/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1333,8 +1333,6 @@ The *Download bill attachment* endpoint downloads a specific attachment for a gi

[Bills](https://docs.codat.io/sync-for-payables-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services.

Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bills) for integrations that support downloading a bill attachment.


### Example Usage

Expand Down
2 changes: 1 addition & 1 deletion sync-for-payables/examples/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sync-for-payables/jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@codat/sync-for-payables",
"version": "9.3.2",
"version": "9.4.0",
"exports": {
".": "./src/index.ts",
"./sdk/models/errors": "./src/sdk/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions sync-for-payables/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sync-for-payables/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@codat/sync-for-payables",
"version": "9.3.2",
"version": "9.4.0",
"author": "Codat",
"main": "./index.js",
"sideEffects": false,
Expand Down
15 changes: 3 additions & 12 deletions sync-for-payables/src/funcs/bankAccountsCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import { CodatSyncPayablesCore } from "../core.js";
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
import { matchStatusCode } from "../lib/http.js";
import * as M from "../lib/matchers.js";
import { compactMap } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
Expand Down Expand Up @@ -163,18 +164,8 @@ async function $do(

const doResult = await client._do(req, {
context,
errorCodes: [
"400",
"401",
"402",
"403",
"404",
"429",
"4XX",
"500",
"503",
"5XX",
],
isErrorStatusCode: (statusCode: number) =>
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
retryConfig: context.retryConfig,
retryCodes: context.retryCodes,
});
Expand Down
16 changes: 3 additions & 13 deletions sync-for-payables/src/funcs/billPaymentsCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import { CodatSyncPayablesCore } from "../core.js";
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
import { matchStatusCode } from "../lib/http.js";
import * as M from "../lib/matchers.js";
import { compactMap } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
Expand Down Expand Up @@ -167,19 +168,8 @@ async function $do(

const doResult = await client._do(req, {
context,
errorCodes: [
"400",
"401",
"402",
"403",
"404",
"409",
"429",
"4XX",
"500",
"503",
"5XX",
],
isErrorStatusCode: (statusCode: number) =>
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
retryConfig: context.retryConfig,
retryCodes: context.retryCodes,
});
Expand Down
15 changes: 3 additions & 12 deletions sync-for-payables/src/funcs/billPaymentsGetPaymentOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import { CodatSyncPayablesCore } from "../core.js";
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
import { matchStatusCode } from "../lib/http.js";
import * as M from "../lib/matchers.js";
import { compactMap } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
Expand Down Expand Up @@ -164,18 +165,8 @@ async function $do(

const doResult = await client._do(req, {
context,
errorCodes: [
"400",
"401",
"402",
"403",
"404",
"429",
"4XX",
"500",
"503",
"5XX",
],
isErrorStatusCode: (statusCode: number) =>
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
retryConfig: context.retryConfig,
retryCodes: context.retryCodes,
});
Expand Down
16 changes: 3 additions & 13 deletions sync-for-payables/src/funcs/billsCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import { CodatSyncPayablesCore } from "../core.js";
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
import { matchStatusCode } from "../lib/http.js";
import * as M from "../lib/matchers.js";
import { compactMap } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
Expand Down Expand Up @@ -161,19 +162,8 @@ async function $do(

const doResult = await client._do(req, {
context,
errorCodes: [
"400",
"401",
"402",
"403",
"404",
"409",
"429",
"4XX",
"500",
"503",
"5XX",
],
isErrorStatusCode: (statusCode: number) =>
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
retryConfig: context.retryConfig,
retryCodes: context.retryCodes,
});
Expand Down
6 changes: 3 additions & 3 deletions sync-for-payables/src/funcs/billsDownloadAttachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import * as z from "zod/v3";
import { CodatSyncPayablesCore } from "../core.js";
import { encodeSimple } from "../lib/encodings.js";
import { matchStatusCode } from "../lib/http.js";
import * as M from "../lib/matchers.js";
import { compactMap } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
Expand Down Expand Up @@ -33,8 +34,6 @@ import { Result } from "../sdk/types/fp.js";
* The *Download bill attachment* endpoint downloads a specific attachment for a given `billId` and `attachmentId`.
*
* [Bills](https://docs.codat.io/sync-for-payables-api#/schemas/Bill) are invoices that represent the SMB's financial obligations to their supplier for a purchase of goods or services.
*
* Check out our [coverage explorer](https://knowledge.codat.io/supported-features/accounting?view=tab-by-data-type&dataType=bills) for integrations that support downloading a bill attachment.
*/
export function billsDownloadAttachment(
client: CodatSyncPayablesCore,
Expand Down Expand Up @@ -166,7 +165,8 @@ async function $do(

const doResult = await client._do(req, {
context,
errorCodes: ["401", "402", "403", "404", "429", "4XX", "500", "503", "5XX"],
isErrorStatusCode: (statusCode: number) =>
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
retryConfig: context.retryConfig,
retryCodes: context.retryCodes,
});
Expand Down
15 changes: 3 additions & 12 deletions sync-for-payables/src/funcs/billsGetBillOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import { CodatSyncPayablesCore } from "../core.js";
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
import { matchStatusCode } from "../lib/http.js";
import * as M from "../lib/matchers.js";
import { compactMap } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
Expand Down Expand Up @@ -164,18 +165,8 @@ async function $do(

const doResult = await client._do(req, {
context,
errorCodes: [
"400",
"401",
"402",
"403",
"404",
"429",
"4XX",
"500",
"503",
"5XX",
],
isErrorStatusCode: (statusCode: number) =>
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
retryConfig: context.retryConfig,
retryCodes: context.retryCodes,
});
Expand Down
16 changes: 3 additions & 13 deletions sync-for-payables/src/funcs/billsList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import { CodatSyncPayablesCore } from "../core.js";
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
import { matchStatusCode } from "../lib/http.js";
import * as M from "../lib/matchers.js";
import { compactMap } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
Expand Down Expand Up @@ -163,19 +164,8 @@ async function $do(

const doResult = await client._do(req, {
context,
errorCodes: [
"400",
"401",
"402",
"403",
"404",
"409",
"429",
"4XX",
"500",
"503",
"5XX",
],
isErrorStatusCode: (statusCode: number) =>
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
retryConfig: context.retryConfig,
retryCodes: context.retryCodes,
});
Expand Down
15 changes: 3 additions & 12 deletions sync-for-payables/src/funcs/billsListAttachments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import * as z from "zod/v3";
import { CodatSyncPayablesCore } from "../core.js";
import { encodeSimple } from "../lib/encodings.js";
import { matchStatusCode } from "../lib/http.js";
import * as M from "../lib/matchers.js";
import { compactMap } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
Expand Down Expand Up @@ -161,18 +162,8 @@ async function $do(

const doResult = await client._do(req, {
context,
errorCodes: [
"401",
"402",
"403",
"404",
"409",
"429",
"4XX",
"500",
"503",
"5XX",
],
isErrorStatusCode: (statusCode: number) =>
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
retryConfig: context.retryConfig,
retryCodes: context.retryCodes,
});
Expand Down
16 changes: 3 additions & 13 deletions sync-for-payables/src/funcs/billsUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import { CodatSyncPayablesCore } from "../core.js";
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
import { matchStatusCode } from "../lib/http.js";
import * as M from "../lib/matchers.js";
import { compactMap } from "../lib/primitives.js";
import { safeParse } from "../lib/schemas.js";
Expand Down Expand Up @@ -176,19 +177,8 @@ async function $do(

const doResult = await client._do(req, {
context,
errorCodes: [
"400",
"401",
"402",
"403",
"404",
"409",
"429",
"4XX",
"500",
"503",
"5XX",
],
isErrorStatusCode: (statusCode: number) =>
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
retryConfig: context.retryConfig,
retryCodes: context.retryCodes,
});
Expand Down
Loading